/* Nodd — policy simulator */
.sim-page { min-height: 100vh; background: radial-gradient(80% 60% at 70% 0%, #131313 0%, var(--bg) 60%); }
.sim-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px var(--gutter); max-width: 1600px; margin: 0 auto; }
.sim-top .brand { color: var(--text); }
.sim { max-width: 1600px; margin: 0 auto; padding: 8px var(--gutter) 48px; }
.sim-head { margin: 18px 0 28px; }
.sim-head .label { margin-bottom: 12px; }
.sim-head h1 { font-size: clamp(34px, 3.6vw, 56px); font-weight: 400; letter-spacing: -.045em; line-height: 1.05; }

.sim-grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 16px; align-items: start; }
.sim-card { border: 1px solid var(--line); border-radius: 12px; background: #0b0b0b; padding: 22px; display: grid; gap: 16px; }
.sim-card-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sim-card-head h2 { font-size: 17px; font-weight: 400; letter-spacing: -.01em; }
.sim-card-head .mono { font-size: 12px; }

.field { display: grid; gap: 8px; }
.field > span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field input, .field select, .chip-add input {
  height: 44px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-2); background: #060606;
  color: var(--text); font-size: 15px; width: 100%; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, #8a8a8a 50%), linear-gradient(135deg, #8a8a8a 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .chip-add input:focus { outline: none; border-color: var(--text); }
.field input::placeholder, .chip-add input::placeholder { color: #555; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.chip-x { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; padding: 5px 6px 5px 10px; border-radius: 4px; border: 1px solid rgba(240,123,114,.5); color: var(--block); background: rgba(240,123,114,.06); animation: paneIn .35s var(--ease); }
.chip-x button { width: 18px; height: 18px; border-radius: 3px; color: var(--block); line-height: 1; }
.chip-x button:hover { background: rgba(240,123,114,.15); }
.chip-add { display: flex; gap: 8px; }
.chip-add input { height: 38px; font-size: 13px; }
.chip-add button { flex-shrink: 0; height: 38px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 12px; }
.chip-add button:hover { border-color: var(--text); }

.lock-btn { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 13px; justify-self: start; transition: border-color .2s, color .2s; }
.lock-dot { width: 10px; height: 10px; border-radius: 50%; background: #333; transition: background .2s, box-shadow .2s; }
.lock-btn[aria-pressed="true"] { border-color: var(--block); color: var(--block); }
.lock-btn[aria-pressed="true"] .lock-dot { background: var(--block); box-shadow: 0 0 0 4px rgba(240,123,114,.2); }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 8px; }
.seg button { height: 36px; border-radius: 5px; font-size: 13px; color: var(--muted); transition: background .2s, color .2s; }
.seg button.is-on { background: var(--text); color: var(--ink); }
.ask { width: 100%; height: 50px; justify-content: flex-start; font-size: 14px; margin-top: 4px; }
.ask .btn-icon { width: 40px; }
.ask:disabled { opacity: .5; }

.sim-decision { min-height: 560px; align-content: start; }
.dec-empty { font-size: 13px; padding: 40px 0; text-align: center; border: 1px dashed var(--line-2); border-radius: 8px; }
.dec-body { display: grid; gap: 16px; animation: paneIn .45s var(--ease); }
.dec-result { font-size: clamp(30px, 2.8vw, 44px); letter-spacing: -.04em; font-weight: 300; line-height: 1; color: var(--allow); }
.dec-result.approve { color: var(--approve); }
.dec-result.block { color: var(--block); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: 13px; }
.checks li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); opacity: 0; animation: checkIn .35s var(--ease) forwards; }
.checks li .ico { font-weight: 500; }
.checks li.ok .ico { color: var(--allow); } .checks li.warn .ico { color: var(--approve); } .checks li.no .ico { color: var(--block); }
.checks li .v { color: var(--muted); }
@keyframes checkIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.nod-box { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 16px; border: 1px solid rgba(227,186,99,.4); border-radius: 10px; background: rgba(227,186,99,.05); animation: paneIn .45s var(--ease); }
.nod-copy p { font-size: 15px; margin-bottom: 12px; }
.nod-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.nod-actions .btn-icon svg { width: 18px; height: 18px; color: var(--text); }
.nod-ring { position: relative; width: 76px; height: 76px; display: grid; place-items: center; font-size: 13px; }
.nod-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.nod-ring circle { fill: none; stroke: #1c1c1c; stroke-width: 2.5; }
.nod-ring .ring { stroke: var(--approve); stroke-dasharray: 106.8; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }

.audit { border-top: 1px solid var(--line); padding-top: 14px; }
.audit-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.audit-list { list-style: none; margin: 0; padding: 0; font-size: 12px; display: grid; gap: 6px; }
.audit-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; animation: feedIn .4s var(--ease); }
.audit-list li span:first-child { color: var(--muted); }
.audit-list .r-allow { color: var(--allow); } .audit-list .r-approve { color: var(--approve); } .audit-list .r-block { color: var(--block); }
.audit-list .empty { color: var(--muted); border-style: dashed; grid-template-columns: 1fr; }

.sim-note { margin-top: 18px; font-size: 12px; }
.sim-note a { text-decoration: underline; }

@media (max-width: 1100px) {
  .sim-grid { grid-template-columns: 1fr 1fr; }
  .sim-decision { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 720px) {
  .sim-top .pill { display: none; }
  .sim-grid { grid-template-columns: 1fr; }
  .audit-list li { grid-template-columns: 1fr auto; }
  .audit-list li span:first-child { display: none; }
}

.sim [hidden] { display: none !important; }
