:root {
  color-scheme: dark;
  --espresso: #100b08;
  --espresso-2: #17100c;
  --panel: rgba(30, 21, 16, .82);
  --panel-strong: rgba(37, 26, 20, .96);
  --panel-soft: rgba(255, 248, 235, .035);
  --line: rgba(229, 214, 190, .13);
  --line-strong: rgba(229, 214, 190, .23);
  --cream: #f0e6d5;
  --dim: #a89b8b;
  --muted: #746a60;
  --sky: #82d7ed;
  --teal: #0f7f84;
  --mint: #8fe6c6;
  --gold: #e6b95c;
  --coral: #da8d72;
  --font-body: Avenir, "Avenir Next", system-ui, sans-serif;
  --font-display: "Goudy Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--espresso); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--espresso); color: var(--cream); font-family: var(--font-body); }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
::selection { color: #071b1d; background: var(--mint); }

.app-shell { min-height: 100vh; background: radial-gradient(circle at 18% -15%, rgba(22, 107, 111, .14), transparent 35%), var(--espresso); }
.topbar { height: 62px; position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(16, 11, 8, .93); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand img { display: block; width: 126px; height: auto; }
.brand > span { width: 1px; height: 22px; background: var(--line-strong); }
.brand b { font: 400 17px/1 var(--font-display); }
.prototype-note { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.prototype-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(230,185,92,.35); }
.source-chip { display: flex; align-items: center; gap: 9px; }
.source-chip > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(130,215,237,.3); border-radius: 50%; background: rgba(130,215,237,.08); color: var(--sky); font-family: var(--font-display); }
.source-chip div { display: grid; gap: 1px; }
.source-chip small { color: var(--muted); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.source-chip b { font-size: 11px; font-weight: 600; }

.workspace { min-height: calc(100vh - 62px); display: grid; grid-template-columns: minmax(0, 70fr) minmax(340px, 30fr); }
.field-pane { min-width: 0; border-right: 1px solid rgba(130,215,237,.12); }
.field-scroll { min-height: calc(100vh - 62px); padding: 34px clamp(24px, 4vw, 58px) 64px; overflow: hidden; position: relative; }
.field-scroll::before { content: ""; position: absolute; width: 680px; height: 680px; border-radius: 50%; left: -380px; top: 260px; border: 1px solid rgba(130,215,237,.055); box-shadow: 0 0 120px rgba(15,127,132,.05), inset 0 0 90px rgba(15,127,132,.04); pointer-events: none; }
.field-heading, .view-bar, .dashboard-view, .focus-panel, .resource-footer { position: relative; z-index: 1; max-width: 1120px; margin-left: auto; margin-right: auto; }
.kinship-line { min-height: 32px; display: flex; align-items: center; gap: 10px; color: var(--dim); }
.kinship-line span { width: 7px; height: 7px; border: 1px solid var(--mint); border-radius: 50%; box-shadow: 0 0 14px rgba(143,230,198,.28); }
.kinship-line p { margin: 0; font: italic 14px/1.45 var(--font-display); transition: opacity .25s ease; }
.title-row { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin: 24px 0 28px; }
.eyebrow { margin: 0 0 8px; color: var(--sky); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.mint { color: var(--mint); }.eyebrow.gold { color: var(--gold); }.eyebrow.sky { color: var(--sky); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font: 400 clamp(35px, 4vw, 51px)/1.04 var(--font-display); letter-spacing: -.025em; }
h1 em { color: var(--sky); font-style: italic; }
.lede { max-width: 700px; margin-bottom: 0; color: var(--dim); font-size: 14px; line-height: 1.65; }
.market-stamp { flex: 0 0 auto; min-width: 205px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); text-align: right; }
.market-stamp span, .market-stamp small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.market-stamp strong { display: block; margin: 5px 0 4px; color: var(--mint); font: 500 11px/1 var(--mono); }

.view-bar { display: flex; align-items: center; gap: 14px; padding: 7px 8px 7px 14px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(23,16,12,.88); box-shadow: 0 15px 50px rgba(0,0,0,.16); }
.view-bar > div:first-child { display: grid; gap: 2px; min-width: 100px; }
.view-bar > div:first-child span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.view-bar > div:first-child strong { font-size: 11px; }
.view-tabs { display: flex; align-items: center; gap: 3px; margin-left: auto; padding: 3px; background: rgba(255,255,255,.025); border-radius: 9px; }
.view-tabs button, .quiet-action { border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.view-tabs button { min-height: 30px; padding: 0 11px; color: var(--dim); font-size: 10px; }
.view-tabs button:hover { color: var(--cream); }
.view-tabs button.active { background: rgba(130,215,237,.1); color: var(--sky); box-shadow: inset 0 0 0 1px rgba(130,215,237,.15); }
.quiet-action { min-height: 32px; padding: 0 11px; color: var(--mint); font-size: 9px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.quiet-action:hover { background: rgba(143,230,198,.06); }

.dashboard-view { display: none; animation: reveal .3s ease both; }
.dashboard-view.active { display: block; }
.panel { border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(35,24,18,.91), rgba(22,15,12,.88)); box-shadow: 0 18px 60px rgba(0,0,0,.12); }
.balance-grid { display: grid; grid-template-columns: 1.32fr .84fr .84fr; gap: 12px; }
.total-balance, .asset-card { min-height: 184px; padding: 21px; }
.panel-kicker { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--dim); font-size: 10px; letter-spacing: .04em; }
.inspect { border: 0; padding: 5px 0; background: transparent; color: var(--sky); cursor: pointer; font-size: 9px; font-weight: 700; }
.inspect:hover { color: var(--mint); }
.hero-balance { display: flex; align-items: baseline; gap: 5px; margin: 20px 0 10px; }
.hero-balance > span { color: var(--gold); font: 400 22px/1 var(--font-display); }
.hero-balance strong { font: 400 clamp(38px, 4vw, 55px)/.9 var(--font-display); letter-spacing: -.035em; }
.hero-balance small { margin-left: 5px; color: var(--muted); font-size: 9px; }
.total-balance > p { margin: 0 0 8px; color: var(--dim); font-size: 10px; }
.goal-track, .good-track { height: 3px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.goal-track span, .good-track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--mint)); }
.asset-card { display: flex; flex-direction: column; }
.asset-label { display: flex; align-items: center; gap: 10px; }
.asset-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(143,230,198,.24); border-radius: 50%; color: var(--mint); font: 500 12px/1 var(--mono); }
.compute-card .asset-mark { border-color: rgba(130,215,237,.24); color: var(--sky); }
.asset-label div { display: grid; gap: 1px; }
.asset-label small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.asset-label b { font-size: 10px; }
.asset-card > strong { margin: 22px 0 3px; font: 400 clamp(25px, 2.6vw, 35px)/1 var(--font-display); }
.asset-card > p { margin-bottom: 12px; color: var(--dim); font-size: 9px; }
.panel-link { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: auto; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--dim); cursor: pointer; font-size: 9px; text-align: left; }
.panel-link span { color: var(--sky); }
.panel-link:hover { color: var(--cream); }

.money-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 10px 0 16px; }
.money-actions button { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); cursor: pointer; text-align: left; }
.money-actions button:hover { border-color: rgba(130,215,237,.27); background: rgba(130,215,237,.05); }
.action-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(130,215,237,.08); color: var(--sky); }
.money-actions div { display: grid; gap: 2px; }
.money-actions b { font-size: 10px; }.money-actions small { color: var(--muted); font-size: 8px; }
.money-actions em { margin-left: auto; color: var(--muted); font-style: normal; }

.overview-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 12px; }
.recirculation-card, .good-card, .ripple-panel, .earnings-panel, .realm-spend, .history-panel, .offerings-panel, .impact-hero, .impact-grid > .panel, .goal-panel, .wallet-identity, .wallet-policy, .reserve-panel, .auto-refresh { padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.panel-heading h2 { margin-bottom: 5px; font: 400 21px/1.2 var(--font-display); }
.panel-heading p:not(.eyebrow) { max-width: 670px; margin-bottom: 0; color: var(--dim); font-size: 10px; line-height: 1.55; }
.compact-heading { align-items: center; }
.flow-summary { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; margin: 20px 0 18px; }
.flow-summary div { padding: 10px; border-left: 1px solid var(--line); }
.flow-summary div:first-child { border-left: 0; padding-left: 0; }
.flow-summary span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.flow-summary b { font: 400 18px/1 var(--font-display); }
.flow-summary small { display: block; margin-top: 4px; color: var(--dim); font-size: 7px; }
.flow-ribbon { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 8px; }
.flow-ribbon i { flex: 1; height: 1px; position: relative; background: linear-gradient(90deg, var(--teal), var(--mint)); }
.flow-ribbon i::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-top: 1px solid var(--mint); border-right: 1px solid var(--mint); transform: rotate(45deg); }
.panel-note { margin: 17px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font: italic 11px/1.45 var(--font-display); }
.good-score { display: flex; align-items: baseline; gap: 9px; margin: 25px 0 11px; }
.good-score strong { color: var(--gold); font: 400 35px/1 var(--font-display); }
.good-score span { color: var(--dim); font-size: 8px; line-height: 1.3; }
.good-card ul { display: grid; gap: 9px; margin: 17px 0 0; padding: 0; list-style: none; }
.good-card li { display: flex; justify-content: space-between; gap: 12px; color: var(--dim); font-size: 9px; }
.good-card li b { color: var(--cream); font-weight: 500; }
.ripple-panel { margin-top: 12px; }
.ripple-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 18px; }
.ripple-grid article { min-height: 92px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }
.ripple-grid small { display: block; min-height: 24px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.ripple-grid strong { display: block; margin: 8px 0 4px; font: 400 23px/1 var(--font-display); }
.ripple-grid span { color: var(--dim); font-size: 7px; }

.focus-panel { margin-bottom: 14px; padding: 17px 19px; border: 1px solid rgba(143,230,198,.25); border-radius: 14px; background: linear-gradient(100deg, rgba(15,127,132,.12), rgba(30,21,16,.93)); box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.focus-panel[hidden] { display: none; }
.focus-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.focus-top h2 { margin-bottom: 3px; font: 400 19px/1.2 var(--font-display); }
.focus-top p { margin: 0; color: var(--dim); font-size: 9px; }
.focus-top button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.focus-content { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 14px; }
.focus-content > div { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.08); }
.focus-content span { display: block; color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.focus-content b { display: block; margin-top: 5px; font-size: 11px; }

.earnings-panel { padding: 25px; }
.earning-categories { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 22px 0 13px; }
.earning-category { min-height: 122px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.earning-category header { display: flex; justify-content: space-between; gap: 10px; }
.earning-category header b { font-size: 10px; }.earning-category header strong { color: var(--mint); font: 400 18px/1 var(--font-display); }
.earning-category p { margin: 13px 0 0; color: var(--dim); font-size: 8px; line-height: 1.45; }
.model-note { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 13px; border-left: 2px solid var(--gold); background: rgba(230,185,92,.035); color: var(--dim); font-size: 8px; line-height: 1.55; }
.model-note b { color: var(--gold); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.duna-heading { display: flex; align-items: center; justify-content: space-between; margin: 25px 0 10px; }
.duna-heading h3 { margin: 0; font: 400 15px/1 var(--font-display); }
.duna-heading button { border: 0; background: transparent; color: var(--sky); cursor: pointer; font-size: 8px; }
.duna-table { border-top: 1px solid var(--line); }
.duna-row { display: grid; grid-template-columns: minmax(130px,1.5fr) repeat(4,minmax(68px,.7fr)); align-items: center; min-height: 43px; border-bottom: 1px solid var(--line); font-size: 9px; }
.duna-row.header { min-height: 30px; color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.duna-row span:not(:first-child), .duna-row b { text-align: right; }
.duna-row b { color: var(--mint); }
.flow-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(110px,1fr) 2fr 82px; align-items: center; gap: 12px; margin-top: 14px; }
.bar-row > span { color: var(--dim); font-size: 8px; }.bar-row > b { text-align: right; font-size: 9px; }
.bar-line { height: 3px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }.bar-line i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--sky)); }
.history-list { display: grid; margin-top: 10px; }
.history-item { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; min-height: 44px; border-bottom: 1px solid var(--line); }
.history-item > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: rgba(143,230,198,.07); color: var(--mint); font-size: 9px; }
.history-item div { display: grid; gap: 2px; }.history-item b { font-size: 8px; }.history-item small { color: var(--muted); font-size: 7px; }.history-item strong { font-size: 9px; }
.offerings-panel { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; margin-top: 12px; }
.offerings-panel h2 { margin-bottom: 5px; font: 400 20px/1 var(--font-display); }.offerings-panel p:not(.eyebrow) { margin: 0; color: var(--dim); font-size: 9px; }
.offering-numbers { display: flex; gap: 26px; }.offering-numbers div { display: grid; gap: 4px; }.offering-numbers span { color: var(--muted); font-size: 8px; }.offering-numbers strong { font: 400 18px/1 var(--font-display); }
.offerings-panel .panel-link { width: 120px; }

.impact-hero { padding: 34px; background: radial-gradient(circle at 90% 0%, rgba(143,230,198,.09), transparent 40%), linear-gradient(145deg, rgba(35,24,18,.96), rgba(22,15,12,.9)); }
.impact-hero > h2 { max-width: 760px; margin-bottom: 9px; font: 400 clamp(27px,3vw,39px)/1.14 var(--font-display); }.impact-hero > p:not(.eyebrow) { max-width: 720px; color: var(--dim); font-size: 10px; line-height: 1.55; }
.impact-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 25px; }
.impact-metrics article { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.1); }
.impact-metrics span { display: block; color: var(--muted); font-size: 8px; }.impact-metrics strong { display: block; margin: 7px 0 4px; color: var(--mint); font: 400 26px/1 var(--font-display); }.impact-metrics small { color: var(--dim); font-size: 7px; }
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.use-list { display: grid; gap: 8px; margin-top: 15px; }.use-list div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }.use-list span { color: var(--dim); font-size: 9px; }.use-list b { font-size: 9px; }
.goal-panel { margin-top: 12px; }
.primary-small { min-height: 33px; padding: 0 14px; border: 1px solid rgba(143,230,198,.35); border-radius: 8px; background: linear-gradient(135deg, rgba(15,127,132,.8), rgba(10,89,93,.8)); color: #eafff9; cursor: pointer; font-size: 9px; font-weight: 700; }
.goal-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 19px; }
.goal-card { padding: 13px; border: 1px solid var(--line); border-radius: 11px; }.goal-card header { display: flex; justify-content: space-between; gap: 10px; }.goal-card header span { color: var(--muted); font-size: 8px; }.goal-card header b { font-size: 9px; }.goal-card strong { display: block; margin: 17px 0 8px; font: 400 19px/1 var(--font-display); }.goal-card .goal-track { margin-top: 11px; }

.identity-warning { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; margin-bottom: 12px; border: 1px solid rgba(230,185,92,.25); border-radius: 12px; background: rgba(230,185,92,.045); }
.identity-warning > span { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(230,185,92,.35); border-radius: 50%; color: var(--gold); font: 600 10px/1 var(--mono); }
.identity-warning p { margin: 0; color: var(--dim); font-size: 9px; line-height: 1.5; }.identity-warning b { color: var(--cream); }
.identity-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 12px; }.identity-grid.lower { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.web-only { padding: 5px 8px; border: 1px solid rgba(130,215,237,.2); border-radius: 999px; color: var(--sky); font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.key-block { margin-top: 16px; }.key-block label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }.key-block > div { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 7px 0 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.15); }.key-block code { overflow: hidden; text-overflow: ellipsis; color: var(--mint); font: 9px/1 var(--mono); white-space: nowrap; }.key-block button { margin-left: auto; min-height: 27px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.025); color: var(--dim); cursor: pointer; font-size: 8px; }.sensitive code { color: var(--dim); letter-spacing: .08em; }
.plain-guidance { margin-top: 18px; padding: 13px; border-left: 2px solid var(--mint); background: rgba(143,230,198,.035); }.plain-guidance b { font-size: 10px; }.plain-guidance p { margin: 5px 0 0; color: var(--dim); font-size: 8px; line-height: 1.55; }
.wallet-policy > h2 { margin-bottom: 17px; font: 400 21px/1.2 var(--font-display); }.wallet-policy ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }.wallet-policy li { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; }.wallet-policy li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(130,215,237,.06); color: var(--sky); font: 500 9px/1 var(--mono); }.wallet-policy li div { display: grid; gap: 2px; }.wallet-policy li b { font-size: 9px; }.wallet-policy li small { color: var(--muted); font-size: 7px; }.loss-warning { margin-top: 14px; padding: 11px; border: 1px solid rgba(218,141,114,.18); border-radius: 9px; background: rgba(218,141,114,.04); }.loss-warning b { color: var(--coral); font-size: 9px; }.loss-warning p { margin: 5px 0 0; color: var(--dim); font-size: 7px; line-height: 1.5; }
.reserve-panel > p, .auto-refresh > div > p { color: var(--dim); font-size: 9px; line-height: 1.5; }.reserve-setting, .refresh-rule { display: flex; align-items: center; gap: 11px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }.reserve-setting div { display: grid; gap: 2px; }.reserve-setting span, .refresh-rule span { color: var(--muted); font-size: 8px; }.reserve-setting b, .refresh-rule b { font-size: 10px; }.reserve-setting button { margin-left: auto; border: 0; background: transparent; color: var(--sky); cursor: pointer; font-size: 8px; }
.switch { position: relative; width: 36px; height: 20px; }.switch input { opacity: 0; position: absolute; }.switch span { position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: 99px; background: rgba(255,255,255,.04); cursor: pointer; }.switch span::after { content: ""; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; border-radius: 50%; background: var(--dim); transition: .2s ease; }.switch input:checked + span { border-color: rgba(143,230,198,.4); background: rgba(143,230,198,.1); }.switch input:checked + span::after { transform: translateX(16px); background: var(--mint); }
.danger-zone { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 18px 20px; border: 1px solid rgba(218,141,114,.2); border-radius: 15px; background: rgba(35,18,13,.8); }.danger-zone > div { margin-right: auto; }.danger-zone h2 { margin-bottom: 4px; font: 400 17px/1.1 var(--font-display); }.danger-zone p:not(.eyebrow) { margin: 0; color: var(--dim); font-size: 8px; }.danger-zone button { min-height: 31px; padding: 0 10px; border: 1px solid rgba(218,141,114,.22); border-radius: 7px; background: transparent; color: var(--coral); cursor: pointer; font-size: 8px; }
.resource-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; color: var(--muted); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }.resource-footer b { color: var(--dim); font-weight: 500; }

.ki-pane { height: calc(100vh - 62px); position: sticky; top: 62px; display: flex; flex-direction: column; min-width: 0; background: radial-gradient(circle at 50% 0%, rgba(15,127,132,.12), transparent 32%), linear-gradient(180deg, #15100d, #0e0a08); }
.ki-header { min-height: 76px; display: flex; align-items: center; gap: 11px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.ki-header img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 24px rgba(130,215,237,.14); }
.ki-header div { display: grid; gap: 4px; }.ki-header p { margin: 0; font: 400 17px/1 var(--font-display); }.ki-header span { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 8px; }.ki-header span i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(143,230,198,.5); }
.ki-header > button { margin-left: auto; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--dim); cursor: pointer; }
.ki-context { display: grid; gap: 3px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: rgba(130,215,237,.02); }.ki-context span { color: var(--muted); font-size: 7px; letter-spacing: .09em; text-transform: uppercase; }.ki-context b { overflow: hidden; color: var(--sky); font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.messages { flex: 1; min-height: 160px; overflow-y: auto; padding: 22px 20px 15px; scrollbar-color: rgba(130,215,237,.18) transparent; }
.message { max-width: 95%; margin-bottom: 17px; color: var(--cream); font-size: 11px; line-height: 1.58; animation: message-in .25s ease both; }
.message.ki::before { content: "Ki"; display: block; margin-bottom: 6px; color: var(--sky); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.message.source { width: fit-content; max-width: 90%; margin-left: auto; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px 11px 2px 11px; background: rgba(255,255,255,.035); color: var(--dim); }
.message .inline-action { display: flex; gap: 6px; margin-top: 10px; }.message .inline-action button { min-height: 28px; padding: 0 9px; border: 1px solid rgba(130,215,237,.2); border-radius: 7px; background: rgba(130,215,237,.05); color: var(--sky); cursor: pointer; font-size: 8px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; max-height: 116px; overflow: auto; padding: 0 20px 12px; }
.suggestions button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); color: var(--dim); cursor: pointer; font-size: 8px; text-align: left; }.suggestions button:hover { border-color: rgba(130,215,237,.28); color: var(--sky); }
.composer { display: grid; grid-template-columns: 1fr 31px 34px; align-items: end; gap: 6px; margin: 0 15px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(0,0,0,.18); }.composer:focus-within { border-color: rgba(130,215,237,.35); }
.composer textarea { min-height: 34px; max-height: 98px; resize: none; padding: 8px 7px 5px; border: 0; outline: 0; background: transparent; color: var(--cream); font-size: 10px; line-height: 1.4; }.composer textarea::placeholder { color: var(--muted); }
.voice-button, .send-button { height: 31px; border-radius: 9px; cursor: pointer; }.voice-button { border: 1px solid var(--line); background: transparent; color: var(--dim); }.send-button { border: 0; background: var(--teal); color: white; font-size: 15px; }
.ki-footnote { margin: 10px 18px 12px; color: var(--muted); font-size: 7px; line-height: 1.45; text-align: center; }

.action-sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(5,3,2,.68); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .2s ease; }.action-sheet.open { opacity: 1; pointer-events: auto; }.sheet-card { width: min(520px,100%); position: relative; padding: 27px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--panel-strong); box-shadow: 0 30px 100px rgba(0,0,0,.55); transform: translateY(12px); transition: transform .2s ease; }.action-sheet.open .sheet-card { transform: none; }.sheet-close { position: absolute; right: 14px; top: 13px; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--dim); cursor: pointer; }.sheet-card h2 { margin-bottom: 9px; font: 400 27px/1.1 var(--font-display); }.sheet-card > p:not(.eyebrow) { color: var(--dim); font-size: 10px; line-height: 1.55; }.sheet-body-card { display: grid; gap: 8px; margin: 18px 0; }.sheet-body-card div { display: flex; justify-content: space-between; gap: 16px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; }.sheet-body-card span { color: var(--dim); font-size: 9px; }.sheet-body-card b { font-size: 10px; }.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }.secondary { min-height: 33px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--dim); cursor: pointer; font-size: 9px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: min(520px,calc(100vw - 40px)); padding: 11px 15px; border: 1px solid var(--line-strong); border-radius: 10px; background: #241a14; color: var(--cream); box-shadow: 0 18px 60px rgba(0,0,0,.45); font-size: 9px; opacity: 0; transform: translate(-50%,10px); pointer-events: none; transition: .2s ease; }.toast.visible { opacity: 1; transform: translate(-50%,0); }

@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
@keyframes message-in { from { opacity: 0; transform: translateY(4px); } }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: minmax(0, 64fr) minmax(310px,36fr); }
  .field-scroll { padding-left: 24px; padding-right: 24px; }
  .balance-grid { grid-template-columns: 1fr 1fr; }.total-balance { grid-column: 1/-1; }.overview-grid { grid-template-columns: 1fr; }
  .flow-summary { grid-template-columns: repeat(3,1fr); }.flow-summary div:nth-child(4) { border-left: 0; }
  .ripple-grid { grid-template-columns: 1fr 1fr; }
  .view-bar { align-items: flex-start; flex-wrap: wrap; }.view-tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; }.view-tabs button { flex: 1; white-space: nowrap; }
  .earning-categories, .goal-cards { grid-template-columns: 1fr; }.flow-detail-grid, .identity-grid, .identity-grid.lower, .impact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .topbar { position: relative; padding: 0 14px; }.prototype-note { display: none; }.brand img { width: 105px; }
  .workspace { display: flex; flex-direction: column; }.field-pane { border-right: 0; }.field-scroll { padding: 25px 15px 42px; }
  .ki-pane { height: min(620px,82vh); position: relative; top: 0; border-top: 1px solid rgba(130,215,237,.18); }
  .title-row { align-items: flex-start; flex-direction: column; }.market-stamp { width: 100%; text-align: left; }
  .balance-grid, .money-actions { grid-template-columns: 1fr; }.total-balance { grid-column: auto; }.flow-summary { grid-template-columns: 1fr 1fr; }.flow-summary div:nth-child(odd) { border-left: 0; }
  .flow-ribbon { display: none; }.ripple-grid, .impact-metrics { grid-template-columns: 1fr 1fr; }.offerings-panel { grid-template-columns: 1fr; }.offerings-panel .panel-link { width: 100%; }
  .duna-row { grid-template-columns: 1.4fr repeat(4,.7fr); font-size: 7px; }.duna-row span { overflow: hidden; text-overflow: ellipsis; }.model-note { grid-template-columns: 1fr; }
  .danger-zone { align-items: stretch; flex-direction: column; }.danger-zone > div { margin: 0 0 8px; }
}

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