/* ScreamBoss AI — panel stilleri */

:root {
  --bg:        #f6f7f9;
  --side:      #f0f2f5;
  --surface:   #ffffff;
  --surface-2: #f7f9fb;
  --line:      #e3e8ee;
  --line-2:    #eef2f6;
  --ink:       #10151c;
  --ink-2:     #4a5563;
  --ink-3:     #8a94a2;
  --accent:    #2d6bff;
  --ok:        #00a86b;
  --warn:      #e0900a;
  --bad:       #e0245e;
  --code-bg:   #1b1f27;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.sec-label { font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin: 2px 0 10px; }
.hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin: 0 0 14px; }

/* ------------------------------------------------------------- giris */
.login { position: fixed; inset: 0; display: grid; place-items: center;
  background: linear-gradient(160deg, #f3f6fa, #e6ebf2); z-index: 60; }
.login-box { width: 330px; padding: 34px 30px; text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16,21,28,.10); }
.login-mark { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 12px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-weight: 800; letter-spacing: .04em; }
.login-box h1 { margin: 0; font-size: 19px; }
.login-box p { margin: 5px 0 20px; font-size: 12.5px; color: var(--ink-3); }
.login-box input, .login-box button { width: 100%; padding: 11px 13px;
  border-radius: 9px; font-size: 14px; font-family: inherit; }
.login-box input { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.login-box button { margin-top: 10px; border: 0; background: var(--ink); color: #fff;
  font-weight: 650; cursor: pointer; }
.login-error { margin-top: 12px; min-height: 17px; font-size: 12.5px; color: var(--bad); }

/* ------------------------------------------------------------- iskelet */
.app { display: flex; height: 100%; }

/* --- kenar cubugu --- */
.sidebar {
  width: 258px; flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--side); border-right: 1px solid var(--line);
  transition: margin-left .18s ease;
}
.sidebar.collapsed { margin-left: -258px; }
.side-head { display: flex; align-items: center; gap: 9px; padding: 14px 14px 10px; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--ink);
  color: #fff; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; }
.brand-text { font-size: 14px; font-weight: 600; }
.brand-text b { color: var(--accent); }

.new-chat {
  margin: 4px 12px 12px; padding: 10px 13px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 13.5px; font-weight: 600; text-align: left;
  display: flex; align-items: center; gap: 9px;
}
.new-chat:hover { background: var(--surface-2); border-color: #d3dbe4; }
.new-chat .plus { font-size: 17px; line-height: 1; color: var(--accent); }

.chat-list { flex: 1; overflow-y: auto; padding: 0 8px 8px; }
.chat-group { font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); padding: 12px 8px 5px; }
.chat-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px;
  cursor: pointer; font-size: 13px; color: var(--ink-2); margin-bottom: 2px;
}
.chat-item:hover { background: #e6eaf0; }
.chat-item.active { background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 3px rgba(16,21,28,.06); }
.chat-item .ci-name { flex: 1; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.chat-item .ci-av { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.chat-item .ci-busy { width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 1s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.side-foot { border-top: 1px solid var(--line); padding: 11px 14px; }
.foot-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.foot-row b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(0,168,107,.15); }
.dot.warn { background: var(--warn); }

/* --- icerik --- */
.content { flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: var(--surface); }
.content-head { display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 8px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.icon-btn { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.icon-btn:hover { background: var(--surface-2); }

.tabs { display: flex; gap: 2px; overflow-x: auto; }
.tab { padding: 7px 13px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-3);
  white-space: nowrap; }
.tab:hover { background: var(--surface-2); color: var(--ink-2); }
.tab.active { background: var(--ink); color: #fff; }
.tab.lock { padding: 7px 11px; }

.head-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
select, .btn { font-family: inherit; font-size: 13px; border-radius: 8px; cursor: pointer; }
select { padding: 6px 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn { padding: 8px 15px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-weight: 600; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { filter: brightness(1.18); }
.btn.danger { color: var(--bad); border-color: #f3ccd8; }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.btn.full { width: 100%; margin-top: 10px; }

.view { display: none; flex: 1; min-height: 0; flex-direction: column; }
.view.active { display: flex; }
.view.pad { overflow-y: auto; padding: 22px; }
.col { max-width: 760px; margin: 0 auto; width: 100%; }

/* ------------------------------------------------------------- sohbet */
.chat-scroll { flex: 1; overflow-y: auto; padding: 20px 22px 8px; }
.chat-title-bar { max-width: 760px; margin: 0 auto 16px; font-size: 12px;
  color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.messages { max-width: 760px; margin: 0 auto; display: flex;
  flex-direction: column; gap: 20px; }

.chat-empty { max-width: 620px; margin: 12vh auto; text-align: center; }
.chat-empty h2 { font-size: 22px; margin: 0 0 8px; letter-spacing: -.02em; }
.chat-empty p { color: var(--ink-3); font-size: 13.5px; margin: 0 0 22px; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.starter { padding: 9px 14px; border: 1px solid var(--line); border-radius: 20px;
  background: #fff; font-family: inherit; font-size: 12.5px; color: var(--ink-2);
  cursor: pointer; }
.starter:hover { background: var(--surface-2); color: var(--ink); }

.msg { display: flex; gap: 12px; animation: fade-in .2s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }
.msg-av { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px; }
.msg-main { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.msg-who { font-size: 13px; font-weight: 700; }
.msg-role { font-size: 10.5px; color: var(--ink-3); }
.msg-time { margin-left: auto; font-size: 10px; color: var(--ink-3); font-family: var(--mono); }
.msg-text { font-size: 14px; line-height: 1.72; color: var(--ink-2); word-break: break-word; }
.msg-text p { margin: 0 0 10px; }
.msg-text p:last-child { margin-bottom: 0; }
.msg-text ul, .msg-text ol { margin: 0 0 10px; padding-left: 22px; }
.msg-text li { margin-bottom: 4px; }
.msg-text h1, .msg-text h2, .msg-text h3 { margin: 16px 0 8px; font-size: 15px;
  color: var(--ink); }
.msg-text a { color: var(--accent); }
.msg-text code.inline { background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 5px; padding: 1px 5px; font-family: var(--mono); font-size: 12.5px;
  color: #c2185b; }
.msg-text strong { color: var(--ink); }

.msg.boss .msg-av { background: #ffe9ef; }
.msg.advisor { background: #f8f7fc; border: 1px dashed #d6cfe8;
  border-radius: 12px; padding: 12px; }
.msg.advisor .msg-who { color: #4c3d6b; }
.msg.advisor .msg-time { color: #7c6aa8; font-family: var(--font); }
.msg.system { justify-content: center; }
.msg.system .msg-text { font-size: 11.5px; color: var(--ink-3);
  font-family: var(--mono); background: var(--surface-2); padding: 5px 12px;
  border-radius: 20px; }
.msg-tag { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 10px; color: var(--ink-3); font-family: var(--mono); }

/* kod blogu */
.code-box { margin: 12px 0; border-radius: 10px; overflow: hidden;
  border: 1px solid #2a303a; }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 6px 11px;
  background: #22272f; color: #8b94a3; font-size: 10.5px; font-family: var(--mono);
  letter-spacing: .05em; text-transform: uppercase; }
.code-bar .grow { margin-left: auto; display: flex; gap: 6px; }
.code-bar button { border: 1px solid #363d48; background: #2b313a; color: #c7cedb;
  border-radius: 6px; padding: 3px 9px; font-size: 10.5px; font-family: inherit;
  cursor: pointer; text-transform: none; letter-spacing: 0; }
.code-bar button:hover { background: #363d48; color: #fff; }
.code-box pre { margin: 0; padding: 13px 14px; background: var(--code-bg); color: #dfe6f2;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.62;
  overflow-x: auto; white-space: pre; }

.msg.streaming .msg-text::after { content: '▍'; color: var(--accent);
  animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- yazma alani --- */
.composer { flex-shrink: 0; padding: 10px 22px 18px; background: var(--surface); }
.attach-strip { max-width: 760px; margin: 0 auto 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.attach-chip { display: flex; align-items: center; gap: 6px; padding: 4px 9px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2);
  font-size: 11.5px; color: var(--ink-2); }
.attach-chip b { font-weight: 600; }
.attach-chip .x { cursor: pointer; color: var(--ink-3); font-size: 13px; }

.composer-box { max-width: 760px; margin: 0 auto; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; padding: 10px 12px 8px;
  box-shadow: 0 2px 10px rgba(16,21,28,.05); }
.composer-box:focus-within { border-color: #c2d0e8; box-shadow: 0 2px 14px rgba(45,107,255,.10); }
.composer-box textarea { width: 100%; border: 0; outline: 0; resize: none;
  font-family: inherit; font-size: 14px; line-height: 1.6; color: var(--ink);
  background: transparent; max-height: 220px; }
.composer-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.chip-btn { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 14px; }
.chip-btn:hover { background: var(--surface-2); }
.composer-hint { font-size: 11px; color: var(--ink-3); margin-left: auto; }
.send-btn { width: 32px; height: 32px; border: 0; border-radius: 9px;
  background: var(--ink); color: #fff; font-size: 16px; cursor: pointer; flex-shrink: 0; }
.send-btn:hover { filter: brightness(1.2); }
.send-btn:disabled { background: #cdd4dd; cursor: default; }
#agent-pick { max-width: 190px; }

/* ------------------------------------------------------------- ofis */
#view-office { flex-direction: row; }
.stage { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #e9edf3; }
.scene { position: absolute; inset: 0; }
.scene canvas { display: block; }
.overlay { position: absolute; inset: 0; pointer-events: none; }
.scene-error { position: absolute; inset: 0; display: grid; place-items: center;
  padding: 40px; text-align: center; color: var(--bad); font-size: 13px;
  background: rgba(255,255,255,.9); }

.tag { position: absolute; top: 0; left: 0; pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 3px 9px 3px 6px; border-radius: 20px;
  background: rgba(255,255,255,.95); border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(16,21,28,.08); font-size: 11px; transition: opacity .2s; }
.tag-dot { width: 7px; height: 7px; border-radius: 50%; }
.tag-name { font-weight: 650; }
.tag-role { color: var(--ink-3); font-size: 10px; }

.bubble { position: absolute; top: 0; left: 0; max-width: 290px; padding: 9px 12px;
  border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  box-shadow: 0 8px 24px rgba(16,21,28,.13); font-size: 12.5px; line-height: 1.5;
  opacity: 0; transition: opacity .25s; pointer-events: none; }
.bubble.show { opacity: 1; animation: bubble-in .22s cubic-bezier(.2,1.2,.4,1); }
@keyframes bubble-in { from { transform: scale(.92) translateY(6px); opacity: 0; } }
.bubble-who { display: block; font-size: 10px; font-weight: 750; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 3px; }
.bubble-text { color: var(--ink-2); }

.stage-card { position: absolute; top: 16px; left: 16px; padding: 13px 16px;
  background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 6px 20px rgba(16,21,28,.07); max-width: 290px; }
.stage-title { font-size: 14.5px; font-weight: 700; }
.stage-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.stage-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.stage-tags span { font-size: 10px; padding: 2px 8px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.stage-hint { position: absolute; top: 18px; right: 18px; font-size: 11px;
  color: var(--ink-3); background: rgba(255,255,255,.82); padding: 5px 10px;
  border-radius: 20px; }
.stage-foot { position: absolute; bottom: 16px; left: 16px; display: flex; gap: 7px; }
.chip { padding: 7px 13px; border-radius: 20px; border: 1px solid var(--line);
  background: rgba(255,255,255,.95); font-family: inherit; font-size: 11.5px;
  font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip:hover { background: #fff; color: var(--ink); }
.stage-credit { position: absolute; bottom: 18px; right: 18px; font-size: 10px;
  color: var(--ink-3); opacity: .8; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* kopegi sevme kalbi */
.heart { position: absolute; top: 0; left: 0; pointer-events: none;
  font-size: 20px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }

.inspector { width: 280px; flex-shrink: 0; padding: 16px; overflow-y: auto;
  border-left: 1px solid var(--line); background: var(--surface-2); position: relative; }
.insp-close { position: absolute; top: 10px; right: 12px; width: 22px; height: 22px;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink-3);
  font-size: 17px; cursor: pointer; }
.insp-close:hover { background: var(--line-2); color: var(--ink); }
.insp-top { display: flex; gap: 11px; align-items: center; }
.insp-av { width: 38px; height: 38px; border-radius: 11px; display: grid;
  place-items: center; font-size: 18px; }
.insp-name { font-size: 14px; font-weight: 700; }
.insp-role { font-size: 11.5px; color: var(--ink-3); }
.insp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 13px; }
.insp-grid div { background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 9px; }
.insp-grid label { display: block; font-size: 9.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3); }
.insp-grid b { font-size: 13px; font-variant-numeric: tabular-nums; }
.insp-line { margin-top: 11px; font-size: 12px; color: var(--ink-2); line-height: 1.55;
  font-style: italic; }

/* ------------------------------------------------------------- isler */
.new-task { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
input, textarea { font-family: inherit; font-size: 13.5px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px;
  background: #fff; }
.task { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  margin-bottom: 9px; background: #fff; }
.task-top { display: flex; align-items: center; gap: 8px; }
.task-title { flex: 1; font-size: 13px; font-weight: 650; }
.task-meta { margin-top: 5px; font-size: 11.5px; color: var(--ink-3); }
.task-result { margin-top: 10px; padding: 10px; background: var(--surface-2);
  border: 1px solid var(--line-2); border-radius: 8px; font-size: 12px;
  line-height: 1.6; color: var(--ink-2); max-height: 220px; overflow-y: auto;
  white-space: pre-wrap; }
.badge { padding: 2px 8px; border-radius: 20px; font-size: 9.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; border: 1px solid transparent; }
.b-yeni, .b-planlandi { background: #eef3ff; color: #2d6bff; border-color: #d9e4ff; }
.b-calisiliyor { background: #fff6e5; color: #b8760a; border-color: #f6e3bd; }
.b-denetimde   { background: #f4eeff; color: #7c3aed; border-color: #e5d9ff; }
.b-reddedildi  { background: #ffeef3; color: #e0245e; border-color: #fbd5e0; }
.b-tamamlandi  { background: #e8f8f1; color: #00875a; border-color: #cdeee0; }
.b-iptal       { background: var(--surface-2); color: var(--ink-3); border-color: var(--line); }

/* ------------------------------------------------------------- ekip */
.member { display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px;
  cursor: pointer; background: #fff; }
.member:hover { background: var(--surface-2); }
.member-av { width: 34px; height: 34px; border-radius: 10px; display: grid;
  place-items: center; font-size: 16px; flex-shrink: 0; }
.member-name { font-size: 13px; font-weight: 650; }
.member-role { font-size: 11.5px; color: var(--ink-3); }
.member-act { font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); margin-top: 2px; }
.member-score { margin-left: auto; text-align: right; font-size: 10.5px;
  color: var(--ink-3); font-family: var(--mono); line-height: 1.5; }
.member.locked { opacity: .55; }

/* ------------------------------------------------------------- dosyalar */
.upload-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.upload-row label.btn { cursor: pointer; }
.upload-status { font-size: 11.5px; color: var(--ink-3); }
.file { display: flex; align-items: center; gap: 11px; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px;
  cursor: pointer; background: #fff; }
.file:hover { background: var(--surface-2); }
.file-ico { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--surface-2); color: var(--ink-3); }
.file-ico.html { background: #fff0e6; color: #d2691e; }
.file-ico.up { background: #eef3ff; color: #2d6bff; }
.file-name { font-size: 13px; font-weight: 600; word-break: break-all; }
.file-meta { font-size: 11px; color: var(--ink-3); font-family: var(--mono); }

/* ------------------------------------------------------------- el kitabi */
.lesson { border: 1px solid var(--line); border-left: 3px solid var(--warn);
  border-radius: 9px; padding: 11px 13px; margin-bottom: 8px; background: #fff;
  font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.lesson-meta { margin-top: 6px; font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }

/* ------------------------------------------------------------- kasa */
.money-top { display: flex; gap: 24px; padding: 14px 16px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.money-top label { display: block; font-size: 9.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3); }
.money-top b { font-size: 20px; font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 13px;
  border: 1px solid var(--line); border-radius: 9px; margin-bottom: 7px;
  font-size: 12.5px; background: #fff; }
.row .grow { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 650; }
.row .mono { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* ------------------------------------------------------------- ozel */
.private-note { display: flex; flex-direction: column; gap: 4px; padding: 13px 15px;
  border: 1px solid #e4dcf5; background: #faf7ff; border-radius: 10px; margin-bottom: 18px; }
.private-note span { font-size: 12px; color: var(--ink-3); }

/* ------------------------------------------------------------- onizleme */
.viewer { position: fixed; inset: 4vh 4vw; z-index: 50; display: flex;
  flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 30px 80px rgba(16,21,28,.30); overflow: hidden; }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); }
.viewer-name { font-size: 13px; font-weight: 700; }
.viewer-meta { font-size: 11px; color: var(--ink-3); font-family: var(--mono);
  margin-right: auto; }
.viewer-body { flex: 1; overflow: auto; background: #fff; }
.viewer-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.viewer-body pre { margin: 0; padding: 20px; font-family: var(--mono); font-size: 12.5px;
  line-height: 1.65; white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }
.viewer-body img { display: block; max-width: 100%; margin: 24px auto; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d3dae2; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #bcc5d0; }

@media (max-width: 900px) {
  .sidebar { position: absolute; z-index: 20; height: 100%;
    box-shadow: 0 0 40px rgba(16,21,28,.18); }
  .inspector { display: none; }
  .chat-scroll, .composer { padding-left: 14px; padding-right: 14px; }
}

.scene-diag {
  position: absolute; bottom: 44px; right: 18px;
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
  background: rgba(255,255,255,.75); padding: 3px 9px; border-radius: 6px;
}
