:root {
  --ink: #12100d;
  --ink-soft: #2a241d;
  --muted: #70685e;
  --soft: #9a8260;
  --gold: #b88a4a;
  --gold-deep: #7b552a;
  --gold-pale: #f2dfbf;
  --paper: #fbf7ef;
  --paper-2: #f4ecdf;
  --white: #ffffff;
  --line: #e4d8c7;
  --line-dark: rgba(255, 255, 255, 0.12);
  --black: #0d0d0e;
  --black-2: #171717;
  --danger: #b84a42;
  --success: #2e7856;
  --radius: 8px;
  --shadow: 0 28px 70px rgba(21, 17, 12, 0.16);
  --shadow-soft: 0 14px 34px rgba(21, 17, 12, 0.09);
  --admin-width: 260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(13, 13, 14, 0.04), rgba(251, 247, 239, 0) 340px),
    radial-gradient(circle at 86% -12%, rgba(184, 138, 74, 0.16), transparent 30%),
    linear-gradient(180deg, #fffaf2 0%, var(--paper) 44%, #f8f1e6 100%);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body:has(#adminView:not([style*="display:none"])) {
  background: #f5efe5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(228, 216, 199, 0.72);
  background: rgba(13, 13, 14, 0.92);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.header-inner,
.main,
.footer-inner {
  width: min(1220px, calc(100% - 56px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: inherit;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.logo-box {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(242, 223, 191, 0.48);
  color: var(--black);
  background: linear-gradient(135deg, #fff5dd, #c59a5b 62%, #8d632f);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  font-size: 15px;
  font-weight: 900;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link.active,
.nav-link:hover {
  color: #ffe7bd;
  background: rgba(255, 255, 255, 0.08);
}

.main {
  position: relative;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(410px, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: 58px 0 42px;
}

.hero-copy {
  padding: 18px 0;
}

.hero h1 {
  max-width: 690px;
  margin: 0 0 20px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 64px;
  line-height: 1.02;
  font-weight: 900;
}

.hero p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-copy::after {
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 24px;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  max-width: 650px;
  overflow: hidden;
  border: 1px solid rgba(228, 216, 199, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.hero-metrics span {
  min-height: 88px;
  padding: 18px;
  color: var(--muted);
  border-right: 1px solid rgba(228, 216, 199, 0.86);
}

.hero-metrics span:last-child {
  border-right: 0;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  line-height: 1;
}

.hero-media {
  position: relative;
  min-height: 548px;
  overflow: hidden;
  border: 1px solid rgba(228, 216, 199, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(13, 13, 14, 0.28), rgba(13, 13, 14, 0.02) 54%),
    url("assets/studio-hero-woman.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  transition: background-image 0.45s ease;
}

.hero-media::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 246, 230, 0.06), rgba(13, 13, 14, 0.2)),
    radial-gradient(circle at 8% 14%, rgba(255, 245, 221, 0.42), transparent 24%);
}

.hero-media::after {
  position: absolute;
  inset: auto 24px 24px 24px;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.48);
}

.hero-media-badge {
  position: absolute;
  left: 24px;
  bottom: 38px;
  z-index: 1;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff2d6;
  background: rgba(13, 13, 14, 0.66);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.carousel-dots {
  position: absolute;
  right: 24px;
  bottom: 35px;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.carousel-dots button.active {
  width: 26px;
  background: #fff2d6;
}

.section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 22px;
}

.section-bar.compact {
  margin-top: 0;
}

.section-bar h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 34px;
  line-height: 1.15;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn,
.btn,
.icon-btn,
.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.filter-btn:hover,
.btn:hover,
.tab-btn:hover {
  border-color: rgba(184, 138, 74, 0.58);
  transform: translateY(-1px);
}

.filter-btn.active,
.btn.primary,
.tab-btn.active {
  border-color: rgba(242, 223, 191, 0.38);
  color: #fff3dc;
  background: linear-gradient(135deg, #17120d, #2a1f15 55%, #8b632f);
  box-shadow: 0 16px 30px rgba(74, 47, 18, 0.22);
}

.btn.danger {
  border-color: rgba(184, 74, 66, 0.38);
  color: var(--danger);
  background: #fff8f6;
}

.btn:disabled,
.btn:disabled:hover {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 70px;
}

.model-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.model-card:hover {
  border-color: rgba(184, 138, 74, 0.5);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.model-card > a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.model-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-2);
}

.model-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 50%, rgba(13, 13, 14, 0.08));
}

.card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

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

.card-title strong {
  font-size: 20px;
}

.meta,
.tags,
.small {
  color: var(--muted);
  font-size: 13px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 15px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(228, 216, 199, 0.96);
  border-radius: 999px;
  color: var(--gold-deep);
  background: #fbf3e6;
  font-size: 12px;
  white-space: nowrap;
}

.card-body .btn {
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.94fr);
  gap: 36px;
  padding: 48px 0 76px;
}

.gallery-main {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.gallery-main-video {
  object-fit: contain;
  background: #111827;
}

.gallery-main-contain {
  object-fit: contain;
  background: #ffffff;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.media-thumb {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.media-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.media-thumb.active {
  border-color: var(--gold);
}

.media-thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
  font-size: 15px;
  line-height: 1;
}

.video-section {
  padding: 0 0 72px;
}

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

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: var(--shadow-soft);
}

.detail-case-videos {
  margin-top: 28px;
  padding-top: 4px;
  border-top: 1px solid rgba(228, 216, 199, 0.94);
}

.detail-case-videos > h3 {
  margin-bottom: 6px;
}

.detail-case-video-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.detail-case-video-list video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--black);
  box-shadow: var(--shadow-soft);
}

.detail-panel,
.admin-panel,
.modal-box {
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.detail-panel {
  position: sticky;
  top: 102px;
  align-self: start;
  padding: 30px;
}

.detail-panel h1 {
  margin: 0 0 13px;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 42px;
  line-height: 1.1;
}

.detail-panel h3 {
  margin: 26px 0 11px;
}

.detail-content-groups {
  display: grid;
  gap: 24px;
  margin: 28px 0;
  padding-top: 4px;
}

.detail-content-group + .detail-content-group {
  padding-top: 24px;
  border-top: 1px solid rgba(228, 216, 199, 0.94);
}

.detail-content-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-panel .detail-content-group-title {
  margin: 0;
}

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

.detail-content-group-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.stat {
  padding: 15px;
  border: 1px solid rgba(228, 216, 199, 0.92);
  border-radius: var(--radius);
  background: #fbf4e8;
  font-weight: 900;
}

.stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.packages {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.package-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: #fbf4e8;
  text-align: left;
}

.package-option.active {
  border-color: rgba(184, 138, 74, 0.76);
  background: linear-gradient(135deg, #fff8ea, #f5e1bd);
  box-shadow: 0 13px 28px rgba(184, 138, 74, 0.16);
}

.price {
  color: var(--gold-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 13, 14, 0.66);
  backdrop-filter: blur(10px);
}

.modal.show {
  display: flex;
}

.modal-box {
  width: min(420px, 100%);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-box h3 {
  margin: 0 0 8px;
  font-size: 25px;
}

.modal-box img {
  width: min(286px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.chat-modal {
  width: min(760px, 100%);
  max-height: min(86vh, 820px);
  display: grid;
  gap: 16px;
  overflow: auto;
  text-align: left;
}

.chat-header,
.chat-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.icon-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 24px;
  line-height: 1;
}

.customer-chat,
.conversation-chat {
  display: grid;
  min-height: 0;
  gap: 12px;
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  overflow-anchor: none;
  padding: 14px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: #fbf4e8;
}

.chat-bubble {
  display: grid;
  justify-items: start;
  gap: 7px;
  max-width: min(82%, 520px);
  padding: 12px;
  border: 1px solid rgba(228, 216, 199, 0.88);
  border-radius: var(--radius);
  background: #fff;
}

.chat-bubble.customer {
  justify-self: end;
  border-color: rgba(184, 138, 74, 0.34);
  background: #fff6e7;
}

.chat-bubble.service {
  justify-self: start;
  border-color: rgba(46, 120, 86, 0.26);
}

.chat-bubble p {
  margin: 0;
  line-height: 1.7;
}

.chat-bubble span {
  color: var(--muted);
  font-size: 12px;
}

.chat-image {
  display: block;
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.chat-video {
  display: block;
  width: min(280px, 100%);
  height: 260px;
  object-fit: contain;
  border-radius: var(--radius);
  background: #111;
}

.chat-file {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(184, 138, 74, 0.34);
  border-radius: var(--radius);
  background: #fffaf1;
  font-weight: 800;
}

.chat-action-card {
  display: grid;
  gap: 4px;
  width: min(320px, 100%);
  padding: 10px 12px;
  border: 1px solid rgba(46, 120, 86, 0.26);
  border-radius: 12px;
  background: linear-gradient(135deg, #f5fbf7, #fff);
}

.chat-action-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.chat-action-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.chat-bubble .chat-action-badge {
  justify-self: start;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #246a4d;
  background: rgba(46, 120, 86, 0.1);
  font-size: 11px;
  font-weight: 800;
}

.chat-compose {
  display: grid;
  gap: 10px;
}

.chat-compose-actions {
  margin-top: 0;
}

.chat-copy-action-button {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(46, 120, 86, 0.3);
  color: #246a4d;
  background: #f5fbf7;
  font-size: 12px;
  font-weight: 800;
}

.chat-compose input[type="file"] {
  padding: 10px;
  border: 1px dashed rgba(184, 138, 74, 0.36);
  border-radius: var(--radius);
  background: #fffaf1;
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attach-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(184, 138, 74, 0.3);
  border-radius: 999px;
  background: #fff6e7;
  font-size: 12px;
  font-weight: 800;
}

.attach-pill button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--danger);
}

.chat-file-input {
  display: none;
}

.chat-upload-help {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.attachment-list {
  display: grid;
  gap: 8px;
}

#adminChatAttachmentList {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.chat-upload-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(184, 138, 74, 0.26);
  border-radius: 9px;
  color: var(--gold-deep);
  background: #fff8ec;
  font-size: 10px;
}

.chat-upload-summary strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-upload-summary span {
  flex: 0 0 auto;
  color: var(--muted);
}

.chat-upload-summary-done {
  border-color: rgba(46, 120, 86, 0.3);
  color: #246a4d;
  background: #f2faf5;
}

.chat-upload-summary-failed {
  border-color: rgba(184, 70, 70, 0.35);
  color: var(--danger);
  background: #fff5f3;
}

.chat-upload-scroll {
  display: grid;
  max-height: 202px;
  gap: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.chat-upload-item {
  display: grid;
  gap: 4px;
  padding: 6px 9px;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: 9px;
  background: #fffaf1;
}

.chat-upload-item.upload-done {
  border-color: rgba(46, 120, 86, 0.3);
  background: #f5fbf7;
}

.chat-upload-item.upload-processing {
  border-color: rgba(53, 111, 210, 0.32);
  background: #f3f7ff;
}

.chat-upload-item.upload-processing .chat-upload-progress i {
  background: linear-gradient(90deg, #356fd2, #2e7856);
}

.chat-upload-item.upload-failed {
  border-color: rgba(184, 70, 70, 0.35);
  background: #fff5f3;
}

.chat-upload-head,
.chat-upload-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-upload-head > div {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 7px;
}

.chat-upload-head strong,
.chat-upload-head span,
.chat-upload-foot span {
  display: block;
}

.chat-upload-head strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-upload-head span,
.chat-upload-foot span {
  color: var(--muted);
  font-size: 10px;
}

.chat-upload-item.upload-failed .chat-upload-foot span {
  color: var(--danger);
}

.chat-upload-remove {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #8d765d;
  cursor: pointer;
}

.chat-upload-progress {
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: rgba(112, 91, 66, 0.14);
}

.chat-upload-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b8894c, #2e7856);
  transition: width 160ms ease;
}

.chat-upload-item.upload-failed .chat-upload-progress i {
  background: var(--danger);
}

.chat-upload-foot .btn {
  min-height: 24px;
  padding: 0 8px;
  font-size: 10px;
}

.service-order-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(184, 138, 74, 0.26);
  border-radius: var(--radius);
  background: #fff6e7;
  color: var(--muted);
  font-size: 13px;
}

.service-page {
  padding-bottom: 54px;
}

.service-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.service-order-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.service-order-item {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: #fbf4e8;
  text-align: left;
}

.service-order-item.active {
  border-color: rgba(184, 138, 74, 0.62);
  background: #fff6e7;
  box-shadow: var(--shadow-soft);
}

.service-order-item span {
  color: var(--muted);
  font-size: 12px;
}

.service-order-item em,
.conversation-group-head em {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 12px;
  font-style: normal;
  line-height: 22px;
  text-align: center;
}

.service-order-item em {
  position: absolute;
  top: 10px;
  right: 10px;
}

.service-chat-panel {
  display: grid;
  gap: 14px;
}

.service-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: var(--radius);
  background: #fffaf1;
}

.service-order-card h2 {
  margin: 4px 0 0;
}

.service-order-card dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.service-order-card div.full {
  grid-column: 1 / -1;
}

.service-order-card dt {
  color: var(--muted);
  font-size: 12px;
}

.service-order-card dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.service-chat-log {
  max-height: 460px;
}

.service-empty-panel {
  grid-column: 1 / -1;
}

.site-footer {
  border-top: 1px solid rgba(228, 216, 199, 0.9);
  color: rgba(255, 255, 255, 0.68);
  background: var(--black);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  padding: 27px 0;
  text-align: center;
}

.footer-inner a {
  color: #f2dfbf;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.admin-shell {
  display: grid;
  grid-template-columns: var(--admin-width) minmax(0, 1fr);
  min-height: calc(100vh - 80px);
}

.admin-side {
  position: sticky;
  top: 80px;
  align-self: start;
  height: calc(100vh - 80px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 230px),
    linear-gradient(180deg, #101011, #17130f);
  padding: 20px;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.admin-main {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 239, 229, 0.96)),
    #f5efe5;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 238, 221, 0.94)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.admin-hero h1 {
  margin: 0 0 8px;
  font-size: 29px;
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
}

.admin-panel {
  padding: 24px;
  margin-bottom: 20px;
}

.admin-panel h2,
.admin-panel h3 {
  margin: 0 0 16px;
}

.agency-secret{margin-top:16px;padding:16px;border:1px solid rgba(184,138,74,.4);border-radius:12px;background:#fff8e9}.agency-secret strong,.agency-secret code{display:block}.agency-secret code{margin-top:8px;font-size:18px;word-break:break-all}.agency-account-card{margin:14px 0;padding:18px;border:1px solid rgba(228,216,199,.94);border-radius:14px;background:#fff}.agency-account-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.agency-account-head h3,.agency-account-head p{margin:0}.agency-account-head p{margin-top:6px;color:var(--muted);font-size:12px}.agency-account-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:15px}.agency-account-grid label{display:grid;gap:7px}.agency-account-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.agency-account-actions input{width:160px}.agency-balance{color:#13835d;font-size:20px;font-weight:800}@media(max-width:900px){.agency-account-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.agency-account-grid{grid-template-columns:1fr}.agency-account-head{display:block}}
.agency-balance-summary{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));gap:8px}.agency-balance-summary span{padding:9px 12px;border-radius:10px;background:#f7f3eb;text-align:right}.agency-balance-summary small,.agency-balance-summary strong{display:block}.agency-balance-summary small{color:var(--muted);font-size:10px}.agency-balance-summary strong{margin-top:4px;color:#13835d;font-size:16px}.agency-model-commission-box{margin-top:18px;padding:15px;border:1px solid #e8decd;border-radius:12px;background:#fcfaf6}.agency-model-commission-title{display:flex;justify-content:space-between;gap:12px;margin-bottom:11px}.agency-model-commission-title small{color:var(--muted)}.agency-model-commission-row{display:grid;grid-template-columns:minmax(150px,1.2fr) 120px 150px minmax(150px,1fr) auto 160px auto;gap:8px;align-items:center;padding:11px 0;border-top:1px solid #ebe2d5}.agency-model-name strong,.agency-model-name small,.agency-model-name em{display:block}.agency-model-name small{margin-top:3px;color:var(--muted);font-size:10px}.agency-model-name em{margin-top:4px;color:#13835d;font-size:16px;font-style:normal;font-weight:800}.agency-model-commission-row input{min-width:0}.compact-empty{padding:18px!important}@media(max-width:1100px){.agency-model-commission-row{grid-template-columns:1fr 1fr}.agency-balance-summary{grid-template-columns:1fr}.agency-account-head{display:block}.agency-balance-summary{margin-top:12px}.agency-balance-summary span{text-align:left}}@media(max-width:620px){.agency-model-commission-row{grid-template-columns:1fr}.agency-model-commission-title{display:block}.agency-model-commission-title small{display:block;margin-top:5px}}

.admin-tabs {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 9px;
}

.admin-tabs .tab-btn {
  justify-content: flex-start;
  width: 100%;
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.admin-tabs .tab-btn.active {
  justify-content: flex-start;
}

.admin-tabs .tab-btn:hover {
  color: #fff2d6;
  background: rgba(255, 255, 255, 0.08);
}

.admin-tabs .tab-btn.active {
  border-color: rgba(242, 223, 191, 0.35);
  color: #fff2d6;
  background: linear-gradient(135deg, rgba(184, 138, 74, 0.34), rgba(255, 255, 255, 0.06));
  box-shadow: none;
}

.admin-tabs .side-link {
  text-decoration: none;
}

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

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

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

label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(228, 216, 199, 0.96);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  padding: 0 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

textarea {
  min-height: 108px;
  padding: 11px 12px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(184, 138, 74, 0.72);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 138, 74, 0.12);
}

input[type="file"] {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px;
  color: var(--muted);
  background: #fbf4e8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.professional-copy-share {
  border-color: rgba(184, 138, 74, 0.42);
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(255, 255, 255, 0.98));
}

.professional-copy-share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0 8px;
}

.professional-copy-share-row input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.message {
  min-height: 20px;
  font-size: 14px;
}

.upload-progress-status {
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid rgba(184, 138, 74, 0.34);
  border-radius: var(--radius);
  color: var(--gold-deep);
  background: #fff7e8;
  font-size: 13px;
  font-weight: 700;
}

.upload-progress-status[hidden] {
  display: none;
}

.inline-upload-status {
  margin: 16px 0 0;
}

.model-mode-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(64, 126, 88, 0.25);
  border-radius: var(--radius);
  color: #366447;
  background: #f3faf5;
  font-size: 13px;
}

.model-mode-status.editing {
  border-color: rgba(184, 138, 74, 0.38);
  color: var(--gold-deep);
  background: #fff8e9;
}

.model-mode-status.dirty {
  box-shadow: inset 3px 0 0 rgba(184, 138, 74, 0.7);
}

.dirty-badge {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: #7d4d13;
  background: #f7dfb7;
  font-size: 11px;
  font-weight: 800;
}

.dirty-badge[hidden] {
  display: none;
}

.model-package-settings {
  padding: 16px;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 249, 237, 0.88), rgba(255, 255, 255, 0.92));
}

.model-package-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.model-package-preview-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(228, 216, 199, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.model-package-preview-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-package-preview-item span {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
}

.model-custom-package-editor {
  display: grid;
  gap: 10px;
}

.model-custom-package-editor[hidden] {
  display: none;
}

.model-custom-package-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr);
  gap: 14px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(228, 216, 199, 0.92);
  border-radius: var(--radius);
  background: #fff;
}

.model-custom-package-row > div {
  display: grid;
  gap: 5px;
}

.model-custom-package-row span {
  color: var(--muted);
  font-size: 12px;
}

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

.content-group-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(228, 216, 199, 0.96);
  border-radius: var(--radius);
  background: #fbf7ef;
}

.content-group-check input {
  width: auto;
  margin-top: 3px;
}

.content-group-check span,
.content-group-check strong,
.content-group-check small {
  display: block;
}

.content-group-check small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.content-group-check.inactive {
  opacity: 0.68;
}

.compact-empty {
  grid-column: 1 / -1;
  padding: 14px;
  text-align: left;
}

.content-group-active-field {
  align-content: center;
}

.toggle-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toggle-check input {
  width: auto;
}

.site-feature-box {
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(184, 138, 74, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fffaf1, #fbf4e8);
}

.home-media-preview img,
.home-media-preview video {
  width: min(280px, 100%);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.readonly-locked {
  cursor: not-allowed;
  color: var(--muted);
  background: #f1eee8;
  opacity: 0.82;
}

.promotion-grade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.promotion-grade-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(184, 138, 74, 0.3);
  border-radius: var(--radius);
  background: #fffaf1;
}

.promotion-grade-card legend {
  padding: 0 7px;
  color: var(--gold-deep);
  font-weight: 900;
}

.promotion-grade-card .field + .field {
  margin-top: 12px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table-scroll .table {
  min-width: 860px;
}

.status-pill.availability-available {
  border-color: rgba(46, 120, 86, 0.28);
  color: #2e7856;
  background: #eff9f3;
}

.status-pill.availability-confirm {
  border-color: rgba(184, 138, 74, 0.34);
  color: var(--gold-deep);
  background: #fff6e7;
}

.status-pill.availability-unavailable {
  border-color: rgba(184, 74, 66, 0.3);
  color: var(--danger);
  background: #fff0ed;
}

.status-pill.package-mode-default {
  border-color: rgba(46, 120, 86, 0.28);
  color: #2e7856;
  background: #eff9f3;
}

.status-pill.package-mode-legacy {
  border-color: rgba(112, 104, 94, 0.28);
  color: var(--muted);
  background: #f5f2ed;
}

.status-pill.package-mode-custom {
  border-color: rgba(184, 138, 74, 0.34);
  color: var(--gold-deep);
  background: #fff6e7;
}

.copy-status-line {
  color: var(--gold-deep);
  font-weight: 800;
}

.amount-negative {
  color: var(--danger);
  font-weight: 900;
}

.content-group-image-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.content-group-image-summary img {
  width: 42px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.content-group-image-summary span {
  color: var(--muted);
  font-size: 12px;
}

.status-pill.inactive {
  color: var(--muted);
  background: #f1eee8;
}

.upload-hint {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.availability-required-mark,
.availability-rule-hint.is-direct {
  color: var(--danger);
  font-weight: 800;
}

#modelEarliestShootField.direct-booking input {
  border-color: rgba(184, 74, 66, 0.72);
  background: rgba(184, 74, 66, 0.035);
}

.preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.preview-row img,
.preview-row video,
.preview-row > div {
  width: 96px;
  overflow: hidden;
  border: 1px solid rgba(228, 216, 199, 0.95);
  border-radius: var(--radius);
  background: #fbf4e8;
  box-shadow: var(--shadow-soft);
}

.preview-row img {
  height: 116px;
  object-fit: cover;
}

.preview-row video {
  height: 116px;
  object-fit: cover;
}

.square-preview img {
  height: 96px;
}

.preview-row > div img {
  width: 100%;
  height: 100px;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.asset-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-bottom: 10px;
  text-align: center;
}

.asset-card video {
  width: 100%;
  height: 100px;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  background: var(--black);
}

.asset-card .btn {
  min-height: 32px;
  margin: 0 8px;
  padding: 0 10px;
  font-size: 12px;
}

.asset-pager {
  justify-content: center;
}

.large-preview img {
  width: 154px;
  height: 104px;
}

.scene-preview img {
  width: 180px;
  height: 116px;
}

.category-cover-cell {
  min-width: 240px;
}

.category-cover-thumb {
  display: grid;
  width: 180px;
  height: 116px;
  margin-bottom: 8px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(228, 216, 199, 0.96);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fbf4e8;
  font-size: 12px;
}

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

.category-cover-cell input + input {
  margin-top: 8px;
}

.toast-stack {
  position: fixed;
  right: 22px;
  top: 96px;
  z-index: 70;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 14px;
  font-weight: 800;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: rgba(46, 120, 86, 0.32);
}

.toast.error {
  border-color: rgba(184, 74, 66, 0.36);
  color: var(--danger);
}

.crop-box {
  width: min(780px, 100%);
  text-align: left;
}

.crop-stage {
  position: relative;
  width: 100%;
  max-height: 56vh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
}

.crop-stage img {
  position: absolute;
  max-width: none;
  object-fit: cover;
  user-select: none;
}

.crop-controls {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.crop-controls label {
  display: grid;
  gap: 6px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.table th,
.table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(228, 216, 199, 0.78);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.table th {
  color: var(--muted);
  background: #fbf4e8;
  font-size: 12px;
  font-weight: 900;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table .btn {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.empty {
  padding: 28px;
  border: 1px dashed rgba(184, 138, 74, 0.42);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(13, 13, 14, 0.76), rgba(13, 13, 14, 0.3)),
    url("assets/studio-hero-woman.jpg");
  background-position: center;
  background-size: cover;
}

.login-box {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid rgba(242, 223, 191, 0.32);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(13, 13, 14, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-box label {
  color: rgba(255, 255, 255, 0.84);
}

.login-box input {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.login-box .btn:not(.primary) {
  color: #fff2d6;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.anchor-main {
  padding: 32px 0 70px;
}

.anchor-hero {
  margin-top: 22px;
}

.anchor-form {
  max-width: 980px;
  margin: 0 auto 30px;
}

.task-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.task-metrics span,
.message-card,
.task-card {
  display: block;
  padding: 14px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: #fbf4e8;
}

.task-metrics strong {
  display: block;
  color: var(--gold-deep);
  font-size: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(184, 138, 74, 0.34);
  border-radius: 999px;
  color: var(--gold-deep);
  background: #fff6e7;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.warning {
  border-color: rgba(184, 74, 66, 0.32);
  color: var(--danger);
  background: #fff0ed;
}

.conversation-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
}

.conversation-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
}

.conversation-group {
  display: grid;
  gap: 8px;
}

.conversation-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  padding: 12px;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: var(--radius);
  background: #fffaf1;
}

.conversation-group-head span {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
}

.conversation-group-head em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
}

.conversation-group-orders {
  display: grid;
  gap: 8px;
}

.conversation-item {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: #fbf4e8;
  text-align: left;
}

.admin-order-card {
  margin-bottom: 2px;
}

.conversation-item.active {
  border-color: rgba(184, 138, 74, 0.58);
  background: #fff6e7;
}

.conversation-item span {
  color: var(--muted);
  font-size: 12px;
}

.conversation-item em {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 12px;
  font-style: normal;
  line-height: 22px;
  text-align: center;
}

.admin-side-unread {
  min-width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 24px;
  text-align: center;
}

.customer-service-workbench {
  min-width: 0;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 242, 229, 0.96)),
    #fff;
}

body.customer-service-mode .admin-main {
  padding: 16px;
}

body.customer-service-mode .admin-hero {
  display: none;
}

body.customer-service-mode #globalMessage:empty {
  display: none;
}

body.customer-service-mode #globalMessage:not(:empty) {
  margin: 0 0 8px;
}

body.customer-service-mode #tab-conversations .customer-service-workbench {
  margin-bottom: 0;
  padding: 14px;
}

body.customer-service-mode .customer-service-heading {
  align-items: center;
  margin-bottom: 8px;
}

body.customer-service-mode .customer-service-heading .eyebrow,
body.customer-service-mode .customer-service-heading .upload-hint {
  display: none;
}

body.customer-service-mode .customer-service-heading h2 {
  margin: 0;
  font-size: 22px;
}

body.customer-service-mode .conversation-toolbar {
  margin-bottom: 8px;
  padding: 8px;
}

body.customer-service-mode .customer-list-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 248px);
}

body.customer-service-mode .conversation-chat-box,
body.customer-service-mode .conversation-order-detail {
  height: min(760px, calc(100vh - 236px));
  min-height: 500px;
}

body.customer-service-mode .customer-workspace {
  gap: 10px;
}

body.customer-service-mode .customer-summary-card {
  gap: 8px 12px;
  padding: 12px;
}

body.customer-service-mode .customer-summary-main .eyebrow {
  display: none;
}

body.customer-service-mode .customer-summary-main h2 {
  margin: 0 0 3px;
  font-size: 22px;
}

body.customer-service-mode .customer-summary-main p {
  font-size: 12px;
}

body.customer-service-mode .customer-summary-facts {
  gap: 6px;
}

body.customer-service-mode .customer-summary-facts > div {
  padding: 8px 10px;
}

body.customer-service-mode .customer-order-switches {
  gap: 6px;
}

body.customer-service-mode .customer-order-switch {
  padding: 8px 10px;
}

body.customer-service-mode .customer-progress {
  padding-top: 0;
}

body.customer-service-mode .customer-progress-step {
  gap: 3px;
}

body.customer-service-mode .customer-progress-step > span {
  width: 24px;
  height: 24px;
}

.customer-service-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.customer-service-heading h2 {
  margin: 4px 0 8px;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 30px;
}

.customer-service-heading .upload-hint {
  margin: 0;
}

.customer-service-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.customer-service-metrics span {
  padding: 8px 11px;
  border: 1px solid rgba(184, 138, 74, 0.25);
  border-radius: 999px;
  color: var(--muted);
  background: #fffaf1;
  font-size: 12px;
  white-space: nowrap;
}

.customer-service-metrics strong {
  color: var(--gold-deep);
  font-size: 14px;
}

.conversation-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(140px, 0.8fr)) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid rgba(228, 216, 199, 0.92);
  border-radius: var(--radius);
  background: rgba(251, 247, 239, 0.86);
}

.conversation-toolbar label,
.conversation-search {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.conversation-toolbar label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.conversation-toolbar input,
.conversation-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
}

.conversation-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.conversation-toolbar-actions .btn {
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

.conversation-notification-button {
  border-color: rgba(46, 120, 86, 0.27);
  color: #246a4d;
  background: #f5fbf7;
}

.conversation-backfill-button {
  border-color: rgba(70, 104, 224, 0.3);
  color: #3154ba;
  background: #f4f7ff;
}

.conversation-filter-empty {
  min-height: 240px;
  padding-top: 80px;
}

.conversation-layout.customer-service-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.customer-list-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 788px;
  padding: 8px;
  border: 1px solid rgba(228, 216, 199, 0.92);
  border-radius: var(--radius);
  background: #f4ecdf;
}

.customer-row {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(228, 216, 199, 0.92);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.customer-row:hover {
  border-color: rgba(184, 138, 74, 0.55);
  transform: translateY(-1px);
}

.customer-row.active {
  border-color: rgba(184, 138, 74, 0.62);
  color: #fff5e4;
  background: linear-gradient(135deg, #17120d, #2a1f15 60%, #765226);
  box-shadow: 0 12px 24px rgba(33, 23, 13, 0.16);
}

.customer-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.customer-row-head strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-row-head em {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

.customer-row-contact,
.customer-row-meta,
.customer-row-last {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-row-last-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.customer-row-last-line .customer-row-last {
  min-width: 0;
  flex: 1;
}

.customer-row-last-line time {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 10px;
}

.customer-row.active .customer-row-contact,
.customer-row.active .customer-row-meta,
.customer-row.active .customer-row-last,
.customer-row.active .customer-row-last-line time {
  color: rgba(255, 245, 228, 0.68);
}

.customer-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.customer-row-badges i,
.payment-tone {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--gold-deep);
  background: #fff3df;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.customer-row.active .customer-row-badges i {
  color: #f8e4c0;
  background: rgba(255, 255, 255, 0.1);
}

.chat-draft-badge.chat-draft-uploading {
  color: #8b5a14 !important;
  background: #fff0c9 !important;
}

.chat-draft-badge.chat-draft-done {
  color: #246a4d !important;
  background: #e5f5eb !important;
}

.chat-draft-badge.chat-draft-failed {
  color: #a13a32 !important;
  background: #ffe7e3 !important;
}

.customer-order-switch > .chat-draft-badge {
  justify-self: start;
  width: auto;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.payment-pending {
  border-color: rgba(184, 138, 74, 0.34) !important;
  color: var(--gold-deep) !important;
  background: #fff3df !important;
}

.payment-paid {
  border-color: rgba(46, 120, 86, 0.28) !important;
  color: #246a4d !important;
  background: #eff9f3 !important;
}

.payment-exception {
  border-color: rgba(184, 74, 66, 0.3) !important;
  color: var(--danger) !important;
  background: #fff0ed !important;
}

.conversation-payment-exception {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(184, 74, 66, 0.3);
  border-radius: var(--radius);
  line-height: 1.5;
}

.conversation-payment-exception strong {
  font-size: 13px;
}

.conversation-payment-exception span,
.chat-link-blocked {
  font-size: 12px;
}

.chat-link-blocked {
  display: inline-block;
  margin-top: 5px;
  color: var(--danger);
}

.customer-workspace {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.customer-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  padding: 18px;
  border: 1px solid rgba(184, 138, 74, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(184, 138, 74, 0.14), transparent 36%),
    #fffaf1;
}

.customer-summary-main h2 {
  margin: 3px 0 5px;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 27px;
}

.customer-summary-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.customer-summary-statuses {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.customer-summary-actions {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.customer-summary-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.conversation-focus-toggle,
.conversation-delivery-button {
  min-height: 36px;
  white-space: nowrap;
}

.conversation-focus-toggle[aria-pressed="true"] {
  border-color: rgba(184, 138, 74, 0.62);
  color: var(--gold-deep);
  background: #fff3df;
}

.conversation-delivery-button.is-delivered {
  border-color: rgba(58, 137, 102, 0.34);
  color: #236c4f;
  background: #eaf8f1;
  opacity: 1;
}

.customer-summary-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.customer-summary-facts > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.customer-summary-facts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.customer-summary-facts strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-order-switches {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.customer-order-switch {
  display: grid;
  flex: 0 0 min(230px, 74vw);
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.customer-order-switch.active {
  border-color: rgba(184, 138, 74, 0.62);
  background: #fff3df;
}

.customer-order-switch strong,
.customer-order-switch span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-order-switch small {
  overflow: hidden;
  color: #8c7352;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-order-switch span {
  color: var(--muted);
  font-size: 11px;
}

.customer-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 3px;
}

.customer-progress-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.customer-progress-step::before {
  position: absolute;
  top: 12px;
  right: 50%;
  left: -50%;
  height: 2px;
  background: var(--line);
  content: "";
}

.customer-progress-step:first-child::before {
  display: none;
}

.customer-progress-step > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-weight: 900;
}

.customer-progress-step.done,
.customer-progress-step.current {
  color: var(--gold-deep);
}

.customer-progress-step.done::before {
  background: var(--gold);
}

.customer-progress-step.done > span {
  border-color: var(--gold);
  color: #fff;
  background: var(--gold);
}

.customer-progress-step.current > span {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 138, 74, 0.14);
}

.conversation-body-grid {
  display: grid;
  grid-template-columns: minmax(380px, 1.12fr) minmax(300px, 0.88fr);
  align-items: start;
  gap: 14px;
  min-width: 0;
}

.conversation-chat-box,
.conversation-order-detail {
  height: 660px;
  min-width: 0;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(21, 17, 12, 0.06);
}

.conversation-chat-box {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
}

.conversation-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.conversation-box-head h3 {
  margin: 2px 0 4px;
  font-size: 18px;
}

.conversation-box-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.conversation-chat-box .chat-log {
  min-height: 0;
  max-height: none;
}

.conversation-chat-box .chat-compose {
  gap: 7px;
  padding-top: 2px;
}

.conversation-chat-box .chat-compose textarea {
  min-height: 62px;
  resize: vertical;
}

.conversation-chat-box .chat-compose input[type="file"] {
  min-height: 38px;
  padding: 7px;
}

.conversation-chat-box .chat-compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.conversation-chat-box .chat-compose-actions .btn {
  min-height: 36px;
  padding: 0 11px;
  font-size: 12px;
}

.chat-payment-action-button {
  border-color: rgba(184, 138, 74, 0.36);
  color: var(--gold-deep);
  background: #fff6e7;
  font-weight: 800;
}

.chat-action-card-payment {
  border-color: rgba(184, 138, 74, 0.38);
  background: linear-gradient(135deg, #fff4df, #fffdf8);
}

.chat-action-amount {
  color: var(--gold-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 900;
}

.conversation-order-detail {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 14px;
  background: #fbf7ef;
}

.conversation-detail-section {
  padding: 14px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: #fff;
}

.conversation-detail-section > h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.conversation-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.conversation-detail-heading > div {
  display: grid;
  gap: 3px;
}

.conversation-detail-heading span {
  color: var(--muted);
  font-size: 12px;
}

.conversation-detail-heading strong {
  color: var(--gold-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.conversation-payment-form {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(184, 138, 74, 0.24);
  border-radius: var(--radius);
  background: #fff8eb;
}

.conversation-payment-form label {
  display: grid;
  gap: 7px;
}

.conversation-payment-form label span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.conversation-payment-form input {
  width: 100%;
}

.conversation-payment-form .btn {
  width: 100%;
}

.conversation-payment-form p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.conversation-payment-locked {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(46, 120, 86, 0.24);
  border-radius: var(--radius);
  color: #246a4d;
  background: #f3faf6;
}

.conversation-payment-locked span {
  font-size: 12px;
}

.conversation-reconcile-button {
  width: 100%;
  margin-top: 9px;
  min-height: 38px;
  color: var(--ink-soft);
  background: #fff;
}

.conversation-detail-list,
.conversation-task-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.conversation-detail-list > div,
.conversation-task-card dl > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.conversation-detail-list .full,
.conversation-task-card dl .full {
  grid-column: 1 / -1;
}

.conversation-detail-list dt,
.conversation-task-card dt {
  color: var(--muted);
  font-size: 11px;
}

.conversation-detail-list dd,
.conversation-task-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.55;
}

.conversation-task-card {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(228, 216, 199, 0.9);
  border-radius: var(--radius);
  background: #fffaf1;
}

.conversation-task-card + .conversation-task-card {
  margin-top: 8px;
}

.conversation-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conversation-detail-empty {
  padding: 16px;
  border: 1px dashed rgba(184, 138, 74, 0.32);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fffaf1;
  font-size: 12px;
  text-align: center;
}

.task-table .field {
  margin-bottom: 6px;
}

.model-desk {
  padding: 28px 0 70px;
}

.model-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: stretch;
  gap: 18px;
  overflow: hidden;
  border-color: rgba(184, 138, 74, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(251, 244, 232, 0.94)),
    url("assets/studio-hero-woman.jpg");
  background-position: center;
  background-size: cover;
}

.model-hero-card {
  display: grid;
  align-content: center;
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: var(--radius);
  background: rgba(13, 13, 14, 0.86);
  color: var(--white);
}

.model-hero-card span,
.model-hero-card p {
  color: rgba(255, 255, 255, 0.68);
}

.model-hero-card strong {
  display: block;
  margin: 8px 0;
  font-size: 26px;
}

.model-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.model-overview div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.model-overview span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.model-overview strong {
  color: var(--gold-deep);
  font-size: 24px;
}

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

.model-main-column,
.model-side-column {
  display: grid;
  gap: 16px;
}

.model-status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid rgba(228, 216, 199, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.76);
}

.model-status-panel h2,
.model-status-panel h3 {
  margin-bottom: 6px;
}

.model-profile-card {
  max-width: none;
  margin: 0;
}

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

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-title-row h2 {
  margin-bottom: 6px;
}

.upload-box {
  padding: 14px;
  border: 1px dashed rgba(184, 138, 74, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.74);
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 20px -18px -18px;
  padding: 14px 18px;
  border-top: 1px solid rgba(228, 216, 199, 0.84);
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(14px);
}

.tutorial-panel {
  position: relative;
}

.my-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(251, 244, 232, 0.96)),
    url("assets/studio-card-woman.jpg");
  background-position: center;
  background-size: cover;
}

.my-identity-card {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(13, 13, 14, 0.86);
}

.my-identity-card span,
.my-identity-card p {
  color: rgba(255, 255, 255, 0.68);
}

.my-identity-card strong {
  display: block;
  margin: 8px 0;
  font-size: 26px;
}

.tutorial-grid {
  display: grid;
  gap: 12px;
}

.tutorial-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.tutorial-card:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 138, 74, 0.46);
  box-shadow: var(--shadow-soft);
}

.tutorial-thumb {
  display: grid;
  place-items: center;
  min-height: 76px;
  overflow: hidden;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  isolation: isolate;
  position: relative;
}

.tutorial-thumb::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(13, 13, 14, 0.48);
}

.tutorial-time {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 13, 14, 0.62);
}

.video-modal-card {
  width: min(760px, 100%);
  padding: 18px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.video-modal-card video {
  width: 100%;
  max-height: 62vh;
  margin: 12px 0;
  border-radius: var(--radius);
  background: #111;
}

.video-close {
  float: right;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.model-bottom-switch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: none;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(228, 216, 199, 0.92);
  border-radius: 999px;
  background: rgba(13, 13, 14, 0.9);
  box-shadow: var(--shadow-soft);
}

.model-bottom-switch button {
  min-width: 86px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}

.model-bottom-switch button.active {
  color: var(--black);
  background: #f2dfbf;
}

.task-card {
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
}

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

.task-card h3 {
  margin: 16px 0 8px;
  font-size: 16px;
}

.task-card p {
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 1320px) {
  .conversation-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conversation-search,
  .conversation-toolbar-actions {
    grid-column: 1 / -1;
  }

  .conversation-body-grid {
    grid-template-columns: minmax(280px, 1.15fr) minmax(210px, 0.85fr);
    gap: 10px;
  }

  .conversation-order-detail {
    height: auto;
    max-height: 660px;
  }

}

@media (max-width: 1080px) {
  .promotion-grade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-media {
    min-height: 520px;
  }

  .detail-panel {
    position: static;
  }

  .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-main {
    padding: 22px;
  }

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

  .conversation-layout.customer-service-layout {
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 10px;
  }

  .customer-list-panel {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

}

@media (min-width: 761px) and (max-width: 1320px) {
  body.customer-service-mode .conversation-toolbar {
    grid-template-columns: minmax(170px, 1.4fr) repeat(3, minmax(100px, 0.75fr));
    align-items: center;
    gap: 8px;
  }

  body.customer-service-mode .conversation-toolbar label {
    position: relative;
    gap: 0;
  }

  body.customer-service-mode .conversation-toolbar label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body.customer-service-mode .conversation-search {
    grid-column: auto;
  }

  body.customer-service-mode .conversation-toolbar input,
  body.customer-service-mode .conversation-toolbar select,
  body.customer-service-mode .conversation-toolbar-actions .btn {
    min-height: 36px;
  }

  body.customer-service-mode .conversation-toolbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  body.customer-service-mode .conversation-toolbar-actions .btn {
    padding: 0 10px;
    font-size: 12px;
  }

  body.customer-service-mode .customer-service-metrics {
    gap: 5px;
  }

  body.customer-service-mode .customer-service-metrics span {
    padding: 6px 8px;
    font-size: 11px;
  }

  body.customer-service-mode .conversation-chat-box,
  body.customer-service-mode .conversation-order-detail {
    gap: 8px;
    padding: 10px;
  }

  body.customer-service-mode .conversation-detail-section {
    padding: 10px;
  }

  body.customer-service-mode .conversation-box-head {
    gap: 8px;
    padding-bottom: 8px;
  }

  body.customer-service-mode .conversation-box-head h3 {
    margin-bottom: 2px;
    font-size: 16px;
  }

  body.customer-service-mode .conversation-box-head p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.customer-service-mode .conversation-detail-heading strong {
    font-size: 22px;
  }
}

@media (max-width: 1000px) {
  body.customer-service-mode .conversation-body-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.customer-service-mode .conversation-order-detail {
    height: auto;
    min-height: 0;
    max-height: 660px;
  }
}

@media (max-width: 760px) {
  .promotion-grade-grid {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .main,
  .footer-inner {
    width: min(100% - 28px, 1220px);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand {
    gap: 10px;
    font-size: 18px;
  }

  .logo-box {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }

  nav {
    gap: 6px;
  }

  .nav-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 0 30px;
  }

  .hero-copy {
    order: 2;
    width: 100%;
    padding: 0;
  }

  .hero-media {
    order: 1;
    width: 100%;
    min-height: 460px;
    background-position: center 18%;
  }

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

  .hero p {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 22px;
  }

  .admin-shell {
    grid-template-columns: 168px minmax(560px, 1fr);
    overflow-x: auto;
  }

  .admin-side {
    top: 70px;
    height: calc(100vh - 70px);
    padding: 12px;
  }

  .admin-tabs {
    position: sticky;
    top: 84px;
    display: grid;
    max-width: none;
    overflow: visible;
    padding-bottom: 0;
  }

  .admin-tabs .tab-btn {
    flex: none;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .admin-main {
    min-width: 560px;
    padding: 16px;
  }

  .model-desk {
    padding: 18px 0 54px;
  }

  .model-hero,
  .model-layout {
    grid-template-columns: 1fr;
  }

  .model-main-column,
  .model-side-column {
    display: none;
  }

  .model-main-column.active,
  .model-side-column.active {
    display: grid;
  }

  .model-bottom-switch {
    display: flex;
  }

  .model-overview,
  .compact-form-grid {
    grid-template-columns: 1fr;
  }

  .model-status-panel {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-metrics span {
    min-height: 74px;
    padding: 12px 10px;
    font-size: 12px;
  }

  .hero-metrics strong {
    font-size: 22px;
  }

  .section-bar {
    display: grid;
    margin: 16px 0 18px;
  }

  .section-bar h2 {
    font-size: 28px;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-btn {
    flex: 0 0 auto;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 42px;
  }

  .model-card > a {
    display: grid;
    grid-template-columns: 42% 1fr;
  }

  .model-card img {
    height: 100%;
    min-height: 210px;
    aspect-ratio: auto;
  }

  .card-body {
    min-width: 0;
  }

  .detail-layout {
    gap: 18px;
    padding: 24px 0 48px;
  }

  .gallery-main {
    aspect-ratio: 4 / 5;
  }

  .thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .detail-panel {
    padding: 22px;
  }

  .detail-panel h1 {
    font-size: 34px;
  }

  .detail-content-group-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .package-option {
    grid-template-columns: 1fr;
  }

  .price {
    font-size: 22px;
  }

  .chat-modal {
    max-height: 92vh;
    padding: 18px;
  }

  .chat-bubble {
    max-width: 94%;
  }

  .admin-main {
    padding: 16px;
    min-width: 0;
  }

  .admin-hero {
    display: grid;
    padding: 20px;
  }

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

  .model-package-preview-grid,
  .model-custom-package-row {
    grid-template-columns: 1fr;
  }

  .professional-copy-share-row {
    grid-template-columns: 1fr;
  }

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

  .conversation-layout {
    grid-template-columns: 1fr;
  }

  .conversation-layout.customer-service-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .conversation-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    overflow-x: auto;
    overflow-y: hidden;
  }

  .customer-service-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-service-metrics {
    justify-content: flex-start;
  }

  .conversation-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .conversation-search,
  .conversation-toolbar-actions {
    grid-column: auto;
  }

  .conversation-toolbar-actions {
    flex-wrap: wrap;
  }

  .customer-list-panel {
    grid-auto-columns: minmax(220px, 1fr);
    max-height: none;
    padding-bottom: 8px;
  }

  .customer-summary-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-summary-actions,
  .customer-summary-statuses,
  .customer-summary-facts,
  .customer-order-switches,
  .customer-progress {
    grid-column: 1;
  }

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

  .conversation-chat-box {
    height: 620px;
  }

  .conversation-detail-list,
  .conversation-task-card dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .conversation-detail-list .full,
  .conversation-task-card dl .full {
    grid-column: 1;
  }

  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-order-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .service-order-card {
    grid-template-columns: 1fr;
  }

  .service-order-card dl {
    grid-template-columns: 1fr;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .login-page {
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .site-header nav .btn {
    display: none;
  }

  .hero-media {
    min-height: 410px;
  }

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

  .hero-metrics span {
    font-size: 11px;
  }

  .model-card > a {
    grid-template-columns: 40% 1fr;
  }

  .model-card img {
    min-height: 200px;
  }

  .tag {
    min-height: 24px;
    padding: 0 8px;
  }
}

/* 客服专注模式：保留客户与订单切换，隐藏右侧详情，把主要空间交给聊天。 */
body.customer-service-mode.conversation-focus-mode .customer-summary-facts,
body.customer-service-mode.conversation-focus-mode .conversation-order-detail {
  display: none;
}

body.customer-service-mode.conversation-focus-mode .conversation-body-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.customer-service-mode.conversation-focus-mode .conversation-chat-box {
  height: min(840px, calc(100vh - 206px));
  min-height: 620px;
}

@media (min-width: 761px) {
  body.customer-service-mode.conversation-focus-mode .conversation-layout.customer-service-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  body.customer-service-mode.conversation-focus-mode .customer-summary-card {
    padding: 10px 12px;
  }

  body.customer-service-mode.conversation-focus-mode .customer-list-panel {
    max-height: calc(100vh - 205px);
  }
}

@media (max-width: 760px) {
  .customer-summary-actions {
    justify-items: stretch;
  }

  .customer-summary-buttons,
  .customer-summary-statuses {
    justify-content: flex-start;
  }

  body.customer-service-mode.conversation-focus-mode .conversation-chat-box {
    height: 680px;
    min-height: 520px;
  }
}
