:root {
  color-scheme: light;
  --ink: #142138;
  --muted: #52617a;
  --line: #dce3ef;
  --blue: #294edc;
  --blue-deep: #1d3db5;
  --paper: #fff;
  --surface: #f3f6fb;
  --shadow: 0 5px 22px #16274b08;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 15px/1.55 "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  word-break: keep-all;
}
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #5577ff; outline-offset: 3px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1224px; padding: 0 28px; margin: auto; min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; min-height: 44px; }
.brand-mark { width: 40px; height: 40px; background: #243fbd; color: #fff; border-radius: 12px; display: grid; place-items: center; }
.brand small { display: block; color: #576783; font-size: 11px; font-weight: 700; line-height: 1.4; }
.brand strong { display: block; font-size: 17px; line-height: 1.4; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { min-height: 44px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-weight: 700; }
.nav a[aria-current] { background: #eaf0ff; color: #2447c7; }
.nav a .icon { width: 18px; height: 18px; }
.account { display: flex; align-items: center; justify-self: end; gap: 8px; padding: 4px 8px; min-height: 44px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 13px; font-weight: 700; }
.avatar { width: 29px; height: 29px; border-radius: 8px; background: #edf2ff; color: #294bc8; display: grid; place-items: center; }
.avatar .icon, .chevron { width: 16px; height: 16px; }
.chevron { color: var(--muted); }
.shell { max-width: 1224px; margin: auto; padding: 28px 28px 0; }
.hero { min-height: 270px; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; color: #fff; border-radius: 22px; background: radial-gradient(ellipse at 77% 42%,#263da4 0, transparent 55%), linear-gradient(108deg,#131d43,#1b2863 68%,#182453); }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(#9eaeff17 1px,transparent 1px),linear-gradient(90deg,#9eaeff17 1px,transparent 1px); background-size: 27px 27px; mask-image: linear-gradient(90deg,transparent 4%,#000 88%); }
.hero-copy { padding: 38px 42px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #c8d4ff; font: 700 11px/1.4 system-ui,sans-serif; letter-spacing: .13em; }
.eyebrow span, .art-bottom b { width: 7px; height: 7px; border-radius: 50%; background: #91a5ff; box-shadow: 0 0 12px #98abff9e; }
.eyebrow i { width: 16px; height: 1px; background: currentColor; opacity: .45; }
h1, h2, p { margin: 0; }
.hero h1, .history-head h1 { margin: 9px 0; letter-spacing: -.065em; font-size: clamp(38px,5vw,63px); line-height: 1.14; }
.hero p { font-size: 15px; line-height: 1.7; color: #dbe4ff; }
.hero-stat { width: fit-content; display: flex; align-items: center; gap: 7px; margin-top: 20px; padding: 7px 11px; border: 1px solid #bac9ff55; border-radius: 8px; background: #1823588a; color: #dbe4ff; font-size: 12px; }
.hero-stat .icon { width: 15px; height: 15px; color: #a7baff; }
.hero-stat b { color: #fff; }
.hero-stat span { width: 1px; height: 12px; background: #a6b7ff66; margin: 0 4px; }
.hero-art { align-self: stretch; min-width: 0; position: relative; display: grid; place-items: center; }
.hero-art > svg { position: relative; width: min(78%,340px); filter: drop-shadow(0 20px 20px #040b3499); }
.art-top, .art-bottom { position: absolute; right: 26px; font: 700 10px/1.2 ui-monospace,monospace; letter-spacing: .15em; color: #c3d0ff; }
.art-top { top: 24px; }
.art-bottom { bottom: 22px; display: inline-flex; gap: 8px; align-items: center; }
.art-bottom b { width: 6px; height: 6px; }
.orbit { position: absolute; width: 80%; height: 74%; border: 1px solid #b7c4ff35; border-radius: 50%; transform: rotate(-18deg); }
.orbit-two { width: 90%; height: 82%; opacity: .6; }
.workflow { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 24px; align-items: start; margin-top: 24px; }
.left, .right { min-width: 0; }
.right { position: sticky; top: 18px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }
.dates, .summary { padding: 21px; }
.step-head { display: flex; align-items: flex-start; gap: 12px; }
.step { flex: 0 0 auto; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; color: #2748c0; background: #eaf0ff; font: 750 12px/1 system-ui,sans-serif; }
.step-head h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.045em; }
.step-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.date-fields { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 12px; align-items: end; margin-top: 17px; }
.date-fields label { min-width: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.date-fields input { display: block; width: 100%; min-width: 0; height: 48px; padding: 0 11px; margin-top: 5px; border: 1px solid #ced8e9; border-radius: 9px; background: #f8faff; color: var(--ink); font-size: 14px; font-weight: 650; }
.date-arrow { color: #647592; align-self: end; margin-bottom: 14px; }
.error { margin-top: 10px; color: #a42335; font-size: 13px; }
.catalog { margin-top: 24px; }
.catalog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.filters { display: flex; flex-wrap: wrap; max-width: 100%; gap: 3px; background: #e9eef7; border: 1px solid #dfe6f1; border-radius: 10px; padding: 3px; }
.cpu-empty { grid-column: 1 / -1; padding: 24px 12px; text-align: center; color: var(--muted); }
.filters button { padding: 0 9px; min-width: 44px; min-height: 44px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; }
.filters button[aria-pressed="true"] { color: #2344bd; background: #fff; box-shadow: 0 1px 4px #203b7a1c; }
.models { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.model-card { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); transition: border-color .15s, background .15s; }
.model-card:hover, .model-card.selected { border-color: #5c78eb; background: #f6f8ff; }
.model-card.selected { box-shadow: inset 0 0 0 1px #5c78eb; }
.model-select { align-self: stretch; min-height: 112px; min-width: 0; text-align: left; display: grid; grid-template-columns: 57px minmax(0,1fr) 17px; align-items: center; gap: 8px; padding: 10px; border: 0; border-radius: 12px; color: var(--ink); background: transparent; }
.model-select:focus-visible { outline-offset: -3px; }
.model-select:disabled .model-art { opacity: .55; }
.model-detail-link { display: inline-flex; align-items: center; min-height: 44px; margin-right: 8px; padding: 0 8px; border-radius: 8px; color: var(--blue-deep); background: #edf2ff; white-space: nowrap; font-size: 12px; font-weight: 750; }
.model-detail-link:hover { background: #dce6ff; }
.model-art { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; background: radial-gradient(at 70% 25%,#d7dcff,#edf1ff 72%); border-radius: 10px; }
.model-art svg { width: 90%; }
.model-copy { display: flex; align-items: flex-start; flex-direction: column; gap: 3px; min-width: 0; }
.model-copy strong { font-size: 14px; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.specs, .part { color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.part { color: #586789; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 2px 8px; border-radius: 20px; font-size: 11px; line-height: 1.65; font-weight: 750; }
.badge.good { background: #e4f6ef; color: #12644a; }
.badge.pending { background: #fff0d5; color: #805009; }
.badge.active { background: #e8eeff; color: #2344bc; }
.badge.muted { background: #e6ebf3; color: #515f76; }
.model-action { display: grid; place-items: center; color: #4d62a7; }
.model-card.selected .model-action { color: #2447cc; }
.model-action .icon { width: 17px; height: 17px; }
.model-detail { max-width: 760px; margin: 0 auto; }
.detail-back { margin-bottom: 14px; }
.detail-panel { padding: clamp(15px, 4vw, 26px); }
.detail-overview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); align-items: center; gap: clamp(14px, 4vw, 28px); }
.detail-art { aspect-ratio: 4 / 3; }
.detail-copy { grid-column: 2; min-width: 0; }
.detail-art[hidden] + .detail-copy { grid-column: 1 / -1; }
.detail-copy h1 { font-size: clamp(23px, 4vw, 34px); line-height: 1.2; letter-spacing: -.035em; }
.detail-specs { margin: 15px 0 0; }
.detail-specs > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.detail-specs dt, .detail-reservation small { color: var(--muted); }
.detail-specs dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-weight: 700; }
.detail-reservation { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding: 14px; border-radius: 12px; background: #f3f6fc; }
.detail-reservation strong { display: block; }
#detailStatus { font-size: 13px; color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; border-radius: 9px; padding: 0 14px; font-weight: 750; }
.primary { color: #fff; background: var(--blue); border: 1px solid transparent; }
.primary:hover:not(:disabled) { background: var(--blue-deep); }
.primary:disabled { color: #495b79; background: #e6ebf5; }
.secondary { color: #2944a2; background: #fff; border: 1px solid #d5dff0; }
.secondary:hover { background: #edf2ff; }
.more { grid-column: 1/-1; }
.summary .primary { width: 100%; margin-top: 17px; justify-content: space-between; }
.summary-item { display: flex; gap: 11px; padding: 15px 0 12px; border-bottom: 1px solid var(--line); }
.summary-item > .icon { color: #3558d1; margin-top: 3px; }
.summary-item small, .summary-item strong, .summary-item span { display: block; }
.summary-item small, .summary-item span { color: var(--muted); font-size: 12px; }
.summary-item strong { font-size: 14px; }
.demo-note { display: flex; gap: 10px; padding: 13px 14px; margin-top: 12px; color: #415474; background: #eaf0fb; border: 1px solid #dce6f6; border-radius: 11px; font-size: 12px; }
.demo-note .icon { width: 17px; height: 17px; margin-top: 2px; color: #3655b9; }
.demo-note p { margin-top: 3px; }
.history-head { padding: 28px 28px 32px; background: #eaf0ff; border: 1px solid #dce6fa; border-radius: 17px; }
.history-head .eyebrow { color: #324faf; }
.history-head h1 { font-size: clamp(36px,5vw,52px); }
.history-head p { color: var(--muted); }
.history-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 17px 0; }
.history-stat { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.history-stat strong { font-size: 22px; }
.history-stat small { font-size: 12px; margin-left: 3px; color: var(--muted); }
.bookings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.booking { padding: 17px; }
.booking-top, .booking-date, .booking-actions { display: flex; align-items: center; gap: 8px; }
.booking-top { justify-content: space-between; }
.booking h2 { font-size: 18px; margin-top: 12px; }
.booking-date { font-size: 13px; color: var(--muted); margin-top: 9px; }
.booking-date .icon { width: 16px; height: 16px; }
.booking-actions { justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.empty { grid-column: 1/-1; text-align: center; padding: 32px 12px; color: var(--muted); }
.empty h2 { color: var(--ink); font-size: 19px; }
.empty .secondary { margin-top: 12px; }
footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 31px; padding: 17px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 10; bottom: 22px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 10px 15px; border-radius: 10px; background: #17264e; color: #fff; box-shadow: 0 6px 20px #15224544; font-weight: 700; font-size: 13px; }
dialog { max-width: calc(100% - 30px); width: 410px; border: 1px solid var(--line); border-radius: 17px; padding: 0; color: var(--ink); box-shadow: 0 16px 60px #10235433; }
dialog::backdrop { background: #141d3c88; }
.dialog-body { padding: 23px; }
.close { position: absolute; right: 9px; top: 9px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.close:hover { background: #f0f4ff; }
.dialog-mark { width: 40px; height: 40px; margin-bottom: 11px; }
dialog h2 { font-size: 22px; }
dialog p { color: var(--muted); margin: 5px 0 13px; }
.dialog-details { background: #eff4ff; padding: 11px; border-radius: 8px; white-space: pre-line; }
dialog .primary { margin-top: 15px; width: 100%; }
.mobile-reserve { display: none; }
@media (max-width: 1000px) {
  .workflow { grid-template-columns: minmax(0,1fr) 285px; gap: 16px; }
  .models { grid-template-columns: minmax(0,1fr); }
  .model-select { min-height: 94px; }
}
@media (max-width: 720px) {
  .top-inner { min-height: 62px; padding: 0 15px; grid-template-columns: 1fr auto; gap: 8px; }
  .nav { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px 10px calc(5px + env(safe-area-inset-bottom)); }
  .nav a { flex-direction: column; gap: 1px; font-size: 12px; padding: 4px 3px; }
  .nav a[aria-current] { background: #eaf0ff; }
  .shell { padding: 13px 13px 82px; }
  .hero { grid-template-columns: minmax(0,1fr) 30%; min-height: 209px; border-radius: 16px; }
  .hero-copy { padding: 18px 0 18px 17px; }
  .hero h1 { font-size: 38px; margin: 7px 0; }
  .hero p { font-size: 12px; }
  .hero-stat { margin-top: 13px; gap: 5px; padding: 5px 7px; font-size: 10px; }
  .hero-art > svg { width: 112%; transform: translateX(-5%); }
  .orbit { height: 42%; }
  .orbit-two { height: 48%; }
  .art-top, .art-bottom { display: none; }
  .eyebrow { font-size: 9px; letter-spacing: .075em; gap: 6px; }
  .eyebrow i { width: 8px; }
  .workflow { display: block; margin-top: 13px; }
  .right { position: static; margin-top: 13px; }
  .dates, .summary { padding: 14px; }
  .catalog { margin-top: 16px; }
  .step-head { gap: 8px; }
  .step { width: 30px; height: 30px; }
  .step-head h2 { font-size: 17px; }
  .step-head p { font-size: 12px; }
  .date-fields { gap: 6px; }
  .date-fields input { padding: 0 5px; font-size: 13px; }
  .date-arrow { width: 15px; }
  .models { gap: 7px; }
  .model-select { min-height: 86px; grid-template-columns: 48px minmax(0,1fr) 17px; }
  .detail-overview { grid-template-columns: minmax(0,1fr); }
  .detail-art { aspect-ratio: 2 / 1; }
  .detail-art svg { width: 75%; }
  .detail-copy { grid-column: 1; }
  .detail-actions { width: 100%; }
  .detail-actions .primary { flex: 1; }
  .mobile-reserve { display: flex; position: fixed; z-index: 6; bottom: calc(63px + env(safe-area-inset-bottom)); left: 13px; width: calc(100% - 26px); box-shadow: 0 6px 20px #183abc55; }
  .history-head { padding: 19px; }
  .history-head p { font-size: 13px; }
  .history-stats { gap: 6px; margin: 11px 0; }
  .history-stat { display: block; padding: 9px; }
  .history-stat strong { display: block; margin-top: 2px; }
  .bookings { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .toast { bottom: calc(120px + env(safe-area-inset-bottom)); }
  footer { margin-top: 20px; }
}
@media (max-width: 360px) {
  .catalog-head { align-items: flex-start; flex-wrap: wrap; }
  .date-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .date-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.auth-panel {
  width: min(100%, 420px);
  margin: clamp(20px, 8vh, 82px) auto;
  padding: clamp(20px, 6vw, 36px);
}
.auth-panel h1 { margin: 15px 0 4px; font-size: 28px; letter-spacing: -.045em; }
.auth-panel p, .history-status { color: var(--muted); font-size: 14px; }
.auth-panel form { display: grid; gap: 13px; margin-top: 22px; }
.auth-panel label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.auth-panel input {
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #ced8e9;
  border-radius: 9px;
  background: #f8faff;
  color: var(--ink);
  font-size: 16px;
}
.auth-panel .primary { margin-top: 4px; }
.auth-panel .auth-status:not(:empty) { margin-top: 12px; }
.history-status { margin: 0 0 10px; }
#historyRetry { margin: 0 0 12px; }
.admin-filters { padding: 16px; margin: 16px 0; }
.admin-filter-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.admin-filter-fields label { min-width: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.admin-filter-fields :is(input, select) {
  display: block; width: 100%; min-width: 0; height: 44px; margin-top: 5px; padding: 0 9px;
  border: 1px solid #ced8e9; border-radius: 9px; background: #f8faff; color: var(--ink); font: inherit;
}
.admin-filter-footer, .admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-filter-footer { justify-content: space-between; margin-top: 12px; }
.admin-filter-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-pager { justify-content: center; margin-top: 16px; }
#adminHistoryRetry { margin-bottom: 12px; }
.admin-asset {
  min-height: 44px; padding: 0; border: 0; background: none; color: #2447c7;
  font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.admin-booking h2 { margin: 0; }
.badge.overdue { background: #fee6e6; color: #98232c; }
.admin-booking-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); gap: 10px 14px; margin: 12px 0 0; }
.admin-booking-details dt { color: var(--muted); font-size: 12px; }
.admin-booking-details dd { margin: 3px 0 0; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .admin-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

/* Product photos and specifications */
.model-art.product-photo { background: #fff; padding: 6px; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.detail-art.product-photo { padding: 12px; }
.detail-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin-top: 22px; }
.detail-password dd { min-width: 0; }
.detail-password ul { list-style: none; margin: 4px 0 0; padding: 0; }
.detail-password #detailPasswordValues { white-space: pre-wrap; }
.detail-extra .detail-connections { grid-column: 1 / -1; flex-direction: column; }
.detail-connections dd { text-align: left; font-weight: 500; }
.detail-connections ul { margin: 3px 0 0; padding-inline-start: 20px; }
.detail-ports { margin-top: 20px; }
.detail-ports h2 { font-size: 1rem; margin: 0 0 8px; }
.detail-port-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-port-images img { display: block; width: 100%; aspect-ratio: 10 / 3; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 600px) {
  .detail-extra, .detail-port-images { grid-template-columns: 1fr; }
}
