:root {
  --brand-navy: #063777;
  --brand-blue: #075bb8;
  --brand-cyan: #08a5dc;
  --brand-green: #45b84f;
  --brand-lime: #89d431;
  --forest: var(--brand-blue);
  --forest-deep: var(--brand-navy);
  --forest-soft: #0788b7;
  --mint: var(--brand-lime);
  --mint-bright: #e4f7d3;
  --sage: #eaf7fb;
  --paper: #f4f8fb;
  --white: #ffffff;
  --ink: #122b43;
  --muted: #61788a;
  --line: #d8e6ed;
  --danger: #a43b3b;
  --warning: #94651b;
  --success: #318f3d;
  --shadow: 0 22px 70px rgba(6, 55, 119, 0.1);
  --font-body: "Manrope", sans-serif;
  --font-display: "Sora", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; color: var(--ink); background: var(--paper); font-family: var(--font-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.035em; line-height: 1.12; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--forest); font-family: var(--font-display); font-size: .94rem; font-weight: 700; letter-spacing: .08em; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand-light { color: var(--white); }
.eyebrow { display: inline-block; color: var(--forest-soft); font-size: .69rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-light { color: var(--mint); }

/* Authentication */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.05fr) minmax(500px, .95fr); }
.auth-story { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 42px clamp(38px, 5vw, 76px); color: var(--white); background: var(--forest-deep); isolation: isolate; }
.auth-story::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 86% 14%, rgba(8,165,220,.22), transparent 28%), radial-gradient(circle at 3% 82%, rgba(69,184,79,.16), transparent 27%), linear-gradient(145deg, #075cae, #052c68 74%); }
.auth-story::after { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -330px; bottom: -300px; border: 1px solid rgba(117,211,236,.18); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.018), 0 0 0 130px rgba(255,255,255,.014); }
.story-content { width: min(630px, 100%); margin: auto 0; padding: 72px 0; animation: rise .7s ease both; }
.story-content h1 { margin-top: 22px; font-size: clamp(3rem, 5.2vw, 5.9rem); font-weight: 600; letter-spacing: -.065em; }
.story-content h1 em { color: var(--mint); font-style: normal; }
.story-content > p { max-width: 590px; margin-top: 27px; color: rgba(255,255,255,.68); font-size: clamp(.98rem, 1.25vw, 1.13rem); line-height: 1.8; }
.trust-list { display: grid; gap: 0; margin-top: 55px; border-top: 1px solid rgba(255,255,255,.13); }
.trust-list > div { display: grid; grid-template-columns: 36px 1fr; gap: 17px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.trust-list > div > span { color: var(--mint); font-size: .65rem; font-weight: 800; letter-spacing: .1em; }
.trust-list p { color: rgba(255,255,255,.58); font-size: .83rem; }
.trust-list strong { display: block; margin-bottom: 3px; color: var(--white); font-size: .9rem; }
.story-footer { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.5); font-size: .72rem; }
.security-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(137,212,49,.14); }
.auth-access { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px clamp(28px, 6vw, 96px); background: #f8fbfd; }
.auth-mobile-header { display: none; }
.account-card { width: min(465px, 100%); animation: rise .65s .08s ease both; }
.auth-heading { margin-bottom: 28px; }
.auth-heading h2 { margin-top: 12px; font-size: clamp(1.9rem, 3vw, 2.65rem); color: var(--forest-deep); }
.auth-heading p, .form-heading p { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 30px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #edf4f7; }
.tab { min-height: 44px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: .82rem; font-weight: 800; transition: .2s ease; }
.tab.active { color: var(--forest); background: var(--white); box-shadow: 0 4px 15px rgba(6,55,119,.09); }
form { display: grid; gap: 17px; }
.form-heading { margin-bottom: 3px; }
.form-heading h3 { color: var(--forest-deep); font-size: 1.25rem; }
.form-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 15px; border-radius: 50%; color: var(--forest); background: var(--sage); font-size: 1.25rem; }
label { display: grid; gap: 7px; color: #29465f; font-size: .76rem; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); background: var(--white); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
input, select { height: 50px; padding: 0 15px; }
textarea { min-height: 130px; padding: 14px 15px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a2aaa6; font-weight: 500; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-cyan); box-shadow: 0 0 0 4px rgba(8,165,220,.13); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 78px; }
.password-toggle { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); border: 0; color: var(--forest-soft); background: transparent; font-size: .68rem; font-weight: 800; }
.form-meta { display: flex; justify-content: flex-end; margin-top: -8px; }
.consent { grid-template-columns: auto 1fr; align-items: start; font-weight: 500; line-height: 1.55; }
.consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--forest); }
.consent a { color: var(--forest); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.primary, .secondary, .danger-btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 11px; padding: 0 19px; font-size: .8rem; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.primary { border: 1px solid var(--forest); color: var(--white); background: var(--forest); box-shadow: 0 10px 24px rgba(7,91,184,.18); }
.primary:hover:not(:disabled) { transform: translateY(-1px); background: var(--forest-deep); box-shadow: 0 13px 28px rgba(6,55,119,.22); }
.primary-wide { width: 100%; justify-content: space-between; min-height: 52px; padding: 0 18px; }
.secondary { border: 1px solid var(--line); color: var(--forest); background: var(--white); }
.secondary:hover:not(:disabled) { border-color: #9ccddd; background: var(--sage); }
.danger-btn { border: 1px solid rgba(164,59,59,.32); color: var(--danger); background: #fff8f8; }
button:disabled { cursor: wait; opacity: .62; }
.link-button { justify-self: center; border: 0; padding: 2px; color: var(--forest-soft); background: none; font-size: .74rem; font-weight: 800; }
.form-meta .link-button { justify-self: auto; }
.link-button:hover { color: var(--forest-deep); text-decoration: underline; text-underline-offset: 3px; }
.turnstile-slot { min-height: 0; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.status { min-height: 0; border-radius: 10px; font-size: .76rem; text-align: center; }
.status:not(:empty) { margin-top: 14px; padding: 11px 13px; }
.status.error { border: 1px solid #efcece; color: var(--danger); background: #fff5f5; }
.status.success { border: 1px solid #bee4bd; color: var(--success); background: #f0faed; }
.manual-account-link { display: block; margin-top: 12px; color: var(--forest); font-size: .78rem; font-weight: 800; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.auth-legal { margin-top: 25px; color: #8a948f; font-size: .66rem; text-align: center; }
.feedback-panel { display: grid; gap: 15px; text-align: center; }
.feedback-panel p { color: var(--muted); font-size: .86rem; }
.feedback-panel ol { display: grid; gap: 8px; padding: 16px 16px 16px 36px; border-radius: 12px; color: var(--muted); background: var(--sage); font-size: .78rem; text-align: left; }
.feedback-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; color: var(--forest); background: var(--mint-bright); font-family: var(--font-display); font-size: 1.3rem; }

/* Authenticated account */
.dashboard-layout { min-height: 100vh; }
.dashboard-sidebar { position: fixed; z-index: 50; isolation: isolate; inset: 0 auto 0 0; width: 276px; overflow-y: auto; display: flex; flex-direction: column; padding: 28px 20px 20px; color: var(--white); background: linear-gradient(165deg, #07366f 0%, #052b5e 57%, #073a50 100%); box-shadow: 16px 0 42px rgba(3,34,72,.14); }
.dashboard-sidebar::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, #13a9df, #48b94f 68%, #89d42f); }
.dashboard-sidebar::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 4% 2%, rgba(19,169,223,.24), transparent 27%), radial-gradient(circle at 95% 86%, rgba(72,185,79,.15), transparent 34%); }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 0 7px; }
.mobile-close { display: none; width: 38px; height: 38px; border: 1px solid rgba(117,211,236,.16); border-radius: 10px; color: white; background: rgba(8,80,145,.48); font-size: 1.4rem; }
.account-chip { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; align-items: center; margin: 30px 0 25px; padding: 14px; border: 1px solid rgba(117,211,236,.18); border-radius: 13px; background: rgba(255,255,255,.065); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.account-avatar, .large-avatar { display: grid; place-items: center; border-radius: 50%; color: var(--forest-deep); background: var(--mint); font-family: var(--font-display); font-weight: 700; }
.account-avatar { width: 38px; height: 38px; font-size: .82rem; }
.avatar-frame { position: relative; overflow: hidden; display: grid; place-items: center; color: #818b87; background: #e5e9e7; }
.avatar-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.avatar-frame svg { width: 72%; height: 72%; display: block; fill: currentColor; }
.account-chip div { min-width: 0; }
.account-chip > div strong, .account-chip > div span { overflow: hidden; display: block; text-overflow: ellipsis; white-space: nowrap; }
.account-chip strong { font-size: .76rem; }
.account-chip div span { margin-top: 2px; color: rgba(222,245,251,.58); font-size: .62rem; }
.sidebar-nav { display: grid; gap: 5px; }
.nav-label { margin: 0 12px 8px; color: rgba(172,224,239,.54); font-size: .59rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-nav button { min-height: 46px; display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; border: 1px solid transparent; border-radius: 10px; padding: 0 11px; color: rgba(232,247,251,.7); background: transparent; font-size: .76rem; font-weight: 700; text-align: left; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.sidebar-nav button:hover { transform: translateX(2px); color: white; background: rgba(19,169,223,.1); }
.sidebar-nav button.active { border-color: rgba(93,200,228,.26); color: white; background: linear-gradient(90deg, rgba(19,169,223,.2), rgba(72,185,79,.13)); box-shadow: inset 3px 0 0 #55c45a; }
.nav-icon { width: 24px; height: 24px; display: grid; place-items: center; color: #75d3ec; }
.nav-icon svg { width: 21px; height: 21px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: transform .2s ease, stroke-width .2s ease; }
.sidebar-nav button.active .nav-icon { color: #8bd42f; }
.sidebar-nav button:hover .nav-icon svg { transform: scale(1.06); }
.sidebar-nav button.active .nav-icon svg { stroke-width: 2.05; }
.sidebar-cta { margin-top: auto; padding: 16px; border: 1px solid rgba(255,255,255,.48); border-radius: 13px; color: #073061; background: linear-gradient(135deg, #eaf9fd, #edf9e8); box-shadow: 0 14px 34px rgba(2,27,60,.22); }
.sidebar-cta > span, .sidebar-cta strong { display: block; }
.sidebar-cta > span { font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-cta strong { margin: 4px 0 13px; font-family: var(--font-display); font-size: .95rem; }
.sidebar-cta a { display: flex; justify-content: space-between; border-top: 1px solid rgba(7,48,97,.14); padding-top: 10px; color: #0751a3; font-size: .68rem; font-weight: 800; }
.sidebar-footer { padding-top: 12px; }
.sidebar-footer button { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 9px; border: 0; padding: 0 12px; color: rgba(221,243,249,.64); background: transparent; font-size: .7rem; font-weight: 700; }
.sidebar-footer button:hover { color: white; }
.dashboard-main { min-height: 100vh; margin-left: 276px; }
.dashboard-header { position: sticky; z-index: 30; top: 0; min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px clamp(24px,4vw,52px); border-bottom: 1px solid var(--line); background: rgba(244,248,251,.9); backdrop-filter: blur(16px); }
.header-content, .header-actions { display: flex; align-items: center; gap: 18px; }
.header-kicker { display: block; margin-bottom: 3px; color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.dashboard-header h2 { color: var(--forest-deep); font-size: 1rem; }
.mobile-menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; color: var(--forest); background: white; }
.secure-session { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .64rem; font-weight: 700; }
.secure-session i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 4px rgba(69,184,79,.12); }
.tool-link { min-height: 38px; display: inline-flex; align-items: center; border-radius: 9px; padding: 0 14px; color: white; background: var(--forest); font-size: .68rem; font-weight: 800; }
.header-logout { display: none; }
.dashboard-content { width: min(1240px, 100%); margin: 0 auto; padding: 50px clamp(24px,4vw,54px) 70px; }
.dash-section { animation: sectionIn .36s ease both; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 30px; }
.page-heading h1 { margin-top: 9px; color: var(--forest-deep); font-size: clamp(2rem,3.6vw,3.35rem); letter-spacing: -.06em; }
.page-heading p { margin-top: 10px; color: var(--muted); font-size: .86rem; }
.date-badge { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; color: var(--muted); background: rgba(255,255,255,.65); font-size: .65rem; font-weight: 700; white-space: nowrap; }
.summary-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 15px; margin-bottom: 15px; }
.summary-card, .panel { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 8px 30px rgba(6,55,119,.045); }
.summary-card { min-height: 180px; padding: 22px; }
.summary-featured { color: white; border-color: var(--forest); background: linear-gradient(140deg, #0879c8, #063777); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.summary-card > span, .card-top > span:first-child { color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.summary-featured .card-top > span:first-child { color: rgba(255,255,255,.52); }
.summary-card > strong { display: block; margin-top: 28px; color: var(--forest-deep); font-family: var(--font-display); font-size: 1.38rem; letter-spacing: -.04em; }
.summary-featured > strong { color: white; font-size: 1.65rem; }
.summary-card > p { margin-top: 8px; color: var(--muted); font-size: .68rem; }
.summary-featured > p { color: rgba(255,255,255,.58); }
.card-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: -4px; border-radius: 10px; color: var(--forest); background: var(--sage); }
.progress-track { height: 3px; overflow: hidden; margin-top: 24px; border-radius: 4px; background: rgba(255,255,255,.15); }
.progress-track span { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--mint); }
.badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 5px 9px; color: #0751a3; background: var(--mint-bright); font-size: .56rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.badge-active { color: #237d31; background: #ddf5d3; }
.badge-trial { color: #795211; background: #f6e8bd; }
.badge-inactive { color: #5f6965; background: #e8ece9; }
.content-grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 15px; }
.panel { padding: 25px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.panel-heading h3 { margin-top: 6px; color: var(--forest-deep); font-size: 1.15rem; }
.verified-tag { border-radius: 999px; padding: 6px 9px; color: var(--success); background: #ebf7f0; font-size: .58rem; font-weight: 800; }
.verified-tag.pending { color: var(--warning); background: #fff7df; }
.profile-row { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.large-avatar { width: 52px; height: 52px; font-size: 1rem; }
.profile-row > div strong, .profile-row > div span { display: block; }
.profile-row > div strong { font-family: var(--font-display); font-size: .9rem; }
.profile-row > div span { margin-top: 3px; color: var(--muted); font-size: .67rem; }
.data-list { display: grid; margin-top: 4px; }
.data-list > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .71rem; }
.data-list > div:last-child { border: 0; padding-bottom: 0; }
.data-list dt { color: var(--muted); }
.data-list dd { font-weight: 700; text-align: right; word-break: break-word; }
.profile-edit-link { margin-top: 17px; border: 0; color: var(--forest); background: transparent; font-size: .68rem; font-weight: 800; }
.profile-edit-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.quick-panel button, .quick-panel > a { width: 100%; min-height: 62px; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; border: 0; border-top: 1px solid var(--line); padding: 10px 0; color: var(--ink); background: transparent; text-align: left; }
.quick-panel .panel-heading + button { border-top: 0; }
.quick-panel button > span, .quick-panel > a > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--forest); background: var(--sage); }
.quick-panel strong, .quick-panel small { display: block; }
.quick-panel strong { font-size: .72rem; }
.quick-panel small { margin-top: 3px; color: var(--muted); font-size: .6rem; }
.quick-panel b { color: var(--forest); font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 9px; margin: 30px 0; }
.plan-price strong { color: var(--forest); font-family: var(--font-display); font-size: 2.3rem; }
.plan-price span, .billing-note { color: var(--muted); font-size: .75rem; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.empty-state { min-height: 210px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.empty-state .empty-icon { margin-bottom: 13px; color: #8ea69c; font-size: 2rem; }
.empty-state strong { color: var(--forest-deep); font-family: var(--font-display); font-size: .9rem; }
.empty-state p { margin-top: 6px; font-size: .68rem; }
.security-panel { display: grid; grid-template-columns: .7fr 1.3fr; min-height: 430px; padding: 0; overflow: hidden; }
.security-visual { position: relative; display: grid; place-items: center; overflow: hidden; color: var(--mint); background: var(--forest); font-size: 5rem; }
.security-visual::before, .security-visual::after { content: ""; position: absolute; width: 240px; height: 240px; border: 1px solid rgba(117,211,236,.2); border-radius: 50%; }
.security-visual::after { width: 360px; height: 360px; }
.security-content { align-self: center; padding: clamp(28px,5vw,65px); }
.security-content h3 { margin: 10px 0 12px; color: var(--forest-deep); font-size: 1.7rem; }
.security-content > p { margin-bottom: 25px; color: var(--muted); font-size: .82rem; }
.mfa-setup { display: grid; gap: 14px; justify-items: start; }
.mfa-setup img { width: 180px; max-width: 100%; padding: 8px; border: 1px solid var(--line); background: white; }
.mfa-setup code { max-width: 100%; padding: 9px; color: var(--forest); background: var(--sage); word-break: break-all; }
.success-text { margin-bottom: 15px; color: var(--success); font-size: .78rem; font-weight: 800; }
.required-note { color: var(--muted); font-size: .65rem; font-weight: 700; }
.professional-profile-form { display: grid; gap: 15px; }
.avatar-editor-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.avatar-editor-copy { max-width: 460px; }
.avatar-editor-copy h3, .form-section-heading h3 { margin-top: 7px; color: var(--forest-deep); font-size: 1.15rem; }
.avatar-editor-copy p, .form-section-heading p { margin-top: 7px; color: var(--muted); font-size: .7rem; }
.avatar-editor-actions { display: flex; align-items: center; gap: 16px; }
.avatar-preview { flex: 0 0 auto; width: 84px; height: 84px; border: 4px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 10px 28px rgba(6,55,119,.11); }
.avatar-editor-actions > div { display: grid; grid-template-columns: auto auto; align-items: center; gap: 7px 12px; }
.avatar-editor-actions .remove-avatar { color: var(--danger); }
.avatar-editor-actions small { grid-column: 1 / -1; color: var(--muted); font-size: .57rem; }
.form-section-card { padding: 0; overflow: hidden; }
.form-section-heading { display: flex; align-items: center; gap: 14px; padding: 22px 25px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(234,247,251,.9), transparent); }
.form-section-heading > span { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid #b9dce8; border-radius: 50%; color: var(--forest); font-size: .6rem; font-weight: 800; }
.account-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: 25px; }
.account-form-grid .field-wide { grid-column: 1 / -1; }
.account-form-grid input[readonly] { cursor: not-allowed; color: var(--muted); background: #f0f5f7; }
.address-grid { grid-template-columns: .7fr 1.6fr .55fr; }
.address-grid .field-street { grid-column: span 2; }
.profile-form-footer { position: sticky; z-index: 5; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #b9d7e3; border-radius: 14px; padding: 15px 17px; background: rgba(255,255,255,.94); box-shadow: 0 16px 45px rgba(6,55,119,.13); backdrop-filter: blur(14px); }
.profile-form-footer strong, .profile-form-footer span { display: block; }
.profile-form-footer strong { color: var(--forest-deep); font-size: .72rem; }
.profile-form-footer span { margin-top: 2px; color: var(--muted); font-size: .6rem; }
.profile-save-status { margin-top: 0 !important; }
.profile-privacy-notice { display: grid; grid-template-columns: auto 1fr; gap: 15px; border: 1px solid #c4e2ec; border-radius: 15px; padding: 20px; background: #edf8fb; }
.privacy-notice-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--forest); background: var(--mint-bright); }
.profile-privacy-notice strong { color: var(--forest-deep); font-family: var(--font-display); font-size: .78rem; }
.profile-privacy-notice p { margin-top: 6px; color: var(--muted); font-size: .65rem; line-height: 1.65; }
.profile-privacy-notice p a { color: var(--forest); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.profile-consent { margin-top: 14px; color: var(--forest-deep); font-size: .66rem; }
.privacy-form { display: grid; gap: 18px; }
.privacy-shield { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 25px; border-radius: 50%; color: var(--forest); background: var(--mint); font-size: 1.7rem; }
.privacy-info { display: flex; flex-direction: column; justify-content: center; color: white; border-color: var(--forest); background: var(--forest); }
.privacy-info h3 { font-size: 1.5rem; }
.privacy-info p { margin: 14px 0 25px; color: rgba(255,255,255,.62); font-size: .78rem; }
.privacy-info a { width: fit-content; color: var(--mint); font-size: .72rem; font-weight: 800; }
.support-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.support-card { min-height: 250px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 25px; background: white; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.support-card:hover { transform: translateY(-3px); border-color: #9ccddd; box-shadow: var(--shadow); }
.support-card > span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; color: var(--forest); background: var(--sage); font-size: 1.15rem; }
.support-card div { margin: auto 0; }
.support-card strong { color: var(--forest-deep); font-family: var(--font-display); font-size: .92rem; }
.support-card p { margin: 8px 0; color: var(--muted); font-size: .7rem; }
.support-card small { color: var(--forest); font-size: .63rem; font-weight: 800; }
.support-card b { align-self: flex-end; color: var(--forest); }
.sidebar-backdrop { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sectionIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  .auth-shell { grid-template-columns: minmax(360px,.8fr) minmax(470px,1fr); }
  .story-content h1 { font-size: clamp(2.8rem,5vw,4.2rem); }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-featured { grid-column: 1 / -1; }
  .support-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .auth-shell { display: block; }
  .auth-story { display: none; }
  .auth-access { display: block; padding: 0 24px 45px; }
  .auth-mobile-header { min-height: 78px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; border-bottom: 1px solid var(--line); }
  .back-link { color: var(--muted); font-size: .68rem; font-weight: 700; }
  .account-card { margin: 0 auto; }
  .dashboard-sidebar { transform: translateX(-100%); transition: transform .28s ease; }
  .dashboard-sidebar.open { transform: translateX(0); }
  .dashboard-sidebar.open + * { overflow: hidden; }
  .mobile-close, .mobile-menu-btn { display: grid; place-items: center; }
  .dashboard-main { margin-left: 0; }
  .sidebar-backdrop { position: fixed; z-index: 45; inset: 0; border: 0; background: rgba(3,28,66,.56); backdrop-filter: blur(2px); }
  .sidebar-backdrop.visible { display: block; }
  .dashboard-header { padding: 14px 20px; }
  .secure-session, .tool-link { display: none; }
  .header-logout { display: inline-flex; min-height: 38px; }
  .content-grid, .security-panel { grid-template-columns: 1fr; }
  .security-visual { min-height: 190px; }
  .avatar-editor-panel { align-items: flex-start; flex-direction: column; }
  .account-form-grid, .address-grid { grid-template-columns: 1fr 1fr; }
  .address-grid .field-street { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
  .auth-access { padding-inline: 18px; }
  .auth-heading h2 { font-size: 2rem; }
  .dashboard-content { padding: 34px 18px 55px; }
  .dashboard-header h2 { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-logout { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 2.2rem; }
  .date-badge { display: none; }
  .summary-grid, .support-grid { grid-template-columns: 1fr; }
  .summary-featured { grid-column: auto; }
  .summary-card { min-height: 160px; }
  .panel { padding: 21px; }
  .data-list > div { grid-template-columns: 1fr; gap: 4px; }
  .data-list dd { text-align: left; }
  .security-content { padding: 25px 21px 30px; }
  .avatar-editor-actions { width: 100%; align-items: flex-start; flex-direction: column; }
  .avatar-editor-actions > div { width: 100%; grid-template-columns: 1fr; }
  .avatar-editor-actions .secondary { width: 100%; }
  .avatar-editor-actions small { grid-column: auto; }
  .account-form-grid, .address-grid { grid-template-columns: 1fr; padding: 21px; }
  .account-form-grid .field-wide, .address-grid .field-street { grid-column: auto; }
  .profile-form-footer { position: static; align-items: stretch; flex-direction: column; }
  .profile-form-footer .primary { width: 100%; }
  .profile-privacy-notice { grid-template-columns: 1fr; }
}

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