:root {
  color-scheme: dark;
  --bg: #071710;
  --bg-soft: #0a1d15;
  --surface: #0e241a;
  --surface-raised: #132b20;
  --surface-soft: #10271d;
  --surface-hover: #193729;
  --line: rgba(151, 190, 164, .17);
  --line-strong: rgba(165, 203, 176, .27);
  --text: #f2f6f2;
  --text-soft: #d1ddd4;
  --muted: #9eb0a3;
  --muted-2: #778d7e;
  --gold: #edbb4d;
  --gold-light: #ffd875;
  --gold-dark: #b87f23;
  --green: #35bf83;
  --green-soft: rgba(53, 191, 131, .13);
  --blue: #5bb8dd;
  --red: #e67c72;
  --amber: #edbd56;
  --purple: #ae93e8;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 18px 55px rgba(0, 0, 0, .2);
  --sidebar-width: 246px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(ellipse at 79% 8%, rgba(21, 79, 54, .19), transparent 34%), var(--bg); font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .48; }
[hidden] { display: none !important; }
::selection { color: #06150d; background: var(--gold-light); }

.surface, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(19, 47, 34, .94), rgba(11, 31, 22, .96)); box-shadow: var(--shadow); }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 750; letter-spacing: .13em; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(53, 191, 131, .38); flex: none; }
.status-dot.offline { background: var(--muted-2); box-shadow: none; }
.status-dot.warning { background: var(--amber); box-shadow: 0 0 10px rgba(237, 189, 86, .25); }
.text-muted { color: var(--muted); }
.gold-text { color: var(--gold-light); }

/* Brand and sign in */
.login-screen { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(ellipse at 20% 10%, #0d2c1d 0%, transparent 43%), radial-gradient(ellipse at 80% 100%, rgba(174, 121, 29, .11), transparent 38%), #06140e; }
.login-ambient { position: absolute; width: 800px; height: 800px; top: -430px; left: -230px; border: 1px solid rgba(239, 189, 75, .18); border-radius: 50%; box-shadow: 0 0 0 36px rgba(239, 189, 75, .025), 0 0 0 95px rgba(239, 189, 75, .018); pointer-events: none; }
.login-layout { position: relative; z-index: 1; width: min(1180px, calc(100% - 64px)); min-height: calc(100vh - 68px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .82fr); align-items: center; gap: clamp(48px, 8vw, 112px); padding: 48px 0; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(237, 187, 77, .72); border-radius: 14px; color: var(--gold); background: linear-gradient(145deg, rgba(237, 187, 77, .1), rgba(237, 187, 77, .025)); box-shadow: inset 0 0 20px rgba(237, 187, 77, .05); }
.brand-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand strong { display: block; font-size: 20px; line-height: .97; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; letter-spacing: .15em; white-space: nowrap; }
.brand-large .brand-mark { width: 58px; height: 58px; }
.brand-large .brand-mark svg { width: 34px; height: 34px; }
.brand-large strong { font-size: 23px; }
.login-story { min-width: 0; }
.story-copy { position: relative; max-width: 560px; padding-top: clamp(70px, 12vh, 138px); }
.story-copy .eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid rgba(53, 191, 131, .22); border-radius: 999px; color: #b8d8c3; background: rgba(29, 83, 57, .18); letter-spacing: .1em; }
.story-copy h1 { margin: 24px 0 17px; font-size: clamp(46px, 5vw, 68px); line-height: 1.04; letter-spacing: -.055em; }
.story-copy h1 em { color: var(--gold-light); font-style: normal; }
.story-copy > p { max-width: 460px; margin: 0; color: #b1c0b5; font-size: 16px; line-height: 1.7; }
.story-preview { position: relative; height: 255px; margin-top: 28px; overflow: hidden; border-bottom: 1px solid rgba(237, 187, 77, .24); }
.story-preview::after { position: absolute; right: -4%; bottom: -1px; left: -4%; height: 62px; border-top: 1px solid rgba(237, 187, 77, .55); border-radius: 50% 50% 0 0; background: linear-gradient(180deg, rgba(237, 187, 77, .11), transparent); content: ""; transform: rotate(-4deg); }
.preview-orbit { position: absolute; width: 290px; height: 290px; top: 4px; left: 24%; border: 1px solid rgba(237, 187, 77, .13); border-radius: 50%; }
.orbit-two { width: 390px; height: 390px; top: -30px; left: 14%; border-color: rgba(237, 187, 77, .075); }
.preview-calendar { position: absolute; z-index: 1; width: 212px; height: 170px; top: 40px; left: 24%; padding: 15px 18px; border: 1px solid rgba(171, 207, 183, .2); border-radius: 16px; background: linear-gradient(145deg, rgba(22, 55, 39, .92), rgba(10, 30, 20, .94)); box-shadow: 0 25px 65px rgba(0, 0, 0, .25); transform: rotate(-5deg); }
.preview-calendar-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.preview-calendar-top i { color: var(--gold-light); font-style: normal; }
.preview-calendar > strong { display: block; margin-top: 11px; font-size: 48px; line-height: 1; letter-spacing: -.05em; }
.preview-calendar > small { color: var(--muted); }
.preview-mini-bars { position: absolute; right: 17px; bottom: 23px; display: flex; align-items: end; gap: 5px; height: 42px; }
.preview-mini-bars i { width: 6px; border-radius: 4px; background: linear-gradient(180deg, var(--green), rgba(53, 191, 131, .2)); }
.preview-mini-bars i:nth-child(1) { height: 35%; }.preview-mini-bars i:nth-child(2) { height: 55%; }.preview-mini-bars i:nth-child(3) { height: 44%; }.preview-mini-bars i:nth-child(4) { height: 78%; }.preview-mini-bars i:nth-child(5) { height: 60%; }.preview-mini-bars i:nth-child(6) { height: 100%; }.preview-mini-bars i:nth-child(7) { height: 72%; }
.preview-float { position: absolute; z-index: 2; top: 145px; left: 51%; display: flex; align-items: center; gap: 10px; padding: 11px 15px 11px 11px; border: 1px solid rgba(151, 190, 164, .22); border-radius: 12px; background: #10271d; box-shadow: 0 14px 38px rgba(0, 0, 0, .3); transform: rotate(3deg); }
.mini-check { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: #08170f; background: var(--green); font-weight: 800; }
.preview-float b, .preview-float small { display: block; }.preview-float b { font-size: 12px; }.preview-float small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.login-proof { display: flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--muted); font-size: 12px; }.login-proof span { color: var(--gold); }
.login-card { padding: clamp(25px, 3.1vw, 38px); border-color: rgba(165, 203, 176, .2); background: linear-gradient(150deg, rgba(16, 42, 29, .97), rgba(8, 25, 17, .98)); }
.login-card-heading h2 { margin: 9px 0 8px; font-size: 28px; letter-spacing: -.035em; }
.login-card-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.field-group { margin-top: 25px; }.field-label { display: block; margin-bottom: 9px; color: var(--text-soft); font-size: 12px; font-weight: 650; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(2, 12, 7, .28); }
.segment { min-height: 41px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }.segment.active { border-color: rgba(237, 187, 77, .38); color: var(--gold-light); background: rgba(237, 187, 77, .12); }
.role-options { display: grid; gap: 9px; }.role-option { display: flex; min-height: 64px; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; text-align: left; background: rgba(6, 19, 12, .4); cursor: pointer; transition: border-color .16s, background .16s; }
.role-option:hover { border-color: var(--line-strong); }.role-option.selected { border-color: rgba(237, 187, 77, .65); background: rgba(237, 187, 77, .08); }
.role-icon { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--gold); background: rgba(237, 187, 77, .06); font-size: 20px; }
.role-option b, .role-option small { display: block; }.role-option b { font-size: 13px; }.role-option small { margin-top: 3px; color: var(--muted); font-size: 11px; }.radio-dot { width: 15px; height: 15px; margin-left: auto; border: 1px solid #738477; border-radius: 50%; }.role-option.selected .radio-dot { border: 4px solid var(--gold); background: #f5dfaa; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: rgba(255, 255, 255, .025); font-weight: 650; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.button:hover { border-color: rgba(200, 224, 207, .42); background: rgba(255, 255, 255, .065); }.button:active { transform: translateY(1px); }
.button-gold { border-color: #f4c85e; color: #172315; background: linear-gradient(135deg, #f6d579, #e6aa39); box-shadow: 0 8px 24px rgba(197, 137, 39, .14); }.button-gold:hover { border-color: #ffe6a1; background: linear-gradient(135deg, #ffe092, #efb746); }
.button-green { border-color: rgba(53, 191, 131, .5); color: #d8f7e7; background: linear-gradient(135deg, rgba(36, 142, 92, .8), rgba(25, 105, 69, .85)); }
.button-danger { border-color: rgba(230, 124, 114, .34); color: #f2a098; background: rgba(230, 124, 114, .08); }.button-quiet { color: var(--text-soft); }.button-wide { width: 100%; min-height: 50px; margin-top: 18px; font-size: 14px; }.button span { font-size: 18px; }
.login-error { margin-top: 13px; padding: 10px 12px; border: 1px solid rgba(230, 124, 114, .35); border-radius: 9px; color: #ffb1aa; background: rgba(132, 45, 41, .16); font-size: 12px; }
.login-legal { margin: 11px 0 20px; color: var(--muted-2); font-size: 10px; text-align: center; line-height: 1.5; }.login-divider { display: flex; align-items: center; gap: 11px; color: var(--muted-2); }.login-divider span { height: 1px; flex: 1; background: var(--line); }.login-divider small { font-size: 9px; letter-spacing: .12em; }
.local-note { display: flex; align-items: center; gap: 11px; margin-top: 17px; padding: 12px; border: 1px solid rgba(53, 191, 131, .16); border-radius: 11px; background: rgba(53, 191, 131, .055); }.local-note-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(53, 191, 131, .25); border-radius: 9px; color: var(--green); font-size: 18px; }.local-note b, .local-note small { display: block; }.local-note b { font-size: 11px; }.local-note small { margin-top: 3px; color: var(--muted); font-size: 10px; }.local-note .status-dot { margin-left: auto; }
.login-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 17px 0 22px; border-top: 1px solid rgba(151, 190, 164, .11); color: var(--muted-2); font-size: 9px; letter-spacing: .1em; }.login-footer i { color: var(--gold); font-style: normal; }

/* Main shell */
.app-shell { min-height: 100vh; }.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: var(--sidebar-width); flex-direction: column; border-right: 1px solid var(--line); background: linear-gradient(180deg, #091b12 0%, #0a2117 70%, #0b2519 100%); }
.sidebar-top { padding: 22px 17px 15px; border-bottom: 1px solid rgba(151, 190, 164, .11); }.sidebar-top .brand { gap: 11px; }.sidebar-top .brand-mark { width: 43px; height: 43px; border-radius: 12px; }.sidebar-top .brand-mark svg { width: 25px; height: 25px; }.sidebar-top .brand strong { font-size: 18px; }.sidebar-top .brand small { font-size: 8px; letter-spacing: .12em; }
.shop-switcher { display: flex; align-items: center; gap: 10px; margin-top: 21px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .026); }.shop-avatar, .user-avatar { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border: 1px solid rgba(237, 187, 77, .45); border-radius: 11px; color: var(--gold-light); background: linear-gradient(145deg, rgba(237, 187, 77, .2), rgba(237, 187, 77, .04)); font-size: 15px; font-weight: 700; }.shop-switcher-copy { min-width: 0; flex: 1; }.shop-switcher-copy b, .shop-switcher-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.shop-switcher-copy b { font-size: 12px; }.shop-switcher-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }.chevron { color: var(--muted); font-size: 16px; }
.side-nav { flex: 1; overflow: auto; padding: 18px 11px; }.nav-caption { display: block; padding: 0 10px; color: #718678; font-size: 9px; font-weight: 750; letter-spacing: .12em; }.nav-caption-spaced { margin-top: 24px; }.nav-item { position: relative; display: flex; width: 100%; min-height: 45px; align-items: center; gap: 11px; margin-top: 4px; padding: 0 11px; border: 1px solid transparent; border-radius: 10px; color: #bdcbbf; text-align: left; background: transparent; cursor: pointer; }.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .045); }.nav-item.active { border-color: rgba(237, 187, 77, .32); color: #ffe5a3; background: linear-gradient(100deg, rgba(237, 187, 77, .19), rgba(237, 187, 77, .06)); box-shadow: inset 3px 0 var(--gold); }.nav-icon { display: grid; width: 21px; height: 21px; flex: none; place-items: center; color: currentColor; }.nav-icon svg, .topbar-shop-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.nav-item > span:nth-child(2) { flex: 1; font-size: 12px; font-weight: 580; }.nav-count { display: grid; min-width: 24px; height: 21px; place-items: center; border-radius: 7px; color: #b0d9bd; background: rgba(53, 191, 131, .13); font-size: 10px; }.nav-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }.nav-finance { color: #e9c86c; }.nav-finance .nav-icon { color: var(--gold); }.nav-finance small { margin-left: 4px; padding: 2px 4px; border: 1px solid rgba(237, 187, 77, .32); border-radius: 4px; font-size: 8px; letter-spacing: .06em; }
.sidebar-bottom { padding: 12px 13px 16px; border-top: 1px solid rgba(151, 190, 164, .1); }.sidebar-demo-card { display: flex; align-items: center; gap: 9px; padding: 11px 10px; border: 1px solid rgba(53, 191, 131, .15); border-radius: 11px; background: rgba(53, 191, 131, .06); }.demo-spark { color: var(--green); font-size: 16px; }.sidebar-demo-card div { min-width: 0; flex: 1; }.sidebar-demo-card b, .sidebar-demo-card small { display: block; }.sidebar-demo-card b { font-size: 10px; }.sidebar-demo-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }.sidebar-demo-card .status-dot { width: 7px; height: 7px; }.sidebar-user { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 5px 4px 0; }.sidebar-user > span:nth-child(2) { min-width: 0; flex: 1; }.sidebar-user b, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.sidebar-user b { font-size: 11px; }.sidebar-user small { margin-top: 2px; color: var(--muted); font-size: 9px; }.sidebar-user .user-avatar { width: 31px; height: 31px; border-radius: 50%; }
.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }.topbar { position: sticky; z-index: 12; top: 0; display: flex; height: 70px; align-items: center; gap: 19px; padding: 0 clamp(21px, 3vw, 42px); border-bottom: 1px solid var(--line); background: rgba(7, 23, 16, .91); backdrop-filter: blur(14px); }.topbar-shop { display: flex; align-items: center; gap: 10px; }.topbar-shop-mark { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--gold); background: rgba(237, 187, 77, .07); }.topbar-shop-mark svg { width: 18px; height: 18px; }.topbar-shop b, .topbar-shop small { display: block; }.topbar-shop b { font-size: 13px; }.topbar-shop small { margin-top: 2px; color: var(--muted); font-size: 10px; }.topbar-spacer { flex: 1; }.connection-pill { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid rgba(151, 190, 164, .14); border-radius: 999px; color: #c6d5ca; background: rgba(255, 255, 255, .025); font-size: 10px; white-space: nowrap; }.connection-pill b { color: #ecaa9f; font-weight: 600; }.connection-pill .status-dot { width: 7px; height: 7px; }.wa-mark { color: #77dda5; font-size: 14px; }.topbar-separator { width: 1px; height: 26px; background: var(--line); }.icon-button { position: relative; display: grid; width: 37px; height: 37px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--text-soft); background: rgba(255, 255, 255, .025); cursor: pointer; }.icon-button:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .07); }.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.notification-button > i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid var(--bg); border-radius: 50%; background: var(--gold); }.profile-button { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 3px 0 3px 4px; border: 0; color: var(--text-soft); background: none; cursor: pointer; font-size: 11px; }.profile-button .user-avatar { width: 32px; height: 32px; border-radius: 50%; }.profile-menu { position: absolute; z-index: 25; top: 59px; right: 28px; width: 220px; padding: 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: #11271d; box-shadow: var(--shadow); }.profile-menu b, .profile-menu small { display: block; }.profile-menu b { font-size: 12px; }.profile-menu small { margin: 3px 0 10px; color: var(--muted); font-size: 10px; }.profile-menu button { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--text-soft); text-align: left; background: rgba(255, 255, 255, .035); cursor: pointer; font-size: 11px; }.mobile-menu { display: none; }.demo-ribbon { display: flex; min-height: 38px; align-items: center; gap: 9px; padding: 0 clamp(21px, 3vw, 42px); border-bottom: 1px solid rgba(53, 191, 131, .11); color: #a9c8b3; background: rgba(21, 73, 48, .14); font-size: 10px; }.demo-ribbon b { color: #71d4a2; letter-spacing: .08em; }.demo-ribbon-mark { display: grid; width: 17px; height: 17px; flex: none; place-items: center; border: 1px solid rgba(53, 191, 131, .38); border-radius: 50%; color: var(--green); font-size: 10px; font-weight: 750; }.demo-ribbon button { margin-left: auto; border: 0; color: #8ca996; background: none; cursor: pointer; font-size: 18px; }.page-content { width: 100%; max-width: 1740px; min-height: calc(100vh - 150px); margin: 0 auto; padding: 28px clamp(21px, 3vw, 42px) 36px; }.workspace-footer { display: flex; justify-content: space-between; padding: 12px clamp(21px, 3vw, 42px) 16px; border-top: 1px solid rgba(151, 190, 164, .09); color: var(--muted-2); font-size: 9px; letter-spacing: .08em; }.workspace-footer i:not(.status-dot) { color: var(--gold); font-style: normal; }.workspace-footer .status-dot { width: 6px; height: 6px; margin-left: 5px; }
.mobile-scrim { display: none; }

/* Shared page primitives */
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 21px; }.page-heading-main { display: flex; align-items: flex-start; gap: 14px; }.page-icon { display: grid; width: 50px; height: 50px; flex: none; place-items: center; border: 1px solid rgba(237, 187, 77, .5); border-radius: 14px; color: var(--gold); background: linear-gradient(145deg, rgba(237, 187, 77, .14), rgba(237, 187, 77, .035)); box-shadow: inset 0 0 22px rgba(237, 187, 77, .04); }.page-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.page-heading h1 { margin: 0; font-size: clamp(24px, 2vw, 31px); line-height: 1.15; letter-spacing: -.035em; }.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }.button svg, .subtle-button svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.section-heading h2, .section-heading h3 { margin: 0; font-size: 15px; letter-spacing: -.015em; }.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }.section-heading .subtle-button { flex: none; }
.panel { min-width: 0; padding: 18px; }.panel-title { display: flex; align-items: center; gap: 9px; }.panel-title-icon { display: grid; width: 29px; height: 29px; flex: none; place-items: center; border-radius: 9px; color: var(--gold); background: rgba(237, 187, 77, .1); }.panel-title-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.panel-title b { font-size: 13px; }.panel-title small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 450; }
.subtle-button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 9px; color: #d2dfd5; background: rgba(255, 255, 255, .025); cursor: pointer; font-size: 11px; font-weight: 580; }.subtle-button:hover { border-color: rgba(200, 224, 207, .46); background: rgba(255, 255, 255, .065); }.subtle-button svg { width: 15px; height: 15px; }.subtle-button.gold-outline { border-color: rgba(237, 187, 77, .42); color: var(--gold-light); background: rgba(237, 187, 77, .07); }.subtle-button.danger-outline { border-color: rgba(230, 124, 114, .3); color: #ed978f; }
.field { min-width: 0; }.field label, .field-label-inline { display: block; margin-bottom: 6px; color: #bfcec3; font-size: 10px; font-weight: 620; }.control, .field input, .field select, .field textarea, .filter-control { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); background-color: rgba(5, 17, 11, .58); }.field textarea { min-height: 88px; padding-top: 10px; resize: vertical; }.control:focus, .field input:focus, .field select:focus, .field textarea:focus, .filter-control:focus { border-color: rgba(237, 187, 77, .65); outline: none; box-shadow: 0 0 0 3px rgba(237, 187, 77, .09); }.field select, .filter-control { color-scheme: dark; }.field option, .filter-control option { color: var(--text); background: #11271d; }.field input::placeholder, .field textarea::placeholder { color: #74897a; }
.filter-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 600; }.filter-control { min-height: 42px; font-size: 11px; }.input-with-icon { position: relative; }.input-with-icon > svg { position: absolute; top: 12px; left: 11px; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }.input-with-icon .filter-control { padding-left: 36px; }
.pill { display: inline-flex; min-height: 24px; align-items: center; justify-content: center; gap: 6px; padding: 0 9px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 650; white-space: nowrap; }.pill::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }.pill-green { border-color: rgba(53, 191, 131, .19); color: #83ddb0; background: rgba(53, 191, 131, .12); }.pill-amber { border-color: rgba(237, 189, 86, .2); color: #f2cf7c; background: rgba(237, 189, 86, .11); }.pill-blue { border-color: rgba(91, 184, 221, .22); color: #8bd3ed; background: rgba(91, 184, 221, .11); }.pill-red { border-color: rgba(230, 124, 114, .21); color: #f3a097; background: rgba(230, 124, 114, .11); }.pill-neutral { border-color: var(--line); color: #bac9bd; background: rgba(255, 255, 255, .04); }
.demo-tag { display: inline-flex; min-height: 21px; align-items: center; padding: 0 7px; border: 1px solid rgba(237, 187, 77, .29); border-radius: 6px; color: var(--gold-light); background: rgba(237, 187, 77, .08); font-size: 9px; font-weight: 750; letter-spacing: .07em; white-space: nowrap; }.demo-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid rgba(91, 184, 221, .16); border-radius: 10px; color: #b7d9e5; background: rgba(39, 112, 141, .08); font-size: 10px; line-height: 1.5; }.demo-note i { flex: none; color: var(--blue); font-style: normal; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }.stat-card { position: relative; display: flex; min-height: 103px; align-items: center; gap: 12px; overflow: hidden; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(21, 51, 36, .9), rgba(12, 34, 23, .94)); }.stat-card::after { position: absolute; right: -25px; bottom: -52px; width: 110px; height: 100px; border: 1px solid rgba(53, 191, 131, .1); border-radius: 50%; content: ""; }.stat-card.gold::after { border-color: rgba(237, 187, 77, .12); }.stat-card.red::after { border-color: rgba(230, 124, 114, .12); }.stat-icon { display: grid; width: 43px; height: 43px; flex: none; place-items: center; border: 1px solid rgba(53, 191, 131, .2); border-radius: 13px; color: var(--green); background: rgba(53, 191, 131, .09); }.stat-card.gold .stat-icon { border-color: rgba(237, 187, 77, .23); color: var(--gold); background: rgba(237, 187, 77, .1); }.stat-card.red .stat-icon { border-color: rgba(230, 124, 114, .22); color: var(--red); background: rgba(230, 124, 114, .09); }.stat-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.stat-copy { min-width: 0; }.stat-copy span, .stat-copy b, .stat-copy small { display: block; }.stat-copy span { color: var(--muted); font-size: 10px; }.stat-copy b { margin-top: 2px; font-size: 24px; line-height: 1.1; letter-spacing: -.04em; }.stat-copy small { margin-top: 5px; color: #82988a; font-size: 9px; }.stat-trend { position: absolute; top: 11px; right: 11px; color: #71d7a2; font-size: 9px; }
.empty-state { display: grid; min-height: 190px; place-items: center; align-content: center; padding: 24px; color: var(--muted); text-align: center; }.empty-icon { display: grid; width: 48px; height: 48px; margin-bottom: 11px; place-items: center; border: 1px solid rgba(237, 187, 77, .19); border-radius: 15px; color: var(--gold); background: rgba(237, 187, 77, .07); }.empty-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }.empty-state b { color: var(--text-soft); font-size: 13px; }.empty-state p { max-width: 290px; margin: 5px 0 13px; font-size: 11px; }

/* Appointments */
.appointment-filters { display: grid; grid-template-columns: minmax(165px, .86fr) minmax(155px, .76fr) minmax(200px, 1.18fr) minmax(135px, .65fr) auto; align-items: end; gap: 9px; margin-bottom: 17px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(12, 32, 22, .68); }.date-control-wrap { display: flex; align-items: center; gap: 5px; }.date-control-wrap .filter-control { min-width: 0; }.date-step { display: grid; width: 32px; height: 42px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255, 255, 255, .025); cursor: pointer; }.date-step:hover { color: var(--gold-light); border-color: var(--line-strong); }.filter-search { position: relative; }.filter-search svg { position: absolute; z-index: 1; top: 12px; left: 11px; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.filter-search input { padding-left: 35px; }.appointment-filters > .button { min-height: 42px; padding: 0 14px; white-space: nowrap; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }.quick-actions .subtle-button { min-height: 34px; padding: 0 10px; font-size: 10px; }.quick-actions .subtle-button svg { width: 14px; height: 14px; }
.appointments-layout { display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(270px, .92fr); align-items: start; gap: 15px; }.appointments-main { min-height: 430px; }.appointment-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }.view-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(1, 11, 6, .23); }.view-switch button { min-height: 30px; padding: 0 9px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }.view-switch button.active { color: #1b2517; background: linear-gradient(135deg, #f3d27b, #e6b443); font-weight: 700; }.status-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 5px; }.status-filter { min-height: 27px; padding: 0 9px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }.status-filter.active { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .06); }
.timeline-list { padding-top: 8px; }.timeline-day-label { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px 67px; color: var(--muted); font-size: 10px; font-weight: 650; }.timeline-day-label::after { height: 1px; flex: 1; background: var(--line); content: ""; }.timeline-row { display: grid; grid-template-columns: 52px 15px minmax(0, 1fr); gap: 8px; align-items: stretch; min-height: 71px; }.timeline-time { padding-top: 14px; color: #d5e0d8; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }.timeline-marker { position: relative; display: flex; justify-content: center; }.timeline-marker::before { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(159, 193, 169, .17); content: ""; }.timeline-row:first-child .timeline-marker::before { top: 13px; }.timeline-row:last-child .timeline-marker::before { bottom: calc(100% - 19px); }.timeline-marker i { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 15px; border: 2px solid #91aa99; border-radius: 50%; background: #153124; }.timeline-row.is-pending .timeline-marker i { border-color: var(--amber); }.timeline-row.is-current .timeline-marker i { border-color: var(--blue); }.timeline-card { display: grid; grid-template-columns: minmax(130px, 1.18fr) minmax(105px, .9fr) minmax(90px, .78fr) auto auto; align-items: center; gap: 10px; min-width: 0; min-height: 60px; margin: 4px 0 7px; padding: 8px 10px; border: 1px solid rgba(151, 190, 164, .13); border-radius: 11px; background: linear-gradient(100deg, rgba(25, 55, 39, .86), rgba(16, 38, 27, .88)); transition: border-color .14s, background .14s; }.timeline-card:hover { border-color: rgba(151, 190, 164, .32); background: #183728; }.appointment-client { display: flex; min-width: 0; align-items: center; gap: 8px; }.client-avatar { display: grid; width: 31px; height: 31px; flex: none; place-items: center; border: 1px solid rgba(151, 190, 164, .2); border-radius: 50%; color: #d9eadf; background: linear-gradient(145deg, #345844, #1d3a29); font-size: 11px; font-weight: 700; }.appointment-client b, .appointment-client small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.appointment-client b { font-size: 10px; }.appointment-client small { margin-top: 3px; color: var(--muted); font-size: 9px; }.appointment-service { min-width: 0; }.appointment-service b, .appointment-service small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.appointment-service b { font-size: 10px; font-weight: 620; }.appointment-service small { margin-top: 3px; color: var(--muted); font-size: 9px; }.appointment-barber { min-width: 0; color: #d3dfd6; font-size: 10px; }.appointment-barber small { display: block; margin-bottom: 2px; color: var(--muted-2); font-size: 8px; }.appointment-status { min-width: 0; }.appointment-status .pill { min-height: 23px; font-size: 9px; }.row-menu { width: 28px; height: 30px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 17px; }.row-menu:hover { color: var(--text); background: rgba(255, 255, 255, .08); }.timeline-card[data-open] { cursor: pointer; }
.appointments-side { display: grid; gap: 14px; }.day-summary { padding: 17px; }.day-summary-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.day-summary-top b { font-size: 13px; }.day-summary-top small { color: var(--muted); font-size: 10px; }.donut-wrap { display: flex; align-items: center; gap: 17px; margin: 22px 0 18px; }.donut { position: relative; display: grid; width: 126px; height: 126px; flex: none; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 63%, var(--gold) 63% 83%, var(--blue) 83% 92%, var(--red) 92% 100%); }.donut::after { position: absolute; width: 87px; height: 87px; border: 1px solid rgba(151, 190, 164, .13); border-radius: 50%; background: #10271c; content: ""; }.donut-center { position: relative; z-index: 1; text-align: center; }.donut-center b { display: block; font-size: 25px; line-height: 1.1; }.donut-center small { color: var(--muted); font-size: 9px; }.legend-list { display: grid; gap: 10px; flex: 1; }.legend-row { display: flex; align-items: center; gap: 7px; color: #c8d5cc; font-size: 10px; }.legend-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--green); }.legend-dot.amber { background: var(--gold); }.legend-dot.blue { background: var(--blue); }.legend-dot.red { background: var(--red); }.legend-row b { margin-left: auto; color: var(--text); font-size: 10px; }.summary-divider { height: 1px; margin: 15px 0 12px; background: var(--line); }.summary-metric { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; color: var(--muted); font-size: 10px; }.summary-metric b { color: var(--text-soft); font-size: 10px; }.next-open-card { padding: 17px; text-align: center; }.next-open-card .empty-icon { margin: 5px auto 10px; }.next-open-card b { font-size: 13px; }.next-open-card p { margin: 4px 0 13px; color: var(--muted); font-size: 10px; }.next-open-card .button { min-height: 39px; width: 100%; font-size: 11px; }
.view-empty { display: grid; min-height: 270px; place-items: center; align-content: center; color: var(--muted); text-align: center; }.view-empty .empty-icon { margin-bottom: 12px; }.view-empty strong { color: var(--text-soft); }.view-empty p { max-width: 320px; margin: 5px auto 13px; font-size: 11px; }

/* Statistics and finance */
.page-toolbar { display: flex; align-items: center; gap: 9px; }.toolbar-select { min-height: 39px; padding: 0 29px 0 11px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text-soft); background: #10271d; font-size: 11px; }.stat-grid.finance-stats .stat-card { min-height: 108px; }.stat-card.expense .stat-icon { border-color: rgba(230, 124, 114, .23); color: var(--red); background: rgba(230, 124, 114, .1); }.stat-card.purple .stat-icon { border-color: rgba(174, 147, 232, .22); color: var(--purple); background: rgba(174, 147, 232, .09); }.stat-card.gold .stat-icon { color: var(--gold); }.stat-copy .money { font-size: clamp(18px, 1.9vw, 25px); letter-spacing: -.035em; }.stat-copy small .up { color: var(--green); }.stat-copy small .down { color: #ed9389; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(285px, .95fr); gap: 15px; }.chart-panel { min-height: 300px; }.chart-legend { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 9px; }.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }.legend-square { width: 8px; height: 8px; border-radius: 2px; background: var(--green); }.legend-square.red { background: #d87578; }.legend-square.gold { background: var(--gold); }.bar-chart { display: flex; height: 205px; align-items: end; gap: clamp(5px, 1.2vw, 12px); margin: 20px 7px 0; padding: 0 3px 20px; border-bottom: 1px solid var(--line-strong); background: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, rgba(151, 190, 164, .09) 40px); }.bar-group { display: flex; height: 100%; min-width: 0; flex: 1; align-items: end; justify-content: center; gap: 3px; position: relative; }.bar { width: min(13px, 38%); min-height: 6px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #42cc91, #1d8057); }.bar.expense { background: linear-gradient(180deg, #df8284, #9c4e52); }.bar-group > small { position: absolute; top: calc(100% + 6px); color: var(--muted-2); font-size: 8px; white-space: nowrap; }.chart-axis { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted-2); font-size: 8px; }.chart-footnote { margin-top: 13px; color: var(--muted); font-size: 9px; }.chart-tooltip { display: none; }
.service-breakdown { display: grid; grid-template-columns: 125px minmax(0, 1fr); align-items: center; gap: 15px; margin-top: 18px; }.service-donut { position: relative; display: grid; width: 124px; height: 124px; place-items: center; border-radius: 50%; background: conic-gradient(#39b981 0 42%, #e9b449 42% 64%, #688be3 64% 80%, #d8758c 80% 91%, #84978a 91% 100%); }.service-donut::after { position: absolute; width: 82px; height: 82px; border-radius: 50%; background: #112a1e; content: ""; }.service-donut-copy { position: relative; z-index: 1; text-align: center; }.service-donut-copy b { display: block; font-size: 14px; }.service-donut-copy small { color: var(--muted); font-size: 8px; }.service-breakdown-list { display: grid; gap: 7px; }.service-breakdown-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 29px; padding: 0 7px; border: 1px solid rgba(151, 190, 164, .09); border-radius: 7px; background: rgba(255, 255, 255, .02); font-size: 9px; }.service-breakdown-row b { white-space: nowrap; }.service-breakdown-row span:nth-child(2) { overflow: hidden; color: var(--text-soft); text-overflow: ellipsis; white-space: nowrap; }.service-breakdown-row small { color: var(--muted); font-size: 8px; }
.secondary-analytics { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 15px; margin-top: 15px; }.mini-list { display: grid; gap: 11px; margin-top: 16px; }.mini-list-row { display: grid; grid-template-columns: minmax(90px, 1fr) 1.2fr 36px; align-items: center; gap: 10px; font-size: 10px; }.mini-list-row b { font-size: 10px; }.mini-track { height: 7px; overflow: hidden; border-radius: 99px; background: rgba(151, 190, 164, .1); }.mini-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #259b69, #5bdaa0); }.mini-list-row small { color: var(--muted); text-align: right; font-size: 9px; }
.transaction-table { width: 100%; margin-top: 13px; border-collapse: collapse; text-align: left; }.transaction-table th { padding: 9px 8px; color: var(--muted); background: rgba(151, 190, 164, .06); font-size: 9px; font-weight: 600; }.transaction-table td { padding: 10px 8px; border-bottom: 1px solid rgba(151, 190, 164, .09); color: var(--text-soft); font-size: 9px; }.transaction-table tr:last-child td { border-bottom: 0; }.transaction-table .amount { text-align: right; font-weight: 700; white-space: nowrap; }.transaction-table .income { color: #71d7a2; }.transaction-table .expense-amount { color: #ee9088; }.transaction-type { color: #70d9a0; font-weight: 650; }.transaction-type.out { color: #ed8981; }
.quick-finance-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }.finance-action-card { display: grid; min-height: 87px; align-content: center; justify-items: center; gap: 5px; border: 1px solid rgba(53, 191, 131, .4); border-radius: 12px; color: #bff0d5; background: linear-gradient(145deg, rgba(25, 119, 77, .38), rgba(16, 61, 40, .52)); cursor: pointer; font-size: 11px; font-weight: 680; }.finance-action-card svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.finance-action-card.expense-action { border-color: rgba(237, 187, 77, .37); color: #f6d27a; background: linear-gradient(145deg, rgba(139, 103, 35, .28), rgba(61, 49, 22, .42)); }.tax-note { margin-top: 12px; padding: 10px; border: 1px solid rgba(237, 187, 77, .14); border-radius: 9px; color: #c3c9b8; background: rgba(237, 187, 77, .045); font-size: 9px; line-height: 1.5; }.tax-note b { color: var(--gold-light); }

/* People and barbers */
.definition-banner { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 17px; padding: 12px 14px; border: 1px solid rgba(91, 184, 221, .2); border-radius: 11px; background: rgba(37, 106, 132, .09); }.definition-banner .definition-icon { color: var(--blue); font-size: 16px; }.definition-banner b { display: block; color: #d8edf3; font-size: 11px; }.definition-banner p { margin: 3px 0 0; color: #9dbcc4; font-size: 10px; line-height: 1.5; }.people-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.people-toolbar-copy b { font-size: 13px; }.people-toolbar-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }.person-card, .barber-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(20, 48, 34, .88), rgba(10, 30, 20, .92)); }.person-card-top, .barber-card-top { display: flex; align-items: flex-start; gap: 11px; }.person-avatar, .barber-avatar { display: grid; width: 45px; height: 45px; flex: none; place-items: center; border: 1px solid rgba(237, 187, 77, .23); border-radius: 13px; color: var(--gold-light); background: linear-gradient(145deg, rgba(237, 187, 77, .15), rgba(237, 187, 77, .04)); font-size: 14px; font-weight: 700; }.person-card-heading, .barber-card-heading { min-width: 0; flex: 1; }.person-card-heading b, .person-card-heading small, .barber-card-heading b, .barber-card-heading small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.person-card-heading b, .barber-card-heading b { font-size: 13px; }.person-card-heading small, .barber-card-heading small { margin-top: 3px; color: var(--muted); font-size: 10px; }.card-actions { display: flex; gap: 5px; }.card-icon-button { display: grid; width: 31px; height: 31px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255, 255, 255, .02); cursor: pointer; }.card-icon-button:hover { color: var(--text); border-color: var(--line-strong); }.card-icon-button.danger { color: #de9188; }.card-icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.person-card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 12px; }.meta-chip { display: inline-flex; min-height: 24px; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: #bac9bd; background: rgba(255, 255, 255, .025); font-size: 9px; }.meta-chip .status-dot { width: 6px; height: 6px; }.person-card-footer, .barber-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 11px; border-top: 1px solid var(--line); }.person-card-footer small, .barber-card-footer small { color: var(--muted); font-size: 9px; }.person-card-footer .subtle-button, .barber-card-footer .subtle-button { min-height: 32px; font-size: 9px; }.license-meter { margin-top: 17px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }.license-meter-top { display: flex; justify-content: space-between; gap: 10px; color: var(--text-soft); font-size: 10px; }.license-meter-top b { color: var(--green); }.meter-track { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: rgba(151, 190, 164, .12); }.meter-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1e9061, #57d49b); }.license-meter small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.barber-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }.barber-card-top .pill { margin-top: 5px; }.barber-summary { display: grid; gap: 9px; margin: 14px 0; }.barber-detail { display: flex; align-items: flex-start; gap: 8px; color: #c5d2c8; font-size: 10px; }.barber-detail > span:first-child { width: 17px; flex: none; color: var(--gold); text-align: center; }.barber-detail small { color: var(--muted); }.service-tags { display: flex; flex-wrap: wrap; gap: 5px; }.service-tag { padding: 4px 7px; border: 1px solid rgba(151, 190, 164, .14); border-radius: 6px; color: #c4d1c7; background: rgba(255, 255, 255, .025); font-size: 8px; }

/* Settings */
.settings-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 4px 0 15px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 24, 16, .75); }.settings-tab { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 620; }.settings-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.settings-tab.active { border-color: rgba(237, 187, 77, .46); color: #f9dc96; background: linear-gradient(135deg, rgba(237, 187, 77, .2), rgba(237, 187, 77, .09)); }.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 14px; }.settings-column { display: grid; gap: 14px; }.settings-panel { padding: 17px; }.settings-panel .section-heading { margin-bottom: 13px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.form-grid .span-2 { grid-column: span 2; }.logo-placeholder { display: flex; align-items: center; gap: 11px; margin-top: 15px; padding: 11px; border: 1px dashed rgba(151, 190, 164, .22); border-radius: 10px; color: var(--muted); background: rgba(255, 255, 255, .018); }.logo-placeholder-mark { display: grid; width: 46px; height: 46px; flex: none; place-items: center; border: 1px solid rgba(237, 187, 77, .25); border-radius: 10px; color: var(--gold); background: rgba(237, 187, 77, .07); font-size: 17px; }.logo-placeholder b, .logo-placeholder small { display: block; }.logo-placeholder b { color: var(--text-soft); font-size: 10px; }.logo-placeholder small { margin-top: 4px; font-size: 9px; }.weekday-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.weekday-row { display: grid; grid-template-columns: minmax(58px, 1fr) 24px minmax(70px, 1fr) 7px minmax(70px, 1fr); align-items: center; gap: 4px; min-height: 43px; padding: 5px 6px; border: 1px solid rgba(151, 190, 164, .12); border-radius: 9px; background: rgba(255, 255, 255, .02); }.weekday-name { color: var(--text-soft); font-size: 9px; font-weight: 620; }.weekday-row input[type=time] { width: 100%; min-width: 0; min-height: 30px; padding: 0 4px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #0b2016; font-size: 9px; }.weekday-dash { color: var(--muted-2); text-align: center; }.switch { position: relative; display: inline-flex; width: 33px; height: 19px; flex: none; align-items: center; padding: 2px; border: 1px solid rgba(151, 190, 164, .23); border-radius: 999px; background: #37483c; cursor: pointer; }.switch i { display: block; width: 13px; height: 13px; border-radius: 50%; background: #d4ddd6; transition: transform .15s, background .15s; }.switch[aria-checked="true"] { border-color: rgba(53, 191, 131, .65); background: #24875b; }.switch[aria-checked="true"] i { background: white; transform: translateX(14px); }.weekday-row.closed input { opacity: .35; }.break-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }.payment-grid { display: flex; flex-wrap: wrap; gap: 7px; }.check-pill { display: inline-flex; min-height: 33px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--text-soft); background: rgba(255, 255, 255, .02); cursor: pointer; font-size: 9px; }.check-pill input { accent-color: var(--green); }.automation-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(135px, .65fr); align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(151, 190, 164, .1); }.automation-row:first-child { padding-top: 0; }.automation-row:last-child { padding-bottom: 0; border-bottom: 0; }.automation-title { display: flex; align-items: flex-start; gap: 9px; }.automation-icon { color: var(--gold); font-size: 16px; }.automation-title b, .automation-title small { display: block; }.automation-title b { font-size: 10px; }.automation-title small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }.automation-control { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }.automation-control select { min-height: 34px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--text); background: #0b2016; font-size: 9px; }.settings-savebar { position: sticky; z-index: 4; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; padding: 12px; border: 1px solid rgba(53, 191, 131, .22); border-radius: 13px; background: rgba(13, 40, 27, .95); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); backdrop-filter: blur(12px); }.save-state { display: flex; align-items: center; gap: 8px; color: #b8dcca; font-size: 10px; }.save-state .save-check { display: grid; width: 26px; height: 26px; flex: none; place-items: center; border: 1px solid rgba(53, 191, 131, .35); border-radius: 50%; color: var(--green); }.save-state small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }.save-actions { display: flex; gap: 8px; }.save-actions .button { min-height: 39px; font-size: 10px; }.service-settings-table { width: 100%; border-collapse: collapse; }.service-settings-table th { padding: 9px 7px; color: var(--muted); background: rgba(151, 190, 164, .06); font-size: 9px; text-align: left; }.service-settings-table td { padding: 8px 7px; border-bottom: 1px solid rgba(151, 190, 164, .1); color: var(--text-soft); font-size: 9px; }.service-settings-table tr:last-child td { border-bottom: 0; }.service-settings-table td:last-child { text-align: right; white-space: nowrap; }.service-settings-table .service-name { color: var(--text); font-weight: 620; }.service-price { color: #f4d486 !important; font-weight: 700; }.table-actions { display: inline-flex; gap: 4px; }.table-actions .card-icon-button { width: 26px; height: 26px; }.table-actions svg { width: 13px; height: 13px; }

/* Modal, toast and menus */
.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(1, 8, 4, .72); backdrop-filter: blur(5px); }.modal { width: min(540px, 100%); max-height: min(92vh, 800px); overflow: auto; border: 1px solid var(--line-strong); border-radius: 17px; background: linear-gradient(145deg, #153325, #0c2117); box-shadow: 0 28px 90px rgba(0, 0, 0, .55); }.modal.modal-wide { width: min(690px, 100%); }.modal-header { position: sticky; z-index: 1; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px 19px 14px; border-bottom: 1px solid var(--line); background: rgba(17, 42, 29, .97); }.modal-header h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }.modal-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.modal-close { display: grid; width: 31px; height: 31px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255, 255, 255, .03); cursor: pointer; font-size: 18px; }.modal-body { padding: 17px 19px; }.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 19px 17px; border-top: 1px solid var(--line); }.modal-footer .button { min-height: 39px; font-size: 10px; }.modal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.modal-form-grid .span-2 { grid-column: span 2; }.modal-helper { margin: 11px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }.form-error { min-height: 16px; margin-top: 8px; color: #f2a098; font-size: 10px; }.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.detail-box { padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); }.detail-box small, .detail-box b { display: block; }.detail-box small { margin-bottom: 4px; color: var(--muted); font-size: 9px; }.detail-box b { color: var(--text-soft); font-size: 11px; }.detail-description { margin-top: 11px; padding: 12px; border-radius: 9px; color: #afc0b4; background: rgba(0, 0, 0, .13); font-size: 10px; }.modal-actions-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }.modal-actions-row .subtle-button { min-height: 36px; font-size: 9px; }.toast-host { position: fixed; z-index: 90; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }.toast { display: flex; max-width: min(420px, calc(100vw - 36px)); align-items: flex-start; gap: 9px; padding: 12px 14px; border: 1px solid rgba(53, 191, 131, .27); border-radius: 11px; color: #d6f1df; background: #123424; box-shadow: 0 14px 44px rgba(0, 0, 0, .32); font-size: 11px; animation: toast-in .18s ease-out; }.toast.warning { border-color: rgba(237, 187, 77, .34); color: #f5dfa8; background: #302718; }.toast.error { border-color: rgba(230, 124, 114, .35); color: #f5c3bd; background: #351d1b; }.toast b { display: block; margin-bottom: 2px; font-size: 11px; }.toast small { display: block; color: inherit; opacity: .78; font-size: 9px; }.toast-mark { display: grid; width: 21px; height: 21px; flex: none; place-items: center; border-radius: 50%; color: #0c1d13; background: var(--green); font-size: 11px; font-weight: 800; }.toast.warning .toast-mark { background: var(--gold); }.toast.error .toast-mark { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive layouts */
@media (max-width: 1320px) {
  :root { --sidebar-width: 226px; }
  .appointment-filters { grid-template-columns: minmax(150px, .9fr) minmax(140px, .75fr) minmax(160px, 1fr) auto; }
  .appointment-filters .filter-status-wrap { display: none; }
  .appointments-layout { grid-template-columns: minmax(0, 1.45fr) minmax(250px, .8fr); }
  .timeline-card { grid-template-columns: minmax(120px, 1.1fr) minmax(92px, .8fr) minmax(73px, .65fr) auto; gap: 8px; }
  .timeline-card .appointment-status { grid-column: 4; grid-row: 1; }.timeline-card .row-menu:not(.staff-appointment-detail-trigger) { display: none; }
  .barber-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  .appointments-layout, .analytics-grid { grid-template-columns: 1fr; }
  .appointments-side { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-layout { grid-template-columns: 1fr; }
  .chart-panel { min-height: 270px; }
}
@media (max-width: 900px) {
  :root { --sidebar-width: 255px; }
  .sidebar { z-index: 40; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 20px 0 55px rgba(0, 0, 0, .35); }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim.active { position: fixed; z-index: 35; inset: 0; display: block; background: rgba(0, 0, 0, .55); }
  .workspace { margin-left: 0; }
  .topbar { height: 62px; gap: 11px; padding: 0 17px; }.mobile-menu { display: grid; }.topbar-shop-mark { display: none; }.topbar-shop b { font-size: 12px; }.topbar-shop small { font-size: 9px; }.connection-pill { min-height: 31px; padding: 0 8px; font-size: 9px; }.whatsapp-pill { display: none; }.topbar-separator { display: none; }.notification-button { width: 34px; height: 34px; }.profile-button { gap: 6px; }.profile-button #topbarRoleShort { display: none; }
  .demo-ribbon { padding: 0 17px; font-size: 9px; }.page-content { min-height: calc(100vh - 140px); padding: 22px 17px 30px; }.workspace-footer { padding-right: 17px; padding-left: 17px; }
  .appointment-filters { grid-template-columns: 1fr 1fr; }.filter-search { grid-column: span 2; }.appointment-filters > .button { grid-column: span 2; }.appointment-filters .filter-status-wrap { display: block; }
  .appointments-side { grid-template-columns: 1fr 1fr; }.timeline-card { grid-template-columns: minmax(125px, 1.1fr) minmax(100px, .9fr) auto; }.timeline-card .appointment-barber { display: none; }.timeline-card .appointment-status { grid-column: auto; grid-row: auto; }
  .secondary-analytics { grid-template-columns: 1fr; }
  .login-layout { width: min(760px, calc(100% - 36px)); grid-template-columns: 1fr; gap: 22px; padding: 26px 0 34px; }.login-story { display: grid; grid-template-columns: 1fr auto; align-items: center; }.story-copy { grid-column: span 2; padding-top: 33px; }.story-copy h1 { font-size: 47px; }.story-copy > p { max-width: 520px; font-size: 14px; }.story-preview { display: none; }.login-proof { margin-top: 15px; }.login-card { max-width: 540px; width: 100%; justify-self: center; }.login-footer { width: calc(100% - 36px); }
}
@media (max-width: 640px) {
  body { font-size: 13px; }
  .topbar { gap: 8px; padding: 0 12px; }.topbar-shop { min-width: 0; }.topbar-shop b, .topbar-shop small { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.connection-pill { margin-left: auto; }.connection-pill:not(.whatsapp-pill) { min-height: 29px; border: 0; padding: 0 3px; background: transparent; }.notification-button { width: 32px; height: 32px; }.profile-button .user-avatar { width: 30px; height: 30px; }.profile-button .chevron { display: none; }
  .demo-ribbon { min-height: 36px; padding: 4px 12px; line-height: 1.35; }.demo-ribbon-mark { width: 15px; height: 15px; }.page-content { padding: 18px 12px 25px; }.workspace-footer { padding: 11px 12px; font-size: 8px; }.page-heading { align-items: flex-start; gap: 11px; margin-bottom: 16px; }.page-heading-main { gap: 10px; }.page-icon { width: 42px; height: 42px; border-radius: 12px; }.page-icon svg { width: 20px; height: 20px; }.page-heading h1 { font-size: 23px; }.page-heading p { max-width: 430px; font-size: 10px; line-height: 1.5; }.heading-actions { align-self: center; }.heading-actions .button { min-height: 38px; padding: 0 10px; font-size: 10px; }.heading-actions .button span { font-size: 15px; }
  .stat-grid { gap: 8px; margin-bottom: 12px; }.stat-card { min-height: 83px; gap: 9px; padding: 10px; border-radius: 11px; }.stat-icon { width: 35px; height: 35px; border-radius: 10px; }.stat-icon svg { width: 18px; height: 18px; }.stat-copy span { font-size: 9px; }.stat-copy b { font-size: 20px; }.stat-copy small { font-size: 8px; }.stat-trend { top: 6px; right: 7px; font-size: 8px; }
  .appointment-filters { gap: 7px; margin-bottom: 11px; padding: 9px; }.filter-control { min-height: 40px; font-size: 10px; }.filter-label { font-size: 8px; }.date-step { width: 27px; height: 40px; }.appointment-filters > .button { min-height: 40px; }.quick-actions { gap: 5px; margin-bottom: 11px; }.quick-actions .subtle-button { min-height: 32px; padding: 0 7px; font-size: 9px; }
  .panel { padding: 13px; border-radius: 13px; }.appointments-main { min-height: 0; }.appointment-panel-head { align-items: flex-start; }.section-heading h2, .section-heading h3 { font-size: 13px; }.section-heading p { font-size: 9px; }.panel-title b { font-size: 11px; }.panel-title small { font-size: 9px; }.view-switch { flex: none; }.view-switch button { min-height: 28px; padding: 0 7px; font-size: 9px; }.status-filters { gap: 3px; padding: 9px 0 3px; }.status-filter { min-height: 26px; padding: 0 7px; font-size: 9px; }.timeline-day-label { margin-left: 57px; }.timeline-row { grid-template-columns: 43px 12px minmax(0, 1fr); gap: 5px; min-height: 76px; }.timeline-time { padding-top: 13px; font-size: 10px; }.timeline-card { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 7px; min-height: 67px; padding: 8px; }.timeline-card .appointment-client { grid-column: 1; grid-row: 1; }.timeline-card .appointment-service { grid-column: 1; grid-row: 2; padding-left: 39px; }.timeline-card .appointment-status { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }.timeline-card .appointment-status .pill { padding: 0 7px; font-size: 8px; }.client-avatar { width: 28px; height: 28px; }.appointment-client b { font-size: 10px; }.appointment-client small { font-size: 8px; }.appointment-service b { font-size: 9px; }.appointment-service small { font-size: 8px; }
  .appointments-side { grid-template-columns: 1fr; gap: 10px; }.donut-wrap { gap: 13px; margin: 15px 0 13px; }.donut { width: 105px; height: 105px; }.donut::after { width: 72px; height: 72px; }.donut-center b { font-size: 21px; }.next-open-card { display: none; }
  .page-toolbar { gap: 6px; }.toolbar-select { min-height: 35px; max-width: 112px; padding: 0 20px 0 8px; font-size: 9px; }.page-toolbar .subtle-button { width: 36px; min-width: 36px; overflow: hidden; padding: 0; font-size: 0; }.page-toolbar .subtle-button svg { width: 16px; height: 16px; }.analytics-grid, .secondary-analytics { gap: 10px; }.chart-panel { min-height: 0; }.chart-legend { gap: 8px; font-size: 8px; }.bar-chart { height: 166px; gap: 4px; margin: 18px 1px 0; padding-bottom: 17px; }.bar { width: 38%; }.bar-group > small { font-size: 7px; }.service-breakdown { grid-template-columns: 100px minmax(0, 1fr); gap: 9px; }.service-donut { width: 100px; height: 100px; }.service-donut::after { width: 67px; height: 67px; }.service-donut-copy b { font-size: 11px; }.service-breakdown-list { gap: 5px; }.service-breakdown-row { min-height: 27px; gap: 5px; padding: 0 5px; font-size: 8px; }.service-breakdown-row small { font-size: 7px; }.transaction-table { min-width: 470px; }.table-scroll { max-width: 100%; overflow-x: auto; }.transaction-table th, .transaction-table td { padding-right: 6px; padding-left: 6px; white-space: nowrap; }.quick-finance-actions { gap: 7px; }.finance-action-card { min-height: 76px; font-size: 10px; }
  .definition-banner { padding: 10px; }.definition-banner b { font-size: 10px; }.definition-banner p { font-size: 9px; }.people-toolbar { align-items: flex-start; }.people-toolbar .button { min-height: 37px; padding: 0 10px; font-size: 10px; }.people-grid, .barber-grid { grid-template-columns: 1fr; gap: 9px; }.person-card, .barber-card { padding: 13px; }.person-card-heading b, .barber-card-heading b { font-size: 12px; }.license-meter { padding: 11px; }.settings-tabs { grid-template-columns: 1fr 1fr; gap: 4px; }.settings-tab { min-height: 40px; justify-content: flex-start; padding: 0 9px; font-size: 9px; }.settings-layout { gap: 10px; }.settings-column { gap: 10px; }.settings-panel { padding: 13px; }.form-grid { gap: 9px; }.field label, .field-label-inline { font-size: 9px; }.field input, .field select { min-height: 39px; padding: 0 9px; font-size: 10px; }.weekday-grid { grid-template-columns: 1fr; gap: 5px; }.weekday-row { grid-template-columns: minmax(72px, 1fr) 34px minmax(73px, .9fr) 10px minmax(73px, .9fr); min-height: 42px; gap: 4px; }.weekday-name { font-size: 9px; }.weekday-row input[type=time] { font-size: 8px; }.automation-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }.automation-title b { font-size: 9px; }.automation-title small { font-size: 8px; }.automation-control select { max-width: 130px; font-size: 8px; }.settings-savebar { bottom: 6px; align-items: flex-start; padding: 9px; }.save-state { font-size: 9px; }.save-state .save-check { width: 22px; height: 22px; }.save-state small { max-width: 170px; font-size: 8px; }.save-actions { flex: none; }.save-actions .button { min-height: 34px; padding: 0 8px; font-size: 9px; }
  .page-heading:has(.page-toolbar) { align-items: center; }.modal-backdrop { align-items: end; padding: 0; }.modal { max-height: 92vh; border-radius: 17px 17px 0 0; }.modal-header { padding: 15px 15px 12px; }.modal-body { padding: 14px 15px; }.modal-footer { padding: 11px 15px 15px; }.modal-form-grid { gap: 9px; }.modal-form-grid .field input, .modal-form-grid .field select { font-size: 10px; }.modal-footer .button { flex: 1; }.toast-host { right: 10px; bottom: 10px; left: 10px; }.toast { max-width: none; }
  .login-layout { width: calc(100% - 28px); gap: 17px; padding: 17px 0 25px; }.login-story { grid-template-columns: 1fr; }.login-story > .brand { gap: 9px; }.brand-large .brand-mark { width: 44px; height: 44px; border-radius: 11px; }.brand-large .brand-mark svg { width: 26px; height: 26px; }.brand-large strong { font-size: 18px; }.brand-large small { font-size: 7px; }.story-copy { grid-column: auto; padding-top: 24px; }.story-copy .eyebrow { padding: 6px 8px; font-size: 9px; }.story-copy h1 { margin: 14px 0 8px; font-size: clamp(34px, 9vw, 44px); }.story-copy > p { font-size: 12px; line-height: 1.55; }.login-proof { margin-top: 10px; font-size: 10px; }.login-card { padding: 20px 16px; }.login-card-heading h2 { font-size: 24px; }.login-card-heading p { font-size: 11px; }.field-group { margin-top: 19px; }.segment { min-height: 38px; font-size: 10px; }.role-option { min-height: 59px; padding: 8px 10px; }.role-option b { font-size: 11px; }.role-option small { font-size: 9px; }.button-wide { min-height: 46px; }.login-footer { width: calc(100% - 28px); gap: 10px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Keep secondary copy readable without expanding the layout unnecessarily. */
small,
.nav-caption,
.filter-label,
.field label,
.field-label-inline,
.demo-tag,
.pill,
.status-filter,
.stat-copy span,
.stat-copy small,
.appointment-client b,
.appointment-client small,
.appointment-service b,
.appointment-service small,
.appointment-barber,
.chart-legend,
.chart-axis,
.chart-footnote,
.service-breakdown-row,
.transaction-table th,
.transaction-table td,
.mini-list-row,
.person-card-heading b,
.person-card-heading small,
.barber-card-heading b,
.barber-card-heading small,
.weekday-name,
.weekday-row input[type="time"],
.automation-title b,
.automation-title small,
.automation-control select,
.service-settings-table th,
.service-settings-table td,
.login-footer,
.workspace-footer {
  font-size: clamp(11px, .84em, 13px);
}
.finance-sample-label { color: var(--gold-light); font-size: 10px; font-weight: 750; letter-spacing: .035em; }
@media (max-width: 640px) {
  .login-footer { font-size: 9px; }
  .workspace-footer { font-size: 9px; }
  .bar-group > small { font-size: 10px; }
  .bar-group:nth-child(odd) > small { display: none; }
}

@media (min-width: 1121px) and (max-width: 1399px) { .weekday-grid { grid-template-columns: 1fr; } }

@media (min-width: 1400px) { .weekday-row { gap: 3px; padding-right: 4px; padding-left: 4px; }.weekday-row .switch { width: 24px; height: 17px; }.weekday-row .switch i { width: 11px; height: 11px; }.weekday-row .switch[aria-checked="true"] i { transform: translateX(6px); } }

@media (max-width: 640px) { .login-footer, .workspace-footer { font-size: 10px; }.settings-tab, .weekday-name, .weekday-row input[type="time"], .automation-title b, .automation-title small, .service-breakdown-row small, .transaction-table th, .transaction-table td { font-size: 10px; } }

/* Official Esnaf Panel brand assets */
.brand { gap: 0; }
.brand-wordmark { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.brand-large .brand-wordmark { width: min(100%, 465px); }
.sidebar-top .brand-wordmark { width: min(100%, 202px); }
.story-preview::before { position: absolute; z-index: 0; inset: 0; border-radius: 14px; background-image: linear-gradient(90deg, rgba(6,20,14,.22), rgba(6,20,14,.45)), var(--brand-hero-image); background-position: center; background-size: cover; opacity: .42; content: ""; }
.story-preview .preview-orbit, .story-preview .preview-calendar, .story-preview .preview-float { z-index: 1; }
.brand-symbol-accent { position: absolute; z-index: 1; top: 36px; right: 8%; width: clamp(50px, 9vw, 88px); height: auto; opacity: .5; filter: drop-shadow(0 8px 18px rgba(0,0,0,.28)); }
@media (max-width: 900px) {
  .login-layout { grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); gap: 36px; }
  .brand-large .brand-wordmark { width: min(100%, 390px); }
}
@media (max-width: 640px) {
  .login-layout { grid-template-columns: 1fr; }
  .brand-large .brand-wordmark { width: min(100%, 345px); }
  .sidebar-top .brand-wordmark { width: min(100%, 180px); }
  .brand-symbol-accent { top: 20px; right: 7%; width: 54px; }
}

/* QA usability controls: accessible native switches and compact service rows. */
.toggle-control { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 42px; padding: 9px 11px; border: 1px solid rgba(154,195,166,.17); border-radius: 11px; background: rgba(7,27,20,.52); color: var(--text); cursor: pointer; font-size: 12px; font-weight: 650; }
.toggle-control input { position: absolute; width: 46px; height: 28px; right: 9px; margin: 0; opacity: 0; cursor: pointer; }
.toggle-track { position: relative; display: inline-flex; flex: 0 0 42px; width: 42px; height: 24px; padding: 3px; border-radius: 99px; background: #47564f; transition: background .18s ease; }
.toggle-track > i { display: block; width: 18px; height: 18px; border-radius: 50%; background: #e7eee8; box-shadow: 0 2px 6px rgba(0,0,0,.32); transition: transform .18s ease; }
.toggle-control input:checked + .toggle-track { background: linear-gradient(120deg, #179d62, #49d798); }
.toggle-control input:checked + .toggle-track > i { transform: translateX(18px); }
.toggle-control input:focus-visible + .toggle-track { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.toggle-control:has(input:checked) { border-color: rgba(61,210,142,.4); }
.break-settings > .toggle-control { grid-column: 1 / -1; }
.barber-card-footer .table-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.manual-break-meta { display: block; margin-top: 5px; color: var(--gold-light); font-size: 11px; }
.barber-special-services { grid-column: 1 / -1; padding: 13px; border: 1px solid rgba(162,203,172,.2); border-radius: 14px; background: rgba(5,22,16,.55); }
.barber-service-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.barber-service-heading > div { display: grid; gap: 4px; }
.barber-service-heading b { color: var(--text); font-size: 13px; }
.barber-service-heading small, .service-muted-hint { color: var(--muted); font-size: 11px; line-height: 1.45; }
.service-muted-hint { margin: 0 0 9px; }
.barber-service-list { display: grid; gap: 7px; }
.barber-service-empty { padding: 12px; border: 1px dashed rgba(167,199,173,.25); border-radius: 10px; color: var(--muted); text-align: center; font-size: 12px; }
.barber-service-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 1px solid rgba(161,198,170,.17); border-radius: 10px; background: rgba(16,47,35,.55); }
.barber-service-copy { display: grid; gap: 4px; min-width: 0; }
.barber-service-copy b { overflow-wrap: anywhere; font-size: 12px; }
.barber-service-copy small { color: var(--muted); font-size: 11px; }
.barber-service-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.barber-service-actions .subtle-button { min-height: 34px; padding: 0 9px; }
.barber-service-actions button:disabled, #addBarberService:disabled { opacity: .45; cursor: not-allowed; }
.barber-service-editor { display: grid; gap: 11px; margin-top: 12px; padding: 12px; border: 1px solid rgba(229,185,82,.4); border-radius: 11px; background: rgba(27,48,34,.8); }
.barber-service-editor[hidden] { display: none; }
.barber-service-editor > b { color: var(--gold-light); font-size: 12px; }
.barber-service-editor-actions { display: flex; justify-content: flex-end; gap: 8px; }
.action-selection-summary { display: grid; gap: 4px; margin-top: 13px; padding: 12px 14px; border: 1px solid rgba(218,178,71,.35); border-radius: 11px; background: linear-gradient(110deg, rgba(168,126,36,.15), rgba(13,57,39,.25)); color: var(--text); font-size: 12px; }
.action-selection-summary span, .action-selection-summary small { color: var(--muted); font-size: 11px; }
.action-barber-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-height: 160px; overflow: auto; padding: 2px; }
.action-barber-option { display: flex; min-width: 0; min-height: 38px; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid rgba(145,176,154,.24); border-radius: 9px; color: var(--text-soft); background: rgba(255,255,255,.025); cursor: pointer; font-size: 10px; line-height: 1.35; }
.action-barber-option input { width: 16px; height: 16px; flex: none; margin: 0; accent-color: var(--gold); }
.action-barber-option span { min-width: 0; overflow-wrap: anywhere; }
.action-barber-option:has(input:checked) { border-color: rgba(237,187,77,.56); color: #ffe6a2; background: linear-gradient(135deg,rgba(237,187,77,.14),rgba(237,187,77,.045)); }
.action-barber-option:focus-within { outline: 2px solid rgba(237,187,77,.72); outline-offset: 1px; }
.action-selection-summary > b { display: block; line-height: 1.35; }
.action-selection-summary ul { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.action-selection-summary li { display: grid; gap: 3px; padding: 7px 8px; border-left: 2px solid var(--gold); border-radius: 6px; background: rgba(255,255,255,.025); }
.action-selection-summary li b { color: var(--gold-light); font-size: 10px; }
.action-selection-summary li span, .action-selection-summary li small { display: block; margin: 0; font-size: 10px; line-height: 1.4; }
.modal-footer button:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.25); }
@media (max-width: 480px) { .action-barber-list { grid-template-columns: 1fr; max-height: 132px; } }
.demo-ribbon { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 7px 14px; border: 1px solid rgba(42,193,124,.26); border-radius: 10px; background: rgba(8,43,30,.94); box-shadow: 0 6px 18px rgba(0,0,0,.14); color: #dcebe1; font-size: 12px; }
.demo-ribbon b { color: #7ce1a9; font-weight: 800; }
.demo-ribbon-mark { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid rgba(70,214,142,.45); border-radius: 50%; color: #72e1a5; font-weight: 800; }
@media (max-width: 640px) {
  .toggle-control { min-height: 46px; font-size: 12px; }
  .barber-service-heading { align-items: flex-start; flex-direction: column; }
  .barber-service-heading .subtle-button { width: 100%; justify-content: center; min-height: 42px; }
  .barber-service-row { align-items: flex-start; flex-direction: column; }
  .barber-service-actions { width: 100%; }
  .barber-service-actions button { flex: 1; min-height: 40px; justify-content: center; }
  .barber-service-editor { padding: 10px; }
  .action-selection-summary { padding: 10px; }
  .demo-ribbon { min-height: 42px; padding: 8px 10px; font-size: 11px; }
  .barber-card-footer .table-actions { width: 100%; justify-content: stretch; }
  .barber-card-footer .table-actions button { flex: 1; min-height: 40px; }
}

/* Final visual pass: the login artwork keeps its arcs without a second faded logo. */
.story-preview::before { background-image: linear-gradient(125deg, rgba(8,31,21,.66), rgba(4,20,13,.9)); opacity: 1; }
.story-preview .brand-symbol-accent { display: none; }
.section-heading p, .page-heading p { font-size: 12px; line-height: 1.5; }
.stat-copy small, .mini-list-row b, .mini-list-row small { font-size: 11px; line-height: 1.45; }
.field label, .field-label-inline, .modal-helper, .modal-header p, .detail-box small { font-size: 11px; line-height: 1.45; }
.subtle-button { min-height: 40px; font-size: 11px; }
.card-icon-button, .modal-close { min-width: 38px; min-height: 38px; }
.modal-footer { position: sticky; bottom: 0; z-index: 2; background: #102a1d; }
.modal-footer .button { min-height: 42px; font-size: 11px; }
#timedBreakForm { display: grid; gap: 15px; min-width: 0; }
#timedBreakForm [hidden] { display: none!important; }
#timedBreakForm .staff-break-duration { padding: 14px; border: 1px solid rgba(116,173,135,.3); border-radius: 12px; background: rgba(29,80,51,.25); }
#timedBreakForm .staff-break-duration .account-field { display: grid; grid-template-columns: minmax(0,1fr) minmax(145px,190px); align-items: center; gap: 12px; margin: 0; }
#timedBreakForm .staff-break-duration .account-field > span { color: #f1f6ef; font-size: 13px; font-weight: 700; }
#timedBreakForm .staff-break-duration .account-field small { display: block; margin-top: 3px; color: #adbfaf; font-size: 11px; font-weight: 400; }
#timedBreakForm .staff-impact-list { display: grid; gap: 8px; min-width: 0; }
#timedBreakForm .staff-impact-list h3 { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 2px; color: #f1f6ef; font-size: 13px; }
#timedBreakForm .staff-impact-list h3 span { color: #f2d37f; font-size: 11px; }
#timedBreakForm .staff-break-clear { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid rgba(69,174,113,.25); border-radius: 10px; background: rgba(42,139,82,.1); }
#timedBreakForm .staff-break-clear b { color: #a9e4bd; font-size: 12px; }
#timedBreakForm .staff-break-clear small { color: #b1c6b5; font-size: 11px; }
#timedBreakForm .staff-impact-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(124,163,136,.18); border-radius: 9px; background: rgba(3,21,13,.34); }
#timedBreakForm .staff-impact-row > span { display: grid; gap: 2px; min-width: 0; }
#timedBreakForm .staff-impact-row b { color: #edf4ec; font-size: 12px; }
#timedBreakForm .staff-impact-row small { color: #abc1af; font-size: 11px; line-height: 1.4; }
#timedBreakForm .staff-impact-row strong { flex: none; color: #f2d37f; font-size: 12px; white-space: nowrap; }
#timedBreakForm .staff-break-solutions { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
#timedBreakForm .staff-break-solutions legend { margin-bottom: 9px; color: #edf4ec; font-size: 13px; font-weight: 700; }
#timedBreakForm .staff-break-option { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px; border: 1px solid rgba(124,163,136,.28); border-radius: 11px; background: rgba(10,34,22,.66); cursor: pointer; }
#timedBreakForm .staff-break-option:has(input:checked) { border-color: rgba(236,190,84,.8); background: rgba(171,124,33,.16); box-shadow: inset 0 0 0 1px rgba(236,190,84,.12); }
#timedBreakForm .staff-break-option:focus-within { outline: 2px solid #e4c16c; outline-offset: 2px; }
#timedBreakForm .staff-break-option input { appearance: none; width: 22px; height: 22px; flex: none; margin: 0; border: 1px solid #8da894; border-radius: 50%; background: #12291b; }
#timedBreakForm .staff-break-option input:checked { border: 6px solid #f0c95d; background: #173121; }
#timedBreakForm .staff-break-option span { display: grid; gap: 3px; min-width: 0; }
#timedBreakForm .staff-break-option b { color: #f0f5ee; font-size: 12px; }
#timedBreakForm .staff-break-option small { color: #b6c6b8; font-size: 11px; line-height: 1.4; }
#timedBreakForm .staff-chain-preview, #timedBreakForm .staff-transfer-list { display: grid; gap: 8px; min-width: 0; margin: 0 0 8px 11px; padding: 12px; border-left: 2px solid rgba(230,189,84,.5); background: rgba(2,18,11,.24); }
#timedBreakForm .staff-chain-preview h4 { margin: 0 0 2px; color: #d7e5d7; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
#timedBreakForm .staff-chain-preview p { margin: 0; color: #b6c6b8; font-size: 11px; }
#timedBreakForm .staff-transfer-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(145px,1fr) minmax(125px,1fr); align-items: end; gap: 9px; min-width: 0; padding: 11px; border: 1px solid rgba(124,163,136,.2); border-radius: 9px; background: rgba(16,48,30,.5); }
#timedBreakForm .staff-transfer-row > b { align-self: center; color: #e6f0e5; font-size: 11px; line-height: 1.4; }
#timedBreakForm .staff-transfer-row .account-field { min-width: 0; margin: 0; }
#timedBreakForm .staff-transfer-row input, #timedBreakForm .staff-transfer-row select { width: 100%; min-width: 0; box-sizing: border-box; }
#timedBreakForm > .account-privacy { margin: 0; line-height: 1.45; }
#modalHost .modal:has(#timedBreakForm) { width: min(690px,100%); }
#modalHost .modal:has(#timedBreakForm) .modal-footer .button { min-height: 42px; }
@media (max-width: 620px) {
  #timedBreakForm .staff-break-duration .account-field, #timedBreakForm .staff-transfer-row { grid-template-columns: 1fr; }
  #timedBreakForm .staff-impact-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  #timedBreakForm .staff-chain-preview, #timedBreakForm .staff-transfer-list { margin-left: 0; padding: 9px; }
}
.finance-stats { margin-top: 14px; }
.finance-stats .stat-card { min-height: 118px; }
.finance-stats .stat-copy small { overflow-wrap: anywhere; }
.finance-ledger { margin-top: 15px; }
.finance-job { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.finance-job:first-of-type { border-top: 0; }
.finance-job > div:first-child { min-width: 0; }
.finance-job h3 { margin: 5px 0; font-size: 14px; overflow-wrap: anywhere; }
.finance-job p, .finance-job small { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.finance-job-actions, .finance-detail-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.finance-detail-actions { justify-content: flex-start; margin-top: 16px; }
.finance-state { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--text-soft); background: rgba(255,255,255,.03); font-size: 10px; white-space: nowrap; }
.finance-state.state-paid { border-color: rgba(53,191,131,.35); color: #84dcab; background: rgba(53,191,131,.1); }
.finance-state.state-expected, .finance-state.state-partial, .finance-state.state-payment { border-color: rgba(237,187,77,.35); color: #f1cf7d; background: rgba(237,187,77,.09); }
.finance-state.state-no-show, .finance-state.state-cancelled, .finance-state.state-refunded { border-color: rgba(230,124,114,.32); color: #e9aaa2; background: rgba(230,124,114,.08); }
.finance-tax-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; }
.finance-tax-panel h2 { margin: 0 0 5px; font-size: 15px; }
.finance-tax-panel p, .finance-explain { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.finance-tax-panel .subtle-button { flex: none; }
.finance-stats .stat-card:last-child { grid-column: span 2; }
.finance-stats .stat-card:last-child .money { font-size: 22px; }
#pageContent:has(.finance-stats) .page-toolbar { flex-wrap: wrap; }
@media (max-width: 900px) {
  .finance-stats .stat-card:last-child { grid-column: span 1; }
  .finance-job { align-items: flex-start; flex-direction: column; }
  .finance-job-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  #pageContent:has(.finance-stats) .page-heading { align-items: flex-start; flex-direction: column; }
  #pageContent:has(.finance-stats) .page-toolbar { width: 100%; justify-content: flex-start; }
  #pageContent:has(.finance-stats) .page-toolbar .subtle-button { width: auto; min-width: 0; padding: 0 10px; font-size: 10px; }
  .finance-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-stats .stat-card { min-height: 115px; }
  .finance-stats .stat-copy .money { font-size: 18px; overflow-wrap: anywhere; }
  .finance-tax-panel { align-items: flex-start; flex-direction: column; }
  .modal-helper { font-size: 10px; }
}
/* Finance data remains readable at standard browser zoom and narrow viewports. */
#pageContent:has(.finance-stats) .bar-group > small { font-size: 9px; }
#pageContent:has(.finance-stats) .bar-group:nth-child(even) > small { visibility: hidden; }
@media (max-width: 640px) {
  .finance-stats .stat-card:last-child { grid-column: span 2; }
  #pageContent:has(.finance-stats) .bar-group:not(:nth-child(5n+1)) > small { visibility: hidden; }
  #pageContent:has(.finance-stats) .transaction-table { width: 100%; min-width: 0; table-layout: fixed; }
  #pageContent:has(.finance-stats) .transaction-table th,
  #pageContent:has(.finance-stats) .transaction-table td { padding: 7px 4px; white-space: normal; overflow-wrap: anywhere; font-size: 9px; }
  #pageContent:has(.finance-stats) .transaction-table th:first-child { width: 73px; }
  #pageContent:has(.finance-stats) .transaction-table .amount { width: 78px; white-space: nowrap; }
}
/* Real product appearance; local isolation remains in the runtime. */
.demo-ribbon, .sidebar-demo-card { display: none !important; }
.product-auth-form { display: grid; gap: 16px; margin-top: 22px; }
.product-auth-form .field label { font-size: 12px; }
.product-auth-form .field input { min-height: 47px; font-size: 13px; }
.product-auth-form > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.product-auth-form .button-wide { margin-top: 2px; }
.password-field { position: relative; }
.password-field input { padding-right: 75px; }
.password-field button { position: absolute; top: 4px; right: 4px; min-width: 62px; min-height: 39px; border: 0; border-radius: 7px; color: var(--gold-light); background: rgba(237,187,77,.08); cursor: pointer; font-size: 11px; }
.password-field button:focus-visible, .product-auth-links button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.product-auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.product-auth-links button { border: 0; color: var(--gold-light); background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; }
.product-auth-feedback { margin-top: 15px; padding: 11px 13px; border: 1px solid rgba(237,187,77,.4); border-radius: 9px; color: #f3d48d; background: rgba(237,187,77,.08); font-size: 12px; line-height: 1.5; }
.login-error:not([hidden]) { margin-top: 11px; font-size: 12px; }
.product-auth-feedback[hidden], [data-auth-panel][hidden] { display: none !important; }
@media (max-width: 640px) {
  .product-auth-form { gap: 13px; margin-top: 17px; }
  .product-auth-links button { min-height: 35px; }
}


/* Premium local connection stages and first-run empty states. */
.wa-safety-note{display:flex;gap:11px;align-items:flex-start;padding:13px 15px;border:1px solid rgba(63,204,148,.28);border-radius:14px;background:linear-gradient(135deg,rgba(18,86,60,.34),rgba(7,31,23,.46));color:#c6e6d7}
.wa-safety-note b{display:block;color:#64d5a1;font-size:12px;white-space:nowrap}
.wa-safety-note span{font-size:12px;line-height:1.55}
.wa-person-status{display:flex;gap:11px;align-items:center;margin:14px 0;padding:12px 14px;border:1px solid rgba(146,178,158,.16);border-radius:13px;background:rgba(255,255,255,.025)}
.wa-person-status>span:last-child{display:grid;gap:3px}
.wa-person-status small{font-size:9px;letter-spacing:.08em;color:#8ca99a}
.wa-person-status b{font-size:13px;color:#f2f5f2}
.wa-method-tabs{display:flex;gap:7px;margin:13px 0;padding:5px;border:1px solid rgba(146,178,158,.18);border-radius:13px;background:rgba(0,0,0,.16)}
.wa-method-tabs button{flex:1;min-height:39px;border:0;border-radius:9px;background:transparent;color:#b6c9bf;font:inherit;font-size:12px;cursor:pointer}
.wa-method-tabs button.active{color:#101a13;background:linear-gradient(135deg,#f6d273,#d59a36);font-weight:700;box-shadow:0 4px 16px rgba(213,154,54,.18)}
.wa-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.wa-method-card{display:grid;gap:8px;min-height:132px;padding:17px;text-align:left;border:1px solid rgba(210,173,91,.28);border-radius:15px;background:linear-gradient(145deg,rgba(21,65,47,.75),rgba(8,30,22,.86));color:#f1f5f1;cursor:pointer;transition:border-color .18s,transform .18s}
.wa-method-card:hover{border-color:#d9ac4e;transform:translateY(-1px)}
.wa-method-icon{display:grid;place-items:center;width:33px;height:33px;border:1px solid rgba(231,183,76,.4);border-radius:10px;color:#f0c04f;font-size:19px}
.wa-method-card b{font-size:14px}
.wa-method-card small{color:#9db2a5;font-size:11px;line-height:1.45}
.wa-stage{margin-top:13px;padding:17px;border:1px solid rgba(105,149,119,.25);border-radius:15px;background:linear-gradient(135deg,rgba(15,49,36,.72),rgba(7,25,19,.7))}
.wa-stage-heading{display:flex;gap:12px;align-items:center}
.wa-stage-heading>div{display:grid;gap:3px}
.wa-stage-heading small{color:#9ab4a4;font-size:9px;letter-spacing:.1em}
.wa-stage-heading h3{margin:0;color:#f1f4f1;font-size:16px}
.wa-stage-symbol{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:12px;background:rgba(224,174,65,.14);color:#edc45d;font-weight:800;font-size:20px}
.wa-stage-error{border-color:rgba(220,108,102,.35)}
.wa-stage-error .wa-stage-symbol{background:rgba(207,85,77,.15);color:#f18b83}
.wa-stage-success{border-color:rgba(61,200,137,.36)}
.wa-stage-success .wa-stage-symbol{background:rgba(48,180,116,.16);color:#5cdda2}
.wa-stage>p{margin:13px 0;color:#bfd0c5;font-size:12px;line-height:1.6}
.wa-qr-placeholder{display:grid;justify-items:center;gap:8px;width:min(100%,480px);min-height:164px;margin:10px auto;padding:20px 22px;border:1px dashed rgba(220,179,84,.42);border-radius:16px;background:radial-gradient(ellipse at center,rgba(201,153,55,.08),transparent 70%);text-align:center}
.wa-qr-placeholder>span{display:grid;place-items:center;width:66px;height:66px;border:1px solid rgba(224,177,71,.48);border-radius:13px;color:#e7bd57;font-size:15px;font-weight:800;letter-spacing:.16em}
.wa-qr-placeholder b{color:#ecf1ec;font-size:14px}
.wa-qr-placeholder small{color:#93aa9b;font-size:11.5px;line-height:1.5;max-width:340px}
.wa-phone-screen{display:grid;gap:12px;max-width:440px;margin-top:14px}
.wa-code-placeholder{display:grid;gap:5px;padding:14px;border:1px solid rgba(223,177,72,.25);border-radius:12px;background:rgba(0,0,0,.14);text-align:center}
.wa-code-placeholder small{color:#dcb74f;font-size:9px;letter-spacing:.12em}
.wa-code-placeholder b{color:#f0f3ef;font-size:14px}
.wa-code-placeholder span{color:#9eb4a6;font-size:10px}
.wa-sim-details{margin-top:14px;padding:11px 13px;border:1px solid rgba(143,168,151,.2);border-radius:12px;background:rgba(0,0,0,.11)}
.wa-sim-details summary{color:#e8c05a;font-size:12px;font-weight:700;cursor:pointer}
.wa-sim-details>p{color:#9db0a3;font-size:10px;line-height:1.5}
.wa-sim-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.wa-sim-grid .subtle-button{justify-content:center;min-height:34px;padding:7px;font-size:10px;white-space:normal}
.product-empty-panel{position:relative;display:flex;min-height:320px;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;margin-top:16px;padding:34px;text-align:center;border:1px solid rgba(115,163,128,.27);border-radius:20px;background:radial-gradient(ellipse at 50% 0%,rgba(34,110,74,.18),transparent 58%),linear-gradient(145deg,rgba(15,47,35,.72),rgba(6,23,17,.78));box-shadow:0 18px 48px rgba(0,0,0,.18)}
.product-empty-panel:before,.product-empty-panel:after{position:absolute;content:"";width:380px;height:150px;border:1px solid rgba(205,165,70,.12);border-radius:50%;transform:rotate(-17deg);pointer-events:none}
.product-empty-panel:before{top:-105px;right:-115px}
.product-empty-panel:after{bottom:-117px;left:-125px}
.product-empty-icon{display:grid;place-items:center;width:64px;height:64px;margin-bottom:16px;border:1px solid rgba(224,178,73,.35);border-radius:18px;background:linear-gradient(145deg,rgba(211,163,59,.16),rgba(14,56,39,.56));color:#edc04e}
.product-empty-icon svg{width:30px;height:30px}
.product-empty-eyebrow{margin:0 0 7px!important;color:#d9b45c!important;font-size:9px!important;font-weight:800;letter-spacing:.16em}
.product-empty-panel h2{position:relative;margin:0;color:#f1f5f1;font-size:21px}
.product-empty-panel>p:last-child{max-width:470px;margin:9px 0 0;color:#a6b9ac;font-size:12px;line-height:1.65}
.tax-status-feedback{padding:10px 12px;border:1px solid rgba(218,177,78,.22);border-radius:10px;background:rgba(208,160,53,.07);color:#e8c66f;font-size:11px;line-height:1.5}
.local-access-note{margin:12px 0 0;color:#9eb3a5;font-size:10px;line-height:1.5;text-align:center}
.preview-empty-mark{display:block;margin:6px 0;color:#e7c15d;font-size:26px;font-weight:700}
@media(max-width:620px){.wa-method-grid{grid-template-columns:1fr}.wa-method-card{min-height:105px}.wa-sim-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-empty-panel{min-height:260px;padding:26px 18px}.product-empty-panel h2{font-size:18px}.wa-safety-note{display:block}.wa-safety-note span{display:block;margin-top:5px}}

/* Comprehensive demo consistency pass */
.line-icon { display: block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.empty-icon, .product-empty-icon { display: grid; place-items: center; align-self: center; flex: none; }
.empty-icon .line-icon, .product-empty-icon .line-icon { width: 30px; height: 30px; }
.product-empty-panel { min-height: clamp(250px, 34vh, 360px); gap: 0; }
.product-empty-panel[data-empty-state="staff"] { grid-column: 1 / -1; width: min(100%, 680px); justify-self: center; }
.product-empty-panel h2 { font-size: clamp(19px, 2vw, 24px); line-height: 1.25; }
.product-empty-panel > p:last-of-type { font-size: 13px; }
.product-empty-action { position: relative; z-index: 1; margin-top: 16px; }
.check-pill { position: relative; flex: 1 1 calc(50% - 8px); min-width: 120px; min-height: 46px; gap: 10px; padding: 8px 12px; border-color: rgba(145,176,154,.25); border-radius: 10px; font-size: 12px; line-height: 1.35; }
.check-pill input { width: 17px; height: 17px; flex: none; margin: 0; accent-color: #e7b947; }
.check-pill:has(input:checked) { border-color: rgba(237,187,77,.66); color: #ffe6a2; background: linear-gradient(135deg,rgba(237,187,77,.17),rgba(237,187,77,.055)); box-shadow: inset 0 0 0 1px rgba(237,187,77,.12); }
.check-pill:focus-within { outline: 2px solid rgba(237,187,77,.72); outline-offset: 2px; }
.settings-savebar { min-height: 76px; }
.save-state { align-items: center; gap: 12px; font-size: 13px; }
.save-state > span:last-child { display: grid; gap: 4px; min-width: 0; }
.save-state b { color: #e7f2e9; font-size: 15px; line-height: 1.25; }
.save-state small { max-width: 560px; margin-top: 0; font-size: 12px; line-height: 1.45; }
.save-state .save-check { width: 32px; height: 32px; font-size: 16px; }
.save-state[data-state="unsaved"] .save-check { color: #e4b74b; border-color: rgba(237,187,77,.4); }
.save-state[data-state="error"] .save-check { color: #f2a098; border-color: rgba(242,160,152,.4); }
.shop-switcher-copy small { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.profile-chevron { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.profile-button[aria-expanded="true"] .profile-chevron { transform: rotate(180deg); }
.profile-button:focus-visible, .whatsapp-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.connection-pill { min-width: 0; }
.local-readiness { color: #cfdfd2; }
.local-readiness .status-dot { background: var(--gold); box-shadow: none; }
.whatsapp-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; max-width: 176px; border-color: rgba(151,190,164,.22); color: #d4e1d6; text-align: left; cursor: pointer; font-family: inherit; font-size: 10px; line-height: 1; }
.whatsapp-pill .wa-mark { display: inline-flex; width: 12px; height: 12px; flex: none; align-items: center; justify-content: center; font-size: 0; line-height: 0; }
.whatsapp-pill .wa-mark::before { content: ""; display: block; width: 9px; height: 9px; border: 1px solid #75dca4; border-radius: 50%; background: #38bc7e; box-shadow: 0 0 0 2px rgba(56,188,126,.13); }
.whatsapp-pill #topbarWhatsappText { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1; }
.whatsapp-pill small { display: none; }
.staff-wa-status { box-sizing: border-box; width: 100%; min-height: 42px; align-items: center; margin: 0; padding: 9px 12px; }
.modal-form-grid > .field { min-width: 0; }
.modal-form-grid .staff-wa-status { height: 42px; }
.wa-phone-control { display: flex; min-height: 44px; align-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(3,17,11,.64); }
.wa-phone-prefix { display: grid; min-height: 42px; flex: none; place-items: center; padding: 0 12px; border-right: 1px solid var(--line); color: #f0c65b; font-size: 13px; font-weight: 750; }
.wa-phone-control input { min-width: 0; width: 100%; min-height: 42px; border: 0!important; border-radius: 0!important; background: transparent!important; }
.wa-phone-control:focus-within { border-color: rgba(237,187,77,.72); box-shadow: 0 0 0 3px rgba(237,187,77,.1); }
.wa-phone-hint { color: var(--muted); font-size: 10px; line-height: 1.45; }
@media (max-width: 760px) {
  .topbar { gap: 9px; padding-right: 12px; padding-left: 12px; }
  .topbar-shop { min-width: 0; }
  .topbar-shop > span:last-child { min-width: 0; }
  .topbar-shop small { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .local-readiness { display: none; }
  .whatsapp-pill { max-width: 142px; min-width: 0; padding: 0 8px; }
  .topbar-separator { display: none; }
}
@media (max-width: 620px) {
  .settings-savebar { position: static; bottom: auto; align-items: stretch; flex-direction: column; }
  .save-state b { font-size: 14px; }
  .save-state small { font-size: 11px; }
  .save-actions { width: 100%; }
  .save-actions .button { flex: 1; min-width: 0; }
  .check-pill { flex-basis: calc(50% - 7px); min-width: 0; min-height: 44px; font-size: 11px; }
  .modal-form-grid .staff-wa-status { height: auto; min-height: 42px; }
}

/* Personnel final design QA overrides */

/* === ACCOUNT WORKSPACE BASE STYLES === */

      .account-nav-item{margin-top:4px!important}.account-nav-item[hidden]{display:none!important}
      .account-shell{display:grid;gap:16px;max-width:1500px;margin:0 auto}.account-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 18px}.account-heading>div>span{color:#d9ae4d;font-size:10px;font-weight:800;letter-spacing:.15em}.account-heading h1{margin:5px 0;font-size:clamp(24px,3vw,34px);line-height:1.15;color:#f4f8f3}.account-heading p{margin:0;color:#b4c3b8;font-size:13px;line-height:1.55}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.account-card{min-width:0;border:1px solid rgba(127,164,136,.32);border-radius:16px;background:linear-gradient(145deg,rgba(17,46,34,.94),rgba(8,27,21,.96));padding:18px;box-shadow:0 12px 32px rgba(0,0,0,.14)}.account-card.wide{grid-column:1/-1}.account-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.account-card h2{margin:0;color:#f2f6f0;font-size:17px}.account-card header p{margin:5px 0 0;color:#aebfb2;font-size:12px;line-height:1.5}.account-note{display:flex;gap:10px;align-items:flex-start;border:1px solid rgba(74,153,113,.36);border-radius:12px;padding:11px 13px;background:rgba(20,92,62,.16);color:#c3d5c8;font-size:12px;line-height:1.55}.account-note b{display:grid;place-items:center;flex:0 0 20px;height:20px;border-radius:50%;color:#071a12;background:#54d398}.account-note.warning{border-color:rgba(223,174,67,.4);background:rgba(108,78,20,.18)}.account-note.warning b{background:#e6bd5a}.account-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.account-metric{border:1px solid rgba(111,156,124,.28);border-radius:13px;padding:12px;background:rgba(9,34,24,.68)}.account-metric small{display:block;color:#aab9ad;font-size:11px}.account-metric b{display:block;margin-top:5px;color:#f3f6f1;font-size:21px}.account-meter{height:7px;margin-top:11px;border-radius:20px;background:rgba(255,255,255,.09);overflow:hidden}.account-meter i{display:block;height:100%;background:linear-gradient(90deg,#bd8c2f,#f0c35d);border-radius:inherit}.account-list{display:grid;gap:10px}.account-person{border:1px solid rgba(108,154,119,.26);border-radius:13px;padding:13px;background:rgba(8,31,23,.7)}.account-person-top{display:flex;align-items:center;gap:11px;min-width:0}.account-avatar{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:12px;color:#f5d072;font-weight:800;background:rgba(218,171,64,.14);border:1px solid rgba(218,171,64,.32)}.account-person-copy{flex:1;min-width:0}.account-person-copy b{display:block;overflow-wrap:anywhere;color:#edf4ed;font-size:14px}.account-person-copy small{display:block;margin-top:3px;overflow-wrap:anywhere;color:#aab9ad;font-size:11px}.account-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.account-badge{display:inline-flex;align-items:center;border:1px solid rgba(121,165,133,.28);border-radius:20px;padding:4px 8px;background:rgba(41,112,78,.18);color:#c8dfcf;font-size:10px;font-weight:700}.account-badge.gold{border-color:rgba(223,177,72,.4);color:#f1d17d;background:rgba(112,81,25,.2)}.account-badge.red{border-color:rgba(226,109,101,.35);color:#ffb5ad;background:rgba(116,41,38,.2)}.account-person-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.account-person select{max-width:230px}.account-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.account-field{display:grid;gap:6px;min-width:0}.account-field.span-2{grid-column:1/-1}.account-field label{color:#d6e0d8;font-size:11px;font-weight:650}.account-field input,.account-field select,.account-field textarea,.account-date{width:100%;min-width:0;border:1px solid rgba(122,161,132,.38);border-radius:10px;padding:10px 11px;background:#0a2118;color:#eef5ee;font:inherit;font-size:13px}.account-field input:focus,.account-field select:focus,.account-field textarea:focus,.account-date:focus{outline:2px solid rgba(224,183,82,.7);outline-offset:1px}.account-field input:disabled,.account-field select:disabled{opacity:.55}.account-check{display:flex;align-items:center;gap:9px;color:#d7e2d9;font-size:12px}.account-check input{accent-color:#37b97f}.account-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;margin-top:14px}.account-tabbar{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px;border-bottom:1px solid rgba(117,157,127,.25);padding-bottom:10px}.account-tab{border:1px solid rgba(114,156,125,.25);border-radius:10px;padding:8px 12px;background:rgba(9,29,21,.68);color:#c8d4cb;cursor:pointer;font:inherit;font-size:12px}.account-tab.active{border-color:#d5a943;background:linear-gradient(135deg,#b98830,#e2b84f);color:#122016;font-weight:800}.account-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.account-day{display:grid;grid-template-columns:minmax(75px,1fr) auto minmax(80px,1fr) minmax(80px,1fr);gap:7px;align-items:center;border:1px solid rgba(115,157,127,.2);border-radius:10px;padding:8px;background:rgba(5,24,17,.5)}.account-day b{color:#dce6de;font-size:11px}.account-day input[type=time]{min-width:0;width:100%;border:1px solid rgba(122,161,132,.35);border-radius:8px;padding:6px;background:#0b2119;color:#eff5ef}.account-state{border:1px solid rgba(105,153,118,.25);border-radius:12px;padding:12px;background:rgba(7,27,19,.58)}.account-state h3{margin:0 0 7px;color:#eef4ee;font-size:14px}.account-state p{margin:0;color:#b3c4b7;font-size:12px;line-height:1.6}.account-empty{padding:24px 16px;text-align:center;color:#aab9ad}.account-empty b{display:block;color:#e9f1e9;font-size:15px}.account-empty p{margin:7px 0 0;font-size:12px;line-height:1.6}.account-table{width:100%;border-collapse:collapse}.account-table th,.account-table td{padding:10px 8px;border-bottom:1px solid rgba(120,158,130,.2);text-align:left;color:#d9e4db;font-size:12px}.account-table th{color:#aebfb2;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.account-table-wrap{overflow-x:auto}.account-time{font-variant-numeric:tabular-nums;color:#f1d17a;font-weight:800}.account-privacy{color:#9db0a2;font-size:11px}.account-chip-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.account-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.account-inline input{max-width:220px}.account-err{grid-column:1/-1;min-height:18px;color:#ff9e91;font-size:12px}.account-service-row{display:grid;grid-template-columns:1fr auto auto;gap:9px;align-items:center;padding:9px 0;border-bottom:1px solid rgba(120,158,130,.18);color:#d8e4da;font-size:12px}.account-disabled{opacity:.58;pointer-events:none}
      #appShell[data-account-role="personel"] .side-nav [data-page],#appShell[data-account-role="personel"] .side-nav>.nav-caption{display:none!important}
      .account-locked{display:none!important}
      .employee-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:10px 0 14px}.employee-date-nav,.employee-view-switch,.employee-status-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.employee-date-nav .account-date{width:auto}.employee-date-nav strong{min-width:170px;text-align:center;color:#edf4ed;font-size:12px}.employee-search{max-width:280px}.employee-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.employee-kpi{border:1px solid rgba(111,156,124,.28);border-radius:13px;padding:12px;background:rgba(9,34,24,.68)}.employee-kpi small{display:block;color:#aab9ad;font-size:11px}.employee-kpi b{display:block;margin-top:5px;color:#f3f6f1;font-size:21px}.employee-timeline{display:grid;gap:8px}.employee-appointment{display:grid;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid rgba(108,154,119,.26);border-radius:13px;background:rgba(8,31,23,.7)}.employee-appointment .account-actions{margin:0}.employee-chart{display:block;width:100%;height:auto;min-height:220px}.employee-calendar{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;overflow:hidden}.employee-calendar-column{min-width:0;border:1px solid rgba(108,154,119,.25);border-radius:12px;overflow:hidden;background:rgba(7,27,19,.5)}.employee-calendar-column h3{margin:0;padding:11px;border-bottom:1px solid rgba(108,154,119,.2);font-size:13px}.employee-slot{display:grid;grid-template-columns:48px 1fr;gap:7px;padding:6px 9px;border-bottom:1px solid rgba(108,154,119,.1);font-size:10px}.employee-slot time{color:#b5c5b8}.employee-slot span{color:#aebfb2}.employee-slot.busy span{color:#f0cf74}.employee-slot.break span{color:#e9a66e}.employee-slot.closed span{color:#85948a}.employee-service-form[hidden]{display:none!important}.whatsapp-overview{position:absolute;z-index:20;right:140px;top:calc(100% - 4px);width:min(440px,calc(100vw - 24px));padding:15px;border:1px solid rgba(130,170,140,.4);border-radius:14px;background:#0b2119;box-shadow:0 18px 45px rgba(0,0,0,.42)}.whatsapp-overview[hidden]{display:none}.whatsapp-overview h3{margin:0 0 5px;font-size:14px}.whatsapp-overview p{margin:0 0 10px;color:#aebfb2;font-size:11px}.whatsapp-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.whatsapp-overview-grid div{padding:8px;border-radius:9px;background:rgba(255,255,255,.04)}.whatsapp-overview-grid b{display:block;font-size:16px}.whatsapp-overview-grid small{font-size:9px;color:#aebfb2}.wa-methods{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.wa-methods button{flex:1 1 145px}
      @media(max-width:900px){.account-grid{grid-template-columns:1fr}.account-card.wide{grid-column:auto}.account-days{grid-template-columns:1fr}.account-heading{align-items:flex-start}.account-card{padding:15px}}
      @media(max-width:560px){.account-form{grid-template-columns:1fr}.account-field.span-2{grid-column:auto}.account-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.account-day{grid-template-columns:minmax(65px,1fr) auto minmax(70px,1fr) minmax(70px,1fr);gap:5px;padding:7px 5px}.account-day b{font-size:10px}.account-day input[type=time]{font-size:11px;padding:6px 3px}.account-person-top{align-items:flex-start}.account-person-top .account-inline{margin-left:auto}.account-person select{max-width:100%}.account-actions .button,.account-person-actions .button{flex:1 1 auto}.account-card{border-radius:13px}.employee-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-appointment{grid-template-columns:54px minmax(0,1fr);gap:8px}.employee-appointment>.account-actions{grid-column:1/-1;justify-content:flex-start}.employee-calendar{grid-template-columns:1fr}.whatsapp-overview{right:12px}.whatsapp-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
      .account-manager-modal{width:min(1080px,100%);max-height:min(92vh,920px)}.account-manager-modal>.modal-body{max-height:calc(92vh - 126px);overflow:auto}.account-manager-modal .account-shell{max-width:none;gap:12px}.account-manager-modal .account-heading{display:none}.account-manager-modal .account-note{margin-bottom:12px}.account-manager-modal .account-tabbar{position:sticky;top:-14px;z-index:2;padding-top:5px;background:#0c2117}.account-manager-modal .account-grid{gap:12px}.account-manager-modal .account-card{padding:14px}
      @media(max-width:900px){.account-manager-modal .account-grid{grid-template-columns:1fr}.account-manager-modal .account-card.wide{grid-column:auto}}
      @media(max-width:560px){.account-manager-modal{width:100%;max-height:92vh}.account-manager-modal>.modal-body{max-height:calc(92vh - 110px)}.account-manager-modal .account-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.account-manager-modal .account-person-actions select{max-width:100%;flex:1 1 100%}}
      /* Personel, patron ekranının kart/grafik/zaman çizelgesi bileşenlerini kullanır. */
      .staff-stat-grid .stat-card{min-height:110px}.staff-stat-grid .stat-copy span{font-size:12px}.staff-stat-grid .stat-copy b{font-size:27px}.staff-stat-grid .stat-copy small{font-size:11px;color:#aebfb2}
      .staff-appointment-filters{grid-template-columns:minmax(190px,.8fr) minmax(220px,1.35fr) minmax(170px,.65fr)}.staff-appointment-filters .filter-search{min-width:0}.staff-appointment-filters .filter-control{min-width:0}
      .staff-overview-layout,.staff-appointments-layout{grid-template-columns:minmax(0,1.7fr) minmax(255px,.8fr)}.staff-overview-layout .appointments-main,.staff-appointments-layout .appointments-main{min-height:0}
      .staff-timeline-card{grid-template-columns:minmax(145px,1.1fr) minmax(120px,.85fr) auto minmax(82px,auto);cursor:default}.staff-timeline-card .appointment-client b,.staff-timeline-card .appointment-service b{font-size:12px}.staff-timeline-card .appointment-client small,.staff-timeline-card .appointment-service small{font-size:10px}.staff-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.staff-complete{min-height:32px;padding:0 12px;font-size:11px}.staff-appointment-menu{position:relative}.staff-appointment-menu .row-menu{display:grid!important;place-items:center;list-style:none}.staff-appointment-menu .row-menu::-webkit-details-marker{display:none}.staff-appointment-menu[open]{z-index:8}.staff-menu-items{position:absolute;right:0;top:34px;z-index:9;display:grid;gap:4px;min-width:180px;padding:7px;border:1px solid rgba(216,178,85,.45);border-radius:10px;background:#10291d;box-shadow:0 14px 32px rgba(0,0,0,.45)}.staff-menu-items button{width:100%;min-height:35px;border:0;border-radius:7px;padding:7px 10px;background:transparent;color:#e6f0e8;text-align:left;cursor:pointer;font:inherit;font-size:12px}.staff-menu-items button:hover,.staff-menu-items button:focus-visible{background:rgba(215,174,77,.18);outline:none}
      .staff-calendar-panel{min-width:0}.staff-calendar-scroll{max-width:100%;overflow-x:auto;border:1px solid rgba(127,164,136,.25);border-radius:12px}.staff-calendar-grid{display:grid;min-width:max-content}.staff-calendar-grid>div,.staff-calendar-grid>time{min-width:0;border-right:1px solid rgba(127,164,136,.14);border-bottom:1px solid rgba(127,164,136,.14)}.staff-calendar-time-head,.staff-calendar-person{position:sticky;top:0;z-index:2;min-height:48px;padding:12px;background:#163725;color:#f1d17a}.staff-calendar-person b{color:#edf5ee;font-size:13px}.staff-calendar-person small{color:#f1d17a}.staff-calendar-axis{position:sticky;left:0;z-index:1;padding:11px 8px;background:#10271d;color:#f1d17a;font-size:12px;font-weight:700}.staff-calendar-cell{min-height:40px;padding:9px 10px;font-size:12px}.staff-calendar-cell.free{background:rgba(39,139,96,.11);color:#92ddb3}.staff-calendar-cell.busy{background:rgba(219,172,68,.22);color:#f1d17a}.staff-calendar-cell.break{background:rgba(218,111,99,.19);color:#f2ada5}.staff-calendar-cell.off{background:rgba(255,255,255,.025);color:#82998a}
      .staff-stats-toolbar{justify-content:flex-end}.staff-stats-toolbar .account-field{min-width:155px}.staff-stats-toolbar .toolbar-select{width:100%;max-width:none;min-height:40px}.staff-stats-toolbar .account-date{min-height:40px}.staff-settings-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,.8fr);gap:16px}.staff-settings-form{display:grid;gap:14px}.staff-settings-section{min-width:0;margin:0;padding:16px;border:1px solid rgba(127,164,136,.28);border-radius:14px;background:rgba(6,27,19,.55)}.staff-settings-section legend{padding:0 8px;color:#f2d177;font-weight:750;font-size:15px}.staff-settings-section .account-form{margin-top:8px}.staff-inherit-choice{display:flex;align-items:center;gap:12px;min-height:44px;padding:9px 12px;border:1px solid rgba(218,175,74,.26);border-radius:10px;background:rgba(215,170,67,.07);color:#e7eee6;font-size:13px}.staff-inherit-choice input{flex:none;width:20px;height:20px;accent-color:#dfb34e}.staff-settings-section .account-day b,.staff-settings-section .account-field label{font-size:12px}.staff-effective-list{display:grid;gap:8px}.staff-effective-list div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid rgba(127,164,136,.18);font-size:12px}.staff-effective-list b{color:#e9f2e9}.staff-effective-list span{color:#f2cd75;text-align:right}
      .staff-break-control{display:grid;gap:9px;margin-top:15px;padding-top:13px;border-top:1px solid rgba(127,164,136,.25)}.staff-break-control>b{color:#f2d177;font-size:13px}.staff-break-control .account-actions{display:flex;flex-wrap:wrap;gap:8px}.staff-break-control .toolbar-select{flex:1 1 115px;min-height:37px}.staff-break-control .button{flex:1 1 135px;min-height:37px}.staff-break-control>small{color:#abc0ae;font-size:10px;line-height:1.45}
      @media(max-width:1050px){.staff-overview-layout,.staff-appointments-layout,.staff-settings-layout{grid-template-columns:1fr}.staff-appointment-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
      @media(max-width:640px){.staff-appointment-filters{grid-template-columns:1fr}.staff-timeline-card{grid-template-columns:minmax(0,1fr) auto;gap:7px}.staff-timeline-card .appointment-client{grid-column:1;grid-row:1}.staff-timeline-card .appointment-service{grid-column:1;grid-row:2;padding-left:39px}.staff-timeline-card .appointment-status{grid-column:2;grid-row:1}.staff-timeline-card .staff-row-actions{grid-column:1/-1;grid-row:3}.staff-stat-grid .stat-card{min-height:86px}.staff-stat-grid .stat-copy b{font-size:23px}.staff-stats-toolbar{justify-content:stretch}.staff-stats-toolbar .account-field{flex:1 1 140px}.staff-calendar-grid{min-width:max-content}}    

.staff-work-actions{display:grid;gap:12px}.staff-work-actions h2{margin:0;color:#f2f6f0;font-size:16px}.staff-action-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.staff-action-row .toolbar-select{min-height:38px;min-width:125px}.staff-action-hint{margin:0;color:#aebfb2;font-size:11px;line-height:1.45}.staff-timeline-card{grid-template-columns:minmax(140px,1.05fr) minmax(130px,.9fr) auto minmax(76px,auto)}.staff-calendar-grid{align-items:stretch}.staff-calendar-free{position:absolute;inset:0;background:rgba(39,139,96,.07)}.staff-calendar-axis,.staff-calendar-lane{position:relative;height:var(--lane-height);padding:0;background:repeating-linear-gradient(to bottom,rgba(127,164,136,.12) 0,rgba(127,164,136,.12) 1px,transparent 1px,transparent var(--tick-gap));background-color:#0b2118}.staff-calendar-axis{position:sticky;left:0;z-index:1;background-color:#10271d}.staff-calendar-tick{position:absolute;left:7px;transform:translateY(-50%);color:#f1d17a;font-size:11px;font-weight:700}.staff-calendar-lane{overflow:hidden;border-right:1px solid rgba(127,164,136,.14)}.staff-calendar-block{position:absolute;left:5px;right:5px;min-height:4px;border:1px solid rgba(127,164,136,.28);border-radius:6px;padding:3px 5px;overflow:hidden;font-size:10px;line-height:1.2}.staff-calendar-block small{display:block;opacity:.88}.staff-calendar-block.busy{z-index:2;background:rgba(185,139,47,.65);color:#fff3cb;border-color:rgba(230,188,85,.65)}.staff-calendar-block.break{z-index:3;background:rgba(151,62,57,.58);color:#ffd2cb;border-color:rgba(235,127,113,.55)}.staff-calendar-block.off{z-index:1;left:0;right:0;border:0;border-radius:0;background:rgba(255,255,255,.04);color:#84968a;text-align:center}
@media(max-width:640px){.staff-timeline-card{grid-template-columns:minmax(0,1fr) auto;min-width:0;gap:7px}.staff-timeline-card>.appointment-client{grid-column:1;grid-row:1;min-width:0}.staff-timeline-card>.appointment-service{grid-column:1;grid-row:2;min-width:0;padding-left:39px}.staff-timeline-card>.appointment-status{grid-column:2;grid-row:1;justify-self:end;min-width:0}.staff-timeline-card>.staff-row-actions{grid-column:1/-1;grid-row:3;min-width:0;width:100%;flex-wrap:wrap}.staff-timeline-card .staff-menu-items{max-width:calc(100vw - 40px)}}

.staff-calendar-scroll-hint{display:none;margin:0 0 7px;color:#adc2b0;font-size:11px;line-height:1.4}@media(max-width:640px){.staff-calendar-scroll-hint{display:block}}.staff-settings-section .account-day input[type=checkbox],.staff-settings-section .account-check input[type=checkbox]{accent-color:#dfb34e}.staff-calendar-block.break.conflict{z-index:2}.staff-calendar-block.busy.conflict{z-index:4;background:linear-gradient(135deg,rgba(164,112,39,.96),rgba(133,56,52,.96));border-color:rgba(245,194,104,.9);color:#fff3cb}.staff-mobile-event.conflict{outline:1px solid rgba(241,177,93,.72);box-shadow:inset 3px 0 #e7b24c}

.staff-appointment-filters{grid-template-columns:minmax(190px,.8fr) minmax(220px,1.3fr) minmax(160px,.7fr) minmax(125px,.55fr)}.staff-sort-control{min-width:0}.staff-sort-button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:40px}.staff-sort-button>span{font-size:18px;font-weight:800}.staff-sort-button small{font-size:10px}.staff-work-actions h2{margin:0;color:#f2f6f0;font-size:16px}.staff-quick-heading p{margin:4px 0 0;color:#aebfb2;font-size:11px}.staff-quick-grid{display:grid;gap:9px}.quick-action-card{display:grid;gap:9px;min-width:0;padding:11px;border:1px solid rgba(111,156,124,.25);border-radius:12px;background:rgba(7,27,19,.55)}.quick-action-card>div:first-child{display:grid;gap:4px}.quick-action-card b{color:#edf4ed;font-size:13px}.quick-action-card small,.staff-action-result{color:#aebfb2;font-size:11px;line-height:1.45}.staff-break-action{display:grid;grid-template-columns:minmax(95px,.7fr) minmax(120px,1fr);gap:8px;align-items:end}.staff-break-action .account-field{margin:0}.staff-break-action .button{min-height:40px}.staff-break-action .toolbar-select{width:100%;max-width:none}.staff-break-active{grid-column:1/-1;margin:0;padding:9px 10px;border:1px solid rgba(218,175,74,.22);border-radius:9px;color:#e6d8aa;font-size:11px;line-height:1.4}.staff-settings-layout{grid-template-columns:minmax(0,1.7fr) minmax(230px,.55fr);align-items:start}.staff-settings-main{min-width:0}.staff-settings-tabs{position:sticky;top:0;z-index:3;background:#0c2117}.staff-settings-section[hidden],[data-own-services][hidden]{display:none!important}.staff-settings-section{padding:14px}.staff-settings-section .account-day{grid-template-columns:minmax(84px,1fr) auto minmax(88px,1fr) minmax(88px,1fr)}.staff-effective-card{position:sticky;top:12px}.staff-effective-list div{font-size:12px}.account-service-row{grid-template-columns:minmax(90px,1fr) auto auto auto}.shop-service-list{margin:8px 0 12px}.shop-service-list .account-service-row{grid-template-columns:minmax(100px,1fr) auto auto}.own-service-add{margin-top:12px;padding-top:12px;border-top:1px solid rgba(120,158,130,.2)}.service-edit-form{margin:0 0 12px;padding:12px;border:1px solid rgba(218,175,74,.3);border-radius:12px}.staff-calendar-block{box-sizing:border-box;min-height:0;padding:3px 5px;font-size:11px;line-height:1.25}.staff-calendar-block small{font-size:10px}.staff-calendar-mobile{display:none}.staff-mobile-day{padding:12px;border:1px solid rgba(127,164,136,.27);border-radius:13px;background:rgba(7,27,19,.5)}.staff-mobile-day>header{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px}.staff-mobile-day>header b{color:#f2d177}.staff-mobile-day>header span{color:#aebfb2;font-size:11px}.staff-mobile-events{display:grid;gap:5px}.staff-mobile-event{display:grid;grid-template-columns:112px minmax(0,1fr);gap:8px;padding:8px;border-radius:8px;background:rgba(39,139,96,.15);font-size:12px}.staff-mobile-event b{font-variant-numeric:tabular-nums;color:#d7e9dd}.staff-mobile-event span{color:#c8d8cc}.staff-mobile-event.busy{background:rgba(185,139,47,.22)}.staff-mobile-event.busy span{color:#f1d17a}.staff-mobile-event.break{background:rgba(151,62,57,.22)}.staff-mobile-event.break span{color:#ffd2cb}.staff-mobile-event.off{background:rgba(255,255,255,.05)}.staff-mobile-event.off span{color:#9aa99f}.wa-primary-state{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid rgba(111,156,124,.28);border-radius:13px;background:rgba(7,27,19,.55)}.wa-primary-state b{color:#f3d27c}.wa-primary-state p{margin:4px 0 0;color:#b5c5b8;font-size:12px;line-height:1.5}.wa-status-dot{flex:none;width:11px;height:11px;margin-top:4px;border-radius:50%;background:#c2aa5b;box-shadow:0 0 0 5px rgba(218,175,74,.1)}.wa-status-dot.connected{background:#39c889}.wa-status-dot.disconnected{background:#e89b74}.wa-own-phone{display:flex;justify-content:space-between;gap:12px;margin:12px 0;padding:10px 0;border-bottom:1px solid rgba(120,158,130,.2);font-size:12px}.wa-own-phone span{color:#aebfb2}.wa-own-phone b{color:#edf4ed}.wa-primary{margin-top:12px;min-height:44px}.wa-method-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.wa-method-choice button{min-height:48px}.profile-wa-link{margin-top:12px}.profile-wa-link button{margin-top:8px}@media(max-width:1050px){.staff-settings-layout{grid-template-columns:1fr}.staff-effective-card{position:static}.staff-effective-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.staff-appointment-filters{grid-template-columns:1fr}.staff-sort-control{display:grid;grid-template-columns:1fr 1fr;align-items:center}.staff-sort-button{padding:6px}.staff-settings-tabs{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:0}.staff-settings-tabs .account-tab{min-height:42px;padding:8px 6px;font-size:11px}.staff-settings-section .account-day{grid-template-columns:minmax(64px,1fr) auto minmax(68px,1fr) minmax(68px,1fr);gap:5px;padding:7px 5px}.staff-effective-list{grid-template-columns:1fr}.staff-calendar-mobile{display:grid;gap:9px;margin:0 0 10px}.staff-calendar-scroll{display:none}.staff-calendar-desktop{display:none}.staff-mobile-event{grid-template-columns:98px minmax(0,1fr);font-size:11px}.staff-break-action{grid-template-columns:minmax(86px,.65fr) minmax(105px,1fr)}.wa-method-choice{grid-template-columns:1fr}}

.staff-title-meta{display:flex;align-items:center;gap:8px;min-width:0}.staff-heading-actions{display:flex;align-items:center;gap:8px}.staff-history-clear{min-height:34px;padding:6px 9px;font-size:11px;white-space:nowrap}.staff-history-clear b{margin-left:4px;color:#f2d177}.staff-calendar-block.free{z-index:0;background:rgba(39,139,96,.24);color:#c4ecd3;border-color:rgba(39,139,96,.33);text-align:center}.staff-workflow-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.staff-workflow-tag{display:inline-flex;align-items:center;max-width:100%;padding:2px 6px;border:1px solid rgba(218,175,74,.22);border-radius:999px;font-size:9px;font-weight:700;line-height:1.25;white-space:normal}.staff-workflow-tag.tone-gold{color:#f1d17a;background:rgba(218,175,74,.08)}.staff-workflow-tag.tone-violet{color:#d7b9ff;background:rgba(159,122,234,.1);border-color:rgba(159,122,234,.34)}.staff-workflow-tag.tone-red{color:#ffb2a8;background:rgba(210,91,79,.1);border-color:rgba(210,91,79,.3)}.staff-workflow-tag.tone-green{color:#8be4b7;background:rgba(39,139,96,.12);border-color:rgba(39,139,96,.3)}.staff-approve{min-height:30px;padding:5px 8px;font-size:10px;line-height:1}.profile-wa-link{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;margin-top:12px}.profile-wa-link button{grid-column:1/-1;justify-self:start;margin:0}.profile-wa-link b{max-width:100%;text-align:right;overflow-wrap:anywhere}.wa-primary-state,.wa-primary-state>div{min-width:0}.history-clear-button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 9px;font-size:10px;white-space:nowrap}.history-clear-button b{color:#f2d177}@media(max-width:640px){.staff-heading-actions{align-items:stretch;flex-direction:column}.staff-history-clear{max-width:100%}.profile-wa-link{grid-template-columns:1fr}.profile-wa-link b{text-align:left}.profile-wa-link button{grid-column:1}.history-clear-button{max-width:100%;white-space:normal}}

.staff-calendar-block.appointment-open,.staff-mobile-event.appointment-open{cursor:pointer}.staff-calendar-block.appointment-open:focus-visible,.staff-mobile-event.appointment-open:focus-visible{outline:2px solid #e3bd61;outline-offset:2px}
.staff-status-filters{align-items:center}.staff-calendar-block{cursor:help}.staff-calendar-compact-label{display:block;overflow:hidden;white-space:nowrap;font-size:9px;font-weight:700;line-height:1}.staff-menu-items{box-sizing:border-box;min-width:min(180px,calc(100vw - 24px));max-width:calc(100vw - 24px)}

.staff-sort-control{display:none!important}

@media(max-width:640px){#pageContent .account-shell .staff-timeline-card .staff-menu-items{left:0;right:auto}}

/* === HIGH-SPECIFICITY PREMIUM OVERRIDES === */

#pageContent [data-settings-panel][hidden],#pageContent .account-shell .staff-settings-section[hidden]{display:none!important}
#pageContent .account-shell .staff-settings-form input[type=checkbox][role=switch]{appearance:none;position:relative;display:inline-block;width:42px;height:24px;flex:none;margin:0;border:1px solid rgba(153,177,161,.55);border-radius:999px;background:#20382b;vertical-align:middle;cursor:pointer;transition:.16s}
#pageContent .account-shell .staff-settings-form input[type=checkbox][role=switch]::before{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#d8e5db;transition:transform .16s,background .16s}
#pageContent .account-shell .staff-settings-form input[type=checkbox][role=switch]:checked{border-color:#d6ad49;background:#946d20}
#pageContent .account-shell .staff-settings-form input[type=checkbox][role=switch]:checked::before{transform:translateX(18px);background:#fff3ce}
#pageContent .account-shell .staff-settings-form input[type=checkbox][role=switch]:focus-visible{outline:2px solid #f2d177;outline-offset:3px}
#pageContent .account-shell .staff-settings-form input[type=checkbox][role=switch]:disabled{cursor:not-allowed;opacity:.48}
#pageContent .account-shell .staff-settings-form input.staff-switch-day[role=switch]{width:38px;height:22px}
#pageContent .account-shell .staff-settings-form input.staff-switch-day[role=switch]::before{width:14px;height:14px}
#pageContent .account-shell .staff-settings-form input.staff-switch-day[role=switch]:checked::before{transform:translateX(16px)}
#pageContent .account-shell .staff-inherit-choice,#pageContent .account-shell .account-check{gap:12px;min-height:48px;padding:10px 12px;border:1px solid rgba(127,164,136,.25);border-radius:11px;background:rgba(7,27,19,.42);line-height:1.4;cursor:pointer}
#pageContent .account-shell .staff-inherit-choice:has(input:checked),#pageContent .account-shell .account-check:has(input:checked){border-color:rgba(219,181,87,.5);background:rgba(183,136,41,.1)}
#pageContent .account-shell .staff-inherit-choice:has(input:focus-visible),#pageContent .account-shell .account-check:has(input:focus-visible){outline:2px solid #e4c16c;outline-offset:2px}
#pageContent .account-shell .account-check:has(input:disabled){opacity:.65;cursor:not-allowed}
#pageContent .account-shell .staff-settings-section .account-day{min-height:43px;grid-template-columns:minmax(78px,1fr) 42px minmax(88px,1fr) minmax(88px,1fr)}
#pageContent .account-shell .staff-settings-section .account-day input[type=time]:disabled{opacity:.48;cursor:not-allowed}
#pageContent .account-shell .staff-appointment-filters{grid-template-columns:minmax(150px,.85fr) minmax(180px,1.25fr) minmax(145px,.8fr)}
#pageContent .account-shell .staff-sort-control{display:none!important}
#pageContent .account-shell .appointment-panel-head .view-switch,#pageContent .appointments-main .view-switch{display:flex;align-items:center;flex-wrap:wrap;gap:3px}
#pageContent .appointments-main .appointment-status-row{display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:start;column-gap:8px}
#pageContent .appointments-main .appointment-status-list{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
#pageContent .account-shell .staff-status-filters .staff-sort-icon,#pageContent .appointments-main .patron-sort-icon{display:inline-flex;align-items:center;justify-content:center;justify-self:end;box-sizing:border-box;width:36px;height:32px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;box-shadow:none;color:#b9c9bc;cursor:pointer}
#pageContent .account-shell .staff-status-filters .staff-sort-icon svg,#pageContent .appointments-main .patron-sort-icon svg{width:17px;height:17px}
#pageContent .account-shell .staff-status-filters .staff-sort-icon:hover,#pageContent .appointments-main .patron-sort-icon:hover{color:#f0f5ed;background:rgba(151,188,157,.07)}
#pageContent .account-shell .staff-status-filters .staff-sort-icon:focus-visible,#pageContent .appointments-main .patron-sort-icon:focus-visible{outline:2px solid #a7d8b5;outline-offset:2px}
#pageContent .appointments-main .appointment-status-row .status-filter{flex:none}
@media(max-width:640px){#pageContent .appointments-main .appointment-status-list{gap:3px}}
#pageContent .appointments-main .appointment-panel-head{align-items:center}
#pageContent .appointments-main .timeline-card:not(.staff-timeline-card){grid-template-columns:minmax(145px,1.18fr) minmax(125px,1fr) minmax(100px,.78fr) minmax(120px,.76fr) 30px}
#pageContent .account-shell .staff-timeline-card{grid-template-columns:minmax(170px,1.12fr) minmax(165px,1.12fr) minmax(112px,.7fr) minmax(118px,.78fr);gap:9px;align-items:center}
#pageContent .account-shell .staff-timeline-card>.appointment-status{min-width:112px}
#pageContent .account-shell .staff-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:118px}
#pageContent .account-shell .staff-row-actions .staff-approve{min-width:76px;min-height:34px;padding:7px 10px}
#pageContent .account-shell .staff-quick-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
#pageContent .account-shell .staff-quick-grid .quick-action-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;min-height:150px;box-sizing:border-box;padding:14px;border:1px solid rgba(111,156,124,.22);border-radius:12px;background:rgba(9,36,24,.65)}
#pageContent .account-shell .quick-action-heading{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:start;gap:10px}
#pageContent .account-shell .quick-action-heading>div{display:grid;gap:4px;min-width:0}
#pageContent .account-shell .quick-action-icon{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:9px;color:#f1d17a;background:rgba(218,175,74,.1);font-size:17px;font-weight:750;line-height:1}
#pageContent .account-shell .quick-action-detail{margin:0;color:#aebfb2;font-size:11px;line-height:1.45}
#pageContent .account-shell .quick-action-heading b{font-size:13px;line-height:1.25}
#pageContent .account-shell .quick-action-heading small{font-size:11px;line-height:1.4}
#pageContent .account-shell .staff-quick-grid .quick-action-card>.button{width:100%;min-height:42px;justify-content:center}
#pageContent .account-shell .staff-quick-grid .quick-action-card>.button:disabled{opacity:.55;cursor:not-allowed}
#pageContent .account-shell .staff-calendar-scroll{max-height:650px;overflow:auto;scrollbar-gutter:stable}
#pageContent .account-shell .staff-calendar-scroll:focus-visible{outline:2px solid #e2c16f;outline-offset:3px}
#pageContent .account-shell .staff-calendar-time-head{left:0;z-index:5}
#pageContent .account-shell .staff-calendar-person{z-index:4}
#pageContent .account-shell .staff-calendar-axis{z-index:3}
#pageContent .account-shell .wa-personal-card>header{align-items:center}
#pageContent .account-shell .wa-personal-card>header .account-badge{flex:none}
#pageContent .account-shell .wa-connection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#pageContent .account-shell .wa-info-card{display:grid;align-content:start;gap:11px;min-width:0;min-height:156px;padding:15px;border:1px solid rgba(111,156,124,.28);border-radius:13px;background:rgba(7,27,19,.55)}
#pageContent .account-shell .wa-info-label{color:#aebfb2;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
#pageContent .account-shell .wa-status-line{display:flex;align-items:center;gap:11px;min-height:28px}
#pageContent .account-shell .wa-status-line b,#pageContent .account-shell .wa-phone-value{color:#f3d27c;font-size:16px;overflow-wrap:anywhere}
#pageContent .account-shell .wa-info-card p{margin:0;color:#b5c5b8;font-size:12px;line-height:1.5}
#pageContent .account-shell .wa-info-card small{color:#aebfb2;font-size:11px;line-height:1.45}
#pageContent .account-shell .wa-action-content{min-width:0}
#pageContent .account-shell .wa-action-content .wa-primary{width:100%;margin:0}
#pageContent .account-shell .wa-action-content .account-note{min-height:52px;box-sizing:border-box;align-items:center}
#pageContent .account-shell .wa-privacy{margin-bottom:0}
#pageContent .account-shell .profile-wa-link{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px 12px;margin-top:12px}
#pageContent .account-shell .profile-wa-link b{max-width:100%;color:#f0d27b;text-align:right;overflow-wrap:anywhere}
#pageContent .account-shell .profile-wa-link button{grid-column:auto;justify-self:end;margin:0}
.topbar .whatsapp-pill{display:inline-flex;align-items:center;min-width:0}
.topbar .whatsapp-pill:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:1120px){
#pageContent .appointments-main .timeline-card:not(.staff-timeline-card){grid-template-columns:minmax(140px,1.1fr) minmax(120px,.95fr) minmax(112px,.82fr) 30px}
#pageContent .appointments-main .timeline-card:not(.staff-timeline-card) .appointment-barber{display:none}
#pageContent .appointments-main .timeline-card:not(.staff-timeline-card) .appointment-status{grid-column:3}
#pageContent .account-shell .staff-appointment-filters{grid-template-columns:minmax(130px,.9fr) minmax(155px,1.2fr) minmax(130px,.8fr)}
#pageContent .account-shell .staff-timeline-card{grid-template-columns:minmax(145px,1.05fr) minmax(145px,1.05fr) minmax(105px,.75fr) minmax(104px,.78fr)}
#pageContent .account-shell .staff-row-actions{min-width:104px;gap:4px}
#pageContent .account-shell .wa-connection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
#pageContent .appointments-main .appointment-panel-head{align-items:flex-start;flex-wrap:wrap}
#pageContent .appointments-main .view-switch{width:100%;justify-content:flex-start}
#pageContent .appointments-main .timeline-card:not(.staff-timeline-card){grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}
#pageContent .appointments-main .timeline-card:not(.staff-timeline-card) .appointment-client{grid-column:1;grid-row:1}
#pageContent .appointments-main .timeline-card:not(.staff-timeline-card) .appointment-service{grid-column:1;grid-row:2;padding-left:39px}
#pageContent .appointments-main .timeline-card:not(.staff-timeline-card) .appointment-status{grid-column:2;grid-row:1/span 2;justify-self:end}
#pageContent .appointments-main .timeline-card:not(.staff-timeline-card) .row-menu{display:none}
#pageContent .account-shell .staff-appointment-filters{grid-template-columns:1fr}
#pageContent .account-shell .appointment-panel-head .view-switch{width:100%;justify-content:flex-start}
#pageContent .account-shell .staff-timeline-card{grid-template-columns:minmax(0,1fr) auto;gap:7px}
#pageContent .account-shell .staff-timeline-card>.appointment-client{grid-column:1;grid-row:1}
#pageContent .account-shell .staff-timeline-card>.appointment-service{grid-column:1;grid-row:2;padding-left:39px}
#pageContent .account-shell .staff-timeline-card>.appointment-status{grid-column:2;grid-row:1;justify-self:end;min-width:0}
#pageContent .account-shell .staff-row-actions{grid-column:1/-1;grid-row:3;width:100%;min-width:0;justify-content:flex-start;flex-wrap:wrap}
#pageContent .account-shell .wa-connection-grid{grid-template-columns:1fr}
#pageContent .account-shell .wa-info-card{min-height:0}
#pageContent .account-shell .profile-wa-link{grid-template-columns:minmax(0,1fr) auto}
#pageContent .account-shell .profile-wa-link button{grid-column:1/-1;justify-self:stretch;width:100%}
}
@media(max-width:620px){
.topbar .local-readiness{display:none!important}
.topbar .topbar-shop b{max-width:88px!important}
.topbar .topbar-shop small{display:none!important}
.topbar .whatsapp-pill{width:auto;max-width:132px;min-width:92px;min-height:35px;padding:0 7px;font-size:9px}
#pageContent .account-shell .staff-settings-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
#pageContent .account-shell .staff-settings-section .account-day{grid-template-columns:minmax(64px,1fr) 38px minmax(68px,.9fr) minmax(68px,.9fr);gap:5px;padding:7px 5px}
}


/* Visual reschedule and staged timed-break QA components */
#modalHost .modal:has(#staffRescheduleForm), #modalHost .modal:has(#timedBreakForm) { width: min(860px, 100%); }
#staffRescheduleForm, #timedBreakForm { display: grid; gap: 16px; min-width: 0; }
.reschedule-summary-card { display: grid; gap: 4px; padding: 15px 17px; border: 1px solid rgba(139,183,147,.2); border-radius: 14px; background: linear-gradient(115deg,rgba(31,83,52,.55),rgba(12,35,23,.76)); }
.reschedule-summary-card > span, .break-stage-heading > span { color: #e8c96f; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.reschedule-summary-card > b { color: #f1f7ef; font-size: 15px; }
.reschedule-summary-card > small { color: #afc4b2; font-size: 11px; }
.reschedule-summary-card > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; color: #b9ccbd; font-size: 11px; }
.reschedule-summary-card i { color: #e9ca70; font-style: normal; }.reschedule-summary-card strong { color: #f0d779; }
.reschedule-date-field { max-width: 310px; margin: 0; }.reschedule-date-field input { min-height: 42px; }
.availability-host { display: grid; gap: 10px; min-width: 0; }
.availability-legend { display: flex; flex-wrap: wrap; gap: 7px; }
.availability-legend span { padding: 5px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 9px; font-weight: 700; }
.availability-legend .is-available { color: #9be2af; }.availability-legend .is-busy { color: #b5c1ba; }.availability-legend .is-break { color: #ef9e91; }.availability-legend .is-past { color: #84968a; }.availability-legend .is-short { color: #edca6b; }
.availability-periods { display: grid; gap: 13px; max-height: min(42vh, 390px); overflow: auto; padding: 2px 5px 4px 1px; overscroll-behavior: contain; }
.availability-period { display: grid; gap: 7px; }.availability-period h4 { position: sticky; z-index: 1; top: 0; margin: 0; padding: 5px 2px; color: #b8cabb; background: #10291c; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.availability-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(72px,1fr)); gap: 6px; }
.availability-slot { display: grid; gap: 3px; min-height: 44px; padding: 6px 4px; border: 1px solid transparent; border-radius: 9px; color: #e9f5e9; background: rgba(37,117,65,.24); cursor: pointer; text-align: center; transition: transform .14s ease,border-color .14s ease,background .14s ease; }
.availability-slot b { font-size: 11px; }.availability-slot small { overflow: hidden; color: inherit; font-size: 8px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.availability-slot.is-available { border-color: rgba(93,193,120,.35); background: rgba(41,140,72,.2); }.availability-slot.is-available:hover,.availability-slot.is-selected { border-color: #9be2a8; background: rgba(57,160,87,.55); transform: translateY(-1px); }
.availability-slot.is-busy { border-color: rgba(156,171,159,.13); color: #95a69a; background: rgba(121,140,126,.11); }
.availability-slot.is-break { border-color: rgba(227,119,105,.2); color: #e8a49a; background: rgba(145,52,46,.19); }
.availability-slot.is-past,.availability-slot.is-closed { color: #75867a; background: rgba(105,121,109,.08); opacity: .72; }
.availability-slot.is-short { border-color: rgba(236,192,83,.38); color: #f1d47b; background: rgba(163,120,31,.16); }
.availability-slot:disabled { cursor: not-allowed; }.availability-empty { display: grid; gap: 5px; padding: 18px; border: 1px dashed rgba(157,180,160,.25); border-radius: 12px; color: #d7e4d8; background: rgba(6,22,13,.35); }.availability-empty span { color: #9fb2a2; font-size: 11px; }
.break-stage-heading { display: grid; gap: 5px; padding-bottom: 11px; border-bottom: 1px solid rgba(135,167,141,.14); }.break-stage-heading h3 { margin: 0; color: #f2f7ef; font-size: 16px; }.break-stage-heading p { margin: 0; color: #a8bcac; font-size: 11px; line-height: 1.5; }
.break-start-grid { display: grid; grid-template-columns: minmax(140px,1fr) minmax(140px,1fr) minmax(140px,.8fr); align-items: end; gap: 12px; padding: 14px; border: 1px solid rgba(124,169,133,.18); border-radius: 13px; background: rgba(7,25,15,.48); }.break-start-grid .account-field { margin: 0; }.break-start-grid input,.break-start-grid select { min-height: 42px; }
.break-end-summary { display: grid; gap: 4px; min-height: 64px; align-content: center; padding: 10px 12px; border-radius: 10px; background: rgba(224,190,83,.1); }.break-end-summary small { color: #b5c0a0; font-size: 9px; }.break-end-summary b { color: #f0d575; font-size: 17px; }
.break-impact-list { display: grid; gap: 11px; }.break-conflict-card { display: grid; gap: 11px; min-width: 0; padding: 13px; border: 1px solid rgba(128,165,136,.2); border-radius: 13px; background: linear-gradient(135deg,rgba(19,57,36,.7),rgba(7,25,16,.62)); }
.break-conflict-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.break-conflict-card > header div { display: grid; gap: 4px; }.break-conflict-card > header b { color: #f0f6ed; font-size: 12px; }.break-conflict-card > header small { color: #a9bdaa; font-size: 10px; }.break-conflict-card > header > span { flex: none; padding: 5px 8px; border-radius: 999px; color: #f2d87f; background: rgba(176,131,41,.15); font-size: 9px; font-weight: 700; }
.break-row-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.break-row-options .staff-break-option { margin: 0; }.break-row-calendar { display: grid; gap: 9px; min-width: 0; padding-top: 5px; }.break-row-calendar[hidden] { display: none; }.break-row-calendar .account-field { max-width: 300px; margin: 0; }
.break-row-preview { margin: 0; color: #e8ce7b; font-size: 10px; font-weight: 700; }.break-final-summary { display: grid; gap: 7px; padding: 12px 14px; border-left: 3px solid #d5b650; border-radius: 0 10px 10px 0; background: rgba(193,158,61,.1); }.break-final-summary > b { color: #f0d779; font-size: 10px; }.break-final-summary > span,.break-final-summary > div { color: #dce7dc; font-size: 10px; }.break-final-summary > div { display: flex; justify-content: space-between; gap: 10px; }.break-final-summary small { color: #abbcab; font-size: 9px; }
#modalHost .modal:has(#staffRescheduleForm) .modal-body,#modalHost .modal:has(#timedBreakForm) .modal-body { overflow: visible; }
#modalHost .modal:has(#staffRescheduleForm) .modal-footer .button,#modalHost .modal:has(#timedBreakForm) .modal-footer .button { min-height: 43px; }
@media (max-width: 640px) {
  #modalHost .modal:has(#staffRescheduleForm),#modalHost .modal:has(#timedBreakForm) { width: 100%; max-height: 94vh; }
  #staffRescheduleForm,#timedBreakForm { gap: 12px; }.break-start-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.break-end-summary { grid-column: 1/-1; min-height: 50px; }
  .break-row-options { grid-template-columns: 1fr; }.break-conflict-card { padding: 10px; }.availability-grid { grid-template-columns: repeat(auto-fill,minmax(65px,1fr)); gap: 5px; }.availability-slot { min-height: 43px; }
  .break-final-summary > div { align-items: flex-start; flex-direction: column; gap: 3px; }.modal-footer { position: sticky; bottom: 0; z-index: 2; background: #0d2418; }
}

/* Final timed-break and availability polish */
#timedBreakForm .break-now-summary { display:grid; gap:4px; min-height:64px; align-content:center; padding:10px 12px; border:1px solid rgba(102,177,122,.26); border-radius:10px; background:linear-gradient(135deg,rgba(29,83,49,.42),rgba(8,30,18,.68)); }
#timedBreakForm .break-now-summary small,#timedBreakForm .break-end-summary small { color:#adc4b1; font-size:10px; font-weight:700; letter-spacing:.04em; }
#timedBreakForm .break-now-summary b { color:#eff7ed; font-size:16px; }
#timedBreakForm .break-now-summary span,#timedBreakForm .break-end-summary span { color:#9cb1a0; font-size:11px; }
#timedBreakForm .break-end-summary { border:1px solid rgba(102,177,122,.2); background:rgba(32,88,52,.28); }
#timedBreakForm .break-end-summary b { color:#a9e1b2; font-size:18px; }
#timedBreakForm .staff-break-option { position:relative; border-color:rgba(123,165,132,.18); background:rgba(7,26,16,.54); transition:border-color .16s ease,background .16s ease,transform .16s ease; }
#timedBreakForm .staff-break-option:hover { border-color:rgba(110,194,131,.48); transform:translateY(-1px); }
#timedBreakForm .staff-break-option:has(input:checked) { border-color:rgba(106,204,132,.66); background:linear-gradient(135deg,rgba(36,107,59,.38),rgba(8,31,18,.72)); box-shadow:inset 0 0 0 1px rgba(106,204,132,.12); }
#timedBreakForm .staff-break-option > span { display:grid; grid-template-columns:20px 1fr; column-gap:9px; align-items:center; }
#timedBreakForm .staff-break-option > span > i { grid-row:span 2; display:grid; place-items:center; width:22px; height:22px; border-radius:7px; color:#b6cdb9; background:rgba(133,166,139,.1); font-size:13px; font-style:normal; }
#timedBreakForm .staff-break-option:has(input:checked) > span > i { color:#b8efc3; background:rgba(80,169,103,.2); }
#timedBreakForm .staff-break-option > span > b { color:#edf5ec; font-size:12px; line-height:1.3; }
#timedBreakForm .staff-break-option > span > small { grid-column:2; color:#aabdad; font-size:10px; line-height:1.4; }
.break-row-preview { color:#b8e0bf; font-size:11px; line-height:1.45; }
.break-final-summary { border:1px solid rgba(106,174,119,.17); border-left:3px solid #76bd83; background:linear-gradient(100deg,rgba(31,91,49,.28),rgba(7,28,16,.52)); }
.break-final-summary > b { color:#b8e7bd; font-size:11px; }
.break-final-summary > span,.break-final-summary > div { color:#e0ece0; font-size:11px; line-height:1.45; }
.break-final-summary i { color:#8cce99; font-style:normal; padding:0 4px; }
.break-final-summary strong { color:#c5ebc9; font-weight:700; }
.break-final-summary small { color:#afc2b0; font-size:10px; white-space:nowrap; }
.availability-legend span { display:inline-flex; align-items:center; gap:4px; padding:6px 9px; font-size:10px; }
.availability-periods { max-height:min(42vh,390px); scrollbar-color:rgba(112,163,122,.46) rgba(9,28,17,.52); scrollbar-width:thin; }
.availability-grid { grid-template-columns:repeat(auto-fill,minmax(82px,1fr)); gap:8px; }
.availability-slot { min-height:52px; padding:8px 5px; border-radius:11px; }
.availability-slot b { display:flex; justify-content:center; align-items:center; gap:4px; font-size:12px; }
.availability-slot b i { color:currentColor; font-size:10px; font-style:normal; opacity:.84; }
.availability-slot small { font-size:9px; line-height:1.25; }
.availability-slot.is-selected { outline:2px solid rgba(188,235,194,.3); outline-offset:1px; }
.availability-slot.is-short { border-color:rgba(225,184,83,.42); color:#f1d989; background:linear-gradient(135deg,rgba(143,103,23,.25),rgba(61,47,17,.3)); }
.availability-slot.is-closed { color:#859689; background:rgba(105,121,109,.08); }
.availability-empty.is-invalid-date { border-color:rgba(227,119,105,.34); color:#f0b2a8; background:rgba(78,32,28,.25); }
.availability-warning-backdrop { position:fixed; inset:0; z-index:2147483000; display:grid; place-items:center; padding:18px; background:rgba(2,12,7,.78); backdrop-filter:blur(7px); }
.availability-warning { display:grid; grid-template-columns:42px minmax(0,1fr); gap:16px; width:min(520px,100%); max-height:min(90vh,720px); overflow:auto; padding:24px; border:1px solid rgba(222,178,82,.3); border-radius:20px; color:#edf5ec; background:radial-gradient(ellipse at 0 0,rgba(128,97,34,.12),transparent 48%),linear-gradient(145deg,#102b1c,#07170e); box-shadow:0 26px 90px rgba(0,0,0,.6); }
.availability-warning-icon { display:grid; place-items:center; width:40px; height:40px; border:1px solid rgba(226,185,87,.3); border-radius:13px; color:#f2d98c; background:rgba(191,148,52,.13); font-size:19px; font-weight:800; }
.availability-warning-copy { min-width:0; }
.availability-warning-copy > p:first-child { margin:0 0 5px; color:#e1c978; font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.availability-warning h2 { margin:0 0 18px; color:#f3f7f0; font-size:20px; line-height:1.25; }
.availability-warning dl { display:grid; gap:0; margin:0; border:1px solid rgba(143,173,147,.16); border-radius:12px; background:rgba(4,18,10,.42); }
.availability-warning dl > div { display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border-bottom:1px solid rgba(143,173,147,.11); }
.availability-warning dl > div:last-child { border:0; }
.availability-warning dt { color:#acc0ad; font-size:12px; }
.availability-warning dd { margin:0; color:#eff5ed; font-size:12px; font-weight:700; text-align:right; }
.availability-warning dl > div:last-child dd { color:#f0d58a; }
.availability-warning-note { margin:14px 0 0; padding:11px 12px; border-left:2px solid #d0ad58; border-radius:0 9px 9px 0; color:#c5d2c6; background:rgba(170,128,38,.09); font-size:11px; line-height:1.55; }
.availability-warning-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:9px; margin-top:20px; }
.availability-warning-actions .button { min-height:43px; }
@media (max-width:900px) {
  .break-start-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .break-end-summary { grid-column:1/-1; min-height:56px; }
  .availability-grid { grid-template-columns:repeat(auto-fill,minmax(76px,1fr)); }
  .break-row-options { gap:7px; }
}
@media (max-width:640px) {
  .break-start-grid { grid-template-columns:1fr 1fr; gap:9px; padding:11px; }
  #timedBreakForm .break-now-summary,#timedBreakForm .break-start-grid .account-field { min-width:0; }
  #timedBreakForm .break-now-summary b { font-size:14px; }
  .break-end-summary { grid-column:1/-1; }
  .break-row-options { grid-template-columns:1fr; }
  .availability-grid { grid-template-columns:repeat(auto-fill,minmax(68px,1fr)); gap:6px; }
  .availability-slot { min-height:50px; }
  .availability-warning-backdrop { padding:12px; }
  .availability-warning { grid-template-columns:32px minmax(0,1fr); gap:11px; padding:17px; border-radius:16px; }
  .availability-warning-icon { width:32px; height:32px; border-radius:10px; }
  .availability-warning h2 { font-size:17px; }
  .availability-warning dt,.availability-warning dd { font-size:11px; }
  .availability-warning dl > div { padding:9px 8px; }
  .availability-warning-actions { flex-direction:column-reverse; }
  .availability-warning-actions .button { width:100%; }
  .break-final-summary > div { display:grid; grid-template-columns:1fr; gap:3px; }
  .break-final-summary small { white-space:normal; }
}
#timedBreakForm .staff-break-option input[type="radio"] { accent-color:#79cc8c; }
#timedBreakForm .staff-break-option input:checked { border-color:#79cc8c; }
/* Personel takvimi son tasarım ve erişilebilir seçim kontrolleri */
#pageContent .account-shell .account-field select,#modalHost .account-field select{appearance:none;-webkit-appearance:none;box-sizing:border-box;min-height:48px;padding:12px 42px 12px 14px;border:1px solid rgba(129,170,141,.48);border-radius:12px;background-color:#0b2419;background-image:linear-gradient(45deg,transparent 50%,#e5c66f 50%),linear-gradient(135deg,#e5c66f 50%,transparent 50%),linear-gradient(145deg,#102d20,#0a2118);background-position:calc(100% - 19px) 50%,calc(100% - 13px) 50%,0 0;background-size:6px 6px,6px 6px,100% 100%;background-repeat:no-repeat;color:#f1f7f1;color-scheme:dark;font-size:13px;font-weight:650;line-height:1.4;box-shadow:inset 0 1px rgba(255,255,255,.045),0 5px 14px rgba(0,0,0,.12);transition:border-color .16s,box-shadow .16s,background-color .16s}
#pageContent .account-shell .account-field select:not(:disabled):hover,#modalHost .account-field select:not(:disabled):hover{border-color:rgba(224,187,90,.8);background-color:#102b1e}
#pageContent .account-shell .account-field select:focus-visible,#modalHost .account-field select:focus-visible{outline:2px solid rgba(230,194,100,.9);outline-offset:2px;border-color:#e1bd5c;box-shadow:0 0 0 4px rgba(219,176,71,.13),0 8px 20px rgba(0,0,0,.2)}
#pageContent .account-shell .account-field select:active,#modalHost .account-field select:active{border-color:#e1bd5c}
#pageContent .account-shell .account-field select:disabled,#modalHost .account-field select:disabled{opacity:.55;cursor:not-allowed;background-color:#101e17}
#pageContent .account-shell .account-field select option,#modalHost .account-field select option{padding:10px 12px;background:#0b2419;color:#eff6ef}
#pageContent .account-shell .account-field select option:checked,#modalHost .account-field select option:checked{background:#245d3c;color:#fff3c7}
#pageContent .account-shell .account-field select option:disabled,#modalHost .account-field select option:disabled{color:#85988b}
#pageContent .account-shell .staff-calendar-toolbar{align-items:flex-start;gap:12px}
#pageContent .account-shell .staff-calendar-tools{display:grid;gap:8px;flex:1 1 280px;min-width:0;max-width:540px}
#pageContent .account-shell .staff-personnel-picker{position:relative;min-width:240px}
#pageContent .account-shell .staff-personnel-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;padding:8px 12px;border:1px solid rgba(126,169,137,.38);border-radius:12px;background:linear-gradient(145deg,rgba(17,48,34,.96),rgba(8,30,22,.98));color:#edf5ee;list-style:none;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.12)}
#pageContent .account-shell .staff-personnel-picker>summary::-webkit-details-marker{display:none}
#pageContent .account-shell .staff-personnel-picker>summary:after{content:"";flex:none;width:8px;height:8px;margin-left:3px;border-right:2px solid #e5c66f;border-bottom:2px solid #e5c66f;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
#pageContent .account-shell .staff-personnel-picker[open]>summary:after{transform:rotate(225deg) translate(-1px,-1px)}
#pageContent .account-shell .staff-personnel-picker>summary:hover{border-color:rgba(224,187,90,.72)}
#pageContent .account-shell .staff-personnel-picker>summary:focus-visible{outline:2px solid #e5c66f;outline-offset:3px}
#pageContent .account-shell .staff-personnel-picker>summary>span:first-child{display:grid;gap:3px;min-width:0}
#pageContent .account-shell .staff-personnel-picker>summary b{font-size:12px;line-height:1.3}
#pageContent .account-shell .staff-personnel-picker>summary small{color:#aebfb2;font-size:10px;line-height:1.35}
#pageContent .account-shell .staff-personnel-count{flex:none;padding:5px 8px;border:1px solid rgba(220,180,78,.35);border-radius:999px;background:rgba(183,136,41,.13);color:#f1d17a;font-size:11px;font-weight:800;font-variant-numeric:tabular-nums}
#pageContent .account-shell .staff-personnel-menu{position:absolute;top:calc(100% + 7px);left:0;z-index:30;display:grid;gap:4px;box-sizing:border-box;width:min(360px,calc(100vw - 32px));max-height:min(340px,55vh);overflow:auto;padding:8px;border:1px solid rgba(128,171,140,.42);border-radius:13px;background:#0b2118;box-shadow:0 18px 45px rgba(0,0,0,.48)}
#pageContent .account-shell .staff-person-option{display:flex;align-items:center;gap:11px;min-width:0;min-height:48px;padding:8px 10px;border:1px solid transparent;border-radius:9px;background:rgba(255,255,255,.025);color:#e8f1e9;cursor:pointer}
#pageContent .account-shell .staff-person-option:hover{border-color:rgba(215,174,77,.36);background:rgba(215,174,77,.09)}
#pageContent .account-shell .staff-person-option:focus-within{outline:2px solid rgba(225,189,92,.8);outline-offset:1px}
#pageContent .account-shell .staff-person-option:has(input:checked){border-color:rgba(71,184,125,.4);background:rgba(42,132,84,.17)}
#pageContent .account-shell .staff-person-option input{flex:none;width:18px;height:18px;margin:0;accent-color:#53cc91;cursor:pointer}
#pageContent .account-shell .staff-person-option>span{display:grid;gap:3px;min-width:0}
#pageContent .account-shell .staff-person-option b{overflow-wrap:anywhere;font-size:12px;line-height:1.25}
#pageContent .account-shell .staff-person-option small{color:#aebfb2;font-size:10px;line-height:1.3}
#pageContent .account-shell .staff-personnel-empty{margin:0;padding:12px;color:#aebfb2;font-size:12px}
#pageContent .account-shell .staff-calendar-selection{display:flex;flex-wrap:wrap;gap:5px;min-width:0}
#pageContent .account-shell .staff-personnel-chip{max-width:100%;padding:4px 8px;border:1px solid rgba(78,173,117,.28);border-radius:999px;background:rgba(42,132,84,.12);color:#c7e8d1;font-size:10px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
#pageContent .account-shell .staff-personnel-none{color:#aebfb2;font-size:11px;line-height:1.4}
#pageContent .account-shell .staff-calendar-scroll{max-width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#pageContent .account-shell .staff-calendar-grid{width:100%;min-width:calc(72px + var(--staff-count) * var(--staff-lane-min));align-items:stretch}
#pageContent .account-shell .staff-calendar-time-head,#pageContent .account-shell .staff-calendar-axis{box-sizing:border-box;width:72px;min-width:72px}
#pageContent .account-shell .staff-calendar-time-head{left:0;z-index:7}
#pageContent .account-shell .staff-calendar-person{box-sizing:border-box;width:auto;min-width:0;z-index:6;overflow-wrap:anywhere}
#pageContent .account-shell .staff-calendar-person b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#pageContent .account-shell .staff-calendar-axis{z-index:5}
#pageContent .account-shell .staff-calendar-lane{position:relative;box-sizing:border-box;min-width:0;overflow:hidden}
#pageContent .account-shell .staff-calendar-block{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;padding:4px 7px;border-radius:8px;overflow:hidden;font-size:11px;line-height:1.2;overflow-wrap:anywhere}
#pageContent .account-shell .staff-calendar-block-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:750;line-height:1.2}
#pageContent .account-shell .staff-calendar-block small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.2}
#pageContent .account-shell .staff-calendar-block.dense{padding:2px 4px;font-size:9px}
#pageContent .account-shell .staff-calendar-block.dense .staff-calendar-block-label{font-size:9px}
#pageContent .account-shell .staff-calendar-block:focus-visible{z-index:8!important;outline:2px solid #f1d17a;outline-offset:1px}
#pageContent .account-shell .staff-calendar-empty{margin-top:10px;padding:22px 16px;border:1px dashed rgba(130,171,140,.34);border-radius:13px;background:rgba(7,27,19,.4);text-align:center;color:#aebfb2}
#pageContent .account-shell .staff-calendar-empty b{display:block;color:#edf5ee;font-size:14px}
#pageContent .account-shell .staff-calendar-empty p{margin:7px 0 0;font-size:12px;line-height:1.5}
#pageContent .account-shell .staff-mobile-day{box-sizing:border-box;min-width:0;padding:13px;border-radius:14px}
#pageContent .account-shell .staff-mobile-day>header{align-items:flex-start;min-width:0}
#pageContent .account-shell .staff-mobile-day>header b{min-width:0;overflow-wrap:anywhere}
#pageContent .account-shell .staff-mobile-day>header span{min-width:0;text-align:right;overflow-wrap:anywhere;line-height:1.4}
#pageContent .account-shell .staff-mobile-events{min-width:0}
#pageContent .account-shell .staff-mobile-event{box-sizing:border-box;grid-template-columns:minmax(86px,.38fr) minmax(0,1fr);align-items:start;min-width:0;gap:8px;padding:9px 10px;line-height:1.35}
#pageContent .account-shell .staff-mobile-event>b{min-width:0;font-size:11px;white-space:nowrap}
#pageContent .account-shell .staff-mobile-event>span{min-width:0;overflow-wrap:anywhere;font-size:11px}
@media(min-width:768px){#pageContent .account-shell .staff-calendar-mobile{display:none!important}#pageContent .account-shell .staff-calendar-scroll{display:block!important}}
@media(max-width:767px){#pageContent .account-shell .staff-calendar-toolbar{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:10px}#pageContent .account-shell .staff-calendar-toolbar .employee-date-nav{min-width:0;justify-content:flex-start}#pageContent .account-shell .staff-calendar-toolbar .employee-date-nav strong{min-width:0;flex:1}#pageContent .account-shell .staff-calendar-tools{width:100%;max-width:none;grid-template-columns:minmax(0,1fr)}#pageContent .account-shell .staff-personnel-picker{min-width:0;width:100%}#pageContent .account-shell .staff-personnel-picker>summary{width:100%;box-sizing:border-box}#pageContent .account-shell .staff-personnel-menu{width:100%;max-width:100%;max-height:45vh}#pageContent .account-shell .staff-calendar-mobile{display:grid!important;gap:9px;margin:0 0 10px}#pageContent .account-shell .staff-calendar-scroll{display:none!important}#pageContent .account-shell .staff-mobile-day>header{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}#pageContent .account-shell .staff-mobile-day>header span{text-align:left}#pageContent .account-shell .staff-mobile-event{grid-template-columns:minmax(80px,.36fr) minmax(0,1fr);gap:7px;padding:8px}#pageContent .account-shell .employee-status-row{gap:5px}}
/* Ekip takvimi modalı #modalHost içindedir; aynı personel ve responsive stilleri modalda da uygula. */
#modalHost .account-manager-modal .account-shell .staff-calendar-toolbar{align-items:flex-start;gap:12px}
#modalHost .account-manager-modal .account-shell .staff-calendar-tools{display:grid;gap:8px;flex:1 1 280px;min-width:0;max-width:540px}
#modalHost .account-manager-modal .account-shell .staff-personnel-picker{position:relative;min-width:240px}
#modalHost .account-manager-modal .account-shell .staff-personnel-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;padding:8px 12px;border:1px solid rgba(126,169,137,.38);border-radius:12px;background:linear-gradient(145deg,rgba(17,48,34,.96),rgba(8,30,22,.98));color:#edf5ee;list-style:none;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.12)}
#modalHost .account-manager-modal .account-shell .staff-personnel-picker>summary::-webkit-details-marker{display:none}
#modalHost .account-manager-modal .account-shell .staff-personnel-picker>summary:after{content:"";flex:none;width:8px;height:8px;margin-left:3px;border-right:2px solid #e5c66f;border-bottom:2px solid #e5c66f;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
#modalHost .account-manager-modal .account-shell .staff-personnel-picker[open]>summary:after{transform:rotate(225deg) translate(-1px,-1px)}
#modalHost .account-manager-modal .account-shell .staff-personnel-picker>summary:hover{border-color:rgba(224,187,90,.72)}
#modalHost .account-manager-modal .account-shell .staff-personnel-picker>summary:focus-visible{outline:2px solid #e5c66f;outline-offset:3px}
#modalHost .account-manager-modal .account-shell .staff-personnel-picker>summary>span:first-child{display:grid;gap:3px;min-width:0}
#modalHost .account-manager-modal .account-shell .staff-personnel-picker>summary b{font-size:12px;line-height:1.3}
#modalHost .account-manager-modal .account-shell .staff-personnel-picker>summary small{color:#aebfb2;font-size:10px;line-height:1.35}
#modalHost .account-manager-modal .account-shell .staff-personnel-count{flex:none;padding:5px 8px;border:1px solid rgba(220,180,78,.35);border-radius:999px;background:rgba(183,136,41,.13);color:#f1d17a;font-size:11px;font-weight:800;font-variant-numeric:tabular-nums}
#modalHost .account-manager-modal .account-shell .staff-personnel-menu{position:absolute;top:calc(100% + 7px);left:0;z-index:30;display:grid;gap:4px;box-sizing:border-box;width:min(360px,calc(100vw - 32px));max-height:min(340px,55vh);overflow:auto;padding:8px;border:1px solid rgba(128,171,140,.42);border-radius:13px;background:#0b2118;box-shadow:0 18px 45px rgba(0,0,0,.48)}
#modalHost .account-manager-modal .account-shell .staff-person-option{display:flex;align-items:center;gap:11px;min-width:0;min-height:48px;padding:8px 10px;border:1px solid transparent;border-radius:9px;background:rgba(255,255,255,.025);color:#e8f1e9;cursor:pointer}
#modalHost .account-manager-modal .account-shell .staff-person-option:hover{border-color:rgba(215,174,77,.36);background:rgba(215,174,77,.09)}
#modalHost .account-manager-modal .account-shell .staff-person-option:focus-within{outline:2px solid rgba(225,189,92,.8);outline-offset:1px}
#modalHost .account-manager-modal .account-shell .staff-person-option:has(input:checked){border-color:rgba(71,184,125,.4);background:rgba(42,132,84,.17)}
#modalHost .account-manager-modal .account-shell .staff-person-option input{flex:none;width:18px;height:18px;margin:0;accent-color:#53cc91;cursor:pointer}
#modalHost .account-manager-modal .account-shell .staff-person-option>span{display:grid;gap:3px;min-width:0}
#modalHost .account-manager-modal .account-shell .staff-person-option b{overflow-wrap:anywhere;font-size:12px;line-height:1.25}
#modalHost .account-manager-modal .account-shell .staff-person-option small{color:#aebfb2;font-size:10px;line-height:1.3}
#modalHost .account-manager-modal .account-shell .staff-personnel-empty{margin:0;padding:12px;color:#aebfb2;font-size:12px}
#modalHost .account-manager-modal .account-shell .staff-calendar-selection{display:flex;flex-wrap:wrap;gap:5px;min-width:0}
#modalHost .account-manager-modal .account-shell .staff-personnel-chip{max-width:100%;padding:4px 8px;border:1px solid rgba(78,173,117,.28);border-radius:999px;background:rgba(42,132,84,.12);color:#c7e8d1;font-size:10px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
#modalHost .account-manager-modal .account-shell .staff-personnel-none{color:#aebfb2;font-size:11px;line-height:1.4}
#modalHost .account-manager-modal .account-shell .staff-calendar-scroll{max-width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#modalHost .account-manager-modal .account-shell .staff-calendar-grid{width:100%;min-width:calc(72px + var(--staff-count) * var(--staff-lane-min));align-items:stretch}
#modalHost .account-manager-modal .account-shell .staff-calendar-time-head,#modalHost .account-manager-modal .account-shell .staff-calendar-axis{box-sizing:border-box;width:72px;min-width:72px}
#modalHost .account-manager-modal .account-shell .staff-calendar-time-head{left:0;z-index:7}
#modalHost .account-manager-modal .account-shell .staff-calendar-person{box-sizing:border-box;width:auto;min-width:0;z-index:6;overflow-wrap:anywhere}
#modalHost .account-manager-modal .account-shell .staff-calendar-person b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modalHost .account-manager-modal .account-shell .staff-calendar-axis{z-index:5}
#modalHost .account-manager-modal .account-shell .staff-calendar-lane{position:relative;box-sizing:border-box;min-width:0;overflow:hidden}
#modalHost .account-manager-modal .account-shell .staff-calendar-block{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;padding:4px 7px;border-radius:8px;overflow:hidden;font-size:11px;line-height:1.2;overflow-wrap:anywhere}
#modalHost .account-manager-modal .account-shell .staff-calendar-block-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:750;line-height:1.2}
#modalHost .account-manager-modal .account-shell .staff-calendar-block small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.2}
#modalHost .account-manager-modal .account-shell .staff-calendar-block.dense{padding:2px 4px;font-size:9px}
#modalHost .account-manager-modal .account-shell .staff-calendar-block.dense .staff-calendar-block-label{font-size:9px}
#modalHost .account-manager-modal .account-shell .staff-calendar-block:focus-visible{z-index:8!important;outline:2px solid #f1d17a;outline-offset:1px}
#modalHost .account-manager-modal .account-shell .staff-calendar-empty{margin-top:10px;padding:22px 16px;border:1px dashed rgba(130,171,140,.34);border-radius:13px;background:rgba(7,27,19,.4);text-align:center;color:#aebfb2}
#modalHost .account-manager-modal .account-shell .staff-calendar-empty b{display:block;color:#edf5ee;font-size:14px}
#modalHost .account-manager-modal .account-shell .staff-calendar-empty p{margin:7px 0 0;font-size:12px;line-height:1.5}
#modalHost .account-manager-modal .account-shell .staff-mobile-day{box-sizing:border-box;min-width:0;padding:13px;border-radius:14px}
#modalHost .account-manager-modal .account-shell .staff-mobile-day>header{align-items:flex-start;min-width:0}
#modalHost .account-manager-modal .account-shell .staff-mobile-day>header b{min-width:0;overflow-wrap:anywhere}
#modalHost .account-manager-modal .account-shell .staff-mobile-day>header span{min-width:0;text-align:right;overflow-wrap:anywhere;line-height:1.4}
#modalHost .account-manager-modal .account-shell .staff-mobile-events{min-width:0}
#modalHost .account-manager-modal .account-shell .staff-mobile-event{box-sizing:border-box;grid-template-columns:minmax(86px,.38fr) minmax(0,1fr);align-items:start;min-width:0;gap:8px;padding:9px 10px;line-height:1.35}
#modalHost .account-manager-modal .account-shell .staff-mobile-event>b{min-width:0;font-size:11px;white-space:nowrap}
#modalHost .account-manager-modal .account-shell .staff-mobile-event>span{min-width:0;overflow-wrap:anywhere;font-size:11px}
@media(min-width:768px){#modalHost .account-manager-modal .account-shell .staff-calendar-mobile{display:none!important}#modalHost .account-manager-modal .account-shell .staff-calendar-scroll{display:block!important}}
@media(max-width:767px){#modalHost .account-manager-modal .account-shell .staff-calendar-toolbar{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:10px}#modalHost .account-manager-modal .account-shell .staff-calendar-toolbar .employee-date-nav{min-width:0;justify-content:flex-start}#modalHost .account-manager-modal .account-shell .staff-calendar-toolbar .employee-date-nav strong{min-width:0;flex:1}#modalHost .account-manager-modal .account-shell .staff-calendar-tools{width:100%;max-width:none;grid-template-columns:minmax(0,1fr)}#modalHost .account-manager-modal .account-shell .staff-personnel-picker{min-width:0;width:100%}#modalHost .account-manager-modal .account-shell .staff-personnel-picker>summary{width:100%;box-sizing:border-box}#modalHost .account-manager-modal .account-shell .staff-personnel-menu{width:100%;max-width:100%;max-height:45vh}#modalHost .account-manager-modal .account-shell .staff-calendar-mobile{display:grid!important;gap:9px;margin:0 0 10px}#modalHost .account-manager-modal .account-shell .staff-calendar-scroll{display:none!important}#modalHost .account-manager-modal .account-shell .staff-mobile-day>header{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}#modalHost .account-manager-modal .account-shell .staff-mobile-day>header span{text-align:left}#modalHost .account-manager-modal .account-shell .staff-mobile-event{grid-template-columns:minmax(80px,.36fr) minmax(0,1fr);gap:7px;padding:8px}#modalHost .account-manager-modal .account-shell .employee-status-row{gap:5px}}
#modalHost #staffDelayForm .staff-impact-list{display:grid;gap:7px;min-width:0;margin:14px 0 12px}
#modalHost #staffDelayForm .staff-impact-list>b{display:block;margin:0 0 2px;color:#edf5ee;font-size:12px;line-height:1.4}
#modalHost #staffDelayForm .staff-impact-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px 12px;min-width:0;padding:9px 11px;border:1px solid rgba(124,163,136,.2);border-radius:10px;background:rgba(3,21,13,.34)}
#modalHost #staffDelayForm .staff-impact-row>span{min-width:0;color:#edf5ee;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
#modalHost #staffDelayForm .staff-impact-row>small{align-self:start;color:#abc1af;font-size:10px;line-height:1.4;text-align:right;white-space:nowrap}
@media(max-width:480px){#modalHost #staffDelayForm .staff-impact-row{grid-template-columns:minmax(0,1fr);gap:3px}#modalHost #staffDelayForm .staff-impact-row>small{text-align:left;white-space:normal}}


/* Shared account workspace scale and controls */
:root {
  --account-space-sm: 8px;
  --account-space-md: 12px;
  --account-space-lg: 16px;
  --account-space-xl: 24px;
  --account-radius: 12px;
  --account-control-height: 48px;
  --account-body-size: 14px;
  --account-caption-size: 12px;
  --account-border: #355744;
  --account-muted: #b4c8ba;
}
#pageContent .account-shell .account-heading { display:flex; justify-content:space-between; align-items:end; gap:var(--account-space-lg); flex-wrap:wrap; }
#pageContent .account-shell .account-heading h1 { font-size:clamp(26px,2.5vw,30px); }
#pageContent .account-shell .account-heading p { font-size:var(--account-body-size); }
#pageContent .account-shell .account-card h2,
#modalHost .account-shell .account-card h2,
#pageContent .account-shell .staff-quick-heading h2 { font-size:17px; line-height:1.35; }
#pageContent .account-shell .account-card,
#modalHost .account-shell .account-card { padding:var(--account-space-lg); border-radius:var(--account-radius); }
#pageContent .account-shell .account-card header p,
#modalHost .account-shell .account-card header p,
#modalHost .account-privacy,
#pageContent .account-shell .quick-action-detail { font-size:var(--account-caption-size); line-height:1.5; color:var(--account-muted); }
#pageContent .account-shell .account-field > :is(label,span),
#modalHost .account-field > :is(label,span),
#modalHost .manual-services legend { font-size:13px; font-weight:650; color:var(--text); }
#pageContent .account-shell .account-field :is(input:not([type="checkbox"],[type="radio"]),select),
#modalHost .account-field :is(input:not([type="checkbox"],[type="radio"]),select) {
  min-width:0; width:100%; min-height:var(--account-control-height); font-size:var(--account-body-size); border-radius:var(--account-radius);
}
#pageContent .account-shell :is(.account-badge,.staff-workflow-tag),
#modalHost .account-badge { font-size:11px; line-height:1.35; }
#pageContent .account-shell .account-field :is(input,select):focus-visible,
#modalHost :is(input,select,summary,button):focus-visible { outline:2px solid #dfba65; outline-offset:2px; }
#modalHost input[type="checkbox"], #pageContent .account-shell input[type="checkbox"] { accent-color:#66c685; }
body:has(#modalHost .modal[aria-modal="true"]) { overflow:hidden; }
html { scrollbar-gutter:stable; }
#modalHost .modal > .modal-header h2 { font-size:21px; line-height:1.25; }
#modalHost .modal > .modal-header p { font-size:var(--account-caption-size); line-height:1.45; }
#modalHost .modal > .modal-footer .button, #modalHost .account-actions .button,
#pageContent .staff-page-actions .button { min-height:var(--account-control-height); font-size:13px; }
#modalHost .account-err { font-size:13px; line-height:1.5; color:#ffb5ac; }
#modalHost .account-err:empty { display:none; }
#modalHost :is(.account-manager-modal,.modal:has(#staffManualForm)) { width:min(840px,100%); max-height:92dvh; }
#modalHost .account-manager-modal[data-owner-flow="team"] { width:min(1000px,100%); }
#modalHost .account-manager-modal > .modal-body { max-height:none; overflow:visible; }
#modalHost .modal:has(#staffManualForm) > .modal-footer { position:sticky; bottom:0; z-index:1; background:#102a1c; }
#modalHost .account-manager-modal .account-person-actions { justify-content:flex-start; align-items:start; }
#modalHost .account-manager-modal .account-person-actions .button { min-height:38px; white-space:normal; }
.owner-list-toolbar { grid-column:1/-1; display:flex; justify-content:flex-end; }
.owner-person-actions { min-width:145px; border:1px solid var(--account-border); border-radius:var(--account-radius); background:#10291e; }
.owner-person-actions summary { cursor:pointer; padding:10px 12px; }
.owner-person-actions > div { display:grid; gap:var(--account-space-sm); padding:var(--account-space-sm); }
.owner-capacity-note { margin-bottom:var(--account-space-lg); color:var(--account-muted); font-size:var(--account-body-size); }
.owner-matching .account-actions { margin-top:var(--account-space-lg); }
#timedBreakForm .break-start-grid { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; padding:0; border:0; background:none; }
#timedBreakForm .break-start-grid > :is(.break-now-summary,.account-field,.break-end-summary) {
  display:grid; grid-template-rows:auto var(--account-control-height) minmax(16px,auto); align-items:center; align-content:start;
  grid-column:auto; min-width:0; gap:var(--account-space-sm); padding:var(--account-space-lg);
  border:1px solid var(--account-border); border-radius:var(--account-radius); background:#122e21;
}
#timedBreakForm .break-start-grid :is(small,.account-field > span) { font-size:13px; letter-spacing:0; color:var(--account-muted); }
#timedBreakForm .break-start-grid :is(.break-now-summary b,.break-end-summary b) { font-size:26px; line-height:1.12; font-variant-numeric:tabular-nums; }
#timedBreakForm .break-start-grid .break-end-summary { background:#153425; }
#timedBreakForm .break-stage-heading h3 { font-size:17px; }
#timedBreakForm .break-stage-heading p { font-size:13px; line-height:1.45; }
#timedBreakForm .break-conflict-card { margin-bottom:var(--account-space-md); padding:var(--account-space-lg); }
#timedBreakForm .break-conflict-card header b { font-size:15px; }
#timedBreakForm .break-conflict-card header small,
#timedBreakForm .staff-break-option > span > small { font-size:var(--account-caption-size); }
#timedBreakForm .staff-break-option > span > b { font-size:13px; }
#timedBreakForm .staff-break-option { height:100%; align-items:start; }
#timedBreakForm .staff-break-option input { width:18px; height:18px; }
#timedBreakForm .staff-break-option input:checked { border-width:5px; }
#timedBreakForm .break-row-preview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--account-space-sm); padding:0; border:0; background:none; }
.break-row-preview > span { display:grid; gap:4px; padding:var(--account-space-md); border-radius:var(--account-radius); background:#10291e; overflow-wrap:anywhere; }
.break-row-preview small { color:var(--account-muted); font-size:var(--account-caption-size); }
.break-row-preview b { color:var(--text); font-size:var(--account-body-size); }
.break-plan-notice { margin:0 0 var(--account-space-md); padding:var(--account-space-md); border-left:3px solid #dfba65; color:#f1dbac; background:#2e2b1b; border-radius:6px; font-size:13px; line-height:1.5; }
.manual-appointment-form, .manual-services > div { display:grid; gap:var(--account-space-md); }
.manual-services { margin:0; padding:0; border:0; min-width:0; }
.manual-services legend { margin-bottom:var(--account-space-sm); }
.manual-services > div { grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); }
.manual-service-option { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:var(--account-space-sm); min-height:44px; padding:var(--account-space-sm) var(--account-space-md); border:1px solid var(--account-border); border-radius:var(--account-radius); font-size:var(--account-body-size); cursor:pointer; }
.manual-service-option:has(:checked) { background:#193e2b; border-color:#61a676; }
.manual-service-option small { color:var(--account-muted); font-size:var(--account-caption-size); }
.manual-date { max-width:310px; }
.manual-summary { margin:0; padding:var(--account-space-md); border-radius:var(--account-radius); background:#193e2b; font-size:var(--account-body-size); }
#pageContent .account-shell .staff-calendar-grid { --staff-lane-min:192px; }
#pageContent .account-shell .staff-calendar-tick:first-child { transform:none; }
@media(max-width:767px) {
  #pageContent .account-shell .account-heading { align-items:start; }
  #modalHost .modal:has(#staffManualForm) .availability-periods,
  #modalHost .modal:has(#staffRescheduleForm) .availability-periods,
  #modalHost .modal:has(#timedBreakForm) .availability-periods { max-height:none; overflow:visible; }
  #timedBreakForm .break-start-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #timedBreakForm .break-start-grid .account-field { grid-column:1/-1; grid-row:1; grid-template-rows:auto var(--account-control-height); }
}
@media(max-width:460px) {
  #modalHost .account-manager-modal .account-form,
  #modalHost .manual-appointment-form > .account-form { grid-template-columns:minmax(0,1fr); }
  #modalHost .account-manager-modal .account-form .span-2 { grid-column:1/-1; }
  #timedBreakForm .break-row-options { grid-template-columns:minmax(0,1fr); }
}

#modalHost .modal:has(#timedBreakForm) { overflow-anchor:none; }

#modalHost .modal { scroll-padding-block: 98px 84px; }
@media(min-width:768px) { #modalHost .modal:has(#timedBreakForm) { max-height:min(92dvh,1280px); } }

#inviteNewBarberWrap { grid-column:1/-1; }
#pageContent .account-shell .staff-personnel-chip.summary { color:var(--account-muted); background:#122e22; }


/* === RC DESIGN-SYSTEM FIDELITY & ISOLATED EXTENSIONS === */
/* Role nav visibility */
#appShell[data-account-role="patron"] .side-nav [data-patron-nav="true"]{display:flex}
#appShell[data-account-role="personel"] .side-nav [data-patron-nav="true"],
#appShell[data-account-role="personel"] .side-nav [data-patron-caption="true"]{display:none!important}
#appShell[data-account-role="patron"] #personalDemoNav{display:none!important}
#appShell[data-account-role="personel"] #personalDemoNav{display:block!important}

/* SVG line icon sizing baseline */
.line-icon{fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.topbar-shop-mark svg,.nav-icon svg{width:19px;height:19px}
.notification-button svg{width:18px;height:18px}
.profile-menu{display:grid;gap:6px}
.profile-menu small{margin:0 0 6px}
.profile-menu button:hover{border-color:var(--line-strong);background:rgba(255,255,255,.07);color:var(--text)}

/* Readable desktop typography floor matching Gercek_Gorunum + Montaj_QA */
.nav-item > span:nth-child(2){font-size:13px;font-weight:580}
.nav-caption{font-size:11px;letter-spacing:.11em}
.topbar-shop b{font-size:14px}
.topbar-shop small{font-size:11px}
.connection-pill{font-size:11.5px;min-height:36px;padding:0 12px}
.connection-pill small{display:block;font-size:10px;color:var(--muted)}
.whatsapp-pill{display:inline-flex;align-items:center;gap:8px;text-align:left;max-width:250px}
.whatsapp-pill > span:nth-child(2){display:grid;line-height:1.2;min-width:0;overflow:hidden}
#topbarWhatsappText,#topbarWhatsappCounts{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-heading p{font-size:13px}
.filter-label{font-size:11.5px;font-weight:620;margin-bottom:6px}
.filter-control{font-size:13px;min-height:42px}
.filter-search svg{top:35px;left:12px;width:16px;height:16px;pointer-events:none}
.filter-search .filter-control{padding-left:36px}
.quick-actions .subtle-button{min-height:38px;padding:0 13px;font-size:12px}
.stat-copy span{font-size:12px}
.stat-copy b{font-size:26px}
.stat-copy small{font-size:11.5px}
.panel-title b{font-size:14px}
.panel-title small{font-size:11.5px}
.section-heading h2,.section-heading h3{font-size:16px}
.section-heading p{font-size:12px}
.view-switch button{min-height:32px;padding:0 11px;font-size:12px}
.status-filter{min-height:30px;padding:0 11px;font-size:12px}
.timeline-time{font-size:12px;display:flex;flex-direction:column;gap:2px}
.timeline-time small{font-size:10px;color:var(--muted);font-weight:500}
button.timeline-card{width:100%;text-align:left;color:var(--text);font:inherit;cursor:pointer}
.timeline-card > *{min-width:0}
.appointment-client{min-width:0;overflow:hidden}
.appointment-client > span:last-child{min-width:0;overflow:hidden}
.appointment-service{min-width:0;overflow:hidden}
.appointment-client b,.appointment-client small,.appointment-service b,.appointment-service small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.appointment-client b,.appointment-service b{font-size:13px}
.appointment-client small,.appointment-service small{font-size:11.5px}
.appointment-barber{font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.appointment-barber small{font-size:9.5px;letter-spacing:.06em}
.account-form .account-actions.span-2{grid-column:1/-1;justify-content:flex-end}
.account-shell .page-heading{margin-bottom:2px}
.pill{min-height:26px;padding:0 10px;font-size:11.5px}
.legend-row,.summary-metric{font-size:12px}
.legend-row b,.summary-metric b{font-size:12.5px}
.barber-card-heading b,.person-card-heading b{font-size:14px}
.barber-card-heading small,.person-card-heading small{font-size:11.5px}
.barber-detail{font-size:12px}
.barber-detail > span:first-child svg{width:15px;height:15px;color:var(--gold)}
.barber-detail small{font-size:11px}
.service-tag{font-size:10.5px;padding:4px 8px}
.settings-tabs.has-five{grid-template-columns:repeat(5,minmax(0,1fr))}
.settings-tab{font-size:12px;min-height:44px}
.weekday-name{font-size:12px}
.field label,.field-label-inline{font-size:12px}
.field input,.field select,.field textarea{font-size:13px}
.service-settings-table th,.transaction-table th{font-size:11.5px;padding:10px 10px}
.service-settings-table td,.transaction-table td{font-size:12.5px;padding:11px 10px}
.detail-box small{font-size:11.5px}
.detail-box b{font-size:13.5px}
.detail-description{font-size:12.5px;line-height:1.5}
.modal-header h2{font-size:18px}
.modal-header p{font-size:12px}
.modal-footer .button{min-height:42px;font-size:13px;padding:0 16px}
.modal-helper{font-size:11.5px}
.service-breakdown-row{font-size:12px;min-height:33px;padding:0 9px}
.service-breakdown-row small{font-size:11px}
.mini-list-row,.mini-list-row b,.mini-list-row small{font-size:12px}
.definition-banner b{font-size:13px}
.definition-banner p{font-size:12px}
.demo-note{font-size:12px}
.save-state{font-size:12px}
.save-state small{font-size:11px}
.save-actions .button{min-height:40px;font-size:12.5px}

/* Ensure checkboxes stay 18x18 without breaking role="switch" toggles */
#modalHost input[type="checkbox"]:not([role="switch"]),
#pageContent .account-shell input[type="checkbox"]:not([role="switch"]),
.manual-service-option input[type="checkbox"]{
  width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;flex:none;margin:0;padding:0
}
#modalHost .modal-form-grid input[type="radio"]{width:16px;height:16px;min-height:16px}
.manual-service-option{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:10px}
.manual-service-option span{min-width:0;overflow-wrap:anywhere;font-weight:600}
.manual-service-option small{white-space:nowrap}
.account-note strong{color:#f5e7be;font-weight:700}

/* Team calendar inside Patron page (not only inside .account-shell) */
#pageContent .staff-calendar-scroll{max-width:100%;max-height:660px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid rgba(127,164,136,.25);border-radius:12px}
#pageContent .staff-calendar-grid{display:grid;width:100%;--staff-lane-min:192px;min-width:calc(72px + var(--staff-count,1) * var(--staff-lane-min));align-items:stretch}
#pageContent .staff-calendar-time-head{left:0;z-index:5}
#pageContent .staff-calendar-person{z-index:4}
#pageContent .staff-calendar-axis{z-index:3}
#pageContent .staff-calendar-tick:first-child{transform:none}
@media(min-width:768px){#pageContent .staff-calendar-mobile{display:none!important}#pageContent .staff-calendar-scroll{display:block!important}}
@media(max-width:767px){#pageContent .staff-calendar-mobile{display:grid;gap:10px}#pageContent .staff-calendar-scroll{display:none!important}}

/* Local SVG QR, 8-digit pairing code & active timed-break banner */
.wa-business-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px;margin-bottom:10px}
.wa-qr-svg-box{display:grid;place-items:center;gap:6px;padding:12px;border:1px solid rgba(218,175,74,.38);border-radius:14px;background:rgba(7,27,19,.72);text-align:center}
.wa-qr-svg-frame{display:inline-flex;padding:8px;border-radius:12px;background:#ffffff;box-shadow:0 10px 26px rgba(0,0,0,.35)}
.wa-qr-svg-frame svg{display:block;width:148px;height:148px}
.wa-code-box{display:grid;gap:6px;padding:16px;border:1px solid rgba(53,191,131,.45);border-radius:13px;background:rgba(20,92,62,.2);text-align:center}
.wa-code-box strong{font-size:28px;letter-spacing:.18em;color:#f3d27c;font-variant-numeric:tabular-nums}
.wa-code-box small{color:#b4c8ba;font-size:12px}
.rc-sim-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px;padding-top:12px;border-top:1px dashed rgba(218,175,74,.3)}
.wa-qr-placeholder .rc-sim-actions,.wa-qr-svg-box .rc-sim-actions,.wa-code-box .rc-sim-actions{width:100%;justify-content:center}
.wa-qr-placeholder .rc-sim-actions .button,.wa-qr-svg-box .rc-sim-actions .button,.wa-code-box .rc-sim-actions .button{justify-content:center;min-width:156px;white-space:nowrap}
@media(max-width:480px){.wa-qr-placeholder{padding:20px 14px}.wa-qr-placeholder .rc-sim-actions,.wa-qr-svg-box .rc-sim-actions,.wa-code-box .rc-sim-actions{flex-direction:column;align-items:stretch}.wa-qr-placeholder .rc-sim-actions .button,.wa-qr-svg-box .rc-sim-actions .button,.wa-code-box .rc-sim-actions .button{width:100%;min-width:0;white-space:normal}}
.rc-sim-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:700;border:1px solid rgba(218,175,74,.35);background:rgba(108,78,20,.2);color:#f1d17d}
.rc-loading-overlay{display:grid;place-items:center;min-height:48vh;color:#d6e3d8;font-size:14px;gap:10px}
.rc-break-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;padding:13px 16px;border:1px solid rgba(237,187,77,.42);border-radius:14px;background:linear-gradient(135deg,rgba(108,78,20,.26),rgba(14,36,26,.92))}
.rc-break-banner b{color:#f3d27c;font-size:14px}
.rc-break-banner small{display:block;color:#c3d5c8;font-size:12px;margin-top:2px}
.rc-weekday-open-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:8px 12px;border:1px solid rgba(151,190,164,.15);border-radius:10px;background:rgba(255,255,255,.02)}
.rc-weekday-open-row.closed{opacity:.62}

/* Prevent 1366px Patron timeline row menu (...) from clipping card right edge */
@media(min-width:1121px) and (max-width:1420px){
  #pageContent .appointments-main .timeline-card:not(.staff-timeline-card){
    grid-template-columns:minmax(118px,1.12fr) minmax(104px,1fr) minmax(80px,.7fr) minmax(94px,.72fr) 24px;
    gap:8px
  }
}
@media(max-width:1024px){
  .settings-tabs.has-five{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:640px){
  .appointment-filters{grid-template-columns:1fr!important}
  .appointment-filters > *{grid-column:auto!important}
  .settings-tabs.has-five{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wa-business-counts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .filter-search svg{top:33px}
  .whatsapp-pill small{display:none}
}

/* === PRODUCTION HARDENING STYLES (KVKK, CONFIRM, HELP, ADMIN, MULTI-BARBER, UNAPPROVED) === */
.legal-consent-group{display:grid;gap:10px;margin:4px 0 6px;padding:12px;border:1px solid rgba(151,190,164,.16);border-radius:12px;background:rgba(7,27,19,.55)}
.legal-consent-row{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.45;color:var(--text-soft);cursor:pointer}
.legal-consent-row input[type="checkbox"]{width:18px;height:18px;min-width:18px;min-height:18px;margin-top:2px;accent-color:var(--gold);cursor:pointer}
.legal-link-btn{background:none;border:0;padding:0;color:var(--gold);font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}
.legal-link-btn:hover{color:#f6df96}
.legal-doc-body{display:grid;gap:10px;font-size:13px;line-height:1.65;color:var(--text-soft);max-height:60vh;overflow:auto;padding-right:4px}
.legal-doc-body h4{margin:8px 0 0;color:var(--gold);font-size:13.5px}
.legal-doc-body p{margin:0}

.help-button svg{width:18px;height:18px}
.guide-list{display:grid;gap:8px;margin-top:12px}
.guide-list details{border:1px solid rgba(151,190,164,.18);border-radius:11px;background:rgba(10,33,24,.65);padding:10px 14px}
.guide-list summary{font-weight:650;font-size:13.5px;color:var(--text);cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between}
.guide-list summary::-webkit-details-marker{display:none}
.guide-list summary::after{content:'+';color:var(--gold);font-size:16px;font-weight:700}
.guide-list details[open] summary::after{content:'−'}
.guide-copy{margin-top:8px;font-size:12.5px;line-height:1.6;color:var(--text-soft);display:grid;gap:6px}
.guide-copy p{margin:0}

.unapproved-banner{display:flex;align-items:center;gap:12px;padding:13px 16px;margin-bottom:16px;border-radius:14px;border:1px solid rgba(233,180,73,.45);background:linear-gradient(135deg,rgba(130,91,18,.28),rgba(14,34,24,.94));color:#f4dfa4}
.unapproved-banner b{display:block;font-size:13.5px;color:#f7d87c}
.unapproved-banner small{display:block;font-size:12px;color:#d6e3d8;margin-top:2px}

.confirm-modal-copy{font-size:13.5px;line-height:1.6;color:var(--text-soft);margin:0}
.confirm-modal-warn{margin-top:12px;padding:10px 12px;border-radius:10px;border:1px solid rgba(233,130,130,.32);background:rgba(167,62,62,.16);color:#ffb4a8;font-size:12px}

.multi-barber-box{display:grid;gap:8px;padding:10px 12px;border:1px solid rgba(151,190,164,.18);border-radius:12px;background:rgba(7,27,19,.5)}
.multi-barber-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--text-soft)}
.multi-barber-chips{display:flex;flex-wrap:wrap;gap:8px}
.multi-barber-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:10px;border:1px solid rgba(151,190,164,.22);background:rgba(16,44,32,.7);font-size:12.5px;color:var(--text);cursor:pointer}
.multi-barber-chip input[type="checkbox"]{width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;accent-color:var(--gold)}

.group-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:999px;font-size:10.5px;font-weight:700;background:rgba(174,147,232,.18);border:1px solid rgba(174,147,232,.42);color:#d7c6fb;margin-left:6px}
.live-busy-pill{background:rgba(233,180,73,.18)!important;color:#f5d57d!important;border:1px solid rgba(233,180,73,.42)!important}

.admin-table-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.button[disabled],.subtle-button[disabled]{opacity:.55;cursor:not-allowed}
.wa-throttle-note{margin-top:8px;padding:10px 12px;border-radius:10px;border:1px solid rgba(233,180,73,.38);background:rgba(122,86,18,.22);color:#f3d27c;font-size:12px}
.wa-offline-banner{margin-bottom:10px;padding:10px 12px;border-radius:10px;border:1px solid rgba(233,130,130,.38);background:rgba(155,54,54,.2);color:#ffb4a8;font-size:12px}
.wa-staff-lines{display:grid;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid rgba(151,190,164,.16)}
.wa-staff-line-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 12px;border-radius:11px;border:1px solid rgba(151,190,164,.15);background:rgba(10,32,23,.62)}

/* === RESPONSIVE & LONG-STRING OVERFLOW PROTECTION (360px..1440px) === */
html,body{max-width:100%;overflow-x:clip}
.app-shell,.workspace,.page-content{min-width:0;max-width:100%}
.topbar{max-width:100%;overflow:visible}
.topbar-shop{min-width:0;flex:1 1 auto;overflow:hidden}
.topbar-shop > div,.topbar-shop > span:not(.topbar-shop-mark){min-width:0;flex:1 1 auto;overflow:hidden}
.topbar-shop b,.topbar-shop small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-actions,.topbar > .connection-pill,.topbar > .icon-button,.topbar > .profile-menu{flex:none}
.analytics-grid > *,.secondary-analytics > *,.stat-grid > *,.appointments-layout > *,.account-grid > *,.barber-grid > *{min-width:0;max-width:100%}
.panel,.account-card,.barber-card,.stat-card,.finance-job{min-width:0;max-width:100%}
.panel h1,.panel h2,.panel h3,.panel p,.finance-job h3,.finance-job p,.barber-card-heading b,.account-person-copy b,.account-person-copy small,.timeline-card b,.timeline-card small{overflow-wrap:anywhere;word-break:break-word}
.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
[data-finance-view="true"] .transaction-table{width:100%;min-width:0;table-layout:fixed}
[data-finance-view="true"] .transaction-table th,[data-finance-view="true"] .transaction-table td{overflow-wrap:anywhere;word-break:break-word;white-space:normal}
[data-finance-view="true"] .transaction-table .amount{white-space:nowrap}
.fin-desc-cell{max-width:340px;overflow-wrap:anywhere;word-break:break-word}
.fin-row-actions{display:flex;gap:5px;justify-content:flex-end;flex-wrap:wrap;white-space:nowrap}
.fin-mini-btn{min-height:28px!important;padding:4px 8px!important;font-size:11px!important}
@media (max-width:1120px){
  .topbar{gap:10px;padding:0 16px}
  .topbar-shop b,.topbar-shop small{max-width:260px}
}
@media (max-width:780px){
  .topbar-shop b,.topbar-shop small{max-width:180px}
}

/* === PREMIUM VISUAL POLISH, STATUS DOTS, CALENDAR, FINANCE & STAFF CHAIRSIDE UX === */

/* 1. Semantic Status Dots & WhatsApp Phase Dot (never green when disconnected!) */
.status-dot,
.status-dot.online { background: var(--green) !important; box-shadow: 0 0 10px rgba(53, 191, 131, .45) !important; }
.status-dot.warning { background: var(--amber) !important; box-shadow: 0 0 10px rgba(237, 189, 86, .35) !important; }
.status-dot.offline { background: var(--muted-2) !important; box-shadow: none !important; }
.status-dot.danger { background: var(--red) !important; box-shadow: 0 0 10px rgba(230, 124, 114, .35) !important; }

.whatsapp-pill .wa-mark::before {
  content: none !important;
  display: none !important;
}
.whatsapp-pill .wa-mark,
.wa-mark {
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  flex: none;
  background: #e0766e !important;
  box-shadow: 0 0 0 3px rgba(224, 118, 110, .2) !important;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.whatsapp-pill .wa-mark.is-connected,
.wa-mark.is-connected {
  background: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(53, 191, 131, .22), 0 0 10px rgba(53, 191, 131, .45) !important;
}
.whatsapp-pill .wa-mark.is-connecting,
.whatsapp-pill .wa-mark.is-qr_required,
.whatsapp-pill .wa-mark.is-reconnecting,
.wa-mark.is-connecting,
.wa-mark.is-qr_required,
.wa-mark.is-reconnecting {
  background: var(--amber) !important;
  box-shadow: 0 0 0 3px rgba(237, 189, 86, .24) !important;
  animation: rc-dot-pulse 1.5s ease-in-out infinite;
}
.whatsapp-pill .wa-mark.is-disconnected,
.wa-mark.is-disconnected {
  background: #e0766e !important;
  box-shadow: 0 0 0 3px rgba(224, 118, 110, .2) !important;
}
.topbar .whatsapp-pill[data-wa-phase="connected"] {
  border-color: rgba(53, 191, 131, .34);
  background: rgba(53, 191, 131, .08);
}
.topbar .whatsapp-pill[data-wa-phase="qr_ready"],
.topbar .whatsapp-pill[data-wa-phase="pairing_code_ready"],
.topbar .whatsapp-pill[data-wa-phase="connecting"],
.topbar .whatsapp-pill[data-wa-phase="reconnecting"] {
  border-color: rgba(237, 189, 86, .36);
  background: rgba(237, 189, 86, .08);
}
@keyframes rc-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: .72; }
}

/* 2. Toasts positioned as sleek bottom-center floating pill (never covers top-right CTA or right-edge tables!) */
.toast-host {
  top: auto !important;
  left: 50% !important;
  right: auto !important;
  bottom: 20px !important;
  transform: translateX(-50%);
  justify-items: center;
  z-index: 95;
  gap: 7px;
  width: min(420px, calc(100vw - 28px));
}
.toast {
  backdrop-filter: blur(14px);
  padding: 10px 14px;
  width: max-content;
  max-width: 100%;
}
@media (max-width: 768px) {
  .toast-host {
    bottom: 78px !important;
  }
}

/* 3. Clean Sidebar Header (removed redundant shop-switcher box) */
.sidebar-top {
  padding: 20px 17px 14px;
}
.sidebar-mode-strip {
  margin-top: 12px;
  display: flex;
  align-items: center;
}
.sidebar-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(237, 187, 77, .26);
  background: rgba(237, 187, 77, .07);
  color: #e9d193;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}
.sidebar-mode-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* 4. Login Screen 1440x900 Vertical Rhythm + Realistic Live Schedule Preview */
@media (min-width: 981px) {
  .login-layout {
    padding: 24px 0 !important;
    min-height: calc(100vh - 60px);
  }
  .story-copy {
    padding-top: clamp(24px, 4.5vh, 52px) !important;
  }
  .story-copy h1 {
    margin: 18px 0 13px;
    font-size: clamp(42px, 4.4vw, 60px);
  }
  .story-preview {
    height: 238px;
    margin-top: 22px;
  }
}
.preview-schedule-card {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 6%;
  width: min(326px, 84%);
  padding: 14px 16px;
  border: 1px solid rgba(171, 207, 183, .24);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(20, 52, 37, .96), rgba(9, 27, 19, .97));
  box-shadow: 0 24px 56px rgba(0, 0, 0, .35);
  transform: rotate(-1.6deg);
}
.preview-slot-list {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}
.preview-slot-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(151, 190, 164, .14);
  background: rgba(7, 22, 15, .52);
}
.preview-slot-row.is-active {
  border-color: rgba(237, 187, 77, .42);
  background: linear-gradient(100deg, rgba(237, 187, 77, .12), rgba(14, 38, 27, .75));
}
.preview-slot-row.is-break {
  border-style: dashed;
  border-color: rgba(151, 190, 164, .2);
  opacity: .84;
}
.ps-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ps-meta b, .ps-meta small { display: block; line-height: 1.25; }
.ps-meta b { font-size: 11.5px; color: var(--text); }
.ps-meta small { font-size: 10px; color: var(--muted); margin-top: 1px; }
.ps-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  color: #83ddb0;
  background: rgba(53, 191, 131, .16);
}
.ps-pill.gold {
  color: #172315;
  background: linear-gradient(135deg, #f6d579, #e6aa39);
}
.ps-pill.muted {
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
}
.story-preview .preview-float {
  top: 158px;
  left: 47%;
  transform: rotate(1.5deg);
}

/* 5. Hide duplicate Durum select on Desktop (status chips sit right below) */
@media (min-width: 641px) {
  .appointment-filters {
    grid-template-columns: minmax(180px, .9fr) minmax(165px, .8fr) minmax(240px, 1.5fr) !important;
  }
  .appointment-filters.staff-appointment-filters {
    grid-template-columns: minmax(190px, .9fr) minmax(260px, 1.8fr) !important;
  }
  .appointment-filters .filter-status-wrap {
    display: none !important;
  }
}

/* 6. Unified Staff Heading & Staff Eyebrow Tag */
.staff-eyebrow-tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(237, 187, 77, .3);
  background: rgba(237, 187, 77, .09);
  color: var(--gold-light);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .12em;
  vertical-align: middle;
}
.staff-stats-head-toolbar .staff-stats-date {
  max-width: 162px;
  padding: 0 10px;
}

/* 7. Staff "Sıradaki Müşterim" Spotlight Hero Card & Row Quick Actions */
.staff-spotlight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(237, 187, 77, .34);
  background: linear-gradient(125deg, rgba(237, 187, 77, .12), rgba(16, 44, 32, .94) 52%, rgba(10, 29, 20, .96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .24);
}
.staff-spotlight-card.is-live {
  border-color: rgba(53, 191, 131, .48);
  background: linear-gradient(125deg, rgba(53, 191, 131, .16), rgba(16, 44, 32, .94) 54%, rgba(10, 29, 20, .96));
}
.spotlight-main { min-width: 0; flex: 1 1 280px; }
.spotlight-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.spotlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(237, 187, 77, .16);
  border: 1px solid rgba(237, 187, 77, .38);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
}
.spotlight-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.spotlight-pill.is-live {
  background: rgba(53, 191, 131, .18);
  border-color: rgba(53, 191, 131, .45);
  color: #8ce5b9;
}
.spotlight-pill.is-live i {
  background: var(--green);
  animation: rc-dot-pulse 1.5s ease-in-out infinite;
}
.spotlight-time {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}
.spotlight-client b {
  display: block;
  font-size: 18px;
  letter-spacing: -.02em;
  color: var(--text);
}
.spotlight-client span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}
.spotlight-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.spotlight-btn { min-height: 38px !important; padding: 0 13px !important; font-size: 12.5px !important; }
.spotlight-link { text-decoration: none; min-height: 38px !important; }

.staff-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}
.quick-icon-link {
  text-decoration: none;
  color: var(--text-soft) !important;
}
.quick-icon-link.wa:hover {
  color: #7ee3b3 !important;
  border-color: rgba(53, 191, 131, .42) !important;
}
.staff-complete-btn:hover {
  color: #83ddb0 !important;
  border-color: rgba(53, 191, 131, .45) !important;
  background: rgba(53, 191, 131, .12) !important;
}
.detail-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.detail-contact-links a {
  text-decoration: none;
  min-height: 30px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
}

/* 8. Symmetrical 3x2 Finance KPI Grid & Crisp Action Icon Buttons */
.stat-grid.finance-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.stat-grid.finance-stats .stat-card:last-child {
  grid-column: auto !important;
}
@media (max-width: 1024px) {
  .stat-grid.finance-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 580px) {
  .stat-grid.finance-stats {
    grid-template-columns: 1fr !important;
  }
}
[data-finance-view="true"] .fin-movements-table {
  table-layout: auto !important;
}
.fin-movements-table th,
.fin-movements-table td {
  padding: 9px 7px !important;
}
.fin-movements-table .fin-date-cell {
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
}
.fin-movements-table .amount {
  white-space: nowrap !important;
  padding-right: 12px !important;
}
.fin-row-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 5px;
  justify-content: flex-end;
  align-items: center;
}
.fin-icon-btn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
}
.bar-chart .bar {
  min-width: 6px;
  transition: opacity .15s ease, transform .15s ease;
}
.bar-chart .bar-group:hover .bar {
  opacity: .92;
  filter: brightness(1.12);
}

/* 9. Team Calendar: Single Unified Date Bar, Sleek Clickable Open Slots & Live "Şu an" Line */
.team-date-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.team-date-step {
  min-width: 36px !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  font-size: 17px !important;
}
.team-date-picker-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 20, 13, .65);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.team-date-picker-btn:hover {
  border-color: rgba(237, 187, 77, .52);
  background: rgba(14, 38, 27, .82);
}
.team-date-cal-icon {
  display: inline-flex;
  color: var(--gold);
}
.team-date-cal-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.team-date-native {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  cursor: pointer;
  margin: 0 !important;
  padding: 0 !important;
}
.team-today-btn {
  min-height: 38px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}
.team-today-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(53, 191, 131, .14);
  border: 1px solid rgba(53, 191, 131, .32);
  color: #83ddb0;
  font-size: 11px;
  font-weight: 700;
}

#pageContent .staff-calendar-block.free {
  background: rgba(53, 191, 131, .055) !important;
  border: 1px dashed rgba(114, 194, 152, .26) !important;
  color: rgba(169, 214, 187, .78) !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
#pageContent .staff-calendar-block.free .free-range {
  font-size: 11px;
  font-weight: 600;
  opacity: .78;
}
#pageContent .staff-calendar-block.free .free-cta {
  display: inline-block;
  margin-top: 3px;
  color: var(--gold-light);
  font-size: 10.5px;
  font-weight: 650;
  opacity: .62;
  transition: opacity .16s ease;
}
#pageContent .staff-calendar-block.free.slot-bookable {
  cursor: pointer;
  text-align: left;
}
#pageContent .staff-calendar-block.free.slot-bookable:hover {
  background: rgba(53, 191, 131, .14) !important;
  border-style: solid !important;
  border-color: rgba(237, 187, 77, .55) !important;
  color: var(--text) !important;
}
#pageContent .staff-calendar-block.free.slot-bookable:hover .free-cta {
  opacity: 1;
}
.staff-mobile-event.free.slot-bookable {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-style: dashed;
}
.staff-calendar-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 6;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 10px rgba(237, 187, 77, .6);
  pointer-events: none;
}
.staff-calendar-now-line::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
}
.staff-calendar-now-badge {
  position: absolute;
  right: 4px;
  transform: translateY(-50%);
  z-index: 7;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #162113;
  font-size: 9.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

/* 10. Modern Borderless Staff Barber Settings + Off-Day Chips + Clean Staff WA Card */
.staff-settings-panel {
  border: 0;
  padding: 4px 0 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.staff-panel-head h3, .staff-panel-head h4 {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}
.staff-panel-head h4 { font-size: 13.5px; }
.staff-panel-head p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.staff-offdays-block {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.barber-offdays-field {
  display: grid;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.offday-chip-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.offday-chip-grid[data-disabled="true"] {
  opacity: .52;
}
.offday-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 20, 13, .55);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.offday-chip input {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  pointer-events: none;
}
.offday-chip.is-off {
  border-color: rgba(230, 124, 114, .52);
  background: rgba(230, 124, 114, .16);
  color: #ffbbb4;
}
.offday-chip:has(input:disabled) {
  cursor: not-allowed;
}
@media (max-width: 520px) {
  .offday-chip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wa-compact-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(6, 20, 13, .5);
}
.wa-summary-item {
  display: grid;
  gap: 4px;
}
.wa-stage-lead {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

/* 11. Mobile Topbar Cleanup + Fixed Mobile Bottom Navigation Bar (<= 768px) */
.mobile-bottom-nav {
  display: none;
}
.page-heading .heading-actions .button {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    height: 66px;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line-strong);
    background: rgba(7, 23, 16, .95);
    backdrop-filter: blur(16px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);
  }
  .mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 2px;
  }
  .mbn-item svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mbn-item.active {
    color: var(--gold-light);
    background: rgba(237, 187, 77, .1);
  }
  .mbn-fab {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border-radius: 15px;
    border: 1px solid #f5cf6e;
    background: linear-gradient(135deg, #f6d579, #e6aa39);
    color: #172315;
    box-shadow: 0 8px 20px rgba(230, 170, 57, .32);
    cursor: pointer;
  }
  .mbn-fab svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
  }
  .page-content {
    padding-bottom: 88px !important;
  }
  .workspace-footer {
    padding-bottom: 82px !important;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 7px !important;
    padding: 0 11px !important;
  }
  .topbar .topbar-shop {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  .topbar .topbar-shop b {
    max-width: 100% !important;
    font-size: 13.5px !important;
  }
  .topbar .wa-pill-prefix {
    display: none !important;
  }
  .topbar .whatsapp-pill {
    min-width: 0 !important;
    max-width: 112px !important;
    padding: 0 9px !important;
    gap: 6px !important;
    font-size: 11px !important;
  }
  .topbar .topbar-separator,
  .topbar .help-button {
    display: none !important;
  }
  .topbar .profile-button > #topbarRoleShort {
    display: none !important;
  }
  .page-heading {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }
  .page-heading .heading-actions {
    justify-content: flex-start;
  }
  .page-heading .heading-actions .button {
    width: 100%;
  }
  .staff-spotlight-card {
    padding: 13px 14px;
  }
  .spotlight-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .spotlight-actions .spotlight-btn,
  .spotlight-actions .spotlight-link {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   FULL PANEL & MODAL LUXURY HARMONY (SCROLLBARS, SETTINGS, MODALS, STAFF)
   ========================================================================== */

/* 1. Sleek Dark-Emerald Custom Scrollbars (replaces bulky native Windows scrollbars) */
.modal,
.staff-calendar-scroll,
.availability-periods,
.side-nav,
.table-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(151, 190, 164, .32) rgba(5, 17, 11, .3);
}
.modal::-webkit-scrollbar,
.staff-calendar-scroll::-webkit-scrollbar,
.availability-periods::-webkit-scrollbar,
.side-nav::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.modal::-webkit-scrollbar-track,
.staff-calendar-scroll::-webkit-scrollbar-track,
.availability-periods::-webkit-scrollbar-track,
.side-nav::-webkit-scrollbar-track,
.table-scroll::-webkit-scrollbar-track {
  background: rgba(5, 17, 11, .42);
  border-radius: 999px;
}
.modal::-webkit-scrollbar-thumb,
.staff-calendar-scroll::-webkit-scrollbar-thumb,
.availability-periods::-webkit-scrollbar-thumb,
.side-nav::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(151, 190, 164, .3);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.modal::-webkit-scrollbar-thumb:hover,
.staff-calendar-scroll::-webkit-scrollbar-thumb:hover,
.availability-periods::-webkit-scrollbar-thumb:hover,
.side-nav::-webkit-scrollbar-thumb:hover,
.table-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(237, 187, 77, .55);
  background-clip: content-box;
}

/* 2. Barber Settings Modal: Structured Section Cards + Fixed Toggle & Off-Day Chip Alignment */
.barber-modal-form {
  display: grid;
  gap: 14px;
}
.modal-section-card {
  display: grid;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(151, 190, 164, .16);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(16, 40, 29, .78), rgba(9, 25, 18, .86));
}
.modal-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.modal-section-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.modal-subsection {
  margin-top: 2px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.modal-subsection-label {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text-soft);
}
.field .toggle-control,
.modal-section-card .toggle-control,
.barber-offdays-block .toggle-control,
.break-settings-clean .toggle-control {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100%;
  min-height: 42px;
  margin: 0 !important;
  padding: 8px 13px !important;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(5, 17, 11, .55);
  color: var(--text-soft);
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
.field .toggle-control > span:first-child,
.modal-section-card .toggle-control > span:first-child,
.break-settings-clean .toggle-control > span:first-child {
  margin: 0 !important;
  line-height: 1.35;
}
.field .toggle-control .toggle-switch,
.modal-section-card .toggle-control .toggle-switch,
.break-settings-clean .toggle-control .toggle-switch {
  margin-left: auto;
  flex: none;
}
.offday-chip-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.offday-chip-grid .offday-chip,
.field .offday-chip-grid .offday-chip {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 4px !important;
  min-height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(151, 190, 164, .22) !important;
  background: rgba(5, 18, 12, .62) !important;
  color: var(--text-soft) !important;
  font-size: 12px !important;
  font-weight: 680 !important;
  text-align: center !important;
  line-height: 1 !important;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.offday-chip-grid .offday-chip:hover:not(:has(input:disabled)) {
  border-color: rgba(237, 187, 77, .5) !important;
  background: rgba(237, 187, 77, .09) !important;
  color: var(--text) !important;
}
.offday-chip-grid .offday-chip.is-off {
  border-color: rgba(230, 124, 114, .6) !important;
  background: rgba(230, 124, 114, .18) !important;
  color: #ffc5bf !important;
  box-shadow: inset 0 0 0 1px rgba(230, 124, 114, .16);
}
.offday-chip-grid .offday-chip span {
  display: inline-block;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1;
}
.barber-special-services-card .barber-service-heading {
  margin-bottom: 0;
}
.barber-special-services-card .service-muted-hint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

/* 3. Shop Settings -> Çalışma Saatleri: 7-Day Interactive Strip + Balanced 3-Col Hours */
.settings-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.settings-subhead > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.settings-subhead > small {
  font-size: 10.5px;
  color: var(--muted);
}
.weekday-cards-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.weekday-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 10px 5px;
  border: 1px solid rgba(151, 190, 164, .18);
  border-radius: 12px;
  background: rgba(5, 18, 12, .56);
  cursor: pointer;
  user-select: none;
  transition: border-color .16s ease, background-color .16s ease, transform .14s ease, box-shadow .16s ease;
}
.weekday-card:hover {
  border-color: rgba(237, 187, 77, .5);
  transform: translateY(-1px);
}
.weekday-card.is-open {
  border-color: rgba(53, 191, 131, .44);
  background: linear-gradient(160deg, rgba(53, 191, 131, .15), rgba(8, 28, 19, .8));
  box-shadow: inset 0 1px 0 rgba(120, 232, 178, .12);
}
.weekday-card.closed {
  border-color: rgba(230, 124, 114, .26);
  background: rgba(34, 18, 18, .44);
  opacity: .84;
}
.weekday-card-short {
  font-size: 13px;
  font-weight: 760;
  color: var(--text);
  letter-spacing: -.01em;
}
.weekday-card.closed .weekday-card-short {
  color: var(--muted);
}
.weekday-card-state {
  font-size: 10px;
  font-weight: 650;
  color: #83ddb0;
}
.weekday-card.closed .weekday-card-state {
  color: #ec9d95;
}
.weekday-card-dot {
  display: inline-flex;
  align-items: center;
  width: 28px;
  height: 15px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(151, 190, 164, .22);
  transition: background-color .16s ease;
}
.weekday-card-dot i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #a8b7ad;
  transition: transform .16s ease, background-color .16s ease;
}
.weekday-card.is-open .weekday-card-dot {
  background: #259463;
}
.weekday-card.is-open .weekday-card-dot i {
  background: #fff;
  transform: translateX(13px);
}
.settings-subsection {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hours-triple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#rcSettingsHoursForm .settings-layout {
  align-items: stretch;
}
#rcSettingsHoursForm .settings-column > .settings-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}
#rcSettingsHoursForm .settings-column:last-child .demo-note {
  margin-top: auto !important;
}

/* 4. Unified Multi-Select Barber Picker (Süreli Mola Ver & Gecikme Ekle) */
.unified-barber-picker {
  margin-bottom: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(151, 190, 164, .18);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(16, 40, 29, .8), rgba(8, 24, 17, .88));
  display: grid;
  gap: 12px;
}
.unified-barber-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.unified-barber-head b {
  display: block;
  font-size: 13px;
  color: var(--text);
}
.unified-barber-head small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.unified-barber-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.unified-select-all-btn {
  min-height: 30px !important;
  padding: 0 11px !important;
  font-size: 11px !important;
  white-space: nowrap;
}
.unified-barber-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.unified-barber-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 13px 6px 9px;
  border: 1px solid rgba(151, 190, 164, .2);
  border-radius: 11px;
  background: rgba(5, 18, 12, .58);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.unified-barber-chip input {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none;
}
.unified-barber-chip:hover {
  border-color: rgba(237, 187, 77, .48);
  background: rgba(237, 187, 77, .07);
  color: var(--text);
}
.unified-barber-chip.is-selected {
  border-color: rgba(237, 187, 77, .66);
  background: linear-gradient(135deg, rgba(237, 187, 77, .17), rgba(237, 187, 77, .05));
  color: #fff4d4;
  box-shadow: 0 0 0 1px rgba(237, 187, 77, .18), 0 6px 16px rgba(0, 0, 0, .18);
}
.unified-chip-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(151, 190, 164, .34);
  background: rgba(255, 255, 255, .04);
  color: transparent;
  font-size: 11px;
  font-weight: 900;
  transition: all .15s ease;
  flex: none;
}
.unified-barber-chip.is-selected .unified-chip-check {
  border-color: var(--gold);
  background: var(--gold);
  color: #162113;
}
.unified-chip-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(237, 187, 77, .28);
  background: rgba(237, 187, 77, .1);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 750;
  flex: none;
}
.unified-barber-readonly {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 18, 12, .5);
}
.unified-barber-readonly b {
  display: block;
  font-size: 13px;
  color: var(--text);
}
.unified-barber-readonly small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.delay-duration-row {
  margin-bottom: 14px;
}
.delay-duration-row .account-field {
  max-width: 280px;
}

/* 5. Personeller Page Luxury Redesign */
.staff-mgmt-shell {
  display: grid;
  gap: 16px;
}
.staff-mgmt-shell .page-heading {
  margin-bottom: 0;
}
.staff-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  align-items: stretch;
}
.staff-overview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
}
.staff-overview-card .section-heading {
  margin-bottom: 0;
}
.staff-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.staff-kpi-tile {
  padding: 12px 13px;
  border: 1px solid rgba(151, 190, 164, .14);
  border-radius: 12px;
  background: rgba(5, 18, 12, .5);
}
.staff-kpi-tile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
}
.staff-kpi-tile b {
  display: block;
  margin-top: 5px;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.staff-meter-wrap {
  display: grid;
  gap: 7px;
}
.staff-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.staff-meter-head b {
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.patron-role-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-soft);
}
.patron-role-desc strong {
  color: var(--gold-light);
}
.patron-role-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.patron-owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(53, 191, 131, .28);
  background: rgba(53, 191, 131, .1);
  color: #83ddb0;
  font-size: 10.5px;
  font-weight: 650;
}
.patron-owner-chip svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}
.staff-flow-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin: 0 !important;
}
.staff-flow-panel {
  padding: 20px;
  border-radius: 16px;
}
.staff-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.staff-member-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(151, 190, 164, .18);
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(20, 49, 35, .9), rgba(10, 29, 20, .94));
  transition: border-color .16s ease, box-shadow .16s ease;
}
.staff-member-card:hover {
  border-color: rgba(237, 187, 77, .34);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}
.staff-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.staff-card-heading {
  min-width: 0;
  flex: 1;
}
.staff-card-heading b,
.staff-card-heading small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-card-heading b {
  font-size: 14px;
  color: var(--text);
}
.staff-card-heading small {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.staff-card-meta-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(151, 190, 164, .11);
  border-radius: 11px;
  background: rgba(5, 17, 11, .44);
}
.staff-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  min-width: 0;
}
.staff-meta-ico {
  display: inline-flex;
  color: var(--gold);
  flex: none;
}
.staff-meta-ico svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.staff-meta-lbl {
  color: var(--muted);
  flex: none;
}
.staff-meta-val {
  margin-left: auto;
  color: var(--text-soft);
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-meta-val.muted {
  color: var(--muted);
  font-weight: 500;
}
.staff-meta-row .pill {
  margin-left: auto;
}
.staff-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.staff-card-footer-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.staff-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.staff-match-controls {
  display: grid;
  gap: 12px;
}
.staff-match-controls .button {
  width: 100%;
  justify-content: center;
}

/* 6. Randevu Detayları, Profilim & Randevu Ekle / Ertele Polish */
.detail-phone-box.span-2 {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-phone-box.span-2 .detail-contact-links {
  margin-top: 0;
}
.profile-grid-balanced {
  align-items: stretch !important;
}
.profile-security-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.profile-security-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.manual-services-clean {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.manual-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.manual-services-grid .manual-service-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid rgba(151, 190, 164, .2);
  border-radius: 10px;
  background: rgba(5, 18, 12, .56);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.manual-services-grid .manual-service-option:has(input:checked) {
  border-color: rgba(237, 187, 77, .62);
  background: rgba(237, 187, 77, .11);
}
.manual-services-grid .manual-service-option span {
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manual-services-grid .manual-service-option small {
  font-size: 10.5px;
  color: var(--gold-light);
  white-space: nowrap;
}
#manSummary.manual-summary {
  margin: 12px 0;
  padding: 9px 13px;
  border: 1px solid rgba(237, 187, 77, .28);
  border-radius: 10px;
  background: rgba(237, 187, 77, .08);
  color: #f8dfa0;
  font-size: 12px;
  font-weight: 650;
}
.availability-slot.is-selected {
  border-color: var(--gold-light) !important;
  background: linear-gradient(145deg, rgba(237, 187, 77, .28), rgba(237, 187, 77, .12)) !important;
  color: #fff6dc !important;
  box-shadow: 0 0 0 2px rgba(237, 187, 77, .38), 0 4px 14px rgba(237, 187, 77, .22) !important;
  font-weight: 800 !important;
}

/* 7. Responsive Rules for New Settings, Staff & Unified Modal Layouts */
@media (max-width: 960px) {
  .staff-overview-grid,
  .staff-cards-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .weekday-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .staff-flow-tabs {
    grid-template-columns: 1fr !important;
  }
  .staff-kpi-strip {
    gap: 7px;
  }
  .staff-kpi-tile {
    padding: 10px 9px;
  }
  .staff-kpi-tile b {
    font-size: 17px;
  }
  .delay-duration-row .account-field {
    max-width: 100%;
  }
}
@media (max-width: 560px) {
  .hours-triple-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 400px) {
  .weekday-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   PHASE 1: MANDATORY FIRST-LOGIN PASSWORD GATE, MY APPOINTMENTS & FIELD HINTS
   ========================================================================== */
.force-password-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: auto;
  background: radial-gradient(circle at 20% 10%, rgba(28, 79, 53, .42), transparent 55%), #05130c;
}
.force-password-overlay[hidden] {
  display: none !important;
}
.force-password-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 28px 26px;
  border-radius: 20px;
  border: 1px solid rgba(237, 187, 77, .32);
  background: linear-gradient(155deg, rgba(19, 48, 34, .96), rgba(9, 25, 18, .98));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .55);
}
.fp-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.fp-head h2 {
  margin: 4px 0 6px;
  font-size: 21px;
  letter-spacing: -.025em;
  color: var(--text);
}
.fp-head p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.fp-head p strong {
  color: var(--gold-light);
}
.force-password-rules {
  margin: 2px 0 4px;
  padding: 11px 14px 11px 28px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(5, 17, 11, .48);
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.65;
}
.force-password-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.force-password-actions .button-gold {
  flex: 1 1 240px;
  justify-content: center;
}
.my-appointments-toggle.is-active {
  border-color: rgba(237, 187, 77, .68) !important;
  background: linear-gradient(135deg, rgba(237, 187, 77, .22), rgba(237, 187, 77, .08)) !important;
  color: #ffe9ad !important;
  box-shadow: 0 0 0 1px rgba(237, 187, 77, .2);
}
.field-hint {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
}

/* Auth boot splash — eliminates login screen flash while Firebase restores session */
.auth-boot-splash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 24% 12%, rgba(21, 79, 54, .34), transparent 46%),
    radial-gradient(ellipse at 78% 88%, rgba(237, 187, 77, .09), transparent 42%),
    #06140e;
}
.auth-boot-splash[hidden] {
  display: none !important;
}
.auth-boot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.auth-boot-emblem {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(237, 187, 77, .36);
  background: linear-gradient(145deg, rgba(19, 47, 34, .92), rgba(9, 25, 18, .96));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .38), inset 0 0 24px rgba(237, 187, 77, .06);
}
.auth-boot-emblem img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.auth-boot-spinner {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border: 2px solid rgba(237, 187, 77, .18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: rcBootSpin .75s linear infinite;
}
.auth-boot-brand {
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .16em;
}
.auth-boot-copy {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .02em;
}
@keyframes rcBootSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   RC REGRESSION POLISH (PAKET B + PAKET C): LUXURY UX, CHARTS & MOBILE 390PX
   ========================================================================== */

/* 1. Bottom-right non-blocking toasts (never covers appointment rows or modals) */
.toast-host {
  left: auto !important;
  right: 22px !important;
  bottom: 22px !important;
  transform: none !important;
  justify-items: end !important;
  width: min(390px, calc(100vw - 28px)) !important;
  pointer-events: none;
}
.toast-host .toast {
  pointer-events: auto;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .48);
}
@media (max-width: 768px) {
  .toast-host {
    left: 50% !important;
    right: auto !important;
    bottom: 84px !important;
    transform: translateX(-50%) !important;
    justify-items: center !important;
  }
}

/* 2. Notification bell live unread count badge */
.notification-button {
  position: relative;
}
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3ca65, #d69d2c);
  color: #0b1b13;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 2px solid #091a12;
  box-shadow: 0 2px 8px rgba(237, 187, 77, .45);
  pointer-events: none;
}
.notif-badge[hidden] {
  display: none !important;
}

/* 3. Patron inline quick-action appointment rows & live side card */
.patron-timeline-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 0 !important;
  cursor: default !important;
}
.patron-row-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, .8fr);
  align-items: center;
  gap: 10px;
  padding: 12px 8px 12px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.patron-row-main .appointment-client,
.patron-row-main .appointment-service,
.patron-row-main .appointment-barber {
  min-width: 0;
  overflow: hidden;
}
.patron-row-main b,
.patron-row-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.patron-row-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px 10px 4px;
}
.patron-row-status {
  display: inline-flex;
  align-items: center;
}
.patron-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.patron-row-actions .quick-icon-link {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 7px !important;
}
.patron-row-actions .patron-row-detail-btn {
  display: inline-grid !important;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text-soft);
  cursor: pointer;
}
.patron-inline-approve {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  border-radius: 7px !important;
  gap: 4px !important;
}
@media (max-width: 900px) {
  .patron-timeline-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  .patron-row-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 12px 12px 8px;
  }
  .patron-row-main .appointment-barber {
    grid-column: 1 / -1;
  }
  .patron-row-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 11px;
    border-top: 1px solid rgba(151, 190, 164, .1);
  }
}
.quick-actions-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(151, 190, 164, .22);
  margin: 0 2px;
}
.live-side-card {
  padding: 18px !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.live-side-card.is-pending-box {
  border-color: rgba(237, 187, 77, .34);
  background: linear-gradient(160deg, rgba(31, 49, 34, .75), rgba(11, 27, 20, .92));
}
.live-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.live-side-head b {
  font-size: 14px;
  color: var(--text);
}
.live-side-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.live-side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(151, 190, 164, .14);
  background: rgba(5, 18, 12, .52);
  color: inherit;
  text-align: left;
}
.live-side-item.is-clickable {
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.live-side-item.is-clickable:hover {
  border-color: rgba(237, 187, 77, .42);
  background: rgba(237, 187, 77, .07);
}
.live-side-item b {
  display: block;
  font-size: 12.5px;
  color: var(--text);
}
.live-side-item small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.live-side-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.live-side-card.is-empty p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* 4. Manual Appointment Modal: 2-column full-title service cards & slot step selector */
.manual-services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}
.manual-services-grid .manual-service-option {
  min-height: 46px !important;
  padding: 9px 12px !important;
}
.manual-services-grid .manual-service-option span {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.3;
}
.availability-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.availability-toolbar .availability-legend {
  margin-bottom: 0 !important;
}
.slot-step-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(151, 190, 164, .18);
  background: rgba(5, 18, 12, .65);
}
.slot-step-btn {
  border: 0;
  border-radius: 7px;
  padding: 5px 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.slot-step-btn:hover {
  color: var(--text);
}
.slot-step-btn.active {
  background: rgba(237, 187, 77, .18);
  color: #fae3a2;
  box-shadow: inset 0 0 0 1px rgba(237, 187, 77, .42);
}

/* 5. Ekip Takvimi status color accents & crisp free-slot top alignment */
.staff-calendar-block.free {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  padding-top: 8px !important;
}
.staff-calendar-block.busy.is-status-approved {
  border-left: 3px solid #f0c257 !important;
}
.staff-calendar-block.busy.is-status-completed {
  background: linear-gradient(155deg, rgba(28, 114, 78, .55), rgba(16, 74, 51, .68)) !important;
  border-color: rgba(66, 206, 144, .42) !important;
  border-left: 3px solid #48d697 !important;
}
.staff-calendar-block.busy.is-status-pending {
  background: linear-gradient(155deg, rgba(145, 102, 26, .48), rgba(82, 57, 16, .62)) !important;
  border: 1px dashed rgba(244, 198, 92, .75) !important;
  border-left: 3px solid #f4c65c !important;
}
.staff-calendar-block.busy.is-status-postponed {
  background: linear-gradient(155deg, rgba(50, 96, 144, .54), rgba(28, 56, 88, .68)) !important;
  border-color: rgba(116, 185, 237, .45) !important;
  border-left: 3px solid #74b9ed !important;
}
.account-badge.pending-badge {
  border-color: rgba(244, 198, 92, .55);
  border-style: dashed;
  color: #fae3a2;
  background: rgba(244, 198, 92, .1);
}

/* 6. Enhanced Bar Charts (gridlines, value labels & glass hover tooltips) */
.bar-chart {
  background-image: repeating-linear-gradient(
    to top,
    rgba(151, 190, 164, .09) 0 1px,
    transparent 1px 25%
  );
  background-position: 0 calc(100% - 22px);
  background-size: 100% calc(100% - 22px);
}
.bar-chart .bar-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.bar-chart .bar-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 100%;
  flex: 1;
}
.bar-chart .bar-val {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #d9ecdf;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bar-chart.is-dense .bar-val {
  opacity: 0;
  transition: opacity .15s ease;
}
.bar-chart.is-dense .bar-group:hover .bar-val {
  opacity: 1;
}
.bar-chart .bar-group[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(237, 187, 77, .35);
  background: rgba(8, 22, 16, .95);
  color: #f3f8f4;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  z-index: 25;
  pointer-events: none;
}
.bar-chart .bar-group:first-child[data-tooltip]:hover::after,
.bar-chart .bar-group:nth-child(2)[data-tooltip]:hover::after {
  left: 0;
  transform: none;
}
.bar-chart .bar-group:last-child[data-tooltip]:hover::after,
.bar-chart .bar-group:nth-last-child(2)[data-tooltip]:hover::after {
  left: auto;
  right: 0;
  transform: none;
}

/* Modal flex-column scroll architecture (footer NEVER occludes body action buttons!) */
.modal {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.modal-header {
  flex: 0 0 auto;
  position: static !important;
}
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-footer {
  flex: 0 0 auto;
  position: static !important;
}
.wa-person-phone {
  color: var(--text-soft);
  font-weight: 600;
}

/* 7. Finance payment history timeline & cancelled ledger row */
.finance-job.is-cancelled {
  opacity: .72;
}
.finance-history-block {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 17, 12, .52);
}
.finance-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.finance-history-head b {
  font-size: 13px;
  color: var(--text);
}
.finance-history-head small {
  font-size: 11px;
  color: var(--muted);
}
.finance-history-empty {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.finance-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.finance-history-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(151, 190, 164, .14);
  border-left: 3px solid #39b981;
  background: rgba(11, 29, 21, .75);
}
.finance-history-item.is-refund {
  border-left-color: #e98282;
}
.finance-history-item.is-discount {
  border-left-color: #e9b449;
}
.finance-history-item.is-no-show {
  border-left-color: #a6b4ab;
}
.finance-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.finance-history-row b {
  font-size: 12.5px;
  color: var(--text);
}
.finance-history-amt {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.finance-history-meta {
  display: flex;
  gap: 6px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}
.finance-history-note {
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px dashed rgba(151, 190, 164, .14);
  font-size: 12px;
  color: #d6e8dc;
}

/* 8. Inline Staff WhatsApp QR preview in Patron modal */
.wa-staff-line-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(6, 19, 13, .55);
}
.wa-staff-line-card .wa-staff-line-row {
  padding: 0;
  border: 0;
  background: transparent;
}
.wa-staff-qr-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  text-align: center;
}
.wa-staff-qr-preview strong {
  font-size: 18px;
  letter-spacing: .16em;
  color: var(--gold-light);
}

/* 9. Unify Staff Barber Settings tabs & toggle switches with Patron emerald-gold design language */
.staff-settings-tabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px !important;
  padding: 5px !important;
  border-radius: 13px !important;
  border: 1px solid var(--line) !important;
  background: rgba(5, 18, 12, .62) !important;
}
.staff-settings-tabs .account-tab {
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--text-soft) !important;
  font-weight: 600 !important;
}
.staff-settings-tabs .account-tab.active {
  background: linear-gradient(145deg, rgba(237, 187, 77, .16), rgba(237, 187, 77, .05)) !important;
  border-color: rgba(237, 187, 77, .55) !important;
  color: #fae3a2 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25) !important;
}
.staff-switch-input:checked {
  background: linear-gradient(135deg, #27a773, #39c98c) !important;
  border-color: rgba(72, 214, 151, .6) !important;
}

/* 10. Mobile 390px Ergonomics: Appointments Above The Fold + 2-Col Finance KPIs + >=40px Touch Targets */
.mobile-filter-bar {
  display: none;
}
@media (max-width: 768px) {
  .mobile-hide-cta {
    display: none !important;
  }
  .mobile-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding: 6px 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(11, 29, 21, .84);
  }
  .mobile-date-quick {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
  }
  .mobile-date-label {
    font-size: 12.5px;
    font-weight: 650;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-filter-toggle {
    min-height: 40px !important;
    padding: 0 12px !important;
    flex-shrink: 0;
  }
  .appointment-filters.is-mobile-collapsed {
    display: none !important;
  }
  .quick-actions {
    gap: 6px !important;
    margin-bottom: 10px !important;
  }
  .quick-actions .subtle-button {
    min-height: 40px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
  }
  .quick-actions-sep {
    display: none;
  }
  .stat-grid {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  .stat-grid .stat-card {
    padding: 10px 11px !important;
  }
  .stat-grid .stat-card b {
    font-size: 19px !important;
  }
  .stat-grid.finance-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .stat-grid.finance-stats .stat-card {
    padding: 11px !important;
  }
  .stat-grid.finance-stats .stat-card b.money {
    font-size: 16px !important;
  }
  .date-step {
    min-width: 38px !important;
    min-height: 40px !important;
  }
  .view-switch button {
    min-height: 40px !important;
    padding: 0 11px !important;
  }
  .topbar .icon-button,
  .topbar .whatsapp-pill {
    min-height: 38px !important;
    min-width: 38px !important;
  }
  .settings-tabs,
  .settings-tabs.has-five {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px !important;
    padding: 6px !important;
  }
  .settings-tabs::-webkit-scrollbar {
    display: none;
  }
  .settings-tabs .settings-tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    min-height: 40px !important;
    padding: 0 13px !important;
  }
  .patron-timeline-card,
  .staff-timeline-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .patron-row-main,
  .staff-row-main {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 12px !important;
  }
  .patron-row-right,
  .staff-row-right {
    width: auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 12px 12px !important;
    border-top: 1px solid rgba(151, 190, 164, .1);
  }
  .manual-services-grid {
    grid-template-columns: 1fr !important;
  }
  .weekday-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .weekday-card {
    padding: 10px 6px !important;
  }
}

/* ==========================================================================
   BESPOKE LUXURY CRAFTSMANSHIP LAYER: ZERO-SHIFT ROWS, CRISP SVG CHARTS,
   CUSTOM CHECKBOXES & UNIFIED SWITCHES, COLORED ACTION ICONS, TYPE SCALE
   ========================================================================== */

/* A. Remove generic AI decorative corner circles & elevate surface craft */
.stat-card::after {
  display: none !important;
}
.panel,
.surface,
.stat-card,
.barber-card,
.person-card,
.staff-member-card {
  border-color: rgba(162, 202, 175, .15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .048), 0 14px 34px rgba(0, 0, 0, .24);
}
.stat-card {
  transition: border-color .18s ease, transform .18s ease;
}
.stat-card:hover {
  border-color: rgba(237, 187, 77, .28);
}

/* B. Strict Crisp Typography Floor (zero blurry 8-10px micro-text on desktop) */
.nav-caption {
  font-size: 11px !important;
  letter-spacing: .1em;
  font-weight: 600;
  color: #7c9485;
}
.nav-item > span:nth-child(2) {
  font-size: 13.5px !important;
  font-weight: 500;
}
.nav-item.active > span:nth-child(2) {
  font-weight: 600;
}
.topbar-shop b {
  font-size: 14px !important;
  font-weight: 600;
}
.topbar-shop small,
.connection-pill,
.profile-button {
  font-size: 12px !important;
}
.page-heading p,
.panel-title small,
.section-heading p,
.people-toolbar-copy small,
.barber-card-heading small,
.person-card-heading small {
  font-size: 12.5px !important;
  color: #9bb1a3;
  font-weight: 400;
}
.panel-title b,
.day-summary-top b {
  font-size: 14.5px !important;
  font-weight: 600;
}
.day-summary-top small {
  font-size: 12px !important;
}
.filter-label {
  font-size: 11.5px !important;
  font-weight: 500;
  color: #9cb3a4;
  margin-bottom: 6px;
}
.filter-control {
  font-size: 13px !important;
}
.quick-actions .subtle-button,
.subtle-button {
  font-size: 12.5px !important;
  font-weight: 500;
}
.view-switch button {
  font-size: 12px !important;
  font-weight: 500;
}
.view-switch button.active {
  font-weight: 600;
}
.status-filter {
  font-size: 12px !important;
  font-weight: 500;
}
.stat-copy > span {
  font-size: 12px !important;
  font-weight: 500;
  color: #a6bbb0;
}
.stat-copy b {
  font-size: 26px !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-copy small {
  font-size: 11.5px !important;
  color: #849d8f;
}
.timeline-time {
  font-size: 12.5px !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #d7e5dc;
}
.timeline-day-label {
  font-size: 12px !important;
  font-weight: 600;
}
.appointment-client b,
.appointment-service b {
  font-size: 13.5px !important;
  font-weight: 600;
  color: #f3f7f4;
}
.appointment-client small,
.appointment-service small {
  font-size: 12px !important;
  color: #9ab0a2;
  font-variant-numeric: tabular-nums;
}
.appointment-barber {
  font-size: 13px !important;
  font-weight: 500;
  color: #e1ece5;
}
.appointment-barber small {
  font-size: 10.5px !important;
  font-weight: 600;
  letter-spacing: .07em;
  color: #7d9687;
  margin-bottom: 2px;
}
.pill {
  font-size: 11.5px !important;
  font-weight: 600;
  min-height: 25px;
  padding: 0 10px;
}
.workspace-footer,
.login-footer {
  font-size: 11px !important;
  letter-spacing: .08em;
}
.sidebar-user b {
  font-size: 12.5px !important;
  font-weight: 600;
}
.sidebar-user small {
  font-size: 11px !important;
}
.chart-legend {
  font-size: 12px !important;
  color: #a8bdb0;
  margin-bottom: 4px;
}
.chart-axis,
.chart-footnote {
  font-size: 11.5px !important;
  color: #8ba395;
}
.barber-detail,
.barber-detail small,
.person-card-footer small,
.barber-card-footer small,
.barber-card-footer .subtle-button,
.person-card-footer .subtle-button {
  font-size: 12px !important;
}
.service-tag {
  font-size: 11.5px !important;
  padding: 4px 9px;
}
.meta-chip {
  font-size: 11.5px !important;
}
.transaction-table th {
  font-size: 11.5px !important;
  font-weight: 600;
}
.transaction-table td {
  font-size: 12.5px !important;
}
.action-barber-option,
.action-selection-summary li b,
.action-selection-summary li span,
.action-selection-summary li small {
  font-size: 12px !important;
}

/* C. Zero-Shift Fixed-Track Appointment Rows (Patron & Staff — 0px alignment drift!) */
.timeline-row {
  align-items: center !important;
}
.timeline-time {
  padding-top: 0 !important;
  align-self: center;
}
.timeline-marker {
  align-self: stretch;
  align-items: center;
}
.timeline-marker i {
  margin-top: 0 !important;
}
.timeline-row:first-child .timeline-marker::before {
  top: 50% !important;
}
.timeline-row:last-child .timeline-marker::before {
  bottom: 50% !important;
}
.patron-timeline-card,
.staff-timeline-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 228px !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 0 !important;
  min-height: 72px;
  cursor: default !important;
}
.patron-row-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1.18fr) minmax(0, .82fr) !important;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 13px 12px 13px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.staff-row-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) !important;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 13px 12px 13px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.staff-row-main .appointment-client,
.staff-row-main .appointment-service {
  min-width: 0;
  overflow: hidden;
}
.patron-row-right,
.staff-row-right {
  width: 228px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px 10px 10px;
  border-left: 1px solid rgba(151, 190, 164, .09);
}
.patron-row-actions,
.staff-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* D. Tactile, Instantly Recognizable Color-Coded Call & WhatsApp Icons */
.patron-row-actions .quick-icon-link,
.staff-row-actions .quick-icon-link,
.patron-row-actions .patron-row-detail-btn {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  border-radius: 8px !important;
  display: inline-grid !important;
  place-items: center !important;
  transition: transform .14s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.patron-row-actions .quick-icon-link svg,
.staff-row-actions .quick-icon-link svg,
.patron-row-actions .patron-row-detail-btn svg {
  width: 15.5px !important;
  height: 15.5px !important;
  stroke-width: 1.9;
}
.quick-icon-link.call {
  color: #7ccbf8 !important;
  border-color: rgba(91, 184, 221, .34) !important;
  background: rgba(56, 152, 206, .13) !important;
}
.quick-icon-link.call:hover {
  color: #bfe8ff !important;
  border-color: rgba(114, 204, 248, .62) !important;
  background: rgba(56, 152, 206, .25) !important;
  transform: translateY(-1px);
}
.quick-icon-link.wa {
  color: #42e286 !important;
  border-color: rgba(37, 211, 102, .36) !important;
  background: rgba(37, 211, 102, .13) !important;
}
.quick-icon-link.wa:hover {
  color: #88f7b6 !important;
  border-color: rgba(54, 226, 126, .66) !important;
  background: rgba(37, 211, 102, .25) !important;
  transform: translateY(-1px);
}
.quick-icon-link.complete {
  color: #6fe6ad !important;
  border-color: rgba(53, 191, 131, .36) !important;
  background: rgba(53, 191, 131, .14) !important;
}
.quick-icon-link.complete:hover {
  color: #b4f7d5 !important;
  border-color: rgba(72, 214, 151, .64) !important;
  background: rgba(53, 191, 131, .26) !important;
  transform: translateY(-1px);
}
.patron-row-detail-btn {
  color: #b8cabf !important;
  border: 1px solid rgba(151, 190, 164, .22) !important;
  background: rgba(255, 255, 255, .04) !important;
}
.patron-row-detail-btn:hover {
  color: #f3f8f4 !important;
  border-color: rgba(237, 187, 77, .42) !important;
  background: rgba(237, 187, 77, .1) !important;
}
.patron-inline-approve {
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 11px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  gap: 5px !important;
}
.spotlight-link.is-call svg {
  color: #7ccbf8;
}
.spotlight-link.is-call:hover {
  border-color: rgba(91, 184, 221, .48);
  background: rgba(56, 152, 206, .14);
}
.spotlight-link.is-wa svg {
  color: #42e286;
}
.spotlight-link.is-wa:hover {
  border-color: rgba(37, 211, 102, .48);
  background: rgba(37, 211, 102, .14);
}
@media (max-width: 960px) {
  .patron-timeline-card,
  .staff-timeline-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .patron-row-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    padding: 12px 12px 8px !important;
  }
  .patron-row-main .appointment-barber {
    grid-column: 1 / -1;
  }
  .patron-row-right,
  .staff-row-right {
    width: auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 12px 11px !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(151, 190, 164, .1);
  }
}
@media (max-width: 600px) {
  .patron-row-main,
  .staff-row-main {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }
}

/* E. Bespoke Custom Checkboxes & Unified Luxury Toggle Switches (ZERO browser defaults!) */
input[type="checkbox"]:not([role="switch"]):not(.sr-only):not(.offday-chip-input) {
  -webkit-appearance: none;
  appearance: none;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 0;
  padding: 0;
  flex: none;
  border-radius: 5px;
  border: 1.5px solid rgba(168, 204, 179, .36);
  background: rgba(5, 19, 13, .72);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.offday-chip input[type="checkbox"],
.toggle-control input[type="checkbox"],
.weekday-card input[type="checkbox"] {
  -webkit-appearance: auto;
  appearance: auto;
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none;
}
input[type="checkbox"]:not([role="switch"]):hover:not(:disabled),
#modalHost input[type="checkbox"]:not([role="switch"]):hover:not(:disabled) {
  border-color: rgba(237, 187, 77, .65) !important;
  background: rgba(237, 187, 77, .1) !important;
}
input[type="checkbox"]:not([role="switch"]):checked,
#modalHost input[type="checkbox"]:not([role="switch"]):checked,
.field input[type="checkbox"]:not([role="switch"]):checked,
.manual-service-option input[type="checkbox"]:checked {
  border-color: #eab949 !important;
  background: linear-gradient(135deg, #f3cd6e, #d99b29) !important;
  box-shadow: 0 0 0 2px rgba(237, 187, 77, .18) !important;
}
input[type="checkbox"]:not([role="switch"]):checked::after,
#modalHost input[type="checkbox"]:not([role="switch"]):checked::after,
.manual-service-option input[type="checkbox"]:checked::after {
  content: "" !important;
  display: block !important;
  width: 11px !important;
  height: 11px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23091a12' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6.3 4.7 9 10 3.2'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
@media (max-width: 768px) {
  .appointment-status-row {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .appointment-status-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px !important;
    min-width: 0;
    flex: 1 1 auto;
  }
  .appointment-status-list::-webkit-scrollbar {
    display: none;
  }
  .appointment-status-list .status-filter {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}
input[type="checkbox"]:not([role="switch"]):focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* Unified refined satin emerald switch (matches Patron & Staff 1:1) */
.toggle-track {
  width: 40px !important;
  height: 22px !important;
  flex: 0 0 40px !important;
  padding: 2px !important;
  border: 1px solid rgba(162, 200, 174, .25);
  background: rgba(25, 48, 37, .9) !important;
  transition: background-color .18s ease, border-color .18s ease;
}
.toggle-track > i {
  width: 16px !important;
  height: 16px !important;
  background: #eff5f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .38);
}
.toggle-control input:checked + .toggle-track {
  background: linear-gradient(135deg, #219966, #38c488) !important;
  border-color: rgba(74, 214, 152, .52);
}
.toggle-control input:checked + .toggle-track > i {
  transform: translateX(18px) !important;
}
.staff-switch-input {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 40px !important;
  height: 22px !important;
  min-width: 40px !important;
  min-height: 22px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(162, 200, 174, .25) !important;
  background: rgba(25, 48, 37, .9) !important;
  position: relative !important;
  cursor: pointer;
  flex: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.staff-switch-input::after,
.staff-switch-input::before {
  content: "";
  position: absolute;
  top: 2px !important;
  left: 2px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #eff5f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .38) !important;
  transition: transform .18s ease !important;
}
.staff-switch-input::before {
  display: none !important;
}
.staff-switch-input:checked {
  background: linear-gradient(135deg, #219966, #38c488) !important;
  border-color: rgba(74, 214, 152, .52) !important;
}
.staff-switch-input:checked::after {
  transform: translateX(18px) !important;
}
.staff-inherit-choice {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 46px !important;
  padding: 10px 14px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(154, 195, 166, .2) !important;
  background: rgba(6, 23, 16, .58) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
}
.staff-inherit-choice:has(input:checked) {
  border-color: rgba(61, 204, 138, .38) !important;
  background: rgba(16, 48, 34, .52) !important;
}

/* Harmonized info banner (replaces jarring cyan box with warm emerald-gold glass) */
.definition-banner {
  border-color: rgba(237, 187, 77, .22) !important;
  background: linear-gradient(115deg, rgba(22, 54, 38, .62), rgba(14, 36, 25, .74)) !important;
}
.definition-banner .definition-icon {
  color: var(--gold) !important;
}
.definition-banner b {
  color: #f1f6f2 !important;
  font-size: 13px !important;
}
.definition-banner p {
  color: #9fb5a7 !important;
  font-size: 12.5px !important;
}

/* Refined off-day weekday chips */
.offday-chip-grid .offday-chip {
  min-height: 44px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(61, 198, 136, .28) !important;
  background: rgba(24, 68, 47, .32) !important;
  color: #cfe7d7 !important;
}
.offday-chip-grid .offday-chip.is-off {
  border-color: rgba(232, 126, 118, .55) !important;
  background: rgba(154, 52, 48, .22) !important;
  color: #ffcac4 !important;
}
.offday-chip-grid[data-disabled="true"] {
  opacity: .7 !important;
}

/* Clean modal section headings (no loud yellow bullet dot) */
.barber-form-section-title::before,
.barber-section-eyebrow::before {
  display: none !important;
}

/* F. Bespoke Luxury SVG Analytics & Cashflow Charts + SVG Donuts */
.rc-svg-chart {
  position: relative;
  display: block !important;
  height: auto !important;
  min-height: 224px;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  border-bottom: 0 !important;
  background: none !important;
}
.rc-chart-canvas {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.rc-chart-y-lbl {
  fill: #849d8f;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.rc-chart-x-lbl {
  fill: #98b0a2;
  font-size: 11.5px;
  font-weight: 500;
}
.rc-chart-val-lbl {
  fill: #e3f2e8;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rc-chart-col {
  cursor: pointer;
}
.rc-chart-beam {
  fill: rgba(237, 187, 77, 0);
  transition: fill .14s ease;
}
.rc-chart-col:hover .rc-chart-beam {
  fill: rgba(237, 187, 77, .075);
}
.rc-chart-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(237, 187, 77, .4);
  background: rgba(7, 21, 15, .96);
  color: #f4f9f5;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .48);
  pointer-events: none;
  z-index: 25;
}
.rc-chart-sr-meta {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.rc-svg-donut {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.rc-svg-donut svg {
  display: block;
}
.rc-svg-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 14px;
  pointer-events: none;
}
.rc-svg-donut-center b {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.rc-svg-donut-center small {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.day-summary .rc-svg-donut-center b {
  font-size: 22px;
}

/* Enhanced Berber Yoğunluk & Durum Özeti bars */
.mini-list-row {
  grid-template-columns: minmax(115px, 1.05fr) 1.2fr 64px !important;
  font-size: 12.5px !important;
}
.mini-list-row.is-person {
  grid-template-columns: minmax(130px, 1.1fr) 1.15fr 68px !important;
}
.mini-person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mini-person b {
  font-size: 12.5px !important;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(237, 187, 77, .12);
  border: 1px solid rgba(237, 187, 77, .26);
}
.mini-list-row small {
  font-size: 12px !important;
  font-weight: 600;
  color: #b7cabe;
  font-variant-numeric: tabular-nums;
}
.mini-track {
  height: 8px !important;
  background: rgba(151, 190, 164, .12) !important;
}


/* ==========================================================================
   BESPOKE LUXURY SELECTION CONTROLS: CUSTOM PORTALED DROPDOWNS, RADIOS,
   ELEVATED CHECKBOXES & SATIN SWITCHES (ZERO NATIVE OS BLUE POPUPS!)
   ========================================================================== */

/* 1. Visually hide native <select> while keeping FormData, labels & E2E 100% live */
.rc-native-select-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

.rc-select-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}
.rc-select-wrap.is-toolbar {
  display: inline-block;
  width: auto;
  min-width: 126px;
}

/* Closed Luxury Select Trigger */
.rc-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(164, 204, 178, .24);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 30, 21, .92), rgba(6, 20, 14, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 2px 6px rgba(0, 0, 0, .16);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.rc-select-wrap.is-toolbar .rc-select-trigger {
  min-height: 39px;
  padding: 0 11px 0 13px;
  font-size: 12.5px;
  background: linear-gradient(180deg, rgba(16, 42, 29, .92), rgba(11, 31, 22, .96));
}
.rc-select-trigger:hover:not(:disabled) {
  border-color: rgba(237, 187, 77, .46);
  background: linear-gradient(180deg, rgba(14, 38, 27, .96), rgba(8, 25, 17, .98));
}
.rc-select-wrap.is-open .rc-select-trigger,
.rc-select-trigger:focus-visible {
  outline: none;
  border-color: rgba(237, 187, 77, .72);
  box-shadow: 0 0 0 3px rgba(237, 187, 77, .12), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.rc-select-trigger:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.rc-select-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc-select-trigger.is-placeholder .rc-select-value {
  color: var(--muted);
}
.rc-select-chevron {
  width: 16px;
  height: 16px;
  flex: none;
  color: #d9b664;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), color .16s ease;
}
.rc-select-wrap.is-open .rc-select-chevron {
  transform: rotate(180deg);
  color: var(--gold-light);
}

/* Portaled Floating Glass-Emerald Luxury Menu (NEVER clipped by modals!) */
.rc-select-portal {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 95;
}
.rc-select-menu {
  position: fixed;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(237, 187, 77, .32);
  border-radius: 13px;
  background: linear-gradient(165deg, rgba(16, 44, 30, .985), rgba(8, 24, 17, .992));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  opacity: 0;
  transform: translateY(-5px) scale(.985);
  transform-origin: top center;
  transition: opacity .13s ease, transform .16s cubic-bezier(.22, 1, .36, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(237, 187, 77, .32) transparent;
}
.rc-select-menu.is-above {
  transform: translateY(5px) scale(.985);
  transform-origin: bottom center;
}
.rc-select-menu.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.rc-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #dce7e0;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.rc-select-option-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc-select-option.is-highlighted:not(.is-disabled),
.rc-select-option:hover:not(.is-disabled) {
  background: rgba(237, 187, 77, .11);
  color: #f8fbf9;
}
.rc-select-option.is-selected {
  border-color: rgba(237, 187, 77, .32);
  background: linear-gradient(95deg, rgba(237, 187, 77, .18), rgba(237, 187, 77, .05));
  color: #fce29c;
  font-weight: 600;
}
.rc-select-option.is-selected.is-highlighted,
.rc-select-option.is-selected:hover {
  background: linear-gradient(95deg, rgba(237, 187, 77, .24), rgba(237, 187, 77, .09));
}
.rc-select-option.is-disabled {
  opacity: .42;
  cursor: not-allowed;
}
.rc-select-option-check {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: rgba(237, 187, 77, .16);
  color: var(--gold-light);
}
.rc-select-check {
  width: 12px;
  height: 12px;
}

/* 2. Bespoke Custom Radio Buttons (Dükkan Ayarları Ödeme Yöntemi + Süreli Mola) */
input[type="radio"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none;
  border-radius: 50% !important;
  border: 1.5px solid rgba(168, 204, 179, .38) !important;
  background: rgba(5, 19, 13, .76) !important;
  cursor: pointer;
  display: inline-grid !important;
  place-content: center;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
input[type="radio"]:hover:not(:disabled) {
  border-color: rgba(237, 187, 77, .68) !important;
}
input[type="radio"]:checked {
  border-color: #eab949 !important;
  background: rgba(237, 187, 77, .14) !important;
  box-shadow: 0 0 0 2px rgba(237, 187, 77, .16) !important;
}
input[type="radio"]:checked::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbe090, #dfa02c);
  box-shadow: 0 0 6px rgba(237, 187, 77, .55);
}
.check-pill {
  border-radius: 11px !important;
  border: 1px solid rgba(154, 195, 166, .2) !important;
  background: rgba(6, 22, 15, .58) !important;
  transition: border-color .16s ease, background-color .16s ease;
}
.check-pill:has(input:checked) {
  border-color: rgba(237, 187, 77, .5) !important;
  background: linear-gradient(135deg, rgba(237, 187, 77, .14), rgba(237, 187, 77, .04)) !important;
  color: #fce29c !important;
}

/* 3. Elevated Tactile Checkbox Bevel & Micro-Spring Check */
input[type="checkbox"]:not([role="switch"]):not(.sr-only):not(.offday-chip-input) {
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  min-height: 19px !important;
  border-radius: 6px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .38);
}
input[type="checkbox"]:not([role="switch"]):checked,
#modalHost input[type="checkbox"]:not([role="switch"]):checked,
.field input[type="checkbox"]:not([role="switch"]):checked,
.manual-service-option input[type="checkbox"]:checked {
  background: linear-gradient(140deg, #fae08c, #d59524) !important;
  box-shadow: 0 2px 8px rgba(213, 149, 36, .28), inset 0 1px 0 rgba(255, 255, 255, .36) !important;
}
.toggle-track > i,
.staff-switch-input::after {
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1) !important;
}


/* ==========================================================================
   MODAL SCROLL FIX (TIMED BREAK / RESCHEDULE / ALL MODALS), SITE-WIDE
   EMERALD-GOLD CUSTOM SCROLLBARS & 90%-ZOOM RAZOR-SHARP VECTOR ICONS
   ========================================================================== */

/* 1. Override legacy `overflow: visible` on #timedBreakForm / #staffRescheduleForm / .account-manager-modal */
#modalHost .modal,
#modalHost .modal:has(#timedBreakForm),
#modalHost .modal:has(#staffRescheduleForm),
#modalHost .account-manager-modal {
  display: flex !important;
  flex-direction: column !important;
  max-height: min(92dvh, 880px) !important;
  overflow: hidden !important;
}
#modalHost .modal > .modal-body,
#modalHost .modal:has(#timedBreakForm) .modal-body,
#modalHost .modal:has(#staffRescheduleForm) .modal-body,
#modalHost .account-manager-modal > .modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
#modalHost .modal > .modal-header,
#modalHost .modal > .modal-footer {
  flex: 0 0 auto !important;
  position: static !important;
}

/* 2. Bespoke Site-Wide Emerald-Gold Luxury Scrollbar (PC + Modals + Panels + Dropdowns) */
html,
body,
.side-nav,
.modal-body,
.staff-calendar-scroll,
.availability-periods,
.rc-select-menu,
.table-scroll,
.action-barber-list,
.availability-warning {
  scrollbar-width: thin;
  scrollbar-color: rgba(162, 204, 176, .34) rgba(5, 17, 11, .48);
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.side-nav::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.staff-calendar-scroll::-webkit-scrollbar,
.availability-periods::-webkit-scrollbar,
.rc-select-menu::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar,
.action-barber-list::-webkit-scrollbar,
.availability-warning::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.side-nav::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.staff-calendar-scroll::-webkit-scrollbar-track,
.availability-periods::-webkit-scrollbar-track,
.rc-select-menu::-webkit-scrollbar-track,
.table-scroll::-webkit-scrollbar-track,
.action-barber-list::-webkit-scrollbar-track,
.availability-warning::-webkit-scrollbar-track {
  background: rgba(4, 15, 10, .54);
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.side-nav::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.staff-calendar-scroll::-webkit-scrollbar-thumb,
.availability-periods::-webkit-scrollbar-thumb,
.rc-select-menu::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb,
.action-barber-list::-webkit-scrollbar-thumb,
.availability-warning::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(165, 208, 179, .38), rgba(114, 162, 132, .32));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background-color .15s ease;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.side-nav::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.staff-calendar-scroll::-webkit-scrollbar-thumb:hover,
.availability-periods::-webkit-scrollbar-thumb:hover,
.rc-select-menu::-webkit-scrollbar-thumb:hover,
.table-scroll::-webkit-scrollbar-thumb:hover,
.action-barber-list::-webkit-scrollbar-thumb:hover,
.availability-warning::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(244, 201, 96, .74), rgba(212, 154, 42, .68));
  background-clip: content-box;
}
html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active,
.modal-body::-webkit-scrollbar-thumb:active,
.availability-periods::-webkit-scrollbar-thumb:active,
.rc-select-menu::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #fae08c, #d99b29);
  background-clip: content-box;
}
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
.modal-body::-webkit-scrollbar-corner,
.staff-calendar-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

/* 3. Razor-Sharp Vector Icons at 90% & 100% Chrome Zoom (integer sizes + crisp stroke) */
svg.line-icon {
  shape-rendering: geometricPrecision;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  backface-visibility: hidden;
}
.patron-row-actions .quick-icon-link,
.staff-row-actions .quick-icon-link,
.patron-row-actions .patron-row-detail-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 9px !important;
}
.patron-row-actions .quick-icon-link svg,
.staff-row-actions .quick-icon-link svg,
.patron-row-actions .patron-row-detail-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2;
}
.patron-row-actions .quick-icon-link.call svg,
.staff-row-actions .quick-icon-link.call svg {
  width: 16px !important;
  height: 16px !important;
}
.patron-row-actions .quick-icon-link.wa svg,
.staff-row-actions .quick-icon-link.wa svg {
  width: 18px !important;
  height: 18px !important;
}
.panel-title-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
}
.panel-title-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 1.9 !important;
}
.card-icon-button {
  width: 32px !important;
  height: 32px !important;
}
.card-icon-button svg {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 1.9 !important;
}
.staff-calendar-date-button svg,
.staff-date-trigger svg,
.date-trigger-icon svg,
.barber-detail > span:first-child svg,
.staff-meta-ico svg,
.quick-actions .subtle-button svg,
.subtle-button svg {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 1.9 !important;
}
.spotlight-link svg {
  width: 16px !important;
  height: 16px !important;
}
.nav-icon svg,
.topbar-shop-mark svg,
.icon-button svg {
  width: 19px !important;
  height: 19px !important;
  stroke-width: 1.85 !important;
}
.quick-icon-link:hover {
  transform: none !important;
}
.nav-wa-dot {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(148, 173, 158, 0.45);
}
.nav-wa-dot.is-connected {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
}
.nav-wa-dot.is-connecting,
.nav-wa-dot.is-reconnecting,
.nav-wa-dot.is-qr_required {
  background: #e2b857;
  box-shadow: 0 0 8px rgba(226, 184, 87, 0.5);
}
.wa-optional-note {
  margin: 4px 0 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.fin-method-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 18px;
}
.fin-method-items {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.fin-method-item small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 2px;
}
.fin-method-item b {
  font-size: 15px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.fin-auto-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fin-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(226, 184, 87, 0.08);
  border: 1px solid rgba(226, 184, 87, 0.28);
}
.fin-bulk-bar b {
  display: block;
  font-size: 13.5px;
  color: var(--text);
}
.fin-bulk-bar small {
  color: var(--muted);
  font-size: 12px;
}
.fin-bulk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fin-quick-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.fin-quick-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 34, 24, 0.7);
  color: var(--text-soft);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.fin-quick-pill:hover {
  border-color: rgba(226, 184, 87, 0.45);
  color: var(--text);
}
.fin-quick-pill.is-active {
  background: rgba(57, 185, 129, 0.18);
  border-color: rgba(57, 185, 129, 0.55);
  color: #6ee7b7;
}
.fin-quick-pill.is-warn:hover,
.fin-quick-pill.is-warn.is-active {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.48);
  color: #fca5a5;
}
.fin-auto-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(57, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(57, 185, 129, 0.3);
}
.fin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.fin-cat-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  cursor: pointer;
}
.fin-cat-chip:hover {
  border-color: rgba(226, 184, 87, 0.5);
  color: var(--gold);
}
.fin-vat-info {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(226, 184, 87, 0.07);
  border: 1px solid rgba(226, 184, 87, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.fin-vat-info small {
  color: var(--text-soft);
  font-size: 12px;
}
.fin-vat-info b {
  color: var(--gold);
  font-size: 14.5px;
}
.fin-vat-info span {
  width: 100%;
  font-size: 11.5px;
  color: var(--muted);
}
.detail-quick-pay {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 29, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.detail-quick-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
}
.service-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.reminder-honest-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(57, 185, 129, 0.08);
  border: 1px solid rgba(57, 185, 129, 0.24);
}
.reminder-honest-box b {
  display: block;
  color: #8ee5be;
  font-size: 13px;
  margin-bottom: 4px;
}
.reminder-honest-box p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.55;
}
.settings-advanced-drawer > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.settings-advanced-drawer > summary::-webkit-details-marker {
  display: none;
}
.settings-advanced-drawer > summary b {
  display: block;
  font-size: 13.5px;
  color: var(--text);
}
.settings-advanced-drawer > summary small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
.settings-advanced-drawer > summary i {
  font-style: normal;
  color: var(--gold);
  font-size: 15px;
  transition: transform 0.18s ease;
}
.settings-advanced-drawer[open] > summary i {
  transform: rotate(180deg);
}
.settings-advanced-drawer.is-compact {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(151, 190, 164, 0.14);
}
.settings-advanced-drawer.is-compact > summary b {
  font-size: 12.5px;
}
.fin-split-summary {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(57, 185, 129, 0.08);
  border: 1px solid rgba(57, 185, 129, 0.25);
  color: var(--text-soft);
  font-size: 12.5px;
}
.fin-split-summary b {
  color: #8ee5be;
}
.link-inline-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
/* Service Catalog Stacked Picker */
.rc-catalog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(3, 12, 8, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rc-catalog-modal {
  width: min(860px, 100%);
  max-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
}
.rc-catalog-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding-bottom: 8px;
}
.rc-catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rc-catalog-search {
  flex: 1 1 260px;
}
.rc-catalog-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(151, 190, 164, 0.24);
  background: rgba(8, 25, 17, 0.9);
  color: var(--text);
  font-size: 13px;
}
.rc-catalog-total-badge {
  font-size: 12px;
  color: var(--gold-light);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(237, 187, 77, 0.1);
  border: 1px solid rgba(237, 187, 77, 0.25);
  white-space: nowrap;
}
.rc-catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rc-cat-tab {
  border: 1px solid rgba(151, 190, 164, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
}
.rc-cat-tab.active {
  border-color: rgba(237, 187, 77, 0.55);
  background: rgba(237, 187, 77, 0.16);
  color: #f9dc96;
  font-weight: 600;
}
.rc-catalog-list {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 4px;
  max-height: 48vh;
}
.rc-cat-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 2px 6px;
  border-bottom: 1px solid rgba(151, 190, 164, 0.14);
  margin-bottom: 8px;
}
.rc-cat-group-head b {
  font-size: 13px;
  color: var(--gold-light);
}
.rc-cat-group-head small {
  font-size: 11.5px;
  color: var(--muted);
}
.rc-cat-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 720px) {
  .rc-cat-items {
    grid-template-columns: 1fr;
  }
}
.rc-cat-row {
  border: 1px solid rgba(151, 190, 164, 0.16);
  background: rgba(12, 34, 23, 0.72);
  border-radius: 10px;
  padding: 9px 11px;
  transition: border-color 0.15s, background 0.15s;
}
.rc-cat-row.is-selected {
  border-color: rgba(57, 185, 129, 0.55);
  background: rgba(23, 68, 46, 0.58);
}
.rc-cat-row.is-existing {
  opacity: 0.6;
}
.rc-cat-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.rc-cat-row.is-existing .rc-cat-row-main {
  cursor: default;
}
.rc-cat-check {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  flex: none;
}
.rc-cat-name {
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 560;
  color: var(--text);
}
.rc-cat-est {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.rc-cat-tag {
  font-size: 10.5px;
  padding: 2px 7px;
}
.rc-cat-row-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(151, 190, 164, 0.22);
}
.rc-cat-inline-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rc-cat-inline-field span {
  font-size: 10.5px;
  color: var(--muted);
}
.rc-cat-inline-field input {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid rgba(151, 190, 164, 0.24);
  background: rgba(7, 21, 14, 0.92);
  color: var(--text);
  font-size: 12.5px;
}
.rc-catalog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.rc-catalog-footer-left,
.rc-catalog-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rc-catalog-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
}
.rc-catalog-empty b {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

/* === MOBILE TOPBAR PILL, CENTERED MODALS & LAYOUT OVERFLOW FIXES === */
.topbar .wa-pill-prefix-short {
  display: none;
}

@media (max-width: 768px) {
  .modal-backdrop {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 12px !important;
  }
  #modalHost .modal,
  #modalHost .modal.modal-wide,
  #modalHost .modal:has(#timedBreakForm),
  #modalHost .modal:has(#staffRescheduleForm),
  #modalHost .account-manager-modal {
    width: 100% !important;
    max-width: 500px !important;
    max-height: 86dvh !important;
    margin: auto !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  #modalHost .modal > .modal-header {
    padding: 14px 15px 11px !important;
  }
  #modalHost .modal > .modal-body {
    padding: 13px 15px !important;
  }
  #modalHost .modal > .modal-footer {
    padding: 11px 15px 14px !important;
  }
  .toast-host {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    transform: none !important;
    justify-items: stretch !important;
    z-index: 120 !important;
  }
  .toast-host .toast {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #pageContent .appointments-main .appointment-status-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 36px !important;
    align-items: start !important;
    gap: 6px !important;
  }
  #pageContent .appointments-main .appointment-status-list {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 5px !important;
    min-width: 0 !important;
  }
  #pageContent .appointments-main .appointment-status-list .status-filter {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    min-height: 30px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
  }
  .mobile-bottom-nav {
    box-sizing: border-box !important;
    height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .page-content {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Targeted Early Call selectable appointment cards + global scroll-lock prevention */
html {
  max-width: 100%;
  overflow-x: clip !important;
  overflow-y: auto !important;
}
body {
  max-width: 100%;
  overflow-x: visible !important;
  overflow-y: visible !important;
}
body:has(#modalHost .modal[aria-modal="true"]) {
  overflow: hidden !important;
}
.app-shell,
.workspace,
.page-content {
  height: auto;
  overflow-x: clip;
  overflow-y: visible;
}

.ec-target-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ec-target-head span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
}
.ec-target-head b {
  font-size: 10px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(53, 191, 131, .35);
  background: rgba(53, 191, 131, .12);
  color: #8be4b7;
}
.ec-target-list {
  display: grid;
  gap: 7px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
}
.ec-target-card {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(127, 164, 136, .28);
  border-radius: 11px;
  background: rgba(7, 27, 19, .58);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ec-target-card:hover {
  border-color: rgba(237, 187, 77, .45);
  background: rgba(14, 42, 29, .78);
}
.ec-target-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.ec-target-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(151, 190, 164, .5);
  background: rgba(5, 18, 12, .7);
  display: grid;
  place-items: center;
  box-sizing: border-box;
}
.ec-target-card:has(input:checked) {
  border-color: rgba(237, 187, 77, .75);
  background: linear-gradient(145deg, rgba(237, 187, 77, .16), rgba(16, 48, 32, .75));
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.ec-target-card:has(input:checked) .ec-target-radio {
  border-color: #f3ca65;
  background: rgba(237, 187, 77, .18);
}
.ec-target-card:has(input:checked) .ec-target-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f3ca65;
}
.ec-target-card:has(input:focus-visible) {
  outline: 2px solid #f3ca65;
  outline-offset: 2px;
}
.ec-target-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.ec-target-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.ec-target-top b {
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ec-target-eta {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  color: #f3ca65;
  font-variant-numeric: tabular-nums;
}
.ec-target-meta {
  font-size: 10.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .topbar .wa-pill-prefix {
    display: none !important;
  }
  .topbar .wa-pill-prefix-short {
    display: inline !important;
    opacity: .78;
    font-weight: 600;
  }
  .topbar .whatsapp-pill {
    max-width: 158px !important;
    min-width: 0 !important;
    padding: 4px 9px !important;
    gap: 6px !important;
    font-size: 11px !important;
  }
  .topbar .whatsapp-pill small {
    display: block !important;
    font-size: 8.5px !important;
    line-height: 1.15 !important;
    opacity: .78;
  }
  .topbar .topbar-shop b {
    font-size: 13px !important;
  }
  .topbar .topbar-shop small {
    font-size: 9.5px !important;
  }
}

@media (max-width: 520px) {
  .modal-form-grid,
  .detail-grid {
    grid-template-columns: 1fr !important;
  }
  .modal-form-grid .span-2 {
    grid-column: span 1 !important;
  }
  .wa-compact-summary {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}
