:root {
  --bg: #FAF8F5;
  --paper: #FFFFFF;
  --paper-soft: #F3EEE7;
  --ink: #1A1A1A;
  --muted: #756E66;
  --line: rgba(26, 26, 26, 0.09);
  --gold: #C9A96E;
  --gold-deep: #9B7645;
  --red: #A8544D;
  --red-deep: #843E38;
  --blue: #405A72;
  --green: #5C7664;
  --shadow: 0 16px 44px rgba(50, 38, 25, 0.10);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.54), rgba(250,248,245,0)),
    var(--bg);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(160px, auto) 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(46, 34, 22, 0.16);
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.top-nav,
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-btn,
.icon-btn,
.btn,
.chip,
.tab-btn,
.seg-btn {
  border: 0;
  background: transparent;
  color: inherit;
}

.nav-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: #4B4540;
  font-size: 14px;
  font-weight: 750;
}

.nav-btn:hover,
.nav-btn.active {
  background: rgba(201, 169, 110, 0.14);
  color: var(--ink);
}

.nav-btn.primary {
  padding: 0 18px;
  background: var(--red);
  color: #fff;
}

.nav-btn.primary:hover,
.nav-btn.primary.active {
  background: var(--red-deep);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  color: #3F3832;
  font-size: 13px;
  font-weight: 750;
}

.avatar-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1A1A1A;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 96px;
}

.home-page {
  width: 100%;
  padding-top: 0;
}

.hero {
  position: relative;
  min-height: clamp(560px, calc(100vh - 132px), 700px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #2D2A28;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.05) 42%, rgba(0,0,0,0.58)),
    linear-gradient(90deg, rgba(0,0,0,0.62), rgba(0,0,0,0.16) 58%, rgba(0,0,0,0.30));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 82px;
}

.hero-content {
  width: min(620px, 100%);
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  color: #F4E6C9;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 12px 38px rgba(0,0,0,0.38);
}

.hero p {
  width: min(520px, 100%);
  margin: 0;
  color: rgba(255,255,255,0.90);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 520;
  text-shadow: 0 8px 28px rgba(0,0,0,0.34);
}

.hero-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-metrics span {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-left: 1px solid rgba(255,255,255,0.42);
  background: rgba(0,0,0,0.14);
}

.hero-metrics strong {
  color: #F6DDB0;
  font-size: 18px;
  line-height: 1;
}

.hero-metrics small {
  color: rgba(255,255,255,0.84);
  font-size: 12px;
  font-weight: 760;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.btn.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn.primary:hover {
  background: var(--red-deep);
}

.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #1F1710;
}

.btn.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn.ghost {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.30);
  color: #fff;
}

.btn.subtle {
  background: rgba(26,26,26,0.04);
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.54;
}

.icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.icon.start::before {
  content: "";
  position: absolute;
  inset: 3px 4px;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.icon.home::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 11px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: 0;
}

.icon.home::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon.user::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon.user::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 1px;
  width: 13px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 3px 3px;
}

.icon.box::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
}

.icon.spark::before,
.icon.spark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 1px;
  width: 2px;
  height: 15px;
  border-radius: 2px;
  background: currentColor;
}

.icon.spark::after {
  transform: rotate(90deg);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 0;
}

.section-overlap {
  position: relative;
  z-index: 2;
  margin-top: -44px;
  padding-top: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.section-more {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.quick-grid,
.product-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-card,
.card,
.panel,
.image-card,
.form-card,
.order-card,
.asset-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
}

.quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 142px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card {
  min-height: 158px;
  padding: 20px;
  background: rgba(255,255,255,0.94);
}

.service-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gold);
}

.quick-card:hover,
.select-card:hover,
.product-card:hover,
.order-card:hover {
  transform: translateY(-3px);
}

.quick-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: rgba(201,169,110,0.16);
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 900;
}

.quick-title {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
}

.quick-desc {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.quick-arrow {
  margin-top: auto;
  padding-top: 14px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 850;
}

.tone-red .quick-mark { background: rgba(168,84,77,0.14); color: var(--red-deep); }
.tone-blue .quick-mark { background: rgba(64,90,114,0.14); color: var(--blue); }
.tone-green .quick-mark { background: rgba(92,118,100,0.14); color: var(--green); }
.tone-red.service-card::after { background: var(--red); }
.tone-blue.service-card::after { background: var(--blue); }
.tone-green.service-card::after { background: var(--green); }

.style-studio {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.style-copy p {
  max-width: 430px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.style-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chip-row,
.tabs-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.80);
  color: #403A34;
  font-size: 14px;
  font-weight: 760;
}

.chip.active,
.tab-btn.active,
.seg-btn.active {
  border-color: rgba(201,169,110,0.72);
  background: rgba(201,169,110,0.18);
  color: #1A1A1A;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid-featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EEE8DF;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.product-media img[src*="sketches/"] {
  object-fit: contain;
  padding: 26px;
  background: #F7F2EA;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-tag {
  position: absolute;
  right: 10px;
  top: 10px;
  min-height: 26px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: rgba(26,26,26,0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.product-body {
  display: block;
  padding: 16px;
}

.product-title {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.product-desc {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-card {
  min-height: 156px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}

.flow-card:last-child {
  border-right: 0;
}

.flow-index {
  display: block;
  margin-bottom: 20px;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 900;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.main-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.74);
  box-shadow: var(--shadow);
}

.main-panel {
  min-width: 0;
  overflow: hidden;
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.panel-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.chat-log {
  min-height: 300px;
  max-height: 46vh;
  overflow: auto;
  padding: 18px 16px;
  background: linear-gradient(180deg, rgba(243,238,231,0.44), rgba(255,255,255,0));
}

.message-row {
  display: flex;
  margin-bottom: 12px;
}

.message-row.user {
  justify-content: flex-end;
}

.bubble {
  max-width: min(620px, 86%);
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: #2F2924;
  line-height: 1.6;
  font-size: 14px;
}

.message-row.user .bubble {
  background: #1A1A1A;
  color: #fff;
  border-color: #1A1A1A;
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
}

.composer textarea {
  width: 100%;
  min-height: 46px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.control-panel {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.tab-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.80);
  color: #3E3833;
  font-size: 14px;
  font-weight: 780;
  white-space: nowrap;
}

.tab-value {
  margin-left: 6px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 850;
}

.selector-area {
  min-height: 246px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.select-card {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.84);
  cursor: pointer;
}

.select-card.active {
  border-color: rgba(201,169,110,0.86);
  background: #FFF8EC;
}

.select-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 96px;
  overflow: hidden;
  border-radius: 8px;
  background: #F5F1EA;
}

.select-media img,
.material-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lineart {
  position: relative;
  width: 74px;
  height: 80px;
}

.lineart::before,
.lineart::after,
.lineart span {
  content: "";
  position: absolute;
  border: 2px solid #1A1A1A;
}

.lineart::before {
  left: 23px;
  top: 19px;
  width: 28px;
  height: 44px;
  border-top: 0;
  border-radius: 4px 4px 10px 10px;
  background: #fff;
}

.lineart::after {
  left: 30px;
  top: 10px;
  width: 14px;
  height: 12px;
  border-bottom: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.lineart span:nth-child(1) {
  left: 7px;
  top: 24px;
  width: 20px;
  height: 28px;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  transform: rotate(12deg);
  background: #fff;
}

.lineart span:nth-child(2) {
  right: 7px;
  top: 24px;
  width: 20px;
  height: 28px;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  transform: rotate(-12deg);
  background: #fff;
}

.lineart span:nth-child(3) {
  left: 36px;
  top: 34px;
  width: 3px;
  height: 3px;
  border: 0;
  border-radius: 50%;
  background: #1A1A1A;
  box-shadow: 0 9px 0 #1A1A1A, 0 18px 0 #1A1A1A;
}

.lineart.tee::before {
  border-top: 2px solid #1A1A1A;
}

.lineart.dress::before,
.lineart.qipao::before {
  top: 15px;
  height: 52px;
  border-top: 2px solid #1A1A1A;
  border-radius: 14px 14px 8px 8px;
}

.lineart.dress span,
.lineart.qipao span,
.lineart.pants span {
  display: none;
}

.lineart.pants::after {
  display: none;
}

.lineart.pants::before {
  top: 14px;
  width: 34px;
  height: 54px;
  border-top: 2px solid #1A1A1A;
}

.lineart.pants i {
  position: absolute;
  left: 37px;
  top: 28px;
  bottom: 12px;
  border-left: 2px solid #1A1A1A;
}

.select-title {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.material-grid,
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.material-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.material-card.active {
  border-color: rgba(201,169,110,0.86);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}

.material-media {
  height: 142px;
  background: #EEE8DD;
}

.material-body {
  padding: 10px;
}

.material-name {
  display: block;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.material-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #4B443D;
  font-size: 13px;
  font-weight: 780;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.summary-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(26,26,26,0.06);
}

.summary-row span:first-child {
  color: var(--muted);
  font-size: 13px;
}

.summary-row strong,
.price {
  font-weight: 850;
}

.muted {
  color: var(--muted);
}

.empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 28px;
  color: var(--muted);
  border: 1px dashed rgba(26,26,26,0.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.45);
  text-align: center;
}

.result-layout,
.detail-layout,
.order-layout,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.image-card {
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.image-card .image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #EEE8DD;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card-body {
  padding: 12px;
}

.detail-main {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-main-image {
  aspect-ratio: 4 / 5;
  background: #ECE6DD;
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-tools {
  display: grid;
  gap: 12px;
}

.detail-strip {
  display: grid;
  gap: 10px;
}

.detail-thumb {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.detail-thumb-img {
  width: 82px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: #EEE8DD;
}

.detail-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumb-title {
  display: block;
  font-size: 14px;
  font-weight: 850;
}

.detail-thumb-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.upload-box {
  min-height: 106px;
  padding: 16px;
  border: 1px dashed rgba(26,26,26,0.20);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.52);
}

.table-list {
  display: grid;
  gap: 10px;
}

.order-card,
.asset-card,
.form-card {
  padding: 14px;
}

.order-card {
  cursor: pointer;
}

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.order-card-body {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
}

.order-img {
  width: 86px;
  height: 86px;
  overflow: hidden;
  border-radius: 8px;
  background: #EEE8DD;
}

.order-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-pill {
  min-height: 26px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: rgba(64,90,114,0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
}

.status-pill.pending,
.status-pill.pending_payment {
  background: rgba(168,84,77,0.12);
  color: var(--red-deep);
}

.status-pill.paid,
.status-pill.producing {
  background: rgba(201,169,110,0.16);
  color: var(--gold-deep);
}

.status-pill.completed {
  background: rgba(92,118,100,0.12);
  color: var(--green);
}

.address-list {
  display: grid;
  gap: 10px;
}

.address-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.address-item.active {
  border-color: rgba(201,169,110,0.86);
  background: #FFF8EC;
}

.measurement-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.measurement-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(120px, 1fr);
  border-bottom: 1px solid rgba(26,26,26,0.06);
}

.measurement-row:last-child {
  border-bottom: 0;
}

.measurement-row > * {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-right: 1px solid rgba(26,26,26,0.06);
}

.measurement-row > *:last-child {
  border-right: 0;
}

.measurement-row input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.76);
}

.seg-btn {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(26, 20, 16, 0.40);
  backdrop-filter: blur(10px);
}

.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow: 0 28px 76px rgba(25,18,12,0.28);
}

.modal.large {
  width: min(860px, 100%);
}

.modal-head,
.modal-body,
.modal-foot {
  padding: 16px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  margin: 0;
  font-size: 20px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #403A34;
}

.icon-btn:hover {
  background: rgba(26,26,26,0.06);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 140;
  transform: translate(-50%, 16px);
  max-width: min(440px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(26,26,26,0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 16px 42px rgba(0,0,0,0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.36);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.bottom-nav {
  display: none;
}

.hide {
  display: none !important;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .workspace,
  .result-layout,
  .detail-layout,
  .order-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .quick-grid,
  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid,
  .material-grid,
  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .style-studio {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-card:nth-child(2) {
    border-right: 0;
  }

  .flow-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 18px 50px rgba(50,38,25,0.16);
    backdrop-filter: blur(16px);
  }

  .bottom-nav .nav-btn {
    min-height: 44px;
    padding: 0 8px;
  }

  .page {
    width: min(100% - 24px, 1180px);
    padding-bottom: 110px;
  }

  .section {
    width: min(100% - 24px, 1180px);
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding: 10px 12px;
  }

  .brand-sub,
  .account-pill .account-name {
    display: none;
  }

  .hero {
    min-height: clamp(520px, calc(100vh - 250px), 570px);
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    padding: 72px 0 78px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-metrics {
    gap: 8px;
  }

  .hero-metrics span {
    min-height: 36px;
    padding: 0 10px;
  }

  .quick-grid,
  .product-grid,
  .option-grid,
  .material-grid,
  .image-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 42px;
  }

  .section-overlap {
    margin-top: 0;
    padding-top: 22px;
  }

  .service-card {
    min-height: 118px;
    padding: 16px 18px;
  }

  .service-card .quick-mark {
    margin-bottom: 12px;
  }

  .service-card .quick-arrow {
    display: none;
  }

  .style-chip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .flow-card,
  .flow-card:nth-child(2) {
    border-right: 0;
  }

  .flow-card {
    min-height: 132px;
    border-bottom: 1px solid var(--line);
  }

  .flow-card:last-child {
    border-bottom: 0;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .chat-log {
    max-height: 45vh;
  }

  .detail-thumb {
    grid-template-columns: 72px 1fr;
  }

  .detail-thumb .btn {
    grid-column: 1 / -1;
  }

  .order-card-body {
    grid-template-columns: 72px 1fr;
  }

  .order-img {
    width: 72px;
    height: 72px;
  }
}
