:root {
  color-scheme: dark;
  --background: #0e131b;
  --sidebar: #121923;
  --surface: #141d27;
  --raised: #1d2936;
  --line: #2b3847;
  --muted: #aab8c7;
  --text: #f3f8fa;
  --accent: #a4f4ca;
  --accent-strong: #91e9ba;
  --green: #83e7c1;
  --radius: 16px;
  font: 16px/1.5 "Inter", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--background); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
svg.icon { display: block; flex: none; width: 19px; height: 19px; pointer-events: none; }
[hidden] { display: none !important; }

.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.sidebar {
  height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column;
  background: var(--sidebar); border-right: 1px solid var(--line); padding: 23px 15px 14px; overflow-y: auto; scrollbar-width: thin;
}
.brand { display: flex; align-items: center; margin: 3px 7px 29px; width: min(174px, calc(100% - 14px)); }
.brand-wordmark { display: block; object-fit: contain; object-position: left center; max-width: 100%; }
.nav-links { display: grid; gap: 3px; }
.nav-label { color: #aaa8c0; font-size: .75rem; letter-spacing: .115em; font-weight: 700; padding: 0 10px 7px; }
.nav-links a, .nav-links > button {
  display: flex; gap: 11px; align-items: center; position: relative; border: 1px solid transparent;
  font-size: .89rem; font-weight: 570; color: var(--muted); background: transparent; min-height: 37px; padding: 6px 10px; text-align: left; border-radius: 9px;
}
.nav-links a:hover, .nav-links > button:hover, .profile:hover, .search-trigger:hover, .icon-button:hover { background: var(--raised); color: var(--text); }
.nav-links a[aria-current="page"] { color: #c8fae0; background: #1d3532; border-color: #34564d; }
.nav-links a[aria-current="page"]::before {
  content: ""; position: absolute; left: -16px; height: 22px; width: 3px; border-radius: 0 4px 4px 0; background: var(--accent-strong);
}
.manage-label { margin-top: 12px; padding-bottom: 2px; }
.sidebar-bottom { margin-top: auto; padding-top: 10px; }
.demo-note { color: var(--muted); padding: 7px 10px 15px; font-size: .78rem; display: flex; gap: 8px; align-items: center; }
.demo-note svg { width: 15px; height: 15px; color: var(--accent); }
.profile {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; background: #18222e; color: var(--text);
  display: flex; gap: 9px; align-items: center; padding: 8px; text-align: left;
}
.profile-copy { display: grid; flex: 1; line-height: 1.25; font-size: .875rem; }
.profile-copy small { color: var(--muted); margin-top: 4px; font-size: .78rem; }
.profile-icon { color: var(--muted); }

.main-shell { min-width: 0; }
.topbar {
  height: 64px; border-bottom: 1px solid var(--line); padding: 0 clamp(18px, 3vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
}
.breadcrumb { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .875rem; }
.breadcrumb svg { width: 14px; height: 14px; color: #797a94; }
.breadcrumb strong { color: var(--text); font-weight: 580; }
.search-trigger {
  display: flex; align-items: center; gap: 9px; min-width: 169px; padding: 6px 8px 6px 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .875rem;
}
.search-trigger svg { width: 16px; height: 16px; }
kbd { margin-left: auto; border: 1px solid #37384a; border-radius: 5px; padding: 0 5px; font-size: .75rem; line-height: 1.55; }
main { max-width: 1600px; margin: 0 auto; padding: 29px clamp(18px, 3vw, 40px) 42px; outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 17px; margin-bottom: 23px; }
.page-heading h1 { font-size: clamp(2.05rem, 3.2vw, 2.7rem); font-weight: 730; letter-spacing: -.052em; }
.page-heading p { margin-top: 8px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 7px 13px; white-space: nowrap;
  border-radius: 9px; border: 1px solid var(--line); background: var(--raised); color: var(--text);
  font-size: .875rem; font-weight: 620; line-height: 1.3;
}
.button:hover { background: #213140; }
.button svg { width: 17px; height: 17px; }
.button.primary { background: var(--accent-strong); border-color: transparent; color: #142720; }
.button.primary:hover { background: #bcf7d5; }
.icon-button { padding: 7px; min-width: 38px; }
.icon-button svg { width: 18px; height: 18px; }

.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(228px, 25%); gap: 17px; }
.room, .crew, .task-column, .project-card, .asset-list {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.room { overflow: hidden; }
.room-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.room-title { display: flex; gap: 9px; align-items: center; }
.room-title h2 { font-size: 1.04rem; letter-spacing: -.02em; }
.room-title svg { color: var(--accent); }
.room-header .button { min-height: 34px; padding: 5px 10px; }
.scene {
  overflow: hidden; isolation: isolate; position: relative; aspect-ratio: 2.4;
  margin: 0 9px; border-radius: 12px; background: #233832; cursor: crosshair; container-type: inline-size;
}
.scene:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.room-backdrop { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.room-character {
  display: flex; flex-direction: column-reverse; align-items: center; gap: 2px;
  position: absolute; z-index: var(--depth); left: var(--x); top: var(--y); transform: translate(-50%, -100%);
  background: transparent; border: 0; color: #f5fff9; border-radius: 9px; padding: 0; line-height: 1.2;
}
.room-character.self { transition: left .32s ease-out, top .32s ease-out; }
.character-body { position: relative; isolation: isolate; display: flex; justify-content: center; }
.character-body::before {
  content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; bottom: -3px; height: 10%;
  background: #101e2260; border-radius: 50%; filter: blur(3px);
}
.room-character.self .character-body::before {
  background: #1e5e4d73; border: 2px solid #c2ffdd; bottom: -4px; height: 15%; filter: none;
}
.character-body img {
  display: block; width: auto; height: clamp(36px, 12.3cqw, 102px); object-fit: contain;
  filter: drop-shadow(0 3px 3px #12211854); pointer-events: none; user-select: none;
}
.room-character:hover .character-body img { filter: drop-shadow(0 3px 3px #12211895) brightness(1.08); }
.room-character.flipped img { transform: scaleX(-1); }
.room-character.drifting img { animation: crew-drift 3s ease-in-out infinite; }
.room-character.drifting.flipped img { animation-name: crew-drift-flipped; }
@keyframes crew-drift { 50% { transform: translateY(-6px); } }
@keyframes crew-drift-flipped {
  0%, 100% { transform: scaleX(-1); }
  50% { transform: translateY(-6px) scaleX(-1); }
}
.pin-name {
  display: flex; align-items: center; justify-content: center; gap: 4px; max-width: 8em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f4fff9;
  border: 1px solid #ffffff29; background: #142624eb; border-radius: 8px; padding: 3px 7px;
  box-shadow: 0 2px 7px #12211842; font-size: .8125rem; font-weight: 700;
}
.pin-name .status-dot { width: 6px; height: 6px; }
.room-character.self .pin-name { background: #143a34; border-color: #a4f4ca; }
.room-instructions { display: flex; align-items: center; gap: 6px; padding: 0 14px 9px; color: var(--muted); font-size: .8125rem; }
.room-instructions svg { width: 13px; height: 13px; color: var(--accent); }
.room-zones { display: flex; gap: 7px; padding: 11px 12px; overflow: auto; }
.zone-button {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; background: transparent;
  color: var(--muted); border-radius: 8px; padding: 6px 8px; white-space: nowrap; font-size: .875rem; font-weight: 550;
}
.zone-button svg { width: 16px; height: 16px; }
.zone-button:hover { background: #202e3b; color: var(--text); }
.zone-button[aria-pressed="true"] { color: var(--accent); background: #1d3733; border-color: #356055; }

.crew { display: flex; flex-direction: column; min-width: 0; }
.crew-header { padding: 17px 15px 11px; }
.crew-header h2 { font-size: 1.06rem; letter-spacing: -.022em; }
.presence-count { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: .85rem; margin-top: 7px; }
.status-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.status-dot.focus { background: #f9c781; }
.status-dot.away { background: #9292aa; }
.member-list { display: grid; gap: 1px; margin: 0; padding: 3px 8px; list-style: none; }
.member-button {
  width: 100%; text-align: left; background: transparent; color: var(--text); border: 0; display: flex; align-items: center;
  gap: 9px; padding: 8px; border-radius: 8px;
}
.member-button:hover { background: var(--raised); }
.avatar {
  width: 35px; height: 35px; flex: none; display: grid; place-items: center; border: 1px solid #ffffff1a;
  border-radius: 50%; background: var(--avatar-bg, #34294a); color: var(--avatar-fg, #e6d5ff);
  overflow: hidden;
}
.avatar img { display: block; width: 79%; height: 85%; object-fit: contain; }
.member-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.member-copy strong { line-height: 1.25; font-size: .9rem; font-weight: 650; }
.member-copy small { color: var(--muted); font-size: .77rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew-footer { margin-top: auto; padding: 13px 13px 12px; }
.crew-footer .button { width: 100%; background: transparent; }
.crew-footer .button:hover { background: var(--raised); }
.crew-footer svg { color: var(--accent); }

.board-section { margin-top: 26px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 13px; }
.section-heading h2 { font-size: 1.22rem; letter-spacing: -.025em; }
.board-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.select-wrap { position: relative; }
.select-wrap > svg { position: absolute; top: 50%; right: 9px; width: 14px; height: 14px; transform: translateY(-50%); color: var(--muted); }
select { appearance: none; cursor: pointer; }
.select-wrap select { width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 30px 7px 9px; font-size: .875rem; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; align-items: start; }
.task-column { padding: 11px; min-width: 0; min-height: 135px; }
.column-header { display: flex; align-items: center; gap: 8px; padding: 0 1px 9px; }
.column-header h3 { color: #eae4f4; font-size: .875rem; font-weight: 650; }
.column-header .status-dot { background: var(--status); }
.count { color: var(--muted); background: #213140; border-radius: 5px; padding: 0 5px; font-size: .75rem; }
.task-card {
  display: grid; gap: 7px; width: 100%; text-align: left; background: #1a2531; color: var(--text);
  border: 1px solid #2e3d4e; border-radius: 9px; padding: 10px; margin-top: 6px;
}
.task-card:hover { border-color: #4d746a; background: #233240; }
.task-card:first-of-type { margin-top: 0; }
.task-card .project-name { color: var(--project-color); font-size: .75rem; font-weight: 660; }
.task-card strong { font-size: .875rem; font-weight: 670; overflow-wrap: anywhere; }
.task-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .78rem; }
.task-meta svg { width: 14px; height: 14px; }
.task-meta .avatar { margin-left: auto; width: 23px; height: 23px; font-size: .65rem; }
.empty { color: var(--muted); padding: 12px 4px; font-size: .875rem; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 15px; }
.project-card { color: var(--text); padding: 18px; width: 100%; text-align: left; display: grid; gap: 12px; }
button.project-card:hover { border-color: #695685; background: var(--raised); }
.project-card h2 { font-size: 1.22rem; }
.project-card p { color: var(--muted); }
.project-glyph {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--project-color) 15%, #1b1b26); color: var(--project-color);
}
.project-stat { font-size: .85rem; color: var(--muted); }
progress { width: 100%; height: 6px; accent-color: var(--project-color); }
.asset-list { margin: 0; padding: 2px 15px; list-style: none; }
.asset-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.asset-item + .asset-item { border-top: 1px solid var(--line); }
.asset-item > div { flex: 1; }
.asset-item strong { display: block; font-size: .94rem; }
.asset-item small { color: var(--muted); font-size: .82rem; }
.archive-links { margin-top: 19px; }

dialog { width: min(530px, calc(100% - 28px)); max-height: 88dvh; padding: 18px; color: var(--text); background: var(--surface); border: 1px solid #403b54; border-radius: 16px; box-shadow: 0 20px 100px #0009; }
dialog::backdrop { background: #0a0815b8; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dialog-header h2 { font-size: 1.3rem; letter-spacing: -.027em; }
form { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: .875rem; }
.field.wide, .form-actions { grid-column: 1/-1; }
.field input, .field textarea, .field select { width: 100%; min-height: 40px; border: 1px solid #38394e; border-radius: 8px; padding: 7px 9px; background: var(--background); color: var(--text); font-size: 1rem; }
.field select { padding-right: 30px; }
.field textarea { resize: vertical; min-height: 78px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.detail-copy { color: var(--muted); margin-bottom: 13px; }
.detail-tasks { display: grid; gap: 6px; }
.detail-tasks .task-card { margin: 0; }
.bio { display: flex; align-items: center; gap: 9px; }
.bio .avatar { width: 48px; height: 48px; font-size: .95rem; }
.bio span { color: var(--muted); }
.search-results { margin: 10px 0 0; padding: 0; list-style: none; }
.result-button { width: 100%; min-height: 42px; padding: 7px 9px; text-align: left; border: 0; border-radius: 8px; color: var(--text); background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.result-button:hover { background: var(--raised); }
.result-button small { color: var(--muted); }
.chat-log { max-height: min(46vh, 350px); overflow: auto; display: grid; gap: 13px; margin: 7px 0 14px; padding: 0; list-style: none; }
.chat-message { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; }
.chat-message small { color: var(--muted); margin-left: 5px; }
.chat-message p { overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-form { display: flex; gap: 7px; }
.chat-form label { flex: 1; }
#toast {
  position: fixed; z-index: 5; bottom: 18px; right: 18px; max-width: calc(100% - 36px);
  background: #2a2340; border: 1px solid #5a4876; color: var(--text); padding: 9px 14px; border-radius: 9px;
  font-size: .875rem; opacity: 0; transform: translateY(5px); transition: .15s ease; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }


.room-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 11px 11px; border-top: 1px solid var(--line); }
.room-toolbar .chat-form { flex: 1; min-width: 120px; }
.room-toolbar .field input { font-size: .875rem; min-height: 36px; }
.room-toolbar .button { min-height: 36px; padding: 6px 8px; }
.room-motion { display: flex; gap: 1px; }
.room-motion .zone-button { font-size: .8125rem; padding-inline: 5px; }
.room-motion .zone-button svg { width: 14px; height: 14px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.record-summary { margin-bottom: 16px; }
.metric { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.metric > div { display: grid; min-width: 0; }
.metric strong { font-size: 1.24rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
.metric > div > span, .list-meta { font-size: .875rem; color: var(--muted); }
.project-glyph { --project-color: var(--accent); }
.stage { width: fit-content; border-radius: 6px; padding: 3px 7px; color: var(--accent); background: #2a233e; font-size: .8125rem; line-height: 1.35; }
.check-control { white-space: nowrap; font-size: .875rem; color: var(--muted); }
.check-control input { width: 18px; height: 18px; accent-color: var(--accent-strong); vertical-align: middle; }
.detail-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 601px) and (max-width: 1100px) {
  .room-toolbar { flex-wrap: wrap; }
  .room-toolbar .chat-form { order: 1; flex-basis: 100%; }
  .room-toolbar .room-motion { margin-left: auto; }
}

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding-inline: 11px; }
  .nav-links a[aria-current="page"]::before { left: -12px; }
  .room-grid { grid-template-columns: minmax(0, 1fr) 205px; gap: 12px; }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { height: auto; position: static; display: grid; grid-template-columns: 1fr auto; padding: 11px 17px 8px; border-right: 0; border-bottom: 1px solid var(--line); align-items: center; }
  .brand { margin: 0 0 8px; width: 157px; }
  .nav-links { grid-row: 2; grid-column: 1/-1; display: flex; overflow: auto; gap: 4px; }
  .nav-links a, .nav-links > button { flex: none; gap: 6px; min-height: 39px; padding: 6px 8px; }
  .nav-links a[aria-current="page"]::before, .nav-label, .demo-note, .profile-icon, .profile-copy { display: none; }
  .profile { padding: 0; border: 0; background: transparent; border-radius: 50%; }
  .sidebar-bottom { padding: 0; justify-self: end; }
  .topbar { height: 49px; }
  .search-trigger { min-width: 0; }
  main { padding-top: 22px; }
}
@media (max-width: 600px) {
  .page-heading { align-items: start; flex-direction: column; }
  .room-grid, .board, .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .scene { margin-inline: 6px; }
  .pin-name { font-size: .7rem; padding: 2px 4px; border-radius: 5px; }
  .pin-name .status-dot { width: 5px; height: 5px; }
  .room-instructions { padding-inline: 9px; }
  .room-header { padding-inline: 9px; }
  .member-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-zones { padding-inline: 6px; gap: 1px; }
  .zone-button { font-size: .8125rem; padding-inline: 5px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .room-toolbar { flex-wrap: wrap; }
  .room-toolbar .chat-form { order: 1; flex-basis: 100%; }
  .room-toolbar .room-motion { margin-left: auto; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .record-list .asset-item { flex-wrap: wrap; }
  .record-list .asset-item > div { flex-basis: calc(100% - 56px); }
}

.overview-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-link:hover { background: var(--raised); border-color: #456459; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); gap: 14px; margin-top: 17px; }
.overview-panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; }
.overview-panel .section-heading { flex-direction: row; align-items: center; }
.overview-panel h2 { font-size: 1.07rem; }
.text-link { color: var(--accent); font-size: .82rem; font-weight: 650; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.overview-project, .milestone-button {
  width: 100%; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 7px; border: 0;
  border-radius: 8px; color: var(--text); background: transparent; text-align: left;
}
.overview-project:hover, .milestone-button:hover { background: var(--raised); }
.overview-project-detail, .milestone-button > span:first-child { display: grid; min-width: 0; flex: 1; gap: 2px; }
.overview-project strong, .milestone-button strong { font-size: .9rem; overflow-wrap: anywhere; }
.overview-project small, .milestone-button small { color: var(--muted); font-size: .8rem; }
.overview-project progress { margin-top: 3px; }
.overview-project .project-glyph { width: 34px; height: 34px; flex: none; }
.milestone-list { list-style: none; margin: 0; padding: 0; }
.milestone-list li + li { border-top: 1px solid var(--line); }
.stage { flex: none; color: #d6e2ef; background: #293747; }
.stage.ready { color: #b4f9d1; background: #203e36; }
.stage.review { color: #ffe0aa; background: #433526; }
.stage.planned { color: #d6c9ff; background: #3a3050; }
.stage.overdue { color: #ffc2c5; background: #492f38; }
.studio-wordmark { display: block; width: min(100%, 275px); height: auto; margin-block: 7px 8px; }

.character-picker { grid-column: 1/-1; border: 0; padding: 0; margin: 0; min-width: 0; }
.character-picker legend { color: var(--muted); font-size: .875rem; margin-bottom: 5px; }
.character-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.character-choice { cursor: pointer; }
.character-choice input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.character-choice span {
  display: grid; justify-items: center; gap: 6px; padding: 8px 3px; border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); background: var(--background); font-size: .8125rem; font-weight: 600;
}
.character-choice img { width: 100%; height: 67px; object-fit: contain; }
.character-choice:hover span { background: var(--raised); }
.character-choice input:checked + span { border-color: #8de8bc; background: #1b332e; }
.character-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
dialog.media-dialog { width: min(880px, calc(100% - 24px)); }
.studio-intro { display: block; width: 100%; max-height: 68dvh; border-radius: 10px; background: black; }
@media (max-width: 1050px) { .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) {
  .character-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-project { flex-wrap: wrap; }
  .overview-project .stage { margin-left: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.signin-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.signin-card { width: min(100%, 456px); padding: 29px; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.signin-card > img { max-width: 95%; margin-bottom: 8px; }
.signin-card h1 { font-size: clamp(1.55rem, 5vw, 2rem); letter-spacing: -.035em; }
.signin-copy, .signin-status { color: var(--muted); }
.signin-status:empty { display: none; }
.telegram-form { display: grid; gap: 12px; }
.topbar-tools { display: flex; gap: 7px; align-items: center; }
.topbar-tools .button { min-height: 34px; }
.asset-preview { display: block; max-width: 100%; max-height: 60vh; object-fit: contain; border-radius: 8px; margin: 0 auto 12px; }
.asset-list + .asset-list { margin-top: 14px; }
.storage-description { color: var(--muted); font-size: .875rem; margin-block: 6px; }
.studio-storage-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 8px; }
button:disabled { cursor: wait; opacity: .65; }
@media (max-width: 480px) { .topbar-tools .search-trigger kbd { display: none; } }
