:root {
  --ink: #182023;
  --ink-soft: #5e676a;
  --ink-faint: #8f9899;
  --paper: #f5f4ef;
  --paper-deep: #ebe9e2;
  --line: #deddd5;
  --panel: #fbfaf7;
  --sidebar: #151a1d;
  --sidebar-soft: #242b2e;
  --sidebar-line: #31393b;
  --amber: #dba63b;
  --amber-soft: #f5e6bf;
  --blue: #6e98a8;
  --green: #6f9f89;
  --danger: #bf6e63;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { height: 100%; overflow: hidden; background: var(--paper); }
body { height: 100%; overflow: hidden; margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { display: flex; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.sidebar { width: 220px; flex-shrink: 0; min-height: 0; background: var(--sidebar); color: #d9dedc; display: flex; flex-direction: column; padding: 22px 16px 14px; z-index: 5; overflow: hidden; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 10px; margin-bottom: 24px; flex-shrink: 0; }
.brand-mark { width: 32px; height: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(45deg); }
.brand-mark span { background: var(--amber); display: block; }
.brand-mark span:nth-child(2) { opacity: .65; }
.brand-mark span:nth-child(3) { opacity: .25; }
.brand-mark span:nth-child(4) { opacity: .9; }
.brand-name { font: 600 18px/1 var(--display); letter-spacing: .15em; color: #f3eee0; }
.brand-sub { font: 500 7px/1.4 var(--mono); letter-spacing: .18em; color: #7f8a8c; margin-top: 5px; }
.sidebar-section-label { padding: 0 10px; color: #6e787a; font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 11px; }
.section-spaced { margin-top: 20px; }
.primary-nav, .category-list { display: grid; gap: 4px; }
.primary-nav, .sidebar-section-label, .sidebar-footer { flex-shrink: 0; }
.category-list { flex: 1; min-height: 0; overflow-y: auto; margin-bottom: 14px; scrollbar-width: thin; scrollbar-color: #414c4e transparent; }
.category-group-label { padding: 12px 12px 6px; font-size: 9px; color: #758283; letter-spacing: .06em; }
.category-group:first-child .category-group-label { padding-top: 2px; }
.nav-item, .category-item { position: relative; display: flex; align-items: center; width: 100%; min-height: 43px; border-radius: 8px; color: #aeb7b7; background: transparent; text-align: left; padding: 0 11px; transition: background .2s, color .2s; }
.nav-item svg { width: 17px; height: 17px; margin-right: 12px; color: #7d8889; }
.nav-item span:nth-child(2) { font-size: 12px; }
.nav-item:hover { background: rgba(255,255,255,.055); color: #eff0eb; }
.nav-item.is-active { background: var(--sidebar-soft); color: #f0ede4; box-shadow: inset 3px 0 0 var(--amber); }
.nav-item.is-active svg { color: var(--amber); }
.nav-count { margin-left: auto; color: #899394; font: 500 10px var(--mono); }
.nav-dot { margin-left: auto; width: 5px; height: 5px; background: var(--amber); border-radius: 50%; box-shadow: 0 0 0 3px rgba(219,166,59,.12); }
.category-item { min-height: 38px; color: #a6b0ae; padding-left: 12px; }
.category-item:hover { background: rgba(255,255,255,.055); color: #f0f1eb; }
.category-item.is-active { background: var(--sidebar-soft); color: #f0ede4; box-shadow: inset 2px 0 0 var(--amber); }
.category-item > span:nth-child(2) { font-size: 11px; }
.category-item > span:last-child { margin-left: auto; font: 10px var(--mono); color: #6c7879; }
.category-dot { width: 7px; height: 7px; border-radius: 50%; margin-right: 12px; }
.category-dot.amber { background: var(--amber); }.category-dot.blue { background: var(--blue); }.category-dot.green { background: var(--green); }
.sidebar-footer { margin-top: auto; }
.storage-card { border: 1px solid var(--sidebar-line); border-radius: 9px; padding: 15px 13px 13px; margin-bottom: 18px; background: linear-gradient(140deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); }
.storage-head, .storage-meta { display: flex; justify-content: space-between; align-items: center; }
.storage-head { color: #c4ccca; font-size: 11px; }.storage-head strong { color: var(--amber); font: 500 11px var(--mono); }
.storage-bar { height: 4px; background: #303a3b; border-radius: 5px; margin: 12px 0 8px; overflow: hidden; }.storage-bar span { display: block; height: 100%; width: 68%; background: var(--amber); border-radius: inherit; }
.storage-meta { color: #697576; font: 9px var(--mono); }
.sidebar-settings { color: #8d9898; min-height: 38px; gap: 12px; line-height: 1; }
.sidebar-settings svg { flex: 0 0 17px; margin-right: 0; }

.main-content { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 0 32px 20px; overflow: hidden; }
.topbar { height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.breadcrumbs { color: var(--ink-faint); font-size: 11px; }.breadcrumbs strong { color: var(--ink); font-weight: 600; }.crumb-divider { padding: 0 10px; color: #c7c6bd; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }.sync-status { display: flex; align-items: center; gap: 7px; color: #6e7875; font: 10px var(--mono); }.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(111,159,137,.16); }
.external-library-link { flex-shrink: 0; min-height: 34px; padding: 0 11px; text-decoration: none; white-space: nowrap; }
.external-library-link svg { width: 14px; height: 14px; }
.icon-button { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; padding: 0; line-height: 1; color: #647073; background: transparent; border-radius: 7px; transition: background .2s, color .2s; }.icon-button:hover { background: var(--paper-deep); color: var(--ink); }.icon-button svg { width: 18px; height: 18px; }.notification-badge { position: absolute; right: 7px; top: 7px; width: 5px; height: 5px; background: var(--amber); border-radius: 50%; border: 1px solid var(--paper); }
.profile-chip { display: flex; align-items: center; gap: 9px; padding-left: 5px; }.avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #dfe4df; color: #445250; font: 500 10px var(--mono); }.profile-chip strong, .profile-chip span { display: block; }.profile-chip strong { font-size: 11px; font-weight: 600; }.profile-chip span { color: #89918f; font-size: 9px; margin-top: 2px; }.profile-chevron { width: 14px; height: 14px; color: #87918f; margin-left: 6px; }

.hero-section { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }.eyebrow, .panel-kicker { color: #788281; font: 500 9px var(--mono); letter-spacing: .14em; }.eyebrow { display: flex; align-items: center; gap: 9px; }.eyebrow span { width: 19px; height: 1px; background: var(--amber); }.hero-section h1 { margin: 9px 0 8px; font: 600 42px/1 var(--display); letter-spacing: -.02em; color: var(--ink); }.title-mark { color: var(--amber); }.hero-copy { margin: 0; color: #697371; font-size: 11px; line-height: 1.65; }.hero-copy br { display: none; }.hero-actions { flex-shrink: 0; display: flex; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; border-radius: 6px; padding: 0 15px; font-size: 11px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; }.button svg { width: 16px; height: 16px; }.button:hover { transform: translateY(-1px); }.button-primary { background: var(--ink); color: #f5f2e7; box-shadow: 0 4px 10px rgba(24,32,35,.14); }.button-primary:hover { background: #2b3538; box-shadow: 0 6px 15px rgba(24,32,35,.18); }.button-ghost { background: transparent; border: 1px solid var(--line); color: #52605f; }.button-ghost:hover { background: #efeee8; border-color: #c9c8c0; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; flex-shrink: 0; }.metric-card { position: relative; min-height: 94px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 12px 16px; overflow: hidden; }.metric-highlight { background: var(--ink); color: #f5f2e7; border-color: var(--ink); }.metric-label { color: #8a9390; font: 500 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }.metric-highlight .metric-label { color: #a8b0ab; }.metric-value { margin-top: 8px; font: 600 30px/.9 var(--display); letter-spacing: .01em; }.metric-value span { font: 500 11px var(--body); color: #8a9390; letter-spacing: 0; }.metric-highlight .metric-value span { color: #b3bcb6; }.metric-foot { position: absolute; bottom: 12px; display: flex; align-items: center; gap: 7px; color: #929a96; font-size: 9px; }.trend-up { color: var(--green); font: 500 10px var(--mono); }.metric-highlight .trend-up { color: #d9b55f; }.metric-glyph { position: absolute; right: 16px; top: 18px; }.glyph-stack { width: 36px; height: 45px; transform: skewY(-20deg); }.glyph-stack i { position: absolute; display: block; right: 0; width: 24px; height: 14px; border: 1px solid var(--amber); background: rgba(219,166,59,.08); }.glyph-stack i:nth-child(1) { top: 0; right: 0; }.glyph-stack i:nth-child(2) { top: 13px; right: 6px; opacity: .65; }.glyph-stack i:nth-child(3) { top: 26px; right: 12px; opacity: .35; }.format-pill { padding: 3px 5px; border: 1px solid #d9d9d1; color: #697472; font: 8px var(--mono); }.mini-spark { position: absolute; right: 16px; bottom: 12px; display: flex; gap: 3px; align-items: flex-end; height: 27px; }.mini-spark span { width: 4px; background: #c5d0cc; border-radius: 2px 2px 0 0; }.member-stack { position: absolute; right: 16px; top: 20px; display: flex; }.member-stack span { width: 25px; height: 25px; display: grid; place-items: center; margin-left: -5px; border: 2px solid var(--panel); border-radius: 50%; background: #d7dfda; color: #52605b; font: 8px var(--mono); }.member-stack span:nth-child(2) { background: #e9d6ab; }.member-stack span:nth-child(3) { background: var(--ink); color: #ece9de; }.time-value { font-size: 31px; }.pulse-line { width: 33px; height: 8px; border-bottom: 1px solid var(--green); border-radius: 50%; transform: rotate(-5deg); }.status-orbit { position: absolute; top: 20px; right: 20px; width: 35px; height: 35px; border: 1px solid #d4ddd6; border-radius: 50%; }.status-orbit:before { content: ""; position: absolute; inset: 5px; border: 1px dashed #bfccc4; border-radius: 50%; }.status-orbit i { position: absolute; top: 3px; left: 16px; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }.status-orbit span { position: absolute; bottom: -4px; right: 1px; width: 7px; height: 7px; border: 2px solid var(--panel); background: var(--green); border-radius: 50%; }

.workspace-grid { flex: 1; min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 310px; grid-template-rows: minmax(0, 1fr); gap: 16px; align-items: stretch; }.library-panel, .inspector-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }.library-panel { padding: 18px; }.inspector-panel { padding: 18px 16px; }.panel-heading, .inspector-header { flex-shrink: 0; display: flex; justify-content: space-between; align-items: flex-start; }.panel-heading h2, .inspector-header h2 { margin: 7px 0 0; font: 600 24px/1 var(--display); letter-spacing: .015em; }.panel-heading h2 span { color: #8c9591; font: 500 11px var(--mono); margin-left: 4px; }.panel-heading-actions { display: flex; gap: 4px; }.icon-button.subtle { width: 31px; height: 31px; border: 1px solid #e3e2db; }.icon-button.subtle svg { width: 15px; height: 15px; }.view-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 31px; height: 31px; padding: 0; line-height: 1; color: #a0a8a3; background: transparent; border: 1px solid transparent; border-radius: 5px; }.view-toggle svg { width: 14px; height: 14px; }.view-toggle.active { color: var(--ink); border-color: #e1e0d8; background: #f1f0eb; }
.inspector-panel.is-collapsed { min-height: 0; padding-bottom: 15px; }.inspector-panel.is-collapsed .inspector-header { padding-bottom: 0; border-bottom: 0; }.inspector-panel.is-collapsed #inspectorContent { display: none; }
.filter-toolbar { flex-shrink: 0; min-width: 0; display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 12px; }.search-box { min-width: 0; flex: 1; max-width: 320px; height: 36px; display: flex; align-items: center; border: 1px solid #e0dfd7; border-radius: 5px; padding: 0 10px; background: #fffefa; }.search-box svg { width: 15px; height: 15px; color: #8e9793; margin-right: 8px; }.search-box input { width: 100%; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 11px; }.search-box input::placeholder { color: #aeb4af; }.search-box kbd { color: #a1aaa4; font: 9px var(--mono); white-space: nowrap; }.filter-actions { display: flex; gap: 8px; }.select-wrap { position: relative; height: 36px; }.select-wrap select { appearance: none; height: 100%; min-width: 108px; padding: 0 28px 0 11px; background: #fffefa; border: 1px solid #e0dfd7; color: #63706c; border-radius: 5px; outline: 0; font-size: 10px; }.select-wrap svg { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; pointer-events: none; color: #9aa39d; }
.active-filters { flex-shrink: 0; min-height: 0; display: flex; gap: 6px; max-width: 100%; overflow-x: auto; margin-bottom: 10px; }.active-filters:empty { display: none; }.filter-chip { flex-shrink: 0; max-width: 100%; display: inline-flex; gap: 7px; align-items: center; background: var(--amber-soft); color: #836625; padding: 4px 7px 4px 9px; border-radius: 4px; font-size: 9px; overflow-wrap: anywhere; }.filter-chip button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; height: 20px; color: #8d722c; background: transparent; padding: 0; line-height: 1; }.filter-chip button svg { width: 12px; height: 12px; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }.model-grid.list-view { grid-template-columns: 1fr; }.model-grid.list-view .model-card { display: flex; min-height: 112px; }.model-grid.list-view .model-visual { width: 170px; min-width: 170px; height: 110px; border-right: 1px solid #eceae2; }.model-grid.list-view .model-card-body { flex: 1; }.model-grid.list-view .model-card-meta { margin-top: auto; }
.model-card { position: relative; min-width: 0; border: 1px solid #e3e2dc; border-radius: 7px; overflow: hidden; background: #fffefa; transition: transform .22s, box-shadow .22s, border .22s; cursor: pointer;  }.model-card:hover { transform: translateY(-3px); border-color: #cfcfc6; box-shadow: 0 8px 20px rgba(42,49,47,.08); }.model-card.is-selected { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(219,166,59,.16); }.model-visual { height: 126px; position: relative; overflow: hidden; background: #e8e8e1; }.visual-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(58,69,67,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(58,69,67,.07) 1px, transparent 1px); background-size: 17px 17px; transform: perspective(220px) rotateX(58deg) translateY(25px) scale(1.3); transform-origin: bottom; opacity: .65; }.model-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }.visual-label { position: absolute; left: 10px; top: 9px; color: #75817d; font: 9px var(--mono); letter-spacing: .08em; }.visual-format { position: absolute; top: 8px; right: 8px; padding: 4px 5px 3px; color: #61706b; background: rgba(250,250,245,.78); border: 1px solid rgba(126,137,130,.28); border-radius: 3px; font: 8px var(--mono); }.model-card-body { padding: 11px 12px 12px; }.model-card-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; color: #293433; }.model-card-subtitle { display: flex; gap: 7px; color: #8a9590; margin-top: 5px; font: 9px var(--mono); }.model-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; color: #99a19d; font: 9px var(--mono); }.model-card-meta .status { display: inline-flex; align-items: center; gap: 5px; color: #6c8980; }.status i { width: 5px; height: 5px; background: var(--green); border-radius: 50%; }.status.processing { color: #a88745; }.status.processing i { background: var(--amber); animation: blink 1s infinite; }.card-menu { position: absolute; right: 8px; bottom: 10px; width: 20px; height: 20px; display: grid; place-items: center; padding: 0; line-height: 1; color: #9aa29e; background: transparent; opacity: 0; transition: opacity .2s; }.model-card:hover .card-menu { opacity: 1; }.card-menu svg { width: 14px; height: 14px; }
.empty-state { display: grid; place-items: center; text-align: center; padding: 80px 20px; }.empty-state.hidden { display: none; }.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #a5ada7; border: 1px solid #d8d9d0; border-radius: 50%; }.empty-icon svg { width: 20px; height: 20px; }.empty-state h3 { margin: 17px 0 7px; font: 600 19px var(--display); }.empty-state p { color: #929b96; font-size: 11px; margin: 0 0 17px; }

.inspector-header { padding-bottom: 14px; border-bottom: 1px solid #e9e8e1; }.inspector-header h2 { font-size: 23px; }.inspector-preview { position: relative; height: 170px; overflow: hidden; background: #e5e6df; margin: 14px 0; border-radius: 5px; }.inspector-preview .visual-grid { background-size: 19px 19px; }.inspector-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }.inspector-preview canvas:active { cursor: grabbing; }.inspector-preview .visual-label { top: 11px; left: 12px; }.inspector-preview .visual-format { top: 10px; right: 10px; }.inspector-preview-footer { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-between; color: #68746e; font: 9px var(--mono); }.preview-status { position: absolute; left: 12px; bottom: 28px; color: #718079; font: 8px var(--mono); }.inspector-name { display: flex; gap: 7px; align-items: center; }.inspector-name h3 { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.35; font-weight: 700; }.rename-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; color: #a0a8a3; background: transparent; padding: 0; line-height: 1; border-radius: 4px; }.rename-button svg { width: 13px; height: 13px; }.inspector-section { margin-top: 20px; }.inspector-section-title { color: #939c97; font: 500 9px var(--mono); letter-spacing: .11em; text-transform: uppercase; margin-bottom: 10px; }.meta-table { display: grid; gap: 9px; }.meta-row { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }.meta-row dt { color: #929b96; }.meta-row dd { max-width: 175px; margin: 0; text-align: right; color: #4e5a57; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 10px var(--mono); }.tag-list { display: flex; gap: 5px; flex-wrap: wrap; }.tag { padding: 5px 7px; background: #f1f0e9; color: #68736f; border-radius: 3px; font-size: 9px; }.inspector-description { margin: 0; color: #75817d; font-size: 10px; line-height: 1.65; overflow-wrap: anywhere; }.inspector-actions { display: grid; grid-template-columns: 1fr 1fr 34px; gap: 7px; margin-top: 24px; }.inspector-actions .button { min-height: 36px; padding-left: 9px; padding-right: 9px; }.danger-button { display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1; border: 1px solid #e6d5d1; background: #fffaf8; color: var(--danger); border-radius: 5px; }.danger-button:hover { background: #faeee9; }.danger-button svg { width: 15px; height: 15px; }.version-line { display: flex; gap: 9px; align-items: flex-start; }.version-line > span { width: 6px; height: 6px; margin-top: 4px; background: var(--amber); border-radius: 50%; box-shadow: 0 0 0 3px var(--amber-soft); }.version-line div { flex: 1; }.version-line strong { display: block; color: #55625e; font-size: 10px; font-weight: 600; }.version-line small { display: block; margin-top: 3px; color: #9ca49f; font: 9px var(--mono); }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(14,18,19,.48); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }.modal-card { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; width: min(560px, calc(100vw - 40px)); background: var(--panel); border: 1px solid #d9d7cc; border-radius: 11px; box-shadow: 0 20px 70px rgba(10,14,15,.28); transform: translateY(6px); transition: transform .25s; }.modal-backdrop.is-open .modal-card { transform: translateY(0); }.modal-header { position: sticky; top: 0; z-index: 2; background: var(--panel); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 17px; border-bottom: 1px solid #e8e6de; }.modal-header h2 { margin: 7px 0 0; font: 600 25px var(--display); }.drop-zone { position: relative; margin: 22px 24px 14px; padding: 33px 20px 29px; text-align: center; border: 1px dashed #c7c6bc; border-radius: 7px; background: #f5f4ee; transition: background .2s, border .2s; }.drop-zone.is-dragover { background: #f1e6c9; border-color: var(--amber); }.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }.drop-orbit { width: 41px; height: 41px; display: grid; place-items: center; margin: 0 auto 13px; border: 1px solid #c9c9bf; color: #8e9892; border-radius: 50%; }.drop-orbit svg { width: 19px; height: 19px; }.drop-zone h3 { margin: 0; font: 600 17px var(--display); color: #394542; }.drop-zone p { margin: 7px 0 10px; color: #8d9691; font-size: 10px; }.drop-note { color: #9e7d35; font: 9px var(--mono); }.import-queue { display: grid; gap: 7px; padding: 0 24px; max-height: 160px; overflow-y: auto; }.queue-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #e7e5dc; border-radius: 5px; }.queue-icon { width: 27px; height: 27px; display: grid; place-items: center; color: #77847e; background: #eeeee7; border-radius: 4px; font: 8px var(--mono); }.queue-body { flex: 1; min-width: 0; }.queue-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #56635f; font-size: 10px; }.queue-status { color: #9aa39e; margin-top: 3px; font: 8px var(--mono); }.queue-status.ready { color: #6d9584; }.queue-remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #a0a8a4; background: transparent; padding: 0; line-height: 1; border-radius: 4px; }.queue-remove svg { width: 13px; height: 13px; }.modal-footer { position: sticky; bottom: 0; z-index: 2; background: var(--panel); display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding: 16px 24px 18px; border-top: 1px solid #e8e6de; }.modal-tip { display: flex; align-items: center; gap: 7px; color: #9aa19c; font-size: 9px; }.modal-tip svg { width: 14px; height: 14px; }.modal-footer .button:disabled { cursor: default; opacity: .4; transform: none; box-shadow: none; }
.edit-modal-card { width: min(620px, calc(100vw - 40px)); }.edit-form { display: grid; gap: 14px; padding: 21px 24px 0; }.edit-form label { display: grid; gap: 7px; color: #7b8580; font: 500 9px var(--mono); }.edit-form input, .edit-form select, .edit-form textarea { width: 100%; border: 1px solid #deddd5; border-radius: 5px; background: #fffefa; color: var(--ink); outline: none; padding: 10px 11px; font: 11px var(--body); }.edit-form textarea { resize: vertical; line-height: 1.55; }.edit-form input:focus, .edit-form select:focus, .edit-form textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(219,166,59,.12); }.edit-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.edit-form .modal-footer { margin: 2px -24px 0; }
.toast-region { position: fixed; right: 24px; bottom: 22px; z-index: 30; display: grid; gap: 8px; }.toast { display: flex; align-items: center; gap: 9px; min-width: 230px; padding: 12px 14px; color: #eff1eb; background: var(--ink); border-radius: 6px; box-shadow: 0 8px 24px rgba(18,25,26,.22); font-size: 10px; animation: toastIn .3s both; }.toast svg { width: 15px; height: 15px; color: var(--amber); }.toast-error { background: #6d3933; }.toast.is-leaving { animation: toastOut .25s both; }
.hidden { display: none !important; }
.pagination { flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: #89988d; font: 10px var(--mono); }
.pagination:empty { display: none; }.pagination .button { min-height: 30px; font-size: 10px; }
.preview-placeholder-content, .visual-label, .visual-format { pointer-events: none; }
.panel-heading h2 #libraryTitle { color: var(--ink); font: inherit; margin: 0; }
.storage-meta { margin-top: 12px; }
.metric-value.time-value > span { font: 600 23px var(--display); color: var(--ink); }
.model-thumbnail { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.model-visual .visual-label, .model-visual .visual-format { z-index: 2; }
.model-visual .visual-label { max-width: calc(100% - 75px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 8px; }
.model-thumb-placeholder { position: absolute; inset: 0; display: grid; place-content: center; color: #7c8981; font: 500 21px var(--mono); letter-spacing: .03em; }
.model-thumb-placeholder.is-rendering { font-size: 11px; }
.card-menu { right: 8px; top: 34px; bottom: auto; width: 28px; height: 28px; z-index: 3; border: 1px solid #d0d5cc; border-radius: 4px; background: #f9f8f1e0; }
.card-menu:focus { opacity: 1; }
.status.source i, .status.archived i { background: #88978f; }
.status.source, .status.archived { color: #88978f; }
.status.error { color: #a45f52; }.status.error i { background: #a45f52; }
.detail-status { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 10px; color: #729183; line-height: 1.6; }
.detail-status i { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.detail-status.processing, .detail-status.source { color: #967536; }.detail-status.error { color: #a45f52; }
.inspector-preview { height: 205px; }
.inspector-preview canvas { touch-action: none; }
.inspector-preview .visual-label { max-width: 70%; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.preview-status { pointer-events: none; bottom: 34px; right: 52px; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inspector-preview-footer { pointer-events: none; right: 52px; bottom: 12px; gap: 8px; }
.expand-preview { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; line-height: 1; border-radius: 4px; border: 1px solid #c7cfc5; background: #f5f5ede0; color: #617268; }
.expand-preview svg { width: 16px; height: 16px; pointer-events: none; }
.expand-preview:hover { background: #fffefa; border-color: #9daa9d; color: var(--ink); }
.expand-preview:focus-visible, .sidebar-settings:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.preview-placeholder { min-height: 195px; }
.preview-placeholder-content { position: relative; display: grid; place-content: center; text-align: center; height: 100%; padding: 27px; }
.preview-placeholder-content strong { font: 600 16px var(--display); }
.preview-placeholder-content p { font-size: 11px; color: #738279; line-height: 1.8; margin: 10px 0 0; }
.inspector-actions-wide { grid-template-columns: 1fr 1fr; }
.inspector-actions-wide .danger-button { min-height: 36px; }
.archived-actions { grid-template-columns: 1fr 1fr; }
.inline-link { padding: 0; color: #8d713c; background: transparent; text-align: left; margin-top: 15px; font-size: 10px; }
.button:disabled { opacity: .45; cursor: default; transform: none; }
.button.is-danger { background: #974d42; }
.viewer-modal-card { width: min(1100px, calc(100vw - 50px)); }
.viewer-modal-card h2 { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 22px; }
.viewer-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 22px; background: #f3f2eb; border-bottom: 1px solid var(--line); }
.viewer-toolbar .button { min-height: 32px; }.viewer-toolbar .is-active { color: #8d672c; background: #eee0bb; }
.preview-color-control, .viewer-color-control { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #748178; font-size: 10px; }
.preview-color-control { margin-top: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.preview-color-control select, .viewer-color-control select { min-height: 32px; border: 1px solid var(--line); border-radius: 4px; background: #fffefa; color: var(--ink); padding: 0 8px; font-size: 10px; }
.preview-color-control select:focus-visible, .viewer-color-control select:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.viewer-color-control { margin-left: auto; }
.large-viewport { position: relative; height: min(65vh, 650px); background: #e8ebe4; }
.large-viewport canvas { width: 100%; height: 100%; touch-action: none; cursor: grab; }
.large-viewport canvas:active { cursor: grabbing; }
.viewer-hint { position: absolute; bottom: 18px; left: 25px; font: 10px var(--mono); color: #829086; pointer-events: none; }
.viewer-measure { padding: 13px 24px; color: #77877c; font: 10px var(--mono); }
.info-content { padding: 20px 24px 26px; max-height: 70vh; overflow: auto; }
.info-intro { color: #7a857e; font-size: 11px; line-height: 1.8; margin: 0 0 18px; }
.settings-grid { display: grid; gap: 18px; }.settings-grid > div { display: grid; gap: 7px; }
.settings-grid span { color: #929c94; font-size: 10px; }.settings-grid strong { font-weight: 500; font-size: 12px; line-height: 1.8; }
.settings-actions { padding-top: 24px; }.settings-actions a { text-decoration: none; }
.archive-list { display: grid; gap: 10px; }.archive-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; border-bottom: 1px solid #e8e8df; padding-bottom: 10px; }
.archive-row > div { min-width: 0; }.archive-row strong { display: block; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }.archive-row span { display: block; margin-top: 5px; color: #7a857e; font: 9px var(--mono); }
.archive-row .button { flex-shrink: 0; min-height: 32px; font-size: 10px; padding: 0 10px; text-decoration: none; }
.archive-file-info { flex: 1; }.archive-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.archive-downloads { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.download-label { color: #77837c; font-size: 10px; margin-bottom: 9px; }
.download-formats, .archive-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.format-download { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 9px; min-height: 32px; border: 1px solid #d5d7cd; border-radius: 4px; background: #f2f2eb; color: #43574f; font: 500 10px var(--mono); text-decoration: none; }
.format-download:hover { background: #e9ede3; border-color: #b4c1b3; }.format-download svg { width: 13px; height: 13px; }
.format-download small, .archive-filter small { color: #829085; font: 9px var(--mono); }
.archive-toolbar { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.archive-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: #748178; font: 10px var(--mono); }
.archive-filter:hover { background: #efeee8; }.archive-filter.is-active { border-color: var(--ink); background: var(--ink); color: #f2f0e6; }.archive-filter.is-active small { color: #c6d1c5; }
.queue-category-label { display: flex; align-items: center; gap: 9px; margin-top: 8px; color: #859086; font-size: 10px; }
.queue-category { width: min(180px, 100%); min-height: 30px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fffefa; color: var(--ink); font-size: 10px; }
.queue-category:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.import-queue { max-height: min(34vh, 300px); }.queue-icon, .queue-remove { flex-shrink: 0; }
.activity-list { display: grid; gap: 18px; }.activity-row { display: flex; gap: 11px; }.activity-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-top: 5px; }
.activity-row strong { font-weight: 500; font-size: 12px; }.activity-row small { display: block; margin-top: 7px; color: #96a098; font-size: 10px; }
.confirm-card { max-width: 450px; }.confirm-card > p { padding: 0 24px; line-height: 1.9; color: #7b867f; font-size: 12px; }.confirm-card .modal-header h2 { font-size: 24px; }
.upload-progress { padding: 14px 24px 0; }.upload-progress > div { height: 4px; border-radius: 2px; background: #e4e6dd; overflow: hidden; }.upload-progress span { display: block; height: 100%; background: #d4a64d; width: 0%; transition: width .15s; }.upload-progress p { color: #829187; font: 10px var(--mono); margin: 8px 0 0; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
/* Icon dimensions follow the SVG box, independently of font metrics or flex pressure. */
button svg, a.button svg, .format-download svg, .search-box svg { flex-shrink: 0; }
button svg, a.button svg, .format-download svg { pointer-events: none; }
.modal-header > div { flex: 1; min-width: 0; }
.modal-header h2 { min-width: 0; overflow-wrap: anywhere; }
.modal-header > .icon-button.modal-close { flex: 0 0 32px; width: 32px; height: 32px; margin: 0; padding: 0; }
.modal-header > .icon-button.modal-close svg { width: 16px; height: 16px; }
.rename-button:hover, .queue-remove:hover { background: var(--paper-deep); color: var(--ink); }
.access-gate { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(360px, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.access-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; background: var(--sidebar); color: #f2efe4; padding: clamp(28px, 5vw, 72px); overflow: hidden; }
.access-wordmark { display: flex; align-items: center; gap: 17px; }.access-wordmark strong { font-size: 18px; letter-spacing: .1em; }
.access-story-copy { position: relative; z-index: 1; }.access-story-copy .eyebrow { color: #9ca69f; font-size: 9px; }
.access-story-copy h1 { font-size: clamp(35px, 4vw, 64px); line-height: 1.4; letter-spacing: -.03em; margin: 24px 0; }
.access-story-copy p { color: #9eaaa5; font-size: 12px; line-height: 2; }.access-story-foot { color: #75857f; font-size: 10px; }
.access-sketch { position: absolute; right: -28px; bottom: -100px; width: 210px; height: 230px; transform: skewY(-20deg); opacity: .3; z-index: -1; }
.access-sketch i { position: absolute; width: 140px; height: 90px; border: 1px solid var(--amber); background: #dba63b08; }
.access-sketch i:nth-child(2) { top: 50px; left: 35px; }.access-sketch i:nth-child(3) { top: 100px; left: 70px; }
.access-form-region { display: grid; place-items: center; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 32px; }
.access-card { width: 100%; max-width: 390px; }.access-card h2 { font-size: 27px; margin: 14px 0 10px; }.access-card > p { color: #7c8780; font-size: 12px; line-height: 1.7; }
.access-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 28px 0 24px; gap: 28px; }
.access-tabs button { padding: 0 0 12px; color: #8a948c; background: transparent; font-size: 12px; }.access-tabs .is-active { color: var(--ink); box-shadow: 0 2px 0 var(--amber); font-weight: 600; }
.access-form { display: grid; gap: 17px; }.access-form label { display: grid; gap: 8px; font-size: 11px; color: #657268; }
.access-form input { width: 100%; padding: 12px 13px; background: #fffefa; border: 1px solid #d9dcd1; border-radius: 5px; font-size: 12px; outline: 0; color: var(--ink); }
.access-form input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px #dba63b18; }.access-form input::placeholder { color: #a1aaa0; }
.access-form .button { min-height: 43px; margin-top: 4px; font-size: 12px; }.access-form .button-primary { justify-content: space-between; padding: 0 16px; }
.access-note, .access-foot { color: #929c90; font-size: 10px; line-height: 1.8; }.access-note { margin: 0; }.access-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.access-error, .access-card > .access-error { color: #a75a4d; font-size: 11px; line-height: 1.7; margin: 14px 0 0; }.access-error:empty { display: none; }
.access-status { padding: 26px 0 0; }.access-status h3 { font-size: 20px; margin: 20px 0 10px; }.access-status p { color: #7c8780; font-size: 12px; line-height: 1.8; margin-bottom: 24px; }.access-status .button { margin: 0 6px 8px 0; }
.account-actions { display: flex; gap: 3px; }
.members-modal-card { width: min(760px, calc(100vw - 32px)); display: flex; flex-direction: column; }
#memberSummary { color: #879286; font-size: 11px; margin: 10px 0 0; }.members-modal-card .modal-header { flex-shrink: 0; }
.member-toolbar { display: flex; align-items: center; gap: 8px; padding: 16px 24px; flex-shrink: 0; }.member-toolbar input { min-width: 0; flex: 1; }
.member-toolbar input, .member-toolbar select, .member-review input { border: 1px solid var(--line); border-radius: 5px; background: #fffefa; color: var(--ink); min-height: 34px; padding: 7px 10px; font-size: 11px; }
.member-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 24px; }.member-row { display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding: 18px 0; }
.member-identity { flex: 1; min-width: 0; }.member-identity strong { display: block; font-size: 13px; overflow-wrap: anywhere; }.member-identity span { display: block; margin-top: 7px; font: 10px var(--mono); color: #7c897f; }.member-identity small { display: block; margin-top: 5px; font-size: 9px; color: #98a295; }
.member-state { flex-shrink: 0; display: inline-block; padding: 5px 8px; border-radius: 4px; font-size: 10px; }.state-pending { background: var(--amber-soft); color: #907233; }.state-approved { background: #e5eee4; color: #5b7c60; }.state-rejected, .state-disabled { background: #f1e7e1; color: #997667; }
.member-review { width: 220px; display: grid; gap: 8px; }.member-review-actions { display: flex; justify-content: flex-end; gap: 6px; }.member-review .button { min-height: 30px; padding: 0 12px; }.members-modal-card > .access-error { padding: 0 24px; margin: 0 0 12px; }
@media (max-width: 1100px) { .topbar-actions { gap: 7px; }.profile-chip { display: none; }.topbar-actions .sync-status { display: none; } }
@media (max-width: 640px) {
  .access-gate { grid-template-columns: 1fr; grid-template-rows: 70px minmax(0, 1fr); }.access-story { padding: 20px 24px; }.access-story-copy, .access-story-foot { display: none; }
  .access-form-region { padding: 24px; align-items: start; }.access-card h2 { font-size: 24px; }.access-tabs { margin-top: 20px; margin-bottom: 20px; }.access-form { gap: 13px; }
  .member-toolbar { padding: 12px 14px; }.member-list { padding: 0 14px 14px; }.member-row { flex-wrap: wrap; gap: 12px; }.member-review { width: 100%; }
  #openMembers { padding: 0 7px; min-height: 28px; font-size: 10px; }.topbar .breadcrumbs { display: none; }.topbar { justify-content: flex-end; }
}
/* Each panel owns its scroll; the document stays at the viewport size. */
.scroll-region { overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bcc3b9 transparent; }
.scroll-region:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.category-list { scrollbar-color: #414c4e transparent; }
.library-scroll { flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 3px; margin: -3px; scrollbar-gutter: stable; }
#inspectorContent { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 8px; padding-bottom: 3px; margin-right: -8px; scrollbar-gutter: stable; }
.library-scroll .empty-state { padding: 28px 16px; }
.model-grid { align-content: start; }
.viewer-modal-card { display: flex; flex-direction: column; }
.viewer-modal-card .modal-header, .viewer-toolbar, .viewer-measure { flex-shrink: 0; }
.large-viewport { flex: 1 1 auto; min-height: 120px; }

@media (min-width: 901px) and (max-width: 1250px) {
  .sidebar { width: 196px; padding-left: 12px; padding-right: 12px; }
  .brand-lockup { padding: 0 5px; }.brand-name { font-size: 16px; }
  .main-content { padding-left: 24px; padding-right: 24px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-panel { padding: 16px; }
  .filter-toolbar { flex-wrap: wrap; }.search-box { flex-basis: 100%; max-width: none; }
  .filter-actions { width: 100%; }.select-wrap { flex: 1; }.select-wrap select { width: 100%; }
  .hero-copy { max-width: 420px; }
  .topbar-actions { gap: 12px; }.topbar-actions .sync-status { display: none; }
  .metric-glyph, .member-stack, .status-orbit { display: none; }
}
@media (max-width: 900px) {
  .sidebar { width: 180px; padding: 18px 12px 12px; }
  .brand-lockup { padding: 0; gap: 9px; margin-bottom: 20px; }.brand-name { font-size: 14px; }.brand-sub { font-size: 6px; }
  .brand-mark { width: 26px; height: 26px; }
  .main-content { padding: 0 16px 14px; }
  .topbar { height: 48px; }.topbar-actions { gap: 8px; }.sync-status, .profile-chip { display: none; }
  .hero-section { padding: 14px 0; gap: 12px; }.hero-section h1 { font-size: 32px; }
  .hero-copy { max-width: 300px; font-size: 10px; }.hero-actions { gap: 6px; }
  .hero-actions .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
  .hero-actions .button svg { display: none; }
  .metrics-grid { gap: 8px; margin-bottom: 12px; }.metric-card { min-height: 78px; padding: 10px; }
  .metric-value { font-size: 26px; }.metric-value.time-value > span { font-size: 19px; }
  .metric-foot { bottom: 9px; font-size: 8px; }.metric-label { font-size: 8px; }
  .metric-glyph, .member-stack, .status-orbit { display: none; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; }
  .library-panel, .inspector-panel { padding: 12px; }
  .panel-heading h2, .inspector-header h2 { font-size: 20px; }
  .panel-kicker { font-size: 8px; }.inspector-header { padding-bottom: 10px; }
  .filter-toolbar { margin: 12px 0 10px; gap: 8px; }
  .search-box { max-width: none; }.search-box kbd { display: none; }
  .filter-actions { gap: 6px; }.select-wrap select { min-width: 90px; padding-left: 8px; padding-right: 24px; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .model-visual { height: 105px; }.model-grid.list-view .model-visual { width: 130px; min-width: 130px; }
  .inspector-preview { height: 180px; }
  .inspector-panel.is-collapsed { padding-bottom: 12px; }
}
@media (max-width: 640px), (max-width: 800px) and (max-height: 500px) {
  .app-shell { flex-direction: column; }
  .sidebar { position: relative; width: 100%; padding: 10px 12px 8px; gap: 6px; }
  .brand-lockup { margin: 0 0 3px; gap: 9px; }.brand-mark { width: 22px; height: 22px; }
  .brand-name { font-size: 15px; }.brand-sub { display: none; }
  .sidebar-section-label { display: none; }
  .primary-nav { display: flex; gap: 4px; }
  .nav-item { min-height: 30px; padding: 0 7px; }.nav-item svg { display: none; }
  .nav-item span:nth-child(2) { font-size: 10px; white-space: nowrap; }.nav-count { margin-left: 5px; font-size: 9px; }
  .category-list { display: flex; flex: none; gap: 5px; margin: 0; overflow-x: auto; overflow-y: hidden; }
  .category-group { display: flex; gap: 5px; flex-shrink: 0; }.category-group-label { display: none; }
  .category-item { min-height: 29px; width: auto; padding: 0 8px; gap: 6px; background: #20282a; white-space: nowrap; border-radius: 4px; }
  .category-item > span:nth-child(2) { font-size: 10px; }.category-item > span:last-child { margin-left: 2px; font-size: 9px; }
  .category-dot { width: 5px; height: 5px; margin: 0; }
  .sidebar-footer { display: contents; }.storage-card { display: none; }
  .sidebar-settings { position: absolute; top: 6px; right: 10px; width: 30px; min-height: 30px; height: 30px; padding: 0; justify-content: center; gap: 0; }
  .sidebar-settings svg { display: block; width: 17px; height: 17px; margin: 0; }.sidebar-settings span { display: none; }
  .main-content { width: 100%; padding: 0 10px 10px; }
  .topbar { height: 40px; }.breadcrumbs { font-size: 10px; }.crumb-divider { padding: 0 6px; }
  .topbar-actions { gap: 4px; }.external-library-link { min-height: 28px; padding: 0 8px; font-size: 10px; gap: 5px; }
  .topbar-actions .icon-button { width: 28px; height: 28px; }
  .hero-section { padding: 10px 0; gap: 8px; }.hero-section h1 { font-size: 26px; margin: 0; }
  .eyebrow, .hero-copy { display: none; }.hero-actions { gap: 5px; }
  .hero-actions .button { min-height: 30px; padding: 0 8px; font-size: 10px; }
  .metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-bottom: 8px; }
  .metric-card { min-height: 60px; padding: 9px 8px; border-radius: 6px; }
  .metric-label { font-size: 8px; letter-spacing: 0; white-space: nowrap; }
  .metric-value { margin-top: 7px; font-size: 23px; }.metric-value span { font-size: 9px; }
  .metric-value.time-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .metric-value.time-value > span { font: 600 13px var(--body); }.metric-foot { display: none; }
  .workspace-grid { grid-template-rows: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px; }
  .library-panel, .inspector-panel { padding: 10px; border-radius: 7px; }
  .panel-heading, .inspector-header { align-items: center; }
  .panel-heading .panel-kicker, .inspector-header .panel-kicker { display: none; }
  .panel-heading h2, .inspector-header h2 { margin: 0; font-size: 18px; }
  .panel-heading-actions { gap: 3px; }.icon-button.subtle, .view-toggle { width: 27px; height: 27px; }
  .filter-toolbar { flex-wrap: wrap; margin: 8px 0; gap: 6px; }
  .filter-toolbar { flex-wrap: nowrap; }
  .search-box { flex-basis: 0; height: 31px; padding: 0 7px; }.search-box svg { margin-right: 5px; }
  .filter-actions { width: 174px; flex-shrink: 0; }.select-wrap { flex: 1; min-width: 0; height: 31px; }
  .select-wrap select { min-width: 0; width: 100%; font-size: 9px; }.select-wrap svg { top: 50%; }
  .active-filters { margin-bottom: 6px; }
  .pagination { gap: 8px; margin-top: 8px; padding-top: 8px; font-size: 9px; }
  .pagination .button { min-height: 27px; padding: 0 9px; font-size: 9px; }
  .model-card-body { padding: 10px 9px; }.model-card-title { font-size: 10px; }
  .model-visual .visual-label { display: none; }.model-grid.list-view .model-visual { width: 105px; min-width: 105px; }
  .inspector-header { padding-bottom: 8px; }.inspector-preview { margin-top: 10px; }
  .preview-color-control select, .viewer-color-control select { min-height: 34px; }
  .archive-row { flex-wrap: wrap; align-items: flex-start; gap: 10px; padding-bottom: 14px; }
  .archive-file-info { flex-basis: 100%; }.archive-actions { width: 100%; justify-content: flex-end; }
  .archive-actions .button, .format-download, .archive-filter { min-height: 36px; }
  .modal-card { max-height: calc(100dvh - 20px); width: calc(100vw - 20px); }
  .modal-header { padding: 15px 16px; }.modal-header h2 { font-size: 22px; }
  .modal-footer { padding: 12px 16px; flex-wrap: wrap; }.modal-tip { line-height: 1.7; }
  .drop-zone { margin: 16px; padding: 20px 14px; }.import-queue { padding: 0 16px; }
  .viewer-toolbar { padding: 10px; gap: 5px; }.viewer-toolbar .button { min-height: 29px; padding: 0 8px; font-size: 9px; }
  .viewer-color-control { margin-left: 0; }.viewer-modal-card h2 { max-width: 250px; }
  .edit-form { padding: 16px 16px 0; }.edit-form-grid { grid-template-columns: 1fr; }
  .edit-form .modal-footer { margin-left: -16px; margin-right: -16px; }.info-content { max-height: none; padding: 16px; }
  .toast-region { left: 12px; right: 12px; bottom: 12px; }.toast { min-width: 0; }
}
@media (max-width: 640px) and (max-height: 700px), (max-width: 800px) and (max-height: 500px) {
  .sidebar { padding-top: 8px; padding-bottom: 6px; gap: 4px; }
  .topbar { height: 34px; }.hero-section { padding: 6px 0; }.hero-section h1 { font-size: 24px; }
  .metric-card { min-height: 52px; padding: 7px; }.metric-value { margin-top: 5px; font-size: 21px; }
  .workspace-grid { grid-template-rows: minmax(0, 1.7fr) minmax(0, 1fr); }
  .library-panel, .inspector-panel { padding: 8px; }
  .pagination { margin-top: 5px; padding-top: 5px; }
  .model-visual { height: 75px; }
}
@media (min-width: 821px) and (max-width: 900px) and (min-height: 601px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 260px; grid-template-rows: minmax(0, 1fr); }
  .filter-toolbar { flex-wrap: wrap; }.search-box { flex-basis: 100%; }
  .filter-actions { width: 100%; }.select-wrap { flex: 1; }.select-wrap select { width: 100%; }
}
/* Short screens retain the same panel structure with a compact overview. */
@media (min-width: 641px) and (max-height: 700px) {
  .sidebar { padding-top: 14px; padding-bottom: 10px; }.brand-lockup { margin-bottom: 14px; }
  .nav-item { min-height: 35px; }.section-spaced { margin-top: 12px; }
  .category-list { margin-bottom: 10px; }.storage-card { padding: 10px; margin-bottom: 8px; }
  .topbar { height: 44px; }.hero-section { padding: 10px 0; }.hero-section h1 { font-size: 32px; }
  .hero-copy, .eyebrow { display: none; }
  .metrics-grid { margin-bottom: 10px; }.metric-card { min-height: 66px; padding: 9px 12px; }
  .metric-value { font-size: 25px; }.metric-foot { display: none; }
  .library-panel, .inspector-panel { padding: 12px; }
  .filter-toolbar { margin-top: 10px; margin-bottom: 8px; }
}
@media (max-width: 900px) and (min-width: 641px) and (max-height: 600px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 245px; grid-template-rows: minmax(0, 1fr); }
  .filter-toolbar { flex-wrap: wrap; }.search-box { flex-basis: 100%; }
  .filter-actions { width: 100%; }.select-wrap { flex: 1; }.select-wrap select { width: 100%; }
  .hero-section h1 { font-size: 28px; }.metrics-grid { gap: 5px; }
}
@media (min-width: 641px) and (max-height: 500px) {
  .brand-lockup { margin-bottom: 12px; }.sidebar-section-label { margin-bottom: 8px; }
  .primary-nav { grid-template-columns: 1fr 1fr; gap: 4px; }
  .primary-nav .nav-item { min-height: 30px; padding: 0 6px; }
  .primary-nav .nav-item svg { display: none; }.primary-nav .nav-item span:nth-child(2) { font-size: 10px; }
  .primary-nav .nav-count { font-size: 8px; margin-left: 3px; }
  .storage-card { padding: 9px; }.storage-meta { display: none; }.sidebar-settings { min-height: 30px; }
  .topbar { height: 36px; }.hero-section { padding: 6px 0; }.hero-section h1 { margin: 0; font-size: 28px; }
  .metric-card { min-height: 52px; padding: 8px 10px; }.metric-value { font-size: 23px; margin-top: 6px; }
  .metric-value.time-value > span { font-size: 18px; }
  .panel-heading .panel-kicker, .inspector-header .panel-kicker { display: none; }
  .panel-heading h2, .inspector-header h2 { margin: 0; font-size: 18px; }
  .panel-heading, .inspector-header { align-items: center; }.inspector-header { padding-bottom: 8px; }
  .filter-toolbar { flex-wrap: nowrap; gap: 6px; margin: 8px 0; }
  .search-box { flex-basis: 0; height: 31px; }.search-box kbd { display: none; }
  .filter-actions { flex-shrink: 0; width: 174px; gap: 5px; }.select-wrap { flex: 1; min-width: 0; height: 31px; }
  .select-wrap select { width: 100%; min-width: 0; font-size: 9px; }.select-wrap svg { top: 50%; }
  .pagination { margin-top: 6px; padding-top: 6px; gap: 8px; font-size: 9px; }
  .pagination .button { padding: 0 8px; min-height: 27px; }
}
@media (max-width: 800px) and (max-height: 500px) {
  .sidebar { padding: 8px 12px 6px; gap: 4px; }.category-list { margin: 0; }
  .sidebar .brand-lockup { display: none; }.primary-nav { padding-right: 28px; }
  .sidebar-settings { top: 6px; right: 6px; }
  .main-content { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 38px 44px minmax(0, 1fr); gap: 6px 8px; padding-bottom: 6px; }
  .topbar { grid-column: 1; height: auto; border-bottom: 0; }.breadcrumbs { display: none; }
  .hero-section { grid-column: 2; padding: 0; justify-content: flex-end; }.hero-section > div:first-child { display: none; }
  .metrics-grid { grid-column: 1 / -1; margin: 0; }.metric-card { min-height: 0; padding: 5px 8px; }
  .metric-value { font-size: 19px; margin-top: 4px; }.metric-value.time-value > span { font: 600 13px var(--body); }
  .workspace-grid { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 210px; grid-template-rows: minmax(0, 1fr); }
  .library-panel, .inspector-panel { padding: 8px; }
  .filter-actions { width: 164px; }.pagination { gap: 6px; }.pagination .button { padding: 0 6px; }
}
@media (max-width: 500px) and (max-height: 500px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.6fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }


