/* K&M Testing Center — 깔끔하고 믿음직하게. 짙은 청록 하나에 회색 몇 단계. 휴대폰 먼저. */

:root {
    --brand: #0f6b5c;
    --brand-dark: #0b5248;
    --brand-tint: #e9f4f1;
    --accent: #f2b33d;
    --ink: #13232b;
    --text: #34444c;
    --muted: #66757c;
    --line: #e1e7e9;
    --bg: #ffffff;
    --bg-soft: #f5f8f8;
    --danger: #b3261e;
    --danger-tint: #fdecea;
    --ok-tint: #e7f5ec;
    --warn-tint: #fff6e0;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(19, 35, 43, .06), 0 8px 24px rgba(19, 35, 43, .07);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
h1:focus { outline: none; } /* 페이지 이동 때 제목으로 포커스가 가지만 테두리는 안 보이게 */
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.center-text { text-align: center; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.lead { font-size: 1.15rem; max-width: 720px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }

/* ---------- 단추 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .65em 1.2em; border-radius: 999px;
       font: 600 .97rem/1.2 var(--font); border: 2px solid transparent; cursor: pointer; text-decoration: none !important;
       transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: .85em 1.5em; font-size: 1.04rem; }
.btn-sm { padding: .35em .8em; font-size: .85rem; }
.btn-block { display: flex; width: 100%; white-space: normal; text-align: center; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-outline { border-color: #f3c3bf; color: var(--danger); background: #fff; }
.btn-danger-outline:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.linklike { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.chip { display: inline-block; font-size: .8rem; font-weight: 600; padding: .25em .8em; border-radius: 999px; background: var(--brand-tint); color: var(--brand); margin-bottom: 1rem; }

/* ---------- 머리 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; margin-right: auto; }
.brand-logo { width: 46px; height: 46px; border-radius: 10px; flex: none; }
.footer-logo { display: inline-block; width: 32px; height: 32px; border-radius: 7px; vertical-align: middle; margin-right: 8px; }
.brand-text { display: flex; flex-direction: column; font-weight: 800; font-size: 1.35rem; line-height: 1.05; letter-spacing: -.01em; }
.brand-text small { font-weight: 600; color: var(--text); font-size: .82rem; letter-spacing: .01em; }
.nav-main { display: none; gap: 18px; }
.nav-main a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-main a:hover { color: var(--brand); text-decoration: none; }
.header-cta { display: none; }
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 10px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-mobile-panel { position: absolute; right: 0; top: 52px; width: min(86vw, 320px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
                    box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; }
.nav-mobile-panel a { padding: 10px 12px; color: var(--ink); border-radius: 8px; }
.nav-mobile-panel a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-mobile-panel .btn { margin-top: 8px; color: #fff; }
@media (min-width: 1120px) {
    .nav-main { display: flex; }
    .header-cta { display: inline-flex; }
    .nav-mobile { display: none; }
}

/* ---------- 홈 ---------- */
.hero { background: linear-gradient(180deg, var(--brand-tint), #fff); padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.hero-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.exam-quick { list-style: none; margin: 0 0 12px; padding: 0; }
.exam-quick a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
                margin-bottom: 8px; color: var(--ink); text-decoration: none; }
.exam-quick a:hover { border-color: var(--brand); background: var(--brand-tint); }
.exam-quick span:first-child { display: flex; flex-direction: column; }
.exam-quick small { color: var(--muted); }
.price { font-weight: 700; color: var(--brand); white-space: nowrap; }
@media (min-width: 900px) { .hero { padding: 72px 0 80px; } .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; } }

.section { padding: 48px 0; }
.section.tight { padding: 28px 0 56px; }
.section-soft { background: var(--bg-soft); }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--text); }
.card h3 a { color: var(--ink); }
.card p { flex: 0 0 auto; }
.card-soft { background: var(--bg-soft); }
.card-link { text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 0; }
/* 홈: 그림 카드 */
.home-cards { padding-top: 36px; }
.home-head { margin-bottom: 22px; }
.home-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: .2em; }
.cards-img { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card-img { padding: 0; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card-img:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-pic { display: block; aspect-ratio: 400 / 220; background: var(--bg-soft); }
.card-pic img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card-body h2 { margin-bottom: .35em; }
.card-body h2 a { color: var(--ink); }
.card-body > p:not(.card-foot) { font-size: .95rem; }
.card-body .card-foot { flex-wrap: wrap; row-gap: 10px; }
.card-body .card-foot .small { white-space: nowrap; }
.sms-box { display: grid; gap: 16px; background: var(--brand-tint); border-radius: var(--radius); padding: 22px; margin-bottom: 28px; }
.sms-box h2 { font-size: 1.3rem; margin: 0; }
.sms-steps { margin: 0; padding-left: 1.3em; }
.sms-steps li { margin-bottom: .45em; }
.sms-call { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
@media (min-width: 760px) { .sms-box { grid-template-columns: 1fr 1.4fr; align-items: center; } }
.contact-ways { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 28px; }
.contact-way { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.contact-way strong { display: block; color: var(--ink); }
.contact-way a { overflow-wrap: anywhere; }
.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }

/* ---------- 페이지 머리 ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.page-head.compact { padding: 24px 0 18px; }
.page-head.compact h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .5em; }
.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.side-card, .summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .side-card, .summary-card { position: sticky; top: 90px; } }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 18px; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts.wide dt { min-width: 8em; }
.pre { white-space: pre-line; }
.rich h3 { margin-top: 1.4em; }
.rich ul, .rich ol { padding-left: 1.3em; margin: 0 0 1em; }
.rich li { margin-bottom: .35em; }
.partner { padding: 24px 0; border-bottom: 1px solid var(--line); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; margin-bottom: 12px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 예약 ---------- */
.steps-bar { display: flex; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; flex-wrap: wrap; font-size: .85rem; }
.steps-bar li { padding: .3em .8em; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.steps-bar li.done { color: var(--brand); border-color: var(--brand-tint); background: var(--brand-tint); }
.steps-bar li.current { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.book-grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
    .book-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
    .book-grid.reverse { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.inline-form select, .inline-form input { width: auto; }

.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 1.1rem; color: var(--ink); }
.cal-nav { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; color: var(--ink); text-decoration: none !important; }
.cal-nav:hover { background: var(--bg-soft); }
.cal-nav.disabled { color: var(--line); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: .75rem; font-weight: 600; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.cal-day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; color: #b9c3c7; font-weight: 500; }
a.cal-day.open { background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; text-decoration: none; }
a.cal-day.open:hover { background: #d3ebe5; }
.cal-day.selected { background: var(--brand) !important; color: #fff !important; font-weight: 700; }
.cal-legend { margin-top: 8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: #e7ecee; vertical-align: middle; }
.dot.open { background: var(--brand-tint); border: 1px solid #b8ddd4; }

.times-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.time-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.time-btn { display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: 12px; border: 2px solid var(--brand); color: var(--brand);
            font: 700 1.05rem var(--font); background: #fff; cursor: pointer; text-decoration: none !important; }
.time-btn small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.time-btn:hover { background: var(--brand); color: #fff; }
.time-btn:hover small { color: #d9efe9; }
.small-times { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.side-note { border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- 폼 ---------- */
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .62em .75em; border: 1px solid #cdd6d9; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-tint); border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); transform: scale(1.15); margin: 0 .5em 0 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 5px; font-size: .95rem; }
.field-check label, label.field-check { display: flex; align-items: flex-start; font-weight: 500; gap: 2px; cursor: pointer; }
.field-check input { margin-top: .35em; }
.help { display: block; color: var(--muted); margin-top: 4px; }
.req { color: var(--danger); font-weight: 700; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field-error { display: block; color: var(--danger); margin-top: 4px; }
.error-box { background: var(--danger-tint); color: #5f1410; border: 1px solid #f3c3bf; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.error-box ul { margin: 6px 0 0; padding-left: 1.2em; }
.validation-message { color: var(--danger); font-size: .86rem; }
.notice { background: var(--warn-tint); border: 1px solid #f3dfa6; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.notice.ok { background: var(--ok-tint); border-color: #bfe3cb; }
.empty { color: var(--muted); padding: 24px; text-align: center; background: var(--bg-soft); border-radius: var(--radius); }
.pay-methods { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 6px 0 16px; }
.pay-methods legend { font-weight: 600; color: var(--ink); padding: 0 6px; }
.pay-option { display: flex; align-items: center; padding: 8px 0; cursor: pointer; font-weight: 500; }
.pay-wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; }
.pay-wait[hidden] { display: none; }
.mini-spin { width: 18px; height: 18px; border: 3px solid #cfe5df; border-top-color: var(--brand); border-radius: 50%; animation: knmspin .9s linear infinite; }
@keyframes knmspin { to { transform: rotate(360deg); } }
.policy-box { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: .94rem; }
.policy-box h3 { font-size: 1rem; }
.summary-when { font-size: 1.1rem; color: var(--ink); }

.ticket { border: 2px dashed var(--brand); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; background: #fff; }
.ticket.muted-ticket { border-color: var(--line); opacity: .8; }
.ticket-exam { font-weight: 700; color: var(--brand); margin-bottom: .3em; text-transform: uppercase; letter-spacing: .04em; font-size: .88rem; }
.ticket-when { font-size: 1.25rem; color: var(--ink); }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- 바닥 ---------- */
.site-footer { background: var(--ink); color: #c6d1d5; padding: 48px 0 24px; margin-top: 40px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #2c3e46; margin-top: 28px; padding-top: 18px; font-size: .85rem; }
.site-footer .muted { color: #93a3a9; }

/* ================= 관리 화면 ================= */
.admin { min-height: 100vh; background: var(--bg-soft); font-size: 15px; }
.admin-bar { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 10px 24px; background: var(--ink); color: #fff; }
.admin-bar a { color: #dfe7ea; }
.admin-brand { font-weight: 800; color: #fff !important; }
.admin-brand span { font-weight: 500; color: var(--accent); }
.admin-bar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.admin-user { margin-left: auto; display: flex; gap: 10px; align-items: center; color: #93a3a9; }
.admin-site { font-size: .85rem; }
.admin-main { padding: 24px; max-width: 1400px; margin: 0 auto; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.admin-head h1 { font-size: 1.7rem; margin-bottom: .2em; }
.admin-head .inline-form { margin: 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lead-sm { font-size: 1.05rem; }
.admin input, .admin select, .admin textarea { font-size: .95rem; padding: .45em .6em; border-radius: 8px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.panel h2 { font-size: 1.15rem; }
.panel.danger { border-color: #f3c3bf; }
.admin-cols { display: grid; gap: 18px; }
@media (min-width: 1000px) { .admin-cols { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.grid { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.grid th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafcfc; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tr:last-child td { border-bottom: 0; }
.row-cancelled td { color: #9aa6aa; text-decoration: line-through; }
.row-cancelled td a { color: #9aa6aa; }
.row-done td { background: #f3faf6; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15em .6em; border-radius: 999px; background: #eef2f3; color: var(--muted); margin-left: 6px; vertical-align: middle; text-decoration: none; }
.tag-ok { background: var(--ok-tint); color: #1d6b3a; }
.tag-wait { background: var(--warn-tint); color: #8a5a00; }
.tag-off { background: #eef2f3; color: #7a868a; }
.tag-mil { background: #e6ecfb; color: #2a4aa0; }
.tag-new { background: #d6261f; color: #fff; }
.notice-new { background: #fff4f3; border-color: #f5c6c3; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.filters label { display: flex; flex-direction: column; font-size: .82rem; font-weight: 600; color: var(--muted); gap: 4px; }
.filters input, .filters select { min-width: 150px; }
.grid-form { display: grid; gap: 12px 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 12px; }
.grid-form label, .stack label, label.block { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.grid-form .span2 { grid-column: 1 / -1; }
.grid-form label.check, .stack label.check, label.check { flex-direction: row; align-items: center; font-weight: 500; color: var(--text); }
label.block { margin-bottom: 14px; }
.tokens { background: var(--brand-tint); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .9rem; }
.tokens table { border-collapse: collapse; margin: 6px 0; }
.tokens th, .tokens td { text-align: left; padding: 3px 14px 3px 0; vertical-align: top; }
.tokens th { font-size: .75rem; text-transform: uppercase; color: var(--muted); }
.tokens code { background: #fff; border: 1px solid #cfe5df; border-radius: 6px; padding: 1px 6px; font-size: .88rem; color: var(--brand-dark); }
label.block textarea { font-family: var(--font); line-height: 1.5; }
.stack { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.stack label { width: 100%; }
.log { background: #13232b; color: #dfe7ea; padding: 12px 14px; border-radius: 10px; font-size: .78rem; line-height: 1.45; max-height: 520px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.refund-sum { margin: 0 0 6px; font-size: .92rem; }
.history { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.history li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.week { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 14px; }
.week-day { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.week-day.closed { background: #fafbfb; }
.week-day h3 { font-size: .95rem; margin-bottom: 6px; }
.time-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.time-row input[type=time] { width: 8.5em; }
.seats { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--muted); }
.seats input { width: 4.2em; }
.remove { font-size: .8rem; color: var(--danger); display: inline-flex; align-items: center; }
.add-time { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--bg-soft); padding: 12px; border-radius: 10px; margin-bottom: 14px; }
.add-time input[type=time] { width: 8.5em; }
.fields-table input.num { width: 4.5em; }
.fields-table .help-input { margin-top: 6px; font-size: .85rem; }
.fields-table .new-row td { background: #fafcfc; }
.login-box { max-width: 420px; margin: 60px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.login-box h1 { font-size: 1.5rem; }

/* ---------- 인쇄 (하루 예약표) ---------- */
.print-page { max-width: 1100px; margin: 0 auto; padding: 20px; font-size: 13px; color: #000; }
.print-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; padding: 10px; background: var(--bg-soft); border-radius: 10px; }
.print-bar .inline-form { margin: 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #000; margin-bottom: 10px; }
.sheet-head h1 { font-size: 20px; margin: 0; }
.sheet-head p { margin: 4px 0 8px; }
.sheet-time { font-size: 16px; margin: 16px 0 6px; }
.sheet-time small { font-weight: 400; }
.sheet { width: 100%; border-collapse: collapse; page-break-inside: auto; }
.sheet th, .sheet td { border: 1px solid #555; padding: 5px 6px; text-align: left; vertical-align: top; }
.sheet th { background: #eee; font-size: 11px; text-transform: uppercase; }
.sheet tr { page-break-inside: avoid; }
.sheet small { color: #444; }
@media print {
    @page { size: letter landscape; margin: 12mm; }
    .no-print, .site-header, .site-footer, .admin-bar { display: none !important; }
    body, .admin { background: #fff; }
    .admin-main { padding: 0; }
    .ticket { border-color: #000; }
}
