/* Shared workspace rhythm, catalog records, and editable data tables. */
.internal-note {color:var(--muted);font-size:13px;}
.internal-note {margin:8px 0;}.internal-note summary {cursor:pointer;width:fit-content;}.internal-note p {margin:5px 0;}
#product-media {padding:0; width:min(1120px,96vw); max-width:96vw; height:min(850px,92dvh); max-height:94dvh; border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);}
#product-media::backdrop {background:rgb(14 30 29 / 75%);}
body:has(#product-media[open]) {overflow:hidden;}
.media-layout {height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;}
.media-layout header,.media-layout footer {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 14px;}
.media-layout h2 {font:600 16px var(--sans);margin:2px 0;overflow-wrap:anywhere;}
.media-layout small {color:var(--muted);}
.media-stage {position:relative; display:grid; overflow:auto; min-width:0;min-height:0; background:#e9ede9; align-items:safe center;justify-items:safe center; border-block:1px solid var(--line);}
.media-stage img,.media-stage video,.media-stage model-viewer {display:block;width:100%; height:100%; min-height:0; object-fit:contain;}
.media-stage.enlarged {display:block;}
.media-stage.enlarged img {width:auto;height:auto;max-width:none;max-height:none;}
.media-stage canvas {display:block;background:#fff;}
.media-tools {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;padding:6px;}
.media-tools:empty {display:none;}
.media-layout footer {border-top:1px solid var(--line);}
.release-review {max-width:760px;}
.release-review h2,.release-review p,.release-review .row-actions {margin-block:12px;}
@media(max-width:600px){#product-media {width:100vw;max-width:100vw;height:92dvh;}.media-layout header,.media-layout footer {padding:8px;}.media-tools button,.media-layout button {min-height:36px;}}
.model-stage {display:grid; place-items:center; height:clamp(310px,60vh,690px);background:#e6e5df;border:1px solid var(--line);}
.model-stage model-viewer {width:100%;height:100%;}
.model-tools,.media-tools:has(.viewer-choice) {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 18px;padding:9px;background:var(--white);}
.viewer-choice,.finish-group {display:flex;align-items:center;gap:6px;color:var(--muted);font:600 12px var(--sans);margin:0;}
.viewer-choice select {width:auto;min-height:34px;padding:4px 8px;margin:0;color:var(--ink);}
.finish-group .finish {display:inline-flex;align-items:center;gap:5px;min-height:34px; margin:0; background:#fff;color:var(--ink);}
.finish[aria-pressed=true] {border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);}
.finish[value="Clear"]::before,.finish[value="White"]::before {content:"";width:13px;height:13px;border-radius:50%;border:1px solid #929d99;background:#fffef9;}
.finish[value="Clear"]::before {background:linear-gradient(120deg,#879da5 2%,white 25%,#c9d8da 48%,white 72%,#98a9ac);}
.asset-preview:has(span) {display:grid;place-items:center;min-height:140px;background:var(--light);}
.file-summary {font-size:13px; margin:6px 0;}
.file-detail {display:block; font-size:12px; color:var(--muted); overflow-wrap:anywhere;}
.access-check {margin-bottom:18px; border-top:2px solid var(--rule); padding-top:10px;}
.access-check form {display:flex; flex-wrap:wrap; gap:6px 12px; align-items:end; margin:8px 0;}
.access-check select {max-width:100%;}
:root {
  --paper: #f7f8f4;
  --white: #fff;
  --light: #edf1eb;
  --line: #d2d9d2;
  --ink: #192e2b;
  --accent: #126254;
  --rule: #8eaaa0;
}
body {font-size: 14px; line-height: 1.43;}
.frame {padding-inline: clamp(14px, 2.7vw, 44px);}
main {padding-block: 20px 34px;}
h1 {font: 400 clamp(29px, 3vw, 41px)/1.08 var(--serif); letter-spacing: -.045em;}
h2 {font-size: 22px; letter-spacing: -.025em;}
.mast-inner {min-height: 48px;}
.brand {font-size: 21px; gap: 9px;}
@font-face {font-family:"Studio Instrument";src:url("fonts/instrument-sans.983b71d7d5b6.woff2") format("woff2");font-weight:400 700;font-display:swap;}
.studio-wordmark {font:400 30px/1 "Studio Instrument",Arial,sans-serif;letter-spacing:-1.7px;white-space:nowrap;color:#edece5;}
.studio-wordmark b {font-weight:700;}.studio-wordmark i {font-style:normal;color:#d9c7a4;}
.client-wordmark {display:block;max-width:min(220px,100%);max-height:36px;width:auto;height:auto;object-fit:contain;}
.client-brand-settings {max-width:34rem;margin-top:24px;}
.client-brand-settings .brand-sample {min-height:60px;}
.brand-image {width: 32px; height: 30px;}
.workspace-links a {padding-block: 8px 6px; font-size: 13px;}
.studio-nav {padding-block: 2px;}
.studio-nav a {font-size: 13px; padding-block: 4px;}
.title-row {margin: 6px 0 16px;}
.section-head {margin-bottom: 8px; align-items: baseline; flex-wrap: wrap; gap: 6px 12px;}
.grid {gap: clamp(18px, 2.6vw, 38px);}
.directory-row,.member,.invite-row {padding-block: 9px;}
.panel {padding: 14px 16px;}
.panel > h2 {margin-bottom: 10px;}
.facts > div {padding-block: 6px;}
.profile-sections {gap: 22px; max-width: 1220px;}
.profile-sections section {padding-top: 10px;}
.table-wrap td,.table-wrap th {padding: 6px 9px;}
.profile-fields {gap: 8px 12px;}
.settings-item,.profile-email {padding: 9px 0;}
.auth {margin-top: clamp(10px,4vh,40px);}
.auth h1 {font-size: 34px; margin-bottom: 15px;}
.identity-footer {margin-block: 16px;}
.status {padding: 2px 6px; line-height: 1.25;}
.status.draft {background: #f4eee1; border-color: #d8c9a6; color: #725622;}
.button {min-height: 30px; padding: 5px 10px;}
.button:focus-visible,.ledger-scroll:focus-visible {outline: 2px solid var(--accent); outline-offset: 2px;}
.finder-heading {margin-bottom: 12px;}
.finder-form {padding: 9px 12px; border-top-width: 2px;}
.finder-query button,.finder-query input:not([type=checkbox]) {min-height: 34px; padding-block: 5px;}
.finder-filters summary {padding: 5px 0 0;}
.finder-toolbar {margin: 12px 0 5px;}
.finder-size:not([hidden]) {display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap;}
.finder-size input[type=range] {width: 6rem; min-height: 32px; padding: 0; accent-color: var(--accent);}
.view-switch a {padding: 5px 11px;}
.filter-chips {margin-top: 6px;}
.finder-columns,.finder-results.list .finder-result {grid-template-columns: var(--list-thumb, 80px) minmax(160px,1.3fr) minmax(150px,1fr) 96px; gap: 10px;}
.finder-results.list .finder-result {padding: 5px 8px;}
.finder-results.list img {width: var(--list-thumb, 80px); height: var(--list-thumb, 80px);}
.list .result-name {display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 8px;}
.list .result-name strong {width: 100%; font: 600 15px/1.22 var(--sans);}
.gallery .result-name strong {font-size: 20px;}
.result-specs {display: flex; flex-wrap: wrap; gap: 1px 12px; margin: 0; font: 12px/1.4 var(--sans);}
.result-specs div {display: flex; flex-wrap: wrap; gap: 0 4px;}
.result-specs dt,.result-media {color: var(--muted);}
.result-specs dd {margin: 0; font-variant-numeric: tabular-nums;}
.gallery .result-specs {display: grid; gap: 2px; margin-top: 3px;}
.finder-results.list .finder-result:has(> .result-name) {grid-template-columns: var(--list-thumb, 80px) minmax(140px,.7fr) minmax(0,2fr);}
.finder-results.list .result-specs {grid-column:3;gap:5px 16px;}
.layout-editor {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start;}
.layout-fields {padding:0;list-style:none;margin:0 0 12px;}
.layout-fields li {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0;border-bottom:1px solid var(--line);}
.layout-fields label {flex:1;min-width:0;overflow-wrap:anywhere;}
.layout-fields input[type=number] {width:5rem;}
.layout-fields small {color:var(--muted);}
.layout-example {padding:12px;border:1px solid var(--line);margin-top:10px;}
.layout-example img {display:block;width:80px;height:80px;object-fit:contain;margin-bottom:6px;}
.layout-example.gallery img {width:100%;height:146px;}
.asset-tags {display:flex;gap:4px;flex-wrap:wrap;}
.asset-tags a {border:1px solid var(--line);border-radius:4px;padding:1px 5px;font-size:12px;}
@media(max-width:720px){
  .layout-editor {grid-template-columns:minmax(0,1fr);}
  .finder-results.list .finder-result:has(> .result-name) {grid-template-columns:var(--list-thumb,80px) minmax(0,1fr);}
  .finder-results.list .result-specs {grid-column:2;grid-row:2;gap:1px 8px;}
}
.result-media {font-size: 12px;}
.catalog-cards {gap: 10px;}
.catalog-card {padding: 10px;}
.catalog-card strong {font-size: 21px;}
.finder-columns,.ledger thead th,.record-table thead th {background: var(--light); color: #3c544c; font: 600 12px/1.35 var(--sans);}
.sr-only {position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;}
.identifier,.record-ids,.numeric,.revision-line,.file-rev {font-variant-numeric: tabular-nums;}
.identifier,.record-ids {font: 12px/1.35 var(--mono);}
.numeric {text-align: right !important;}
.row-actions,.sheet-controls,.panel-foot,.work-heading {display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;}
.work-heading,.sheet-controls,.panel-foot {justify-content: space-between;}
.work-heading {margin: 5px 0 12px;}
.product-record {margin-top: 8px;}
.record-overview {display:grid;grid-template-columns:minmax(245px,.8fr) minmax(0,1.65fr);
  grid-template-areas:"photo heading" "photo workspace";grid-template-rows:auto 1fr;gap:10px 22px;}
.record-overview.no-image {grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "workspace";}
.record-workspace {grid-area:workspace;min-width:0;container-type:inline-size;}
.record-tabs {display:flex;align-items:stretch;border-bottom:1px solid var(--line);gap:14px;margin:0 0 12px;}
.record-tabs a {display:flex;align-items:center;padding:6px 1px;color:var(--muted);font:600 13px/1.4 var(--sans);text-decoration:none;border-bottom:3px solid transparent;}
.record-tabs a[aria-current] {color:var(--accent);border-color:var(--accent);}
.record-tabs a:hover {color:var(--ink);}
.engineering-summary {display:grid;gap:16px;align-items:start;}
@container (min-width:660px) {.engineering-summary:has(.cad-properties) {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);}}
.cad-properties {min-width:0;}
.cad-source,.cad-identifiers {font-size:12px;color:var(--muted);overflow-wrap:anywhere;}
.cad-source {margin:0 0 6px;}
.property-list {margin:0;font:13px/1.4 var(--sans);font-variant-numeric:tabular-nums;}
.property-list div {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:8px;padding:5px 2px;border-bottom:1px solid var(--line);}
.property-list dt {color:var(--muted);}
.property-list dd {margin:0;overflow-wrap:anywhere;color:var(--ink);}
.cad-identifiers {margin-top:6px;}.cad-identifiers summary {cursor:pointer;width:fit-content;}
.record-heading {grid-area: heading; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: start; gap: 6px 20px; min-width: 0;}
.record-brand {font: 600 12px/1.35 var(--sans); color: var(--accent); margin-bottom: 2px;}
.record-ids {color: var(--muted); margin-top: 3px;}
.record-ids span {margin-left: 9px; border-left: 1px solid var(--line); padding-left: 9px;}
.record-tools {display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 12px;}
.record-visual {grid-area:photo;min-width:0;align-self:start;overflow:hidden;border:1px solid var(--line);background:white;}
.record-image {display:grid;align-items:center;min-width:0;background:white;cursor:zoom-in;}
.record-image .product-hero {width:100%;height:clamp(300px,27vw,440px);object-fit:contain;margin:0;}
.record-visual-tools {display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px;border-top:1px solid var(--line);}
.photo-choices {display:flex;min-width:0;overflow:auto;gap:4px;}
.photo-choices a {display:block;flex:none;line-height:0;border:1px solid var(--line);border-radius:2px;}
.photo-choices a[aria-current] {border:2px solid var(--accent);}
.photo-choices img {width:38px;height:38px;object-fit:contain;}
.view-model {margin-left:auto;white-space:nowrap;}
.record-panel {min-width:0;}
.product-record h2 {font: 600 16px/1.3 var(--sans); letter-spacing: -.015em;}
.product-record .section-head a,.row-actions,.panel-foot {font-size: 13px;}
.revision-line {display: flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--muted); font-size: 12px;}
.record-table,.ledger {width: 100%; border-collapse: separate; border-spacing: 0; text-align: left;}
.record-table td,.record-table th {padding: 4px 7px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere;}
.record-table td {font-size: 13px;}
.panel-foot {margin-top: 6px; align-items: center;}
.panel-foot .source {margin: 0; font-size: 12px;}
.review-note {display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 10px; margin: 14px 0; padding: 8px 11px;
  border-left: 3px solid #a6833c; background: #f3f0e5;}
.review-note h2 {font-size: 13px;}
.review-note p {font-size: 13px; line-height: 1.45; overflow-wrap: anywhere;}
.record-section {margin: 15px 0;}
.files-section > .section-head {padding-bottom: 7px; border-bottom: 2px solid var(--rule); margin-bottom: 0;}
.file-line {display: grid; grid-template-columns: minmax(180px,1.5fr) minmax(80px,.5fr) minmax(85px,.5fr) minmax(180px,1.5fr);
  gap: 5px 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 7px 4px;}
.file-line > * {min-width: 0; overflow-wrap: anywhere;}
.file-name {display: flex; align-items: center; gap: 10px;}
.file-name > div {min-width: 0;}
.file-thumb {display: block; flex: none; width: 64px; height: 52px; border: 1px solid var(--line); background: white;}
.file-thumb img {display: block; width: 100%; height: 100%; object-fit: contain;}
.file-thumb:hover,.file-thumb:focus-visible {border-color: var(--accent);}
.file-kind,.file-rev,.file-source {font-size: 12px; color: var(--muted);}
.file-source summary {width: fit-content; cursor: pointer;}
.file-actions {justify-content: flex-end;}
.file-action-menu > summary {width:fit-content; padding:4px 0; cursor:pointer; color:var(--accent);}
.file-action-links {display:grid; justify-items:start; gap:2px; padding:2px 0 3px 10px; border-left:1px solid var(--line);}
.file-action-links a {padding-block:4px;}
.file-line .button,.panel-foot .button {font-size: 12px; min-height: 27px;}
.ledger-scroll {position: relative; max-width: 100%; overflow: auto; max-height: 66vh; border: 1px solid var(--line); border-top: 2px solid var(--accent); background: white;}
.ledger {font-size: 13px; font-variant-numeric: tabular-nums;}
.ledger th,.ledger td {padding: 5px 8px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: middle;}
.ledger th {font-weight: 600;}
.ledger thead th {position: sticky; top: 0; z-index: 2; box-shadow: 0 1px var(--rule);}
.ledger tbody tr:nth-child(even) {background: #f7f9f6;}
.ledger th:first-child {position: sticky; left: 0; background: var(--light); z-index: 1;}
.ledger thead th:first-child {z-index: 3;}
.ledger .editing {background: #edf6f0;}
.ledger .editing input,.ledger .editing select {min-width: 115px;}
.ledger .editing td:nth-child(2) input {min-width: 170px;}
.product-ledger {min-width: 810px;}
.product-ledger .identifier,.product-ledger .row-actions {white-space: nowrap;}
.product-ledger a {text-underline-offset: 2px;}
.ledger input:not([type=checkbox]),.ledger select {height: 32px; min-height: 32px; border: 1px solid transparent; border-radius: 0; padding: 3px 6px; background: transparent; font-size: 13px;}
.ledger input:focus,.ledger select:focus {outline: 2px solid var(--accent); outline-offset: -2px; background: white;}
.input-ledger {min-width: 580px;}
.input-ledger th:first-child {width: 3rem; text-align: right; color: var(--muted); font: 12px var(--mono);}
.input-ledger td {padding: 0;}
.input-ledger td:last-child {width: 4rem; text-align: center;}
.input-ledger input[type=checkbox] {accent-color: var(--accent); width: 17px; height: 17px; vertical-align: middle;}
.input-ledger.commercial td:nth-child(4) {width: 105px;}
.input-ledger.commercial td:nth-child(5) {width: 30%;}
.input-ledger.engineering td:nth-child(3),.input-ledger.engineering td:nth-child(4) {width: 22%;}
.input-ledger .invalid-cell {background: #ffebe5;}
.input-ledger .errorlist {padding: 3px 6px;}
.sheet-controls {padding: 8px 0;}
.worksheet-help,.sheet-controls [role=status] {color: var(--muted); font-size: 13px;}
.add-row {margin: 8px 0;}
.add-row[hidden] {display: none;}
.site-form [data-transfer-controls] [hidden] {display: none;}
.revision-fields {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 10px 0;}
.revision-fields textarea {width: 100%; height: 40px; padding: 6px; font: inherit; border: 1px solid #9daa9e; border-radius: 3px;}
@media (max-width: 920px) {
  .record-overview {grid-template-columns:minmax(230px,.75fr) minmax(0,1fr);}
  .record-image .product-hero {height:clamp(280px,39vw,355px);}
  .file-line {grid-template-columns: minmax(150px,1fr) auto auto;}
  .file-actions {grid-column: 1/-1; justify-content: flex-start;}
}
@media (max-width: 720px) {
  .frame {padding-inline: 14px;}
  main {padding-block: 13px 22px;}
  .mast-inner {display: grid; grid-template-columns: minmax(0,1fr) auto; padding-block: 5px; gap: 0 6px;}
  .brand {grid-area: 1/1; font-size: 18px; gap: 6px;}
  .studio-wordmark {font-size:25px;}
  .client-wordmark {max-height:30px;}
  .product {grid-area: 2/1; border: 0; padding-left: 0; max-width: none; font-size: 11px;}
  .account {grid-area: 1/2/3/3; max-width: none; gap: 2px;}
  .account>span {display: none;}
  .quiet {min-height: 36px; display: inline-flex; align-items: center;}
  .studio-nav,.workspace-links {gap: 0 12px;}
  .workspace-inner {padding-top: 0;}
  .workspace-inner > strong {display: none;}
  body:has(.studio-nav) .workspace-inner > strong {display: block; padding-top: 4px;}
  .studio-nav a,.workspace-links a {font-size: 12px; padding-block: 7px; min-height: 32px;}
  .finder-filters summary,.view-switch a,.filter-chips a {min-height: 36px;}
  .finder-query button,.finder-query input:not([type=checkbox]) {min-height: 40px;}
  .finder-results.list .finder-result {grid-template-columns: var(--list-thumb, 80px) minmax(0,1fr) auto; gap: 2px 8px;}
  .record-overview,.record-overview.no-image {gap: 10px;}
  .record-overview:not(.no-image) {grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "photo" "workspace";grid-template-rows:auto;}
  .record-tabs a {min-height:40px;}
  .record-heading h1 {font-size: 27px;}
  .record-image .product-hero {height:clamp(224px,60vw,325px);}
  .viewer-choice select {font-size:16px;}
  .record-tools {gap: 4px 8px;}
  .record-table td,.record-table th {padding-block: 3px;}
  .file-line {grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px;}
  .file-name {grid-column: 1; gap: 7px;}
  .file-thumb {width: 50px; height: 44px;}
  .file-rev {grid-area: 1/2;}
  .file-actions a,.record-panel .section-head a {padding-block: 4px;}
  .review-note {display: block;}
  .review-note h2 {margin-bottom: 3px;}
  .revision-fields {grid-template-columns: 1fr;}
  .ledger input:not([type=checkbox]),.ledger select {min-height: 40px; font-size: 16px;}
}
.preview-actions {display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-left:auto;}
.preview-actions .button {white-space:nowrap;}
.preview-actions details a {display:block;padding:4px;}
.record-visual-tools {flex-wrap:wrap;}
.drawing-stage {overscroll-behavior:contain;cursor:grab;}
.drawing-stage.panning {cursor:grabbing;user-select:none;}
.mass-study {margin-top:12px;padding:10px 12px;background:var(--light);border-left:3px solid var(--accent);}
.mass-study h3 {margin:0 0 6px;font:600 15px var(--sans);}
.mass-study label,.mass-study small {display:block;font-size:12px;color:var(--muted);}
.mass-study select {display:block;width:100%;margin:3px 0 7px;min-height:36px;}
.mass-study div {display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:13px;}
.mass-study output {font-size:19px;font-weight:600;font-variant-numeric:tabular-nums;}
.mass-study small {margin-top:4px;}
.qc-form {margin:8px 0 18px;}
.qc-form input:not([type=hidden]) {min-width:0;width:100%;max-width:100%;min-height:40px;font:16px var(--sans);padding:5px 8px;}
.qc-form label,.qc-line small,.qc-history small {display:block;color:var(--muted);font-size:12px;margin-bottom:3px;}
.qc-identity {display:grid;grid-template-columns:minmax(130px,1fr) minmax(180px,2fr);gap:12px;margin:10px 0;}
.qc-line {display:grid;grid-template-columns:minmax(220px,2.5fr) minmax(80px,.6fr) minmax(100px,1fr) minmax(110px,1fr) minmax(70px,.65fr);gap:10px;align-items:start;border-top:1px solid var(--line);padding:10px 0; font-variant-numeric:tabular-nums;}
.qc-description {grid-column:1;}.qc-description + div:not(.qc-count) {grid-column:3;}
.qc-description h3,.qc-history h3 {font:600 15px var(--sans);margin:0;}
.qc-description p,.qc-history p {font-size:13px;margin:4px 0;overflow-wrap:anywhere;}
.qc-description details {font-size:12px;color:var(--muted);}.qc-description summary {width:fit-content;cursor:pointer;}
.qc-history article {margin:12px 0;}.qc-history th,.qc-history td {padding:4px;overflow-wrap:anywhere;}
.qc-photo {position:relative;width:fit-content;max-width:100%;margin:6px 0;line-height:0;}
.qc-photo img {display:block;width:auto;max-width:100%;max-height:340px;}
[data-pin-editor] img {cursor:crosshair;}
.qc-pin {position:absolute;width:15px;height:15px;transform:translate(-50%,-50%);border-radius:50%;border:2px solid white;box-shadow:0 0 0 2px #973e16;background:#c8561a99;pointer-events:none;}
@media(max-width:800px){.qc-line {grid-template-columns:repeat(3,minmax(0,1fr));}.qc-description,.qc-count {grid-column:1/-1;}.qc-description + div:not(.qc-count) {grid-column:auto;}.qc-count input {max-width:100px!important;}.qc-identity {grid-template-columns:1fr;}.record-tabs {gap:10px;flex-wrap:wrap;}.qc-line {font-size:14px;}}
.qc-comparison {margin-top:10px;min-width:0;}
.qc-comparison summary {width:fit-content;cursor:pointer;font-weight:600;padding:5px 0;}
.qc-scroll {overflow:auto;max-width:100%;border:1px solid var(--line);}
.qc-scroll table {width:max-content;min-width:100%;font-variant-numeric:tabular-nums;}
.qc-scroll th,.qc-scroll td {min-width:84px;padding:5px 10px;}
.qc-scroll :is(th,td):first-child {position:sticky;left:0;background:var(--paper);min-width:145px;max-width:220px;}
.qc-scroll td {text-align:right;}
.qc-filter {display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:13px;}
.qc-filter input {max-width:150px;}
.qc-history .section-head {flex-wrap:wrap;}
.qc-form :focus-visible,.qc-filter :focus-visible {outline:2px solid var(--accent);outline-offset:2px;}
.drawing-picker,.other-drawings {margin-block: 8px;}
.drawing-picker summary,.other-drawings summary {cursor: pointer; width: fit-content; padding: 5px 0;}
.drawing-picker form {display: grid; grid-template-columns: minmax(120px,auto) minmax(0,1fr) auto; align-items: center; gap: 6px 10px; margin-block: 6px;}
.drawing-picker select {min-width: 0; width: 100%;}
@media (max-width: 720px) {
  .drawing-picker form {grid-template-columns: minmax(0,1fr) auto;}
  .drawing-picker label {grid-column: 1/-1;}
}

.preview-selected {display: block; color: var(--accent); font-size: 12px; font-weight: 600;}
.preview-command {display: inline-block; padding: 3px 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;}
.preview-reset {margin: 0 0 6px;}

/* Client navigation and overview */
.portal-icon {display:inline-block;width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;}
.account .account-icon {display:inline-grid;place-items:center;width:36px;min-height:36px;padding:0;border:0;border-radius:4px;background:transparent;color:#e1e8e1;}
.account .account-icon:hover {background:var(--light);color:var(--accent);}
.portal-nav {display:flex;align-items:center;gap:6px;min-height:48px;}
.portal-nav-client {margin-right:12px;color:var(--muted);font-size:12px;}
.portal-nav a {display:inline-flex;align-items:center;gap:7px;padding:0 13px;min-height:38px;border-radius:4px;color:var(--ink);font-weight:600;text-decoration:none;}
.portal-nav a:hover {background:#e1e9e2;}.portal-nav a[aria-current] {background:var(--ink);color:white;}
.catalog-front {--deep:#184b42;}
.catalog-intro {display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:clamp(18px,3vw,36px);background:var(--deep);color:#fff;border-bottom:4px solid #9ab6a8;}
.catalog-intro p {margin:0 0 6px;color:#deece1;font:600 12px var(--sans);letter-spacing:.065em;text-transform:uppercase;}
.catalog-intro h1 {margin:0;color:inherit;font-size:clamp(38px,5vw,62px);overflow-wrap:anywhere;}
.catalog-enter {display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:42px;padding:0 14px;border-radius:4px;background:#fff;color:var(--deep);text-decoration:none;font-weight:650;white-space:nowrap;}
.catalog-enter:hover {background:#eef4ed;color:var(--deep);}
.catalog-front h2 {margin:0 0 8px;font:600 19px/1.25 var(--sans);letter-spacing:-.025em;}
.catalog-front .front-section-title {margin:18px 0 0;}
.catalog-index-line {display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px;}
.catalog-index-line p {margin:0;color:var(--muted);}.catalog-index-line p span {padding:0 7px;color:#81948a;}
.catalog-index-line form {display:flex;align-items:center;width:min(370px,50%);background:white;border:1px solid var(--line);border-radius:4px;overflow:hidden;}
.catalog-index-line input {min-width:0;width:100%;min-height:38px;margin:0;padding:7px 12px;border:0;background:transparent;font:inherit;}
.catalog-index-line form:focus-within {outline:2px solid var(--accent);outline-offset:2px;}
.catalog-index-line button {display:grid;place-items:center;min-width:42px;min-height:38px;padding:0;border:0;background:white;color:var(--accent);cursor:pointer;}
.catalog-shelf {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:12px;}
.catalog-tile {display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);background:white;color:var(--ink);text-decoration:none;}
.catalog-tile:hover {border-color:var(--accent);color:var(--accent);}
.catalog-tile-image {display:grid;place-items:center;height:clamp(125px,15vw,196px);background:#f1f3ee;overflow:hidden;}
.catalog-tile-image img {display:block;width:100%;height:100%;min-height:0;object-fit:contain;}
.catalog-tile-image > .portal-icon {width:38px;height:38px;color:#698778;stroke-width:1;}
.catalog-caption {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-top:1px solid var(--line);line-height:1.25;}
.catalog-caption .portal-icon {width:15px;color:var(--accent);}
.dashboard-lower {display:grid;grid-template-columns:minmax(0,2fr) minmax(190px,1fr);gap:clamp(20px,3vw,40px);margin:22px 0 16px;}
.dashboard-lower section {margin:0 0 20px;}
.dashboard-lower h2 {border-bottom:1px solid var(--rule);padding-bottom:8px;}
.dashboard-lower ul {list-style:none;margin:0;padding:0;}
.collection-section ul {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;}
.dashboard-lower a {display:flex;align-items:center;gap:9px;min-height:40px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink);}
.dashboard-lower a:hover {color:var(--accent);background:var(--light);}
.dashboard-lower small,.recent-section time {font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;}
.collection-section small,.recent-section time {margin-left:auto;white-space:nowrap;}
.collection-section .portal-icon {width:13px;}.collection-section a span {overflow-wrap:anywhere;}
.recent-section a {padding:6px 0;}.recent-section small {display:block;}
.workspace-tools .portal-icon {color:var(--accent);}
.catalog-empty {padding:16px;background:var(--light);}
@media(max-width:640px) {
  .portal-nav {min-height:46px;}.portal-nav-client {display:none;}
  .catalog-intro {align-items:flex-start;flex-direction:column;gap:12px;}
  .catalog-index-line {align-items:flex-start;flex-direction:column;gap:8px;margin-top:3px;}
  .catalog-index-line form {width:100%;}
  .catalog-shelf {grid-template-columns:1fr;gap:6px;}
  .catalog-tile {display:grid;grid-template-columns:88px minmax(0,1fr);}
  .catalog-tile-image {height:68px;}.catalog-caption {border:0;min-height:44px;}
  .dashboard-lower {grid-template-columns:1fr;gap:0;margin-top:16px;}
  .dashboard-lower>div:empty {display:none;}
  .collection-section ul {grid-template-columns:1fr;}
  .dashboard-lower a,.catalog-index-line button,.account .account-icon {min-height:44px;}
}
.mail-sender,.mail-layout section > p,.mail-layout small {font-size:13px;color:var(--muted);}
.mail-switch,.mail-tools {display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
.mail-switch {padding:10px 0;border-block:1px solid var(--line);margin-bottom:16px;}
.mail-switch select,.mail-tools select {width:auto;max-width:100%;min-height:32px;}
.mail-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:24px;}
.mail-layout h2 {margin:0;font-size:19px;}
#mail-editor > label {display:block;font-weight:600;margin:10px 0 3px;}
#mail-editor textarea {width:100%;box-sizing:border-box;font:inherit;padding:8px;}
.mail-tools {margin-bottom:5px;}.mail-layout .row-actions {margin-top:16px;}
.mail-preview iframe {width:100%;height:440px;border:1px solid var(--line);background:white;}
.mail-preview [data-subject] {display:block;margin:12px 0 6px;overflow-wrap:anywhere;}
.mail-preview pre {white-space:pre-wrap;overflow-wrap:anywhere;}.mail-preview summary {cursor:pointer;}
.mail-samples {margin-top:8px;}.mail-sample-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:6px;margin:8px 0;}
@media(max-width:740px){.mail-layout{grid-template-columns:minmax(0,1fr);}.mail-preview iframe{height:380px;}}
.crop-layout {display:grid;grid-template-columns:minmax(0,480px) minmax(220px,360px);gap:clamp(16px,4vw,48px);align-items:start;}
.crop-layout h2 {margin:0 0 10px;font-size:17px;}.crop-layout h2 small {color:var(--muted);}
.crop-frame {display:block;width:100%;height:auto;aspect-ratio:1;border:1px solid var(--ink);background:#fff;touch-action:none;cursor:grab;}
.crop-frame:active {cursor:grabbing;}.crop-frame:focus-visible {outline:2px solid var(--accent);outline-offset:2px;}
.crop-controls fieldset {margin:12px 0 0;padding:0;border:0;}
.crop-controls label {display:block;margin:12px 0 4px;font-weight:600;}
.rotation-controls {display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.rotation-controls label {display:inline-flex;align-items:center;gap:3px;margin:0;}
.rotation-controls input[type=number] {width:6em;}
.crop-frame[aria-disabled=true] {cursor:default;touch-action:auto;}
.crop-controls input[type=range] {padding:0;min-height:28px;accent-color:var(--accent);}
.crop-example {display:flex;align-items:center;gap:12px;padding:8px 0;border-block:1px solid var(--line);}
.crop-example canvas {width:50px;height:50px;background:white;}
.profile-picture,.crop-example .portrait-preview {border-radius:50%;object-fit:cover;vertical-align:middle;}
.account-icon .profile-picture {width:30px;height:30px;}
.profile-photo-link {display:inline-flex;align-items:center;gap:10px;margin:8px 0;}
.portrait-frame {border-radius:8px;background:var(--light);}
.portrait-preview {border:1px solid var(--line);}
@media(max-width:650px){.crop-layout {grid-template-columns:minmax(0,1fr);gap:12px;}.crop-frame {max-width:min(100%,52svh);}}

.shoot-directory,.shoot-sheet {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(188px,100%),1fr));gap:12px;margin:14px 0;}
.shoot-directory {grid-template-columns:repeat(auto-fill,minmax(min(245px,100%),1fr));}
.shoot-cover,.shoot-tile {border:1px solid var(--line);min-width:0;background:var(--white);}
.shoot-cover {display:grid;color:var(--ink);text-decoration:none;align-content:start;}
.shoot-cover strong,.shoot-cover small {padding:6px 10px 0;}.shoot-cover small {padding:0 10px 9px;color:var(--muted);}
.shoot-cover img,.empty-cover {width:100%;aspect-ratio:3/2;object-fit:cover;background:var(--light);}
.empty-cover {display:grid;place-items:center;}.empty-cover .portal-icon {width:32px;height:32px;}
.shoot-selection {display:flex;align-items:end;gap:8px 14px;flex-wrap:wrap;margin:10px 0;padding:10px;background:var(--light);}
.shoot-selection label:not(.check):not([hidden]) {display:grid;gap:3px;}
.shoot-selection [hidden] {display:none;}.shoot-selection textarea,.shoot-selection select {max-width:100%;min-width:0;}
.shoot-selection label {max-width:100%;}.shoot-selection .check,.shoot-selection output {align-self:center;}
.shoot-tile {position:relative;}.shoot-check {position:absolute;z-index:1;top:4px;left:4px;display:grid;place-items:center;background:white;border-radius:4px;width:32px;height:32px;}
.shoot-check input {width:18px;height:18px;margin:0;}.shoot-tile:has(input:checked) {outline:2px solid var(--accent);}
.shoot-image {display:block;background:var(--light);}.shoot-image img {display:block;width:100%;aspect-ratio:4/3;object-fit:contain;}
.shoot-caption {display:grid;gap:3px;padding:8px;overflow-wrap:anywhere;}.shoot-caption small,.shoot-caption a {font-size:12px;}
.shoot-drop {display:grid;place-content:center;gap:10px;min-height:140px;border:2px dashed var(--line);text-align:center;cursor:pointer;}
.shoot-drop input {max-width:100%;}.shoot-queue {list-style:none;padding:0;}.shoot-queue li {display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;border-top:1px solid var(--line);padding:9px 0;}
.shoot-queue strong {overflow-wrap:anywhere;}.shoot-queue img {width:46px;height:46px;object-fit:contain;}
@media(max-width:650px){.portal-nav {flex-wrap:wrap;gap:2px;}.portal-nav a {gap:4px;padding:0 6px;font-size:13px;}.shoot-sheet {grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}.shoot-selection label select {max-width:84vw;}}

.role-matrix { overflow-x:auto; margin:1rem 0; }
.role-matrix table { border-collapse:separate; border-spacing:0; width:100%; font-size:.9rem; }
.role-matrix caption { text-align:left; padding:.5rem 0; }
.role-matrix th,.role-matrix td { padding:.45rem .65rem; border-bottom:1px solid var(--line); vertical-align:top; text-align:left; min-width:7rem; }
.role-matrix tr > th:first-child { position:sticky; left:0; background:var(--paper,#fff); width:15rem; min-width:8rem; max-width:40vw; }

.portal-guide { max-width:76ch; }
.portal-guide section,.portal-guide h2 { margin-top:1.4rem; }
.portal-guide li,.portal-guide dd { margin-bottom:.65rem; line-height:1.5; }
.portal-guide dd { margin-inline-start:0; }
