:root {
  --ink: #17231e;
  --ink-soft: #40504a;
  --muted: #738079;
  --canvas: #f3f6f4;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --line: #e2e9e5;
  --line-strong: #d4ded8;
  --green: #08b862;
  --green-dark: #079a52;
  --green-pale: #e8f8ef;
  --blue-pale: #eaf4ff;
  --violet-pale: #f1edff;
  --amber-pale: #fff5df;
  --amber: #d88912;
  --red: #d64a4a;
  --red-pale: #fff0f0;
  --shadow-sm: 0 1px 2px rgba(23, 35, 30, 0.04), 0 8px 22px rgba(23, 35, 30, 0.04);
  --shadow-lg: 0 24px 80px rgba(17, 35, 26, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
}

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.is-hidden {
  display: none !important;
}

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

.section-kicker,
.eyebrow {
  margin: 0;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 28px rgba(8, 184, 98, 0.27);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke: none;
}

.brand-mark .mark-cut {
  fill: var(--green);
}

.brand-mark.small {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  box-shadow: none;
}

.brand-mark.small svg {
  width: 26px;
  height: 26px;
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(8, 184, 98, 0.2);
}

.primary-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.primary-button svg,
.secondary-button svg,
.danger-button svg,
.ghost-button svg {
  width: 18px;
  height: 18px;
}

.secondary-button {
  color: var(--ink-soft);
  background: var(--surface);
  border-color: var(--line);
}

.secondary-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.danger-button {
  color: var(--red);
  background: var(--red-pale);
  border-color: #f4d4d4;
}

.ghost-button {
  color: var(--muted);
  background: transparent;
}

.ghost-button:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.full {
  width: 100%;
}

.icon-button,
.icon-plain {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover,
.icon-plain:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.icon-button svg,
.icon-plain svg {
  width: 17px;
  height: 17px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 620;
}

.field > span b {
  color: var(--red);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 450;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 184, 98, 0.11);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa49f;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 12px;
  line-height: 1.5;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-waiting_customer {
  color: #226ca8;
  background: var(--blue-pale);
}

.status-running {
  color: #6d52bd;
  background: var(--violet-pale);
}

.status-completed {
  color: var(--green-dark);
  background: var(--green-pale);
}

.status-attention {
  color: #aa6710;
  background: var(--amber-pale);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #dbe4df;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 26px;
  max-width: min(88vw, 480px);
  padding: 12px 18px;
  border-radius: 12px;
  background: #15251e;
  color: #fff;
  box-shadow: 0 16px 46px rgba(15, 31, 23, 0.24);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.toast.error {
  background: #812c2c;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
