
:root {
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: #1d2523;
  background: #f7f3ec;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #1d2523;
  --muted: #6e756f;
  --line: #e1ddd4;
  --paper: #fffdf8;
  --soft: #f7f3ec;
  --red: #a3342a;
  --red-dark: #6f211d;
  --green: #2f6f57;
  --green-soft: #e7f0ea;
  --gold: #b68a38;
  --blue: #265b7f;
  --shadow: 0 18px 60px rgba(30, 34, 30, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.prototype-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(47, 111, 87, 0.08), transparent 32%),
    linear-gradient(180deg, #fbf8f2 0%, #f3efe8 100%);
}

.prototype-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
  min-height: 70px;
  padding: 10px clamp(18px, 3vw, 40px);
  overflow-x: auto;
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid rgba(29, 37, 35, 0.08);
  backdrop-filter: blur(18px);
}

.brand-lockup,
.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.brand-lockup strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.brand-lockup small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.app-brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 5px 10px rgba(29, 37, 35, 0.14));
}

.view-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(29, 37, 35, 0.06);
}

.view-switch button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.view-switch button.active {
  color: #fff;
  background: var(--ink);
}

.prototype-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(163, 52, 42, 0.18);
  border-radius: 999px;
  color: var(--red);
  background: #fbebe7;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-screen {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 70px);
}

.admin-sidebar {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  overflow: auto;
  color: #dce6e1;
  background: #17211f;
}

.store-card {
  display: grid;
  grid-template-columns: 42px 1fr 16px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.store-card strong,
.permission-panel strong {
  display: block;
  font-size: 13px;
}

.store-card span {
  display: block;
  margin-top: 3px;
  color: rgba(220, 230, 225, 0.62);
  font-size: 12px;
}

.store-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #10201c;
  background: #d9f1e4;
}

.admin-nav {
  display: grid;
  gap: 15px;
}

.admin-nav-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-nav-heading {
  display: block;
  padding: 0 4px;
  color: rgba(220, 230, 225, 0.56);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.admin-nav-items {
  display: grid;
  gap: 4px;
}

.admin-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: rgba(220, 230, 225, 0.68);
  background: transparent;
  text-align: left;
}

.admin-nav button.active,
.admin-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.permission-panel {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(217, 241, 228, 0.16);
  border-radius: 8px;
  background: rgba(217, 241, 228, 0.08);
}

.permission-panel div {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.permission-panel p {
  margin: 0;
  color: rgba(220, 230, 225, 0.7);
  font-size: 12px;
  line-height: 1.55;
}

.admin-main {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 36px) 44px;
}

.admin-live-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 96, 77, 0.2);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: rgba(15, 96, 77, 0.07);
}

.admin-live-strip.stale,
.admin-live-strip.missing {
  border-color: rgba(163, 52, 42, 0.2);
  border-left-color: var(--red);
  background: rgba(163, 52, 42, 0.07);
}

.admin-live-strip.snapshot {
  border-color: rgba(182, 138, 56, 0.24);
  border-left-color: var(--gold);
  background: rgba(182, 138, 56, 0.08);
}

.admin-live-strip > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-live-strip svg {
  flex: none;
  color: var(--green);
}

.admin-live-strip.stale svg,
.admin-live-strip.missing svg {
  color: var(--red);
}

.admin-live-strip span,
.admin-live-strip strong,
.admin-live-strip small,
.admin-live-strip em {
  min-width: 0;
}

.admin-live-strip strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.admin-live-strip small {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-live-strip em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.admin-live-strip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(29, 37, 35, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-live-strip button.primary-action {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-hero h1,
.site-section h2,
.story-copy h2,
.visit-section h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

.admin-hero h1 {
  max-width: 780px;
  font-size: clamp(34px, 4vw, 52px);
}

.admin-hero p {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-actions button,
.panel-header button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(29, 37, 35, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

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

.admin-actions button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.admin-actions button:disabled,
.panel-header button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

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

.metric-card,
.panel,
.dish-card {
  border: 1px solid rgba(29, 37, 35, 0.09);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 8px 24px rgba(29, 37, 35, 0.05);
}

.metric-card {
  min-height: 132px;
  padding: 16px;
}

.metric-card span,
.work-item span,
.payroll-item span,
.dish-card span,
.section-title span {
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin: 12px 0 18px;
  font-size: 31px;
  line-height: 1;
}

.metric-card div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metric-card b {
  color: var(--green);
  font-size: 13px;
}

.metric-card.warn {
  border-color: rgba(163, 52, 42, 0.24);
  background: #fbf1ee;
}

.metric-card.warn b {
  color: var(--red);
}

.metric-card small {
  color: var(--muted);
}

.admin-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.overview-grid .panel {
  display: flex;
  min-height: 360px;
  flex-direction: column;
}

.overview-grid .table-wrap,
.overview-grid .inventory-list,
.overview-grid .work-list {
  flex: 1;
}

.overview-grid .inventory-list,
.overview-grid .work-list {
  align-content: start;
}

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

.overview-compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content max-content;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8f6f0;
}

.overview-compact-row span,
.overview-compact-row strong,
.overview-compact-row small {
  display: block;
  min-width: 0;
}

.overview-compact-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-compact-row small {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-compact-row b,
.overview-compact-row em {
  color: var(--red);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.overview-grid .detail-disclosure {
  margin-top: auto;
}

.overview-inventory .inventory-row {
  min-height: 70px;
}

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

.panel-wide {
  grid-column: span 1;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-header div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-header h2 {
  margin: 0;
  font-size: 16px;
}

.panel-header button {
  min-height: 32px;
  color: var(--muted);
  font-size: 12px;
}

.detail-disclosure {
  min-width: 0;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.detail-disclosure + .detail-disclosure,
.detail-disclosure + .panel-header,
.table-wrap + .detail-disclosure {
  margin-top: 6px;
}

.detail-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.detail-disclosure summary::-webkit-details-marker {
  display: none;
}

.detail-disclosure-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.detail-disclosure-title svg {
  flex: none;
  color: var(--green);
}

.detail-disclosure-title strong,
.detail-disclosure-title small {
  display: block;
}

.detail-disclosure-title strong {
  color: var(--ink);
  font-size: 15px;
}

.detail-disclosure-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-disclosure-action {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(15, 96, 77, 0.2);
  border-radius: 8px;
  color: var(--green);
  background: rgba(15, 96, 77, 0.07);
  font-size: 12px;
  font-weight: 900;
}

.detail-disclosure-action svg {
  transition: transform 0.18s ease;
}

.detail-disclosure[open] .detail-disclosure-action svg {
  transform: rotate(180deg);
}

.detail-disclosure-body {
  padding: 0 14px 14px;
}

.detail-disclosure-body .table-wrap {
  margin-top: 0;
}

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

.work-item,
.inventory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 12px;
  border-radius: 8px;
  background: #f8f6f0;
}

.work-item strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.work-item em {
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: #e7eef4;
  font-style: normal;
  font-size: 12px;
  text-align: center;
}

.work-item em.danger {
  color: var(--red);
  background: #f7e3df;
}

.sync-stack {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 178px;
}

.sync-ring {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 60%),
    conic-gradient(var(--green) 0 82%, #e4ddd2 82% 100%);
}

.sync-ring span {
  font-size: 26px;
  font-weight: 900;
}

.sync-ring small {
  margin-top: -30px;
  color: var(--muted);
  font-size: 11px;
}

.sync-copy strong,
.ai-gateway strong {
  display: block;
  margin-bottom: 8px;
}

.sync-copy p,
.ai-gateway p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(29, 37, 35, 0.08);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status.ok {
  color: var(--green);
  background: var(--green-soft);
}

.status.note {
  color: var(--blue);
  background: #e7eef4;
}

.status.danger {
  color: var(--red);
  background: #f7e3df;
}

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

.inventory-row strong,
.inventory-row span,
.inventory-row b {
  display: block;
}

.inventory-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.inventory-row > div:last-child {
  display: grid;
  justify-items: end;
  gap: 7px;
  white-space: nowrap;
}

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

.payroll-item {
  min-height: 118px;
  padding: 14px;
  border-radius: 8px;
  background: #f8f6f0;
}

.payroll-item strong,
.payroll-item b,
.payroll-item small {
  display: block;
}

.payroll-item strong {
  margin: 8px 0 12px;
}

.payroll-item b {
  color: var(--green);
  font-size: 20px;
}

.payroll-item small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

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

.scenario-card {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 11px;
  border: 1px solid rgba(29, 37, 35, 0.11);
  border-radius: 8px;
  text-align: left;
  color: var(--ink);
  background: #f8f6f0;
}

.scenario-card:hover,
.scenario-card.active {
  border-color: rgba(44, 101, 75, 0.34);
  background: var(--green-soft);
}

.scenario-card span,
.scenario-card strong,
.scenario-card small {
  display: block;
}

.scenario-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.scenario-card strong {
  font-size: 13px;
  line-height: 1.35;
}

.scenario-card small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.config-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.config-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(29, 37, 35, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: #f8f6f0;
  font-size: 13px;
  font-weight: 800;
}

.config-chip.active {
  color: var(--green);
  border-color: rgba(44, 101, 75, 0.28);
  background: var(--green-soft);
}

.formula-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(44, 101, 75, 0.14);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfaf6;
  font-size: 12.5px;
  line-height: 1.45;
}

.formula-summary strong {
  color: var(--green);
  font-size: 13px;
  white-space: nowrap;
}

.formula-summary span {
  text-align: right;
}

.update-version-strip {
  display: grid;
  grid-template-columns: 1.1fr repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.update-version-strip > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fbfaf6;
}

.update-version-strip span,
.update-control-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.update-version-strip strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.18;
}

.update-version-main strong {
  color: var(--green);
  font-size: 21px;
}

.update-version-strip small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.update-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(44, 101, 75, 0.16);
  border-radius: 8px;
  background: #fbfaf6;
}

.update-control-row > div:first-child {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.update-control-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.update-action-stack {
  display: grid;
  gap: 8px;
}

.update-action-stack button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(29, 37, 35, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font-size: 12.5px;
  font-weight: 900;
}

.update-action-stack button:hover {
  border-color: rgba(44, 101, 75, 0.28);
  color: var(--green);
}

.update-message {
  align-items: start;
}

.inline-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(177, 128, 41, 0.22);
  border-radius: 8px;
  color: #8a651c;
  background: #fbf3de;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.45;
}

.inline-warning svg {
  flex: none;
}

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

.explain-list span {
  padding: 7px 9px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfaf6;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.salary-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(44, 101, 75, 0.16);
  border-radius: 8px;
  background: #fbfaf6;
}

.salary-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.salary-editor-head h3 {
  margin: 3px 0 5px;
  font-size: 20px;
  line-height: 1.1;
}

.salary-editor-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.salary-field {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.salary-field.readonly,
.salary-field.required {
  background: #f8f6f0;
}

.salary-field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.salary-field-title strong {
  font-size: 14px;
}

.salary-field-title span {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 900;
}

.salary-field label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.salary-field input,
.salary-field select,
.salary-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(29, 37, 35, 0.14);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.salary-field textarea {
  min-height: 88px;
  padding-top: 8px;
  resize: vertical;
  line-height: 1.55;
}

.salary-field input:disabled,
.salary-field select:disabled,
.salary-field input[readonly] {
  color: rgba(29, 37, 35, 0.46);
  background: #f1eee7;
}

.salary-field small,
.salary-field p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.salary-field-wide {
  grid-column: 1 / -1;
}

.salary-required-row {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(44, 101, 75, 0.16);
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
}

.salary-required-row b {
  font-size: 13px;
  line-height: 1.2;
}

.salary-required-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.setting-switch {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px !important;
  color: var(--ink) !important;
}

.setting-switch input {
  width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--green);
}

.salary-control-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.salary-fallback {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #f8f6f0;
}

.salary-fallback span,
.salary-fallback small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.salary-cost-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.salary-cost-strip span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.salary-cost-strip b {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.labor-check-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(163, 52, 42, 0.18);
  border-radius: 8px;
  background: #fffaf6;
}

.labor-check-notice {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

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

.labor-check-summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.labor-check-summary span b {
  font-size: 11px;
  line-height: 1.2;
}

.labor-check-summary .danger {
  color: var(--red);
  background: #f7e3df;
}

.labor-check-summary .note {
  color: var(--blue);
  background: #e7eef4;
}

.labor-check-summary .ok {
  color: var(--green);
  background: var(--green-soft);
}

.labor-rule-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.labor-rule-strip span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.35;
}

.labor-rule-strip b {
  color: var(--green);
  font-size: 12px;
  line-height: 1.2;
}

.labor-rule-strip small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

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

.labor-issue-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.labor-issue-card.danger {
  border-color: rgba(163, 52, 42, 0.22);
  background: #fff7f4;
}

.labor-issue-card > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.labor-issue-card strong {
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.3;
}

.labor-issue-card p,
.labor-issue-card small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.salary-editor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.salary-editor-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(29, 37, 35, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font-weight: 900;
}

.salary-editor-actions button:first-child {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.salary-editor-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.salary-editor-actions span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.salary-summary-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.45;
}

.menu-thumb-grid {
  display: grid;
  gap: 10px;
}

.menu-thumb {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 8px;
  border-radius: 8px;
  background: #f8f6f0;
}

.menu-thumb img {
  width: 76px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.menu-thumb strong,
.menu-thumb span {
  display: block;
}

.menu-thumb span {
  margin-top: 5px;
  color: var(--red);
  font-weight: 900;
}

.pos-menu-editor {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
  align-items: start;
}

.pos-menu-list,
.pos-menu-detail {
  min-width: 0;
}

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

.pos-menu-create-box {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px dashed rgba(44, 101, 75, 0.28);
  border-radius: 8px;
  background: #f8f6f0;
}

.pos-menu-create-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid rgba(44, 101, 75, 0.24);
  border-radius: 8px;
  color: var(--green);
  background: #fffdf8;
  font-weight: 900;
}

.pos-menu-create-box button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.pos-menu-create-box small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.pos-menu-sort-box {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.pos-menu-sort-box > div:first-child {
  display: grid;
  gap: 3px;
}

.pos-menu-sort-box strong {
  color: var(--ink);
  font-size: 13px;
}

.pos-menu-sort-box small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.pos-menu-sort-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.pos-menu-sort-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  border: 1px solid rgba(44, 101, 75, 0.2);
  border-radius: 7px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.pos-menu-sort-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.pos-menu-item-list {
  display: grid;
  gap: 8px;
  max-height: 670px;
  overflow: auto;
  padding-right: 2px;
}

.pos-menu-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 66px;
  padding: 8px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  text-align: left;
}

.pos-menu-item:hover,
.pos-menu-item.active {
  border-color: rgba(44, 101, 75, 0.32);
  background: var(--green-soft);
}

.pos-menu-item img,
.pos-menu-letter {
  width: 54px;
  height: 50px;
  border-radius: 6px;
}

.pos-menu-item img {
  object-fit: cover;
}

.pos-menu-letter {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 20px;
  font-weight: 900;
}

.pos-menu-item > span {
  display: block;
  min-width: 0;
}

.pos-menu-item strong,
.pos-menu-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-menu-item strong {
  font-size: 13.5px;
}

.pos-menu-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.pos-menu-item .status {
  justify-self: end;
  white-space: nowrap;
}

.pos-menu-detail {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(44, 101, 75, 0.16);
  border-radius: 8px;
  background: #fbfaf6;
}

.pos-menu-detail .salary-field-grid {
  grid-template-columns: 1fr;
}

.option-helper {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.45;
}

.menu-upload-control input[type='file'] {
  min-height: 38px;
  padding: 7px 9px;
}

.menu-upload-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

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

.option-choice-grid .setting-switch {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 7px;
  background: #f8f6f0;
  font-size: 13px;
  font-weight: 900;
}

.menu-stock-links {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #f8f6f0;
}

.menu-stock-links-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.menu-stock-links-head strong {
  color: var(--ink);
  font-size: 13px;
}

.menu-stock-links-head button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(44, 101, 75, 0.2);
  border-radius: 7px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.menu-stock-links-head button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.menu-stock-link-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 78px 70px 34px;
  gap: 7px;
  align-items: end;
}

.menu-stock-remove {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(166, 42, 34, 0.22);
  border-radius: 7px;
  color: var(--red);
  background: #fff;
}

.menu-pos-preview {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 116px;
  padding: 10px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.menu-pos-preview img,
.menu-pos-preview > span {
  width: 104px;
  height: 92px;
  border-radius: 7px;
}

.menu-pos-preview img {
  object-fit: cover;
}

.menu-pos-preview > span {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 30px;
  font-weight: 900;
}

.menu-pos-preview strong,
.menu-pos-preview small,
.menu-pos-preview b,
.menu-pos-preview em {
  display: block;
  min-width: 0;
}

.menu-pos-preview strong {
  font-size: 17px;
}

.menu-pos-preview small {
  margin: 3px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.menu-pos-preview b {
  color: var(--red);
  font-size: 18px;
}

.menu-pos-preview em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.ai-gateway {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ai-gateway > div {
  min-height: 132px;
  padding: 14px;
  border-radius: 8px;
  background: #f8f6f0;
}

.ai-gateway svg {
  margin-bottom: 12px;
  color: var(--green);
}

.ai-gateway > div:last-child svg {
  color: var(--red);
}

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

.line-task-card {
  display: grid;
  justify-items: start;
  gap: 7px;
  min-width: 0;
  min-height: 132px;
  padding: 13px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  text-align: left;
}

.line-task-card:hover,
.line-task-card.active {
  border-color: rgba(44, 101, 75, 0.34);
  background: var(--green-soft);
}

.line-task-card span,
.line-task-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.line-task-card strong {
  font-size: 15px;
  line-height: 1.2;
}

.line-task-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(44, 101, 75, 0.18);
  border-radius: 8px;
  background: #fbfaf6;
}

.line-task-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.line-task-editor-head > div {
  display: grid;
  gap: 4px;
}

.line-task-editor-head strong {
  font-size: 18px;
  line-height: 1.2;
}

.line-task-editor-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.line-message-field {
  grid-column: 1 / -1;
}

.line-message-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 96px;
  padding: 9px;
  resize: vertical;
  border: 1px solid rgba(29, 37, 35, 0.14);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.line-task-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.line-task-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(44, 101, 75, 0.22);
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 900;
}

.line-task-actions .primary-action {
  color: #fff;
  border-color: transparent;
  background: var(--red);
}

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

.campaign-card {
  display: grid;
  justify-items: start;
  gap: 7px;
  min-width: 0;
  min-height: 142px;
  padding: 13px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  text-align: left;
}

.campaign-card:hover,
.campaign-card.active {
  border-color: rgba(163, 52, 42, 0.28);
  background: #fff5f1;
}

.campaign-card span,
.campaign-card small,
.campaign-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.campaign-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.campaign-ai-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 10px;
  align-items: start;
}

.campaign-profile-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.campaign-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.campaign-profile-head.compact {
  display: grid;
}

.campaign-profile-head div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.campaign-profile-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.campaign-profile-head h3,
.campaign-profile-head p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.campaign-profile-head h3 {
  font-size: 18px;
  line-height: 1.2;
}

.campaign-profile-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.campaign-profile-head button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.campaign-profile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.campaign-profile-meta span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(44, 101, 75, 0.12);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.campaign-profile-meta b {
  color: var(--muted);
  font-size: 11px;
}

.campaign-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.campaign-profile-chips span {
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(163, 52, 42, 0.18);
  border-radius: 999px;
  color: var(--red);
  background: #fff5f1;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.campaign-profile-source {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(29, 37, 35, 0.09);
  border-radius: 8px;
  background: #fbfaf6;
}

.campaign-profile-source b {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.campaign-profile-source code {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.campaign-profile-guardrails {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed rgba(163, 52, 42, 0.24);
  border-radius: 8px;
  background: #fff8f3;
}

.campaign-profile-guardrails strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: 13px;
}

.campaign-profile-guardrails ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.campaign-channel-list {
  display: grid;
  gap: 7px;
}

.campaign-channel-list span {
  display: grid;
  grid-template-columns: minmax(96px, 0.7fr) minmax(0, 0.85fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(29, 37, 35, 0.09);
  border-radius: 8px;
  background: #fbfaf6;
  font-size: 12px;
  line-height: 1.35;
}

.campaign-channel-list b,
.campaign-channel-list em,
.campaign-channel-list small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.campaign-channel-list b {
  font-weight: 900;
}

.campaign-channel-list em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.campaign-channel-list small {
  color: var(--muted);
  font-weight: 800;
}

.campaign-team-role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.campaign-role-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 168px;
  padding: 11px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.campaign-role-card span {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 6px;
  color: #fff;
  background: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.campaign-role-card strong,
.campaign-role-card small,
.campaign-role-card p,
.campaign-role-card em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.campaign-role-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.campaign-role-card small {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.campaign-role-card p,
.campaign-role-card em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.42;
}

.campaign-role-card em {
  align-self: end;
  color: var(--red);
}

.campaign-flow-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.campaign-flow-grid span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(44, 101, 75, 0.12);
  border-radius: 8px;
  background: var(--green-soft);
}

.campaign-flow-grid b,
.campaign-flow-grid strong,
.campaign-flow-grid small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.campaign-flow-grid b {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
}

.campaign-flow-grid strong {
  font-size: 12px;
  line-height: 1.25;
}

.campaign-flow-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

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

.campaign-option-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.campaign-option-head {
  display: grid;
  gap: 4px;
}

.campaign-option-head strong {
  font-size: 14px;
  line-height: 1.2;
}

.campaign-option-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.campaign-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.campaign-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(29, 37, 35, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: #fbfaf6;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.campaign-chip.active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.campaign-plan {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px dashed rgba(163, 52, 42, 0.24);
  border-radius: 8px;
  background: #fff8f3;
}

.campaign-plan.ready {
  border-style: solid;
  background: linear-gradient(180deg, #fff8f3, #fffdf8);
}

.campaign-plan-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
}

.campaign-plan p,
.campaign-plan small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.campaign-plan p {
  color: var(--ink);
}

.campaign-plan ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.campaign-plan li {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(29, 37, 35, 0.09);
  border-radius: 8px;
  background: #fffdf8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.campaign-plan li b {
  color: var(--muted);
  font-size: 11px;
}

.campaign-plan button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.campaign-plan-empty {
  color: var(--muted) !important;
}

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

.campaign-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  text-decoration: none;
}

.campaign-link:hover {
  border-color: rgba(44, 101, 75, 0.22);
  background: #f7fbf2;
}

.campaign-link-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
}

.campaign-link-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.campaign-link-body strong,
.campaign-link-body small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.campaign-link-body strong {
  font-size: 13px;
  line-height: 1.2;
}

.campaign-link-body small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.campaign-link-out {
  color: var(--muted);
}

.campaign-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(163, 52, 42, 0.16);
  border-radius: 8px;
  background: #fbfaf6;
}

.campaign-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.campaign-summary-strip span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.campaign-summary-strip b {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.employee-permission-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: 12px;
  align-items: start;
}

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

.employee-permission-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  text-align: left;
}

.employee-permission-card:hover,
.employee-permission-card.active {
  border-color: rgba(44, 101, 75, 0.32);
  box-shadow: 0 10px 26px rgba(44, 101, 75, 0.11);
}

.employee-permission-card span,
.employee-permission-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.employee-permission-card strong {
  font-size: 17px;
  line-height: 1.2;
}

.employee-permission-card b {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  line-height: 1.1;
}

.employee-permission-editor {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fbfaf6;
}

.permission-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-template-row button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(44, 101, 75, 0.18);
  border-radius: 8px;
  color: var(--green);
  background: #fffdf8;
  font-weight: 900;
}

.permission-template-row button:hover {
  border-color: rgba(44, 101, 75, 0.34);
  background: #f4fbf0;
}

.permission-editor-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(163, 52, 42, 0.16);
  border-radius: 8px;
  color: var(--red);
  background: #fff8f3;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

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

.permission-group-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.permission-group-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.permission-group-head > div {
  min-width: 0;
}

.permission-group-head strong,
.permission-summary-panel strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.permission-group-head span,
.permission-summary-panel span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.permission-group-head b {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
}

.permission-option-list {
  display: grid;
  gap: 7px;
}

.permission-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(29, 37, 35, 0.08);
  border-radius: 8px;
  background: #fbfaf6;
}

.permission-option.checked {
  border-color: rgba(44, 101, 75, 0.26);
  background: #f4fbf0;
}

.permission-option input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--green);
}

.permission-option strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.permission-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.permission-summary-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

.permission-summary-panel > div,
.permission-summary-panel p {
  min-width: 0;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(29, 37, 35, 0.09);
  border-radius: 8px;
  background: #fffdf8;
}

.permission-summary-panel p {
  grid-column: 1 / -1;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

/* ---- 後台子頁面 ---- */
.admin-page {
  display: grid;
  gap: 14px;
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.admin-page-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.12;
  letter-spacing: 0;
}

.admin-page-head > div > p:last-child {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.demo-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(163, 52, 42, 0.18);
  border-radius: 8px;
  color: var(--red);
  background: #f9ece9;
  font-size: 12.5px;
  font-weight: 700;
}

.demo-note svg {
  flex: none;
}

.snapshot-browse-panel {
  margin: 14px 0 16px;
  padding: 16px;
  border: 1px solid rgba(15, 96, 77, 0.2);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 96, 77, 0.08), rgba(179, 35, 30, 0.05)),
    #fffdf8;
  box-shadow: 0 12px 30px rgba(29, 37, 35, 0.07);
}

.snapshot-browse-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.snapshot-browse-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.snapshot-browse-head p:last-child {
  max-width: 820px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.snapshot-browse-head > span {
  flex: none;
  padding: 7px 10px;
  border: 1px solid rgba(15, 96, 77, 0.2);
  border-radius: 8px;
  color: var(--green);
  background: rgba(15, 96, 77, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.snapshot-browse-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.snapshot-browse-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.snapshot-browse-card span,
.snapshot-surface-row small {
  color: var(--muted);
  font-size: 12px;
}

.snapshot-browse-card strong {
  display: block;
  margin: 7px 0 6px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.15;
}

.snapshot-browse-card small {
  display: block;
  color: rgba(29, 37, 35, 0.72);
  line-height: 1.45;
}

.snapshot-surface-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.snapshot-surface-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(160px, 0.8fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
}

.snapshot-surface-row:hover {
  border-color: rgba(15, 96, 77, 0.36);
  background: #fff;
}

.snapshot-surface-row[aria-current="page"] {
  border-color: rgba(15, 96, 77, 0.35);
  background: rgba(15, 96, 77, 0.07);
}

.snapshot-surface-row svg {
  color: var(--green);
}

.snapshot-surface-row strong,
.snapshot-surface-row small,
.snapshot-surface-row em {
  display: block;
}

.snapshot-surface-row strong {
  margin-bottom: 3px;
}

.snapshot-surface-row em {
  overflow: hidden;
  color: var(--red);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.parallel-run-status {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(179, 35, 30, 0.18);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: rgba(179, 35, 30, 0.06);
}

.parallel-run-status.loaded,
.parallel-run-status.live {
  border-color: rgba(15, 96, 77, 0.2);
  border-left-color: var(--green);
  background: rgba(15, 96, 77, 0.07);
}

.parallel-run-status.snapshot {
  border-color: rgba(159, 115, 24, 0.22);
  border-left-color: #9f7318;
  background: rgba(159, 115, 24, 0.08);
}

.parallel-run-status.stale,
.parallel-run-status.missing {
  border-color: rgba(179, 35, 30, 0.18);
  border-left-color: var(--red);
  background: rgba(179, 35, 30, 0.06);
}

.parallel-run-status div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.parallel-run-status strong,
.parallel-run-status span,
.parallel-run-status small {
  min-width: 0;
}

.parallel-run-status strong {
  color: var(--ink);
  font-size: 15px;
}

.parallel-run-status span,
.parallel-run-status small {
  color: var(--muted);
  line-height: 1.5;
}

.parallel-run-status small {
  font-size: 12px;
}

.parallel-run-live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.parallel-run-live-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.09);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
}

.parallel-run-live-grid small,
.parallel-run-live-grid strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.parallel-run-live-grid small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.parallel-run-live-grid strong {
  color: var(--ink);
  font-size: 13px;
}

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

.stat-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(29, 37, 35, 0.09);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 8px 24px rgba(29, 37, 35, 0.05);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 23px;
  line-height: 1;
}

.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.stat-card.warn {
  border-color: rgba(163, 52, 42, 0.28);
  background: #fbf1ee;
}

.stat-card.warn strong {
  color: var(--red);
}

.admin-page-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.admin-page-body-wide {
  grid-template-columns: minmax(0, 1fr);
}

.admin-page-body-wide .checklist {
  position: static;
}

.sandbox-workspace {
  gap: 14px;
}

.sandbox-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(47, 111, 87, 0.18);
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.sandbox-warning svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.sandbox-ledger-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
}

.sandbox-ledger-strip article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.sandbox-ledger-strip span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.sandbox-ledger-strip strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.sandbox-ledger-strip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.sandbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.sandbox-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.sandbox-scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.sandbox-scenario-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
}

.sandbox-scenario-card:hover,
.sandbox-scenario-card.active {
  border-color: rgba(47, 111, 87, 0.34);
  background: #f1f7f3;
}

.sandbox-scenario-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.sandbox-scenario-card strong {
  font-size: 15px;
  line-height: 1.15;
}

.sandbox-scenario-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sandbox-form {
  align-items: stretch;
}

.sandbox-run-result {
  display: grid;
  gap: 11px;
  padding: 15px;
  border: 1px solid rgba(47, 111, 87, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 111, 87, 0.1), transparent 52%),
    #fffdf8;
  box-shadow: 0 16px 32px rgba(29, 37, 35, 0.08);
  animation: sandbox-result-flash 700ms ease-out;
}

.sandbox-run-result.denied {
  border-color: rgba(166, 42, 34, 0.24);
  background:
    linear-gradient(135deg, rgba(166, 42, 34, 0.1), transparent 52%),
    #fffdf8;
}

.sandbox-run-result.pending {
  border-color: rgba(191, 122, 34, 0.24);
  background:
    linear-gradient(135deg, rgba(191, 122, 34, 0.12), transparent 52%),
    #fffdf8;
}

.sandbox-run-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sandbox-run-topline span,
.sandbox-run-outcome span,
.sandbox-reply-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sandbox-run-result > strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.sandbox-run-outcome {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(29, 37, 35, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.sandbox-run-outcome b {
  color: var(--green);
  font-size: 16px;
}

.sandbox-run-result.denied .sandbox-run-outcome b {
  color: var(--red);
}

.sandbox-run-result.pending .sandbox-run-outcome b {
  color: #a86415;
}

.sandbox-reply-preview {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  color: #fffdf8;
  background: #17211f;
}

.sandbox-reply-preview p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.sandbox-run-result ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sandbox-run-result li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.sandbox-run-result li::before {
  content: "•";
  margin-right: 7px;
  color: var(--green);
  font-weight: 900;
}

.sandbox-run-result.denied li::before {
  color: var(--red);
}

.sandbox-run-result.pending li::before {
  color: #a86415;
}

.sandbox-run-result small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

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

.sandbox-compute-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(29, 37, 35, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.sandbox-compute-grid span,
.sandbox-ledger > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sandbox-compute-grid strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.sandbox-compute-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.sandbox-ledger {
  display: grid;
  gap: 8px;
}

.sandbox-ledger .table-wrap {
  margin: 0;
  border-color: rgba(29, 37, 35, 0.08);
  background: #fff;
}

.sandbox-ledger th,
.sandbox-ledger td {
  padding: 9px;
  font-size: 12px;
}

.sandbox-preview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.sandbox-preview-metrics span {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(29, 37, 35, 0.08);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.sandbox-preview-metrics b {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

@keyframes sandbox-result-flash {
  0% {
    transform: translateY(-3px);
    box-shadow: 0 0 0 4px rgba(47, 111, 87, 0.16), 0 16px 32px rgba(29, 37, 35, 0.08);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 16px 32px rgba(29, 37, 35, 0.08);
  }
}

.sandbox-result-card,
.sandbox-payload-preview {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.sandbox-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sandbox-result-head div,
.sandbox-payload-preview {
  min-width: 0;
}

.sandbox-result-head span,
.sandbox-payload-preview span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sandbox-result-head strong,
.sandbox-payload-preview strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  line-height: 1.25;
}

.sandbox-result-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sandbox-result-card li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.sandbox-result-card li svg {
  margin-top: 2px;
  color: var(--green);
}

.sandbox-payload-preview {
  background: #17211f;
}

.sandbox-payload-preview span,
.sandbox-payload-preview small {
  color: rgba(220, 230, 225, 0.68);
}

.sandbox-payload-preview strong {
  color: #fffdf8;
}

.sandbox-payload-preview small {
  font-size: 12px;
  line-height: 1.5;
}

.sandbox-flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.sandbox-flow-strip article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fbf8f2;
}

.sandbox-flow-strip span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.sandbox-flow-strip strong {
  font-size: 13px;
  line-height: 1.3;
}

.sandbox-flow-strip small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.panel-workspace {
  display: grid;
  gap: 12px;
}

.panel-workspace .panel-header {
  margin-bottom: 0;
}

.panel-workspace .panel-header + .panel-header {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(29, 37, 35, 0.08);
}

.report-page-body {
  gap: 14px;
}

.report-chart-panel {
  min-width: 0;
}

.report-hour-list,
.report-product-list,
.report-staff-plan,
.report-service-grid {
  display: grid;
  gap: 10px;
}

.report-line-chart {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.08);
  border-radius: 8px;
  background: #fffdf8;
}

.report-line-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 210px;
}

.report-line-grid {
  stroke: rgba(29, 37, 35, 0.1);
  stroke-width: 1;
}

.report-line-y-label,
.report-line-x-label {
  fill: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.report-line-y-label {
  text-anchor: end;
}

.report-line-x-label {
  text-anchor: middle;
}

.report-line-path {
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.report-line-point {
  fill: #fffdf8;
  stroke: var(--green);
  stroke-width: 3;
}

.report-line-point.peak {
  fill: var(--red);
  stroke: #fffdf8;
  stroke-width: 3;
}

.report-line-callouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.report-line-callouts span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(29, 37, 35, 0.08);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfaf6;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.report-line-callouts strong {
  color: var(--ink);
}

.report-hour-row {
  display: grid;
  grid-template-columns: minmax(132px, 1fr) minmax(124px, auto);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.08);
  border-radius: 8px;
  background: #fffdf8;
}

.report-hour-row.peak {
  border-color: rgba(163, 52, 42, 0.34);
  background: #fbf0ed;
}

.report-hour-time,
.report-product-main,
.report-service-head > div,
.report-staff-plan article > div {
  min-width: 0;
}

.report-hour-time strong,
.report-product-main strong,
.report-service-head strong,
.report-staff-plan strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.report-hour-time span,
.report-product-main span,
.report-service-head span,
.report-staff-plan span,
.report-service-card small,
.report-product-value span,
.report-hour-numbers span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.report-product-meter,
.report-service-bar {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(44, 101, 75, 0.11);
}

.report-product-meter span,
.report-service-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--red));
}

.report-hour-numbers,
.report-product-value {
  display: grid;
  gap: 6px;
  text-align: right;
}

.report-hour-numbers strong,
.report-product-value strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.report-hour-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.report-hour-meta b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(44, 101, 75, 0.08);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.report-staff-plan article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.08);
  border-radius: 8px;
  background: #fbfaf6;
}

.report-staff-plan b {
  flex: none;
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  text-align: center;
}

.report-product-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(118px, 0.28fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.08);
  border-radius: 8px;
  background: #fffdf8;
}

.report-product-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
  font-size: 13px;
}

.report-product-main {
  display: grid;
  gap: 8px;
}

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

.report-service-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(29, 37, 35, 0.08);
  border-radius: 8px;
  background: #fffdf8;
}

.report-service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.report-service-head b {
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

.ops-screen {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.ops-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 168px;
  padding: 22px;
  border: 1px solid rgba(44, 101, 75, 0.14);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #203a2f 0%, #3c7155 58%, #9b342e 100%);
  box-shadow: 0 18px 48px rgba(29, 37, 35, 0.16);
}

.ops-hero span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.ops-hero h1 {
  margin: 8px 0 10px;
  max-width: 780px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 0.98;
}

.ops-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.65;
}

.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.member-card {
  flex: none;
  min-width: 220px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.member-card strong {
  display: block;
  margin: 4px 0 8px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.95;
}

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

.reward-item-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  text-align: left;
}

.reward-item-card img,
.reward-item-letter {
  width: 58px;
  height: 54px;
  border-radius: 7px;
}

.reward-item-card img {
  object-fit: cover;
}

.reward-item-letter {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.reward-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.reward-item-card strong {
  font-size: 17px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-item-card span,
.reward-item-card small,
.ops-signal-card span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.reward-item-card .reward-item-letter {
  color: #fff;
  font-size: 22px;
}

.reward-item-card:hover,
.reward-item-card.active {
  border-color: rgba(44, 101, 75, 0.34);
  box-shadow: 0 10px 28px rgba(44, 101, 75, 0.12);
}

.ops-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.ops-toggle.active {
  color: var(--green);
  background: #fff;
}

.ops-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.ops-flow-step,
.ops-signal-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fbfaf6;
}

.ops-flow-step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 13px;
}

.ops-flow-step strong,
.ops-signal-card strong {
  font-size: 14px;
  line-height: 1.35;
}

.ops-flow-step span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.customer-hero {
  background: linear-gradient(135deg, #17382b 0%, #2c654b 56%, #a3342a 100%);
}

.customer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.customer-phone-card {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 210px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  text-align: center;
}

.customer-phone-card strong {
  font-size: clamp(54px, 8vw, 88px);
  line-height: 0.9;
}

.customer-phone-card small,
.customer-phone-card span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

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

.customer-queue-grid > div {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.customer-queue-grid span,
.customer-queue-grid small,
.customer-note,
.customer-simple-list small,
.customer-reward-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.customer-queue-grid strong {
  color: var(--green);
  font-size: clamp(30px, 5vw, 56px);
  line-height: 0.95;
}

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

.customer-progress span {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfaf6;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.customer-progress .done {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.customer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(44, 101, 75, 0.24);
  border-radius: 8px;
  color: var(--green);
  background: #fff;
  font-weight: 900;
}

.customer-action.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.customer-note {
  margin: 0;
}

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

.customer-simple-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.customer-simple-list span {
  min-width: 0;
  font-weight: 900;
}

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

.customer-reward-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  text-align: left;
}

.customer-reward-image,
.customer-reward-letter {
  width: 100%;
  height: 96px;
  border-radius: 7px;
}

.customer-reward-image {
  object-fit: cover;
}

.customer-reward-letter {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 30px;
  font-weight: 900;
}

.customer-reward-card:hover,
.customer-reward-card.active {
  border-color: rgba(44, 101, 75, 0.34);
  box-shadow: 0 10px 28px rgba(44, 101, 75, 0.12);
}

.customer-reward-card strong {
  font-size: 17px;
  line-height: 1.25;
}

.customer-reward-card span {
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.customer-reward-card .customer-reward-letter {
  color: #fff;
  font-size: 30px;
}

.customer-confirm button {
  width: 100%;
}

.redeem-confirm {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(44, 101, 75, 0.14);
  border-radius: 8px;
  background: #fbfaf6;
}

.redeem-preview-image,
.redeem-preview-letter {
  width: 100%;
  height: 132px;
  border-radius: 8px;
}

.redeem-preview-image {
  object-fit: cover;
}

.redeem-preview-letter {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 36px;
  font-weight: 900;
}

.redeem-confirm span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.redeem-confirm .redeem-preview-letter {
  color: #fff;
  font-size: 36px;
}

.redeem-confirm strong {
  font-size: 22px;
}

.redeem-confirm p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.redeem-confirm button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.redeem-confirm button:disabled {
  cursor: not-allowed;
  color: rgba(29, 37, 35, 0.48);
  background: #ece7dc;
}

.reward-customer-preview {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 116px;
  padding: 10px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.reward-customer-preview img,
.reward-customer-preview > span {
  width: 104px;
  height: 92px;
  border-radius: 7px;
}

.reward-customer-preview img {
  object-fit: cover;
}

.reward-customer-preview > span {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 30px;
  font-weight: 900;
}

.reward-customer-preview strong,
.reward-customer-preview small,
.reward-customer-preview b,
.reward-customer-preview em {
  display: block;
  min-width: 0;
}

.reward-customer-preview strong {
  font-size: 18px;
  line-height: 1.25;
}

.reward-customer-preview small,
.reward-customer-preview em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.reward-customer-preview b {
  margin: 5px 0;
  color: var(--red);
  font-size: 20px;
}

.reward-editor-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
}

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

.reward-item-card {
  width: 100%;
}

.reward-editor .salary-field-wide {
  grid-column: 1 / -1;
}

.reward-alert-list {
  display: grid;
  gap: 9px;
}

.reward-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fbfaf6;
}

.reward-alert.danger {
  border-color: rgba(163, 52, 42, 0.26);
  background: #fbf1ee;
}

.reward-alert strong,
.reward-alert span,
.reward-alert p,
.reward-alert em {
  display: block;
}

.reward-alert span,
.reward-alert p,
.reward-alert em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.reward-alert p {
  margin: 4px 0 0;
}

.reward-alert em {
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.checklist {
  position: sticky;
  top: 86px;
}

.checklist-lead {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.checklist ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px;
  border-radius: 8px;
  background: #f8f6f0;
  font-size: 13px;
  line-height: 1.5;
}

.checklist li svg {
  margin-top: 2px;
  color: var(--green);
}

.schedule-wrap {
  overflow: auto;
}

.rest-request-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(44, 101, 75, 0.16);
  border-radius: 8px;
  background: #fbfaf6;
}

.rest-request-toolbar > div:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rest-request-toolbar strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.rest-request-toolbar span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.rest-request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rest-request-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(29, 37, 35, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font-size: 12.5px;
  font-weight: 900;
}

.rest-request-actions .primary-action {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.rest-request-actions button:disabled,
.admin-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.rest-request-grid-wrap {
  overflow: auto;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.rest-request-table {
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
}

.rest-request-table th,
.rest-request-table td {
  min-width: 42px;
  padding: 6px;
  text-align: center;
  border-bottom: 1px solid rgba(29, 37, 35, 0.07);
}

.rest-request-table th:first-child,
.rest-request-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 132px;
  text-align: left;
  background: #fffdf8;
  box-shadow: 1px 0 0 rgba(29, 37, 35, 0.08);
}

.rest-request-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f1ea;
}

.rest-request-table thead th:first-child {
  z-index: 3;
}

.rest-request-table th span,
.rest-request-table th small,
.rest-request-table td strong,
.rest-request-table td small {
  display: block;
}

.rest-request-table th span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.rest-request-table th small,
.rest-request-table td small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
}

.rest-request-table td strong {
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.25;
}

.rest-request-table th.rest-day-weekend {
  background: #f4ecd8;
}

.rest-request-table th.rest-day-risk {
  background: #f8e4df;
}

.rest-day-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(29, 37, 35, 0.12);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfaf6;
  font-size: 13px;
  font-weight: 950;
}

.rest-day-button:hover {
  border-color: rgba(44, 101, 75, 0.32);
  color: var(--green);
}

.rest-day-button.selected {
  border-color: rgba(178, 55, 46, 0.38);
  color: #fff;
  background: var(--red);
}

.rest-request-summary {
  display: grid;
  gap: 10px;
}

.draft-empty-state {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px dashed rgba(44, 101, 75, 0.28);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfaf6;
}

.draft-empty-state svg {
  flex: none;
  color: var(--green);
}

.draft-empty-state strong,
.draft-empty-state span {
  display: block;
}

.draft-empty-state strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.draft-empty-state span {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.45;
}

.schedule-table {
  min-width: 520px;
}

.schedule-table th,
.schedule-table td {
  text-align: center;
}

.schedule-table td:first-child,
.schedule-table th:first-child {
  text-align: left;
}

.shift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: #eee9df;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.shift-早 {
  color: var(--blue);
  background: #e7eef4;
}

.shift-晚 {
  color: var(--gold);
  background: #f4ecd8;
}

.shift-全 {
  color: var(--green);
  background: var(--green-soft);
}

.shift-— {
  color: var(--muted);
  background: #f4f1ea;
}

.shift-排 {
  color: #8a651c;
  background: #fbf3de;
}

.clock-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 8px;
}

.clock-day-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 112px;
  padding: 10px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  text-align: left;
}

.clock-day-lines {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clock-day-lines li {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 6px;
  background: rgba(29, 37, 35, 0.035);
}

.clock-day-lines li.flagged {
  background: rgba(163, 52, 42, 0.08);
}

.clock-day-lines li.muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.clock-day-lines b {
  font-size: 12px;
  font-weight: 900;
}

.clock-day-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
}

.clock-day-fields i {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.clock-day-fields i.clock-day-flag {
  flex-basis: 100%;
  color: #8a651c;
  white-space: normal;
}

.clock-day-lines li.flagged .clock-day-flag {
  color: var(--red);
}

.clock-day-card.active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(44, 101, 75, 0.15);
}

.clock-day-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.clock-day-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.clock-day-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.clock-day-card em {
  align-self: end;
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.clock-day-card.warn {
  border-color: rgba(177, 128, 41, 0.25);
  background: #fff9ea;
}

.clock-day-card.warn em {
  color: #8a651c;
  background: #fbf3de;
}

.clock-day-card.danger {
  border-color: rgba(163, 52, 42, 0.28);
  background: #fff5f2;
}

.clock-day-card.danger em {
  color: var(--red);
  background: #f7e3df;
}

.clock-day-card.note {
  border-color: rgba(46, 85, 112, 0.22);
  background: #f5f8fb;
}

.clock-day-card.note em {
  color: var(--blue);
  background: #e7eef4;
}

.clock-day-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 12px;
  align-items: start;
}

.clock-day-panel,
.clock-action-panel {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

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

.clock-roster-columns h3 {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.2;
}

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

.clock-person-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(29, 37, 35, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfaf6;
  text-align: left;
}

.clock-person-card.active {
  border-color: var(--green);
  background: var(--green-soft);
}

.clock-person-card.muted {
  background: #f4f1ea;
}

.clock-person-card strong {
  font-size: 13px;
}

.clock-person-card span,
.clock-person-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.clock-alert-list {
  display: grid;
  gap: 7px;
}

.clock-alert-list p {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  padding: 8px 9px;
  border-radius: 8px;
  color: #8a651c;
  background: #fbf3de;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.clock-alert-list svg {
  flex: none;
  margin-top: 1px;
}

.clock-context-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.clock-context-strip span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: #f8f6f0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.clock-context-strip b {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

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

.clock-action-grid button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(29, 37, 35, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.clock-action-grid button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.clock-correction-form {
  display: grid;
  gap: 8px;
}

.clock-correction-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.clock-correction-form input,
.clock-correction-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 9px;
  border: 1px solid rgba(29, 37, 35, 0.14);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.clock-correction-form textarea {
  min-height: 74px;
  resize: vertical;
}

.clock-correction-form input:disabled {
  color: rgba(29, 37, 35, 0.5);
  background: #f1eee7;
}

.clock-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.payslip {
  display: grid;
  gap: 2px;
  padding: 4px 0;
}

.payslip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8f6f0;
  font-size: 13px;
}

.payslip-row b {
  font-weight: 800;
}

.payslip-row b.minus {
  color: var(--red);
}

.payslip-row.total {
  background: var(--green-soft);
}

.payslip-row.total b {
  color: var(--green);
  font-size: 17px;
}

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

.printer-screen {
  min-height: calc(100vh - 70px);
  padding: clamp(18px, 3vw, 34px);
  color: #10201c;
  background: #f4f1ea;
}

.printer-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto 22px;
}

.printer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.printer-hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
}

.printer-hero p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.printer-hero button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.printer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.printer-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto 14px;
}

.printer-summary-strip > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.printer-summary-strip span,
.printer-summary-strip strong,
.printer-summary-strip small {
  display: block;
}

.printer-summary-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.printer-summary-strip strong {
  overflow-wrap: anywhere;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.printer-summary-strip small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.printer-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.printer-primary-panel {
  order: -1;
}

.printer-fold {
  padding: 0;
}

.printer-fold summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.printer-fold summary::-webkit-details-marker {
  display: none;
}

.printer-fold summary span,
.printer-fold summary strong,
.printer-fold summary small {
  display: block;
  min-width: 0;
}

.printer-fold summary strong {
  color: var(--ink);
  font-size: 15px;
}

.printer-fold summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.printer-fold summary em {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.printer-fold summary svg {
  color: var(--muted);
  transition: transform 160ms ease;
}

.printer-fold[open] summary svg {
  transform: rotate(180deg);
}

.printer-fold-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.printer-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.printer-panel-head strong {
  font-size: 16px;
}

.printer-panel-head span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 900;
}

.printer-device {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3ec;
}

.printer-device-stack {
  display: grid;
  gap: 8px;
}

.printer-device.standby {
  opacity: 0.78;
}

.printer-device em {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.printer-device strong,
.printer-job strong {
  display: block;
}

.printer-device small,
.printer-job span,
.printer-job small {
  color: var(--muted);
  font-size: 12px;
}

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

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

.printer-routing-strip div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3ec;
}

.printer-routing-strip span,
.printer-routing-strip strong {
  display: block;
}

.printer-routing-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.printer-routing-strip strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.printer-stats div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3ec;
}

.printer-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.printer-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.printer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.printer-actions button {
  flex: 1;
  min-width: 116px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.printer-status-line {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.printer-jobs {
  display: grid;
  gap: 9px;
}

.printer-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3ec;
}

.printer-job em {
  font-style: normal;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.printer-job em.pending {
  color: var(--gold);
}

.printer-rules {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.printer-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.printer-mode-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-weight: 900;
}

.printer-mode-tabs button.active {
  color: #fff;
  border-color: transparent;
  background: var(--green);
}

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

.printer-slip-card {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.printer-slip-card.disabled {
  opacity: 0.7;
  background: #f4efe6;
}

.printer-slip-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.printer-slip-card header strong {
  color: var(--ink);
  font-size: 16px;
}

.printer-slip-card header button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(47, 111, 87, 0.22);
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.printer-slip-card.disabled header button {
  color: var(--muted);
  border-color: var(--line);
  background: #fff;
}

.printer-field-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.printer-route-group {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(29, 37, 35, 0.08);
  border-radius: 8px;
  background: #fbfaf6;
}

.printer-route-group span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.printer-route-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.printer-route-group button {
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.printer-route-group button.active {
  color: #fff;
  border-color: transparent;
  background: var(--green);
}

.printer-route-group button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.printer-field-chips button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.printer-field-chips button.active {
  color: #fff;
  border-color: transparent;
  background: var(--red);
}

.printer-field-chips button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.printer-slip-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.printer-qr-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.printer-qr-flow > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(44, 101, 75, 0.16);
  border-radius: 8px;
  background: #f7f3ec;
}

.printer-qr-flow svg {
  color: var(--green);
}

.printer-qr-flow strong,
.printer-qr-flow span {
  display: block;
}

.printer-qr-flow strong {
  color: var(--ink);
  font-size: 14px;
}

.printer-qr-flow span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.printer-customer-signal {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(163, 52, 42, 0.18);
  border-radius: 8px;
  background: #fbebe7;
}

.printer-customer-signal strong,
.printer-customer-signal span,
.printer-customer-signal small {
  display: block;
}

.printer-customer-signal strong {
  color: var(--red);
  font-size: 13px;
}

.printer-customer-signal span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.printer-customer-signal small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.order-history-screen {
  min-height: calc(100vh - 70px);
  padding: clamp(18px, 3vw, 34px);
  color: #10201c;
  background: #f4f1ea;
}

.order-history-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 18px;
}

.order-history-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
}

.order-history-hero p {
  max-width: 800px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.order-history-hero button,
.pos-history-open,
.order-cancel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.order-history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto 14px;
}

.order-history-summary article,
.order-history-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.order-history-summary article {
  padding: 14px;
}

.order-history-summary article.warn {
  border-color: rgba(190, 115, 39, 0.28);
  background: #fff8eb;
}

.order-history-summary span,
.order-history-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.order-history-summary strong {
  display: block;
  margin: 4px 0;
  font-size: 28px;
}

.order-history-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.order-history-panel {
  min-width: 0;
  padding: 16px;
}

.order-history-wide {
  grid-column: span 1;
}

.order-record-list,
.voided-order-list,
.order-rule-grid,
.order-detail-items,
.order-cancel-form,
.pos-order-mini-list {
  display: grid;
  gap: 9px;
}

.order-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f7f3ec;
  text-align: left;
}

.order-record-row.active {
  border-color: rgba(47, 111, 87, 0.36);
  background: var(--green-soft);
}

.order-record-row strong,
.order-record-row b,
.order-record-row small {
  display: block;
}

.order-record-row b {
  text-align: right;
}

.order-record-row small,
.order-empty,
.order-history-note,
.voided-order-list span,
.voided-order-list small,
.order-rule-grid small,
.pos-order-mini-list span,
.pos-order-mini-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.order-detail-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3ec;
}

.order-detail-card span,
.order-detail-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.order-detail-card strong {
  display: block;
  margin: 3px 0;
  font-size: 24px;
}

.order-detail-items {
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.order-detail-items li {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f3ec;
  font-size: 14px;
  font-weight: 900;
}

.order-cancel-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.order-cancel-form select,
.order-cancel-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.order-cancel-form textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.55;
}

.order-cancel-button {
  background: var(--red);
}

.order-cancel-button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  background: #918983;
}

.order-permission-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.order-permission-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.order-cancel-confirm {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(163, 52, 42, 0.3);
  border-radius: 8px;
  background: #fbebe7;
}

.order-cancel-confirm strong {
  color: var(--red);
}

.order-cancel-confirm small {
  color: var(--muted);
}

.order-cancel-confirm-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 10px;
}

.order-cancel-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.order-history-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(163, 52, 42, 0.18);
  border-radius: 8px;
  color: var(--red);
  background: #fbebe7;
  font-weight: 800;
}

.voided-order-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(163, 52, 42, 0.16);
  border-radius: 8px;
  background: #fbebe7;
}

.voided-order-list strong,
.voided-order-list span,
.voided-order-list small {
  display: block;
}

.voided-order-list b {
  color: var(--red);
}

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

.order-rule-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3ec;
}

.order-rule-grid strong,
.order-rule-grid small {
  display: block;
}

.order-rule-grid small {
  margin-top: 5px;
}

.pos-order-mini-list article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.pos-order-mini-list strong,
.pos-order-mini-list span,
.pos-order-mini-list small {
  display: block;
}

.pos-order-mini-list span,
.pos-order-mini-list small {
  color: var(--pos-text-dim);
}

.pos-history-open {
  width: 100%;
  background: var(--pos-red);
}

@media (max-width: 900px) {
  .printer-slip-grid {
    grid-template-columns: 1fr;
  }
}

.printer-connection-model {
  display: grid;
  gap: 9px;
}

.printer-connection-model > div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3ec;
}

.printer-connection-model strong,
.printer-connection-model small {
  display: block;
}

.printer-connection-model small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.printer-wide {
  grid-column: span 2;
}

.printer-char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
}

.printer-char-grid > div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3ec;
}

.printer-char-grid > div.replace {
  border-color: rgba(163, 52, 42, 0.28);
  background: #fbebe7;
}

.printer-char-grid > div.check {
  border-color: rgba(190, 115, 39, 0.28);
  background: #fff8eb;
}

.printer-char-grid span {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 900;
}

.printer-char-grid .replace span {
  color: var(--red);
  background: #f7d8d1;
}

.printer-char-grid .check span {
  color: #9d571c;
  background: #f8dfb8;
}

.printer-char-grid strong,
.printer-char-grid small {
  display: block;
}

.printer-char-grid p {
  margin: 5px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.printer-char-grid small {
  color: var(--muted);
  font-size: 12px;
}

.inventory-screen {
  min-height: calc(100vh - 70px);
  padding: clamp(18px, 3vw, 34px);
  color: #10201c;
  background: #f4f1ea;
}

.inventory-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto 18px;
}

.inventory-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
}

.inventory-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.inventory-hero button,
.inventory-submitbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.inventory-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto 14px;
}

.inventory-summary > div,
.inventory-board article,
.inventory-submitbar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.inventory-summary > div {
  padding: 14px;
}

.inventory-summary span,
.inventory-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.inventory-summary strong {
  display: block;
  margin: 4px 0;
  font-size: 28px;
}

.inventory-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  max-width: 1120px;
  margin: 0 auto;
}

.inventory-board article {
  display: grid;
  grid-template-columns: minmax(132px, 0.9fr) minmax(118px, 0.55fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.inventory-board article.low {
  border-color: rgba(190, 115, 39, 0.28);
  background: #fff8eb;
}

.inventory-item-main > span {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 900;
}

.inventory-board article.low .inventory-item-main > span {
  color: #9d571c;
  background: #f8dfb8;
}

.inventory-item-main strong {
  display: block;
  font-size: 22px;
}

.inventory-qty {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f3ec;
  text-align: center;
}

.inventory-qty small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.inventory-qty strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.inventory-actions {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: stretch;
  gap: 8px;
}

.inventory-actions button {
  display: grid;
  place-items: center;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.inventory-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.inventory-number-box {
  display: grid;
  grid-template-columns: auto minmax(72px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.inventory-number-box span,
.inventory-number-box em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.inventory-number-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.inventory-delta {
  justify-self: end;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: #f1ece3;
  font-size: 12px;
  font-weight: 900;
}

.inventory-delta.up {
  color: var(--green);
  background: var(--green-soft);
}

.inventory-delta.down {
  color: #9d571c;
  background: #f8dfb8;
}

.inventory-submitbar {
  position: sticky;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1120px;
  margin: 14px auto 0;
  padding: 12px 14px;
  box-shadow: 0 14px 40px rgba(29, 37, 35, 0.12);
}

.inventory-submitbar span {
  color: var(--muted);
  font-weight: 800;
}

.inventory-submitbar button {
  background: var(--green);
}

.inventory-submitbar button:disabled {
  background: #d8d2c8;
  cursor: not-allowed;
}

.website-screen {
  --site-red: #a62a22;
  --site-red-dark: #651c18;
  --site-green: #164f36;
  --site-green-deep: #0d2f24;
  --site-cream: #f7ecd7;
  --site-paper: #fff8eb;
  --site-ink: #1a211d;
  --site-brass: #bd8d3b;
  color: var(--site-ink);
  background: var(--site-cream);
}

.site-nav {
  position: sticky;
  top: 70px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 74px);
  color: #fff8eb;
  background: rgba(13, 47, 36, 0.94);
  border-bottom: 1px solid rgba(247, 236, 215, 0.18);
  backdrop-filter: blur(16px);
}

.site-nav .site-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.site-logo {
  display: block;
  width: 72px;
  height: auto;
  background: transparent;
  filter:
    drop-shadow(0 0 10px rgba(255, 248, 235, 0.46))
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.brand-origin {
  display: block;
  color: rgba(255, 248, 235, 0.72);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.site-nav nav {
  display: flex;
  gap: 6px;
}

.site-nav nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255, 248, 235, 0.76);
  font-weight: 800;
}

.site-nav nav a:hover {
  color: #fff;
  background: rgba(166, 42, 34, 0.42);
}

.site-hero {
  position: relative;
  display: grid;
  min-height: clamp(640px, calc(100vh - 70px), 820px);
  padding: clamp(40px, 6vw, 92px) clamp(18px, 5vw, 74px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(13, 47, 36, 0.97), rgba(101, 28, 24, 0.82) 48%, rgba(13, 47, 36, 0.82)),
    var(--site-green-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: var(--site-green-deep);
  box-shadow: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.56;
  filter: saturate(1.12) contrast(1.04);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  height: auto;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 47, 36, 0.96) 0%, rgba(13, 47, 36, 0.78) 38%, rgba(101, 28, 24, 0.34) 72%, rgba(13, 47, 36, 0.84) 100%),
    linear-gradient(0deg, rgba(13, 47, 36, 0.86) 0%, transparent 46%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 760px;
  padding: clamp(60px, 10vw, 124px) 0 clamp(90px, 12vw, 150px);
}

.hero-logo-card {
  position: relative;
  display: inline-flex;
  width: min(150px, 36vw);
  margin-bottom: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
  isolation: isolate;
}

.hero-logo-card::before {
  position: absolute;
  inset: -14% -20%;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 46% 42%, rgba(255, 248, 235, 0.56), rgba(245, 215, 162, 0.2) 48%, transparent 72%);
  filter: blur(2px);
}

.hero-logo-card img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.96;
}

.hero-place {
  margin: 0 0 14px;
  color: #f5d7a2;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy h1 {
  margin: 0;
  color: #fff8eb;
  font-family: "Noto Serif TC", "Noto Serif CJK TC", "Source Han Serif TC", "Songti TC", serif;
  font-size: clamp(52px, 7.4vw, 96px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.hero-wordmark span {
  display: block;
}

.hero-wordmark small {
  display: block;
  margin-top: 10px;
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
}

.hero-copy strong {
  display: block;
  margin-top: 22px;
  max-width: 680px;
  color: #fff;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.45;
}

.hero-summary {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 248, 235, 0.82);
  font-size: 17px;
  line-height: 1.85;
}

.hero-buttons,
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-buttons a,
.visit-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--site-red);
  font-weight: 800;
}

.hero-buttons a:last-child,
.visit-actions a:last-child {
  color: var(--site-green-deep);
  background: var(--site-paper);
}

.hero-store-card {
  position: absolute;
  right: clamp(18px, 5vw, 74px);
  bottom: clamp(24px, 5vw, 70px);
  z-index: 2;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: min(430px, calc(100% - 36px));
  padding: 12px;
  color: #fff8eb;
  background: rgba(13, 47, 36, 0.9);
  border: 1px solid rgba(255, 248, 235, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.hero-store-card img {
  width: 128px;
  height: 88px;
  object-fit: cover;
  border: 2px solid rgba(255, 248, 235, 0.24);
}

.hero-store-card span {
  display: block;
  color: #f5d7a2;
  font-size: 12px;
  font-weight: 900;
}

.hero-store-card strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.35;
}

.site-section {
  padding: 70px clamp(18px, 5vw, 74px);
}

.intro-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: 32px;
  align-items: center;
  overflow: hidden;
  border-top: 8px solid var(--site-red);
  border-bottom: 8px solid var(--site-green);
  background:
    linear-gradient(90deg, rgba(166, 42, 34, 0.12), transparent 36%),
    var(--site-paper);
}

.intro-band > * {
  position: relative;
  z-index: 1;
}

.site-section h2,
.story-copy h2,
.visit-section h2 {
  font-size: clamp(31px, 4vw, 56px);
}

.intro-band > p,
.story-copy p,
.visit-section p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.signature-rail {
  display: grid;
  gap: 10px;
}

.signature-rail span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  color: #fff8eb;
  background: linear-gradient(90deg, var(--site-red), var(--site-green));
  border-left: 8px solid var(--site-brass);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 900;
}

.menu-section {
  background:
    linear-gradient(180deg, rgba(247, 236, 215, 0.6), rgba(255, 248, 235, 0.94)),
    var(--site-paper);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}

.section-title span {
  max-width: 420px;
  line-height: 1.5;
  text-align: right;
  color: #526057;
  font-weight: 700;
}

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

.dish-card {
  overflow: hidden;
  color: var(--site-ink);
  background: #fffdf7;
  border: 1px solid rgba(22, 79, 54, 0.14);
  box-shadow: 0 16px 38px rgba(47, 38, 28, 0.08);
}

.dish-card-1 {
  border-top: 8px solid var(--site-green);
}

.dish-card-2 {
  border-top: 8px solid var(--site-red);
}

.dish-card-3 {
  border-top: 8px solid var(--site-brass);
}

.dish-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.dish-card div {
  padding: 18px;
}

.dish-card h3 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: 24px;
}

.dish-card h3 small {
  margin-left: 4px;
  color: var(--site-green);
  font-size: 0.68em;
  font-weight: 900;
}

.dish-card p {
  min-height: 76px;
  margin: 0;
  color: #59625b;
  line-height: 1.65;
}

.dish-card strong {
  display: block;
  margin-top: 14px;
  color: var(--site-red);
  font-size: 26px;
}

.addon-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 16px;
  background: rgba(22, 79, 54, 0.08);
  border: 1px solid rgba(22, 79, 54, 0.13);
}

.addon-strip > strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #fff8eb;
  background: var(--site-green);
  font-size: 13px;
}

.addon-strip span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--site-ink);
  background: #fffdf7;
  font-size: 13px;
}

.addon-strip b {
  color: var(--site-green);
}

.story-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: 76px clamp(18px, 5vw, 74px);
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(166, 42, 34, 0.35), transparent 28%),
    linear-gradient(135deg, var(--site-green-deep), #17201c 55%, var(--site-red-dark));
}

.story-section > * {
  position: relative;
  z-index: 1;
}

.story-copy h2,
.story-copy p,
.story-copy .eyebrow {
  color: #fff;
}

.story-copy p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.74);
}

.story-copy blockquote {
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--site-brass);
  color: #f5e7ca;
  font-size: 23px;
  font-weight: 900;
}

.story-photo-stack {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 14px;
  align-items: end;
}

.story-photo-stack img {
  width: 100%;
  height: clamp(280px, 39vw, 510px);
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.story-photo-stack img:last-child {
  height: clamp(220px, 30vw, 410px);
}

.visit-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 74px clamp(18px, 5vw, 74px) 92px;
  background:
    linear-gradient(90deg, rgba(166, 42, 34, 0.1), transparent 34%, rgba(22, 79, 54, 0.12)),
    var(--site-paper);
  border-top: 1px solid rgba(22, 79, 54, 0.16);
}

.visit-section p {
  max-width: 700px;
  margin-top: 14px;
}

@media (max-width: 1180px) {
  .metrics-grid,
  .stat-row,
  .snapshot-browse-cards,
  .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-layout-grid,
  .admin-page-body,
  .ops-layout,
  .customer-layout,
  .pos-menu-editor,
  .printer-layout,
  .order-history-layout,
  .inventory-board,
  .reward-editor-grid,
  .sandbox-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .campaign-ai-workspace,
  .campaign-builder,
  .campaign-link-grid,
  .campaign-plan ul,
  .campaign-card-grid,
  .campaign-summary-strip,
  .campaign-team-role-grid,
  .campaign-flow-grid,
  .printer-summary-strip,
  .order-history-summary,
  .order-rule-grid,
  .sandbox-compute-grid,
  .sandbox-ledger-strip,
  .sandbox-preview-metrics,
  .sandbox-scenario-grid,
  .sandbox-flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .printer-wide {
    grid-column: auto;
  }

  .checklist {
    position: static;
  }
}

@media (max-width: 880px) {
  .prototype-topbar,
  .site-nav,
  .visit-section,
  .ops-hero,
  .admin-hero,
  .order-history-hero,
  .admin-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .prototype-topbar {
    position: relative;
  }

  .view-switch {
    width: 100%;
    flex-wrap: wrap;
  }

  .prototype-badge {
    width: max-content;
  }

  .update-version-strip,
  .update-control-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-message {
    display: grid;
    gap: 6px;
  }

  .update-message span {
    text-align: left;
  }

  .view-switch button {
    flex: 1;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    font-size: 13px;
  }

  .admin-screen {
    display: block;
  }

  .admin-sidebar {
    position: relative;
    top: auto;
    height: auto;
  }

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

  .admin-actions {
    justify-content: flex-start;
  }

  .metrics-grid,
  .ai-gateway,
  .intro-band,
  .site-hero,
  .story-section {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: relative;
    top: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-nav nav {
    overflow-x: auto;
  }

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

  .campaign-builder,
  .campaign-link-grid,
  .campaign-plan ul,
  .campaign-card-grid,
  .campaign-summary-strip,
  .campaign-ai-workspace,
  .campaign-team-role-grid,
  .campaign-flow-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .campaign-channel-list span {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    height: 230px;
  }

  .website-screen .hero-media {
    height: 100%;
  }

  .hero-store-card {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: end;
    margin-top: -86px;
  }

  .section-title {
    display: block;
  }

  .section-title span {
    display: block;
    margin-top: 10px;
    text-align: left;
  }

  .story-photo-stack {
    grid-template-columns: 1fr;
  }

  .story-photo-stack img,
  .story-photo-stack img:last-child {
    height: 310px;
  }

  .printer-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-summary {
    grid-template-columns: 1fr;
  }

  .formula-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .formula-summary span {
    text-align: left;
  }

  .salary-editor-head {
    flex-direction: column;
  }

  .salary-field-grid {
    grid-template-columns: 1fr;
  }

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

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

  .member-card,
  .customer-phone-card {
    width: 100%;
    min-width: 0;
  }

  .customer-queue-grid,
  .customer-reward-grid,
  .employee-permission-workspace,
  .permission-group-grid,
  .permission-summary-panel,
  .ops-signal-grid,
  .ops-flow,
  .line-task-board,
  .campaign-ai-workspace,
  .campaign-card-grid,
  .campaign-summary-strip,
  .campaign-team-role-grid,
  .campaign-flow-grid,
  .labor-check-summary,
  .labor-rule-strip,
  .labor-issue-grid,
  .clock-day-workspace,
  .clock-roster-columns,
  .report-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-product-row,
  .report-line-callouts,
  .snapshot-surface-guide {
    grid-template-columns: minmax(0, 1fr);
  }

  .parallel-run-status div {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-live-strip,
  .admin-live-strip > div {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-live-strip button {
    width: 100%;
  }

  .admin-live-strip em {
    white-space: normal;
  }

  .parallel-run-live-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-product-value {
    text-align: left;
  }

  .report-hour-row {
    grid-template-columns: minmax(0, 1fr) minmax(104px, max-content);
    align-items: start;
    gap: 10px;
    padding: 12px 10px;
  }

  .report-hour-time strong {
    font-size: 13px;
  }

  .report-hour-time span {
    margin-top: 4px;
    font-size: 12px;
  }

  .report-hour-numbers {
    justify-items: end;
    text-align: right;
  }

  .report-hour-numbers strong {
    font-size: 14px;
    white-space: nowrap;
  }

  .report-hour-meta {
    flex-direction: column;
    align-items: flex-end;
  }

  .report-line-svg {
    min-height: 190px;
  }

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

@media (max-width: 768px) {
  .overview-compact-row {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .overview-compact-row em {
    grid-column: 2;
  }

  .detail-disclosure summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-disclosure-action {
    width: 100%;
    justify-content: center;
  }

  .snapshot-browse-head {
    flex-direction: column;
  }

  .snapshot-surface-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .snapshot-surface-row em {
    grid-column: 2;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    padding: 10px 0;
    border-bottom: 1px solid rgba(29, 37, 35, 0.08);
  }

  td {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 10px;
    padding: 7px 0;
    border: 0;
  }

  td::before {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    content: attr(data-label);
  }
}

@media (max-width: 720px) {
  .inventory-board article {
    grid-template-columns: 1fr;
  }

  .inventory-actions {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .inventory-delta {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .prototype-topbar,
  .admin-main,
  .ops-screen,
  .printer-screen,
  .order-history-screen,
  .inventory-screen,
  .site-section,
  .story-section,
  .visit-section,
  .site-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-lockup small {
    display: none;
  }

  .admin-nav,
  .admin-nav-items,
  .metrics-grid,
  .stat-row,
  .payroll-grid,
  .scenario-selector,
  .salary-control-row,
  .salary-cost-strip,
  .labor-check-summary,
  .labor-rule-strip,
  .labor-issue-grid,
  .clock-month-grid,
  .clock-context-strip,
  .clock-action-grid,
  .printer-stats,
  .printer-routing-strip,
  .printer-qr-flow,
  .printer-summary-strip,
  .inventory-board article,
  .menu-thumb-3,
  .dish-grid,
  .order-history-summary,
  .order-rule-grid,
  .order-record-row,
  .report-service-grid,
  .sandbox-compute-grid,
  .sandbox-ledger-strip,
  .sandbox-preview-metrics,
  .sandbox-scenario-grid,
  .sandbox-flow-strip {
    grid-template-columns: 1fr;
  }

  .order-record-row b {
    text-align: left;
  }

  .inventory-actions {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .view-switch button {
    flex-basis: calc(50% - 4px);
  }

  .ops-hero h1 {
    font-size: 34px;
  }

  .member-card strong {
    font-size: 44px;
  }

  .pos-menu-item {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .pos-menu-item .status {
    grid-column: 2;
    justify-self: start;
  }

  .menu-pos-preview,
  .reward-customer-preview,
  .option-choice-grid,
  .menu-stock-link-row {
    grid-template-columns: 1fr;
  }

  .menu-stock-remove {
    justify-self: start;
    width: 44px;
  }

  .menu-pos-preview img,
  .menu-pos-preview > span,
  .reward-customer-preview img,
  .reward-customer-preview > span {
    width: 100%;
  }

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

  .inventory-delta {
    position: static;
    justify-self: start;
    width: max-content;
  }

  .inventory-submitbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .admin-hero h1 {
    font-size: 34px;
  }

  .sync-stack {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .site-hero {
    min-height: 690px;
  }

  .hero-copy {
    padding-top: 52px;
    padding-bottom: 116px;
  }

  .hero-copy strong {
    margin-top: 12px;
    font-size: 17px;
  }

  .hero-summary {
    font-size: 15px;
  }

  .hero-buttons {
    margin-top: 16px;
  }

  .hero-buttons a,
  .visit-actions a {
    min-height: 40px;
  }

  .dish-card p {
    min-height: 0;
  }

  .signature-rail span {
    min-height: 48px;
    padding: 0 14px;
    font-size: 17px;
  }

  .hero-store-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .hero-store-card img {
    width: 96px;
    height: 72px;
  }
}

/* ============ POS prototype ============ */
.pos-screen {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 348px;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "rail stage ticket"
    "ops  ops   ops";
  gap: 14px;
  /* 平板尺寸的 POS 操作面板：寬桌機不再無限拉寬，置中呈現。 */
  width: 100%;
  max-width: 1024px;
  height: min(768px, calc(100vh - 71px));
  margin-inline: auto;
  padding: 14px clamp(14px, 2vw, 24px);
  overflow: auto;
  color: #e8efec;
  background: radial-gradient(120% 90% at 0% 0%, #182225 0%, #10171a 60%);
  --pos-panel: #1b2528;
  --pos-line: rgba(255, 255, 255, 0.09);
  --pos-red: #d24b3e;
  --pos-amber: #e0a23a;
  --pos-text-dim: #93a09b;
}

.pos-screen strong,
.pos-screen h2,
.pos-screen h3 {
  color: #fff;
}

.pos-rail {
  grid-area: rail;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pos-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  background: var(--pos-panel);
  text-align: center;
}

.pos-brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--green));
  font-weight: 900;
  font-size: 20px;
}

.pos-brand strong {
  font-size: 13px;
}

.pos-brand small {
  color: var(--pos-text-dim);
  font-size: 10px;
}

.pos-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pos-cats button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 4px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  color: var(--pos-text-dim);
  background: var(--pos-panel);
  font-size: 12px;
  font-weight: 700;
}

.pos-cats button.active {
  color: #fff;
  border-color: transparent;
  background: var(--pos-red);
}

.pos-sync {
  margin-top: auto;
  padding: 11px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  background: var(--pos-panel);
}

.pos-sync > div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.pos-sync.online > div { color: #6fd1a8; }
.pos-sync.offline > div { color: var(--pos-amber); }

.pos-sync p {
  margin: 6px 0 8px;
  color: var(--pos-text-dim);
  font-size: 10.5px;
  line-height: 1.5;
}

.pos-sync button {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  color: #d8e2de;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 700;
}

.pos-stage {
  grid-area: stage;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.pos-ordertype {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  background: var(--pos-panel);
}

.pos-ordertype button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: var(--pos-text-dim);
  background: transparent;
  font-size: 15px;
  font-weight: 800;
}

.pos-ordertype button.active {
  color: #fff;
  background: var(--green);
}

.pos-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding-right: 8px;
  color: var(--pos-text-dim);
  font-size: 12px;
}

.pos-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.pos-tile {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  background: var(--pos-panel);
  text-align: left;
  transition: transform 0.08s ease, border-color 0.12s ease;
}

.pos-tile:active {
  transform: scale(0.98);
}

.pos-tile:hover {
  border-color: rgba(210, 75, 62, 0.6);
}

.pos-tile.selected {
  border-color: var(--pos-red);
  box-shadow: inset 0 0 0 1px var(--pos-red);
}

.pos-tile-media {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16 / 10;
}

.pos-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos-tile-glyph {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #2a3a3e, #1d292c);
  font-size: 30px;
  font-weight: 900;
}

.pos-tile-body strong {
  display: block;
  font-size: 16px;
}

.pos-tile-body em {
  font-size: 11px;
  font-style: normal;
  color: var(--pos-text-dim);
}

.pos-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.pos-tile-foot b {
  font-size: 17px;
  color: #fff;
}

.pos-tile-foot i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #fff;
  background: var(--pos-red);
}

.pos-options {
  padding: 12px 14px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  background: var(--pos-panel);
}

.pos-options-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--pos-line);
}

.pos-options-head strong {
  font-size: 15px;
}

.pos-options-head span {
  color: var(--pos-text-dim);
  font-size: 11px;
}

.pos-option-fixed {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px dashed var(--pos-line);
  border-radius: 6px;
  color: var(--pos-text-dim);
  font-size: 12px;
}

.pos-option-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
}

.pos-option-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 64px;
  color: var(--pos-text-dim);
  font-size: 13px;
  font-weight: 700;
}

.pos-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pos-chip {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  color: #cdd7d3;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 700;
}

.pos-chip.active {
  color: #fff;
  border-color: transparent;
  background: var(--blue);
}

.pos-chip.spice.active {
  background: var(--pos-red);
}

.pos-option-hint {
  margin: 8px 0 0;
  color: var(--pos-text-dim);
  font-size: 11px;
}

/* 需要選項的商品卡：不顯示直接加號，改提示「選項」 */
.pos-tile-foot i.pos-tile-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--blue);
}

.pos-tile.needs-option:hover {
  border-color: rgba(96, 142, 222, 0.7);
}

/* 選項面板內的加入按鈕 */
.pos-option-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.pos-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  color: #fff;
  background: var(--pos-red);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.12s ease, transform 0.08s ease;
}

.pos-add-btn:active {
  transform: scale(0.98);
}

.pos-add-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.pos-option-need {
  margin: 8px 0 0;
  color: var(--pos-red);
  font-size: 12px;
  font-weight: 700;
}

.pos-ticket {
  grid-area: ticket;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  background: var(--pos-panel);
  overflow: hidden;
}

.pos-ticket.waitlist-mode {
  overflow: hidden;
}

.pos-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--pos-line);
}

.pos-ticket-head strong {
  font-size: 16px;
}

.pos-ticket-head small {
  display: block;
  margin-top: 2px;
  color: var(--pos-text-dim);
  font-size: 12px;
}

.pos-ticket-clear {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  color: #d6a29b;
  background: transparent;
}

.pos-ticket-clear:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.pos-ticket-list {
  flex: 1;
  min-height: 120px;
  max-height: 360px;
  overflow: auto;
  padding: 6px 14px;
}

.pos-ticket-list.waitlist-compact {
  display: grid;
  align-content: start;
  flex: 1 1 auto;
  gap: 8px;
  min-height: min(330px, 44vh);
  max-height: none;
  overflow: auto;
}

.pos-ticket-empty {
  padding: 28px 6px;
  color: var(--pos-text-dim);
  font-size: 13px;
  text-align: center;
}

.pos-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pos-line);
}

.pos-line-info strong {
  font-size: 14.5px;
}

.pos-line-info span {
  display: block;
  margin-top: 2px;
  color: var(--pos-text-dim);
  font-size: 11.5px;
}

.pos-line-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pos-line-qty button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.pos-line-qty b {
  min-width: 22px;
  text-align: center;
  font-size: 15px;
}

.pos-line-price {
  min-width: 56px;
  text-align: right;
  font-weight: 800;
  color: #fff;
}

.pos-ticket-miniops {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 9px 14px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #d8e2de;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.pos-ticket-miniops > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: #11171a;
  background: #e8efec;
}

.pos-ticket-miniops strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-ticket-miniops small {
  color: var(--pos-text-dim);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.pos-ticket-miniops.waitlist {
  border-color: rgba(70, 167, 121, 0.34);
  background: rgba(70, 167, 121, 0.08);
}

.pos-ticket-miniops.waitlist > span {
  color: #04130c;
  background: #8fe3b4;
}

.pos-wait-panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 8px 0;
}

.pos-wait-panel.compact {
  gap: 8px;
}

.pos-wait-quickbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.pos-wait-quickbar > span,
.pos-wait-quickbar em {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.pos-wait-quickbar > span.full {
  color: #ffdca8;
  background: rgba(224, 162, 58, 0.18);
}

.pos-wait-quickbar > span.open {
  color: #8fe3b4;
  background: rgba(70, 167, 121, 0.18);
}

.pos-wait-quickbar strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-wait-quickbar em {
  color: var(--pos-text-dim);
  background: rgba(255, 255, 255, 0.06);
  font-style: normal;
}

.pos-wait-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pos-wait-field > span {
  color: var(--pos-text-dim);
  font-size: 12px;
  font-weight: 800;
}

.pos-wait-field.compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 9px;
  row-gap: 2px;
}

.pos-wait-field.compact small {
  min-width: 0;
  overflow: hidden;
  color: var(--pos-text-dim);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-party-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
}

.pos-party-stepper button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.pos-party-stepper button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.pos-party-stepper strong {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid rgba(70, 167, 121, 0.42);
  border-radius: 8px;
  color: #8fe3b4;
  background: rgba(70, 167, 121, 0.13);
  font-size: 20px;
}

.pos-wait-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(70, 167, 121, 0.34);
  border-radius: 8px;
  color: #d8e2de;
  background: rgba(70, 167, 121, 0.08);
  text-align: left;
}

.pos-wait-items-head > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pos-wait-items-head strong {
  font-size: 13px;
}

.pos-wait-items-head small {
  overflow: hidden;
  color: var(--pos-text-dim);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-wait-items-head button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(143, 227, 180, 0.38);
  border-radius: 6px;
  color: #8fe3b4;
  background: rgba(70, 167, 121, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.pos-wait-items-head button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.pos-wait-items {
  overflow: visible;
  border-top: 1px solid var(--pos-line);
}

.pos-wait-items .pos-line:last-child {
  border-bottom: 0;
}

.pos-wait-items .pos-ticket-empty {
  padding: 16px 6px;
}

.pos-ticket-foot {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--pos-line);
  background: rgba(0, 0, 0, 0.16);
}

.pos-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pos-total-row span {
  color: var(--pos-text-dim);
  font-size: 13px;
}

.pos-total-row strong {
  font-size: 26px;
}

.pos-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--pos-red);
  font-size: 16px;
  font-weight: 800;
}

.pos-checkout.waitlist {
  color: #04130c;
  background: #8fe3b4;
}

.pos-checkout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 底部營運狀態列：取代原本五張大卡疊在點餐頁的 deck。 */
.pos-opsbar {
  grid-area: ops;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  background: var(--pos-panel);
  flex-wrap: wrap;
}

.pos-opsbar-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  color: #fff;
  background: var(--pos-red);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.pos-opsbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.pos-ops-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--pos-line);
  border-radius: 999px;
  color: #d8e2de;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pos-ops-chip.online { color: #6fd1a8; border-color: rgba(111, 209, 168, 0.4); }
.pos-ops-chip.offline { color: var(--pos-amber); border-color: rgba(224, 162, 58, 0.45); }

/* 營運面板：右側 slide-over，疊在 POS 之上，POS 點餐仍是底層主畫面。 */
.pos-drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  background: rgba(8, 12, 13, 0.55);
}

.pos-drawer {
  display: flex;
  flex-direction: column;
  width: min(440px, 92vw);
  height: 100%;
  background: radial-gradient(120% 90% at 100% 0%, #182225 0%, #10171a 60%);
  border-left: 1px solid var(--pos-line);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.35);
  color: #e8efec;
}

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

.pos-drawer-head strong { display: block; font-size: 15px; color: #fff; }
.pos-drawer-head small { display: block; margin-top: 4px; color: var(--pos-text-dim); font-size: 11px; line-height: 1.5; }

.pos-drawer-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  color: #d8e2de;
  background: rgba(255, 255, 255, 0.05);
}

.pos-drawer-nav {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--pos-line);
}

.pos-drawer-nav button {
  padding: 7px 12px;
  border: 1px solid var(--pos-line);
  border-radius: 999px;
  color: var(--pos-text-dim);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pos-drawer-nav button.active {
  color: #fff;
  border-color: transparent;
  background: var(--pos-red);
}

.pos-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.pos-drawer-body .pos-deck-card { border: none; padding: 0; background: transparent; }

.pos-deck-card {
  padding: 12px 14px 14px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  background: var(--pos-panel);
}

.pos-deck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pos-deck-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
}

.pos-deck-head em {
  font-style: normal;
  font-size: 11px;
  color: var(--pos-text-dim);
}

.pos-queue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.pos-queue-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.pos-queue-card.pending {
  border-color: rgba(224, 162, 58, 0.4);
}

.pos-queue-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.pos-queue-card header strong {
  font-size: 15px;
}

.pos-queue-card header span {
  font-size: 11px;
  color: var(--pos-text-dim);
}

.pos-queue-card ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #cdd7d3;
}

.pos-queue-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.pos-queue-card footer em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #6fd1a8;
}

.pos-queue-card footer em.danger {
  color: var(--pos-amber);
}

.pos-queue-card footer small {
  font-size: 11px;
  color: var(--pos-text-dim);
}

.pos-zone-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pos-zone-flow li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
  color: #cdd7d3;
}

.pos-zone-flow li span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.pos-zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.pos-zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid var(--pos-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
  color: #cdd7d3;
}

.pos-queue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 2px;
}

.pos-pager,
.pos-zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.pos-pager {
  border: 1px solid var(--pos-line);
  background: rgba(255, 255, 255, 0.05);
  color: #cdd7d3;
}

.pos-zone-badge {
  border: 1px solid transparent;
  background: rgba(70, 167, 121, 0.18);
  color: #8fe3b4;
}

.pos-zone-badge.pending {
  background: rgba(214, 158, 46, 0.16);
  color: var(--pos-amber);
}

.pos-wait-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.pos-wait-summary button {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  color: #cdd7d3;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.pos-wait-summary button.active {
  color: #04130c;
  border-color: transparent;
  background: #8fe3b4;
}

.pos-wait-summary strong,
.pos-wait-summary small {
  display: block;
}

.pos-wait-summary strong {
  font-size: 14px;
}

.pos-wait-summary small {
  margin-top: 2px;
  color: var(--pos-text-dim);
  font-size: 11px;
}

.pos-wait-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.pos-wait-list article {
  padding: 9px;
  border: 1px solid var(--pos-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
}

.pos-wait-list article.ready {
  border-color: rgba(70, 167, 121, 0.45);
  background: rgba(70, 167, 121, 0.1);
}

.pos-wait-list header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pos-wait-list strong {
  font-size: 14px;
}

.pos-wait-list header span {
  color: var(--pos-text-dim);
  font-size: 10px;
  font-weight: 800;
}

.pos-wait-list p {
  margin: 6px 0 3px;
  color: #cdd7d3;
  font-size: 11px;
}

.pos-wait-list small {
  color: var(--pos-text-dim);
  font-size: 11px;
}

.pos-wait-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.pos-wait-actions button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.pos-wait-actions button:first-child {
  color: #04130c;
  border-color: transparent;
  background: #8fe3b4;
}

.pos-deck-note {
  margin: 10px 0 0;
  color: var(--pos-text-dim);
  font-size: 11px;
}

.pos-stock-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pos-stock-strip > div {
  padding: 9px;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.pos-stock-strip > div.low {
  border-color: rgba(224, 162, 58, 0.46);
  background: rgba(224, 162, 58, 0.1);
}

.pos-stock-strip strong,
.pos-stock-strip span,
.pos-stock-strip small {
  display: block;
}

.pos-stock-strip strong {
  color: #fff;
  font-size: 13px;
}

.pos-stock-strip span {
  margin-top: 3px;
  color: #8fe3b4;
  font-size: 17px;
  font-weight: 900;
}

.pos-stock-strip small {
  margin-top: 2px;
  color: var(--pos-text-dim);
  font-size: 11px;
}

.pos-inv {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pos-inv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.pos-inv-row strong {
  font-size: 14px;
}

.pos-inv-row span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--pos-text-dim);
}

.pos-inv-info {
  min-width: 0;
}

.pos-inv-info small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #cdd7d3;
}

.pos-inv-control {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.pos-inv-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pos-inv-stepper button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

.pos-inv-stepper button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pos-inv-stepper button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.03);
}

.pos-inv-delta {
  min-width: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--pos-text-dim);
}

.pos-inv-delta.up {
  color: #6fd1a8;
}

.pos-inv-delta.down {
  color: var(--pos-amber);
}

.pos-inv-after {
  font-size: 11px;
  color: var(--pos-text-dim);
}

.pos-inv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.pos-inv-foot > span {
  font-size: 12px;
  color: var(--pos-text-dim);
}

.pos-inv-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--pos-accent, #46a779);
  color: #04130c;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pos-inv-submit:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--pos-text-dim);
  cursor: not-allowed;
}

.pos-printer-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.pos-printer-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6fd1a8;
  box-shadow: 0 0 0 3px rgba(70, 167, 121, 0.18);
}

.pos-printer-status strong {
  display: block;
  font-size: 13.5px;
}

.pos-printer-status small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--pos-text-dim);
}

.pos-printer-meta {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.pos-printer-meta > div {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.pos-printer-meta dt {
  font-size: 11px;
  color: var(--pos-text-dim);
}

.pos-printer-meta dd {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.pos-printer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pos-printer-actions button {
  flex: 1;
  min-width: 96px;
  padding: 8px 10px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pos-printer-actions button:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1180px) {
  .pos-screen {
    grid-template-columns: 96px minmax(0, 1fr) 320px;
  }
}

@media (max-width: 980px) {
  .pos-screen {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas:
      "stage ticket"
      "rail rail"
      "ops ops";
  }

  .pos-rail {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .pos-brand {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .pos-cats {
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pos-cats button {
    flex: 1;
    min-width: 110px;
    flex-direction: row;
    justify-content: center;
  }

}

@media (max-width: 720px) {
  .pos-screen {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "rail"
      "stage"
      "ticket"
      "ops";
    padding: 12px;
  }

  .pos-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .pos-brand {
    justify-content: flex-start;
    min-height: 0;
    padding: 10px;
  }

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

  .pos-cats button {
    min-width: 0;
    min-height: 58px;
  }

  .pos-ticket {
    max-height: none;
  }

  .pos-ticket-list {
    max-height: none;
  }

  .pos-ordertype {
    flex-wrap: wrap;
  }

  .pos-ordertype button {
    flex: 1;
    justify-content: center;
    min-width: 96px;
  }

  .pos-clock {
    display: none;
  }

  .pos-products {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

/* Existing website, isolated from the old prototype toolbar. */
.site-nav{top:0} #menu,#story,#visit{scroll-margin-top:100px} .website-screen{min-height:100vh} .addon-strip span{white-space:nowrap}
