:root{--paper:#f7f6f2;--card:#fffefa;--ink:#292d29;--muted:#82877f;--line:#e8e7df;--green:#435747;--green-soft:#e8eee7;--rust:#a45e45;--shadow:0 5px 20px #29372d0b;--safe-bottom:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP",sans-serif;font-size:15px;-webkit-font-smoothing:antialiased}.topbar{height:68px;padding:10px 20px;display:flex;align-items:center;justify-content:space-between;background:var(--paper);position:sticky;top:0;z-index:3}.brand{font-family:Georgia,serif;font-size:21px;letter-spacing:.04em}.subbrand{font-size:8px;letter-spacing:.2em;color:var(--muted);margin-top:2px}.icon-button{border:0;background:transparent;color:var(--muted);font-size:22px;padding:10px 12px}.app-main{max-width:620px;margin:0 auto;padding:9px 18px calc(104px + var(--safe-bottom));min-height:calc(100dvh - 68px)}h1{font-size:24px;letter-spacing:.02em;margin:9px 0 4px}h2{font-size:18px;margin:0}h3{font-size:15px;margin:0}.eyebrow{color:var(--muted);font-size:11px;letter-spacing:.12em}.section-head{display:flex;align-items:end;justify-content:space-between;margin:12px 0 18px}.count{color:var(--muted);font-size:12px}.search-wrap{position:relative;margin:18px 0 14px}.search-wrap:before{content:'⌕';position:absolute;left:14px;top:7px;font-size:23px;color:#92968e}.search{width:100%;height:48px;border:1px solid var(--line);border-radius:13px;background:var(--card);padding:0 14px 0 43px;font:inherit;outline:0}.search:focus,input:focus,textarea:focus,select:focus{border-color:#83917f;box-shadow:0 0 0 3px #43574714}.primary,.secondary,.danger,.text-button{font:inherit;border-radius:12px;min-height:44px;padding:0 16px;cursor:pointer}.primary{background:var(--green);color:white;border:1px solid var(--green);font-weight:600}.secondary{background:var(--card);border:1px solid var(--line);color:var(--ink)}.danger{background:#fff4f0;border:1px solid #f0d4c9;color:#9f4c35}.text-button{border:0;background:transparent;color:var(--green);padding:0 8px}.full{width:100%}.client-list{display:grid;gap:9px}.client-row,.panel,.visit-card,.day-card,.reservation-card,.info-card{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.client-row{display:flex;align-items:center;gap:13px;padding:14px;cursor:pointer;min-height:76px}.avatar{height:44px;width:44px;border-radius:50%;background:var(--green-soft);color:var(--green);display:grid;place-items:center;font-weight:600;flex:none}.row-main{min-width:0;flex:1}.row-title{font-weight:600}.row-sub,.muted{color:var(--muted);font-size:12px;margin-top:4px}.chevron{color:#a7aaa2;font-size:21px}.empty{border:1px dashed #d8d9d0;border-radius:16px;padding:30px 18px;text-align:center;color:var(--muted);line-height:1.8;background:#ffffff70}.bottom-nav{position:fixed;z-index:10;bottom:0;left:0;right:0;height:calc(70px + var(--safe-bottom));padding:5px 12px var(--safe-bottom);background:#fffefaed;backdrop-filter:blur(16px);border-top:1px solid var(--line);display:flex;justify-content:center}.nav-item{width:min(48%,250px);border:0;background:transparent;color:#8b9088;display:grid;align-content:center;justify-items:center;gap:1px;font-family:inherit;font-size:11px;font-weight:500;cursor:pointer}.nav-item.active{color:var(--green);font-weight:700}.nav-icon{font-size:23px;line-height:1.1}.backline{display:flex;align-items:center;gap:8px;margin:4px 0 17px}.backline button{padding:7px 4px}.profile-head{display:flex;gap:14px;align-items:center;margin-bottom:20px}.profile-head .avatar{width:58px;height:58px;font-size:19px}.actions{display:flex;gap:8px}.actions>*{flex:1}.panel{padding:17px;margin:12px 0}.panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.info-grid{display:grid;grid-template-columns:90px 1fr;gap:11px 10px;font-size:13px}.info-label{color:var(--muted)}.visit-list{display:grid;gap:10px}.visit-card{padding:14px;cursor:pointer}.visit-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.date-tag{font-size:12px;color:var(--green);font-weight:600}.preview{font-size:13px;line-height:1.65;color:#62685f;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:4px 0}.thumbs{display:flex;gap:6px;margin-top:9px}.thumbs img{height:48px;width:48px;object-fit:cover;border-radius:8px}.detail-text{white-space:pre-wrap;line-height:1.8;font-size:14px}.field{display:grid;gap:7px;margin:14px 0}.field label{font-size:12px;color:#686e66;font-weight:600}.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);border-radius:11px;background:#fffefa;padding:12px;font:inherit;min-height:46px;outline:0}.field textarea{min-height:96px;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.modal-scrim{position:fixed;z-index:20;inset:0;background:#2028205c;display:flex;align-items:flex-end;justify-content:center}.modal{width:min(100%,620px);max-height:92dvh;overflow:auto;background:var(--paper);border-radius:22px 22px 0 0;padding:16px 20px calc(22px + var(--safe-bottom));animation:rise .18s ease}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.modal-head h2{font-size:18px}.modal-body{padding-bottom:5px}@keyframes rise{from{transform:translateY(24px);opacity:.5}to{transform:none;opacity:1}}.modal-buttons{display:flex;gap:9px;margin-top:18px}.modal-buttons>*{flex:1}.photo-grid{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.photo-item{position:relative}.photo-item img{width:74px;height:74px;object-fit:cover;border-radius:10px}.photo-remove{position:absolute;right:-6px;top:-7px;border:0;border-radius:99px;background:#303c32;color:#fff;width:23px;height:23px}.segmented{display:flex;background:#ebeae3;border-radius:12px;padding:3px;gap:3px}.segmented button{flex:1;height:36px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-family:inherit;font-size:13px;font-weight:600}.segmented button.active{background:#fffefa;color:var(--green);box-shadow:0 1px 5px #2222}.date-controls{display:flex;align-items:center;justify-content:space-between;margin:15px 0}.date-controls button{height:40px;min-width:42px;border:1px solid var(--line);border-radius:11px;background:var(--card);font-size:18px;color:var(--green)}.date-label{text-align:center;font-weight:600}.today{font-size:11px;color:var(--green);padding:4px 8px}.timeline{position:relative;border-radius:14px;background:var(--card);border:1px solid var(--line);overflow:hidden}.time-row{height:60px;position:relative;border-top:1px solid #eeede7;margin-left:57px}.time-row:first-child{border-top:0}.time-label{position:absolute;left:-54px;top:-8px;width:46px;text-align:right;color:#8b9088;font-size:11px}.slot-hit{height:15px;border-bottom:1px solid #f2f1ec;cursor:pointer}.slot-hit:hover{background:#eef2eb}.res-block{position:absolute;left:62px;right:7px;border-radius:9px;background:#e5ede4;border-left:3px solid var(--green);padding:6px 9px;z-index:1;overflow:hidden;cursor:grab;touch-action:none;user-select:none;color:#304235;font-size:12px}.res-block strong{display:block;font-size:12px}.res-block small{display:block;margin-top:2px;color:#627064}.res-block.dragging{cursor:grabbing;z-index:5;opacity:.9;box-shadow:0 5px 14px #29372d30}.time-label.first{top:4px;left:-55px;width:50px;text-align:center;color:#fff;background:#435747;border-radius:5px;padding:2px 5px;font-size:14px;font-weight:700}.time-label.last{top:-15px}.week-list{display:grid;gap:9px}.day-card{overflow:hidden}.day-head{display:flex;justify-content:space-between;align-items:center;padding:13px 14px;cursor:pointer}.day-head.selected{background:#e9efe8}.day-name{font-weight:600}.day-date{color:var(--muted);font-size:12px;margin-left:8px}.reservation-list{padding:0 12px 11px;display:grid;gap:7px}.reservation-card{padding:9px 11px;display:flex;gap:11px;align-items:center;box-shadow:none;cursor:pointer}.reservation-card .rtime{color:var(--green);font-weight:600;font-size:12px;min-width:83px}.reservation-card .rname{font-weight:600;font-size:13px}.reservation-card .rmenu{font-size:11px;color:var(--muted);margin-top:2px}.add-fab{position:fixed;z-index:4;right:max(20px,calc((100vw - 580px)/2));bottom:calc(87px + var(--safe-bottom));height:54px;padding:0 19px;border-radius:28px;box-shadow:0 7px 20px #33463730}.wheel{height:190px;overflow-y:auto;scroll-snap-type:y mandatory;border-block:1px solid var(--line);position:relative;margin:12px 0}.wheel-option{height:44px;display:grid;place-items:center;scroll-snap-align:center;color:#858a82}.wheel-option.chosen{font-size:19px;font-weight:700;color:var(--green);background:#e9efe880}.notice{background:#f2efe6;padding:11px 12px;border-radius:10px;font-size:12px;line-height:1.6;color:#686653}.toast{position:fixed;z-index:40;bottom:calc(86px + var(--safe-bottom));left:50%;transform:translate(-50%,16px);background:#303c32;color:white;border-radius:30px;padding:11px 17px;font-size:13px;opacity:0;transition:.2s;pointer-events:none;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}.lightbox{position:fixed;z-index:30;inset:0;background:#111e;display:grid;place-items:center;padding:20px}.lightbox img{max-width:100%;max-height:90dvh;object-fit:contain;border-radius:8px}.lightbox button{position:absolute;right:16px;top:20px;border:0;background:#ffffff22;color:#fff;border-radius:50%;width:42px;height:42px;font-size:24px}.menu-sheet{position:fixed;z-index:15;right:12px;top:58px;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;padding:6px;width:215px}.menu-sheet button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:13px 11px;border-radius:8px;font:inherit;color:var(--ink)}.menu-sheet button:hover{background:var(--green-soft)}
@media(min-width:700px){.modal-scrim{align-items:center;padding:20px}.modal{border-radius:22px;max-height:88vh}.app-main{padding-top:16px}.bottom-nav{height:70px}}
 .notice.warn{background:#fbebe6;color:#8b3d2b;border:1px solid #efcfc4}.notice b{line-height:1.9}
.res-client-link{border:0;padding:0;background:transparent;color:var(--green);font:inherit;text-align:left;text-decoration:underline;text-decoration-color:#43574766;text-underline-offset:2px;cursor:pointer;touch-action:manipulation}
.preview-button{min-height:36px;margin-top:8px;padding:0;color:var(--green);font-size:12px;font-weight:600}
.res-block.gender-male{background:#e3eef9;border-left-color:#4382bb;color:#294e73}.res-block.gender-male small{color:#587996}.res-block.gender-female{background:#f8e8ee;border-left-color:#c7688c;color:#754052}.res-block.gender-female small{color:#9b6979}.reservation-card.gender-male{background:#edf5fb;border-color:#d4e4f2}.reservation-card.gender-male .rtime{color:#4382bb}.reservation-card.gender-female{background:#fcf1f4;border-color:#efd8e0}.reservation-card.gender-female .rtime{color:#c7688c}
.client-info-panel{background:#f0f4ed;border-color:#d9e2d5;border-left:4px solid var(--green)}.client-info-field{padding:12px;border-radius:12px;background:#f0f4ed;border-left:3px solid var(--green)}
.week-horizontal-scroll{width:100%;overflow-x:auto;overflow-y:hidden;border:1px solid var(--line);border-radius:14px;background:var(--card);-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.week-horizontal-grid{display:grid;grid-template-columns:50px repeat(7,136px);grid-template-rows:54px 840px;width:max-content;position:relative;background:var(--card)}.week-time-head{position:sticky;left:0;z-index:5;background:var(--card);border-bottom:1px solid var(--line);border-right:1px solid var(--line)}.week-day-header{height:54px;border:0;border-bottom:1px solid var(--line);border-left:1px solid var(--line);border-radius:0;background:var(--card);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font:inherit;cursor:pointer;color:var(--ink)}.week-day-header.selected{background:#e9efe8;color:var(--green)}.week-day-name{font-weight:700;font-size:12px}.week-day-date{font-size:11px;color:var(--muted)}.week-day-count{font-size:10px;color:var(--muted)}.week-time-axis{height:840px;position:sticky;left:0;z-index:4;background:var(--card);border-right:1px solid var(--line)}.week-time-label{position:absolute;left:0;width:49px;text-align:right;padding-right:5px;color:var(--muted);font-size:10px;line-height:14px;background:var(--card)}.week-time-label.first{font-weight:700;color:var(--green)}.week-day-column{height:840px;position:relative;border-left:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 59px,#e8e7df 59px,#e8e7df 60px)}.week-slot-hit{position:absolute;left:0;right:0;width:100%;height:15px;padding:0;border:0;border-bottom:1px solid #f2f1ec;border-radius:0;background:transparent;z-index:1;cursor:pointer}.week-slot-hit:hover{background:#eef2eb}.week-reservation{position:absolute;z-index:2;left:3px;right:3px;overflow:hidden;padding:3px 4px;border-radius:7px;border-left:3px solid var(--green);background:#e5ede4;color:#304235;font-size:10px;line-height:1.25;cursor:pointer}.week-reservation strong,.week-reservation small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.week-reservation strong{font-size:10px}.week-reservation small{margin-top:2px;color:#627064;font-size:9px}.week-reservation .res-client-link{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:inherit;font-weight:700}.week-reservation.gender-male{background:#e3eef9;border-left-color:#4382bb;color:#294e73}.week-reservation.gender-male small{color:#587996}.week-reservation.gender-female{background:#f8e8ee;border-left-color:#c7688c;color:#754052}.week-reservation.gender-female small{color:#9b6979}

.duration-toggle{display:flex;align-items:center;justify-content:space-between;text-align:left;font-weight:600}.duration-toggle span+span{font-size:12px;color:var(--muted);font-weight:500}.field[hidden],.notice[hidden]{display:none!important}

.wheel-option.focused{outline:2px solid #83917f;outline-offset:-3px;border-radius:8px}
.customer-picker-row .row-title,.customer-picker-row .row-sub{display:block}

:root{--day-off:#c65d58}.date-label.closed-date{color:#a44742}.day-off-badge{display:inline-block;margin-left:7px;padding:2px 6px;border:1px solid #e6aaa6;border-radius:6px;background:#fff0ef;color:#a44742;font-size:11px;font-weight:700;vertical-align:2px;white-space:nowrap}.week-day-name{display:flex;align-items:center;justify-content:center;gap:4px}.week-day-off-badge{margin:0;padding:1px 4px;font-size:9px;vertical-align:0}.week-day-header.closed-day{border:2px solid var(--day-off);border-bottom-width:1px;background:#fff3f2;color:#a44742}.week-day-column.closed-day{border-left:2px solid var(--day-off);border-right:2px solid var(--day-off);box-shadow:inset 0 0 0 1px var(--day-off)}

.menu-checkbox-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.menu-checkbox{display:flex;align-items:center;gap:9px;min-height:48px;padding:8px 11px;border:1px solid var(--line);border-radius:11px;background:var(--card);cursor:pointer}.menu-checkbox input{width:19px;height:19px;min-height:19px;accent-color:var(--green);flex:none}.menu-checkbox span{font-size:13px;color:var(--ink)}

.visit-card.visit-completed{background:#eff6ef;border-color:#c8dac7;border-left:4px solid #5c8a60;box-shadow:none}.visit-heading{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}.visit-complete-badge{display:inline-flex;align-items:center;gap:3px;padding:3px 8px;border:1px solid #c1d8c1;border-radius:999px;background:#dceedd;color:#396b40;font-size:10px;font-weight:700;white-space:nowrap}

.reservation-overlays{position:absolute;top:0;right:0;bottom:0;left:57px;pointer-events:none}.reservation-overlays .res-block{pointer-events:auto}

.res-block{touch-action:none}.res-resize-handle{position:absolute;left:0;right:0;height:14px;z-index:4;cursor:ns-resize;touch-action:none;display:block}.res-resize-handle.top{top:0}.res-resize-handle.bottom{bottom:0}.res-resize-handle:after{content:"";position:absolute;left:50%;transform:translateX(-50%);width:24px;height:3px;border-radius:3px;background:currentColor;opacity:.34}.res-resize-handle.top:after{top:4px}.res-resize-handle.bottom:after{bottom:4px}.res-block.dragging{z-index:6}

.profile-name-input,.profile-kana-input,.profile-memo-input,.profile-inline-input{font:inherit;color:inherit;border:1px solid transparent;border-radius:9px;background:transparent;outline:0;min-width:0;width:100%}.profile-name-input{font-size:24px;font-weight:700;letter-spacing:.02em;padding:2px 5px;margin-left:-5px;min-height:38px}.profile-kana-input{font-size:12px;color:var(--muted);padding:5px;margin-left:-5px;min-height:30px}.profile-memo-input{min-height:90px;padding:10px 11px;resize:vertical;line-height:1.7}.profile-inline-input{min-height:36px;padding:5px 7px}.profile-name-input:focus,.profile-kana-input:focus,.profile-memo-input:focus,.profile-inline-input:focus{background:#fffefa;border-color:#cbd3c8;box-shadow:0 0 0 3px #43574710}.profile-actions{margin-top:14px}.profile-actions .primary,.profile-actions .danger{flex:1}
.profile-save-note{margin:8px 2px 0;text-align:center}
.reservation-action-summary{padding:15px 16px;background:var(--green-soft);border:1px solid #dbe4d9;border-radius:14px;line-height:1.65}.reservation-action-summary h3{font-size:18px;margin:5px 0}.reservation-action-summary .muted{margin-top:3px}.reservation-action-prompt{margin:19px 2px 10px;font-size:13px;font-weight:600}.reservation-action-list{display:grid;gap:10px}.reservation-action-choice{width:100%;min-height:72px;display:flex;align-items:center;gap:12px;text-align:left;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);font:inherit;cursor:pointer;box-shadow:var(--shadow)}.reservation-action-choice:active{background:var(--green-soft)}.reservation-action-choice>span:nth-child(2){flex:1}.reservation-action-choice strong,.reservation-action-choice small{display:block}.reservation-action-choice strong{font-size:14px}.reservation-action-choice small{font-size:11px;color:var(--muted);margin-top:4px}.reservation-action-icon{width:38px;height:38px;border-radius:12px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;font-size:20px;flex:none}
.profile-actions{justify-content:flex-end}.profile-actions .danger{flex:0 0 auto;min-width:92px}
.cloud-auth-status{margin:14px 0;padding:12px;border-radius:11px;background:var(--green-soft);color:var(--green);font-size:13px;font-weight:600;overflow-wrap:anywhere}.cloud-feedback{min-height:22px;margin-top:10px;color:var(--green);font-size:12px;line-height:1.6}.cloud-feedback.error{color:#9f4c35}
