:root {
  --navy: #082d4c;
  --navy-2: #0d4169;
  --blue: #1374b9;
  --sky: #eaf5fb;
  --ink: #182838;
  --muted: #6a7884;
  --line: #dde6ec;
  --green: #16865f;
  --cream: #f5f8fa;
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.app-shell { min-height: 100vh; padding-bottom: 96px; }
.topbar {
  align-items: center;
  background: var(--navy);
  color: white;
  display: flex;
  height: 74px;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1080px) / 2));
}
.brand { align-items: center; display: flex; gap: 11px; }
.brand-mark {
  align-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  display: flex;
  font-size: 20px;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.brand strong { display: block; font-size: 15px; letter-spacing: .05em; }
.brand small { color: #a9cada; display: block; font-size: 8px; letter-spacing: .22em; margin-top: 3px; }
.menu-button { background: transparent; border: 0; cursor: pointer; display: grid; gap: 5px; padding: 10px 2px 10px 10px; }
.menu-button span { background: white; display: block; height: 2px; width: 24px; }
.content { margin: 0 auto; max-width: 1080px; padding: 30px 20px 60px; }
.welcome p { color: var(--muted); font-size: 13px; margin: 0 0 5px; }
.welcome h1 { font-size: 27px; letter-spacing: .04em; margin: 0 0 22px; }

.next-booking {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(8,45,76,.05);
  overflow: hidden;
  padding: 21px 20px 0;
  position: relative;
}
.next-booking::before { background: var(--blue); content: ""; height: 4px; left: 0; position: absolute; right: 0; top: 0; }
.section-heading { align-items: center; display: flex; justify-content: space-between; }
.eyebrow { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.status-pill { background: #e7f7f0; border-radius: 99px; color: var(--green); font-size: 11px; font-weight: 700; padding: 5px 10px; }
.next-booking h2, .membership h2 { font-size: 18px; margin: 6px 0 18px; }
.booking-date { align-items: center; display: flex; gap: 16px; }
.date-box {
  align-items: baseline;
  background: var(--navy);
  border-radius: 7px;
  color: white;
  display: flex;
  gap: 3px;
  justify-content: center;
  min-height: 67px;
  min-width: 67px;
}
.date-box strong { font-size: 32px; }
.date-box span { font-size: 11px; }
.booking-date p { margin: 0; }
.booking-date .day { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.booking-date .time { color: var(--navy); font-size: 22px; font-weight: 800; letter-spacing: .04em; }
.booking-date .time span { color: #a7b3bb; padding: 0 5px; }
.booking-meta { border-top: 1px solid var(--line); display: flex; gap: 26px; margin-top: 19px; padding: 14px 0; }
.booking-meta span { color: #536471; font-size: 12px; }
.booking-meta i { color: var(--blue); font-style: normal; margin-right: 5px; }
.detail-button {
  background: var(--navy);
  border-radius: 6px;
  color: white;
  display: block;
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  text-align: center;
}
.notice { background: #f6f8f9; color: #687985; font-size: 10px; margin: 17px -20px 0; padding: 11px 20px; text-align: center; }
.no-booking { color: var(--muted); font-size: 12px; padding: 15px 0 24px; text-align: center; }
.no-booking .detail-button { margin-top: 20px; }

.actions, .safety, .membership { margin-top: 32px; }
.title-row { align-items: baseline; display: flex; justify-content: space-between; margin-bottom: 13px; }
.title-row h2 { font-size: 17px; margin: 0; }
.title-row > span { color: #92a0aa; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.action-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.action-card {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  grid-template-rows: auto auto;
  min-height: 82px;
  padding: 14px;
}
.action-card.primary { background: var(--navy); border-color: var(--navy); color: white; }
.action-icon {
  align-items: center;
  background: var(--sky);
  border-radius: 8px;
  color: var(--blue);
  display: flex;
  font-size: 21px;
  grid-row: 1 / 3;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.primary .action-icon { background: rgba(255,255,255,.14); color: white; }
.action-card strong { font-size: 14px; }
.action-card small { color: #82909a; font-size: 10px; margin-top: 3px; }
.primary small { color: #bad1df; }
.action-card b { color: #8fa0aa; font-size: 24px; font-weight: 400; grid-column: 3; grid-row: 1 / 3; }
.primary b { color: white; }

.safety-links { background: white; border: 1px solid var(--line); border-radius: 9px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
.safety-links a { align-items: center; border-right: 1px solid var(--line); display: grid; gap: 10px; grid-template-columns: 34px 1fr auto; padding: 16px; }
.safety-links a:last-child { border-right: 0; }
.safety-links span { align-items: center; background: var(--sky); border-radius: 50%; color: var(--blue); display: flex; font-weight: 800; height: 32px; justify-content: center; width: 32px; }
.safety-links strong { font-size: 12px; }
.safety-links b { color: #9aa7af; font-size: 20px; font-weight: 400; }

.membership { background: white; border: 1px solid var(--line); border-radius: 9px; padding: 20px; }
.membership dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.membership dl div { border-left: 1px solid var(--line); padding: 0 18px; }
.membership dl div:first-child { border-left: 0; padding-left: 0; }
.membership dt { color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.membership dd { font-size: 13px; font-weight: 700; margin: 0; }
.membership .paid { color: var(--green); }
.check-dot { background: var(--green); border-radius: 50%; color: white; display: inline-grid; font-size: 8px; height: 14px; place-items: center; width: 14px; }
.bottom-nav { display: none; }

@media (max-width: 680px) {
  .app-shell { padding-bottom: 77px; }
  .topbar { height: 66px; padding: 0 18px; }
  .brand-mark { height: 38px; width: 38px; }
  .brand strong { font-size: 13px; }
  .content { padding: 25px 16px 38px; }
  .welcome h1 { font-size: 24px; }
  .action-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 74px; }
  .safety-links { grid-template-columns: 1fr; }
  .safety-links a { border-bottom: 1px solid var(--line); border-right: 0; }
  .safety-links a:last-child { border-bottom: 0; }
  .membership dl { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .membership dl div:nth-child(3) { border-left: 0; padding-left: 0; }
  .booking-meta { gap: 14px; }
  .bottom-nav {
    background: white;
    border-top: 1px solid var(--line);
    bottom: 0;
    box-shadow: 0 -5px 18px rgba(8,45,76,.06);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    left: 0;
    padding-bottom: env(safe-area-inset-bottom);
    position: fixed;
    right: 0;
    z-index: 10;
  }
  .bottom-nav a { align-items: center; color: #7c8992; display: flex; flex-direction: column; font-size: 9px; gap: 3px; padding: 10px 0 8px; }
  .bottom-nav span { font-size: 18px; }
  .bottom-nav .active { color: var(--blue); font-weight: 700; }
}

/* Value Server standalone application */
.header-actions { align-items: center; display: flex; gap: 12px; }
.header-actions a, .header-actions button { background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; color: white; cursor: pointer; font-size: 11px; padding: 8px 10px; }
.auth-card, .admin-card { background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 18px rgba(8,45,76,.05); margin: 28px auto; max-width: 620px; padding: 28px; }
.auth-card { max-width: 430px; }
.auth-card h1, .admin-card h2 { margin: 6px 0 20px; }
.auth-card form > label, .flow-card form > label, .admin-card form > label { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; gap: 7px; margin-bottom: 17px; }
.auth-card input, .auth-card select, .flow-card input, .flow-card select, .flow-card textarea, .admin-card input, .admin-card select, .admin-card textarea { background: white; border: 1px solid #cbd8df; border-radius: 6px; color: var(--ink); font: inherit; font-size: 15px; min-height: 48px; padding: 10px 13px; width: 100%; }
.auth-card form > label, .flow-card form > label, .admin-card form > label, .field-row label { min-width: 0; }
.flow-card input, .flow-card select, .flow-card textarea { max-width: 100%; min-width: 0; }
.date-field { inline-size: 100%; max-inline-size: 100%; overflow: hidden; }
.date-control { background: white; border: 1px solid #cbd8df; border-radius: 6px; display: block; inline-size: 100%; max-inline-size: 100%; min-inline-size: 0; overflow: hidden; }
.date-control:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.flow-card .date-control input[type="date"] { appearance: none; -webkit-appearance: none; border: 0; border-radius: 0; box-shadow: none; display: block; inline-size: 100%; max-inline-size: 100%; min-inline-size: 0; outline: 0; }
.auth-help { color: var(--muted); font-size: 11px; margin: 18px 0 0; text-align: center; }
.field-help { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.5; }
.auth-help a, .check-line a { color: var(--blue); text-decoration: underline; }
.check-line { align-items: flex-start !important; flex-direction: row !important; font-weight: 500 !important; line-height: 1.6; }
.check-line input { accent-color: var(--green); flex: 0 0 auto; height: 20px; min-height: 20px; margin-top: 1px; padding: 0; width: 20px; }
.page-heading { margin-bottom: 18px; }
.page-heading h1 { margin: 5px 0 0; }
.reservation-row { align-items: center; background: white; border: 1px solid var(--line); border-radius: 10px; display: flex; justify-content: space-between; padding: 20px; }
.reservation-row h2 { font-size: 15px; margin: 10px 0 4px; }
.reservation-row p { color: var(--muted); font-size: 11px; margin: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.secondary-button { background: white; border: 1px solid var(--navy); border-radius: 5px; color: var(--navy); cursor: pointer; font-size: 11px; padding: 10px 12px; }
.secondary-button.danger { border-color: #b74c4c; color: #b74c4c; }
.primary-button.compact { display: inline-block; font-size: 11px; min-height: auto; padding: 11px 14px; width: auto; }
.admin-grid { align-items: start; }
.admin-grid .admin-card { margin: 0; width: 100%; }
.admin-card h2 { font-size: 16px; }
.members-table { margin: 18px 0 0; max-width: none; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); font-size: 11px; padding: 12px; text-align: left; }
td small { color: var(--muted); display: block; margin-top: 3px; }
.inline-actions { display: flex; gap: 5px; margin-top: 6px; }
.inline-actions button { background: white; border: 1px solid var(--blue); border-radius: 4px; color: var(--blue); cursor: pointer; font-size: 9px; padding: 5px 7px; }
.license-status { color: var(--navy); font-size: 10px; font-weight: 800; }
.license-detail { display: grid; gap: 4px; margin: 8px 0; }
.license-detail div { display: grid; gap: 7px; grid-template-columns: 58px 1fr; }
.license-detail dt { color: var(--muted); font-size: 9px; }
.license-detail dd { font-size: 10px; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.availability-card { background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 18px rgba(8,45,76,.05); margin: 28px auto 18px; max-width: 920px; padding: 24px; }
.calendar-heading { align-items: center; display: flex; justify-content: space-between; }
.calendar-heading h1, .calendar-heading h2 { font-size: 21px; margin: 5px 0 0; }
.calendar-help { color: var(--muted); font-size: 11px; margin: 10px 0 18px; }
.month-controls { align-items: center; display: flex; gap: 10px; }
.month-controls strong { min-width: 90px; text-align: center; }
.month-controls button { background: white; border: 1px solid var(--line); border-radius: 5px; color: var(--navy); cursor: pointer; font-size: 22px; height: 36px; width: 36px; }
.month-controls button:disabled { color: #bdc6cc; cursor: default; }
.calendar-weekdays, .availability-calendar { display: grid; gap: 5px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays span { color: var(--muted); font-size: 10px; padding: 5px; text-align: center; }
.calendar-weekdays span:first-child { color: #b74c4c; }
.calendar-weekdays span:last-child { color: var(--blue); }
.calendar-day { align-content: start; background: #f7fbfd; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); cursor: pointer; display: grid; gap: 3px; min-height: 86px; overflow: hidden; padding: 7px; text-align: left; }
.calendar-day:hover:not(:disabled) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.calendar-day:disabled { background: #f4f5f6; color: #adb6bc; cursor: default; opacity: .65; }
.calendar-day b { font-size: 13px; }
.calendar-date-head { align-items: center; display: flex; justify-content: space-between; }
.tide-label { color: #596d79; font-size: 8px; font-style: normal; font-weight: 700; }
.calendar-day small { display: block; font-size: 8px; line-height: 1.3; overflow-wrap: anywhere; }
.calendar-day .open-label { color: var(--green); font-weight: 700; }
.calendar-day .own_reservation { color: #075c91; font-weight: 800; }
.calendar-day .other_reservation { color: #9a6513; font-weight: 700; }
.calendar-day .other_buffer { color: #806b42; }
.calendar-day .admin_reservation { color: #075c91; }
.calendar-day .admin_reservation strong { display: block; font-size: 9px; }
.calendar-day .unavailable { color: #a43131; }
.calendar-day.has-own-booking { background: #e8f5fd; border-color: #8dc7e7; }
.calendar-day.has-other-booking { background: #fff9ec; }
.calendar-day.has-admin-booking { background: #e8f5fd; border-color: #8dc7e7; }
.calendar-day.has-stop { background: #fff1f1; }
.calendar-loading { color: var(--muted); font-size: 11px; grid-column: 1 / -1; padding: 30px; text-align: center; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 12px; }
.calendar-legend span { align-items: center; color: var(--muted); display: flex; font-size: 9px; gap: 5px; }
.calendar-legend i { border-radius: 2px; height: 9px; width: 9px; }
.calendar-legend .is-open { background: #e7f7f0; }.calendar-legend .is-own, .calendar-legend .is-admin { background: #bfe5fa; }.calendar-legend .is-other { background: #fff0ca; }.calendar-legend .is-stop { background: #ffdada; }
.calendar-help a { color: var(--blue); text-decoration: underline; }
.admin-calendar .calendar-day { cursor: default; }
.admin-reservation-card { max-width: none; }
.admin-reservation-card form { max-width: 620px; }
.admin-card .field-row label { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; gap: 7px; margin-bottom: 17px; }
.admin-reservation-list { margin-top: 24px; }
.payment-cell { min-width: 130px; white-space: nowrap; }
.payment-month { color: var(--muted); display: inline-block; font-size: 9px; margin-right: 6px; min-width: 25px; }
.payment-paid, .payment-unpaid, .payment-warning { font-size: 10px; }
.payment-paid { color: var(--green); }.payment-unpaid { color: #b74c4c; }.payment-warning { color: #9a6513; }
.result-box { background: var(--sky); border-radius: 6px; color: var(--navy); font-size: 11px; line-height: 1.6; margin-top: 14px; padding: 12px; }
.result-box input { font-size: 10px; margin-top: 8px; min-height: 38px; }
.toast { bottom: 20px; left: 50%; position: fixed; transform: translateX(-50%); }

@media (max-width: 680px) {
  .auth-card, .admin-card { border-radius: 8px; margin: 18px 0; padding: 20px 17px; }
  .reservation-row { align-items: stretch; flex-direction: column; }
  .row-actions { justify-content: flex-start; margin-top: 15px; }
  .admin-grid { grid-template-columns: 1fr; }
  .header-actions a { display: none; }
  .availability-card { border-radius: 0; border-left: 0; border-right: 0; margin: 0 -16px 18px; padding: 20px 12px; }
  .calendar-heading { align-items: flex-start; gap: 12px; }
  .calendar-day { min-height: 72px; padding: 5px 3px; }
  .calendar-day small { font-size: 7px; }
  .calendar-day .admin_reservation strong { font-size: 8px; }
  .tide-label { font-size: 7px; }
  .calendar-weekdays, .availability-calendar { gap: 3px; }
  #reservation-form, #reservation-form > label { inline-size: 100%; max-inline-size: 100%; min-inline-size: 0; overflow: hidden; }
  .flow-card .date-control input[type="date"] { font-size: 16px; padding-inline: 11px; }
}

@media (min-width: 681px) {
  .next-booking { padding-left: 26px; padding-right: 26px; }
  .notice { margin-left: -26px; margin-right: -26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

.sub-page { min-height: 100vh; padding-bottom: 50px; }
.sub-header {
  align-items: center;
  background: var(--navy);
  color: white;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  min-height: 62px;
  padding: 0 max(12px, calc((100vw - 760px) / 2));
}
.sub-header > a { font-size: 35px; font-weight: 200; line-height: 1; }
.sub-header > strong { font-size: 15px; letter-spacing: .05em; text-align: center; }
.sub-header > button { background: none; border: 0; color: white; font-size: 20px; }
.flow-card, .page-content {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(8,45,76,.05);
  margin: 28px auto;
  max-width: 620px;
  padding: 26px;
}
.flow-card h1 { font-size: 23px; margin: 5px 0 24px; }
.flow-label { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .18em; margin: 0; }
.reservation-form > label, .reservation-form .field-row label, .login-card label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  margin-bottom: 18px;
}
.reservation-form input, .reservation-form select, .login-card input {
  appearance: none;
  background: white;
  border: 1px solid #cbd8df;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  min-height: 48px;
  padding: 0 13px;
}
.reservation-form textarea { border: 1px solid #cbd8df; border-radius: 6px; color: var(--ink); font: inherit; padding: 12px 13px; resize: vertical; }
.spaced-field { margin-top: 20px !important; }
.field-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.time-preview { align-items: center; background: var(--sky); border-radius: 7px; display: grid; grid-template-columns: 1fr auto; margin: -5px 0 20px; padding: 13px 15px; }
.time-preview span { color: var(--muted); font-size: 11px; }
.time-preview strong { color: var(--navy); font-size: 20px; grid-row: 1 / 3; grid-column: 2; }
.time-preview small { color: var(--blue); font-size: 10px; }
.rule-note { background: #f1f6f8; border-left: 3px solid var(--blue); color: #5c6d78; font-size: 11px; line-height: 1.7; margin: 8px 0 20px; padding: 11px 13px; }
.primary-button {
  background: var(--navy);
  border: 0;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: 700;
  min-height: 50px;
  padding: 14px;
  text-align: center;
  width: 100%;
}
.primary-button:disabled { background: #aebbc3; cursor: not-allowed; }
.text-button { background: none; border: 0; color: var(--blue); display: block; font-size: 12px; margin: 13px auto 0; text-align: center; }
.confirm-list { margin: 0 0 20px; }
.confirm-list div { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 130px 1fr; padding: 13px 0; }
.confirm-list dt { color: var(--muted); font-size: 11px; }
.confirm-list dd { font-size: 13px; font-weight: 700; margin: 0; text-align: right; }
.completion { padding-bottom: 34px; padding-top: 38px; text-align: center; }
.completion-mark { background: var(--green); border-radius: 50%; color: white; display: grid; font-size: 28px; height: 64px; margin: 0 auto 20px; place-items: center; width: 64px; }
.completion .muted { margin-bottom: 26px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.7; }
.tabs { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; margin: -10px 0 22px; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 14px; }
.tabs .active { border-bottom: 2px solid var(--blue); color: var(--navy); font-weight: 700; }
.reservation-item { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.reservation-item-head { align-items: center; background: #f5f8fa; display: flex; justify-content: space-between; padding: 10px 14px; }
.reservation-item-head span { color: var(--green); font-size: 11px; font-weight: 700; }
.reservation-item-head small { color: var(--muted); font-size: 9px; }
.reservation-main { align-items: center; display: flex; gap: 15px; padding: 20px 15px; }
.mini-date { align-items: center; background: var(--navy); border-radius: 7px; color: white; display: flex; flex-direction: column; height: 62px; justify-content: center; width: 62px; }
.mini-date strong { font-size: 27px; line-height: 1; }
.mini-date span { font-size: 9px; }
.reservation-main h2 { font-size: 15px; margin: 0 0 3px; }
.reservation-main p { color: var(--navy); font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.reservation-main small { color: var(--muted); }
.reservation-actions { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.reservation-actions > * { background: white; border: 0; border-right: 1px solid var(--line); color: var(--blue); font-size: 10px; padding: 13px 5px; text-align: center; }
.reservation-actions > *:last-child { border-right: 0; color: #b74c4c; }
.deadline { background: #fff9ec; color: #8b6b26; font-size: 9px; margin: 0; padding: 9px; text-align: center; }
.reservation-list { display: grid; gap: 16px; }
.loading-state { color: var(--muted); font-size: 12px; padding: 35px 0; text-align: center; }
.empty-state { padding: 30px 10px; text-align: center; }
.empty-state > span { color: var(--green); font-size: 35px; }
.empty-state h2 { font-size: 18px; }
.empty-state p { color: var(--muted); font-size: 12px; }
.empty-state a { color: var(--blue); font-size: 12px; font-weight: 700; }
.progress { background: #e6edf1; border-radius: 9px; height: 6px; overflow: hidden; }
.progress span { background: var(--blue); display: block; height: 100%; transition: width .2s; }
.progress-label { color: var(--muted); font-size: 10px; text-align: right; }
.check-items { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.check-items label { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 12px; padding: 14px; }
.check-items label:last-child { border-bottom: 0; }
.check-items label.checked { background: #f0faf6; }
.check-items input { accent-color: var(--green); height: 19px; width: 19px; }
.check-items strong, .check-items small { display: block; }
.check-items strong { font-size: 12px; }
.check-items small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.confirm-safety { align-items: flex-start; display: flex; font-size: 11px; gap: 8px; line-height: 1.6; margin: 18px 0; }
.admin-content { margin: 32px auto; max-width: 980px; padding: 0 20px; }
.admin-content > h1 { margin: 4px 0 22px; }
.metric-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.metric-grid article { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 17px; }
.metric-grid small { color: var(--muted); display: block; font-size: 10px; }
.metric-grid strong { color: var(--navy); font-size: 28px; margin-right: 5px; }
.metric-grid span { color: var(--muted); font-size: 10px; }
.admin-panel { background: white; border: 1px solid var(--line); border-radius: 9px; margin-top: 18px; padding: 20px; }
.panel-head { align-items: center; display: flex; justify-content: space-between; }
.panel-head h2 { font-size: 16px; }
.panel-head button, .panel-head a { background: var(--navy); border: 0; border-radius: 5px; color: white; font-size: 10px; padding: 9px 12px; }
.data-table > div { align-items: center; border-top: 1px solid var(--line); display: grid; font-size: 11px; gap: 10px; grid-template-columns: 1.5fr 1fr 80px 50px; padding: 13px 0; }
.data-table b { color: var(--green); }
.data-table b.warning { color: #b27714; }
.data-table button { background: none; border: 0; color: var(--blue); }
.admin-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.admin-grid article { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.admin-grid article > span { color: var(--blue); font-size: 22px; }
.admin-grid h3 { font-size: 13px; margin: 9px 0 4px; }
.admin-grid p { color: var(--muted); font-size: 10px; margin: 0; }
.login-page { align-items: center; background: var(--navy); display: flex; justify-content: center; min-height: 100vh; padding: 24px; }
.login-card { background: white; border-radius: 12px; max-width: 390px; padding: 34px; text-align: center; width: 100%; }
.login-logo { background: var(--navy); border-radius: 50%; color: white; display: grid; font-size: 27px; height: 64px; margin: 0 auto 15px; place-items: center; width: 64px; }
.login-card h1 { margin: 6px 0 2px; }
.login-card > p:not(.flow-label) { color: var(--muted); font-size: 12px; margin: 0 0 25px; }
.login-card label { text-align: left; }
.login-card > a { color: var(--blue); display: block; font-size: 11px; margin-top: 16px; }
.form-error { background: #fff1f1; border-radius: 5px; color: #a43131; font-size: 11px; line-height: 1.6; margin: -4px 0 15px; padding: 10px; text-align: left; }
.login-card aside { background: #f2f6f8; color: var(--muted); font-size: 10px; margin: 25px -34px -34px; padding: 14px; }

@media (max-width: 680px) {
  .flow-card, .page-content { border-radius: 0; border-width: 0; box-shadow: none; margin: 0; padding: 23px 17px; }
  .sub-page { background: white; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .data-table > div { grid-template-columns: 1.4fr 1fr 60px; }
  .data-table button { display: none; }
}
