:root {
  color-scheme: dark;
  --bg: #111112;
  --panel: #1a1a1c;
  --line: #2c2c30;
  --fg: #f3f1ee;
  --muted: #a6a3a0;
  --red: #d0111c;
  --red-hi: #ff2a35;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
p { margin: 0 0 1rem; }
label, legend { font-weight: 600; }
.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-140%);
  background: var(--red);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 20;
  text-decoration: none;
}
.skip:focus { transform: translateY(12px); outline: 3px solid #fff; }
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
header.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site-header > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}
header.site-header .brand { display: flex; min-width: 0; text-decoration: none; }
header.site-header .brand img { height: 48px; width: auto; max-width: min(280px, 58vw); }
.account-bar {
  border-bottom: 1px solid var(--line);
  background: #0c0c0e;
}
.account-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  min-height: 42px;
  padding-block: 6px;
}
.account-who {
  margin: 0;
  min-width: 0;
  color: var(--muted);
  font: inherit;
  letter-spacing: .06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.account-bar .account-who a {
  margin-left: .4em;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
  white-space: nowrap;
}
.account-bar .account-who a:hover { color: var(--fg); }
.account-bar nav,
header.site-header .site-nav {
  display: flex;
  align-items: center;
}
.account-bar nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 16px;
  margin-left: auto;
}
header.site-header .site-nav { gap: 18px; }
header.site-header .site-nav > a {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--muted);
}
header.site-header .site-nav > a:hover { color: var(--fg); }
.account-bar a, .account-bar button {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.account-bar a::before, .account-bar button::before { content: none; }
.account-bar a:hover, .account-bar button:hover, .account-bar a[aria-current="page"] { color: var(--fg); }
.account-bar form { margin: 0; }
@media (max-width: 720px) {
  .account-bar .wrap:has(.account-who) {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .account-bar .wrap:has(.account-who) nav {
    margin-left: 0;
    justify-content: flex-start;
  }
  .account-bar .account-who a { white-space: normal; }
  .account-bar nav a,
  .account-bar nav button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}
header.site-header .site-nav a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .45em .9em .4em;
  border: 2px solid var(--red);
  color: #fff;
  background: var(--red);
  transform: skewX(-8deg);
}
header.site-header .site-nav a.btn::before { content: none; }
header.site-header .site-nav a.btn > span { display: inline-block; transform: skewX(8deg); }
header.site-header .site-nav a.btn:hover { background: var(--red-hi); border-color: var(--red-hi); color: #fff; }
header.site-header a.ig {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--fg);
  border: 1px solid var(--line);
  text-decoration: none;
}
header.site-header a.ig:hover { color: #fff; background: var(--red); border-color: var(--red); }
.nav-social { display: flex; gap: 8px; align-items: center; }
.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  padding: 0;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}
.nav-toggle::before { content: none; }
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }
footer { border-top: 2px solid var(--fg); padding-block: 28px 32px; margin-top: 48px; }
footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 32px;
  row-gap: 16px;
  align-items: center;
}
.footer-brand { min-width: 0; }
.footer-brand .brand { text-decoration: none; }
footer .footer-brand img { height: 48px; width: auto; max-width: min(220px, 68vw); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--muted);
  color: var(--fg);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .95rem;
}
.footer-social a::before { content: none; }
.footer-social a svg { display: block; flex: none; }
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.footer-nav a,
.footer-nav .footer-copy,
.footer-nav .footer-credit {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .92rem;
  text-decoration: none;
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav .footer-credit { gap: .25em; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--fg); }
@media (max-width: 1060px) {
  header.site-header > .wrap { flex-wrap: wrap; }
  header.site-header .nav-toggle { display: inline-grid; }
  header.site-header nav.site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 14px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }
  header.site-header nav.site-nav.is-open {
    display: flex;
    max-height: calc(100dvh - 76px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
  }
  header.site-header nav.site-nav > a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 1.35rem;
  }
  header.site-header nav.site-nav .btn { align-self: flex-start; margin-top: 8px; }
}
@media (max-width: 860px) {
  header.site-header .brand img { height: 36px; }
}
@media (max-width: 720px) {
  footer .wrap { grid-template-columns: 1fr; row-gap: 14px; }
  .footer-social { justify-content: flex-start; }
}
.request-title { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.estimate-app, .estimate-line, .estimate-editor { display: grid; gap: 12px; }
.estimate-picker { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.estimate-picker select { max-width: 28rem; }
.estimate-line { border: 1px solid var(--line); padding: 14px; }
.estimate-line header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.estimate-line textarea { min-height: 80px; }
.estimate-total { font-size: 1.2rem; }
.estimate-savebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.estimate-savebar .estimate-price { margin: 0; }
.estimate-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy price"
    "copy actions";
  gap: 4px 16px;
  align-items: center;
}
.estimate-summary-copy { grid-area: copy; min-width: 0; }
.estimate-summary-copy strong {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 1.35rem;
  line-height: 1;
}
.estimate-summary p { margin: 0; }
.estimate-summary-meta,
.estimate-summary-desc,
.estimate-summary-note { margin-top: 4px; }
.estimate-summary-meta,
.estimate-summary-note { color: var(--muted); }
.estimate-summary-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}
.estimate-summary-note {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.estimate-summary .estimate-price {
  grid-area: price;
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.estimate-summary-actions { grid-area: actions; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.estimate-summary-actions button { font-size: 1rem; padding: .4rem .8rem .35rem; }
@media (max-width: 640px) {
  .estimate-summary {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "price"
      "actions";
  }
  .estimate-summary-actions { justify-content: flex-start; }
}
.nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a[aria-current="page"], .nav a:hover { color: var(--fg); }
main { padding: 32px 0 16px; }
.hero p, .lede { max-width: 40rem; color: var(--muted); font-size: 1.15rem; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
  margin: 18px 0;
}
.auth-narrow { max-width: 28rem; margin: 0 auto; }
.auth-narrow > h1 { text-align: center; }
form.auth-form { max-width: 28rem; margin-left: auto; margin-right: auto; }
.account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.account-card { margin: 0; }
.account-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.account-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.account-card-wide { grid-column: 1 / -1; }
.account-card-wide .account-card-top { align-items: center; }
.account-value {
  margin: 12px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.account-card-wide .account-value { margin-top: 4px; font-weight: 500; }
.account-card-wide .account-secret {
  letter-spacing: .18em;
  font-weight: 700;
  line-height: 1;
}
.account-value.is-empty { color: var(--muted); font-weight: 500; }
.account-card .muted { margin: 8px 0 0; }
.account-edit {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin: -8px -6px 0 0;
  color: var(--muted);
  text-decoration: none;
}
.account-card-wide .account-edit { margin: 0; }
.account-edit:hover { color: #fff; }
.account-edit .icon { display: block; width: 20px; height: 20px; }
.account-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  padding: 24px 16px;
}
.account-modal:target,
.account-modal.is-open { display: grid; place-items: center; }
.account-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / .72);
}
.account-modal-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(640px, calc(100vh - 48px));
  overflow: auto;
  background: var(--panel);
  border: 1px solid #3a3a40;
  padding: 22px;
  box-shadow: 0 24px 64px rgb(0 0 0 / .45);
}
.account-modal-panel.is-invalid { border-color: var(--red); }
.account-modal-panel h2 {
  margin: 0 36px 16px 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}
.account-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  text-decoration: none;
}
.account-modal-close:hover { color: #fff; }
.account-modal-close .icon { display: block; width: 22px; height: 22px; }
.account-modal .muted { margin: 0; }
body.account-modal-open { overflow: hidden; }
@media (max-width: 900px) {
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .account-grid { grid-template-columns: 1fr; }
}
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.stack { display: grid; gap: 14px; }
h2.section-head { margin-top: 18px; }
.field { display: grid; gap: 6px; }
input, select, textarea {
  width: 100%;
  background: #101012;
  color: var(--fg);
  border: 1px solid #3a3a40;
  border-radius: 0;
  padding: 12px 12px;
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.checks { border: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check input { width: 1.15rem; height: 1.15rem; }
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-login {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  background: #141416;
  padding: 14px;
}
.contact-login p { margin: 0; }
.email-turnstile:empty { display: none; }
.contact-fields { display: grid; gap: 14px; }
.request-step { display: grid; gap: 14px; }
.request-flow:not(.is-member) .request-step:not(.is-open) { display: none; }
.request-flow:not(.is-member) #contact-fields:not(.is-ready) { display: none; }
.request-flow.is-member .request-next,
.request-flow.is-member .request-back { display: none; }
.step-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.contact-privacy { margin: 2px 0 0; font-size: .85rem; line-height: 1.4; }
.contact-privacy a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.contact-privacy a:hover { color: var(--fg); }
.password-choice {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.password-choice legend { padding: 0; }
#password-now-fields { display: none; }
.password-choice:has(#password-choice-now:checked) #password-now-fields {
  display: grid;
  gap: 14px;
}
.password-choice:has(#password-choice-now:checked) #password-later-note { display: none; }
.contact-fields.is-locked {
  opacity: .55;
}
.contact-fields.is-locked label,
.contact-fields.is-locked .req {
  color: var(--muted);
}
.contact-fields.is-locked input:disabled {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  background: #101012;
  border-color: #2a2a2e;
  cursor: not-allowed;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.page-actions { margin-bottom: 18px; row-gap: 14px; }
.page-actions h1 { margin: 0; }
.page-actions + .panel { margin-top: 0; }
@media (min-width: 801px) {
  .page-actions { justify-content: space-between; }
}
.btn, button, .btn-link {
  appearance: none;
  position: relative;
  isolation: isolate;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 1.15rem;
  padding: .7rem 1.15rem .6rem;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}
.btn::before, button::before, .btn-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--red);
  transform: skewX(-8deg);
}
.btn.ghost, button.ghost, button.upload-clear {
  color: var(--fg);
}
.btn.ghost::before, button.ghost::before, button.upload-clear::before {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.small, button.small { font-size: 1rem; }
button:disabled { opacity: .55; cursor: not-allowed; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .85rem; letter-spacing: .04em; }
.req { color: var(--muted); font-weight: 500; font-size: .85rem; }
.field-error { color: #ffd0d3; margin: 4px 0 0; }
.error-summary, .flash-error {
  border: 1px solid #ff8a90;
  background: #2a1214;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.flash-ok { border: 1px solid #8dcaa0; background: #122218; padding: 12px 14px; margin: 0 0 16px; }
.track {
  display: flex;
  list-style: none;
  margin: 8px 0 22px;
  padding: 0;
  gap: 0;
}
.track li {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  text-align: center;
  color: var(--muted);
}
.track .dot {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  border: 1px solid #4a4a50;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .8rem;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.track .name {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.track li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: #3a3a40;
}
.track li.is-done { color: var(--fg); }
.track li.is-done .dot { background: var(--fg); color: #111; border-color: var(--fg); }
.track li.is-done:not(:last-child)::after { background: var(--fg); }
.track li.is-current { color: #fff; }
.track li.is-current .dot {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(208, 17, 28, .28);
}
.track.is-legend li { color: var(--fg); }
.track.is-legend .dot { border-color: #8a8784; color: var(--fg); }
.meter-panel h2 { margin-bottom: .35rem; }
.meter {
  height: 10px;
  background: #101012;
  border: 1px solid #3a3a40;
  overflow: hidden;
}
.meter-fill {
  display: block;
  height: 100%;
  background: var(--red);
  max-width: 100%;
}
.meter.is-overdue { border-color: #e0a100; }
.meter.is-overdue .meter-fill { background: #e0a100; }
.meter-caption {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.meter.is-overdue + .meter-caption { color: #f0d48a; }
.mini-progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.mini-dots { display: flex; gap: 6px; }
.mini-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #5c5c62;
  background: transparent;
}
.mini-dots span.done { background: var(--fg); border-color: var(--fg); }
.mini-dots span.current { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 3px rgba(208, 17, 28, .35); }
.mini-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mini-label.is-current { color: #fff; }
.mini-meter { height: 4px; background: #2c2c30; margin-top: 8px; max-width: 220px; }
.mini-meter span { display: block; height: 100%; background: var(--red); }
.mini-meter.is-overdue span { background: #e0a100; }
.mini-note { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.job-date { display: block; font-weight: 700; line-height: 1.3; }
.job-summary { margin: 2px 0 0; overflow-wrap: anywhere; }
.job-id { margin-top: 2px; }
.cards { display: grid; gap: 12px; }
.card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  border: 1px solid var(--line);
  padding: 14px;
  text-decoration: none;
}
.card:hover { border-color: #555; }
.badge {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 4px 8px;
  align-self: start;
}
.file-tiles { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.file-tile {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  background: #141416;
  color: inherit;
  text-decoration: none;
}
.file-tile:hover { border-color: #555; }
.file-tile .file-preview-media { grid-area: auto; align-self: center; position: relative; }
.file-tile .file-preview-icon { position: absolute; inset: 0; }
.file-tile .file-preview-img { position: relative; z-index: 1; }
.file-tile .file-preview-name { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.uploader-drop {
  position: relative;
  min-height: 112px;
  border: 1px dashed #6a6763;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px 16px;
  background: #141416;
}
.uploader-drop.is-drag { border-color: var(--red); background: #1c1213; }
.uploader-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.uploader-copy { pointer-events: none; }
.uploader-cta { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.uploader-help { margin: 8px 0 0; }
.uploader-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.uploader-list:not(:empty) { margin-top: 12px; }
.uploader-list > li { min-width: 0; }
.upload-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  background: #141416;
  font-weight: 500;
  min-width: 0;
}
.file-preview-media {
  grid-area: media;
  align-self: start;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0e0e10;
  color: var(--fg);
}
.file-preview-kind {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}
img.file-preview-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.file-preview-icon { width: 72px; height: 72px; display: block; }
.upload-row .upload-meta { white-space: nowrap; }
.upload-row .upload-state { overflow-wrap: anywhere; }
.upload-row.is-error .upload-state { color: #ffd0d3; }
.upload-row.is-done .upload-state { color: #b7e3c4; }
.upload-row .upload-remove { justify-self: end; }
.upload-bar {
  grid-column: 1 / -1;
  height: 6px;
  background: #2c2c30;
  overflow: hidden;
}
.upload-row:not(.is-uploading) .upload-bar { display: none; }
.upload-bar > span { display: block; height: 100%; width: 0; background: var(--red); }
button.upload-clear {
  background: transparent;
  color: var(--fg);
  border: 0;
  font-family: var(--body);
  font-style: normal;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  min-height: 44px;
  padding: .45rem .9rem;
}
button.upload-clear:hover { border-color: var(--fg); }
button.upload-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  line-height: 0;
}
button.upload-remove::before { content: none; }
button.upload-remove:hover,
button.upload-remove:focus-visible { color: var(--fg); }
button.upload-remove:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
button.upload-remove .icon { display: block; width: 18px; height: 18px; }
.uploader-status { min-height: 1.3em; margin: 8px 0 0; }
.uploader-status.is-error { color: #ffd0d3; }
.prior-files { margin-top: 14px; }
.prior-files-lead { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.prior-files-more { margin: 8px 0 0; font-size: .9rem; }
.prior-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 760px) {
  .uploader-list,
  .prior-file-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .uploader-list,
  .prior-file-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.prior-file-list > li.is-extra { display: none; }
.prior-file-list > li { min-width: 0; display: flex; }
.prior-file-list > li > .prior-file { flex: 1 1 auto; width: 100%; }
.prior-load-more { margin-top: 10px; }
.prior-file {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  background: #141416;
  cursor: pointer;
  font-weight: 500;
}
.prior-file:hover { border-color: #555; }
.prior-file:focus-within { outline: 2px solid var(--fg); outline-offset: 2px; }
.prior-file:has(input:checked) { border-color: var(--red); }
.prior-file.is-blocked { cursor: default; opacity: .72; }
.prior-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.prior-file .file-preview-media,
.upload-row .file-preview-media { grid-area: auto; position: relative; align-self: center; }
.prior-file .file-preview-icon,
.upload-row .file-preview-icon { position: absolute; inset: 0; }
.prior-file .file-preview-img,
.upload-row .file-preview-img { position: relative; z-index: 1; }
.prior-file-copy { min-width: 0; }
.prior-file-name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.prior-file-meta { display: block; color: var(--muted); font-size: .85rem; }
.prior-file-action {
  justify-self: end;
  color: var(--red-hi);
  line-height: 0;
}
.prior-file-action .icon { display: block; width: 22px; height: 22px; }
.prior-file .prior-added { display: none; }
.prior-file:has(input:checked) .prior-add { display: none; }
.prior-file:has(input:checked) .prior-added { display: block; }
.prior-file:has(input:checked) .prior-file-action { color: #b7e3c4; }
.prior-file.is-blocked .prior-file-action {
  line-height: 1.2;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

.pay-choices { display: grid; gap: 18px; }
.pay-choice:not(:last-child) > :last-child { margin-bottom: 0; }
.square-card {
  min-height: 96px;
  background: #fff;
  padding: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@media (max-width: 800px) {
  .grid-2, .row, .row.cols-2, .card { grid-template-columns: 1fr; }
  .track { flex-direction: column; gap: 0; margin-bottom: 8px; }
  .track li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: center;
    text-align: left;
    min-height: 48px;
    padding-bottom: 6px;
  }
  .track .dot { margin: 0; }
  .track li:not(:last-child)::after {
    top: 32px;
    left: 15px;
    width: 2px;
    height: calc(100% - 20px);
  }
  .track .name { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.account-masquerade {
  margin-left: 8px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2a2a2e;
  color: var(--fg);
  font-size: .75rem;
  font-weight: 700;
}
img.avatar-photo { display: block; object-fit: cover; padding: 0; }
.thread { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.thread li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: #141416;
}
.thread .from-shop { border-color: #5a3033; }
.thread-copy { min-width: 0; }
.thread-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .9rem; }
.thread-body { margin: 6px 0 0; overflow-wrap: anywhere; }
#messages { scroll-margin-top: 84px; }
