:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #172f46;
  background: #f2f6fa;
  font-synthesis: none;
  --navy: #0b2238;
  --blue: #076ba8;
  --muted: #52687b;
  --border: #d7e1ea;
}
* { box-sizing: border-box; }
body { margin: 0; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 18px; background: white; color: var(--navy); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.layout { display: grid; grid-template-columns: 284px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
aside { background: linear-gradient(165deg, #143952, var(--navy) 65%); color: white; padding: 36px 28px 28px; display: flex; flex-direction: column; border-right: 1px solid #244760; }
.brand { display: flex; flex-direction: column; align-items: center; color: white; text-decoration: none; text-align: center; }
.brand-logo { display: block; width: 172px; height: auto; margin-bottom: 16px; }
.brand-text, .brand-name, .brand-slogan { display: block; }
.brand-name { font-size: 2.5rem; font-weight: 750; letter-spacing: -1.5px; line-height: 1.15; }
.brand-name > span { color: #48b9f3; }
.brand-slogan { font-size: .9375rem; color: #d1e2ee; margin-top: 10px; line-height: 1.5; }
.eyebrow { text-transform: uppercase; font-size: .75rem; letter-spacing: 1.6px; font-weight: 700; margin: 0 0 12px; color: var(--muted); }
.aside-intro { margin-top: 48px; border-top: 1px solid #365168; padding-top: 28px; }
aside .eyebrow { color: #83ccef; }
.aside-copy { font-size: 1.25rem; font-weight: 400; line-height: 1.6; margin: 0; color: #e1ecf4; }
nav { display: grid; gap: 8px; margin-top: 30px; }
nav:empty { display: none; }
nav button { background: #ffffff08; border: 1px solid #526e84; color: white; text-align: left; padding: 12px; }
nav button:hover { background: #234a65; }
main { padding: 48px clamp(24px, 4.5vw, 76px); max-width: 1500px; width: 100%; min-width: 0; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 100px; }
h1 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 650; letter-spacing: -1px; margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
h2 { font-weight: 650; font-size: 1.25rem; margin: 0 0 18px; line-height: 1.4; }
p { line-height: 1.65; }
#identity { font-size: .875rem; text-align: right; line-height: 1.6; overflow-wrap: anywhere; }
#identity button { margin-top: 8px; }
#message { font-weight: 600; color: #a13923; margin: 16px 0; }
#message:empty { margin: 0; }
#content { margin-top: 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 22px; }
.card { background: white; border: 1px solid var(--border); padding: 28px; border-radius: 12px; margin-bottom: 22px; box-shadow: 0 4px 18px #14395204; min-width: 0; }
.card p { color: var(--muted); font-size: 1rem; }
.card.compact { padding: 20px; }
.meta { font-size: .8125rem; color: var(--muted); }
.tag { display: inline-block; border-radius: 20px; padding: 5px 10px; background: #e4f2ec; color: #285b44; font-size: .8125rem; font-weight: 600; }
.tag.off { background: #f7e9e4; color: #944121; }
form { display: grid; gap: 18px; max-width: 640px; }
label { display: grid; gap: 8px; font-size: .875rem; font-weight: 600; }
input, select, textarea { font: inherit; font-size: 1rem; border: 1px solid #b6c7d5; padding: 12px; border-radius: 6px; width: 100%; background: white; color: #172f46; min-width: 0; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #29a3e0; outline-offset: 3px; }
button { background: var(--blue); color: white; border: 1px solid var(--blue); border-radius: 6px; padding: 12px 18px; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; min-height: 44px; line-height: 1.4; }
button:hover { filter: brightness(1.1); }
button.secondary { background: white; color: #19577e; border-color: #a9c2d4; }
button.danger { background: #9b3d2b; border-color: #9b3d2b; }
button:disabled { opacity: .5; cursor: wait; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { text-align: left; padding: 14px 10px; border-bottom: 1px solid #e0e8ef; }
th { font-size: .8125rem; font-weight: 650; color: var(--muted); }
details { margin-top: 12px; }
summary { cursor: pointer; font-size: .875rem; }
.login-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr); gap: 24px; align-items: start; max-width: 980px; }
.login { padding: 32px; }
.login > p { margin: -4px 0 24px; }
.store-login { background: #f9fcfe; border-top: 3px solid #329ad2; }
.store-login > button { width: 100%; }
.empty { padding: 35px 10px; color: var(--muted); }
.large { font-size: 2.625rem; line-height: 1; margin: 12px 0; color: var(--blue); }
@media (max-width: 1100px) {
  .login-grid { grid-template-columns: 1fr; max-width: 600px; gap: 0; }
}
@media (max-width: 800px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  aside { padding: 20px 24px; border-right: 0; border-bottom: 1px solid #244760; }
  .brand { flex-direction: row; justify-content: flex-start; gap: 16px; text-align: left; }
  .brand-logo { width: 68px; margin: 0; }
  .brand-name { font-size: 1.875rem; letter-spacing: -1px; }
  .brand-slogan { font-size: .875rem; margin-top: 5px; }
  .aside-intro { display: none; }
  nav { display: flex; flex-wrap: wrap; margin-top: 20px; }
  main { padding: 28px 24px; }
  header { align-items: flex-start; min-height: auto; flex-wrap: wrap; }
  #identity { text-align: left; }
  h1 { font-size: 1.75rem; }
  .card { padding: 24px; }
  #content { margin-top: 24px; }
  .login-grid { max-width: none; }
}
@media (max-width: 380px) {
  aside, main { padding: 20px 16px; }
  .brand { gap: 12px; }
  .brand-logo { width: 56px; }
  .brand-name { font-size: 1.75rem; }
  .brand-slogan { font-size: .8125rem; }
  .card { padding: 20px; }
}
