:root {
  --ink: #17201b;
  --muted: #5d6a63;
  --line: #d8e0da;
  --paper: #fbfaf4;
  --card: #ffffff;
  --green: #195f46;
  --sun: #f0bf4b;
  --danger: #a84937;
}

/* 2026-08-17 品牌统一：仅覆盖视觉，不改变任何页面结构和交互逻辑。 */
:root {
  --ink: #282424;
  --muted: #7e7472;
  --line: #eee5e3;
  --paper: #f7f5f4;
  --card: #ffffff;
  --green: #d71936;
  --sun: #f3bd4d;
  --danger: #bd1730;
}

body {
  background:
    radial-gradient(circle at 4% 4%, rgba(215, 25, 54, 0.09), transparent 25rem),
    linear-gradient(145deg, #fbfaf9 0%, #f6f3f2 58%, #f3f0ef 100%);
}

button,
input,
select,
textarea,
.hero,
.workbench,
.form-card,
.capacity-card,
.admin-tools,
.booking-calendar,
.success-modal,
.person-detail-modal {
  border-radius: 14px;
}

button {
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

button:not(:disabled):hover {
  border-color: rgba(215, 25, 54, 0.42);
}

.hero {
  overflow: hidden;
  position: relative;
  padding: 42px;
  border: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.16), transparent 18rem),
    linear-gradient(125deg, #c91431, #e52a45 62%, #9d0b22);
  box-shadow: 0 22px 52px rgba(150, 15, 37, 0.18);
}

.hero .eyebrow,
.hero h1,
.hero .lead {
  color: #fff;
}

.hero .eyebrow {
  opacity: 0.78;
  letter-spacing: 0.12em;
}

.hero .lead {
  opacity: 0.86;
}

.login-mode .hero {
  min-height: 250px;
}

.workbench {
  margin-top: 20px;
  padding: 28px;
  border-color: #eee7e5;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 15px 38px rgba(83, 45, 50, 0.07);
}

.gate-single .gate-card {
  width: min(100%, 700px);
}

.form-card,
.capacity-card,
.admin-tools {
  border-color: #eee7e5;
  border-radius: 18px;
  box-shadow: 0 9px 28px rgba(83, 45, 50, 0.045);
}

label,
.field-label,
.admin-kicker {
  color: #bd1730;
}

input,
select,
textarea {
  border-color: #e7dcda;
  border-radius: 13px;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #d71936;
  box-shadow: 0 0 0 4px rgba(215, 25, 54, 0.1);
}

.primary {
  border-color: #d71936;
  background: linear-gradient(120deg, #d71936, #bd102b);
  color: #fff;
  box-shadow: 0 9px 20px rgba(190, 17, 43, 0.18);
}

.primary:not(:disabled):hover {
  border-color: #a80e27;
  background: linear-gradient(120deg, #c81430, #a90d27);
  transform: translateY(-1px);
}

.toast,
.toast.success,
.last-login,
.current-child,
.check-row,
.card-balance {
  border-color: rgba(215, 25, 54, 0.18);
  background: #fff3f5;
  color: #bd1730;
}

.last-login strong,
.current-child strong {
  color: #bd1730;
}

.calendar-toolbar,
.record-table th,
.child-profile-table th {
  background: #fff3f5;
}

.calendar-days button:hover:not(:disabled) {
  border-color: #e3a4ae;
  background: #fff3f5;
}

.calendar-days button.is-today {
  border-color: #d71936;
  color: #bd1730;
}

.calendar-days button.is-selected {
  border-color: #d71936;
  background: #d71936;
  color: #fff;
}

.family-child.is-selected,
.record.active,
.day-card.booked {
  border-color: rgba(215, 25, 54, 0.34);
  background: #fff3f5;
}

.admin-mode {
  background: #f5f3f2;
  color: #332d2c;
}

.admin-mode .store-sidebar {
  background: linear-gradient(180deg, #b70e29 0%, #8f0a20 100%);
}

.store-brand > span {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.store-brand strong {
  color: #fff;
}

.store-brand em,
.admin-mode .store-sidebar h3,
.admin-mode .store-nav button span {
  color: rgba(255, 255, 255, 0.66);
}

.admin-mode .store-sidebar h3::after {
  background: rgba(255, 255, 255, 0.32);
}

.admin-mode .store-nav button.is-active,
.card-management-shortcut.is-active {
  border-color: rgba(255, 255, 255, 0.78);
  background: #fff;
  color: #b10d28;
  box-shadow: 0 9px 22px rgba(77, 3, 18, 0.2);
}

.admin-mode .store-nav button.is-active span {
  color: #b10d28;
}

.admin-mode .admin-session-bar {
  background: #fff;
  box-shadow: 0 1px 0 #eee5e3;
}

.admin-mode .admin-session-bar span,
.admin-mode .admin-page-heading h2,
.admin-mode .metric b {
  color: #a90d27;
}

.admin-mode .admin-nav,
.admin-mode .metric-row,
.admin-mode .record-summary,
.admin-mode .record-table-wrap {
  border-color: #e9dfdd;
  background: #fff;
}

.admin-mode .admin-nav button.is-active,
.admin-mode .record-table th {
  background: #fff0f2;
  color: #b10d28;
}

.admin-mode .admin-actions > button:first-of-type {
  border-color: #d71936;
  background: #d71936;
}

.admin-mode .record-summary {
  border-left-color: #d71936;
}

@media (max-width: 640px) {
  .hero {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .workbench {
    padding: 18px;
    border-radius: 18px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(240, 191, 75, 0.13), transparent 32rem),
    linear-gradient(225deg, rgba(37, 111, 145, 0.12), transparent 36rem),
    var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  padding: 0 16px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.hidden {
  display: none !important;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 20%, rgba(126, 164, 91, 0.18), transparent 18rem),
    linear-gradient(150deg, #fffef8, #eef6f0);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(23, 32, 27, 0.08);
}

.login-mode .hero {
  min-height: 220px;
  grid-template-columns: 1fr;
}

.login-mode .hero-panel {
  display: none;
}

.admin-mode .hero {
  display: none;
}

.admin-mode main {
  width: min(1380px, calc(100% - 28px));
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: 24px;
  margin-bottom: 18px;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 8px;
  background: #173326;
  color: white;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.72);
}

.hero-panel strong {
  display: block;
  margin: 14px 0 28px;
  font-size: 32px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.panel-grid p {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.panel-grid b {
  display: block;
  font-size: 28px;
  color: var(--sun);
}

.toast {
  width: fit-content;
  max-width: 100%;
  margin: 14px 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6faf7;
  color: var(--green);
  font-size: 17px;
  font-weight: 600;
}

.toast.error {
  border-color: #efc7bd;
  background: #fff7f4;
  color: var(--danger);
}

.toast.success {
  border-color: rgba(25, 95, 70, 0.22);
  background: #eef7f1;
  color: var(--green);
}

.workbench {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 22px;
  margin-top: 18px;
}

.booking-grid,
.gate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}

.gate-card {
  align-self: start;
  display: grid;
  gap: 22px;
}

.gate-single .gate-card {
  width: min(100%, 720px);
  margin: 0 auto;
}

.last-login {
  min-height: auto;
  justify-content: flex-start;
  display: grid;
  gap: 5px;
  text-align: left;
  padding: 14px;
  border-color: rgba(25, 95, 70, 0.26);
  background: #eef7f1;
}

.last-login span,
.last-login em {
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
}

.last-login strong {
  color: var(--green);
  font-size: 22px;
}

.gate-card .form-actions {
  margin-top: 4px;
}

.gate-card .form-actions button {
  width: min(320px, 100%);
}

.admin-grid {
  display: block;
}

.admin-grid .admin-tools {
  padding: 0;
  border: 0;
  background: transparent;
}

/* 员工后台：深墨绿 × 暖白 × 金色，按门店进行每日预约查看。 */
.store-dashboard {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.store-sidebar {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 0;
}

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

.store-nav button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.store-nav button strong {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.store-nav button span {
  min-width: 36px;
  color: #a7c6b8;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.store-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.store-content {
  min-width: 0;
}

.admin-mode {
  background: #f5f2eb;
  color: #193f35;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.admin-mode main {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0 42px 48px 330px;
}

.admin-mode .workbench {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-mode .admin-session-bar {
  min-height: 74px;
  margin: 0 -42px;
  padding: 0 46px;
  border: 0;
  border-radius: 0;
  background: #fffdfa;
  box-shadow: 0 1px 0 rgba(25, 63, 53, 0.1);
}

.admin-mode .admin-session-bar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-mode .admin-session-bar span {
  color: #1d4b3f;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-mode .admin-session-bar strong {
  margin-left: auto;
  color: #45564d;
  font-size: 18px;
}

.admin-mode .admin-session-bar em {
  color: #7e8982;
  font-size: 16px;
}

.admin-mode .admin-session-bar button {
  min-height: 38px;
  border-color: #d9d3c7;
  background: transparent;
  color: #506158;
}

.admin-mode .admin-page-heading {
  margin: 0 0 22px;
  padding-top: 38px;
}

.admin-mode .admin-page-heading h2 {
  color: #174438;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.admin-mode .store-dashboard {
  display: block;
}

.admin-mode .store-sidebar {
  position: fixed;
  z-index: 5;
  inset: 0 auto 0 0;
  width: 288px;
  min-height: 100vh;
  overflow-y: auto;
  padding: 30px 18px 24px;
  border: 0;
  border-radius: 0;
  background: #064c3c;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 10px 42px;
}

.store-brand > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1.5px solid #e5b448;
  border-radius: 14px;
  color: #f5cf69;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.store-brand div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.store-brand strong {
  color: #fff9e9;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.store-brand em {
  color: #91b7a6;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  white-space: nowrap;
}

.admin-mode .store-sidebar h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 12px 12px;
  color: #b6d0c4;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.admin-mode .store-sidebar h3::after {
  width: 28px;
  height: 1px;
  background: rgba(229, 180, 72, 0.68);
  content: "";
}

.admin-mode .store-nav button {
  color: rgba(255, 255, 255, 0.82);
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
}

.admin-mode .store-nav button span {
  color: #93b9a8;
}

.admin-mode .store-nav button:hover {
  background: rgba(255, 255, 255, 0.075);
  transform: translateX(2px);
}

.admin-mode .store-nav button.is-active {
  border-color: rgba(245, 207, 105, 0.7);
  background: #f5cf69;
  color: #174438;
  box-shadow: 0 8px 18px rgba(1, 43, 33, 0.18);
}

.admin-mode .store-nav button.is-active span {
  color: #365d4d;
  font-weight: 700;
}

.card-management-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 12px;
  border: 1px solid rgba(225, 241, 232, 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 18px;
  font-weight: 750;
  text-align: left;
}

.card-management-shortcut svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.card-management-shortcut:hover {
  background: rgba(255, 255, 255, 0.085);
}

.card-management-shortcut.is-active {
  border-color: rgba(245, 207, 105, 0.7);
  background: linear-gradient(100deg, #f7d36f, #f4cd67);
  color: #174438;
}

.admin-mode .admin-nav {
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid #e1dace;
  border-radius: 14px;
  background: #fffdfa;
}

.admin-mode .admin-nav button {
  min-height: 42px;
  border-radius: 9px;
  color: #66746b;
}

.admin-mode .admin-nav button.is-active {
  border-color: transparent;
  background: #e8f0e9;
  color: #174438;
  box-shadow: none;
}

.admin-mode .metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 0 0 20px;
  border: 1px solid #ddd6ca;
  border-radius: 14px;
  background: #fffdfa;
}

.admin-mode .metric:nth-child(n + 5) {
  display: none;
}

.admin-mode .metric {
  min-height: 126px;
  padding: 21px 22px;
  border-right: 1px solid #e6dfd3;
  border-radius: 0;
  background: transparent;
}

.admin-mode .metric:nth-child(4n) {
  border-right: 0;
}

.admin-mode .store-customer-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


.admin-mode .store-customer-metrics .metric {
  min-height: 104px;
  padding: 18px 22px;
}

.admin-mode .store-customer-metrics .metric:nth-child(2n) {
  border-right: 0;
}

.admin-mode .metric span {
  color: #7b837e;
  font-size: 16px;
}

.admin-mode .metric b {
  color: #174438;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.admin-mode #adminAppointmentsPanel {
  position: relative;
}

.admin-mode .admin-actions button,
.admin-mode .filter-controls select,
.admin-mode .filter-controls input {
  border-color: #ddd6ca;
  background: #fffdfa;
}

.admin-mode .admin-actions > button:first-of-type {
  border-color: #174438;
  background: #174438;
  color: #fff;
}

.admin-mode .filter-controls > select {
  display: none;
}

.admin-mode .record-summary {
  margin: 0;
  padding: 20px;
  border: 1px solid #e1dace;
  border-top: 0;
  border-left: 4px solid #f5cf69;
  background: #fffdfa;
}

.admin-mode .record-table-wrap {
  border-color: #e1dace;
  border-radius: 0 0 16px 16px;
  background: #fffdfa;
}

.admin-mode .record-table th {
  background: #edf3ed;
  color: #36584a;
}

.admin-mode .record-table td {
  border-color: #eee8de;
}

.admin-mode .record-table tr:hover td {
  background: #fbf8f1;
}

.admin-mode .toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  margin: 0;
  box-shadow: 0 12px 28px rgba(23, 53, 43, 0.16);
}

.admin-login-view {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.staff-login-card {
  width: min(100%, 520px);
  display: grid;
  gap: 18px;
}

.staff-login-card h2 {
  margin: 6px 0 0;
  font-size: 30px;
}

.admin-kicker {
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
}

.admin-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(25, 95, 70, 0.22);
  border-radius: 8px;
  background: #eef7f1;
}

.admin-page-heading {
  display: grid;
  gap: 4px;
  margin: 4px 0 18px;
}

.admin-page-heading span {
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
}

.admin-page-heading h2 {
  margin: 0;
  font-size: 32px;
}

.parent-nav,
.admin-nav {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2ee;
}

.parent-nav {
  width: min(100%, 560px);
  margin: 18px auto 0;
}

.parent-nav button,
.admin-nav button {
  min-height: 44px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.parent-nav button {
  flex: 1;
}

.parent-nav button.is-active,
.admin-nav button.is-active {
  border-color: rgba(25, 95, 70, 0.28);
  background: #fff;
  color: var(--green);
  box-shadow: 0 3px 10px rgba(23, 32, 27, 0.08);
}

.admin-nav {
  overflow-x: auto;
  margin-bottom: 20px;
}

.admin-nav button {
  flex: 0 0 auto;
  min-width: 126px;
}

.admin-panel {
  min-height: 420px;
}

.admin-session-bar span,
.admin-session-bar strong,
.admin-session-bar em {
  display: inline-block;
  margin-right: 8px;
}

.admin-session-bar span,
.admin-session-bar em {
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
}

.staff-management {
  margin: 0;
  padding: 4px 0 20px;
  border: 0;
}

.staff-account-form {
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.audit-section {
  margin-top: 0;
  padding-top: 4px;
  border-top: 0;
}

.audit-section .registry-heading {
  margin-bottom: 14px;
}

.audit-table {
  min-width: 920px;
}

.form-card,
.capacity-card,
.admin-tools {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 22px;
}

.appointment-form,
.update-card {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 12px;
  color: var(--green);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.calendar-field {
  display: grid;
  gap: 12px;
}

.field-label {
  color: var(--green);
  font-size: 19px;
  font-weight: 700;
}

.booking-calendar {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f3f7f4;
}

.calendar-toolbar strong {
  color: var(--ink);
  text-align: center;
  font-size: 20px;
}

.calendar-toolbar button,
.calendar-days button {
  min-width: 0;
  padding: 0;
}

.calendar-toolbar button {
  width: 44px;
  min-height: 40px;
  border-color: #b8c8bf;
  font-size: 22px;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  padding: 10px 12px 4px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.calendar-days {
  gap: 5px;
  padding: 6px 12px 14px;
}

.calendar-days button,
.calendar-blank {
  width: 100%;
  height: 44px;
  min-height: 44px;
}

.calendar-days button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.calendar-days button:hover:not(:disabled) {
  border-color: #9bb7a8;
  background: #edf5f0;
}

.calendar-days button.is-today {
  border-color: #d4a62f;
}

.calendar-days button.is-selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.calendar-days button:disabled {
  color: #b7beb9;
  cursor: not-allowed;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  min-height: 50px;
  padding: 0 14px;
  outline: none;
  font-size: 19px;
  font-weight: 500;
}

input::placeholder,
textarea::placeholder {
  color: #8c9690;
  font-weight: 500;
}

input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  padding: 0;
  accent-color: var(--green);
}

.gate-card input {
  min-height: 54px;
  font-size: 20px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(25, 95, 70, 0.12);
}

.form-actions,
.inline-form,
.metric-row,
.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 12px 14px;
  border: 1px solid rgba(25, 95, 70, 0.18);
  border-radius: 8px;
  background: #eef7f1;
  color: var(--green);
}

.form-actions button {
  min-width: 160px;
}

.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.current-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(25, 95, 70, 0.22);
  border-radius: 8px;
  background: #eef7f1;
}

.current-child span,
.current-child em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.current-child strong {
  display: block;
  font-size: 26px;
  margin: 4px 0;
}

.family-picker {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.family-picker-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.family-picker-title > div {
  display: grid;
  gap: 4px;
}

.family-picker-title span {
  color: var(--green);
  font-size: 19px;
  font-weight: 800;
}

.family-picker-title em {
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
}

.add-child {
  flex: 0 0 auto;
  min-height: 38px;
  border-color: rgba(25, 95, 70, 0.35);
  color: var(--green);
  font-weight: 700;
}

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

.family-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.first-profile {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(25, 95, 70, 0.24);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #f6faf7;
}

.first-profile-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.first-profile-heading strong {
  color: var(--green);
  font-size: 21px;
}

.first-profile-heading span {
  color: var(--muted);
  font-size: 15px;
}

.first-profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 0.65fr;
  gap: 12px;
}

.first-profile-fields label {
  gap: 8px;
  font-size: 17px;
}

.first-profile-fields input {
  min-height: 48px;
  background: white;
  font-size: 18px;
}

.family-child {
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  padding: 14px;
  text-align: left;
  border-width: 2px;
}

.family-child span {
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
}

.family-child strong {
  color: var(--muted);
  font-size: 16px;
}

.family-child em {
  color: var(--green);
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
}

.family-child.is-selected {
  border-color: var(--green);
  background: #eaf5ed;
  box-shadow: 0 5px 14px rgba(23, 32, 27, 0.1);
}

.mine-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-strip {
  display: grid;
  gap: 7px;
  padding: 18px;
  border-radius: 8px;
  background: #f0f6f2;
}

.profile-strip strong {
  font-size: 26px;
}

.profile-strip span,
.day-card span,
.day-card em,
.subtle {
  color: var(--muted);
  font-style: normal;
}

.checkin-section {
  margin-top: 20px;
}

.section-title {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.section-title span {
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
}

.section-title strong {
  font-size: 28px;
}

.section-title em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.checkin-card {
  display: grid;
  grid-template-columns: 0.8fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 2px solid rgba(25, 95, 70, 0.28);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 10px 24px rgba(23, 32, 27, 0.08);
}

.checkin-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.checkin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.file-field {
  min-height: 0;
}

.file-field input {
  min-height: 46px;
  padding: 10px 12px;
}

.checkin-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 4px;
}

.checkin-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.5;
}

.checkin-status.info {
  background: #eef7f1;
  color: var(--green);
}

.checkin-status.success {
  background: #e6f4ec;
  color: var(--green);
}

.checkin-status.error {
  background: #fff7f4;
  color: var(--danger);
}

.checkin-list span {
  color: var(--muted);
  font-size: 16px;
}

.checkin-list b {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e6f4ec;
  color: var(--green);
  font-size: 15px;
}

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

.empty-booking {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.day-card {
  min-height: 154px;
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
}

.day-card.booked {
  border-color: rgba(25, 95, 70, 0.42);
  background: #f0f8f3;
}

.day-card strong {
  font-size: 23px;
}

.mini-danger {
  border-color: #efc7bd;
  color: var(--danger);
  background: #fff7f4;
}

.locked-note {
  color: var(--danger) !important;
  font-size: 15px;
}

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

.slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f3f7f4;
}

.slot.full {
  background: #fff3ef;
  color: var(--danger);
}

.metric {
  flex: 1 1 120px;
  padding: 14px;
  border-radius: 8px;
  background: #f3f7f4;
}

.metric span,
.record span,
.record em {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
}

.metric b {
  display: block;
  font-size: 32px;
  margin-top: 4px;
}

.search {
  margin: 0;
  min-width: min(100%, 360px);
}

.filter-controls {
  display: grid;
  grid-template-columns: 150px minmax(190px, 260px) auto;
  gap: 10px;
  flex: 1 1 720px;
}

.filter-controls select,
.filter-controls input {
  min-height: 46px;
}

.date-quick-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 6px;
}

.date-quick-nav button {
  min-height: 46px;
  white-space: nowrap;
}

.date-quick-nav .is-today {
  border-color: var(--green);
  color: var(--green);
  font-weight: 800;
}

.record-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: #eef7f1;
}

.record-summary strong {
  font-size: 22px;
}

.record-summary span {
  color: var(--muted);
  font-weight: 700;
}

.record-empty {
  height: 150px;
  color: var(--muted);
  text-align: center !important;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}

.child-registry {
  margin: 0;
  padding: 4px 0 20px;
  border: 0;
}

.registry-heading span,
.registry-heading strong {
  display: block;
}

.registry-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.registry-heading > button {
  flex: 0 0 auto;
  border-color: rgba(25, 95, 70, 0.35);
  color: var(--green);
  font-weight: 700;
}

.store-customer-registry .registry-heading > .primary {
  min-width: 118px;
  background: var(--green);
  border-color: var(--green);
  color: #fff !important;
}

/* Compatible with a page that was already open before the wording was removed. */
#storeCustomerHint {
  display: none !important;
}

.registry-heading span {
  color: var(--green);
  font-size: 22px;
  font-weight: 800;
}

.registry-heading strong {
  margin-top: 5px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.child-profile-form {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.7fr auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0;
  padding: 16px;
  background: #f3f7f4;
}

.authorized-phone-form {
  grid-template-columns: minmax(220px, 1.2fr) minmax(200px, 1fr) auto;
}

.store-customer-registry {
  display: grid;
  gap: 16px;
}

.store-customer-form {
  grid-template-columns: 1fr 1.15fr 1fr 0.72fr 0.95fr auto;
}

.card-product-form {
  grid-template-columns: 1.2fr 0.9fr 0.8fr 0.9fr auto auto;
  max-width: none;
}

.store-customer-form select,
.card-product-form select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.card-manager-registry .registry-heading > .primary {
  min-width: 118px;
  background: var(--green);
  border-color: var(--green);
  color: #fff !important;
}

.card-manager-registry .registry-heading {
  margin-bottom: 20px;
}

.card-product-form .card-check {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  white-space: nowrap;
}

.card-product-form .card-check input {
  width: 18px;
  min-height: auto;
  height: 18px;
}

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

.card-product-item {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfa;
  color: var(--green);
}

.card-product-item strong {
  font-size: 19px;
}

.card-product-item span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.card-balance-list { display: grid; gap: 8px; margin: 12px 0; }
.card-balance { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f6faf7; color: var(--green); }
.card-balance em { grid-column: 1 / -1; color: var(--muted); font-size: 14px; font-style: normal; }
.card-balance-empty { color: var(--muted); font-size: 15px; }

.store-customer-form-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.store-customer-form-actions button {
  min-width: auto;
}

.store-customer-table-wrap {
  max-height: 460px;
}

.store-customer-table {
  min-width: 940px;
}

.store-customer-children,
.store-customer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.store-customer-children span {
  padding: 5px 8px;
  border-radius: 8px;
  background: #edf4ef;
  color: var(--ink);
  font-size: 15px;
}

.store-customer-actions button {
  min-height: 31px;
  padding: 0 9px;
  font-size: 14px;
}

.child-profile-form label {
  gap: 7px;
  font-size: 16px;
}

.child-profile-form input {
  min-height: 44px;
  font-size: 17px;
}

.child-profile-form button {
  min-width: 118px;
  min-height: 44px;
}

.child-profile-table-wrap {
  max-height: 290px;
  overflow: auto;
  border: 1px solid var(--line);
}

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

.child-profile-table th,
.child-profile-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.child-profile-table th {
  position: sticky;
  top: 0;
  background: #eaf3ed;
  color: var(--green);
  font-size: 15px;
}

.registry-status {
  color: var(--muted);
  font-size: 15px;
}

.registry-status.booked {
  color: var(--green);
  font-weight: 800;
}

.phone-delete {
  min-height: 34px;
  padding: 0 12px;
  border-color: #e8b7ad;
  background: #fff7f4;
  color: var(--danger);
  font-weight: 700;
}

.registry-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.customer-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 0;
  color: var(--muted);
  font-size: 15px;
}

.customer-pagination > div {
  display: flex;
  gap: 8px;
}

.customer-pagination button {
  min-height: 34px;
  padding: 0 12px;
  border-color: var(--line);
  background: #fff;
  color: var(--green);
  font-weight: 700;
}

.customer-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.record-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
}

.record-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.record-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
}

.record-table th,
.record-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

.record-table th {
  background: #eef7f1;
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
}

.record-table tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.pill.neutral {
  background: #f3f7f4;
  color: var(--muted);
}

.pill.done {
  background: #e6f4ec;
  color: var(--green);
}

.pill.pending {
  background: #fff7f4;
  color: var(--danger);
}

.table-action {
  min-height: 36px;
  padding: 0 12px;
}

.record-store {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}

.booking-review-actions {
  display: flex;
  gap: 7px;
}

.booking-review-actions .table-action {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.checkin-view {
  min-height: 38px;
  border-color: rgba(25, 95, 70, 0.3);
  background: #eef7f1;
  color: var(--green);
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(23, 32, 27, 0.1);
}

.checkin-view:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(23, 32, 27, 0.14);
}

.detail-button {
  min-height: 40px;
  padding: 0 14px;
  border-color: var(--green);
  background: #fff;
  color: var(--green);
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(23, 32, 27, 0.1);
}

.detail-button:hover {
  background: var(--green);
  color: #fff;
}

.vision-toggle {
  min-width: 104px;
  min-height: 42px;
  border-width: 2px;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(23, 32, 27, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}

.vision-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.88;
}

.vision-toggle.is-pending {
  border-color: var(--danger);
  background: #fff8f5;
  color: var(--danger);
}

.vision-toggle.is-done {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.vision-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 32, 27, 0.16);
}

.record {
  display: grid;
  gap: 4px;
  min-height: auto;
  text-align: left;
  justify-content: stretch;
  padding: 12px;
}

.record.active {
  border-color: var(--green);
  background: #eef7f1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 32, 27, 0.58);
}

.success-modal {
  width: min(100%, 430px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.22);
}

.action-success-modal {
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e6f4ec;
  color: var(--green);
  font-size: 32px;
  font-weight: 900;
}

.action-success-modal h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.action-success-modal p {
  color: var(--muted);
  line-height: 1.7;
}

.action-success-modal .primary {
  width: 100%;
  margin-top: 8px;
}

.success-mark {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #eaf5ed;
  color: var(--green);
  font-weight: 700;
}

.notice-mark {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff4df;
  color: #8b5b08;
  font-weight: 700;
}

.notice-modal p {
  margin-bottom: 22px;
  font-size: 18px;
}

.success-modal h2 {
  margin: 12px 0 10px;
}

.success-modal p {
  color: var(--muted);
  line-height: 1.7;
}

.success-modal .primary {
  width: 100%;
}

.checkin-modal {
  width: min(100%, 720px);
  max-height: min(86vh, 760px);
  overflow: auto;
}

.checkin-images {
  display: grid;
  gap: 14px;
  margin: 14px 0 18px;
}

.checkin-images figure {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf4;
}

.checkin-images figcaption {
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 800;
}

.checkin-images img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
}

.detail-backdrop {
  align-items: start;
  overflow-y: auto;
  padding: 24px;
}

.person-detail-modal {
  width: min(100%, 860px);
  margin: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.24);
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-header > div > span {
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
}

.detail-header h2 {
  margin: 6px 0;
  font-size: 27px;
}

.detail-header p {
  margin: 0;
  color: var(--muted);
}

.detail-close {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.detail-summary > div,
.detail-summary > span {
  padding: 16px;
  background: #f3f7f4;
}

.detail-summary span,
.detail-summary strong {
  display: block;
}

.detail-summary span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 15px;
}

.detail-summary strong {
  color: var(--ink);
  font-size: 21px;
}

.detail-section + .detail-section {
  margin-top: 26px;
}

.detail-section h3 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 20px;
}

.detail-bookings {
  display: grid;
  gap: 8px;
}

.detail-booking-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 80px 90px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-booking-row em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.detail-booking-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.detail-log-row {
  grid-template-columns: minmax(180px, 1fr) 100px minmax(120px, 1fr);
}

.detail-empty,
.detail-error {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.detail-error {
  color: var(--danger);
}

@media (max-width: 640px) {
  .detail-backdrop {
    padding: 0;
  }

  .person-detail-modal {
    min-height: 100vh;
    padding: 20px;
    border: 0;
    border-radius: 0;
  }

  .detail-summary {
    grid-template-columns: 1fr;
  }

  .detail-booking-row {
    grid-template-columns: 1fr auto;
    padding: 12px;
  }

  .detail-booking-row em {
    grid-column: 1 / -1;
    text-align: left;
  }
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.modal-actions .primary {
  width: auto;
}

@media (max-width: 860px) {
  .admin-mode main {
    width: min(100% - 18px, 680px);
    padding: 12px 0 36px;
  }

  .admin-mode .admin-session-bar {
    min-height: 64px;
    margin: 0 -9px 18px;
    padding: 0 14px;
    border-radius: 0 0 12px 12px;
  }

  .admin-mode .admin-page-heading {
    padding-top: 0;
  }

  .admin-mode .admin-page-heading h2 {
    font-size: 38px;
  }

  .admin-mode .store-sidebar {
    position: static;
    width: auto;
    min-height: 0;
    padding: 20px 16px 18px;
    border-radius: 16px;
  }

  .store-brand {
    margin: 0 6px 12px;
  }

  .admin-mode .store-sidebar h3 {
    margin: 0 6px 5px;
  }

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

  .admin-mode .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-mode .metric:nth-child(2n) {
    border-right: 0;
  }

  main {
    width: min(100% - 18px, 680px);
    padding-top: 12px;
  }

  .hero,
  .booking-grid,
  .gate-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 22px;
  }

  h1 {
    font-size: 44px;
  }

  .booking-days {
    grid-template-columns: 1fr;
  }

  .family-picker-title,
  .first-profile-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .add-child {
    width: 100%;
  }

  .first-profile-fields,
  .authorized-phone-form,
  .staff-account-form,
  .store-customer-form,
  .card-product-form {
    grid-template-columns: 1fr;
  }

  .store-customer-form-actions {
    align-items: stretch;
  }

  .admin-session-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-mode main {
    width: min(100% - 18px, 680px);
  }

  .admin-page-heading h2 {
    font-size: 27px;
  }

  .admin-nav {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .filter-controls {
    grid-template-columns: 1fr;
    flex-basis: 100%;
  }

  .filter-controls .search {
    min-width: 0;
  }

  .date-quick-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .date-quick-nav button {
    padding: 0 8px;
  }

  .record-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .registry-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .registry-heading > button {
    width: 100%;
  }

  .family-children,
  .child-profile-form {
    grid-template-columns: 1fr;
  }

  .child-profile-form button {
    width: 100%;
  }

  .checkin-card {
    grid-template-columns: 1fr;
  }

  .workbench,
  .form-card,
  .capacity-card,
  .admin-tools {
    padding: 16px;
  }

  .form-actions button,
  .inline-form button {
    width: 100%;
  }
}
