:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #243a33;
  background: #f4f6f3;
  font-synthesis: none;
  --green: #155b48;
  --muted: #7d8b82;
  --line: #e4eae4;
  --soft: #eef4ed;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--green);
  text-decoration: none;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: inherit;
  border-radius: 9px;
  padding: 10px 16px;
  transition: background 0.15s;
}
button:hover {
  background: #f1f6f0;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: #104a3a;
}
.danger {
  color: #b24840;
}
.quiet {
  padding: 7px 11px;
  font-size: 13px;
}
.shell {
  display: grid;
  grid-template-columns: 234px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  width: 234px;
  height: 100vh;
  padding: 29px 19px 20px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0 9px 34px;
}
.brand img {
  width: 39px;
  height: 39px;
}
.brand strong {
  font-size: 17px;
  letter-spacing: 0.04em;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-top: 5px;
}
.nav-label {
  font-size: 11px;
  color: #95a197;
  padding: 0 15px;
  margin: 9px 0 13px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav button {
  text-align: left;
  border: 0;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 15px;
  color: #75837a;
  background: transparent;
  font-size: 14px;
}
.nav button.active {
  background: #eaf3e9;
  color: #155b48;
  font-weight: 600;
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.sidebar-bottom {
  margin-top: auto;
  background: #f3f6ef;
  border-radius: 12px;
  padding: 16px 13px;
  color: #627362;
  font-size: 12px;
  line-height: 1.8;
}
.sidebar-bottom strong {
  color: #3e573f;
  display: block;
  margin-bottom: 4px;
}
.sidebar-bottom a {
  display: block;
  margin-top: 9px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 83px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
}
.crumb {
  font-size: 12px;
  color: #98a399;
}
.crumb b {
  font-weight: 500;
  color: #52675a;
  margin-left: 15px;
}
.user {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
}
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #e9f0e4;
  border-radius: 50%;
  color: #53714f;
}
.user button {
  border: 0;
  padding: 5px;
  color: var(--muted);
  font-size: 12px;
}
.workspace {
  padding: 35px 38px 40px;
  max-width: 1550px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.heading h1 {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin: 0 0 9px;
}
.heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 5px 8px;
  background: #edf4eb;
  color: #4d7655;
  font-size: 11px;
  white-space: nowrap;
}
.tag:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: currentColor;
}
.tag.warn {
  background: #fcf2df;
  color: #a47b34;
}
.tag.gray {
  background: #f0f2ef;
  color: #889286;
}
.tag.red {
  background: #fff0ec;
  color: #ad5c4d;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 25px;
}
.ledger-metrics {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.ledger-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}
.ledger-filter > div {
  flex: 1 1 155px;
  min-width: 0;
}
.ledger-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 12px;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #859184;
  font-size: 12px;
}
.metric-top .icon {
  color: #94a58c;
}
.metric-value {
  font-size: 32px;
  letter-spacing: -0.05em;
  color: #273d31;
  margin: 17px 0 9px;
  font-weight: 600;
}
.metric-note {
  font-size: 11px;
  color: #9ba596;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  margin-bottom: 22px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.card-head h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.card-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
}
.card-body {
  padding: 24px;
}
.card-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.callout {
  background: #eaf1e5;
  border: 1px solid #dee8d6;
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}
.callout .icon {
  color: #5f8051;
  margin-top: 2px;
}
.callout strong {
  font-size: 14px;
  font-weight: 600;
}
.callout p {
  font-size: 12px;
  line-height: 1.9;
  color: #74816b;
  margin: 7px 0 0;
}
.callout a {
  display: inline-block;
  font-size: 12px;
  margin-top: 11px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  width: 230px;
  background: #fafcf9;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  background: #fafbf8;
  color: #8c998d;
  font-size: 11px;
  font-weight: 500;
  padding: 14px 23px;
  white-space: nowrap;
}
td {
  border-top: 1px solid #edf0eb;
  padding: 18px 23px;
  vertical-align: middle;
  line-height: 1.65;
}
td strong {
  font-weight: 600;
  font-size: 13px;
}
td small {
  display: block;
  color: #99a296;
  font-size: 11px;
  margin-top: 3px;
}
.shop-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-initial {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f0f3e9;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #638052;
}
.row-actions {
  display: flex;
  gap: 6px;
}
.row-actions button {
  border: 0;
  font-size: 12px;
  color: var(--green);
  padding: 6px 8px;
  background: #f3f7ef;
}
.empty {
  padding: 57px 20px;
  text-align: center;
}
.empty-icon {
  background: #f0f4ea;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: #7e9874;
}
.empty h3 {
  font-weight: 550;
  font-size: 15px;
  margin: 0 0 9px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0 auto 18px;
  max-width: 420px;
}
.steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
}
.step {
  display: flex;
  gap: 13px;
  font-size: 12px;
  line-height: 1.7;
}
.step:before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  background: #f1f5ec;
  color: #79916f;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 11px;
}
.step strong {
  font-weight: 550;
}
.step p {
  margin: 4px 0 0;
  color: #8b9786;
  font-size: 11px;
}
.status-list {
  display: grid;
  gap: 0;
}
.status-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
}
.status-row:last-child {
  border: 0;
}
.status-row small {
  display: block;
  font-size: 11px;
  color: #95a18e;
  margin-top: 5px;
}
.mono {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  word-break: break-all;
}
.muted {
  color: var(--muted);
}
.footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #a0aa9b;
  padding: 13px 1px;
  gap: 15px;
}
.shop-select {
  max-width: 260px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  color: #5b715a;
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .full {
  grid-column: 1/-1;
}
label {
  font-size: 12px;
  color: #6f806f;
  display: block;
  margin-bottom: 8px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dce4d9;
  border-radius: 7px;
  padding: 11px 12px;
  background: white;
  color: #354b38;
  font-size: 13px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #759a72;
  outline: 2px solid #e1eedb;
}
textarea {
  resize: vertical;
  min-height: 88px;
}
input[type="checkbox"] {
  width: auto;
  display: inline-block;
}
input[type="color"] {
  height: 44px;
  padding: 4px;
  cursor: pointer;
}
.field-note {
  font-size: 11px;
  color: #9aa591;
  margin-top: 6px;
  line-height: 1.6;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}
.form-error {
  color: #af4f43;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 12px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  background: #164c3d;
  color: #e4eddf;
  padding: 60px max(45px, 10vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.auth-aside .brand {
  position: absolute;
  top: 44px;
  left: 42px;
  margin: 0;
}
.auth-aside .brand img {
  width: 39px;
  height: 39px;
}
.auth-aside .brand small {
  color: #8eaf9d;
}
.auth-aside h1 {
  font-size: 39px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
}
.auth-aside p {
  font-size: 13px;
  color: #a3bcae;
  line-height: 2;
}
.auth-art {
  margin-top: 35px;
  border: 1px solid #527a61;
  border-radius: 14px;
  padding: 25px;
  background: #225744;
}
.auth-art .line {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  font-size: 12px;
  color: #c6d7c3;
  border-bottom: 1px solid #416a50;
}
.auth-art .line:last-child {
  border: 0;
}
.auth-art b {
  font-weight: 400;
  color: #93ba8b;
}
.auth-form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.auth-box {
  width: 360px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #9ca98f;
  margin-bottom: 14px;
}
.auth-box h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 13px;
}
.auth-box > p {
  font-size: 12px;
  color: #8a9782;
  line-height: 1.9;
  margin-bottom: 29px;
}
.auth-box label {
  margin-top: 18px;
}
.auth-box .primary {
  margin-top: 26px;
  width: 100%;
  padding: 12px;
}
.auth-caption {
  font-size: 10px;
  text-align: center;
  color: #a6ae9f;
  margin-top: 23px;
  line-height: 1.9;
}
.boot {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #75856d;
  font-size: 13px;
}
.boot img {
  width: 34px;
  height: 34px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 27px;
  width: min(580px, calc(100vw - 30px));
  color: #334b36;
  max-height: 90vh;
}
dialog::backdrop {
  background: #162b2266;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 20px;
  margin: 0 0 10px;
}
dialog > p {
  font-size: 12px;
  color: #8a9881;
  line-height: 1.8;
  margin: 0 0 24px;
}
dialog .form-grid {
  margin-top: 22px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #203e2e;
  color: white;
  box-shadow: 0 7px 25px #273e2520;
  padding: 13px 22px;
  font-size: 12px;
  z-index: 5;
  display: none;
  max-width: 90vw;
  line-height: 1.7;
}
.ticket {
  padding: 15px;
  background: #f3f6ee;
  border: 1px dashed #cddbc1;
  border-radius: 8px;
  margin: 18px 0;
  word-break: break-all;
  font-size: 12px;
  line-height: 1.8;
}
.filters {
  display: flex;
  gap: 7px;
}
.filters button {
  font-size: 11px;
  border: 0;
  padding: 7px 11px;
}
.filters button.active {
  background: #edf4e7;
  color: #3d6b3e;
}
.notice {
  font-size: 12px;
  line-height: 1.9;
  padding: 15px 18px;
  border-radius: 8px;
  background: #fff8e9;
  color: #9f824a;
  margin-bottom: 20px;
}
.version {
  font-size: 10px;
  color: #a7b09e;
}
.mobile-brand {
  display: none;
}
.audit-action {
  font-size: 12px;
  font-family: Consolas, monospace;
}
.checklist {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 2.3;
  color: #7d8c74;
}
.code {
  font-family: Consolas, monospace;
  background: #f5f7f2;
  padding: 13px;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 11px;
  line-height: 1.8;
}
.card button + .code {
  margin-top: 15px;
}
@media (min-width: 1700px) {
  .workspace {
    padding-top: 42px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .sidebar {
    width: 205px;
  }
  .workspace {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    padding: 50px;
  }
  .auth-aside h1 {
    font-size: 30px;
  }
  .heading {
    align-items: flex-start;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    width: 180px;
  }
  td,
  th {
    padding: 15px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    margin: 0 0 14px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
    gap: 4px;
  }
  .nav button {
    white-space: nowrap;
    padding: 10px;
    font-size: 12px;
    gap: 6px;
  }
  .nav .icon {
    width: 15px;
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .workspace {
    padding: 22px 16px;
  }
  .heading {
    flex-direction: column;
    gap: 16px;
  }
  .heading h1 {
    font-size: 22px;
  }
  .heading .actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px;
  }
  .metric-value {
    font-size: 28px;
  }
  .card-head {
    padding: 17px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .card-body {
    padding: 18px;
  }
  .toolbar {
    width: 100%;
  }
  .search {
    width: 100%;
  }
  .footer {
    flex-direction: column;
  }
  .auth {
    display: block;
  }
  .auth-aside {
    display: none;
  }
  .auth-form {
    padding: 50px 24px;
    min-height: 100vh;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .row-actions {
    min-width: 120px;
  }
  .callout {
    padding: 18px;
  }
  .user {
    gap: 8px;
  }
  .crumb {
    font-size: 11px;
  }
  .shop-select {
    max-width: 200px;
  }
  dialog {
    padding: 22px;
  }
}
.merchant-tabs {
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.merchant-checks {
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow: auto;
  margin-bottom: 22px;
  padding: 14px;
  background: #f5f8f1;
  border-radius: 9px;
}
.merchant-checks label {
  margin: 0;
  padding: 4px;
}
.card-grid > div,
.card {
  min-width: 0;
}
.user > span {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .topbar .tag {
    display: none;
  }
  .crumb {
    white-space: nowrap;
  }
  .topbar {
    gap: 12px;
  }
  .topbar .user {
    font-size: 11px;
  }
  .topbar .avatar {
    width: 26px;
    height: 26px;
  }
}
.row-actions button.danger {
  color: #b24840;
  background: #fff1ec;
}
.primary.destructive {
  color: white;
  background: #ac4c3d;
  border-color: #ac4c3d;
}
.primary.destructive:hover {
  background: #943f32;
}

/* 0.2.0：表单补充、图片上传、上线检查、店铺装修与手机预览 */
.toggle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcf9;
  cursor: pointer;
}
.toggle input {
  margin-top: 2px;
}
.toggle b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #354b38;
}
.toggle small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.6;
  color: #95a18e;
}
.form-grid.compact {
  gap: 12px;
  margin-top: 0;
}
.strike {
  text-decoration: line-through;
}
.image-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.image-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px dashed #cfdacb;
  border-radius: 10px;
  background: #f6f9f3;
  color: #9aab92;
}
.image-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.thumb-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1f2f26a8;
}
.thumb-actions button {
  border: 0;
  border-radius: 0;
  padding: 2px 9px;
  background: transparent;
  color: #fff;
  font-size: 12px;
}
.thumb-actions .cover {
  padding: 3px 7px;
  color: #fff;
  font-size: 10px;
}
.image-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 84px;
  height: 84px;
  padding: 0;
  border: 1px dashed #cfdacb;
  background: #fafcf8;
  color: #6f8a68;
  font-size: 11px;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f3e9;
  color: #638052;
  font-size: 15px;
}
.checks {
  display: grid;
  padding-top: 10px;
  padding-bottom: 10px;
}
.check-row {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.check-row:last-child {
  border-bottom: 0;
}
.check-row strong {
  font-size: 13px;
  font-weight: 600;
}
.check-row small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.6;
  color: #95a18e;
}
.check-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
}
.check-mark .icon {
  width: 14px;
  height: 14px;
}
.check-mark.ok {
  background: #e7f2e4;
  color: #3f7a46;
}
.check-mark.todo {
  background: #fcf2df;
  color: #a47b34;
}
.check-mark.todo .icon {
  stroke-width: 7;
}
.check-mark.manual {
  background: #eef1f6;
  color: #5c6f8f;
}
.steps .step button {
  margin-top: 8px;
}
.decorate {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 22px;
}
.decorate-preview {
  position: sticky;
  top: 20px;
}
.decorate-editor {
  display: grid;
  gap: 14px;
}
.block-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.block-head strong {
  font-size: 13px;
}
.block-head small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #95a18e;
}
.block-body {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}
.block-body label {
  margin: 6px 0 0;
}
.block-body > button {
  justify-self: start;
}
.item-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f8faf6;
}
.item-row .grow {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.item-row .grow label:first-child {
  margin-top: 0;
}
.mini-image {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 84px;
}
.mini-image > img,
.mini-image > .icon {
  width: 84px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3ea;
}
.mini-image > .icon {
  padding: 18px 28px;
  color: #9aab92;
}
.pick-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px 14px;
  max-height: 220px;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  background: #f8faf6;
}
.pick-list label {
  margin: 0;
  font-size: 12px;
  color: #48604b;
}
.block-add {
  display: flex;
  gap: 10px;
  padding: 16px;
  border: 1px dashed #cfdacb;
  border-radius: 13px;
  background: #fff;
}
.block-add select {
  flex: 1;
}
.phone {
  --pv-theme: #155b48;
  --pv-light: #e8efed;
  --pv-ink: #155b48;
  --pv-on: #fff;
  display: flex;
  flex-direction: column;
  width: 375px;
  max-width: 100%;
  height: 720px;
  overflow: hidden;
  border: 9px solid #1f2b25;
  border-radius: 34px;
  background: #f5f6f4;
  box-shadow: 0 20px 50px #1f2b2522;
  color: #1f2a24;
  font-size: 13px;
}
.pv-bar {
  flex-shrink: 0;
  height: 64px;
  padding: 30px 16px 0;
  background: var(--pv-theme);
  color: var(--pv-on);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pv-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.pv-shop {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 2px 14px;
}
.pv-shop img,
.pv-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: cover;
}
.pv-logo {
  display: grid;
  place-items: center;
  background: var(--pv-theme);
  color: var(--pv-on);
  font-size: 22px;
  font-weight: 600;
}
.pv-shop b {
  font-size: 17px;
}
.pv-shop small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.5;
  color: #5d6862;
}
.pv-notice,
.pv-closed {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
}
.pv-notice {
  background: #fff8ea;
  color: #8a5a12;
}
.pv-notice .icon {
  width: 14px;
  height: 14px;
}
.pv-closed {
  background: #fdeeee;
  color: #b4383c;
}
.pv-banner {
  position: relative;
  height: 170px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 10px;
  background: #dfe7e2;
}
.pv-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pv-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.pv-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff88;
}
.pv-dots i.on {
  background: #fff;
}
.pv-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
}
.pv-nav {
  display: grid;
  gap: 12px 4px;
  text-align: center;
}
.pv-nav.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pv-nav.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.pv-nav img,
.pv-nav .pv-ph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: cover;
}
.pv-nav em {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #5d6862;
}
.pv-ph {
  background: var(--pv-light);
  color: var(--pv-ink);
  font-weight: 600;
}
.pv-section {
  margin-bottom: 14px;
}
.pv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 2px 9px;
}
.pv-head b {
  font-size: 15px;
}
.pv-head small {
  font-size: 11px;
  color: #9aa39e;
}
.pv-products.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.pv-products.list {
  display: grid;
  gap: 9px;
}
.pv-product {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}
.pv-products.list .pv-product {
  display: flex;
  gap: 10px;
  padding: 9px;
}
.pv-cover {
  display: grid;
  place-items: center;
  width: 100%;
  height: 150px;
  object-fit: cover;
  font-size: 26px;
}
.pv-products.list .pv-cover {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 8px;
  font-size: 20px;
}
.pv-info {
  display: grid;
  gap: 6px;
  padding: 8px 10px 10px;
}
.pv-products.list .pv-info {
  align-content: space-between;
  padding: 0;
}
.pv-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pv-price {
  color: var(--pv-ink);
  font-size: 14px;
  font-weight: 600;
}
.pv-price small {
  color: #9aa39e;
  font-size: 10px;
  font-weight: 400;
}
.pv-ad {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  border-radius: 10px;
}
.pv-text b {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.pv-text p {
  margin: 0;
  color: #5d6862;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
}
.pv-empty {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px dashed #e2c98f;
  border-radius: 10px;
  background: #fffaf0;
  color: #a47b34;
  font-size: 11px;
}
.pv-muted {
  padding: 30px 0;
  text-align: center;
  color: #9aa39e;
  font-size: 12px;
}
.pv-tabs {
  display: flex;
  flex-shrink: 0;
  height: 54px;
  border-top: 1px solid #eceeeb;
  background: #fff;
}
.pv-tabs span {
  display: grid;
  flex: 1;
  place-items: center;
  font-size: 11px;
  color: #8a918c;
}
.pv-tabs span.on {
  color: var(--pv-ink);
  font-weight: 600;
}
@media (max-width: 1100px) {
  .decorate {
    grid-template-columns: 1fr;
  }
  .decorate-preview {
    position: static;
  }
  .phone {
    margin: auto;
  }
}
/* 0.3.0：行业与预约方案、预约管理、店员与核销 */
.plan-fields {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.plan-fields:disabled {
  opacity: 0.45;
}
.plan-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f8faf6;
}
.plan-step {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  font-size: 12px;
  color: #48604b;
  line-height: 1.6;
}
.plan-step input {
  margin-top: 3px;
}
.plan-step small {
  display: block;
  color: #a2ac9b;
  font-size: 11px;
}
.plan-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.plan-summary .grow {
  flex: 1;
  min-width: 0;
}
.plan-summary strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.plan-summary small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.segmented button {
  border: 0;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}
.segmented button.active {
  background: var(--green);
  color: #fff;
}
.status-filters {
  flex-wrap: wrap;
  padding: 14px 23px 0;
}
.date-input {
  width: 160px;
  padding: 8px 10px;
}
.hours-grid {
  display: grid;
  gap: 10px;
}
.hours-row {
  display: grid;
  grid-template-columns: 90px 110px 24px 110px;
  gap: 10px;
  align-items: center;
}
.hours-row span {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.hours-day {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 13px;
  color: #354b38;
}
.ff-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 100px minmax(160px, 1.4fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.ff-required {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  white-space: nowrap;
}
.weekday-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px;
  border-radius: 10px;
  background: #f8faf6;
}
.weekday-picks label {
  margin: 0;
  font-size: 13px;
  color: #48604b;
}
.verify-form {
  display: flex;
  gap: 10px;
}
.verify-form input {
  max-width: 200px;
  font-size: 26px;
  letter-spacing: 0.5em;
  text-align: center;
  font-family: Consolas, monospace;
}
.verify-hit {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px dashed #b9cfb6;
  border-radius: 10px;
  background: #f8fbf6;
}
.verify-hit b {
  font-size: 15px;
}
.verify-hit small {
  color: var(--muted);
  font-size: 12px;
}
.verify-hit .form-actions {
  margin-top: 10px;
}
.invite-code {
  margin: 20px 0;
  padding: 18px;
  border: 1px dashed #cddbc1;
  border-radius: 10px;
  background: #f3f6ee;
  font-family: Consolas, monospace;
  font-size: 38px;
  letter-spacing: 0.35em;
  text-align: center;
  color: #1d4a3a;
  user-select: all;
}
.pv-booking {
  display: grid;
  gap: 10px;
}
.pv-booking-item {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pv-booking-item img,
.pv-booking-item .pv-ph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 9px;
  object-fit: cover;
}
.pv-booking-item .pv-name {
  flex: 1;
}
.pv-booking-item em {
  color: var(--pv-ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}
.pv-booking-item i {
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--pv-theme);
  color: var(--pv-on);
  font-size: 11px;
  font-style: normal;
}
.pv-booking-start {
  padding: 8px 0;
  color: var(--pv-ink);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 720px) {
  .plan-summary {
    flex-wrap: wrap;
  }
  .ff-row {
    grid-template-columns: 1fr 1fr;
  }
  .hours-row {
    grid-template-columns: 70px 1fr 18px 1fr;
  }
  .verify-form input {
    max-width: none;
  }
}
.heading .actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.heading .actions button {
  white-space: nowrap;
}
.ff-row input[hidden] {
  display: block;
  visibility: hidden;
}
@media (max-width: 720px) {
  .plan-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .heading .actions {
    justify-content: flex-start;
  }
}
.plan-fields .form-grid {
  margin-top: 17px;
}

/* 0.4.0：新预约模式、场次、两段营业时间、风格设置 */
.hours-row {
  grid-template-columns: 82px 86px 18px 86px 22px 86px 18px 86px;
}
.hours-gap {
  color: var(--muted);
}
.style-card .block-body > label {
  margin-top: 4px;
}
.style-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.style-presets button {
  padding: 8px 16px;
  font-size: 13px;
}
.style-presets button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.style-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.phone .pv-body {
  background: var(--pv-bg, #f5f6f4);
}
.phone .pv-card,
.phone .pv-product,
.phone .pv-ad,
.phone .pv-banner {
  border-radius: var(--pv-radius, 10px);
}
.phone .pv-card,
.phone .pv-product {
  border: var(--pv-card-border, none);
}
.pv-shop.pv-center {
  flex-direction: column;
  text-align: center;
}
.pv-hero {
  position: relative;
  height: 128px;
  margin: -12px -12px 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pv-theme), var(--pv-ink));
}
.pv-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pv-hero-body {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.pv-hero-body img,
.pv-hero-body .pv-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  object-fit: cover;
}
.pv-hero-body b {
  display: block;
  font-size: 15px;
}
.pv-hero-body small {
  display: block;
  font-size: 11px;
  opacity: 0.9;
}
@media (max-width: 720px) {
  .hours-row {
    grid-template-columns: 64px 1fr 14px 1fr;
    row-gap: 6px;
  }
  .hours-gap {
    display: none;
  }
  .hours-row input[data-seg="1"]:first-of-type {
    grid-column: 2;
  }
  .style-fields {
    grid-template-columns: 1fr 1fr;
  }
}
.style-card .item-row .grow .danger {
  display: inline-block;
  width: auto;
  margin-top: 6px;
}

/* 0.5.0：在线收款 */
.pay-fields {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #edf0eb;
}
.pay-fields .pay-toggle {
  align-self: end;
}
.field-note.warn-note {
  font-size: 12px;
  color: #a47b34;
  background: #fcf2df;
  padding: 8px 11px;
  border-radius: 6px;
  margin: 6px 0 12px;
}
/* 商品弹窗里的各门店库存 */
.store-stock table {
  min-width: 0;
}
.store-stock input[type="number"] {
  width: 110px;
  padding: 7px 10px;
}
/* 门店小程序码预览与下载 */
.store-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 0 4px;
}
.store-code img {
  width: 220px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.button-link {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 16px;
}
.button-link.primary {
  color: white;
}
