:root {
  color-scheme: light;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #192c26;
  background: #f4f5ee;
  --ink: #192c26;
  --muted: #52665c;
  --line: #dce4d9;
  --lime: #e7ef9b;
  --paper: #fdfef9;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid #57846f; outline-offset: 3px; }
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem max(5vw, calc((100% - 70rem) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.account-brand, .account-tools { display: flex; align-items: center; gap: .65rem; }
.account-header a { text-decoration: none; }
.account-brand { font-size: 1rem; font-weight: 760; }
.account-tools { flex-wrap: wrap; justify-content: flex-end; font-size: .85rem; }
.account-tools a { padding: .45rem .2rem; }
.account-tools a:hover { text-decoration: underline; }
.quiet {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: .5rem .75rem;
  border-radius: .55rem;
}
.account-main { width: min(90%, 70rem); margin: 0 auto; padding: clamp(1.6rem, 5vw, 4.5rem) 0 4rem; }
.account-notice { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: .75rem; background: #e4eddd; }
.account-notice[data-error="true"] { color: #8c2b23; background: #f9e6e0; }
.auth-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 31rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background: var(--paper);
  box-shadow: 0 20px 65px #233b2720;
}
.auth-visual {
  display: flex;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #f9fbf4;
  background: linear-gradient(0deg, #0d2625 1%, #152c286b 48%, transparent 82%),
    url("/assets/home-unicorn.jpg") 69% center / cover #18332d;
}
.auth-visual h2 { max-width: 14ch; margin: .6rem 0 0; font-size: clamp(1.65rem, 3.5vw, 2.8rem); line-height: 1.22; }
.kicker { margin: 0; font-size: .8rem; letter-spacing: .11em; color: var(--muted); font-weight: 760; }
.auth-visual .kicker, .project-banner .kicker { color: var(--lime); }
.auth-body { align-self: center; padding: clamp(1.4rem, 5vw, 4rem); }
.auth-tabs { display: inline-flex; flex-wrap: wrap; gap: .2rem; padding: .25rem; border-radius: .65rem; background: #eef1e9; }
.auth-tabs button { border: 0; border-radius: .47rem; padding: .48rem .85rem; color: var(--muted); background: transparent; }
.auth-tabs [aria-pressed="true"] { color: var(--ink); background: white; box-shadow: 0 1px 4px #233b271e; font-weight: 700; }
h1 { margin: 1rem 0 .5rem; font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -.035em; }
.auth-body > p { color: var(--muted); margin: 0 0 1.6rem; line-height: 1.65; }
label { display: grid; gap: .4rem; color: var(--ink); font-weight: 650; font-size: .9rem; }
input, select { width: 100%; min-width: 0; padding: .8rem .9rem; border: 1px solid #c9d6cc; border-radius: .62rem; background: #fff; color: var(--ink); }
#auth-form { display: grid; gap: 1rem; }
.identity-choice { display: flex; flex-wrap: wrap; gap: .45rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.identity-choice legend { margin-bottom: .45rem; padding: 0; font-size: .9rem; font-weight: 650; }
.identity-choice label { display: flex; align-items: center; gap: .4rem; padding: .42rem .65rem; border: 1px solid var(--line); border-radius: .52rem; cursor: pointer; }
.identity-choice label:has(:checked) { border-color: #a8bdab; background: #edf3e8; }
.identity-choice input { width: auto; margin: 0; accent-color: #315747; }
.verification-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; margin-top: .4rem; }
.verification-controls button { white-space: nowrap; font-size: .85rem; }
.verification-controls button:hover:not(:disabled) { background: #edf3e8; }
.auth-options { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .55rem 1rem; }
.remember-choice { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .82rem; }
.remember-choice input { width: auto; margin: 0; accent-color: #315747; }
.text-button { background: transparent; border: 0; padding: .25rem 0; color: #315747; text-decoration: underline; font-size: .82rem; }
#password-change-form { display: grid; max-width: 24rem; gap: .8rem; }
#password-change-form button { justify-self: start; }
#password-settings { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); }
#password-settings summary { cursor: pointer; font-size: .86rem; font-weight: 700; }
#password-settings form { margin-top: .75rem; }
.profile-fields { display: grid; gap: .8rem; }
#profile-form { max-width: 28rem; }
#profile-form button { justify-self: start; }
.account-identity { display: grid; gap: .2rem; text-align: right; }
.account-identity strong { overflow-wrap: anywhere; }
.account-identity .account-email { margin: 0; }
.primary { min-height: 2.85rem; margin-top: .3rem; border: 1px solid #203c31; border-radius: .65rem; background: #203c31; color: white; font-weight: 730; }
.primary:hover { background: #315747; }
.signup-notice { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.55; }
.dashboard-title { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.35rem; }
.dashboard-title h1 { margin: .28rem 0 0; }
.account-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem .75rem; margin-bottom: .45rem; }
.account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.account-actions button { padding: .3rem .48rem; font-size: .75rem; }
.account-actions button[aria-expanded="true"] { background: #e7ef9b; border-color: #a8b657; }
.account-number-button code { font-size: .73rem; font-variant-numeric: tabular-nums; }
.account-email { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.empty-projects { padding: clamp(1.5rem, 6vw, 3.6rem); border: 1px dashed #afc0ae; border-radius: 1.2rem; background: var(--paper); }
.empty-projects h2 { margin: 0; }
.empty-projects p { color: var(--muted); line-height: 1.65; margin: .7rem 0 0; }
.account-link-info { margin: .9rem 0 1.2rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--paper); }
.project-list { display: grid; gap: .65rem; }
.project-row {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--paper);
}
.project-summary {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 3.65rem;
  padding: .65rem .9rem;
  list-style: none;
  cursor: pointer;
}
.project-summary::-webkit-details-marker { display: none; }
.project-summary::before {
  content: '';
  width: .45rem;
  height: .45rem;
  flex: none;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
}
.project-fold[open] .project-summary::before { transform: rotate(45deg); }
.project-summary strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.project-status {
  flex: none;
  color: #315747;
  padding: .25rem .55rem;
  border-radius: 1rem;
  background: #edf1df;
  font-size: .76rem;
}
.project-status[data-completed="true"] { background: #e0ede4; }
.project-detail { padding: .2rem .9rem 1rem; }
.project-row:has(.project-remove) .project-summary { padding-inline-end: 10.25rem; }
.project-remove { position: absolute; inset: .8rem .8rem auto auto; padding: .35rem .55rem; font-size: .76rem; }
.project-row:has(.project-request-delete) .project-summary { padding-inline-end: 5.1rem; }
.project-request-delete { width: 3.65rem; color: #943e32; }
.project-request-bar { display: flex; justify-content: flex-end; margin: 0 0 .9rem; }
.production-request {
  width: min(42rem, 94vw);
  max-height: 88dvh;
  padding: clamp(.9rem, 3vw, 1.6rem);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: 0 1.1rem 4rem #19332b35;
}
.production-request::backdrop { background: #10292080; }
#production-request-form { display: grid; gap: .8rem; }
.request-title, .request-gallery-title { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.request-title h2 { margin: 0; }
.request-help, .request-empty, .request-error { margin: 0; font-size: .87rem; }
.request-help, .request-empty { color: var(--muted); }
.request-error { color: #8c2b23; }
.request-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr)); gap: .55rem; }
.request-gallery-title, .request-empty { grid-column: 1 / -1; }
.request-products > button {
  min-width: 0;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #f5f6ef;
  color: var(--ink);
  text-align: left;
}
.request-products > button:hover { border-color: #899e50; }
.request-products img, .request-selection img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: .45rem; background: #e9eee4; }
.request-products > button span { display: block; padding: .35rem .15rem; font-size: .75rem; overflow-wrap: anywhere; }
.request-selection { display: grid; align-items: center; grid-template-columns: 3rem 1fr auto; gap: .65rem; }
#request-more { justify-self: start; }
#request-submit { justify-self: end; }
@media (max-width: 480px) {
  .project-row:has(.project-remove:not(.project-request-delete)) .project-summary { padding-inline-end: .9rem; }
  .project-remove:not(.project-request-delete) { position: static; margin: 0 .9rem .75rem; }
}
.project-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.3rem, 4vw, 2.7rem);
  border-radius: 1.3rem;
  background: radial-gradient(ellipse at 97% 10%, #426152, transparent 58%), #1b372e;
  color: #f8fbf3;
}
.project-banner h2 { margin: .55rem 0; font-size: clamp(1.55rem, 4vw, 2.65rem); overflow-wrap: anywhere; }
.project-banner p:last-child { color: #d8e4d9; margin: 0; font-size: .86rem; }
.project-current { flex: 0 0 auto; padding: .75rem 1rem; border-radius: .85rem; background: #f2f5d9; color: var(--ink); }
.project-current span { display: block; font-size: .75rem; color: var(--muted); }
.project-current strong { display: block; margin-top: .25rem; font-size: 1.15rem; }
.stage-heading { margin: 2rem 0 1rem; font-size: 1.2rem; }
.stage-scroll { overflow-x: auto; margin-bottom: .85rem; scrollbar-width: thin; }
.stage-list { position: relative; list-style: none; margin: 0; padding: .3rem; display: grid; grid-template-columns: repeat(7, minmax(2.7rem, 1fr)); gap: clamp(.15rem, 1.1vw, .8rem); min-width: max(100%, 21rem); }
.stage-list::before { content: ""; position: absolute; top: 2.17rem; left: 7.14%; right: 7.14%; height: 1px; background: #b8cbb9; }
.stage { z-index: 1; min-width: 0; }
.stage button { display: grid; justify-items: center; align-content: start; gap: .4rem; width: 100%; height: 100%; min-height: 5.9rem; padding: .55rem .12rem; border: 1px solid transparent; border-radius: .7rem; background: transparent; color: var(--ink); }
.stage button:hover { background: #edf2e9; }
.stage button[aria-pressed="true"] { background: #f9fbe6; border-color: #b1c268; }
.stage button strong { font-size: clamp(.74rem, 1.4vw, .99rem); overflow-wrap: anywhere; }
.stage button small { font-size: clamp(.64rem, 1.2vw, .78rem); color: var(--muted); }
.stage-number { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #e8ede5; color: #425a50; font-size: .79rem; font-weight: 760; }
.stage[data-state="active"] .stage-number { background: var(--lime); color: var(--ink); }
.stage[data-state="done"] .stage-number { background: #dcebe2; color: #235341; }
.stage-card { padding: .9rem 1.05rem; border-radius: .85rem; border: 1px solid var(--line); background: var(--paper); }
.stage-card[data-state="active"] { border-color: #9aab56; background: #fcfdeb; }
.stage-card .stage-empty { color: var(--muted); font-size: .84rem; }
.stage-title { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.stage-title h3 { font-size: 1rem; margin: 0; }
.stage-title span { font-size: .75rem; color: #455e51; }
.stage-card time { display: block; margin-top: .45rem; font-size: .77rem; color: var(--muted); }
.stage-card p { margin: .65rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.stage-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(8rem, 100%), 1fr)); gap: .7rem; margin-top: .8rem; }
.stage-photos a { display: block; max-width: 15rem; }
.stage-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .6rem; background: #edf0e7; }
@media (max-width: 680px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-visual { min-height: 12rem; }
  .auth-visual h2 { max-width: 20ch; }
  .dashboard-title, .project-banner { align-items: flex-start; flex-direction: column; }
  .account-email { margin: 0; }
  .account-identity { text-align: left; }
  .project-current { display: flex; align-items: baseline; gap: .55rem; }
  .project-current strong { margin: 0; }
}
