.desk-layout { display:grid; grid-template-columns:minmax(0,1fr) clamp(232px,20vw,300px); width:100%; min-height:100%; color:var(--g-ink); }
.desk-center { min-width:0; padding:clamp(12px,1.4vw,26px); }
.desk-hero { position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:space-between; padding:clamp(20px,2.7vw,44px); min-height:300px; overflow:hidden; border:1px solid var(--g-edge); border-radius:23px; background:radial-gradient(ellipse at 83% 14%,#fff0d7 1%,transparent 45%),radial-gradient(ellipse at 70% 98%,#aebced 2%,transparent 52%),linear-gradient(130deg,#edf6ff,#e6e8fa 57%,#d9dafa); }
.dark .desk-hero { background:radial-gradient(ellipse at 83% 5%,#66574e,transparent 45%),radial-gradient(ellipse at 70% 98%,#444c7c,transparent 55%),linear-gradient(130deg,#282d45,#34354d 57%,#39374d); }
.hero-heading { position:relative; z-index:1; max-width:61%; }
.assistant-label { display:inline-flex; align-items:center; gap:6px; color:var(--g-muted); font-size:12px; font-weight:600; }
.assistant-label .glass-icon { width:15px; height:15px; }
.hero-heading h1 { margin:14px 0 10px; font-size:clamp(35px,3.8vw,64px); line-height:.99; font-weight:570; letter-spacing:-.061em; }
.hero-heading p { max-width:355px; color:var(--g-muted); font-size:14px; line-height:1.5; margin:0; }
.justice-art { position:absolute; z-index:0; width:auto; height:78%; max-width:43%; object-fit:contain; right:4%; top:0;  }
.intake-box { z-index:1; margin-top:23px; display:flex; align-items:center; padding:6px 7px 6px 16px; gap:8px; border-radius:28px; border:1px solid var(--g-edge); background:var(--g-panel); box-shadow:inset 0 1px 0 #ffffff4d,0 3px 10px #3d465110; }
.intake-box input,.desk-search input { flex:1; min-width:0; outline:0; background:none; border:0; box-shadow:none; color:var(--g-ink); padding:3px; font-size:14px; }
.intake-box:focus-within,.desk-search:focus-within { border-color:var(--g-focus); box-shadow:0 0 0 1px var(--g-focus); }
.intake-box input:focus,.desk-search input:focus { outline:0; border:0; box-shadow:none; }
.intake-box:has(button:focus-visible) { box-shadow:none; border-color:var(--g-edge); }
.intake-box input::placeholder,.desk-search input::placeholder { color:var(--g-muted); }
.intake-box button { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:var(--g-pill); color:var(--g-on-pill); }
.desk-drafts > header,.draft-filters,.draft-row,.row-open,.inspector-action,.tool-link,.mobile-apps h2 { display:flex; align-items:center; }
.desk-drafts > header,.draft-filters { justify-content:space-between; gap:12px; }
.desk-drafts h2 { font-size:24px; font-weight:600; letter-spacing:-.045em; margin:0; }
.dash-button { display:inline-flex; align-items:center; gap:5px; min-height:36px; padding:6px 12px; font-size:13px; font-weight:600; border-radius:20px; border:1px solid var(--g-line); background:var(--g-soft); }
.dash-button .glass-icon { width:14px; }
.draft-filters { flex-wrap:wrap; margin:16px 0 10px; }
.filter-group { display:inline-flex; flex-wrap:wrap; gap:3px; }
.filter-group button { color:var(--g-muted); padding:5px 8px; border-radius:18px; border:1px solid transparent; font:500 12px/1.3 var(--ui-font); }
.filter-group button[aria-pressed=true] { color:var(--g-ink); background:var(--g-soft); border-color:var(--g-line); }
.filter-group span { color:var(--g-quiet); font-size:10px; }
.desk-search { display:flex; align-items:center; gap:5px; padding:3px 8px; border-radius:9px; border:1px solid var(--g-line); }
.desk-search .glass-icon { width:14px; color:var(--g-muted); }
.desk-search input { width:110px; font-size:12px; }
.draft-row { position:relative; gap:10px; min-height:62px; border-top:1px solid var(--g-line); }
.row-open { flex:1; min-width:0; gap:12px; padding:8px 0; }
.row-open div { min-width:0; }
.row-open h3 { font-size:14px; font-weight:600; line-height:1.35; margin:0; overflow-wrap:anywhere; }
.row-open time { color:var(--g-muted); font-size:11px; }
.row-icon,.tool-icon { display:grid; place-items:center; flex:none; }
.row-icon { height:34px; width:34px; border:1px solid var(--g-line); border-radius:10px; color:var(--g-muted); background:var(--g-soft); }
.draft-state { display:flex; align-items:center; gap:5px; color:var(--g-muted); font-size:11px; }
.draft-state:before { content:""; width:6px; height:6px; border-radius:50%; background:#b08b45; }
.draft-state[data-state=ready]:before { background:#7571bb; } .draft-state[data-state=final]:before { background:#588f74; }
.row-menu { position:relative; } .row-menu summary { list-style:none; cursor:pointer; display:grid; place-items:center; width:36px; height:36px; border-radius:50%; }
.row-menu summary::-webkit-details-marker { display:none; }
.row-menu > div { position:absolute; right:0; bottom:100%; z-index:12; background:var(--g-solid); border:1px solid var(--g-line); border-radius:12px; padding:5px; box-shadow:0 10px 30px #16152b28; min-width:145px; }
.row-menu button { display:block; width:100%; text-align:start; padding:8px; font-size:13px; border-radius:8px; }
.row-menu button:hover,.tool-link:hover { background:var(--g-soft); }
.row-menu .remove { color:#aa3f55; } .dark .row-menu .remove { color:#ffb3bf; }
.desk-empty { margin:8px 0; border:1px dashed var(--g-line); border-radius:12px; padding:20px; font-size:13px; color:var(--g-muted); }
.desk-empty a,.desk-empty button { margin-left:8px; text-decoration:underline; color:var(--g-ink); }
.inspector { padding:clamp(19px,2vw,34px) clamp(14px,1.7vw,26px); border-left:1px solid var(--g-line); background:var(--g-soft); min-width:0; display:flex; flex-direction:column; }
.inspector h2 { font-size:14px; font-weight:650; letter-spacing:-.02em; margin:0 0 12px; }
.tool-link { min-height:43px; gap:10px; font-size:13px; font-weight:500; color:var(--g-muted); border-radius:9px; }
.tool-link:hover { color:var(--g-ink); }
.tool-icon { width:27px; height:27px; border-radius:8px; border:1px solid #ffffff70; box-shadow:inset 0 1px 1px #ffffff70,0 2px 4px #28203b14; color:white; }
.tool-icon .glass-icon { width:16px; height:16px; }
.tool-icon.blue { background:linear-gradient(145deg,#7eacfe,#3963bb); } .tool-icon.coral { background:linear-gradient(145deg,#fa9688,#ba5048); }
.tool-icon.lilac { background:linear-gradient(145deg,#ad97e7,#7560ab); } .tool-icon.mint { background:linear-gradient(145deg,#79c9b4,#357968); }
.inspector-action { padding:10px; gap:6px; border-radius:22px; justify-content:center; background:var(--g-pill); color:var(--g-on-pill); font-size:12px; font-weight:550; margin:18px 0 26px; text-align:center; }
.inspector-action .glass-icon { width:15px; }
.reference-section,.mobile-apps { padding-top:18px; border-top:1px solid var(--g-line); }
.reference-section .tool-link { gap:9px; min-height:38px; font-size:12px; }
.reference-section .glass-icon { width:16px; }
.mobile-apps { margin-top:auto; }
#desk-error { color:var(--g-ink); padding:8px; }
@media (max-width:1099px) { .desk-layout { grid-template-columns:minmax(0,1fr) 205px; } .desk-center { padding:15px; } .inspector { padding:20px 13px; } .hero-heading p { font-size:13px; } }
@media (max-width:899px) { .desk-layout { display:block; } .inspector { border:0; border-top:1px solid var(--g-line); display:grid; grid-template-columns:1fr 1fr; column-gap:20px; padding:20px; } .inspector > h2,.tool-group,.inspector-action { grid-column:1; } .reference-section { grid-column:2; grid-row:1/3; border:0; padding:0; } .mobile-apps { grid-column:2; grid-row:3; margin:0; } .inspector-action { margin:10px 0; align-self:start; } }
@media (max-width:559px) {
  .desk-center { padding:12px; } .desk-hero { padding:20px 16px 14px; min-height:245px; border-radius:19px; }
  .hero-heading { max-width:66%; } .hero-heading h1 { font-size:34px; } .hero-heading p { font-size:12px; }
  .justice-art { top:22px; height:55%; width:37%; right:0; } .intake-box { margin-top:16px; } .intake-box input { font-size:16px; }
  .desk-drafts h2 { font-size:22px; } .draft-filters { gap:7px; } .desk-search { width:100%; } .desk-search input { font-size:16px; }
  .inspector { padding:16px; column-gap:12px; } .tool-link,.reference-section .tool-link { font-size:12px; } .tool-link { gap:6px; }
}
@media (min-width:560px) { .justice-art { top:5%; height:69%; } }
.row-menu button:disabled { opacity:.45; cursor:default; }
.desk-empty button:focus-visible,.appearance-toggle:focus-visible { outline:2px solid var(--g-focus); }

.primary-destinations { display:grid; grid-template-columns:minmax(0,2.15fr) minmax(170px,1fr); gap:clamp(10px,1.25vw,20px); margin-bottom:clamp(20px,2vw,32px); }
.primary-destinations .desk-hero { min-height:260px; padding:clamp(16px,2vw,30px); }
.hero-heading h1 { font-size:clamp(1.65rem,1.15rem + 1.6vw,3.1rem); line-height:1.07; }
.hero-heading p { font-size:clamp(.8rem,.73rem + .23vw,.99rem); }
.community-feature { display:flex; flex-direction:column; isolation:isolate; overflow:hidden; border-radius:20px; border:1px solid var(--g-edge); background:var(--g-panel); box-shadow:inset 0 1px 0 var(--g-edge); color:var(--g-ink); }
.community-photo { flex:1; min-height:80px; position:relative; display:grid; place-items:center; overflow:hidden; background:linear-gradient(125deg,#d5cff3,#dedff9 56%,#c6e4f3); }
.community-caption { padding:clamp(11px,1.5vw,22px); display:flex; align-items:center; justify-content:space-between; gap:8px; }
.community-caption h2 { font-size:clamp(1.05rem,.86rem + .66vw,1.65rem); line-height:1.12; letter-spacing:-.035em; font-weight:650; }
.community-caption p { margin:5px 0 0; color:var(--g-muted); font-size:clamp(.76rem,.72rem + .19vw,.91rem); line-height:1.4; }
@media (max-width:1130px) { .primary-destinations { grid-template-columns:minmax(0,1fr); } .community-feature { flex-direction:row; min-height:76px; } .community-photo { flex:0 0 clamp(72px,16%,160px); min-height:60px; } .community-caption { flex:1; } }
@media (max-width:559px) { .primary-destinations .desk-hero { min-height:215px; } .primary-destinations { gap:8px; } .hero-heading { max-width:64%; } .hero-heading h1 { margin-block:9px; } }

.dark .community-photo { background:linear-gradient(125deg,#35304f,#494973 56%,#304e61); }
.community-photo .glass-icon { width:clamp(46px,6vw,90px); height:auto; padding:17%; box-sizing:content-box; color:#625699; stroke-width:1.25; }
.dark .community-photo .glass-icon { color:#dbd7ff; }
@media (max-width:1130px) { .community-photo .glass-icon { width:38px; } }

#draft-grid [hidden] { display:none; }
.desk-welcome { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:clamp(18px,2.2vw,34px) clamp(14px,2vw,32px) 2px; }
.desk-welcome h1 { font-size:var(--ui-title); font-weight:660; line-height:1.18; letter-spacing:-.045em; margin:0; }
.desk-welcome p,.desk-welcome time,.side-tile>p { font-size:var(--ui-body); color:var(--ui-secondary); margin:5px 0; }
.desk-welcome time { font-size:var(--ui-small); }
.desk-layout { min-height:auto; grid-template-columns:minmax(0,1fr) clamp(235px,21vw,330px); }
.desk-center { padding:clamp(14px,2vw,32px); }
.primary-destinations { grid-template-columns:minmax(0,1.75fr) minmax(165px,1fr); margin-bottom:22px; }
.primary-destinations .desk-hero { border:1px solid var(--ui-border); background:linear-gradient(120deg,var(--ui-active),var(--ui-paper)); min-height:236px; border-radius:17px; }
.hero-heading h2 { font-size:clamp(1.35rem,1rem + 1.05vw,2rem); letter-spacing:-.045em; font-weight:650; line-height:1.12; margin:10px 0 6px; }
.justice-art { max-width:35%; height:59%; top:6%; }
.assistant-label,.community-open { color:var(--ui-action); font-size:var(--ui-small); font-weight:600; }
.community-feature { border-color:var(--ui-border); border-radius:17px; background:var(--ui-paper); }
.community-photo,.dark .community-photo { background:linear-gradient(145deg,var(--ui-active),color-mix(in srgb,var(--ui-blue) 18%,var(--ui-paper))); min-height:55px; }
.community-photo .glass-icon,.dark .community-photo .glass-icon { color:var(--ui-action); padding:6px; width:45px; }
.community-caption { padding:14px; }.community-caption h2 { font-size:var(--ui-card); }.community-open { display:block;margin-top:7px; }
.intake-box { border:1px solid var(--ui-border); background:var(--ui-paper); box-shadow:0 2px 7px #192d5009; backdrop-filter:none; }
.activity-overview h2,.desk-drafts h2 { font-size:var(--ui-heading); font-weight:630; letter-spacing:-.035em; }
.overview-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin:10px 0 23px; }
.overview-stats button { display:flex; flex-direction:column; align-items:flex-start; gap:4px; text-align:start; padding:clamp(10px,1.4vw,18px); background:var(--ui-paper); border:1px solid var(--ui-border); border-radius:13px; }
.overview-stats span { color:var(--ui-secondary);font-size:var(--ui-small); }
.overview-stats strong { font-size:clamp(1.25rem,1rem + .8vw,1.8rem);color:var(--ui-text);font-weight:650;font-variant-numeric:tabular-nums; }
.overview-stats button:hover,.row-open:hover h3 { color:var(--ui-action); } .overview-stats button:hover { border-color:var(--ui-blue); }
.desk-drafts { background:var(--ui-paper);border:1px solid var(--ui-border);border-radius:15px;padding:clamp(12px,1.6vw,22px); }
.row-open h3 { font-size:var(--ui-body); }.row-open time,.draft-state { font-size:var(--ui-small); }.filter-group button { font-size:.82rem;min-height:32px; }
.filter-group button[aria-pressed=true] { background:var(--ui-active);color:var(--ui-action); }
.inspector { background:transparent; border:0; gap:13px; padding:clamp(14px,2vw,32px) clamp(14px,2vw,32px) 20px 0; }
.side-tile,.reference-section,.mobile-apps { background:var(--ui-paper);padding:15px;border:1px solid var(--ui-border);border-radius:15px; }
.side-tile h2,.reference-section h2 { font-size:var(--ui-card);margin:0 0 5px; }
.side-tile>p,#pending-requests { font-size:var(--ui-small);color:var(--ui-secondary); }
.connection-row { padding:8px 0; }.connection-row strong,.connection-row small { display:block; }.connection-row button,#pending-requests>button { color:var(--ui-action);padding:5px 9px;background:var(--ui-active);border-radius:7px;margin:5px 5px 0 0; }
.tool-icon.blue,.tool-icon.coral,.tool-icon.mint,.tool-icon.lilac { background:var(--ui-active);border:0;box-shadow:none;color:var(--ui-action); }
.inspector-action,.mobile-apps { margin:0; }
@media(min-width:901px) and (max-width:1200px){.desk-layout{grid-template-columns:minmax(0,1fr) 216px}.primary-destinations{grid-template-columns:1fr}.community-feature{flex-direction:row}.community-photo{flex:0 0 70px}.community-caption{flex:1}.overview-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.desk-layout{display:block}.inspector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px 14px}.inspector>*{grid-column:auto;grid-row:auto}.inspector-action{align-self:start}.reference-section,.mobile-apps{border:1px solid var(--ui-border);padding:15px;}}
@media(max-width:680px){.primary-destinations{grid-template-columns:1fr}.community-feature{flex-direction:row}.community-photo{flex:0 0 64px}.community-caption{flex:1}.primary-destinations .desk-hero{min-height:190px}.desk-welcome time{display:none}.overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.desk-welcome p{max-width:34ch}.inspector{grid-template-columns:minmax(0,1fr)}}
.community-photo,.dark .community-photo{background-image:linear-gradient(145deg,#16355238,#10224066),url('../img/supreme-court-photo.jpg');background-position:center;background-size:cover}
.community-photo .glass-icon,.dark .community-photo .glass-icon{color:white;background:#152e52aa;border:1px solid #ffffff6b;border-radius:12px;width:36px;padding:7px;align-self:end;justify-self:start;margin:12px}
@media(max-width:1130px){.community-photo .glass-icon{align-self:center;justify-self:center;margin:0;width:29px}}

/* Proportional columns keep both badges on one line at the same artwork height. */
.mobile-apps h2 { margin:0 0 8px; }
.store-badges { display:grid; grid-template-columns:minmax(0,120fr) minmax(0,135fr); align-items:center; gap:8px; width:100%; max-width:263px; }
.store-badge { display:inline-flex; align-items:center; min-width:0; min-height:44px; border-radius:6px; }
.store-badge img { display:block; width:100%; height:auto; }
.store-badge:focus-visible { outline:2px solid var(--ui-action); outline-offset:2px; }
