/* The accepted Night Shift environment, adapted to the real application's controls.
   Keep this sheet last: scenery decorates the existing authenticated UI and never
   replaces its data, permission checks, notices, or reduced-motion preferences. */
:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #181c17;
  --surface: #25291f;
  --surface2: #303527;
  --surface-alt: var(--surface2);
  --ink: #f5f0df;
  --muted: #c2c2aa;
  --accent: #e9ac59;
  --accent-ink: #2b2113;
  --accent-soft: #3a3022;
  --edge: #676043;
  --line: var(--edge);
  --success: #b4d49c;
  --danger: #ffc0a9;
  --nav: #131d16;
  --show-glow: #efb457;
  --show-second: #73baa0;
  --world: url('assets/tiki-cinema.webp');
  --material-bamboo: url('material-assets/bamboo-culm.webp');
  --material-node: url('material-assets/bamboo-node.webp');
  --material-wood: url('material-assets/mahogany-grain.webp');
  --material-rattan: url('material-assets/rattan-weave.webp');
  --brass-edge: #8e754c;
  --focus-ring: #fff0b2;
  --radius: 12px;
  --workspace-space: 32px;
}

html { scrollbar-gutter: stable; }
body {
  background: radial-gradient(ellipse at 0 25%, #87451b60, transparent 35%),
    radial-gradient(ellipse at 100% 30%, #915d1c66, transparent 34%),
    repeating-linear-gradient(90deg, #0002 0 2px, transparent 2px 61px),
    linear-gradient(115deg, #14251d, #0c1918 58%, #1d2b1b);
  -webkit-font-smoothing: antialiased;
}
#app { position: relative; isolation: isolate; }
.tiki-ambience__night {
  background: linear-gradient(#101b13aa, #0d1612d9), var(--world) center / cover;
}

/* Real bamboo artwork surrounds controls; text sits on dark, readable plaques. */
.topbar {
  --header-bamboo-art: url('assets/bamboo-header.webp');
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 92px;
  margin: 18px 58px 0;
  padding: 15px 24px;
  color: #fff0cd;
  border: 3px solid #684923;
  border-radius: 13px 8px 14px 8px;
  background-image: linear-gradient(#160d0652, #2a160338), var(--header-bamboo-art);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 2px 3px #fff3c36b, inset 0 -3px 5px #301800a6,
    0 0 0 1px #c79b52, 0 9px 22px #0005;
}
.topbar::before, .topbar::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset-block: -5px;
  width: 8px;
  border-inline: 1px solid #402813;
  border-radius: 3px;
  background: repeating-linear-gradient(16deg, #d0ab71 0 2px, #745329 3px 4px, #c49b60 5px 7px);
  box-shadow: 1px 0 3px #0006;
  pointer-events: none;
}
.topbar::before { left: 10px; }
.topbar::after { right: 10px; }
.topbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 49px;
  padding: 8px 15px;
  border: 1px solid #b493566e;
  border-radius: 5px;
  background: linear-gradient(110deg, #142319ed, #1a291fdd);
  color: #ffe3a7;
  font: 700 19px/1.2 Georgia, serif;
  letter-spacing: .12em;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 2px 2px #000b;
  box-shadow: 0 2px 6px #0006, inset 0 1px #fff2ce18;
}
.topbar-brand-mark { color: #edbc65; font: 26px/1 Georgia, serif; }
.topbar-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.topbar .preferences {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #cfb37880;
  border-radius: 7px;
  background: #17251bea;
  box-shadow: 0 2px 6px #0005;
}
.topbar .compact-label { color: #e1d4af; font-size: 11px; gap: 7px; }
.topbar .preferences select {
  min-height: 44px;
  max-width: 145px;
  padding: 7px 24px 7px 9px;
  color: #fff2d5;
  background-color: #1b2c20;
  border-color: #8d764b;
  font-size: 12px;
}
.account-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
  padding: 3px;
  border: 1px solid #cfb37880;
  border-radius: 7px;
  background: #17251bf2;
  box-shadow: 0 2px 6px #0005;
}
.topbar .account-actions .text-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 4px;
  color: #f4dfb3;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}
.account-actions .account-signout { border-right: 1px solid #b6995d55; }
.topbar .account-actions .text-button:hover { background: #b5853540; color: #fff5dd; }
.topbar a:focus-visible, .topbar button:focus-visible, .topbar select:focus-visible {
  outline: 3px solid #fff0b2;
  outline-offset: 3px;
}
@media (max-width: 950px) {
  .topbar { margin-inline: 28px; gap: 12px; padding-inline: 22px; }
  .topbar-brand { font-size: 17px; padding-inline: 10px; letter-spacing: .08em; }
  .topbar-brand-mark { display: none; }
  .topbar .account-actions .text-button { padding-inline: 9px; }
}
@media (max-width: 760px) {
  .topbar { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-inline: 18px; padding-block: 12px; }
  .topbar-brand { justify-self: center; min-height: 44px; font-size: 18px; padding: 7px 17px; }
  .topbar-brand-mark { display: inline; font-size: 23px; }
  .topbar-controls { justify-content: center; }
}
@media (max-width: 560px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; min-height: 0; margin: 10px 10px 0; padding: 8px 16px; align-items: center; }
  .topbar-brand { justify-self: start; gap: 5px; min-height: 44px; max-width: 100%; padding: 6px 8px; font-size: 15px; letter-spacing: .04em; }
  .topbar-brand-mark { font-size: 18px; }
  .topbar-controls { display: contents; }
  .topbar .preferences { justify-self: end; min-width: 0; padding: 0 4px; }
  .topbar .compact-label { font-size: 0; gap: 0; }
  .topbar .preferences select { max-width: 130px; font-size: 12px; }
  .topbar .account-actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; padding: 0; }
  .topbar .account-actions .text-button { min-height: 44px; padding: 7px; font-size: 12px; overflow-wrap: anywhere; }
}

.shell {
  margin-top: 24px;
  border: 8px solid #6c4b2c;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #271f12, 0 0 0 5px #a28b503b,
    0 24px 70px #0008, 0 0 60px #eb944922;
}
.shell::before, .shell::after {
  content: '';
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 7px;
  pointer-events: none;
  border-radius: 8px;
  border: 1px solid #957441;
  background: var(--material-bamboo) center / 256px 100% repeat-x;
  box-shadow: 0 2px 4px #0008;
}
.shell::before { top: 0; }
.shell::after { bottom: 0; }
.sidebar {
  min-width: 0;
  background-color: var(--nav);
  background-image: linear-gradient(#111c17e8, #111c17f0), var(--material-rattan);
  background-size: auto, 128px 128px;
  background-position: 0 0;
  border-right: 3px double #96723f;
}
.sidebar > a:first-child {
  display: block;
  border-block: 3px double #96723f;
  padding: 10px 0;
  text-decoration: none;
}
.sidebar .brand { filter: drop-shadow(0 4px 12px #0005); }
.sidebar .brand-caption { color: #e0c791; line-height: 1.5; }
.nav-link { border-radius: 7px; font-weight: 500; }
.nav-link:hover { background: #393d285e; }
.nav-link[aria-current=page] {
  color: #ffd38c;
  background: #49351fd1;
  border-color: #a17d4266;
  box-shadow: inset 3px 0 #c39a50;
}
.nav-link[aria-current=page] .nav-symbol { color: #e9ac59; }
.sidebar-footer { color: #c9c5ab; }

main.workspace {
  padding: var(--workspace-space);
  background: var(--bg);
  border-radius: 0 0 4px 0;
}

h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.04em; }
h2 { font-family: inherit; font-size: 22px; letter-spacing: -.025em; font-weight: 600; }
.eyebrow { font-size: 11px; letter-spacing: .13em; }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { font-size: clamp(34px, 3.3vw, 51px); }
.panel, .metric, .line-row, .sub-navigation {
  background-color: var(--surface);
  /* Opaque writing surface: texture is reserved for rails, never data rows. */
  background-image: none;
  border-color: var(--edge);
}
.panel { position: relative; padding: 25px; }
.panel::before {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  top: -3px;
  height: 6px;
  border-radius: 4px;
  opacity: .72;
  pointer-events: none;
  background: var(--material-bamboo) center / 256px 100% repeat-x;
  box-shadow: 0 1px 2px #0005;
}
.panel p, .panel li { line-height: 1.65; }
.search > .button { flex-shrink: 0; overflow-wrap: normal; white-space: nowrap; }
.button {
  position: relative;
  isolation: isolate;
  min-width: 44px;
  max-width: 100%;
  padding-inline: 23px;
  border: 1px solid #c6a369;
  border-radius: 7px 9px 6px 8px;
  background-color: #d6a665;
  background-image: linear-gradient(#ecc07dbf, #d6a665eb), var(--material-bamboo);
  background-size: auto, 256px 100%;
  color: #261d10;
  text-shadow: 0 1px #ffe5b34d;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px #fff0cbad, inset 0 -2px #583d2566, 0 2px 5px #0005;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.button::before, .button::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--material-node) center / 100% 100%;
  border-radius: 3px;
  opacity: .65;
  pointer-events: none;
}
.button::before { left: 6px; }
.button::after { right: 5px; transform: scaleX(-1); opacity: .5; }
.button.secondary {
  color: #f0d5a5;
  background-color: #1c251b;
  background-image: linear-gradient(#1c251bdd, #1c251bea), var(--material-wood);
  background-size: auto, 256px 83px;
  border-color: var(--brass-edge);
  text-shadow: 0 1px #0008;
  box-shadow: inset 0 1px #d2b16f20, 0 2px 4px #0003;
}
.button.secondary::before, .button.secondary::after { opacity: .25; }
.button.danger {
  color: var(--danger);
  background: #34211b;
  border-color: #ca8b76;
  text-shadow: none;
}
.button.danger::before, .button.danger::after { opacity: .2; }
.button.small { min-height: 44px; padding-inline: 21px; }
.button:is(:hover,:active):not(:disabled):not([aria-disabled=true]) {
  border-color: #f4d69d;
  box-shadow: inset 0 1px #fff0cbb0, inset 0 -2px #583d254d, 0 2px 7px #0007;
}
.button:active:not(:disabled):not([aria-disabled=true]) { box-shadow: inset 0 2px 4px #0005; }
button:disabled, .button:disabled, .button[aria-disabled=true] {
  opacity: 1;
  cursor: not-allowed;
  color: #b4b6a8;
  background: #353b2f;
  border-color: #626858;
  text-shadow: none;
  box-shadow: none;
}
.button:disabled::before, .button:disabled::after,
.button[aria-disabled=true]::before, .button[aria-disabled=true]::after { opacity: .12; }
button[aria-busy=true], form[data-busy] button[type=submit], form[data-busy] button:not([type]) {
  cursor: progress;
  border-style: dashed;
  border-color: #d7b87f;
}
.button[aria-busy=true]::after, form[data-busy] .button[type=submit]::after, form[data-busy] button.button:not([type])::after {
  top: calc(50% - 5px);
  bottom: auto;
  width: 8px;
  height: 8px;
  border: 2px solid #756b50;
  border-top-color: #fff0b2;
  border-radius: 50%;
  background: none;
  opacity: 1;
  animation: material-wait .85s linear infinite;
}
:is(button,a,input,select,textarea,summary):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
.spinner { border-color: #756b50; border-top-color: #f4d69d; }
@keyframes material-wait { to { transform: rotate(360deg); } }

.sub-navigation a[aria-current=page] { color: #ffd38c; background: #49351f; }
.tag { background: #222a1e; border-color: #68724c; border-radius: 5px; line-height: 1.5; }
.tag.warning, .tag.bad { color: #ffe0b3; border-color: #997a48; }
.notice { background: #303324; color: #ebe5d0; line-height: 1.65; }
.notice.warning { background: #382e20; }
.notice.success { background: #233626; }
.error-box { background: #54261f; border-color: #cb8e79; border-inline-start-width: 4px; color: #ffe2d7; line-height: 1.6; }

/* Today's sales and live tables remain the first, largest figures. */
.today-overview {
  position: relative;
  margin-bottom: 26px;
  padding: 28px;
  border: 3px double var(--show-glow);
  border-radius: 12px;
  background: linear-gradient(105deg, #25291ffa 20%, #25291ff0), var(--world) center / cover;
  box-shadow: 0 0 30px #efb45714;
}
.today-overview h1 { font-size: clamp(32px, 3.2vw, 46px); margin: 8px 0 29px; padding-right: 165px; }
.today-overview > .eyebrow { margin-bottom: 12px; padding-right: 165px; }
.today-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.today-metrics .metric { padding: 23px; border-radius: 9px; background: var(--surface2); }
.today-metrics .metric:first-child { background: linear-gradient(125deg, #92652c25, transparent 75%), var(--surface); border-color: #ae8b4f; }
.today-metrics .metric p { font-size: 14px; color: var(--ink); margin-bottom: 17px; }
.today-metrics .metric strong { color: var(--accent); font-size: clamp(29px, 3.3vw, 48px); letter-spacing: -.035em; font-weight: 600; }
.today-metrics .metric > .tag { margin-top: 13px; }
.today-metrics .metric small { font-size: 12px; line-height: 1.6; }
.today-metrics .metric:last-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 18px;
  padding: 16px 22px;
  background: #1c251bb8;
}
.today-metrics .metric:last-child p { margin: 0; }
.today-metrics .metric:last-child strong { font-size: 28px; text-align: right; }
.today-metrics .metric:last-child small { grid-column: 1 / -1; margin-top: 3px; }
.today-overview > .help { margin-top: 18px; }

/* A separate stage gives the mascots their own space, as in the prototype. */
.shift-treasure {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 275px;
  padding: 29px 30px 29px 300px;
  border: 3px double var(--show-glow);
  border-radius: 36px 8px 36px 8px;
  background: radial-gradient(ellipse at 12% 110%, #efb45747, transparent 60%), var(--surface);
  box-shadow: inset 0 0 50px #0003;
}
.shift-treasure::before { display: none; }
.treasure-copy { min-width: 0; position: relative; z-index: 1; }
.treasure-copy h2 { font-family: Georgia, serif; font-size: clamp(27px, 2.6vw, 36px); font-weight: 400; line-height: 1.15; }
.treasure-copy .benchmark { flex-wrap: wrap; gap: 10px 20px; }
.treasure-copy .benchmark strong { font-size: 30px; }
.treasure-copy > p:last-child { margin-bottom: 0; }
.shift-goal progress::-webkit-progress-value { background: linear-gradient(90deg, var(--show-second), var(--show-glow)); }
.shift-goal progress::-moz-progress-bar { background: linear-gradient(90deg, var(--show-second), var(--show-glow)); }

.bar-cinema {
  position: relative;
  isolation: isolate;
  height: clamp(300px, 29vw, 420px);
  overflow: hidden;
  margin: 0 0 28px;
  border: 5px double var(--show-glow);
  border-radius: 8px;
  background: #111913;
  box-shadow: 0 0 36px #efb45726;
}
.bar-cinema > img { display: block; width: 100%; height: 100%; object-fit: cover; animation: nightshift-cinema 28s ease-in-out infinite alternate; }
.bar-cinema::after { content: ''; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(0deg, #0b130ced, #0b130c38 60%, transparent), linear-gradient(90deg, #0b130c40, transparent 70%); }
.cinema-copy { position: absolute; z-index: 1; left: 5%; bottom: 12%; color: #fff2cf; }
.cinema-copy > span { display: block; font-size: 11px; letter-spacing: .3em; margin-bottom: 14px; text-transform: uppercase; }
.cinema-copy > strong { display: block; font: 900 clamp(45px, 5vw, 78px)/.95 Georgia, serif; letter-spacing: -.055em; text-shadow: 0 4px 0 #0009, 0 0 30px #000b; }
.cinema-copy > p { font-size: 14px; color: #fff5db; margin: 17px 0 0; }
.bar-cinema > small { position: absolute; z-index: 1; bottom: 9px; right: 12px; left: 12px; text-align: right; color: #ece5c9; font-size: 10px; line-height: 1.5; text-shadow: 0 1px 4px #000; }

/* Dense working screens keep the same night palette and tactile materials. */
.table-wrap { border-radius: 8px; border-color: #636547; background: #1d251c; }
table { font-size: 14px; }
th { background: #293122; color: #ded1b3; font-size: 12px; }
table caption { color: var(--muted); }
.table-wrap:focus-within { border-color: var(--brass-edge); }
th, td { border-color: #515840; }
tbody tr:hover { background: #d4c29209; }
input, select, textarea { color-scheme: dark; background: #151e16; border-color: #72704c; border-radius: 7px; }
input::placeholder, textarea::placeholder { color: #b7b6a2; opacity: 1; }
input:disabled, select:disabled, textarea:disabled { color: #b4b6a8; background: #252c23; border-color: #626858; opacity: 1; cursor: not-allowed; }
input[readonly], textarea[readonly] { background: #20271e; color: #d4d5c1; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: #e8a18c; box-shadow: inset 3px 0 #e8a18c; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.line-editor[data-line-kind=documents] .line-row { background: #192219; }
.line-editor[data-line-kind=documents] .line-row input,
.line-editor[data-line-kind=documents] .line-row select { background: var(--surface); }
dialog {
  border: 2px solid #8e754c;
  border-radius: 15px;
  background-color: var(--surface);
  background-image: none;
  box-shadow: 0 24px 120px #000c, 0 0 28px #efb45720;
}
dialog::backdrop { background: #081009c9; }
.dialog-heading { padding-bottom: 18px; border-bottom: 1px solid #796345; }
.dialog-heading h2 { color: #f5e4bf; }
.sub-navigation { background-image: linear-gradient(#25291fe8, #25291ff2), var(--material-wood); background-size: auto, 256px 83px; }
.sub-navigation a { min-height: 44px; display: inline-flex; align-items: center; }
.text-button { min-height: 44px; }
.form-footer, .actions { min-width: 0; }
.actions > .button { flex-shrink: 1; }
.auth-shell { border: 5px double #b49355; border-radius: 14px; }
.auth-scene { background-image: linear-gradient(#101b1322, #0d161288), var(--world); }
.auth-form { background: var(--surface); }

@keyframes nightshift-lights { 0%,70%,100% { opacity: .3; transform: scaleX(.6); } 85% { opacity: .9; transform: scaleX(1); } }
@keyframes nightshift-cinema { from { transform: scale(1); } to { transform: scale(1.045); } }

@media (min-width: 851px) {
  .sidebar { padding-top: 16px; min-height: 560px; }
  .sidebar .brand-caption { margin: 0 0 6px; }
}
@media (max-width: 1200px) {
  :root { --workspace-space: 24px; }
  .today-overview { padding: 23px; }
  .today-metrics .metric { padding: 19px; }
  .shift-treasure { padding-left: 236px; }
}
@media (max-width: 850px) {
  :root { --workspace-space: 22px; }
  .shell { grid-template-columns: minmax(0, 1fr); border-width: 5px; margin-top: 18px; }
  .sidebar { border-right: 0; border-bottom: 3px double #96723f; padding-top: 18px; }
  .sidebar nav { max-width: 100%; min-width: 0; overscroll-behavior-inline: contain; }
  .sidebar > a:first-child { width: 145px; margin: 0 auto; padding-block: 5px; }
  .sidebar .brand-caption { margin: 11px 0 14px; }
}
@media (max-width: 680px) {
  .today-metrics { grid-template-columns: 1fr; gap: 13px; }
  .today-metrics .metric strong { font-size: 39px; }
  .today-metrics .metric:last-child { grid-column: auto; }
  .shift-treasure { padding: 220px 21px 25px; border-radius: 25px; }
  .bar-cinema { height: 300px; border-radius: 16px; }
  .bar-cinema > img { object-position: 60% center; }
  .cinema-copy { left: 7%; bottom: 17%; }
  .cinema-copy > p { max-width: 230px; font-size: 13px; }
}
@media (max-width: 560px) {
  :root { --workspace-space: 14px; }
  .shell { border-radius: 8px!important; margin-top: 12px; }
  .button, .button.small { min-height: 44px; padding-inline: 21px; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
  .sidebar { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 6px 12px; padding: 10px 12px 8px; }
  .sidebar > a:first-child { width: 68px; margin: 0; padding: 0; border: 0; }
  .sidebar .brand { width: 68px; height: 64px; }
  .sidebar .brand-caption { margin: 0; text-align: left; line-height: 1.6; }
  .sidebar nav { grid-column: 1 / -1; padding: 4px 3px 8px; scrollbar-width: auto; scrollbar-color: #be9957 #152019; }
  .sidebar nav::-webkit-scrollbar { height: 6px; }
  .sidebar nav::-webkit-scrollbar-track { background: #152019; border-radius: 3px; }
  .sidebar nav::-webkit-scrollbar-thumb { background: #be9957; border-radius: 3px; }
  .sidebar .nav-link { min-height: 44px; }
  .panel { padding: 19px 16px; }
  .panel::before { left: 13px; right: 13px; }
  .today-overview { padding: 16px 14px; }
  .today-overview h1 { font-size: 30px; padding-right: 76px; min-height: 54px; margin: 5px 0 14px; }
  .today-overview > .eyebrow { font-size: 10px; padding-right: 68px; margin-bottom: 8px; }
  .today-metrics .metric { padding: 15px 14px; }
  .today-metrics .metric p { margin-bottom: 10px; }
  .today-metrics .metric:last-child { padding: 14px 16px; gap: 8px; }
  .today-metrics .metric:last-child strong { font-size: 25px; }
  .shift-treasure { padding: 220px 17px 24px; }
  .treasure-copy h2 { font-size: 28px; }
  .bar-cinema { height: 280px; }
  .cinema-copy > strong { font-size: 43px; }
  .bar-cinema > small { font-size: 9px; }
  table { font-size: 13px; }
  dialog { border-width: 3px; padding: 20px 14px; }
}
@media (prefers-reduced-motion: reduce) { .bar-cinema > img, .button::after { animation: none!important; }
  .button { transition: none; }
}
body[data-motion="off"] .bar-cinema > img { animation: none; }

@media (forced-colors: active) {
  .button, .button.secondary, .button.danger, input, select, textarea { background: Canvas; color: CanvasText; border-color: ButtonText; box-shadow: none; text-shadow: none; }
  .button::before, .button::after, .panel::before { display: none; }
  button:disabled { color: GrayText; border-color: GrayText; }
  :is(button,a,input,select,textarea,summary):focus-visible { outline-color: Highlight; }
}

/* Reserve the full torch silhouette outside the working surface on desktop. */
@media(min-width:1280px){.shell{margin-inline:130px;width:auto;max-width:none}.topbar{margin-inline:130px}.auth-shell{max-width:min(1040px,calc(100vw - 260px))}}
@media(min-width:1060px) and (max-width:1279px){.shell{margin-inline:96px;width:auto;max-width:none}.topbar{margin-inline:96px}.auth-shell{max-width:min(1040px,calc(100vw - 192px))}}
