:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f1f5f8;
  color: #142338;
  --muted: #50637c;
  --line: #d9e3ed;
  --dark: #101d30;
  --primary: #00634e;
  --accent: #94e4cb;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
:focus-visible { outline: 3px solid #087c63; outline-offset: 3px; }
.skip { position: absolute; top: -100px; left: 10px; background: white; color: var(--dark); padding: .75rem; z-index: 4; }
.skip:focus { top: 6px; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px clamp(14px, 4vw, 36px);
  gap: 10px;
}
.identity { display: inline-flex; gap: .7rem; align-items: center; text-decoration: none; font-weight: 750; }
.identity-sub { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; }
.tag { border: 1px solid var(--line); padding: 5px 10px; border-radius: 100px; font-size: .77rem; color: var(--muted); }
.shell {
  display: grid;
  grid-template-columns: minmax(245px, .9fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 18px;
  max-width: 1160px;
  padding: clamp(14px, 4vw, 36px);
  margin: 14px auto 0;
}
.intro, .panel { border-radius: 18px; padding: clamp(20px, 3.5vw, 36px); }
.intro {
  background: radial-gradient(ellipse at 85% -10%, #244c63 0%, var(--dark) 62%);
  color: #f7fcff;
}
.eyebrow { margin: 0 0 9px; font-size: .75rem; font-weight: 780; letter-spacing: .1em; color: var(--primary); }
.intro .eyebrow { color: var(--accent); }
.intro h1 { margin: 0; font-size: clamp(2.1rem, 4.5vw, 3.35rem); line-height: 1.05; max-width: 11ch; letter-spacing: -.045em; }
.intro > p:not(.eyebrow), .steps { color: #c6d7e8; line-height: 1.6; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; font-size: .9rem; }
.steps li { border-top: 1px solid #43576a; padding: 11px 0; display: flex; gap: 12px; }
.steps li span, .steps li strong { color: #f8fdff; font-weight: 725; }
.steps li span { color: var(--accent); font-size: .74rem; padding-top: 2px; }
.panel { background: white; border: 1px solid var(--line); box-shadow: 0 8px 26px #1423380b; min-width: 0; }
h2, h3, p { margin-top: 0; }
h2 { font-size: clamp(1.38rem, 2.4vw, 1.78rem); margin-bottom: 8px; letter-spacing: -.02em; }
h3 { font-size: 1.12rem; margin-bottom: 0; }
.muted { color: var(--muted); line-height: 1.55; }
.switcher {
  display: flex;
  padding: 4px;
  background: #edf3f6;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 20px 0;
  gap: 4px;
}
.switcher button { flex: 1; min-height: 41px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #465a72; }
.switcher button[aria-pressed="true"] { background: #fff; border-color: #d5e0e9; color: #12243b; font-weight: 700; }
form { display: grid; gap: 7px; }
label { font-size: .88rem; font-weight: 700; margin-top: 4px; }
input {
  width: 100%;
  padding: 10px 12px;
  min-height: 46px;
  color: #142338;
  border: 1px solid #aabbd0;
  border-radius: 8px;
  background: #fff;
}
button.primary, button.secondary {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 15px;
  font-size: .88rem;
  font-weight: 720;
}
button.primary { background: var(--primary); color: #fff; }
button.primary:hover:not(:disabled) { background: #004c3c; }
button.secondary { background: white; color: #294462; border-color: #acbed0; }
button.secondary:hover:not(:disabled) { background: #f3f7fa; }
form .primary { margin-top: 10px; }
.hint { font-size: .83rem; color: var(--muted); line-height: 1.5; margin: 4px 0; }
.status { margin: 14px 0 0; font-size: .91rem; color: #35536b; line-height: 1.55; overflow-wrap: anywhere; }
.status:empty { margin: 0; }
.status[data-tone="error"] { color: #9c291c; }
.status[data-tone="success"] { color: #00634e; }
#challenge { min-width: 0; overflow-x: auto; }
.signed-heading, .actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.actions { justify-content: flex-start; }
.pilot-note { background: #eaf4f6; border: 1px solid #cedfe5; padding: 12px; border-radius: 9px; color: #29425b; line-height: 1.5; }
.request-section { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.requests { list-style: none; padding: 0; margin: 0; }
.request { border-top: 1px solid var(--line); margin-top: 11px; padding-top: 11px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.request-name, .request-date { margin: 0 0 2px; overflow-wrap: anywhere; }
.request-name { font-weight: 740; }
.request-state { display: inline-block; font-size: .73rem; border-radius: 100px; background: #edf3f6; border: 1px solid #d4e0e9; padding: 3px 8px; margin: 5px 0 3px; }
.text-button { background: transparent; padding: 8px 0; margin-top: 14px; border: 0; color: var(--primary); text-decoration: underline; }
dialog { color: var(--dark); border: 1px solid var(--line); border-radius: 13px; padding: 0; width: min(440px, calc(100% - 30px)); }
dialog::backdrop { background: #14233890; }
.dialog-inner { padding: 20px; overflow-wrap: anywhere; }
footer { max-width: 1160px; padding: 0 clamp(14px, 4vw, 36px) 24px; margin: auto; color: var(--muted); font-size: .82rem; }
@media (max-width: 700px) {
  .shell { grid-template-columns: 1fr; margin-top: 0; }
  .intro { padding: 20px; }
  .intro h1 { max-width: 18ch; }
  .steps { display: none; }
}
