/* Shared salon design; layout and reservation timing remain controlled by style.css. */
:root{color:#2b2b2d;background:#f7f7f8;--salon-border:#ececef;--salon-muted:#858589;--salon-pink:#f5e5eb;--salon-blue:#587fbf}
body{background:#f7f7f8}.app-shell{background:#fafafa;box-shadow:0 8px 50px #00000006;padding-bottom:calc(98px + env(safe-area-inset-bottom))}.ui-icon{width:22px;height:22px;display:block;flex-shrink:0}.topbar,.schedule-page>.topbar{padding:15px 18px 12px;background:#fff;gap:10px}.brand-lockup{display:flex;align-items:center;gap:9px;min-width:0}.brand-lockup .salon-emblem{flex-shrink:0;background:#f9e6ec;color:#d65a7a}.topbar h1,.schedule-page .topbar h1{font-size:16px;letter-spacing:-.045em;margin:0;color:#303033}.brand-caption,.schedule-date{font-size:10px;color:#939397;margin:4px 0 0}.topbar-actions{gap:9px}.app-version{font-size:10px;color:#98989c}.round-button,.sales-top .round-button{width:34px;height:34px;border:0;border-radius:50%;background:#f5f5f6;color:#818185;display:grid;place-items:center}.round-button .ui-icon{width:19px;height:19px}.text-button,.schedule-page .text-button{background:#f1f1f3;color:#55555a;font-size:12px;min-height:34px;padding:7px 11px}.primary{background:#323235;color:#fff;border-radius:12px;font-size:14px;font-weight:600;min-height:48px;box-shadow:0 3px 8px #00000007}.secondary{background:#f0f0f2;color:#626267;border:1px solid #e9e9ec;border-radius:12px;font-size:13px;min-height:46px}.icon{color:#8a8a8e}.eyebrow{color:#999}.page-caption{font-size:12px;color:#939397;margin:7px 0 0;line-height:1.6}
.app-shell>.bottom-nav,.app-shell:has(.sales-dashboard)>.bottom-nav{bottom:calc(10px + env(safe-area-inset-bottom));width:calc(100% - 32px);max-width:640px;height:62px;padding:0 6px;border:1px solid #f0f0f0;border-radius:999px;box-shadow:0 6px 30px #00000012;background:#fff}.bottom-nav button,.app-shell:has(.sales-dashboard)>.bottom-nav button{font-size:10px;color:#99999d;gap:5px;font-weight:500}.bottom-nav button.active,.app-shell:has(.sales-dashboard)>.bottom-nav button.active{color:#2e2e31;font-weight:700}.bottom-nav button>span{display:grid;place-items:center}.bottom-nav .ui-icon{width:21px;height:21px}.fab{width:82px;height:46px;border-radius:999px;background:#333337;color:#fff;display:flex;align-items:center;justify-content:center;gap:4px;box-shadow:0 5px 16px #0000001c;bottom:calc(88px + env(safe-area-inset-bottom));right:max(18px,calc((100vw - 960px)/2 + 22px))}.fab span{font-size:26px;line-height:1}.fab small{font-size:12px;font-weight:600}
.schedule-page{background:#fafafa;padding-bottom:calc(84px + env(safe-area-inset-bottom))}.schedule-page .date-strip{margin:4px 14px 10px;padding:5px;background:#f0f0f2;border-radius:18px;gap:3px}.schedule-page .date-chip{min-height:57px;justify-content:center;gap:3px;border-radius:14px;color:#96969b}.date-chip small{font-size:11px}.date-chip strong,.schedule-page .date-chip strong{font-size:17px}.date-chip.selected{background:#fff;color:#333;box-shadow:0 2px 5px #00000006}.date-chip.selected i{background:#e57b99}.date-chip i{background:#c1cddd}.timeline-stage{margin:0 12px 5px;border:1px solid #eeeeef;border-radius:19px;background:#fff;overflow:hidden;box-shadow:0 3px 12px #00000003}.timeline{border-top:0;--time-gutter:60px}.timeline .hour-row{border-bottom-color:#f0f0f2}.timeline .hour-row>span{color:#98989e;font-size:11px;padding-right:8px}.timeline .before-hours{background:#f7f7f8}.timeline-date{top:8px;min-height:33px;border:1px solid #ededf0;box-shadow:0 2px 8px #00000008;color:#717178;font-size:11px;padding:6px 11px}.timeline-events{right:6px}.timeline-events .reservation-card{border-radius:8px;background:#dce9fb;border:2px solid white;padding:7px 8px;color:#3c567f;box-shadow:inset 3px 0 #88a9da}.timeline-events .reservation-card strong{font-size:13px}.timeline-events .reservation-card small{font-size:10px;color:#637d9f}.timeline-events .reservation-card em{font-size:10px;color:#7c95b6;font-weight:500}.timeline-events .reservation-card.cancelled{box-shadow:inset 3px 0 #c8c8cc;background:#f1f1f3;color:#999}.timeline-events .reservation-card.compact{border-width:1px;padding:0 5px}.timeline-events .reservation-card.compact strong{font-size:11px}
main[data-swipe=month]{margin:12px 14px 24px;background:#fff;border:1px solid #eeeeef;border-radius:22px;overflow:hidden;box-shadow:0 4px 20px #00000005}.month-heading{padding:16px 8px;gap:18px}.month-heading h2{font-size:18px;color:#3c3c40}.month-heading .icon{background:#f4f4f5;width:32px;height:32px;font-size:25px;border-radius:9px}.weeknames{font-size:11px;color:#a0a0a4;border-color:#f0f0f2;padding-bottom:12px}.calendar-cell{min-height:102px;padding:7px 4px;border-color:#f0f0f2;gap:4px}.calendar-cell b{font-size:12px;color:#89898e}.calendar-cell span{background:#e6eefb;color:#57759d;border-radius:5px;font-size:10px;padding:4px 3px;max-width:100%}.calendar-cell.today b{background:#f9e7ed;color:#bd617e;width:22px;height:22px;line-height:22px;font-weight:700}.calendar-cell.outside{background:#fcfcfc}.calendar-cell.outside b{color:#c7c7ca}
.subhead{height:66px;padding:10px 16px;background:#fff;border-bottom:1px solid #f0f0f1}.subhead h1{font-size:17px;color:#3b3b40}.subhead .icon{background:#f5f5f6;border-radius:50%;width:32px;height:32px;font-size:24px}.form-page{padding:20px 18px 125px}.intro{font-size:13px;color:#88888f;line-height:1.6;margin-bottom:18px}.search{background:#fff;border:1px solid #e9e9ec;border-radius:14px;padding:14px 16px;font-size:14px;box-shadow:0 2px 6px #00000002}.action-row{gap:8px}.action-row .secondary{font-size:12px;padding:10px 9px}.list-title{font-size:12px;color:#999;margin:24px 2px 11px}.form-page>.list{border:1px solid #ececef;border-radius:19px;overflow:hidden;background:#fff;padding:0 15px;box-shadow:0 3px 12px #00000003}.list-item,.service-item{padding:17px 0;gap:12px;border-bottom-color:#f0f0f2}.list-item:last-child,.service-item:last-child{border-bottom:0}.list-item strong,.service-item strong{font-size:14px;color:#3d3d42}.list-item small,.service-item small{font-size:11px;color:#929297;line-height:1.6}.avatar{width:38px;height:38px;background:#faebf0;color:#bb7890;font-size:14px;flex-shrink:0}.chevron{font-size:22px;color:#c3c3c7}.tabs{gap:7px;margin-bottom:17px}.tabs button{background:#f1f1f3;border:0;color:#8a8a8f;font-size:12px;padding:9px 15px}.tabs button.active{background:#333337;color:white}.checkbox{width:22px;height:22px;border:1px solid #dddde1;border-radius:7px;flex-shrink:0}.checkbox.checked{background:#e9829f;border-color:#e9829f}.sticky-footer{background:#fff;border-top:1px solid #eeeef0;padding:12px 18px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -5px 20px #00000003}.footer-summary{font-size:12px;color:#88888f;margin-bottom:10px}
.field,.date-field{font-size:12px;font-weight:600;color:#83838b;gap:8px}.field input,.field select,.field textarea,.date-field input{background:white;border:1px solid #e5e5e9;border-radius:12px;color:#3c3c42;font-size:16px;min-width:0;max-width:100%;padding:12px;line-height:1.4}.field textarea{resize:vertical;min-height:90px}.inline-form{background:#fff;border:1px solid #ececef;border-radius:20px;padding:18px;box-shadow:0 4px 16px #00000004}.booking-time-page{background:#fafafa}.booking-time-page .intro{margin-bottom:12px;font-size:12px}.booking-time-page .date-field{margin-bottom:10px}.booking-time-page .date-title{font-size:15px;margin:8px 0 13px;color:#55555c}.booking-time-page .slot-list{background:#fff;border:1px solid #ececef;border-radius:17px 17px 0 0;padding:0 10px}.time-slot{min-height:54px;padding:14px 8px;border-color:#f0f0f2;flex-shrink:0}.time-slot strong{font-size:12px;font-weight:500;color:#66666e}.time-slot small{font-size:10px;color:#ba8e73}.time-slot.selected{background:#faedf2;color:#ae5d79;border-radius:10px}.time-slot.selected strong{color:#ae5d79;font-weight:700}
.confirm-card{padding:26px 18px;border:1px solid #ececef;border-radius:23px;box-shadow:0 5px 20px #00000006}.confirm-icon{width:52px;height:52px;background:#f9e8ef;color:#c9819a;font-size:25px}.confirm-card h2{font-size:22px;color:#36363b}.confirm-card p{color:#707079;font-size:16px;line-height:1.7}.confirm-card>strong{font-size:14px;color:#919198}.warning{background:#fff7ee;color:#ac805e;font-size:12px;line-height:1.7;border:1px solid #f7ecdf}.empty{padding:38px 15px;font-size:12px;line-height:1.8;color:#aaaab0}.modal-scrim{background:#24242c66;backdrop-filter:blur(2px)}.detail-modal{border:1px solid #f0f0f2;background:#fafafa;border-radius:25px;padding:20px;box-shadow:0 16px 60px #00000020;overscroll-behavior:contain}.detail-modal-head h2{font-size:17px;color:#414148}.detail-modal-head .icon{width:30px;height:30px;background:#eeeef0;border-radius:50%;font-size:23px}.detail-modal .detail-card{background:#fff;border:1px solid #eaeaed;border-radius:20px;padding:18px;margin:16px 0}.status{font-size:10px;padding:5px 10px;background:#ecf2fc;color:#6b8bb6}.status.completed{background:#e6f5ef;color:#4b9682}.detail-modal .detail-card h2{font-size:22px;margin-top:14px}.detail-card>p{font-size:13px;color:#8b8b93;line-height:1.8;margin-bottom:19px;font-weight:500}.detail-line{border-color:#f0f0f2;padding:13px 0;font-size:12px;line-height:1.7}.detail-line span{color:#a0a0a6}.detail-line strong{font-weight:500;color:#606069}.detail-line:last-child{padding-bottom:0}.detail-actions button{border:1px solid #e7e7eb;background:#fff;color:#75757e;min-height:45px;font-size:12px;font-weight:500}.detail-actions .danger,.settings-item .danger{color:#c77a83}.revenue-form{background:#fff;border:1px solid #eaeaed;border-radius:19px;padding:16px}.revenue-form .field{color:#88888f;font-size:11px}.revenue-form .hint{font-size:11px;color:#999;line-height:1.8}.payment-preview{color:#6b6b74;font-size:12px}.payment-inputs input{font-size:17px}.revenue-form .text-button{background:transparent;color:#999;font-size:11px}.edit-services{border-color:#e5e5e9;background:#fff;border-radius:14px;font-size:13px;color:#66666f}.edit-services label{display:flex;align-items:center;gap:8px;line-height:1.6}.edit-services input{accent-color:#c77a94;flex-shrink:0}
.settings-page{padding:10px 18px 24px;max-width:780px;margin:auto}.settings-page .section-heading{padding:16px 2px 23px}.section-heading h2{font-size:23px;letter-spacing:-.04em;color:#303035}.settings-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:3px;border-radius:999px;background:#ededee;gap:3px;margin:0 0 20px;overflow:visible}.settings-tabs button{border:0;background:transparent;border-radius:999px;color:#88888d;padding:10px 5px;font-size:12px;min-width:0}.settings-tabs button.active{background:#fff;color:#333;font-weight:700;border:0;box-shadow:none}.settings-card{background:#fff;border:1px solid #ececef;border-radius:23px;padding:22px 18px;margin-bottom:18px;box-shadow:0 5px 20px #00000006}.settings-card h3{font-size:16px;color:#68686f;font-weight:600}.settings-card p{font-size:12px;color:#99999f;line-height:1.8;overflow-wrap:anywhere}.settings-card>.secondary{border:1px dashed #e2e2e6;background:#fafafa;color:#929298;font-size:12px;margin-top:9px}.settings-card>.primary{font-size:13px}.service-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 12px;margin:20px 0 22px;background:#fafafa;border:1px solid #f0f0f2;border-radius:16px;padding:15px}.service-form label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:11px;color:#96969d;font-weight:500}.service-form .menu-name,.service-form .menu-category{grid-column:1/-1}.service-form input,.service-form input[name=category]{grid-column:auto;grid-row:auto;border:1px solid #e7e7eb;border-radius:9px;background:#fff;min-width:0;width:100%;min-height:43px;padding:10px;font-size:16px;color:#4b4b53}.service-form button{grid-column:1/-1;margin-top:3px;font-size:13px;min-height:43px}.settings-item{border-color:#f0f0f2;gap:7px;padding:16px 0;align-items:center}.settings-item:last-child{padding-bottom:0}.settings-item strong{font-size:13px;color:#4d4d55;font-weight:600;overflow-wrap:anywhere}.settings-item small{font-size:10px;color:#a0a0a7;line-height:1.8}.settings-item button{border:0;background:#f5f5f6;font-size:11px;min-height:36px;padding:8px 10px;border-radius:9px;color:#909099;font-weight:500;flex-shrink:0}.settings-item .danger{background:#fff3f4}.local-banner{font-size:11px;color:#a1927a;background:#f8f4ec;border-radius:15px;line-height:1.8}.toast{background:#36363e;border-radius:13px;font-size:12px;bottom:calc(90px + env(safe-area-inset-bottom));line-height:1.7}.login{background:#fafafa}.brand-mark{background:#f8e3eb;color:#c47793;border-radius:20px}.login h1{font-size:29px}.login p{font-size:13px;line-height:1.8;color:#94949d}
@media(min-width:700px){.topbar{padding:20px 28px}.schedule-page .date-strip{margin:4px 24px 12px}.timeline-stage{margin:0 24px 6px}.form-page{max-width:740px;margin:0 auto;width:100%;padding-top:26px}.settings-page{padding-top:20px}.service-form .menu-name{grid-column:1/-1}.service-form .menu-category{grid-column:1/-1}.calendar-cell{min-height:120px}.timeline .hour-row>span{font-size:12px}.timeline-events .reservation-card strong{font-size:14px}}
@media(max-width:350px){.topbar,.schedule-page>.topbar{padding:12px}.brand-lockup{gap:7px}.topbar h1,.schedule-page .topbar h1{font-size:14px}.brand-lockup .salon-emblem{width:28px;height:28px;font-size:20px}.topbar-actions{gap:6px}.schedule-page .date-strip{margin-left:10px;margin-right:10px}.timeline-stage{margin-left:8px;margin-right:8px}.settings-page,.form-page{padding-left:13px;padding-right:13px}.settings-card{padding:19px 14px}.service-form{padding:12px;gap:12px 9px}.settings-item button{padding:8px;font-size:10px}.detail-modal{width:94vw;padding:15px}.payment-inputs{gap:8px}}
/* Customer management uses the same white-card settings layout. */
.settings-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.settings-tabs button{font-size:11px;padding:10px 3px}.customer-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.customer-heading>span{background:#f7e9ee;color:#be7891;border-radius:999px;padding:6px 10px;font-size:11px;white-space:nowrap}.customer-heading p{margin-bottom:18px}.customer-search-label{display:block;color:#999;font-size:11px;margin-bottom:7px}.customer-management .search{box-shadow:none;font-size:16px;min-width:0;margin-bottom:6px;background:#fafafa}.customer-edit-form{background:#fafafa;border:1px solid #eaeaec;border-radius:17px;padding:17px;margin:16px 0;scroll-margin-top:16px}.customer-edit-form h4{font-size:14px;color:#555;margin:0 0 8px}.customer-edit-form>p{font-size:11px;line-height:1.8;margin:0 0 18px}.customer-edit-form fieldset{border:0;padding:0;margin:0;min-width:0}.customer-edit-form .field{font-size:11px;margin-bottom:15px}.customer-edit-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px}.customer-edit-actions button{font-size:11px;padding:10px 7px;min-height:43px}.customer-result-count{font-size:11px!important;margin:16px 0 5px}.customer-management-list .avatar{width:33px;height:33px;font-size:12px}.customer-management-list .settings-item{gap:10px}.customer-management-list .settings-item small{font-size:12px;color:#929299}.customer-management-list .settings-item button{min-height:40px;min-width:43px}.customer-management-list .settings-item strong{line-height:1.6}
/* v16 operations: shared compact cards and clear status hierarchy */
.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}.bottom-nav button{min-width:0;font-size:11px}
.operations-page{padding:22px 18px 110px;max-width:760px;margin:auto}.operations-page .section-heading{align-items:center;gap:12px}.operations-page h2{font-size:21px;margin:0}.eyebrow{font-size:10px;letter-spacing:1.7px;color:#9b7d80;font-weight:700;margin:0 0 8px}.compact:not(.reservation-card){padding:10px 13px!important;font-size:12px!important;min-height:40px;white-space:nowrap;width:auto!important}
.today-hero{border-radius:24px;background:linear-gradient(130deg,#303c4a,#536479);color:white;padding:25px 23px;margin:20px 0 14px;box-shadow:0 12px 28px #22334716}.today-hero>span{font-size:13px;color:#d7e0e9}.today-hero>strong{display:block;font-size:34px;letter-spacing:-1.4px;margin:10px 0 22px;font-variant-numeric:tabular-nums}.today-hero>div{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding-top:15px;border-top:1px solid #ffffff26}.today-hero b{display:block;font-size:16px;margin-top:6px}.today-hero>small{display:block;color:#dae1e9;font-size:11px;margin-top:15px}
.today-stats{display:flex;gap:10px;margin:14px 0 22px}.today-stats>div{flex:1;min-width:0;background:white;border:1px solid #eceef1;padding:15px 12px;border-radius:17px}.today-stats span{display:block;font-size:11px;color:#87909b}.today-stats strong{display:block;font-size:26px;color:#333d4a;margin-top:8px;font-variant-numeric:tabular-nums}.today-stats strong small{font-size:12px;margin-left:4px;font-weight:500}.today-stats strong.small-amount{font-size:21px;overflow-wrap:anywhere}
.operations-page .report-panel{margin:18px 0;padding:21px 18px}.operations-page .panel-heading h2{font-size:16px}.visit-row{padding:14px 0;border-top:1px solid #eef0f3;display:flex;align-items:center;gap:10px}.visit-main{display:block;flex:1;min-width:0;background:none;text-align:left;padding:0;border:0;border-radius:0;line-height:1.5;color:#414957}.visit-main>strong{display:block;font-size:15px;margin:7px 0 3px}.visit-main strong small{display:block;font-size:11px;color:#8993a1;font-weight:400}.visit-main>span:not(.status-chip){display:block;font-size:12px}.visit-main>small{display:block;color:#8b94a0;font-size:11px;overflow-wrap:anywhere}.status-chip{display:inline-block!important;background:#edf2ff;color:#607cb8;font-size:10px;padding:3px 8px;border-radius:6px;font-weight:650}.status-chip.completed{background:#eef8f5;color:#328877}.status-chip.cancelled{background:#f4f4f5;color:#979ca4}
.profile-heading{text-align:center}.profile-heading .avatar{display:inline-grid;width:55px;height:55px;font-size:24px;margin:0 0 10px}.profile-heading p{font-size:13px;color:#88919e}.profile-heading .today-stats{text-align:left;margin-bottom:0}
.refund-section{padding:18px 0;border-top:1px solid #e8edf2;margin-top:18px}.refund-section h3{font-size:16px}.money-summary{display:grid;gap:12px;margin:16px 0}.money-summary>span{display:flex;justify-content:space-between;gap:14px;font-size:13px;color:#87919d}.money-summary b{font-size:15px;color:#374252;font-variant-numeric:tabular-nums}.money-summary>span:last-child{border-top:1px solid #eceff3;padding-top:12px}.refund-section .secondary{width:100%}.refund-section .field{font-size:12px}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:10px}.comparison>div{border-radius:14px;background:#f5f7fa;padding:15px 12px}.comparison small,.comparison span{display:block;font-size:11px;color:#8793a1}.comparison strong{display:block;font-size:18px;margin:8px 0}.comparison-change{font-size:12px;color:#738194;line-height:1.7}.panel-heading select{font-size:13px;border:1px solid #e9edf3;border-radius:10px;background:#fafbfc;padding:8px;color:#49566b;width:auto}
.backup-actions{display:grid;gap:9px;grid-template-columns:1fr 1fr}.backup-actions button{font-size:12px;padding:13px 8px}.backup-actions button:last-child{grid-column:1/-1}.backup-status{font-size:11px!important;background:#f2f7f5;border-radius:10px;padding:12px;color:#567b70!important}.backup-list{margin-top:20px}.backup-list summary{font-size:14px;padding:12px 0;cursor:pointer}.backup-row{border-top:1px solid #edf0f3;padding:14px 0}.backup-row strong{font-size:13px}.backup-row small{display:block;font-size:11px;color:#929ba8;margin-top:4px}.backup-row>div:last-child{display:flex;gap:8px;margin-top:10px}.backup-row button{font-size:12px;background:#f0f4fa;color:#526580;padding:8px 12px}.history-entry{padding:14px 0;border-top:1px solid #edf0f3}.history-entry summary{cursor:pointer;font-size:13px}.history-entry summary small{display:block;font-size:11px;color:#929ba8;line-height:1.5;margin-top:5px}.history-entry dl{font-size:12px;line-height:1.6}.history-entry dt{font-weight:650;color:#65748b}.history-entry dd{margin:2px 0 12px;overflow-wrap:anywhere;color:#8a93a0}.customer-management-list .settings-item{gap:8px}.customer-management-list .settings-item button{font-size:11px;padding:9px}.customer-management-list .settings-item>div{min-width:0}.customer-management-list .settings-item strong{overflow-wrap:anywhere}
@media(max-width:360px){.operations-page{padding:18px 13px 100px}.today-hero>strong{font-size:29px}.today-stats>div{padding:13px 9px}.operations-page h2{font-size:18px}.comparison strong{font-size:15px}.today-stats strong.small-amount{font-size:17px}.customer-management-list .avatar{display:none}}
.schedule-status{font-size:9px;background:#ffffff35;border-radius:5px;padding:2px 5px;margin-left:5px;white-space:nowrap;display:inline-block}.reservation-card.compact .schedule-status{font-size:8px;padding:0 3px}
.confirm-overlay{position:fixed;inset:0;z-index:2000;background:#27344777;display:grid;place-items:center;padding:22px;backdrop-filter:blur(3px)}.confirm-dialog{background:white;border-radius:24px;padding:25px;max-width:420px;box-shadow:0 20px 80px #18223635}.confirm-dialog h2{font-size:18px;margin:0 0 14px;color:#344155}.confirm-dialog p{font-size:14px;line-height:1.8;color:#788392;white-space:pre-line}.confirm-dialog>div{display:flex;gap:10px;margin-top:23px}.confirm-dialog button{flex:1;padding:13px;font-size:13px}
.backup-location{display:block;width:fit-content;font-size:10px;font-weight:650;padding:4px 8px;border-radius:6px;margin-bottom:8px;background:#edf1f6;color:#6f7b8c}.backup-location.cloud{background:#e6f5ed;color:#337c59}.backup-row>div:last-child{flex-wrap:wrap}.backup-actions button:last-child{grid-column:auto}
.backup-row button{border:1px solid #e6ebf1;border-radius:9px}
/* v18: connection status, daily closing and no-show */
.home-status{background:white;border:1px solid #e9edf2;border-radius:16px;padding:13px 15px;margin:0 0 23px;font-size:11px}.sync-state{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:#45745e}.sync-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.sync-state small{margin-left:auto;color:#939ba5;font-size:10px;max-width:100%;overflow-wrap:anywhere}.sync-state.attention{color:#ba7046}.backup-state{display:flex!important;align-items:center;justify-content:space-between;width:100%;gap:8px;border:0!important;background:transparent!important;padding:11px 0 0!important;border-radius:0!important;margin-top:11px;border-top:1px solid #f0f2f5!important;color:#8a94a3;font-size:10px;text-align:left}.backup-state b{font-size:10px;font-weight:600;color:#64748a}.status-error{color:#b17655;font-size:10px;line-height:1.6;margin-bottom:0}.closing-panel .primary{width:100%;margin-top:8px}.closing-badge{font-size:10px;background:#eaf4ef;color:#588674;border-radius:6px;padding:5px 8px;white-space:nowrap}.closing-badge.changed{background:#fff1df;color:#b37a32}.closing-check{font-size:11px;color:#8793a1;line-height:1.8}.status-chip.noshow,.status.noshow{background:#fff0e9;color:#b66e4e}.closing-panel .hint{font-size:10px;line-height:1.7;margin-bottom:0}.home-status+.section-heading{margin-top:0}

/* v19: service menus grouped by their existing categories */
.service-groups{margin-top:26px}
.service-groups-summary{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#66666e;padding:0 2px 14px}
.service-groups-summary span{color:#9999a0}
.service-group{border:1px solid #ececef;border-radius:17px;overflow:hidden;margin:0 0 18px;background:#fff}
.service-group:last-child{margin-bottom:0}
.service-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f7f5f6;padding:13px 15px;border-bottom:1px solid #eeecef}
.service-group-heading h4{font-size:14px;font-weight:700;color:#51444b;margin:0;overflow-wrap:anywhere;min-width:0}
.service-group-heading>span{flex-shrink:0;border-radius:999px;background:#fff;padding:3px 9px;color:#96828d;font-size:11px;font-weight:600}
.service-group .list{padding:0 14px}
.service-group .settings-item{padding:16px 0}
.service-group .settings-item:first-child{border-top:0}
@media(max-width:360px){.service-group .list{padding:0 10px}.service-group .settings-item{gap:5px}.service-group .settings-item button{padding:8px;font-size:11px}}

/* v20: collapsible groups, stable search and readable calendar names */
.service-group-heading{width:100%;border:0;border-bottom:1px solid #eeecef;border-radius:0;text-align:left;cursor:pointer;min-height:50px}
.service-group-heading strong{font-size:14px;font-weight:700;color:#51444b;overflow-wrap:anywhere;min-width:0;flex:1}
.service-group-heading i{font-size:17px;font-style:normal;color:#96828d}
.service-group-heading[aria-expanded=false]{border-bottom:0}
.service-group .list[hidden]{display:none}
.service-group-heading:focus-visible{outline:2px solid #bc879f;outline-offset:-3px}
.contact-hint{font-size:11px;color:#92929b;line-height:1.7;margin:14px 0}
.form-page .search{box-sizing:border-box;min-width:0;max-width:100%;font-size:16px}
.customer-management .settings-item.customer-manage-row{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:16px 0}
.settings-item.customer-manage-row>.customer-row-info{display:flex;flex-direction:row;align-items:center;gap:10px}
.customer-row-info>div{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.customer-row-info .avatar{width:33px;height:33px;flex-shrink:0;font-size:12px}
.settings-item.customer-manage-row>.customer-row-actions{display:flex;flex-direction:row;justify-content:flex-end;gap:7px}
.customer-row-actions button{min-height:38px;min-width:48px}
.deleted-customers{margin-top:20px;border-top:1px solid #ececf0;padding-top:16px}
.deleted-customers summary{font-size:13px;cursor:pointer;color:#777780}
.deleted-customers summary b{font-size:11px;margin-left:8px;background:#f3edef;padding:4px 8px;border-radius:99px}
.calendar .calendar-cell{min-width:0;justify-content:flex-start}
.calendar .calendar-cell .calendar-name{display:block;max-width:100%;width:100%;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:break-all;line-height:1.5;padding:4px 2px;font-size:11px;letter-spacing:-.3px;flex-shrink:0}
.calendar .calendar-name.paid{background:#e9f4ee;color:#477d65}
.calendar .calendar-name.unpaid{background:#fff2dd;color:#996b28}
.calendar .calendar-name.noshow{background:#f3eced;color:#946e79}
.calendar-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;padding:0 8px 14px;font-size:10px;color:#8b8b94}
.calendar-legend span{display:flex;align-items:center;gap:4px}
.calendar-legend span:before{content:'';display:block;width:6px;height:6px;border-radius:50%;background:#9fb5d8}
.calendar-legend .paid:before{background:#7da98f}.calendar-legend .unpaid:before{background:#d4ac67}.calendar-legend .noshow:before{background:#b598a0}

/* v21: calendar day sheet, custom duration and reservation dragging */
.date-reservations-modal{position:fixed;z-index:8;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,620px);height:min(88dvh,820px);background:#fff;border-radius:28px 28px 0 0;box-shadow:0 -12px 60px #27304222;display:flex;flex-direction:column;padding:18px 18px calc(18px + env(safe-area-inset-bottom));}
.date-reservations-modal>header{display:flex;align-items:center;gap:10px;padding:0 0 17px;border-bottom:1px solid #eeeef1;flex-shrink:0}
.date-reservations-modal h2{font-size:16px;letter-spacing:-.5px;text-align:center;margin:0;flex:1}
.date-reservations-modal>header>span{font-size:11px;color:#9a9298;white-space:nowrap}
.date-reservation-list{flex:1;overflow:auto;min-height:0;overscroll-behavior:contain}
.date-reservation-row{width:100%;display:flex;align-items:center;gap:10px;background:#fff;border:0;border-radius:0;border-bottom:1px solid #ececf0;padding:20px 0;text-align:left;color:#42424b}
.date-status-dot{width:8px;height:8px;border-radius:50%;background:#99b2d6;flex-shrink:0}.date-status-dot.completed{background:#7ba78f}.date-status-dot.cancelled,.date-status-dot.noshow{background:#b5a2aa}
.date-reservation-info{flex:1;min-width:0}.date-reservation-info strong{display:block;font-size:16px;overflow-wrap:anywhere}.date-reservation-info small{display:block;font-size:11px;color:#96949c;line-height:1.6;margin-top:5px;overflow-wrap:anywhere}.date-reservation-info em{font-style:normal;font-size:10px;color:#a49aa2}
.date-reservation-amount{font-size:13px;font-weight:650;white-space:nowrap}.date-row-chevron{font-size:24px;color:#c6c1c5}
.date-reservations-modal footer{padding-top:15px;flex-shrink:0}.date-reservations-modal footer button{width:100%}
.duration-field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#87828c;margin:0 0 14px;flex-shrink:0}
.duration-field select{width:100%;min-height:44px;border:1px solid #e6e4e9;border-radius:12px;background:#fff;padding:10px;color:#4c4851;font-size:16px}
.duration-field small{font-size:10px;color:#a29ba5;font-weight:400}
.schedule-drag-hint{font-size:10px;color:#99929c;margin:0 18px 8px;text-align:center;flex-shrink:0}
.timeline-events .reservation-card[data-movable=true]{cursor:grab;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.timeline-events .reservation-card.is-dragging{z-index:6;cursor:grabbing;overflow:visible;box-shadow:0 8px 24px #45638e55;outline:2px solid #658cbe;opacity:.95}
.drag-time-label{position:absolute;left:0;top:-30px;padding:5px 8px;border-radius:7px;background:#344863;color:white;font-size:11px;white-space:nowrap;pointer-events:none}
@media(max-width:350px){.date-reservations-modal{padding-left:13px;padding-right:13px}.date-reservations-modal h2{font-size:14px}.date-reservation-row{gap:6px}.date-reservation-amount{font-size:12px}.date-reservation-info strong{font-size:14px}.booking-time-page .subhead{min-height:56px;height:56px}.booking-time-page .date-title{margin:5px 0 8px;font-size:16px}}

/* v22: inline appointment notes and today's schedule shortcut */
.detail-note-button{width:100%;background:transparent;border:0;border-top:1px solid #edf0f5;border-radius:0;cursor:pointer;text-align:left;font:inherit;align-items:flex-start}
.detail-note-button strong{white-space:pre-wrap;font-weight:500}.detail-note-button strong small{display:block;font-size:10px;color:#b38599;margin-top:5px}
.detail-note-button:focus-visible{outline:2px solid #bf8b9f;outline-offset:3px}
.detail-note-form{border-top:1px solid #edf0f5;padding:15px 0 0;margin-top:0}
.detail-note-form fieldset{margin:0;padding:0;border:0;min-width:0}.detail-note-form label{display:block;color:#92929c;font-size:12px;margin-bottom:9px}
.detail-note-form textarea{display:block;width:100%;min-height:96px;resize:vertical;box-sizing:border-box;border:1px solid #e4dce2;border-radius:12px;padding:12px;font-size:16px;line-height:1.6;color:#4c4650;background:#fff}
.detail-note-form fieldset>div{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.detail-note-form button{min-height:40px;padding:9px 14px;font-size:12px}
.today-stats>.today-stat-link{flex:1;min-width:0;background:white;border:1px solid #eceef1;padding:15px 12px;border-radius:17px;text-align:left;font:inherit;cursor:pointer}
.today-stat-link span i{float:right;font-style:normal;color:#b0a3ad}.today-stat-link:active{background:#faf4f7}.today-stat-link:focus-visible{outline:2px solid #bf8b9f;outline-offset:2px}

/* v23: home status reservation lists */
.date-reservations-modal h2 .popup-category{display:block;margin-top:5px;font-size:12px;color:#9d7b8c;font-weight:500}

/* v24: today's net revenue opens today's period report */
.today-revenue-link{display:block;width:100%;border:0;text-align:left;font-family:inherit;cursor:pointer}
.today-revenue-link>span>i{float:right;font-size:23px;font-style:normal;line-height:1;color:#d7e0e9}
.today-hero>.today-payment-split{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding-top:15px;border-top:1px solid #ffffff26}
.today-revenue-link:focus-visible{outline:3px solid #b98ba2;outline-offset:3px}.today-revenue-link:active{filter:brightness(.95)}

.payment-line[role="button"]{cursor:pointer;border-radius:12px;padding:12px}.payment-line[role="button"]:hover{background:#f7f5f6}.payment-line[role="button"]:focus-visible{outline:2px solid #b96986}

.date-schedule-shortcut{display:flex;justify-content:flex-end;flex-shrink:0;padding:8px 0}.date-schedule-shortcut button{font-size:12px;color:#61738e;background:#f2f5fa;border:0;border-radius:10px;padding:8px 12px;min-height:36px}.date-schedule-shortcut button:focus-visible{outline:2px solid #61738e}

.timeline-list-button{position:absolute;z-index:3;right:8px;top:8px;min-height:36px;padding:6px 10px;border:1px solid #e6e9ee;border-radius:999px;background:#fff;color:#61738e;font-size:12px;box-shadow:0 1px 8px #25365012}.timeline-list-button:focus-visible{outline:2px solid #61738e}

@media(max-width:400px){.timeline-date{left:calc(50% - 18px)}}

.calendar-cell .calendar-name.personal,.timeline-events .reservation-card.personal{background:#ffe4e7;color:#b63445;border-color:#dc6675}.personal-add{width:100%;margin-top:12px;color:#b63445;background:#fff0f2}.calendar-name[role="button"]:focus-visible{outline:2px solid #61738e}

.admin-entry{margin-bottom:16px;width:100%}.access-user strong{overflow-wrap:anywhere;font-size:14px}.access-user>div{min-width:0}.access-user>button{flex-shrink:0}.access-admin .settings-item{gap:12px}.access-admin input{font-size:16px;width:100%;box-sizing:border-box}

.access-user-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.access-user{flex-wrap:wrap}.access-user>div:first-child{flex:1 1 180px}.brand-lockup{min-width:0;flex:1}.brand-lockup>div{min-width:0}.brand-lockup h1{overflow-wrap:anywhere;line-height:1.3}.topbar-actions{flex-shrink:0}.salon-brand{min-width:0}.salon-brand>span:last-child{overflow-wrap:anywhere;min-width:0}.access-admin .field{display:block;margin:14px 0}

.home-confirmed-card,.home-customers-card{width:100%;border:1px solid #ececf0;border-radius:24px;background:#fff;box-shadow:0 6px 24px #20203006;margin:0 0 18px;padding:24px;text-align:left;color:#29292d}.home-confirmed-card{display:grid;gap:16px}.home-confirmed-title{font-size:23px;font-weight:750;display:flex;align-items:center;gap:12px}.home-confirmed-title i{font-style:normal;display:grid;place-items:center;background:#65c96b;color:#fff;border-radius:50%;width:32px;height:32px}.home-card-caption{color:#92959d;font-size:14px}.home-card-count{display:flex;justify-content:space-between;align-items:center}.home-card-count strong{font-size:36px}.home-card-count small{font-size:22px;margin-left:5px}.home-card-count>span{font-size:36px;color:#afb4bc}.home-customers-card{display:flex;align-items:center;gap:16px}.home-customers-card>strong{font-size:18px;flex:1}.home-customers-card>span{font-size:30px;font-weight:750}.home-customers-card small{font-size:18px;margin-left:4px}.home-customers-card i{font-style:normal;background:#6b92eb;color:white;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;font-size:23px}.remaining-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;width:100%;padding:18px 0;background:white;border:0;border-bottom:1px solid #ececf0;text-align:left}.remaining-row strong{grid-column:1/-1;font-size:17px;overflow-wrap:anywhere}.remaining-row span,.remaining-row time{font-size:14px;color:#737985}.remaining-modal h2 small{font-size:16px;color:#737985}

.customer-compact-row{display:flex;align-items:center;border-bottom:1px solid #ececf0;gap:8px}.customer-name-link{display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:64px;padding:10px 0;border:0;background:transparent;text-align:left;color:#30323a}.customer-name-link .avatar{width:34px;height:34px;flex:0 0 34px;font-size:13px}.customer-compact-text{flex:1;min-width:0;display:grid;gap:3px}.customer-compact-text strong{font-size:15px;overflow-wrap:anywhere}.customer-compact-text small{font-size:12px;color:#92959e}.customer-chevron{font-size:24px;color:#b5bac4}.customer-profile-heading{display:flex;align-items:center;gap:16px}.customer-profile-heading .avatar{width:64px;height:64px;flex:0 0 64px;font-size:26px;background:#eee8ff;color:#9275bd}.customer-profile-heading>div{min-width:0}.customer-profile-heading h2{font-size:26px;margin:0 0 6px;overflow-wrap:anywhere}.customer-profile-heading p{margin:0;color:#9399a4;font-size:13px}.customer-profile-chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.customer-profile-chips>a,.customer-profile-chips>span{padding:7px 12px;border-radius:24px;background:#f1f4f6;color:#78828c;font-size:13px;text-decoration:none;overflow-wrap:anywhere}.customer-care-preview{border-top:1px solid #ececf0;padding-top:18px;white-space:pre-wrap;font-size:14px;color:#7f8791}.customer-profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.customer-profile-actions button{padding:12px 8px;font-size:14px;min-height:44px}.customer-profile-actions .primary{background:#5d8df7}.profile-note-editor{margin-top:20px}.profile-note-editor summary{font-size:13px;color:#818a96;cursor:pointer}.customer-profile-totals{display:flex;justify-content:space-between;gap:18px}.customer-profile-totals>span{display:grid;gap:9px;color:#8b939d;font-size:13px}.customer-profile-totals strong{font-size:23px;color:#303541}.customer-profile-totals small{font-size:13px;margin-left:3px}.profile-delete{width:100%;text-align:center}.customer-management .customer-result-count{margin:16px 0 8px}

/* Weekly touch navigation */
.date-strip { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.schedule-page main { overflow-x: clip; }

/* Continuous three-week touch strip */
.week-slider { overflow:hidden; border-radius:24px; touch-action:pan-y; margin-bottom:12px; }
.week-track { display:flex; width:300%; transform:translateX(-33.333333%); will-change:transform; }
.week-track > .date-strip { flex:0 0 33.333333%; width:33.333333%; min-width:0; box-sizing:border-box; margin:0; border-radius:0; }

/* Compact date selection, matching the reference interaction */
.schedule-page .week-slider { margin:4px 14px 10px; border-radius:16px; background:#f0f0f2; }
.schedule-page .week-track > .date-strip { margin:0; padding:5px; }
.schedule-page .week-track .date-chip { min-height:62px; padding:3px 0; gap:3px; background:transparent; box-shadow:none; }
.schedule-page .week-track .date-chip strong { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; font-size:16px; line-height:1; }
.schedule-page .week-track .date-chip.selected strong { background:#303034; color:#fff; }
.schedule-page .week-track .date-chip.selected small { color:#303034; font-weight:700; }
.schedule-page .week-track .date-chip i { height:4px; min-width:4px; }
@media(min-width:700px){.schedule-page .week-slider{margin-left:24px;margin-right:24px}}
@media(max-width:350px){.schedule-page .week-slider{margin-left:10px;margin-right:10px}}

.calendar .calendar-cell { height:var(--calendar-row-height,140px); min-height:var(--calendar-row-height,140px); overflow:hidden; }

/* Reveal appointment contents as the calendar is expanded. */
.calendar .calendar-cell .calendar-name { overflow:hidden; line-height:16px; padding:3px 2px; }
.calendar .calendar-name .calendar-person { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.calendar .calendar-name .calendar-time,.calendar .calendar-name .calendar-service { display:none; font-size:10px; line-height:14px; }
html[data-calendar-detail="time"] .calendar .calendar-name .calendar-time,
html[data-calendar-detail="full"] .calendar .calendar-name .calendar-time { display:block; margin-top:2px; }
html[data-calendar-detail="full"] .calendar .calendar-name .calendar-person,
html[data-calendar-detail="full"] .calendar .calendar-name .calendar-service { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:normal; overflow:hidden; }
html[data-calendar-detail="full"] .calendar .calendar-name .calendar-service { margin-top:2px; }

/* Continuous calendar detail reveal; full-width compact names. */
.month-page { padding-left:0!important; padding-right:0!important; border-left:0!important; border-right:0!important; border-radius:0!important; }
.month-page .calendar,.month-page .weeknames { margin-left:0!important; margin-right:0!important; border-left:0!important; border-right:0!important; }
.month-page .calendar .calendar-cell { border-left:0; border-right:0; padding:7px 1px 3px; gap:2px; }
.month-page .calendar-cell > b { margin-left:4px; height:24px; flex-shrink:0; }
.month-page .calendar-cell .calendar-bookings { display:block; flex:none; width:100%; height:calc(var(--calendar-row-height,140px) - 48px); padding:0; background:transparent; border-radius:0; overflow:hidden; }
.month-page .calendar-cell .calendar-name { display:block; margin:0 0 2px; padding:2px 1px; height:calc(20px + 14px * var(--calendar-time,0) + 28px * var(--calendar-service,0) + 14px * var(--calendar-name,0)); box-sizing:border-box; letter-spacing:-.35px; }
.month-page .calendar-cell .calendar-name > span { display:block!important; padding:0; margin:0; border-radius:0; background:transparent; color:inherit; font-size:clamp(9px,2.65vw,11px); line-height:14px; letter-spacing:-.35px; text-overflow:clip; overflow:hidden; }
.month-page .calendar-cell .calendar-person { height:calc(14px + 14px * var(--calendar-name,0)); white-space:normal; word-break:break-all; -webkit-line-clamp:unset; }
.month-page .calendar-cell .calendar-time { height:calc(14px * var(--calendar-time,0)); opacity:var(--calendar-time,0); white-space:nowrap; }
.month-page .calendar-cell .calendar-service { height:calc(28px * var(--calendar-service,0)); opacity:var(--calendar-service,0); white-space:normal; -webkit-line-clamp:unset; }
.month-page .calendar-cell .calendar-more { height:14px; line-height:14px; flex:none; margin:0; }

.ledger-reset summary{font-weight:700;color:#a34250;cursor:pointer}.ledger-reset fieldset{border:0;padding:0;margin:0;min-width:0}.ledger-reset label{display:block;margin:14px 0}.ledger-reset select,.ledger-reset input{width:100%;margin-top:8px}.ledger-reset .danger{color:#ab3346;border-color:#edcbd1}

/* v50 native weekly swipe: visible dates remain tappable while settling. */
.schedule-page .week-slider{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x pan-y;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
.week-slider::-webkit-scrollbar{display:none}
.week-slider .week-track{width:100%;transform:none;will-change:auto;}
.schedule-page .week-track>.date-strip{flex:0 0 100%;width:100%;scroll-snap-align:start;scroll-snap-stop:always;}
.schedule-page .week-track>.date-strip{touch-action:pan-x pan-y;}

/* The timetable follows the native week strip, including its snap-back movement. */
.timeline-week-viewport{position:relative;overflow:hidden;isolation:isolate;}
.timeline-week-viewport>.timeline-stage{will-change:transform;}
.timeline-week-viewport>[data-week-preview]{position:absolute;top:0;left:0;right:0;pointer-events:none;}

.customer-visit-button{display:flex;align-items:center;justify-content:space-between;width:100%;border:1px solid #dbc6e8;border-radius:16px;padding:18px 20px;margin:20px 0;background:#eee6f5;color:#56366f;font-weight:750;font-size:16px;box-shadow:0 5px 14px #5b386b10;}
.membership-entry{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #d9cdeb;border-radius:15px;background:#f4effa;color:#634287;padding:15px;text-align:left;margin:0 0 18px;}
.membership-entry small{display:block;font-size:9px;letter-spacing:.1em;margin-bottom:5px;color:#9275ae}.membership-entry strong{font-size:16px}.membership-entry b{font-size:12px;white-space:nowrap;}
.membership-balance{background:linear-gradient(135deg,#47315f,#795a98);color:white;border-radius:24px;padding:24px;margin-bottom:24px;}.membership-balance>small{display:block;opacity:.75;margin:22px 0 7px}.membership-balance>strong{font-size:34px;display:block;overflow-wrap:anywhere}.membership-balance>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #ffffff30;margin-top:22px;padding-top:18px;font-size:12px}.membership-balance b{display:block;margin-top:7px;font-size:16px}.membership-page fieldset{border:0;margin:0;padding:0;min-width:0}.membership-page .primary,.membership-page .secondary{width:100%;margin-top:12px}.membership-history>div{display:flex;justify-content:space-between;align-items:center;padding:16px 0;border-bottom:1px solid #eee;gap:12px}.membership-history small{display:block;font-size:11px;color:#999;margin-top:5px}.membership-history .credit{color:#74519a}.membership-history .use{color:#b66d80}

/* v56: retain pinch zoom while suppressing double-tap zoom. */
html,body{touch-action:manipulation;}
.app-management-entry{display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:16px;gap:12px;}
.app-management-entry span{font-size:12px;color:#8b8790;}
.visit-count{display:inline-block;font-size:11px;font-style:normal;font-weight:500;color:#9a6d85;background:#f8eef3;padding:3px 6px;border-radius:20px;white-space:nowrap;}
.service-group-controls{display:flex;justify-content:flex-end;padding:8px 10px 0;}
.menu-order-buttons{display:inline-flex;gap:4px;}
.menu-order-buttons button{min-width:32px;min-height:36px;padding:5px 8px;border:0;border-radius:9px;background:#f3f1f4;color:#695c68;}
.menu-order-buttons button:disabled{opacity:.3;}
.service-order-item{flex-wrap:wrap;gap:6px;}
.service-order-item>div:first-child{flex:1 1 100%;}
.service-order-item>button{padding:8px 12px;}

/* The horizontal viewport must pass the available height to the vertical scroller. */
.schedule-page > main > .timeline-week-viewport{flex:1 1 0;min-height:0;display:flex;flex-direction:column;}
.timeline-week-viewport > .timeline-stage{flex:1 1 0;min-height:0;}
.timeline-week-viewport > [data-week-preview]{bottom:0;}
.timeline-week-viewport .timeline{min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;}

/* Dedicated, uncluttered ordering sheet. */
.order-entry-buttons{display:flex;gap:8px;margin-bottom:18px}.order-entry-buttons button{flex:1;display:flex;justify-content:space-between;align-items:center;border:1px solid #ececf0;background:white;border-radius:12px;padding:12px;font-size:13px;color:#595660}.order-entry-buttons span{color:#b4b5bb;font-size:22px}
.menu-order-page{height:100dvh;display:flex;flex-direction:column;background:#fff;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.order-header{display:grid;grid-template-columns:60px 1fr 70px;align-items:center;flex-shrink:0;padding:10px 8px;border-bottom:1px solid #f3f3f5}.order-header h1{font-size:16px;text-align:center;margin:0}.order-header button{background:none;border:0;min-height:44px;color:#858b94;font-size:26px;padding:5px}.order-header .order-done{font-size:14px;color:#588bf5;font-weight:650}
.order-help{font-size:12px;color:#a1a4ac;padding:8px 20px;margin:0}.order-scroll{overflow-y:auto;flex:1;min-height:0;padding:0 18px 30px;overscroll-behavior:contain}.order-row{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border-bottom:1px solid #f6f6f8}.order-row strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.order-row small{display:block;font-size:12px;color:#929ba9;margin-top:5px}.order-row>div{min-width:0}.order-handle{touch-action:none;user-select:none;-webkit-user-select:none;background:none;border:0;color:#bec1c7;min-width:44px;min-height:48px;font-size:27px;cursor:grab;flex-shrink:0}.order-row.sorting{background:#f1f5ff;box-shadow:0 5px 16px #53678520;border-radius:10px}.order-category h2{font-size:12px;font-weight:500;color:#9ca4af;border-bottom:1px solid #eceef2;padding:20px 0 10px;margin:0}.order-feedback{font-size:12px;color:#b46b69;padding:0 18px}.order-header button:disabled{opacity:.5}

/* Inline sort handles, alongside the category title instead of an extra toolbar. */
.service-groups .service-group.order-row{display:block;min-height:0;margin-bottom:12px;border:1px solid #ececef;}
.inline-category-heading{display:flex;align-items:center;background:#f8f6f9;padding-right:6px;}
.inline-category-heading .service-group-heading{flex:1;min-width:0;width:auto;background:transparent;}
.service-groups .order-handle{background:transparent;padding:0;color:#b3b5bd;min-width:40px;font-size:26px;}
.service-groups .service-order-item.order-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:5px;padding:12px 0;}
.service-groups .service-order-item>div:first-child{grid-column:1;min-width:0;}
.service-groups .service-order-item>button{padding:6px;font-size:11px;}
.service-groups .service-order-item>.order-handle{grid-column:4;grid-row:1;font-size:26px;}
.service-groups .sorting{background:#f1f5ff!important;box-shadow:0 5px 16px #53678520;}

.date-reservation-amount small{display:block;font-size:10px;font-weight:400;color:#9a7b87;max-width:115px;margin-top:5px;white-space:normal;}
.service-groups .order-handle{touch-action:pan-y;-webkit-touch-callout:none;}
.service-groups .sorting{outline:2px solid #c18aa3;outline-offset:-2px;}
.service-groups .sorting>.inline-category-heading{background:#f4e9ef;}
.service-groups .order-handle[aria-grabbed=true]{color:#aa5c7d;cursor:grabbing;}
/* Quiet elevation during a deliberate menu drag. */
.service-groups .sorting{outline:none;background:#fff!important;box-shadow:0 8px 24px rgba(39,32,38,.13),0 2px 6px rgba(39,32,38,.05);position:relative;z-index:2;}
.service-groups .sorting>.inline-category-heading{background:#fff;}
.service-groups .order-handle[aria-grabbed=true]{color:#78727b;}
.startup-screen{min-height:100svh;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 36%,#fffdf9 0%,#f8f5f0 65%,#f2eee8 100%);padding:64px 24px calc(76px + env(safe-area-inset-bottom));text-align:center;position:relative;color:#40382f;}
.startup-screen:before{content:"";position:absolute;inset:18px;border:1px solid #a9957820;border-radius:2px;pointer-events:none;}
.startup-brand{margin-top:-18px;max-width:100%;}
.startup-mark{width:96px;height:112px;margin:0 auto 30px;color:#a68b68;}
.startup-mark svg{display:block;width:100%;height:100%;}
.startup-eyebrow{font-family:Georgia,serif;font-size:10px;letter-spacing:.32em;color:#95846e;margin:0 0 17px;padding-left:.32em;}
.startup-screen h1{font-size:29px;font-weight:500;letter-spacing:.035em;line-height:1.5;margin:0;overflow-wrap:anywhere;color:#39332e;}
.startup-divider{display:block;width:26px;height:1px;background:#b49c7966;margin:23px auto 20px;}
.startup-caption{font-size:12px;letter-spacing:.025em;line-height:1.8;color:#8a8177;margin:0;}
.startup-status{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:52px;color:#8c8072;font-size:11px;line-height:1.6;}
.startup-spinner{width:11px;height:11px;flex-shrink:0;border:1px solid #dcd2c5;border-top-color:#a38a67;border-radius:50%;animation:startup-turn 1s linear infinite;}
.startup-screen footer{position:absolute;bottom:calc(38px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:14px;font-size:9px;color:#a79a89;}
.startup-footer-label{font-size:8px;letter-spacing:.2em;}
@media(max-height:550px){.startup-screen{padding-top:40px;padding-bottom:65px}.startup-mark{height:70px;margin-bottom:14px}.startup-brand{margin-top:0}.startup-status{margin-top:24px}.startup-screen footer{bottom:25px}}
@keyframes startup-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.startup-spinner{animation:none;}}
.membership-page{padding-top:14px;}
.membership-page .membership-balance{padding:18px 20px;margin-bottom:16px;border-radius:20px;}
.membership-page .membership-balance>small{margin:12px 0 4px;font-size:11px;}
.membership-page .membership-balance>strong{font-size:30px;}
.membership-page .membership-balance>div{margin-top:14px;padding-top:12px;gap:8px;font-size:10px;}
.membership-page .membership-balance b{font-size:13px;margin-top:4px;}
.membership-tabs{display:flex;gap:4px;background:#eeecef;padding:4px;border-radius:14px;margin-bottom:12px;}
.membership-tabs button{flex:1;border:0;background:transparent;border-radius:11px;min-height:40px;color:#8e8792;font-size:13px;padding:8px 4px;}
.membership-tabs button[aria-pressed=true]{background:white;color:#594765;box-shadow:0 2px 5px #30203009;}
.membership-page .settings-card{padding:18px;margin-bottom:12px;border-radius:18px;}
.membership-page .settings-card h2{font-size:16px;margin:0 0 8px;}
.membership-page .hint{font-size:11px;line-height:1.6;margin:0 0 12px;}
.membership-page .field{margin-bottom:8px;font-size:12px;}
.membership-page input{min-height:44px;padding:11px 12px;}
.membership-page .primary,.membership-page .secondary{margin-top:6px;min-height:44px;padding:12px;font-size:13px;}
.membership-history summary{font-size:13px;color:#716778;cursor:pointer;}
.membership-history summary span{float:right;font-size:11px;color:#a39aa8;}
.membership-history-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.membership-history-actions button{border:1px solid #ded8e3;background:#fff;color:#65566f;border-radius:9px;padding:6px 10px;font-size:12px;min-height:32px}.membership-edit-form{padding:8px 0 18px;border-bottom:1px solid #eee}.membership-edit-form fieldset{border:0;padding:0;margin:0}.membership-edit-form .field{margin-top:10px}.membership-edit-buttons{display:flex;gap:8px}.membership-edit-buttons .primary,.membership-edit-buttons button{width:auto;flex:1;margin-top:12px}.membership-edit-buttons button:not(.primary){border:1px solid #ded8e3;background:white;border-radius:10px;color:#65566f}
.current-time-line{position:absolute;left:0;right:0;height:2px;background:#ee6570;z-index:2;pointer-events:none;box-shadow:0 0 0 1px #fff8}.current-time-line::before{content:'';position:absolute;left:calc(var(--time-gutter) - 4px);top:-4px;width:10px;height:10px;border-radius:50%;background:#ee6570}.current-time-line span{position:absolute;left:3px;top:-10px;width:calc(var(--time-gutter) - 11px);text-align:right;font-size:10px;font-weight:700;color:#d34d5b;background:#fff;padding-right:5px;white-space:nowrap}
.customer-add-button{width:100%;min-height:46px;margin:0 0 18px;background:#38383e;color:#fff;font-size:14px}.customer-add-form{margin:0 0 18px}.customer-add-form .field{margin-bottom:14px}
.save-progress-popup{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#2020293d;pointer-events:none}.save-progress-card{min-width:180px;max-width:calc(100vw - 48px);padding:22px 24px 18px;border-radius:22px;background:#fff;box-shadow:0 16px 42px #201c2c28;display:flex;align-items:center;flex-direction:column;gap:7px;text-align:center;color:#37323d}.save-progress-emoji{font-size:31px;line-height:1.2}.save-progress-label{font-size:16px}.save-progress-card small{font-size:11px;color:#9b939d}.save-progress-spinner{width:17px;height:17px;margin-top:4px;border:2px solid #e9e4ec;border-top-color:#a782b0;border-radius:50%;animation:startup-turn .8s linear infinite}@media(prefers-reduced-motion:reduce){.save-progress-spinner{animation:none}}
.membership-available{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:4px}.membership-available>strong{font-size:30px;line-height:1.15;overflow-wrap:anywhere}.membership-available aside{display:grid;gap:3px;min-width:0;text-align:right}.membership-available aside small{display:block;font-size:10px;line-height:1.35;color:#f1e4fa;white-space:nowrap}.membership-expired{font-size:10px;margin:7px 0 0;color:#e6d5ed}.membership-expiry-field{margin-top:10px}.membership-history-row small{line-height:1.45}.membership-report-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f5f0fa;border-color:#e4d9ed}.membership-report-card>div{display:grid;gap:5px;min-width:0}.membership-report-card span{font-size:12px;color:#78638a}.membership-report-card strong{font-size:23px;color:#513b69;overflow-wrap:anywhere}.membership-report-card small{font-size:11px;color:#998da4}.membership-report-card button{border:0;border-radius:12px;background:#fff;color:#634c78;font-size:12px;font-weight:700;padding:12px;white-space:nowrap}.membership-report-total{display:grid;gap:8px;background:#5b4371;color:#fff;border-radius:20px;padding:22px;margin-bottom:18px}.membership-report-total small,.membership-report-total span{font-size:12px;color:#e5d8ed}.membership-report-total strong{font-size:32px;overflow-wrap:anywhere}.membership-report-page .settings-card h2{font-size:17px;margin:0 0 8px}.membership-report-row{width:100%;display:flex;justify-content:space-between;gap:12px;padding:16px 0;border:0;border-bottom:1px solid #eee;background:transparent;text-align:left;align-items:center;color:#333}.membership-report-row>span{display:grid;gap:5px;min-width:0}.membership-report-row strong{font-size:15px}.membership-report-row small{font-size:11px;color:#928a99}.membership-report-row b{font-size:14px;white-space:nowrap;color:#61477a}.membership-report-row i{font-style:normal;color:#aaa}
@media(max-width:350px){.membership-available{align-items:flex-start;flex-direction:column}.membership-available aside{text-align:left}}
.membership-page [data-member-panel][hidden]{display:none!important;}
.membership-page .secondary.ready-to-use{background:#735589;border:1px solid #735589;color:white;box-shadow:0 3px 10px #73558920;}

/* v75: compact ledger actions and independently scrolling reports. */
.membership-page .membership-expiry-field input{display:block;width:100%;min-width:0;max-width:100%;height:46px;min-height:46px;box-sizing:border-box;font:inherit;appearance:none;-webkit-appearance:none;}
.membership-icon-buttons{display:flex;gap:6px;justify-content:flex-end;}
.membership-history-actions .membership-icon-buttons button{width:34px;min-width:34px;height:34px;min-height:34px;padding:4px;border:1px solid #e6e3eb;border-radius:10px;background:#f7f5f9;font-size:17px;line-height:1;}
.report-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;}
.sales-days-scroll{max-height:360px;}.sales-days-scroll .sales-day{min-height:72px;box-sizing:border-box;}
.sales-records-scroll{max-height:500px;}.sales-records-scroll .sales-item{min-height:100px;box-sizing:border-box;}
.membership-people-scroll{max-height:460px;}.membership-people-scroll .membership-report-row{min-height:92px;box-sizing:border-box;}
.membership-history-actions{flex-direction:column;align-items:flex-end;gap:7px;}
.membership-page input{height:46px;box-sizing:border-box;}
.storage-totals{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.storage-totals>span{display:grid;gap:5px;padding:12px;background:#f4f0f7;border-radius:12px;font-size:12px;color:#766582}.storage-totals b{font-size:18px;color:#503b60}.storage-totals small{font-size:11px}.storage-panel .hint{line-height:1.7}
.diagnostic-list{max-height:360px;overflow-y:auto}.diagnostic-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #eee;font-size:12px}.diagnostic-row small{display:block;margin-top:5px;font-size:10px;color:#999}.diagnostic-row b{white-space:nowrap}.diagnostic-row .slow{color:#bd536d}

.alert-list{max-height:460px;overflow-y:auto;margin-top:16px}.alert-row{display:flex;flex-direction:column;gap:8px;width:100%;text-align:left;padding:18px;border:0;border-bottom:1px solid #e7e4ec;background:#fff;color:#30303a}.alert-row span{font-size:13px;color:#787582}.alert-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.alert-actions button{flex:1 1 130px}.alert-compose textarea{width:100%;box-sizing:border-box;font:inherit;line-height:1.6}.alert-history-message{white-space:pre-wrap;overflow-wrap:anywhere}.alert-compose{overflow-wrap:anywhere}

.alert-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px;border-radius:18px;background:#eeebe6;margin:8px 0 20px}.alert-tabs button{min-width:0;border:0;background:transparent;border-radius:14px;padding:12px 2px;display:flex;flex-direction:column;align-items:center;gap:7px;color:#80786f;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}.alert-tabs button b{font-size:14px;font-weight:600}.alert-tabs button[aria-pressed=true]{background:#fff;color:#59462f;box-shadow:0 2px 8px #493c2410}.alert-tabs button:focus-visible{outline:2px solid #a88a62;outline-offset:1px}

.alert-swipe{display:flex;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:12px;margin-bottom:8px;background:#b85c62;overscroll-behavior-x:contain}.alert-swipe::-webkit-scrollbar{display:none}.alert-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;background:#fff}.alert-slide>.settings-card{margin:0;box-shadow:none;border-radius:0}.alert-swipe-delete{flex:0 0 76px;scroll-snap-align:end;border:0;background:#b85c62;color:#fff;font:inherit;font-size:13px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;cursor:pointer}.alert-swipe-delete span{font-size:21px}.alert-swipe-delete:disabled{opacity:.55}.alert-swipe-delete:focus-visible{outline:2px solid #fff;outline-offset:-5px}.alert-swipe-hint{margin-bottom:0}

#alert-delete-status{position:fixed;z-index:1100;left:50%;bottom:calc(104px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100vw - 32px);width:max-content;padding:10px 14px;border-radius:14px;background:#f6f0e5;color:#685237;box-shadow:0 4px 18px #32230d16;font-size:12px;pointer-events:none;text-align:center}

.alert-bulk{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 16px;padding:12px;border:1px solid #e6e1da;border-radius:14px;background:#fff}.alert-bulk label{display:flex;align-items:center;gap:7px;font-size:12px;color:#6c6256;min-height:36px}.alert-bulk input,.alert-item-check input{width:20px;height:20px;accent-color:#9a7852;flex-shrink:0}.alert-bulk-delete{border:0;border-radius:10px;padding:10px 12px;background:#b85c62;color:#fff;font:inherit;font-size:12px;cursor:pointer}.alert-bulk-delete:disabled{background:#efebe6;color:#a49b91;cursor:default}.alert-check-row{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:stretch;margin-bottom:8px}.alert-item-check{display:flex;align-items:center;justify-content:center;cursor:pointer;background:#fff;border-radius:10px 0 0 10px}.alert-check-row .alert-swipe{margin-bottom:0}

/* Compact alert inbox; retain comfortable touch targets. */
.alerts-page .section-heading{margin-bottom:12px}
.alerts-page .alert-tabs{margin:4px 0 12px;padding:4px;border-radius:14px}
.alerts-page .alert-tabs button{padding:8px 2px;gap:3px;border-radius:11px;min-height:48px}
.alerts-page .alert-bulk{padding:6px 10px;margin-bottom:10px;border-radius:12px}
.alerts-page .alert-bulk-delete{min-height:40px;padding:8px 10px}
.alerts-page>.hint{margin:8px 0;font-size:12px;line-height:1.5}
.alerts-page .alert-list{margin-top:8px}
.alerts-page .alert-check-row{margin-bottom:5px;grid-template-columns:34px minmax(0,1fr)}
.alerts-page .alert-row{padding:10px 12px;gap:4px;min-height:64px;justify-content:center}
.alerts-page .alert-row strong{font-size:14px;line-height:1.4}
.alerts-page .alert-row span{font-size:12px;line-height:1.4}
.alerts-page .alert-slide>.settings-card{padding:12px}
.alerts-page .alert-slide>.settings-card p{margin:6px 0;font-size:12px;line-height:1.5}
.alerts-page .alert-slide>.settings-card strong{font-size:14px}
.alerts-page .alert-swipe-delete{gap:4px}
.alerts-page .alert-swipe-delete span{font-size:18px}

/* Quiet inbox hierarchy: one header, category strip, one shared list surface. */
.alerts-header{display:flex;align-items:center;gap:12px;padding:18px 20px;background:#fff;border-bottom:1px solid #eeece8;min-height:76px;box-sizing:border-box}
.alerts-header>button{width:36px;height:40px;background:transparent;border:0;font-size:30px;color:#49443d;border-radius:10px;line-height:1;cursor:pointer}
.alerts-header>span:nth-child(2){display:flex;flex-direction:column;gap:3px;font-size:10px;color:#938b81;letter-spacing:.02em}
.alerts-header strong{font-size:15px;color:#403c36;font-weight:600;letter-spacing:0}
.alerts-header>.app-version{margin-left:auto;color:#b1aaa1}
.operations-page.alerts-page{padding:24px 18px 28px}
.alerts-title-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 20px}
.alerts-title-row h2{font-size:23px;font-weight:650;letter-spacing:-.04em;display:flex;align-items:center;gap:8px}
.alerts-title-row h2>span{font-size:12px;font-weight:600;letter-spacing:0;color:#8a6d4a;background:#f0e9df;min-width:24px;padding:4px 7px;border-radius:8px;text-align:center}
.alerts-title-row p{font-size:12px;color:#969087;margin:7px 0 0;line-height:1.5}
.alert-history-toggle{border:0;background:transparent;color:#82786b;font:inherit;font-size:12px;white-space:nowrap;min-height:44px;padding:8px 0 8px 8px;cursor:pointer}.alert-history-toggle span{font-size:18px;margin-left:5px}
.alerts-page .alert-tabs{padding:0;border-radius:0;background:transparent;border-bottom:1px solid #e5e0d8;gap:0;margin:0 0 18px}
.alerts-page .alert-tabs button{position:relative;gap:5px;padding:9px 2px 12px;min-height:60px;border-radius:0;color:#a29b92;background:transparent;box-shadow:none}
.alerts-page .alert-tabs button b{font-size:12px;font-weight:500;color:inherit}
.alerts-page .alert-tabs button[aria-pressed=true]{color:#675237;font-weight:650;background:transparent;box-shadow:none}
.alerts-page .alert-tabs button[aria-pressed=true]:after{content:"";position:absolute;bottom:-1px;left:12px;right:12px;height:2px;background:#927650;border-radius:2px}
.alert-inbox{background:#fff;border:1px solid #eae6df;border-radius:16px;overflow:hidden;box-shadow:0 4px 16px #4a3a2103}
.alerts-page .alert-bulk{margin:0;border:0;border-bottom:1px solid #eeeae5;border-radius:0;padding:8px 12px;background:#fff;min-height:54px;box-sizing:border-box}
.alerts-page .alert-bulk label{color:#8a8176;font-size:12px}
.alerts-page .alert-bulk-delete{background:#b96a70;border-radius:8px;min-height:34px;padding:7px 10px;font-size:11px}.alerts-page .alert-bulk-delete:disabled{background:#f4f2ee;color:#b5ada3}
.alerts-page .alert-list{margin:0;max-height:440px}
.alerts-page .alert-check-row{margin:0;grid-template-columns:40px minmax(0,1fr);border-bottom:1px solid #f0ede8}
.alerts-page .alert-check-row:last-child{border-bottom:0}
.alerts-page .alert-item-check{border-radius:0;background:#fff}
.alerts-page .alert-swipe{border-radius:0;background:#fff}
.alerts-page .alert-row{min-height:74px;padding:13px 15px 13px 2px;gap:7px;border:0;box-sizing:border-box}
.alerts-page .alert-row .alert-row-heading{display:flex;align-items:center;gap:8px;color:#3e3c38}
.alerts-page .alert-row-heading strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.alerts-page .alert-row-heading small{font-size:10px;color:#9b8363;background:#f6f2ec;border-radius:4px;padding:2px 5px;white-space:nowrap}
.alerts-page .alert-row .alert-row-meta{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:11px;color:#a19b93}
.alerts-page .alert-row-meta span{font-size:11px;color:#a19b93}
.alerts-page .alert-list>.empty{font-size:13px;padding:42px 16px;color:#aaa196;line-height:1.6;margin:0}
.alert-footnote{font-size:10px;text-align:center;color:#aaa195;line-height:1.7;margin:14px 0 0}
.alerts-page .alert-compose{border-color:#eae3d8;border-radius:16px;box-shadow:none;margin-bottom:18px;padding:18px}
.alerts-page .alert-compose h3{color:#74624c;font-size:14px}
.alerts-page .alert-compose textarea{border-radius:10px;border-color:#e5dfd6;font-size:14px;padding:12px}
.alerts-page .alert-slide>.settings-card{border:0;padding:15px 14px 15px 2px;background:#fff}
@media(max-width:350px){.operations-page.alerts-page{padding:20px 13px 24px}.alerts-header{padding:14px 13px}.alerts-title-row h2{font-size:21px}.alert-history-toggle{font-size:11px}.alerts-page .alert-row-heading strong{font-size:13px}}

.home-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 18px}.home-quick-grid .home-confirmed-card{min-width:0;margin:0;padding:17px 15px;border-radius:18px;gap:10px;align-content:start}.home-quick-grid .home-confirmed-title{font-size:16px;gap:7px;white-space:nowrap;letter-spacing:-.035em}.home-quick-grid .home-confirmed-title i{width:22px;height:22px;font-size:13px;flex-shrink:0}.home-quick-grid .home-card-caption{font-size:11px;line-height:1.5;word-break:keep-all}.home-quick-grid .home-card-count{gap:6px;min-width:0}.home-quick-grid .home-card-count strong{font-size:28px;line-height:1.3;overflow-wrap:anywhere;min-width:0}.home-quick-grid .home-card-count small{font-size:12px;margin-left:3px;font-weight:500;color:#969199}.home-quick-grid .home-card-count>span{font-size:20px;flex-shrink:0}@media(max-width:350px){.home-quick-grid{gap:8px}.home-quick-grid .home-confirmed-card{padding:14px 12px}.home-quick-grid .home-confirmed-title{font-size:14px;gap:5px}.home-quick-grid .home-card-caption{font-size:10px}.home-quick-grid .home-card-count strong{font-size:25px}}

/* Last verified view while the current connection is checked. */
.last-screen-preview{pointer-events:none}.resume-status{position:fixed;z-index:9999;top:calc(env(safe-area-inset-top,0px) + 10px);left:50%;transform:translateX(-50%);padding:9px 16px;border:1px solid #e5e1db;border-radius:30px;background:#fffaf2;box-shadow:0 4px 18px #0000000d;color:#6b6356;font-size:12px;white-space:nowrap}

.resume-status{pointer-events:none}

/* Nonblocking background-save status. */
.save-progress-popup{inset:auto 12px calc(84px + env(safe-area-inset-bottom)) auto;background:transparent;display:block;pointer-events:none;max-width:calc(100vw - 24px)}
.save-progress-card{min-width:0;padding:10px 14px;border-radius:16px;display:grid;grid-template-columns:18px auto 14px;gap:4px 8px;box-shadow:0 3px 18px #201c2c1c;text-align:left;border:1px solid #ece9e4}
.save-progress-emoji{font-size:16px}.save-progress-label{font-size:12px}.save-progress-card small{grid-column:2/4;font-size:10px}.save-progress-spinner{grid-column:3;grid-row:1;width:12px;height:12px;margin:0}.save-result{position:fixed;right:16px;bottom:calc(148px + env(safe-area-inset-bottom));z-index:1100;padding:10px 14px;background:#f1f7f2;color:#386147;border:1px solid #dce8df;border-radius:16px;font-size:12px;pointer-events:none;box-shadow:0 3px 15px #0000000b}.save-result.failed{background:#fff2ef;color:#9b403a;border-color:#f1d7d2}

.remaining-sort-tabs{margin:12px 0 8px}.remaining-sort-tabs button{flex:1;font-size:13px}.alert-compose-delete{width:100%;color:#a64f5b;background:#fff5f5;border:1px solid #efd9dc}

.remaining-row .remaining-customer{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 8px}.remaining-row .remaining-visits{font-size:11px;font-weight:400;color:#8a8f98;white-space:nowrap}.remaining-row .remaining-created{grid-column:1/-1;font-size:10px;font-weight:400;color:#9297a0;line-height:1.4}.remaining-row{row-gap:6px}

.name-with-visits{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px}.name-with-visits .name-visit-count{font-size:11px;font-weight:400;color:#8a8f98;white-space:nowrap;line-height:1.4}

/* Compact reservation detail: primary payment action, secondary links, folded actions. */
.detail-footer{margin-top:14px;border-top:1px solid #e9e7e8;padding-top:4px}
.detail-footer .customer-visit-button{margin:0;padding:12px 4px;border:0;background:transparent;box-shadow:none;border-radius:8px;font-size:12px;font-weight:500;color:#70637b;min-height:44px}
.detail-more summary{display:flex;justify-content:space-between;align-items:center;list-style:none;cursor:pointer;padding:12px 4px;min-height:44px;box-sizing:border-box;font-size:12px;color:#77747d}
.detail-more summary::-webkit-details-marker{display:none}.detail-more[open] summary>span{transform:rotate(180deg)}
.detail-more-actions{display:grid;gap:0;background:#fff;border:1px solid #ece9ed;border-radius:12px;overflow:hidden;margin:4px 0}
.detail-more-actions button{min-height:44px;text-align:left;padding:12px;border:0;border-bottom:1px solid #f2f0f2;background:#fff;color:#66616b;font-size:12px}
.detail-more-actions button:last-child{border-bottom:0}.detail-more-actions .danger{color:#b66570}
.detail-more summary:focus-visible,.detail-footer button:focus-visible{outline:2px solid #8c799d;outline-offset:2px}

.revenue-submit-row{display:flex;gap:8px;align-items:stretch}.revenue-submit-row>.primary{flex:1;min-width:0}.noshow-button{flex:0 0 64px;padding:4px;white-space:nowrap;border:1px solid #323235;border-radius:12px;background:#323235;color:#fff;font-size:12px;font-weight:600}
.detail-actions-inline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}.detail-actions-inline button{font-size:11px;padding:10px 3px}.detail-actions-inline button:disabled{opacity:.4}
.detail-visits{margin-top:14px;border-top:1px solid #e9e7e8}.detail-visits summary{display:flex;align-items:center;gap:6px;padding:14px 2px;list-style:none;font-size:12px;color:#70637b;cursor:pointer}.detail-visits summary::-webkit-details-marker{display:none}.detail-visits summary small{font-size:10px;color:#92909a}.detail-visits summary>span{margin-left:auto}.visit-chart{max-height:300px;overflow:auto;background:#fff;border:1px solid #ece9ed;border-radius:12px}.visit-chart table{width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed}.visit-chart th,.visit-chart td{padding:12px 8px;text-align:left;border-bottom:1px solid #f0edef;overflow-wrap:anywhere}.visit-chart th{position:sticky;top:0;background:#f8f7f9;color:#89838e;font-weight:500}.visit-chart th:first-child{width:30%}.visit-chart th:last-child{width:25%}.visit-chart td small{display:block;color:#96909a;font-size:10px;margin-top:4px}

/* Unified reservation controls: aligned edges and consistent touch targets. */
.detail-modal .revenue-form{padding:14px;margin:12px 0;border-radius:16px}
.detail-modal .membership-entry{padding:12px;margin-bottom:16px;border-radius:10px;min-height:48px;box-sizing:border-box}
.detail-modal .membership-entry small{display:none}.detail-modal .membership-entry strong{font-size:13px}.detail-modal .membership-entry b{font-size:11px}
.detail-modal .payment-inputs{gap:8px}.detail-modal .payment-inputs input{min-height:46px;border-radius:10px;box-sizing:border-box}
.detail-modal .revenue-submit-row{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:8px;margin-top:8px}
.detail-modal .revenue-submit-row>button{width:100%;height:48px;min-height:48px;margin:0;padding:0 8px;border-radius:10px;box-shadow:none;box-sizing:border-box;font-size:12px;line-height:1.3}
.detail-modal .revenue-submit-row:has(>button:only-child){grid-template-columns:1fr}
.detail-modal .detail-visits{margin:12px 0;background:#fff;border:1px solid #eaeaed;border-radius:14px;overflow:hidden}
.detail-modal .detail-visits summary{padding:0 14px;min-height:48px;box-sizing:border-box;color:#615b69;font-weight:500}.detail-modal .detail-visits[open] summary>span{transform:rotate(180deg)}
.detail-modal .visit-chart{border:0;border-top:1px solid #efedf0;border-radius:0}
.detail-management{margin:12px 0 0}.detail-management h3{font-size:10px;font-weight:500;color:#96909a;margin:0 0 7px 2px}
.detail-management .detail-actions-inline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;border:1px solid #e7e4e9;border-radius:12px;overflow:hidden;background:#fff}
.detail-management .detail-actions-inline button{height:46px;min-height:46px;border:0;border-right:1px solid #eeeaf0;border-radius:0;padding:0 4px;font-size:12px;background:transparent;box-shadow:none;white-space:nowrap}
.detail-management .detail-actions-inline button:last-child{border-right:0}.detail-management .detail-actions-inline .danger{color:#b76c74}

/* Matched primary actions: equal widths, aligned height, consistent text. */
.detail-modal .revenue-submit-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.detail-modal .revenue-submit-row>button{height:52px;min-height:52px;font-size:12px;font-weight:600;line-height:1.5;white-space:normal;text-wrap:balance;display:flex;align-items:center;justify-content:center;padding:4px 8px}

/* No-show belongs with reservation management, not the primary payment action. */
.detail-modal .revenue-submit-row{grid-template-columns:1fr}.detail-management .detail-actions-inline{grid-template-columns:repeat(4,minmax(0,1fr))}.detail-management .detail-actions-inline button{font-size:11px;padding:0 2px}
.list-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0;color:#777;font-size:12px}.list-pager button{border:1px solid #e6e6ec;border-radius:10px;background:#fff;padding:8px 12px;color:#34343a}.list-pager button:disabled{opacity:.35}

.note-photos{margin:12px 0;padding:12px 0;border-top:1px solid #eee}
.note-photos-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:600}.note-photos-head small{color:#96949b;font-weight:400}.photo-add{position:relative;display:inline-flex;align-items:center;padding:9px 12px;background:#f1eff5;border-radius:10px;color:#53485f;font-size:12px;cursor:pointer}.photo-add input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.photo-tile{position:relative;min-width:0}.photo-tile>button:first-child{width:100%;height:82px;padding:0;border:1px solid #e7e5eb;border-radius:10px;overflow:hidden;background:#f7f6f8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#686171}.photo-tile span{font-size:25px}.photo-tile small{font-size:11px}.photo-tile img{width:100%;height:100%;object-fit:cover}.photo-remove{position:absolute;top:3px;right:3px;width:28px;height:28px;border:0;border-radius:50%;background:#fff;color:#665967;font-size:20px}.photo-hint{font-size:10px!important;color:#96949b;margin:8px 0 0!important;line-height:1.5}.photo-viewer{width:min(92vw,700px);max-height:90dvh;padding:44px 10px 12px;border:0;border-radius:16px;background:#fff}.photo-viewer::backdrop{background:#000a}.photo-viewer>button{position:absolute;right:6px;top:4px;width:38px;height:38px;border:0;background:transparent;font-size:30px}.photo-viewer img{display:block;max-width:100%;max-height:76dvh;object-fit:contain;margin:auto}

.naver-import-entry{width:100%;margin-bottom:18px;border-color:#cfddd5;color:#285b43;background:#f4f8f5}.naver-import-page{max-width:620px}.naver-capture-card{padding:16px;border:1px solid #e1e6e2;border-radius:16px;margin-bottom:24px;background:#fafcfb}.naver-capture{display:flex;justify-content:center;padding:14px;background:#e7f0e9;color:#285b43;font-size:14px}.naver-import-page fieldset{border:0;padding:0;margin:0;min-width:0}.naver-import-page h2{font-size:17px;margin:24px 0 12px}.naver-candidates{max-height:230px;overflow:auto;margin:8px 0 12px;border:1px solid #eee;border-radius:12px}.naver-candidates .list-item{padding:12px;min-height:60px;gap:8px;text-align:left}.naver-candidates small{display:block;font-size:12px;color:#888;margin-top:4px}.naver-candidates .list-item>span:last-child{font-size:12px;flex-shrink:0}.naver-selected{font-size:13px;color:#285b43;padding:12px;background:#f0f5f1;border-radius:10px}.naver-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.naver-import-page input[type=date],.naver-import-page input[type=time]{min-width:0;width:100%;box-sizing:border-box;min-height:48px}.naver-check{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.5;margin:15px 0}.naver-check input{width:18px!important;height:18px;flex-shrink:0;margin:1px 0}.naver-services{max-height:230px;overflow:auto;border:1px solid #eee;border-radius:12px;padding:8px}.naver-services label{display:flex;gap:10px;padding:10px;font-size:14px;align-items:center}.naver-services input{width:18px;height:18px;margin:0}.naver-services small{font-size:11px;color:#888}.naver-import-page .primary{width:100%}#naver-progress{font-size:13px;color:#4d6855}.naver-capture-card summary{font-size:12px;color:#777;margin-top:12px}.naver-capture-card textarea{width:100%;box-sizing:border-box;margin:10px 0}

.booking-when{margin:16px 0;text-align:left;border:1px solid #e6e4e8;border-radius:14px;background:#faf9fb;overflow:hidden}.booking-when>div{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;align-items:start;padding:14px 16px}.booking-when>div+div{border-top:1px solid #e6e4e8}.booking-when>div>span{font-size:12px;line-height:22px;color:#85808b;font-weight:500}.booking-when strong{font-size:15px;line-height:22px;color:#343039;overflow-wrap:anywhere}.booking-when strong small{display:block;font-size:12px;font-weight:400;color:#85808b;margin-top:3px}.confirm-card .booking-when{margin:18px 0}.naver-fields{display:block;padding:16px;border:1px solid #e3e7e4;border-radius:16px;background:#fafcfb;margin:12px 0 20px}.naver-fields label.field{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:10px;margin:0 0 12px}.naver-fields label.field>span{font-size:12px;color:#6b7470}.naver-import-page .naver-fields input{margin:0;padding:12px 10px;font-size:16px;background:white;min-height:48px}.naver-fields .booking-when{border:0;background:#edf3ee;margin:4px 0 0}.naver-fields .booking-when>div{padding:10px 12px;grid-template-columns:64px minmax(0,1fr);gap:10px}.naver-fields .booking-when strong{font-size:13px}.naver-fields .booking-when>div+div{border-color:#dce6de}@media(max-width:350px){.naver-fields{padding:12px}.naver-fields label.field{grid-template-columns:56px minmax(0,1fr);gap:8px}.booking-when>div{padding:12px;grid-template-columns:65px minmax(0,1fr);gap:8px}.booking-when strong{font-size:14px}.naver-fields .booking-when>div{grid-template-columns:56px minmax(0,1fr);gap:8px}}

.naver-original{border:1px solid #dce6df;border-radius:14px;background:#f6faf7;margin:12px 0;overflow:hidden}.naver-original>button{display:flex;align-items:center;gap:12px;width:100%;padding:12px;background:transparent;border:0;text-align:left;color:#324f3d}.naver-original img{width:58px;height:112px;object-fit:contain;background:white;border:1px solid #e2e5e3;border-radius:6px;flex-shrink:0}.naver-original strong{display:block;font-size:14px}.naver-original small{display:block;font-size:12px;line-height:1.5;color:#768078;margin-top:5px}.naver-original>p{font-size:11px;color:#88908a;margin:0;padding:0 12px 12px}.naver-compare-dialog{box-sizing:border-box;width:min(94vw,620px);height:90dvh;max-height:90dvh;max-width:94vw;padding:0;border:0;border-radius:18px;overflow:hidden;background:#fff;color:#343039}.naver-compare-dialog[open]{display:flex;flex-direction:column}.naver-compare-dialog::backdrop{background:#0009}.naver-compare-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;flex-shrink:0}.naver-compare-dialog [data-close]{width:38px;height:38px;background:transparent;border:0;font-size:28px}.naver-compare-current{padding:0 14px;flex-shrink:0}.naver-compare-current>span{display:block;color:#85808b;font-size:11px}.naver-compare-current>strong{display:block;font-size:15px;margin-top:3px}.naver-compare-current .booking-when{margin:8px 0}.naver-compare-current .booking-when>div{padding:7px 10px}.naver-compare-current .booking-when strong{font-size:13px}.naver-compare-current .booking-when strong small{display:inline;margin-left:8px;font-size:10px}.naver-compare-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 14px 10px;flex-shrink:0;font-size:11px;color:#777}.naver-compare-tools button{font-size:12px;border:1px solid #ddd;border-radius:8px;padding:7px 14px;background:#f7f7f7;white-space:nowrap}.naver-compare-image{flex:1;min-height:0;overflow:auto;background:#f0f0f0;overscroll-behavior:contain;padding:8px}.naver-compare-image img{display:block;width:100%;height:auto;max-width:none;margin:0 auto;background:white}.naver-compare-dialog.zoomed .naver-compare-image img{width:200%}

/* v119 approved mirror app icon */
.startup-mark{width:96px;height:96px}.startup-mark img,.brand-mark img{display:block;width:100%;height:100%;object-fit:contain;border-radius:20%}.login .brand-mark{padding:0;background:transparent;overflow:hidden}

/* v122 header brand icon */
.salon-emblem{background:transparent;overflow:hidden;border-radius:25%;flex-shrink:0}.salon-emblem img{display:block;width:100%;height:100%;object-fit:contain}

.brand-lockup .salon-emblem{background:#fff}
.naver-fields{--label-width:4rem;--row-gap:10px}
.naver-fields label.field,.naver-fields .time-choice-row,.naver-fields .booking-when>div{display:grid;grid-template-columns:var(--label-width) minmax(0,1fr);gap:var(--row-gap);align-items:center}
.naver-fields .time-choice-row{margin:0 0 12px}
.time-choice-row>span{font-size:12px;color:#6b7470}
.naver-fields .time-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.time-options label.secondary{display:flex;align-items:center;justify-content:center;gap:3px;margin:0;padding:4px;min-height:44px;font-size:13px}
.naver-fields .time-options input[type=radio]{width:14px;height:14px;margin:0;flex:none}
.naver-fields .booking-when>div{padding-inline:0}
.naver-fields input:is([type=date],[type=time]){height:48px;margin:0;max-width:100%}
@media(max-width:350px){.naver-fields{--label-width:56px;--row-gap:8px}}
.naver-paste-box{margin-top:16px}.naver-paste-box>label{font-weight:600;font-size:14px}

#naver-import-form .naver-fields label.field input:is([type=date],[type=time]){
  -webkit-appearance:none;appearance:none;box-sizing:border-box;width:100%;min-width:0;max-width:100%;
  height:46px;min-height:46px;margin:0;padding:0 10px;font-size:16px;
}
#naver-import-form .naver-fields label.field{min-width:0;margin:0}
#naver-import-form .naver-fields .booking-when>div{
  padding:10px 12px;align-items:baseline;line-height:1.4;
}
#naver-import-form .naver-fields .booking-when strong{min-width:0;text-align:start}
#naver-import-form .naver-fields .booking-when small{display:block;margin:3px 0 0}
.agreement-consent{margin:18px 0 12px;text-align:left;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
.agreement-consent h3{margin:0 0 12px}
.agreement-consent p{margin:0 0 10px;text-align:left}
.agreement-consent p strong{display:block}
dialog label.agreement-consent-check{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:9px;margin:12px 0 18px;text-align:left;line-height:1.5;word-break:keep-all}
dialog label.agreement-consent-check input[type=checkbox]{width:18px;height:18px;min-height:0;margin:3px 0 0;padding:0}
.signature-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}
.signature-heading button{width:auto;min-height:36px;background:transparent;color:#65576d;border:0;padding:5px 8px;font:inherit;font-size:14px}
.signature-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:8px;margin-top:14px}
.signature-actions button{width:100%;margin:0;min-height:46px}
dialog.agreement-preview{width:min(94vw,520px);max-height:90dvh;padding:0;border:0;border-radius:16px;overflow:hidden}
dialog.agreement-preview[open]{display:flex;flex-direction:column}
.agreement-preview-head,.agreement-preview-actions{display:flex;align-items:center;gap:10px;padding:12px 16px;flex:none}
.agreement-preview-head{justify-content:space-between}
.agreement-preview-head button[data-close]{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;box-shadow:none;background:radial-gradient(circle,#f1eff3 0 15px,transparent 16px);color:#514959}.agreement-preview-head button[data-close]:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
.agreement-preview-paper{overflow:auto;min-height:0;padding:10px;background:#eeeaf0}
.agreement-preview-paper img{display:block;width:100%}
.agreement-preview-actions{flex-wrap:wrap}
.agreement-preview-actions button{flex:1;margin:0;min-height:44px}
.agreement-preview-actions [role=status]{width:100%;margin:0}
.agreement-preview-actions [role=status]:empty,.agreement-preview-actions [hidden]{display:none}
.settings-card.mail-result{display:block;padding:10px 14px;font-size:13px;line-height:1.45;color:#545862;box-shadow:none}
.mail-result header strong,.mail-result li b{font-size:inherit;font-weight:500}
.mail-result header small{font-size:12px;white-space:nowrap;text-align:right}
.mail-result p{margin:0}
.mail-result header{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;flex-wrap:nowrap}
.mail-check-summary{display:flex;align-items:center;justify-content:space-between;gap:8px}.mail-check-summary button{flex:none;background:transparent;color:#545862;border:0;font:inherit;padding:6px 8px;cursor:pointer}.mail-check-summary+header{margin-top:.65rem}
.mail-result small,.mail-result time{color:#545862}
.mail-result ul{padding:0;margin:.25rem 0 0;list-style:none}
.mail-result li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.65rem;align-items:center;padding:.3rem 0;border-top:1px solid #e8e8eb}
.mail-result li b{overflow-wrap:anywhere}
.mail-result li span{font-size:.85em;font-weight:600}
.mail-result time{font-variant-numeric:tabular-nums}

.settings-mail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e4e4e8;
  border-radius: 16px;
}
.settings-mail h3 { margin: 0; font-size: 1rem; }
.settings-mail .secondary { width: auto; margin: 0; min-height: 44px; padding: 8px 14px; }
.settings-mail [data-mail-status] {
  grid-column: 1 / -1;
  margin: 0;
  color: #595960;
  font-size: .875rem;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

dialog.page-guide {
 position:fixed;inset:0;box-sizing:border-box;margin:0;width:100%;height:100%;max-width:none;max-height:none;
 border:0;padding:0;overflow:auto;background:rgba(25,21,31,.90);color:#fff;text-align:left;word-break:keep-all;
}
.page-guide::backdrop {background:transparent;}
.page-guide.has-spot {background:transparent;overflow:hidden;}
.page-guide .coach-top,.page-guide .coach-footer,.page-guide .coach-copy,.page-guide .coach-example {position:relative;z-index:2;width:min(86%,440px);margin-inline:auto;box-sizing:border-box;}
.page-guide .coach-top,.page-guide .coach-footer {display:flex;align-items:center;gap:12px;color:#eee5f2;font-size:.86rem;}
.page-guide .coach-top {padding-top:max(10px,env(safe-area-inset-top));font-weight:650;}
.page-guide .coach-top span:nth-child(2){margin-left:auto;font-variant-numeric:tabular-nums;}
.page-guide .coach-top button,.page-guide .coach-footer button {background:transparent;border:0;color:inherit;min-height:44px;padding:0 6px;}
.page-guide .coach-top button {font-size:1.8rem;min-width:44px;}
.page-guide .coach-copy {margin-top:clamp(24px,16vh,150px);}
.page-guide .coach-copy h2 {color:#fff;font-size:clamp(1.65rem,6vw,2.4rem);line-height:1.24;letter-spacing:-.045em;margin:0;}
.page-guide .coach-copy p {color:#f0eaf3;font-size:1rem;line-height:1.6;margin:10px 0 0;}
.page-guide strong {color:#e1c2ff;}
.page-guide .coach-example {margin-top:24px;padding-bottom:76px;}
.page-guide blockquote,.page-guide dl {background:#fffbff;color:#312339;padding:17px 20px;border-radius:16px;margin:0 0 12px;}
.page-guide dl {display:grid;grid-template-columns:auto 1fr;gap:8px;}
.page-guide dd {text-align:right;margin:0;font-weight:650;}
.page-guide .coach-action {width:100%;min-height:52px;border:2px solid #c69ee5;border-radius:14px;background:#faf5ff;color:#392449;font-size:1.05rem;font-weight:700;display:flex;justify-content:space-between;align-items:center;padding:10px 18px;}
.page-guide .coach-footer {justify-content:space-between;padding-bottom:max(8px,env(safe-area-inset-bottom));}
.page-guide .coach-footer button:last-child {margin-left:auto;}
.page-guide .coach-spot {display:none;}
.page-guide.has-spot .coach-spot {display:block;position:absolute;z-index:1;padding:0;min-width:0;min-height:0;border:3px solid #d4afff;border-radius:12px;background:transparent;box-shadow:0 0 0 200vmax rgba(25,21,31,.9);}
.page-guide.has-spot .coach-copy {position:absolute;left:0;right:0;margin-top:0;pointer-events:none;}
.page-guide.has-spot .coach-copy::after {content:'↓';position:absolute;left:var(--arrow-x);color:#e2c7ff;font-size:23px;line-height:26px;}
.page-guide.has-spot .coach-copy[data-direction=up]::after {content:'↑';bottom:100%;}
.page-guide.has-spot .coach-example {position:absolute;bottom:0;right:7%;width:auto;padding:0;margin:0;}
.page-guide.has-spot .coach-action {width:auto;background:transparent;border:0;color:white;font-size:.9rem;min-height:44px;}
.page-guide.has-spot .coach-footer {position:absolute;bottom:0;left:7%;width:auto;}
.page-guide.has-spot .coach-footer button:last-child {display:none;}
.settings-page .guide-entry {display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 16px;margin:8px 0 14px;text-align:left;}

.calendar-cell.calendar-drop-target {outline:3px solid #715791;outline-offset:-3px;background:#f3edf9;}
.calendar-name[data-movable="true"] {user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;}
.calendar-name.is-dragging {opacity:.65;cursor:grabbing;}

.booking-practice {position:fixed;z-index:100;bottom:max(10px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(420px,calc(100% - 24px));box-sizing:border-box;background:#33273f;color:white;border-radius:18px;padding:12px 18px;box-shadow:0 8px 32px #27193540;}
.booking-practice header {display:flex;align-items:center;gap:10px;}
.booking-practice header span {font-size:.85rem;color:#dbc9e5;}
.booking-practice header button {margin-left:auto;background:transparent;border:0;color:white;font-size:1.5rem;min-width:44px;min-height:44px;}
.booking-practice p {margin:4px 0 10px;line-height:1.5;}
.practice-target {outline:3px solid #925bb7!important;outline-offset:2px;scroll-margin-block:100px;}

.app-shell:has(+ .booking-practice) .naver-import-page {padding-bottom:220px;}
.app-shell:has(+ .booking-practice) .calendar-cell {transition:min-height .32s ease,height .32s ease;}
.practice-calendar-row {outline:2px solid #925bb7;outline-offset:-2px;}

.calendar-moving-name{position:fixed;top:0;left:0;z-index:10000;pointer-events:none;user-select:none;padding:3px 6px;border-radius:6px;background:#fff;color:#393047;font:600 13px/1.3 system-ui,sans-serif;box-shadow:0 2px 9px #30243938;white-space:nowrap}
.calendar-cell:has(.calendar-name){-webkit-tap-highlight-color:transparent}
.calendar-name.is-dragging .calendar-person{opacity:.4}

.customer-member-badge{display:inline-block;vertical-align:middle;margin-inline-start:4px;padding:2px 6px;border-radius:999px;background:#e9f3ed;color:#345942;font:600 11px/1.35 system-ui,sans-serif;white-space:nowrap}
.profile-usage summary { cursor:pointer; font-weight:700; padding:4px 0; }
.profile-usage section { border-top:1px solid #e6e7eb; margin-top:16px; padding-top:14px; }
.profile-usage h3 { font-size:.9rem; margin:0 0 12px; }
.profile-usage dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; margin:0; }
.profile-usage dt { font-size:.8rem; color:#646873; }
.profile-usage dd { margin:4px 0 0; font-weight:650; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
#personal-form { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
#personal-form .field { margin:0; min-width:0; }
#personal-form input,#personal-form textarea { width:100%; min-width:0; max-width:100%; box-sizing:border-box; }
#personal-form input[type=date],#personal-form input[type=time] { display:block; appearance:none; -webkit-appearance:none; }
.personal-title-row { display:flex; align-items:center; gap:10px; margin-bottom:-8px; }
.personal-title-row label { font-size:.9rem; font-weight:600; }
.profile-name-link { background:transparent; border:0; color:inherit; padding:0; font:inherit; cursor:pointer; }
#profile-inline-form fieldset {border:0;margin:0;padding:0;min-width:0;display:grid;gap:14px}
#profile-inline-form label {display:grid;gap:4px;font-size:.82rem;color:#686773}
#profile-inline-form input,#profile-inline-form textarea {box-sizing:border-box;width:100%;min-width:0;padding:8px;border:1px solid transparent;border-radius:8px;background:#f7f7f9;color:#29282e;font:inherit;font-size:1rem}
#profile-inline-form .profile-inline-name {font-size:1.25rem;font-weight:700;background:transparent}
#profile-inline-form :is(input,textarea):focus {outline:2px solid #786298;background:white}
#personal-form .personal-title-row {justify-content:space-between}
#personal-form [data-action="personal-day-off"] {color:#aa273a;background:#fff1f2;border:1px solid #efbdc5}
.calendar-slide-viewport {position:relative;overflow:hidden;min-width:0}
#profile-inline-form {margin-bottom:20px}
#profile-inline-form textarea[name="careNote"] {display:block;min-height:5em;padding:12px;line-height:1.5;resize:vertical}
.month-track { position:relative; width:100%; }
.month-page[data-swipe] { touch-action:pan-y; }
.schedule-page .timeline .hour-row { height:var(--timeline-row-height,30px); }
.month-page .calendar-person .customer-member-badge { margin-inline-start:1px; padding:0 1px; font-size:8px; line-height:12px; vertical-align:1px; letter-spacing:-.6px; }
.timeline-events .customer-member-badge,.date-reservation-info .customer-member-badge { padding:1px 4px; font-size:10px; }
dialog.calendar-options { position:fixed; inset:auto; margin:0; width:min(340px,calc(100vw - 28px)); max-height:65dvh; box-sizing:border-box; padding:0; border:1px solid #e3e0e8; border-radius:18px; background:#fff; color:#302d36; box-shadow:0 8px 32px #28233726; overflow:auto; }
.calendar-options::backdrop { background:#28233712; }
.calendar-options header { display:flex; align-items:center; gap:8px; padding:15px 16px 12px; }
.calendar-options header strong { font-size:16px; line-height:1.4; }
.calendar-options header strong:focus { outline:none; }
.calendar-options-list { max-height:29dvh; padding:0 14px 4px; overflow:auto; }
.calendar-options-list button { display:grid; grid-template-columns:60px minmax(0,1fr) auto; align-items:center; gap:9px; width:100%; min-height:48px; padding:9px 0; background:white; border:0; border-top:1px solid #efedf1; text-align:left; }
.calendar-options-list time { text-align:left; color:#676371; padding:4px 0; font:500 11px/1.4 system-ui,sans-serif; font-variant-numeric:tabular-nums; white-space:nowrap; }
.calendar-options-list button > time + span {border-inline-start:3px solid #b9aac9;padding-inline-start:10px;min-width:0}.calendar-options-list .calendar-note {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#746d79}.calendar-options-list b { font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
.calendar-options-list small { display:block; margin-top:2px; color:#716d79; font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.calendar-options-list p { margin:0; padding:14px 0; border-top:1px solid #efedf1; color:#716d79; font-size:14px; }
.calendar-options footer { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:12px 14px 14px; border-top:1px solid #efedf1; }
.calendar-options footer button { min-height:44px; padding:6px; background:#f3f1f6; color:#4b4354; border:0; border-radius:10px; font-size:14px; font-weight:650; }
.calendar-options footer button:last-child { background:#eee8f4; color:#563d68; }.calendar-options footer button small {display:block;margin-top:2px;font-size:11px;font-weight:500;}
.timeline-stage .timeline-today { background:#574298; color:#fff; border:1px solid #574298; border-radius:999px; padding-inline:16px; font-weight:700; }
dialog.calendar-options { overflow:visible; }
.calendar-options::after { content:""; position:absolute; left:var(--arrow-left); width:12px; height:12px; background:white; border:solid #e3e0e8; pointer-events:none; }
.calendar-options[data-arrow="bottom"]::after { bottom:-7px; border-width:0 1px 1px 0; transform:translateX(-50%) rotate(45deg); }
.calendar-options[data-arrow="top"]::after { top:-7px; border-width:1px 0 0 1px; transform:translateX(-50%) rotate(45deg); }
.calendar-options-anchor { outline:2px solid #9278a8; outline-offset:-2px; }
.calendar-payment {display:grid;gap:2px;text-align:right;font-size:13px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}.calendar-deduction {color:#675082}
.profile-phone>div {display:flex;align-items:center;gap:8px;margin-top:4px}.profile-phone input {flex:1}.profile-phone a {display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:12px;background:#fff3f3;color:#bc3545;text-decoration:none}
.deposit-row input{width:18px;height:18px;vertical-align:middle;margin-right:6px;accent-color:#496958}.deposit-amount{width:7em;text-align:right;font:inherit;padding:.4em;border:1px solid #ddd;border-radius:8px}
.calendar-person .unpaid-mark,.calendar-legend .unpaid-mark{display:inline;color:#985014;font-size:.9em;font-weight:700;margin-right:1px}.calendar-legend .unpaid-key::before{display:none}
.detail-card .detail-edit-row,.detail-payment summary{width:100%;text-align:left;font:inherit;cursor:pointer;color:inherit;background:transparent}.detail-card .detail-edit-row{border:0;border-top:1px solid #eeedf0;border-radius:0}.detail-payment summary{list-style:none}.detail-payment summary::-webkit-details-marker{display:none}.detail-payment .revenue-form{margin:0 0 8px}.detail-modal>.membership-entry{width:100%;margin:12px 0}
.detail-status-bar{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}.detail-status-bar .detail-deposit{display:inline-flex;align-items:center;gap:5px;min-height:36px;margin-left:auto;padding:0 9px;border:1px solid #cecbc5;border-radius:10px;background:#faf9f6;color:#453e36;font-size:13px;cursor:pointer}.detail-deposit input{width:16px;height:16px;margin:0;accent-color:#38634f}.detail-deposit:has(:checked){background:#eef5ef;border-color:#aec7b5;color:#305640}
.service-form .menu-name-hint{font-size:12px;line-height:1.5;font-weight:400;color:#62636b}

.admin-title{display:flex;align-items:center;gap:10px}.admin-info{width:34px;height:34px;border-radius:50%;border:1px solid #cfcbd2;background:#fff;color:#514759;font-size:17px;font-weight:700}.access-admin dialog{width:min(92vw,500px);max-height:78vh;overflow:auto;border:1px solid #dedbe0;border-radius:20px;padding:24px;color:#302d34}.access-admin dialog::backdrop{background:#211b304d}.access-admin [data-admin-metrics]{white-space:pre-line;line-height:1.85;margin:16px 0}.access-admin .access-user small{overflow-wrap:anywhere}

.settings-page > .section-heading{align-items:flex-start;gap:12px}.settings-page .settings-admin-link{flex:none;width:auto;min-height:44px;min-width:44px;padding:0 12px;margin:0;border-radius:12px;font-size:14px;white-space:nowrap}

.access-user .trial-badge{display:inline-block;margin:3px 0 3px 6px;padding:2px 8px;background:#edf1ef;color:#355444;border-radius:12px;font-size:12px;font-weight:650}.access-user .trial-badge.due{background:#fff0dc;color:#804000}

.home-customers-card .customer-count,.home-customers-card .customer-plus{border:0;background:transparent;min-height:44px;font-weight:700}.customer-count{font-size:26px}.home-customers-card{column-gap:4px}.home-customers-card .customer-count{width:auto;padding:0 2px}.home-customers-card .customer-plus{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;background:radial-gradient(circle closest-side,#466abd 0 74%,transparent 78%);border-radius:50%;font:600 21px/1 system-ui;color:white}.home-customers-card .customer-plus:focus-visible{outline:2px solid #466abd;outline-offset:1px}.bottom-nav button{touch-action:none;user-select:none;-webkit-touch-callout:none}.bottom-nav .moving{background:#ebe5ed;border-radius:18px}.edit-services label:has(input:checked){background:#f5e7ef;color:#783954;border-radius:8px}.record-history{margin-left:auto}.booking-history{max-width:min(92vw,480px);max-height:75vh;border:0;border-radius:20px;padding:24px}.booking-history article{padding:12px 0;border-bottom:1px solid #eee}.booking-history::backdrop{background:#2225}

.deposit-adjust{display:inline-flex;align-items:center;gap:4px;font-size:12px}.deposit-adjust input{width:6em}.detail-status-bar{flex-wrap:wrap}

.directory-order{display:flex;align-items:center;justify-content:space-between;margin:16px 0 8px;color:#696971;font-size:14px}.directory-order select{width:auto;min-height:44px;border:1px solid #dedde1;border-radius:24px;padding:0 12px;background:white;color:#414148;font:inherit}.detail-modal-head .record-history{margin-inline-end:16px}.detail-modal-head .icon{flex-shrink:0}

.settings-head-actions{display:flex;align-items:center;gap:8px}.settings-gear{width:44px;height:44px;border:0;border-radius:50%;font:24px/1 system-ui;color:#484852;background:#f0eff2}.app-management-view .app-fold>summary{cursor:pointer;font-weight:650;padding:12px 0}.app-fold[open]>summary{margin-bottom:10px}

.bottom-nav.nav-arranging{overflow:visible}.bottom-nav.nav-arranging button{transition:transform 170ms ease;position:relative}.bottom-nav.nav-arranging .nav-lifted{z-index:2;transition:none;transform:translateY(-5px) scale(1.09);border-radius:16px;background:#fff;box-shadow:0 5px 16px #38334233}.bottom-nav button{-webkit-user-select:none}@media(prefers-reduced-motion:reduce){.bottom-nav.nav-arranging button{transition:none}}

.detail-status-bar button[data-action="cycle-booking"]:enabled{cursor:pointer;min-height:36px;padding-inline:12px;border:1px solid currentColor}

.booking-history{width:min(90vw,420px);box-sizing:border-box;padding:0;color:#332f36;background:#fff}
.history-heading,.booking-history article header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.history-heading{padding:8px 12px 8px 18px;border-bottom:1px solid #e9e6e9}.history-heading h3{font-size:16px;margin:0}.history-heading button{width:44px;height:44px;border:0;background:none;font-size:23px;color:#625e66}
.history-entries{padding:0 18px;overflow:auto;max-height:calc(75vh - 65px);font-size:13px}.booking-history article{padding:14px 0}.booking-history article:last-child{border:0}.booking-history article header{flex-wrap:wrap;font-size:13px}.booking-history time{font-size:11px;color:#645e67}
.history-change{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;margin-top:10px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.history-change strong{grid-column:1/-1;font-size:11px;color:#514b54}.history-change span{min-width:0;white-space:pre-wrap}.history-change small{display:block;font-size:10px;line-height:1.5}.history-old{color:#6d6670}.history-new{color:#375d51;font-weight:600}

.detail-status-bar .booking-status-select,.detail-status-bar .detail-deposit{box-sizing:border-box;height:36px;min-height:36px;padding:0 9px;border-radius:10px;font:600 13px/1.25 system-ui}.detail-status-bar .booking-status-select{appearance:auto;width:auto;min-width:0;background:#eaf0ff;color:#315a9c;border:1px solid #c2d3f2}.detail-actions-inline:has([data-action="apply-booking-status"]){display:grid;grid-template-columns:2fr 1fr;gap:10px}

.edit-menu-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:5px 0 10px}.edit-menu-tabs button{border:1px solid #dddce2;border-radius:20px;background:white;color:#57535b;min-height:40px;padding:5px 14px;font:600 14px system-ui}.edit-menu-tabs button[aria-pressed=true]{background:#48404d;color:white;border-color:#48404d}.edit-menu-panel[hidden]{display:none}

.settings-head-actions .settings-gear{display:inline-grid;place-items:center;padding:0;background:#f4f3f5;color:#514d54}.settings-gear .ui-icon{width:22px;height:22px}

.booking-history article.history-summary{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:9px 0;font-size:13px;line-height:1.35}.history-summary time{white-space:nowrap;font-variant-numeric:tabular-nums}

.detail-status-bar .booking-status-select{appearance:none;-webkit-appearance:none;background-image:none;text-align:center;text-align-last:center}.deposit-controls{display:contents}.deposit-controls .deposit-adjust[hidden]{display:none}#edit-form label:has(>input[type=date]),#edit-form label:has(>input[type=time]){display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0}#edit-form input[type=date],#edit-form input[type=time]{box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:46px;margin:0;padding:8px 12px;text-align:left}#edit-form input::-webkit-date-and-time-value{text-align:left}

.quota-meter{display:grid;gap:6px;margin:10px 0 18px}.quota-meter strong{font-size:19px}.quota-meter progress{width:100%;height:10px;accent-color:#557c6c}.quota-meter small{color:#605d64;font-size:12px}

.quota-meter.quota-high strong{color:#b42332}.quota-high progress{accent-color:#c32c3b;appearance:none;border:none;background:#f2e4e6;border-radius:5px;overflow:hidden}.quota-high progress::-webkit-progress-bar{background:#f2e4e6}.quota-high progress::-webkit-progress-value{background:#c32c3b}.quota-high progress::-moz-progress-bar{background:#c32c3b}.quota-upgrade{display:inline-flex;align-items:center;min-height:44px;justify-self:start;color:#365b94;font-size:14px;font-weight:600}

.detail-management .detail-actions-inline [data-action="apply-booking-status"] {
  background: #365d96;
  color: #fff;
  font-weight: 700;
}
.detail-management .detail-actions-inline [data-action="delete"] {
  background: #f5f5f6;
  color: #60616a;
  font-weight: 500;
}
.detail-card > .booking-summary { margin: 0 0 14px; }
.booking-summary .name-with-visits { margin: 0; flex-wrap: wrap; align-items: baseline; }
.booking-summary .profile-name-link { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.detail-card .booking-summary-time {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px;
  margin: 4px 0 0; color: #686873; font-size: 12px; font-weight: 400; line-height: 1.55;
}
.detail-card > .detail-status-bar { align-items: flex-start; gap: 6px 8px; margin-bottom: 14px; }
.detail-status-bar .deposit-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-left: auto; max-width: 100%; }
.detail-status-bar .detail-deposit { white-space: nowrap; color: #305640; border-color: #a9bdad; }

/* Keep the close control visible while a long record scrolls underneath. */
.detail-modal { padding-top: 0; scroll-padding-top: 70px; }
.detail-modal > .detail-modal-head {
  position: sticky; top: 0; z-index: 2; background: #fafafa;
  padding: 16px 0 8px;
}
.booking-history > .history-heading, .subhead {
  position: sticky; top: 0; z-index: 3; background: #fff;
}
.settings-page > .settings-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }

#naver-change-form .change-schedule { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:start; }
#naver-change-form .change-schedule .field { display:grid; gap:4px; margin:0; min-width:0; }
.change-schedule .field>span { font-size:13px; }
#naver-change-form .change-schedule .field { grid-template-columns:minmax(0,1fr); }
.change-date-picker { position:relative; display:flex; align-items:center; min-width:0; height:44px; padding:0 8px; box-sizing:border-box; background:white; border:1px solid #dbdce1; border-radius:10px; }
.change-date-picker [data-change-date-display] { white-space:nowrap; font-size:14px; font-variant-numeric:tabular-nums; }
.change-date-picker:focus-within { outline:2px solid #647ea5; outline-offset:1px; }
#naver-change-form .change-date-picker input[type=date] { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }
#naver-change-form .change-date-picker input::-webkit-calendar-picker-indicator { position:absolute; inset:0; width:auto; height:auto; margin:0; cursor:pointer; }
#naver-change-form .change-schedule input[type=time] { width:100%; min-width:0; max-width:100%; box-sizing:border-box; }
#naver-change-form .change-schedule input:is([type=date],[type=time]) { margin:0; height:44px; min-height:44px; padding:4px 6px; font-size:16px; }
.change-schedule .time-choice-row { grid-column:1/-1; }

.change-review-page .change-customer { margin:0 0 12px; font-size:19px; }
.change-id-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:end; }
.change-id-row .field { margin:0; min-width:0; }
.change-id-row input { box-sizing:border-box; width:100%; min-width:0; }
.change-id-row .secondary { width:auto; min-height:44px; margin:0; }
.change-original { margin-top:12px; border-top:1px solid #e6e5e8; }
.change-original summary { padding:10px 0; font-size:13px; cursor:pointer; }
.change-original p { margin:0 0 8px; font-size:13px; line-height:1.6; }
.change-review-page .naver-original { margin:6px 0 0; }
.change-review-page .naver-original img { width:32px; height:44px; }
.change-review-page .naver-original small,.change-review-page .naver-original>p { display:none; }
.change-review-page .naver-original button { min-height:44px; padding:5px 10px; }
.change-menu { margin:12px 0; border-block:1px solid #e6e5e8; }
.change-menu summary { padding:12px 4px; font-size:14px; cursor:pointer; }
.change-menu summary strong { margin-inline-start:12px; overflow-wrap:anywhere; }
.change-menu summary span { color:#65646b; }

html.salon-app,html.salon-app body { touch-action:pan-x pan-y; }
.photo-zoom-pane{height:min(68dvh,650px);width:100%;overflow:auto;overscroll-behavior:contain}.photo-zoom-pane img{display:block;max-width:none;max-height:none;object-fit:contain;margin:0}.photo-viewer>.photo-zoom-toggle{left:10px;right:auto;width:auto;padding:0 12px;font-size:14px;font-weight:600}.photo-tile salon-photo-preview{font-size:11px}

.today-hero.today-revenue-link {
  padding: 16px 18px;
  margin: 12px 0;
  border-radius: 18px;
  background: #435365;
  box-shadow: 0 5px 14px #22334721;
}
.today-revenue-link > strong {
  font-size: 25px;
  line-height: 1.2;
  margin: 5px 0 11px;
  letter-spacing: -0.8px;
}
.today-revenue-link > .today-payment-split { padding-top: 9px; flex-wrap: wrap; }
.today-payment-split b { display: inline; font-size: 14px; margin: 0 0 0 3px; }
.today-revenue-link > small { margin-top: 6px; }

.booking-import-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:12px; }
.booking-import-actions > .secondary { display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:44px;margin:0;padding:8px 3px;font-size:clamp(11px,3.3vw,14px);line-height:1.35; }
.booking-image-entry { position:relative;cursor:pointer;overflow:hidden; }
.booking-image-entry input { position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer; }
.booking-image-entry:focus-within { outline:2px solid currentColor;outline-offset:2px; }

.subhead .restore-submit { margin:0 0 0 auto;width:auto;min-height:44px;padding:8px 16px;background:#285b43;color:white;font-size:15px;font-weight:650; }
.restore-review .restore-id summary { cursor:pointer;font-size:13px;color:#626772;padding:5px 0; }
.restore-review .restore-id b { margin-left:6px;color:#353942;font-weight:550;font-variant-numeric:tabular-nums; }
.restore-review .change-customer { color:#282a32;font-size:21px;margin-bottom:4px; }
.restore-review .change-original summary { color:#666b74; }
.restore-review #naver-change-form .change-schedule { max-width:none;align-items:start; }
.restore-review #naver-change-form .field { color:#50555e;font-size:13px; }
.restore-review #naver-change-form input,.restore-review [data-change-date-display],.restore-review [data-change-menu-label] { color:#282a32;font-weight:600; }

.time-choice-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:6px}
.time-choice-head .hint{margin:0;font-size:12px}
.time-choice-head .manual-time-btn{width:auto;flex:none;margin:0;padding:6px 9px;border:0;border-radius:8px;background:#e8f2eb;color:#285b43;font-size:12px;font-weight:600}
.capture-time-review{margin:8px 0 12px;padding:9px 10px;background:#f3f8f5;border-radius:10px}
.capture-time-review strong{color:#285b43;font-size:13px}
.capture-time-review img{display:block;width:100%;height:auto;margin:4px 0}
.capture-time-review figcaption{font-size:12px;color:#636e68;line-height:1.4}
.capture-time-review figcaption:empty{display:none}

#naver-change-form .change-schedule .field > span:first-child,
#naver-change-form .change-schedule .time-choice-row > span {
  display:block; margin:0; font-size:13px; font-weight:600; line-height:18px; color:#50555e;
}
#naver-change-form .change-schedule:has(.time-choice-row) { grid-template-columns:minmax(0,1fr); }
#naver-change-form .change-schedule .time-choice-row { display:grid; gap:4px; min-width:0; }
#naver-change-form .change-schedule .time-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(110px,100%),1fr)); gap:6px; }
#naver-change-form .change-schedule input[type=time] {
  appearance:none; -webkit-appearance:none; border:1px solid #dbdce1; border-radius:10px;
  background:white; padding:0 8px; text-align:start;
}
.capture-editor .capture-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
.capture-editor .capture-pair label{min-width:0;font-size:12px;font-weight:600;color:#53635c}
.capture-editor .capture-pair input{display:block;box-sizing:border-box;width:100%;min-width:0;height:44px;margin:4px 0 0;padding:6px 8px;font-size:16px}
.capture-extra summary{padding:8px 0;color:#405a4a;font-size:13px}
.capture-compare-image>div:first-child{display:flex;align-items:center;justify-content:space-between;padding:8px 0}
.capture-compare-image button{width:auto;padding:6px 10px;border:none;border-radius:8px}
.capture-image-scroll{height:clamp(180px,32dvh,400px);overflow:auto;border:1px solid #dbe4dc;border-radius:10px;overscroll-behavior:contain}
.capture-image-scroll img{display:block;width:100%;height:auto}
.capture-register{position:sticky;bottom:0;padding:8px 0 max(8px,env(safe-area-inset-bottom));background:#fff;z-index:2}

.compare-edit{appearance:none;border:0;background:transparent;color:inherit;font:inherit;text-align:inherit;padding:0;cursor:pointer}.naver-compare-current input{max-width:100%;min-width:0;box-sizing:border-box;font-size:16px}.compare-submit{flex:none;padding:8px 14px max(8px,env(safe-area-inset-bottom));background:white}.compare-submit button{width:100%}

.compare-service{position:relative;display:inline-block}.compare-service select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.compare-service:focus-within{outline:2px solid currentColor;outline-offset:2px}

.capture-pending{position:fixed;inset:0;z-index:10;display:grid;place-items:center;background:#fafafa;color:#595661;font-size:14px}

.agreement-dialog{box-sizing:border-box;width:min(94vw,460px);max-height:90dvh;padding:0;border:0;border-radius:16px;overflow:auto}
.agreement-dialog>header{position:sticky;top:0;z-index:2;background:white;display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-bottom:1px solid #dedee3}
.agreement-dialog>header button{min-width:40px;min-height:40px;font-size:22px}
.agreement-dialog form{padding:0 14px 14px}
.agreement-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:0;padding:0;margin:12px 0}
.agreement-dialog .field,.agreement-fields>*{min-width:0;margin:0}
.agreement-dialog .field input,.agreement-dialog .field select,.agreement-dialog .field textarea,.membership-page .membership-expiry-field input{box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;min-height:38px;margin:3px 0;padding:5px 8px;font-size:16px}
.agreement-fields input[type=date]{appearance:none;text-align:left}
.agreement-fields input::-webkit-date-and-time-value{text-align:left;margin:0}
.agreement-record{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px;margin-top:10px}
.membership-page .membership-expiry-field{max-width:14rem}

#customer-management-results{scroll-margin-top:calc(64px + env(safe-area-inset-top,0px))}
#directory-search-form{margin:0}

.profile-visit-row{align-items:flex-start}
.profile-visit-row .visit-main{display:grid;grid-template-columns:3rem minmax(0,1fr);align-items:start;gap:8px}
.profile-visit-date{display:grid;color:#656f7d;font-variant-numeric:tabular-nums;line-height:1.45}
.profile-visit-date b{font-weight:600;font-size:14px;white-space:nowrap}
.profile-visit-date small,.profile-visit-body>small{font-size:11px;color:#687382}
.profile-visit-body{min-width:0;overflow-wrap:anywhere}
.profile-visit-body>span,.profile-visit-body>small{display:block}
.profile-visit-body>.profile-visit-title{display:flex;align-items:center;gap:4px}
.profile-visit-title strong{font-size:15px;min-width:0}
.profile-visit-title .status-chip{flex:none;margin:0;padding:2px 5px;font-size:10px;line-height:1.35;white-space:nowrap}
.profile-visit-payment{max-width:32%;overflow-wrap:anywhere}
.profile-visit-payment{text-align:right;font-variant-numeric:tabular-nums;color:#394451}.profile-visit-payment small{display:block;font-size:11px;color:#626d79}

.visit-main.today-visit{display:grid;grid-template-columns:3.5rem minmax(0,1fr);gap:12px;align-items:start}
.today-visit time{display:grid;color:#465261;font-size:17px;font-weight:650;line-height:1.25;font-variant-numeric:tabular-nums;white-space:nowrap}
.today-visit time small{font-size:11px;font-weight:500;color:#697482}
.visit-main.today-visit>.today-visit-body{display:grid;justify-items:start;min-width:0;gap:2px;overflow-wrap:anywhere}

.today-visit-title{display:flex;align-items:center;gap:5px;max-width:100%;min-width:0}
.today-visit-title strong{font-size:15px;min-width:0;overflow-wrap:anywhere}
.today-visit-title .status-chip{flex:none;padding:2px 5px;font-size:10px;line-height:1.35;white-space:nowrap}
.today-visit-body>small{font-size:11px;color:#697482}

.agreement-manager{background:#f7f6fa;color:#312d38;border-radius:22px;box-shadow:0 12px 48px #231d3429}
.agreement-manager::backdrop{background:rgb(32 26 44 / 38%)}
.agreement-manager>header{padding:10px 16px;border-color:#e7e2eb}
.agreement-manager>header strong{font-size:18px;letter-spacing:-.03em}
.agreement-manager>header [data-close]{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:radial-gradient(circle,#efedf3 0 10px,transparent 11px);color:#554e60;font-size:13px;line-height:1}
.agreement-manager form{padding:14px}
.agreement-manager [data-plans]{display:grid;gap:8px}
.agreement-manager .agreement-fields{margin:0;min-width:0;padding:10px;gap:6px 10px;background:white;border:1px solid #e1dce8;border-inline-start:3px solid #a797ba;border-radius:14px}
.agreement-manager .field{display:grid;gap:4px;color:#554d60;font-size:13px;font-weight:600}
.agreement-manager .field input,.agreement-manager .field textarea{margin:0;border:1px solid #d8d3df;border-radius:8px;background:white;color:#302b37;padding:8px;font-size:16px}
.agreement-manager [data-plan-amount]{text-align:right;font-variant-numeric:tabular-nums}
.agreement-manager .agreement-fields button{grid-column:1/-1;justify-self:end;min-height:28px;color:#79545a;padding:2px 6px;font-size:12px;background:transparent}
.agreement-manager [data-add]{width:auto;justify-self:start;min-height:30px;font-size:13px;margin:8px 0 14px;border:1px dashed #ada1bd;border-radius:10px;background:#f1eef5;color:#564368;padding:4px 10px}
.agreement-manager .field textarea{width:100%;height:12rem;min-height:12rem;line-height:1.55;resize:vertical;padding:12px}
.agreement-manager form>.primary{width:100%;background:#53445f;color:white}
.agreement-manager :is(input,textarea,button):focus-visible{outline:2px solid #786287;outline-offset:2px}

.customer-agreement{background:#f6f4f8;color:#332b38;border-radius:20px;box-shadow:0 18px 56px #3124362b}
.customer-agreement::backdrop{background:rgb(37 30 43 / 42%)}
.customer-agreement>header{background:#514259;color:white;border:0;padding:10px 16px}
.customer-agreement>header button{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:radial-gradient(circle,#ffffff30 0 9px,transparent 10px);box-shadow:none;color:white;font-size:13px;line-height:1;padding:0}
.customer-agreement form{padding:12px}
.customer-agreement .agreement-block{padding:16px;margin:0 0 12px;background:#fff;border:1px solid #e4dfe7;border-radius:14px}
.customer-agreement .agreement-block h2,.customer-agreement .agreement-consent h3,.customer-agreement .signature-heading strong{margin:0;font-size:16px;color:#53425e;line-height:1.4}
.customer-agreement .signer-name{margin:10px 0 0;font-weight:650;font-size:19px;overflow-wrap:anywhere}
.customer-agreement .agreement-fields{margin:12px 0 0;gap:12px 10px}
.customer-agreement .field{color:#5c5360;font-size:13px}
.customer-agreement .field input,.customer-agreement .field select,.customer-agreement #agreement-terms{border:1px solid #dcd5e0;background:#fbfafc;border-radius:8px;color:#332b38}
.customer-agreement #agreement-terms{box-sizing:border-box;width:100%;margin-top:12px;padding:10px;line-height:1.65;font-size:16px;resize:vertical}
.customer-agreement .agreement-consent{margin:0;font-size:14px}
.customer-agreement .agreement-consent p{margin:12px 0 0;color:#514955}
.customer-agreement .agreement-consent-check{margin:14px 0 0;padding:10px;border-radius:8px;background:#f4f0f7;font-size:14px}
.customer-agreement .signature-heading{margin:0 0 10px}
.customer-agreement .signature-actions .primary{background:#53445f;color:white}

.customer-agreement .agreement-fields>.field{display:flex;flex-direction:column;justify-content:flex-end}
.customer-agreement .agreement-fields .field :is(input,select){height:38px;min-height:38px;margin:4px 0 0}
.customer-agreement .agreement-fields .field [hidden]{display:none}
.customer-agreement .payment-note{margin:6px 0 0;color:#665f6c;font-size:12px;line-height:1.35}

.agreement-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.agreement-card-heading h2{margin:0;font-size:17px}
.agreement-card-heading button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;font-size:18px}
.settings-card>.agreement-create{width:100%;min-height:44px;margin:6px 0 0;border:0;border-radius:10px;background:#53445f;color:#fff;font-size:15px;font-weight:650}

.customer-agreement .field.agreement-total{grid-column:1/-1;text-align:right;color:#53415f;font-weight:700}
.customer-agreement .field.agreement-total input{text-align:right;border:2px solid #816092;background:#faf6fc;color:#46344f;font-weight:700;font-variant-numeric:tabular-nums}

/* Keep the proportional time axis and leave room for one readable line. */
.schedule-page .timeline .hour-row { height:calc(var(--timeline-row-height,30px) + max(0px,var(--timeline-min-row,0px) - 18px)); }
.timeline.overlapping .timeline-grid { min-width:calc(var(--time-gutter) + 10px + var(--timeline-lanes) * 235px); }
.timeline-week-viewport .timeline.overlapping { touch-action:pan-x pan-y; }
.timeline-events .reservation-card { container-type:size; }
.timeline-events .reservation-card .reservation-lines { display:flex; flex-direction:column; gap:2px; min-width:0; width:100%; }
.timeline-events .reservation-card.compact { display:flex; justify-content:center; }
@container (max-height: 56px) {
  .timeline-events .reservation-card .reservation-lines { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:4px; }
  .timeline-events .reservation-lines strong { font-size:11px; }
  .timeline-events .reservation-lines > * { line-height:1.1; }
}
