:root {
  color-scheme: light;
  --navy: #081b31;
  --red: #ed001b;
  --muted: #526881;
  --line: #d5e0ed;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
  color: var(--navy);
  background: #edf2f8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  background: var(--navy); color: white; border-bottom: 3px solid var(--red);
  padding: 1rem max(5vw, 1rem); display: flex; gap: 1rem;
  justify-content: space-between; align-items: center; min-height: 4.6rem;
}
.brand { color: inherit; text-decoration: none; font-weight: 900; font-size: 1.3rem; letter-spacing: .13em; }
.brand span { color: #ff5366; letter-spacing: .03em; }
main { width: min(1140px, 90vw); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) 0; }
.welcome, .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1rem, 4vw, 3rem); }
.welcome { align-items: center; min-height: 65vh; }
h1, h2, p { margin: 0 0 .75rem; }
h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 1.05; letter-spacing: -.055em; }
.intro { border-left: 4px solid var(--red); padding-left: clamp(1rem, 3vw, 2rem); }
.intro p { font-size: 1.13rem; max-width: 34rem; }
p { color: var(--muted); }
.card { padding: clamp(1.1rem, 3vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
h2 { font-size: 1.32rem; }
form, label, .stack { display: grid; gap: .55rem; }
form, .stack { gap: 1rem; }
.grid { align-items: start; gap: 1rem; }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.4rem 0 1rem; }
details form { margin-top: .75rem; }
summary { cursor: pointer; }
input, textarea, select, button { font: inherit; color: inherit; border: 1px solid #b7c8da; background: #fff; border-radius: 7px; padding: .62rem .8rem; }
input, textarea, select { width: 100%; }
textarea { resize: vertical; }
button { cursor: pointer; justify-self: start; font-weight: 650; }
button:disabled { opacity: .55; cursor: wait; }
.primary { background: #cc0018; border-color: #cc0018; color: #fff; }
:focus-visible { outline: 3px solid #3677b7; outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
#answer, #token-result, #endpoint { overflow-wrap: anywhere; white-space: pre-wrap; }
#answer:not(:empty), #token-result:not(:empty) { background: #edf2f8; padding: 1rem; border-radius: 8px; margin-top: 1rem; }
#entries { list-style: none; padding: 0; margin-bottom: 0; }
#entries li { padding: .75rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
#entries .actions { margin-top: .35rem; }
#error { color: #9e1025; background: #fff1f3; padding: .8rem 1rem; margin-top: 1rem; position: sticky; bottom: 1rem; }
@media (max-width: 720px) {
  .welcome, .grid, .project { grid-template-columns: 1fr; }
  .welcome { min-height: 0; }
}

.mark {
  display:inline-block;
  width:1.3em;
  aspect-ratio:1;
  flex:none;
  background:#ff3e55;
  clip-path:polygon(0 0,100% 0,78% 23%,31% 23%,31% 42%,72% 42%,50% 65%,31% 65%,31% 100%,0 100%);
}
.brand { display:inline-flex; align-items:center; gap:.5em; }
.workspace-nav, .public-site nav { display:flex; flex-wrap:wrap; gap:.5rem; }
.workspace-nav { margin-bottom:2rem; border-bottom:1px solid var(--line); padding-bottom:.65rem; }
.workspace-nav a, .public-site nav a { color:inherit; text-decoration:none; padding:.4rem .75rem; border-radius:.4rem; }
.workspace-nav a[aria-current], .workspace-nav a:hover { background:var(--navy); color:white; }
.view > h1 { font-size:clamp(1.75rem,4vw,3rem); margin-bottom:1.5rem; }
.view > form { max-width:44rem; }
.check { display:flex; align-items:center; gap:.5rem; }
.check input { width:auto; }
.admin-list { list-style:none; padding:0; margin-bottom:0; }
.admin-list li { display:flex; flex-wrap:wrap; align-items:center; gap:1rem; justify-content:space-between; padding:.8rem 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.public-site #hero {
  display:grid; grid-template-columns:1.5fr 1fr; align-items:center; gap:clamp(1.5rem,4vw,4rem);
  padding:clamp(1.25rem,6vw,5rem); color:white; background:var(--navy); border-radius:1rem;
}
.public-site #hero p { color:#cad8e8; white-space:pre-wrap; }
.graphic { display:grid; place-items:center; aspect-ratio:1; border:1px solid #425775; border-radius:50%; }
.graphic .mark { width:42%; }
.cta { display:inline-block; padding:.65rem 1rem; border-radius:.5rem; text-decoration:none; font-weight:650; }
.public-site section + section, #site-pages:not(:empty), #order { margin-top:2rem; }
.offers { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap:1rem; }
.offers button { display:block; margin-top:1rem; }
#content p, #receipt { white-space:pre-wrap; overflow-wrap:anywhere; }
#lookup { max-width:38rem; }
#site-error { color:#9e1025; }
@media(max-width:720px) {
  .public-site #hero { grid-template-columns:1fr; }
  .graphic { display:none; }
}
