:root {
  --bg: #080d16;
  --surface: #101a29;
  --surface-2: #152235;
  --line: #2a3a50;
  --text: #f3f7fb;
  --muted: #a9b8ca;
  --cyan: #26d7e8;
  --lime: #d9ff67;
  --yellow: #ffd853;
  --green: #67e1a5;
  --orange: #ff9663;
  --red: #ff819c;
  --purple: #b99cff;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 8%, #123e4b 0, transparent 26%), var(--bg);
  font-family: var(--sans);
  line-height: 1.55;
}
a {
  color: var(--cyan);
  text-underline-offset: 3px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.app-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 5vw, 4rem);
  background: rgba(8, 13, 22, 0.95);
  border-bottom: 1px solid rgba(38, 215, 232, 0.32);
  backdrop-filter: blur(12px);
}
.app-wordmark {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-decoration: none;
}
.app-wordmark > span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-right: 0.35rem;
  color: #071019;
  background: var(--cyan);
  font-size: 1.1rem;
  transform: skew(-9deg);
}
.app-wordmark i {
  color: var(--cyan);
  font-style: normal;
}
.app-wordmark small {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}
.app-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.app-nav a {
  padding: 0.45rem 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}
.app-nav a:hover {
  color: var(--lime);
}
.logout-form {
  margin: 0;
}
.logout-form button {
  padding: 0.45rem 0.55rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 0.82rem;
  font-weight: 750;
}
.logout-form button:hover {
  color: var(--lime);
}
.app-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem) 4rem;
}
.app-footer {
  padding: 1.1rem clamp(1rem, 5vw, 4rem);
  color: #8196ad;
  background: #060a11;
  border-top: 1px solid #1d2a39;
  font-size: 0.75rem;
}
.user-chip {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 0.55rem 0.7rem;
  color: #cad7e2;
  background: #0b1c29;
  border: 1px solid #29475a;
  border-radius: 6px;
  font-size: 0.78rem;
}
.user-chip b {
  color: var(--cyan);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--cyan);
  font-size: 0.69rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}
.dashboard-hero,
.page-heading,
.detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  background: linear-gradient(145deg, #0d1928, #0b2230);
  border: 1px solid #27465a;
  border-left: 5px solid var(--lime);
}
.dashboard-hero h1,
.page-heading h1,
.detail-heading h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}
.dashboard-hero h1 em,
.page-heading h1 em,
.detail-heading h1 em {
  color: var(--lime);
  font-style: normal;
}
.dashboard-hero p:not(.eyebrow),
.page-heading p:not(.eyebrow),
.detail-heading p:not(.eyebrow) {
  max-width: 730px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 0.9rem;
  color: var(--text);
  background: #162439;
  border: 1px solid #365170;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
}
.button:hover {
  border-color: var(--cyan);
  background: #1b304a;
}
.button-primary {
  color: #071019;
  background: var(--lime);
  border-color: var(--lime);
}
.button-primary:hover {
  background: #e4ff8f;
  border-color: #e4ff8f;
}
.button-warn {
  color: #301500;
  background: var(--yellow);
  border-color: var(--yellow);
}
.button-ghost {
  background: transparent;
}
.status-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.2rem 0;
}
.status-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cyan);
  text-decoration: none;
}
.status-card span {
  color: var(--muted);
  font-size: 0.78rem;
}
.status-card b {
  margin-top: 0.2rem;
  font-size: 2rem;
}
.status-card.ready {
  border-top-color: var(--yellow);
}
.status-card.approved {
  border-top-color: var(--green);
}
.status-card.correction {
  border-top-color: var(--orange);
}
.content-card,
.guide-card,
.review-card {
  margin-top: 1.2rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--line);
}
.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  letter-spacing: -0.035em;
}
.section-title > span,
.factor-note {
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 850;
}
.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  border: 1px dashed #3d5772;
}
.empty-state strong {
  font-size: 1.1rem;
}
.empty-state p {
  max-width: 470px;
  margin: 0.5rem auto 1rem;
  color: var(--muted);
}
.style-list,
.users-list {
  border-top: 1px solid var(--line);
}
.style-row,
.users-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.style-row:hover {
  background: #142136;
}
.style-row > div:first-child,
.users-list article > div:first-child {
  display: grid;
  gap: 0.15rem;
}
.style-row strong,
.users-list strong {
  color: var(--cyan);
  font-size: 0.85rem;
}
.style-row span,
.users-list span {
  color: var(--muted);
  font-size: 0.85rem;
}
.style-row > div:last-child,
.users-list article > div:last-child {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.35rem;
}
.style-row small {
  color: #8498ad;
  font-size: 0.72rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}
.badge-draft {
  color: #d1dce8;
  background: #28364a;
}
.badge-ready_for_review {
  color: #3a2700;
  background: var(--yellow);
}
.badge-approved {
  color: #062417;
  background: var(--green);
}
.badge-correction_needed {
  color: #44120a;
  background: var(--orange);
}
.badge-skipped {
  color: #5e1024;
  background: #ff819c;
}
.badge-role {
  color: #e3d8ff;
  background: #32274d;
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.4rem;
  max-width: 980px;
  margin: clamp(1rem, 6vw, 5rem) auto;
}
.auth-intro {
  padding: clamp(1.6rem, 5vw, 3.5rem);
  background:
    radial-gradient(circle at 80% 25%, #195260, transparent 31%),
    linear-gradient(145deg, #0d1928, #0b2230);
  border: 1px solid #27465a;
}
.auth-intro h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}
.auth-intro h1 em {
  color: var(--lime);
  font-style: normal;
}
.auth-intro p:last-child {
  max-width: 500px;
  color: var(--muted);
  font-size: 1.05rem;
}
.app-form {
  display: grid;
  gap: 1rem;
}
.auth-form {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
}
.auth-form h2 {
  margin: 0;
  font-size: 1.5rem;
}
.app-form label {
  display: grid;
  gap: 0.35rem;
  color: #dce7ee;
  font-size: 0.88rem;
  font-weight: 800;
}
.app-form label small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}
.app-form input,
.app-form textarea,
.app-form select {
  width: 100%;
  padding: 0.72rem 0.75rem;
  color: var(--text);
  background: #09131f;
  border: 1px solid #36506b;
  border-radius: 5px;
  line-height: 1.35;
}
.app-form textarea {
  resize: vertical;
}
.app-form input::placeholder,
.app-form textarea::placeholder {
  color: #70849b;
}
.app-form select {
  appearance: auto;
}
.form-row,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-errors {
  padding: 0.85rem;
  color: #ffd9e0;
  background: #3b1720;
  border-left: 4px solid var(--red);
}
.form-errors strong {
  font-size: 0.88rem;
}
.form-errors ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 1.2rem;
}
.guide-card {
  margin-top: 0;
  background: #11172a;
  border-top: 4px solid var(--purple);
}
.guide-card h3 {
  margin: 1rem 0 0.35rem;
  color: #d4c2ff;
  font-size: 1rem;
}
.guide-card p {
  margin: 0;
  color: #c2c6d8;
  font-size: 0.9rem;
}
.inline-form {
  display: inline;
}
.link-button {
  padding: 0;
  color: var(--yellow);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--yellow);
  font-size: 0.78rem;
}
.page-heading.compact {
  margin-bottom: 1.2rem;
}
.page-heading.compact h1 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
}
.style-form {
  display: grid;
  gap: 1.2rem;
}
.form-section {
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
}
.form-section .section-title {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.calculate-link {
  width: max-content;
  padding: 0;
  color: var(--yellow);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--yellow);
  font-size: 0.75rem;
  font-weight: 800;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}
.photo-field {
  min-height: 155px !important;
  align-content: start;
  padding: 0.8rem;
  background: #0a1521;
  border: 1px dashed #41617a;
  border-radius: 6px;
}
.photo-field.required-photo {
  border-color: var(--lime);
}
.photo-field input {
  padding: 0.45rem !important;
  font-size: 0.75rem;
}
.photo-field output {
  min-height: 1.4rem;
  color: var(--cyan);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}
.detail-heading {
  margin-bottom: 1.2rem;
}
.detail-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.detail-grid .content-card {
  margin-top: 0;
}
.price-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.price-pair > div {
  padding: 1rem;
  background: #0b1622;
}
.price-pair span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.price-pair b {
  color: var(--lime);
  font-size: 1.35rem;
}
dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.35rem 0.8rem;
  margin: 1rem 0 0;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  color: #e0eaf0;
}
hr {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}
.media-grid figure {
  margin: 0;
  overflow: hidden;
  background: #071019;
  border: 1px solid var(--line);
}
.media-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.media-grid figcaption {
  padding: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
}
.review-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 1.5rem;
  background: #122332;
  border-color: #2e6676;
}
.review-card h2 {
  margin: 0.1rem 0;
  font-size: 1.45rem;
}
.review-card p:not(.eyebrow) {
  color: #bfd8df;
}
.review-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.notice {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--cyan);
  background: #0b2731;
}
.notice-error {
  color: #ffd8df;
  background: #3b1720;
  border-left-color: var(--red);
}
.notice-success {
  color: #d5fbe5;
  background: #0d2c20;
  border-left-color: var(--green);
}
.shipping-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  background: var(--line);
}
.shipping-checks > div {
  display: flex;
  gap: 0.7rem;
  padding: 0.9rem;
  background: #0a1724;
}
.shipping-checks b {
  color: var(--lime);
  font-size: 1.1rem;
}
.shipping-checks span {
  color: var(--muted);
  font-size: 0.84rem;
}
.store-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.3rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #08111a, 0 0 0 3px currentColor;
}
.store-picker {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
}
.store-picker legend {
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}
.store-picker label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
}
.store-picker input {
  width: auto;
}
[data-material-total].is-complete {
  color: var(--lime);
}
@media (max-width: 760px) {
  .app-topbar {
    align-items: flex-start;
  }
  .app-nav {
    max-width: 56%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .app-nav a {
    padding: 0.2rem 0.3rem;
    font-size: 0.72rem;
  }
  .dashboard-hero,
  .page-heading,
  .detail-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
  .status-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-shell,
  .two-column,
  .detail-grid,
  .review-card {
    grid-template-columns: 1fr;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-row,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .form-actions .button {
    width: 100%;
  }
  .style-row,
  .users-list article {
    align-items: flex-start;
    flex-direction: column;
  }
  .style-row > div:last-child,
  .users-list article > div:last-child {
    align-items: flex-start;
  }
  .shipping-checks {
    grid-template-columns: 1fr;
  }
  dl {
    grid-template-columns: 95px 1fr;
  }
}
@media (max-width: 400px) {
  .app-wordmark small {
    display: none;
  }
  .app-nav {
    gap: 0.05rem;
  }
  .app-nav a {
    font-size: 0.68rem;
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
