
/* Quiet graphite workbench; shared site accent and real media carry the colour. */
.workbench-shell{--side:88px;--bg:#0d0e10;--panel:#17181b;--panel2:#222327;--line:#303136;--text:#ededf0;--muted:#a0a1a9;--accent:#a9c4ff;--accent-dark:#232e43;background:var(--bg);color:var(--text);min-height:100dvh}
.workbench-shell .sidebar{width:88px;padding:20px 8px 12px;background:#111215;border-color:#292a2f}
.workbench-shell .brand{font-size:11px;padding-bottom:24px;gap:8px}.workbench-shell .brand img{width:32px;height:32px}
.workbench-shell .nav{gap:4px}.workbench-shell .nav a{padding:12px 4px;gap:8px;min-height:64px;font-size:11px;border-radius:8px}.workbench-shell .nav a.active{background:#222b3c;color:var(--accent);box-shadow:inset 2px 0 var(--accent)}.workbench-shell .nav .icon{width:20px;height:20px}
.workbench-shell .sidebar-foot{gap:8px;padding-top:16px}.rail-secondary{display:flex;align-items:center;flex-direction:column;gap:4px;padding:8px 0;font-size:10px;color:var(--muted)}.rail-secondary .icon{width:16px;height:16px}.rail-secondary:hover{color:var(--text)}
.workbench-shell .balance{border:0;background:#1e2025;padding:12px 4px}.workbench-shell .balance strong{font-size:16px}.workbench-shell .balance span{font-size:10px}
.workbench-shell .main{margin-left:88px;max-width:none;padding:0 32px 40px;min-width:0}.workbench-shell .topbar{height:64px;border-bottom:1px solid #24252a;margin-bottom:24px;gap:16px}.workbench-shell .breadcrumb{font-size:12px;white-space:nowrap}.workbench-shell .top-actions{gap:24px;font-size:12px}.workbench-shell .top-actions>a:hover{color:var(--accent)}
.workbench-shell .page-title{margin-bottom:28px}.workbench-shell h1{font-size:28px;letter-spacing:0}.workbench-shell .page-title p{margin-top:8px}.workbench-shell .page-title h1{font-weight:600}
.workbench-shell button{transition:background-color 140ms,border-color 140ms,color 140ms}.workbench-shell button:hover{background:#2d3037;border-color:#555b69}.workbench-shell .primary{background:var(--accent);color:#131b2b;border-color:var(--accent)}.workbench-shell .primary:hover{background:#c5d7ff;border-color:#c5d7ff}.workbench-shell input,.workbench-shell select,.workbench-shell textarea{background:#111215;border-color:#3b3c43}.workbench-shell button:disabled{cursor:not-allowed}.workbench-shell input:focus-visible,.workbench-shell button:focus-visible,.workbench-shell a:focus-visible,.workbench-shell select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.wb-launch{display:flex;gap:24px;align-items:stretch;margin-bottom:36px}.wb-create-card{width:344px;min-height:120px;border:1px dashed #666974;background:#1b1d21;justify-content:flex-start;padding:24px;text-align:left;border-radius:12px;flex-shrink:0}.wb-create-card>span{width:48px;height:48px;border:1px solid #666974;border-radius:50%;display:grid;place-items:center}.wb-create-card h2{font-size:20px}.wb-create-card p{font-size:12px;color:var(--muted);margin-top:8px}.wb-shortcuts{display:flex;align-items:center;gap:16px}.wb-shortcuts a{display:flex;align-items:center;gap:12px;font-size:13px;padding:16px;background:#17191d;border:1px solid var(--line);border-radius:8px}.wb-shortcuts a:hover{border-color:var(--accent)}.wb-shortcuts a>.icon:last-child{width:16px;color:var(--muted)}
.wb-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:24px}.wb-filters select,.wb-filters .search{height:36px;width:auto;min-width:136px;border-radius:6px}.wb-filters .search{width:224px}.wb-filters input{min-height:32px}.wb-owner{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-right:8px}.wb-owner .icon{width:16px}.wb-filters>a{margin-left:auto;color:var(--accent);font-size:12px}
.wb-project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,288px));gap:24px}.wb-project{background:var(--panel);border:1px solid #292b30;border-radius:12px;overflow:hidden}.wb-project:hover{border-color:#555d6e}.wb-project-open{display:block}.wb-cover{height:160px;background:#202631;position:relative;display:grid;place-content:center;text-align:center;gap:12px;overflow:hidden}.wb-cover:before,.wb-cover:after{content:'';position:absolute;border:1px solid #586577;width:24px;height:24px}.wb-cover:before{left:16px;top:16px;border-right:0;border-bottom:0}.wb-cover:after{right:16px;bottom:16px;border-left:0;border-top:0}.wb-cover>.icon{width:32px;height:32px;margin:auto;color:#9badc9}.wb-cover-title{color:#c6cede;font-size:14px;max-width:208px}.wb-frame-number{position:absolute;right:16px;top:12px;font:11px monospace;color:#93a0b5}.wb-project-body{padding:16px;display:grid;grid-template-columns:1fr auto;gap:12px}.wb-project-body h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.wb-project-body .pill{font-size:10px;padding:2px 8px;background:#212e2b;color:#a1cfb7;border:0}.wb-project-body p{grid-column:1/-1;color:var(--muted);font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}.wb-project-body small{grid-column:1/-1;color:#a0a1a9;font-size:11px}.wb-project footer{padding:8px 12px;border-top:1px solid #2c2d33;display:flex;gap:12px;align-items:center}.wb-project footer button,.wb-project footer a{font-size:11px;padding:4px 0;border:0;background:none;color:var(--muted)}.wb-project footer .danger{margin-left:auto;color:#d89e99}.wb-project footer a:hover,.wb-project footer button:hover{color:var(--text)}
.wb-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.wb-tool{display:flex;align-items:center;gap:16px;padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:10px;text-align:left;min-height:112px}.wb-tool:hover{border-color:#63718c;background:#1d2026}.wb-tool-icon{display:grid;place-items:center;width:40px;height:40px;background:#252b36;border-radius:8px;color:var(--accent);flex-shrink:0}.wb-tool>div{min-width:0;flex:1}.wb-tool h3{font-size:15px}.wb-tool p{font-size:12px;color:var(--muted);margin-top:8px}.wb-tool>.icon:last-child{width:16px;color:var(--muted);margin-left:auto}.section-head>a{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted)}.wb-picker{display:grid;gap:8px}.wb-picker a{display:flex;gap:12px;align-items:center;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:8px}.wb-picker a span{flex:1}
.wb-native-page{height:calc(100dvh - 88px);display:flex;flex-direction:column;min-height:0}.wb-native-heading{display:flex;align-items:center;gap:16px;min-height:48px;margin-bottom:16px}.wb-native-heading h1{font-size:20px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wb-native-heading>a{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.wb-native-heading>a:hover{color:var(--accent)}.wb-native{width:100%;flex:1;border:1px solid #303136;border-radius:8px;min-height:0;background:#15161a}.wb-project-tabs{display:flex;gap:4px;margin-bottom:12px;overflow:auto;flex-shrink:0}.wb-project-tabs a{padding:8px 12px;border-radius:6px;color:var(--muted);font-size:12px;white-space:nowrap}.wb-project-tabs a[aria-current=page]{background:#263145;color:var(--accent)}
.wb-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.wb-metrics>div{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:24px}.wb-metrics span{display:block;color:var(--muted);font-size:12px}.wb-metrics strong{display:block;font-size:32px;font-weight:500;margin-top:12px;font-variant-numeric:tabular-nums}
.wb-generation-page{height:calc(100dvh - 88px);display:flex;flex-direction:column;min-height:0}.gen-layout{display:grid;grid-template-columns:368px minmax(0,1fr);border:1px solid var(--line);border-radius:8px;overflow:hidden;flex:1;min-height:0}.gen-controls{background:#17181b;border-right:1px solid var(--line);overflow:auto;min-height:0}.gen-modes{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:16px;border-bottom:1px solid var(--line)}.gen-modes button{font-size:12px;padding:8px;min-height:36px;background:#202126;border-radius:4px}.gen-modes button[aria-selected=true]{color:var(--accent);border-color:var(--accent);background:#253047}.gen-modes h2{font-size:16px}.gen-section{padding:20px 16px;border-bottom:1px solid var(--line)}.gen-section .field:last-child{margin-bottom:0}.gen-section select{width:100%;min-width:0;max-width:100%;font-size:12px}.gen-section-title{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:12px}.gen-section-title h2{font-size:13px}.gen-section-title span{font-size:11px;color:var(--muted)}.gen-ready{font-size:11px;color:#9fc6b1;display:block;margin-top:12px}.gen-unconfigured{font-size:12px;color:#d4bc91;margin-top:12px;line-height:1.7}.gen-unconfigured a{color:var(--accent);display:block}.gen-section textarea{resize:vertical;min-height:128px;font-size:13px;line-height:1.8}.gen-params{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gen-params .field{font-size:12px;margin:0}.gen-params small{font-size:10px;line-height:1.6}.gen-params .field:has(small){grid-column:1/-1}.gen-params input{width:100%;min-width:0}.gen-params .check{font-size:12px}.gen-submit-area{padding:20px 16px;display:flex;gap:12px;flex-wrap:wrap}.gen-submit-area>p,.gen-submit-area>.gen-quote{width:100%;font-size:11px;line-height:1.8}.gen-submit-area .primary{flex:1}.gen-quote{color:var(--accent)}
.gen-upload-actions{display:flex;gap:8px;align-items:center;margin-top:16px}.gen-upload{display:inline-flex;align-items:center;gap:8px;border:1px dashed #596171;border-radius:6px;padding:8px 12px;font-size:12px;cursor:pointer}.gen-upload input{display:none}.gen-upload:hover{border-color:var(--accent)}#gen-references{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.gen-ref{width:96px;border:1px solid var(--line);border-radius:6px;position:relative;overflow:hidden;display:grid;place-items:center}.gen-ref img{width:96px;height:80px;object-fit:cover}.gen-ref>.icon{height:80px}.gen-ref span{font-size:10px;padding:4px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gen-ref button{position:absolute;top:2px;right:2px;padding:2px;background:#12151ad9;border:0}.gen-ref button .icon{width:14px;height:14px}
.gen-results{min-width:0;overflow:auto;background:#0e0f11}.gen-results-toolbar{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#151619;z-index:2}.gen-results-toolbar .search{flex:1;min-width:80px}.gen-results-toolbar select{width:112px;font-size:12px}.gen-results-toolbar input{min-height:36px}.gen-empty{min-height:460px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:32px;text-align:center;color:var(--muted);gap:16px}.gen-empty>.icon{width:56px;height:56px;color:#5d687d}.gen-empty h2{font-size:18px;color:var(--text);margin-top:8px}.gen-empty p{font-size:13px;line-height:1.9}.gen-result-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;padding:16px}.gen-result{border:1px solid var(--line);border-radius:8px;background:#1b1c20;overflow:hidden;min-width:0}.gen-result header{display:flex;justify-content:space-between;padding:12px;font-size:12px}.gen-result header small{color:var(--muted);font-size:10px}.gen-result-media img,.gen-result-media video{width:100%;max-height:340px;object-fit:contain;background:#090a0b}.gen-result-placeholder{height:160px;display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;color:var(--muted);font-size:12px}.gen-result>p{padding:12px;font-size:12px;white-space:pre-wrap;word-break:break-word}.gen-result footer{display:flex;gap:8px;align-items:center;padding:12px;border-top:1px solid var(--line);font-size:10px}.gen-result footer span{flex:1;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.gen-pick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-height:420px;overflow:auto}.gen-pick-grid label{display:grid;gap:8px;padding:8px;border:1px solid var(--line);border-radius:6px;font-size:11px;min-width:0}.gen-pick-grid img{width:100%;height:96px;object-fit:cover}.gen-pick-grid span{overflow:hidden;text-overflow:ellipsis}.gen-pick-grid input{justify-self:start}
@media(min-width:1700px){.workbench-shell .main{padding-left:40px;padding-right:40px}.gen-layout{grid-template-columns:400px minmax(0,1fr)}}
@media(max-width:1100px){.wb-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-launch{flex-wrap:wrap}.workbench-shell .top-actions{gap:16px}.gen-layout{grid-template-columns:320px minmax(0,1fr)}.workbench-shell .main{padding-left:24px;padding-right:24px}}
@media(max-width:760px){.workbench-shell .sidebar{width:64px;padding:16px 4px;inset:0 auto 0 0;height:100dvh;flex-direction:column}.workbench-shell .brand{font-size:9px;padding-bottom:16px}.workbench-shell .brand img{width:28px;height:28px}.workbench-shell .nav{flex-direction:column;gap:4px;overflow:visible}.workbench-shell .nav a{min-height:56px;padding:8px 2px;font-size:10px;flex-direction:column;gap:4px}.workbench-shell .sidebar-foot{display:grid;padding-top:8px}.workbench-shell .sidebar-foot .rail-secondary{display:none}.workbench-shell .balance{padding:8px 2px}.workbench-shell .balance strong{font-size:13px}.workbench-shell .main{margin-left:64px;padding:0 16px 24px}.workbench-shell .topbar{height:56px;margin-bottom:16px}.workbench-shell .breadcrumb{display:none}.workbench-shell .top-actions{gap:16px;overflow:auto;white-space:nowrap;width:100%;justify-content:flex-start;font-size:11px}.workbench-shell .top-actions .user-name{display:none}.workbench-shell h1{font-size:24px}.workbench-shell .page-title{display:flex;align-items:center}.workbench-shell .page-title>button{font-size:11px;white-space:nowrap}.wb-create-card{width:100%;padding:20px;min-height:104px}.wb-launch{gap:16px}.wb-shortcuts{width:100%;gap:8px}.wb-shortcuts a{flex:1;justify-content:center;font-size:12px;padding:12px 8px;gap:8px}.wb-shortcuts a>.icon:last-child{display:none}.wb-filters{gap:8px}.wb-owner{width:100%;font-size:11px}.wb-filters .search{width:100%}.wb-filters select{min-width:100px;flex:1}.wb-tools{grid-template-columns:1fr;gap:12px}.wb-tool{min-height:96px;padding:20px}.wb-project-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.wb-native-page{height:calc(100dvh - 72px)}.wb-native-heading{gap:12px;flex-wrap:wrap;margin-bottom:12px}.wb-native-heading h1{font-size:17px}.wb-native-heading>a{font-size:10px}.wb-native-heading>a:last-child{max-width:45%}.wb-native{min-height:600px}.wb-native-page{overflow:auto}.wb-metrics{grid-template-columns:repeat(2,1fr);gap:12px}.wb-metrics>div{padding:16px}.wb-metrics strong{font-size:24px}.wb-generation-page{height:auto}.gen-layout{display:flex;flex-direction:column;overflow:visible}.gen-controls{overflow:visible;border-right:0;border-bottom:1px solid var(--line)}.gen-results{overflow:visible;min-height:400px}.gen-results-toolbar{position:static;flex-wrap:wrap}.gen-results-toolbar .search{width:100%;flex-basis:100%}.gen-empty{min-height:320px;padding:24px 16px}.gen-result-grid{grid-template-columns:1fr}.gen-pick-grid{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){.workbench-shell *{scroll-behavior:auto;animation:none;transition:none}}

.workbench-shell .sidebar .brand{flex-direction:column;white-space:nowrap;align-items:center;justify-content:center}.workbench-shell .sidebar .nav a{flex-direction:column;justify-content:center}.workbench-shell .sidebar .balance{display:block}.workbench-shell .sidebar .balance span{display:block}.workbench-shell .sidebar .balance strong{display:block}.workbench-shell .sidebar .account-link{justify-content:center}
.gen-submit-area{position:sticky;bottom:0;background:#17181bf5;border-top:1px solid var(--line);z-index:3}

.wb-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px;font-size:12px;color:var(--muted)}.wb-pagination span{margin-right:auto}.wb-activity{padding:24px;margin-bottom:24px}.wb-activity h2{font-size:15px}.wb-bars{display:flex;gap:16px;align-items:flex-end;min-height:144px;overflow:auto;margin-top:20px}.wb-bars>div{min-width:32px;display:flex;align-items:center;flex-direction:column;gap:8px;flex:1;max-width:72px}.wb-bars i{display:block;width:70%;background:#91afd9;border-radius:3px 3px 0 0}.wb-bars span,.wb-bars small{font-size:10px;color:var(--muted)}

.gen-upload-actions{flex-wrap:wrap}.gen-upload-actions>button{min-height:32px;font-size:11px}

.wb-doc-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:12px;flex-shrink:0;flex-wrap:wrap}.wb-doc-toolbar label{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.wb-doc-toolbar select{min-width:160px;width:auto;font-size:12px;max-width:320px;padding:8px}.wb-doc-toolbar button{font-size:12px}
