:root{--ink:#332d26;--muted:#665b50;--green:#554639;--deep:#44362c;--mint:#ebe2d5;--border:#ded6cb;--panel:#fdfbf7;--base:#f1ede6;--r:21px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--base);color:var(--ink);font:15px/1.6 system-ui,"Noto Sans CJK JP","Hiragino Kaku Gothic ProN",sans-serif}h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.top{min-height:76px;padding:12px max(24px,calc((100vw - 1220px)/2));display:flex;justify-content:space-between;align-items:center;gap:12px;background:#faf6ef;border-bottom:1px solid var(--border)}.brand,.topright,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.brand>strong{font-family:"Noto Serif CJK JP","Hiragino Mincho ProN",Georgia,serif;font-size:34px;line-height:1.1;font-weight:650;letter-spacing:-.065em;color:var(--deep)}.brand>strong span{color:#ad8769}.brand>span{font-weight:750;font-size:12px}.brand small{color:var(--muted)}.badge,.tag{display:inline-flex;align-items:center;border-radius:99px;font-size:11px;line-height:1.1;background:#ebe4d8;color:var(--green);padding:7px 9px;white-space:nowrap;font-weight:730}.button{border:1px solid var(--green);border-radius:11px;min-height:42px;padding:8px 13px;display:inline-flex;justify-content:center;align-items:center;gap:6px;background:var(--green);color:white;font-weight:730;text-decoration:none}.button:hover{background:var(--deep)}.button.secondary{background:#fffdf7;color:var(--green);border-color:#baa997}.button.secondary:hover{background:#f1e8dc}.tag{background:#ede5d8}.button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.linkbutton:focus-visible,.rowbutton:focus-visible,summary:focus-visible{outline:3px solid #927158;outline-offset:2px}.shell{max-width:1266px;margin:0 auto;padding:0 23px 30px}.title{display:flex;justify-content:space-between;gap:12px;align-items:end;margin:32px 0 17px}.title h1,.guest h1{font-size:clamp(30px,5vw,48px);line-height:1.12;letter-spacing:-.045em;margin:3px 0 5px}.title p,.muted,footer{color:var(--muted);font-size:13px}.kicker{font-size:11px;font-weight:850;letter-spacing:.15em;color:#775e4d}.columns{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);gap:13px;align-items:start}.box{background:var(--panel);border:1px solid var(--border);border-radius:var(--r);padding:18px}.boxhead{display:flex;gap:10px;align-items:start;justify-content:space-between;margin-bottom:10px}.boxhead h2{font-size:clamp(19px,3vw,26px);letter-spacing:-.02em;line-height:1.24;margin:2px 0 6px}.search{display:block;margin:6px 0}.pills{display:flex;gap:5px;flex-wrap:wrap}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:8px 6px;border-bottom:1px solid #e9e2d8;vertical-align:middle}th{color:var(--muted);font-size:11px;letter-spacing:.04em}td:last-child{white-space:nowrap;font-size:12px}tr.current{background:#eee4d7}.rowbutton,.linkbutton{border:0;text-align:left;background:none;color:var(--green);font:inherit;font-weight:750;padding:3px 0}.rowbutton:hover,.linkbutton{text-decoration:underline}.dir-tags{display:block;color:var(--muted);font-size:11px}.compare{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 14px}.compare article{background:#f1ebe2;border-radius:12px;padding:10px 11px}.compare article:last-child{background:var(--mint)}.compare h3,.history h3,.inbox h3,.editor h3{font-size:16px;line-height:1.35;margin:2px 0 4px}.compare p,.inbox p{font-size:13px}.inbox,.editor,.notes{border:1px solid #d8c8b9;border-radius:13px;background:#f4eee5;padding:12px;margin:12px 0}.inbox button{margin-top:8px}.history ol{padding:0 0 0 10px;margin:12px 0 2px;list-style:none}.entry{border-left:2px solid #dbcbbd;padding:0 8px 14px 16px;position:relative}.entry:last-child{padding-bottom:3px}.entry:before{content:"";position:absolute;left:-6px;top:9px;width:10px;height:10px;background:#a27c63;border-radius:50%;border:1px solid #fffbf6}.entryhead{display:flex;justify-content:space-between;align-items:start;gap:8px}.entry time{font-size:11px;font-weight:750;color:var(--muted)}.entry h4{margin:0;font-size:16px}.entry p{color:#655745;font-size:13px;overflow-wrap:anywhere}.entry h4,.compare p,.boxhead h2{overflow-wrap:anywhere}.notes summary{cursor:pointer;font-size:13px;font-weight:730}.notes p{font-size:12px;margin:8px 0;color:var(--muted)}.status{padding:10px 11px;border-radius:9px;background:#eee5d7;color:#4f3c2e;margin:8px 0}.status.error{background:#f9e4db;color:#6f3224}label{font-weight:700;display:grid;gap:4px}input:not([type=checkbox]),select,textarea{width:100%;min-width:0;border:1px solid #b6a796;border-radius:8px;background:white;padding:9px 10px;color:var(--ink)}fieldset{border:0;padding:0;margin:11px 0}legend{font-weight:750;margin-bottom:6px}.edit-fields{display:grid;grid-template-columns:1fr 1.8fr;gap:8px}.editor label{margin-bottom:9px}.sr-only{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.guest{max-width:620px;margin:19px auto;padding:0 16px}.guest-head{background:var(--deep);color:#faf2e6;border-radius:23px;padding:24px;margin-bottom:11px}.guest-head .kicker{color:#e2c5a7}.guest-head p{color:#f0e6d7;margin-top:9px}.guest-card{padding:clamp(15px,4vw,24px)}.demo-note{background:#f0e9df;border-radius:8px;color:#625548;font-size:12px;padding:9px;margin-bottom:12px}.choices{display:flex;flex-wrap:wrap;gap:6px}.choices label,.consent{display:flex;align-items:center;gap:5px;border:1px solid #c5b2a0;border-radius:8px;padding:7px 8px;font-size:13px}.choices label:has(:checked){background:#eee5d7}input[type=checkbox]{width:16px;height:16px;flex:none;accent-color:var(--green)}.consent{align-items:start;padding:9px;margin:13px 0}.consent small{font-size:11px;display:block;color:var(--muted);font-weight:550}.guest footer{margin:12px 0}
@media(max-width:710px){.top{padding:9px 12px}.shell{padding:0 12px 25px}.title{margin:20px 0 12px}.columns{grid-template-columns:1fr}.directory{padding:13px}.top .badge{display:none}.topright{justify-content:end}.button{min-height:44px;font-size:13px}.title p{font-size:12px}}@media(max-width:360px){.title{align-items:start}.edit-fields{grid-template-columns:1fr}.box{padding:13px}}

.brand>.brand-logo{display:flex;align-items:center;flex:none;margin:0 2px 0 0}.brand-logo img{display:block;width:43px;height:43px;border-radius:50%;object-fit:cover}.brand small{letter-spacing:.02em}.top{background:#fbf8f4}.badge,.tag{background:#ede6df}

/* Page のグレージュに、行動を示す青緑と確認を示すコーラルを重ねる。 */
:root {
  --action: #285651; --action-dark: #193f3c; --action-soft: #e1eeea;
  --coral-ink: #743b31; --coral-soft: #f7e5dc; --coral-edge: #d09a88;
  --old-ink: #5a5047; --old-soft: #f2ebe3;
}
.top {border-top:3px solid var(--action)}
.button:not(.secondary){background:var(--action);border-color:var(--action)}
.button:not(.secondary):hover{background:var(--action-dark)}
.button:focus-visible,.linkbutton:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,.rowbutton:focus-visible,summary:focus-visible{outline-color:var(--action)}
.linkbutton,.rowbutton{color:var(--action-dark)}
tr.current{background:var(--action-soft)}
tr.current td:first-child{box-shadow:inset 3px 0 0 var(--action);padding-left:11px}
.button.secondary{background:#fffcf8}
.tag{background:var(--coral-soft);color:var(--coral-ink)}
.tag:nth-child(even){background:var(--action-soft);color:var(--action-dark)}
.compare{gap:10px;margin-top:15px}
.compare article.visit-current,.compare article.visit-previous{padding:14px 14px 13px;border:1px solid transparent}
.compare article.visit-current{border-color:#accac0;background:var(--action-soft);color:var(--action-dark)}
.compare article.visit-previous{border-color:#e0d6cb;background:var(--old-soft);color:var(--old-ink)}
.visit-label,.intake-label{display:inline-block;border-radius:5px;padding:3px 8px;font-weight:800;font-size:12px;line-height:1.25;letter-spacing:.06em}
.visit-current .visit-label{background:var(--action);color:white}
.visit-previous .visit-label{background:#e6dbce;color:#53483d}
.compare h3{margin-top:9px;font-size:17px}.compare p{line-height:1.65}
.inbox{background:var(--coral-soft);border-color:var(--coral-edge);border-left:4px solid #ad6b59;color:var(--coral-ink)}
.intake-label{background:#f0cec0;color:#6a332a;margin-bottom:4px}
.inbox .button.secondary{color:var(--coral-ink);border-color:var(--coral-edge)}
.entry:before{background:#75988c}
.guest-head{background:linear-gradient(135deg,#2b5a54,#1c433f);color:#fff}
.guest-head .kicker{color:#f4cabb}.guest-head p{color:#fff}
.guest-head h1:after{content:"";display:block;width:38px;height:3px;border-radius:4px;margin-top:12px;background:#e1a997}
input[type=checkbox]{accent-color:var(--action)}
.choices label:has(:checked){background:var(--action-soft);border-color:#84aa9c;color:var(--action-dark)}
@media(max-width:470px){.compare{grid-template-columns:1fr}.compare article.visit-current,.compare article.visit-previous{padding:12px}.guest-head{padding:20px}}

/* スタッフ画面のみ。フォームの導線・レイアウトはそのまま。 */
.staff-layout{max-width:1540px;margin:auto;display:grid;grid-template-columns:214px minmax(0,1fr);gap:0}
.staff-nav{position:sticky;top:0;align-self:start;min-height:calc(100vh - 76px);padding:29px 12px 18px;background:#eae4dc;border-right:1px solid #ddd3ca}
.staff-nav-heading,.staff-nav-foot{font-size:11px;color:#60564c;margin:0 11px 13px}
.staff-nav-foot{margin-top:23px;line-height:1.6}
.staff-nav>a{display:flex;align-items:center;gap:10px;margin:4px 0;padding:10px 11px;min-height:44px;text-decoration:none;border-radius:9px;white-space:nowrap;font-weight:700;font-size:14px}
.staff-nav>a>span{width:18px;text-align:center;color:var(--action-dark)}
.staff-nav>a:hover{background:#f7f2ea}
.staff-nav>a[aria-current="page"]{color:var(--action-dark);background:var(--action-soft);box-shadow:inset 3px 0 var(--action)}
.staff-nav>a:focus-visible{outline:2px solid var(--action);outline-offset:2px}
.staff-nav b{background:var(--coral-soft);color:var(--coral-ink);padding:2px 7px;border-radius:11px;margin-left:auto;font-size:12px}
.staff-content{min-width:0}.staff-panel .title{align-items:center}
.staff-panel .box h2{font-size:21px;line-height:1.3}
.table-scroll{overflow:auto}.table-scroll table{min-width:495px}
.panel-filter{min-width:125px}.action-list{list-style:none;margin:0;padding:0}
.action-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--border)}
.action-list li p,.settings-card p{font-size:13px;color:var(--muted);margin:6px 0}
.action-list .button{flex-shrink:0}
.settings-card{margin-bottom:12px}.settings-card .button{margin-top:6px}
@media(max-width:1050px){.staff-layout{grid-template-columns:184px minmax(0,1fr)}.staff-panel .columns{grid-template-columns:minmax(215px,.75fr) minmax(0,1.25fr)}}
@media(max-width:860px){.staff-layout{display:block}.staff-nav{position:sticky;z-index:2;min-height:0;display:flex;gap:5px;overflow-x:auto;padding:5px 12px;border-right:0;border-bottom:1px solid var(--border)}.staff-nav>a{margin:0;font-size:12px;padding:8px;gap:4px}.staff-nav>a>span{width:14px}.staff-nav-heading,.staff-nav-foot{display:none}}
@media(max-width:650px){.staff-panel .columns{grid-template-columns:1fr}.staff-panel .title{align-items:flex-start}.staff-nav>a{font-size:12px;min-height:40px;padding:6px}.staff-nav>a>span{display:none}.action-list li{align-items:start}}

.booking-toolbar,.date-controls,.booking-filters{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.booking-toolbar{justify-content:space-between;margin-bottom:12px}.date-controls label{min-width:132px}
.booking-alert{border:1px solid #a5c7b6;background:#e7f1eb;color:#274e40;padding:9px 12px;border-radius:10px;margin-bottom:10px}
.booking-alert.has-conflict{border-color:#d6a090;background:#f8e3dc;color:#743b31}.booking-alert ul{margin:5px 0 0;padding-left:19px;font-size:13px}.booking-alert ul:empty{display:none}
.booking-legend{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 9px}.booking-legend span{font-size:11px;padding:4px 8px;border:1px solid transparent;border-radius:6px}
.legend-hp{background:#dfedeb;color:#194f4b}.legend-line{background:#e8efda;color:#395127}.legend-phone{background:#f4e9d5;color:#6b4a1d}.legend-conflict{background:#f7ded7;color:#823227}
.booking-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:11px;background:#fff}
.booking-grid{display:grid;min-width:max(100%,calc(54px + var(--staff-columns)*152px));grid-template-columns:54px repeat(var(--staff-columns),minmax(152px,1fr));grid-template-rows:auto var(--time-height)}
.booking-corner,.booking-staff-head{position:sticky;top:0;z-index:1;min-height:33px;background:#f4eee8;font-weight:750;font-size:12px;padding:7px;border-bottom:1px solid #e1d9d0}
.booking-staff-head,.booking-column{border-left:1px solid #e4ddd5}.booking-column{position:relative;background:repeating-linear-gradient(to bottom,#e9e2db 0,#e9e2db 1px,transparent 1px,transparent var(--slot-height))}
.booking-time{height:var(--slot-height);padding:0 5px;text-align:center;font-size:11px;color:#5a5047}
.booking-event{position:absolute;display:flex;flex-direction:column;align-items:start;justify-content:center;text-align:left;border-radius:5px;border:1px solid #a8b6ae;padding:1px 4px;overflow:hidden;line-height:1.2;font-size:11px;min-width:0}
.booking-event.event-conflict{background:#f7ded7;color:#823227;border-color:#a14537;border-left-width:3px}
.booking-event strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.booking-event:hover{filter:brightness(.96)}.booking-event:focus-visible{outline:3px solid var(--action);outline-offset:-1px}
.booking-board #bookings-empty{margin-top:8px}
@media(max-width:650px){.booking-board{padding:12px}.booking-grid{min-width:max(100%,calc(43px + var(--staff-columns)*153px));grid-template-columns:43px repeat(var(--staff-columns),minmax(153px,1fr))}.booking-toolbar,.booking-filters{width:100%}.booking-filters label{flex:1}.date-controls .button{padding:6px 9px;min-height:39px}}

/* Customer directory and chart modal */
.staff-panel .customer-directory-layout{display:block}
.customer-directory-layout .directory{width:100%}
.customer-directory-layout .search{max-width:410px}
.customer-table-scroll{overflow-x:auto}
.customer-table{min-width:290px}
.customer-table th,.customer-table td{padding:12px 10px;text-align:left}
.customer-table th:first-child{width:32%}
.customer-table th:nth-child(2){width:35%}
.customer-table th:nth-child(3){width:19%}
.customer-table td:last-child,.customer-table th:last-child{text-align:right}
.customer-table tbody tr:hover{background:var(--panel-hover,#f6f1e9)}
.customer-table .customer-lastvisit{white-space:nowrap;color:var(--muted);font-size:13px}
.customer-table .rowbutton{width:100%;min-height:36px}
#client-chart{width:min(825px,calc(100% - 34px));max-width:none;max-height:min(88vh,900px);max-height:min(88dvh,900px);overscroll-behavior:contain;border:1px solid var(--border);border-radius:var(--r);padding:0;background:var(--panel);color:var(--ink);box-shadow:0 22px 65px #251e1954}
#client-chart::backdrop{background:#2e262199}
#client-chart .detail{border:0;background:none;padding:clamp(15px,3vw,27px)}
#client-chart .boxhead{gap:13px}
.chart-controls{display:flex;align-items:start;gap:7px}
.chart-controls .chart-close{width:42px;padding:0;font-size:23px;line-height:1}
#client-chart .editor{scroll-margin-block:15px}
@media(max-width:560px){.customer-table th,.customer-table td{padding:8px 5px}.customer-table th:first-child,.customer-table th:nth-child(2),.customer-table th:nth-child(3){width:auto}.customer-table .tag{padding:3px 5px;font-size:10px}.customer-table .customer-lastvisit{font-size:11px}.customer-table .button{padding-inline:7px}#client-chart{width:calc(100% - 18px);max-height:calc(100dvh - 24px)}.chart-controls{align-items:end;flex-direction:column-reverse}.chart-controls .button:not(.chart-close){padding-inline:7px;font-size:12px}#client-chart .detail{padding:13px}}

/* Additive customer profile fields */
.client-profile{border:1px solid var(--border);border-radius:13px;margin:14px 0;padding:11px;background:var(--panel)}
.client-profile-head{display:flex;align-items:center;justify-content:space-between;gap:7px}
.client-profile-head h3{font-size:16px;white-space:nowrap}
.client-profile dl{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:9px;margin:9px 0 0}
.client-profile dl>div{background:var(--base);border-radius:8px;padding:6px 8px}
.client-profile dt{font-size:11px;color:var(--muted);font-weight:750}
.client-profile dd{margin:2px 0;font-size:13px;overflow-wrap:anywhere}
@media(max-width:560px){.client-profile dl{grid-template-columns:1fr 1fr}.client-profile dl>div:last-child{grid-column:1/-1}.client-profile-head .button{padding-inline:6px;font-size:12px}}

/* Compact, code-free intake and explicit staff assignment. */
.guest.guest-intake{max-width:560px;margin:24px auto}.guest.guest-intake .guest-head{background:transparent;color:var(--ink);border-radius:0;padding:0 3px 4px}.guest.guest-intake .guest-head h1{font-size:clamp(26px,6vw,34px);margin:0;letter-spacing:-.035em}.guest.guest-intake .guest-head h1:after{display:none}.guest.guest-intake .guest-head p{color:var(--muted);font-size:13px;margin-top:5px}.guest-intake #guest-form{display:grid;gap:12px}.guest-intake #guest-form>label:not(.consent){display:block;min-width:0}.guest-intake #guest-form>label :is(input:not([type=checkbox]),select,textarea){display:block;margin-top:5px;font-size:16px}.guest-required{border-radius:20px;background:#eee7dc;color:#625548;padding:2px 7px;font-size:10px;margin-left:3px}.guest-intake .consent{margin:0}.guest-intake .button,.intake-link .button,.intake-link select{min-height:44px}.intake-link{min-width:0;align-items:center}.intake-link select{width:auto;max-width:100%;min-width:min(180px,100%)}.intake-status,.action-list li p{overflow-wrap:anywhere}.intake-status{color:var(--muted);font-size:12px;max-width:100%}.intake-link button:disabled{opacity:.55;cursor:not-allowed}@media(max-width:430px){.guest.guest-intake{margin-top:18px}.guest-intake .actions>.button{flex:1 1 auto}.intake-link{width:100%}.intake-link select{width:100%}}

.handover-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.handover-wide{grid-column:1/-1}.handover-form textarea{resize:vertical}
.action-list li p.handover-due{display:inline-block;background:var(--old-soft);color:var(--old-ink);border-radius:6px;padding:2px 6px;font-weight:700}
@media(max-width:520px){.handover-fields{grid-template-columns:1fr}.action-list li{flex-direction:column;gap:4px}.action-list li>div{width:100%}}

/* Optional chart-only profile details */
.profile-guide{font-size:12px;color:var(--muted);margin-bottom:8px}
.profile-demographic-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px}
@media(max-width:350px){.profile-demographic-fields{grid-template-columns:1fr}}

/* 選択中を列単位ではなく全行に表示。 */
.directory tbody tr.current>td,.directory tbody tr:focus-within>td{background:var(--action-soft)}
.directory tbody tr.current>td:first-child,.directory tbody tr:focus-within>td:first-child{box-shadow:inset 3px 0 var(--action)}
.directory tbody tr.current>td:last-child,.directory tbody tr:focus-within>td:last-child{background:var(--action-soft)}
.month-overview{margin-bottom:14px;background:#f6f0e9;border:1px solid #e6dcd0;border-radius:11px;padding:9px 11px}
.month-overview summary{cursor:pointer;color:#342e26}.month-overview summary span{color:#6b6057;font-size:12px;margin-left:7px}
.booking-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:8px}
.month-weekday,.month-spacer{text-align:center;font-size:11px;color:#6b6057;min-height:19px}
.month-date{border:1px solid #e2d9ce;background:#fffcf8;color:#332d26;min-width:0;display:grid;text-align:left;padding:4px 7px;border-radius:6px;line-height:1.2;min-height:43px}
.month-date>span{font-size:10px;color:#63574e}.month-date>span.month-conflict{color:#823227;font-weight:800}.month-date[aria-pressed=true]{color:#193f3c;background:var(--action-soft);border-color:var(--action)}
.month-date:focus-visible{outline:2px solid var(--action);outline-offset:1px}.month-date:hover{background:#faf3e9}
@media(max-width:500px){.month-date{padding:4px 2px;text-align:center;min-height:38px}.booking-month{gap:3px}.month-overview{padding:7px}.month-overview summary span{display:none}.month-date>span{font-size:9px}}

/* Staff palette: neutral surfaces, salon-inspired gold actions, red for genuine conflicts. */
body[data-app="crm"]{--base:#f4f5f7;--panel:#fff;--border:#e1e3e7;--ink:#292b30;--muted:#5c6069;--old-soft:#f0f1f3;--old-ink:#4c5058;--action:#7e5e24;--action-dark:#614716;--action-soft:#f6edd7}
body[data-app="crm"] .top{background:#fff;border-top-color:#ad884a}
body[data-app="crm"] .staff-nav{background:#ebedf0;border-color:#dfe2e6}
body[data-app="crm"] .staff-nav>a:hover{background:#f8f8fa}
body[data-app="crm"] .staff-nav>a[aria-current=page]{background:#f5ecd6;color:#5b4315}
body[data-app="crm"] .badge{background:#eef0f2;color:#4c5058}
body[data-app="crm"] .tag:nth-child(even){background:#f0f1f4;color:#535662}
body[data-app="crm"] .compare article.visit-current{border-color:#ddc38f}
body[data-app="crm"] .compare article.visit-previous,body[data-app="crm"] .month-overview{border-color:#e1e3e7;background:#f4f5f7}
body[data-app="crm"] .visit-previous .visit-label{background:#e7e9ed;color:#4c5058}
body[data-app="crm"] .booking-corner,body[data-app="crm"] .booking-staff-head{background:#f0f1f3}
body[data-app="crm"] .month-date{background:white;border-color:#e3e5e8}
body[data-app="crm"] .month-date[aria-pressed=true]{background:var(--action-soft);border-color:var(--action)}
body[data-app="crm"] .button.secondary{color:#625029;background:#fffefa;border-color:#c9b485}
body[data-app="form"] .button:not(.secondary){background:#7e5e24;border-color:#7e5e24}
body[data-app="form"] .button:not(.secondary):hover{background:#614716}
.customer-number{display:block;width:max-content;font-size:11px;font-weight:680;color:#595c63;margin:2px 0 4px;letter-spacing:.025em}
.chart-handover{padding:13px;background:#f4f5f7;border-radius:12px;margin:12px 0;border:1px solid #e1e3e7}
.chart-handover ul{list-style:none;margin:8px 0 0;padding:0}.chart-handover li+li{border-top:1px solid #e1e3e7;padding-top:8px;margin-top:8px}
.chart-handover li p{font-size:13px;color:#555962;margin:4px 0}

.store-picker{display:flex;align-items:center;gap:.45rem;font-size:.78rem;font-weight:700;white-space:nowrap}.store-picker select{width:min(202px,36vw);min-width:0}.store-mark{display:grid;place-items:center;height:43px;min-width:43px;padding:0 .28rem;background:#285b56;color:#fff;border-radius:50%;font-size:.85rem}.store-mark[hidden]{display:none}.brand-logo img[hidden]{display:none}.store-list{list-style:none;margin:0 0 1rem;padding:0}.store-list li{display:flex;align-items:center;gap:.7rem;padding:.65rem 0;border-bottom:1px solid var(--border);flex-wrap:wrap}.store-add{display:flex;align-items:flex-end;flex-wrap:wrap;gap:.65rem}.store-add label{flex:1 1 190px}.store-add button{min-height:44px}.store-picker select{min-height:42px}
@media(max-width:580px){body[data-app=crm] .top{flex-wrap:wrap}.topright{flex:1 1 100%;justify-content:space-between}.store-picker select{width:min(195px,42vw)}.topright .button{font-size:.78rem}.brand small{white-space:nowrap}}

.brand-logo img.teal-logo{width:55px;height:55px;object-fit:cover;transform:scale(1.12);border-radius:50%;object-position:50% 49%}
.tag[data-tone=orange]{background:#b64104;color:white}.tag[data-tone=blue]{background:#1758d4;color:white}.tag[data-tone=green]{background:#06754e;color:white}.tag[data-tone=violet]{background:#7242c4;color:white}.tag[data-tone=pink]{background:#b51c63;color:white}
.booking-legend .legend-hp,.booking-event.legend-hp{background:#be165e;color:#fff}
.booking-legend .legend-line,.booking-event.legend-line{background:#067549;color:#fff}
.booking-legend .legend-phone,.booking-event.legend-phone{background:#1956cb;color:#fff}
.booking-legend .legend-conflict,.booking-event.event-conflict{background:#be1026;color:#fff}
.booking-event.event-conflict{border:2px solid #880016}
.booking-alert.has-conflict{background:#fff0f2;border-color:#be1026;color:#9e0920}
.booking-month .month-conflict{color:#af0922;font-weight:850}
.booking-event .event-time,.booking-event .event-channel{opacity:1;color:inherit}

/* Keep the chart action label together even in compact phone dialogs. */
#add-visit{white-space:nowrap;flex-shrink:0}
@media(max-width:560px){#detail>.boxhead>.chart-controls{flex:0 0 auto}#detail>.boxhead>div:first-child{min-width:0}#detail .chart-controls #add-visit{white-space:nowrap}}

/* Let short mobile actions stay intact and allow names to wrap between words. */
@media(max-width:560px){
 .staff-panel>.title{flex-wrap:wrap;align-items:center;gap:8px 12px}
 .staff-panel>.title>.button,.customer-table .button,.guest .actions>.button{white-space:nowrap}
 .customer-table .rowbutton{word-break:keep-all;overflow-wrap:anywhere}
}
