:root {
  --ink: #0a0f0e;
  --ink-2: #121a18;
  --forest: #17332b;
  --cream: #f2eee4;
  --paper: #faf8f2;
  --muted: #787b74;
  --line: rgba(18, 26, 24, .14);
  --orange: #e77745;
  --orange-dark: #be5630;
  --sage: #a8c4ad;
  --green: #4eb58a;
  --red: #d75d56;
  --shadow: 0 24px 80px rgba(5, 10, 9, .15);
  --radius: 18px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--cream); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.hidden { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: .12em; font-size: 15px; }
.brand em { color: var(--orange); font-style: normal; }
.brand-mark { display: grid; place-items: center; width: 36px; aspect-ratio: 1; background: var(--ink); color: var(--cream); border-radius: 9px; letter-spacing: 0; font-family: Georgia, serif; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--orange-dark); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow > span { width: 28px; height: 2px; background: currentColor; }
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: #f2a07a; }
.button { min-height: 48px; padding: 0 22px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border-radius: 10px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: #1c100b; box-shadow: 0 10px 30px rgba(231,119,69,.22); }
.button-primary:hover { background: #f08758; box-shadow: 0 14px 34px rgba(231,119,69,.3); }
.button-quiet { border-color: var(--line); background: rgba(255,255,255,.3); }
.button-small { min-height: 40px; padding: 0 16px; background: var(--ink); color: white; }
.button.full { width: 100%; }

/* Public site */
.public-page { overflow-x: hidden; }
.public-nav { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.public-nav nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 700; }
.public-nav nav a { padding: 10px 0; }
.public-nav .nav-admin { padding: 10px 16px; border: 1px solid var(--ink); border-radius: 8px; }
.hero { min-height: 650px; padding: 70px 0 95px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.hero h1, .section-heading h1, .section-heading h2, .final-cta h2, .standards h2, .login-intro h1, .legal-shell h1, .payment-card h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(55px, 6.1vw, 86px); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.hero h1 i, .section-heading h1 i, .login-intro h1 i { color: var(--orange); font-weight: 400; }
.hero-lede { max-width: 590px; margin: 28px 0 32px; font-size: 18px; line-height: 1.7; color: #555a55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-line { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 30px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.trust-line b { color: var(--ink); font-size: 15px; margin-right: 4px; }
.hero-card { position: relative; padding: 30px; }
.card-glow { position: absolute; inset: 5% 2%; border-radius: 50%; background: radial-gradient(circle, rgba(231,119,69,.33), rgba(231,119,69,0) 70%); filter: blur(15px); }
.membership-card { position: relative; min-height: 335px; border-radius: 26px; padding: 28px; color: #f7f0df; background: radial-gradient(circle at 80% 0, #2a574a, transparent 36%), linear-gradient(145deg, #162c26, #080d0c 70%); box-shadow: 0 35px 80px rgba(7,16,14,.32); overflow: hidden; transform: rotate(2.4deg); }
.membership-card::before { content: ""; position: absolute; inset: 0; opacity: .17; background: repeating-linear-gradient(120deg, transparent 0 18px, rgba(255,255,255,.08) 19px 20px); }
.membership-top, .membership-foot { position: relative; display: flex; align-items: center; justify-content: space-between; }
.mini-mark { font-family: Georgia, serif; font-size: 22px; font-weight: bold; color: #f19a72; }
.status-dot { display: flex; align-items: center; gap: 8px; color: #b8c6bc; font-size: 10px; letter-spacing: .15em; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6cdaa8; box-shadow: 0 0 12px #6cdaa8; }
.fingerprint { position: relative; width: 140px; height: 118px; margin: 30px auto 15px; }
.fingerprint span { position: absolute; inset: calc(var(--i, 0) * 9px); border: 2px solid rgba(232,153,117,.52); border-bottom-color: transparent; border-radius: 50% 50% 44% 44%; }
.fingerprint span:nth-child(1){--i:0}.fingerprint span:nth-child(2){--i:1}.fingerprint span:nth-child(3){--i:2}.fingerprint span:nth-child(4){--i:3}.fingerprint span:nth-child(5){--i:4}
.membership-number { position: relative; padding: 17px 0; border-block: 1px solid rgba(255,255,255,.13); text-align: center; font-size: 11px; letter-spacing: .18em; }
.membership-foot { margin-top: 20px; }
.membership-foot > div { display: flex; flex-direction: column; gap: 5px; }
.membership-foot small { color: #799087; font-size: 8px; letter-spacing: .16em; }
.membership-foot b { font-size: 11px; letter-spacing: .08em; }
.membership-foot .seal { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #d38361; border-radius: 50%; color: #e59a79; font: 20px Georgia, serif; }
.card-note { position: relative; max-width: 360px; margin: 38px auto 0; color: #686d68; font-size: 13px; line-height: 1.6; text-align: center; }
.ticker { overflow: hidden; padding: 17px 0; background: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .14em; white-space: nowrap; }
.ticker div { min-width: max-content; text-align: center; }
.ticker span { margin: 0 28px; }
.process { padding: 120px 0 135px; }
.section-heading { max-width: 750px; }
.section-heading h2, .standards h2, .final-cta h2 { font-size: clamp(46px, 5.5vw, 72px); }
.section-heading > p:last-child { max-width: 600px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; border-top: 1px solid var(--line); }
.process-grid article { min-height: 240px; padding: 34px 28px 20px 0; border-right: 1px solid var(--line); }
.process-grid article + article { padding-left: 28px; }
.process-grid article:last-child { border: 0; }
.process-grid article > b { color: var(--orange); font-family: Georgia, serif; font-size: 15px; }
.process-grid h3 { margin: 48px 0 12px; font: 25px Georgia, serif; }
.process-grid p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.standards { background: var(--forest); color: var(--cream); }
.standards-inner { padding: 115px 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.standard-list > div { display: grid; grid-template-columns: 45px 170px 1fr; gap: 20px; padding: 27px 0; border-bottom: 1px solid rgba(255,255,255,.13); align-items: baseline; }
.standard-list > div:first-child { border-top: 1px solid rgba(255,255,255,.13); }
.standard-list span { color: #e99570; font-size: 11px; }
.standard-list h3 { margin: 0; font: 23px Georgia, serif; }
.standard-list p { margin: 0; color: #a9b5af; line-height: 1.6; font-size: 14px; }
.final-cta { padding: 125px 0; text-align: center; }
.final-cta .eyebrow { justify-content: center; }
.final-cta .button { margin-top: 32px; }
.public-footer { min-height: 130px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.public-footer > div { display: flex; gap: 24px; }

/* Login and payment */
.login-page, .payment-page { background: var(--ink); color: var(--cream); }
.login-shell { width: min(1240px, calc(100% - 48px)); min-height: 100vh; margin: auto; padding: 32px 0 20px; display: flex; flex-direction: column; }
.login-brand .brand-mark, .system-header .brand-mark { background: var(--orange); color: var(--ink); }
.login-panel { flex: 1; display: grid; grid-template-columns: 1.1fr .75fr; gap: 110px; align-items: center; padding: 50px 6%; }
.login-intro h1 { font-size: clamp(50px, 5.3vw, 76px); }
.login-intro > p:not(.eyebrow) { max-width: 620px; color: #aeb6b1; line-height: 1.75; font-size: 16px; }
.security-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; color: #9eaaa4; font-size: 12px; }
.security-points span::first-letter { color: var(--green); }
.login-card { min-height: 500px; padding: 42px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: #111817; box-shadow: 0 35px 100px rgba(0,0,0,.3); }
.login-card h2 { margin: 25px 0 8px; font: 34px Georgia, serif; }
.login-card p { color: #89948f; line-height: 1.6; }
.login-card p a { color: #ef9871; }
.lock-mark { display: inline-block; color: var(--orange); font-size: 10px; letter-spacing: .16em; border: 1px solid rgba(231,119,69,.4); padding: 8px 10px; border-radius: 6px; }
.login-card form { margin-top: 34px; }
.login-card label, .form-panel label { display: grid; gap: 9px; margin: 18px 0; font-size: 12px; font-weight: 800; color: #bbc3bf; letter-spacing: .04em; }
.input-wrap { display: flex; align-items: center; border: 1px solid rgba(255,255,255,.15); background: #0b1110; border-radius: 10px; padding-left: 16px; }
.input-wrap span { color: var(--orange); font-weight: 900; }
.input-wrap input { width: 100%; height: 52px; border: 0; outline: 0; padding: 0 14px 0 8px; color: white; background: transparent; }
.form-error { min-height: 22px; color: #f1827c !important; font-size: 12px; }
.pulse-lock { display: grid; place-items: center; width: 82px; aspect-ratio: 1; margin: 30px auto; border-radius: 50%; background: var(--orange); color: var(--ink); font: bold 30px Georgia, serif; box-shadow: 0 0 0 12px rgba(231,119,69,.07), 0 0 0 24px rgba(231,119,69,.035); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(231,119,69,.05), 0 0 0 32px rgba(231,119,69,.02); } }
#login-wait-view { text-align: center; }
.code-box { width: 220px; margin: 26px auto; padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: #080d0c; color: #f4a07a; font: 32px/1 monospace; letter-spacing: .25em; text-indent: .25em; }
.waiting-line { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; }
.waiting-line span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.text-button { border: 0; color: #9fa8a3; background: none; text-decoration: underline; cursor: pointer; }
.login-foot { color: #5f6a65; font-size: 10px; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.payment-shell { min-height: 100vh; width: min(520px, calc(100% - 36px)); margin: auto; padding: 38px 0; display: grid; align-content: center; }
.payment-shell > .brand { margin-bottom: 40px; justify-self: center; }
.payment-card { padding: 45px; text-align: center; background: #121a18; border: 1px solid rgba(255,255,255,.11); border-radius: 22px; }
.payment-card h1 { font-size: 42px; }
.payment-card p { color: #9da7a2; line-height: 1.7; }
.payment-card code { display: block; margin: 22px 0; padding: 12px; color: #d4ddd8; background: #080d0c; border-radius: 8px; overflow-wrap: anywhere; }
.payment-icon { display: grid; place-items: center; width: 70px; aspect-ratio: 1; margin: 0 auto 28px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 35px; }

/* Admin */
.admin-page { background: #e9e7df; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 255px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 20px 18px; display: flex; flex-direction: column; background: var(--ink); color: #d5dbd7; z-index: 20; }
.admin-brand { padding: 0 8px 28px; border-bottom: 1px solid rgba(255,255,255,.09); }
.admin-brand .brand-mark { background: var(--orange); color: var(--ink); }
.nav-label { margin: 25px 10px 8px; color: #5f6b66; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.admin-nav { display: grid; gap: 3px; overflow-y: auto; }
.admin-nav button, .system-link { width: 100%; height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 8px; color: #89958f; background: transparent; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.admin-nav button span, .system-link span { width: 20px; color: #6b7771; font-size: 17px; text-align: center; }
.admin-nav button:hover, .admin-nav button.active, .system-link:hover { color: white; background: rgba(255,255,255,.07); }
.admin-nav button.active span { color: var(--orange); }
.system-link { margin-top: auto; border: 1px solid rgba(255,255,255,.08); }
.sidebar-user { margin-top: 14px; padding: 16px 5px 0; display: grid; grid-template-columns: 36px 1fr 24px; gap: 10px; align-items: center; border-top: 1px solid rgba(255,255,255,.09); }
.avatar { display: grid; place-items: center; width: 36px; aspect-ratio: 1; border-radius: 50%; background: #264137; color: #ef9b75; font-weight: 900; }
.sidebar-user div { min-width: 0; }
.sidebar-user b, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user b { font-size: 11px; color: white; }
.sidebar-user small { color: #65706b; font-size: 8px; margin-top: 3px; text-transform: uppercase; }
.sidebar-user button { border: 0; color: #78837e; background: none; cursor: pointer; }
.admin-main { min-width: 0; padding: 28px 36px 50px; }
.admin-topbar { height: 78px; display: flex; align-items: flex-start; justify-content: space-between; }
.admin-topbar .eyebrow { margin: 0 0 5px; font-size: 8px; }
.admin-topbar h1 { margin: 0; font: 32px Georgia, serif; }
.topbar-status { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 20px; color: #5d655f; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.topbar-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.mobile-menu { display: none; }
.admin-view { display: none; }
.admin-view.active { display: block; animation: reveal .25s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-grid article { min-height: 142px; padding: 20px; background: var(--paper); border: 1px solid rgba(0,0,0,.06); border-radius: 14px; }
.metric-grid p { margin: 0; color: #737970; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.metric-grid strong { display: block; margin: 18px 0 8px; font: 38px Georgia, serif; }
.metric-grid small { color: #949991; font-size: 10px; }
.panel { background: var(--paper); border: 1px solid rgba(0,0,0,.07); border-radius: 14px; box-shadow: 0 10px 30px rgba(9,16,13,.035); overflow: hidden; }
.overview-grid { display: grid; grid-template-columns: 1.5fr .7fr; gap: 14px; margin-top: 14px; }
.panel-head { padding: 22px 22px 15px; display: flex; align-items: center; justify-content: space-between; }
.panel-head .eyebrow { margin: 0 0 6px; font-size: 8px; }
.panel-head h2, .form-panel h2 { margin: 0; font: 25px Georgia, serif; }
.live-badge { padding: 6px 9px; border-radius: 12px; background: rgba(78,181,138,.12); color: #27805c; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.chat-feed { overflow-y: auto; }
.chat-feed.compact { height: 350px; padding: 0 20px 15px; }
.chat-feed.large { height: calc(100vh - 230px); min-height: 520px; padding: 18px 24px; }
.chat-message { display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; padding: 13px 0; border-bottom: 1px solid #ece9df; }
.chat-message .avatar { width: 34px; color: #316350; background: #deeadf; }
.chat-message header { display: flex; align-items: center; gap: 8px; }
.chat-message header b { font-size: 11px; }
.chat-message header span, .chat-message time { color: #999d96; font-size: 9px; }
.chat-message p { margin: 5px 0 0; color: #555b55; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-message.deleted p { text-decoration: line-through; opacity: .55; }
.posture-ring { display: grid; place-items: center; height: 200px; }
.posture-ring > div { width: 130px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle, var(--paper) 58%, transparent 59%), conic-gradient(var(--orange) 0 92%, #e1ded4 92%); }
.posture-ring strong { display: block; font: 30px Georgia, serif; }
.posture-ring span { color: #8f948d; font-size: 9px; text-transform: uppercase; }
.posture-row { margin: 0 20px; padding: 13px 0; display: flex; justify-content: space-between; border-top: 1px solid #e6e2d9; color: #7a8079; font-size: 10px; }
.posture-row b { color: #313933; }
.section-tools { min-height: 58px; display: flex; align-items: flex-start; gap: 10px; }
.search-box { width: min(430px, 100%); height: 40px; padding: 0 13px; display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.table-panel { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { height: 46px; padding: 0 17px; border-bottom: 1px solid #e4e1d8; color: #92968f; font-size: 9px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { height: 56px; padding: 8px 17px; border-bottom: 1px solid #ebe8df; color: #555b56; font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: #f3f0e7; }
.member-cell { display: flex; align-items: center; gap: 10px; }
.member-cell .avatar { width: 30px; font-size: 10px; }
.member-cell b, .member-cell small { display: block; }
.member-cell b { color: #252d28; }
.member-cell small { color: #999d96; margin-top: 2px; }
.status { display: inline-flex; padding: 5px 8px; border-radius: 10px; background: #e7ece7; color: #4b6558; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.status.banned, .status.failed, .status.denied { color: #a23b38; background: #f6dedb; }
.status.active, .status.finished, .status.approved { color: #27694f; background: #ddf0e6; }
.status.waiting, .status.pending, .status.confirming { color: #956127; background: #f5e9d3; }
.split-layout { display: grid; grid-template-columns: 340px 1fr; gap: 14px; }
.split-layout.narrow-form { grid-template-columns: 320px 1fr; }
.form-panel { padding: 24px; overflow: visible; }
.form-panel label { color: #4e5751; }
.form-panel input, .form-panel textarea, .form-panel select { width: 100%; border: 1px solid var(--line); border-radius: 8px; outline: 0; padding: 11px 12px; background: white; color: var(--ink); resize: vertical; }
.field-note { color: #8a9089; font-size: 10px; line-height: 1.5; }
.campaign-list, .admin-list { padding: 0 20px 20px; }
.campaign-item, .admin-item { padding: 18px 0; border-bottom: 1px solid #e6e2d9; }
.campaign-item:last-child, .admin-item:last-child { border: 0; }
.campaign-item header, .admin-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.campaign-item h3 { margin: 0; font: 18px Georgia, serif; }
.campaign-item p { color: #727871; font-size: 11px; line-height: 1.55; }
.campaign-stats { display: flex; gap: 22px; }
.campaign-stats span { color: #8e938c; font-size: 9px; }
.campaign-stats b { display: block; color: var(--ink); font-size: 15px; }
.copy-box { padding: 12px; background: #f0ede4; border-radius: 8px; white-space: pre-wrap; }
.danger-button, .quiet-button { border: 0; padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.danger-button { color: #a63c38; background: #f7dfdc; }
.quiet-button { color: #345f4c; background: #e3eee7; }
.item-actions { display: flex; gap: 7px; }
.settings-panel { padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 14px; }
.settings-panel h2 { margin: 0; font: 28px Georgia, serif; }
.settings-panel p:not(.eyebrow) { max-width: 730px; color: #747a73; font-size: 12px; line-height: 1.6; }
.switch { position: relative; flex: 0 0 auto; width: 54px; height: 30px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 20px; background: #c8cbc4; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 4px; top: 4px; border-radius: 50%; background: white; transition: .2s; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(24px); }
.lock-pill, .owner-badge { padding: 7px 10px; border: 1px solid #cfcac0; border-radius: 6px; color: #7a7f78; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.user-dialog { width: min(760px, calc(100% - 30px)); max-height: 90vh; padding: 0; border: 0; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); overflow: auto; }
.user-dialog::backdrop { background: rgba(7,12,10,.65); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 18px; top: 14px; border: 0; background: none; font-size: 28px; cursor: pointer; }
.profile-head { padding: 36px 35px 24px; background: var(--forest); color: white; }
.profile-head h2 { margin: 8px 0; font: 34px Georgia, serif; }
.profile-head p { margin: 0; color: #a9b7b0; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #e0ddd4; }
.profile-stats div { padding: 17px; background: var(--paper); }
.profile-stats small, .profile-stats b { display: block; }
.profile-stats small { color: #92978f; font-size: 8px; text-transform: uppercase; }
.profile-stats b { margin-top: 6px; font: 20px Georgia, serif; }
.profile-body { padding: 25px 35px 35px; }
.profile-timeline { max-height: 230px; overflow: auto; }
.profile-timeline div { padding: 10px 0; border-bottom: 1px solid #e5e1d8; font-size: 11px; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 100; max-width: 360px; padding: 13px 17px; border-radius: 9px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: none; }

/* System and legal */
.system-page { background: var(--ink); color: var(--cream); }
.system-header { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); }
.system-header > div { display: flex; align-items: center; gap: 22px; font-size: 11px; }
.owner-badge { border-color: rgba(231,119,69,.4); color: #ef9871; }
.system-main { padding: 70px 0 90px; }
.system-main .section-heading > p:last-child { color: #9aa59f; }
.system-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 45px 0 20px; }
.system-grid article { padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #111817; }
.system-grid small, .system-grid strong { display: block; }
.system-grid small { color: #68746e; font-size: 9px; text-transform: uppercase; }
.system-grid strong { margin-top: 12px; font: 24px Georgia, serif; }
.system-browser { background: #101715; border-color: rgba(255,255,255,.1); }
.system-toolbar { min-height: 58px; padding: 9px 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.09); }
.system-toolbar select { height: 38px; padding: 0 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; background: #080d0c; color: white; }
.system-toolbar #file-path { color: #6f7b75; font: 11px monospace; }
.browser-grid { min-height: 570px; display: grid; grid-template-columns: 300px 1fr; }
.file-list { border-right: 1px solid rgba(255,255,255,.09); overflow-y: auto; }
.file-item { width: 100%; min-height: 42px; padding: 8px 14px; display: flex; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid rgba(255,255,255,.05); background: transparent; color: #aab4af; text-align: left; cursor: pointer; font-size: 11px; }
.file-item:hover { background: rgba(255,255,255,.05); color: white; }
.file-item span { color: var(--orange); }
.file-preview { margin: 0; padding: 22px; color: #b8c5be; background: #080d0c; overflow: auto; font: 11px/1.65 "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; }
.legal-page { background: var(--paper); }
.legal-shell { padding: 38px 0 100px; }
.legal-shell article { max-width: 760px; margin: 100px auto 0; }
.legal-shell h1 { font-size: 64px; }
.legal-shell h2 { margin-top: 40px; font: 27px Georgia, serif; }
.legal-shell p { color: #656b65; font-size: 16px; line-height: 1.8; }
.legal-date { margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px !important; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 25px; }
  .hero h1 { font-size: 62px; }
  .login-panel { gap: 45px; padding-inline: 0; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .control-panel { display: none; }
  .split-layout, .split-layout.narrow-form { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .shell { width: min(100% - 30px, 680px); }
  .public-nav nav a:not(.nav-admin) { display: none; }
  .hero { padding-top: 45px; grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; width: 100%; justify-self: center; }
  .trust-line { flex-wrap: wrap; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid article:nth-child(2) { border-right: 0; }
  .standards-inner { grid-template-columns: 1fr; gap: 50px; }
  .standard-list > div { grid-template-columns: 40px 1fr; }
  .standard-list p { grid-column: 2; }
  .public-footer { padding: 35px 0; flex-wrap: wrap; gap: 20px; }
  .login-panel { grid-template-columns: 1fr; padding: 70px 0; }
  .login-intro { text-align: center; }
  .login-intro .eyebrow, .security-points { justify-content: center; }
  .login-intro > p:not(.eyebrow) { margin-inline: auto; }
  .login-card { width: min(100%, 500px); justify-self: center; }
  .admin-layout { display: block; }
  .sidebar { position: fixed; left: -270px; width: 255px; transition: left .25s; }
  .sidebar.open { left: 0; box-shadow: 20px 0 80px rgba(0,0,0,.25); }
  .admin-main { padding: 20px 16px 40px; }
  .mobile-menu { display: block; border: 0; background: transparent; font-size: 24px; }
  .admin-topbar > div:first-of-type { margin-right: auto; }
  .topbar-status { display: none; }
  .system-grid { grid-template-columns: repeat(2, 1fr); }
  .browser-grid { grid-template-columns: 1fr; }
  .file-list { max-height: 260px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .file-preview { min-height: 400px; }
}

@media (max-width: 520px) {
  .public-nav { height: 75px; }
  .hero { padding: 40px 0 70px; }
  .hero h1, .login-intro h1 { font-size: 48px; }
  .hero-lede { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-card { padding: 8px; }
  .membership-card { min-height: 300px; padding: 22px; transform: none; }
  .process { padding: 85px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article, .process-grid article + article { min-height: 190px; padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-grid h3 { margin-top: 28px; }
  .standards-inner { padding: 85px 0; }
  .standard-list > div { grid-template-columns: 30px 1fr; }
  .final-cta { padding: 90px 0; }
  .public-footer > p { display: none; }
  .login-shell { width: min(100% - 24px, 500px); }
  .login-intro { display: none; }
  .login-panel { padding: 40px 0; }
  .login-card { min-height: 470px; padding: 28px 22px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { min-height: 125px; }
  .metric-grid strong { font-size: 30px; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .settings-panel { align-items: flex-start; }
  .system-grid { grid-template-columns: 1fr; }
  .system-header .brand span:last-child { display: none; }
  .legal-shell article { margin-top: 70px; }
  .legal-shell h1 { font-size: 47px; }
}

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