@font-face{font-family:"DM Sans";src:url("/fonts/DMSans.ttf") format("truetype");font-weight:100 1000;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url("/fonts/InstrumentSerif-Regular.ttf") format("truetype");font-weight:400;font-display:swap}
:root{color-scheme:light;--forest:#183e34;--forest-dark:#122e28;--green:#28634d;--lime:#d2ed99;--paper:#f7f7f1;--panel:#fffefa;--ink:#20352c;--muted:#607169;--line:#dbe0d5;--serif:"Instrument Serif",Georgia,serif;--sans:"DM Sans",Arial,sans-serif;font:15px/1.5 var(--sans);color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit;text-decoration:none}input,textarea{min-width:0}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #78a342;outline-offset:3px}button{border:0;background:none}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.15}button:disabled{opacity:.6}svg.ico{width:19px;height:19px;display:block;flex:none;stroke-width:1.65}span[data-icon]{display:inline-flex;align-items:center;justify-content:center}[hidden]{display:none!important}.sr{position:absolute;width:1px;max-height:1px;clip-path:inset(50%);overflow:hidden}.section-label{text-transform:uppercase;font-size:10px;letter-spacing:.16em;font-weight:760;color:#587360}.primary,.secondary,.text-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:680}.primary,.secondary{padding:10px 16px;border-radius:10px;font-size:14px;min-height:42px}.primary{color:white;background:var(--forest)}.primary:hover,.send-btn:hover{background:#2a5948}.secondary{background:var(--panel);border:1px solid var(--line)}.secondary:hover,.icon-btn:hover{background:#e8ede2}.text-link{font-size:13px;color:var(--green)}.text-link:hover{text-decoration:underline}.text-link svg{width:15px;height:15px}.icon-btn{display:grid;place-items:center;min-height:40px;min-width:40px;border-radius:9px;color:var(--muted)}.brand{font-family:var(--serif);font-size:32px;line-height:1;letter-spacing:-.04em;display:inline-flex;align-items:center;gap:11px;color:inherit;white-space:nowrap}.brand img{width:34px;height:34px}.brand:hover{opacity:.94}#loading{margin:20vh auto;text-align:center;color:var(--muted)}
#login{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.login-panel{display:flex;flex-direction:column;padding:45px clamp(35px,6vw,102px)}.login-main{width:min(100%,410px);margin:auto 0;padding:52px 0}.login-main h1{font:58px/.98 var(--serif);margin:14px 0 20px;letter-spacing:-.045em}.login-main>p{color:var(--muted);max-width:37ch}.login-main form{display:grid;gap:18px;margin:26px 0 12px}.login-main label{display:grid;gap:7px;font-size:13px;font-weight:650}.login-main input{border:1px solid #cdd5c9;border-radius:9px;background:var(--panel);padding:11px 14px;font-size:16px}.login-main .primary{justify-content:space-between}.login-main .secondary{width:100%;margin-top:12px}.login-main #login-error{color:#8f392d}.login-art{background:var(--forest);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;color:var(--lime)}.reel-shape{font:clamp(280px,41vw,850px)/1 Georgia,serif;transform:rotate(-9deg);color:var(--lime)}.art-caption{position:absolute;bottom:40px;left:40px;font:30px var(--serif);color:var(--panel)}.art-caption span{display:block;font:12px var(--sans);color:#c1d5c6;margin-top:3px}
#studio{min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr)}#sidebar{position:sticky;top:0;height:100vh;height:100dvh;background:var(--forest-dark);color:#f2f6ec;display:flex;flex-direction:column;overflow:auto;z-index:5;padding:28px 17px 12px}.side-head{padding:0 10px 31px}.side-head .brand{font-size:30px}.mobile-close,.menu-toggle{display:none}nav{display:grid;gap:4px}nav a{min-height:42px;display:flex;gap:13px;align-items:center;border-radius:8px;font-size:14px;font-weight:575;padding:9px 13px;color:#c7d7ca}nav a:hover,.agent-item:hover{background:#224438;color:#fff}nav a[aria-current="page"]{color:#ecf4da;background:#315342}nav a[aria-current="page"] svg{color:var(--lime)}.team{margin-top:26px;border-top:1px solid #365044;padding-top:23px}.side-section{display:flex;align-items:center;justify-content:space-between;padding:0 10px 10px}.side-section h2{color:#b4c8b7;font:680 10px var(--sans);text-transform:uppercase;letter-spacing:.13em}.side-section span{font-size:11px;color:#b4c8b7}.agent-item{display:flex;width:100%;text-align:left;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;color:#d9e3da;font-size:13px}.agent-tile{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;flex:none;background:var(--tint,#dce7bd);color:var(--glyph,#3b573f)}.agent-tile svg{width:16px;height:16px}.agent-text{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.active-dot{display:inline-block;width:7px;height:7px;background:#a5d474;border-radius:50%}.account{border-top:1px solid #365044;margin-top:auto;padding:17px 3px 4px;display:flex;align-items:center;gap:10px}.account-avatar{width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:#344f40;color:#d5e5ca}.account strong,.account small{display:block}.account strong{font-size:13px}.account small{font-size:11px;color:#adc2b1}.account .icon-btn{margin-left:auto;color:#adc2b1}.account .icon-btn:hover,.mobile-close:hover{background:#315342;color:#fff}.side-note{margin:8px 10px;color:#bbcfbf;font-size:13px}
#workspace{min-width:0}.topbar{height:65px;display:flex;align-items:center;gap:12px;justify-content:space-between;padding:0 clamp(20px,3.8vw,60px);border-bottom:1px solid var(--line)}.crumb{display:flex;align-items:center;gap:11px;font-size:12px}.crumb-root,.crumb-slash{color:var(--muted)}.crumb strong{font-weight:650}#connection{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#53634f;background:#e8eee1;border:1px solid #d7dfcd;border-radius:30px;padding:4px 11px}#connection i{display:block;background:#7a8a74;width:6px;height:6px;border-radius:50%}#connection[data-state="live"] i{background:#42894c}#connection[data-state="error"] i{background:#ac6835}#content{padding:24px clamp(20px,3.8vw,60px) 25px;max-width:1730px;margin:0 auto}.view-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 22px}.view-heading h1{font:clamp(40px,4.2vw,66px)/1 var(--serif);letter-spacing:-.045em;margin-top:4px}.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(215px,19vw,286px);gap:19px;align-items:start}.chat-pane,.context-block,.office-card,.release,.office-stage,.empty{background:var(--panel);border:1px solid var(--line);border-radius:16px}.chat-pane{height:calc(100vh - 211px);height:calc(100dvh - 211px);min-height:415px;max-height:1150px;display:flex;flex-direction:column;min-width:0}.chat-head{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:16px 21px}.chat-head h2{font-size:17px;font-weight:670}.chat-head p{font-size:12px;color:var(--muted);margin-top:2px}.agent-mark{display:grid;place-items:center;background:#e4eed0;color:#31543a;border:1px solid #d3dfbc;border-radius:11px}.agent-mark.large{width:40px;height:40px}.agent-mark.large svg{width:23px;height:23px}.head-info{margin-left:auto}.chat-feed{overflow-y:auto;overscroll-behavior:contain;flex:1;padding:20px;min-height:0;scrollbar-width:thin}.msg{margin:0 0 18px;font-size:14px;line-height:1.55}.msg:last-child{margin-bottom:0}.msg-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;margin:0 0 5px}.msg-label strong{font-weight:675;color:#4b6252}.msg-body{white-space:pre-wrap;overflow-wrap:anywhere;max-width:75ch}.msg.user{display:flex;align-items:flex-end;flex-direction:column}.msg.user .msg-body{padding:10px 14px;border:1px solid #dce5d2;background:#edf3e6;border-radius:13px 13px 3px 13px;max-width:88%}.msg.assistant .msg-body{padding-left:0}.msg-download{margin-top:8px;display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;width:fit-content;max-width:100%;background:#f5f7ef;font-size:13px;overflow-wrap:anywhere}.msg-download:hover{border-color:#9cba9a}.chat-empty{display:flex;height:100%;min-height:75px;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:8px;padding:12px}.chat-empty h3{font:29px var(--serif)}.chat-empty p{max-width:35ch;color:var(--muted);font-size:13px}.chat-empty .agent-mark{width:42px;height:42px;margin-bottom:3px}.chat-state-error{color:#9e4d32}#chat-state:not(:empty){font-size:12px;padding:3px 20px 6px}#composer{background:#f8f9f4;border:1px solid #cfd8c7;border-radius:12px;margin:7px 14px 14px;padding:10px 11px 9px}#composer:focus-within{border-color:#80a17b}#message{width:100%;display:block;resize:none;background:transparent;border:0;outline:none!important;height:43px;max-height:130px;font-size:14px;color:var(--ink)}#message::placeholder{color:#697a6d}.compose-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}.compose-controls small{font-size:10px;color:var(--muted)}.send-btn{width:34px;height:34px;display:grid;place-items:center;color:#fff;background:var(--forest);border-radius:9px}.send-btn:disabled{background:#dce4d5;color:#74836e;opacity:1}.context{display:grid;gap:16px}.context-block{padding:17px}.block-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.block-title h2,.office-card h2{font:25px var(--serif);letter-spacing:-.025em}.block-title>span{color:#78947a}.recent-item{display:flex;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.recent-item strong,.file-row strong{display:block;overflow-wrap:anywhere}.recent-item small,.file-row small{display:block;color:var(--muted);font-size:11px}.file-icon{width:33px;height:36px;border-radius:8px;display:grid;place-items:center;flex:none;background:#eef0e6;color:#677953}.context-block .text-link{margin-top:12px}.context-empty{font-size:12px;color:var(--muted);padding:14px 0 4px}.office-card{overflow:hidden;display:block}.office-thumbnail{height:110px;background:#729671 center 53%/cover}.office-card>div:last-child{padding:13px 16px}.office-card h2{display:flex;align-items:center;justify-content:space-between}.office-card:hover h2{color:var(--green)}.office-card h2 svg{width:16px}
#release-tools{display:flex;margin-bottom:20px}.search{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--line);padding:9px 13px;border-radius:9px;max-width:460px;width:100%;color:var(--muted)}.search input{border:0;outline:none;background:transparent;flex:1;width:100%;font-size:14px}.release{margin:0 0 15px;overflow:hidden}.release-head{padding:17px 20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);background:#f2f5eb}.release-head h2{font:27px var(--serif);letter-spacing:-.02em}.release-head .version{font-size:11px;border:1px solid #cdd9c7;background:#f8faf2;border-radius:5px;padding:2px 6px}.release-head .zip{margin-left:auto;font-size:12px}.file-row,.transfer{display:flex;align-items:center;gap:12px;padding:12px 20px}.file-row+.file-row,.transfer+.transfer{border-top:1px solid var(--line)}.file-row strong{font-size:14px}.file-actions{margin-left:auto}.file-actions a{display:grid;place-items:center;width:42px;height:42px;color:var(--green);border-radius:8px}.file-actions a:hover{background:#e5eedc}.empty{padding:24px;color:var(--muted);font-size:14px}.empty button{margin-top:12px}.transfer div{min-width:0;flex:1}.transfer strong{font-size:13px;overflow-wrap:anywhere}.transfer progress{display:block;width:min(100%,280px);height:7px;accent-color:var(--green);margin:6px 0}.transfer small{font-size:12px;color:var(--muted)}.office-stage{overflow:hidden}.office-stage>img{display:block;width:100%;max-height:48vh;object-fit:cover}.stage-foot{display:flex;align-items:center;justify-content:space-between;padding:22px;gap:12px}.stage-foot h2{font:32px var(--serif)}.stage-foot p,#office-state{font-size:14px;color:var(--muted);margin-top:5px}
dialog{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:16px;padding:23px;width:min(440px,calc(100% - 32px));max-height:80dvh;box-shadow:0 24px 80px #102e2529}dialog::backdrop{background:#101f1988}.dialog-top{display:flex;align-items:center;justify-content:space-between}.dialog-top .icon-btn{margin:-8px -8px 0 0}.dialog-agent{display:flex;align-items:center;gap:13px;margin:18px 0}.dialog-agent .agent-tile{width:45px;height:45px}.dialog-agent h2{font:32px var(--serif)}.dialog-agent p{color:var(--muted);font-size:13px}#agent-details dl{margin:14px 0;display:grid;grid-template-columns:95px 1fr;gap:6px;font-size:13px}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}#agent-details h3{font-size:14px;margin:19px 0 8px}#agent-details ul{padding-left:19px;font-size:13px;overflow-wrap:anywhere}#agent-details p.muted{color:var(--muted);font-size:13px}#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:var(--forest-dark);color:white;padding:10px 16px;border-radius:9px;box-shadow:0 8px 24px #1a332b26;z-index:9;font-size:13px;max-width:90vw}
@media(min-width:1450px){#studio{grid-template-columns:260px minmax(0,1fr)}.chat-pane{height:calc(100dvh - 225px)}}
@media(max-width:1150px){#studio{grid-template-columns:215px minmax(0,1fr)}.chat-layout{grid-template-columns:minmax(0,1fr)}.context{display:none}}
@media(max-width:760px){#studio{display:block;min-height:100dvh}#sidebar{position:fixed;left:0;top:0;bottom:0;width:min(295px,86vw);transform:translateX(-103%);visibility:hidden;transition:transform .19s,visibility .19s;box-shadow:0 0 32px #10251c25;padding-top:max(22px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}#sidebar.open{transform:none;visibility:visible}#scrim{position:fixed;inset:0;z-index:4;background:#172b2280}.side-head{display:flex;align-items:center;justify-content:space-between}.mobile-close,.menu-toggle{display:grid}.mobile-close{color:#d7e5d7}.topbar{height:53px;padding:0 12px;gap:8px}.crumb{margin-right:auto}.crumb-root,.crumb-slash{display:none}#content{padding:14px 12px max(12px,env(safe-area-inset-bottom))}.view-heading{margin-bottom:13px}.view-heading h1{font-size:39px}.view-heading .section-label{font-size:9px}.chat-pane{min-height:0;height:calc(100vh - 147px);height:calc(100dvh - 147px - env(safe-area-inset-bottom))}.chat-head{padding:10px 12px}.chat-head h2{font-size:16px}.chat-feed{padding:14px}.chat-pane,.release,.office-stage{border-radius:12px}#composer{margin:5px 8px 8px;padding:8px 9px}#message,.search input{font-size:16px}.compose-controls small{visibility:hidden}.account{padding-left:6px;padding-right:6px}.team{margin:18px 0 24px}.release-head,.file-row,.transfer{padding:11px 13px;gap:8px}.release-head h2{font-size:23px}.release-head .zip{font-size:11px}.stage-foot{align-items:flex-start;flex-direction:column;padding:16px}.stage-foot .primary{margin-top:7px}.login-art{display:none}#login{grid-template-columns:1fr}.login-panel{padding:28px 22px}.login-main{align-self:center}.search{max-width:none}.chat-state-error{line-height:1.25}dialog{border-radius:12px}}
@media(max-height:650px) and (min-width:761px){#sidebar{padding-top:15px}.side-head{padding-bottom:16px}.team{margin-top:14px;padding-top:12px}.agent-item{padding-top:5px;padding-bottom:5px}}
@media(prefers-reduced-motion:reduce){*,*::after,*::before{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

#approval{margin:4px 14px;padding:10px 12px;border:1px solid #d5bd85;background:#fff8e4;border-radius:10px;font-size:12px}#approval p,#approval code{display:block;white-space:pre-wrap;overflow-wrap:anywhere;max-height:70px;overflow:auto}#approval code:empty{display:none}#approval>div{display:flex;gap:8px;margin-top:8px}#approval button{font-size:12px;min-height:32px;padding:5px 8px}
.files-source{color:var(--muted);font-size:12px;margin:0 0 12px}.office-stage iframe{border:0;width:100%;height:min(68dvh,780px);min-height:320px;display:block}.office-stage #office-actions,#office-actions{margin-top:12px}#office-state a{color:var(--green);text-decoration:underline}

.office-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:.65rem;flex-wrap:wrap;margin:0 0 .75rem}
.office-toolbar #office-state{flex:1;margin:0}.office-stage:empty{display:none}
.office-stage iframe{height:clamp(390px,71dvh,960px);background:#122e28}
@media(max-width:760px){.office-toolbar #office-state:not(:empty){flex-basis:100%}.office-stage iframe{height:68dvh;min-height:320px}}

/* Conversation uses the typography and quiet margins of a studio notebook. */
.studio-heading {
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid #b9c5b8;
}
.studio-heading h1 {
  font-size: clamp(44px, 5vw, 78px);
  letter-spacing: -.04em;
  margin: 0;
}
.conversation-files {
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 650;
}
#view-conversation .chat-pane {
  border-radius: 12px;
  box-shadow: 0 8px 26px -16px #17382c42;
  overflow: hidden;
  height: calc(100dvh - clamp(175px, 15vw, 225px));
}
.chat-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #193c32;
  color: #fffaf0;
  border: 0;
  padding: 18px clamp(16px, 2vw, 32px);
}
.chat-head::before {
  content: "";
  position: absolute;
  inset: 0 0 0 42%;
  z-index: -1;
  background: repeating-radial-gradient(circle at 68% 140%, transparent 0 16px, #c0d8bd22 17px, transparent 18px 29px);
  pointer-events: none;
}
.chat-head h2 { font-size: clamp(17px, 1.45vw, 21px); letter-spacing: -.025em; }
.chat-head p { color: #c9dacc; }
.chat-head .agent-mark { border: 1px solid #a3bc9c; background: #dce8ca; color: #244635; border-radius: 50%; }
.chat-head .head-info { color: #dfeadd; min-width: 44px; min-height: 44px; }
.chat-head .head-info:hover { background: #355848; }
.chat-feed { padding: clamp(18px, 2.4vw, 36px); scrollbar-color: #b7c5b5 transparent; }
.msg { line-height: 1.65; font-size: 15px; margin-bottom: 24px; }
.msg-label { gap: 10px; margin-bottom: 7px; font-size: 12px; }
.msg-label time { font-variant-numeric: tabular-nums; }
.msg.user .msg-body { background: #eaf0e5; border-color: #d8e1d3; }
#composer { margin: 6px clamp(12px, 1.6vw, 24px) 15px; padding: 10px 12px 7px; background: #fffefa; }
#composer:focus-within { outline: 2px solid #50725c; outline-offset: 1px; }
#message { caret-color: var(--forest); }
.compose-controls small { font-size: 11px; }
.send-btn { width: 44px; height: 44px; border-radius: 50%; }
#view-conversation .context-block { border: 0; border-top: 2px solid var(--forest); border-radius: 0; background: transparent; padding: 15px 0; }
#view-conversation .context { gap: 22px; }
#view-conversation .office-thumbnail { height: clamp(120px, 11vw, 165px); }
@media (max-width: 1150px) { .conversation-files { display: inline-flex; } }
@media (max-width: 760px) {
  .studio-heading { margin: 0 0 10px; padding-bottom: 6px; align-items: center; }
  .studio-heading h1 { font-size: clamp(36px, 9.5vw, 48px); }
  #view-conversation .chat-pane { height: calc(100dvh - 144px - env(safe-area-inset-bottom)); }
  .chat-head { padding: 10px 12px; }
  .chat-feed { padding: 16px; }
  #composer { margin: 4px 8px 8px; }
}
@media (pointer: coarse) {
  .compose-controls small { display: none; }
  .compose-controls { justify-content: flex-end; }
}

/* Sign-in borrows the reel motif and paper surface from the studio. */
.login-panel { padding: clamp(24px, 5vw, 82px); }
.login-main h1 { font-size: clamp(54px, 6vw, 92px); letter-spacing: -.04em; }
.login-main input { min-height: 48px; background: var(--panel); }
.login-main .primary, .login-main .secondary { min-height: 48px; }
.login-main #preview-login { background: var(--forest); color: var(--panel); justify-content: space-between; }
.login-art { background: #193c32; isolation: isolate; }
.reel-disc {
  position: absolute;
  width: 110%;
  aspect-ratio: 1;
  left: 12%;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 1px solid #8da78f;
  border-radius: 50%;
  background: repeating-radial-gradient(circle closest-side, #294d41 0 2%, #496959 2.2%, #234639 2.5% 4%);
  box-shadow: -16px 27px 70px #112c24;
}
.reel-disc img { width: 22%; border-radius: 50%; transform: rotate(-15deg); }
#view-fichiers .search { min-height: 46px; }
.search:focus-within { outline: 2px solid #50725c; outline-offset: 2px; }
.release { border-radius: 12px; }
.release-head, .office-toolbar {
  background: #193c32;
  color: #fffaf0;
  padding: 14px clamp(14px, 2vw, 28px);
}
.release-head h2 { overflow-wrap: anywhere; min-width: 0; }
.release-head .version { border: 0; background: transparent; color: #d3e2d4; overflow-wrap: anywhere; }
.release-head .zip { color: #edf4dd; min-height: 44px; flex-shrink: 0; }
.file-row { padding-inline: clamp(14px, 2vw, 28px); }
.file-row > div:nth-child(2) { min-width: 0; }
.file-row small { overflow-wrap: anywhere; font-size: 12px; font-variant-numeric: tabular-nums; }
.file-actions a { width: 44px; height: 44px; }
#view-bureau .office-toolbar { justify-content: flex-start; margin: 0; border-radius: 12px 12px 0 0; }
.office-name { display: flex; align-items: center; gap: 9px; font: 26px var(--serif); }
.office-toolbar #office-state { color: #e0eadf; padding-inline: 8px; }
.office-toolbar .secondary { color: #f1f5ea; background: #2b5042; border-color: #69836f; min-height: 44px; }
.office-toolbar .secondary:hover { background: #3a604d; }
#office-stage { border-radius: 0 0 12px 12px; }
#view-bureau:has(.office-stage:empty) .office-toolbar { border-radius: 12px; }
@media (max-width: 760px) {
  #login { display: flex; flex-direction: column; }
  .login-panel { flex: 1; padding: max(24px, env(safe-area-inset-top)) 24px 24px; }
  .login-main { padding: 36px 0; }
  .login-art { display: block; min-height: 92px; height: 17dvh; }
  .reel-disc { width: 72%; max-width: 430px; left: 42%; }
  .release-head { padding-block: 5px; gap: 5px; }
  .release-head h2 { font-size: 24px; }
  #release-tools .search { max-width: none; }
  .office-toolbar { gap: 8px; padding: 10px 12px; }
  .office-name { margin-right: auto; font-size: 23px; }
  .office-toolbar #office-state:empty { display: none; }
  .office-toolbar #office-state:not(:empty) { order: 1; padding: 0; }
  .office-toolbar .secondary { padding-inline: 9px; font-size: 12px; }
}
@media (min-width: 360px) and (max-width: 760px) {
  #view-bureau .office-toolbar { display: grid; grid-template-columns: 1fr auto auto; }
  .office-toolbar #office-state { grid-column: 1 / -1; grid-row: 2; }
}

/* Conversation — film editing room. Navigation runs above the transcript;
   the studio roster remains beside it on wide displays. */
#studio:has(#view-conversation:not([hidden])) {
  --ink: #272429;
  --forest: #342834;
  --muted: #625e65;
  --panel: #fffcf8;
  --line: #ded8d2;
  background: #f3efe9;
}
.conversation-cover {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between;
  min-height: clamp(150px, 20vh, 204px);
  background: #1c1b20 url("/conversation-film.webp") no-repeat right center / auto 133%;
  padding: clamp(20px, 2.4vw, 40px);
  color: #fff6ec;
}
.conversation-cover h1 {
  font: normal clamp(56px, 6.8vw, 108px)/.93 var(--serif);
  letter-spacing: -.042em; margin: 0;
}
.conversation-cover .conversation-files { display: none; }
#view-conversation .chat-layout { display: block; }
#view-conversation .context { display: none; }
#view-conversation .chat-pane {
  background: var(--panel); border: 0; border-radius: 0; box-shadow: none;
  min-height: 340px; height: auto; max-height: none; flex: 1;
}
#view-conversation .chat-head { color: #382631; background: #f1e7df; padding: 9px clamp(16px,2.4vw,38px); border-bottom: 1px solid #d6c9bf; }
#view-conversation .chat-head::before { display:none; }
#view-conversation .agent-mark { background: #533945; border-color: #533945; color:#ffe4ce; }
#view-conversation .chat-head p, #view-conversation .head-info { color:#66545a; }
#view-conversation .head-info:hover {background:#e2d4c9}
#view-conversation .msg-label strong { color:#744737; }
#view-conversation .msg.user .msg-body { background:#eee2d8; border-color:#dbcabd; }
#view-conversation #composer { background:#f6f1ec; border:1px solid #c7b9af; border-radius:16px; }
#view-conversation #composer:focus-within { outline-color:#936247; }
#view-conversation .send-btn {background:#583741;color:white;}
#view-conversation .send-btn:disabled {background:#e3d6cb;color:#685d58;}
#view-conversation .chat-layout { display:flex; flex-direction:column; min-height:0; flex:1; }
#view-conversation:not([hidden]) { display:flex; flex-direction:column; }
#studio:has(#view-conversation:not([hidden])) #content { padding:0; max-width:none; }
#view-conversation { height:calc(100dvh - 65px); min-height:525px; }
@media(min-width:1000px) {
  #studio:has(#view-conversation:not([hidden])) {
    grid-template-columns: minmax(210px,1fr) auto minmax(216px,1fr);
    grid-template-rows: 72px 1fr; align-items:stretch;
  }
  #studio:has(#view-conversation:not([hidden])) #sidebar {display:contents;}
  #studio:has(#view-conversation:not([hidden])) :is(.side-head,nav,.account) {
    grid-row:1; background:#242126; color:#fff6ee; margin:0; border:0;
    display:flex; align-items:center; padding:0 24px;
  }
  #studio:has(#view-conversation:not([hidden])) .side-head {grid-column:1;}
  #studio:has(#view-conversation:not([hidden])) nav {grid-column:2; justify-content:center;}
  #studio:has(#view-conversation:not([hidden])) nav a {color:#e4d8d1;}
  #studio:has(#view-conversation:not([hidden])) nav a:is(:hover,[aria-current="page"]) {background:#50424a;color:white;}
  #studio:has(#view-conversation:not([hidden])) nav a svg {color:#e8c2ad;}
  #studio:has(#view-conversation:not([hidden])) .account {grid-column:3; justify-content:flex-end;gap:12px;}
  #studio:has(#view-conversation:not([hidden])) .account .icon-btn {margin:0;}
  #studio:has(#view-conversation:not([hidden])) #workspace {grid-column:1/-1;grid-row:2;margin-right:240px;}
  #studio:has(#view-conversation:not([hidden])) .team {
    grid-row:2;grid-column:3;justify-self:end;width:240px;position:relative;z-index:1;
    background:#e9e3dc; margin:0; border:0; border-left:1px solid #d6cec4; padding:26px 13px;
  }
  #studio:has(#view-conversation:not([hidden])) .side-section :is(h2,span) {color:#685a59;}
  #studio:has(#view-conversation:not([hidden])) .agent-item { color:#392e35;border-bottom:1px solid #d9cfc5;border-radius:0;padding:13px 10px; }
  #studio:has(#view-conversation:not([hidden])) .agent-item:hover {background:#e1d5ca;}
  #studio:has(#view-conversation:not([hidden])) .topbar {height:42px;padding:0 30px;}
  #view-conversation {height:calc(100dvh - 114px);}
  #view-conversation .chat-feed, #view-conversation #composer {width:min(calc(100% - 60px),850px);align-self:center;}
  #view-conversation .chat-feed {padding:28px 0;}
}
@media(max-width:760px) {
  #view-conversation {height:calc(100dvh - 53px);min-height:0;}
  #view-conversation .chat-pane {min-height:0;}
  .conversation-cover { min-height:clamp(94px,16dvh,140px);padding:16px;background-size:auto 109%;background-position:right -70px center;}
  .conversation-cover h1 {font-size:clamp(42px,11vw,65px); text-shadow:0 2px 6px #19181d;}
  #view-conversation .chat-head {padding:8px 14px;}
  #view-conversation #composer {margin-bottom:max(10px,env(safe-area-inset-bottom));}
}
#view-conversation .chat-layout {align-items:stretch;}
.resources-trigger {margin-left:auto;display:inline-flex;align-items:center;gap:7px;min-height:44px;color:#60483f;font-size:13px;font-weight:650;}
#view-conversation .head-info {margin-left:0;}
#conversation-resources:popover-open {display:grid;position:fixed;inset:0;margin:auto;gap:10px;width:min(380px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:16px 22px 22px;background:#fffcf8;color:#272429;border:1px solid #d5c7bc;border-radius:12px;box-shadow:0 12px 50px #20182238;}
#conversation-resources::backdrop {background:#29232966;}
.resource-tools {display:flex;justify-content:flex-end;}
@media(max-width:390px){.resources-trigger{font-size:12px;gap:4px;padding:3px;}.resources-trigger .ico{width:15px;}#view-conversation .chat-head{gap:7px;}}
@media(max-width:760px){
  #view-conversation .chat-head h2 {white-space:nowrap;font-size:clamp(14px,4vw,17px);}
  #view-conversation .chat-head .agent-mark {width:30px;height:30px;flex:none;}
}
@media(max-width:360px){.resources-trigger span{display:none;}}
