:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172238;background:#f5f6f8;font-size:16px;font-synthesis:none;--bg:#f5f6f8;--surface:#fff;--ink:#172238;--muted:#6c7482;--line:#e5e8ee;--accent:#245ad5;--soft:#edf2fd;--navy:#122345;--red:#dc3546;--green:#267457;--shadow:0 8px 35px #182a4510;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #82aaff;outline-offset:3px}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:clamp(32px,4vw,44px);letter-spacing:-1.8px;font-weight:720;line-height:1.1}h2{font-size:26px;letter-spacing:-.7px;line-height:1.25}h3{font-size:19px;letter-spacing:-.3px}p{line-height:1.55}button{border:0;background:none;color:inherit;min-height:44px}input,textarea,select{border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);min-height:46px;padding:12px 14px;min-width:0;width:100%}input::placeholder,textarea::placeholder{color:#89919d}input[type=checkbox]{accent-color:var(--accent);width:20px;height:20px;min-height:20px;flex-shrink:0}textarea{resize:vertical;line-height:1.55}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg width='14' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%236c7482' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;padding-right:40px}label{display:grid;gap:8px;font-size:14px;font-weight:550}.shell{max-width:1600px;margin:auto;min-height:100dvh;display:grid;grid-template-columns:235px 1fr}.sidebar{padding:32px 20px 26px 26px;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100dvh;background:var(--surface)}.brand{display:flex;align-items:center;gap:11px;color:var(--navy);text-decoration:none!important}.brand img{width:47px;height:47px;border-radius:14px;object-fit:cover}.brand span{font-size:26px;letter-spacing:-1.2px;font-style:italic;font-weight:900}.brand small{font-size:9px;font-style:normal;letter-spacing:1.6px;display:block;margin-top:2px}.sidebar nav{margin-top:52px;display:grid;gap:8px}.nav-item{display:flex;gap:12px;align-items:center;text-align:left;padding:12px 14px;border-radius:12px;font-size:14px;font-weight:550;color:var(--muted)}.nav-item:hover{background:var(--bg)}.nav-item.selected{background:var(--soft);color:var(--accent)}.nav-icon{font-size:21px;font-weight:400;width:22px;text-align:center}.count{background:var(--surface);border-radius:6px;padding:2px 7px;font-size:12px;margin-left:auto}.draft-indicator{width:7px;height:7px;background:var(--accent);border-radius:50%;margin-left:auto}.sidebar-bottom{margin-top:auto;padding:20px 12px 0}.sidebar-bottom p{font-size:23px;font-weight:650;line-height:1.25;letter-spacing:-.6px;margin:20px 0}.sidebar-bottom a{font-size:13px;color:var(--muted)}.private-tag{font-size:12px;color:var(--muted);border-left:3px solid var(--red);padding-left:9px}.workspace{min-width:0;display:flex;flex-direction:column}.topbar{height:88px;display:flex;align-items:center;gap:18px;padding:0 42px;border-bottom:1px solid var(--line)}.breadcrumb{font-size:13px;color:var(--muted);margin-right:auto}.breadcrumb span{padding:0 10px;color:#b4bbc8}.mode-badge{font-size:12px;border:1px solid var(--line);border-radius:22px;padding:8px 14px;min-height:34px;background:var(--surface);font-weight:550}.owner-avatar{border-radius:50%;display:grid;place-items:center;background:var(--navy);color:white;font-size:13px;font-weight:700;width:34px;height:34px}main{padding:42px;flex:1;outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.9px;color:var(--muted);display:block;margin-bottom:12px}.subtitle{color:var(--muted);font-size:14px;margin-top:12px}.primary,.secondary,.danger-button{min-height:46px;border-radius:12px;padding:12px 19px;font-size:14px;font-weight:650;display:inline-flex;justify-content:center;align-items:center;gap:8px;text-decoration:none!important}.primary{background:var(--navy);color:white;box-shadow:0 4px 10px #13284b14}.primary:hover{background:#244172}.primary.blue{background:var(--accent)}.secondary{border:1px solid var(--line);background:var(--surface)}.secondary:hover{background:var(--soft)}.text-button{color:var(--accent);font-size:14px;padding:5px 0;font-weight:550}.small{font-size:12px}.filters{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:22px;flex-wrap:wrap}.segments{display:flex;padding:4px;background:#e9ecf1;border-radius:12px;gap:2px}.segments button{font-size:13px;padding:9px 14px;min-height:36px;border-radius:8px;color:var(--muted);white-space:nowrap}.segments button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 2px 5px #1722380b}.segments button span{font-size:12px;opacity:.6;padding-left:6px}.filter-tools{display:flex;gap:10px}.filter-tools input{width:175px;font-size:13px}.filter-tools select{width:190px;font-size:13px}.model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.model-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 3px 14px #15253c04;transition:transform .18s,box-shadow .18s}.model-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.cover-button{display:block;width:100%;padding:0;position:relative;line-height:0;overflow:hidden}.cover-button img{width:100%;aspect-ratio:4/3.7;display:block;object-fit:cover}.photo-counter{position:absolute;bottom:13px;right:13px;border-radius:8px;padding:6px 8px;color:white;background:#15233c9e;backdrop-filter:blur(8px);font-size:12px;line-height:1}.status-pill{font-size:11px;font-weight:650;padding:5px 8px;border-radius:7px;display:inline-flex;background:#e8f4ec;color:var(--green);white-space:nowrap}.status-pill.inactive{background:#eef0f4;color:#657182}.model-card .status-pill{position:absolute;left:13px;top:13px;background:#fffffff0;box-shadow:0 2px 8px #182c4210}.card-content{padding:19px}.card-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.card-title button{padding:0;min-height:28px;text-align:left}.card-title h3{font-size:20px;font-weight:650}.card-number{font-size:12px;letter-spacing:1px;color:#929baa;font-variant-numeric:tabular-nums}.tags{display:flex;flex-wrap:wrap;gap:6px}.tag{display:inline-flex;padding:5px 8px;border-radius:7px;font-size:11px;font-weight:550;background:var(--soft);color:var(--accent);line-height:1.3}.flags{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px;min-height:22px}.flag{font-size:11px;color:var(--muted);display:inline-flex;align-items:center;gap:5px}.flag+.flag:before{content:'·';margin:0 2px}.card-bottom{border-top:1px solid var(--line);margin-top:16px;padding-top:13px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);gap:8px}.card-bottom a{font-size:12px;overflow-wrap:anywhere}.card-bottom button{font-size:12px;color:var(--accent);padding:0;min-height:30px;white-space:nowrap}.demo-note{font-size:12px;color:var(--muted);margin-top:22px;display:flex;align-items:center;gap:8px}.demo-note:before{content:'i';font:600 11px Georgia;border:1px solid #b2bac6;border-radius:50%;width:15px;height:15px;display:grid;place-items:center}.draft-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #cfdbf2;border-radius:14px;background:var(--soft);padding:16px 20px;margin-bottom:24px}.draft-banner p{font-size:13px;color:var(--muted);margin-top:4px}.draft-banner h3{font-size:15px}.app-footer{display:flex;justify-content:space-between;padding:22px 42px;color:#939ba8;font-size:10px;letter-spacing:1.1px}.empty{padding:80px 24px;text-align:center;background:var(--surface);border:1px dashed var(--line);border-radius:20px;grid-column:1/-1}.empty h2{font-size:24px}.empty p{color:var(--muted);font-size:14px;margin:12px auto 20px;max-width:360px}.loading{padding:100px 20px;text-align:center;color:var(--muted)}.back-button{font-size:14px;color:var(--muted);margin-bottom:24px;padding:0}.detail-layout{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(320px,1.2fr);gap:30px;align-items:start}.detail-photo{position:relative;background:var(--surface);border-radius:20px;overflow:hidden}.detail-photo button{padding:0;display:block;width:100%;line-height:0}.detail-photo img{width:100%;aspect-ratio:3/4;object-fit:cover}.gallery{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.thumb{width:68px;position:relative}.thumb button{padding:0;width:68px;min-height:0;line-height:0;border:2px solid transparent;border-radius:10px;overflow:hidden}.thumb button.chosen{border-color:var(--accent)}.thumb img{width:64px;height:78px;object-fit:cover}.thumb-label{font-size:9px;text-align:center;display:block;color:var(--accent);margin-top:4px}.thumb .remove-photo{position:absolute;right:-4px;top:-6px;width:23px;height:23px;background:var(--surface);border:1px solid var(--line);line-height:1;border-radius:50%;font-size:17px}.panel{background:var(--surface);padding:24px;border:1px solid var(--line);border-radius:18px}.panel+.panel{margin-top:18px}.panel-title{font-size:14px;font-weight:650;margin-bottom:18px}.detail-title{margin-bottom:18px}.detail-title h1{font-size:34px;margin-bottom:14px}.detail-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px 16px;margin:20px 0}.detail-fields dt{font-size:12px;color:var(--muted);margin-bottom:7px}.detail-fields dd{margin:0;font-size:14px;overflow-wrap:anywhere}.source-text{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;max-height:380px;overflow:auto}.note-text{white-space:pre-wrap;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.muted{color:var(--muted);font-size:14px}.action-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.editor-grid{display:grid;gap:18px}.editor-grid .row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.check-row{display:flex;gap:10px;align-items:center;min-height:42px;font-weight:400}.check-row input{margin:0}.platform-options{display:flex;flex-wrap:wrap;gap:8px}.platform-option{font-size:13px;display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;font-weight:400}.platform-option:has(input:checked){background:var(--soft);border-color:#a9bdea;color:var(--accent)}.platform-option input{width:16px;height:16px;min-height:16px;margin:0}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-size:14px;font-weight:550;margin-bottom:10px}.helper{font-size:12px;color:var(--muted);line-height:1.55}.autosave{font-size:12px;color:var(--muted);margin-top:8px;min-height:18px}.save-bar{position:sticky;bottom:12px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}.error{font-size:13px;color:#ba2637;line-height:1.5;white-space:pre-wrap}.upload-label{cursor:pointer;border:1px dashed #b8c5d8;border-radius:12px;padding:16px;text-align:center;margin:18px 0 8px;color:var(--accent);background:var(--surface);font-size:14px}.upload-label input{font-size:12px;border:0;padding:8px 0 0;min-height:0;border-radius:0}.upload-label input::file-selector-button{background:var(--soft);color:var(--accent);border:0;border-radius:6px;padding:8px;margin-right:8px;font:inherit}dialog{border:1px solid var(--line);border-radius:24px;padding:28px;background:var(--surface);color:var(--ink);width:min(540px,calc(100% - 28px));max-height:90dvh;box-shadow:0 24px 100px #06152938;overflow:auto}dialog::backdrop{background:#0e1e3a55;backdrop-filter:blur(7px)}.wide-dialog{width:min(650px,calc(100% - 28px))}.dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.dialog-head .eyebrow{font-size:10px;margin-bottom:8px}.dialog-head h2{font-size:25px}.icon-button{width:36px;height:36px;min-height:36px;flex-shrink:0;border-radius:50%;background:var(--bg);font-size:24px;font-weight:300}.bot-message{padding:16px 18px;border-radius:16px 16px 16px 4px;background:var(--bg);font-size:14px;line-height:1.6;margin-bottom:16px}.bot-message strong{display:block;margin-bottom:5px}.collection-summary{display:flex;gap:12px;align-items:center;background:var(--soft);border-radius:12px;padding:14px;color:var(--accent);font-size:13px;margin:18px 0}.collector-photos{display:flex;gap:6px;overflow:auto;margin:10px 0}.collector-photos img{width:68px;height:86px;object-fit:cover;border-radius:8px}.chat-item{font-size:13px;background:var(--soft);border-radius:12px;padding:12px;margin:8px 0;white-space:pre-wrap;max-height:180px;overflow:auto;line-height:1.6}.collector-controls{display:grid;gap:12px}.divider{height:1px;background:var(--line);margin:20px 0}.platform-line{display:flex;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}.platform-line input{font-size:14px}.platform-line button{font-size:12px;color:var(--accent);padding:8px}.platform-line .delete{color:var(--muted);font-size:22px}.inline-form{display:flex;gap:8px;margin-top:22px}.inline-form input{font-size:14px}.preview-step{padding:16px;border:1px solid var(--line);border-radius:12px;margin-top:12px}.preview-step>span{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.preview-step pre{font:13px/1.6 inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.preview-photos{display:flex;gap:6px;flex-wrap:wrap}.preview-photos img{width:62px;height:77px;object-fit:cover;border-radius:7px}.notice{padding:14px 16px;font-size:13px;line-height:1.6;background:var(--soft);border-radius:12px;color:var(--accent);margin-bottom:16px}.steps{padding-left:22px;font-size:14px;line-height:1.6}.steps li{margin:10px 0}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;box-shadow:var(--shadow);border-radius:14px;padding:14px 22px;font-size:14px;z-index:20;max-width:90vw;line-height:1.5}.photo-close{position:absolute;right:15px;top:15px}#photo-dialog{width:auto;padding:0;background:var(--navy);border:0;max-width:94vw}#large-photo{display:block;max-width:90vw;max-height:85dvh}button,.primary{transition:background .15s,transform .15s}@media(min-width:1450px){main{padding:50px 60px}.topbar,.app-footer{padding-left:60px;padding-right:60px}.model-grid{gap:24px}}@media(max-width:1150px){.shell{grid-template-columns:195px 1fr}.sidebar{padding:26px 14px}.brand{gap:8px}.brand span{font-size:23px}.brand img{width:40px;height:40px}.brand small{font-size:8px}.sidebar-bottom{padding:16px 10px}.topbar{padding:0 28px}main{padding:32px 28px}.model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-tools{flex:1;justify-content:flex-end}.detail-layout{gap:20px;grid-template-columns:minmax(190px,.7fr) minmax(280px,1fr)}.panel{padding:20px}}@media(max-width:780px){.shell{display:block}.sidebar{position:relative;height:auto;padding:18px 20px 0;display:block;border-right:0;border-bottom:1px solid var(--line)}.brand img{width:37px;height:37px;border-radius:10px}.brand span{font-size:24px}.brand small{font-size:8px}.sidebar nav{margin-top:18px;display:flex;gap:6px}.nav-item{flex:1;justify-content:center;font-size:13px;padding:10px 6px;border-radius:12px 12px 0 0}.nav-icon{font-size:18px;width:auto}.nav-item .count{margin:0}.sidebar-bottom{display:none}.topbar{height:56px;padding:0 20px}.owner-avatar{display:none}.breadcrumb{font-size:12px}.mode-badge{font-size:11px;padding:6px 10px;min-height:30px}main{padding:30px 20px}.page-heading{align-items:flex-start;gap:12px;margin-bottom:26px}.page-heading .primary{font-size:12px;padding:11px 13px;min-height:42px;margin-top:24px}.eyebrow{font-size:9px;margin-bottom:11px}.subtitle{font-size:13px;line-height:1.6}.filters{gap:14px}.segments{width:100%;justify-content:space-between}.segments button{flex:1;padding:9px 10px;font-size:13px}.filter-tools{width:100%;justify-content:stretch}.filter-tools input,.filter-tools select{width:50%;font-size:13px}.model-grid{gap:14px}.card-content{padding:14px}.card-title h3{font-size:17px}.card-number{font-size:10px}.card-bottom{flex-wrap:wrap;gap:4px}.model-card{border-radius:16px}.tag{font-size:10px;padding:4px 6px}.flag{font-size:10px}.card-content .flags{gap:5px}.status-pill{font-size:10px}.photo-counter{font-size:10px}.detail-layout{grid-template-columns:1fr}.detail-photo{max-width:430px;margin:auto}.detail-photo img{max-height:440px;aspect-ratio:1;object-position:center 30%}.gallery{justify-content:center}.detail-title h1{font-size:30px}.editor-grid .row{grid-template-columns:1fr}.app-footer{padding:20px;font-size:8px}.draft-banner{padding:14px;align-items:flex-start}.draft-banner .secondary{font-size:12px;padding:9px 12px;min-height:40px}.draft-banner p{font-size:12px}.save-bar .helper{max-width:150px}dialog{padding:22px;border-radius:20px}.dialog-head h2{font-size:22px}}@media(max-width:430px){.model-grid{grid-template-columns:1fr}.cover-button img{aspect-ratio:4/3}.card-content{padding:18px}.card-title h3{font-size:20px}.card-bottom{flex-wrap:nowrap}.tag,.flag{font-size:11px}.nav-icon{display:none}.page-heading h1{font-size:34px}.nav-item{font-size:12px}.page-heading .primary{max-width:136px}.breadcrumb{font-size:11px}.detail-fields{gap:18px 12px}.inline-form{flex-wrap:wrap}.inline-form input{flex:1;min-width:180px}.save-bar{bottom:8px}.save-bar .primary{padding:12px;font-size:13px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}:root.dark{color-scheme:dark;--bg:#111722;--surface:#192231;--ink:#edf2fa;--muted:#9ba8bb;--line:#2b3749;--accent:#83acff;--soft:#213451;--navy:#dce7fb;--green:#86d8ae;background:var(--bg);color:var(--ink)}.dark .primary,.dark .toast{background:#2e61c9;color:#fff}.dark .brand{color:var(--ink)}.dark .owner-avatar{background:#2e61c9}.dark .segments{background:#202c3d}.dark .status-pill{background:#244d3a}.dark .model-card .status-pill{background:#192231ed}.dark .status-pill.inactive{background:#283343;color:#b3bdce}.dark .draft-banner{border-color:#35527f}.dark .photo-counter{background:#111722b0}
/* Core record labels remain readable on both mobile and desktop. */
.tag,.flag,.card-bottom,.card-bottom a,.card-bottom button,.status-pill{font-size:14px}
.card-bottom{align-items:flex-start;flex-wrap:wrap}.card-bottom>span{min-width:0;overflow-wrap:anywhere}
.source-text,.note-text{font-size:16px}.nav-item{font-size:14px}

/* Union: original Figma typefaces and original artwork, responsive content. */
@font-face{font-family:UnionHeading;src:url('/union-heading.ttf') format('truetype');font-display:swap;font-weight:400}
@font-face{font-family:UnionLabel;src:url('/union-label.ttf') format('truetype');font-display:swap;font-weight:400}
:root,:root.dark{--bg:#040b1b;--surface:#0a1830;--ink:#f4f7ff;--muted:#a6bad7;--line:#243b61;--accent:#78baff;--soft:#112c55;--navy:#f4f7ff;--green:#91e6bf;--shadow:0 14px 40px #0004;background:var(--bg);color:var(--ink);color-scheme:dark}
body{background:linear-gradient(180deg,#030613aa,#07172dbb),url('/union-background.jpg') center top/cover fixed}
.shell{background:#040c1b88}.sidebar{background:#071225eb}.topbar{background:#061023aa}.brand,.dark .brand{color:#fff}.brand span{font-family:UnionLabel,sans-serif;font-style:normal;font-weight:400;letter-spacing:0}.brand small{font-family:inherit;font-size:9px;letter-spacing:1.8px}
h1,h2,h3,.detail-title h1,.card-title h3{font-family:UnionHeading,sans-serif;font-weight:400;letter-spacing:.3px;overflow-wrap:anywhere;line-height:1.05}
h1{font-size:clamp(44px,5vw,64px)}h2{font-size:36px}h3{font-size:28px}.card-title h3{font-size:32px}.detail-title h1{font-size:46px}.page-heading h1{font-size:clamp(44px,5vw,64px)}
.page-heading{padding:28px;border:1px solid #28528b;border-radius:24px;background:radial-gradient(ellipse at 100% 100%,#127cff88,transparent 65%),url('/union-background.jpg') center/cover;align-items:center}
.primary,.primary.blue,.dark .primary{background:linear-gradient(120deg,#266cff,#0d94ed);color:white;border:1px solid #52a8ff;border-radius:28px;box-shadow:0 0 0 4px #1677ef17,0 8px 28px #0068ff20;font-family:UnionLabel,sans-serif;font-weight:400;line-height:1.35}
.primary:hover,.dark .primary:hover{background:linear-gradient(120deg,#4083ff,#22a8fc)}.secondary{background:#102342;border-color:#30517d;border-radius:24px}.secondary:hover{background:#17375f}
.model-card{background:linear-gradient(150deg,#102852,#071429);border-color:#2a4976;border-radius:22px}.model-card:hover{border-color:#4294ef}.card-content{background:radial-gradient(ellipse at 110% 110%,#0875cf30,transparent 70%)}.card-title{gap:12px;align-items:flex-start}.card-title button{min-width:0;flex:1}.card-number{flex:none;color:#7297ca}.tag{color:#bedfff;background:#163b6b;border:1px solid #285994}.flag{color:#bfd1e9}.flags{align-items:flex-start}.flag{border:1px solid #294467;border-radius:7px;padding:5px 8px;line-height:1.4}.flag+.flag:before{content:none}.model-card .status-pill,.dark .model-card .status-pill{background:#092640eb;color:#b4f5d8;border:1px solid #3d7c80}.model-card .status-pill.inactive{color:#ccd5e5;background:#18293ded}.segments,.dark .segments{background:#0a1930;border:1px solid var(--line)}.segments button[aria-pressed=true]{background:#1e4c86;color:#fff}.panel,.empty,dialog{background:#0b1930}.draft-banner{background:linear-gradient(110deg,#10294c,#0b2041);border-color:#2e5a91}.draft-banner h3{font-size:25px}.mode-badge{color:#bddbff}.owner-avatar,.dark .owner-avatar{background:#173e72;color:white}.status-pill{background:#123e38;color:#a8edcb}.status-pill.inactive{background:#24344b;color:#c1cde0}.toast,.dark .toast{background:#173e72;color:white}.sidebar-bottom p{font-family:UnionHeading,sans-serif;font-size:32px;font-weight:400}.empty h2{font-size:34px}.dialog-head h2{font-size:32px}
/* Allow intrinsic content to shrink; never hide overflowing record data. */
.shell{grid-template-columns:235px minmax(0,1fr)}.workspace,main,.model-card,.card-content,.panel,.detail-layout>*,.detail-fields>*,.editor-grid>*,.editor-grid .row>*,.page-heading>*,.draft-banner>*,.save-bar>*{min-width:0}
button,a,label,p,.tag,.flag,.nav-item,.subtitle,.helper,.chat-item,.notice,.error,.autosave,.breadcrumb{overflow-wrap:anywhere}.tag,.flag{max-width:100%;white-space:normal}.primary,.secondary{max-width:100%;white-space:normal;text-align:center;flex-shrink:0}.card-bottom{gap:10px;align-items:center}.card-bottom>span{flex:1 1 140px}.card-bottom button{flex:none}.detail-fields,.editor-grid .row{grid-template-columns:repeat(2,minmax(0,1fr))}.platform-option{max-width:100%;min-width:0;overflow-wrap:anywhere}.filter-tools{min-width:0}.filter-tools input,.filter-tools select{min-width:0;max-width:100%}.nav-item{min-width:0;gap:8px}.nav-icon,.count{flex-shrink:0}.save-bar{flex-wrap:wrap}.save-bar .helper{max-width:none;flex:1 1 180px}.save-bar .primary{flex:0 1 auto}.segments{min-width:0}.segments button{min-width:0;white-space:normal;line-height:1.35}.app-footer{gap:12px;flex-wrap:wrap}.topbar{height:auto;min-height:70px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.breadcrumb{min-width:0}.owner-avatar{flex-shrink:0}
#code-login{display:grid;gap:12px;max-width:360px;margin:24px auto 0}#code-login input{text-align:center;letter-spacing:3px}#code-login button{width:100%}.empty{padding:48px 24px}.source-text{max-height:none;overflow:visible}
@media(max-width:1150px){.shell{grid-template-columns:195px minmax(0,1fr)}.page-heading{padding:24px}.detail-layout{grid-template-columns:minmax(0,.7fr) minmax(0,1fr)}}
@media(max-width:900px){.detail-layout{grid-template-columns:minmax(0,1fr)}.detail-photo{max-width:430px;margin:auto}}
@media(max-width:780px){.shell{display:block}.page-heading{padding:22px;flex-wrap:wrap;align-items:flex-start}.page-heading .primary{margin-top:0;max-width:100%;font-size:14px}.page-heading>div{flex:1 1 190px}.topbar{min-height:58px;gap:8px}.draft-banner{flex-wrap:wrap}.draft-banner>div{flex:1 1 200px}.detail-fields,.editor-grid .row{grid-template-columns:minmax(0,1fr)}.nav-item{font-size:13px}.filter-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.filter-tools input,.filter-tools select{width:100%}.segments button{padding:8px 5px;font-size:12px}.segments button span{padding-left:3px}.card-title h3{font-size:32px}.panel{padding:18px}.platform-line{flex-wrap:wrap}.platform-line input{flex:1 1 160px}}
@media(max-width:380px){main{padding:24px 14px}.sidebar{padding-left:14px;padding-right:14px}.topbar{padding-left:14px;padding-right:14px}.page-heading{padding:18px}.nav-item{font-size:12px;gap:4px}.filter-tools{grid-template-columns:minmax(0,1fr)}.segments button span{display:block;padding:2px 0 0}.save-bar .primary{width:100%}.detail-title h1{font-size:38px}}
/* Photo controls use line-height:0, but their text badges must not inherit it. */
.status-pill{line-height:1.3;min-height:28px;align-items:center;padding:5px 10px}
.card-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding-top:16px;margin-top:18px;align-items:center}.card-bottom>span{font-size:12px;line-height:1.5;color:var(--muted)}.card-bottom a{display:block;color:#e3edff;font-size:14px;line-height:1.5;margin-top:3px}.card-bottom button{background:#15365e;border:1px solid #315a8a;color:#d7eaff;border-radius:18px;min-height:38px;padding:8px 13px;font-size:12px;line-height:1.3}.card-bottom button:hover{background:#204b7c}
