/* Figma 눈박 — calendar and date detail, 402px reference / 480px maximum. */
@font-face{font-family:'Pretendard Variable';src:url('/assets/PretendardVariable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{--ground:#eceff3;--ink:#172b45;--ink-soft:#526579;--member:#2563eb;--line:#d7e0ea}
body{background:#dce2e9;color:var(--ink)}
.app{box-shadow:none;background:var(--ground)}
.top{background:var(--ground);color:var(--ink);padding:20px 26px 16px}
.top-row{min-height:50px;justify-content:space-between}
.logo{display:block}.logo b{display:block;font-size:23px;line-height:29px;letter-spacing:0}.logo small{display:block;font-size:12px;color:var(--ink-soft);font-weight:400;margin-top:4px;letter-spacing:0}
.header-actions{display:flex;align-items:center;gap:8px}.avatar{width:36px;height:36px;border-radius:50%;background:#e3ecf5;font-size:12px;font-weight:700}.mode-button{min-height:44px;font-size:12px;font-weight:700;padding:0 10px}.mode-button[aria-pressed=true]{color:#2563eb}
.login{display:none}.top-note{display:none!important}.top:not(.authenticated) .login{display:flex}.top:not(.authenticated) .login select{color:var(--ink);background:#fff;border-color:var(--line);max-width:155px}
main{padding:0 26px 94px}.balance-strip{height:62px;border-radius:14px;background:#172b45;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 18px;margin:0 0 14px;font-size:14px}.balance-strip strong{font-size:26px}
.calendar-card{padding:0 10px 10px;background:white;border-radius:16px;overflow:hidden}.calendar-heading{height:49px;display:flex;align-items:center;justify-content:space-between;padding:0 6px}.calendar-heading h1{font-size:19px;font-weight:700}.calendar-heading button{width:40px;height:44px;color:var(--ink-soft);font-size:25px}
.weekdays,.date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0}.weekdays{height:28px;align-items:center;text-align:center;font-size:11px;color:var(--ink-soft)}.weekdays span:first-child,.day-cell.sun{color:#c65359}.weekdays span:last-child,.day-cell.sat{color:#2563eb}
.day-cell,.day-blank{height:60px;position:relative;min-width:0;text-align:center}.day-cell{font-size:16px;color:#1f2937;isolation:isolate;padding:0;display:flex;align-items:flex-start;justify-content:center;border-radius:0}.day-cell .day-number{width:32px;height:32px;margin-top:6px;display:flex;align-items:center;justify-content:center;position:relative;z-index:2}.day-cell.today .day-number{background:url('/assets/today.svg') center/32px 32px no-repeat;font-weight:700;color:#172b45}.day-cell.endpoint .day-number{background:url('/assets/selected.svg') center/32px 32px no-repeat;color:#fff;font-weight:700}.day-cell.in-range:before{content:'';position:absolute;left:0;right:0;top:6px;height:32px;background:#e4edff;z-index:0}.day-cell.range-start:before{left:50%}.day-cell.range-end:before{right:50%}.day-cell:nth-child(7n+1):before{border-radius:16px 0 0 16px}.day-cell:nth-child(7n):before{border-radius:0 16px 16px 0}.night-lines{position:absolute;top:44px;display:flex;flex-direction:column;gap:3px}.night-lines i{width:26px;height:4px;border-radius:2px;background:#2563eb}.night-lines i.guest-line{background:#707780}.day-cell.past .day-number{opacity:.55}
.calendar-legend{display:flex;gap:14px;align-items:center;height:23px;margin:0 6px;color:var(--ink-soft);font-size:10px}.calendar-legend span{display:flex;gap:5px;align-items:center}.calendar-legend i{width:13px;height:3px;background:#2563eb}.calendar-legend .guest-line{background:#707780}
.selection-card{position:relative;background:#fff;border-radius:16px;margin-top:12px;padding:10px 14px 12px;min-height:155px}.selection-card h2{font-size:16px;line-height:24px;padding-right:24px}.selection-card .selection-help{font-size:12px;color:var(--ink-soft);margin-top:2px;min-height:18px}.selection-card .names-preview{font-size:11px;color:var(--ink-soft);height:36px;display:flex;align-items:center;padding-right:72px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.roster-link{position:absolute;right:11px;top:48px;width:72px;height:44px;color:#2563eb;font-size:12px;font-weight:700}.selection-card .btn{margin:0;height:48px;font-size:14px;padding:10px}.selection-placeholder{height:85px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:14px;color:var(--ink-soft)}.selection-reset{position:absolute;right:10px;top:1px;width:36px;height:36px;font-size:22px;color:var(--ink-soft)}.calendar-success{font-size:13px;color:#2563eb;margin-top:12px}.manage-hint{font-size:12px;color:var(--ink-soft);margin:12px 0}
.btn{border-radius:14px;min-height:48px;font-weight:700}.btn.primary{background:#2563eb;color:#fff}.btn:disabled{background:#dde4ed;color:#526579;cursor:default}.btn.outline{background:#fff;border:1px solid #d7e0ea;color:#172b45}.btn.ghost-danger{background:#fff1f1;color:#b7424a}.btn:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #8bb8ff;outline-offset:2px}
#nav{display:flex;position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;background:#fff;border:0;min-height:73px;padding:5px 0 calc(8px + env(safe-area-inset-bottom));z-index:35}#nav button{flex:1;min-width:0;font-size:10px;color:#172b45;font-weight:400;display:flex;flex-direction:column;align-items:center;gap:2px;padding:0}#nav button .nav-icon{display:flex;align-items:center;justify-content:center;width:44px;height:32px;border-radius:20px}#nav button.on .nav-icon{background:rgba(23,43,69,.08)}#nav img{width:22px;height:22px;display:block}#nav button.on{font-weight:700}#nav .nbadge{right:14%;top:0}
.overlay{background:rgba(0,0,0,.38)}.sheet{border-radius:28px 28px 0 0;padding:26px 26px calc(38px + env(safe-area-inset-bottom));max-height:90dvh;overflow:auto;background:#fff}.sheet .grip{display:none}.sheet h3{font-size:23px;font-weight:700;line-height:1.35;letter-spacing:-.03em;margin:0 0 16px}.sheet .sub{font-size:12px;color:var(--ink-soft);margin-bottom:16px}.sheet .roster{background:#f3f6fa;border:0;border-radius:14px;padding:16px;max-height:360px;overflow:auto;margin:0 0 16px}.sheet .roster-row{min-height:76px;padding:3px 0;display:flex;align-items:center;gap:8px}.roster-row+.roster-row{margin-top:8px}.roster-person{flex:1;min-width:0}.roster-person strong{font-size:16px;font-weight:700;display:block;margin-bottom:4px}.roster-person small{font-size:12px;line-height:18px;color:#526579;display:block}.sheet .roster-row .x{max-width:125px;font-size:11px}.sheet .btn{height:auto;min-height:52px;margin-top:12px;font-size:16px}.sheet .empty{color:#526579;font-size:14px;padding:24px 0}.confirm-details{background:#f3f6fa;border-radius:14px;padding:18px 16px;margin-bottom:20px}.confirm-details p{font-size:14px;color:#526579;margin:5px 0}.confirm-details strong{display:block;font-size:19px;color:#2563eb;margin-top:12px}.guest-label{display:block;font-size:14px;margin:20px 0 8px}.guest-input{height:46px;width:100%;border:1px solid #d7e0ea;border-radius:12px;padding:0 14px;color:#172b45}.guest-usage{font-size:14px;color:#2563eb;margin:14px 0 20px}.sheet .btn-note{font-size:12px}
.account-card{background:#fff;border-radius:16px;padding:20px;margin-bottom:12px}.account-card h2{font-size:19px;margin-bottom:12px}.account-card select{width:100%;height:44px}.stay-card{background:white;border-radius:16px;min-height:84px;padding:16px;display:flex;align-items:center;gap:10px;margin-bottom:12px}.stay-card .roster-person small{font-size:12px}.stay-card .x{font-size:12px;max-width:120px}.stay-card .empty{width:100%;font-size:16px;font-weight:700;color:#526579}.section-title{font-size:19px;margin:24px 0 12px}
@media(max-width:360px){.top{padding-left:16px;padding-right:16px}main{padding-left:16px;padding-right:16px}.sheet{padding-left:20px;padding-right:20px}.mode-button{padding:0 4px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.header-actions .avatar{color:#172b45}
.calendar-card{padding-bottom:0}
/* Inspection is separate from the booking draft. Only the roster body scrolls. */
.calendar-view.is-inspecting{display:flex;flex-direction:column;gap:12px;height:calc(100dvh - 177px);min-height:410px}
main.calendar-inspection{padding-bottom:0}
.calendar-view.is-inspecting>.balance-strip{flex:none;margin-bottom:2px}
.calendar-card.weekly{flex:none;height:160px}
.day-cell,.day-blank{height:56px}
.night-lines{width:26px;height:11px;display:block}
.night-lines i{position:absolute;left:0;top:0}
.night-lines i.second-line{top:7px}
.night-lines i.checkout-line,.calendar-legend i.checkout-line{background:var(--danger)}
.day-cell.inspected:after{content:'';position:absolute;top:8px;left:calc(50% - 16px);width:32px;height:32px;background:url('/assets/selected.svg') center/32px 32px no-repeat;z-index:1}
.day-cell.inspected .day-number{background:none;color:#fff;font-weight:700;opacity:1}
.weekly .day-number{width:44px;height:26px;margin-top:11px}
.calendar-expand{display:flex;align-items:center;justify-content:center;width:44px;height:24px;margin:0 auto}
.calendar-expand img{display:block;width:16px;height:16px}
.day-roster{margin-top:12px;background:#fff;border-radius:16px;padding:0 16px 16px;display:flex;flex-direction:column;min-height:0;height:312px;overflow:hidden}
.day-roster>header{height:50px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px}
.day-roster h2{font-size:16px;line-height:24px;min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.day-roster header>span{width:76px;flex:none;white-space:nowrap;text-align:right;font-size:12px;color:var(--ink-soft)}
.daily-roster-scroll{background:#f3f6fa;border-radius:14px;padding:16px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;min-height:0;flex:1}
.daily-roster-scroll .roster-row{min-height:76px;padding:3px 0;display:flex;align-items:center;gap:8px}
.daily-roster-scroll .empty{font-size:14px;color:var(--ink-soft);padding:24px 0;text-align:center}
.lookup-actions{background:white;border-radius:16px;padding:12px 14px;margin-top:12px}
.lookup-actions .btn{width:100%;height:48px;margin:0;font-size:16px}
.is-inspecting .day-roster{flex:1;height:auto;margin-top:0}
.is-inspecting .lookup-actions{flex:none;margin-top:0}
.has-inspection:not(.is-inspecting) .lookup-actions{position:sticky;bottom:calc(81px + env(safe-area-inset-bottom));z-index:4}
@media(max-height:650px){
  .top.compact-calendar-header{padding-top:8px;padding-bottom:8px}
  .calendar-view.is-inspecting{gap:8px}
  .is-inspecting>.balance-strip{height:46px}
  .is-inspecting>.balance-strip strong{font-size:22px}
  .is-inspecting .lookup-actions{padding:8px 12px}
  .is-inspecting .day-roster{padding-bottom:12px}
  .is-inspecting .day-roster>header{height:40px}
  .is-inspecting .daily-roster-scroll{padding:12px}
}
