/* 三端使用独立语义颜色与布局，保留共享表单和订单交互。 */
body[data-role="user"] {
  --bg: #faf9f6;
  --ink: #24322f;
  --muted: #78817e;
  --orange: #ed754d;
  --orange-dark: #c45432;
  background: var(--bg);
}
body[data-role="user"] .brand small {
  letter-spacing: 2px;
  font-size: 10px;
  color: #89938e;
}
body[data-role="user"] .header-inner {
  height: 76px;
}
body[data-role="user"] .desktop-nav a {
  font-size: 15px;
}
body[data-role="user"] .container {
  max-width: 1264px;
}
body[data-role="user"] .consumer-hero {
  padding: 38px 40px;
  margin-top: 28px;
  margin-bottom: 32px;
  background: linear-gradient(110deg, #fff1e7, #fff8f0 50%, #f3f3e9);
  border: 1px solid #f3e8dc;
  border-radius: 24px;
  gap: 36px;
  grid-template-columns: 1fr 1.04fr;
}
body[data-role="user"] .hero h1 {
  font-size: 43px;
  line-height: 1.5;
  letter-spacing: -1.5px;
  white-space: normal;
}
body[data-role="user"] .hero-label {
  font-size: 13px;
  letter-spacing: 1px;
  color: #9b694c;
  margin-bottom: 16px;
}
body[data-role="user"] .hero-label:before {
  display: none;
}
body[data-role="user"] .hero-description {
  font-size: 14px;
  line-height: 1.9;
  margin-top: 16px;
  color: #7e7d71;
}
body[data-role="user"] .hero-photo {
  height: 365px;
  object-position: center 25%;
  filter: none;
  border-radius: 18px 60px 18px 18px;
}
body[data-role="user"] .hero-visual {
  padding: 0 0 20px 0;
}
body[data-role="user"] .floating-card {
  left: -10px;
  bottom: 0;
  transform: none;
  min-width: 270px;
  padding: 15px 18px;
}
body[data-role="user"] .floating-card strong {
  font-size: 13px;
}
body[data-role="user"] .floating-card p {
  font-size: 11px;
}
body[data-role="user"] .hero-caption {
  bottom: 76px;
  text-shadow: 0 2px 8px #19362a;
}
body[data-role="user"] .hero-caption small {
  letter-spacing: 2px;
}
body[data-role="user"] .visual-spark {
  left: -20px;
  top: -15px;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #f0dccc;
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
  margin-top: 24px;
  box-shadow: 0 6px 16px #9d6b3b06;
}
.hero-search > svg {
  color: #b39c88;
  width: 18px;
}
.hero-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}
.hero-search .button {
  white-space: nowrap;
  padding: 10px 17px;
}
body[data-role="user"] .hero-buttons {
  margin: 14px 0 18px;
  gap: 12px;
}
body[data-role="user"] .hero-buttons .button {
  background: transparent;
  border: 0;
  padding: 6px 0;
  min-height: 32px;
  color: #8f6d56;
  font-size: 12px;
  box-shadow: none;
}
body[data-role="user"] .hero-buttons .button.secondary {
  margin-left: 12px;
  color: #66786b;
}
body[data-role="user"] .hero-social {
  font-size: 12px;
}
.consumer-scenarios {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
}
.consumer-scenarios > span:first-child {
  font-weight: 600;
  font-size: 13px;
}
.consumer-scenarios button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e9e8df;
  padding: 10px 16px;
  background: #fff;
  border-radius: 30px;
  font-size: 12px;
}
.consumer-scenarios button:hover {
  background: #fff1e5;
  border-color: #f2c7aa;
}
.consumer-scenarios button svg {
  width: 16px;
  color: #899875;
}
.scenario-note {
  margin-left: auto;
  font-size: 12px;
  color: #9da298;
}
body[data-role="user"] .trust-strip {
  border: 0;
  background: #f0f3ed;
  padding: 19px;
  margin-bottom: 38px;
  border-radius: 12px;
}
body[data-role="user"] .trust-item strong {
  font-size: 13px;
}
body[data-role="user"] .trust-item small {
  font-size: 11px;
  margin-top: 5px;
  color: #87927f;
}
body[data-role="user"] .overline {
  font-size: 12px;
  letter-spacing: 2px;
  color: #aa8a72;
}
body[data-role="user"] .section-head h2 {
  font-size: 27px;
  letter-spacing: 0;
}
body[data-role="user"] .section-head p {
  font-size: 13px;
}
body[data-role="user"] .category-card {
  min-height: 170px;
  border: 1px solid #ffffffa0;
  border-radius: 16px;
  padding: 23px;
}
body[data-role="user"] .category-card h3 {
  font-size: 18px;
}
body[data-role="user"] .category-card p {
  font-size: 12px;
}
body[data-role="user"] .category-phase {
  font-size: 11px;
}
body[data-role="user"] .coupon-banner {
  padding: 18px 24px;
}
body[data-role="user"] .coupon-banner strong {
  font-size: 14px;
}
body[data-role="user"] .coupon-banner span {
  font-size: 12px;
}
body[data-role="user"] .filter-tabs {
  gap: 6px;
}
body[data-role="user"] .chip {
  font-size: 13px;
  padding: 10px 18px;
  min-height: 42px;
}
body[data-role="user"] .search-wrap input {
  font-size: 12px;
}
body[data-role="user"] .card-image {
  height: 195px;
}
body[data-role="user"] .card-title {
  font-size: 15px;
  min-height: 48px;
}
body[data-role="user"] .card-meta {
  font-size: 12px;
  line-height: 1.6;
}
body[data-role="user"] .card-meta svg {
  width: 13px;
  height: 13px;
}
body[data-role="user"] .card-tags .tag {
  font-size: 11px;
  padding: 4px 7px;
}
body[data-role="user"] .card-provider {
  font-size: 12px;
}
body[data-role="user"] .card-provider .rating {
  font-size: 11px;
}
body[data-role="user"] .card-content {
  padding: 17px 16px;
}
body[data-role="user"] .card-price .text-button {
  font-size: 12px;
  color: #bc6944;
}
body[data-role="user"] .card-price .price {
  font-size: 25px;
}
body[data-role="user"] .image-label {
  font-size: 11px;
}
body[data-role="user"] .favorite {
  width: 40px;
  height: 40px;
}
body[data-role="user"] .story-band {
  padding: 30px 34px;
}
body[data-role="user"] .story-band h3 {
  font-size: 22px;
}
body[data-role="user"] .story-band p {
  font-size: 13px;
}
body[data-role="user"] .story-band .button {
  font-size: 12px;
}
body[data-role="user"] .footer-copy,
body[data-role="user"] .footer-links button {
  font-size: 11px;
}

body[data-role="provider"],
body[data-role="admin"] {
  background: var(--bg);
  color: var(--ink);
  --line: #e8edf0;
  --muted: #84908f;
  --paper: #fff;
  --shadow: 0 6px 24px #26373b06;
}
body[data-role="provider"] {
  --bg: #f4f8f6;
  --ink: #203b33;
  --orange: #168b72;
  --orange-dark: #10755f;
  --teal: #168b72;
  --soft: #eaf5f0;
  --accent: #168b72;
}
body[data-role="admin"] {
  --bg: #f4f6fa;
  --ink: #24304a;
  --orange: #2468f2;
  --orange-dark: #1558db;
  --teal: #2468f2;
  --soft: #edf3ff;
  --accent: #2468f2;
  --muted: #8b94a5;
}
body:not([data-role="user"]) #footer {
  display: none;
}
body:not([data-role="user"]) #header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
body:not([data-role="user"]) .button {
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
  min-height: 40px;
  padding: 10px 18px;
  white-space: nowrap;
}
body:not([data-role="user"]) .button:hover {
  background: var(--orange-dark);
  transform: none;
}
body:not([data-role="user"]) .button.secondary {
  border-color: #e0e6eb;
  background: white;
  color: var(--ink);
}
body:not([data-role="user"]) .button.secondary:hover {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--accent);
}
body:not([data-role="user"]) .button.danger {
  background: #fff1ee;
  color: #cd574c;
}
body:not([data-role="user"]) .button.small {
  font-size: 12px;
  padding: 8px 13px;
  min-height: 34px;
}
body:not([data-role="user"]) input:focus,
body:not([data-role="user"]) select:focus,
body:not([data-role="user"]) textarea:focus,
body:not([data-role="user"]) button:focus-visible {
  outline-color: var(--accent);
}
body:not([data-role="user"]) .notice {
  background: var(--soft);
  color: var(--accent);
}
body:not([data-role="user"]) dialog {
  background: #fff;
  border-radius: 14px;
}
body:not([data-role="user"]) .dialog-head {
  background: #fff;
}
body:not([data-role="user"]) .price {
  color: var(--accent);
}
body:not([data-role="user"]) .summary-box {
  background: var(--soft);
}
.work-header {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  gap: 20px;
}
.work-header-left {
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 0;
}
.work-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.work-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent);
}
.work-brand-icon svg {
  width: 24px;
  height: 24px;
}
.work-brand strong {
  font-size: 18px;
  letter-spacing: 1px;
}
.work-brand strong span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.work-header-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.work-demo-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #8b95a6;
  white-space: nowrap;
}
.work-demo-label i,
.sidebar-status i {
  height: 6px;
  width: 6px;
  background: #30bb83;
  border-radius: 50%;
}
.work-header .role-select {
  font-size: 12px;
  border-color: var(--line);
  padding: 7px 6px;
  background: #fafbfc;
  min-width: 82px;
}
.work-header .icon-button {
  position: relative;
  color: #8b96a2;
  width: 30px;
  height: 34px;
}
.notification-dot {
  position: absolute;
  right: 4px;
  top: 7px;
  width: 5px;
  height: 5px;
  background: #f0955f;
  border: 1px solid white;
  border-radius: 50%;
}
.work-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.work-user .avatar {
  width: 29px;
  height: 29px;
  font-size: 11px;
}
.provider-desktop-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 72px;
}
.provider-desktop-nav button {
  height: 72px;
  padding: 0 15px;
  font-size: 13px;
  color: #7b8a85;
  position: relative;
}
.provider-desktop-nav button svg {
  display: none;
}
.provider-desktop-nav button.active {
  color: var(--accent);
  font-weight: 600;
}
.provider-desktop-nav button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.provider-workspace {
  max-width: 1280px;
  margin: auto;
  padding: 28px 32px 22px;
}
.provider-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.provider-page-title p {
  font-size: 11px;
  color: #92a49a;
  margin-bottom: 9px;
}
.provider-page-title h1 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.provider-page-title > div > span {
  font-size: 12px;
  color: #8b9d92;
  display: block;
  margin-top: 10px;
}
.provider-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e0e8e1;
  background: white;
  border-radius: 9px;
  padding: 7px 10px;
  color: #6f897e;
}
.provider-switch svg {
  width: 16px;
}
.provider-switch select {
  border: 0;
  outline: 0;
  background: white;
  font-size: 12px;
  color: var(--ink);
  max-width: 86px;
}
.availability-switch {
  padding: 9px 13px;
  border: 1px solid #d6e3db;
  background: #fff;
  border-radius: 9px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.availability-switch i {
  width: 27px;
  height: 16px;
  border-radius: 12px;
  background: #b7c4bd;
  position: relative;
}
.availability-switch i:after {
  content: "";
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
}
.availability-switch.on {
  color: var(--accent);
  background: #edf7f1;
  border-color: #cfe9dd;
}
.availability-switch.on i {
  background: var(--accent);
}
.availability-switch.on i:after {
  left: 13px;
}
.provider-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 220px;
  padding: 30px 36px;
  border-radius: 18px;
  background: linear-gradient(110deg, #dff0e7 0%, #e5f1e9 55%, #eef3df 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #deebe1;
}
.welcome-label {
  font-size: 11px;
  color: #6b9a80;
  letter-spacing: 1px;
}
.provider-welcome h2 {
  font-size: 29px;
  letter-spacing: 0;
  margin: 13px 0 12px;
  color: #245343;
}
.provider-welcome p {
  font-size: 12px;
  color: #7b9888;
}
.provider-welcome p b {
  color: #168b72;
  font-weight: 600;
}
.provider-welcome .button {
  margin-top: 20px;
  font-size: 12px !important;
  min-height: 36px !important;
}
.welcome-art {
  position: absolute;
  right: 8%;
  top: 17px;
  width: 260px;
  height: 210px;
}
.welcome-orbit {
  width: 224px;
  height: 224px;
  border: 1px solid #bed9be88;
  border-radius: 50%;
  position: absolute;
  top: -10px;
  left: 28px;
}
.welcome-orbit:after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px dashed #b9d9bd;
  border-radius: 50%;
}
.welcome-card {
  width: 140px;
  height: 150px;
  background: #ffffffe8;
  border-radius: 22px;
  position: absolute;
  left: 70px;
  top: 30px;
  transform: rotate(10deg);
  box-shadow: 0 15px 24px #42674d16;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid white;
}
.welcome-card > svg {
  width: 46px;
  height: 46px;
  color: #5b9d7f;
  stroke-width: 1.2;
  margin-bottom: 5px;
}
.welcome-card strong {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: 2px;
}
.welcome-card span {
  font-size: 10px;
  color: #94a18a;
  letter-spacing: 4px;
}
.welcome-card i {
  background: #9fc77e;
  border: 3px solid #eef3df;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  position: absolute;
  right: -15px;
  bottom: 20px;
  color: white;
  font-style: normal;
}
.welcome-leaf {
  position: absolute;
  left: 21px;
  bottom: 18px;
  width: 65px;
  height: 65px;
  background: #75ab89;
  border-radius: 45% 50% 20% 50%;
  color: #e4f0d4;
  display: grid;
  place-items: center;
  transform: rotate(-15deg);
  box-shadow: 5px 9px 0 #c3d9ba;
}
.welcome-leaf svg {
  width: 36px;
  height: 36px;
  stroke-width: 1;
}
.welcome-star {
  position: absolute;
  right: 10px;
  top: 0;
  color: #cbab64;
  font-size: 35px;
}
.work-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.work-metric {
  padding: 21px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.work-metric > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.work-metric > div > span {
  font-size: 12px;
  color: #778a80;
}
.work-metric i {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: #eef6f0;
  display: grid;
  place-items: center;
  color: #7ea28d;
  font-style: normal;
}
.work-metric i svg {
  width: 19px;
  height: 19px;
}
.work-metric > strong {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: block;
  margin: 10px 0 12px;
  font-variant-numeric: tabular-nums;
}
.work-metric em {
  font-style: normal;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 5px;
}
.work-metric > small {
  font-size: 10px;
  color: #9aa79e;
  display: block;
  line-height: 1.7;
}
.work-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 22px;
}
.work-columns > div {
  min-width: 0;
}
.work-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  margin-bottom: 22px;
  overflow: hidden;
  min-width: 0;
}
.work-panel-head {
  padding: 23px 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.work-panel-head h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}
.work-panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.7;
}
.work-text-button {
  font-size: 11px;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  color: var(--accent);
}
.work-text-button svg {
  width: 15px;
  height: 15px;
}
.compact-order {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0 24px;
  padding: 20px 0;
  border-top: 1px solid #edf1eb;
}
.compact-time {
  display: grid;
  gap: 7px;
  flex-shrink: 0;
  min-width: 58px;
}
.compact-time strong {
  font-size: 19px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.compact-time span {
  font-size: 10px;
  color: #99a59a;
}
.compact-content {
  flex: 1;
  min-width: 0;
}
.compact-content h3 {
  font-size: 12px;
  font-weight: 550;
}
.compact-content p {
  color: #8b9a8d;
  font-size: 10px;
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.compact-content p svg {
  width: 12px;
  height: 12px;
}
.compact-content small {
  font-size: 9px;
  color: #a9b1aa;
  display: block;
  margin-top: 6px;
}
.compact-action {
  text-align: right;
  display: grid;
  justify-items: end;
  gap: 9px;
  flex-shrink: 0;
}
.compact-action strong {
  font-size: 16px;
  font-weight: 550;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 4px 8px;
  white-space: nowrap;
  border-radius: 5px;
  background: #fff5e9;
  color: #ba8c39;
  font-weight: 400;
}
.status-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.confirmed {
  background: #edf3ff;
  color: #507ed7;
}
.status-pill.ongoing {
  background: #eaf6f2;
  color: #249378;
}
.status-pill.completed,
.status-pill.approved,
.status-pill.resolved {
  background: #edf7f0;
  color: #5b9c69;
}
.status-pill.cancelled,
.status-pill.rejected {
  background: #f2f3f5;
  color: #8c94a2;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0 17px 16px;
  gap: 10px;
}
.quick-grid button {
  padding: 15px 9px;
  border-radius: 10px;
  background: #f6f9f6;
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 11px;
  color: #6c8774;
}
.quick-grid button:hover {
  background: #eaf4ed;
}
.quick-grid svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.4;
}
.provider-identity {
  text-align: center;
  padding: 0 20px 19px;
}
.provider-identity .avatar {
  margin-bottom: 10px;
}
.provider-identity h3 {
  font-size: 17px;
}
.provider-identity p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 10px;
}
.identity-stats {
  display: flex;
  border-top: 1px solid #eff2ec;
  margin: 0 24px;
  padding: 18px 0;
}
.identity-stats span {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: #98a392;
}
.identity-stats span + span {
  border-left: 1px solid #e9eee5;
}
.identity-stats b {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: #5d7d67;
  margin-bottom: 5px;
}
.sop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 24px 24px;
}
.sop-grid > div {
  padding: 16px;
  background: #f5f8f1;
  border-radius: 10px;
}
.sop-grid > div > span {
  font-size: 18px;
  font-weight: 500;
  color: #afc5a8;
  display: block;
  margin-bottom: 12px;
}
.sop-grid strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.sop-grid p {
  font-size: 10px;
  color: #9aa38f;
  margin-top: 7px;
  line-height: 1.8;
}
.work-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eaf3ed;
  color: #7c9582;
  padding: 15px 18px;
  font-size: 11px;
  border-radius: 9px;
  margin-bottom: 20px;
  line-height: 1.8;
}
.work-tip > svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}
.work-empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
}
.work-empty > svg {
  display: block;
  margin: 0 auto 14px;
  width: 37px;
  height: 37px;
  stroke-width: 1.2;
  color: #b6c6c1;
}
.work-empty strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.work-empty p {
  font-size: 12px;
  margin: 12px 0 18px;
}
.work-bottom-note {
  text-align: center;
  font-size: 11px;
  color: #9eada3;
  padding: 6px 0 20px;
}
.work-bottom-note button {
  margin-left: 12px;
  color: var(--accent);
  text-decoration: underline;
}
.work-filters {
  display: flex;
  gap: 12px;
  padding: 0 24px 22px;
  align-items: center;
  flex-wrap: wrap;
}
.work-filters input,
.work-filters select,
.admin-page-title select {
  border: 1px solid #dfe5ed;
  border-radius: 7px;
  padding: 9px 11px;
  background: #fff;
  color: #6c7a8e;
  min-width: 0;
  font-size: 12px;
  min-height: 36px;
}
.work-filters select {
  max-width: 125px;
}
.work-filters input[type="date"] {
  width: 146px;
}
.work-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe5ed;
  border-radius: 7px;
  padding-left: 11px;
  min-width: 180px;
  flex: 1;
  max-width: 360px;
}
.work-input svg {
  width: 15px;
  color: #99a7b9;
}
.work-input input {
  border: 0;
  width: 100%;
  padding-left: 0;
}
.work-order-cards {
  padding: 0 24px 24px;
  display: grid;
  gap: 16px;
}
.work-order-cards .order-card {
  box-shadow: none;
  border-color: #e8eee9;
}
.work-order-cards .order-info h3 {
  font-size: 15px;
}
.work-order-cards .order-top {
  font-size: 11px;
}
.work-order-cards .order-actions .button {
  min-height: 38px;
}
.schedule-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 28px;
  overflow-x: auto;
}
.schedule-board > section {
  min-width: 100px;
}
.schedule-board header {
  text-align: center;
  padding: 15px 3px;
  background: #f6f8f6;
  border-radius: 9px;
  margin-bottom: 15px;
}
.schedule-board header span {
  font-size: 11px;
  color: #99a592;
  display: block;
}
.schedule-board header strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-top: 10px;
}
.slot {
  display: grid;
  width: 100%;
  border-radius: 9px;
  padding: 16px 6px;
  justify-items: center;
  gap: 9px;
  margin-bottom: 12px;
  background: #eaf6f0;
  color: #579b7b;
  border: 1px solid #d3eadd;
}
.slot b {
  font-weight: 500;
  font-size: 14px;
}
.slot span {
  font-size: 10px;
}
.slot.blocked {
  background: #f1f3f2;
  color: #a5ada6;
  border-color: #e6eae5;
}
.slot.booked {
  background: #fff4e8;
  color: #bb965c;
  border-color: #f3e6d0;
  opacity: 1;
}

body[data-role="admin"] #header {
  margin-left: 220px;
}
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 30;
  width: 220px;
  background: #18243b;
  color: #a8b4c9;
  padding: 25px 16px;
  display: flex;
  flex-direction: column;
}
.admin-sidebar .work-brand {
  padding: 0 7px 24px;
  border-bottom: 1px solid #ffffff0a;
}
.admin-sidebar .work-brand strong {
  color: #f5f7fc;
  font-size: 18px;
}
.admin-sidebar .work-brand strong span {
  color: #798aa9;
  font-size: 10px;
  margin-top: 6px;
  letter-spacing: 2px;
}
.admin-sidebar .work-brand-icon {
  background: #346cf1;
  border-radius: 10px;
}
.sidebar-label {
  font-size: 10px;
  color: #576b8d;
  letter-spacing: 2px;
  padding: 27px 16px 14px;
}
.admin-sidebar nav {
  display: grid;
  gap: 7px;
}
.admin-sidebar nav button {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 17px;
  border-radius: 8px;
  text-align: left;
  color: #8f9db6;
  font-size: 13px;
  min-height: 46px;
}
.admin-sidebar nav button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}
.admin-sidebar nav button.active {
  background: #2e65e7;
  color: white;
  box-shadow: 0 5px 14px #0b193c33;
}
.admin-sidebar nav button:hover:not(.active) {
  background: #ffffff06;
  color: #fff;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 18px 13px 0;
  border-top: 1px solid #ffffff0a;
}
.sidebar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #657c99;
}
.sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  color: #9ba9be;
  font-size: 11px;
}
.sidebar-bottom svg {
  width: 15px;
  transform: rotate(180deg);
}
.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  white-space: nowrap;
}
.admin-breadcrumb > span {
  color: #a2aabd;
}
.admin-breadcrumb strong {
  font-weight: 400;
  color: #4a5770;
}
.admin-breadcrumb svg {
  width: 12px;
  height: 12px;
  color: #c1c7d2;
}
.admin-avatar {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #eaf0ff;
  display: grid;
  place-items: center;
  color: #6f8cd4;
  font-size: 11px;
}
.admin-workspace {
  margin-left: 220px;
  padding: 26px 28px 18px;
  max-width: 1850px;
}
.admin-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.admin-page-title h1 {
  font-size: 24px;
  font-weight: 600;
}
.admin-page-title p {
  font-size: 12px;
  color: #9da6b6;
  margin-top: 9px;
}
.admin-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #eaf1ff;
  border: 1px solid #dde8fd;
  color: #7d97bd;
  padding: 12px 15px;
  border-radius: 7px;
  margin-bottom: 23px;
  font-size: 11px;
  line-height: 1.8;
}
.admin-notice > svg {
  width: 16px;
  height: 16px;
  color: #6c97ee;
}
.admin-notice button {
  font-size: 11px;
  margin-left: auto;
  white-space: nowrap;
  color: #4c7bd0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.admin-notice button svg {
  width: 13px;
}
body[data-role="admin"] .work-metrics {
  gap: 16px;
  margin-bottom: 20px;
}
body[data-role="admin"] .work-metric {
  border-color: #e9ecf3;
  border-radius: 9px;
  padding: 20px;
}
body[data-role="admin"] .work-metric > div > span {
  color: #929cb0;
}
body[data-role="admin"] .work-metric strong {
  font-size: 29px;
  color: #29354a;
  font-weight: 600;
  margin: 10px 0 15px;
}
body[data-role="admin"] .work-metric small {
  color: #aab1bf;
  font-size: 10px;
}
.work-metric.blue i {
  background: #ecf2ff;
  color: #7a9de9;
}
.work-metric.purple i {
  background: #f3efff;
  color: #a28ad9;
}
.work-metric.green i {
  background: #eaf7f1;
  color: #79b5a0;
}
.work-metric.orange i {
  background: #fff4e7;
  color: #d4b179;
}
.admin-todos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 9px;
  padding: 17px 0;
  margin-bottom: 22px;
}
.admin-todos button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  font-size: 11px;
  color: #9ca6b7;
  min-height: 29px;
}
.admin-todos button + button {
  border-left: 1px solid #edf0f7;
}
.admin-todos button > svg:first-child {
  color: #9aaec9;
  width: 17px;
}
.admin-todos button b {
  color: #52647f;
  font-size: 18px;
  font-weight: 500;
  margin-left: auto;
}
.admin-todos button > svg:last-child {
  width: 12px;
  color: #bdc6d4;
}
.admin-charts {
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  gap: 20px;
}
body[data-role="admin"] .work-panel {
  border-radius: 9px;
  border-color: #e7ebf3;
  margin-bottom: 22px;
}
body[data-role="admin"] .work-panel-head {
  padding: 21px 22px 18px;
}
body[data-role="admin"] .work-panel-head h2 {
  font-size: 15px;
  color: #37465e;
}
body[data-role="admin"] .work-panel-head p {
  color: #a4adbc;
  font-size: 10px;
}
.chart-wrap {
  height: 175px;
  display: flex;
  padding: 12px 20px 0;
  gap: 7px;
  color: #4f81ed;
}
.chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 9px;
  color: #b1b9c6;
  padding: 0 0 15px;
  min-width: 28px;
}
.trend-svg {
  flex: 1;
  height: 150px;
  min-width: 0;
  width: 100%;
}
.chart-x {
  display: flex;
  justify-content: space-between;
  padding: 4px 34px 23px 66px;
  font-size: 9px;
  color: #b0b9c7;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 10px;
  color: #a3acbb;
}
.chart-legend i {
  width: 7px;
  height: 7px;
  background: #6292f0;
  border-radius: 50%;
}
.service-bars {
  padding: 0 23px 25px;
  display: grid;
  gap: 18px;
}
.service-bars > div > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #8492a8;
  margin-bottom: 9px;
}
.service-bars span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.service-bars i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.service-bars b {
  font-size: 12px;
  font-weight: 500;
  color: #6f7f97;
}
.service-bars small {
  font-size: 10px;
  color: #b0b8c6;
}
.bar-track {
  height: 5px;
  background: #f1f4f8;
  border-radius: 5px;
  overflow: hidden;
}
.bar-track > span {
  height: 5px;
  border-radius: 5px;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.work-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 690px;
  font-size: 12px;
  text-align: left;
}
.work-table th {
  background: #f7f9fc;
  font-size: 11px;
  color: #8b98ad;
  padding: 13px 20px;
  font-weight: 400;
  white-space: nowrap;
}
.work-table td {
  padding: 17px 20px;
  border-bottom: 1px solid #eef1f6;
  color: #6f7e95;
  white-space: nowrap;
  font-size: 11px;
}
.work-table tbody tr:last-child td {
  border-bottom: 0;
}
.work-table tbody tr:hover {
  background: #fafbfe;
}
.work-table td strong {
  font-size: 12px;
  color: #50617c;
  font-weight: 500;
  display: block;
  margin-bottom: 7px;
}
.work-table td small {
  font-size: 9px;
  color: #a8b3c5;
  display: block;
  margin-top: 6px;
}
.work-table .avatar {
  width: 25px;
  height: 25px;
  font-size: 9px;
}
.work-table .money-cell {
  font-size: 13px;
  color: #3b4e6d;
  font-variant-numeric: tabular-nums;
}
.table-buttons {
  display: flex;
  gap: 14px;
}
.table-buttons button {
  font-size: 11px;
  padding: 8px 0;
  color: var(--accent);
}
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-top: 1px solid #eef2f7;
  font-size: 10px;
  color: #a6b0c0;
  gap: 10px;
}
.table-pagination .row {
  gap: 10px;
}
.table-pagination b {
  color: var(--accent);
  font-size: 11px;
  font-weight: 400;
  background: var(--soft);
  padding: 5px 9px;
  border-radius: 5px;
}
.table-pagination button {
  border: 1px solid #e6ebf3;
  border-radius: 5px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}
.table-pagination button:first-child svg {
  transform: rotate(180deg);
}
.table-pagination svg {
  width: 12px;
}
.admin-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #b2bac8;
  padding: 4px 0 10px;
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 23px 24px;
}
.staff-card {
  border: 1px solid #e9edf4;
  border-radius: 10px;
  padding: 20px;
  min-width: 0;
}
.staff-card h3 {
  font-size: 18px;
  margin-top: 16px;
  font-weight: 550;
}
.staff-card p {
  font-size: 11px;
  margin: 9px 0 14px;
  color: var(--muted);
}
.staff-card .tag {
  background: #f2f5fb;
  color: #899bb5;
  font-size: 10px;
}
.staff-card .button {
  width: 100%;
  margin-top: 17px;
}
.staff-metrics {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #edf0f5;
  padding-top: 17px;
  margin-top: 20px;
}
.staff-metrics span {
  font-size: 10px;
  color: #a3adc0;
  text-align: center;
}
.staff-metrics b {
  font-size: 18px;
  display: block;
  font-weight: 500;
  color: #70819d;
  margin-bottom: 8px;
}
.review-row {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 20px 24px;
  border-top: 1px solid #edf1f7;
}
.application-avatar {
  height: 44px;
  width: 44px;
  border-radius: 10px;
  background: #f0f3f9;
  display: grid;
  place-items: center;
  color: #92a1b9;
}
.review-row > div {
  flex: 1;
}
.review-row h3 {
  font-size: 14px;
}
.review-row p,
.review-row small {
  font-size: 11px;
  color: #9ea8b8;
  margin-top: 8px;
  display: block;
  line-height: 1.8;
}
.service-management {
  padding: 0 24px 8px;
}
.service-management article {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 0;
  border-top: 1px solid #edf0f5;
}
.management-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #edf3ff;
  color: #779ee5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.service-management-body {
  flex: 1;
  min-width: 0;
}
.service-management-body h3 {
  font-size: 14px;
  line-height: 1.7;
}
.service-management-body p {
  font-size: 12px;
  color: #9ba7ba;
  margin: 6px 0;
}
.service-management-body .small {
  font-size: 10px;
}
.case-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #eaf0f7;
  padding: 0 24px 13px;
}
.case-tabs button {
  font-size: 12px;
  padding: 7px 12px;
  color: #9faaba;
  border-radius: 6px;
}
.case-tabs button.active {
  background: #edf3ff;
  color: var(--accent);
}
.case-card {
  padding: 22px 24px;
  border-bottom: 1px solid #edf1f6;
}
.case-card h3 {
  font-size: 14px;
  line-height: 1.8;
}
.case-card h3 small {
  font-size: 10px;
  color: #9ca9be;
  font-weight: 400;
  margin-left: 14px;
}
.case-card p {
  font-size: 12px;
  margin: 16px 0 11px;
  color: #6a7c98;
}
.case-meta {
  font-size: 11px;
  color: #a0acc0;
  margin-bottom: 16px;
}
.case-response {
  background: #f6f8fc;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.8;
  color: #7c8ea9;
  margin: 12px 0 17px;
}
.risk-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-top: 1px solid #edf1f6;
  padding: 24px;
}
.risk-card > div {
  flex: 1;
  min-width: 0;
}
.risk-card h3 {
  font-size: 14px;
}
.risk-card p {
  font-size: 12px;
  color: #95a3b8;
  margin: 12px 0;
}
.risk-card small {
  font-size: 10px;
  color: #aab3c4;
}
.risk-icon {
  color: #d8a357;
  background: #fff7ea;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.audit-list {
  padding: 0 24px 20px;
}
.audit-list > div {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 16px 0;
  border-top: 1px solid #eef2f8;
}
.audit-list time {
  font-size: 11px;
  color: #9caabe;
  white-space: nowrap;
}
.audit-list p {
  font-size: 12px;
  color: #7688a4;
}
.audit-dot {
  width: 6px;
  height: 6px;
  background: #7da6f8;
  border-radius: 50%;
  flex-shrink: 0;
}
@media (min-width: 1800px) {
  .admin-workspace {
    margin-right: auto;
  }
  .work-header {
    padding-right: 40px;
  }
}
@media (max-width: 1200px) {
  .work-header-left {
    gap: 22px;
  }
  .provider-desktop-nav button {
    padding: 0 10px;
    font-size: 12px;
  }
  .work-demo-label {
    display: none;
  }
  .work-header-actions {
    gap: 12px;
  }
  .provider-workspace {
    padding: 24px;
  }
  .welcome-art {
    right: 3%;
  }
  .admin-sidebar {
    width: 190px;
  }
  .admin-sidebar .work-brand {
    gap: 8px;
  }
  .admin-sidebar .work-brand strong {
    font-size: 16px;
  }
  body[data-role="admin"] #header,
  .admin-workspace {
    margin-left: 190px;
  }
  .admin-workspace {
    padding: 23px 22px;
  }
  .work-metric {
    padding: 18px;
  }
  .admin-todos button {
    padding: 0 14px;
    gap: 6px;
  }
  .admin-todos button span {
    font-size: 10px;
  }
  .work-metrics {
    gap: 12px;
  }
  .work-columns {
    gap: 18px;
  }
  .work-header {
    padding: 0 24px;
  }
  .work-user > span:last-child {
    display: none;
  }
  .work-metric > strong {
    font-size: 26px;
  }
  .staff-grid {
    gap: 12px;
    padding: 0 16px 18px;
  }
  .staff-card {
    padding: 15px;
  }
  .service-management article {
    flex-wrap: wrap;
  }
  .service-management-body {
    min-width: 55%;
  }
}
@media (max-width: 1000px) {
  .provider-desktop-nav {
    display: none;
  }
  .provider-welcome h2 {
    font-size: 25px;
  }
  .work-columns {
    grid-template-columns: minmax(0, 1.5fr) minmax(235px, 1fr);
  }
  .compact-content .row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .admin-charts {
    grid-template-columns: 1fr;
  }
  .work-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-todos {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }
  .admin-todos button {
    padding: 13px;
  }
  .admin-todos button + button {
    border: 0;
  }
  .admin-todos button:nth-child(even) {
    border-left: 1px solid #edf0f7;
  }
  .staff-grid {
    grid-template-columns: 1fr;
  }
  .staff-card {
    display: block;
  }
  .schedule-board {
    grid-template-columns: repeat(7, 120px);
  }
  .provider-workspace {
    padding-bottom: 90px;
  }
  body[data-role="provider"] #mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fffffff5;
    border-top: 1px solid var(--line);
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    justify-content: space-around;
    z-index: 25;
  }
  body[data-role="provider"] #mobile-nav button {
    display: grid;
    justify-items: center;
    gap: 7px;
    font-size: 11px;
    color: #94a39a;
    min-width: 60px;
  }
  body[data-role="provider"] #mobile-nav button.active {
    color: var(--accent);
  }
}
@media (max-width: 900px) {
  body[data-role="admin"] #header,
  .admin-workspace {
    margin-left: 0;
  }
  .admin-sidebar {
    display: none;
  }
  body[data-role="admin"] #mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fffffff8;
    border-top: 1px solid var(--line);
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    justify-content: flex-start;
    overflow-x: auto;
    z-index: 25;
    gap: 4px;
  }
  body[data-role="admin"] #mobile-nav button {
    display: grid;
    justify-items: center;
    gap: 6px;
    font-size: 10px;
    color: #97a4ba;
    min-width: 75px;
    padding: 3px;
  }
  body[data-role="admin"] #mobile-nav button.active {
    color: var(--accent);
  }
  .admin-workspace {
    padding-bottom: 85px;
  }
  .admin-charts {
    grid-template-columns: 1.5fr 1fr;
  }
  .admin-todos {
    grid-template-columns: repeat(4, 1fr);
  }
  .admin-todos button {
    padding: 5px 9px;
  }
  .admin-todos button > svg:first-child {
    display: none;
  }
  .admin-todos button:nth-child(even) {
    border: 0;
  }
  .work-user {
    display: none;
  }
  .work-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  .work-metric > strong {
    font-size: 25px;
  }
  .staff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  body[data-role="user"] .header-inner {
    height: 64px;
  }
  body[data-role="user"] .brand small {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  body[data-role="user"] .consumer-hero {
    padding: 24px 20px 25px;
    margin: 18px 0 22px;
    border-radius: 18px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  body[data-role="user"] .hero h1 {
    font-size: 31px;
    letter-spacing: -0.7px;
  }
  body[data-role="user"] .hero-label {
    font-size: 11px;
    margin-bottom: 14px;
  }
  body[data-role="user"] .hero-description {
    font-size: 12px;
    margin-top: 14px;
  }
  .hero-search {
    margin-top: 20px;
    padding: 5px 5px 5px 11px;
    gap: 8px;
  }
  .hero-search input {
    font-size: 11px;
  }
  .hero-search .button {
    font-size: 11px;
    padding: 9px 12px;
    min-height: 38px;
  }
  body[data-role="user"] .hero-buttons {
    margin: 9px 0 13px;
  }
  body[data-role="user"] .hero-buttons .button {
    font-size: 11px;
  }
  body[data-role="user"] .hero-social {
    font-size: 11px;
  }
  body[data-role="user"] .hero-visual {
    margin: 0;
    padding: 0 0 16px;
  }
  body[data-role="user"] .hero-photo {
    height: 235px;
    border-radius: 12px 42px 12px 12px;
  }
  body[data-role="user"] .floating-card {
    min-width: 245px;
    left: -5px;
    padding: 11px 13px;
  }
  body[data-role="user"] .floating-card strong {
    font-size: 11px;
  }
  body[data-role="user"] .floating-card p {
    font-size: 10px;
  }
  body[data-role="user"] .hero-caption {
    right: 17px;
    bottom: 64px;
  }
  body[data-role="user"] .hero-caption strong {
    font-size: 18px;
  }
  body[data-role="user"] .visual-spark {
    font-size: 25px;
    left: -9px;
    top: -10px;
  }
  .consumer-scenarios {
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .consumer-scenarios > span:first-child {
    font-size: 11px;
    width: 100%;
  }
  .consumer-scenarios button {
    font-size: 11px;
    padding: 9px 10px;
    gap: 5px;
  }
  .consumer-scenarios button svg {
    width: 14px;
  }
  .scenario-note {
    display: none;
  }
  body[data-role="user"] .trust-strip {
    padding: 16px 12px;
    gap: 18px 7px;
    margin-bottom: 28px;
  }
  body[data-role="user"] .trust-item strong {
    font-size: 11px;
  }
  body[data-role="user"] .trust-item strong .small {
    font-size: 9px;
  }
  body[data-role="user"] .trust-item small {
    font-size: 9px;
  }
  body[data-role="user"] .trust-item svg {
    width: 17px;
  }
  body[data-role="user"] .overline {
    font-size: 10px;
  }
  body[data-role="user"] .section-head h2 {
    font-size: 21px;
    letter-spacing: -0.5px;
  }
  body[data-role="user"] .section-head p {
    font-size: 12px;
  }
  body[data-role="user"] .category-card {
    padding: 17px 15px;
    min-height: 152px;
    border-radius: 13px;
  }
  body[data-role="user"] .category-card h3 {
    font-size: 16px;
  }
  body[data-role="user"] .category-card p {
    font-size: 10px;
  }
  body[data-role="user"] .category-phase {
    font-size: 9px;
  }
  body[data-role="user"] .coupon-banner {
    padding: 15px 12px;
  }
  body[data-role="user"] .coupon-banner strong {
    font-size: 12px;
  }
  body[data-role="user"] .coupon-banner span {
    font-size: 10px;
    line-height: 1.7;
  }
  body[data-role="user"] .coupon-banner button {
    font-size: 11px;
  }
  body[data-role="user"] .chip {
    padding: 9px 11px;
    font-size: 12px;
  }
  body[data-role="user"] .filter-tabs {
    gap: 2px;
  }
  body[data-role="user"] .card-image {
    height: 145px;
  }
  body[data-role="user"] .card-title {
    font-size: 13px;
    min-height: 45px;
  }
  body[data-role="user"] .card-content {
    padding: 12px 10px;
  }
  body[data-role="user"] .card-meta {
    font-size: 10px;
  }
  body[data-role="user"] .card-tags .tag {
    font-size: 9px;
    padding: 3px 4px;
  }
  body[data-role="user"] .card-provider {
    font-size: 10px;
    flex-wrap: wrap;
  }
  body[data-role="user"] .card-provider .rating {
    font-size: 9px;
  }
  body[data-role="user"] .card-price .price {
    font-size: 22px;
  }
  body[data-role="user"] .card-price .text-button {
    font-size: 10px;
  }
  body[data-role="user"] .favorite {
    width: 36px;
    height: 36px;
  }
  body[data-role="user"] .image-label {
    font-size: 10px;
  }
  body[data-role="user"] .story-band {
    padding: 24px 19px;
  }
  body[data-role="user"] .story-band h3 {
    font-size: 18px;
  }
  body[data-role="user"] .story-band p {
    font-size: 12px;
  }
  body[data-role="user"] .footer-copy,
  body[data-role="user"] .footer-links button {
    font-size: 10px;
  }
  body[data-role="user"] #mobile-nav a {
    font-size: 11px;
    min-height: 42px;
  }
  .work-header {
    height: 64px;
    padding: 0 16px;
    gap: 12px;
  }
  .work-header-left {
    gap: 0;
  }
  .work-header-actions {
    gap: 8px;
  }
  .work-header-actions .icon-button {
    display: none;
  }
  .work-brand-icon {
    height: 31px;
    width: 31px;
  }
  .work-brand strong {
    font-size: 16px;
  }
  .work-brand strong span {
    font-size: 10px;
  }
  .work-header .role-select {
    font-size: 11px;
    min-width: 78px;
    padding: 6px 4px;
  }
  .admin-breadcrumb {
    font-size: 11px;
    gap: 7px;
  }
  .provider-workspace {
    padding: 22px 16px 96px;
  }
  .provider-page-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 20px;
  }
  .provider-page-title h1 {
    font-size: 21px;
    line-height: 1.5;
  }
  .provider-page-title p {
    font-size: 10px;
    margin-bottom: 7px;
  }
  .provider-page-title > div > span {
    font-size: 11px;
    margin-top: 6px;
  }
  .provider-page-title > .row {
    width: 100%;
    justify-content: space-between;
  }
  .provider-switch {
    padding: 8px 11px;
  }
  .provider-switch select {
    font-size: 12px;
  }
  .availability-switch {
    font-size: 12px;
    padding: 9px 12px;
  }
  .provider-welcome {
    padding: 23px 20px;
    min-height: 215px;
    border-radius: 13px;
    margin-bottom: 18px;
  }
  .welcome-label {
    font-size: 10px;
    letter-spacing: 0;
    max-width: 190px;
    display: block;
  }
  .provider-welcome h2 {
    font-size: 22px;
    max-width: 190px;
    line-height: 1.6;
    margin: 11px 0 9px;
  }
  .provider-welcome p {
    font-size: 10px;
    max-width: 185px;
  }
  .provider-welcome .button {
    margin-top: 14px;
    padding: 8px 12px !important;
    font-size: 11px !important;
  }
  .welcome-art {
    transform: scale(0.57);
    transform-origin: right center;
    right: -11px;
    top: 13px;
  }
  .work-metrics,
  body[data-role="admin"] .work-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 18px;
  }
  .work-metric,
  body[data-role="admin"] .work-metric {
    padding: 16px;
    border-radius: 10px;
  }
  .work-metric > div > span {
    font-size: 11px;
  }
  .work-metric i {
    width: 28px;
    height: 28px;
  }
  .work-metric i svg {
    width: 16px;
  }
  .work-metric > strong,
  body[data-role="admin"] .work-metric strong {
    font-size: 26px;
    margin: 10px 0;
  }
  .work-metric em {
    font-size: 12px;
  }
  .work-metric > small,
  body[data-role="admin"] .work-metric small {
    font-size: 9px;
  }
  .work-columns,
  .admin-charts {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .work-panel,
  body[data-role="admin"] .work-panel {
    border-radius: 10px;
    margin-bottom: 18px;
  }
  .work-panel-head,
  body[data-role="admin"] .work-panel-head {
    padding: 18px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .work-panel-head h2,
  body[data-role="admin"] .work-panel-head h2 {
    font-size: 15px;
  }
  .work-panel-head p {
    font-size: 10px;
  }
  .work-text-button {
    font-size: 10px;
  }
  .compact-order {
    margin: 0 16px;
    padding: 17px 0;
    gap: 12px;
    flex-wrap: wrap;
  }
  .compact-time {
    min-width: 48px;
    gap: 6px;
  }
  .compact-time strong {
    font-size: 17px;
  }
  .compact-time span {
    font-size: 9px;
  }
  .compact-content .row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .compact-content h3 {
    font-size: 12px;
    line-height: 1.6;
  }
  .compact-content p {
    font-size: 10px;
  }
  .compact-content small {
    font-size: 9px;
  }
  .compact-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 16px;
  }
  .compact-action strong {
    font-size: 16px;
  }
  .status-pill {
    font-size: 10px;
  }
  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 12px 15px;
    gap: 7px;
  }
  .quick-grid button {
    padding: 14px 5px;
    font-size: 10px;
  }
  .quick-grid svg {
    width: 23px;
  }
  .provider-identity {
    display: grid;
    grid-template-columns: 52px 1fr;
    text-align: left;
    column-gap: 15px;
    padding: 0 18px 19px;
    align-items: center;
  }
  .provider-identity .avatar {
    grid-row: 1/4;
    width: 48px;
    height: 48px;
    margin: 0;
  }
  .provider-identity h3 {
    font-size: 16px;
  }
  .provider-identity p {
    font-size: 11px;
    margin: 6px 0;
  }
  .provider-identity .status-pill {
    justify-self: start;
  }
  .identity-stats {
    padding: 15px 0;
  }
  .sop-grid {
    padding: 0 16px 18px;
    gap: 8px;
  }
  .sop-grid > div {
    padding: 12px 9px;
  }
  .sop-grid strong {
    font-size: 11px;
  }
  .sop-grid p {
    font-size: 10px;
  }
  .work-tip {
    font-size: 11px;
    padding: 13px 15px;
  }
  .work-bottom-note {
    font-size: 10px;
    line-height: 1.9;
  }
  .work-bottom-note button {
    font-size: 10px;
    display: block;
    margin: 7px auto 0;
  }
  .work-filters {
    padding: 0 16px 17px;
    gap: 9px;
  }
  .work-input {
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }
  .work-filters input,
  .work-filters select {
    font-size: 12px;
    min-height: 40px;
  }
  .work-filters input[type="date"] {
    flex: 1;
    min-width: 135px;
  }
  .work-filters select {
    flex: 1;
    max-width: none;
    min-width: 90px;
  }
  .work-filters .button {
    min-height: 38px !important;
  }
  .work-order-cards {
    padding: 0 13px 17px;
  }
  .work-order-cards .order-info h3 {
    font-size: 13px;
  }
  .work-order-cards .order-top {
    font-size: 9px;
  }
  .work-order-cards .order-actions {
    justify-content: flex-start;
  }
  .schedule-board {
    padding: 0 16px 20px;
    grid-template-columns: repeat(7, 105px);
    gap: 10px;
  }
  .slot {
    min-height: 75px;
  }
  .schedule-board header strong {
    font-size: 13px;
  }
  .work-empty {
    padding: 30px 16px;
  }
  .work-empty p {
    font-size: 11px;
  }
  .admin-workspace {
    padding: 21px 16px 90px;
  }
  .admin-page-title {
    align-items: flex-start;
    gap: 17px;
    flex-direction: column;
    margin-bottom: 18px;
  }
  .admin-page-title h1 {
    font-size: 23px;
  }
  .admin-page-title p {
    font-size: 11px;
    line-height: 1.8;
  }
  .admin-page-title > .row {
    width: 100%;
    justify-content: space-between;
  }
  .admin-page-title .button {
    font-size: 11px !important;
  }
  .admin-page-title select {
    font-size: 11px;
    padding: 8px 9px;
    min-height: 35px;
  }
  .admin-notice {
    font-size: 10px;
    padding: 11px 12px;
    gap: 7px;
    margin-bottom: 18px;
  }
  .admin-notice button {
    display: none;
  }
  .admin-notice > svg {
    width: 15px;
    flex-shrink: 0;
  }
  .admin-todos {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 4px;
    margin-bottom: 18px;
    gap: 12px 0;
  }
  .admin-todos button {
    padding: 2px 12px;
    gap: 8px;
  }
  .admin-todos button:nth-child(even) {
    border-left: 1px solid #edf0f7;
  }
  .admin-todos button span {
    font-size: 11px;
  }
  .admin-todos button > svg:first-child {
    display: block;
    width: 15px;
  }
  .chart-wrap {
    height: 170px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .chart-x {
    font-size: 9px;
    padding: 4px 28px 21px 50px;
  }
  .service-bars {
    padding: 0 18px 22px;
  }
  .table-pagination {
    padding: 14px 15px;
    font-size: 10px;
  }
  .work-table {
    min-width: 660px;
  }
  .work-table td,
  .work-table th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .work-table td small {
    font-size: 10px;
  }
  .admin-footer {
    font-size: 9px;
    gap: 12px;
    line-height: 1.8;
  }
  .staff-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 18px;
    gap: 13px;
  }
  .staff-card {
    padding: 18px;
  }
  .staff-card p {
    font-size: 12px;
  }
  .staff-card .tag {
    font-size: 11px;
  }
  .staff-card .button {
    font-size: 12px !important;
  }
  .review-row {
    padding: 18px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .review-row > div {
    min-width: calc(100% - 65px);
  }
  .review-row h3 {
    font-size: 13px;
  }
  .review-row p {
    font-size: 11px;
  }
  .review-row small {
    font-size: 10px;
  }
  .review-row > .button {
    margin-left: auto;
  }
  .service-management {
    padding: 0 16px 8px;
  }
  .service-management article {
    padding: 19px 0;
    gap: 12px;
  }
  .service-management-body {
    min-width: calc(100% - 60px);
  }
  .service-management-body h3 {
    font-size: 13px;
  }
  .service-management-body p {
    font-size: 11px;
  }
  .service-management-body .small {
    font-size: 10px;
  }
  .case-tabs {
    padding: 0 16px 13px;
    gap: 6px;
  }
  .case-tabs button {
    font-size: 11px;
    padding: 8px 12px;
  }
  .case-card {
    padding: 18px 16px;
  }
  .case-card h3 {
    font-size: 13px;
  }
  .case-card h3 small {
    display: block;
    margin: 5px 0 0;
    font-size: 10px;
  }
  .case-card .row {
    align-items: flex-start;
    gap: 8px;
  }
  .case-card p {
    font-size: 12px;
  }
  .case-meta {
    font-size: 10px;
    line-height: 1.8;
  }
  .risk-card {
    padding: 18px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .risk-card > div {
    min-width: calc(100% - 54px);
  }
  .risk-card .button {
    margin-left: auto;
  }
  .risk-card h3 {
    font-size: 13px;
    line-height: 1.7;
  }
  .risk-card .row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .risk-card p {
    font-size: 11px;
  }
  .audit-list {
    padding: 0 16px 18px;
  }
  .audit-list > div {
    gap: 10px;
    flex-wrap: wrap;
  }
  .audit-list time {
    font-size: 10px;
  }
  .audit-list p {
    font-size: 11px;
    min-width: 100%;
    padding-left: 16px;
    overflow-wrap: anywhere;
  }
  body:not([data-role="user"]) #toast {
    bottom: 88px;
  }
  body:not([data-role="user"]) .dialog-content {
    padding: 18px;
  }
  body:not([data-role="user"]) .dialog-footer {
    gap: 10px;
  }
  body:not([data-role="user"]) .dialog-footer .small {
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  body[data-role="user"] .container {
    padding: 0 14px;
  }
  body[data-role="user"] .consumer-hero {
    padding: 21px 16px;
  }
  body[data-role="user"] .hero h1 {
    font-size: 28px;
  }
  body[data-role="user"] .hero-label {
    font-size: 10px;
  }
  body[data-role="user"] .floating-card {
    min-width: 228px;
    padding: 11px;
  }
  body[data-role="user"] .floating-card strong {
    font-size: 10px;
  }
  body[data-role="user"] .hero-photo {
    height: 216px;
  }
  body[data-role="user"] .consumer-scenarios button {
    font-size: 10px;
    padding: 8px;
  }
  body[data-role="user"] .section-head h2 {
    font-size: 19px;
  }
  body[data-role="user"] .category-card p {
    font-size: 9px;
  }
  body[data-role="user"] .category-phase {
    font-size: 8px;
  }
  body[data-role="user"] .card-content {
    padding: 10px 8px;
  }
  body[data-role="user"] .card-title {
    font-size: 12px;
  }
  body[data-role="user"] .card-meta {
    font-size: 9px;
  }
  body[data-role="user"] .card-tags .tag {
    font-size: 8px;
  }
  body[data-role="user"] .card-provider {
    font-size: 9px;
  }
  body[data-role="user"] .card-price .price {
    font-size: 20px;
  }
  body[data-role="user"] .card-price .text-button {
    font-size: 9px;
  }
  .provider-page-title h1 {
    font-size: 19px;
  }
  .welcome-art {
    transform: scale(0.46);
    right: -11px;
    top: 17px;
  }
  .provider-welcome h2 {
    font-size: 20px;
    max-width: 170px;
  }
  .provider-welcome p {
    max-width: 155px;
  }
  .welcome-label {
    font-size: 9px;
  }
  .work-metric {
    padding: 14px;
  }
  .work-metric > div > span {
    font-size: 10px;
  }
  .work-metric i {
    width: 25px;
    height: 25px;
  }
  .admin-todos button span {
    font-size: 10px;
  }
  .admin-todos button > svg:first-child {
    display: none;
  }
}

/* 原图保存在本地；缩略图适配卡片，大图完整展示素材与水印。 */
.hero-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  border-radius: 18px 60px 18px 18px;
}
.hero-photo-button img {
  display: block;
  width: 100%;
}
.hero-note,
.hero-caption {
  pointer-events: none;
}
.portrait-avatar {
  overflow: hidden;
  flex-shrink: 0;
}
.portrait-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.card-provider-name {
  padding: 4px 0;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.companion-section {
  padding-top: 5px;
}
.photo-section-note {
  font-size: 11px;
  color: var(--muted);
}
.companion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 10px;
}
.companion-card {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.companion-cover {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  aspect-ratio: 1.08;
  overflow: hidden;
  background: #eee9e2;
  text-align: left;
}
.companion-cover img {
  height: 100%;
  object-position: center 25%;
  transition: transform 0.25s;
}
.companion-cover:hover img,
.lifestyle-photo:hover img {
  transform: scale(1.025);
}
.companion-cover-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 45px 20px 17px;
  background: linear-gradient(transparent, #12251ec4);
  color: white;
  font-size: 14px;
}
.companion-card-body {
  padding: 20px;
}
.companion-card-body h3 {
  font-size: 21px;
}
.companion-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.companion-interests span {
  padding: 5px 8px;
  background: #f5f5ef;
  border-radius: 5px;
  color: #687569;
  font-size: 11px;
}
.companion-more {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 600;
}
.companion-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 25px;
  align-items: start;
}
.companion-profile-photo {
  position: relative;
  width: 100%;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #eee9e2;
}
.companion-profile-photo img {
  max-height: 470px;
  aspect-ratio: 3 / 4;
  object-position: center 25%;
}
.companion-profile-photo > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 12px;
  color: #697368;
}
.companion-profile-copy h3 {
  font-size: 28px;
  margin-top: 10px;
}
.companion-profile-copy p {
  font-size: 13px;
  color: #657269;
  margin-top: 14px;
  line-height: 1.8;
}
.companion-profile-copy p.companion-profile-title {
  margin-top: 6px;
  color: #9b735e;
}
.companion-profile-note {
  font-size: 11px;
  line-height: 1.8;
  color: #73776d;
  padding: 10px 12px;
  background: #f7f7f1;
  border-radius: 8px;
}
.companion-profile-copy h4 {
  margin: 20px 0 10px;
  font-size: 14px;
}
.companion-offers > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.companion-offers strong,
.companion-offers small {
  display: block;
  font-size: 13px;
}
.companion-offers small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.companion-detail-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.companion-detail-row > span:not(.avatar) {
  flex: 1;
}
.companion-detail-row small,
.companion-detail-row em {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  font-style: normal;
  line-height: 1.6;
}
.companion-detail-row em {
  color: var(--orange-dark);
  font-size: 10px;
}
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.lifestyle-photo {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 13px;
  background: #e8e4dc;
  text-align: left;
}
.lifestyle-photo img {
  height: 100%;
  object-position: center 25%;
  transition: transform 0.25s;
}
.lifestyle-photo > span {
  position: absolute;
  inset: auto 0 0;
  display: block;
  padding: 36px 11px 13px;
  background: linear-gradient(transparent, #17251dc4);
  color: white;
  font-size: 11px;
}
.lifestyle-photo small {
  display: block;
  font-size: 10px;
  margin-bottom: 4px;
  color: #ffffffb8;
}
.photo-viewer {
  margin: 0;
  text-align: center;
}
.photo-viewer img {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  background: #f1f0eb;
  border-radius: 12px;
}
.photo-viewer figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
@media (max-width: 1000px) {
  .companion-grid {
    gap: 15px;
  }
  .companion-card-body {
    padding: 15px;
  }
  .lifestyle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .hero-photo-button {
    border-radius: 12px 42px 12px 12px;
  }
  .companion-section .section-head {
    align-items: flex-start;
  }
  .photo-section-note {
    display: none;
  }
  .companion-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    gap: 12px;
  }
  .companion-card {
    scroll-snap-align: start;
  }
  .companion-card-body h3 {
    font-size: 18px;
  }
  .companion-profile {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .companion-profile-photo img {
    max-height: 340px;
    aspect-ratio: 1;
  }
  .companion-profile-copy h3 {
    font-size: 24px;
  }
  .provider-choice .portrait-avatar {
    width: 36px;
    height: 36px;
  }
  .provider-choice {
    flex-wrap: wrap;
  }
  .lifestyle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .photo-viewer img {
    max-height: 62vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .companion-cover img,
  .lifestyle-photo img {
    transition: none;
  }
}
