/* Approved ivory / forest green / fresh aqua system. One Gothic type family across staff and administration. */
@font-face {
  font-family: "Pretendard";
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --blue: #007f9b;
  --aqua: #007f9b;
  --aqua-hover: #006b82;
  --forest: #104b2d;
  --forest-deep: #073f25;
  --ink: #173b2c;
  --muted: #52685f;
  --line: #d4e2df;
  --light: #fefcf6;
  --soft: #e6f6f8;
  --mint: #e3f6ec;
  --danger: #a53437;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--light);
  font-synthesis: none;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
:where(h1, h2, h3, h4, h5, h6, p, li, label, legend, button, th, td, span, small, dt, dd) { word-break: keep-all; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; min-height: 44px; min-width: 44px; border: 0; background: transparent; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
button, a, input, select { transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease; }
:where(button, input, select, a):focus-visible { outline: 3px solid #52bfd2; outline-offset: 3px; }
[hidden] { display: none !important; }
a { color: var(--aqua); text-underline-offset: 3px; }
svg { display: block; width: 22px; height: 22px; flex-shrink: 0; }
img { max-width: 100%; }
h2 { color: var(--forest); font-size: 30px; font-weight: 750; letter-spacing: -.8px; line-height: 1.3; }
h3 { color: var(--forest); font-size: 18px; font-weight: 700; letter-spacing: -.4px; line-height: 1.45; }
.skip-link { position: fixed; z-index: 40; top: 8px; left: 8px; background: white; padding: 12px 18px; border: 1px solid var(--aqua); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.build-note { padding: 7px 24px; background: var(--mint); color: #315e47; font-size: 11px; line-height: 1.7; text-align: center; }
.header { max-width: 1360px; margin: auto; display: flex; justify-content: space-between; align-items: center; padding: 24px 30px; gap: 24px; background: white; min-height: 108px; border: 1px solid var(--line); border-top: 0; }
.brand { display: flex; align-items: center; gap: 25px; min-width: 0; }
.logo-viewport { position: relative; display: block; flex-shrink: 0; width: 240px; height: 48px; overflow: hidden; background: white; }
.company-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 186.44%; max-width: none; height: auto; }
.brand h1 { font-size: 18px; font-weight: 700; color: var(--forest); letter-spacing: -.4px; padding-left: 25px; border-left: 1px solid #bfcdc7; }
.session-controls { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.session-controls > span { max-width: 170px; }
.icon-button { width: 44px; display: grid; place-items: center; color: var(--aqua); border: 1px solid var(--line); border-radius: 9px; background: white; }
.icon-button:hover { background: var(--soft); border-color: #7dc7d5; }
.connection-bar { border-bottom: 1px solid var(--line); padding: 8px max(24px, calc((100% - 1300px) / 2)); font-size: 11px; background: #f4fbfa; color: #4a685a; line-height: 1.8; }
.connection-bar.offline { background: #fff3df; color: #805318; }
.connection-bar.busy { color: var(--aqua-hover); }
main { max-width: 1360px; margin: auto; min-height: calc(100vh - 270px); outline: none; }
.login-panel, .error-panel { max-width: 480px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 34px; margin: 40px auto 55px; box-shadow: 0 8px 30px #104b2d06; }
.eyebrow { font-size: 12px; font-weight: 650; color: var(--aqua); margin-bottom: 12px; }
.description { font-size: 14px; color: var(--muted); line-height: 1.85; margin-top: 14px; }
.login-panel .field { margin-top: 22px; }
.login-panel .full { margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field label { font-size: 14px; font-weight: 650; color: #304d3d; }
.field input, .field select { width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid #bfcfca; background: white; border-radius: 8px; color: #183d2c; font-size: 16px; line-height: 1.5; }
.field input:hover, .field select:hover { border-color: #72b6bd; }
.field input::placeholder { color: #788c82; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.primary, .secondary, .danger { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; font-weight: 650; font-size: 14px; line-height: 1.5; border-radius: 9px; white-space: normal; }
.primary { background: var(--aqua); color: white; border: 1px solid var(--aqua); }
.primary:hover:not(:disabled) { background: var(--aqua-hover); border-color: var(--aqua-hover); }
.primary:active:not(:disabled), .secondary:active:not(:disabled), .danger:active:not(:disabled) { transform: translateY(1px); }
.secondary { background: white; color: #315e50; border: 1px solid #c8dad3; }
.secondary:hover:not(:disabled) { background: var(--soft); border-color: #7bc2cb; }
.danger { background: var(--danger); color: white; border: 1px solid var(--danger); }
.danger:hover:not(:disabled) { background: #8e292d; }
.compact { min-height: 44px; font-size: 13px; padding: 8px 12px; }
.full { width: 100%; }
.text-button { display: inline-flex; align-items: center; justify-content: flex-start; padding: 0; background: transparent; color: var(--aqua); font-size: 13px; min-height: 44px; text-decoration: none; line-height: 1.6; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.helper { font-size: 12px; line-height: 1.85; color: #5f7568; margin-top: 12px; }
.form-message { font-size: 14px; color: #a22e35; line-height: 1.8; margin: 14px 0; }
.form-message:empty { display: none; }
.error-panel p { font-size: 14px; color: var(--muted); line-height: 1.85; margin: 17px 0 23px; }
#application { display: grid; grid-template-columns: 216px minmax(0, 1fr); border: 1px solid var(--line); border-top: 0; min-height: calc(100vh - 220px); background: #fffefa; }
.desktop-nav { display: flex; flex-direction: column; gap: 12px; padding: 32px 16px; background: var(--forest-deep); border-right: 1px solid var(--forest-deep); }
.nav-caption { font-size: 12px; color: #c0dccb; padding: 0 14px 10px; }
.desktop-nav button { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 10px; font-size: 17px; color: white; min-width: 0; font-weight: 550; }
.desktop-nav button svg { width: 23px; height: 23px; }
.desktop-nav button:hover { background: #ffffff14; }
.desktop-nav button[aria-current="page"] { background: var(--aqua); color: white; font-weight: 700; }
.mobile-nav { display: none; }
#page-content { padding: 32px; min-width: 0; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.page-heading > div { min-width: 0; }
.page-heading h2 { font-size: 36px; letter-spacing: -1px; }
.page-heading p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 9px; }
.page-heading .secondary { flex-shrink: 0; margin-top: 3px; font-size: 12px; padding: 9px 12px; }
.overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 28px; }
.overview > div { position: relative; min-width: 0; padding: 20px 22px; background: var(--soft); border: 1px solid #bce4e9; border-radius: 14px; display: grid; align-content: center; }
.overview p { font-size: 16px; font-weight: 650; color: var(--forest); }
.overview b { font-size: 32px; display: block; line-height: 1.25; margin-top: 6px; font-weight: 750; color: var(--forest); letter-spacing: -.6px; }
.overview b span { font-size: 20px; font-weight: 650; color: inherit; margin-left: 3px; }
.overview .metric-icon, .overview .overview-icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--aqua); background: #d0f0f4; }
.overview .metric-icon svg, .overview .overview-icon svg { width: 30px; height: 30px; }
.overview > div:has(.metric-icon), .overview > div:has(.overview-icon) { padding-left: 94px; }
.home-section { margin-bottom: 25px; }
.section-heading, .panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.section-heading h3, .panel-heading h3 { font-size: 19px; font-weight: 700; }
.section-heading p, .panel-heading small { font-size: 12px; line-height: 1.7; color: #60796b; }
.date-selector { display: flex; gap: 13px; overflow: auto; padding: 2px 2px 6px; scrollbar-width: thin; scrollbar-color: #a3d4d8 transparent; }
.date-button { flex: 1 0 130px; min-width: 130px; padding: 11px 13px; border: 1px solid #cbe5e7; border-radius: 28px; background: #f0fafb; color: #183b2b; text-align: center; display: flex; align-items: center; justify-content: center; gap: 7px; }
.date-button span { font-size: 15px; font-weight: 600; }
.date-button b { display: block; font-size: 22px; font-weight: 700; line-height: 1.25; }
.date-button small { display: block; font-size: 11px; color: #547367; }
.date-button[aria-pressed="true"] { background: var(--aqua); border-color: var(--aqua); color: white; }
.date-button[aria-pressed="true"] small { color: white; }
.vehicle-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.vehicle-card { border: 1px solid #cbdcda; border-radius: 14px; overflow: hidden; background: white; min-width: 0; display: flex; flex-direction: column; }
.vehicle-upper { display: grid; grid-template-columns: minmax(0, 1fr) 130px; align-items: center; padding: 20px 20px 8px; gap: 12px; }
.vehicle-copy { min-width: 0; }
.vehicle-copy .available { margin-top: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vehicle-copy > p { font-size: 12px; color: #687c70; }
.vehicle-copy h3 { font-size: 27px; font-weight: 750; letter-spacing: -.7px; margin-top: 3px; }
.available { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; background: var(--soft); border-radius: 6px; color: #315d4e; font-size: 12px; line-height: 1.5; margin-top: 10px; }
.available::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--aqua); }
.vehicle-illustration { object-fit: contain; object-position: center; display: block; width: 130px; aspect-ratio: 1.85; height: auto; margin: 0; }
.vehicle-bottom { display: flex; flex-direction: column; align-items: stretch; gap: 13px; padding: 10px 20px 18px; margin-top: auto; }
.vehicle-schedule { min-width: 0; }
.vehicle-time-list { height: 72px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #91c7cb transparent; padding-right: 4px; }
.vehicle-time-list:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; border-radius: 3px; }
.vehicle-schedule > p { font-size: 12px; color: #60776a; margin-bottom: 4px; }
.time-slot { font-size: 13px; color: #234c3b; display: block; line-height: 1.75; }
.vehicle-bottom .primary { width: 100%; min-height: 46px; font-size: 17px; }
.vehicle-bottom .primary > span { font-size: 22px; font-weight: 400; line-height: 1; }
.reservation-overview { margin-top: 28px; }
.reservation-overview > .section-heading { align-items: flex-start; margin-bottom: 8px; }
.reservation-overview > .section-heading p { text-align: right; }
.reservation-overview-note { color: #5b7366; font-size: 12px; line-height: 1.8; margin-bottom: 14px; }
.reservation-days { border: 1px solid #ccdcda; border-radius: 14px; overflow: hidden; background: white; }
.daily-reservations { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-top: 1px solid #dfeae4; }
.daily-reservations:first-child { border-top: 0; }
.reservation-day-heading { padding: 18px 16px; background: #f4fbf8; border-right: 1px solid #dfeae4; }
.reservation-day-heading h4 { margin: 0; color: var(--forest); font-size: 14px; line-height: 1.8; font-weight: 700; }
.selected-day-label { display: inline-block; font-size: 11px; line-height: 1.6; color: #006b82; margin-top: 4px; }
.selected-day .reservation-day-heading { background: var(--soft); }
.reservation-vehicles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
.vehicle-reservations { padding: 16px 18px; min-width: 0; border-left: 1px solid #e1ebe6; }
.vehicle-reservations:nth-child(odd) { border-left: 0; }
.vehicle-reservations:nth-child(n+3) { border-top: 1px solid #e1ebe6; }
.reservation-vehicle-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.reservation-vehicle-heading h5 { min-width: 0; margin: 0; color: var(--forest); font-size: 15px; line-height: 1.65; font-weight: 700; }
.reservation-vehicle-heading > span { flex-shrink: 0; color: #60796b; font-size: 12px; line-height: 1.7; }
.reservation-time-list { display: grid; gap: 10px; list-style: none; padding: 0; margin-top: 10px; }
.reservation-time-list li { min-width: 0; }
.reservation-overview-time { font-size: 14px; line-height: 1.8; color: #234c3b; font-variant-numeric: tabular-nums; }
.reservation-overview-owner { font-size: 12px; line-height: 1.7; color: #5b7366; margin-top: 2px; }
.reservation-overview-empty { color: #60796b; font-size: 13px; line-height: 1.8; margin-top: 8px; }
.reservation-days > .empty { padding: 18px; }
.home-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 28px; margin-bottom: 22px; }
.panel { padding: 23px; background: white; border: 1px solid #ccdcda; border-radius: 14px; min-width: 0; }
.booking-entry { padding: 16px 0; border-top: 1px solid #e1ebe6; }
.booking-entry:first-of-type { border-top: 1px solid #e1ebe6; }
.entry-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.entry-heading b { font-size: 17px; color: var(--forest); font-weight: 700; }
.badge { display: inline-block; background: #dff4f6; color: #1c6170; border-radius: 7px; padding: 5px 8px; font-size: 12px; line-height: 1.5; flex-shrink: 0; }
.badge.cancelled, .badge.inactive { background: #f6eded; color: #8d4145; }
.booking-entry p { color: #526d5f; font-size: 12px; margin-top: 7px; line-height: 1.85; }
.booking-entry .entry-time { color: #284e3e; font-size: 14px; }
.entry-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.entry-actions small { font-size: 12px; line-height: 1.7; color: #657c6d; }
.entry-actions .compact { font-size: 12px; padding: 8px 12px; }
.notification-preview { display: grid; gap: 18px; }
.preview-item { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid #e1ebe6; }
.preview-item:first-child { padding-top: 0; border: 0; }
.preview-item h3 { font-size: 14px; font-weight: 600; line-height: 1.65; }
.preview-item p { font-size: 12px; color: #5b7366; margin-top: 6px; }
.notice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); margin-top: 8px; flex-shrink: 0; }
.notice-dot.cancelled { background: #a36d24; }
.policy-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 9px; background: var(--soft); color: #315f50; font-size: 13px; line-height: 1.8; }
.policy-strip span + span::before { content: "·"; margin-right: 12px; color: #638f82; }
.policy-strip svg { color: var(--aqua); }
.empty { padding: 15px 0; color: #5e7769; font-size: 14px; line-height: 1.8; }
.back-button { display: inline-flex; align-items: center; gap: 8px; padding: 0; color: var(--aqua); font-size: 13px; margin-top: -8px; margin-bottom: 12px; min-height: 44px; }
.back-button > span { font-size: 24px; font-weight: 400; }
.selected-vehicle { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; background: white; border: 1px solid #ccdcda; border-radius: 14px; margin-bottom: 24px; }
.selected-vehicle > div { min-width: 0; }
.selected-vehicle p { font-size: 13px; color: #5d7667; }
.selected-vehicle h3 { font-size: 32px; font-weight: 750; letter-spacing: -.6px; margin-top: 4px; }
.selected-vehicle .vehicle-illustration { width: 120px; height: auto; margin: 0; flex-shrink: 0; }
.selected-vehicle .available { margin-top: 12px; }
.reservation-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 24px; align-items: start; }
.booking-fields .field > select { min-height: 50px; }
.time-group { padding: 0; border: 0; margin: 24px 0 0; min-width: 0; }
.time-group legend { font-size: 17px; color: var(--forest); font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.step-number { display: inline-grid; place-items: center; font-size: 12px; font-weight: 650; background: var(--soft); color: var(--aqua); border-radius: 50%; height: 26px; width: 26px; }
.time-group .field select { font-size: 16px; min-height: 50px; }
.booked-time { padding: 16px; background: #effafa; border-radius: 9px; color: #3e6b5a; margin-top: 22px; line-height: 1.8; }
.booked-time h3 { font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.booked-time p { font-size: 13px; margin-top: 6px; }
.booking-confirmation { position: sticky; top: 24px; min-width: 0; }
.reservation-summary { padding: 23px; }
.reservation-summary h3 { font-size: 18px; padding-bottom: 15px; border-bottom: 1px solid #dce9e2; }
.reservation-summary dl { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; row-gap: 16px; margin: 19px 0 0; font-size: 14px; line-height: 1.8; align-items: start; }
.reservation-summary dt { color: #5c7667; }
.reservation-summary dd { margin: 0; color: #244d3a; font-weight: 600; min-width: 0; }
.reservation-summary #summary-duration { color: var(--aqua); font-size: 22px; font-weight: 750; line-height: 1.2; }
.booking-confirmation .full { margin-top: 18px; min-height: 54px; font-size: 18px; }
.booking-confirmation .form-message { margin-bottom: 0; }
.notice { padding: 17px; background: var(--soft); border: 1px solid #c6e9e9; border-radius: 9px; font-size: 14px; line-height: 1.85; color: #365f50; margin-bottom: 22px; }
.warning { background: #fff5e5; border-color: #f0dab3; color: #7b571f; }
.list-stack { display: grid; gap: 16px; }
.list-item { padding: 18px 0; border-top: 1px solid #e0ebe4; }
.list-item:first-child { padding-top: 0; border: 0; }
.list-item h3 { font-size: 17px; }
.list-item p { font-size: 14px; color: #506e5c; line-height: 1.85; margin-top: 9px; }
.list-item small { font-size: 12px; color: #657b6d; display: block; margin-top: 8px; }
.subtabs { display: flex; gap: 9px; flex-wrap: wrap; margin: 0 0 24px; padding: 5px; border: 1px solid #cbe2df; border-radius: 12px; background: #f2fbfa; }
.subtabs button { min-width: 0; padding: 11px 17px; color: #3e6756; border-radius: 8px; font-size: 14px; white-space: normal; font-weight: 600; }
.subtabs button:hover { background: #dff3f4; }
.subtabs button[aria-selected="true"] { background: var(--aqua); color: white; font-weight: 700; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; align-items: start; }
.admin-form { display: grid; gap: 19px; }
.settings-form { display: grid; gap: 19px; max-width: 600px; }
.settings-form .helper { margin-top: 0; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; }
.inline-form .field { flex: 1; }
.inline-form .secondary { flex-shrink: 0; }
.admin-table-wrap { overflow: auto; scrollbar-width: thin; scrollbar-color: #91c7cb transparent; }
.admin-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; line-height: 1.75; }
.admin-table th { padding: 13px 12px; background: #eaf8f9; color: #315e4a; font-weight: 650; white-space: nowrap; border-bottom: 1px solid #cee4e0; }
.admin-table td { padding: 16px 12px; border-bottom: 1px solid #dfeae4; vertical-align: top; }
.admin-table small { font-size: 12px; color: #5b7566; }
.admin-table .token { max-width: 180px; overflow-wrap: anywhere; }
.admin-table .secondary { font-size: 12px; padding: 8px 11px; margin-bottom: 6px; }
.admin-table td:last-child { min-width: 108px; }
.table-form-note { font-size: 12px; color: #5b7365; line-height: 1.85; margin-bottom: 18px; }
.status-line { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }
.status-line .helper { margin: 0; }
.recovery-bar { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 15px; }
.clock-detail { font-size: 14px; color: #41644f; line-height: 2; }
.privacy-copy { font-size: 14px; line-height: 1.95; color: #4b6a58; max-width: 880px; }
.privacy-copy h3 { color: var(--forest); font-size: 18px; margin: 26px 0 10px; }
.privacy-copy h3:first-child { margin-top: 0; }
.privacy-copy p + p { margin-top: 10px; }
.token { overflow-wrap: anywhere; }
.working { pointer-events: none; }
.footer { max-width: 1360px; margin: auto; padding: 20px 30px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; color: #5d7567; font-size: 11px; line-height: 1.8; background: #f7fbf6; }
.footer .text-button { font-size: 12px; min-height: 44px; }
dialog { border: 1px solid #c6dcd4; border-radius: 16px; padding: 28px; width: calc(100% - 32px); max-width: 460px; box-shadow: 0 20px 100px #104b2d24; color: var(--ink); background: white; }
dialog::backdrop { background: #073f2570; backdrop-filter: blur(2px); }
dialog h2 { font-size: 25px; }
dialog p { font-size: 14px; color: #526f5c; line-height: 1.85; margin-top: 18px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.toast { position: fixed; z-index: 35; left: 50%; bottom: 26px; transform: translate(-50%, 180px); padding: 15px 21px; border-radius: 10px; background: var(--forest-deep); color: white; max-width: calc(100% - 36px); font-size: 14px; line-height: 1.75; box-shadow: 0 5px 25px #104b2d20; opacity: 0; visibility: hidden; pointer-events: none; transition: transform .18s, opacity .18s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
@media (max-width: 1160px) {
  .header { gap: 18px; padding: 22px 26px; }
  .brand { gap: 18px; }
  .brand h1 { padding-left: 18px; font-size: 16px; }
  .logo-viewport { width: 200px; height: 40px; }
  #application { grid-template-columns: 190px minmax(0, 1fr); }
  .desktop-nav { padding: 29px 13px; }
  .desktop-nav button { font-size: 15px; padding: 13px; gap: 11px; }
  #page-content { padding: 28px; }
  .page-heading h2 { font-size: 32px; }
  .overview { gap: 16px; }
  .overview > div { padding: 18px; }
  .overview .metric-icon, .overview .overview-icon { left: 18px; width: 46px; height: 46px; }
  .overview > div:has(.metric-icon), .overview > div:has(.overview-icon) { padding-left: 78px; }
  .overview p { font-size: 14px; }
  .overview b { font-size: 29px; }
  .vehicle-upper { grid-template-columns: minmax(0, 1fr) 110px; padding: 18px 18px 8px; gap: 10px; }
  .vehicle-illustration { width: 110px; }
  .vehicle-copy h3 { font-size: 26px; }
  .vehicle-bottom { padding: 10px 17px 17px; }
  .admin-grid { grid-template-columns: 1fr; }
  .reservation-layout { grid-template-columns: 1fr; max-width: 780px; }
  .booking-confirmation { position: static; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .header { padding: 20px 24px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 6px; }
  .brand h1 { padding: 0; border: 0; font-size: 13px; }
  .session-controls { font-size: 12px; }
  #application { grid-template-columns: 170px minmax(0, 1fr); }
  .desktop-nav { padding: 26px 10px; }
  .desktop-nav button { padding: 12px 10px; gap: 9px; font-size: 14px; }
  #page-content { padding: 27px 24px; }
  .page-heading h2 { font-size: 29px; }
  .vehicle-cards { gap: 15px; }
  .vehicle-upper { grid-template-columns: minmax(0, 1fr) 92px; }
  .vehicle-illustration { width: 92px; }
  .vehicle-copy h3 { font-size: 24px; }
  .vehicle-upper { padding-left: 16px; padding-right: 16px; }
  .vehicle-bottom { padding-left: 15px; padding-right: 15px; }
  .home-bottom { grid-template-columns: 1fr; }
  .daily-reservations { grid-template-columns: 94px minmax(0, 1fr); }
  .reservation-day-heading { padding: 15px 12px; }
  .vehicle-reservations { padding: 14px 12px; }
  .date-button { flex-basis: 84px; padding-left: 10px; padding-right: 10px; min-width: 70px; flex-wrap: wrap; gap: 1px 5px; }
  .date-button small { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .build-note { padding: 7px 18px; font-size: 10px; text-align: left; }
  .header { padding: 17px 20px; min-height: 100px; gap: 14px; border-left: 0; border-right: 0; }
  .brand { flex-direction: column; align-items: flex-start; gap: 6px; flex-shrink: 0; }
  .logo-viewport { width: 170px; height: 34px; }
  .brand h1 { padding: 0; border: 0; font-size: 12px; }
  .session-controls { display: grid; grid-template-columns: 44px auto; gap: 5px 7px; min-width: 0; margin-left: auto; font-size: 11px; }
  .session-controls > span { grid-column: 1 / -1; text-align: right; line-height: 1.6; max-width: 145px; }
  .session-controls .compact { font-size: 12px; padding: 8px 10px; }
  .connection-bar { padding: 8px 20px; font-size: 11px; }
  main { min-height: calc(100vh - 260px); }
  .login-panel, .error-panel { margin: 26px 20px 35px; padding: 28px 23px; border-radius: 14px; }
  h2 { font-size: 26px; }
  .description { font-size: 14px; }
  #application { display: block; border: 0; min-height: 0; }
  .desktop-nav { display: none; }
  #page-content { padding: 25px 20px 32px; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; justify-content: space-around; gap: 4px; padding: 7px 10px max(9px, env(safe-area-inset-bottom)); background: #fffefa; border-top: 1px solid #d0e1d9; box-shadow: 0 -4px 18px #104b2d05; }
  .mobile-nav button { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 6px 4px; border-radius: 11px; font-size: 11px; color: #234d3b; min-height: 57px; line-height: 1.5; white-space: normal; }
  .mobile-nav button svg { width: 23px; height: 23px; }
  .mobile-nav button[aria-current="page"] { color: #006c84; background: #def5f7; font-weight: 700; }
  .page-heading { gap: 12px; margin-bottom: 22px; }
  .page-heading h2 { font-size: 30px; }
  .page-heading p { font-size: 13px; line-height: 1.8; }
  .page-heading .secondary { font-size: 11px; min-height: 44px; padding: 8px 10px; }
  .overview { gap: 12px; margin-bottom: 24px; }
  .overview > div { padding: 17px 15px; border-radius: 12px; }
  .overview p { font-size: 13px; }
  .overview b { font-size: 27px; }
  .overview b span { font-size: 17px; }
  .overview .metric-icon, .overview .overview-icon { width: 38px; height: 38px; left: 14px; }
  .overview .metric-icon svg, .overview .overview-icon svg { width: 23px; height: 23px; }
  .overview > div:has(.metric-icon), .overview > div:has(.overview-icon) { padding-left: 64px; }
  .home-section { margin-bottom: 25px; }
  .section-heading { gap: 10px; margin-bottom: 12px; }
  .section-heading h3 { font-size: 17px; }
  .section-heading p { font-size: 11px; max-width: 200px; }
  .date-selector { gap: 8px; }
  .date-button { flex-basis: 65px; min-width: 65px; padding: 10px 8px; flex-wrap: wrap; gap: 2px 5px; }
  .date-button span { font-size: 13px; }
  .date-button b { font-size: 20px; }
  .date-button small { font-size: 10px; flex-basis: 100%; }
  .vehicle-cards { grid-template-columns: 1fr; gap: 16px; }
  .vehicle-card { border-radius: 13px; }
  .vehicle-upper { grid-template-columns: minmax(0, 1fr) 92px; padding: 18px 20px 6px; gap: 12px; }
  .vehicle-illustration { width: 92px; }
  .vehicle-copy h3 { font-size: 25px; }
  .available { font-size: 12px; }
  .vehicle-bottom { padding: 10px 20px 19px; gap: 13px; }
  .vehicle-bottom .primary { min-height: 48px; font-size: 17px; }
  .reservation-overview { margin-top: 25px; }
  .reservation-overview > .section-heading { flex-direction: column; gap: 4px; }
  .reservation-overview > .section-heading p { max-width: none; text-align: left; font-size: 12px; }
  .reservation-overview-note { font-size: 12px; margin-bottom: 12px; }
  .reservation-days { border-radius: 13px; }
  .daily-reservations { grid-template-columns: minmax(0, 1fr); }
  .reservation-day-heading { display: flex; align-items: center; gap: 10px; border-right: 0; border-bottom: 1px solid #e1ebe6; padding: 10px 16px; }
  .reservation-day-heading h4 { font-size: 14px; }
  .selected-day-label { margin-top: 0; }
  .reservation-vehicles { grid-template-columns: minmax(0, 1fr); }
  .vehicle-reservations { padding: 12px 16px; border-left: 0; }
  .vehicle-reservations + .vehicle-reservations { border-top: 1px solid #e1ebe6; }
  .reservation-vehicle-heading h5 { font-size: 14px; }
  .reservation-time-list { gap: 9px; margin-top: 7px; }
  .reservation-overview-time { font-size: 13px; }
  .reservation-overview-empty { margin-top: 4px; font-size: 12px; }
  .home-bottom { grid-template-columns: 1fr; gap: 19px; margin-top: 25px; margin-bottom: 22px; }
  .panel { padding: 21px 19px; border-radius: 13px; }
  .panel-heading { gap: 10px; margin-bottom: 16px; }
  .panel-heading h3 { font-size: 17px; }
  .panel-heading small { font-size: 12px; }
  .text-button { font-size: 12px; }
  .entry-heading b { font-size: 17px; }
  .booking-entry .entry-time { font-size: 14px; }
  .policy-strip { font-size: 12px; padding: 13px; gap: 6px 10px; }
  .policy-strip span + span::before { margin-right: 10px; }
  .selected-vehicle { padding: 16px; gap: 12px; margin-bottom: 20px; }
  .selected-vehicle > div { text-align: left; }
  .selected-vehicle .vehicle-illustration { width: 100px; height: auto; }
  .selected-vehicle h3 { font-size: 25px; }
  .selected-vehicle p { font-size: 12px; }
  .selected-vehicle .available { font-size: 12px; margin-top: 8px; }
  .reservation-layout { gap: 20px; }
  .field input, .field select { min-height: 49px; font-size: 16px; padding: 11px 12px; }
  .field label { font-size: 14px; }
  .field-row { gap: 14px; }
  .time-group { margin-top: 23px; }
  .time-group legend { font-size: 16px; margin-bottom: 15px; }
  .time-group .field select { font-size: 16px; min-height: 50px; }
  .helper { font-size: 12px; }
  .booked-time { padding: 14px; margin-top: 20px; }
  .booked-time h3 { font-size: 14px; }
  .booked-time p { font-size: 12px; }
  .reservation-summary { padding: 21px 19px; background: #f4fcfc; }
  .reservation-summary h3 { font-size: 18px; }
  .reservation-summary dl { font-size: 14px; grid-template-columns: 66px minmax(0, 1fr); row-gap: 14px; }
  .reservation-summary #summary-duration { font-size: 25px; }
  .booking-confirmation .full { font-size: 18px; min-height: 54px; margin-top: 18px; }
  .back-button { margin-bottom: 10px; font-size: 13px; }
  .subtabs { gap: 4px; margin-bottom: 20px; padding: 4px; }
  .subtabs button { flex: 1; font-size: 12px; padding: 10px 7px; line-height: 1.5; min-height: 46px; }
  .admin-grid { gap: 20px; }
  .admin-table { font-size: 13px; }
  .admin-table th { padding: 12px 9px; }
  .admin-table td { padding: 15px 9px; }
  .admin-table .token { max-width: 150px; }
  .admin-table .secondary { font-size: 12px; padding: 8px 10px; }
  .admin-table td:last-child { min-width: 98px; }
  .inline-form { gap: 9px; flex-wrap: wrap; }
  .inline-form .field { min-width: 160px; }
  .inline-form .secondary { font-size: 13px; }
  .privacy-copy { font-size: 14px; }
  .privacy-copy h3 { font-size: 17px; }
  .notice { font-size: 13px; padding: 14px; }
  .footer { display: block; padding: 18px 20px 110px; font-size: 11px; }
  .footer > * { display: block; margin-top: 6px; }
  .footer .text-button { display: inline-flex; min-height: 44px; font-size: 12px; }
  .toast { bottom: 98px; font-size: 13px; padding: 14px 18px; }
  dialog { padding: 25px; }
  dialog h2 { font-size: 24px; }
  dialog p { font-size: 14px; }
}
@media (max-width: 380px) {
  #page-content { padding-left: 17px; padding-right: 17px; }
  .header { padding-left: 17px; padding-right: 17px; gap: 10px; }
  .logo-viewport { width: 148px; height: 30px; }
  .brand h1 { font-size: 11px; }
  .session-controls { gap: 4px; }
  .session-controls .compact { padding-left: 9px; padding-right: 9px; font-size: 11px; }
  .page-heading h2 { font-size: 28px; }
  .page-heading .secondary { padding-left: 9px; padding-right: 9px; }
  .overview > div:has(.metric-icon), .overview > div:has(.overview-icon) { padding-left: 54px; }
  .overview .metric-icon, .overview .overview-icon { width: 31px; height: 31px; left: 12px; }
  .overview .metric-icon svg, .overview .overview-icon svg { width: 21px; height: 21px; }
  .overview p { font-size: 12px; }
  .overview b { font-size: 25px; }
  .vehicle-upper { padding-left: 17px; padding-right: 17px; }
  .vehicle-upper { grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; }
  .vehicle-illustration { width: 84px; }
  .vehicle-bottom { padding-left: 17px; padding-right: 17px; }
  .field-row { gap: 10px; }
  .time-group .field select { padding-left: 9px; padding-right: 9px; }
  .section-heading { align-items: flex-start; }
  .section-heading p { max-width: 175px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}

/* Only user-supplied names/identifiers may split a token to preserve layout. */
.vehicle-copy h3, .selected-vehicle h3, .entry-heading b, .reservation-vehicle-heading h5, .status-line h3, #summary-vehicle, #signed-in-name, .reservation-overview-owner { overflow-wrap: anywhere; min-width: 0; }
.entry-heading b, .status-line h3 { flex: 1; }
/* These regions include customer-entered vehicle or employee names. */
.notification-preview, .preview-item, .preview-item > div { min-width: 0; }
.preview-item h3, .list-stack .list-item h3, .booking-entry p:not(.entry-time), .reservation-summary dd, #confirm-detail { overflow-wrap: anywhere; }

/* ===== 2026-11-17 구조 정돈 (승인 색상·Pretendard·숲색 사이드바 유지) ===== */
:root { --line-soft: #e3e9e6; --track: #eef2f0; --ok: #1f7a4a; --warn: #9a5b12; --now: #b3261e; }
/* 상단 띠를 얇게: 검증 안내와 연결 상태가 첫 화면을 차지하지 않도록 */
.build-note { padding: 3px 24px; font-size: 11px; line-height: 1.6; }
.header { min-height: 72px; padding: 12px 30px; }
.logo-viewport { width: 200px; height: 40px; }
.connection-bar { padding: 4px max(24px, calc((100% - 1300px) / 2)); line-height: 1.6; }
/* 사이드바: 승인된 숲색 유지, 크기만 정돈 */
.desktop-nav { gap: 6px; padding: 24px 12px; }
.desktop-nav button { font-size: 15px; padding: 12px 14px; gap: 12px; }
.desktop-nav button svg { width: 20px; height: 20px; }
/* 제목: 요약 카드 대신 한 줄 요약 */
.page-heading { align-items: flex-end; margin-bottom: 22px; }
.page-heading h2 { font-size: 30px; letter-spacing: -.7px; }
.page-heading p { margin-top: 4px; }
.page-heading .summary-line { margin-top: 6px; font-size: 14px; color: var(--muted); }
.page-heading .summary-line b { color: var(--ink); font-weight: 700; }
.home-section { margin-bottom: 30px; }
.section-heading h3 { font-size: 18px; }
/* 날짜: 같은 모양의 탭. 기간이 길면 가로 스크롤 유지 */
.date-selector { gap: 4px; padding: 4px; background: #e9f1ef; border-radius: 12px; }
.date-button { flex: 1 0 104px; min-width: 104px; min-height: 52px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; gap: 6px; }
.date-button span { font-size: 14px; font-weight: 550; }
.date-button b { font-size: 20px; }
.date-button small { font-size: 11px; }
.date-button:hover:not([aria-pressed="true"]) { background: #ffffffb3; }
.date-button[aria-pressed="true"] { background: white; color: var(--forest); box-shadow: 0 1px 2px #104b2d14, 0 0 0 1px var(--line); }
.date-button[aria-pressed="true"] small { color: var(--muted); }
/* 차량 카드: 작은 공통 그림 + 24시간 막대 + 다음 예약 */
.vehicle-cards { gap: 16px; }
.vehicle-card { border-color: var(--line-soft); border-radius: 12px; padding: 20px; gap: 16px; }
.vehicle-upper { display: flex; align-items: center; gap: 14px; padding: 0; }
.vehicle-upper .vehicle-illustration { width: 84px; flex-shrink: 0; }
.vehicle-copy { flex: 1; }
.vehicle-copy h3 { font-size: 22px; margin-top: 0; line-height: 1.3; }
.vehicle-count { align-self: flex-start; flex-shrink: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vehicle-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; font-weight: 600; }
.vehicle-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.vehicle-status.free { color: var(--ok); }
.vehicle-status.busy { color: var(--warn); }
.vehicle-status.partial { color: var(--aqua-hover); }
.day-timeline { min-width: 0; }
.timeline-track { position: relative; height: 28px; border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(90deg, var(--track) 0 calc(25% - 1px), #dde6e2 calc(25% - 1px) 25%); }
.timeline-block { position: absolute; top: 0; bottom: 0; min-width: 3px; border-radius: 4px; background: var(--aqua); }
.timeline-block.mine { background: var(--forest); }
.timeline-block.pick { background: repeating-linear-gradient(135deg, #104b2d26 0 6px, transparent 6px 12px); border: 2px solid var(--forest); }
.timeline-block.pick.clash { border-color: var(--now); background: repeating-linear-gradient(135deg, #b3261e33 0 6px, transparent 6px 12px); }
.timeline-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--now); }
.timeline-ticks { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.timeline-legend span { display: inline-flex; align-items: center; gap: 6px; }
.timeline-legend i { width: 12px; height: 8px; border-radius: 2px; background: var(--aqua); }
.timeline-legend i.mine { background: var(--forest); }
.timeline-legend i.pick { background: white; border: 2px solid var(--forest); }
.timeline-legend i.now { width: 3px; height: 12px; background: var(--now); }
.vehicle-next { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 8px; background: #f5f8f6; font-size: 14px; }
.vehicle-next-label { flex-shrink: 0; font-size: 13px; color: var(--muted); }
.vehicle-next-value { min-width: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.vehicle-next-value small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.vehicle-card > .primary { width: 100%; min-height: 48px; font-size: 15px; }
/* 날짜별·차량별 목록: 표처럼 정돈, 모든 예약 표시 */
.reservation-overview-note { margin-bottom: 10px; }
.reservation-days { border-color: var(--line-soft); border-radius: 12px; }
.reservation-day-heading { background: #f6f9f7; padding: 14px 16px; }
.daily-reservations.selected-day .reservation-day-heading { background: #e9f4f6; }
.vehicle-reservations { padding: 14px 18px; }
.reservation-time-list { gap: 6px; margin-top: 6px; }
.reservation-time-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.reservation-overview-time { font-weight: 650; line-height: 1.6; }
.reservation-overview-owner { margin-top: 0; font-size: 13px; }
.reservation-overview-empty { margin-top: 4px; }
/* 하단 패널 */
.panel { border-color: var(--line-soft); border-radius: 12px; }
.home-bottom { gap: 16px; }
/* 예약 화면 */
.selected-vehicle { padding: 14px 20px; border-radius: 12px; border-color: var(--line-soft); }
.selected-vehicle h3 { font-size: 26px; }
.selected-vehicle .vehicle-illustration { width: 96px; }
.booked-time { background: #f5f8f6; color: var(--ink); }
.booked-time .day-timeline { margin-bottom: 8px; }
.booked-time .timeline-legend { margin-bottom: 4px; }
.duration-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid #c8d8d3; border-radius: 999px; background: white; font-size: 14px; font-weight: 550; color: #315e50; }
.chip:hover:not(:disabled) { border-color: #7bc2cb; }
.chip[aria-pressed="true"] { background: var(--soft); border-color: var(--aqua); color: var(--aqua-hover); font-weight: 700; }
@media (max-width: 980px) {
  .vehicle-upper .vehicle-illustration { width: 76px; }
}
@media (max-width: 760px) {
  .header { min-height: 0; padding: 10px 16px; align-items: center; }
  .brand { gap: 2px; }
  .logo-viewport { width: 140px; height: 28px; }
  .session-controls > span { display: none; }
  .page-heading h2 { font-size: 24px; }
  .date-button { flex: 1 0 64px; min-width: 64px; min-height: 60px; flex-direction: column; gap: 0; padding: 6px 4px; }
  .date-button span { font-size: 12px; }
  .date-button b { font-size: 18px; }
  .vehicle-card { padding: 16px; gap: 14px; }
  .vehicle-upper .vehicle-illustration { width: 68px; }
  .vehicle-copy h3 { font-size: 20px; }
  .section-heading { flex-wrap: wrap; }
}
.booked-time .clash-note { color: var(--danger); font-weight: 650; margin: 0 0 6px; }
@media (max-width: 980px) {
  .date-button { flex-wrap: nowrap; }
  .date-button small { flex-basis: auto; }
}
@media (max-width: 760px) {
  .date-button small { display: none; }
  .page-heading { align-items: flex-start; }
  .summary-line .seg { white-space: nowrap; }
}

/* 2026-11-19 예약 가능 시간 설정 · 취소 통계 */
.stats-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; max-width: 640px; }
.stats-form .primary { min-height: 48px; }
.stats-summary { margin: 18px 0 12px; color: #315e4a; word-break: keep-all; }
.stats-summary b { color: var(--forest); }
.stats-table td.num, .stats-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.stats-table .cancel-count { color: #b4442f; }
@media (max-width: 760px) {
  .stats-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stats-form .primary { grid-column: 1 / -1; }
  .stats-table thead { display: none; }
  .stats-table, .stats-table tbody { display: block; }
  .stats-table tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 6px; padding: 14px 4px; border-bottom: 1px solid #dfeae4; }
  .stats-table td { display: block; padding: 0; border: 0; }
  .stats-table td:first-child { grid-column: 1 / -1; margin-bottom: 6px; }
  .stats-table td.num { text-align: left; font-size: 15px; white-space: normal; min-width: 0; }
  .stats-table td.num::before { content: attr(data-label); display: block; color: #5b7a6c; font-size: 12px; word-break: keep-all; }
  .stats-table td[colspan] { grid-column: 1 / -1; }
}
