:root { color-scheme: dark; --ink:#f7f3ea; --muted:#aaa79f; --surface:rgba(28,28,27,.88); --line:rgba(255,255,255,.12); --accent:#e7ff6e; --accent-ink:#171811; --error:#ff9d91; }
* { box-sizing: border-box; }
body { min-height:100vh; margin:0; display:grid; grid-template-rows:1fr auto; overflow-x:hidden; background:radial-gradient(circle at 75% 18%,rgba(97,112,255,.24),transparent 28rem),radial-gradient(circle at 8% 90%,rgba(231,255,110,.12),transparent 26rem),#101110; color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
body::before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.22; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"); }
.shell { width:min(1120px,calc(100% - 40px)); margin:auto; padding:72px 0; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr); align-items:center; gap:clamp(48px,9vw,132px); }
.eyebrow,.card-label { margin:0 0 18px; color:var(--accent); font-size:.74rem; font-weight:750; letter-spacing:.16em; text-transform:uppercase; }
h1 { max-width:700px; margin:0; font-family:Georgia,"Times New Roman",serif; font-size:clamp(4.4rem,10vw,9rem); font-weight:400; letter-spacing:-.07em; line-height:.82; }
h1 span { color:var(--accent); }
.lede { max-width:570px; margin:38px 0 0; color:var(--muted); font-size:clamp(1.05rem,2vw,1.35rem); line-height:1.6; }
.auth-card { position:relative; padding:clamp(28px,4vw,44px); border:1px solid var(--line); border-radius:26px; background:var(--surface); box-shadow:0 30px 90px rgba(0,0,0,.34); backdrop-filter:blur(20px); }
.auth-card h2 { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:clamp(2rem,4vw,2.65rem); font-weight:400; line-height:1.08; }
.card-copy,.success-message { margin:16px 0 28px; color:var(--muted); line-height:1.55; }
button { width:100%; min-height:52px; border-radius:999px; font:inherit; font-weight:720; cursor:pointer; transition:transform 150ms ease,background 150ms ease,opacity 150ms ease; }
button:hover:not(:disabled) { transform:translateY(-2px); }
button:focus-visible { outline:3px solid rgba(231,255,110,.4); outline-offset:3px; }
button:disabled { cursor:wait; opacity:.55; }
.primary-button { display:flex; align-items:center; justify-content:center; gap:12px; border:0; background:var(--accent); color:var(--accent-ink); }
.secondary-button { border:1px solid var(--line); background:transparent; color:var(--ink); }
.status { min-height:20px; margin:22px 0 0; color:var(--muted); font-size:.84rem; }
.status[data-kind="error"] { color:var(--error); }
.status[data-kind="success"],.status[data-kind="ready"] { color:var(--accent); }
.profile { display:flex; align-items:center; gap:16px; }
.profile h2 { font-size:2rem; }
.profile .card-copy { margin:7px 0 0; overflow-wrap:anywhere; }
.profile img { width:58px; height:58px; border-radius:50%; border:2px solid var(--accent); }
.success-message { padding:18px; border:1px solid var(--line); border-radius:14px; }
footer { width:min(1120px,calc(100% - 40px)); margin:0 auto; padding:22px 0 28px; display:flex; justify-content:space-between; border-top:1px solid var(--line); color:var(--muted); font-size:.82rem; letter-spacing:.04em; }
.dashboard { min-height:100vh; }
.dashboard-header { width:min(1320px,calc(100% - 48px)); min-height:86px; margin:0 auto; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:30px; border-bottom:1px solid var(--line); }
.brand { color:var(--ink); font-family:Georgia,"Times New Roman",serif; font-size:1.65rem; text-decoration:none; letter-spacing:-.04em; }
.brand span { color:var(--accent); }
.dashboard-header nav { display:flex; align-items:center; justify-content:center; gap:4px; }
.nav-link { width:auto; min-height:auto; padding:10px 14px; border:0; border-radius:999px; background:transparent; color:var(--muted); font-size:.85rem; text-decoration:none; }
.nav-link.active { background:rgba(231,255,110,.1); color:var(--accent); }
.nav-link:disabled,.action-card:disabled { cursor:not-allowed; }
.dashboard-profile { justify-self:end; }
.dashboard-profile div { display:grid; gap:2px; }
.dashboard-profile strong { font-size:.85rem; }
.dashboard-profile span { max-width:210px; overflow:hidden; color:var(--muted); font-size:.72rem; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-profile img { width:38px; height:38px; }
.icon-button { width:38px; min-height:38px; margin-left:6px; border:1px solid var(--line); background:transparent; color:var(--ink); }
.dashboard-main { width:min(1180px,calc(100% - 48px)); margin:0 auto; padding:74px 0 100px; }
.dashboard-welcome { display:grid; grid-template-columns:minmax(0,1fr) minmax(290px,.45fr); align-items:end; gap:60px; }
.dashboard-welcome h1 { max-width:820px; font-size:clamp(4rem,8.5vw,7.6rem); }
.account-panel { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:13px; padding:20px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.account-panel strong { font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; }
.account-panel p { margin:5px 0 0; color:var(--muted); font-size:.82rem; }
.status-dot { width:10px; height:10px; border-radius:50%; background:var(--accent); box-shadow:0 0 20px rgba(231,255,110,.7); }
.attention-summary { margin:60px 0 0; padding:24px; display:grid; grid-template-columns:minmax(250px,1fr) repeat(2,minmax(180px,.45fr)); align-items:stretch; gap:14px; border:1px solid var(--line); border-radius:22px; background:var(--surface); }
.attention-summary > div { padding:8px 14px; }
.attention-summary .eyebrow { margin-bottom:8px; }
.attention-summary h2 { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.7rem,3vw,2.5rem); font-weight:400; }
.attention-summary p:not(.eyebrow) { margin:10px 0 0; color:var(--muted); font-size:.84rem; line-height:1.5; }
.attention-card { min-height:120px; padding:18px; display:grid; grid-template-columns:auto 1fr; align-content:center; align-items:baseline; gap:3px 10px; border:1px solid var(--line); border-radius:17px; background:rgba(255,255,255,.035); color:var(--ink); text-align:left; }
.attention-card strong { grid-row:1 / 3; font-family:Georgia,"Times New Roman",serif; font-size:2.6rem; font-weight:400; }
.attention-card span { font-size:.78rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.attention-card small { color:var(--muted); }
.attention-overdue strong { color:var(--error); }
.attention-due-soon strong { color:#ffc76e; }
.text-button { width:auto; min-height:auto; padding:8px 10px; border:0; background:transparent; color:var(--accent); font-size:.8rem; }
.quick-actions { margin:64px 0 88px; display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.action-card { min-height:150px; padding:24px; display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; align-items:center; gap:4px 16px; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.035); color:var(--ink); text-align:left; opacity:.74; }
.action-card span { grid-row:1 / 3; color:var(--accent); font-size:2rem; font-weight:400; }
.action-card strong { align-self:end; font-family:Georgia,"Times New Roman",serif; font-size:1.25rem; font-weight:400; }
.action-card small { align-self:start; color:var(--muted); }
.primary-action { background:rgba(231,255,110,.08); }
.contact-panel { margin:-56px 0 88px; padding:clamp(24px,4vw,42px); display:grid; grid-template-columns:minmax(240px,.75fr) minmax(320px,1fr); gap:50px; border:1px solid var(--line); border-radius:24px; background:var(--surface); }
.contact-panel h2 { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:clamp(2rem,4vw,3.4rem); font-weight:400; line-height:1.05; }
.contact-panel form { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.contact-panel label { display:grid; gap:8px; color:var(--muted); font-size:.78rem; font-weight:700; letter-spacing:.04em; }
.contact-panel label:nth-child(3),.contact-panel .full-field,.contact-panel .form-actions,.contact-panel .status { grid-column:1 / -1; }
.contact-panel input,.contact-panel select,.contact-panel textarea { width:100%; min-height:48px; padding:0 14px; border:1px solid var(--line); border-radius:12px; background:#171817; color:var(--ink); font:inherit; }
.contact-panel textarea { padding:14px; resize:vertical; }
.contact-panel input:focus,.contact-panel select:focus,.contact-panel textarea:focus { outline:3px solid rgba(231,255,110,.25); border-color:var(--accent); }
.form-actions { display:flex; justify-content:flex-end; gap:10px; }
.form-actions button { width:auto; min-width:130px; padding:0 20px; }
.section-heading { margin-bottom:24px; display:flex; align-items:end; justify-content:space-between; gap:40px; }
.section-heading .eyebrow { margin-bottom:10px; }
.section-heading h2 { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:clamp(2.6rem,5vw,4.5rem); font-weight:400; letter-spacing:-.045em; }
.section-heading > p { max-width:390px; margin:0 0 8px; color:var(--muted); line-height:1.6; }
.tier-list { border-top:1px solid var(--line); }
.phonebook-state { min-height:46px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.phonebook-state .status { margin:0; }
.tier { border-bottom:1px solid var(--line); }
.tier summary { min-height:112px; padding:22px 8px; display:grid; grid-template-columns:70px 1fr auto; align-items:center; gap:18px; cursor:pointer; list-style:none; }
.tier summary::-webkit-details-marker { display:none; }
.tier summary::after { content:"＋"; margin-left:18px; color:var(--muted); font-size:1.4rem; }
.tier[open] summary::after { content:"−"; color:var(--accent); }
.tier-number { color:var(--accent); font-family:Georgia,"Times New Roman",serif; font-size:1.3rem; }
.tier summary > span:nth-child(2) { display:grid; gap:7px; }
.tier summary strong { font-family:Georgia,"Times New Roman",serif; font-size:1.6rem; font-weight:400; }
.tier summary small,.tier-count { color:var(--muted); font-size:.78rem; }
.empty-tier { margin:0 8px 24px 88px; padding:30px; border:1px dashed var(--line); border-radius:16px; color:var(--muted); background:rgba(255,255,255,.02); }
.tier-people { margin:0 8px 24px 88px; display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:10px; }
.person-card { min-height:120px; padding:20px; display:grid; align-content:center; gap:8px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.035); }
.person-card strong { font-family:Georgia,"Times New Roman",serif; font-size:1.2rem; font-weight:400; }
.person-card span { color:var(--muted); font-size:.78rem; }
.cadence-status { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.person-card .cadence-label { padding:4px 8px; border-radius:999px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.cadence-on-track .cadence-label { background:rgba(231,255,110,.12); color:var(--accent); }
.cadence-due-soon .cadence-label { background:rgba(255,199,110,.14); color:#ffc76e; }
.cadence-overdue .cadence-label { background:rgba(255,157,145,.14); color:var(--error); }
.cadence-unknown .cadence-label { background:rgba(255,255,255,.08); color:var(--muted); }
.person-card .latest-conversation { color:var(--ink); line-height:1.45; }
.conversation-list { display:grid; gap:8px; }
.conversation-item { padding:10px 0; display:grid; gap:6px; border-top:1px solid var(--line); }
.conversation-actions { display:flex; flex-wrap:wrap; gap:4px; }
.conversation-actions .text-button { padding:4px 8px; font-size:.72rem; }
.person-actions { margin-top:8px; display:flex; gap:4px; }
.person-actions .text-button { padding:6px 8px; }
.danger-button { color:var(--error); }
[hidden] { display:none !important; }
@media (max-width:900px) { .dashboard-header { grid-template-columns:1fr auto; } .dashboard-header nav { display:none; } .dashboard-welcome { grid-template-columns:1fr; } .attention-summary { grid-template-columns:1fr 1fr; } .attention-summary > div { grid-column:1 / -1; } .quick-actions { grid-template-columns:1fr; } .contact-panel { grid-template-columns:1fr; margin-top:-44px; } }
@media (max-width:780px) { .shell { grid-template-columns:1fr; padding:56px 0; gap:48px; } h1 { font-size:clamp(4rem,21vw,7rem); } .dashboard-main { padding-top:50px; } .section-heading { align-items:start; flex-direction:column; gap:15px; } }
@media (max-width:560px) { .dashboard-header,.dashboard-main { width:min(100% - 28px,1180px); } .dashboard-header { min-height:74px; } .dashboard-profile div { display:none; } .dashboard-welcome h1 { font-size:clamp(3.6rem,19vw,5.4rem); } .attention-summary { grid-template-columns:1fr; } .attention-summary > div { grid-column:auto; } .quick-actions { margin:42px 0 65px; } .tier summary { grid-template-columns:44px 1fr auto; gap:10px; } .tier-count { display:none; } .empty-tier { margin-left:52px; } }
@media (max-width:480px) { .shell,footer { width:min(100% - 28px,1120px); } footer { flex-direction:column; gap:8px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; } }
