/* =====================================================================
   RSI · enterrsi.si · rsi-n.css (v1.16.0, Nov 30, 2026)
   The Danger Ratings, The Safety Gap, Who Runs This Agent?, The
   Uninsurable List and The Red Lines. Uses the site's tokens and the
   shared pieces of rsi-g, rsi-o, rsi-s, rsi-x, rsi-t and rsi-d (cards,
   chips, tiles, tables, rows that span). Metrics and panels are centered,
   every card opens its area, keys and addresses stay on one line.
   ===================================================================== */

/* ---------------- shared ---------------- */
.band > .wrap > .sec-head + .dr-scale, .band > .wrap > .sec-head + .sg-big, .band > .wrap > .sec-head + .sg-lines, .band > .wrap > .sec-head + .wr-form { margin-top: 0; }
.sw-chip.dr-lv { white-space: nowrap; }

/* ---------------- The Danger Ratings: the scale ---------------- */
.dr-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.dr-step { display: grid; gap: 10px; justify-items: center; align-content: start; text-align: center; text-decoration: none; padding: clamp(18px, 2.2vw, 26px); }
.dr-step > * { margin: 0; }
.dr-step .body-copy { color: var(--ice); font-size: 15px; line-height: 1.55; }
.dr-step .sw-small { color: var(--mute); }
.dr-step-n { font-family: var(--f-display); font-size: clamp(34px, 3.6vw, 48px); line-height: 1; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dr-s3 { border-color: rgba(255, 154, 168, .35); } .dr-s2 { border-color: rgba(255, 210, 122, .3); } .dr-s1 { border-color: rgba(95, 227, 166, .28); }
a.dr-step { transition: transform .25s var(--ease, ease), border-color .25s var(--ease, ease), box-shadow .25s var(--ease, ease); }
a.dr-step:hover, a.dr-step:focus-visible { transform: translateY(-3px); border-color: rgba(79, 163, 255, .5); box-shadow: 0 0 0 1px rgba(79, 163, 255, .16), 0 14px 38px -18px rgba(79, 163, 255, .55); }
@media (max-width: 1023px) { .dr-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dr-scale { grid-template-columns: minmax(0, 1fr); } }
.dr-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: clamp(18px, 2.4vw, 28px) auto 0; max-width: 1100px; text-align: center; }
.dr-area { margin: 0; font-size: 14.5px; color: var(--mute); }
.dr-area b { color: var(--ice); font-weight: 600; }
.dr-table td:nth-child(n+4), .dr-table th:nth-child(n+4) { text-align: center; }
.dr-table td:nth-child(3) { white-space: nowrap; }
.dr-model .dr-ar { flex: 1 1 230px; }
.dr-words { border-left: 2px solid rgba(79, 163, 255, .4); padding-left: 12px; font-size: 15px !important; color: var(--ice); }
.dr-from { margin: -6px 0 0; font-size: 10.5px; color: var(--dim); }
.dr-notyet { margin-top: clamp(16px, 2vw, 24px); }

/* ---------------- The Safety Gap ---------------- */
.sg-big { display: grid; gap: 10px; justify-items: center; text-align: center; text-decoration: none; padding: clamp(26px, 4vw, 48px) clamp(16px, 3vw, 40px); margin: 0 auto clamp(18px, 2.4vw, 28px); max-width: 920px; }
.sg-big > * { margin: 0; }
.sg-big-v { font-family: var(--f-display); font-size: clamp(64px, 11vw, 148px); line-height: 1; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.sg-big .k { font-size: 12px; max-width: 60ch; white-space: normal; }
.sg-big .body-copy { color: var(--ice); font-size: clamp(16px, 1.5vw, 19px); }
a.sg-big { transition: transform .25s var(--ease, ease), border-color .25s var(--ease, ease); }
a.sg-big:hover, a.sg-big:focus-visible { transform: translateY(-3px); border-color: rgba(79, 163, 255, .5); }
.sg-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.sg-lines > .sg-total { grid-column: 1 / -1; }
.sg-lines > .sg-line:only-of-type { grid-column: 1 / -1; }
@media (max-width: 760px) { .sg-lines { grid-template-columns: minmax(0, 1fr); } }
.sg-line { display: grid; gap: 12px; align-content: start; }
.sg-line > * { margin: 0; }
.sg-line-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sg-line-h .h3 { margin: 0; flex: 1 1 220px; font-size: clamp(17px, 1.4vw, 20px); }
.sg-amt { margin: 0; font-family: var(--f-display); font-size: clamp(20px, 2vw, 28px); color: var(--ion); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg-line .body-copy { color: var(--ice); font-size: 15.5px; line-height: 1.6; max-width: none; }
.sg-total { display: grid; gap: 6px; justify-items: center; text-align: center; }
.sg-total > * { margin: 0; }
.sg-total .sg-amt { font-size: clamp(28px, 3vw, 40px); background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sg-out > .sw-card { flex-basis: 340px; }
.sg-out .k { color: var(--ion); }
.sg-labs td:nth-child(2) { white-space: nowrap; font-family: var(--f-display); color: var(--ice); }
.sg-labs td a { color: var(--ice); }
.sg-ask { margin-top: clamp(16px, 2vw, 24px); display: grid; gap: 12px; justify-items: center; text-align: center; }
.sg-ask > * { margin: 0; }
.sg-asks { margin: 0; padding: 0; list-style: none; counter-reset: sga; display: grid; gap: 10px; max-width: 760px; }
.sg-asks li { counter-increment: sga; color: var(--ice); font-size: 16px; line-height: 1.55; }
.sg-asks li::before { content: counter(sga) ". "; font-family: var(--f-display); color: var(--ion); }
.sg-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.sg-steps.sg-chk { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(12px, 1.6vw, 20px); }
.sg-step { display: grid; gap: 8px; justify-items: center; align-content: center; text-align: center; text-decoration: none; }
.sg-step > * { margin: 0; }
.sg-step .sg-amt { white-space: normal; overflow-wrap: anywhere; font-size: clamp(17px, 1.7vw, 24px); }
.sg-step .k { white-space: normal; }
@media (max-width: 820px) { .sg-steps, .sg-steps.sg-chk { grid-template-columns: minmax(0, 1fr); } }

/* ---------------- The Uninsurable List ---------------- */
.un-table td { min-width: 9em; }
.un-table td:first-child { min-width: 11em; }
.un-table td .sw-chip { margin-right: 6px; }
.un-lines > .sw-card { flex-basis: 340px; }
.un-two { margin-top: clamp(16px, 2vw, 24px); }
#list .xd-eh .k, .dr-model .xd-eh .k, .rl-lines .xd-eh .k { flex: 0 1 auto; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }

/* ---------------- The Red Lines ---------------- */
.rl-dl { display: grid; gap: 6px; justify-items: center; text-align: center; text-decoration: none; max-width: 760px; margin: 0 auto; }
.rl-dl > * { margin: 0; }
.rl-dl .g-v { font-family: var(--f-display); font-size: clamp(44px, 6vw, 72px); line-height: 1.1; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rl-dl .k { white-space: normal; max-width: 56ch; }
.rl-lines .rl-d { margin: 0; color: var(--ice); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; max-width: none; }
.rl-b li .sw-chip { margin-right: 6px; vertical-align: 1px; }
.rl-b .sw-src { color: var(--mute); }
.rl-un + .rl-us { margin-top: clamp(16px, 2vw, 24px); }
.rl-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: clamp(12px, 1.6vw, 18px); }
.rl-tl > li { flex: 1 1 260px; display: grid; }
.rl-tl-c { display: grid; gap: 8px; align-content: start; text-decoration: none; height: 100%; }
.rl-tl-c > * { margin: 0; }
.rl-tl-c .k { color: var(--ion); }
.rl-tl-c .body-copy { color: var(--ice); font-size: 15px; line-height: 1.55; }
a.rl-tl-c, a.rl-map { transition: transform .25s var(--ease, ease), border-color .25s var(--ease, ease); }
a.rl-tl-c:hover, a.rl-tl-c:focus-visible, a.rl-map:hover, a.rl-map:focus-visible { transform: translateY(-3px); border-color: rgba(79, 163, 255, .5); }
.rl-map { text-decoration: none; }

/* ---------------- Who Runs This Agent? ---------------- */
.wr-num { font-variant-numeric: tabular-nums; }
.wr-form { display: grid; gap: 14px; }
.wr-form > * { margin: 0; }
.wr-form label, .wr-form fieldset { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.wr-form .k { color: var(--dim); }
.wr-form input[type="text"], .wr-form input[type="search"], .wr-form input[type="url"], .wr-form input[type="date"], .wr-form select, .wr-form textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--ctl-line, var(--line-2)); background: var(--ctl, #0b0c0f); color: var(--ice);
  font-family: var(--f-body); font-size: 16px; line-height: 1.45; }
.wr-form textarea { resize: vertical; min-height: 104px; }
.wr-form input:focus, .wr-form select:focus, .wr-form textarea:focus { outline: 2px solid var(--ion); outline-offset: 1px; border-color: var(--ion); }
.wr-form input::placeholder, .wr-form textarea::placeholder { color: var(--dim); }
.wr-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wr-row input { flex: 1 1 280px; }
.wr-row .btn { flex: 0 0 auto; min-height: 48px; }
.wr-look { max-width: 980px; margin: 0 auto; justify-items: stretch; }
.wr-look > .k, .wr-look > .sw-small, .wr-ex { text-align: center; }
.wr-ex { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; color: var(--mute); font-size: 14px; }
.wr-look .g-msg, .wr-send .g-msg { text-align: center; flex: none; }
.wr-out { display: grid; gap: clamp(12px, 1.6vw, 18px); margin-top: clamp(14px, 2vw, 22px); }
.wr-out:empty { display: none; }
.wr-meta dd { overflow-wrap: anywhere; }
.wr-one { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; margin: 2px 0; }
.wr-one code { display: block; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow-x: auto; font-family: var(--f-mono); font-size: 13px; color: var(--ice); padding: 4px 0; scrollbar-width: thin; }
.wr-copy { flex: none; }
.wr-send { max-width: 980px; margin: 0 auto; }
.wr-type { display: flex !important; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }
.wr-type legend { width: 100%; text-align: center; margin-bottom: 4px; }
.wr-type label { display: inline-flex; align-items: center; gap: 8px; color: var(--ice); font-size: 16px; }
.wr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(14px, 2vw, 22px); }
@media (max-width: 700px) { .wr-grid { grid-template-columns: minmax(0, 1fr); } }
.wr-stopnote { text-align: center; }
.wr-send .cta-row, .wr-card .cta-row { justify-content: center; }
.wr-board td:first-child a { color: var(--ice); }
.wr-ops { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 1100px; margin: 0 auto; }
.wr-ops > * { margin: 0; }
.wr-ops [hidden] { display: none !important; }
#wr-mine { display: grid; gap: clamp(12px, 1.6vw, 18px); width: 100%; text-align: left; }
.wr-agent { display: grid; gap: 14px; }
.wr-agent > * { margin: 0; }
.wr-inbox { display: grid; gap: 10px; }
.wr-msg-i { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.wr-msg-i > * { margin: 0; }
.wr-msg-i .cta-row { justify-content: flex-start; }
.wr-code pre { margin: 0; overflow-x: auto; font-family: var(--f-mono); font-size: 13px; line-height: 1.6; color: var(--ice); white-space: pre; }
.wr-code { margin-top: clamp(16px, 2vw, 24px); display: block; min-width: 0; max-width: 100%; overflow: hidden; }
.wr-code pre { max-width: 100%; }
.band .wrap > .sw-note { text-align: center; }

/* ---------------- the home band: five cards, three then two ---------------- */
.nw-home { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nw-home > a.card { grid-column: span 2; text-decoration: none; }
.nw-home > a.card:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1023px) { .nw-home > a.card { grid-column: span 3; } .nw-home > a.card:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .nw-home > a.card, .nw-home > a.card:nth-child(n+4) { grid-column: 1 / -1; } }
