:root {
  color-scheme: light;
  --app-bg: #edf2ef; --app-bg-soft: #f4f8f5; --surface: #fff; --surface-soft: #f7f9f7;
  --ink: #0d100e; --muted: #747a76; --muted-light: #959b97; --green: #2eaa4a;
  --green-dark: #1e8737; --green-soft: #e7f3e9; --green-line: #b8ddbf; --border: #dfe5e1;
  --danger: #a5443b; --shadow: 0 14px 38px rgba(29,64,39,.09); --shadow-soft: 0 9px 25px rgba(29,64,39,.075);
  --page-pad: clamp(20px,2.65vw,38px); --panel-radius: clamp(25px,2.25vw,32px);
  --workspace-rail-width: 350px;
}
* { box-sizing: border-box; }
html { height: 100%; background: var(--app-bg); }
body {
  min-width: 320px; min-height: 100%; margin: 0; overflow-x: hidden; color: var(--ink);
  background: radial-gradient(circle at 82% 8%,rgba(255,255,255,.76),transparent 30%), radial-gradient(circle at 14% 90%,rgba(255,255,255,.45),transparent 34%), var(--app-bg);
  font-family: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body:not(.app-active) { height: 100dvh; overflow: hidden; }
button,input,textarea,select { color: inherit; font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
button:not(:disabled),a,summary { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ambient { display: none; }
.eyebrow { margin: 0; color: var(--green); font-size: 11px; font-weight: 780; letter-spacing: .105em; text-transform: uppercase; }
.eyebrow-red { color: var(--green); }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible { outline: 3px solid rgba(46,170,74,.28); outline-offset: 3px; }
.primary-action { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; border-radius: 999px; color: #fff; background: #0c0e0d; text-decoration: none; font-weight: 750; box-shadow: 0 12px 24px rgba(0,0,0,.13); }
.primary-action:hover { background: #1a1d1b; }
.compact-action { min-height: 48px; }
.quiet-button { min-height: 42px; padding: 0 15px; border: 1px solid var(--border); border-radius: 999px; color: #303632; background: rgba(255,255,255,.88); font-weight: 680; }
.danger-button { min-height: 45px; padding: 0 17px; border-radius: 14px; color: var(--danger); background: #f8e9e7; font-weight: 740; }

.mic-icon,.home-mic,.hero-mic { position: relative; display: inline-block; width: 14px; height: 22px; border: 3px solid currentColor; border-radius: 9px; vertical-align: middle; }
.mic-icon::before,.home-mic::before,.hero-mic::before { content: ""; position: absolute; left: -7px; right: -7px; bottom: -7px; height: 12px; border: 3px solid currentColor; border-top: 0; border-radius: 0 0 12px 12px; }
.mic-icon::after,.home-mic::after,.hero-mic::after { content: ""; position: absolute; left: 4px; bottom: -12px; width: 3px; height: 7px; border-radius: 3px; background: currentColor; box-shadow: -5px 7px 0 -1px currentColor,5px 7px 0 -1px currentColor; }

/* Login */
.login-shell { width: 100%; height: 100dvh; display: grid; grid-template-rows: auto minmax(0,1fr); padding: 45px 54px 40px; overflow: hidden; background: #f3f8f5; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.brand strong,.brand small { display: block; }
.brand strong { font-size: 25px; line-height: 1; letter-spacing: -.045em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.login-brand { width: max-content; min-height: 34px; }
.login-brand small { display: none; }
.login-brand .brand-mark { position: relative; width: 34px; height: 34px; display: block; border-radius: 0; color: var(--green); background: transparent; }
.login-brand .brand-chef-mark > * { display: none; }
.login-brand .brand-chef-mark::before { content: ""; position: absolute; left: 3px; top: 2px; width: 28px; height: 21px; border: 3px solid var(--green); border-bottom: 0; border-radius: 50% 50% 30% 30%; box-shadow: inset 8px 0 0 -7px var(--green),inset -8px 0 0 -7px var(--green); }
.login-brand .brand-chef-mark::after { content: ""; position: absolute; left: 8px; bottom: 2px; width: 18px; height: 9px; border: 3px solid var(--green); border-top: 0; border-radius: 0 0 11px 11px; }
.login-brand strong { font-size: 27px; }
.login-stage { align-self: center; justify-self: center; width: min(1238px,calc(100vw - 80px)); height: min(645px,calc(100dvh - 170px)); display: grid; grid-template-columns: minmax(0,780px) minmax(360px,418px); gap: 40px; align-items: center; transform: translate(7px,-18px); }
.login-intro { position: relative; height: 100%; overflow: hidden; border: 1px solid rgba(37,91,50,.055); border-radius: 31px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.ingredient-orbit { position: absolute; inset: 40px 35px auto; height: 350px; transform: translateX(-15px); }
.ingredient-orbit::before,.ingredient-orbit::after { content: ""; position: absolute; left: 50%; top: 50%; border: 1px solid rgba(46,170,74,.11); border-radius: 50%; transform: translate(-50%,-50%); }
.ingredient-orbit::before { width: 280px; height: 280px; }
.ingredient-orbit::after { width: 365px; height: 365px; }
.ingredient-orbit .plate { position: absolute; z-index: 2; left: 50%; top: 50%; width: 202px; height: 202px; display: grid; place-items: center; transform: translate(-50%,-50%); border-radius: 50%; color: #fff; background: radial-gradient(circle at 36% 30%,#4ed65d,#20a43d 64%,#138332); box-shadow: 0 0 0 17px rgba(63,194,82,.11),0 0 0 34px rgba(63,194,82,.055),0 18px 45px rgba(27,145,51,.25); }
.ingredient-orbit .plate .hero-mic { width: 33px; height: 52px; border-width: 5px; border-radius: 19px; }
.ingredient-orbit .plate .hero-mic::before { left: -12px; right: -12px; bottom: -14px; height: 23px; border-width: 5px; border-radius: 0 0 20px 20px; }
.ingredient-orbit .plate .hero-mic::after { left: 12px; bottom: -24px; width: 5px; height: 13px; }
.login-dialogue { position: absolute; z-index: 3; max-width: 263px; padding: 23px 20px; border-radius: 18px; color: #343a36; background: rgba(255,255,255,.98); box-shadow: var(--shadow-soft); font-size: 13px; line-height: 1.35; }
.login-dialogue::before { content: ""; display: inline-block; width: 18px; height: 16px; margin-right: 11px; vertical-align: -3px; background: repeating-linear-gradient(90deg,var(--green) 0 2px,transparent 2px 5px); }
.login-dialogue-user { left: 15px; top: 15px; width: 263px; min-height: 66px; border-bottom-right-radius: 5px; }
.login-dialogue-chef { right: 21px; bottom: 29px; width: 228px; min-height: 81px; border-bottom-left-radius: 5px; }
.login-intro-copy { position: absolute; left: 43px; right: 43px; bottom: 53px; }
.login-intro h1 { margin: 0; font-size: clamp(42px,3.3vw,53px); line-height: 1; letter-spacing: -.055em; }
.login-intro .eyebrow { margin-top: 12px; color: var(--green); font-size: clamp(32px,3.05vw,45px); line-height: 1.05; letter-spacing: -.04em; text-transform: none; }
.login-lead { max-width: 430px; margin: 29px 0 0; color: var(--muted); font-size: 19px; line-height: 1.45; }
.login-card { width: 100%; min-height: 585px; display: flex; flex-direction: column; justify-content: center; padding: 54px 32px 26px; border: 1px solid rgba(37,91,50,.055); border-radius: 29px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 13px; font-size: 32px; line-height: 1.08; letter-spacing: -.04em; }
.login-card > p { margin: 0 0 39px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.login-card > h2,.login-card > p { margin-left: 17px; margin-right: 0; }
.login-card > h2,.login-card > p { transform: translateY(-5px); }
.login-card .primary-action { min-height: 66px; height: 66px; padding: 0 20px; transform: translateY(-3px); }
.login-card .primary-action > span { display: flex; align-items: center; gap: 13px; }
.login-card .primary-action i { font-style: normal; font-size: 0; }
.login-card .primary-action i::before { content: "◎"; color: #fff; font-size: 25px; font-weight: 400; }
.login-card .primary-action b { color: #29b447; font-size: 29px; }
.login-separator { display: flex; align-items: center; gap: 15px; margin: 28px 0 6px; color: #a0a5a1; font-size: 12px; transform: translateY(-3px); }
.login-separator::before,.login-separator::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-features { display: grid; margin-top: 17px; transform: translateY(-13px); }
.login-features span { min-height: 76px; display: flex; align-items: center; gap: 18px; padding-left: 8px; border-top: 1px solid #e8ece9; color: #303631; font-size: 17px; }
.login-features span::before { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: 0; }
.login-features span:nth-child(1)::before { content: "≋"; font-size: 27px; }
.login-features span:nth-child(2)::before { content: "▯"; font-size: 28px; }
.login-features span:nth-child(3)::before { content: "◴"; font-size: 29px; }

.login-card .primary-action i::before {
  content: "";
  width: 34px;
  height: 40px;
  display: block;
  border: 0;
  border-radius: 0;
  background: url("/assets/icons/passport.webp") center / contain no-repeat;
}

.login-features span::before {
  content: "" !important;
  background-color: var(--green-soft);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 29px 29px;
}

.login-features span:nth-child(1)::before { background-image: url("/assets/icons/voice-wave.webp"); }
.login-features span:nth-child(2)::before { background-image: url("/assets/icons/recipe-note.webp"); }
.login-features span:nth-child(3)::before { background-image: url("/assets/icons/history.webp"); }

/* SPA shell */
body.app-active { height: 100dvh; overflow: hidden; overscroll-behavior: none; }
body.app-active .app-shell { width: min(1600px,calc(100% - (2 * var(--page-pad)))); height: 100dvh; margin: 0 auto; display: grid; grid-template-rows: auto minmax(0,1fr); overflow: hidden; }
.topbar { min-height: clamp(72px,7.1vw,102px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.app-shell > .topbar .brand-mark,.app-shell > .topbar .brand small { display: none; }
.app-shell > .topbar .brand strong { font-size: clamp(30px,3.3vw,47px); font-weight: 780; }
.top-actions { display: none; }
.mobile-nav { display: block; position: relative; z-index: 50; }
.mobile-nav summary { width: clamp(43px,4vw,58px); height: clamp(43px,4vw,58px); display: grid; place-items: center; list-style: none; border-radius: 50%; color: var(--ink); background: #fff; box-shadow: var(--shadow-soft); font-size: 20px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-panel { position: absolute; top: calc(100% + 9px); right: 0; width: min(280px,calc(100vw - 30px)); display: grid; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255,255,255,.985); box-shadow: 0 22px 55px rgba(20,50,29,.17); }
.mobile-nav-panel button { min-height: 48px; padding: 0 14px; border-radius: 14px; text-align: left; background: transparent; font-weight: 680; }
.mobile-nav-panel button:hover { background: var(--green-soft); }
.mobile-nav-panel #mobile-logout { color: var(--danger); }
body.app-active:not([data-view="home"]) .topbar { display: none; }
body.app-active:not([data-view="home"]) .app-shell { width: 100%; grid-template-rows: minmax(0,1fr); }
.home-screen,.chat-screen,.recipe-screen,.library-screen,.admin-screen { min-height: 0; }

/* Home */
.home-screen { height: 100%; padding-bottom: var(--page-pad); overflow: hidden; display: grid; grid-template-rows: minmax(0,1fr) clamp(82px,9vw,130px); gap: clamp(20px,2.1vw,31px); }
.home-layout { min-height: 0; display: grid; grid-template-columns: 33.8% minmax(0,1fr); gap: clamp(30px,3.05vw,46px); }
.guide-column,.scenario-section { min-width: 0; min-height: 0; }
.hero-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--panel-radius); background: rgba(255,255,255,.975); box-shadow: var(--shadow); }
.hero-art { position: relative; order: 0; flex: 1 1 49%; min-height: 0; margin: clamp(18px,2.5vw,38px) clamp(22px,3vw,46px) 0; }
.hero-copy { order: 1; flex: 0 0 auto; padding: clamp(22px,3.4vw,50px) clamp(34px,3.9vw,57px) clamp(30px,3vw,43px); }
.hero-copy > .eyebrow { display: none; }
.hero-copy h1 { margin: 0; font-size: clamp(28px,2.8vw,40px); line-height: 1.04; letter-spacing: -.045em; }
.hero-copy > p:not(.eyebrow) { margin: 12px 0 0; color: #3f4742; font-size: clamp(14px,1.4vw,20px); line-height: 1.5; }
.hero-actions { display: grid; gap: 7px; margin-top: clamp(20px,2.4vw,34px); }
.home-primary-action { width: 100%; min-height: clamp(58px,5.55vw,80px); display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 24px; border-radius: 999px; color: #fff; background: #0a0c0b; box-shadow: 0 11px 22px rgba(0,0,0,.13); font-size: clamp(16px,1.55vw,22px); font-weight: 680; }
.home-primary-action .home-mic { width: 14px; height: 22px; }
.home-new-action { min-height: 38px; color: var(--muted); background: transparent; font-size: 14px; }
.home-hero-status { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 18px; color: #7d837f; font-size: clamp(11px,1.1vw,15px); }
.home-hero-status i { width: 19px; height: 14px; border: 2px solid var(--green); border-bottom: 0; border-radius: 12px 12px 0 0; }
.hero-plate { position: absolute; z-index: 2; left: 50%; top: 38%; width: clamp(100px,10.7vw,155px); height: clamp(100px,10.7vw,155px); display: grid; place-items: center; transform: translate(-50%,-50%); border-radius: 50%; color: #fff; background: radial-gradient(circle at 36% 30%,#50d35e,#24983d 70%); box-shadow: 0 0 0 17px rgba(57,188,78,.08),0 16px 35px rgba(35,149,55,.2); }
.hero-plate .hero-mic { width: 26px; height: 43px; border-width: 4px; border-radius: 16px; }
.hero-plate .hero-mic::before { left: -10px; right: -10px; bottom: -12px; height: 20px; border-width: 4px; }
.hero-plate .hero-mic::after { left: 10px; bottom: -21px; width: 4px; height: 11px; }
.hero-wave { position: absolute; z-index: 1; top: 38%; transform: translateY(-50%); color: var(--green); font-size: clamp(12px,1.4vw,20px); letter-spacing: 5px; }
.hero-wave-left { left: 0; }
.hero-wave-right { right: 0; }
.hero-dialogue-bubble { position: absolute; z-index: 3; max-width: 54%; padding: clamp(10px,1.2vw,17px) clamp(13px,1.5vw,21px); border-radius: 20px; color: #242a26; background: #fff; box-shadow: var(--shadow-soft); font-size: clamp(11px,1.15vw,16px); line-height: 1.35; }
.hero-dialogue-user { left: 7%; bottom: 4%; border-bottom-left-radius: 5px; }
.hero-dialogue-chef { right: 4%; bottom: -29%; border-bottom-right-radius: 5px; background: #edf4ef; }
.scenario-section { display: grid; grid-template-rows: auto minmax(0,1fr); }
.scenario-section > .eyebrow,.section-heading > span { display: none; }
.section-heading { min-height: clamp(54px,5.35vw,78px); display: flex; align-items: flex-start; justify-content: space-between; }
.section-heading h2 { margin: 0; font-size: clamp(24px,2.3vw,33px); line-height: 1; letter-spacing: -.04em; }
.section-heading p { margin: 9px 0 0; color: #303632; font-size: clamp(14px,1.35vw,19px); }
.scenario-grid { min-height: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: clamp(16px,1.55vw,23px) clamp(20px,1.9vw,28px); }
.scenario-card { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: minmax(0,1fr) auto auto; overflow: hidden; padding: 0; border-radius: clamp(20px,2vw,28px); text-align: left; background: #fff; box-shadow: var(--shadow-soft); transition: transform .18s ease,box-shadow .18s ease; }
.scenario-card:hover { transform: translateY(-3px); box-shadow: 0 15px 34px rgba(29,64,39,.12); }
.scenario-card.selected { box-shadow: inset 0 0 0 2px var(--green),var(--shadow-soft); }
.scenario-card-image { grid-column: 1 / -1; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.scenario-icon { display: none; }
.scenario-card strong { grid-column: 1; margin: clamp(14px,1.5vw,22px) 0 0 clamp(18px,1.65vw,24px); font-size: clamp(17px,1.55vw,22px); line-height: 1.12; letter-spacing: -.025em; }
.scenario-card small { grid-column: 1; margin: 7px 0 clamp(16px,1.5vw,22px) clamp(18px,1.65vw,24px); color: #656c67; font-size: clamp(12px,1.1vw,16px); line-height: 1.25; }
.scenario-card > b { grid-column: 2; grid-row: 2 / 4; align-self: center; width: clamp(47px,3.9vw,57px); height: clamp(47px,3.9vw,57px); display: grid; place-items: center; margin: 12px clamp(14px,1.45vw,21px) 12px 10px; border-radius: 50%; color: var(--ink); background: #edf5ef; font-size: clamp(22px,2vw,30px); font-weight: 450; }
.home-composer { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) clamp(61px,6.2vw,90px); gap: clamp(14px,1.5vw,22px); padding: clamp(15px,1.55vw,23px); border-radius: var(--panel-radius); background: rgba(255,255,255,.97); box-shadow: var(--shadow-soft); }
.home-composer input { min-width: 0; padding: 0 clamp(20px,2.2vw,33px); border: 1px solid #d6dcd8; border-radius: 21px; outline: 0; background: #fff; font-size: clamp(15px,1.65vw,23px); }
.home-composer input::placeholder { color: #858b87; opacity: 1; }
.home-composer button { display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#51d45e,#24973d); }
.home-composer .home-mic { width: clamp(14px,1.4vw,20px); height: clamp(22px,2.2vw,32px); }
.hero-card.active-conversation .hero-dialogue-bubble,.hero-card.active-conversation .hero-plate,.hero-card.active-conversation .hero-wave { display: none; }
.hero-active-visual { display: none; }
.hero-card.active-conversation .hero-active-visual { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 15px; }
.hero-card.active-conversation .hero-active-visual img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 20px; }
.hero-card.active-conversation .hero-active-waveform { overflow: hidden; color: var(--green); font-size: 18px; letter-spacing: 6px; white-space: nowrap; }
.hero-card.active-conversation .hero-copy > .eyebrow { display: block; }
.hero-card.active-conversation .hero-art { flex-basis: 41%; margin-bottom: 0; border-radius: 20px; background: url('/assets/scenarios/quick-v2.webp') center/cover; }
.hero-card.active-conversation .hero-copy { padding-top: 24px; }
.home-active-summary { display: grid; gap: 7px; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--border); }
.home-active-summary strong { font-size: clamp(18px,1.75vw,25px); }
.home-active-summary small { color: var(--muted); font-size: clamp(12px,1.2vw,17px); }

/* Shared workspaces */
.workspace-sidebar { background: #fff; }
.workspace-brand { padding: 0; text-align: left; background: transparent; font-size: 31px; font-weight: 790; letter-spacing: -.045em; }
.sidebar-new-dialogue { min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; color: #fff; background: #0b0d0c; font-weight: 720; }
.workspace-sidebar nav { display: grid; gap: 7px; }
.workspace-sidebar nav button { min-height: 54px; padding: 0 16px; border-radius: 16px; text-align: left; background: transparent; font-weight: 650; }
.workspace-sidebar nav button.active { background: var(--green-soft); }
.workspace-recent { min-height: 42px; padding: 0 12px; border-radius: 12px; text-align: left; background: transparent; }
.workspace-recent.active { color: var(--green-dark); background: var(--green-soft); }

/* Admin and overlays */
.admin-screen { width: min(1180px,calc(100% - 40px)); height: 100%; margin: 0 auto; padding: 18px 0 24px; overflow-y: auto; }
.admin-screen > .library-toolbar { min-height: 78px; display: flex; align-items: center; gap: 18px; }
.admin-screen > .library-toolbar > div { flex: 1; }
.admin-screen h1 { margin: 3px 0 0; font-size: 36px; }
.admin-prompts-panel { margin-bottom: 18px; padding: 24px; border-radius: 25px; background: #fff; box-shadow: var(--shadow-soft); }
.admin-prompts-heading { min-height: auto; align-items: flex-start; }
.admin-prompts-heading h2 { margin: 0; font-size: 22px; }
.admin-prompts-heading p { max-width: 680px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.admin-prompt-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.admin-prompt-card { min-width: 0; display: grid; align-content: start; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface-soft); }
.admin-prompt-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.admin-prompt-card-heading h3 { margin: 0; font-size: 18px; }
.admin-prompt-card-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.admin-prompt-badge { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: var(--green-dark); background: #e9f7eb; font-size: 10px; font-weight: 780; }
.admin-prompt-badge.primary { color: #fff; background: var(--green); }
.admin-prompt-card label { display: grid; gap: 7px; color: #565d58; font-size: 13px; font-weight: 700; }
.admin-prompt-card textarea { width: 100%; min-height: 150px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 13px; outline: 0; resize: vertical; background: #fbfcfb; line-height: 1.45; }
.admin-prompt-card textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(39,174,73,.1); }
.admin-prompt-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-prompt-card-footer small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.admin-layout { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 18px; }
.admin-list-panel,.admin-editor-panel { padding: 24px; border-radius: 25px; background: #fff; box-shadow: var(--shadow-soft); }
.admin-list-panel .section-heading,.admin-editor-panel .section-heading { min-height: auto; margin-bottom: 18px; }
.admin-list-panel h2,.admin-editor-panel h2 { margin: 0; font-size: 22px; }
.admin-scenario-list { display: grid; gap: 9px; }
.admin-scenario-card { display: grid; gap: 5px; padding: 15px; border-radius: 15px; text-align: left; background: var(--surface-soft); }
.admin-scenario-card.active { box-shadow: inset 0 0 0 2px var(--green); }
.admin-form { display: grid; gap: 15px; }
.admin-form label,.feedback-dialog label { display: grid; gap: 7px; color: #565d58; font-size: 13px; font-weight: 700; }
.admin-form input,.admin-form textarea,.admin-form select,.feedback-dialog textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 13px; outline: 0; resize: vertical; background: #fbfcfb; }
.admin-form-row { display: grid; grid-template-columns: 1fr 150px; gap: 13px; }
.admin-image-field span { color: var(--muted); font-size: 11px; font-weight: 500; }
.admin-image-preview img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 16px; }
.admin-active { display: flex !important; align-items: center; grid-template-columns: auto 1fr; }
.admin-active input { width: 20px; }
.prompt-improver { padding: 15px; border-radius: 16px; background: var(--green-soft); }
.admin-status,.feedback-error { min-height: 18px; margin: 0; color: var(--green-dark); font-size: 12px; }
.admin-status.error,.feedback-error { color: var(--danger); }
.admin-form-actions,.feedback-actions { display: flex; justify-content: flex-end; gap: 10px; }
.article-drawer-overlay { position: fixed; z-index: 100; inset: 0; display: flex; justify-content: flex-end; background: rgba(11,19,14,.28); backdrop-filter: blur(4px); }
.article-drawer { width: min(430px,100%); height: 100%; padding: 28px; overflow-y: auto; background: #fff; box-shadow: -18px 0 50px rgba(20,50,29,.16); }
.article-drawer header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.article-drawer h2 { margin: 4px 0 0; font-size: 28px; }
.article-drawer-lead { color: var(--muted); line-height: 1.5; }
.article-drawer-list { display: grid; gap: 12px; }
.article-drawer-card { display: grid; gap: 7px; padding: 17px; border-radius: 17px; color: inherit; background: var(--surface-soft); text-decoration: none; }
.article-drawer-card > span { color: var(--green); font-size: 10px; font-weight: 780; text-transform: uppercase; }
.article-drawer-card small { color: var(--muted); line-height: 1.4; }
.article-drawer-empty { padding: 30px 12px; text-align: center; color: var(--muted); }
.feedback-dialog { width: min(590px,calc(100% - 30px)); padding: 0; border: 0; border-radius: 26px; background: #fff; box-shadow: 0 30px 80px rgba(14,36,21,.25); }
.feedback-dialog::backdrop { background: rgba(11,19,14,.34); backdrop-filter: blur(4px); }
.feedback-dialog form { display: grid; gap: 15px; padding: 28px; }
.feedback-heading h2 { margin: 5px 0 8px; font-size: 30px; }
.feedback-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }

@media (max-width:980px) and (min-width:701px) {
  :root { --page-pad: clamp(24px,2.65vw,30px); }
  .login-shell { padding: 28px 32px; }
  .login-stage { width: min(920px,calc(100vw - 64px)); grid-template-columns: minmax(0,1.35fr) minmax(320px,.82fr); gap: 24px; transform: none; }
  .login-card { padding: 30px 24px; }
  .login-dialogue { max-width: 200px; }
  .hero-copy { padding-left: 34px; padding-right: 34px; }
  .scenario-card strong { font-size: 18px; }
  .scenario-card small { font-size: 12px; }
  .home-screen { padding-bottom: 22px; }
  .hero-plate,.hero-wave { top: 31%; }
  .hero-dialogue-user { left: 5%; right: auto; top: 65%; bottom: auto; max-width: 72%; }
  .hero-dialogue-chef { left: 21%; right: auto; top: 91%; bottom: auto; max-width: 68%; }
  .hero-copy { padding-bottom: 20px; }
  .hero-actions { margin-top: 14px; }
}

@media (max-width:700px) {
  :root { --page-pad: 15px; --panel-radius: 26px; }
  body { background: var(--app-bg); }
  .login-shell { display: grid; grid-template-rows: 66px minmax(0,1fr); padding: 38px 20px 35px; }
  .login-brand { align-self: start; justify-self: center; display: inline-flex; gap: 12px; }
  .login-brand .brand-mark { position: relative; width: 37px; height: 37px; display: block; overflow: visible; color: transparent; background: transparent; }
  .login-brand .brand-mark::before { content: ""; position: absolute; left: 4px; top: 2px; width: 29px; height: 22px; border: 3px solid var(--green); border-bottom: 0; border-radius: 50% 50% 30% 30%; box-shadow: inset 8px 0 0 -7px var(--green),inset -8px 0 0 -7px var(--green); }
  .login-brand .brand-mark::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 9px; border: 3px solid var(--green); border-top: 0; border-radius: 0 0 11px 11px; }
  .login-brand strong { font-size: 25px; }
  .login-stage { width: 100%; height: 100%; display: block; overflow: hidden; border-radius: 44px; background: rgba(255,255,255,.98); box-shadow: 0 12px 40px rgba(29,64,39,.09); transform: none; }
  .login-intro { height: 47%; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .ingredient-orbit { inset: 27px 18px auto; height: 215px; }
  .ingredient-orbit::before { width: 150px; height: 150px; }
  .ingredient-orbit::after { width: 190px; height: 190px; }
  .ingredient-orbit .plate { width: 116px; height: 116px; box-shadow: 0 0 0 10px rgba(63,194,82,.11),0 0 0 20px rgba(63,194,82,.05),0 14px 30px rgba(27,145,51,.2); }
  .ingredient-orbit .plate .hero-mic { width: 22px; height: 37px; border-width: 4px; }
  .ingredient-orbit .plate .hero-mic::before { left: -9px; right: -9px; bottom: -10px; height: 17px; border-width: 4px; }
  .ingredient-orbit .plate .hero-mic::after { left: 7px; bottom: -18px; width: 4px; height: 10px; }
  .login-dialogue { max-width: 104px; padding: 11px 12px; border-radius: 18px; font-size: 12px; text-align: center; }
  .login-dialogue::before { display: none; }
  .login-dialogue-user { left: 5px; top: 44px; }
  .login-dialogue-chef { right: 2px; bottom: 46px; }
  .login-intro-copy { left: 16px; right: 16px; bottom: -12px; text-align: center; }
  .login-intro h1 { font-size: clamp(28px,7.7vw,34px); }
  .login-intro .eyebrow { margin-top: 9px; font-size: clamp(27px,7.4vw,33px); }
  .login-lead { margin-top: 19px; font-size: 15px; line-height: 1.45; }
  .login-card { min-height: 0; height: 53%; justify-content: flex-start; padding: 43px 17px 16px; border: 0; border-radius: 0; box-shadow: none; }
  .login-card h2 { margin-bottom: 17px; text-align: center; color: var(--muted); font-size: 18px; }
  .login-card > p { display: none; }
  .login-card > p:not(:empty).login-error { display: block; }
  .login-card .primary-action { min-height: 66px; padding: 0 24px; font-size: 18px; }
  .login-card .primary-action i::before { content: "P"; width: 30px; height: 34px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 6px 6px 12px 12px; font-size: 17px; }
  .login-separator { display: none; }
  .login-features { margin-top: 10px; }
  .login-features span { min-height: 76px; gap: 18px; font-size: 17px; font-weight: 680; }
  .login-features span::after { content: "›"; margin-left: auto; color: #a0a5a1; font-size: 31px; font-weight: 350; }
  .login-features span::before { width: 52px; height: 52px; flex-basis: 52px; }
  body.app-active .app-shell { width: 100%; padding: 0 15px; }
  .topbar { min-height: 64px; padding: 0 10px; }
  .app-shell > .topbar .brand strong { font-size: 24px; }
  .mobile-nav summary { width: 30px; height: 30px; font-size: 15px; }
  .home-screen { padding: 0 0 11px; grid-template-rows: minmax(0,1fr) 67px; gap: 12px; }
  .home-layout { display: grid; grid-template-columns: 1fr; grid-template-rows: 231px minmax(0,1fr); gap: 17px; }
  .hero-card { position: relative; display: block; border-radius: 25px; }
  .hero-art { position: absolute; inset: 10px 14px 82px; height: auto; margin: 0; }
  .hero-plate { left: 23%; top: 35%; width: 86px; height: 86px; }
  .hero-plate .hero-mic { width: 18px; height: 31px; border-width: 3px; }
  .hero-plate .hero-mic::before { left: -8px; right: -8px; bottom: -9px; height: 15px; border-width: 3px; }
  .hero-plate .hero-mic::after { left: 6px; bottom: -16px; width: 3px; height: 9px; }
  .hero-wave { top: 35%; font-size: 10px; letter-spacing: 3px; }
  .hero-wave-left { left: 0; }
  .hero-wave-right { left: 31%; right: auto; }
  .hero-dialogue-bubble { max-width: 43%; padding: 9px 11px; border-radius: 15px; font-size: 9px; }
  .hero-dialogue-user { left: auto; right: 7%; top: 1px; bottom: auto; }
  .hero-dialogue-chef { left: auto; right: 7%; bottom: 7px; }
  .hero-copy { position: absolute; inset: auto 16px 14px; display: grid; grid-template-columns: minmax(0,1fr) 173px; column-gap: 10px; padding: 0; }
  .hero-copy h1 { grid-column: 1; margin: 0; align-self: end; font-size: 22px; line-height: .98; }
  .hero-copy > p:not(.eyebrow) { grid-column: 1; margin: 8px 0 0; overflow: hidden; font-size: 10px; line-height: 1.25; }
  .hero-actions { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin: 0; }
  .home-primary-action { min-height: 41px; gap: 9px; padding: 0 12px; font-size: 14px; }
  .home-primary-action .home-mic { width: 11px; height: 18px; border-width: 2px; }
  .home-primary-action .home-mic::before { left: -6px; right: -6px; bottom: -6px; height: 10px; border-width: 2px; }
  .home-primary-action .home-mic::after { left: 4px; bottom: -11px; width: 2px; height: 6px; }
  .home-hero-status { grid-column: 2; margin: 13px 0 0; font-size: 8px; white-space: nowrap; }
  .home-hero-status i { width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--green); }
  .home-new-action { min-height: 25px; font-size: 11px; }
  .scenario-section { grid-template-rows: 58px minmax(0,1fr); }
  .section-heading { min-height: 0; align-items: flex-start; }
  .section-heading h2 { font-size: 26px; }
  .section-heading p { margin-top: 5px; font-size: 13px; }
  .scenario-grid { grid-template-rows: repeat(2,220px); align-content: start; gap: 13px 12px; }
  .scenario-card { border-radius: 20px; }
  .scenario-card { grid-template-rows: minmax(0,1fr) 31px 41px; }
  .scenario-card strong { margin: 16px 0 0 12px; font-size: 14px; line-height: 1.05; }
  .scenario-card small { margin: 5px 0 9px 12px; font-size: 10.5px; line-height: 1.12; }
  .scenario-card > b { width: 35px; height: 35px; margin: 6px 9px 6px 4px; font-size: 18px; }
  .home-composer { grid-template-columns: minmax(0,1fr) 48px; gap: 10px; padding: 8px; border-radius: 25px; }
  .home-composer input { padding: 0 14px; border-radius: 18px; font-size: 14px; }
  .home-composer .home-mic { width: 12px; height: 19px; }
  .hero-card.active-conversation .hero-art { inset: 21px auto auto 16px; width: 60px; height: 60px; border-radius: 50%; }
  .hero-card.active-conversation .hero-copy { inset: 18px 16px 14px 92px; display: block; padding-top: 14px; }
  .hero-card.active-conversation .hero-copy > .eyebrow { font-size: 9px; }
  .hero-card.active-conversation .hero-copy h1 { margin-top: 8px; font-size: 22px; }
  .hero-card.active-conversation .hero-copy > p:not(.eyebrow) { display: none; }
  .home-screen[data-state="active"] { grid-template-rows: minmax(0,1fr) 70px; padding-bottom: 18px; }
  .home-screen[data-state="active"] .home-layout { grid-template-rows: 188px minmax(0,1fr); gap: 26px; }
  .home-screen[data-state="active"] .scenario-grid { grid-template-rows: repeat(2,225px); }
  .hero-card.active-conversation .home-active-summary { position: absolute; left: -76px; right: 0; top: 76px; margin: 0; padding-top: 11px; }
  .hero-card.active-conversation .home-active-summary strong { font-size: 16px; }
  .hero-card.active-conversation .home-active-summary small { font-size: 11px; }
  .hero-card.active-conversation .hero-actions { position: absolute; right: 0; top: 92px; width: 50%; margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 13px; }
  .hero-card.active-conversation .home-primary-action { width: auto; min-height: 36px; height: 36px; padding: 0 13px; }
  .hero-card.active-conversation .home-primary-action .home-mic { display: none; }
  .hero-card.active-conversation .home-new-action { min-height: 24px; justify-content: flex-end; }
  .hero-card.active-conversation .home-hero-status { display: none; }
  .hero-card.active-conversation .hero-art { overflow: hidden; }
  .hero-card.active-conversation .hero-active-visual { grid-template-rows: minmax(0,1fr); gap: 0; }
  .hero-card.active-conversation .hero-active-visual img { border-radius: 50%; }
  .hero-card.active-conversation .hero-active-waveform { display: none; }
  .hero-card.active-conversation .hero-copy > .eyebrow { display: flex; align-items: center; gap: 8px; }
  .hero-card.active-conversation .hero-copy > .eyebrow::before { content: "▮▮▮"; color: var(--green); font-size: 10px; letter-spacing: 1px; }
  .admin-screen { width: 100%; padding: 12px; overflow-y: auto; }
  .admin-screen > .library-toolbar { flex-wrap: wrap; }
  .admin-prompts-panel { padding: 18px 15px; border-radius: 22px; }
  .admin-prompt-list { grid-template-columns: 1fr; }
  .admin-prompt-card-footer { align-items: stretch; flex-direction: column; }
  .admin-layout { height: auto; grid-template-columns: 1fr; overflow: visible; }
  .admin-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .login-shell { padding-left: 20px; padding-right: 20px; } }
@media (max-width:380px),(max-height:900px) and (max-width:700px) {
  .login-shell { grid-template-rows: 57px minmax(0,1fr); padding-top: 13px; padding-bottom: 12px; }
  .login-intro { height: 36%; }
  .login-card { height: 64%; padding-top: 14px; padding-bottom: 8px; }
  .login-card h2 { margin-bottom: 9px; }
  .login-card .primary-action { min-height: 54px; height: 54px; }
  .login-features { margin-top: 6px; }
  .login-features span { min-height: 48px; }
  .home-layout { grid-template-rows: 188px minmax(0,1fr); gap: 10px; }
  .scenario-section { min-height: 0; grid-template-rows: 48px minmax(0,1fr); overflow: hidden; }
  .scenario-grid { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .scenario-grid::-webkit-scrollbar { display: none; }
  .section-heading h2 { font-size: 23px; }
}

@media (min-width:701px) and (max-height:760px) {
  .login-shell { padding: 20px 32px; }
  .login-stage { height: min(645px,calc(100dvh - 80px)); transform: none; }
  .login-card { min-height: 0; height: 100%; padding: 24px 28px 18px; }
  .login-card > h2,.login-card > p,.login-card .primary-action,.login-features { transform: none; }
  .login-card > p { margin-bottom: 18px; }
  .login-card .primary-action { min-height: 58px; height: 58px; }
  .login-separator { margin: 18px 0 5px; transform: none; }
  .login-features { margin-top: 8px; }
  .login-features span { min-height: 57px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

@media (min-width:701px) and (max-width:1199px) {
  .home-screen { padding-bottom: 22px; }
  .hero-plate,.hero-wave { top: 31%; }
  .hero-plate { width: 100px; height: 100px; }
  .hero-dialogue-bubble { font-size: 14px; }
  .hero-dialogue-user { left: 5%; right: auto; top: 58%; bottom: auto; max-width: 72%; }
  .hero-dialogue-chef { left: 21%; right: auto; top: 82%; bottom: auto; max-width: 68%; }
  .hero-copy { padding-bottom: 20px; }
  .hero-actions { margin: 14px -8px 0; }

  .home-screen[data-state="active"] .guide-column { padding-top: 42px; }
  .home-screen[data-state="active"] .hero-card.active-conversation { position: relative; display: block; }
  .home-screen[data-state="active"] .hero-card.active-conversation .hero-copy { position: absolute; inset: 0; z-index: 2; padding: 0; }
  .home-screen[data-state="active"] .hero-card.active-conversation .hero-copy h1 { position: absolute; left: 25px; top: 30px; margin: 0; }
  .home-screen[data-state="active"] .hero-card.active-conversation .hero-copy > .eyebrow { position: absolute; left: 25px; top: 66px; display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: 0; text-transform: none; }
  .home-screen[data-state="active"] .hero-card.active-conversation .hero-copy > .eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
  .home-screen[data-state="active"] .hero-card.active-conversation .hero-copy > p:not(.eyebrow) { position: absolute; left: 25px; top: 385px; margin: 0; color: var(--muted); font-size: 14px; }
  .home-screen[data-state="active"] .hero-card.active-conversation .hero-art { position: absolute; inset: 101px 25px auto; width: auto; height: 199px; margin: 0; border-radius: 18px; background: none; }
  .home-screen[data-state="active"] .hero-card.active-conversation .hero-active-visual { display: grid; grid-template-rows: 157px 26px; gap: 16px; }
  .home-screen[data-state="active"] .hero-card.active-conversation .hero-active-visual img { height: 157px; border-radius: 18px; }
  .home-screen[data-state="active"] .hero-card.active-conversation .hero-active-waveform { display: block; font-size: 13px; letter-spacing: 3px; }
  .home-screen[data-state="active"] .hero-card.active-conversation .home-active-summary { position: absolute; left: 25px; right: 25px; top: 325px; margin: 0; padding: 0; border: 0; }
  .home-screen[data-state="active"] .hero-card.active-conversation .home-active-summary strong { font-size: 18px; }
  .home-screen[data-state="active"] .hero-card.active-conversation .home-active-summary small { font-size: 14px; }
  .home-screen[data-state="active"] .hero-card.active-conversation .hero-actions { position: absolute; left: 25px; right: 25px; top: 413px; display: grid; gap: 9px; margin: 0; }
  .home-screen[data-state="active"] .hero-card.active-conversation .home-primary-action { min-height: 47px; height: 47px; gap: 14px; }
  .home-screen[data-state="active"] .hero-card.active-conversation .home-primary-action .home-mic { display: none; }
  .home-screen[data-state="active"] .hero-card.active-conversation .home-primary-action::before { content: "→"; color: var(--green); font-size: 25px; }
  .home-screen[data-state="active"] .hero-card.active-conversation .home-new-action { min-height: 31px; }
  .home-screen[data-state="active"] .hero-card.active-conversation .home-hero-status { display: none; }
}

@media (min-width:1200px) {
  .login-brand { gap: 0; transform: translateX(1px); }
  .login-brand .brand-mark { display: none; }

  .home-screen { padding-bottom: 31px; }
  .section-heading { min-height: 79px; padding-left: 28px; }

  .home-screen[data-state="fresh"] .hero-card {
    position: relative;
    display: block;
  }

  .home-screen[data-state="fresh"] .hero-art {
    position: absolute;
    inset: 0;
    margin: 0;
  }

  .home-screen[data-state="fresh"] .hero-plate {
    left: 50%;
    top: 75px;
    width: 140px;
    height: 140px;
    transform: translateX(-50%);
  }

  .home-screen[data-state="fresh"] .hero-wave {
    top: 115px;
    width: 72px;
    height: 64px;
    overflow: hidden;
    transform: none;
    background: url("/assets/icons/hero-waveform.webp") center / contain no-repeat;
    color: transparent;
    font-size: 0;
    letter-spacing: 0;
  }

  .home-screen[data-state="fresh"] .hero-wave-left { left: 70px; }
  .home-screen[data-state="fresh"] .hero-wave-right { right: 70px; transform: scaleX(-1); }

  .home-screen[data-state="fresh"] .hero-dialogue-bubble {
    max-width: none;
    padding: 18px 22px;
    font-size: 18px;
    line-height: 1.35;
  }

  .home-screen[data-state="fresh"] .hero-dialogue-bubble::after {
    content: "";
    position: absolute;
    bottom: -12px;
    width: 22px;
    height: 18px;
    background: inherit;
  }

  .home-screen[data-state="fresh"] .hero-dialogue-user {
    left: 61px;
    top: 275px;
    bottom: auto;
    width: 246px;
    min-height: 86px;
    background: #edf4ef;
  }

  .home-screen[data-state="fresh"] .hero-dialogue-user::after {
    right: -2px;
    clip-path: polygon(0 0,100% 100%,0 72%);
  }

  .home-screen[data-state="fresh"] .hero-dialogue-chef {
    left: 124px;
    right: auto;
    top: 373px;
    bottom: auto;
    width: 243px;
    min-height: 88px;
    background: #fff;
  }

  .home-screen[data-state="fresh"] .hero-dialogue-chef::after {
    left: -2px;
    clip-path: polygon(100% 0,100% 72%,0 100%);
  }

  .home-screen[data-state="fresh"] .hero-copy {
    position: absolute;
    left: 56px;
    right: 56px;
    bottom: 28px;
    padding: 0;
  }

  .home-screen[data-state="fresh"] .hero-copy > p:not(.eyebrow) { margin-top: 10px; }
  .home-screen[data-state="fresh"] .hero-actions { margin: 19px -10px 0; }
  .home-screen[data-state="fresh"] .home-hero-status { margin-top: 27px; }

  .home-screen[data-state="active"] {
    gap: 32px;
    padding-bottom: 26px;
  }

  .home-screen[data-state="active"] .home-layout {
    grid-template-columns: 33.1% minmax(0,1fr);
    gap: 51px;
  }

  .home-screen[data-state="active"] .guide-column { padding-top: 60px; }

  .home-screen[data-state="active"] .hero-card.active-conversation {
    --active-card-pad-x: 35px;
    --active-card-art-height: 295px;
    position: relative;
    display: grid;
    grid-template-rows: auto auto var(--active-card-art-height) auto auto auto;
    align-content: space-between;
    padding: 43px var(--active-card-pad-x) 8px;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .hero-copy {
    display: contents;
    position: static;
    padding: 0;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .hero-copy h1 {
    grid-row: 1;
    position: static;
    margin: 0;
    font-size: 34px;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .hero-copy > .eyebrow {
    grid-row: 2;
    position: static;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--green);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .hero-copy > .eyebrow::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .hero-art {
    grid-row: 3;
    position: relative;
    inset: auto;
    width: 100%;
    height: var(--active-card-art-height);
    margin: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: none;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .hero-active-visual {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    grid-template-rows: minmax(0, 1fr) 40px;
    gap: 27px;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .hero-active-visual img {
    height: 100%;
    border-radius: 20px;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .hero-active-waveform {
    width: 100%;
    height: 40px;
    color: transparent;
    font-size: 0;
    letter-spacing: 0;
    background: url("/assets/icons/voice-waveform.webp") center / 100% 100% no-repeat;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .home-active-summary {
    grid-row: 4;
    position: static;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .home-active-summary strong { font-size: 25px; }
  .home-screen[data-state="active"] .hero-card.active-conversation .home-active-summary small { font-size: 18px; }
  .home-screen[data-state="active"] .hero-card.active-conversation .home-active-summary small span {
    color: var(--green);
    text-transform: capitalize;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .hero-copy > p:not(.eyebrow) {
    grid-row: 5;
    position: static;
    margin: 0;
    font-size: 18px;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .hero-actions {
    grid-row: 6;
    position: static;
    display: grid;
    gap: 14px;
    margin: 0;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .home-primary-action {
    min-height: 67px;
    height: 67px;
    font-size: 20px;
    font-weight: 520;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .home-primary-action .home-mic { display: none; }
  .home-screen[data-state="active"] .hero-card.active-conversation .home-primary-action::before {
    content: "→";
    color: var(--green);
    font-size: 31px;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .home-new-action {
    min-height: 31px;
    height: 31px;
    font-size: 18px;
    font-weight: 400;
  }

  .home-screen[data-state="active"] .hero-card.active-conversation .home-hero-status { display: none; }
}

@media (min-width:701px) {
  .login-card .primary-action i::before {
    width: 26px;
    height: 26px;
    background-image: url("/assets/icons/globe-white.webp");
  }

  .login-features span:nth-child(1)::before {
    background-image: url("/assets/icons/voice-waveform.webp");
    background-size: 28px 18px;
  }
}

@media (max-width:700px) {
  .login-desktop-copy { display: none; }
  .ingredient-orbit { transform: none; }
  .login-dialogue-user,.login-dialogue-chef { width: auto; min-height: 0; }
  .login-card > h2,.login-card > p { margin-left: 0; margin-right: 0; }
  .login-card > h2,.login-card > p,.login-card .primary-action { transform: none; }
  .login-features { transform: none; }
  .login-features span { padding-left: 0; }
  .login-intro-copy { bottom: -4px; }
  .login-intro h1 { font-size: 32px; }
  .login-intro .eyebrow { font-size: 31px; }
  .login-lead { max-width: 310px; margin-right: auto; margin-left: auto; }
  .login-brand { min-height: 31px; gap: 9px; }
  .login-brand .brand-mark {
    width: 31px;
    height: 31px;
    background: url("/assets/icons/chef-hat.webp") center / contain no-repeat;
  }
  .login-brand .brand-mark::before,
  .login-brand .brand-mark::after { display: none; }
  .login-brand strong { font-size: 25px; }
  .login-dialogue-user { left: 2px; top: 44px; }
  .login-dialogue-chef { right: 18px; bottom: 47px; width: 88px; }
  .login-card h2 { margin-bottom: 16px; }
  .login-card .primary-action i::before {
    content: "";
    width: 34px;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: url("/assets/icons/passport.webp") center / contain no-repeat;
  }

  .home-screen[data-state="fresh"] .hero-plate {
    left: 88px;
    top: 61px;
    width: 76px;
    height: 76px;
  }
  .home-screen[data-state="fresh"] .hero-wave { top: 54px; }
  .home-screen[data-state="fresh"] .hero-wave-left { left: 8px; }
  .home-screen[data-state="fresh"] .hero-wave-right { left: 130px; right: auto; }
  .home-screen[data-state="fresh"] .hero-dialogue-user {
    left: 207px;
    right: auto;
    top: 11px;
    width: 128px;
    max-width: none;
    background: #edf4ef;
  }
  .home-screen[data-state="fresh"] .hero-dialogue-chef {
    left: 193px;
    right: auto;
    top: 66px;
    bottom: auto;
    width: 122px;
    min-height: 44px;
    max-width: none;
    background: #fff;
  }
  .home-screen[data-state="fresh"] .hero-copy { bottom: 29px; }
  .home-screen[data-state="fresh"] .home-primary-action { width: 168px; }
  .home-screen[data-state="fresh"] .home-hero-status {
    position: absolute;
    right: 5px;
    top: 53px;
    width: 168px;
    margin: 0;
  }

  .hero-card.active-conversation .hero-actions {
    gap: 7px;
  }
  .hero-card.active-conversation .home-primary-action {
    width: 146px;
    align-self: end;
    padding: 0 8px;
    font-size: 13.5px;
    white-space: nowrap;
  }
  .hero-card.active-conversation .home-new-action {
    min-height: 25px;
    height: 25px;
    flex: 0 0 25px;
    padding-block: 0;
  }
  .hero-card.active-conversation .home-new-action::after {
    content: "›";
    margin-left: 12px;
    color: #989d99;
    font-size: 22px;
  }
}

/* Public guest entry. Every application rule remains outside this scope. */
html:has(body.gs-guest),body.gs-guest{height:auto!important;min-height:100%;overflow:auto!important;overscroll-behavior:auto!important}
body.gs-guest{margin:0!important;display:block!important;padding:0!important}
body.gs-guest>:not(#gpt-squad-landing):not(script):not(style):not(link){display:none!important}
#gpt-squad-landing{box-sizing:border-box;display:block!important;position:relative!important;inset:auto!important;margin:0!important;width:100%!important;max-width:none!important;min-height:100svh;height:auto!important;overflow:clip!important;background:var(--lp-bg);color:var(--lp-ink);font:16px/1.6 var(--lp-font,Inter,ui-sans-serif,system-ui,sans-serif);text-align:left;letter-spacing:normal;padding:0 clamp(20px,4vw,64px);isolation:isolate;color-scheme:var(--lp-scheme,light)}
#gpt-squad-landing::after{display:none}
#gpt-squad-landing *{box-sizing:border-box;min-width:0}
#gpt-squad-landing [hidden]{display:none!important}
#gpt-squad-landing :is(h1,h2,h3,p,figure,blockquote,ul,ol){margin:0}
#gpt-squad-landing :is(h1,h2,h3){color:inherit;font-family:inherit;font-weight:650;letter-spacing:-.045em;text-wrap:balance}
#gpt-squad-landing a{color:inherit;text-decoration:none}
#gpt-squad-landing a:focus-visible{outline:3px solid var(--lp-accent);outline-offset:5px}
#gpt-squad-landing a:hover{opacity:.82}
#gpt-squad-landing .lp-wrap{max-width:1280px;margin:auto}
#gpt-squad-landing .lp-nav{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:100px;padding:22px 0;border-bottom:1px solid var(--lp-line)}
#gpt-squad-landing .lp-brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:750;letter-spacing:-.05em}
#gpt-squad-landing .lp-logo{display:grid;place-items:center;width:34px;height:34px;background:var(--lp-accent);color:var(--lp-on);border-radius:var(--lp-radius);font-size:17px;letter-spacing:-.03em}
#gpt-squad-landing .lp-nav-links{display:flex;align-items:center;gap:30px;font-size:13px}
#gpt-squad-landing .lp-nav-login{padding:10px 18px;border:1px solid var(--lp-line);border-radius:var(--lp-radius);font-weight:650;min-height:44px}
#gpt-squad-landing .lp-hero{padding:80px 0 64px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:52px;align-items:center}
#gpt-squad-landing .lp-kicker{font-size:11px;font-weight:700;letter-spacing:.17em;text-transform:uppercase;color:var(--lp-accent-text,var(--lp-accent));margin-bottom:24px}
#gpt-squad-landing h1{font-size:clamp(40px,4.7vw,68px);line-height:1.04;max-width:900px}
#gpt-squad-landing h1 em{color:var(--lp-accent-text,var(--lp-accent));font-style:normal}
#gpt-squad-landing .lp-lead{font-size:17px;line-height:1.8;max-width:620px;color:var(--lp-muted);margin-top:26px}
#gpt-squad-landing .lp-actions{display:flex;align-items:center;flex-wrap:wrap;gap:22px;margin-top:32px}
#gpt-squad-landing .lp-cta{display:inline-flex;align-items:center;justify-content:center;gap:25px;min-height:52px;padding:13px 22px;background:var(--lp-accent);color:var(--lp-on);border:1px solid transparent;border-radius:var(--lp-radius);font-size:14px;font-weight:700}
#gpt-squad-landing .lp-text-link{font-size:13px;border-bottom:1px solid var(--lp-line);padding:10px 0}
#gpt-squad-landing .lp-access{font-size:11px;line-height:1.6;color:var(--lp-muted);margin-top:16px}
#gpt-squad-landing .gs-message{padding:12px 16px;border-left:3px solid var(--lp-accent);background:var(--lp-panel);margin-top:20px;font-size:14px}
#gpt-squad-landing .lp-screen{border:1px solid var(--lp-line);background:var(--lp-panel);border-radius:var(--lp-radius);overflow:hidden;box-shadow:0 24px 64px #152b2910;font-size:12px;line-height:1.6;letter-spacing:normal;text-align:left}
#gpt-squad-landing .lp-screen :is(h2,h3){letter-spacing:-.02em}
#gpt-squad-landing .lp-screen h3{font-size:19px;line-height:1.3;margin-bottom:14px}
#gpt-squad-landing .lp-screenbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 22px;border-bottom:1px solid var(--lp-line);font-size:11px;color:var(--lp-muted)}
#gpt-squad-landing .lp-screenbar strong{color:var(--lp-ink);font-size:13px}
#gpt-squad-landing .lp-caption{font-size:10px;color:var(--lp-muted);margin-top:12px;letter-spacing:.03em;text-align:center}
#gpt-squad-landing .lp-pad{padding:26px}
#gpt-squad-landing .lp-micro{font-size:10px;color:var(--lp-muted);letter-spacing:.08em;text-transform:uppercase;display:block;margin-bottom:10px}
#gpt-squad-landing .lp-muted{color:var(--lp-muted)}
#gpt-squad-landing .lp-chip{display:inline-block;border:1px solid var(--lp-line);border-radius:6px;padding:4px 9px;font-size:10px;line-height:1.5;color:var(--lp-accent-text,var(--lp-accent));background:var(--lp-soft)}
#gpt-squad-landing .lp-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid var(--lp-line)}
#gpt-squad-landing .lp-row:last-child{border-bottom:0}
#gpt-squad-landing .lp-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#gpt-squad-landing .lp-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#gpt-squad-landing .lp-tile{border:1px solid var(--lp-line);border-radius:var(--lp-radius);padding:20px;background:var(--lp-panel)}
#gpt-squad-landing .lp-tile p{color:var(--lp-muted);margin-top:8px}
#gpt-squad-landing .lp-rail{background:var(--lp-rail,var(--lp-soft));color:var(--lp-rail-ink,var(--lp-ink));padding:24px 18px;display:flex;flex-direction:column;gap:20px;font-size:11px}
#gpt-squad-landing .lp-rail b{padding:9px 10px;background:#ffffff12;border-radius:6px}
#gpt-squad-landing .lp-workspace{display:grid;grid-template-columns:160px minmax(0,1fr)}
#gpt-squad-landing .lp-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px;padding:35px 0 65px;border-top:1px solid var(--lp-line)}
#gpt-squad-landing .lp-feature{border:0;border-radius:0;background:none;padding:0;box-shadow:none}
#gpt-squad-landing .lp-feature span{font-size:11px;color:var(--lp-accent-text,var(--lp-accent));letter-spacing:.06em}
#gpt-squad-landing .lp-feature h3{font-size:21px;line-height:1.3;margin:14px 0 12px}
#gpt-squad-landing .lp-feature p{color:var(--lp-muted);font-size:14px}
#gpt-squad-landing .lp-story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:70px;padding:68px 0;border-top:1px solid var(--lp-line)}
#gpt-squad-landing .lp-story h2{font-size:clamp(30px,3.3vw,46px);line-height:1.1;margin-bottom:22px}
#gpt-squad-landing .lp-story p{color:var(--lp-muted);font-size:15px}
#gpt-squad-landing .lp-story .lp-screen p{font-size:12px}
#gpt-squad-landing .lp-close{margin:30px 0 55px;padding:40px;display:flex;align-items:center;justify-content:space-between;gap:30px;background:var(--lp-soft);border:1px solid var(--lp-line);border-radius:var(--lp-radius)}
#gpt-squad-landing .lp-close h2{font-size:30px;line-height:1.2;margin-bottom:10px}
#gpt-squad-landing .lp-close p{font-size:13px;color:var(--lp-muted);max-width:650px}
#gpt-squad-landing .lp-footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:25px 0 35px;border-top:1px solid var(--lp-line);color:var(--lp-muted);font-size:11px}
#gpt-squad-landing .lp-footer div{display:flex;flex-wrap:wrap;gap:22px}
#gpt-squad-landing .lp-check{width:20px;height:20px;display:inline-grid;place-items:center;border:1px solid var(--lp-line);border-radius:5px;color:var(--lp-accent-text,var(--lp-accent));margin-right:8px}
#gpt-squad-landing .lp-chat-user{margin:10px 0 25px auto;max-width:86%;padding:15px 20px;background:var(--lp-soft);border-radius:18px 18px 4px 18px}
#gpt-squad-landing .lp-chat-answer{padding:8px 0 22px;font-size:14px;line-height:1.9}
#gpt-squad-landing .lp-chat-answer strong{display:block;font-size:10px;letter-spacing:.13em;color:var(--lp-accent-text,var(--lp-accent));margin-bottom:12px}
#gpt-squad-landing .lp-composer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;border:1px solid var(--lp-line);border-radius:22px;background:var(--lp-soft);color:var(--lp-muted);margin-top:20px}
#gpt-squad-landing .lp-mic{display:grid;place-items:center;flex:0 0 34px;height:34px;border:1px solid var(--lp-accent);border-radius:50%;color:var(--lp-accent-text,var(--lp-accent))}
#gpt-squad-landing .lp-mic svg{width:18px;height:18px}
#gpt-squad-landing .lp-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}
#gpt-squad-landing .lp-table :is(td,th){padding:15px 12px;text-align:left;border-bottom:1px solid var(--lp-line);overflow-wrap:anywhere}
#gpt-squad-landing .lp-table th{font-size:10px;font-weight:600;color:var(--lp-muted);background:var(--lp-soft)}
#gpt-squad-landing .lp-table :is(td,th):first-child{width:48%}
#gpt-squad-landing .lp-table tr:last-child td{border-bottom:0}
#gpt-squad-landing .lp-bar{height:7px;background:var(--lp-soft);border-radius:10px;overflow:hidden;margin:12px 0}
#gpt-squad-landing .lp-bar i{display:block;height:100%;background:var(--lp-accent);width:var(--fill,75%);border-radius:10px}
#gpt-squad-landing .lp-number{font-size:36px;font-weight:650;letter-spacing:-.05em;line-height:1.2}
#gpt-squad-landing .lp-hero-stacked{display:block;text-align:center;padding-top:68px}
#gpt-squad-landing .lp-hero-stacked h1{margin:auto}
#gpt-squad-landing .lp-hero-stacked .lp-lead{margin:22px auto 0}
#gpt-squad-landing .lp-hero-stacked .lp-actions{justify-content:center}
#gpt-squad-landing .lp-hero-stacked figure{margin:48px auto 0;max-width:1080px}
/* Forge: a project desk, with the product's graphite rail and teal decisions. */
#gpt-squad-landing .lp-forge-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}
#gpt-squad-landing .lp-forge-board section{padding:14px;background:var(--lp-bg);border:1px solid var(--lp-line);border-radius:7px}
#gpt-squad-landing .lp-forge-board .lp-tile{padding:13px;margin-top:12px;font-size:11px}
#gpt-squad-landing[data-product=forge] .lp-story .lp-screen{border-left:4px solid var(--lp-accent)}
/* Jarvis: quiet conversation first, restrained cyan, no decorative voice orb. */
#gpt-squad-landing[data-product=jarvis] .lp-brand{letter-spacing:.25em;font-size:18px;text-transform:uppercase}
#gpt-squad-landing[data-product=jarvis] .lp-logo{width:7px;height:7px;order:2;font-size:0;border-radius:50%}
#gpt-squad-landing[data-product=jarvis] h1{font-weight:400;letter-spacing:-.035em}
#gpt-squad-landing[data-product=jarvis] .lp-screen{box-shadow:none}
#gpt-squad-landing[data-product=jarvis] .lp-hero .lp-pad{padding:32px}
#gpt-squad-landing .lp-confirm{border-left:2px solid #edb76b;background:#edb76b0c;padding:16px;color:#edcba0;margin-top:12px}
/* Wordstat: query input and a crisp spreadsheet of demand, bright green actions. */
#gpt-squad-landing .lp-query{border:1px solid var(--lp-line);padding:18px;background:var(--lp-bg);font:13px/2 ui-monospace,monospace;white-space:pre-line;margin-bottom:18px}
#gpt-squad-landing[data-product=wordstat] .lp-screen{border-radius:10px}
#gpt-squad-landing[data-product=wordstat] .lp-hero{grid-template-columns:.9fr 1.2fr}
#gpt-squad-landing .lp-dataset{display:flex;gap:16px;align-items:center;padding:16px 22px;background:var(--lp-soft);font-size:11px}
/* Voice Chef: soft rounded panels and the recipe/conversation pairing. */
#gpt-squad-landing[data-product=chef] .lp-hero{grid-template-columns:1fr 1.1fr;gap:60px}
#gpt-squad-landing[data-product=chef] .lp-cta{background:#0d100e;color:#fff;border-radius:999px}
#gpt-squad-landing[data-product=chef] .lp-screen{border-radius:30px;box-shadow:0 18px 45px #264b3110}
#gpt-squad-landing .lp-recipe-step{padding:24px;background:var(--lp-soft);border-radius:22px;margin:20px 0}
#gpt-squad-landing .lp-recipe-step strong{display:block;font-size:24px;line-height:1.25;margin:10px 0}
#gpt-squad-landing .lp-ingredients{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
#gpt-squad-landing .lp-ingredients span{padding:6px 12px;background:var(--lp-bg);border-radius:30px;font-size:11px}
/* Vault: the contents tree and a legible, document-focused reading canvas. */
#gpt-squad-landing[data-product=vault] .lp-hero{grid-template-columns:.8fr 1.3fr;gap:40px}
#gpt-squad-landing[data-product=vault] h1{font-size:clamp(40px,4.1vw,62px)}
#gpt-squad-landing[data-product=vault] .lp-workspace{grid-template-columns:138px minmax(0,1fr)}
#gpt-squad-landing .lp-document{font-size:13px;line-height:1.9;padding:28px}
#gpt-squad-landing .lp-document h3{font-size:25px;margin:15px 0}
#gpt-squad-landing .lp-document blockquote{border-left:2px solid var(--lp-accent);padding:10px 16px;margin:22px 0;background:var(--lp-soft)}
#gpt-squad-landing .lp-file{padding:12px 14px;border:1px solid var(--lp-line);background:var(--lp-soft);border-radius:6px;margin-top:14px}
/* Task Tracker: paper, priority labels, an agenda rather than a generic board. */
#gpt-squad-landing[data-product=plan] .lp-hero{grid-template-columns:.9fr 1.2fr}
#gpt-squad-landing .lp-agenda{display:grid;grid-template-columns:1.25fr .8fr;gap:20px}
#gpt-squad-landing .lp-priority{padding:4px 8px;border-radius:5px;font-size:10px;background:#ece9fb;color:#594ea1;display:inline-block;margin-top:7px}
#gpt-squad-landing .lp-priority-urgent{background:#fff0dc;color:#99601f}
#gpt-squad-landing .lp-goal{border-radius:12px;background:var(--lp-soft);padding:20px}
#gpt-squad-landing .lp-done{color:var(--lp-muted);text-decoration:line-through}
/* Analytics: warm report paper, terracotta bars, dense but readable data. */
#gpt-squad-landing[data-product=analytics] .lp-hero{grid-template-columns:.85fr 1.25fr}
#gpt-squad-landing[data-product=analytics] h1{font-size:clamp(40px,4.2vw,62px)}
#gpt-squad-landing .lp-funnel-row{margin:20px 0}
#gpt-squad-landing .lp-funnel-row>div:first-child{display:flex;justify-content:space-between;font-size:11px;gap:10px}
#gpt-squad-landing .lp-funnel-row .lp-bar{height:24px;border-radius:3px;margin:7px 0}
#gpt-squad-landing .lp-funnel-row .lp-bar i{border-radius:3px}
#gpt-squad-landing .lp-insight{padding:15px 18px;border-left:3px solid var(--lp-accent);background:var(--lp-soft);margin-top:20px}
/* Tender Scan: a purchasing dossier with clear review states. */
#gpt-squad-landing[data-product=tender] .lp-hero-stacked{text-align:left;display:grid;grid-template-columns:1fr .7fr;gap:40px}
#gpt-squad-landing[data-product=tender] .lp-hero-stacked .lp-lead{margin:20px 0 0}
#gpt-squad-landing[data-product=tender] .lp-hero-stacked .lp-actions{justify-content:flex-start}
#gpt-squad-landing[data-product=tender] .lp-hero-stacked figure{grid-column:1/-1;max-width:none;width:100%;margin:12px 0 0}
#gpt-squad-landing .lp-dossier{display:grid;grid-template-columns:1fr 1fr;gap:30px}
#gpt-squad-landing .lp-pilot-note{padding:25px;border-left:3px solid var(--lp-accent);font-size:14px;color:var(--lp-muted)}
#gpt-squad-landing .lp-risk{color:#9b6110;background:#fff2d8;border-color:#f1d89d}
/* Miraq: editorial typography and a generous intention card, from the pilot UI. */
#gpt-squad-landing[data-product=miraq] .lp-brand{letter-spacing:.22em;text-transform:uppercase;font-size:19px}
#gpt-squad-landing[data-product=miraq] .lp-logo{display:none}
#gpt-squad-landing[data-product=miraq] h1{font-weight:600;font-size:clamp(48px,5.6vw,82px)}
#gpt-squad-landing[data-product=miraq] h1 em{font-family:'Playfair Display',Georgia,serif;font-style:italic;font-weight:600}
#gpt-squad-landing[data-product=miraq] .lp-hero{gap:65px;grid-template-columns:1.15fr .9fr;padding:90px 0}
#gpt-squad-landing[data-product=miraq] .lp-screen{box-shadow:none}
#gpt-squad-landing .lp-intention{padding:35px;background:var(--lp-panel);border:1px solid var(--lp-line);position:relative}
#gpt-squad-landing .lp-intention blockquote{font-family:'Playfair Display',Georgia,serif;font-style:italic;font-size:28px;line-height:1.4;margin:30px 0}
#gpt-squad-landing .lp-intention::before{content:'';width:240px;height:240px;border-radius:50%;background:#d8e95d;position:absolute;z-index:-1;right:-55px;top:-40px}
#gpt-squad-landing .lp-meeting{padding:24px;background:#d8e95d;margin-top:22px;color:#192c25}
#gpt-squad-landing .lp-meeting h3{font-size:22px;margin:12px 0}
/* Passport: a central identity, then its connected apps and access matrix. */
#gpt-squad-landing[data-product=passport] .lp-hero-stacked h1{max-width:850px}
#gpt-squad-landing .lp-identity{max-width:850px;margin:auto;display:grid;grid-template-columns:240px minmax(0,1fr)}
#gpt-squad-landing .lp-person{padding:35px 25px;border-right:1px solid var(--lp-line);background:var(--lp-soft);text-align:center}
#gpt-squad-landing .lp-avatar{width:72px;height:72px;display:grid;place-items:center;font-size:28px;margin:0 auto 16px;border-radius:22px;color:#d4ceff;background:#7c6df233}
#gpt-squad-landing .lp-apps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:26px}
#gpt-squad-landing .lp-apps div{border:1px solid var(--lp-line);border-radius:10px;padding:18px 8px;text-align:center;font-size:11px}
#gpt-squad-landing .lp-apps b{display:block;color:var(--lp-accent);font-size:22px;margin-bottom:8px}
/* Runtime: an observable run, with session identity, events and its result. */
#gpt-squad-landing[data-product=codex] .lp-brand{font-family:ui-monospace,monospace;letter-spacing:-.04em;font-size:19px}
#gpt-squad-landing[data-product=codex] .lp-hero{grid-template-columns:.85fr 1.25fr;gap:38px}
#gpt-squad-landing[data-product=codex] h1{font-size:clamp(40px,4.4vw,64px)}
#gpt-squad-landing .lp-events{padding:18px 0;font-family:ui-monospace,monospace;font-size:11px}
#gpt-squad-landing .lp-events div{display:grid;grid-template-columns:52px 1fr auto;gap:12px;padding:10px 0;border-bottom:1px solid var(--lp-line)}
#gpt-squad-landing .lp-code{padding:22px;background:#111b24;color:#c8e1db;border-radius:6px;font:12px/1.9 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1050px){#gpt-squad-landing .lp-hero{gap:30px}#gpt-squad-landing .lp-workspace{grid-template-columns:115px 1fr}#gpt-squad-landing .lp-rail{padding:20px 12px}#gpt-squad-landing .lp-pad{padding:22px}#gpt-squad-landing .lp-story{gap:35px}#gpt-squad-landing .lp-agenda{grid-template-columns:1fr}#gpt-squad-landing .lp-goal{display:flex;align-items:center;gap:20px}#gpt-squad-landing .lp-goal .lp-bar{min-width:55px}}
@media(max-width:800px){#gpt-squad-landing .lp-hero,#gpt-squad-landing[data-product] .lp-hero{grid-template-columns:1fr;gap:36px;padding:50px 0}#gpt-squad-landing h1,#gpt-squad-landing[data-product] h1{font-size:clamp(40px,7.5vw,62px);max-width:700px}#gpt-squad-landing .lp-nav{min-height:82px}#gpt-squad-landing .lp-nav-links>a:not(.gs-login){display:none}#gpt-squad-landing .lp-hero-stacked figure{margin-top:35px}#gpt-squad-landing .lp-story{grid-template-columns:1fr;padding:45px 0;gap:30px}#gpt-squad-landing .lp-features{gap:24px;padding-bottom:45px}#gpt-squad-landing .lp-feature h3{font-size:19px}#gpt-squad-landing .lp-close{padding:30px}#gpt-squad-landing .lp-close h2{font-size:25px}#gpt-squad-landing .lp-intention::before{right:-20px;top:-20px}#gpt-squad-landing[data-product=tender] .lp-pilot-note{padding:15px 22px}#gpt-squad-landing .lp-agenda{grid-template-columns:1.2fr .8fr}#gpt-squad-landing .lp-goal{display:block}}
@media(max-width:520px){#gpt-squad-landing .lp-brand{font-size:19px}#gpt-squad-landing .lp-nav{gap:12px}#gpt-squad-landing .lp-nav-links{gap:0}#gpt-squad-landing .lp-nav-login{padding:10px 14px}#gpt-squad-landing .lp-kicker{font-size:10px;margin-bottom:18px}#gpt-squad-landing .lp-lead{font-size:16px;line-height:1.7;margin-top:23px}#gpt-squad-landing .lp-actions{gap:15px}#gpt-squad-landing .lp-cta{min-height:50px;padding:12px 18px;gap:16px}#gpt-squad-landing .lp-screenbar{padding:14px 16px;font-size:9px}#gpt-squad-landing .lp-pad,#gpt-squad-landing[data-product=jarvis] .lp-hero .lp-pad{padding:20px}#gpt-squad-landing .lp-screen h3{font-size:19px}#gpt-squad-landing .lp-workspace,#gpt-squad-landing[data-product=vault] .lp-workspace{grid-template-columns:1fr}#gpt-squad-landing .lp-rail{flex-direction:row;gap:14px;overflow:auto;white-space:nowrap;padding:12px;font-size:9px}#gpt-squad-landing .lp-rail b{padding:0;background:none}#gpt-squad-landing .lp-forge-board{grid-template-columns:1fr}#gpt-squad-landing .lp-forge-board section{display:grid;grid-template-columns:90px 1fr;gap:8px;align-items:center;padding:10px}#gpt-squad-landing .lp-forge-board .lp-tile{margin:0;padding:9px}#gpt-squad-landing .lp-grid2,#gpt-squad-landing .lp-grid3,#gpt-squad-landing .lp-agenda,#gpt-squad-landing .lp-dossier{grid-template-columns:1fr}#gpt-squad-landing .lp-features{grid-template-columns:1fr;gap:25px}#gpt-squad-landing .lp-feature h3{margin:7px 0 8px}#gpt-squad-landing .lp-close{display:block;padding:25px;margin-bottom:35px}#gpt-squad-landing .lp-close .lp-cta{margin-top:24px}#gpt-squad-landing .lp-document{padding:22px}#gpt-squad-landing .lp-table{font-size:11px}#gpt-squad-landing .lp-table :is(td,th){padding:12px 8px}#gpt-squad-landing .lp-table :is(td,th):first-child{width:45%}#gpt-squad-landing .lp-identity{grid-template-columns:1fr}#gpt-squad-landing .lp-person{padding:22px;border:0;border-bottom:1px solid var(--lp-line)}#gpt-squad-landing .lp-avatar{width:48px;height:48px;font-size:21px;margin-bottom:10px}#gpt-squad-landing .lp-apps{padding:18px;gap:8px}#gpt-squad-landing .lp-intention{padding:25px}#gpt-squad-landing .lp-intention blockquote{font-size:25px}#gpt-squad-landing .lp-events div{grid-template-columns:42px 1fr auto;gap:7px;font-size:10px}#gpt-squad-landing .lp-number{font-size:30px}#gpt-squad-landing .lp-chat-answer{font-size:13px}#gpt-squad-landing .lp-goal{display:flex;align-items:center;gap:16px}#gpt-squad-landing .lp-hero-stacked{text-align:left}#gpt-squad-landing .lp-hero-stacked .lp-actions{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){html:has(body.gs-guest){scroll-behavior:auto}#gpt-squad-landing *{animation:none!important;transition:none!important}}

#gpt-squad-landing{--lp-bg:#edf2ef;--lp-ink:#0d100e;--lp-panel:#ffffff;--lp-muted:#67736b;--lp-line:#dfe5e1;--lp-accent:#2eaa4a;--lp-on:#ffffff;--lp-soft:#e7f3e9;--lp-radius:28px;--lp-accent-text:#1e8737}
#gpt-squad-landing .lp-bar .lp-fill-40{width:40%}#gpt-squad-landing .lp-bar .lp-fill-46{width:46%}#gpt-squad-landing .lp-bar .lp-fill-72{width:72%}#gpt-squad-landing .lp-bar .lp-fill-75{width:75%}#gpt-squad-landing .lp-bar .lp-fill-100{width:100%}

/* Use the original product artwork without recoloring or cropping it. */
#gpt-squad-landing[data-product] .lp-logo.lp-logo-image{display:block;flex:0 0 44px;width:44px;height:44px;order:0;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
#gpt-squad-landing .lp-logo-image img{display:block;width:100%;height:100%;object-fit:contain}
#gpt-squad-landing .lp-logo svg{display:block;width:24px;height:24px}
#gpt-squad-landing[data-product=analytics] .lp-logo{font-size:12px;letter-spacing:-.04em}
