:root { color-scheme: dark; }
body { background: #050a12; }
.access-shell { width: min(920px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 64px; position: relative; z-index: 1; }
.hero { padding: 22px 4px 18px; }
.back { display: inline-block; color: #9fb0c8; margin-bottom: 36px; }
.eyebrow { margin: 0 0 5px; color: #7dd3fc; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2.4rem, 10vw, 4.4rem); letter-spacing: -.05em; line-height: .95; }
.lead { max-width: 560px; margin-bottom: 0; color: #9fb0c8; font-size: 1rem; }
.next-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px; margin: 12px 0 18px; border: 1px solid rgba(125,211,252,.3); border-radius: 22px; background: linear-gradient(135deg, rgba(14,116,144,.22), rgba(15,23,42,.78)); }
.next-action h2 { margin-bottom: 6px; font-size: 1.25rem; }
.next-action p:last-child { margin-bottom: 0; color: #afbdd0; max-width: 620px; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; }
.status-dot.attention { background: #fbbf24; box-shadow: 0 0 0 5px rgba(251,191,36,.1); }
.status-dot.ready { background: #4ade80; box-shadow: 0 0 0 5px rgba(74,222,128,.12); }
.next-action:has(.status-dot.ready) { border-color: rgba(74,222,128,.34); background: linear-gradient(135deg, rgba(22,101,52,.20), rgba(15,23,42,.78)); }
.primary { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 12px; background: #e6f7ff; color: #07111e; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
.primary:active { transform: translateY(1px); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card, .principles, .roadmap { border: 1px solid rgba(148,163,184,.16); border-radius: 18px; background: rgba(15,23,42,.67); }
.card { padding: 18px; }
.card p { margin-bottom: 0; color: #97a7bd; font-size: .92rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head h2 { margin: 0; font-size: 1rem; }
.pill { padding: 4px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.pill.ready { color: #86efac; background: rgba(34,197,94,.12); }
.pill.waiting { color: #fde68a; background: rgba(245,158,11,.12); }
.pill.progress { color: #bae6fd; background: rgba(14,165,233,.12); }
.principles, .roadmap { margin-top: 14px; padding: 20px; }
.section-head h2 { margin-bottom: 14px; font-size: 1.2rem; }
.rule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rule-list div { padding: 14px; border-radius: 14px; background: rgba(2,6,23,.45); }
.rule-list strong, .rule-list span { display: block; }
.rule-list strong { margin-bottom: 4px; }
.rule-list span { color: #91a2b8; font-size: .86rem; }
.roadmap ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.roadmap li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 13px; color: #75849a; }
.roadmap li > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #334155; border-radius: 50%; font-weight: 800; }
.roadmap strong, .roadmap small { display: block; }
.roadmap small { margin-top: 2px; color: #738399; }
.roadmap li.done, .roadmap li.active { color: #e5edf8; background: rgba(2,6,23,.35); }
.roadmap li.done > span { color: #86efac; border-color: rgba(34,197,94,.45); }
.roadmap li.active > span { color: #fde68a; border-color: rgba(245,158,11,.5); }
dialog { width: min(460px, calc(100% - 28px)); padding: 0; border: 1px solid #334155; border-radius: 20px; background: #0b1220; color: #e5edf8; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(4px); }
dialog form { position: relative; padding: 24px; }
dialog h2 { margin-bottom: 9px; }
dialog p { color: #a5b4c8; }
dialog .note { padding: 12px; border-radius: 12px; background: rgba(14,165,233,.1); color: #cceeff; }
.close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: #93a4ba; font-size: 1.8rem; cursor: pointer; }
@media (max-width: 640px) { .next-action { align-items: stretch; flex-direction: column; } .grid, .rule-list { grid-template-columns: 1fr; } .primary { width: 100%; } .back { margin-bottom: 26px; } }
.hero-row, .section-head.split { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ghost { min-height: 40px; padding: 9px 13px; border: 1px solid rgba(148,163,184,.24); border-radius: 11px; background: rgba(15,23,42,.45); color: #cbd5e1; font: inherit; font-weight: 700; cursor: pointer; }
.ghost:disabled, .primary:disabled { opacity: .55; cursor: wait; }
.approvals { margin-top: 14px; padding: 20px; border: 1px solid rgba(148,163,184,.16); border-radius: 18px; background: rgba(15,23,42,.67); }
.approval-list { display: grid; gap: 10px; }
.approval-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; border-radius: 14px; background: rgba(2,6,23,.48); }
.approval-item strong, .approval-item span, .approval-item small { display: block; }
.approval-item span, .approval-item small, .muted { color: #91a2b8; }
.approval-item p { margin: 7px 0 0; color: #b9c7d8; font-size: .88rem; }
.approval-actions { display: flex; gap: 8px; flex: 0 0 auto; }
@media (max-width: 640px) { .hero-row { align-items: flex-start; } .approval-item { align-items: stretch; flex-direction: column; } .approval-actions { display: grid; grid-template-columns: 1fr 1fr; } }

.secret-field { display: grid; gap: 7px; margin: 16px 0; color: #cbd5e1; font-weight: 700; }
.secret-field span { font-size: .82rem; }
.secret-field input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border: 1px solid #334155; border-radius: 12px; background: #050a12; color: #e5edf8; font: inherit; }
.secret-field input:focus { outline: 2px solid rgba(125,211,252,.45); outline-offset: 2px; }

.secret-vault { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 14px; padding: 20px; border: 1px solid rgba(74,222,128,.22); border-radius: 18px; background: rgba(15,23,42,.67); }
.secret-vault h2 { margin-bottom: 7px; font-size: 1.2rem; }
.secret-vault p { margin-bottom: 0; color: #97a7bd; }
.secret-vault #secretSaveStatus:not(:empty) { margin-top: 8px; color: #86efac; }
@media (max-width: 640px) { .secret-vault { align-items: stretch; flex-direction: column; } }

.connections { margin-top: 14px; padding: 20px; border: 1px solid rgba(125,211,252,.2); border-radius: 18px; background: rgba(15,23,42,.67); }
.connections .section-head h2 { margin-bottom: 0; }
.registry-link { color: #bae6fd; font-weight: 800; white-space: nowrap; }
.connection-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.connection-item { padding: 14px; border-radius: 14px; background: rgba(2,6,23,.48); border: 1px solid rgba(148,163,184,.1); }
.connection-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.connection-head strong, .connection-head small { display: block; }
.connection-head small { margin-top: 2px; color: #7f90a7; font-size: .72rem; }
.connection-item p { display: grid; grid-template-columns: 58px 1fr; gap: 8px; margin: 7px 0 0; color: #9fb0c8; font-size: .8rem; }
.connection-item b { color: #dbe7f5; }
.connection-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(148,163,184,.12); color: #8091a8; font-size: .78rem; }
@media (max-width: 640px) { .connection-list { grid-template-columns: 1fr; } .connections .section-head.split { align-items: flex-start; flex-direction: column; } }
