:root {
  --bg: #0b0d12;
  --panel: #11141b;
  --panel-2: #171b24;
  --panel-3: #222a36;
  --line: rgba(255,255,255,.09);
  --text: #f4f6fa;
  --muted: #98a1b2;
  --faint: #667084;
  --accent: #a5f1cf;
  --accent-2: #7cd8ee;
  --warning: #ffc978;
  --danger: #ff7e89;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-height: 100vh; }
button, select, textarea, input { font: inherit; }
button, a { cursor: pointer; }
button { color: inherit; }
.hidden { display: none !important; }
.mobile-only { display: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.sidebar { border-right: 1px solid var(--line); background: #0d1016; padding: 24px 15px 18px; display: flex; flex-direction: column; min-height: 100vh; }
.brand-row { display: flex; align-items: center; gap: 11px; padding: 0 9px 22px; }
.brand-row strong { display: block; letter-spacing: -.02em; }
.brand-row small { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; }
.brand-mark, .welcome-orb { display: grid; place-items: center; color: #08110e; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 28px rgba(165,241,207,.2); }
.brand-mark { width: 34px; height: 34px; border-radius: 12px; font-size: 18px; }
.new-chat { border: 1px solid rgba(165,241,207,.26); background: rgba(165,241,207,.1); color: var(--accent); border-radius: 12px; padding: 13px 14px; text-align: left; font-weight: 650; font-size: 14px; }
.new-chat:hover, .side-action:hover { background: rgba(165,241,207,.13); }
.sidebar-actions { display: grid; gap: 4px; padding-top: 14px; }
.side-action { display: flex; align-items: center; gap: 11px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; padding: 10px 11px; font-size: 13px; }
.side-action:hover { color: var(--text); }
.sidebar-label { color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; margin: 25px 9px 9px; }
.chat-list { overflow: auto; display: grid; gap: 3px; }
.chat-row { border: 1px solid transparent; background: transparent; color: var(--muted); padding: 10px 11px; border-radius: 10px; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.chat-row:hover, .chat-row.active { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.chat-row-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; border: 0; background: none; color: inherit; text-align: left; padding: 0; }
.chat-delete { opacity: 0; border: 0; color: var(--faint); background: none; padding: 2px 4px; }
.chat-row:hover .chat-delete { opacity: 1; }
.sidebar-bottom { margin-top: auto; }
.service-status { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 7px; padding: 10px 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 10px currentColor; }
.status-dot.ok { background: var(--accent); }.status-dot.bad { background: var(--danger); }
.privacy-note { color: var(--faint); border-top: 1px solid var(--line); padding: 15px 8px 0; font-size: 11px; line-height: 1.5; }
.privacy-note strong { color: var(--muted); }

.main-panel { min-width: 0; height: 100vh; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.topbar { min-height: 72px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 5vw, 58px); gap: 18px; }
.topbar-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.ghost-btn, .incognito-btn, .icon-btn, .tool-toggle, .attach-btn { color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.ghost-btn:hover, .tool-toggle:hover, .attach-btn:hover, .icon-btn:hover { color: var(--text); background: var(--panel-2); }
.incognito-btn { border-color: rgba(255,126,137,.25); color: #ff9aa3; }.incognito-btn.on { background: rgba(255,126,137,.13); }
.incognito-badge { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #ffabb2; border: 1px solid rgba(255,126,137,.28); border-radius: 99px; padding: 4px 7px; }
.model-strip { display: flex; align-items: center; gap: 10px; padding: 14px clamp(18px, 5vw, 58px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.model-picker-label { font-size: 11px; color: var(--faint); white-space: nowrap; }
#model-select { max-width: min(550px, 65vw); min-width: 230px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; outline: none; }
.model-badges { display: flex; gap: 5px; }.badge { color: var(--accent); background: rgba(165,241,207,.1); border-radius: 99px; font-size: 10px; padding: 4px 7px; }.badge.blue { color: var(--accent-2); background: rgba(124,216,238,.1); }
.model-refresh-note { margin-left: auto; color: var(--faint); font-size: 11px; }

.conversation { overflow: auto; padding: 44px clamp(18px, 8vw, 150px) 34px; scroll-behavior: smooth; }
.welcome { max-width: 720px; margin: 8vh auto 0; text-align: center; }
.welcome-orb { margin: auto; width: 58px; height: 58px; border-radius: 20px; font-size: 27px; }
.welcome h1 { font-size: clamp(28px, 4vw, 45px); letter-spacing: -.05em; margin: 22px 0 12px; }
.welcome p { max-width: 610px; margin: 0 auto; color: var(--muted); line-height: 1.7; font-size: 14px; }
.quick-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }.quick-actions button { color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 10px 14px; font-size: 12px; }
.message-stack { max-width: 900px; margin: 0 auto; display: grid; gap: 28px; }
.message { display: flex; gap: 11px; align-items: flex-start; }.message.user { justify-content: flex-end; }
.avatar { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; font-size: 12px; color: var(--bg); background: var(--accent); }.message.assistant .avatar { background: var(--panel-3); color: var(--accent); }
.bubble { max-width: min(790px, 86%); border: 1px solid var(--line); border-radius: 17px; padding: 15px 17px; white-space: pre-wrap; line-height: 1.6; font-size: 14px; }.user .bubble { background: rgba(165,241,207,.1); border-color: rgba(165,241,207,.19); }.assistant .bubble { background: var(--panel); }
.message-image { max-width: min(680px, 82vw); max-height: 65vh; object-fit: contain; border-radius: 14px; display: block; margin-top: 11px; border: 1px solid var(--line); cursor: zoom-in; }.message-image:hover { border-color: rgba(165,241,207,.5); }
.thumb { width: 200px; max-height: 190px; object-fit: cover; border-radius: 11px; border: 1px solid var(--line); margin: 3px; cursor: zoom-in; }.message-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.meta-line { color: var(--faint); font-size: 10px; margin-top: 9px; }.typing { max-width: 900px; margin: 25px auto 0; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1s infinite alternate; }.typing span:nth-child(2) { animation-delay: .2s; }.typing span:nth-child(3) { animation-delay: .4s; } @keyframes blink { to { opacity: .2; transform: translateY(-3px); } }

.composer-wrap { padding: 0 clamp(15px, 8vw, 150px) max(20px, env(safe-area-inset-bottom)); }
.character-context { max-width: 900px; margin: 0 auto 9px; }.character-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); background: rgba(165,241,207,.08); border: 1px solid rgba(165,241,207,.2); border-radius: 99px; padding: 5px 9px 5px 5px; font-size: 11px; }.character-pill img { width: 25px; height: 25px; object-fit: cover; border-radius: 50%; }.character-pill button { background: none; border: 0; color: var(--muted); font-size: 16px; }
.attachment-row { max-width: 900px; margin: 0 auto 10px; display: flex; gap: 8px; overflow-x: auto; padding: 4px; }.attachment-chip { position: relative; flex: 0 0 auto; }.attachment-chip img { width: 72px; height: 72px; object-fit: cover; border-radius: 11px; border: 1px solid rgba(165,241,207,.3); }.edit-target-chip { padding-right: 7px; background: rgba(165,241,207,.06); border-radius: 12px; }.edit-target-chip span { display: block; color: var(--accent); font-size: 9px; text-align: center; margin-top: 3px; }.attachment-chip button { position: absolute; right: -5px; top: -5px; width: 21px; height: 21px; padding: 0; border-radius: 50%; border: 1px solid var(--bg); background: var(--danger); color: var(--bg); font-weight: 800; }
.mode-tabs { max-width: 900px; margin: 0 auto 9px; display: flex; gap: 5px; }.mode-tab { color: var(--muted); border: 1px solid transparent; background: transparent; border-radius: 9px; padding: 8px 12px; font-size: 12px; }.mode-tab:hover { background: var(--panel); }.mode-tab.active { color: var(--accent); background: rgba(165,241,207,.09); border-color: rgba(165,241,207,.18); }
.composer { max-width: 900px; margin: 0 auto; border: 1px solid rgba(255,255,255,.14); background: var(--panel); border-radius: 19px; box-shadow: 0 18px 55px rgba(0,0,0,.24); padding: 14px 14px 10px; }#prompt-input { display: block; width: 100%; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); min-height: 48px; max-height: 180px; line-height: 1.55; padding: 4px 5px 11px; }#prompt-input::placeholder { color: var(--faint); }
.composer-tools { display: flex; align-items: center; gap: 8px; }.attach-btn { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }.attach-btn input { display: none; }.tool-toggle.on { color: var(--warning); border-color: rgba(255,201,120,.35); background: rgba(255,201,120,.09); }#size-select { margin-left: auto; color: var(--muted); background: transparent; border: 0; outline: 0; font-size: 12px; }.send-btn { width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--accent); color: #07110e; font-weight: 900; font-size: 20px; }.send-btn:disabled { opacity: .35; cursor: not-allowed; }.composer-hint { max-width: 900px; margin: 9px auto 0; color: var(--faint); font-size: 10px; }

.modal { position: fixed; z-index: 30; inset: 0; padding: 22px; display: grid; place-items: center; background: rgba(0,0,0,.78); backdrop-filter: blur(12px); }.modal-card { width: min(980px, 100%); max-height: min(92vh, 900px); overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: #11141b; box-shadow: 0 25px 100px rgba(0,0,0,.5); padding: 18px; }.viewer-card { width: min(1120px, 100%); }.small-card { width: min(370px, 100%); }.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }.modal-header strong { display: block; font-size: 16px; }.modal-header small { display: block; color: var(--muted); margin-top: 3px; }.viewer-stage { min-height: 45vh; max-height: 70vh; display: grid; place-items: center; background: #080a0e; border-radius: 14px; overflow: hidden; }.viewer-stage img { max-width: 100%; max-height: 70vh; object-fit: contain; }.viewer-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 13px; }.viewer-actions input, #pin-input { flex: 1 1 190px; min-width: 0; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; outline: 0; }.modal-btn, .primary-btn { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--text); padding: 10px 12px; text-decoration: none; font-size: 12px; }.modal-btn:hover, .primary-btn:hover { border-color: rgba(165,241,207,.35); }.private-action { color: #ffabb2; }.character-action { color: var(--accent); }.modal-status { color: var(--muted); min-height: 18px; padding-top: 9px; font-size: 11px; }.library-tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }.library-tab { color: var(--muted); border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; }.library-tab.active { color: var(--accent); background: rgba(165,241,207,.1); }.library-grid, .character-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; }.library-card { width: min(960px, 100%); }.library-tile, .character-tile { border: 1px solid var(--line); border-radius: 13px; background: var(--panel); overflow: hidden; text-align: left; padding: 0; }.library-tile img, .character-tile img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }.library-tile span, .character-tile span { display: block; padding: 9px 10px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.library-tile:hover, .character-tile:hover { border-color: rgba(165,241,207,.45); transform: translateY(-1px); }.character-help { color: var(--muted); font-size: 12px; line-height: 1.5; margin-bottom: 14px; }.character-tile.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(165,241,207,.14); }
#unlock-form { display: flex; gap: 8px; margin-top: 8px; }.primary-btn { background: var(--accent); color: #07110e; border: 0; font-weight: 700; }

@media (max-width: 760px) {
  .app-shell { display: block; }.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(86vw, 310px); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 15px 0 50px rgba(0,0,0,.35); }.sidebar.open { transform: translateX(0); }.mobile-only { display: inline-grid; place-items: center; }
  .topbar { padding: 0 14px; min-height: 60px; }.topbar-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.topbar-actions { margin-left: auto; }.incognito-btn { padding: 8px; font-size: 0; }.incognito-btn span { font-size: 16px; }
  .model-strip { padding: 10px 14px; display: grid; grid-template-columns: auto 1fr; }.model-refresh-note { grid-column: 2; margin: 0; }.model-badges { grid-column: 2; }#model-select { min-width: 0; max-width: none; width: 100%; }
  .conversation { padding: 28px 14px 22px; }.welcome { margin-top: 6vh; }.welcome h1 { font-size: 30px; }.welcome p { font-size: 13px; }.quick-actions { display: grid; }.message-stack { gap: 22px; }.bubble { max-width: 92%; }.message-image { max-width: 100%; max-height: 55vh; }
  .composer-wrap { padding-left: 10px; padding-right: 10px; }.mode-tabs { overflow-x: auto; }.mode-tab { white-space: nowrap; }.composer-tools { flex-wrap: wrap; }.desktop-label { display: none; }#size-select { margin-left: auto; }
  .modal { padding: 10px; }.modal-card { padding: 13px; border-radius: 16px; }.viewer-stage { min-height: 55vh; }.viewer-actions input { flex-basis: 100%; }.viewer-actions .modal-btn { flex: 1 1 auto; text-align: center; }.library-grid, .character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.nav-count { margin-left: auto; min-width: 18px; padding: 2px 5px; border-radius: 99px; background: var(--accent); color: #07110e; font-size: 10px; text-align: center; }
.character-editor { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.editor-title { color: var(--accent); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.character-editor > input, .character-editor > textarea, .profile-fields input, .shoot-form textarea, .shoot-form select, .shoot-form input { width: 100%; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; outline: 0; padding: 10px 11px; }
.character-editor > input, .character-editor > textarea { margin-bottom: 9px; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.profile-fields label, .shoot-form label { color: var(--muted); font-size: 11px; display: grid; gap: 5px; }
.editor-actions { display: flex; gap: 8px; margin-top: 11px; }
.character-tile { position: relative; }
.character-tile-actions { display: flex; gap: 6px; padding: 0 9px 9px; }
.character-tile-actions button { flex: 1; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--muted); padding: 7px 6px; font-size: 11px; }
.character-tile-actions button:hover { color: var(--text); border-color: rgba(165,241,207,.4); }
.shoot-card, .jobs-card { width: min(700px, 100%); }
.shoot-form { display: grid; gap: 13px; }
.shoot-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shoot-form input, .shoot-form select { padding: 9px 10px; }
.shoot-form textarea { resize: vertical; min-height: 95px; }
.check-row { display: flex !important; align-items: center; grid-template-columns: auto 1fr; }
.check-row input { width: auto; }
.jobs-list { display: grid; gap: 9px; }
.job-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 12px; }
.job-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.job-card-title { font-weight: 650; font-size: 13px; }
.job-status { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.job-progress { height: 6px; margin: 10px 0; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.job-progress span { display: block; height: 100%; background: var(--accent); transition: width .25s ease; }
.job-card small { color: var(--faint); line-height: 1.4; display: block; }
.job-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 7px; margin-top: 10px; }
.job-images img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.job-card-actions { display: flex; gap: 7px; margin-top: 10px; }
.job-card-actions button { border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--muted); padding: 7px 9px; font-size: 11px; }
@media (max-width: 760px) {
  .profile-fields { grid-template-columns: 1fr; }
  .topbar-actions .ghost-btn { padding: 8px; }
  #open-jobs-top .desktop-label { display: none; }
}


/* ChatGPT-style visual pass */
:root {
  --bg: #212121;
  --panel: #2f2f2f;
  --panel-2: #343541;
  --panel-3: #444654;
  --line: rgba(255,255,255,.1);
  --text: #ececec;
  --muted: #b4b4b4;
  --faint: #8e8ea0;
  --accent: #10a37f;
  --accent-2: #19c37d;
  --warning: #f6c453;
  --danger: #ff7b72;
}
html, body { background: var(--bg); }
.app-shell { grid-template-columns: 260px minmax(0, 1fr); background: var(--bg); }
.sidebar { background: #171717; border-right: 0; padding: 10px 8px 14px; }
.brand-row { padding: 7px 10px 16px; gap: 10px; }
.brand-mark { width: 29px; height: 29px; border-radius: 8px; background: var(--accent); box-shadow: none; color: white; font-size: 15px; }
.brand-row strong { font-size: 14px; font-weight: 600; }
.brand-row small { color: #8e8ea0; }
.new-chat { border: 1px solid rgba(255,255,255,.14); background: transparent; border-radius: 8px; padding: 10px 12px; color: var(--text); font-weight: 500; }
.new-chat:hover, .side-action:hover { background: #2f2f2f; }
.sidebar-actions { padding-top: 8px; gap: 2px; }
.side-action { border-radius: 8px; color: #c5c5d2; padding: 10px 12px; font-size: 13px; }
.sidebar-label { color: #8e8ea0; margin: 22px 11px 7px; font-size: 10px; }
.chat-list { gap: 1px; }
.chat-row { border-radius: 8px; padding: 9px 11px; }
.chat-row:hover, .chat-row.active { background: #2f2f2f; border-color: transparent; }
.sidebar-bottom { padding: 0 3px; }
.privacy-note { color: #777; border-top-color: rgba(255,255,255,.08); }
.main-panel { position: relative; background: var(--bg); grid-template-rows: auto minmax(0, 1fr) auto; }
.topbar { min-height: 54px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(33,33,33,.92); }
.topbar-title { font-size: 14px; font-weight: 500; }
.ghost-btn, .incognito-btn, .icon-btn, .tool-toggle, .attach-btn { border-color: transparent; border-radius: 8px; }
.ghost-btn:hover, .tool-toggle:hover, .attach-btn:hover, .icon-btn:hover { background: #2f2f2f; }
.model-strip { position: absolute; z-index: 3; top: 10px; left: 50%; transform: translateX(-50%); width: auto; padding: 0; border: 0; background: transparent; }
.model-picker-label, .model-badges, .model-refresh-note { display: none; }
#model-select { min-width: 190px; max-width: 310px; color: #ececec; background: transparent; border: 0; padding: 8px 30px 8px 10px; font-size: 13px; text-align: center; }
.conversation { width: 100%; max-width: 900px; margin: 0 auto; padding: 30px 28px 180px; }
.welcome { max-width: 680px; margin: 19vh auto 0; }
.welcome-orb { display: none; }
.welcome h1 { font-size: clamp(27px, 4vw, 38px); font-weight: 600; letter-spacing: -.04em; margin-bottom: 13px; }
.welcome p { color: #b4b4b4; line-height: 1.6; }
.quick-actions { margin-top: 24px; gap: 8px; }
.quick-actions button { background: transparent; border-color: rgba(255,255,255,.14); color: #c5c5d2; padding: 9px 12px; }
.quick-actions button:hover { background: #2f2f2f; color: white; }
.message-stack { max-width: 820px; gap: 30px; }
.message { gap: 12px; }
.avatar { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); font-size: 10px; }
.message.assistant .avatar { background: var(--accent); color: white; }
.bubble { max-width: min(760px, 90%); border: 0; border-radius: 18px; padding: 2px 0; background: transparent; font-size: 14px; line-height: 1.65; }
.user .bubble { background: #2f2f2f; border-radius: 18px; padding: 11px 15px; }
.assistant .bubble { background: transparent; }
.message-image { max-width: min(680px, 82vw); border-radius: 15px; margin-top: 12px; border-color: rgba(255,255,255,.14); }
.meta-line { color: #8e8ea0; }
.typing { max-width: 820px; }
.composer-wrap { position: fixed; z-index: 10; left: 260px; right: 0; bottom: 0; padding: 35px max(18px, calc((100vw - 920px) / 2)) 18px; background: linear-gradient(transparent, rgba(33,33,33,.92) 28%, var(--bg) 55%); }
.character-context, .attachment-row, .mode-tabs, .composer, .composer-hint { max-width: 820px; }
.mode-tabs { margin-bottom: 7px; }
.mode-tab { padding: 7px 10px; color: #a8a8b3; }
.mode-tab.active { color: #ececec; background: #2f2f2f; border-color: transparent; }
.composer { border: 1px solid rgba(255,255,255,.16); background: #2f2f2f; border-radius: 26px; padding: 11px 12px 9px 17px; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
#prompt-input { min-height: 30px; padding: 4px 5px 9px; }
.composer-tools { gap: 4px; }
.attach-btn, .tool-toggle { padding: 7px 9px; font-size: 12px; }
#size-select { color: #aaa; }
.send-btn { width: 34px; height: 34px; border-radius: 50%; background: #ececec; color: #212121; font-size: 18px; }
.composer-hint { color: #8e8ea0; margin-top: 7px; }
.modal { background: rgba(0,0,0,.65); }
.modal-card { background: #2f2f2f; border-color: rgba(255,255,255,.13); border-radius: 16px; }
.library-tile, .character-tile, .job-card { background: #343541; border-color: rgba(255,255,255,.1); }
.viewer-stage { background: #171717; }
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { width: min(86vw, 300px); }
  .topbar { min-height: 52px; padding: 0 12px; }
  .model-strip { position: static; transform: none; width: 100%; padding: 0 10px; border-bottom: 1px solid rgba(255,255,255,.08); background: var(--bg); }
  #model-select { display: block; width: 100%; max-width: none; text-align: left; }
  .conversation { padding: 24px 14px 190px; }
  .welcome { margin-top: 15vh; }
  .composer-wrap { left: 0; padding: 30px 10px max(11px, env(safe-area-inset-bottom)); }
  .composer { border-radius: 22px; padding-left: 12px; }
  .mode-tabs { overflow-x: auto; scrollbar-width: none; }
  .mode-tab { flex: 0 0 auto; }
  .message-image { max-width: 100%; }
}
