:root {
  --ink: #12211d;
  --muted: #60706a;
  --line: #dfe8e4;
  --paper: #ffffff;
  --canvas: #f3f7f5;
  --brand: #087f68;
  --brand-dark: #075f50;
  --brand-soft: #e0f4ee;
  --navy: #122f38;
  --danger: #b42318;
  --warning: #a15c07;
  --shadow: 0 24px 70px rgba(18, 47, 56, .12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
a { color: var(--brand-dark); font-weight: 650; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header { width: min(1180px, calc(100% - 40px)); height: 86px; margin: 0 auto; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: white; font-weight: 850; background: linear-gradient(145deg, #0aa681, #096b5b); box-shadow: 0 8px 20px rgba(8, 127, 104, .2); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.site-footer { width: min(1180px, calc(100% - 40px)); min-height: 74px; margin: 28px auto 0; padding: 24px 0; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }

.eyebrow { display: block; margin-bottom: 12px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.auth-layout { width: min(1100px, calc(100% - 40px)); min-height: 660px; margin: 22px auto 42px; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border: 1px solid rgba(18, 47, 56, .08); border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 660px; padding: 72px; overflow: hidden; color: #fff; background: linear-gradient(140deg, #102f37 0%, #16424a 55%, #0b725f 130%); }
.auth-story::before { content: ""; position: absolute; width: 380px; height: 380px; right: -150px; top: -120px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.03), 0 0 0 140px rgba(255,255,255,.02); }
.auth-story::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg, #2dd4a5, transparent); }
.auth-story .eyebrow { color: #64e3be; }
.auth-story h1 { position: relative; margin: 0; font-size: clamp(42px, 5vw, 66px); line-height: 1.08; letter-spacing: -.055em; }
.auth-story h1 em { color: #8af0d2; font-style: normal; }
.auth-story > p { max-width: 520px; margin: 28px 0 44px; color: #c5d8d6; font-size: 16px; line-height: 1.85; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trust-grid div { padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.trust-grid b, .trust-grid span { display: block; }
.trust-grid b { color: #fff; font-size: 17px; }
.trust-grid span { margin-top: 4px; color: #aac1bf; font-size: 11px; line-height: 1.4; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 58px 64px; }
.auth-card-head h2 { margin: 0; font-size: 32px; letter-spacing: -.035em; }
.auth-card-head p { margin: 12px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.form-stack { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; color: #30423c; font-size: 13px; font-weight: 700; }
.field small { color: #82908b; font-size: 11px; font-weight: 500; }
.field-row { display: flex; align-items: center; justify-content: space-between; }
.field-row a { font-size: 12px; }
.field input { width: 100%; height: 50px; padding: 0 15px; color: var(--ink); border: 1px solid #ccd9d4; border-radius: 12px; outline: none; background: #fbfcfc; transition: border-color .18s, box-shadow .18s, background .18s; }
.field input:hover { border-color: #9db2aa; }
.field input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(8,127,104,.11); }
.password-input { position: relative; display: block; }
.password-input input { padding-right: 64px; }
.password-input button { position: absolute; right: 8px; top: 8px; height: 34px; padding: 0 9px; color: var(--brand-dark); border: 0; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
input.ime-password[data-password-masked="true"] { -webkit-text-security: disc; }
.strength { height: 4px; overflow: hidden; border-radius: 4px; background: #e7ecea; }
.strength i { display: block; width: 0; height: 100%; background: #d3463b; transition: width .2s, background .2s; }
.strength i[data-score="1"] { width: 25%; }.strength i[data-score="2"] { width: 50%; background: #d69424; }.strength i[data-score="3"] { width: 75%; background: var(--brand); }.strength i[data-score="4"] { width: 100%; background: var(--brand); }
.strength-label { margin-top: -2px; color: var(--muted); }
.strength-label[data-score="3"] { color: var(--brand-dark); }
.strength-label[data-score="4"] { color: var(--brand); font-weight: 750; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 780; transition: transform .15s, box-shadow .15s, background .15s; text-align: center; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button:disabled { opacity: .65; cursor: wait; transform: none; }
.button.primary { color: white; background: var(--brand); box-shadow: 0 10px 24px rgba(8,127,104,.2); }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { color: var(--brand-dark); border-color: #b9d5cc; background: #f3fbf8; }
.button.ghost { color: var(--ink); border-color: var(--line); background: white; }
.button.light { color: var(--navy); background: white; }
.button.danger { color: white; background: var(--danger); }
.form-foot { display: flex; justify-content: center; gap: 6px; margin-top: 24px; color: var(--muted); font-size: 13px; }
.secondary-links { margin-top: 12px; text-align: center; font-size: 12px; }
.alert, .toast { padding: 13px 15px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.alert { margin: -12px 0 20px; }
.alert.error, .toast.error { color: #8f1d16; border: 1px solid #f1c4c0; background: #fff2f1; }
.alert.success, .toast.success { color: #17634f; border: 1px solid #b7dfd1; background: #edfaf5; }
.toast { position: fixed; z-index: 10; top: 22px; left: 50%; width: min(480px, calc(100% - 32px)); transform: translateX(-50%); box-shadow: 0 14px 40px rgba(18,47,56,.14); animation: toast-in .25s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px); } }
.identity-preview { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbfa; }
.identity-preview > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--brand); font-weight: 800; }
.identity-preview b, .identity-preview small { display: block; }.identity-preview small { margin-top: 3px; color: var(--muted); }
.code-input { letter-spacing: .16em; font-weight: 800; }

.dashboard-shell, .settings-shell, .docs-shell { width: min(1180px, calc(100% - 40px)); margin: 26px auto 54px; }
.dashboard-topbar { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.dashboard-topbar h1, .settings-heading h1 { margin: 0; font-size: clamp(34px, 5vw, 50px); letter-spacing: -.05em; }.dashboard-topbar p, .settings-heading p { margin: 10px 0 0; color: var(--muted); }
.security-score { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px 32px; color: white; border-radius: 24px; background: linear-gradient(115deg, #12313a, #0d6d5e); box-shadow: var(--shadow); }
.score-ring { width: 68px; height: 68px; display: grid; place-items: center; border: 6px solid rgba(255,255,255,.24); border-top-color: #75e6c3; border-radius: 50%; }.score-ring span { font-size: 24px; font-weight: 900; }
.security-score .eyebrow { color: #7aebc8; margin-bottom: 6px; }.security-score h2 { margin: 0; font-size: 24px; }.security-score p { margin: 7px 0 0; color: #c6dbd7; font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0; }
.metric-grid article { position: relative; min-height: 160px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.metric-grid small, .metric-grid b { display: block; }.metric-grid small { margin-top: 18px; color: var(--muted); }.metric-grid b { margin-top: 7px; font-size: 22px; }.metric-grid .metric-email { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.metric-icon, .setting-icon { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 11px; background: var(--brand-soft); }
.metric-icon::after, .setting-icon::after { content: ""; width: 16px; height: 16px; border: 2px solid var(--brand); border-radius: 5px; }
.metric-icon.session::after { border-radius: 50%; }.metric-icon.mail::after { height: 11px; border-radius: 3px; transform: rotate(-4deg); }
.status { display: inline-flex; width: max-content; margin-top: 12px; padding: 4px 8px; border-radius: 20px; font-size: 10px; font-style: normal; font-weight: 800; }
.status.good { color: #0d6d57; background: #def5ed; }.status.warn { color: #90540a; background: #fff0d6; }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: white; }.panel-head { display: flex; justify-content: space-between; align-items: start; }.panel h2 { margin: 0; font-size: 21px; }
.activity-list { margin-top: 14px; }.activity-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #edf1ef; }.activity-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }.activity-item b, .activity-item small { display: block; }.activity-item b { font-size: 13px; }.activity-item small { margin-top: 4px; color: var(--muted); font-size: 10px; }.activity-item em { color: var(--muted); font-size: 11px; font-style: normal; }
.account-panel { text-align: center; }.profile-mark { width: 72px; height: 72px; margin: 14px auto; display: grid; place-items: center; color: white; border-radius: 50%; background: linear-gradient(145deg, var(--brand), #154650); font-size: 26px; font-weight: 850; }.account-panel > p { color: var(--muted); font-size: 12px; }.account-panel dl { margin: 22px 0; text-align: left; }.account-panel dl div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-top: 1px solid #edf1ef; font-size: 11px; }.account-panel dt { color: var(--muted); }.account-panel dd { margin: 0; text-align: right; }

.settings-shell { max-width: 900px; }.back-link { display: inline-block; margin-bottom: 30px; }.settings-heading { margin-bottom: 26px; }.settings-card { margin-bottom: 16px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: white; }.settings-card-copy { display: flex; gap: 16px; align-items: flex-start; }.settings-card-copy h2 { margin: 0; font-size: 19px; }.settings-card-copy p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }.title-line { display: flex; gap: 10px; align-items: center; }.title-line .status { margin-top: 0; }.setting-note { margin: 18px 0 0 54px; color: var(--muted); font-size: 12px; }.settings-card details { margin: 18px 0 0 54px; }.settings-card summary { color: var(--brand-dark); cursor: pointer; font-size: 13px; font-weight: 760; }.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 16px; }.inline-form .button { min-width: 130px; }.danger-details summary { color: var(--danger); }.danger-zone { border-color: #efcfca; }.setup-box { margin: 20px 0 0 54px; padding: 18px; border-radius: 14px; background: #f2f8f6; font-size: 13px; line-height: 1.7; }.setup-box ol { margin-top: 0; padding-left: 20px; }.secret-row { display: flex; align-items: center; gap: 10px; }.secret-row code, .recovery-grid code { padding: 8px 10px; border: 1px dashed #92b8ac; border-radius: 8px; background: white; letter-spacing: .1em; }.secret-row button, [data-copy-target] { color: var(--brand-dark); border: 0; background: transparent; cursor: pointer; font-weight: 700; }.uri-code { display: block; margin-top: 9px; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }.cancel-form { margin: 12px 0 0 54px; }.text-button { padding: 0; color: var(--muted); border: 0; background: transparent; cursor: pointer; }.recovery-card { border-color: #9ed2c2; background: #f4fcf9; }.recovery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 20px 0; }.recovery-grid code { text-align: center; }.empty-state { color: var(--muted); }

.docs-shell { max-width: 1050px; }.docs-hero { max-width: 800px; padding: 35px 0 54px; }.docs-hero h1 { margin: 0; font-size: clamp(42px, 7vw, 72px); line-height: 1.05; letter-spacing: -.06em; }.docs-hero p { max-width: 700px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.docs-grid article { min-height: 230px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }.docs-grid article > span { color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .12em; }.docs-grid h2 { margin: 40px 0 10px; font-size: 20px; }.docs-grid p { color: var(--muted); font-size: 13px; line-height: 1.75; }.deployment-checklist { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; margin-top: 18px; padding: 34px; color: white; border-radius: 20px; background: var(--navy); }.deployment-checklist .eyebrow { color: #72e4c2; }.deployment-checklist h2 { margin: 0; font-size: 28px; }.deployment-checklist ul { margin: 0; padding-left: 20px; color: #c7d8d6; font-size: 13px; line-height: 2; }

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }.auth-story { min-height: auto; padding: 46px; }.auth-story h1 { font-size: 44px; }.auth-story > p { margin: 20px 0 28px; }.auth-card { padding: 46px; }
  .dashboard-grid { grid-template-columns: 1fr; }.metric-grid { grid-template-columns: 1fr; }.security-score { grid-template-columns: auto 1fr; }.security-score .button { grid-column: 1 / -1; }.inline-form { grid-template-columns: 1fr; }.settings-card details, .setting-note, .setup-box, .cancel-form { margin-left: 0; }.docs-grid { grid-template-columns: repeat(2, 1fr); }.deployment-checklist { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header, .site-footer, .auth-layout, .dashboard-shell, .settings-shell, .docs-shell { width: min(100% - 24px, 1180px); }.site-header { height: 72px; }.auth-layout { margin-top: 8px; border-radius: 22px; }.auth-story { padding: 32px 24px; }.auth-story h1 { font-size: 36px; }.auth-story > p { font-size: 14px; }.trust-grid { grid-template-columns: 1fr; }.trust-grid div { padding: 12px; }.auth-card { padding: 34px 24px; }.auth-card-head h2 { font-size: 27px; }.dashboard-topbar { align-items: flex-start; flex-direction: column; }.security-score { grid-template-columns: 1fr; padding: 24px; }.score-ring { width: 58px; height: 58px; }.metric-grid { grid-template-columns: 1fr; }.panel { padding: 20px; }.settings-card { padding: 20px; }.settings-card-copy { flex-direction: column; }.recovery-grid { grid-template-columns: 1fr; }.docs-hero { padding-top: 20px; }.docs-grid { grid-template-columns: 1fr; }.deployment-checklist { padding: 24px; }.site-footer { margin-top: 12px; }
}

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