:root{font-family:Inter,Pretendard,"Noto Sans KR",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#232833;background:#f5f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #9bb7ff;outline-offset:2px}.app-shell{min-height:100dvh;max-width:960px;margin:auto;background:#fff;position:relative;box-shadow:0 10px 50px #293c6520;padding-bottom:calc(86px + env(safe-area-inset-bottom))}.topbar{display:flex;align-items:center;justify-content:space-between;padding:32px 24px 18px;background:#fff}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.18em;color:#7594df}.topbar h1{font-size:27px;margin:4px 0 0;letter-spacing:-.05em}.round-button{border:0;background:#eff3fb;border-radius:50%;width:44px;height:44px;color:#6e7c99;font-size:24px}.section-heading{display:flex;justify-content:space-between;align-items:end;padding:18px 24px}.section-heading h2,.month-heading h2{font-size:22px;letter-spacing:-.05em;margin:5px 0 0}.text-button{background:#eaf0ff;color:#4f7ee7;border:0;border-radius:999px;padding:9px 15px;font-weight:700}.date-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;padding:8px 18px 18px}.date-chip{border:0;background:transparent;display:flex;align-items:center;flex-direction:column;gap:5px;border-radius:18px;min-height:82px;color:#8b94a3}.date-chip small{font-size:13px}.date-chip strong{font-size:21px}.date-chip i{height:5px;min-width:5px;border-radius:50%;background:#abc3ff;color:transparent;font-size:0}.date-chip i:empty{background:transparent}.date-chip.selected{background:#5e8df4;color:white;box-shadow:0 8px 18px #5e8df43d}.date-chip.selected i{background:white}.summary-card{margin:0 20px 22px;border-radius:20px;background:linear-gradient(130deg,#eaf0ff,#f4f7fe);padding:18px 20px;display:flex;align-items:center;gap:12px;color:#687994;font-size:13px}.summary-card strong{font-size:23px;color:#4273e5}.summary-card span:last-child{margin-left:auto;text-align:right}.timeline{border-top:1px solid #edf0f5}.hour-row{display:grid;grid-template-columns:94px 1fr;min-height:93px;border-bottom:1px solid #edf0f5}.hour-row>span{padding:14px 10px 0 18px;color:#97a1b0;font-size:13px}.hour-events{border-left:1px solid #e7ecf4;display:flex;gap:6px;padding:7px;overflow-x:auto;align-items:flex-start}.reservation-card{min-width:165px;max-width:220px;flex:1;border:1px solid #c8d8fc;background:#dce8ff;border-radius:12px;text-align:left;padding:11px 12px;display:flex;flex-direction:column;gap:5px;color:#253650}.reservation-card strong{font-size:15px}.reservation-card small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reservation-card em{font-size:12px;font-style:normal;color:#4e80ea;font-weight:700}.fab{position:fixed;right:max(22px,calc((100vw - 960px)/2 + 22px));bottom:calc(102px + env(safe-area-inset-bottom));height:58px;width:58px;border-radius:50%;border:0;background:#5e8df4;color:white;font-size:36px;box-shadow:0 12px 28px #5e8df466;z-index:5}.bottom-nav{height:calc(70px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);position:fixed;z-index:4;bottom:0;left:50%;transform:translateX(-50%);max-width:960px;width:100%;display:flex;background:#fff;border-top:1px solid #e8ecf2}.bottom-nav button{flex:1;background:none;border:0;color:#a8b0bd;font-size:12px;font-weight:700;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center}.bottom-nav button span{font-size:22px}.bottom-nav button.active{color:#4f80ed}.month-heading{display:flex;align-items:center;justify-content:center;gap:35px;padding:12px 0 20px}.icon{border:0;background:none;font-size:32px;color:#697789;width:44px;height:44px}.weeknames,.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weeknames{border-bottom:1px solid #e8ecf2;color:#9ba5b2;text-align:center;font-size:13px;padding-bottom:12px}.calendar-cell{min-height:125px;background:white;border:0;border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5;display:flex;flex-direction:column;gap:3px;overflow:hidden;text-align:left;padding:8px 4px}.calendar-cell b{font-weight:500;color:#788492}.calendar-cell span{background:#dbe7ff;color:#304262;border-radius:4px;padding:3px 4px;font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.calendar-cell small{font-size:11px;color:#6889d4}.calendar-cell.outside{background:#f6f8fb}.calendar-cell.today b{background:#5e8df4;border-radius:50%;color:white;width:24px;height:24px;text-align:center;line-height:24px}.subhead{height:78px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f5}.subhead h1{font-size:20px;margin:0;letter-spacing:-.04em}.subhead .icon{font-size:29px}.subhead>span{width:44px}.form-page{padding:22px 22px 120px}.intro{color:#8b95a4;margin:0 0 22px}.search{width:100%;border:0;border-radius:15px;background:#f4f6fa;padding:16px;margin-bottom:15px}.action-row{display:flex;gap:10px}.action-row>*{flex:1}.secondary,.primary{border:0;border-radius:14px;min-height:48px;padding:12px 18px;font-weight:700}.secondary{background:#edf2ff;color:#4f78d4}.primary{background:#5e8df4;color:white}.list-title{font-size:13px;color:#a0a8b5;margin:28px 0 10px}.list-item,.service-item{width:100%;display:flex;align-items:center;gap:14px;border:0;background:white;border-bottom:1px solid #edf0f5;padding:15px 0;text-align:left}.list-item>span:nth-child(2),.service-item>span:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1}.list-item strong,.service-item strong{font-size:16px}.list-item small,.service-item small{color:#9aa5b2}.avatar{width:44px;height:44px;border-radius:50%;background:#e6ddff;color:#7762c6;display:grid;place-items:center;font-weight:800}.chevron{color:#b7c0ce;font-size:28px}.empty{text-align:center;color:#9aa5b2;padding:50px 15px}.tabs{display:flex;gap:8px;overflow:auto;margin-bottom:20px;padding-bottom:5px}.tabs button,.settings-tabs button{border:1px solid #e2e8f1;background:white;color:#8893a2;border-radius:999px;padding:9px 16px;white-space:nowrap}.tabs button.active,.settings-tabs button.active{background:#5e8df4;color:white;border-color:#5e8df4}.checkbox{height:24px;width:24px;border:2px solid #cbd4e2;border-radius:7px;display:grid;place-items:center;color:white}.checkbox.checked{background:#5e8df4;border-color:#5e8df4}.sticky-footer{position:fixed;max-width:960px;left:50%;transform:translateX(-50%);bottom:0;width:100%;background:white;border-top:1px solid #e9edf4;padding:14px 22px calc(18px + env(safe-area-inset-bottom));z-index:4}.sticky-footer .primary{width:100%}.footer-summary{text-align:center;color:#7b879a;margin-bottom:11px}.date-field,.field{display:flex;flex-direction:column;gap:10px;color:#7d899a;font-weight:700;margin-bottom:20px}.date-field input,.field input,.field select,.field textarea{border:1px solid #e1e6ef;background:#fff;border-radius:12px;padding:13px;color:#28303d;width:100%}.date-title{font-size:21px;margin:25px 0 15px}.slot-list{display:flex;flex-direction:column}.time-slot{border:0;border-bottom:1px solid #edf0f5;background:white;text-align:left;padding:15px 12px;display:flex;justify-content:space-between;gap:10px;align-items:center}.time-slot small{color:#e29b58}.time-slot.selected{background:#edf3ff;border-radius:10px;color:#4e7fe8}.confirm-card,.detail-card{background:#fff;border:1px solid #e9edf4;box-shadow:0 12px 35px #3141650d;border-radius:24px;padding:30px 22px;margin:10px 0 22px}.confirm-card{text-align:center}.confirm-icon{width:65px;height:65px;background:#e7e0ff;color:#8169d1;display:grid;place-items:center;border-radius:50%;font-size:30px;margin:0 auto 15px}.confirm-card h2{margin:0 0 10px}.confirm-card p{color:#5e8df4;font-size:19px;font-weight:700}.confirm-card>strong{color:#727d8b}.warning{background:#fff6e9;color:#b26923;border-radius:13px;padding:14px;margin-bottom:20px;font-size:14px}.status{display:inline-block;background:#e8f0ff;color:#4e7cda;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700}.status.cancelled,.status.deleted{background:#f2f2f2;color:#888}.status.completed{background:#e6f6ed;color:#358757}.detail-card h2{font-size:25px;margin:16px 0 4px}.detail-card>p{color:#5685e7;font-weight:700;margin:0 0 25px}.detail-line{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #edf0f5;padding:15px 0}.detail-line span{color:#9aa4b2;white-space:nowrap}.detail-line strong{text-align:right}.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.detail-actions button,.settings-item button{border:1px solid #e0e6ef;background:white;border-radius:12px;padding:12px;color:#5d708c;font-weight:700}.detail-actions .danger,.settings-item .danger{color:#d46767}.edit-services{display:flex;flex-direction:column;gap:11px;border:1px solid #e1e6ef;border-radius:12px;padding:15px;color:#28303d;font-weight:400}.edit-services input{width:auto}.settings-page{padding:0 20px 100px}.settings-page .section-heading{padding-left:4px}.settings-tabs{display:flex;gap:8px;overflow:auto;margin:5px 0 23px}.settings-card{border:1px solid #e7ecf4;border-radius:20px;padding:22px;margin-bottom:20px;box-shadow:0 8px 30px #3141650b}.settings-card h3{margin:0 0 10px}.settings-card p,.hint{color:#8b96a6;font-size:14px;line-height:1.6}.settings-card>.primary,.settings-card>.secondary{width:100%;margin:8px 0}.service-form{display:grid;grid-template-columns:1fr 1fr 80px;gap:8px;margin:20px 0}.service-form input{min-width:0;border:1px solid #e1e6ef;border-radius:10px;padding:10px}.service-form button{grid-column:1/-1}.settings-item{display:flex;align-items:center;gap:8px;border-top:1px solid #edf0f5;padding:13px 0}.settings-item>div{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.settings-item small{color:#9aa5b2}.settings-item button{font-size:12px;padding:8px}.local-banner{background:#fff7e7;border-radius:16px;padding:17px;color:#a0762f;font-size:13px;line-height:1.5}.login{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;padding:35px;max-width:430px;margin:auto}.brand-mark{width:62px;height:62px;border-radius:18px;background:#5e8df4;color:white;display:grid;place-items:center;font-size:32px}.login h1{font-size:32px;margin:20px 0 3px}.login p{color:#8692a3}.login form{display:flex;flex-direction:column;gap:14px;margin-top:25px}.login label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#8792a1}.login input{border:1px solid #dce3ee;border-radius:12px;padding:15px}.error{color:#c64e4e!important;word-break:break-word}.toast{position:fixed;z-index:10;left:50%;bottom:90px;transform:translateX(-50%);background:#222b3c;color:white;border-radius:12px;padding:13px 18px;box-shadow:0 9px 35px #18233d36;max-width:min(90vw,500px);font-size:14px}.loading{min-height:100dvh;display:grid;place-items:center;color:#8492aa}@media(max-width:600px){.calendar-cell{min-height:94px}.calendar-cell span{font-size:10px}.summary-card span:last-child{display:none}.hour-row{grid-template-columns:78px 1fr}.hour-row>span{font-size:11px}.reservation-card{min-width:140px}.service-form{grid-template-columns:1fr 80px}.service-form input[name=category]{grid-column:1/-1;grid-row:2}}
.reservation-card.cancelled{background:#f0f1f4;border-color:#e2e5ea;color:#8a93a0}.reservation-card.cancelled em{color:#9aa2ad}
.inline-form{margin:18px 0;padding:18px;border:1px solid #e6ebf5;border-radius:18px;background:#fafbff}.inline-form .primary{width:100%}.modal-scrim{position:fixed;inset:0;background:#18243a66;z-index:7}.detail-modal{position:fixed;z-index:8;left:50%;top:50%;transform:translate(-50%,-50%);width:min(90vw,520px);max-height:85dvh;overflow:auto;background:white;border-radius:24px;padding:20px;box-shadow:0 24px 80px #17213d55}.detail-modal-head{display:flex;align-items:center;justify-content:space-between}.detail-modal-head h2{margin:0;font-size:20px}.detail-modal .detail-card{box-shadow:none;margin:14px 0;padding:16px}.detail-modal .detail-card h2{font-size:21px}

/* Keep the date and controls outside the scrollable schedule. */
.date-strip, [data-swipe="month"] { touch-action: pan-y pinch-zoom; }
.hour-events { touch-action: auto; }
.schedule-page,
.booking-time-page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.schedule-page { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.app-shell:has(.schedule-page, .booking-time-page) { padding-bottom: 0; }
.schedule-page > main,
.booking-time-page > main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.schedule-page > main > :not(.timeline-stage),
.booking-time-page > main > :not(.slot-list),
.schedule-page > .topbar,
.booking-time-page > .subhead { flex-shrink: 0; }
.timeline,
.booking-time-page .slot-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.timeline-grid { position: relative; }
.timeline .hour-row {
  display: block;
  height: 30px;
  min-height: 0;
  background-image: linear-gradient(#e7ecf4, #e7ecf4);
  background-position: var(--time-gutter) 0;
  background-repeat: no-repeat;
  background-size: 1px 100%;
}
.timeline { --time-gutter: 78px; }
.timeline .hour-row > span { padding-top: 4px; }
.timeline .before-hours { background: #f0f2f4; }
.timeline-events {
  position: absolute;
  inset: 0 10px 0 calc(var(--time-gutter) + 2px);
  pointer-events: none;
}
.timeline-events .reservation-card {
  position: absolute;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid #fff;
  border-radius: 6px;
  background: #d5e3fc;
  padding: 5px 7px;
  gap: 2px;
}
.timeline-events .reservation-card.cancelled { background: #f0f1f4; }
.timeline-events .reservation-card strong,
.timeline-events .reservation-card em {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.timeline-events .reservation-card.compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  column-gap: 4px;
  padding: 0 4px;
}
.timeline-events .reservation-card.compact strong { font-size: 12px; }
.timeline-events .reservation-card.compact small,
.timeline-events .reservation-card.compact em { line-height: 1.1; }
.booking-time-page > main { padding-bottom: 0; }
.booking-time-page > .sticky-footer {
  position: static;
  transform: none;
  flex-shrink: 0;
}
.booking-time-page .time-slot { min-height: 45px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.app-version { font-size: 11px; color: #687994; white-space: nowrap; }
.login .app-version { align-self: flex-end; margin-top: 12px; }
.schedule-date { color: #687994; font-size: 12px; margin: 2px 0 0; }

@media (max-width: 600px) {
  .timeline { --time-gutter: 54px; }
  .timeline .hour-row > span { padding-left: 6px; padding-right: 0; }
  .schedule-page > .topbar { padding: 6px 14px 2px; }
  .schedule-page .topbar h1 { font-size: 20px; margin: 0; }
  .schedule-page .text-button { min-height: 44px; padding: 4px 9px; font-size: 13px; }
  .schedule-page .date-strip { padding: 2px 8px 5px; }
  .schedule-page .date-chip {
    min-height: 52px;
    justify-content: center;
    gap: 2px;
    border-radius: 12px;
  }
  .schedule-page .date-chip strong { font-size: 18px; }
}


/* Floating date selector stays above the independently scrolling time grid. */
.timeline-stage { position: relative; display: flex; flex: 1; min-height: 0; }
.timeline-date { position: absolute; z-index: 3; top: 8px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: #fff; color: #929ba3; box-shadow: 0 1px 8px #25365020; font-size: 13px; font-weight: 700; white-space: nowrap; }
.timeline-date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.timeline-date:focus-within { outline: 2px solid #5e8df4; }
.timeline .hour-row > span { display: block; width: var(--time-gutter); padding: 0 8px 0 2px; text-align: right; transform: translateY(-50%); color: #959da5; font-size: 13px; white-space: nowrap; }
.revenue-form{background:#f4f7ff;border:1px solid #dce6fc;border-radius:16px;padding:16px;margin:14px 0}.revenue-form .field{margin-bottom:4px;color:#3e5f9f}.revenue-form .hint{margin:8px 0 12px}.revenue-form .primary{width:100%}.revenue-form .text-button{display:block;margin:10px auto 0}.revenue-form input{font-size:20px;font-weight:700}.sales-page{padding:0 20px 25px}.sales-heading h2{margin:10px 0 6px}.sales-heading p{font-size:13px;color:#788492}.sales-presets{display:flex;gap:8px;margin:18px 0 12px}.report-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.report-form .field{min-width:0;margin:0;font-size:13px}.report-form input{min-width:0;min-height:46px;padding:10px;font-size:16px}.report-form button{grid-column:1/-1}.revenue-total{margin:20px 0;padding:24px 20px;border-radius:20px;background:#edf3ff;color:#416fc9}.revenue-total>span{font-size:13px}.revenue-total strong{display:block;margin:10px 0;font-size:32px;overflow-wrap:anywhere}.revenue-total p{font-size:13px;margin:0}.sales-section{margin-top:24px}.sales-section h3{font-size:17px}.sales-day{display:flex;justify-content:space-between;border-bottom:1px solid #edf0f5;padding:13px 0;gap:12px}.sales-item{width:100%;background:white;border:0;border-bottom:1px solid #edf0f5;padding:16px 0;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px}.sales-item>span{min-width:0;display:flex;flex-direction:column;gap:5px}.sales-item small{color:#788492;overflow-wrap:anywhere}.sales-item b{color:#416fc9;white-space:nowrap;font-size:14px}.sales-item .missing{color:#ac671f}.detail-modal .detail-line strong{overflow-wrap:anywhere;min-width:0}
.payment-inputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.payment-inputs .field{min-width:0;font-size:13px}.payment-inputs input{min-width:0;font-size:18px;padding:12px 9px}.payment-preview{font-weight:700;color:#355b9f;font-size:14px}.payment-totals{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:20px 0}.payment-totals>div{display:flex;flex-direction:column;gap:7px;padding:14px 12px;border-radius:12px;background:#fff}.payment-totals span{font-size:13px}.payment-totals b{font-size:20px;overflow-wrap:anywhere}.payment-totals .unclassified{grid-column:1/-1;background:#fff7e9;color:#946024;flex-direction:row;justify-content:space-between;align-items:center}.sales-day>div{min-width:0}.sales-day small{display:block;margin-top:6px;color:#788492;font-size:12px;line-height:1.6}.sales-day>strong{white-space:nowrap}.sales-item .payment-description{color:#496ba8;font-size:12px;line-height:1.6}
