

.tri-room-document {
  --paper: #f7f8f7;
  --ink: #252930;
  --muted: #56606a;
  --line: #dce2df;
  --green: #47771b;
  --soft: #edf3e7;
  --white: #fff;
  --header-height: 72px;
  --chapter-bar: 58px;
  --gutter: clamp(20px, 4.5vw, 80px);
  --mobile-stage: clamp(300px, calc(var(--tri-room-viewport-height, 100vh) * 0.45), 390px);
  color-scheme: light;
  font: 16px/1.58 "Open Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box }
room-html { scroll-behavior: smooth }
room-body { margin: 0 }
img { display: block; max-width: 100% }
button, input, select { font: inherit; color: inherit }
button { cursor: pointer }
button:disabled { cursor: default }
a { color: inherit; text-decoration: none }
:focus-visible { outline: 2px solid #487524; outline-offset: 4px }
button[hidden], [hidden] { display: none !important }
h1, h2, h3, p { margin: 0 }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.062em }
em { color: var(--green); font-style: normal }
section[id] { scroll-margin-top: calc(var(--header-height) + 16px) }
.shell { width: min(100% - 2 * var(--gutter), 1352px); margin-inline: auto }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.skip:focus { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 16px; background: var(--white) }

.site-header { position: sticky; top: 0; z-index: 5; background: rgb(247 248 247 / .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px) }
.header-inner, .footer-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 23px }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.69rem; line-height: 1; font-weight: 750; letter-spacing: -.075em }
.brand img { flex: none }
.product-name { padding-left: 23px; border-left: 1px solid #cdd7ca; color: var(--muted); font-size: .875rem; font-weight: 650 }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); margin-left: auto; margin-right: clamp(0px, 1vw, 18px); font-size: .875rem; font-weight: 650; white-space: nowrap }
.main-nav a:hover, .back-link:hover { color: var(--green) }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 11px 22px; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 750; line-height: 1.25; text-align: center; transition: background-color .18s, border-color .18s }
.button-small { min-height: 42px; padding: 8px 17px; font-size: .875rem; white-space: nowrap }
.button-primary { background: var(--green); color: #fff; border-color: var(--green) }
.button-primary:hover { background: #385f15; border-color: #385f15 }
.button-outline { border-color: #b9c6b3; background: transparent }
.button-outline:hover { border-color: #6c9660; background: var(--soft) }

.hero { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(17px, 2vw, 33px); padding-block: clamp(35px, 4vw, 65px) clamp(50px, 6vw, 90px) }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--green); font-size: .875rem; font-weight: 650; letter-spacing: .045em; line-height: 1.4 }
.eyebrow::before { content: ""; width: 23px; height: 2px; flex: none; background: currentColor }
.hero h1 { font-size: clamp(3.15rem, 5.25vw, 5.4rem); line-height: 1.03; font-weight: 720; letter-spacing: -.05em; text-transform: uppercase; margin-bottom: 24px }
.hero h1 em { font-weight: 350 }
.hero-lead { max-width: 39ch; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.57; color: var(--muted) }
.hero-lead strong { color: var(--ink) }
.hero-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 28px }
.hero-actions span { color: var(--muted); font-size: .875rem }
.hero-room { position: relative; isolation: isolate; min-width: 0; height: clamp(385px, 41vw, 555px) }
.hero-room::before { content: ""; position: absolute; inset: 12% -3% 1%; z-index: -1; background: radial-gradient(ellipse, #e0e8e6, transparent 70%) }
.room-image { position: absolute; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; bottom: 2%; left: 0; filter: drop-shadow(0 20px 24px #15283025) }
.till-image { position: absolute; height: 89%; width: auto; max-width: none; bottom: 1%; left: 71%; translate: -50% 0; filter: drop-shadow(7px 13px 14px #15283040) }
.room-message { position: absolute; left: 6%; bottom: 9%; max-width: 54%; padding: 12px 16px; border-radius: 17px 6px 17px 17px; background: linear-gradient(155deg, #f4fbf6 8%, #e9f5ee); border: 1px solid #cfe6d7; box-shadow: inset 0 1px #fff, 0 3px 10px #26342c17; line-height: 1.3 }
.room-message span { display: block; margin-bottom: 4px; color: var(--green); font-size: .875rem; font-weight: 750 }
.room-message p { font-size: clamp(.875rem, 1.25vw, 1.13rem); font-weight: 720; letter-spacing: -.02em }
.agent-caption { position: absolute; right: 4%; bottom: 5%; display: flex; gap: 10px; align-items: center; border: 1px solid #a2b7c15c; background: #edf2f5c2; padding: 9px 13px 9px 9px; border-radius: 19px; box-shadow: inset 0 1px #ffffffe8, 0 12px 32px #2a42531f; backdrop-filter: blur(20px) saturate(1.16) }
.agent-caption strong, .agent-caption div > span { display: block; line-height: 1.28 }
.agent-caption strong { letter-spacing: -.04em; font-size: 1.13rem }
.agent-caption div > span { margin-top: 3px; color: var(--muted); font-size: .875rem }
.agent-mark { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 50%; border: 1px solid #a2b7c15c; background: #fff }
.agent-mark img { width: 68%; height: auto }

.icon { width: 16px; height: 16px; display: inline-block; flex: none; position: relative; vertical-align: middle }
.icon-board { border: 1.5px solid; border-radius: 3px }
.icon-board::before, .icon-board::after { content: ""; position: absolute; width: 1.5px; height: 8px; left: 4px; top: 2px; background: currentColor }
.icon-board::after { left: 8px; height: 6px }
.icon-calendar { border: 1.5px solid; border-radius: 3px; height: 14px; margin-top: 2px }
.icon-calendar::before { content: ""; position: absolute; inset: 3px 0 auto; border-top: 1.5px solid }
.icon-calendar::after { content: ""; position: absolute; width: 1.5px; height: 4px; left: 3px; top: -3px; background: currentColor; box-shadow: 6px 0 currentColor }
.icon-check { border: 1.5px solid; border-radius: 50% }
.icon-check::after { content: ""; position: absolute; border-bottom: 1.6px solid; border-left: 1.6px solid; width: 7px; height: 4px; rotate: -45deg; top: 4px; left: 3px }

.story { padding: clamp(52px, 7vw, 100px) 0 19px; background: #edf0ef; border-block: 1px solid #dde3e0 }
.story-intro { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: clamp(24px, 6vw, 96px); padding-bottom: 38px }
.story-intro h2, .closing h2 { font-size: clamp(2.5rem, 5.1vw, 4.8rem); font-weight: 720; letter-spacing: -.05em }
.story-intro h2 { text-transform: uppercase }
.story-intro h2 em { font-weight: 350 }
.story-intro > p { max-width: 38ch; margin-bottom: 6px; font-size: clamp(1rem, 1.28vw, 1.17rem); color: var(--muted) }
.chapter-nav { display: flex; gap: 5px; position: sticky; top: var(--header-height); z-index: 3; min-height: var(--chapter-bar); align-items: center; overflow-x: auto; scrollbar-width: thin; padding: 4px 4px 4px 0; border-block: 1px solid #d6dfda; background: #edf0ef }
.chapter-nav a { min-height: 40px; display: inline-flex; align-items: center; padding: 7px clamp(10px, 1.5vw, 21px); white-space: nowrap; border-radius: 8px; color: var(--muted); font-size: .875rem; font-weight: 700; border: 1px solid transparent }
.chapter-nav a:focus-visible { outline-offset: -2px }
.chapter-nav a:hover { color: var(--green) }
.chapter-nav [aria-current="step"] { color: #294921; background: #dceacf; border-color: #c8ddbd }
.story-layout { display: grid; grid-template-columns: minmax(265px, .63fr) minmax(0, 1.37fr); gap: clamp(28px, 4.6vw, 72px); align-items: start; margin-top: 21px }
.chapter { min-height: clamp(420px, calc(var(--tri-room-viewport-height, 100vh) * 0.68), 630px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 36px 0 50px; scroll-margin-top: calc(var(--header-height) + var(--chapter-bar) + 21px) }
.chapter + .chapter { border-top: 1px solid #d7dfd4 }
.chapter h3 { font-size: clamp(2rem, 3.2vw, 3.48rem); margin-bottom: 12px; font-weight: 770 }
.chapter > p:not(.eyebrow) { max-width: 43ch; color: var(--muted) }
.conversation { display: grid; justify-items: start; gap: 8px; margin-block: 20px 15px; width: 100% }
.bubble { display: grid; position: relative; gap: 4px; max-width: 95%; padding: 10px 13px; font-size: .9rem; line-height: 1.48; overflow-wrap: anywhere; border: 1px solid var(--bubble-edge); background: linear-gradient(155deg, var(--bubble-light) 8%, var(--bubble-fill)); box-shadow: inset 0 1px #fff, 0 3px 10px #26342c0b }
.bubble strong { font-size: .875rem; color: #345b45; line-height: 1.2 }
.bubble-you { justify-self: end; border-radius: 17px 6px 17px 17px; --bubble-light: #f4fbf6; --bubble-fill: #e9f5ee; --bubble-edge: #cfe6d7 }
.bubble-till { border-radius: 6px 17px 17px 17px; --bubble-light: #fcfdfd; --bubble-fill: #e8f0f4; --bubble-edge: #dae4eb }
.chapter-next { background: transparent; color: #2e5928; font-weight: 750; font-size: .9rem; line-height: 1.25; text-align: left; padding: 9px 0; border: 0; text-decoration: underline; text-decoration-color: #78966f; text-underline-offset: 5px }
.chapter-next:hover { text-decoration-color: currentColor }

.workspace { position: sticky; top: calc(var(--header-height) + var(--chapter-bar) + 18px); height: clamp(435px, calc(calc(var(--tri-room-viewport-height, 100vh) * 1) - var(--header-height) - var(--chapter-bar) - 48px), 595px); min-width: 0; isolation: isolate }
.workspace::before { content: ""; position: absolute; z-index: -1; inset: -16px -14px -14px; background: radial-gradient(ellipse, #c5d4d3, #e6ebea 68%, transparent 79%) }
.invisible-window.invisible-window--rail.tricoma-window { --window-rail-width: 56px; --window-titlebar-height: 34px; --window-control-width: 32px; --window-control-height: 26px; --window-chrome-radius: 27px; --window-control-color: #535958; width: 100%; height: 100%; font: .875rem/1.5 Inter, "Open Sans", "Segoe UI", sans-serif }
.tricoma-window .invisible-window__glass-edge { border-radius: 27px; box-shadow: 0 16px 54px #191e253a }
.tricoma-window .invisible-window__titlebar { cursor: default; touch-action: auto }
.tricoma-window .invisible-window__identity { padding: 8px 0 }
.tricoma-window .invisible-window__identity img { width: 38px; height: 38px; object-fit: contain }
.tricoma-window .invisible-window__rail > .till-avatar { margin: 7px auto }
.tricoma-window span.invisible-window__control { pointer-events: none }
.tricoma-window .window-label { align-items: center; gap: 6px; min-width: 0; color: #4c575f; font-size: .8125rem; font-weight: 650; white-space: nowrap; overflow: hidden }
.window-label span { color: #6a787d }
.invisible-window.invisible-window--rail .workspace-content { overflow: hidden; background: #fff }
.workspace-header, .workspace-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.workspace-header { min-height: 69px; padding: 12px 16px 10px }
.project-title { min-width: 0 }
.project-title h3 { font-size: clamp(1.12rem, 1.9vw, 1.65rem); letter-spacing: -.05em; line-height: 1.16 }
.project-title p { color: var(--muted); font-size: .875rem; margin-top: 2px }
.till-avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #c9d9c3; background: #e1eed8 url("/templates/tricoma_2026/assets/rooms/media/till-f58ed0ec76c0.png") 51% 1% / 82px auto no-repeat; flex: none }
.workspace-chat { display: flex; gap: 6px; align-items: center; flex: none; border: 1px solid #d8e3d5; background: #f4f8f2; border-radius: 99px; padding: 3px 9px 3px 3px; font-weight: 720; font-size: .875rem; white-space: nowrap }
.workspace-chat:hover { background: #e5f0df; border-color: #a5c19e }
.workspace-chat .till-avatar { width: 24px; height: 24px; background-size: 69px auto }
.project-progress { display: flex; gap: 10px; align-items: center; min-height: 28px; padding-inline: 16px; color: var(--muted); font-size: .8125rem; font-weight: 650 }
.project-progress progress { height: 6px; width: clamp(55px, 14vw, 155px); border: 0; border-radius: 20px; overflow: hidden; appearance: none; background: #e8eee5; accent-color: #609646 }
.project-progress progress::-webkit-progress-bar { background: #e8eee5 }
.project-progress progress::-webkit-progress-value { background: #609646; border-radius: 20px }
.project-progress progress::-moz-progress-bar { background: #609646 }
.workspace-tabs { display: flex; gap: clamp(3px, 1vw, 14px); padding: 3px 12px 0; border-bottom: 1px solid #dfe8de; flex: none }
.workspace-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 5px 8px; border: 0; border-bottom: 2px solid transparent; background: none; white-space: nowrap; font-size: .875rem; font-weight: 680; color: var(--muted) }
.workspace-tabs button:focus-visible { outline-offset: -2px }
.workspace-tabs button:hover { color: var(--green) }
.workspace-tabs [aria-pressed="true"] { border-bottom-color: #609344; color: #2d5a2b }
.workspace-body { background: #f3f5f5; flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #b6c3c3 #eef1f1; padding: 12px; scrollbar-gutter: stable }
.workspace-body:focus-visible { outline-offset: -3px }
.board { display: grid; grid-template-columns: repeat(4, minmax(123px, 1fr)); align-items: start; gap: 8px }
.column { border: 1px solid #dfe5e7; background: #e9eeee; min-height: 143px; border-radius: 10px; padding: 7px }
.column h4 { display: flex; align-items: center; gap: 6px; margin: 3px 0 10px; color: #303e31; font-size: .8125rem; line-height: 1.35; white-space: nowrap }
.column-count { margin-left: auto; color: #535f52; font-weight: 600; font-variant-numeric: tabular-nums }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8d988b; flex: none }
[data-status="doing"] .status-dot { background: #4384a9 }
[data-status="review"] .status-dot { background: #b48127 }
[data-status="done"] .status-dot { background: #598749 }
.task-list { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none }
.task-card { width: 100%; text-align: left; display: grid; gap: 6px; min-height: 63px; padding: 8px; border: 1px solid #dde6dc; border-radius: 7px; background: #fff; box-shadow: 0 2px 4px #2737270c }
.task-card:hover { border-color: #8eb081; background: #fcfff9 }
.task-card strong { font-size: .875rem; line-height: 1.3; font-weight: 740; overflow-wrap: anywhere }
.task-card span, .empty-column { color: var(--muted); font-size: .75rem; line-height: 1.25 }
.empty-column { padding: 5px 2px }
.workspace-foot { justify-content: flex-start; flex: none; min-height: 50px; border-top: 1px solid #e2e5e5; padding: 7px 12px; background: #f4f7f7 }
.workspace-foot p { font-size: .875rem; line-height: 1.32; color: #344532 }

.agenda-panel, .check-panel { display: grid; gap: 9px }
.agenda-panel h4, .check-panel h4 { margin: 0; font-size: 1rem; letter-spacing: -.026em }
.panel-intro { font-size: .875rem; line-height: 1.4; color: var(--muted) }
.agenda-list, .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px }
.agenda-row, .check-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid #dbe4da; border-radius: 8px; background: var(--white); font-size: .875rem }
.agenda-row { width: 100%; text-align: left }
.agenda-row:hover { background: #f0f7ed; border-color: #a9c2a3 }
.agenda-date { color: #3c6435; min-width: 67px; font-size: .8125rem; font-weight: 750 }
.agenda-row strong, .check-row strong { display: block; line-height: 1.25; overflow-wrap: anywhere }
.agenda-row small, .check-row small { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; line-height: 1.3 }
.check-row { justify-content: space-between }
.check-status { display: inline-flex; align-items: center; flex: none; min-height: 29px; padding: 3px 8px; border-radius: 6px; background: #eff4ec; font-size: .8125rem; font-weight: 700; color: #40533c }
.check-status[data-action] { border: 1px solid #b7d5af; background: #e6f3df }
.check-status[data-action]:hover { background: #d5eccb }
.check-warning { color: #704a0b; background: #faefdc }
.check-ready { color: #285420; background: #e7f3e0 }
.check-callout { padding: 9px 11px; border-radius: 8px; font-size: .875rem; font-weight: 670 }
.noscript-note { padding: 12px 0; color: var(--muted) }

.closing { padding-block: clamp(46px, 7vw, 110px) }
.closing-panel { display: flex; justify-content: space-between; align-items: center; gap: 26px; border-radius: 26px; padding: clamp(22px, 5vw, 69px); background: radial-gradient(ellipse at 90% 100%, #39553b, #203328 67%); color: #fafef7 }
.closing-panel .eyebrow { color: #d0eacb }
.closing-panel h2 { font-size: clamp(2.35rem, 4.4vw, 4.6rem) }
.closing-panel p:not(.eyebrow) { margin-top: 14px; max-width: 49ch; color: #dce8d8 }
.closing-panel .button { flex: none }
.site-footer { border-top: 1px solid var(--line) }
.footer-inner { gap: 16px; color: var(--muted); font-size: .875rem }
.footer-inner .brand { color: var(--ink); font-size: 1.45rem }
.back-link { margin-left: auto; font-weight: 700; white-space: nowrap }

.dialog { width: min(580px, calc(100% - 36px)); max-height: calc(calc(var(--tri-room-viewport-height, 100vh) * 1) - 36px); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible }
.dialog::backdrop { background: #18252f73; backdrop-filter: blur(5px) }
.dialog .tricoma-window { max-height: calc(calc(var(--tri-room-viewport-height, 100vh) * 1) - 36px) }
.dialog h2 { font-size: clamp(1.55rem, 4vw, 2.5rem); overflow-wrap: anywhere }
.invisible-window.invisible-window--rail .task-content { padding: clamp(13px, 3vw, 25px); max-height: calc(calc(var(--tri-room-viewport-height, 100vh) * 1) - 74px); background: #fff }
.task-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 15px 0 }
.task-details div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: #edf3ea }
.task-details dt { color: var(--muted); font-size: .875rem }
.task-details dd { margin: 0; font-weight: 700 }
.task-description { margin: 12px 0 }
#task-form > label { display: block; margin-top: 14px; font-size: .875rem; font-weight: 700 }
.task-form-row, .chat-form { display: flex; gap: 8px; align-items: center; margin-top: 6px }
select, .chat-form input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid #c7d5c5; background-color: var(--white); border-radius: 8px; padding: 9px 10px }
select { appearance: none; padding-right: 31px; background-image: linear-gradient(45deg, transparent 50%, #405b3f 50%), linear-gradient(135deg, #405b3f 50%, transparent 50%); background-position: right 15px center, right 10px center; background-size: 5px 5px; background-repeat: no-repeat }
.form-feedback { color: #714b0b; font-size: .875rem; margin-top: 7px }
.form-feedback:empty { display: none }
.chat-dialog { width: min(1020px, calc(100% - 42px)); height: min(655px, calc(calc(var(--tri-room-viewport-height, 100vh) * 1) - 42px)) }
.invisible-window.invisible-window--rail .chat-content { display: grid; grid-template-columns: clamp(210px, 31vw, 345px) minmax(0, 1fr); overflow: hidden; background: #fff }
.agent-profile { position: relative; isolation: isolate; overflow: hidden; min-height: 0; display: flex; align-items: flex-end; padding: clamp(18px, 3vw, 38px); background: radial-gradient(ellipse at 56% 37%, #d6e5db 0%, #a5c0b3 40%, #3e655a 100%); border-right: 1px solid #dfe7e1 }
.agent-portrait { position: absolute; inset: 0; z-index: -2 }
.agent-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: drop-shadow(0 16px 21px #18383242) }
.agent-profile::after { content: ""; position: absolute; inset: 40% 0 0; z-index: -1; background: linear-gradient(transparent 12%, #102c28aa 63%, #122b26f5) }
.agent-identity strong { display: block; font-size: clamp(3rem, 7vw, 5.75rem); line-height: .94; letter-spacing: -.075em; font-weight: 680; color: #fff }
.agent-identity p { margin-top: 10px; color: #e1eee8 }
.chat-thread { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0 }
.chat-heading { display: flex; align-items: center; gap: 9px; padding: 12px 18px; border-bottom: 1px solid #e2e5e5 }
.chat-heading h2 { font-size: 1.2rem; letter-spacing: -.025em }
.chat-heading .till-avatar { width: 41px; height: 41px; background-size: 114px auto }
.chat-heading div > span { color: var(--muted); font-size: .875rem }
.chat-log { display: grid; align-content: start; justify-items: start; gap: 13px; overflow: auto; scrollbar-width: thin; padding: 16px; background: radial-gradient(ellipse at 0 100%, #edf2f8, transparent 44%), radial-gradient(ellipse at 100% 100%, #edf7f2, transparent 42%), #fcfdfd }
.chat-composition { padding: 10px 12px 12px; border-top: 1px solid #e9eeeb }
.chat-options { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px }
.chat-options button, .chat-link { display: inline-flex; align-items: center; padding: 5px 9px; min-height: 33px; border-radius: 6px; background: #fff; color: #31582a; border: 1px solid #cddcc9; font-size: .875rem; font-weight: 700 }
.chat-options button:hover, .chat-link:hover { background: #e7f0e3 }
.chat-link { justify-self: start; margin-top: 3px }

@media (max-width: 1080px) {
  .hero { gap: 30px }
  .story-layout { gap: 24px; grid-template-columns: minmax(240px, .63fr) minmax(0, 1.37fr) }
}

@media (max-width: 850px) {
  .tri-room-document { --header-height: 62px }
  .header-inner { gap: 16px }
  .main-nav { display: none }
  .header-inner > .button { margin-left: auto }
  .hero { padding-top: 32px }
  .hero h1 { font-size: clamp(2.6rem, 6.9vw, 5.1rem) }
  .hero-room { height: clamp(340px, 49vw, 450px) }
  .agent-caption { right: 3%; bottom: 4% }
  .story-layout { grid-template-columns: minmax(0, 1fr); position: relative; gap: 0 }
  .chapters, .workspace { grid-area: 1 / 1 }
  .chapters { padding-top: calc(var(--mobile-stage) + 14px) }
  .chapter { min-height: 0; padding: 26px 4px 32px; scroll-margin-top: calc(var(--header-height) + var(--mobile-stage) + 25px) }
  .chapter-nav { position: static; min-height: 50px }
  .workspace { z-index: 2; top: calc(var(--header-height) + 7px); height: var(--mobile-stage) }
  .workspace::before { inset: -8px; background: #e8edeb; border-radius: 20px }
  .invisible-window.invisible-window--rail.tricoma-window { --window-rail-width: 42px }
  .tricoma-window .invisible-window__identity img { width: 27px; height: 27px }
  .workspace-header { min-height: 53px; padding-block: 6px }
  .workspace-foot { min-height: 40px; padding-block: 5px }
  .workspace-tabs button { min-height: 34px }
  .workspace-body { padding: 8px }
  .column { min-height: 120px }
}

@media (max-width: 560px) {
  .tri-room-document { --gutter: 17px }
  .product-name { display: none }
  .brand { font-size: 1.48rem }
  .brand img { width: 29px; height: 29px }
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; padding-bottom: 44px }
  .hero .eyebrow { margin-bottom: 12px }
  .hero h1 { font-size: clamp(2.65rem, 10.3vw, 4rem); margin-bottom: 16px }
  .hero-actions { margin-top: 18px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px }
  .hero-actions span { font-size: .8125rem }
  .hero-room { height: clamp(285px, 82vw, 385px) }
  .room-message { padding: 8px 10px }
  .agent-caption { padding: 6px 8px; gap: 6px }
  .agent-caption div > span { font-size: .75rem }
  .agent-caption strong { font-size: .96rem }
  .agent-mark { width: 27px }
  .story-intro { grid-template-columns: 1fr; gap: 13px; padding-bottom: 22px }
  .story-intro .eyebrow { margin-bottom: 10px }
  .story-intro > p { margin-bottom: 0 }
  .story-layout { margin-top: 12px }
  .workspace-header, .project-progress { padding-inline: 9px }
  .workspace-chat { padding-right: 6px }
  .workspace-chat .till-avatar { display: none }
  .workspace-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: 4px; gap: 0 }
  .workspace-tabs button { padding-inline: 2px; font-size: .8125rem; line-height: 1.2; white-space: normal }
  .workspace-tabs .icon { display: none }
  .workspace-foot p { font-size: .8125rem }
  .workspace-foot { padding-inline: 8px }
  .workspace-foot .till-avatar { width: 25px; height: 25px; background-size: 73px auto }
  .closing-panel { flex-direction: column; align-items: flex-start }
  .footer-inner { padding-block: 15px; flex-wrap: wrap; gap: 10px }
  .footer-inner > span { order: 1; width: 100% }
  .chat-form .button, .task-form-row .button { padding-inline: 12px; min-height: 44px }
}

@media (max-width: 700px) {
  .invisible-window.invisible-window--rail .chat-content { display: flex }
  .agent-profile { display: none }
  .chat-thread { flex: 1 }
  .chat-heading, .chat-log { padding-inline: 10px }
}

@media (max-width: 355px) {
  .workspace-tabs button { font-size: .75rem; padding-inline: 4px }
  .workspace-chat { font-size: .75rem }
  .check-row { flex-wrap: wrap; gap: 6px }
}

@media (max-height: 600px) and (min-width: 851px) {
  .workspace { position: relative; top: 0 }
  .chapter { scroll-margin-top: calc(var(--header-height) + var(--chapter-bar) + 8px) }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .story-intro.has-entered > * { animation: slide-in .7s var(--arrival-easing) both }
  .hero { --arrival-easing: cubic-bezier(.2, .7, .24, 1) }
  .story, .chat-dialog { --arrival-easing: cubic-bezier(.2, .7, .24, 1) }
  .room-image { --arrival-x: 25px; animation: slide-in .84s var(--arrival-easing) .1s both }
  .till-image { --arrival-x: 16px; --arrival-y: 28px; animation: slide-in .74s var(--arrival-easing) .24s both }
  .room-message { --arrival-x: -14px; animation: slide-in .55s var(--arrival-easing) .52s both }
  .agent-caption { --arrival-x: 12px; animation: slide-in .55s var(--arrival-easing) .68s both }
  .story-intro.has-entered > p { animation-delay: .12s }
  .workspace.has-entered > .tricoma-window { --arrival-x: 23px; --arrival-y: 24px; animation: slide-in .72s var(--arrival-easing) both }
  .chapter.is-current > :not(.conversation) { --arrival-x: -14px; animation: slide-in .58s var(--arrival-easing) both }
  .chapter.is-current > .chapter-next { animation-delay: .34s }
  .chapter.is-current .bubble, .chat-log .chat-message { animation: slide-in .52s var(--arrival-easing) both }
  .bubble-you { --arrival-x: 14px }
  .bubble-till { --arrival-x: -14px }
  .chapter.is-current .bubble-you { animation-delay: .13s }
  .chapter.is-current .bubble-till { animation-delay: .25s }
  .chat-log .chat-message.bubble-till { animation-delay: .14s }
  .panel-arrival { --arrival-x: 15px; --arrival-y: 10px; animation: slide-in .48s var(--arrival-easing) both }
  .task-new { --arrival-x: 8px; --arrival-y: 15px; animation: slide-in .48s var(--arrival-easing) both; animation-delay: calc(var(--order, 0) * 46ms) }
  .dialog[open] > .tricoma-window { --arrival-y: 20px; animation: slide-in .42s cubic-bezier(.2, .7, .24, 1) both }
  .dialog[open]::backdrop { animation: fade-in .3s ease both }
}

@keyframes slide-in {
  from { opacity: 0; transform: translate(var(--arrival-x, 0), var(--arrival-y, 15px)) }
  to { opacity: 1; transform: translate(0, 0) }
}
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  room-html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important }
}
