/* Personal workspace */
#desk {
  --desk-ink: #0b1412;
  --desk-ivory: #f1ecdc;
  --desk-champagne: #dbc69a;
  --desk-muted: #b2bcb1;
  --desk-hairline: #c5b18338;
  --desk-column: 55rem;
  --desk-gutter: clamp(1.4rem, 4vw, 5rem);
  isolation: isolate;
  grid-template-columns: clamp(14.5rem, 22vw, 18.5rem) minmax(0,1fr);
  background: var(--desk-ink);
}
#desk :is(button, input, textarea):focus-visible { outline-color: #efd59d; }
#desk #sidebar {
  background: radial-gradient(ellipse at 12% 4%, #3646376b, transparent 48%), linear-gradient(120deg, #192820, #121d18 70%);
  border-right: 1px solid var(--desk-hairline);
  padding: 0 clamp(16px, 1.6vw, 26px) 20px;
  min-width: 0;
}
#sidebar .brand {
  min-height: 87px; padding-inline: 5px; margin: 0 0 28px;
  font-size: clamp(1rem,1.5vw,1.35rem); color: var(--desk-ivory);
  border-bottom: 1px solid var(--desk-hairline);
}
#sidebar .brand-mark { outline: 1px solid #d9bd7b55; outline-offset: 3px; }
#desk .new-chat {
  min-height: 45px; padding: 10px 12px; justify-content: flex-start;
  border: 1px solid #b6a17377; border-radius: 7px;
  background: linear-gradient(108deg,#46433480,#253129); color: #f2dfb4;
  box-shadow: inset 0 1px #e1cf9e12;
  font-weight: 550;
}
#desk .new-chat span { margin-right: 3px; font-size: 1.35rem; line-height: 1; font-weight: 350; }
#sidebar .section-label { display:flex; align-items:center; gap:12px; margin:34px 4px 12px; color:#c1baa5; }
#sidebar .section-label span { flex:1; height:1px; background:var(--desk-hairline); }
#desk #chat-list { padding:3px; margin:-3px; scrollbar-width:thin; }
#desk #chat-list button {
  position:relative; min-height:42px; margin-block:2px; padding:9px 10px 9px 29px;
  border-radius:6px; color:#c3cbbf; font-size:.91rem;
}
#desk #chat-list button::before {
  content:''; position:absolute; top:50%; left:12px; width:5px; height:5px;
  transform:translateY(-50%) rotate(45deg); border:1px solid #8c977f;
}
#desk #chat-list button:hover:enabled { background:#b6b1970c; color:var(--desk-ivory); }
#desk #chat-list button[aria-current="page"] {
  color:#f3e7cc; border-color:#b4a17847; background:linear-gradient(110deg,#414535,#29372c);
  box-shadow:inset 2px 0 #cfb783;
}
#desk #chat-list button[aria-current="page"]::before { background:var(--desk-champagne); border-color:var(--desk-champagne); }
#desk .account { border-color:var(--desk-hairline); padding-top:20px; gap:12px; }
#desk .account-text strong { margin-bottom:4px; color:var(--desk-ivory); }
#desk .account-text button { padding:3px 3px 3px 0; font-size:.8rem; text-decoration:none; }
#desk .account-text button:hover { text-decoration:underline; }
#desk .conversation {
  background:radial-gradient(ellipse at 65% -10%, #26392d88 0, transparent 61%), linear-gradient(120deg,#101b17,#0c1512 70%);
}
#desk .desk-header {
  min-height:87px; padding:12px var(--desk-gutter);
  border-color:var(--desk-hairline); background:#121d17c7;
}
#desk .workspace-label { gap:12px; }
#desk .workspace-identity { display:grid; gap:2px; }
.workspace-identity strong { color:var(--desk-ivory); font:italic 1.45rem/1 var(--serif); }
.workspace-identity span { font-size:.75rem; color:var(--desk-muted); }
#desk .lux-avatar { width:43px; height:43px; padding:2px; background:#15221c; }
.export-action {
  font-size:.8rem; color:var(--desk-champagne); background:transparent;
  border:1px solid var(--desk-hairline); padding:9px 13px; border-radius:6px;
}
.export-action:hover:enabled { background:#e4d0a50c; }
#desk .transcript {
  padding:clamp(28px,5vh,65px) max(var(--desk-gutter),calc((100% - var(--desk-column))/2)) 18px;
  scrollbar-width:thin; scrollbar-color:#536052 #111c16;
}
#desk .chat-heading { position:relative; padding-bottom:14px; border-color:var(--desk-hairline); }
#desk .chat-heading h1 {
  margin:10px 0 13px; letter-spacing:-.048em; font-weight:400;
  color:var(--desk-ivory); font-size:clamp(2.3rem,4.1vw,4.25rem);
}
#desk .chat-heading .eyebrow { color:#d7c091; }
#desk #chat-intro { font-size:.95rem; line-height:1.6; margin:0 0 8px; color:var(--desk-muted); }
#desk.new-conversation .transcript { display:flex; flex-direction:column; }
#desk.new-conversation .chat-heading {
  flex:none; display:flex; align-items:flex-end; margin:auto 0; min-height:clamp(220px,35vh,350px);
  isolation:isolate; overflow:hidden; padding:clamp(20px,3.2vw,48px);
  background:linear-gradient(135deg,#243b2e,#122018);
  border:1px solid #beac774d; border-radius:12px;
  box-shadow:inset 0 1px #f2dba318, 0 18px 44px #030a061f;
}
#desk.new-conversation .chat-heading::before {
  content:''; position:absolute; z-index:-1; inset:0 0 0 40%;
  background:url('/lux.jpg') center 38% / cover no-repeat;
  opacity:.84;
  mask-image:linear-gradient(90deg,transparent 0%,#000a 34%,black 65%);
}
#desk.new-conversation .chat-heading::after {
  content:''; position:absolute; z-index:-1; inset:0;
  background:linear-gradient(0deg,#08160ee6,transparent 64%);
}
#desk.new-conversation .heading-copy { max-width:62%; }
#desk.new-conversation .chat-heading h1 { font-size:clamp(2.4rem,4.5vw,4.65rem); }
#desk.new-conversation #messages { display:none; }
#desk #messages { margin:22px 0 6px; }
#desk #messages li { gap:12px; margin:18px 0; }
#desk .message-face { width:38px; height:38px; border:1px solid #bba36e9c; background:#22382b; }
#desk #avatar { width:38px; height:38px; }
#desk .bubble {
  padding:12px 17px; border-color:#7f96703b; color:#ecf0e8;
  background:linear-gradient(120deg,#294437,#22372d);
  box-shadow:inset 0 1px #edf5da09,0 3px 9px #030b061f;
}
#desk .model-reply .bubble { background:linear-gradient(120deg,#252d25,#20271f); border-color:#b9a57540; }
#desk .speaker { color:#c4dcc4; margin:0 0 5px; }
#desk .model-reply .speaker { color:#e3ca97; }
#desk .message { font-size:.97rem; line-height:1.65; }
#desk .compose-area {
  width:min(calc(100% - 2 * var(--desk-gutter)),var(--desk-column));
  padding:10px 0 max(14px,env(safe-area-inset-bottom));
}
#desk #compose-form {
  padding:14px 16px; background:linear-gradient(128deg,#223429,#1a261f);
  border:1px solid #ab9e745d; border-radius:12px;
  box-shadow:inset 0 1px #edebcf0d,0 7px 28px #030a0640;
}
#desk #compose-form:focus-within { border-color:#c8ae77; }
#desk #compose { min-height:52px; color:#f4efe3; font-size:1rem; line-height:1.5; }
#desk #compose::placeholder { color:#b1bbaa; }
#desk #compose:focus-visible { outline:none; }
#desk .compose-tools { margin-top:4px; flex-wrap:wrap; }
#desk #provider-state { color:#c4cec1; display:flex; align-items:center; gap:8px; overflow-wrap:anywhere; }
#desk #provider-state::before { content:''; width:6px; height:6px; flex:none; border:1px solid #b1ceaa; border-radius:50%; }
#desk #send { padding:8px 17px; margin-left:auto; }
#desk #send:disabled { background:#304034; color:#a6b09d; border-color:#72816970; box-shadow:none; opacity:1; }
#desk .data-note { margin:8px 0 0; font-size:.74rem; color:#9ea99c; }
#close-navigation { display:none; }
@media (max-width:720px) {
  #desk { --desk-gutter:16px; grid-template-columns:minmax(0,1fr); --bar-height:65px; }
  #desk .desk-header { min-height:var(--bar-height); padding:8px 14px; }
  #desk .nav-toggle, #desk .export-action { min-height:40px; }
  #desk .nav-toggle { display:block; color:var(--desk-champagne); background:transparent; border-color:var(--desk-hairline); padding:8px 12px; }
  #desk .lux-avatar { width:36px; height:36px; }
  #desk .workspace-label { gap:9px; }
  #desk .workspace-identity strong { font-size:1.18rem; }
  #desk.nav-open #sidebar { top:var(--bar-height); padding-top:12px; width:min(85vw,306px); }
  #desk.nav-open #close-navigation { display:block; position:absolute; z-index:1; inset:var(--bar-height) 0 0; border:0; border-radius:0; background:#040906b3; }
  #desk #sidebar .brand { min-height:53px; margin-bottom:14px; }
  #desk .transcript { padding-top:24px; }
  #desk.new-conversation .heading-copy { max-width:75%; }
  #desk.new-conversation .chat-heading { min-height:clamp(190px,30vh,255px); }
  #desk.new-conversation .chat-heading h1 { font-size:clamp(2.2rem,8vw,3rem); }
  #desk .bubble { padding:10px 13px; max-width:calc(100% - 48px); }
  #desk #messages li { gap:8px; }
  #desk .compose-area { padding-bottom:max(8px,env(safe-area-inset-bottom)); }
  #desk #compose-form { padding:10px 12px; }
}
@media (max-height:560px) {
  #desk.new-conversation .chat-heading { min-height:130px; }
  #desk #compose { min-height:34px; height:36px; }
}
