/* Clause.
   An underwriting desk, not a dapp. The palette comes from Iznik ceramic:
   cobalt and turquoise on warm white, with amber for a signal and clay for a
   catastrophe. Both themes are designed rather than inverted. */

:root {
  color-scheme: light;

  /* surfaces */
  --paper:      #f6f4ef;
  --surface:    #fffdf9;
  --surface-2:  #f1eee7;
  --surface-3:  #e9e5dc;
  --line:       #ddd8cd;
  --line-soft:  #e8e3d9;

  /* ink */
  --ink:        #17191c;
  --ink-2:      #4d5560;
  --ink-3:      #7c8590;

  /* signal */
  --cobalt:     #2c4e9e;
  --cobalt-2:   #4670c9;
  --cobalt-ink: #1b3369;
  --turquoise:  #12897f;
  --amber:      #b06f14;
  --clay:       #ab382c;

  --cobalt-wash:    rgba(44, 78, 158, .08);
  --turquoise-wash: rgba(18, 137, 127, .10);
  --amber-wash:     rgba(176, 111, 20, .10);
  --clay-wash:      rgba(171, 56, 44, .09);

  --shadow-sm: 0 1px 2px rgba(23, 25, 28, .06);
  --shadow:    0 6px 24px rgba(23, 25, 28, .08);
  --shadow-lg: 0 18px 48px rgba(23, 25, 28, .14);

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --rail: 244px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --paper:      #0d1117;
    --surface:    #141a22;
    --surface-2:  #1a212b;
    --surface-3:  #222b37;
    --line:       #2a3441;
    --line-soft:  #212934;

    --ink:        #e8edf4;
    --ink-2:      #a3aebc;
    --ink-3:      #6d7886;

    --cobalt:     #6f9bff;
    --cobalt-2:   #8fb2ff;
    --cobalt-ink: #b9cdff;
    --turquoise:  #3fd0bd;
    --amber:      #eaa64d;
    --clay:       #ec7565;

    --cobalt-wash:    rgba(111, 155, 255, .12);
    --turquoise-wash: rgba(63, 208, 189, .12);
    --amber-wash:     rgba(234, 166, 77, .12);
    --clay-wash:      rgba(236, 117, 101, .12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow:    0 6px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper:      #0d1117;
  --surface:    #141a22;
  --surface-2:  #1a212b;
  --surface-3:  #222b37;
  --line:       #2a3441;
  --line-soft:  #212934;

  --ink:        #e8edf4;
  --ink-2:      #a3aebc;
  --ink-3:      #6d7886;

  --cobalt:     #6f9bff;
  --cobalt-2:   #8fb2ff;
  --cobalt-ink: #b9cdff;
  --turquoise:  #3fd0bd;
  --amber:      #eaa64d;
  --clay:       #ec7565;

  --cobalt-wash:    rgba(111, 155, 255, .12);
  --turquoise-wash: rgba(63, 208, 189, .12);
  --amber-wash:     rgba(234, 166, 77, .12);
  --clay-wash:      rgba(236, 117, 101, .12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow:    0 6px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--cobalt-wash); }

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; }

.mono, code { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- shell */

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

/* ----------------------------------------------------------------- rail */

.rail {
  background: var(--surface);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; }

.seal {
  width: 32px; height: 32px; flex: none;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--cobalt), var(--turquoise));
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.16; }
.brand-text strong { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.brand-text em {
  font-style: normal; font-size: 10.5px; color: var(--ink-3);
  letter-spacing: .06em; text-transform: uppercase;
}

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-item.active {
  background: var(--cobalt-wash);
  color: var(--cobalt);
  border-color: color-mix(in srgb, var(--cobalt) 26%, transparent);
  font-weight: 500;
}

.nav-count {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 0 7px;
  min-width: 26px; text-align: center;
}
.nav-item.active .nav-count { background: var(--surface); border-color: var(--line); color: var(--cobalt); }

.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.chain-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.chain-chip span:first-child {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3);
  display: flex; align-items: center; gap: 7px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--turquoise);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--turquoise) 60%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--turquoise) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.chain-chip .num { font-family: var(--mono); font-size: 12.5px; color: var(--cobalt); }

.theme-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.theme-toggle:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* ----------------------------------------------------------------- main */

.main { padding: 26px 30px 60px; min-width: 0; }

.head { margin-bottom: 22px; }
.head h1 { font-size: 27px; letter-spacing: -.015em; }
.head p { margin: 5px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 68ch; }

.view { animation: rise .24s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- card */

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 14px; }
.card h2 { font-size: 18px; margin-bottom: 4px; }
.card h3 { font-size: 15px; font-family: var(--sans); font-weight: 600; }
.card-note { margin: 0 0 16px; color: var(--ink-2); font-size: 13px; max-width: 74ch; line-height: 1.6; }

.label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); font-weight: 600;
}

/* ------------------------------------------------------------- controls */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > .label { margin-bottom: 1px; }

select, input[type="text"], input[type="number"] {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  font-family: var(--sans);
  transition: border-color .15s ease, background .15s ease;
}
select:hover, input:hover { border-color: var(--ink-3); }
select:focus, input:focus { outline: none; border-color: var(--cobalt); background: var(--surface); }

.segmented { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; border: 1px solid var(--line-soft); }
.segmented button {
  flex: 1; padding: 7px 10px; border: 0; border-radius: 7px; background: transparent;
  color: var(--ink-2); font-size: 13px; cursor: pointer; transition: all .15s ease;
  font-family: var(--mono);
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] {
  background: var(--surface); color: var(--cobalt); font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--cobalt);
  border-radius: var(--radius-sm);
  background: var(--cobalt);
  color: #fff;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}
:root[data-theme="dark"] .btn, :root:not([data-theme="light"]) .btn { color: #0d1117; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn { color: #fff; } }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }

.btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--cobalt); color: var(--cobalt); filter: none; }

/* --------------------------------------------------------------- quoting */

.quote-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1060px) { .quote-grid { grid-template-columns: minmax(0, 1fr); } }

.peril-picker { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.peril-option {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
  transition: all .15s ease;
}
.peril-option:hover { border-color: var(--cobalt); }
.peril-option[aria-pressed="true"] {
  border-color: var(--cobalt);
  background: var(--cobalt-wash);
  box-shadow: inset 3px 0 0 var(--cobalt);
}
.peril-glyph {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-soft);
  font-size: 17px;
}
.peril-option[aria-pressed="true"] .peril-glyph { border-color: color-mix(in srgb, var(--cobalt) 35%, transparent); }
.peril-copy strong { display: block; font-size: 14px; font-weight: 600; }
.peril-copy span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }

.form-rows { display: flex; flex-direction: column; gap: 14px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ----------------------------------------------------------- the price */

.price-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.price-main .label { display: block; margin-bottom: 4px; }
.price-value {
  font-family: var(--display); font-size: 42px; font-weight: 600;
  letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums;
}
.price-sub { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

.verdict {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  border: 1px solid;
}
.verdict[data-kind="diversifying"] { color: var(--turquoise); background: var(--turquoise-wash); border-color: color-mix(in srgb, var(--turquoise) 32%, transparent); }
.verdict[data-kind="partly diversifying"] { color: var(--cobalt); background: var(--cobalt-wash); border-color: color-mix(in srgb, var(--cobalt) 32%, transparent); }
.verdict[data-kind="standalone"] { color: var(--amber); background: var(--amber-wash); border-color: color-mix(in srgb, var(--amber) 32%, transparent); }
.verdict[data-kind="concentrating"] { color: var(--clay); background: var(--clay-wash); border-color: color-mix(in srgb, var(--clay) 32%, transparent); }
.verdict[data-kind="absorbed"] { color: var(--turquoise); background: var(--turquoise-wash); border-color: color-mix(in srgb, var(--turquoise) 32%, transparent); }

.breakdown { margin-bottom: 18px; }
.bar {
  display: flex; height: 13px; border-radius: 7px; overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--surface-2);
}
.bar span { display: block; transition: width .3s ease; }
.bar .el { background: var(--turquoise); }
.bar .rl { background: var(--cobalt); }
.bar .ex { background: var(--ink-3); }

.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; }
.legend-item { display: flex; gap: 9px; align-items: flex-start; }
.legend-swatch { width: 11px; height: 11px; border-radius: 3px; margin-top: 4px; flex: none; }
.legend-swatch.el { background: var(--turquoise); }
.legend-swatch.rl { background: var(--cobalt); }
.legend-swatch.ex { background: var(--ink-3); }
.legend-copy strong { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.legend-copy span { display: block; font-size: 11.5px; color: var(--ink-3); }

.notes { display: flex; flex-direction: column; gap: 9px; margin: 18px 0; }
.note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  font-size: 13px; color: var(--ink-2); line-height: 1.55;
}
.note::before { content: ""; width: 3px; align-self: stretch; border-radius: 2px; background: var(--cobalt); flex: none; }
.note.warn { background: var(--amber-wash); border-color: color-mix(in srgb, var(--amber) 26%, transparent); color: var(--ink); }
.note.warn::before { background: var(--amber); }

.structure { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.structure li {
  font-size: 13px; color: var(--ink-2);
  padding: 8px 12px; background: var(--surface-2);
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  list-style: none;
}

.predicate {
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  padding: 12px 14px;
  background: var(--cobalt-wash);
  border: 1px solid color-mix(in srgb, var(--cobalt) 24%, transparent);
  border-radius: var(--radius-sm);
  color: var(--cobalt-ink);
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 480px; }
th {
  text-align: left; padding: 11px 16px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); font-weight: 600;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
td.strong { color: var(--ink); font-weight: 500; }
td.mono { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: var(--surface-2); }

/* --------------------------------------------------------------- stats */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 15px 17px; box-shadow: var(--shadow-sm);
}
.stat .label { display: block; margin-bottom: 7px; }
.stat-value {
  font-family: var(--display); font-size: 25px; font-weight: 600;
  line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.stat-value small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 3px; }
.unit { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-3); margin-left: 5px; letter-spacing: .02em; }
.stat-note { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.45; }
.stat[data-tone="good"] .stat-value { color: var(--turquoise); }
.stat[data-tone="warn"] .stat-value { color: var(--amber); }
.stat[data-tone="bad"] .stat-value { color: var(--clay); }
.stat[data-tone="key"] .stat-value { color: var(--cobalt); }

/* ---------------------------------------------------------------- bars */

.meter-list { display: flex; flex-direction: column; gap: 11px; }
.meter-row { display: grid; grid-template-columns: minmax(120px, 210px) 1fr auto; gap: 14px; align-items: center; }
.meter-label { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter-track { height: 9px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden; }
.meter-fill { height: 100%; background: var(--cobalt); border-radius: 6px; transition: width .35s ease; }
.meter-fill[data-tone="warn"] { background: var(--amber); }
.meter-value { font-family: var(--mono); font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- chain */

.chain-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1060px) { .chain-grid { grid-template-columns: minmax(0, 1fr); } }

.blockstrip { display: flex; align-items: flex-end; gap: 2px; height: 96px; margin: 6px 0 10px; }
.blockbar { flex: 1 1 0; min-width: 2px; background: var(--surface-3); border-radius: 2px 2px 0 0; position: relative; }
.blockbar .lit { position: absolute; inset: auto 0 0 0; background: var(--turquoise); border-radius: 2px 2px 0 0; }

.pending-list, .feed { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }

.pending-item {
  padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--surface-2); border-left: 3px solid var(--cobalt);
}
.pending-item[data-silent="true"] { border-left-color: var(--amber); background: var(--amber-wash); }
.pending-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 7px; }
.pending-top strong { font-size: 13.5px; }
.pending-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

.feed-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
  animation: slidein .3s ease both;
}
@keyframes slidein { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: none; } }
.feed-item:last-child { border-bottom: 0; }
.feed-block { font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding-top: 2px; }
.feed-body strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.feed-body span { font-size: 12.5px; color: var(--ink-2); }

.pill {
  display: inline-block; padding: 1px 8px; border-radius: 20px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .03em;
  border: 1px solid; margin-left: 7px; vertical-align: 1px;
}
.pill[data-kind="paid"]    { color: var(--turquoise); background: var(--turquoise-wash); border-color: color-mix(in srgb, var(--turquoise) 30%, transparent); }
.pill[data-kind="expired"] { color: var(--amber); background: var(--amber-wash); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.pill[data-kind="lapsed"]  { color: var(--ink-3); background: var(--surface-2); border-color: var(--line); }
.pill[data-kind="failed"]  { color: var(--clay); background: var(--clay-wash); border-color: color-mix(in srgb, var(--clay) 30%, transparent); }
.pill[data-kind="active"]  { color: var(--cobalt); background: var(--cobalt-wash); border-color: color-mix(in srgb, var(--cobalt) 30%, transparent); }

/* ------------------------------------------------------------- toast */

.toast-stack { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 9px; z-index: 60; }
.toast {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--turquoise);
  border-radius: var(--radius-sm); padding: 12px 16px;
  box-shadow: var(--shadow-lg); max-width: 380px;
  animation: pop .25s ease both;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.toast span { font-size: 12.5px; color: var(--ink-2); }
.toast[data-kind="bad"] { border-left-color: var(--clay); }
.toast[data-kind="warn"] { border-left-color: var(--amber); }

/* ------------------------------------------------------------- misc */

.empty { text-align: center; padding: 34px 10px; color: var(--ink-3); font-size: 13.5px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row-gap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.basis {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.6;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line-soft);
}
.basis strong { color: var(--ink); }
.basis[data-level="high"] { background: var(--clay-wash); border-color: color-mix(in srgb, var(--clay) 24%, transparent); }
.basis[data-level="moderate"], .basis[data-level="low"] { background: var(--surface-2); }

/* -------------------------------------------------------- responsive */

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: static; height: auto; flex-direction: row; align-items: center;
    gap: 14px; padding: 12px 16px; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--line-soft);
  }
  .brand-text, .rail-foot .chain-chip { display: none; }
  .rail-foot { margin-top: 0; }
  .nav { flex-direction: row; gap: 4px; }
  .nav-item { white-space: nowrap; }
  .main { padding: 18px 16px 44px; }
  .form-two { grid-template-columns: 1fr; }
  .price-value { font-size: 34px; }
}

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