:root {
  --bg: #05060a;
  --panel: #0c0e14;
  --line: #1c212c;
  --chrome-hi: #ffffff;
  --chrome-mid: #c9d1dc;
  --chrome-lo: #7d8794;
  --ice: #a9c8ff;
  --text: #d5dae2;
  --muted: #8590a0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* The page colour sits on html so the .sky layer (z-index -1) shows above it. */
html { background: var(--bg); }
body {
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
.display { font-family: Michroma, "Eurostile", "Segoe UI", sans-serif; }
.chrome {
  background: linear-gradient(180deg, var(--chrome-hi) 0%, var(--chrome-mid) 45%, var(--chrome-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.caps { letter-spacing: .34em; text-transform: uppercase; font-size: .72rem; color: var(--muted); }

/* Shooting stars behind every page. stars.js adds one span per star and sets
   its position, length, thickness, angle, travel and duration through the
   custom properties below; the span is removed when its one animation ends. */
.sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.sky span {
  position: absolute; left: var(--x, 0); top: var(--y, 0);
  width: var(--length, 120px); height: var(--thickness, 1px); border-radius: 999px;
  background: linear-gradient(90deg, rgba(169,200,255,0), var(--ice) 70%, #fff);
  box-shadow: 0 0 8px rgba(169,200,255,.55);
  opacity: 0;
  animation: shooting-star var(--duration, 1s) linear 1 forwards;
}
@keyframes shooting-star {
  0% { opacity: 0; transform: rotate(var(--angle, 32deg)) translateX(0); }
  15% { opacity: .9; }
  70% { opacity: .9; }
  100% { opacity: 0; transform: rotate(var(--angle, 32deg)) translateX(var(--travel, 400px)); }
}
@media (prefers-reduced-motion: reduce) { .sky { display: none; } }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.wrap > nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { font-size: .95rem; letter-spacing: .08em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .9rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--chrome-hi); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(180deg, #ffffff, #b9c2ce);
  color: #05060a;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 0 28px rgba(169,200,255,.45);
}
.btn-ghost { border-color: #2a3140; color: var(--text); }
.btn-small { padding: 9px 18px; font-size: .85rem; }

.hero { position: relative; text-align: center; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 10px; width: 620px; height: 620px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(169,200,255,.13) 0%, rgba(169,200,255,0) 62%);
  pointer-events: none;
}
.hero-logo {
  position: relative; width: 250px; height: 250px; border-radius: 50%;
  box-shadow: 0 0 60px rgba(169,200,255,.28);
}
.hero h1 { position: relative; font-size: clamp(1.7rem, 4.6vw, 3rem); line-height: 1.2; margin: 34px auto 18px; max-width: 880px; font-weight: 400; }
.hero p.lead { position: relative; max-width: 600px; margin: 0 auto 32px; color: var(--muted); font-size: 1.06rem; }
.cta { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: 18px; background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 40px rgba(169,200,255,.06);
}
.stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 30px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-size: clamp(1.4rem, 3.4vw, 2.2rem); }
.stat .caps { margin-top: 8px; display: block; }

section { padding: 84px 0 0; }
section h2 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 400; margin: 10px 0 34px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px;
}
.card .n { font-size: 1.5rem; margin-bottom: 14px; }
.card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 8px; font-weight: 600; }
.card p { color: var(--muted); font-size: .93rem; }

.pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: stretch; }
.price-big { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1; }
.price-list { list-style: none; margin-top: 18px; }
.price-list li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--text); font-size: .95rem; display: flex; justify-content: space-between; gap: 16px; }
.price-list li span:last-child { color: #fff; font-weight: 600; white-space: nowrap; }
.example { font-size: .93rem; color: var(--muted); }
.example b { color: #fff; }

.final { text-align: center; padding: 96px 0 80px; }
.final h2 { margin-bottom: 26px; }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .85rem; }
footer a { color: var(--muted); margin-left: 22px; text-decoration: none; }

/* member dashboard (body class "member") */
.member { line-height: 1.55; overflow-x: visible; }
.member .caps { letter-spacing: .3em; font-size: .68rem; }

.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
aside { border-right: 1px solid var(--line); padding: 22px 16px; background: #07080d; }
.member .brand { gap: 10px; padding: 0 8px 22px; }
.member .brand img { width: 40px; height: 40px; }
.member .brand span { font-size: .85rem; }
.nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: .92rem; margin-bottom: 2px;
}
.nav a.on { background: var(--panel); color: #fff; box-shadow: inset 2px 0 0 var(--ice); }
.nav a small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #5b6575; }
.nav .sep { margin: 18px 12px 8px; }

main { padding: 26px 32px 60px; min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; gap: 16px; }
.top h1 { font-size: 1.25rem; font-weight: 400; }
.user { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #3a4660, #151a26); border: 1px solid #2a3140; }
img.avatar { object-fit: cover; }
.pill { font-size: .7rem; padding: 3px 10px; border-radius: 999px; border: 1px solid #2a3140; color: var(--ice); }
.member .btn-ghost { border: 1px solid #2a3140; color: var(--text); background: none; padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-family: inherit; cursor: pointer; }
.member .btn.btn-ghost { padding: 14px 26px; font-size: .95rem; }

.welcome {
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; background: var(--panel);
  box-shadow: 0 0 40px rgba(169,200,255,.06); margin-bottom: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.welcome h2 { font-size: 1.1rem; font-weight: 400; margin-bottom: 6px; }
.welcome p { color: var(--muted); font-size: .93rem; max-width: 520px; }
.check { display: flex; gap: 22px; font-size: .85rem; color: var(--text); flex-wrap: wrap; }
.check span::before { content: "✓"; color: var(--ice); margin-right: 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--panel); }
.tile h3 { color: #fff; font-size: 1rem; font-weight: 600; margin: 12px 0 6px; }
.tile p { color: var(--muted); font-size: .9rem; }
.tile a { color: var(--ice); font-size: .88rem; text-decoration: none; display: inline-block; margin-top: 12px; }
.soon { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #5b6575; border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }

@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .steps, .pricing { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .hero-logo { width: 190px; height: 190px; }
  footer a { margin: 0 22px 0 0; }

  .shell { grid-template-columns: 1fr; }
  aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: flex; overflow-x: auto; gap: 4px; }
  .nav a { white-space: nowrap; gap: 8px; }
  .nav .sep { display: none; }
  main { padding: 22px 16px 48px; }
}

/* replacements for inline styles in the mockups */
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }

/* notices, forms, tables, narrow pages */
.notice { border: 1px solid #2a3140; border-radius: 12px; padding: 12px 16px; margin: 0 auto 24px; max-width: 600px; color: var(--text); font-size: .92rem; text-align: center; }
.narrow { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.narrow h1 { font-size: 1.5rem; font-weight: 400; margin-bottom: 18px; }
.prose { color: var(--text); font-size: .98rem; }
.prose h1, .prose h2, .prose h3 { color: #fff; font-weight: 600; margin: 22px 0 8px; font-size: 1.05rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose a { color: var(--ice); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin-bottom: 20px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.owner-way { margin-bottom: 22px; }
button.btn { font-family: inherit; }
.inline-form { display: inline; }
textarea.field { width: 100%; min-height: 320px; background: #07080d; color: var(--text); border: 1px solid #2a3140; border-radius: 12px; padding: 14px; font: .92rem/1.5 ui-monospace, Consolas, monospace; }
.muted { color: var(--muted); font-size: .9rem; }
table.list { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.list th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
.flag { color: #ffcf8a; }
.pager { display: flex; gap: 14px; margin-top: 18px; font-size: .9rem; }
.pager a { color: var(--ice); text-decoration: none; }

/* profile and form pages */
.subhead { color: #fff; font-size: 1rem; font-weight: 600; margin: 22px 0 10px; }
.field-row { margin-bottom: 14px; }
.field-row label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 5px; }
.input { width: 100%; background: #07080d; color: var(--text); border: 1px solid #2a3140; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: .92rem; }
.input:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 2px rgba(169,200,255,.2); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.field-error { color: #ffcf8a; font-size: .84rem; margin-top: 5px; }
.field-note { color: var(--muted); font-size: .84rem; margin-top: 5px; }
.input[readonly] { color: var(--muted); cursor: default; }
.input[readonly]:focus { border-color: #2a3140; box-shadow: none; }
.jig { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); border: 1px solid #2a3140; padding: 1px 7px; border-radius: 999px; }
table.list a { color: var(--ice); text-decoration: none; }

/* themed checkboxes on the member pages */
.member input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 18px; height: 18px; margin: 0; border-radius: 5px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); display: inline-grid; place-content: center;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.member input[type="checkbox"]:hover { border-color: var(--ice); }
.member input[type="checkbox"]::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px;
  border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg) scale(0); transition: transform .1s;
}
.member input[type="checkbox"]:checked { background: var(--ice); border-color: var(--ice); }
.member input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.member input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 3px rgba(169,200,255,.35); border-color: var(--ice); }
.member input[type="checkbox"]:disabled { opacity: .4; cursor: not-allowed; border-color: var(--line); }
.member input[type="checkbox"]:disabled:hover { border-color: var(--line); }
.check-row:has(input:disabled) { color: var(--muted); }

/* group page */
.btn-back { margin-bottom: 18px; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.group-address { color: var(--text); font-size: .98rem; }
.empty-line { color: var(--muted); font-size: .95rem; margin: 6px 0 22px; }
.disclosure { margin-bottom: 18px; }
.disclosure > summary { list-style: none; width: fit-content; user-select: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::marker { content: ""; }
.disclosure > summary:focus-visible { box-shadow: 0 0 0 3px rgba(169,200,255,.35); }
.disclosure[open] > summary { margin-bottom: 16px; }
.member button.btn:disabled { opacity: .45; cursor: not-allowed; }

/* owner forms */
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; }
.download-row a:not(.btn) { color: var(--ice); text-decoration: none; font-size: .9rem; }
.card-list { list-style: none; margin: 0; padding: 0; }

/* accounts and mailboxes */
a.site-card { display: block; text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
a.site-card:hover, a.site-card:focus-visible { border-color: var(--ice); box-shadow: 0 0 24px rgba(169,200,255,.12); }
.site-card h3 { margin-top: 0; }
textarea.bulk { min-height: 190px; display: block; resize: vertical; }
textarea.bulk:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 2px rgba(169,200,255,.2); }
.panel code { font: .86rem ui-monospace, Consolas, monospace; color: var(--text); background: #07080d; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.row-action { text-align: right; white-space: nowrap; }
.notice p + p { margin-top: 4px; }
select.input { appearance: auto; }

/* account and mailbox tags on the submit page */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.tag { font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.tag-ok { color: var(--ice); border-color: #2a3140; }
.text-link { color: var(--ice); text-decoration: none; }

/* group page: the add link, sections inside the Edit group panel, delete confirmation */
.group-add { margin-bottom: 18px; }
.panel-section { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.confirm { margin-bottom: 0; }
.confirm-text { display: block; color: var(--text); font-size: .92rem; }
.confirm .actions { margin-top: 20px; }
.btn-danger { border-color: #5c2c36; color: #ffb7c0; background: rgba(255,107,129,.07); }
.btn-danger:hover, .btn-danger:focus-visible { border-color: #ff8fa0; }

/* profiles a form could not take */
.missing-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: .92rem; }
.missing-list li { padding: 7px 0; border-top: 1px solid var(--line); }

/* form agreement and items */
.form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.form-site { color: #fff; font-size: 1.05rem; font-weight: 600; }
.agreement-page { max-width: 940px; }
.agreement { padding: 30px 32px; }
.agreement .prose { max-width: 68ch; line-height: 1.7; }
.agreement .prose > :first-child { margin-top: 0; }
.agreement .prose > :last-child { margin-bottom: 0; }
.agreement .prose h2 { margin-top: 28px; }
.agreement .prose li { margin-bottom: 6px; }
.agreement-page .panel > .subhead:first-child { margin-top: 0; }
.item-list { list-style: none; margin: 0; padding: 0; }
.item-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.item-list li:first-child { border-top: 0; padding-top: 4px; }
.item-list li:last-child { padding-bottom: 0; }
.item-name { display: block; color: #fff; font-weight: 600; font-size: .98rem; }
.item-detail { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.section-head { margin: 30px 0 12px; }
.section-note { margin: 0 0 14px; }
.consent { margin-top: 26px; }
.consent-line { color: var(--text); font-size: .98rem; }
.withdraw { max-width: 940px; }
.withdraw .actions { margin-top: 14px; }
.form-items { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.form-items-more { white-space: nowrap; }
.field-row textarea.field { display: block; resize: vertical; }
.field-row textarea.field:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 2px rgba(169,200,255,.2); }
.field-label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 5px; }
.agreement-locked { background: #07080d; border: 1px solid #2a3140; border-radius: 12px; padding: 18px 20px; }
.agreement-locked > :first-child { margin-top: 0; }
.agreement-locked > :last-child { margin-bottom: 0; }

/* billing */
.bills-intro { max-width: 760px; margin-bottom: 18px; }
.bills { display: grid; gap: 16px; max-width: 860px; }
.bill { margin-bottom: 0; padding: 22px 26px; }
.bill-unpaid { border-color: #2a3140; box-shadow: 0 0 36px rgba(169,200,255,.07); }
.bill-overdue { border-color: #6b5326; box-shadow: 0 0 36px rgba(255,207,138,.06); }
.bill-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 24px; flex-wrap: wrap; }
.bill-title { color: #fff; font-size: 1.08rem; font-weight: 600; margin-top: 10px; overflow-wrap: anywhere; }
.bill-paid .bill-title, .bill-void .bill-title { color: var(--text); }
.bill-number { color: var(--muted); font-size: .8rem; }
.bill-due { color: var(--muted); font-size: .86rem; text-align: right; font-variant-numeric: tabular-nums; }
.bill-remaining { display: block; color: var(--ice); font-size: 1rem; font-weight: 600; }
.bill-lines { list-style: none; margin: 18px 0 0; padding: 0; font-size: .92rem; }
.bill-lines li { padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.bill-totals { font-size: .92rem; }
.bill-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.bill-totals dt { color: var(--muted); }
.bill-totals dd { color: #fff; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bill-aside dd { color: var(--muted); font-weight: 400; }
.bill-note { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #5b6575; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
.bill .actions { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.bill-owed { color: var(--muted); font-size: .88rem; padding-top: 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.bill-money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bill-preview { max-width: 460px; }
.bill-preview .bill-totals > div:first-child { border-top: 0; padding-top: 0; }
.bill-void-cell { min-width: 230px; }
.bill-void-cell .confirm-text { margin-top: 10px; }
.bill-products td { vertical-align: top; }
.money-input { max-width: 150px; font-variant-numeric: tabular-nums; }
.status-unpaid { color: var(--ice); border-color: rgba(169,200,255,.4); background: rgba(169,200,255,.1); }
.status-overdue { color: #ffcf8a; border-color: #6b5326; background: rgba(255,207,138,.08); }
.status-paid { color: #05060a; border-color: transparent; background: linear-gradient(180deg, #ffffff, #b9c2ce); box-shadow: 0 0 14px rgba(169,200,255,.3); }
.status-void { border-style: dashed; }
.pay { max-width: 640px; }
.pay-amount { color: #fff; font-size: 2rem; font-weight: 600; line-height: 1.2; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.pay-warning { margin: 14px 0 6px; padding: 12px 16px; border: 1px solid #6b5326; border-left-width: 2px; border-radius: 12px; background: rgba(255,207,138,.06); color: #ffcf8a; font-size: .92rem; }
.pay-details > div { padding: 12px 0; border-top: 1px solid var(--line); }
.pay-details > div:first-child { border-top: 0; }
.pay-details dt { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.pay-value { color: #fff; font: .95rem/1.5 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; cursor: text; }
.pay-exact { font-size: 1.5rem; font-weight: 600; }
.pay .muted { margin-top: 10px; }
@media (max-width: 760px) {
  .bill { padding: 18px 16px; }
  .bill-due { text-align: left; }
}

/* orders */
.orders-actions { margin-bottom: 22px; }
.orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.order-card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.order-card:hover { border-color: #2a3140; transform: translateY(-2px); }
.order-pic { aspect-ratio: 1; background: radial-gradient(circle at 50% 35%, rgba(169,200,255,.14), transparent 70%), #07080d; display: grid; place-items: center; padding: 14px; }
.order-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.order-body { padding: 14px 16px 16px; }
.order-body h3 { color: #fff; font-size: .95rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-units { color: var(--ice); font-size: .88rem; font-weight: 600; margin-top: 6px; }
.order-meta { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.card-layout { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
.card-orders { max-height: 340px; overflow-y: auto; margin: 12px 0 18px; padding-right: 6px; }
.card-preview { display: flex; justify-content: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(circle at 50% 0%, rgba(169,200,255,.1), transparent 60%), #07080d; }
.card-preview canvas { width: 100%; max-width: 520px; height: auto; aspect-ratio: 4 / 5; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(169,200,255,.18); }
input[type="file"].input { padding: 8px; cursor: pointer; }
@media (max-width: 860px) { .card-layout { grid-template-columns: 1fr; } }

/* forms layout */
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 12px; font-size: .92rem; line-height: 1.55; cursor: pointer; }
.check-row > input[type="checkbox"] { flex: 0 0 18px; margin-top: 2px; }
.check-text { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.card-orders .check-row { margin: 10px 0; }
.pick-group { padding: 22px 26px; margin-bottom: 14px; }
.pick-group .group-row { margin: 0; font-size: .98rem; }
.pick-list { list-style: none; margin-top: 14px; margin-left: 28px; padding: 0; }
.pick-list li { border-top: 1px solid var(--line); }
.pick-list .profile-row { margin: 0; padding: 12px 0; }
.pick-list li:last-child .profile-row { padding-bottom: 0; }
.profile-cells { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 4px 18px; align-items: start; }
.profile-cells > span { min-width: 0; overflow-wrap: anywhere; }
.profile-name { display: block; color: #fff; font-weight: 600; }
.profile-person { display: block; color: var(--muted); font-size: .84rem; }
.profile-email, .profile-address, .profile-card { color: var(--muted); font-size: .88rem; padding-top: 1px; }
.profile-cells .tags { margin-top: 1px; align-content: flex-start; }
@media (max-width: 1100px) {
  .profile-cells { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .profile-cells .tags { grid-column: 1 / -1; margin-top: 4px; }
}
@media (max-width: 760px) {
  .profile-cells { grid-template-columns: 1fr; gap: 2px; }
  .profile-cells .tags { margin-top: 6px; }
  .pick-group { padding: 18px 16px; }
  .agreement { padding: 22px 18px; }
}

/* tracking */
.track-note { max-width: 780px; margin-top: 14px; padding: 12px 16px; border: 1px solid var(--line); border-left: 2px solid var(--ice); border-radius: 12px; background: var(--panel); color: var(--text); font-size: .9rem; }
.track-form { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.track-form .check-row { margin: 0; }
.track-status { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.track-status.flag { color: #ffcf8a; }
.track-hint { color: var(--muted); font-size: .9rem; margin: -6px 0 22px; }
.track-hint a { margin-left: 10px; white-space: nowrap; }
.order-status { margin-top: 12px; }
.status-chip { display: inline-block; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; padding: 3px 10px; border-radius: 999px; border: 1px solid #2a3140; color: var(--muted); }
.status-none { border-style: dashed; }
.status-confirmed { color: var(--text); }
.status-shipped, .status-out-for-delivery { color: var(--ice); border-color: rgba(169,200,255,.4); }
.status-out-for-delivery { background: rgba(169,200,255,.1); box-shadow: 0 0 14px rgba(169,200,255,.18); }
.status-delivered { color: #05060a; border-color: transparent; background: linear-gradient(180deg, #ffffff, #b9c2ce); box-shadow: 0 0 14px rgba(169,200,255,.3); }
.status-cancelled { color: #ffb7c0; border-color: #5c2c36; background: rgba(255,107,129,.07); }
.order-number, .order-tracking { font-size: .8rem; overflow-wrap: anywhere; }
.order-number { color: var(--muted); margin-top: 8px; }
.order-tracking { color: var(--text); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* orders dashboard */
.orders-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 22px; }
.orders-tabs, .orders-periods { display: flex; flex-wrap: wrap; gap: 4px; }
.orders-tabs a, .orders-periods a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .85rem; text-decoration: none; }
.orders-tabs a.on, .orders-periods a.on { color: var(--text); border-color: rgba(169,200,255,.4); background: rgba(169,200,255,.1); }
.orders-bar .btn { margin-left: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 14px; }
.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.stat-main { border-left: 2px solid var(--ice); }
.stat-label { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.stat-value { margin-top: 6px; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.stat-sub { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.price-note { max-width: 780px; margin: 0 0 8px; font-size: .88rem; }
.order-price { margin-top: 2px; font-variant-numeric: tabular-nums; }
.bar-cell { width: 34%; min-width: 120px; }
.bar-track { display: block; height: 8px; border-radius: 999px; background: #151a24; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ice), #ffffff); }
.bar-0 { width: 0%; }
.bar-5 { width: 5%; }
.bar-10 { width: 10%; }
.bar-15 { width: 15%; }
.bar-20 { width: 20%; }
.bar-25 { width: 25%; }
.bar-30 { width: 30%; }
.bar-35 { width: 35%; }
.bar-40 { width: 40%; }
.bar-45 { width: 45%; }
.bar-50 { width: 50%; }
.bar-55 { width: 55%; }
.bar-60 { width: 60%; }
.bar-65 { width: 65%; }
.bar-70 { width: 70%; }
.bar-75 { width: 75%; }
.bar-80 { width: 80%; }
.bar-85 { width: 85%; }
.bar-90 { width: 90%; }
.bar-95 { width: 95%; }
.bar-100 { width: 100%; }
/* jig styles */
.jig-actions { align-items: flex-end; }
.jig-actions .field-row { margin-bottom: 0; min-width: 200px; }
.jig-form .subhead:first-of-type { margin-top: 0; }
.jig-checks { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 8px; }
.jig-number { max-width: 160px; margin-top: 14px; }

/* scroll bars */
:root { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: var(--chrome-lo) var(--bg); }
@supports selector(::-webkit-scrollbar) {
  * { scrollbar-width: auto; scrollbar-color: auto; }
  *::-webkit-scrollbar { width: 10px; height: 10px; }
  *::-webkit-scrollbar-track { background: var(--bg); }
  *::-webkit-scrollbar-thumb { background: var(--chrome-lo); border: 2px solid var(--bg); border-radius: 999px; }
  *::-webkit-scrollbar-thumb:hover, *::-webkit-scrollbar-thumb:active { background: var(--ice); box-shadow: 0 0 8px var(--ice); }
  *::-webkit-scrollbar-corner { background: var(--bg); }
}

/* profile selection */
.site-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.site-checks .check-row { margin: 0; }
.group-head .tags { margin-top: 8px; }
table.list .tags { margin-top: 0; }
.other-groups { margin-top: 18px; }
.select-actions { align-items: center; margin: 14px 0; }
.select-actions + .mt-14 { margin-top: 0; }
.select-all { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; cursor: pointer; }
.select-all:hover, .select-all:focus-visible { text-decoration: underline; }
.select-all[hidden] { display: none; }
.select-cell { width: 1%; }
.select-cell .check-row { margin: 0; }
[data-select-row].selected td { background: rgba(169,200,255,.07); }
[data-select-row]:has(input:checked) td { background: rgba(169,200,255,.07); }
table.list a.row-delete { display: inline-block; margin-left: 12px; color: #ffb7c0; border-color: #5c2c36; }
table.list a.row-delete:hover, table.list a.row-delete:focus-visible { border-color: #ff8fa0; }
.delete-list { list-style: none; margin: 14px 0 0; padding: 0; font-size: .92rem; }
.delete-list li { padding: 7px 0; border-top: 1px solid var(--line); }
.delete-name { color: #fff; margin-right: 6px; }
/* layout pass */
aside { min-width: 0; }
.top { flex-wrap: wrap; row-gap: 12px; }
.top h1 { min-width: 0; overflow-wrap: anywhere; }
.user { min-width: 0; margin-left: auto; }
.user > span:not(.pill) { min-width: 0; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 761px) {
  aside { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  aside { padding: 16px 16px 10px; }
  .member .brand { padding-bottom: 12px; }
  .nav { padding-bottom: 6px; }
  .nav a { margin-bottom: 0; }
  .top { margin-bottom: 22px; }
  .user > span:not(.pill) { max-width: 12ch; }
}
main > p.muted:not(.price-note), main > .empty-line {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 20px; margin: 0 0 18px; max-width: none; font-size: .9rem;
}
main > .empty-line { border-style: dashed; }
main > .mt-14 { margin-top: 0; }
main > .actions, main > form > .select-actions { margin: 0 0 18px; }
main > .panel, main > form > .panel, main > .table-wrap { margin-bottom: 18px; }
main > .subhead, main > form > .subhead { margin: 26px 0 12px; }
main > .subhead:first-child { margin-top: 0; }
.panel > .empty-line:only-child, .panel > .muted:last-child, .panel > p:last-child { margin-bottom: 0; }
.panel > .empty-line:only-child { margin-top: 0; }
.member .notice { max-width: none; margin: 0 0 18px; text-align: left; border-color: var(--line); border-left: 2px solid var(--ice); background: var(--panel); }
.panel p.muted:not(:last-child), .panel .track-note:not(:last-child) { margin-bottom: 12px; }
.panel > .subhead:first-child, .panel > form > .subhead:first-of-type { margin-top: 0; }
.check-row + p.muted { margin-top: -4px; }
.btn-back { padding: 9px 18px; font-size: .85rem; }
.member .btn.btn-back { padding: 9px 18px; font-size: .85rem; }
.member a.btn-ghost { display: inline-block; line-height: 1.4; white-space: nowrap; }
.member .btn-ghost:hover, .member .btn-ghost:focus-visible { border-color: var(--chrome-lo); }
.member .btn-ghost.row-delete:hover, .member .btn-ghost.row-delete:focus-visible { border-color: #ff8fa0; }
.btn-primary:hover, .btn-primary:focus-visible { box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 0 34px rgba(169,200,255,.6); }
button:focus-visible, .btn:focus-visible, .btn-ghost:focus-visible, .btn-primary:focus-visible, .btn-danger:focus-visible, summary:focus-visible, input[type="checkbox"]:focus-visible, a.site-card:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.actions { align-items: center; }
.row-action > a + a, .row-action > a + form, .row-action > form + form { margin-left: 12px; }
table.list th { white-space: nowrap; vertical-align: bottom; }
table.list tbody tr:last-child td { border-bottom: 0; }
table.list .check-row { margin: 0; }
td > .inline-form, .track-form { display: inline-flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--chrome-mid) 50%), linear-gradient(135deg, var(--chrome-mid) 50%, transparent 50%);
  background-position: right 19px top 50%, right 14px top 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
select.input:disabled { opacity: .45; cursor: not-allowed; }
select.input option { background: var(--panel); color: var(--text); }
select.input option:disabled { color: var(--muted); }
.site-checks, .jig-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 22px; }
.jig-checks .check-row { margin: 0; }
.jig-checks { margin-bottom: 6px; }
@media (max-width: 760px) {
  .panel { padding: 20px 16px; }
}
.table-wrap > table.list { min-width: 520px; }
.table-wrap > table.list:has(th:nth-child(6)) { min-width: 720px; }
.table-wrap > table.list:has(th:nth-child(8)) { min-width: 900px; }
.table-wrap > table.list:has(th:nth-child(10)) { min-width: 1180px; }
.stats > .stat { padding: 30px 20px; border: 0; border-radius: 0; background: none; }
.stats > .stat + .stat { border-left: 1px solid var(--line); }
.stat-grid > .stat { text-align: left; }
.stat-grid > .stat + .stat { border: 1px solid var(--line); }
.stat-grid > .stat-main { border-left: 2px solid var(--ice); }
@media (max-width: 760px) {
  .stats > .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid > .stat-main { grid-column: 1 / -1; }
}
input[type="file"].input::file-selector-button {
  margin-right: 12px; padding: 6px 14px; border: 1px solid #2a3140; border-radius: 999px;
  background: none; color: var(--text); font: inherit; font-size: .8rem; cursor: pointer;
}
input[type="file"].input::file-selector-button:hover { border-color: var(--chrome-lo); }
.form-head { display: block; margin-bottom: 18px; }
.jig-actions { align-items: flex-end; }
.jig-actions .btn { padding-top: 10px; padding-bottom: 10px; }
.member table.list a.btn-ghost[href$="/delete"], .member table.list form[action$="/delete"] > .btn-ghost { color: #ffb7c0; border-color: #5c2c36; }
.member table.list a.btn-ghost[href$="/delete"]:hover, .member table.list form[action$="/delete"] > .btn-ghost:hover,
.member table.list a.btn-ghost[href$="/delete"]:focus-visible, .member table.list form[action$="/delete"] > .btn-ghost:focus-visible { border-color: #ff8fa0; }
main > .bills-intro { max-width: 860px; }
main > .price-note { margin-bottom: 10px; }
.table-wrap > table.list:has(th:nth-child(9)) td { white-space: nowrap; }
td > .card-list { min-width: 230px; }
table.list a.btn-primary { color: #05060a; }
.field-grid:not(:has(.field-error)) > .field-row { display: flex; flex-direction: column; }
.field-grid:not(:has(.field-error)) > .field-row > label { margin-bottom: auto; padding-bottom: 5px; }
.download-row { gap: 10px 12px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.download-row:first-child { border-top: 0; padding-top: 0; }
.download-row:last-child { padding-bottom: 0; }
.download-row > :first-child { flex: 0 0 190px; }
.download-row > .inline-form:first-child .btn { width: 100%; justify-content: center; }
.download-row .btn { padding: 10px 20px; font-size: .88rem; }
.download-row > .inline-form ~ .muted { order: 2; font-size: .84rem; }
@media (max-width: 760px) {
  .download-row > :first-child { flex-basis: 100%; }
}
.bill-products td { vertical-align: baseline; }
.panel > p + p { margin-top: 6px; }
.jig-checks:has(input[name="labels"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; }
td > .inline-form, td > .inline-form .check-row { flex-wrap: nowrap; white-space: nowrap; }
.table-wrap > table.list:has(th:nth-child(7)) { min-width: 880px; }
@media (max-width: 760px) {
  .table-wrap > table.list:has(th:nth-child(8)) { min-width: 1000px; }
}
table.list .btn { padding: 7px 16px; font-size: .82rem; }
.member table.list .btn.btn-ghost { padding: 7px 16px; font-size: .82rem; }
.btn-ghost { background: none; }
.track-form { flex-wrap: nowrap; }
.track-form .check-row { white-space: nowrap; }
.panel > .delete-list:first-child { margin-top: 0; }
.panel > .delete-list:first-child li:first-child { border-top: 0; padding-top: 0; }
.pay > .caps { display: block; margin-bottom: 10px; }
.panel.prose > :first-child { margin-top: 0; }
.panel.prose > :last-child { margin-bottom: 0; }
main.narrow > h1 { font-family: Michroma, "Eurostile", "Segoe UI", sans-serif; color: var(--chrome-mid); }
.bill-raised { color: var(--muted); font-size: .84rem; padding-bottom: 12px; }
table.list td.wrap-any { min-width: 10ch; overflow-wrap: anywhere; }
.row-confirm { width: 1%; vertical-align: top; }
tr:has(.row-confirm > .confirm[open]) > td { vertical-align: top; }
.row-confirm > .confirm[open] > form { position: relative; z-index: 1; width: 300px; margin-left: -218px; padding: 16px 18px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.45); white-space: normal; }
.row-confirm > .confirm[open] > summary { margin-bottom: 10px; }
.download-labelled { padding-left: 202px; }
.download-labelled > :first-child { margin-left: -202px; }
@media (max-width: 760px) {
  .download-labelled { padding-left: 0; }
  .download-labelled > :first-child { margin-left: 0; }
}
@media (min-width: 761px) {
  .top { flex-wrap: nowrap; }
  .top h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
  .user { flex-shrink: 0; }
}
