:root {
  --paper: #fffaf2;
  --paper-deep: #f6efe4;
  --ink: #262522;
  --muted: #77736c;
  --line: #e9e0d4;
  --white: #ffffff;
  --coral: #f7644f;
  --coral-dark: #d94735;
  --coral-soft: #fff0eb;
  --green: #2c9b75;
  --green-soft: #e9f7f1;
  --yellow: #f3b94f;
  --yellow-soft: #fff5d9;
  --blue: #4e88c7;
  --shadow: 0 16px 42px rgba(69, 52, 32, 0.09);
  --shadow-soft: 0 8px 24px rgba(69, 52, 32, 0.07);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 7% 14%, rgba(247, 100, 79, 0.08) 0 4px, transparent 5px),
    radial-gradient(circle at 91% 8%, rgba(44, 155, 117, 0.08) 0 4px, transparent 5px),
    var(--paper);
}

button, input, select { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(78, 136, 199, 0.28);
  outline-offset: 2px;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 217, 204, 0.84);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-mark span {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.brand-mark span:nth-child(1) { left: 15px; top: 1px; background: var(--coral); }
.brand-mark span:nth-child(2) { left: 2px; top: 16px; background: var(--green); }
.brand-mark span:nth-child(3) { left: 28px; top: 16px; background: var(--yellow); }
.brand-mark span:nth-child(4) { left: 9px; top: 29px; background: #77addc; }
.brand-mark span:nth-child(5) { left: 22px; top: 29px; background: #f390ae; }
.brand-mark--large { width: 82px; height: 82px; transform: scale(1.75); transform-origin: left top; margin-bottom: 68px; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.7fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px clamp(24px, 6vw, 84px);
}

.auth-brand h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.auth-lead {
  max-width: 610px;
  margin: 26px 0 38px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.auth-feature-list { display: grid; gap: 18px; }
.auth-feature-list > div { display: grid; grid-template-columns: 20px auto; column-gap: 12px; align-items: center; }
.auth-feature-list strong { font-size: 15px; }
.auth-feature-list small { grid-column: 2; margin-top: 3px; color: var(--muted); }
.mini-bead { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 3px var(--ink); }
.mini-bead.coral { background: var(--coral); }
.mini-bead.yellow { background: var(--yellow); }
.mini-bead.green { background: var(--green); }

.windows-download-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  border: 1px solid #b8e4d4;
  border-radius: 14px;
  background: var(--green-soft);
  padding: 8px 14px 8px 9px;
  color: #237c60;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.windows-download-link:hover { border-color: #83cdb2; box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.windows-download-link:focus-visible { outline: 3px solid rgba(44, 155, 117, 0.22); outline-offset: 2px; }
.windows-download-link > span:last-child { display: grid; gap: 2px; }
.windows-download-link strong { font-size: 12px; }
.windows-download-link small { color: #4f7f6d; font-size: 10px; }
.windows-download-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 10px; background: white; font-size: 18px; font-weight: 900; }
.windows-download-link--auth { width: fit-content; margin-top: 28px; }

.auth-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 20px 0 0 2px;
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 800;
  text-underline-offset: 4px;
}
.auth-detail-link:hover { color: var(--ink); }

.auth-seo-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 70px);
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}
.auth-seo-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.035em; }
.auth-seo-heading > p:last-child { margin: 15px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.auth-seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.auth-seo-grid article { border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,0.76); padding: 20px; }
.auth-seo-grid strong { font-size: 14px; }
.auth-seo-grid p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.auth-card { border-radius: 30px; padding: 10px 34px 34px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tab { position: relative; border: 0; background: transparent; padding: 21px 10px 17px; color: var(--muted); font-size: 14px; font-weight: 700; }
.auth-tab::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: -1px; height: 3px; border-radius: 4px; background: transparent; }
.auth-tab.is-active { color: var(--ink); }
.auth-tab.is-active::after { background: var(--coral); }
.auth-form { display: grid; gap: 18px; padding-top: 28px; }
.form-heading h2 { margin: 0 0 6px; font-size: 27px; }
.form-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-form label, .settings-section > label, .form-grid-two label {
  display: grid;
  gap: 8px;
  color: #4f4b45;
  font-size: 13px;
  font-weight: 700;
}

input, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfa;
  padding: 0 14px;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus, select:focus { border-color: rgba(247, 100, 79, 0.7); box-shadow: 0 0 0 4px rgba(247, 100, 79, 0.08); outline: 0; }
input::placeholder { color: #b3ada3; }
.form-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { margin: -4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.primary-button,
.secondary-button,
.ghost-button,
.danger-ghost-button {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.primary-button { border: 1px solid var(--coral); background: var(--coral); color: white; box-shadow: 0 8px 18px rgba(247, 100, 79, 0.2); }
.primary-button:hover { background: var(--coral-dark); border-color: var(--coral-dark); transform: translateY(-1px); }
.primary-button span { margin-left: 7px; }
.primary-button.full { width: 100%; margin-top: 4px; }
.secondary-button { border: 1px solid var(--line); background: white; color: var(--ink); }
.secondary-button:hover { border-color: #cabdad; box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.ghost-button { border: 0; background: transparent; color: var(--muted); }
.danger-ghost-button { border: 1px solid #f0c8c2; background: #fff9f7; color: var(--coral-dark); }
button:disabled { cursor: wait; opacity: 0.6; transform: none !important; }

.app-shell { min-height: 100vh; padding-bottom: 32px; }
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 78px;
  border-bottom: 1px solid rgba(228, 217, 204, 0.8);
  background: rgba(255, 250, 242, 0.92);
  padding: 11px clamp(20px, 4vw, 64px);
  backdrop-filter: blur(18px);
}

.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-lockup > div:last-child { display: grid; }
.brand-lockup strong { font-size: 18px; letter-spacing: -0.04em; }
.brand-lockup small { max-width: 190px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.store-switcher { display: grid; grid-template-columns: auto minmax(170px, 230px); align-items: center; gap: 10px; }
.store-switcher label { color: var(--muted); font-size: 12px; font-weight: 700; }
.store-switcher select { min-height: 42px; border-radius: 999px; background: white; font-weight: 700; padding-inline: 17px 40px; }
.topbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; border: 1px solid var(--line); border-radius: 999px; background: white; padding: 0 12px; color: var(--muted); font-size: 11px; font-weight: 700; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.status-pill.is-online i { background: var(--green); box-shadow: 0 0 0 4px rgba(44, 155, 117, 0.12); }
.status-pill.is-offline i { background: var(--coral); }
.status-pill--speaker span { color: var(--coral); font-size: 14px; }
.status-pill--speaker b { font-size: 11px; }
.status-pill--speaker.is-online { border-color: #b8e4d4; background: var(--green-soft); color: #237c60; }
.icon-button, .avatar-button, .close-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; }
.avatar-button { border-color: var(--ink); background: var(--ink); color: white; font-weight: 800; }

.dashboard { width: min(1460px, calc(100% - 40px)); margin: 0 auto; padding: clamp(30px, 5vw, 62px) 0 0; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.welcome-row h1 { margin: 0; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.045em; }
.welcome-row > div > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.welcome-row .secondary-button { flex: 0 0 auto; }
.welcome-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.frontdesk-call-launch { display: inline-flex; align-items: center; gap: 7px; border-color: #a9dccb; background: var(--green-soft); color: #237c60; }
.frontdesk-call-launch:hover { border-color: var(--green); box-shadow: 0 8px 20px rgba(44, 155, 117, 0.14); }
.method-print-launch { display: inline-flex; align-items: center; gap: 7px; border-color: #efb54d; background: var(--yellow-soft); color: #8c5c08; }
.windows-download-link--dashboard { min-height: 44px; border-radius: 12px; }

.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.summary-card { display: flex; align-items: center; gap: 15px; min-height: 96px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,0.82); padding: 17px 20px; }
.summary-card > div { display: grid; gap: 4px; }
.summary-card small { color: var(--muted); font-size: 12px; font-weight: 700; }
.summary-card strong { font-size: 28px; line-height: 1; }
.summary-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; font-size: 17px; }
.summary-card--all .summary-icon { background: #f1eee9; }
.summary-card--active .summary-icon { background: var(--green-soft); color: var(--green); }
.summary-card--soon .summary-icon { background: var(--yellow-soft); color: #bd7b08; }
.summary-card--free .summary-icon { background: var(--coral-soft); color: var(--coral); }

.board-panel { border-radius: var(--radius-lg); padding: 22px; }
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.filter-tabs { display: flex; gap: 4px; border-radius: 12px; background: #f5f0e9; padding: 4px; }
.filter-tab { min-height: 34px; border: 0; border-radius: 9px; background: transparent; padding: 0 15px; color: var(--muted); font-size: 12px; font-weight: 800; }
.filter-tab.is-active { background: white; color: var(--ink); box-shadow: 0 3px 10px rgba(70, 52, 29, 0.08); }
.table-search { display: flex; flex: 1 1 260px; max-width: 330px; min-height: 40px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 0 10px; color: var(--muted); transition: border-color 160ms ease, box-shadow 160ms ease; }
.table-search:focus-within { border-color: rgba(44,155,117,.55); box-shadow: 0 0 0 3px rgba(44,155,117,.10); }
.table-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; }
.table-search input::-webkit-search-cancel-button { display: none; }
.table-search button { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 50%; background: #f5f0e9; color: var(--muted); font-size: 16px; line-height: 1; }
.table-search button[hidden] { display: none; }
.board-legend { display: flex; gap: 17px; color: var(--muted); font-size: 11px; }
.board-legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.green { background: var(--green); }
.dot.yellow { background: var(--yellow); }
.dot.coral { background: var(--coral); }

.table-grid { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 14px; padding-top: 20px; }
.table-card {
  position: relative;
  display: grid;
  min-height: 205px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: white;
  padding: 17px;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.table-card:hover { transform: translateY(-3px); border-color: #d4c7b6; box-shadow: var(--shadow-soft); }
.table-card::after { content: ""; position: absolute; right: -18px; bottom: -22px; width: 74px; height: 74px; border-radius: 50%; border: 16px dotted rgba(44, 155, 117, 0.08); }
.table-card.is-free { border-color: #ded6cb; background: #fff; }
.table-card.is-active { border-color: #8bcbb2; background: #f0faf6; box-shadow: inset 0 0 0 1px rgba(44, 155, 117, 0.08); }
.table-card.is-active::after { border-color: rgba(44, 155, 117, 0.14); }
.table-card.is-scheduled { border-color: #9fc4e3; background: #f2f8fd; box-shadow: inset 0 0 0 1px rgba(80, 145, 197, 0.08); }
.table-card.is-soon { border-color: #efcf88; background: #fffdf7; }
.table-card.is-overdue { border-color: #f1a99e; background: #fff9f7; }
.table-card.is-overdue::before { content: ""; position: absolute; inset: 0; border: 2px solid rgba(247,100,79,0.12); border-radius: inherit; pointer-events: none; }
.table-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.table-number { font-size: 19px; font-weight: 900; letter-spacing: -0.03em; }
.table-state { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; background: var(--green-soft); padding: 5px 9px; color: #237c60; font-size: 10px; font-weight: 800; }
.table-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.is-active .table-state { background: #eef5fb; color: var(--blue); }
.is-scheduled .table-state { background: #eef5fb; color: var(--blue); }
.is-soon .table-state { background: var(--yellow-soft); color: #ad740c; }
.is-overdue .table-state { background: var(--coral-soft); color: var(--coral-dark); }
.table-time { align-self: center; margin: 8px 0 2px; font-variant-numeric: tabular-nums; font-size: clamp(25px, 2.2vw, 34px); font-weight: 900; letter-spacing: -0.045em; }
.table-time small { display: block; margin: 0 0 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0; }
.table-card.is-free .table-time small { margin: 5px 0 0; }
.table-card.is-overdue .table-time, .timer-orbit.is-overdue strong { color: var(--coral-dark); letter-spacing: 0.02em; }
.table-meta { display: grid; gap: 3px; align-self: end; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.table-meta > span:first-child { width: fit-content; border-radius: 999px; background: rgba(255,255,255,0.72); padding: 3px 7px; color: #49645b; font-weight: 800; }
.table-meta b { color: var(--ink); font-size: 11px; }
.table-footer { display: flex; align-self: end; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.table-footer b { color: var(--ink); font-weight: 800; }
.table-footer > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-action { color: var(--coral); font-size: 13px; font-weight: 900; }
.empty-state { display: grid; place-items: center; padding: 70px 20px; color: var(--muted); text-align: center; }
.empty-state span { color: var(--yellow); font-size: 42px; }

.mobile-nav { display: none; }

.modal {
  width: min(620px, calc(100% - 28px));
  max-height: min(860px, calc(100vh - 32px));
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: transparent;
  padding: 0;
  box-shadow: 0 28px 90px rgba(43, 32, 22, 0.24);
}
.modal::backdrop { background: rgba(38, 31, 25, 0.42); backdrop-filter: blur(4px); }
.modal-frame { display: flex; flex-direction: column; max-height: min(860px, calc(100vh - 32px)); background: var(--white); }
.modal-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 21px 24px 18px; }
.modal-header h2 { margin: 0; font-size: 25px; }
.modal-header .eyebrow { margin-bottom: 3px; }
.modal-header-actions { display: flex; align-items: center; gap: 8px; }
.table-method-print-button { min-height: 38px; border: 1px solid #efc46f; border-radius: 11px; background: var(--yellow-soft); padding: 0 13px; color: #8c5c08; font-size: 11px; font-weight: 900; }
.table-method-print-button:disabled { cursor: not-allowed; }
.close-button { font-size: 24px; line-height: 1; }
.modal-body { overflow-y: auto; padding: 23px 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding: 15px 24px; }
.modal-footer--split { justify-content: space-between; }

.mode-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; border: 0; margin: 0; padding: 0; }
.mode-picker legend { width: 100%; margin-bottom: 12px; font-size: 13px; font-weight: 900; }
.mode-option { display: grid; grid-template-rows: 34px auto auto; align-content: start; min-height: 132px; border: 1px solid var(--line); border-radius: 15px; padding: 13px; cursor: pointer; }
.mode-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mode-option.is-selected { border-color: var(--coral); background: var(--coral-soft); box-shadow: 0 0 0 2px rgba(247, 100, 79, 0.07); }
.mode-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; }
.mode-icon.coral { background: #ffe1d9; color: var(--coral-dark); }
.mode-icon.green { background: var(--green-soft); color: var(--green); }
.mode-icon.yellow { background: var(--yellow-soft); color: #b57d19; }
.mode-option b { margin-top: 8px; font-size: 13px; }
.mode-option small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }

.duration-section, .timer-start-section, .extend-section { margin-top: 22px; }
.duration-section h3, .timer-start-section h3, .extend-section h3 { margin: 0 0 11px; font-size: 13px; }
.duration-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.duration-pills > button, .duration-pills > label, .extend-section button { min-height: 40px; border: 1px solid var(--line); border-radius: 11px; background: #fffdfa; padding: 0 14px; font-size: 12px; font-weight: 800; }
.duration-pills > button.is-selected { border-color: var(--coral); background: var(--coral-soft); color: var(--coral-dark); }
.duration-pills > label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.duration-pills input { width: 75px; min-height: 30px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0 4px 0 10px; box-shadow: none; }
.start-time-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.start-time-picker > button, .start-time-picker > label { display: flex; min-height: 42px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: #fffdfa; padding: 0 14px; font-size: 12px; font-weight: 800; }
.start-time-picker > button.is-selected { border-color: var(--coral); background: var(--coral-soft); color: var(--coral-dark); }
.start-time-picker input { width: 110px; min-height: 32px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0 0 0 10px; box-shadow: none; }
.timer-start-section > small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.stacked-label { display: grid; gap: 8px; margin-top: 22px; color: #4f4b45; font-size: 13px; font-weight: 800; }
.schedule-preview { display: flex; justify-content: space-between; gap: 18px; margin-top: 16px; border-radius: 12px; background: #f7f3ed; padding: 12px 14px; font-size: 11px; }
.schedule-preview span { color: var(--muted); }
.schedule-preview strong { text-align: right; }

.active-detail { display: grid; justify-items: center; }
.timer-orbit { display: grid; place-items: center; width: 210px; height: 210px; border: 12px solid var(--coral-soft); border-top-color: var(--coral); border-right-color: var(--yellow); border-radius: 50%; transform: rotate(-20deg); }
.timer-orbit > div { display: grid; justify-items: center; transform: rotate(20deg); }
.timer-orbit small { color: var(--coral); font-size: 11px; font-weight: 800; }
.timer-orbit strong { margin: 7px 0 3px; font-size: 35px; font-variant-numeric: tabular-nums; letter-spacing: -0.05em; }
.timer-orbit span { color: var(--muted); font-size: 11px; }
.timer-facts { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 23px; border: 1px solid var(--line); border-radius: 14px; }
.timer-facts > div { display: grid; gap: 5px; padding: 14px; text-align: center; }
.timer-facts > div + div { border-left: 1px solid var(--line); }
.timer-facts small { color: var(--muted); font-size: 10px; }
.timer-facts strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.active-edit-section { display: grid; gap: 8px; width: 100%; margin-top: 15px; }
.active-edit-section > label { color: #4f4b45; font-size: 12px; font-weight: 800; }
.active-edit-section > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.active-edit-section button { min-width: 92px; border: 1px solid var(--line); border-radius: 11px; background: var(--coral-soft); padding: 0 14px; color: var(--coral-dark); font-size: 12px; font-weight: 800; }
.extend-section { width: 100%; }
.extend-section .quick-extend-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.custom-extend-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; }
.custom-extend-row button { min-width: 110px; }
.extend-section button:hover { border-color: var(--coral); background: var(--coral-soft); color: var(--coral-dark); }

.settings-modal { width: min(680px, calc(100% - 28px)); }
.settings-body { display: grid; gap: 14px; background: #fbf8f3; }
.settings-section { border: 1px solid var(--line); border-radius: 17px; background: white; padding: 18px; }
.settings-section h3 { margin: 0 0 4px; font-size: 15px; }
.settings-section p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.settings-section .form-grid-two { margin-bottom: 14px; }
.stepper { display: grid; grid-template-columns: 42px 74px 42px; width: max-content; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.stepper button { border: 0; background: #f7f3ed; font-size: 18px; }
.stepper input { min-height: 40px; border: 0; border-radius: 0; padding: 0; text-align: center; }
.settings-section > .secondary-button { margin-top: 15px; }
.offline-badge { border-radius: 999px; background: #f4f1ec; padding: 6px 10px; color: var(--muted); font-size: 10px; font-weight: 800; }
.offline-badge.is-online { background: var(--green-soft); color: #237c60; }
.printer-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.printer-config-grid label, .printer-field-grid label { display: grid; gap: 7px; color: #4f4b45; font-size: 11px; font-weight: 800; }
.printer-config-grid label:last-child { grid-column: 1 / -1; }
.printer-field-details { margin-top: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fffdfa; padding: 11px 13px; }
.printer-field-details summary { color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.printer-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.printer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.print-job-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; border-top: 1px solid var(--line); padding-top: 14px; }
.print-job-heading h4 { margin: 0; font-size: 12px; }
.print-job-heading button { border: 0; background: transparent; color: var(--coral-dark); font-size: 10px; font-weight: 800; }
.print-job-list { display: grid; gap: 7px; margin-top: 9px; }
.print-job-list > span { display: flex; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfa; padding: 9px 10px; color: var(--muted); font-size: 10px; }
.print-job-list b { color: var(--ink); }
.print-job-state { flex: 0 0 auto; border-radius: 999px; background: #f1eee9; padding: 4px 7px; font-weight: 800; }
.print-job-state.is-success { background: var(--green-soft); color: #237c60; }
.print-job-state.is-error { background: var(--coral-soft); color: var(--coral-dark); }
.method-print-modal { width: min(570px, calc(100% - 28px)); }
.method-print-hint { margin: 0 0 16px; border-radius: 11px; background: var(--yellow-soft); padding: 10px 12px; color: #76531b; font-size: 11px; line-height: 1.5; }
.method-print-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.method-print-grid button { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 7px 9px; color: var(--ink); font-size: 12px; font-weight: 900; }
.method-print-grid button:hover { border-color: #efb54d; background: var(--yellow-soft); color: #8c5c08; }
.custom-method-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 15px; }
.method-print-note { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; }
.pair-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 14px; background: var(--coral-soft); padding: 15px; }
.pair-card > div { display: grid; }
.pair-card small { color: var(--muted); font-size: 10px; }
.pair-card strong { margin: 4px 0; color: var(--coral-dark); font-size: 28px; letter-spacing: 0.15em; }
.pair-card span { color: var(--muted); font-size: 10px; }
.voice-preview { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; width: 100%; margin-top: 11px; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 12px 14px; text-align: left; }
.voice-preview > span:nth-child(2) { display: grid; gap: 3px; }
.voice-preview b { font-size: 12px; }
.voice-preview small { color: var(--muted); font-size: 10px; }
.download-announcer { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; margin-top: 11px; border: 1px solid #b8e4d4; border-radius: 14px; background: var(--green-soft); padding: 12px 14px; color: #237c60; text-decoration: none; }
.download-announcer > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: white; font-size: 18px; font-weight: 900; }
.download-announcer > span:nth-child(2) { display: grid; gap: 3px; }
.download-announcer b { font-size: 12px; }
.download-announcer small { color: #4f7f6d; font-size: 10px; }
.download-announcer > strong { border-radius: 7px; background: white; padding: 5px 7px; font-size: 9px; letter-spacing: .08em; }
.sound-bars { display: flex; align-items: center; gap: 2px; width: 28px; height: 28px; border-radius: 9px; background: var(--green-soft); padding: 6px; }
.sound-bars i { width: 3px; border-radius: 3px; background: var(--green); }
.sound-bars i:nth-child(1), .sound-bars i:nth-child(4) { height: 8px; }
.sound-bars i:nth-child(2) { height: 16px; }
.sound-bars i:nth-child(3) { height: 12px; }
.inline-create { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; }
.staff-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.staff-list > span { border: 1px solid var(--line); border-radius: 999px; background: #fffdfa; padding: 7px 10px; color: var(--muted); font-size: 10px; }
.staff-list > span b { margin-right: 4px; color: var(--ink); }
.staff-create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.staff-create-grid button { grid-column: 1 / -1; }
.account-section { display: flex; align-items: center; justify-content: space-between; }
.account-section > div { display: grid; gap: 3px; }
.account-section small, .account-section span { color: var(--muted); font-size: 10px; }

.toast-region { position: fixed; z-index: 100; top: 92px; right: 22px; display: grid; gap: 9px; width: min(370px, calc(100% - 32px)); }
.toast { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 10px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 13px; background: white; box-shadow: var(--shadow); padding: 13px; animation: toast-in 220ms ease-out; }
.toast.is-error { border-left-color: var(--coral); }
.toast strong { display: block; margin-bottom: 3px; font-size: 12px; }
.toast p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.toast button { border: 0; background: transparent; color: var(--muted); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1120px) {
  .table-grid { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
  .topbar { grid-template-columns: auto 1fr auto; }
  .store-switcher { justify-self: center; }
  .status-pill--speaker { display: none; }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; gap: 36px; padding-block: 40px; }
  .auth-brand { max-width: 660px; }
  .auth-brand h1 { font-size: clamp(38px, 8vw, 62px); }
  .auth-feature-list { grid-template-columns: repeat(3, 1fr); }
  .auth-feature-list > div { align-content: start; }
  .auth-card { width: min(560px, 100%); }
  .auth-seo-summary { grid-template-columns: 1fr; }
  .table-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .board-legend { display: none; }
}

@media (max-width: 680px) {
  body { background: #faf6ef; }
  .auth-shell { padding: 24px 17px 38px; }
  .auth-brand { padding: 12px 5px 0; }
  .brand-mark--large { margin-bottom: 42px; transform: scale(1.3); }
  .auth-brand h1 { font-size: 35px; }
  .auth-lead { margin: 18px 0 25px; font-size: 15px; }
  .auth-feature-list { grid-template-columns: 1fr; }
  .auth-card { padding: 8px 20px 24px; border-radius: 24px; }
  .auth-detail-link { line-height: 1.6; }
  .auth-seo-summary { gap: 22px; padding: 30px 5px 0; }
  .auth-seo-heading h2 { font-size: 25px; }
  .auth-seo-grid { grid-template-columns: 1fr; }
  .form-grid-two { grid-template-columns: 1fr; }

  .app-shell { padding-bottom: 86px; }
  .topbar { position: relative; grid-template-columns: 1fr auto; min-height: 68px; padding: 9px 17px; }
  .brand-lockup .brand-mark { transform: scale(0.85); transform-origin: left center; width: 39px; }
  .brand-lockup strong { font-size: 16px; }
  .store-switcher { grid-column: 1 / -1; grid-row: 2; display: flex; width: 100%; }
  .store-switcher label { flex: 0 0 auto; }
  .store-switcher select { flex: 1; }
  .topbar-actions .status-pill, .topbar-actions .icon-button { display: none; }
  .dashboard { width: calc(100% - 24px); padding-top: 24px; }
  .welcome-row { align-items: flex-start; margin-bottom: 21px; }
  .welcome-row { flex-direction: column; gap: 16px; }
  .welcome-row h1 { font-size: 27px; line-height: 1.2; }
  .welcome-row > div > p:last-child { line-height: 1.6; }
  .welcome-row .secondary-button { display: none; }
  .welcome-actions { width: 100%; }
  .welcome-row .frontdesk-call-launch { display: inline-flex; flex: 1; justify-content: center; }
  .welcome-row .method-print-launch { display: inline-flex; flex: 0 0 auto; }
  .windows-download-link--dashboard { display: none; }
  .summary-grid { gap: 8px; margin-bottom: 12px; }
  .summary-card { min-height: 78px; gap: 10px; padding: 12px; }
  .summary-icon { width: 34px; height: 34px; border-radius: 10px; }
  .summary-card strong { font-size: 23px; }
  .summary-card small { font-size: 10px; }
  .board-panel { border: 0; border-radius: 20px; padding: 13px; box-shadow: none; }
  .board-toolbar { flex-wrap: wrap; overflow: visible; padding-bottom: 12px; }
  .filter-tabs { min-width: max-content; }
  .table-search { order: 3; max-width: none; flex-basis: 100%; }
  .board-legend { margin-left: auto; }
  .filter-tab { padding-inline: 13px; }
  .table-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding-top: 12px; }
  .table-card { min-height: 190px; border-radius: 15px; padding: 13px; }
  .table-number { font-size: 16px; }
  .table-state { padding: 4px 7px; font-size: 9px; }
  .table-time { font-size: 24px; }
  .table-meta, .table-footer { font-size: 9px; }
  .mobile-nav { position: fixed; z-index: 30; right: 12px; bottom: calc(9px + env(safe-area-inset-bottom)); left: 12px; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 61px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,0.95); box-shadow: 0 10px 34px rgba(48,35,22,0.18); padding: 5px; backdrop-filter: blur(16px); }
  .mobile-nav.is-staff { grid-template-columns: repeat(2, 1fr); }
  .mobile-nav button { display: grid; place-items: center; align-content: center; gap: 2px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 800; }
  .mobile-nav button span { font-size: 17px; }
  .mobile-nav button.is-active { background: var(--coral-soft); color: var(--coral-dark); }

  .modal { width: 100%; max-height: calc(100vh - 22px); margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .modal-frame { max-height: calc(100vh - 22px); padding-bottom: env(safe-area-inset-bottom); }
  .modal-header, .modal-body { padding-inline: 18px; }
  .table-method-print-button { max-width: 112px; padding-inline: 9px; line-height: 1.25; }
  .modal-footer { padding-inline: 18px; }
  .mode-picker { grid-template-columns: 1fr; }
  .mode-option { grid-template-columns: 37px 1fr; grid-template-rows: auto auto; min-height: 74px; align-items: center; }
  .mode-option .mode-icon { grid-row: 1 / 3; }
  .mode-option b { margin-top: 0; }
  .timer-orbit { width: 185px; height: 185px; }
  .timer-facts { grid-template-columns: 1fr; }
  .timer-facts > div { grid-template-columns: 90px 1fr; text-align: left; }
  .timer-facts > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .active-edit-section > div, .custom-extend-row { grid-template-columns: 1fr; }
  .active-edit-section button, .custom-extend-row button { min-height: 42px; }
  .inline-create { grid-template-columns: 1fr 115px; }
  .inline-create button { grid-column: 1 / -1; }
  .staff-create-grid { grid-template-columns: 1fr; }
  .printer-config-grid, .printer-field-grid { grid-template-columns: 1fr; }
  .printer-config-grid label:last-child { grid-column: auto; }
  .method-print-grid { grid-template-columns: repeat(2, 1fr); }
  .custom-method-row { grid-template-columns: 1fr; }
  .pair-card { align-items: stretch; flex-direction: column; }
  .pair-card button { width: 100%; }
  .toast-region { top: 16px; right: 16px; }
}

@media (max-width: 380px) {
  .table-grid { grid-template-columns: 1fr; }
  .table-card { min-height: 180px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
