@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Sora:wght@400;500;600;700&display=swap');

:root {
    --navy-950: #071f31;
    --navy-900: #0a2b43;
    --navy-800: #0d3a58;
    --blue-600: #1b6baa;
    --teal-600: #008e8c;
    --teal-500: #00aeac;
    --teal-100: #d9f4f2;
    --gold-500: #ed9c0d;
    --ink-950: #112a3b;
    --ink-700: #3b5060;
    --ink-500: #6b8293;
    --canvas: #edf4f6;
    --paper: #fffefb;
    --line: #d7e3e8;
    --line-strong: #b8ccd5;
    --shadow-sm: 0 1px 2px rgba(7, 31, 49, .05), 0 8px 24px rgba(7, 31, 49, .06);
    --shadow-lg: 0 24px 60px rgba(7, 31, 49, .14);
    font-family: 'Sora', sans-serif;
    color: var(--ink-950);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); }
body { min-width: 320px; }
[hidden] { display: none !important; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: fixed; z-index: 20; left: 16px; top: -60px; padding: 12px 16px; color: #fff; background: var(--navy-950); border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }
.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; }

.welcome-view {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 68% 50%, rgba(0,174,172,.13), transparent 24%),
        radial-gradient(circle at 10% 0%, rgba(27,107,170,.25), transparent 32%),
        linear-gradient(145deg, #071f31 0%, #092a41 48%, #061a29 100%);
}
.welcome-view::before { content: ''; position: absolute; inset: 0; opacity: .16; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg,#000,transparent 72%); }
.welcome-atmosphere { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.welcome-atmosphere span { position: absolute; border: 1px solid rgba(0,174,172,.12); border-radius: 50%; }
.welcome-atmosphere span:nth-child(1) { width: 620px; height: 620px; left: -330px; top: 23%; box-shadow: 0 0 0 70px rgba(0,174,172,.025), 0 0 0 140px rgba(0,174,172,.018); }
.welcome-atmosphere span:nth-child(2) { width: 380px; height: 380px; right: 20%; top: -260px; }
.welcome-atmosphere span:nth-child(3) { width: 170px; height: 170px; right: -70px; bottom: -50px; box-shadow: 0 0 0 45px rgba(27,107,170,.035); }

.welcome-header, .welcome-layout, .welcome-footer { position: relative; z-index: 1; }
.welcome-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(28px,5vw,76px); border-bottom: 1px solid rgba(255,255,255,.07); }
.welcome-brand { color: inherit; text-decoration: none; }
.welcome-brand img { display: block; width: 204px; height: auto; }
.welcome-brand > span { display: block; margin: 0 0 0 53px; color: rgba(255,255,255,.52); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.welcome-access { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.62); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.welcome-access > span { width: 7px; height: 7px; border-radius: 50%; background: #62d5c7; box-shadow: 0 0 0 4px rgba(98,213,199,.12); }

.welcome-layout { width: min(1380px,100%); margin: auto; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(380px,.72fr); gap: clamp(56px,8vw,132px); align-items: center; padding: 58px clamp(28px,7vw,104px) 48px; }
.welcome-copy { position: relative; max-width: 760px; }
.welcome-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: #78d8d2; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.welcome-kicker span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--navy-950); border-radius: 9px; background: #7ce0d7; font-size: 12px; letter-spacing: 0; }
.welcome-copy h1 { max-width: 740px; margin: 0; font: clamp(48px,5.35vw,82px)/.98 'DM Serif Display', serif; letter-spacing: -.035em; }
.welcome-copy h1 em { color: #74d8d1; font-style: normal; }
.welcome-intro { max-width: 650px; margin: 28px 0 26px; color: rgba(255,255,255,.68); font-size: clamp(13px,1.05vw,16px); line-height: 1.8; }
.welcome-promise { max-width: 570px; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid rgba(128,224,216,.15); border-radius: 14px; background: rgba(255,255,255,.045); backdrop-filter: blur(14px); }
.promise-seal { width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto; }
.promise-seal img { width:46px;height:46px;display:block;object-fit:contain; }
.welcome-promise strong { display: block; margin-bottom: 4px; font: 16px 'DM Serif Display', serif; }
.welcome-promise p { margin: 0; color: rgba(255,255,255,.5); font-size: 12px; line-height: 1.55; }

.atlas-orbit { position: absolute; left: calc(100% - 40px); bottom: -28px; width: 238px; height: 238px; color: #fff; }
.atlas-orbit::before { content: ''; position: absolute; inset: 26px; border: 1px solid rgba(123,222,214,.14); border-radius: 50%; }
.orbit-line { position: absolute; border: 1px solid rgba(123,222,214,.13); border-radius: 50%; }
.orbit-one { inset: 2px; }.orbit-two { inset: 54px; border-style: dashed; }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; display: grid; place-content: center; transform: translate(-50%,-50%); border: 1px solid rgba(123,222,214,.22); border-radius: 50%; background: rgba(0,174,172,.1); text-align: center; box-shadow: 0 0 45px rgba(0,174,172,.13); }
.orbit-core span { font: 28px/1 'DM Serif Display',serif; }.orbit-core small { margin-top: 4px; color: rgba(255,255,255,.44); font-size: 11px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }
.orbit-source { position: absolute; width: 49px; height: 49px; display: grid; place-content: center; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; background: #0c3854; text-align: center; box-shadow: 0 9px 30px rgba(0,0,0,.18); }
.orbit-source strong { font-size: 12px; }.orbit-source small { margin-top: 2px; color: #72d8d0; font-size: 11px; }
.source-bp { left: 5px; top: 84px; }.source-ep { right: 20px; top: 26px; }.source-usp { right: 1px; bottom: 22px; }
.atlas-orbit > p { position: absolute; left: 50%; bottom: -2px; width: 140px; margin: 0; transform: translateX(-50%); color: rgba(255,255,255,.32); font-size: 11px; letter-spacing: .16em; text-align: center; text-transform: uppercase; white-space: nowrap; }

.welcome-card { position: relative; padding: clamp(28px,3vw,42px); color: var(--ink-950); border: 1px solid rgba(255,255,255,.5); border-radius: 24px; background: rgba(255,254,251,.97); box-shadow: 0 40px 100px rgba(0,0,0,.28); }
.welcome-card::before { content: ''; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 8px 8px; background: linear-gradient(90deg,var(--blue-600),var(--teal-500),#72d8d0); }
.welcome-card-head { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; }
.mini-avatar { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; border-radius: 14px; background: linear-gradient(145deg,var(--blue-600),var(--teal-600)); font-size: 13px; font-weight: 700; }
.welcome-card-head p { margin: 0 0 5px; color: var(--teal-600); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.welcome-card-head h2 { margin: 0; font: clamp(21px,2vw,28px)/1.1 'DM Serif Display',serif; }
.ready-status { position: relative; display: grid; grid-template-columns: 8px 1fr; column-gap: 9px; margin: 24px 0 27px; padding: 13px 14px; border: 1px solid #cbe8e5; border-radius: 12px; background: #eefaf8; }
.ready-status > span { width: 8px; height: 8px; margin-top: 2px; border: 2px solid #fff; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 3px rgba(0,174,172,.13); }
.ready-status strong { color: #167774; font-size: 13px; }.ready-status small { grid-column: 2; margin-top: 3px; color: var(--ink-500); font-size: 12px; }
.start-guide > p { margin: 0 0 14px; color: var(--ink-500); font-size: 12px; font-weight: 700; letter-spacing: .17em; }
.start-guide ol { display: grid; gap: 4px; padding: 0; margin: 0; list-style: none; }
.start-guide li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 8px; border-bottom: 1px solid #e8efef; }
.start-guide li > span { width: 26px; height: 26px; display: grid; place-items: center; color: var(--teal-600); border: 1px solid #bfe4e0; border-radius: 8px; background: #f1fbfa; font-size: 11px; font-weight: 700; }
.start-guide strong, .start-guide small { display: block; }.start-guide strong { margin-bottom: 3px; font-size: 13px; }.start-guide small { color: var(--ink-500); font-size: 12px; line-height: 1.5; }
.start-button { width: 100%; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 21px; margin-top: 24px; color: #fff; border: 0; border-radius: 14px; background: linear-gradient(135deg,#1769a8,var(--teal-600)); box-shadow: 0 14px 30px rgba(0,142,140,.2); font-size: 12px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.start-button svg { width: 20px; transition: transform .2s; }.start-button:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(0,142,140,.26); }.start-button:hover svg { transform: translateX(3px); }
.welcome-disclaimer { display: flex; align-items: flex-start; gap: 7px; margin: 13px 4px 0; color: var(--ink-500); font-size: 12px; line-height: 1.5; }
.welcome-disclaimer svg { flex: 0 0 auto; width: 13px; color: var(--teal-600); }
.welcome-footer { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(28px,5vw,76px); color: rgba(255,255,255,.28); border-top: 1px solid rgba(255,255,255,.06); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.welcome-footer > div { display:flex;align-items:center;gap:18px; }
.pyranext-credit { display:inline-flex;align-items:center;gap:4px;color:var(--ink-500);text-decoration:none;white-space:nowrap;transition:color .18s ease,transform .18s ease; }
.pyranext-credit strong { color:var(--teal-600);font-weight:700; }
.pyranext-credit:hover { color:var(--teal-600);transform:translateY(-1px); }
.pyranext-credit-dark { color:rgba(255,255,255,.42); }
.pyranext-credit-dark strong { color:#72d8d0; }

.welcome-view.is-leaving { animation: welcome-out .42s cubic-bezier(.65,0,.35,1) both; }
.product-view.is-entering { animation: product-in .5s cubic-bezier(.2,.75,.25,1) both; }
@keyframes welcome-out { to { opacity: 0; transform: scale(.985); } }
@keyframes product-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }

.rail {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 16px 18px;
    overflow: hidden;
    color: rgba(255,255,255,.78);
    background:
        radial-gradient(circle at 15% 4%, rgba(0,174,172,.21), transparent 26%),
        linear-gradient(165deg, var(--navy-800), var(--navy-950) 72%);
    border-right: 1px solid rgba(255,255,255,.07);
}
.rail::after { content: ''; position: absolute; inset: auto -80px 18% auto; width: 220px; height: 220px; border: 1px solid rgba(0,174,172,.12); border-radius: 50%; box-shadow: 0 0 0 28px rgba(0,174,172,.035), 0 0 0 56px rgba(0,174,172,.025); pointer-events: none; }
.rail-top, .rail-bottom { position: relative; z-index: 1; }
.rail-top { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; }
.rail-bottom { flex: 0 0 auto; }
.brand { display: block; margin: 0 8px 26px; color: inherit; text-decoration: none; }
.brand img { display: block; width: 178px; height: auto; object-fit: contain; }
.brand-product { display: block; margin: 2px 0 0 47px; color: rgba(255,255,255,.54); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

.new-inquiry { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: #fff; background: linear-gradient(135deg, var(--teal-500), #008fbd); border: 0; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,174,172,.18); font-size: 13px; font-weight: 600; }
.new-inquiry svg { width: 18px; }
.new-inquiry kbd { margin-left: auto; padding: 3px 6px; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; color: rgba(255,255,255,.68); font: 13px 'Sora'; }
.new-inquiry:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(0,174,172,.24); }

.rail-nav { margin-top: 26px; }
.nav-label { margin: 0 10px 8px; color: rgba(255,255,255,.38); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.nav-item { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 11px; margin: 3px 0; border-radius: 10px; color: rgba(255,255,255,.64); text-decoration: none; font-size: 12px; }
.nav-item svg { width: 17px; height: 17px; }
.nav-item.active { color: #fff; background: rgba(255,255,255,.095); box-shadow: inset 2px 0 0 var(--teal-500); }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }

.recent { min-height: 0; margin-top: 26px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.recent::-webkit-scrollbar { width: 6px; }
.recent::-webkit-scrollbar-thumb { border-radius: 4px; background: rgba(255,255,255,.22); }
.nav-label-row { display: flex; align-items: center; justify-content: space-between; }
.nav-label-row button { width: 28px; height: 28px; display: grid; place-items: center; color: rgba(255,255,255,.42); background: transparent; border: 0; }
.nav-label-row svg { width: 14px; }
.conversation { display: block; padding: 10px 11px; margin-bottom: 4px; border-radius: 10px; color: inherit; text-decoration: none; }
.conversation.selected { background: rgba(0,174,172,.1); }
.conversation:hover { background: rgba(255,255,255,.06); }
.conversation-title, .conversation-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-title { color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.5; }
.conversation-meta { margin-top: 3px; color: rgba(255,255,255,.34); font-size: 12px; }

.allowance-card { padding: 14px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.055); backdrop-filter: blur(10px); }
.allowance-heading { display: flex; justify-content: space-between; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.allowance-heading strong { color: var(--gold-500); }
.allowance-progress { width: 100%; height: 5px; display: block; margin: 11px 0 10px; overflow: hidden; border: 0; border-radius: 99px; background: rgba(255,255,255,.1); -webkit-appearance: none; appearance: none; }
.allowance-progress::-webkit-progress-bar { border-radius: 99px; background: rgba(255,255,255,.1); }
.allowance-progress::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg, var(--teal-500), #69d7bc); }
.allowance-progress::-moz-progress-bar { border-radius: 99px; background: linear-gradient(90deg, var(--teal-500), #69d7bc); }
.allowance-card p { margin: 0 0 8px; color: rgba(255,255,255,.52); font-size: 12px; }
.allowance-card p strong { color: rgba(255,255,255,.86); }
.allowance-card a { color: #82dcd6; font-size: 12px; font-weight: 600; text-decoration: none; }
.access-card .allowance-heading strong { color: #72d8d0; }
.account { width: 100%; display: grid; grid-template-columns: 34px 1fr 16px; gap: 10px; align-items: center; padding: 9px 8px; color: #fff; background: transparent; border: 0; border-radius: 10px; text-align: left; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy-950); background: #c9f4ef; border-radius: 10px; font-size: 13px; font-weight: 700; }
.account strong, .account small { display: block; }
.account strong { font-size: 13px; }
.account small { margin-top: 2px; color: rgba(255,255,255,.4); font-size: 12px; }
.account svg { width: 14px; color: rgba(255,255,255,.4); }

.main-shell { min-width: 0; min-height: 100vh; background: var(--canvas); }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px 0 32px; border-bottom: 1px solid var(--line); background: rgba(248,251,251,.92); backdrop-filter: blur(14px); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; color: var(--teal-600); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow span { width: 15px; height: 1px; background: var(--teal-500); }
.topbar h1 { margin: 0; color: var(--ink-950); font: 21px/1.2 'DM Serif Display', serif; letter-spacing: -.01em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.source-scope { min-height: 36px; display: inline-flex; align-items: center; gap: 9px; padding: 0 12px; color: var(--ink-700); border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12px; font-weight: 600; }
.stack-icon { position: relative; width: 15px; height: 12px; border: 1px solid var(--teal-600); border-radius: 2px; }
.stack-icon::before, .stack-icon::after { content: ''; position: absolute; width: 11px; height: 8px; border: 1px solid rgba(0,142,140,.45); border-radius: 2px; left: 1px; }
.stack-icon::before { top: -4px; } .stack-icon::after { top: 2px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-700); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.icon-button svg { width: 18px; }
.action-menu-button { min-height:40px;display:inline-flex;align-items:center;gap:7px;padding:0 11px;color:var(--ink-700);border:1px solid var(--line);border-radius:11px;background:#fff;font-size:12px;font-weight:700; }
.action-menu-button svg { width:16px; }
.source-selector { min-height:42px;display:flex;align-items:center;gap:9px;padding:5px 10px 5px 8px;color:var(--ink-700);border:1px solid #cfe0e5;border-radius:12px;background:linear-gradient(135deg,#fff,#f4fbfa);box-shadow:0 5px 14px rgba(7,31,49,.045);text-align:left; }
.source-selector:hover { border-color:#9fd7d3;background:#f1fbfa;transform:translateY(-1px); }
.source-selector-icon { position:relative;width:29px;height:29px;display:grid;place-items:center;flex:0 0 auto;color:var(--teal-600);border-radius:9px;background:var(--teal-100); }
.source-selector-icon .stack-icon { transform:scale(.72); }
.source-selector-icon em { position:absolute;right:-4px;top:-5px;min-width:15px;height:15px;display:grid;place-items:center;padding:0 3px;color:#fff;border:2px solid #fff;border-radius:99px;background:var(--blue-600);font-size:11px;font-style:normal;font-weight:700; }
.source-selector-copy { display:grid;gap:1px; }
.source-selector-copy small { color:var(--ink-500);font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase; }
.source-selector-copy strong { color:var(--ink-800);font-size:12px;font-weight:700; }
.source-selector-chevron { width:13px;color:var(--ink-500); }

.workspace { min-height: calc(100vh - 82px); display: grid; grid-template-columns: minmax(580px, 1fr) 344px; background:
    linear-gradient(rgba(13,58,88,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,58,88,.025) 1px, transparent 1px),
    var(--canvas);
    background-size: 32px 32px;
}
.answer-stage { min-width: 0; padding: 26px 30px 18px; }
.question-card { display: grid; grid-template-columns: 38px 1fr; gap: 15px; align-items: start; max-width: 900px; margin: 0 auto 18px; padding: 17px 20px; border: 1px solid rgba(27,107,170,.15); border-radius: 14px; background: rgba(255,255,255,.66); box-shadow: 0 6px 24px rgba(7,31,49,.04); }
.question-card > div:last-child { min-width: 0; }
.question-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: linear-gradient(145deg, var(--blue-600), var(--teal-600)); font: 18px 'DM Serif Display'; }
.question-card p { margin: 1px 0 5px; color: var(--ink-500); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.question-card h2 { margin: 0; overflow-wrap: anywhere; color: var(--ink-950); font-size: 14px; font-weight: 600; line-height: 1.5; }
.question-meta { display: flex; gap: 12px; margin-top: 7px; color: var(--ink-500); font-size: 13px; }
.question-meta span + span::before { content: '•'; margin-right: 12px; color: var(--line-strong); }

.answer-document { max-width: 900px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(13,58,88,.11); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-lg); }
.answer-header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid #e8efef; background: linear-gradient(90deg, rgba(217,244,242,.5), rgba(255,255,255,.2)); }
.answer-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.answer-identity > div { min-width: 0; }
.ai-seal { width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto; }
.ai-seal img { width:37px;height:37px;display:block;object-fit:contain; }
.answer-identity p { margin: 0 0 2px; color: var(--teal-600); font-size: 12px; font-weight: 700; letter-spacing: .15em; }
.answer-identity span { color: var(--ink-500); font-size: 12px; }
.answer-status { display: flex; align-items: center; gap: 7px; padding: 7px 10px; color: #087772; border: 1px solid #bce8e4; border-radius: 99px; background: #eaf9f7; font-size: 12px; font-weight: 700; }
.answer-status span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 3px rgba(0,174,172,.12); }
.answer-copy { padding: 24px 32px 18px; }
.lead { margin: 0 0 22px; color: #233c4c; font: 17px/1.65 'DM Serif Display', serif; }
.lead em { color: var(--teal-600); font-style: normal; }

.mechanism-map { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr; gap: 8px; align-items: center; padding: 14px; margin-bottom: 24px; border: 1px solid #dce9eb; border-radius: 14px; background: #f5faf9; }
.mechanism-step { min-height: 74px; display: grid; grid-template-columns: 25px 1fr; gap: 8px; align-items: start; padding: 11px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.mechanism-step > span { width: 22px; height: 22px; display: grid; place-items: center; color: #fff; border-radius: 7px; background: var(--navy-800); font-size: 11px; font-weight: 700; }
.mechanism-step strong { display: block; margin-bottom: 4px; font-size: 13px; }
.mechanism-step p { margin: 0; color: var(--ink-500); font-size: 12px; line-height: 1.45; }
.flow-arrow { width: 28px; color: var(--teal-500); }

.answer-section { display: grid; grid-template-columns: 28px 1fr; gap: 14px; margin: 0 0 19px; }
.section-number { width: 26px; height: 26px; display: grid; place-items: center; margin-top: 1px; color: var(--teal-600); border: 1px solid #bde4e1; border-radius: 50%; background: #f0fbfa; font-size: 12px; font-weight: 700; }
.answer-section h3 { margin: 0 0 7px; font: 18px/1.25 'DM Serif Display', serif; }
.answer-section p { margin: 0; color: var(--ink-700); font-size: 13px; line-height: 1.75; }
.citation { position: relative; width: 17px; height: 17px; display: inline-grid; place-items: center; padding: 0; margin-left: 3px; vertical-align: text-top; color: #087772; border: 1px solid #b5dfdb; border-radius: 5px; background: #eaf9f7; font-size: 11px; font-weight: 700; }
.citation:hover, .citation:focus-visible { color: #fff; background: var(--teal-600); outline: 2px solid rgba(0,142,140,.2); outline-offset: 2px; }

.memory-note { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 16px; margin: 23px 0 18px; border-left: 3px solid var(--gold-500); border-radius: 0 12px 12px 0; background: #fff8e8; }
.memory-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #b06f00; border-radius: 10px; background: #fff; }
.memory-icon svg { width: 18px; }
.memory-note p { margin: 1px 0 4px; color: #a56700; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.memory-note strong { color: #5b4822; font-size: 13px; line-height: 1.55; }
.answer-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid #ebf0f1; }
.answer-footer p { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--ink-500); font-size: 12px; }
.answer-footer p span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); }
.answer-footer div { display: flex; gap: 6px; }
.answer-footer button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink-500); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.answer-footer svg { width: 14px; }

.composer-wrap { max-width: 900px; margin: 18px auto 0; }
.composer { display: grid; grid-template-columns: 36px 1fr 38px; gap: 9px; align-items: end; padding: 8px; border: 1px solid var(--line-strong); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.composer:focus-within { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(0,174,172,.1), var(--shadow-sm); }
.composer-add, .send { display: grid; place-items: center; border: 0; }
.composer-add { width: 36px; height: 36px; color: var(--ink-500); border-radius: 10px; background: #f1f6f7; }
.composer-scope-icon { position:relative;width:27px;height:27px;display:grid;place-items:center;color:var(--teal-600);border:1px solid #cfe4e4;border-radius:8px;background:#f7fcfb; }
.composer-scope-icon .stack-icon { transform:scale(.68); }
.composer-scope-icon em { position:absolute;right:-5px;top:-5px;min-width:15px;height:15px;display:grid;place-items:center;padding:0 3px;color:#fff;border:2px solid #f1f6f7;border-radius:99px;background:var(--blue-600);font-size:11px;font-style:normal;font-weight:700; }
.composer-add svg, .send svg { width: 17px; }
.composer label { min-width: 0; }
.composer textarea { width: 100%; max-height: 100px; resize: none; padding: 9px 2px 6px; color: var(--ink-950); border: 0; outline: 0; background: transparent; font-size: 13px; line-height: 1.5; }
.composer textarea::placeholder { color: #91a3ad; }
.send { width: 38px; height: 38px; color: #fff; border-radius: 11px; background: linear-gradient(145deg, var(--blue-600), var(--teal-600)); box-shadow: 0 6px 15px rgba(27,107,170,.2); }
.composer-wrap > p { margin: 7px 0 0; color: var(--ink-500); font-size: 11px; text-align: center; }
.composer-wrap > p[hidden] { display: none; }

.evidence-panel { min-width: 0; padding: 24px 20px; border-left: 1px solid var(--line); background: rgba(248,251,251,.94); backdrop-filter: blur(14px); }
.evidence-panel > header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.evidence-panel > header p { margin: 0 0 5px; color: var(--teal-600); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.evidence-panel > header h2 { margin: 0; font: 20px 'DM Serif Display', serif; }
.evidence-panel > header h2 span { display: inline-grid; place-items: center; width: 21px; height: 21px; margin-left: 5px; color: var(--teal-600); border-radius: 7px; background: var(--teal-100); font: 12px 'Sora'; }
.evidence-panel > header button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink-500); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.evidence-panel > header svg { width: 14px; }
.confidence { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: center; padding: 12px; margin-bottom: 16px; border: 1px solid #cce9e7; border-radius: 13px; background: #f1fbfa; }
.confidence-ring { width: 48px; height: 48px; display: grid; place-content: center; color: var(--teal-600); border: 4px solid #c8ece9; border-top-color: var(--teal-500); border-radius: 50%; text-align: center; }
.confidence-ring strong { font-size: 12px; line-height: 1; }.confidence-ring span { font-size: 11px; }
.confidence > div:last-child strong { font-size: 12px; }.confidence > div:last-child p { margin: 4px 0 0; color: var(--ink-500); font-size: 11px; line-height: 1.4; }
.evidence-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin-bottom: 12px; border-radius: 10px; background: #e9f0f2; }
.evidence-tabs h3 { min-height: 31px; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--ink-950); border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(7,31,49,.08); font-size: 12px; font-weight: 600; }
.source-list { display: grid; gap: 9px; }
.source-card { width: 100%; display: grid; grid-template-columns: 27px 1fr; gap: 10px; padding: 11px; color: inherit; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.7); text-align: left; transition: border .2s, transform .2s, box-shadow .2s; }
.source-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.source-card.selected { border-color: rgba(0,142,140,.48); background: #fff; box-shadow: 0 0 0 2px rgba(0,174,172,.07); }
.source-index { width: 25px; height: 25px; display: grid; place-items: center; color: var(--teal-600); border-radius: 8px; background: var(--teal-100); font-size: 11px; font-weight: 700; }
.source-content > span, .source-content > strong, .source-content > small { display: block; }
.source-standard { margin: 1px 0 5px; color: var(--teal-600); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.source-content strong { font-size: 13px; }.source-content small { margin-top: 3px; color: var(--ink-500); font-size: 12px; }
.match { position: relative; height: 13px; margin-top: 8px; border-radius: 99px; background: #edf3f4; overflow: hidden; }
.match i { display: block; width: var(--match); height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(0,174,172,.22), rgba(0,174,172,.42)); }
.match em { position: absolute; inset: 0 6px; display: flex; align-items: center; justify-content: flex-end; color: #167774; font-size: 11px; font-style: normal; font-weight: 700; }
.source-preview { padding: 14px; margin-top: 13px; border: 1px solid #d7e4e6; border-radius: 13px; background: var(--paper); }
.preview-head { display: flex; align-items: center; justify-content: space-between; }
.preview-head span { color: var(--ink-500); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.preview-head button { padding: 0; color: var(--blue-600); border: 0; background: transparent; font-size: 11px; font-weight: 600; }
.source-preview blockquote { margin: 12px 0; padding-left: 11px; color: var(--ink-700); border-left: 2px solid var(--teal-500); font: 13px/1.65 'DM Serif Display', serif; }
/* Retrieved passages run to 1500 characters, which pushed the evidence panel
   past the bottom of the viewport. The quotation scrolls within a bounded
   height instead of growing the page. */
.source-preview blockquote { max-height: 15em; overflow-y: auto; overscroll-behavior: contain; }
.source-preview blockquote::-webkit-scrollbar { width: 6px; }
.source-preview blockquote::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--line-strong); }
.source-preview p { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.source-preview mark { padding: 4px 6px; color: #087772; border-radius: 5px; background: var(--teal-100); font-size: 11px; font-weight: 700; }
.source-preview p span { color: var(--ink-500); font-size: 11px; }

.product-screen { min-height: 100vh; }
.product-footer { min-height:48px;display:flex;align-items:center;justify-content:center;padding:12px 24px;color:var(--ink-500);border-top:1px solid var(--line);background:#f7fafb;font-size:12px;letter-spacing:.035em; }
.page-topbar { position: sticky; z-index: 7; top: 0; }
.primary-compact, .quiet-back { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: 11px; font-size: 13px; font-weight: 700; }
.primary-compact { color: #fff; border: 0; background: linear-gradient(135deg,var(--blue-600),var(--teal-600)); box-shadow: 0 8px 20px rgba(0,142,140,.17); }.primary-compact svg { width: 16px; }
.quiet-back { color: var(--ink-700); border: 1px solid var(--line); background: #fff; }
.woocommerce-link { color: var(--blue-600); font-size: 13px; font-weight: 700; text-decoration: none; }.woocommerce-link span { margin-left: 4px; }

.empty-stage, .library-stage, .usage-stage, .states-stage, .state-stage { min-height: calc(100vh - 82px); background: linear-gradient(rgba(13,58,88,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(13,58,88,.025) 1px,transparent 1px),var(--canvas); background-size: 32px 32px; }
.empty-stage { padding: clamp(44px,6vh,74px) 30px 60px; }
.empty-intro { max-width: 760px; margin: 0 auto; text-align: center; }
.empty-seal { width:60px;height:60px;display:grid;place-items:center;margin:0 auto 16px; }.empty-seal img { width:59px;height:59px;display:block;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(0,142,140,.13)); }
.empty-intro > p:first-of-type { margin: 0 0 10px; color: var(--teal-600); font-size: 12px; font-weight: 700; letter-spacing: .17em; }
.empty-intro h2 { margin: 0; color: var(--ink-950); font: clamp(38px,4vw,56px)/1.03 'DM Serif Display',serif; letter-spacing: -.025em; }.empty-intro h2 em { color: var(--teal-600); font-style: normal; }
.empty-description { max-width: 650px; margin: 18px auto 0; color: var(--ink-500); font-size: 13px; line-height: 1.7; }
.starter-composer { max-width: 820px; margin: 31px auto 0; padding: 14px; border: 1px solid var(--line-strong); border-radius: 19px; background: #fff; box-shadow: 0 24px 55px rgba(7,31,49,.11); }.starter-composer:focus-within { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(0,174,172,.1),0 24px 55px rgba(7,31,49,.11); }
.starter-composer label { display: block; }.starter-composer textarea { width: 100%; min-height: 74px; padding: 6px 8px 10px; resize: none; color: var(--ink-950); border: 0; outline: 0; font-size: 15px; line-height: 1.6; }.starter-composer textarea::placeholder { color: #8da0ad; }
.starter-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #edf1f2; }.starter-actions > div { display: flex; align-items: center; gap: 14px; }.starter-actions > div > span { color: var(--ink-500); font-size: 12px; }.starter-actions > div strong { color: var(--teal-600); }
.scope-chip { min-height: 38px; display: inline-flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--ink-700); border: 1px solid var(--line); border-radius: 10px; background: #f8fbfb; font-size: 12px; font-weight: 600; }.starter-send { width: 42px; height: 42px; }.permanent-safety { max-width: 820px; margin: 9px auto 0; color: var(--ink-500); font-size: 12px; text-align: center; }
.question-starters { max-width: 1000px; margin: 48px auto 0; }.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 15px; }.section-heading p { margin: 0 0 5px; color: var(--teal-600); font-size: 12px; font-weight: 700; letter-spacing: .15em; }.section-heading h3 { margin: 0; font: 23px 'DM Serif Display',serif; }.section-heading > span { color: var(--ink-500); font-size: 12px; }
.starter-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }.starter-grid > button { position: relative; min-height: 150px; padding: 18px; color: inherit; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.8); text-align: left; transition: transform .2s,border .2s,box-shadow .2s; }.starter-grid > button:hover { transform: translateY(-3px); border-color: rgba(0,142,140,.35); box-shadow: var(--shadow-sm); }.starter-grid button > span { color: var(--teal-600); font-size: 11px; font-weight: 700; letter-spacing: .12em; }.starter-grid strong { display: block; margin: 12px 0 8px; font: 16px/1.3 'DM Serif Display',serif; }.starter-grid small { color: var(--ink-500); font-size: 12px; line-height: 1.5; }.starter-grid svg { position: absolute; right: 16px; bottom: 16px; width: 17px; color: var(--teal-600); }

.library-stage, .usage-stage, .states-stage { padding: 30px clamp(22px,3vw,42px) 60px; }
.library-toolbar { max-width: 1200px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 auto 18px; }.search-field { width: min(410px,100%); height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.search-field svg { flex: 0 0 auto; width: 17px; color: var(--ink-500); }.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink-950); font: 13px 'Sora'; }.filter-pills { display: flex; gap: 5px; padding: 4px; border-radius: 11px; background: #dfe9ec; }.filter-pills button { min-height: 34px; padding: 0 12px; color: var(--ink-500); border: 0; border-radius: 8px; background: transparent; font-size: 12px; font-weight: 600; }.filter-pills button.active { color: var(--ink-950); background: #fff; box-shadow: 0 3px 10px rgba(7,31,49,.07); }
.library-summary { max-width: 1200px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 0 auto 20px; }.library-summary > div { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.72); }.library-summary > div > span { font: 26px 'DM Serif Display',serif; color: var(--teal-600); }.library-summary p { margin: 0; }.library-summary strong,.library-summary small { display: block; }.library-summary strong { font-size: 13px; }.library-summary small { margin-top: 3px; color: var(--ink-500); font-size: 12px; }
.library-body { max-width: 1200px; display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 18px; margin: 0 auto; }.conversation-ledger,.revision-shelf { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: var(--shadow-sm); }.conversation-ledger { overflow: hidden; }.ledger-label { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 14px; }.ledger-label h2 { margin: 0; font: 21px 'DM Serif Display',serif; }.ledger-label span { color: var(--ink-500); font-size: 12px; }
.ledger-row { width: 100%; display: grid; grid-template-columns: 46px minmax(0,1fr) auto 16px; gap: 14px; align-items: center; padding: 16px 20px; color: inherit; border: 0; border-top: 1px solid #e8eeee; background: transparent; text-align: left; }.ledger-row:hover,.ledger-row.selected { background: #f2faf9; }.ledger-row.selected { box-shadow: inset 3px 0 var(--teal-500); }.ledger-date { color: var(--ink-500); font-size: 11px; text-align: center; }.ledger-date strong { display: block; color: var(--ink-950); font: 19px/1 'DM Serif Display',serif; }.ledger-copy { min-width: 0; }.ledger-copy small,.ledger-copy strong,.ledger-copy em { display: block; }.ledger-copy small { color: var(--teal-600); font-size: 11px; font-weight: 700; letter-spacing: .1em; }.ledger-copy strong { margin: 5px 0 4px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.ledger-copy em { color: var(--ink-500); font-size: 12px; font-style: normal; }.ledger-state { padding: 5px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }.ledger-state.verified { color: #087772; background: var(--teal-100); }.ledger-state.review { color: #9b6400; background: #fff1cf; }.ledger-row > svg { width: 14px; color: var(--ink-500); }
.revision-shelf { padding: 22px 18px; background: linear-gradient(165deg,#0d3a58,#071f31); color: #fff; }.revision-shelf > p { margin: 0 0 6px; color: #72d8d0; font-size: 11px; font-weight: 700; letter-spacing: .15em; }.revision-shelf h2 { margin: 0 0 18px; font: 21px/1.2 'DM Serif Display',serif; }.shelf-topic { display: grid; grid-template-columns: 27px 1fr; gap: 10px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.09); }.shelf-topic > span { width: 25px; height: 25px; display: grid; place-items: center; color: #75ddd4; border: 1px solid rgba(117,221,212,.25); border-radius: 8px; font-size: 11px; }.shelf-topic strong,.shelf-topic small { display: block; }.shelf-topic strong { font-size: 13px; }.shelf-topic small { margin-top: 4px; color: rgba(255,255,255,.4); font-size: 11px; }.revision-shelf > button { width: 100%; min-height: 39px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; margin-top: 16px; color: #d9f4f2; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.05); font-size: 12px; }

.usage-stage { max-width: none; }.usage-hero { position: relative; max-width: 1200px; min-height: 190px; display: grid; grid-template-columns: 1fr 130px; align-items: center; padding: 30px 36px 40px; margin: 0 auto 18px; overflow: hidden; color: #fff; border-radius: 19px; background: radial-gradient(circle at 78% 25%,rgba(0,174,172,.26),transparent 25%),linear-gradient(145deg,var(--navy-800),var(--navy-950)); box-shadow: 0 22px 50px rgba(7,31,49,.16); }.usage-hero::after { content:''; position:absolute; width:300px;height:300px;right:-70px;top:-130px;border:1px solid rgba(113,220,211,.12);border-radius:50%;box-shadow:0 0 0 45px rgba(113,220,211,.03); }.usage-hero p { margin: 0 0 8px; color: #72d8d0; font-size: 12px; font-weight: 700; letter-spacing: .15em; }.usage-hero h2 { margin: 0 0 7px; font: 36px 'DM Serif Display',serif; }.usage-hero > div:first-child > span { color: rgba(255,255,255,.55); font-size: 13px; }.usage-orbit { position: relative; z-index:1; width: 106px;height:106px;display:grid;place-content:center;border:7px solid rgba(255,255,255,.1);border-top-color:#75ddd4;border-right-color:#75ddd4;border-radius:50%;text-align:center; }.usage-orbit span strong { font: 27px/1 'DM Serif Display',serif; }.usage-orbit span { font-size: 13px; }.usage-orbit small { margin-top:4px;color:rgba(255,255,255,.5);font-size:11px; }.usage-progress { position:absolute;left:36px;right:36px;bottom:22px;height:5px;border-radius:99px;background:rgba(255,255,255,.1);overflow:hidden; }.usage-progress span { display:block;width:64%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#72d8d0,var(--gold-500)); }
.usage-grid { max-width:1200px;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr);gap:18px;margin:0 auto; }.activity-card,.package-card,.usage-ledger,.usage-actions { border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.9);box-shadow:var(--shadow-sm); }.activity-card,.package-card,.usage-ledger { padding:22px; }.activity-card header,.usage-ledger header { display:flex;justify-content:space-between;align-items:flex-start; }.activity-card header p,.package-card>p,.usage-ledger header p,.usage-actions>p { margin:0 0 5px;color:var(--teal-600);font-size:11px;font-weight:700;letter-spacing:.15em; }.activity-card h2,.usage-ledger h2,.usage-actions h2 { margin:0;font:21px 'DM Serif Display',serif; }.activity-card header>span { color:var(--ink-500);font-size:12px; }.activity-chart { height:145px;display:flex;align-items:flex-end;gap:clamp(8px,2vw,24px);padding:22px 8px 0;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 35px,rgba(13,58,88,.055) 36px); }.activity-chart i { position:relative;flex:1;height:var(--h);max-width:46px;border-radius:8px 8px 2px 2px;background:linear-gradient(#93ddd7,#bfece8); }.activity-chart i.current { background:linear-gradient(var(--blue-600),var(--teal-600)); }.activity-chart i span { position:absolute;top:-17px;left:50%;transform:translateX(-50%);color:var(--ink-500);font:normal 7px 'Sora'; }.chart-labels { display:flex;justify-content:space-between;margin-top:7px;color:var(--ink-500);font-size:11px; }
.package-name { display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:center;margin:16px 0 18px; }.package-mark { width:44px;height:44px;display:grid;place-items:center;color:#fff;border-radius:13px;background:linear-gradient(145deg,var(--blue-600),var(--teal-600));font:20px 'DM Serif Display',serif; }.package-name h2 { margin:0 0 3px;font:21px 'DM Serif Display',serif; }.package-name small { color:var(--ink-500);font-size:11px; }.package-card dl { margin:0; }.package-card dl div { display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid #e8eeee;font-size:12px; }.package-card dt { color:var(--ink-500); }.package-card dd { margin:0;font-weight:600;text-align:right; }.status-dot { display:inline-block;width:6px;height:6px;margin-right:4px;border-radius:50%;background:var(--teal-500); }.package-card>a { min-height:40px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;margin-top:13px;color:var(--blue-600);border:1px solid #cbdde7;border-radius:10px;background:#f7fbfd;font-size:12px;font-weight:700;text-decoration:none; }
.usage-ledger header button { min-height:32px;padding:0 10px;color:var(--ink-500);border:1px solid var(--line);border-radius:8px;background:#fff;font-size:12px; }.usage-entry { display:grid;grid-template-columns:30px 1fr auto;gap:11px;align-items:center;padding:13px 0;border-top:1px solid #e8eeee; }.usage-ledger header+.usage-entry { margin-top:15px; }.usage-result { width:28px;height:28px;display:grid;place-items:center;border-radius:9px;font-size:13px;font-weight:700; }.usage-result.success { color:#087772;background:var(--teal-100); }.usage-result.refund { color:#9b6400;background:#fff1cf; }.usage-entry strong,.usage-entry small { display:block; }.usage-entry strong { font-size:13px; }.usage-entry small { margin-top:3px;color:var(--ink-500);font-size:12px; }.usage-entry em { color:var(--ink-500);font-size:12px;font-style:normal; }
.usage-actions { padding:22px; }.usage-actions h2 { margin-bottom:12px; }.usage-actions button { width:100%;display:grid;grid-template-columns:34px 1fr 14px;gap:10px;align-items:center;padding:12px 0;color:inherit;border:0;border-top:1px solid #e8eeee;background:transparent;text-align:left; }.action-icon { width:32px;height:32px;display:grid;place-items:center;border-radius:10px;font-weight:700; }.action-icon.warning { color:#9b6400;background:#fff1cf; }.action-icon.neutral { color:var(--blue-600);background:#e8f3fa; }.usage-actions strong,.usage-actions small { display:block; }.usage-actions strong { font-size:12px; }.usage-actions small { margin-top:3px;color:var(--ink-500);font-size:11px; }.usage-actions svg { width:13px;color:var(--ink-500); }

.account-stage { min-height:calc(100vh - 82px);display:grid;grid-template-columns:1fr 1fr;gap:16px;align-content:start;padding:34px clamp(22px,5vw,72px) 60px;background:linear-gradient(rgba(13,58,88,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(13,58,88,.025) 1px,transparent 1px),var(--canvas);background-size:32px 32px; }.customer-profile,.session-card,.privacy-card { border:1px solid var(--line);border-radius:17px;background:rgba(255,255,255,.92);box-shadow:var(--shadow-sm); }.customer-profile,.session-card { padding:24px; }.customer-profile-head { display:grid;grid-template-columns:52px 1fr auto;gap:13px;align-items:center; }.customer-profile-head>span { width:52px;height:52px;display:grid;place-items:center;color:#fff;border-radius:15px;background:linear-gradient(145deg,var(--blue-600),var(--teal-600));font-size:12px;font-weight:700; }.customer-profile-head p,.session-card header p,.privacy-card>p { margin:0 0 4px;color:var(--teal-600);font-size:11px;font-weight:700;letter-spacing:.14em; }.customer-profile-head h2 { margin:0 0 3px;font:23px 'DM Serif Display',serif; }.customer-profile-head small { color:var(--ink-500);font-size:12px; }.customer-profile-head em { display:inline-flex;align-items:center;gap:6px;padding:6px 8px;color:#087772;border-radius:99px;background:var(--teal-100);font-size:11px;font-style:normal;font-weight:700; }.customer-profile-head em i { width:6px;height:6px;border-radius:50%;background:var(--teal-500); }.identity-boundary { display:grid;grid-template-columns:32px 1fr;gap:11px;align-items:center;padding:13px;margin:21px 0 5px;border:1px solid #c7e4e1;border-radius:11px;background:#f0faf9; }.identity-boundary svg { width:28px;color:var(--teal-600); }.identity-boundary p { margin:0; }.identity-boundary strong,.identity-boundary small { display:block; }.identity-boundary strong { font-size:12px; }.identity-boundary small { margin-top:4px;color:var(--ink-500);font-size:11px;line-height:1.5; }.customer-profile dl { margin:0; }.customer-profile dl div { display:flex;justify-content:space-between;align-items:center;min-height:42px;border-bottom:1px solid #e8eeee;font-size:12px; }.customer-profile dt { color:var(--ink-500); }.customer-profile dd { margin:0;font-weight:600; }.customer-profile dd span { display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:var(--teal-500); }.customer-profile>a { min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 13px;margin-top:15px;color:var(--blue-600);border:1px solid #c7dde8;border-radius:10px;background:#f5fafc;font-size:12px;font-weight:700;text-decoration:none; }.session-card>header { display:flex;align-items:flex-start;justify-content:space-between;gap:12px; }.session-card header h2,.privacy-card h2 { margin:0;font:22px 'DM Serif Display',serif; }.session-card header button { min-height:36px;padding:0 10px;color:#a33f3f;border:1px solid #efd2d2;border-radius:9px;background:#fff6f6;font-size:11px;font-weight:700; }.session-card article { display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid #e8eeee; }.session-card header+article { margin-top:10px;border-top:1px solid #e8eeee; }.device-icon { width:38px;height:38px;display:grid;place-items:center;color:var(--blue-600);border-radius:11px;background:#e8f3fa; }.device-icon svg { width:20px; }.session-card article strong,.session-card article small { display:block; }.session-card article strong { font-size:13px; }.session-card article small { margin-top:4px;color:var(--ink-500);font-size:12px; }.session-card article em { color:var(--teal-600);font-size:11px;font-style:normal;font-weight:700; }.session-card article button { min-height:34px;padding:0 10px;color:#a33f3f;border:1px solid #efd2d2;border-radius:8px;background:#fff6f6;font-size:11px;font-weight:700; }.session-card footer { display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:17px; }.session-card footer button { min-height:42px;padding:0 13px;color:#fff;border:0;border-radius:10px;background:var(--navy-800);font-size:12px;font-weight:700; }.session-card footer small { max-width:220px;color:var(--ink-500);font-size:11px;line-height:1.45; }.privacy-card { grid-column:1/-1;display:grid;grid-template-columns:minmax(160px,.7fr) minmax(220px,1fr) auto auto;gap:15px;align-items:center;padding:20px 24px; }.privacy-card>span { color:var(--ink-500);font-size:12px;line-height:1.5; }.privacy-card button { min-height:40px;padding:0 11px;color:var(--blue-600);border:1px solid #c7dde8;border-radius:9px;background:#f5fafc;font-size:12px;font-weight:700; }

.state-stage { padding:clamp(46px,8vh,90px) 24px; }.limit-stage { display:grid;place-items:center; }.limit-card { width:min(680px,100%);padding:42px;text-align:center;border:1px solid var(--line);border-radius:22px;background:rgba(255,254,251,.97);box-shadow:var(--shadow-lg); }.limit-symbol { width:88px;height:88px;display:grid;place-content:center;margin:0 auto 20px;color:#a26800;border:7px solid #fff0c8;border-top-color:var(--gold-500);border-radius:50%; }.limit-symbol span { font:31px/1 'DM Serif Display',serif; }.limit-symbol small { font-size:11px;text-transform:uppercase; }.state-kicker { margin:0 0 9px;color:#a26800;font-size:12px;font-weight:700;letter-spacing:.15em; }.limit-card h2 { margin:0;font:34px/1.1 'DM Serif Display',serif; }.limit-card>p:not(.state-kicker) { max-width:520px;margin:16px auto 0;color:var(--ink-500);font-size:13px;line-height:1.7; }.pending-question { margin:25px 0;padding:16px 18px;border-left:3px solid var(--teal-500);border-radius:0 12px 12px 0;background:#f1faf9;text-align:left; }.pending-question span,.pending-question strong,.pending-question small { display:block; }.pending-question span { color:var(--teal-600);font-size:11px;font-weight:700;letter-spacing:.14em; }.pending-question strong { margin:7px 0 5px;font:16px 'DM Serif Display',serif; }.pending-question small { color:var(--ink-500);font-size:12px; }.limit-actions { display:grid;grid-template-columns:1fr 1fr;gap:10px; }.limit-actions a,.limit-actions button { min-height:48px;display:flex;align-items:center;justify-content:center;padding:0 14px;border-radius:12px;font-size:12px;font-weight:700;text-decoration:none; }.limit-actions a { color:#fff;background:linear-gradient(135deg,var(--blue-600),var(--teal-600)); }.limit-actions button { color:var(--ink-700);border:1px solid var(--line-strong);background:#fff; }.limit-note { display:block;margin-top:13px;color:var(--ink-500);font-size:11px; }.purchase-check { position:fixed;z-index:20;right:24px;bottom:24px;width:min(410px,calc(100% - 48px));display:grid;grid-template-columns:34px 1fr 24px;gap:12px;align-items:center;padding:16px;color:#fff;border:1px solid rgba(255,255,255,.1);border-radius:15px;background:var(--navy-950);box-shadow:0 25px 60px rgba(7,31,49,.3); }.checking-spinner { width:30px;height:30px;border:3px solid rgba(255,255,255,.14);border-top-color:#72d8d0;border-radius:50%;animation:spin 1s linear infinite; }.purchase-check p { margin:0 0 4px;color:#72d8d0;font-size:11px;font-weight:700;letter-spacing:.13em; }.purchase-check h3 { margin:0 0 4px;font:16px 'DM Serif Display',serif; }.purchase-check small { color:rgba(255,255,255,.5);font-size:11px;line-height:1.4; }.purchase-check button { color:rgba(255,255,255,.6);border:0;background:transparent;font-size:18px; }@keyframes spin{to{transform:rotate(360deg)}}

.states-intro { max-width:1200px;display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin:0 auto 24px; }.states-intro>div>p { margin:0 0 6px;color:var(--teal-600);font-size:12px;font-weight:700;letter-spacing:.15em; }.states-intro h2 { margin:0;font:34px/1.08 'DM Serif Display',serif; }.states-intro h2 em { color:var(--teal-600);font-style:normal; }.states-intro>p { max-width:460px;margin:0;color:var(--ink-500);font-size:13px;line-height:1.7; }.state-grid { max-width:1200px;display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:0 auto 18px; }.state-card { position:relative;min-height:245px;padding:25px;border:1px solid var(--line);border-radius:17px;background:rgba(255,255,255,.9);box-shadow:var(--shadow-sm); }.state-card::before { content:'';position:absolute;left:0;top:24px;bottom:24px;width:3px;border-radius:0 4px 4px 0;background:var(--state-color,var(--teal-500)); }.state-card.no-evidence { --state-color:#ed9c0d; }.state-card.safety-refusal { --state-color:#1b6baa; }.state-card.read-only { --state-color:#6b8293; }.state-card.busy { --state-color:#00aeac; }.state-icon { width:38px;height:38px;display:grid;place-items:center;margin-bottom:18px;color:var(--state-color);border:1px solid color-mix(in srgb,var(--state-color) 28%,white);border-radius:12px;background:color-mix(in srgb,var(--state-color) 9%,white);font-size:17px; }.state-card>p { margin:0 0 7px;color:var(--state-color);font-size:11px;font-weight:700;letter-spacing:.14em; }.state-card h3 { max-width:420px;margin:0;font:22px/1.2 'DM Serif Display',serif; }.state-card>small { display:block;max-width:460px;margin-top:11px;color:var(--ink-500);font-size:12px;line-height:1.65; }.state-card>div { display:flex;align-items:center;justify-content:space-between;margin-top:22px;padding-top:13px;border-top:1px solid #e8eeee; }.state-card>div>span { color:var(--ink-500);font-size:12px;font-weight:600; }.state-card>div>button { padding:0;color:var(--blue-600);border:0;background:transparent;font-size:12px;font-weight:700; }
.report-preview { max-width:1200px;display:grid;grid-template-columns:.8fr 1.2fr;gap:34px;align-items:center;margin:0 auto;padding:26px;border:1px solid rgba(0,142,140,.18);border-radius:17px;background:linear-gradient(120deg,#effaf8,#fff); }.report-preview>div>p { margin:0 0 6px;color:var(--teal-600);font-size:11px;font-weight:700;letter-spacing:.14em; }.report-preview h2 { margin:0 0 8px;font:25px 'DM Serif Display',serif; }.report-preview>div>span { color:var(--ink-500);font-size:12px;line-height:1.6; }.report-preview form { display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end; }.report-preview fieldset { display:flex;flex-wrap:wrap;gap:9px;padding:0;border:0; }.report-preview legend,.report-note { color:var(--ink-500);font-size:11px;font-weight:700;letter-spacing:.08em; }.report-preview fieldset label { color:var(--ink-700);font-size:12px; }.report-note textarea { width:100%;min-height:52px;display:block;margin-top:5px;padding:8px;border:1px solid var(--line);border-radius:9px;resize:none;font-size:12px; }.report-preview form>button { min-height:42px;padding:0 14px;color:#fff;border:0;border-radius:10px;background:var(--teal-600);font-size:12px;font-weight:700; }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.evidence-tab-panel[hidden] { display:none!important; }
.claim-map-panel { display:grid;gap:8px;margin-top:14px; }
.claim-map-panel article { display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff; }
.claim-map-panel article>span { width:27px;height:27px;display:grid;place-items:center;color:var(--teal-600);border-radius:8px;background:var(--teal-100);font-size:11px;font-weight:700; }
.claim-map-panel strong,.claim-map-panel small { display:block; }.claim-map-panel strong { font-size:12px;line-height:1.35; }.claim-map-panel small { margin-top:3px;color:var(--ink-500);font-size:11px;line-height:1.4; }.claim-map-panel em { color:var(--teal-600);font-size:11px;font-style:normal;font-weight:700;white-space:nowrap; }
.topbar h1[tabindex="-1"]:focus { outline: none; }

@media (max-width: 1100px) {
    .welcome-layout { grid-template-columns: minmax(0,1fr) minmax(350px,.78fr); gap: 42px; padding-inline: 42px; }
    .welcome-copy h1 { font-size: clamp(44px,6vw,66px); }
    .atlas-orbit { display: none; }
    .starter-grid { grid-template-columns: repeat(2,1fr); }
    .library-body { grid-template-columns: minmax(0,1fr) 280px; }
    .usage-grid { grid-template-columns: 1fr; }.usage-actions { grid-column: 1; }.usage-actions button { padding-block: 12px; }
    .report-preview { grid-template-columns: 1fr; }.report-preview form { grid-template-columns: 1fr 1fr auto; }
    .app-shell { grid-template-columns: 218px minmax(0,1fr); }
    .rail { padding-inline: 12px; }
    .brand img { width: 160px; }
    .workspace { grid-template-columns: minmax(500px,1fr) 310px; }
    .mechanism-map { grid-template-columns: 1fr; }
    .flow-arrow { display: none; }
}

@media (max-width: 1050px) {
    .welcome-view { min-height: 100svh; overflow-y: auto; }
    .welcome-header { min-height: 76px; padding: 15px 18px; }.welcome-brand img { width: 166px; }.welcome-brand > span { margin-left: 43px; font-size: 11px; }.welcome-access { font-size: 0; }.welcome-access::after { content: 'Secure'; font-size: 12px; }
    .welcome-layout { display: block; padding: 32px 18px 38px; }
    .welcome-copy { max-width: 600px; margin: 0 auto 28px; }.welcome-kicker { margin-bottom: 17px; font-size: 12px; }.welcome-kicker span { width: 27px; height: 27px; }
    .welcome-copy h1 { font-size: clamp(39px,11.5vw,58px); }.welcome-intro { margin: 20px 0; font-size: 12px; line-height: 1.7; }.welcome-promise { padding: 12px; }.welcome-promise strong { font-size: 14px; }.welcome-promise p { font-size: 12px; }
    .welcome-card { max-width: 600px; margin: 0 auto; padding: 26px 20px; border-radius: 20px; }.welcome-card-head h2 { font-size: 22px; }.ready-status { margin: 20px 0; }.start-guide li { min-height: 58px; padding-inline: 5px; }
    .welcome-footer { min-height: 44px; padding-inline: 18px; }.welcome-footer > span:first-child { display: none; }.welcome-footer > div { width:100%;justify-content:space-between;gap:10px; }
    .product-footer { min-height:calc(114px + env(safe-area-inset-bottom));align-items:flex-start;padding:16px 18px calc(94px + env(safe-area-inset-bottom));font-size:12px; }
    .account-stage { min-height:calc(100svh - 70px);grid-template-columns:1fr;padding:16px 12px 115px; }.customer-profile,.session-card { padding:19px 16px; }.customer-profile-head { grid-template-columns:46px 1fr; }.customer-profile-head>span { width:46px;height:46px; }.customer-profile-head>em { grid-column:2;justify-self:start; }.identity-boundary strong { font-size:13px; }.identity-boundary small { font-size:12px; }.customer-profile dl div { min-height:46px;font-size:13px; }.session-card>header { display:block; }.session-card header button { min-height:44px;margin-top:12px; }.session-card article { grid-template-columns:40px 1fr;min-height:74px; }.session-card article em,.session-card article button { grid-column:2;justify-self:start; }.session-card article button { min-height:44px; }.session-card article strong { font-size:13px; }.session-card article small { font-size:12px; }.session-card footer { display:block; }.session-card footer button { width:100%;min-height:46px; }.session-card footer small { display:block;max-width:none;margin-top:9px;font-size:12px; }.privacy-card { grid-column:auto;display:block;padding:20px 16px; }.privacy-card h2 { margin:5px 0 8px;font-size:22px; }.privacy-card>span { display:block;margin-bottom:14px;font-size:13px; }.privacy-card button { width:100%;min-height:44px;margin-top:7px; }
    .page-topbar { position: sticky; }.page-topbar .primary-compact { width:auto;min-height:44px;padding:0 12px;font-size:12px; }.page-topbar .primary-compact svg { width:15px; }.page-topbar .icon-button { width:44px;height:44px; }.woocommerce-link { min-height:44px;display:inline-flex;align-items:center;justify-content:flex-end;max-width:135px;font-size:12px;line-height:1.4;text-align:right; }.quiet-back { min-height:44px;padding-inline:10px;font-size:12px; }
    .empty-stage { min-height:calc(100svh - 70px);padding:35px 12px 130px; }.empty-seal { width:54px;height:54px; }.empty-seal img { width:53px;height:53px; }.empty-intro h2 { font-size:38px; }.empty-description { font-size:12px; }.starter-composer { margin-top:24px;padding:10px;border-radius:16px; }.starter-actions { align-items:flex-end;gap:8px; }.scope-chip { max-width:205px;min-height:44px;overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap; }.starter-composer textarea { min-height:88px;padding:8px;font-size:14px; }.starter-actions>div { gap:8px; }.starter-actions>div>span { display:none; }.permanent-safety { padding-inline:12px;font-size:12px;line-height:1.5; }
    .question-starters { margin-top:36px; }.section-heading { align-items:flex-start; }.section-heading h3 { font-size:22px; }.section-heading>span { display:none; }.starter-grid { grid-template-columns:1fr;gap:10px; }.starter-grid>button { min-height:118px;padding:16px; }.starter-grid strong { max-width:270px;font-size:17px; }.starter-grid small { font-size:13px; }
    .library-stage,.usage-stage,.states-stage { min-height:calc(100svh - 70px);padding:16px 12px 120px; }.library-toolbar { display:block; }.search-field { height:46px; }.search-field input { font-size:13px; }.filter-pills { margin-top:10px;overflow-x:auto;scrollbar-width:none; }.filter-pills button { flex:0 0 auto;min-height:44px;font-size:13px; }.library-summary { grid-template-columns:repeat(3,1fr);gap:6px; }.library-summary>div { display:block;padding:12px 8px;text-align:center; }.library-summary>div>span { font-size:24px; }.library-summary strong { margin-top:4px;font-size:12px; }.library-summary small { display:none; }.library-body { grid-template-columns:1fr; }.ledger-label { padding:18px 14px 12px; }.ledger-row { grid-template-columns:38px minmax(0,1fr) 14px;gap:10px;min-height:78px;padding:13px 14px; }.ledger-state { display:none; }.ledger-copy small { font-size:12px; }.ledger-copy strong { font-size:12px; }.ledger-copy em { font-size:12px; }.revision-shelf { padding:20px 16px; }.shelf-topic { min-height:60px; }.shelf-topic strong { font-size:13px; }.shelf-topic small { font-size:12px; }.revision-shelf>button { min-height:44px;font-size:13px; }
    .usage-hero { min-height:220px;grid-template-columns:1fr 90px;padding:24px 20px 45px;border-radius:16px; }.usage-hero h2 { font-size:31px; }.usage-hero>div:first-child>span { font-size:12px; }.usage-orbit { width:82px;height:82px;border-width:6px; }.usage-orbit span strong { font-size:23px; }.usage-progress { left:20px;right:20px; }.usage-grid { gap:12px; }.activity-card,.package-card,.usage-ledger,.usage-actions { padding:18px 15px; }.activity-card h2,.usage-ledger h2,.usage-actions h2 { font-size:20px; }.activity-chart { gap:10px; }.package-card dl div { min-height:40px;align-items:center;font-size:13px; }.package-card>a { min-height:44px;font-size:13px; }.usage-ledger header button { min-height:44px; }.usage-entry { min-height:66px; }.usage-entry strong { font-size:13px; }.usage-entry small { font-size:12px; }.usage-actions button { min-height:65px; }.usage-actions strong { font-size:13px; }.usage-actions small { font-size:12px; }
    .state-stage { min-height:calc(100svh - 76px);padding:32px 12px 118px; }.limit-card { padding:28px 18px;border-radius:18px; }.limit-symbol { width:78px;height:78px; }.limit-card h2 { font-size:29px; }.limit-card>p:not(.state-kicker) { font-size:13px; }.pending-question strong { font-size:17px; }.pending-question small { font-size:12px;line-height:1.5; }.limit-actions { grid-template-columns:1fr; }.limit-actions a,.limit-actions button { min-height:48px;font-size:13px; }.limit-note { font-size:12px;line-height:1.4; }.purchase-check { left:12px;right:12px;bottom:calc(90px + env(safe-area-inset-bottom));width:auto;grid-template-columns:32px 1fr 28px;padding:14px; }.purchase-check h3 { font-size:15px; }.purchase-check small { font-size:12px; }
    .states-intro { display:block;margin-bottom:20px; }.states-intro h2 { font-size:30px; }.states-intro>p { margin-top:13px;font-size:13px; }.state-grid { grid-template-columns:1fr;gap:10px; }.state-card { min-height:235px;padding:22px 20px; }.state-card h3 { font-size:21px; }.state-card>small { font-size:13px; }.state-card>div>span,.state-card>div>button { font-size:12px; }.state-card>div>button { min-height:44px;display:inline-flex;align-items:center; }.report-preview { display:block;padding:22px 18px; }.report-preview h2 { font-size:24px; }.report-preview>div>span { font-size:13px; }.report-preview form { display:block;margin-top:20px; }.report-preview fieldset { display:grid;gap:4px; }.report-preview fieldset label { min-height:44px;display:flex;align-items:center;gap:8px;font-size:13px; }.report-note { display:block;margin-top:14px;font-size:12px; }.report-note textarea { min-height:72px;font-size:13px; }.report-preview form>button { width:100%;min-height:46px;margin-top:12px;font-size:13px; }
    .app-shell { display: block; }
    .rail { position: fixed; z-index: 10; inset: auto 12px max(10px,env(safe-area-inset-bottom)); width: auto; height: 68px; display: block; padding: 6px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; box-shadow: 0 18px 50px rgba(7,31,49,.3); }
    .rail-top { display: contents; }
    .brand, .new-inquiry, .recent, .rail-bottom, .nav-label { display: none; }
    .rail-nav { height: 100%; display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin: 0; }
    .nav-item { min-height:54px;flex-direction:column;justify-content:center;gap:4px;margin:0;padding:0; }
    .nav-item span { display:block;max-width:100%;font-size:0;font-weight:600;line-height:1;white-space:nowrap; }
    .nav-item span::after { content:attr(data-mobile-label);font-size:12px; }
    .nav-item svg { width:18px;height:18px; }
    .nav-item.active { box-shadow:inset 0 2px 0 var(--teal-500); }
    .topbar { height:76px;padding:0 16px; }.topbar h1 { font-size:17px; }.source-scope { display:none; }.topbar .icon-button { width:44px;height:44px; }.action-menu-button { min-height:44px;padding:0 10px;font-size:12px; }.source-selector { min-height:44px;gap:7px;padding:5px 8px; }.source-selector-icon { width:28px;height:28px; }.source-selector-copy small { display:none; }.source-selector-copy strong { font-size:12px; }.source-selector-chevron { width:11px; }
    .workspace { display: block; min-height: calc(100vh - 70px); }
    .answer-stage { padding: 14px 12px 174px; }
    .question-card { grid-template-columns: 32px 1fr; padding: 13px; margin-bottom: 12px; }
    .question-mark { width: 30px; height: 30px; }
    .answer-document { border-radius: 15px; }
    .answer-header { padding:11px 13px; }.answer-identity>div>span { display:none; }.answer-status { flex:0 0 auto;padding:6px 8px;font-size:0; }.answer-status::after { content:'Verified';font-size:11px; }
    .answer-copy { padding: 20px 16px 15px; }.lead { font-size: 17px; }.mechanism-map { padding: 10px; }.mechanism-step p { font-size: 13px; }.mechanism-step strong { font-size: 12px; }
    .answer-section { grid-template-columns: 30px 1fr; gap: 12px; }.answer-section h3 { font-size: 19px; }.answer-section p { font-size: 14px; }.citation::before { content:'';position:absolute;inset:-14px; }
    .answer-footer button { width:44px;height:44px; }.composer-wrap { position:fixed;z-index:8;left:12px;right:12px;bottom:calc(90px + env(safe-area-inset-bottom));margin:0; }.composer { grid-template-columns:44px 1fr 44px; }.composer-add,.send { width:44px;height:44px; }.composer textarea { min-height:44px; }.composer-wrap > p { display:none; }
    .evidence-panel { position: fixed; z-index: 14; left: 0; right: 0; bottom: 0; display: block; max-height: 72vh; padding: 24px 18px 28px; overflow-y: auto; border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -24px 70px rgba(7,31,49,.28); transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.75,.25,1); }.evidence-panel>header button { width:44px;height:44px; }.evidence-tabs h3 { min-height:44px; }.preview-head button { min-height:44px;display:inline-flex;align-items:center; }
    .evidence-panel.mobile-open { transform: translateY(0); }
}

@media (max-width: 420px) {
    .welcome-copy h1 { font-size: 40px; }
    .welcome-promise p { font-size: 12px; }
    .welcome-card-head { grid-template-columns: 40px 1fr; }.mini-avatar { width: 40px; height: 40px; border-radius: 12px; }.welcome-card-head h2 { font-size: 20px; }
}

@media (max-width: 360px) {
    .filter-pills { display:grid;grid-template-columns:1fr 1fr;overflow:visible; }
    .filter-pills button { width:100%;padding-inline:8px; }
}

@media (prefers-reduced-motion: no-preference) {
    .welcome-kicker, .welcome-copy h1, .welcome-intro, .welcome-promise, .welcome-card { animation: welcome-rise .65s cubic-bezier(.2,.75,.25,1) both; }
    .welcome-copy h1 { animation-delay: .06s; }.welcome-intro { animation-delay: .12s; }.welcome-promise { animation-delay: .18s; }.welcome-card { animation-delay: .12s; }
    .orbit-one { animation: orbit-spin 25s linear infinite; }.orbit-two { animation: orbit-spin 18s linear infinite reverse; }
    @keyframes welcome-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes orbit-spin { to { transform: rotate(360deg); } }
    .answer-document { animation: rise .5s cubic-bezier(.2,.75,.25,1) both; }
    .question-card { animation: rise .42s .05s cubic-bezier(.2,.75,.25,1) both; }
    .source-card { animation: fade .35s both; }.source-card:nth-child(2){animation-delay:.07s}.source-card:nth-child(3){animation-delay:.14s}
    @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important; }
}

/* Production bindings: the visual system above is the approved staged design. */
body { min-width:0; }
.start-button-link { text-decoration:none; }
.production-workspace { min-height:100dvh; }
.rail button.nav-item,.rail button.conversation { width:100%;border:0;background:transparent;text-align:left;font-family:inherit; }
.rail button.nav-item.active { background:rgba(255,255,255,.095); }
.production-empty-history { margin:10px 11px;color:rgba(255,255,255,.38);font-size:12px;line-height:1.6; }
.production-history-stage { max-width:980px;margin:0 auto; }
.production-history-empty { margin:0;padding:32px 20px;color:var(--ink-500);font-size:13px; }
.scope-chip { cursor:default; }
.production-answer-loading { min-height:280px;display:flex;align-items:center;justify-content:center;gap:7px;color:var(--ink-500);font-size:13px;letter-spacing:.04em; }
.production-answer-loading i { width:7px;height:7px;border-radius:50%;background:var(--teal-500);animation:production-pulse 1s infinite; }
.production-answer-loading i:nth-child(2){animation-delay:.14s}.production-answer-loading i:nth-child(3){animation-delay:.28s}
.production-answer-loading span { margin-left:8px; }
@keyframes production-pulse { 50%{opacity:.25;transform:translateY(-3px)} }
.production-answer-paragraph { margin:0 0 18px;color:var(--ink-700);font-size:14px;line-height:1.85; }
.production-answer-list { margin:0 0 22px;padding:0;list-style:none; }
.production-answer-list li { position:relative;margin:9px 0;padding-left:22px;color:var(--ink-700);font-size:14px;line-height:1.7; }
/* Markers are centred on the first line. The offset is written in px because
   `em` inside a pseudo-element resolves against the pseudo's own font-size, and
   a custom property would not help: its value is substituted as raw tokens and
   resolved at the point of use. 14px x 1.7 is the item's line box. */
.production-answer-list li::before { content:'';position:absolute;left:2px;top:calc((14px * 1.7 - 11px) / 2);width:7px;height:7px;border:2px solid var(--teal-500);border-radius:50%; }
.production-answer-warning { margin-top:22px; }
.answer-thread { display:grid;gap:14px;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid var(--line); }
.answer-turn { padding:14px 16px;border:1px solid #e4ecee;border-radius:13px;background:#f8fbfb; }
.answer-turn > p { margin:0 0 8px;color:var(--teal-600);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase; }
.answer-turn h3 { margin:0 0 12px;color:var(--ink-950);font-size:14px;font-weight:700;line-height:1.45; }
.answer-turn .lead { margin-bottom:12px;font-size:15px; }
.answer-report-panel { display:block;max-width:900px;margin:16px auto 0;color:var(--ink-700); }
.answer-report-panel[hidden] { display:none; }
.answer-report-panel summary { display:inline-flex;align-items:center;color:var(--ink-500);font-size:12px;font-weight:600;list-style:none;cursor:pointer; }
.answer-report-panel summary::-webkit-details-marker { display:none; }
.answer-report-panel summary:hover,.answer-report-panel summary:focus-visible { color:var(--teal-600); }
.answer-report-panel summary:focus-visible { outline:3px solid rgba(0,174,172,.2);outline-offset:4px;border-radius:6px; }
.answer-report-body { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:18px;padding:18px;margin-top:10px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.88);box-shadow:var(--shadow-soft); }
.answer-report-panel p { margin:0 0 5px;color:var(--teal-600);font-size:10px;font-weight:700;letter-spacing:.12em; }
.answer-report-panel h3 { margin:0 0 6px;color:var(--ink-950);font:18px 'DM Serif Display',serif; }
.answer-report-panel small { color:var(--ink-500);font-size:12px;line-height:1.55; }
.answer-report-panel form { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:end; }
.answer-report-panel label { min-width:0;color:var(--ink-700);font-size:11px;font-weight:700; }
.answer-report-panel label span { display:block;margin-bottom:5px; }
.answer-report-panel select,.answer-report-panel textarea { width:100%;border:1px solid var(--line);border-radius:10px;background:#f8fbfb;color:var(--ink-700);font:12px 'Sora',sans-serif; }
.answer-report-panel select { height:40px;padding:0 10px; }
.answer-report-panel textarea { min-height:40px;padding:9px 10px;resize:vertical; }
.answer-report-panel button { min-width:0;min-height:40px;padding:0 13px;color:#fff;border:0;border-radius:10px;background:var(--blue-600);font-size:12px;font-weight:700;justify-self:start;white-space:normal; }
.answer-report-panel button:disabled { opacity:.55; }
.answer-report-body>p:last-child { grid-column:1/-1;margin:0;color:var(--ink-500);font-size:12px;font-weight:600;letter-spacing:0; }
.production-citation-buttons { display:flex;flex-wrap:wrap;gap:8px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line); }
.production-citation-buttons button { min-height:38px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;color:var(--blue-600);border:1px solid var(--line);border-radius:10px;background:#f8fbfb;font-size:12px;font-weight:700; }
.production-citation-buttons button span { width:20px;height:20px;display:grid;place-items:center;color:#fff;border-radius:6px;background:var(--blue-600);font-size:12px; }
.production-evidence-summary .confidence-ring strong { font-size:18px; }
.production-evidence-summary .confidence-ring strong::after { content:none; }
.production-no-sources { margin:12px 0;color:var(--ink-500);font-size:13px;line-height:1.6; }
.source-card { width:100%; }
.source-card:focus-visible,.conversation:focus-visible,.nav-item:focus-visible { outline:3px solid var(--teal-500);outline-offset:2px; }
.answer-document[aria-busy="true"] .answer-status span { background:var(--gold-500);box-shadow:0 0 0 4px rgba(237,156,13,.1); }
.answer-document[aria-busy="true"] .answer-status { color:#946106;background:#fff4db; }
/* The compact label belongs to the narrow layout, where the written label is
   collapsed to font-size 0. Applied at every width it printed a second time and
   the badge read "Evidence saved Verified". */
@media (max-width: 1050px) {
    .answer-document[aria-busy="true"] .answer-status::after { content:'Preparing'; }
    .answer-document[aria-busy="false"] .answer-status::after { content:'Verified'; }
}
.product-footer { margin-top:auto; }
@media (max-width:1050px){.production-workspace .rail-nav{grid-template-columns:repeat(3,1fr)}.production-answer-loading{min-height:210px}.production-citation-buttons button{min-height:44px}.production-workspace .product-footer{display:none}}
@media (max-width:1050px){.answer-report-body,.answer-report-panel form{grid-template-columns:1fr}.answer-report-panel button{min-height:44px}}

@media (min-width:1051px) and (max-height:700px) {
    .rail { gap: 8px; padding: 14px 14px 12px; }
    .brand { margin-bottom: 12px; }
    .new-inquiry { min-height: 42px; }
    .rail-nav { margin-top: 12px; }
    .nav-label { margin-bottom: 5px; }
    .nav-item { min-height: 34px; }
    .rail-nav [data-logout] { display: none; }
    .recent { margin-top: 12px; }
    .allowance-card { padding: 10px; margin-bottom: 8px; }
    .allowance-card p { display: none; }
    .allowance-progress { margin-bottom: 0; }
    .account { padding: 7px 6px; }
}

/* Rendered markdown inside an answer. Specification tables are the reason this
   exists: the BP mass-deviation limits are a table, and until it rendered the
   reader saw a row of pipe characters. */
.production-answer-heading { margin: 26px 0 10px; color: var(--ink-950); font: 17px 'DM Serif Display', serif; }
.production-answer-ordered { counter-reset: pcstep; }
/* The numbered marker needs its own gutter: at the shared 22px padding a 22px
   disc ends exactly where the text begins, so the number touched its sentence.
   `top` centres the disc on the first line rather than guessing an em offset. */
/* The offset is computed on the item, not the marker: `em` inside a pseudo
   resolves against the pseudo's own font-size, which is 11px here, so the same
   expression written on ::before placed the disc 2.5px above the line. */
.production-answer-ordered li { counter-increment: pcstep; padding-left: 34px; }
.production-answer-ordered li::before { content: counter(pcstep); display: grid; place-items: center; left: 0; top: calc((14px * 1.7 - 22px) / 2); width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--teal-100); color: var(--teal-600); font: 700 11px/1 'Sora', sans-serif; }
.production-answer-tablewrap { margin: 18px 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.production-answer-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.production-answer-table th,
.production-answer-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.production-answer-table thead th { color: var(--teal-600); background: #f4fbfa; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.production-answer-table tbody tr:last-child td { border-bottom: 0; }
.production-answer-table strong { color: var(--ink-950); }
.production-answer-paragraph strong,
.production-answer-list strong { color: var(--ink-950); font-weight: 700; }
/* The excerpt is a long unbroken passage; give it breathing room to read. */
.source-preview p { margin: 0 0 10px; }
.source-preview p:last-child { margin-bottom: 0; }

/* DM Serif Display is loaded at a single weight, so asking for 700 makes the
   browser synthesise bold by smearing each glyph — on screen that reads as a
   line struck through the words. Emphasis in serif text is carried by colour
   instead; the sans-serif faces do have a real bold and are left alone. */
.lead strong,
.production-answer-heading strong,
.answer-copy blockquote strong { font-weight: 400; color: var(--ink-950); }

/* Further learning from PharmaCores block */
.from-pharmacores {
  margin-top: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.from-pharmacores[hidden] {
  display: none !important;
}
.from-pharmacores-heading {
  margin-bottom: 12px;
}
.from-pharmacores-heading p {
  margin: 0 0 3px;
  color: var(--teal-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.from-pharmacores-heading h3 {
  margin: 0;
  color: var(--ink-950);
  font-size: 15px;
  font-weight: 700;
}
.from-pharmacores-list {
  display: grid;
  gap: 10px;
}
.recommendation-card {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
  transition: border .2s, transform .2s, box-shadow .2s;
}
.recommendation-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 142, 140, .48);
  box-shadow: var(--shadow-sm);
}
.recommendation-card:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
}
.recommendation-badge {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--teal-600);
  border-radius: 8px;
  background: var(--teal-100);
  font-size: 11px;
  font-weight: 700;
}
.recommendation-content {
  min-width: 0;
}
.recommendation-content > span,
.recommendation-content > strong {
  display: block;
}
.recommendation-type {
  margin: 0 0 2px;
  color: var(--teal-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.recommendation-content strong {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-950);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recommendation-price {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 600;
}
.recommendation-arrow {
  width: 16px;
  height: 16px;
  color: var(--ink-400);
  flex-shrink: 0;
  transition: transform .2s, color .2s;
}
.recommendation-card:hover .recommendation-arrow {
  color: var(--teal-600);
  transform: translate(2px, -2px);
}
@media (max-width: 600px) {
  .from-pharmacores {
    padding: 14px 15px;
  }
  .recommendation-card {
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    padding: 9px 11px;
  }
}
