:root {
  color-scheme: light;
  --canvas: #f5f2ea;
  --surface: #fffdf9;
  --ink: #101c36;
  --muted: #4e5b72;
  --line: #d9dce4;
  --blue: #253dcc;
  --blue-hover: #1d31a8;
  --blue-soft: #edf0ff;
  --orange: #ff843f;
  --warm: #f6e8d8;
  --warm-ink: #6a351c;
  --white: #fbf8f2;
  --hero-muted: #dee5ff;
  --green: #1d5b45;
  --green-soft: #e5f2e9;
  --danger: #a12530;
  --danger-soft: #fff0ef;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); }
h1, h2, p { margin: 0; }
a { color: var(--blue); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--orange); }
[tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; z-index: 4; left: 1rem; top: .7rem; background: #fff; padding: .6rem 1rem; border-radius: .5rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.page { width: min(100% - 3rem, 64rem); margin-inline: auto; }
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-inner, .masthead-end { display: flex; align-items: center; gap: .75rem; }
.masthead-inner { justify-content: space-between; min-height: 4.65rem; }
.masthead-end { justify-content: flex-end; flex-wrap: wrap; }
.brand { display: inline-flex; gap: .55rem; align-items: center; flex: none; color: var(--ink); font-size: 2rem; font-weight: 850; letter-spacing: -.08em; text-decoration: none; }
.brand-mark { display: flex; gap: .21rem; padding-inline: .2rem; }
.brand-mark i { width: .43rem; height: 1.48rem; background: var(--orange); border-radius: 2rem; transform: skewX(-24deg); }
.environment { display: inline-flex; align-items: center; gap: .4rem; border-radius: 2rem; background: var(--warm); color: var(--warm-ink); padding: .3rem .67rem; font-size: .79rem; font-weight: 730; }
.environment i { background: #a55324; width: .44rem; height: .44rem; border-radius: 50%; }
.main { flex: 1; padding-block: clamp(1.7rem, 6vw, 4rem); }
.footer { padding-block: 0 1.6rem; }
.footer a { color: var(--muted); font-weight: 650; text-underline-offset: .2em; }

.access { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 1rem; max-width: 57rem; margin-inline: auto; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 92% -10%, #273b78 0, var(--ink) 70%); color: var(--white); border-radius: 1.55rem; }
.access-intro { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.6rem, 5vw, 3.25rem); min-height: 24rem; }
.hero-label { font-size: .85rem; font-weight: 750; color: var(--hero-muted); display: inline-flex; align-items: center; gap: .55rem; }
.hero-label::before { content: ""; width: 1.2rem; height: .2rem; border-radius: 1rem; background: var(--orange); }
.hero h1, .page-title { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(2.55rem, 6vw, 4.25rem); letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.access-intro h1 { margin-block: .9rem 1rem; max-width: 11ch; }
.access-intro p { max-width: 31rem; color: var(--hero-muted); line-height: 1.6; }
.orbit { position: absolute; z-index: -1; pointer-events: none; width: 16rem; height: 19rem; top: -4rem; right: -3.4rem; border: 1px solid #7182bf80; border-radius: 50%; transform: rotate(28deg); }
.orbit i:first-child { position: absolute; inset: 14%; border: 1px solid #7e94cf70; border-radius: 50%; }
.orbit i:last-child { position: absolute; top: 46%; left: -.22rem; width: .48rem; height: .48rem; border-radius: 50%; background: var(--orange); }
.cycle-hero .orbit { right: 3%; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 1.4rem; }
.access-panel { padding: clamp(1.3rem, 4vw, 2.2rem); align-content: center; }
.panel h2, .cycle-hero h2 { font-size: 1.3rem; line-height: 1.25; }
.muted { color: var(--muted); }
.access-panel > p, .compact p { margin-block-start: .4rem; }
form { display: grid; gap: .55rem; }
.access-panel form { margin-block-start: 1.3rem; }
form label { font-size: .94rem; font-weight: 730; }
form label:not(:first-child) { margin-top: .35rem; }
input { width: 100%; min-width: 0; min-height: 3rem; background: #fff; color: var(--ink); border: 1px solid #929cb0; border-radius: .75rem; padding: .6rem .8rem; }
input::placeholder { color: var(--muted); }
input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.password-field { display: flex; align-items: center; gap: .4rem; }
.password-field input { flex: 1; }
.password-field .button { flex: none; }
.button { display: inline-flex; align-items: center; justify-content: center; font-weight: 730; line-height: 1.25; min-height: 2.75rem; text-align: center; padding: .64rem .85rem; border-radius: .75rem; border: 1px solid transparent; }
form .button-primary { margin-block-start: .65rem; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover:not(:disabled) { background: var(--blue-hover); }
.button-secondary { color: var(--blue); background: var(--blue-soft); }
.button-secondary:hover:not(:disabled) { background: #dfe5ff; }
.button-outline { border-color: #9daee1; color: var(--white); background: #243659; }
.button-outline:hover:not(:disabled) { background: #354a76; }
.button-quiet { color: var(--blue); background: transparent; }
.button-quiet:hover:not(:disabled) { background: var(--blue-soft); }
.button:disabled { opacity: .63; cursor: default; }
.full { width: 100%; }
.feedback { background: var(--green-soft); color: var(--green); padding: .7rem .8rem; border-radius: .65rem; }
.feedback.error { color: var(--danger); background: var(--danger-soft); }
.feedback.neutral { background: var(--blue-soft); color: var(--ink); }

.account { max-width: 48rem; margin-inline: auto; }
.tabs { display: flex; flex-wrap: wrap; gap: .32rem; margin-bottom: 1.4rem; padding: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: .92rem; }
.tabs a { flex: 1 1 6rem; display: flex; justify-content: center; align-items: center; padding: .55rem; min-height: 2.75rem; border-radius: .64rem; color: var(--muted); font-weight: 700; text-decoration: none; }
.tabs a:hover, .tabs a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.route { display: grid; gap: 1rem; }
.section-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem 1rem; align-items: center; }
.page-title { font-size: clamp(2.4rem, 6vw, 3.7rem); }
.cycle-hero { padding: clamp(1.35rem, 4vw, 2.1rem); }
.countdown { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .6rem; }
.countdown strong { font-size: clamp(2rem, 9vw, 4.15rem); font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: -.05em; }
.countdown strong.has-message { font-size: 1.65rem; line-height: 1.25; letter-spacing: -.025em; }
.countdown span { font-size: 1.06rem; color: var(--hero-muted); font-weight: 550; }
.hero-status { margin-top: .5rem; color: var(--hero-muted); }
.hero-status:empty { margin: 0; }
#cycle-details { margin-top: .55rem; }
.hero-date { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .6rem; font-weight: 730; }
.hero-date span { font-size: .83rem; color: var(--hero-muted); background: #28375d; padding: .28rem .57rem; border-radius: 1.5rem; }
.home-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.compact { padding: 1.15rem; }
.eyebrow { color: var(--blue); font-size: .84rem; font-weight: 730; margin-block: 0 .4rem !important; }
.home-link { display: flex; align-items: center; justify-content: space-between; gap: .7rem; color: var(--ink); text-decoration: none; }
.home-link:hover { border-color: var(--blue); background: #f8f8ff; }
.link-mark { flex: none; display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; color: var(--blue); background: var(--blue-soft); border-radius: .7rem; }
.link-mark::before { content: ""; width: .4rem; height: .4rem; transform: rotate(45deg); border-top: 2px solid; border-right: 2px solid; }

.result-status { color: var(--muted); }
.result-status:empty { display: none; }
.result-status.error { color: var(--danger); }
.results-list { display: grid; gap: .65rem; list-style: none; padding: 0; margin: 0; }
.result { padding: 1rem 1.15rem; display: flex; align-items: center; gap: .85rem; }
.result-icon, .avatar { flex: none; width: 2.65rem; height: 2.65rem; border-radius: .85rem; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); }
.result-icon::before { content: ""; width: .72rem; height: .95rem; border: 1.5px solid currentColor; border-radius: .15rem; background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 3px) center /.32rem .38rem no-repeat; }
.result-copy { flex: 1; min-width: 0; }
.result-name { font-size: 1.02rem; font-weight: 750; overflow-wrap: anywhere; }
.result-date { margin-top: .15rem; }
.result-badge { display: inline-flex; padding: .25rem .52rem; border-radius: 2rem; color: var(--green); background: var(--green-soft); font-size: .79rem; font-weight: 740; margin-top: .25rem; }
.profile-panel { max-width: 32rem; padding: clamp(1.2rem, 4vw, 1.7rem); display: grid; gap: 1.15rem; }
.profile-identity { display: flex; align-items: center; gap: .68rem; }
.profile-identity h2 { font-size: 1rem; }
.profile-identity p { overflow-wrap: anywhere; }
.avatar { font-weight: 790; }
.profile-panel .button { justify-self: start; }

@media (max-width: 43rem) {
  .page { width: min(100% - 2rem, 64rem); }
  .access { grid-template-columns: 1fr; }
  .access-intro { min-height: 0; }
  .access-intro h1 { max-width: 15ch; font-size: clamp(2.45rem, 9vw, 3.35rem); }
  .access-intro p { max-width: 29rem; }
}
@media (max-width: 28rem) {
  .page { width: calc(100% - 1.5rem); }
  .masthead-inner { min-height: 4.1rem; gap: .4rem; }
  .masthead-end { gap: .15rem .3rem; }
  .masthead-end .button { padding-inline: .5rem; font-size: .9rem; }
  .tabs a { flex-basis: 4rem; }
  .home-bottom { grid-template-columns: 1fr; }
}
