:root {
  color-scheme: light;
  --navy: #0b2b49;
  --navy-deep: #08233c;
  --teal: #0b686e;
  --teal-dark: #08545b;
  --aqua: #bce6e5;
  --orange: #e78a36;
  --paper: #f3f7f9;
  --surface: #fff;
  --ink: #102640;
  --muted: #536d78;
  --line: #dbe5e8;
  --warn-bg: #fff8ec;
  --warn-line: #d88a38;
  --danger: #a02b2b;
  --shadow: 0 18px 48px rgba(12, 41, 60, .09);
  font-family: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #efad63; outline-offset: 3px; }

.v1-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.v1-header {
  min-height: 88px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px max(24px, calc((100vw - 1120px) / 2));
  background: var(--navy); color: #fff;
}
.v1-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.v1-brand img { width: 84px; max-height: 60px; object-fit: contain; object-position: left center; }
.v1-brand-copy { display: grid; gap: 3px; }
.v1-brand-copy strong { font: 800 1.08rem/1.1 'Manrope', sans-serif; letter-spacing: -.035em; }
.v1-brand-copy span { color: #b8d4de; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.v1-header-meta { display: flex; align-items: center; gap: 16px; color: #d5edf5; font-size: .85rem; }
.v1-header-meta a { color: #bce6e5; font-weight: 700; text-decoration: none; }
.v1-header-meta a:hover { text-decoration: underline; }
.v1-status { display: inline-flex; align-items: center; gap: 8px; color: #c4e7df; font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.v1-status::before { width: 7px; height: 7px; content: ''; border-radius: 50%; background: #70cbb5; }

.v1-main { width: min(1120px, calc(100% - 40px)); margin: 38px auto 64px; flex: 1; }
.v1-eyebrow { margin: 0 0 10px; color: var(--teal); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.v1-heading { margin: 0; max-width: 760px; color: var(--navy); font: 800 clamp(2rem, 5vw, 3.35rem)/1.08 'Manrope', sans-serif; letter-spacing: -.055em; }
.v1-lede { max-width: 660px; margin: 15px 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.v1-intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 8px 0 28px; }
.v1-edition { width: 190px; flex: 0 0 auto; padding: 15px 18px; border-left: 2px solid var(--orange); color: var(--muted); font-size: .78rem; line-height: 1.55; }
.v1-edition strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: .85rem; }

.v1-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.v1-access-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); overflow: hidden; }
.v1-access-copy { padding: clamp(24px, 4vw, 42px); background: linear-gradient(140deg, #eaf4f5 0%, #f7faf9 74%); }
.v1-access-copy h2, .v1-auth-panel h2 { margin: 0 0 10px; color: var(--navy); font: 800 1.35rem/1.2 'Manrope', sans-serif; letter-spacing: -.035em; }
.v1-access-copy p { max-width: 480px; margin: 0; color: var(--muted); line-height: 1.6; }
.v1-destination-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.v1-destination-list li { min-height: 88px; display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 1px solid rgba(11, 104, 110, .13); border-radius: 12px; background: rgba(255,255,255,.74); }
.v1-index { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 800; }
.v1-destination-list strong { display: block; color: var(--navy); font-size: .84rem; line-height: 1.25; }
.v1-destination-list small { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.v1-auth-panel { padding: clamp(24px, 4vw, 42px); }
.v1-auth-tabs { display: flex; gap: 18px; margin: 0 0 22px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.v1-tab { position: relative; border: 0; padding: 4px 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.v1-tab[aria-selected="true"] { color: var(--teal); }
.v1-tab[aria-selected="true"]::after { position: absolute; right: 0; bottom: -13px; left: 0; height: 2px; content: ''; background: var(--teal); }
.v1-form { display: grid; gap: 13px; }
.v1-form[hidden], [hidden] { display: none !important; }
.v1-form label { display: grid; gap: 6px; color: #294a5b; font-size: .82rem; font-weight: 700; }
.v1-form input { width: 100%; min-width: 0; min-height: 45px; padding: 10px 12px; border: 1px solid #b9cdd2; border-radius: 9px; background: #fff; color: var(--ink); }
.v1-form input::placeholder { color: #8b9ea5; }
.v1-register-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v1-register-fields label:nth-child(1), .v1-register-fields label:nth-child(2) { grid-column: span 2; }
.v1-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 17px; border: 0; border-radius: 10px; background: var(--teal); color: #fff; font-weight: 800; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.v1-button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.v1-button:disabled { opacity: .65; cursor: progress; transform: none; }
.v1-button-secondary { background: #e6f0f3; color: #144a58; }
.v1-button-secondary:hover { background: #d7e8ed; }
.v1-form-note { min-height: 1.25em; margin: 0; color: var(--danger); font-size: .82rem; line-height: 1.45; }
.v1-form-note[data-kind="success"] { color: var(--teal); }
.v1-form-note[data-kind="info"] { color: var(--muted); }
.v1-forgot-link { justify-self: start; color: var(--teal-dark); font-size: .84rem; font-weight: 700; text-underline-offset: 3px; }
.v1-forgot-link:hover { color: var(--navy); }
.v1-recovery-card { width: min(100%, 520px); margin: 34px auto; padding: clamp(24px, 5vw, 40px); }
.v1-recovery-card h1 { margin: 0; color: var(--navy); font: 800 clamp(1.7rem, 5vw, 2.25rem)/1.15 'Manrope', sans-serif; letter-spacing: -.04em; }
.v1-recovery-intro { margin: 12px 0 22px; color: var(--muted); line-height: 1.6; }
.v1-text-button { justify-self: center; border: 0; padding: 7px 10px; background: transparent; color: var(--teal-dark); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.v1-text-button:hover { color: var(--navy); }
.v1-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #80939a; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.v1-divider::before, .v1-divider::after { height: 1px; flex: 1; content: ''; background: var(--line); }
.v1-token-intro { margin: -8px 0 13px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.v1-footnote { margin: 17px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }

.v1-dashboard { display: grid; gap: 18px; }
.v1-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 28px; border-radius: 18px; background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.v1-welcome .v1-eyebrow { color: #aee7ec; }
.v1-welcome h1 { margin: 0; font: 800 clamp(1.8rem, 4vw, 2.8rem)/1.12 'Manrope', sans-serif; letter-spacing: -.05em; }
.v1-welcome p { margin: 10px 0 0; color: #d1e0e6; line-height: 1.55; }
.v1-welcome .v1-button { background: #dff1ee; color: var(--navy); flex: 0 0 auto; }
.v1-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 18px; }
.v1-dash-card { padding: 25px; }
.v1-dash-card h2 { margin: 0 0 8px; color: var(--navy); font: 800 1.22rem 'Manrope', sans-serif; letter-spacing: -.03em; }
.v1-dash-card > p { margin: 0; color: var(--muted); line-height: 1.55; }
.v1-destination-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.v1-destination-link:hover { border-color: #9ec9c9; background: #f3faf9; }
.v1-destination-link strong { display: block; font-size: .95rem; }
.v1-destination-link small { display: block; margin-top: 5px; color: var(--muted); }
.v1-arrow { color: var(--teal); font-size: 1.3rem; font-weight: 700; }
.v1-disabled { padding: 23px 25px; border: 1px solid #f0d5b4; border-left: 4px solid var(--warn-line); border-radius: 15px; background: var(--warn-bg); }
.v1-disabled h2 { margin: 0 0 7px; color: #70451d; font: 800 1.04rem 'Manrope', sans-serif; }
.v1-disabled p { margin: 0; color: #795b3b; font-size: .9rem; line-height: 1.6; }
.v1-role-chip { display: inline-flex; align-items: center; margin-top: 13px; padding: 6px 10px; border: 1px solid rgba(188,230,229,.25); border-radius: 999px; color: #d4eeee; font-size: .73rem; font-weight: 700; }
.v1-error-card { max-width: 700px; margin: 70px auto; padding: 30px; text-align: center; }
.v1-error-card h1 { margin: 0 0 12px; color: var(--navy); font: 800 2rem 'Manrope', sans-serif; }
.v1-error-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }
.v1-footer { width: min(1120px, calc(100% - 40px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 auto; padding: 18px 0 24px; border-top: 1px solid var(--line); color: #74878e; font-size: .74rem; }
.v1-footer span:last-child { letter-spacing: .1em; text-transform: uppercase; }
.v1-loading { max-width: 600px; padding: 25px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); color: var(--muted); }
.v1-skeleton { height: 12px; overflow: hidden; position: relative; margin: 11px 0; border-radius: 99px; background: #e7eef0; }
.v1-skeleton::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent); transform: translateX(-100%); animation: v1-shimmer 1.5s infinite; }
.v1-skeleton:nth-child(2) { width: 84%; }
.v1-skeleton:nth-child(3) { width: 66%; }
@keyframes v1-shimmer { to { transform: translateX(100%); } }

@media (max-width: 760px) {
  .v1-main { margin-top: 24px; }
  .v1-intro-row { align-items: flex-start; flex-direction: column; gap: 16px; padding-bottom: 20px; }
  .v1-edition { width: auto; }
  .v1-access-layout, .v1-dashboard-grid { grid-template-columns: 1fr; }
  .v1-access-copy { border-bottom: 1px solid var(--line); }
  .v1-welcome { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .v1-header { min-height: 76px; padding: 12px 17px; }
  .v1-brand img { width: 58px; max-height: 50px; }
  .v1-brand-copy span { font-size: .62rem; }
  .v1-header-meta { gap: 10px; font-size: .75rem; }
  .v1-status { display: none; }
  .v1-main, .v1-footer { width: calc(100% - 28px); }
  .v1-main { margin-top: 19px; }
  .v1-destination-list { grid-template-columns: 1fr; }
  .v1-register-fields { grid-template-columns: 1fr; }
  .v1-register-fields label:nth-child(n) { grid-column: auto; }
  .v1-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}