:root {
  --ink: #06183f;
  --ink-2: #0c285d;
  --blue: #075cff;
  --blue-2: #1f73ff;
  --cyan: #5ce1ff;
  --paper: #f7f9ff;
  --white: #fff;
  --line: #dbe4f5;
  --line-strong: #c8d6ed;
  --muted: #60718a;
  --navy: #031735;
  --navy-2: #061d42;
  --green: #20a95b;
  --red: #bf2946;
  --red-dark: #8e1830;
  --red-soft: #fff0f3;
  --shadow: 0 24px 70px rgba(10, 37, 93, .12);
  --shadow-soft: 0 14px 40px rgba(15, 45, 101, .08);
  --radius: 18px;
  --max: 1360px;
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: hidden; color-scheme: light; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Avenir, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid rgba(7, 92, 255, .4); outline-offset: 3px; }

.console-header {
  position: sticky;
  z-index: 100;
  top: 0;
  flex: 0 0 auto;
  background: rgba(250, 252, 255, .94);
  border-bottom: 1px solid rgba(13, 49, 112, .1);
  backdrop-filter: blur(18px);
}
.header-shell {
  width: min(calc(100% - 48px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: rotate(30deg);
}
.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  content: "";
  position: absolute;
  inset: 4px;
  border: 3px solid currentColor;
  border-radius: 3px;
}
.brand-mark::after { inset: 10px 1px 1px 10px; border-width: 2px; opacity: .45; }
.brand-mark i { inset: 7px; border-width: 2px; opacity: .75; }
.brand-name { font-size: 24px; font-weight: 900; letter-spacing: .08em; }
.brand-product {
  margin-left: 3px;
  padding-left: 13px;
  color: var(--blue);
  border-left: 1px solid #b9c9e8;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.console-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.console-nav a,
.console-nav button,
.public-nav > a:first-child {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  color: #263a5a;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
  cursor: pointer;
}
.console-nav a:hover,
.console-nav button:hover,
.console-nav a[aria-current="page"] { color: var(--blue); background: #eaf1ff; }
.console-nav form { margin: 0; }
.account-chip {
  min-width: 185px;
  margin-left: 8px;
  padding-left: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
}
.account-chip > span:first-child {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--blue), #0345cb);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 900;
}
.account-chip-copy { min-width: 0; display: grid; }
.account-chip-copy strong { font-size: 11px; }
.account-chip-copy small { max-width: 150px; overflow: hidden; color: #7b8ba1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.public-nav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }

.button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  background: linear-gradient(135deg, var(--blue), #0348d9);
  border: 1px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(7, 92, 255, .22);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(7, 92, 255, .3); }
.button:active { transform: translateY(0); }
.button-small { min-height: 42px; padding: 0 17px; font-size: 11px; }
.button-wide { width: 100%; }
.button-ghost { color: var(--blue); background: white; border-color: #c6d5ed; box-shadow: none; }
.button-danger { background: linear-gradient(135deg, var(--red), var(--red-dark)); border-color: var(--red); box-shadow: 0 12px 26px rgba(191, 41, 70, .18); }
.button-danger:hover { box-shadow: 0 16px 34px rgba(191, 41, 70, .25); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }

.messages {
  position: fixed;
  z-index: 150;
  top: 90px;
  right: 22px;
  width: min(430px, calc(100% - 30px));
  display: grid;
  gap: 10px;
}
.message {
  padding: 15px 14px;
  display: grid;
  grid-template-columns: 18px 1fr 30px;
  gap: 11px;
  align-items: center;
  color: #15315c;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}
.message p { margin: 0; font-size: 12px; font-weight: 700; }
.message button { width: 30px; height: 30px; padding: 0; background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.message-icon { width: 9px; height: 9px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 5px #eaf1ff; }
.message-success .message-icon { background: var(--green); box-shadow: 0 0 0 5px #e7f8ee; }
.message-error .message-icon { background: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }

.eyebrow,
.auth-overline,
.card-overline {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  margin-right: 9px;
  display: inline-block;
  vertical-align: middle;
  background: currentColor;
}

/* Authentification */
.auth-page { background: white; }
.auth-page .console-footer { margin-top: 0; }
.auth-shell { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(390px, .9fr) minmax(520px, 1.1fr); }
.auth-story {
  position: relative;
  min-height: 740px;
  padding: clamp(58px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: white;
  background: radial-gradient(circle at 78% 18%, rgba(19, 108, 255, .42), transparent 30%), linear-gradient(145deg, #020f27, #05285a);
}
.auth-story::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -170px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(95, 159, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(18, 91, 202, .08), 0 0 0 110px rgba(18, 91, 202, .05);
}
.auth-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(91, 153, 245, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 153, 245, .5) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(145deg, transparent, black 40%, transparent 88%);
}
.auth-story-copy,
.auth-proof { position: relative; z-index: 2; }
.auth-story .eyebrow { color: #78aaff; }
.auth-story-copy h1 { max-width: 620px; margin: 0; font-size: clamp(47px, 5vw, 78px); font-weight: 900; letter-spacing: -.055em; line-height: .98; }
.auth-story-copy h1 span { color: #76a8ff; }
.auth-story-copy > p:last-child { max-width: 570px; margin: 28px 0 0; color: #b9cee9; font-size: 17px; }
.auth-proof { margin: 58px 0 0; padding: 24px 0 0; display: grid; gap: 12px; border-top: 1px solid rgba(142, 184, 244, .2); list-style: none; color: #c3d6ef; font-size: 12px; font-weight: 750; }
.auth-proof span { margin-right: 9px; color: #57dc8b; }
.auth-panel {
  min-width: 0;
  padding: 70px 35px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 85% 10%, #eaf1ff, transparent 29%), white;
}
.auth-card { width: min(100%, 510px); padding: 42px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card-head { margin-bottom: 30px; }
.auth-card-head h2 { margin: 0; font-size: clamp(32px, 3vw, 43px); font-weight: 900; letter-spacing: -.04em; line-height: 1.04; }
.auth-card-head > p:last-child { margin: 17px 0 0; color: var(--muted); font-size: 14px; }
.auth-card-head > p strong { color: var(--ink); }
.auth-switch { margin: 28px 0 0; padding-top: 24px; color: #718097; border-top: 1px solid var(--line); font-size: 12px; text-align: center; }
.auth-switch a, .form-note a { color: var(--blue); font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }

/* Formulaires */
.auth-form,
.account-form { display: grid; gap: 20px; }
.form-grid { display: grid; gap: 18px; }
.form-grid-two { grid-template-columns: 1fr 1fr; }
.form-field { min-width: 0; display: grid; gap: 7px; }
.form-field label { color: #263d61; font-size: 11px; font-weight: 850; }
.form-field label > span { color: var(--blue); }
.input-wrap { position: relative; }
.form-field input,
.form-field textarea,
.form-field select,
.code-field input {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  color: var(--ink);
  background: #f9fbff;
  border: 1px solid #cbd8ec;
  border-radius: 8px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover { border-color: #aebfdb; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.code-field input:focus { background: white; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7, 92, 255, .1); }
.form-field input[readonly] { color: #687a92; background: #f0f3f8; cursor: not-allowed; }
.input-password input { padding-right: 85px; }
.password-toggle { position: absolute; top: 7px; right: 7px; min-height: 36px; padding: 0 9px; color: var(--blue); background: #eaf1ff; border: 0; border-radius: 6px; font-size: 9px; font-weight: 850; cursor: pointer; }
.field-help { color: #8090a5; font-size: 9px; }
.field-help ul { margin: 3px 0 0; padding-left: 18px; }
.field-error { margin: 0; color: var(--red); font-size: 10px; font-weight: 750; }
.has-error input,
.has-error textarea,
.has-error select { border-color: var(--red); background: #fffafb; }
.form-alert { padding: 14px 15px; color: #86243a; background: var(--red-soft); border: 1px solid #efbdc8; border-radius: 8px; font-size: 11px; }
.form-alert strong { display: block; }
.form-alert p { margin: 4px 0 0; }
.form-between { margin-top: -4px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #78899f; font-size: 10px; }
.form-between a { color: var(--blue); font-weight: 850; }
.secure-label i { width: 7px; height: 7px; margin-right: 6px; display: inline-block; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px #e7f8ee; }
.form-note { margin: -6px 0 0; color: #8190a5; font-size: 9px; text-align: center; }
.form-note > span:first-child { margin-right: 4px; color: var(--blue); }
.check-field { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: #52647e; font-size: 10px; }
.check-field input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.check-field a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.password-policy { margin-top: -8px; padding: 14px; color: #61728a; background: #f2f6fd; border: 1px solid #dbe5f4; border-radius: 8px; font-size: 9px; }
.password-policy > strong { display: block; margin-bottom: 8px; color: #364b6b; font-size: 10px; }
.password-policy ul { margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; list-style: none; }
.password-policy li { display: flex; align-items: center; gap: 6px; }
.password-policy li > span { width: 8px; height: 8px; background: #b6c2d3; border-radius: 50%; }
.password-policy li.valid { color: #197c44; }
.password-policy li.valid > span { background: var(--green); box-shadow: 0 0 0 3px #dff5e8; }
.password-categories { display: flex; flex-wrap: wrap; gap: 5px; }
.password-categories span { padding: 4px 7px; color: #728198; background: white; border: 1px solid #d7e0ed; border-radius: 4px; }
.password-categories span.valid { color: #167840; background: #eaf8ef; border-color: #bde4cc; }
.compact-policy { margin-top: -11px; }
.code-field input { height: 72px; color: var(--blue); font-family: "Cascadia Code", Consolas, monospace; font-size: 31px; font-weight: 900; letter-spacing: .32em; text-align: center; text-transform: lowercase; }
.code-field input::placeholder { color: #b4c4dd; letter-spacing: .22em; }
.code-meta { margin-top: -10px; display: flex; justify-content: center; gap: 8px; color: #8190a5; font-size: 9px; }
.code-meta strong { color: var(--blue); }
.code-meta .expired { color: var(--red); }
.code-meta-left { margin-top: -13px; justify-content: flex-start; }
.link-button { min-height: 40px; color: var(--blue); background: transparent; border: 0; border-radius: 7px; font-size: 10px; font-weight: 850; cursor: pointer; }
.link-button:disabled { color: #93a0b2; cursor: wait; }

.state-panel { display: grid; justify-items: center; text-align: center; }
.state-icon { width: 64px; height: 64px; display: grid; place-items: center; color: var(--blue); background: #eaf1ff; border-radius: 50%; box-shadow: 0 0 0 10px #f5f8ff; font-size: 25px; font-weight: 900; }
.state-panel p { margin: 28px 0 23px; color: var(--muted); font-size: 13px; }
.state-success .state-icon { color: white; background: var(--green); box-shadow: 0 0 0 10px #eaf8ef; }
.state-error .state-icon { color: white; background: var(--red); box-shadow: 0 0 0 10px var(--red-soft); }

/* Application */
.app-page { background: #f5f8fe; }
.app-shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 65px 0 110px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; }
.page-heading h1 { margin: 0; font-size: clamp(42px, 5vw, 67px); font-weight: 900; letter-spacing: -.055em; line-height: 1; }
.page-heading > div > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.system-status { margin-bottom: 6px; padding: 9px 12px; color: #255540; background: #eaf8ef; border: 1px solid #c8e8d4; border-radius: 20px; font-size: 10px; font-weight: 800; }
.system-status i { width: 7px; height: 7px; margin-right: 7px; display: inline-block; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(32, 169, 91, .1); }
.dashboard-empty { position: relative; min-height: 440px; margin-top: 52px; padding: 55px clamp(35px, 6vw, 85px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(35px, 7vw, 100px); align-items: center; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-soft); }
.empty-visual { position: relative; min-height: 280px; display: grid; place-items: center; }
.empty-orbit { position: absolute; width: 245px; height: 245px; border: 1px solid #c9dafa; border-radius: 50%; }
.orbit-two { width: 185px; height: 185px; border-style: dashed; }
.empty-orbit::after { content: ""; position: absolute; top: 17%; right: 4%; width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 16px var(--cyan); }
.orbit-two::after { top: auto; right: auto; bottom: 4%; left: 22%; background: var(--blue); box-shadow: 0 0 15px var(--blue); }
.empty-cube { position: relative; width: 93px; height: 93px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #0b6aff, #042e78); border: 1px solid #77adff; border-radius: 18px; box-shadow: 0 22px 48px rgba(6, 69, 165, .28); transform: rotate(30deg); }
.empty-cube::before, .empty-cube i { content: ""; position: absolute; inset: 20px; border: 3px solid white; border-radius: 7px; }
.empty-cube i { inset: 30px 12px 12px 30px; border-width: 2px; opacity: .65; }
.empty-copy h2 { max-width: 640px; margin: 0; font-size: clamp(31px, 3.5vw, 50px); font-weight: 900; letter-spacing: -.045em; line-height: 1.04; }
.empty-copy > p:not(.eyebrow) { max-width: 590px; margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.empty-actions { margin-top: 27px; display: flex; flex-wrap: wrap; gap: 10px; }
.dashboard-foundations { margin-top: 80px; }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.section-head h2 { margin: 0; font-size: clamp(30px, 3vw, 45px); letter-spacing: -.04em; line-height: 1.05; }
.section-head > p { margin: 0 0 5px; color: var(--muted); }
.foundation-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.foundation-grid article { min-height: 205px; padding: 26px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.foundation-grid article > span { color: var(--blue); font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; font-weight: 900; }
.foundation-grid h3 { margin: 48px 0 7px; font-size: 18px; }
.foundation-grid p { margin: 0; color: var(--muted); font-size: 12px; }

/* Mon compte */
.account-heading { padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.account-layout { margin-top: 35px; display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 30px; align-items: start; }
.account-tabs { position: sticky; top: 105px; padding: 8px; display: grid; gap: 4px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-soft); }
.account-tabs a { min-height: 48px; padding: 0 12px; display: grid; grid-template-columns: 25px 1fr; gap: 6px; align-items: center; color: #52647f; border-radius: 8px; font-size: 11px; font-weight: 800; }
.account-tabs a span { color: #9aabc1; font-family: "Cascadia Code", Consolas, monospace; font-size: 8px; }
.account-tabs a:hover,
.account-tabs a[aria-current="page"] { color: var(--blue); background: #edf3ff; }
.account-tabs a[aria-current="page"] span { color: var(--blue); }
.account-tabs .danger-link { margin-top: 6px; color: #9f2941; border-top: 1px solid #edf0f5; border-radius: 0 0 8px 8px; }
.account-tabs .danger-link:hover,
.account-tabs .danger-link[aria-current="page"] { color: var(--red); background: var(--red-soft); }
.account-card { min-width: 0; padding: clamp(28px, 4vw, 48px); background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); }
.card-heading { display: flex; justify-content: space-between; gap: 25px; align-items: flex-start; }
.card-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; line-height: 1.05; }
.card-intro { max-width: 720px; margin: 17px 0 35px; color: var(--muted); font-size: 13px; }
.verified-badge,
.optional-badge,
.danger-badge { flex: 0 0 auto; padding: 8px 10px; color: #236443; background: #eaf8ef; border: 1px solid #c8e8d4; border-radius: 20px; font-size: 9px; font-weight: 850; }
.verified-badge i { margin-right: 4px; }
.optional-badge { color: #536a8e; background: #f0f4fa; border-color: #d9e1ed; }
.danger-badge { color: var(--red-dark); background: var(--red-soft); border-color: #edbfca; }
.account-form { max-width: 760px; }
.account-form .form-grid { gap: 19px; }
.form-actions { margin-top: 5px; padding-top: 24px; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); }
.info-callout { max-width: 760px; margin-top: 30px; padding: 16px; display: grid; grid-template-columns: 25px 1fr; gap: 10px; align-items: start; color: #536781; background: #edf3ff; border: 1px solid #d0def7; border-radius: 9px; }
.info-callout > span { width: 23px; height: 23px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 50%; font-size: 10px; font-weight: 900; }
.info-callout p { margin: 1px 0 0; font-size: 10px; }
.info-callout strong { display: block; color: #294362; font-size: 11px; }
.organisation-section > h3 { margin: 0 0 20px; font-size: 15px; }
.organisation-help { margin: -12px 0 20px; color: var(--muted); font-size: 10px; }
.card-divider { margin: 38px 0; border: 0; border-top: 1px solid var(--line); }
.subsection-heading { margin-bottom: 24px; }
.subsection-heading h3 { margin: 0; font-size: 20px; }
.subsection-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.security-summary { margin-top: 30px; display: grid; gap: 8px; }
.security-summary article { min-height: 70px; padding: 13px 15px; display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; background: #f8faff; border: 1px solid #e0e7f2; border-radius: 9px; }
.security-icon { width: 39px; height: 39px; display: grid; place-items: center; color: var(--blue); background: #eaf1ff; border-radius: 8px; font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; font-weight: 900; }
.security-summary article > div { display: grid; }
.security-summary strong { font-size: 12px; }
.security-summary small { color: var(--muted); font-size: 9px; }
.security-summary article > span:last-child { color: var(--green); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.session-list { display: grid; gap: 8px; }
.session-list article { padding: 13px 15px; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.session-list article > span { color: var(--blue); }
.session-list article > div { display: grid; }
.session-list strong { font-size: 11px; }
.session-list small { color: var(--muted); font-size: 9px; }
.session-list em { color: var(--green); font-size: 9px; font-style: normal; font-weight: 800; }
.secondary-action { margin-top: 17px; }
.danger-heading .card-overline { color: var(--red); }
.danger-explanation { margin: 30px 0 36px; padding: 24px; color: #6c3340; background: var(--red-soft); border: 1px solid #edc1cb; border-radius: 11px; }
.danger-explanation h3 { margin: 0 0 13px; color: var(--red-dark); font-size: 16px; }
.danger-explanation ul { margin: 0; padding-left: 20px; font-size: 11px; }
.danger-explanation li + li { margin-top: 7px; }
.danger-form { max-width: 620px; }
.confirmation-hint { margin: -13px 0 0; color: var(--red-dark); font-size: 10px; }
.danger-consent { color: #6e3340; }
.back-link { margin-top: 30px; display: inline-flex; color: var(--blue); font-size: 11px; font-weight: 800; }
.resend-delete-form { max-width: 620px; margin-top: 8px; text-align: center; }

.error-page { background: radial-gradient(circle at 50% 35%, #e5edff, transparent 36%), var(--paper); }
.error-state {
  min-height: calc(100vh - 150px);
  padding: 90px 24px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.error-state > span:first-child { color: #d4e1f7; font-size: clamp(100px, 18vw, 210px); font-weight: 950; letter-spacing: -.08em; line-height: .72; }
.error-state .eyebrow { margin-top: 38px; }
.error-state h1 { margin: 0; font-size: clamp(37px, 5vw, 60px); letter-spacing: -.05em; }
.error-state > p:not(.eyebrow) { max-width: 560px; margin: 17px 0 28px; color: var(--muted); }

.console-footer {
  flex: 0 0 auto;
  padding: 24px max(24px, calc((100% - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: #73859e;
  background: #020d20;
  font-size: 9px;
}
.console-footer nav { display: flex; gap: 18px; }
.console-footer a:hover { color: white; }

@media (max-width: 1080px) {
  .account-chip { min-width: auto; }
  .account-chip-copy { display: none; }
  .auth-shell { grid-template-columns: .8fr 1.2fr; }
  .auth-story { padding: 55px; }
  .auth-story-copy h1 { font-size: 52px; }
}

@media (max-width: 860px) {
  .header-shell { min-height: 70px; }
  .brand-product { display: none; }
  .account-chip { margin-left: auto; padding-left: 0; border: 0; }
  .nav-toggle { position: relative; z-index: 103; width: 42px; height: 42px; padding: 0; display: grid; place-content: center; gap: 5px; background: white; border: 1px solid var(--line); border-radius: 8px; }
  .nav-toggle span:not(.sr-only) { width: 19px; height: 2px; display: block; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .console-nav { position: fixed; z-index: 102; inset: 0; margin: 0; padding: 105px 24px 45px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; background: rgba(248, 250, 255, .99); opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(100%); transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s; }
  .console-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); transition: transform .25s ease, opacity .2s ease; }
  .console-nav a, .console-nav button { width: 100%; min-height: 56px; justify-content: flex-start; font-size: 18px; text-transform: none; }
  .console-nav form { margin-top: auto; }
  .auth-shell { display: block; }
  .auth-story { min-height: 335px; padding: 52px 35px; }
  .auth-story-copy h1 { max-width: 690px; font-size: 50px; }
  .auth-story-copy > p:last-child { margin-top: 18px; }
  .auth-proof { margin-top: 27px; padding-top: 18px; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .auth-panel { padding: 55px 25px 75px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-empty { grid-template-columns: 1fr; gap: 15px; }
  .empty-visual { min-height: 235px; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .foundation-grid { grid-template-columns: 1fr; }
  .foundation-grid article { min-height: 150px; }
  .foundation-grid h3 { margin-top: 28px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-tabs { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .account-tabs .danger-link { margin: 0; border-top: 0; }
  .console-footer { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .header-shell,
  .app-shell { width: calc(100% - 30px); }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 29px; height: 29px; }
  .public-nav > a:first-child { display: none; }
  .button-small { min-height: 40px; padding: 0 13px; font-size: 10px; }
  .messages { top: 80px; right: 15px; }
  .auth-story { min-height: 285px; padding: 42px 20px; }
  .auth-story-copy h1 { font-size: 41px; }
  .auth-story-copy > p:last-child { font-size: 14px; }
  .auth-proof { display: none; }
  .auth-panel { padding: 34px 15px 58px; }
  .auth-card { padding: 28px 20px; border-radius: 13px; }
  .auth-card-head h2 { font-size: 34px; }
  .form-grid-two { grid-template-columns: 1fr; }
  .password-policy ul { grid-template-columns: 1fr; }
  .code-field input { font-size: 27px; letter-spacing: .24em; }
  .form-between { align-items: flex-start; flex-direction: column; gap: 7px; }
  .app-shell { padding: 47px 0 78px; }
  .page-heading h1 { font-size: 43px; }
  .dashboard-empty { margin-top: 35px; padding: 30px 20px 38px; }
  .empty-visual { min-height: 205px; transform: scale(.84); margin: -14px; }
  .empty-copy h2 { font-size: 34px; }
  .empty-actions { align-items: stretch; flex-direction: column; }
  .empty-actions .button { width: 100%; }
  .dashboard-foundations { margin-top: 58px; }
  .account-heading { padding-bottom: 28px; }
  .account-layout { margin-top: 22px; gap: 18px; }
  .account-tabs { padding: 5px; grid-template-columns: 1fr; }
  .account-tabs a { min-height: 43px; }
  .account-card { padding: 25px 18px; }
  .card-heading { flex-direction: column; gap: 14px; }
  .verified-badge, .optional-badge, .danger-badge { align-self: flex-start; }
  .form-actions { justify-content: stretch; }
  .form-actions .button { width: 100%; }
  .security-summary article { grid-template-columns: 39px 1fr; }
  .security-summary article > span:last-child { grid-column: 2; }
  .session-list article { grid-template-columns: 25px 1fr; }
  .session-list em { grid-column: 2; }
  .danger-explanation { padding: 19px; }
  .console-footer { padding: 25px 15px; flex-direction: column; gap: 10px; }
  .console-footer nav { flex-wrap: wrap; gap: 10px 15px; }
}

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