:root {
  color-scheme: light;
  --paper: #f7f8fa;
  --panel: #ffffff;
  --raised: #eef1f5;
  --ink: #172138;
  --muted: #526079;
  --line: #d5dbe5;
  --accent: #ce1054;
  --accent-text: #b70f4c;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body, ul, p, h1, h2, h3 { margin: 0; }
body { min-height: 100dvh; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
[hidden], .symbols { display: none !important; }
.icon { display: inline-block; width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; inset: 8px auto auto 8px; z-index: 3; background: var(--raised); padding: 8px 12px; }
.workspace { display: grid; grid-template-columns: 304px minmax(0,1fr); min-height: 100dvh; }
.lookup-panel { display: flex; flex-direction: column; gap: 28px; min-width: 0; padding: 30px 24px; background: var(--panel); border-right: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 11px 12px; border-radius: 5px; background: #ffffff; text-decoration: none; }
.brand img { display: block; width: 224px; max-width: 100%; height: auto; }
.lookup-panel h2 { font-size: 18px; font-weight: 500; letter-spacing: -.025em; }
.lookup-help { color: var(--muted); font-size: 14px; margin-top: 7px; }
#lookup { margin-top: 19px; }
#lookup label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.search-controls { display: grid; gap: 9px; }
.search-controls input { background: var(--paper); border: 1px solid #8995a8; border-radius: 6px; padding: 0 12px; height: 46px; width: 100%; min-width: 0; font-size: 16px; }
input::placeholder { color: #66738a; opacity: 1; }
.find, .package { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 11px 15px; min-height: 46px; font-size: 14px; font-weight: 600; border-radius: 6px; text-decoration: none; }
.find:hover, .package:hover { color: #fff; background: #ac1049; border-color: #ac1049; }
.find:disabled { cursor: wait; opacity: .65; }
#record:not(:empty) { border-left: 2px solid var(--accent-text); margin-top: 17px; padding-left: 12px; font-size: 14px; overflow-wrap: anywhere; }
#record strong { display: block; margin-bottom: 6px; }
#record div { color: var(--muted); font-size: 12px; }
#reset { min-height: 44px; background: transparent; padding: 0; font-size: 13px; border: none; text-decoration: underline; text-underline-offset: 3px; color: var(--accent-text); }
.portal-links { display: grid; gap: 5px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.portal-links a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 13px; text-decoration: none; color: var(--muted); }
.portal-links a:hover { color: var(--ink); }
.portal-links .icon { width: 15px; height: 15px; }
.register { min-width: 0; width: 100%; max-width: 1500px; padding: clamp(24px,4vw,64px); align-self: start; }
.register-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
h1 { font-size: clamp(26px,3vw,40px); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; }
.register-intro { color: var(--muted); font-size: 14px; margin-top: 10px; }
#form-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); overflow-wrap: anywhere; font: 11px/1.5 var(--mono); margin-top: 12px; }
#form-state::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #68758a; }
#form-state[data-prefilled]::before { background: var(--accent-text); }
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 35px; }
.phase { min-width: 0; }
.phase h2 { font: 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-bottom: 13px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.phase ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.phase li { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 19px 18px 10px; min-height: 132px; transition: border-color .15s ease, background-color .15s ease; }
.phase li:hover, .phase li:focus-within { border-color: #8995a8; background: #fcf7fa; }
.ref { color: var(--accent-text); font: 12px/1 var(--mono); display: grid; width: 30px; height: 35px; place-items: center; border: 1px solid #e3b5c8; border-radius: 3px; align-self: start; }
.form-name { display: flex; flex-direction: column; align-items: start; text-decoration: none; font-size: 17px; font-weight: 500; line-height: 1.35; }
.form-name::after { content: 'Open PDF'; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 8px; }
.actions { grid-column: 2; display: flex; gap: 7px; }
.actions a, .actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; background: transparent; border: 0; border-radius: 4px; color: var(--muted); padding: 0 7px; font-size: 12px; text-decoration: none; }
.actions :is(a,button):hover, .actions button.copied { color: var(--ink); background: #eef1f5; }
.actions .icon { width: 14px; height: 14px; }
.form-help { color: var(--muted); font-size: 12px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.form-help a { display: inline-flex; gap: 6px; align-items: center; }
.form-help .icon { width: 12px; height: 12px; }
@media (min-width: 1600px) { .register { padding-top: 56px; } .phase li { min-height: 150px; } }
@media (max-width: 1050px) { .workspace { grid-template-columns: 270px minmax(0,1fr); } .register { padding: 28px; } .groups { gap: 14px; } .phase li { padding-inline: 12px; column-gap: 10px; } .form-name { font-size: 15px; } .register-head { align-items: start; } }
@media (max-width: 800px) { .workspace { grid-template-columns: 1fr; } .lookup-panel { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; padding: 20px 24px; border-right: 0; border-bottom: 1px solid var(--line); } .brand { align-self: start; } .portal-links { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; border: 0; } .portal-links a { gap: 8px; min-height: 32px; } #lookup { margin-top: 12px; } .register { padding: 26px 24px; } .groups { margin-top: 25px; } }
@media (max-width: 520px) { .lookup-panel { grid-template-columns: 1fr; gap: 22px; padding: 20px; } .register { padding: 25px 20px; } .brand img { width: 208px; height: auto; } .lookup-panel h2 { font-size: 17px; } .search-controls { grid-template-columns: minmax(0,1fr) auto; } .find { padding-inline: 12px; } .find .icon { display: none; } .groups { grid-template-columns: 1fr; gap: 28px; } .phase li { min-height: 115px; } .register-head { align-items: stretch; gap: 18px; } .package { width: 100%; justify-content: center; } .form-name { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
