/* Standalone local preview, matching assets/css/site.css without modifying it. */
:root {
  --c-bg: #fbfbf9; --c-surface: #fff; --c-subtle: #f3f4f1;
  --c-ink: #141b1a; --c-text: #37433f; --c-muted: #6a7672;
  --c-line: #e6e9e4; --c-line-strong: #d3d9d3;
  --c-accent: #1d6b64; --c-accent-hover: #14524c; --c-accent-soft: #e7f0ec;
  --c-warm: #b85b33; --c-warm-soft: #f7ece4;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-md: 12px; --r-lg: 18px; --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: radial-gradient(ellipse at 8% 16%, #f7ece460, transparent 40%), var(--c-bg); color: var(--c-text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--c-accent); text-underline-offset: .2em; }
a:hover { color: var(--c-accent-hover); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 1px solid var(--c-accent); background: var(--c-accent); color: #fff; border-radius: 8px; padding: .65rem 1rem; font-size: .875rem; font-weight: 600; line-height: 1.4; transition: background .15s var(--ease); }
button:hover:enabled { background: var(--c-accent-hover); }
button.secondary { background: var(--c-accent-soft); color: var(--c-accent); border-color: var(--c-line-strong); }
button.quiet { background: transparent; color: var(--c-muted); border-color: var(--c-line-strong); }
button.danger { color: var(--c-warm); background: var(--c-warm-soft); border-color: #e8c7b7; }
button.secondary:hover:enabled, button.quiet:hover:enabled { background: var(--c-subtle); }
button.danger:hover:enabled { background: #f0ddcf; }
button:disabled, input:disabled, textarea:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
input, textarea, select { width: 100%; color: var(--c-ink); background: var(--c-bg); border: 1px solid var(--c-line-strong); border-radius: 8px; padding: .7rem .8rem; min-width: 0; }
textarea { display: block; resize: vertical; min-height: 90px; }
input[type="checkbox"] { width: 17px; height: 17px; flex: none; margin: .2rem 0 0; accent-color: var(--c-accent); }
label { display: block; font-size: .85rem; font-weight: 600; margin: .9rem 0 .4rem; }
form > button { margin-top: .9rem; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.review-json { max-height: 22rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; border: 1px solid var(--c-line-strong); border-radius: 8px; font-size: .78rem; }
.language-toggle { margin: 0; padding: .35rem .7rem; border-radius: 999px; background: var(--c-accent-soft); color: var(--c-accent); border: 1px solid var(--c-line-strong); font-size: .8rem; white-space: nowrap; }
.language-toggle[aria-pressed="true"] { background: var(--c-accent); color: #fff; }
::selection { background: var(--c-accent-soft); color: var(--c-ink); }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); letter-spacing: -.04em; font-weight: 680; margin: .2rem 0 1rem; }
h2 { font-size: 1.1rem; font-weight: 650; margin: 0; letter-spacing: -.015em; }
h3 { font-size: .95rem; margin: 1.6rem 0 .75rem; }
h4 { margin: 0 0 .6rem; font-size: .9rem; }
p { margin: .7rem 0; }
.shell { max-width: 1120px; margin: 0 auto; padding-inline: 1.5rem; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--c-line); }
.brand { font-size: 1rem; font-weight: 650; color: var(--c-ink); text-decoration: none; }
.brand span { color: var(--c-muted); font-weight: 450; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.3rem; font-size: .8rem; }
.site-header nav a { text-decoration: none; }
.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 10; padding: .8rem; background: #fff; }
.skip-link:focus { top: .5rem; }
.visitor-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 3rem; padding-top: 3rem; }
.intro { align-self: start; position: sticky; top: 2rem; font-size: .925rem; }
.lead { font-size: 1.1rem; color: var(--c-ink); line-height: 1.5; letter-spacing: -.015em; }
.kicker { color: var(--c-muted); font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; margin: 1.2rem 0 .5rem; }
.avatar { width: 180px; height: 180px; display: grid; place-items: center; position: relative; margin-left: -1rem; background: radial-gradient(circle, var(--c-warm-soft), transparent 70%); }
.avatar img { width: 100%; height: 100%; object-fit: contain; position: absolute; }
.avatar-initial { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; color: var(--c-accent); background: var(--c-warm-soft); border: 1px solid #e8c7b7; font-size: 2rem; font-weight: 650; }
.avatar.small { width: 110px; height: 110px; margin: 0; flex: none; }
.avatar.small .avatar-initial { width: 65px; height: 65px; }
.identity-note { border-left: 2px solid var(--c-warm); padding-left: 1rem; margin: 1.7rem 0; font-size: .85rem; }
.identity-note strong { color: var(--c-warm); }
.visitor-main { min-width: 0; }
.runtime-bar, .section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .7rem; }
.runtime-bar { margin-bottom: .7rem; }
.runtime-bar p { margin: .35rem 0 0; }
.pill { display: inline-block; border-radius: 999px; background: var(--c-accent-soft); color: var(--c-accent); padding: .2rem .65rem; font-size: .69rem; font-weight: 600; letter-spacing: .035em; line-height: 1.5; }
.pill.warm { background: var(--c-warm-soft); color: var(--c-warm); }
.panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 1.5rem; margin-bottom: 1.3rem; box-shadow: 0 12px 32px -28px #14271a40; animation: arrive .35s var(--ease) both; }
.memory-panel { font-size: .82rem; }
.memory-panel .section-head { margin-bottom: .8rem; }
.fine { font-size: .78rem; color: var(--c-muted); line-height: 1.6; }
.notice { padding: .8rem 1rem; border-left: 2px solid var(--c-accent); background: var(--c-accent-soft); font-size: .82rem; border-radius: 0 8px 8px 0; }
.warm-notice { border-color: var(--c-warm); background: var(--c-warm-soft); }
[data-tone="error"] { color: #9d3e26; }
.check-row { display: flex; align-items: flex-start; gap: .6rem; font-size: .8rem; font-weight: 450; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.conversation { display: flex; flex-direction: column; gap: 1rem; min-height: 100px; max-height: 660px; overflow-y: auto; padding: 1.4rem 0; overscroll-behavior: contain; }
.empty { font-size: .875rem; color: var(--c-muted); padding: 1rem; background: var(--c-subtle); border-radius: var(--r-md); }
.question-message { align-self: flex-end; max-width: 92%; background: var(--c-accent-soft); padding: .85rem 1rem; border-radius: 12px 12px 2px 12px; }
.message-label { color: var(--c-muted); text-transform: uppercase; font-size: .64rem; letter-spacing: .1em; font-weight: 600; margin: 0 0 .45rem; }
.plain-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.answer { border-top: 1px solid var(--c-line); padding-top: 1rem; font-size: .9rem; }
.answer-heading { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.answer-heading strong { color: var(--c-accent); }
.answer-disclaimer { border-left: 2px solid var(--c-warm); padding-left: .75rem; color: var(--c-warm); font-size: .78rem; }
.answer details { font-size: .8rem; border-top: 1px solid var(--c-line); margin-top: .8rem; padding-top: .6rem; }
.answer summary { cursor: pointer; color: var(--c-muted); }
.source-list { padding-left: 1.25rem; }
.source-list li { padding-bottom: .65rem; }
.source-list a { display: block; overflow-wrap: anywhere; }
.next-links { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: .8rem 0; }
.composer-foot { display: flex; align-items: center; gap: 1.2rem; margin-top: .8rem; }
.composer-foot p { flex: 1; margin: 0; }
.composer-foot button { flex: none; }
.forward-panel > p { font-size: .875rem; }
.receipt { margin-top: 1.3rem; padding-top: .2rem; border-top: 1px solid var(--c-line); }
.receipt h3 { margin-top: 1rem; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .7rem; font-size: .72rem; color: var(--c-muted); margin-top: 2.5rem; padding-top: 1.3rem; padding-bottom: 2rem; border-top: 1px solid var(--c-line); }
.owner-layout { padding-top: 2.5rem; }
.owner-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; }
.owner-heading h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.owner-heading .kicker { margin-top: 0; }
.access-panel > p { max-width: 58rem; font-size: .85rem; }
.access-form, .budget-form, .lookup-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; }
.access-form > div { flex: 1; min-width: 200px; }
.access-form button, .budget-form button, .lookup-form button { margin-top: 0; margin-bottom: .1rem; }
.section-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; padding: .3rem 0 1.5rem; font-size: .82rem; }
.section-nav a { text-decoration: none; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
#budget-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { border: 1px solid var(--c-line); background: var(--c-bg); border-radius: var(--r-md); padding: 1rem; min-width: 0; }
.metric dt { color: var(--c-muted); font-size: .7rem; }
.metric dd { color: var(--c-ink); margin: .3rem 0 0; font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 600; overflow-wrap: anywhere; }
dl { margin: 0; }
.compact .metric dd { font-size: 1.2rem; }
.budget-form > div { width: 230px; }
.budget-form .fine { flex-basis: 100%; margin-top: 0; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.profile { background: var(--c-subtle); padding: 1rem; border-radius: var(--r-md); overflow-wrap: anywhere; font-size: .82rem; }
.profile p { margin: .3rem 0; }
.flag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--c-line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: .76rem; }
th { text-align: left; font-size: .68rem; color: var(--c-muted); background: var(--c-subtle); white-space: nowrap; }
th, td { padding: .65rem .8rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
td { overflow-wrap: anywhere; min-width: 70px; }
tr:last-child td { border-bottom: 0; }
.table-wrap > .empty { margin: 0; }
.record-list { display: grid; gap: 1rem; margin-top: 1rem; }
.record { border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 1.1rem; min-width: 0; }
.record .meta { font-size: .72rem; color: var(--c-muted); overflow-wrap: anywhere; }
.record p { font-size: .875rem; }
.record .answer { margin-top: 1rem; }
.record .actions button { font-size: .78rem; }
.lookup-form { padding: .7rem 0; margin-top: 1rem; }
.lookup-form > div { flex: 1; min-width: 200px; }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
/* Owner-only additions leave the visitor surface and avatar untouched. */
.owner-layout .control-beacon { border-top: 3px solid var(--c-accent); background: linear-gradient(115deg, var(--c-accent-soft), var(--c-surface) 65%); }
.owner-layout .control-beacon .kicker, .owner-layout #permissions > .kicker { margin-top: 0; }
.owner-layout .service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.owner-layout .service-card { min-width: 0; padding: 1.1rem; border: 1px solid var(--c-line-strong); border-radius: var(--r-md); background: linear-gradient(145deg, var(--c-bg), var(--c-surface)); }
.owner-layout .service-card h3, .owner-layout .capability-card h3 { margin: 0; }
.owner-layout .state-line { font-size: .75rem; color: var(--c-warm); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.owner-layout .toggle-request { display: flex; align-items: flex-start; gap: .6rem; font-size: .78rem; cursor: pointer; }
.owner-layout .capability-grid, .owner-layout .readiness-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.owner-layout .capability-card, .owner-layout .readiness-card { padding: 1rem; background: var(--c-subtle); border-radius: var(--r-md); min-width: 0; overflow-wrap: anywhere; }
.owner-layout .management-budgets { display: flex; flex-wrap: wrap; gap: 1rem; border: 1px solid var(--c-line); border-radius: var(--r-md); margin: 1.5rem 0 0; padding: .5rem 1rem 1rem; min-width: 0; }
.owner-layout .management-budgets legend { font-size: .8rem; padding: 0 .35rem; }
.owner-layout .management-budgets > div { flex: 1; min-width: 180px; }
.owner-layout .pause-strip { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding: 1rem; border: 1px solid #e8c7b7; border-radius: var(--r-md); background: var(--c-warm-soft); margin-top: 1.5rem; }
.owner-layout .pause-strip > div { flex: 1; min-width: 180px; }
.owner-layout .pause-strip h3 { margin: 0; }
.owner-layout .pause-strip > button { margin: 0 0 .15rem; }
.owner-layout .metric dd { font-variant-numeric: tabular-nums; }
.owner-layout #billing-sources th, .owner-layout #billing-sources td:first-child { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 620px) { .owner-layout .service-grid, .owner-layout .capability-grid, .owner-layout .readiness-grid { grid-template-columns: minmax(0, 1fr); } .owner-layout .management-budgets > div, .owner-layout .pause-strip > div { min-width: 0; flex-basis: 100%; } .owner-layout .pause-strip > button { width: 100%; } }
@media (max-width: 900px) { .visitor-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 1.5rem; } .panel { padding: 1.2rem; } }
@media (max-width: 720px) { .visitor-layout { grid-template-columns: minmax(0, 1fr); padding-top: 1.5rem; gap: 1.5rem; } .intro { position: static; } .intro .avatar { float: right; width: 130px; height: 130px; margin: 0 0 0 .5rem; } .intro .identity-note { clear: both; margin: 1rem 0; } .intro h1 { font-size: 2.5rem; } .intro .lead { max-width: 26rem; } .metric-grid, #budget-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-grid { grid-template-columns: minmax(0, 1fr); } .owner-heading .avatar { width: 80px; height: 80px; } }
@media (max-width: 440px) { .shell { padding-inline: 1rem; } .site-header { align-items: flex-start; padding-top: 1rem; padding-bottom: 1rem; min-height: 70px; } .site-header nav { gap: .4rem; align-items: flex-end; flex-direction: column; } .panel { padding: 1rem; } .composer-foot { align-items: flex-start; flex-direction: column; gap: .6rem; } .composer-foot button { width: 100%; } .owner-heading .avatar { display: none; } .access-form > div, .lookup-form > div, .budget-form > div { min-width: 0; width: 100%; flex-basis: 100%; } .actions button { flex-grow: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
