:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  color: #1e2030;
  background: #f5f5f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --font-size-xs: .76rem;
  --font-size-sm: .88rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.2rem;
  --ink: #1b1d2d;
  --muted: #75778a;
  --line: #e9e8ee;
  --surface: #ffffff;
  --primary: #6f55d9;
  --primary-dark: #5640ba;
  --primary-soft: #eeeafd;
  --sidebar: #171927;
  --sidebar-width: 228px;
  --sidebar-compact-width: 74px;
  --shadow: 0 18px 50px rgba(35, 31, 64, 0.08);
  --shadow-card: 0 10px 28px rgba(35, 31, 64, 0.08);
  --radius: 20px;
  --radius-card: 14px;
  --status-confirmed: #4b7bec;
  --status-waiting: #e8983a;
  --status-arrived: #26a69a;
  --status-in_progress: #7c5cff;
  --status-completed: #6b7280;
  --status-cancelled: #ef4444;
  --status-no_show: #9ca3af;
  --color-status-confirmed: #2f63d8;
  --color-status-waiting: #b66b12;
  --color-status-done: #4f5b6b;
  --color-status-cancelled: #d93232;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f5f8; font-size: var(--font-size-md); }
:root {
  --bp-mobile: 580px;
  --bp-tablet: 960px;
  --bp-desktop: 1200px;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
input, select, textarea {
  color: #2b2d3d;
  background: #fff;
  border: 1px solid #d9d7e2;
  border-radius: 11px;
  outline: 0;
}
input::placeholder, textarea::placeholder { color: #8f91a0; }
input:focus, select:focus, textarea:focus {
  border-color: #9d89e8;
  box-shadow: 0 0 0 3px rgba(126,99,226,.12);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="color"]):not([type="range"]),
select {
  min-height: 42px;
  padding-inline: 12px;
}
textarea { min-height: 88px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand-lockup strong { font-family: Inter, "Segoe UI", system-ui, sans-serif; color: var(--ink); }
h1 { margin-bottom: 8px; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: 0; }
h2 { margin-bottom: 4px; font-size: 1.35rem; letter-spacing: 0; }
h3 { margin-bottom: 4px; }
p { color: var(--muted); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.app-shell.sidebar-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.app-shell.sidebar-compact { grid-template-columns: var(--sidebar-compact-width) minmax(0, 1fr); }
.app-shell.sidebar-collapsed .sidebar { width: 0; border-right: 0; transform: translateX(-100%); }
.app-shell.sidebar-compact .sidebar { width: var(--sidebar-compact-width); }
.app-shell.sidebar-compact .brand-lockup > div,
.app-shell.sidebar-compact .nav-label,
.app-shell.sidebar-compact .sidebar nav button span,
.app-shell.sidebar-compact .workspace-switcher div,
.app-shell.sidebar-compact .workspace-switcher select,
.app-shell.sidebar-compact .workspace-switcher > svg,
.app-shell.sidebar-compact .user-card div:nth-child(2),
.app-shell.sidebar-compact .secure-note small { display: none; }
.app-shell.sidebar-compact .brand { justify-content: center; padding-inline: 8px; }
.app-shell.sidebar-compact .workspace-switcher { margin-inline: 6px; padding: 8px; grid-template-columns: 1fr; justify-items: center; }
.app-shell.sidebar-compact .sidebar nav button { justify-content: center; padding-inline: 0; }
.app-shell.sidebar-compact .sidebar nav button .nav-count { margin-left: 0; position: absolute; top: 4px; right: 4px; min-width: 16px; padding: 1px 4px; font-size: .58rem; }
.app-shell.sidebar-compact .sidebar nav button { position: relative; }
.app-shell.sidebar-compact .user-card { grid-template-columns: 1fr; justify-items: center; }
.app-shell.sidebar-compact .secure-note { justify-content: center; }
.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 20;
  display: flex; flex-direction: column; overflow: hidden;
  color: #d7d6e2; background:
    radial-gradient(circle at 20% 2%, rgba(137, 107, 244, .17), transparent 24%),
    linear-gradient(180deg, #191b2b, #141621);
  border-right: 1px solid rgba(255, 255, 255, .04);
}
.brand { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand-lockup > div { display: flex; flex-direction: column; }
.brand-lockup strong { color: inherit; font-size: 1.25rem; line-height: 1; letter-spacing: 0; }
.brand-lockup small { margin-top: 5px; color: #9597aa; font-size: .64rem; letter-spacing: .025em; }
.brand-symbol { position: relative; width: 34px; height: 34px; display: block; transform: rotate(-8deg); }
.brand-symbol::before, .brand-symbol i, .brand-symbol b {
  content: ""; position: absolute; border-radius: 14px 4px 14px 4px;
  background: linear-gradient(145deg, #ad97ff, #7556e4);
}
.brand-symbol::before { width: 14px; height: 26px; left: 2px; top: 5px; }
.brand-symbol i { width: 14px; height: 20px; left: 17px; top: 0; opacity: .88; }
.brand-symbol b { width: 14px; height: 13px; left: 17px; top: 21px; opacity: .62; }
.workspace-switcher { margin: 2px 10px 12px; padding: 9px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.06); border-radius: 13px; }
.workspace-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #262336; background: #c6b9ff; font-weight: 800; }
.workspace-switcher div { display: flex; min-width: 0; flex-direction: column; }
.workspace-switcher strong { color: #f6f5ff; font-size: .82rem; }
.workspace-switcher small { margin-top: 2px; color: #8d8fa1; font-size: .69rem; }
.workspace-switcher.has-options { cursor: pointer; }
.workspace-switcher select { grid-column: 1 / -1; width: 100%; padding: 7px 9px; color: #e9e6fa; background: #252637; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; font: inherit; font-size: .72rem; cursor: pointer; }
.workspace-switcher select:focus { outline: 2px solid rgba(145,118,250,.7); outline-offset: 1px; }
.workspace-switcher select:disabled { cursor: wait; opacity: .65; }
.workspace-switcher .context-error { grid-column: 1 / -1; margin: 0; color: #ffaaa5; line-height: 1.3; }
.sidebar nav { min-height: 0; padding: 0 9px 9px; display: flex; flex: 1; flex-direction: column; gap: 3px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3c3d50 transparent; }
.nav-label { padding: 11px 9px 6px; color: #858799; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-secondary { margin-top: 6px; }
.sidebar nav button { min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 12px; color: #b3b4c3; background: transparent; text-align: left; font-size: var(--font-size-sm); font-weight: 650; transition: .18s ease; }
.sidebar nav button:hover { color: #f8f7ff; background: rgba(255,255,255,.07); }
.sidebar nav button.active { color: #fff; font-weight: 800; background: linear-gradient(90deg, rgba(117, 86, 228, .48), rgba(117, 86, 228, .15)); box-shadow: inset 4px 0 #c3b4ff, 0 0 0 1px rgba(145,118,250,.2), 0 8px 22px rgba(0,0,0,.16); }
.nav-count { margin-left: auto; min-width: 21px; padding: 2px 6px; border-radius: 8px; color: #d7d0ff; background: rgba(149, 121, 255, .2); font-size: .68rem; font-style: normal; text-align: center; }
.sidebar-footer { flex: 0 0 auto; padding: 8px 10px 10px; background: linear-gradient(180deg, transparent, rgba(20,22,33,.96) 18%); }
.user-card { padding: 11px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.07); }
.avatar { width: 35px; height: 35px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #9176f8, #5f47c8); font-weight: 700; }
.user-card div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.user-card strong { color: #eeeefa; font-size: .79rem; }
.user-card small { color: #858798; font-size: .68rem; }
.user-card button { padding: 6px; border: 0; color: #87899a; background: transparent; }
.secure-note { display: flex; align-items: center; gap: 7px; padding: 5px 12px 0; color: #686a7a; }
.secure-note span { width: 6px; height: 6px; border-radius: 50%; background: #55c7a4; box-shadow: 0 0 0 4px rgba(85,199,164,.1); }
.secure-note small { font-size: .65rem; }
.mobile-close { display: none; color: #fff; border: 0; background: transparent; }

.main-area { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; min-height: 70px; padding: 0 28px; display: flex; align-items: center; gap: 15px; background: rgba(250,250,252,.9); border-bottom: 1px solid rgba(225,224,232,.9); backdrop-filter: blur(14px); }
.parallel-banner { min-height: 34px; padding: 6px 28px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #486a62; background: #eaf6f2; border-bottom: 1px solid #d5ebe4; font-size: .62rem; }
.parallel-banner strong { color: #27695b; }
.parallel-banner.is-live { color: #8c543d; background: #fff1e9; border-color: #efd5c8; }
.parallel-banner.is-live strong { color: #91492e; }
.parallel-banner.is-support { color: #8f312d; background: #ffe8e6; border-color: #efc1bd; }
.parallel-banner.is-support strong { color: #8d2521; }
.parallel-banner button { height: 24px; padding: 0 9px; color: #8d2521; background: #fff; border: 1px solid #efc1bd; border-radius: 7px; font-size: .6rem; font-weight: 800; }
.collapse-button, .menu-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; color: #858698; background: transparent; border-radius: 9px; }
.menu-button { display: none; }
.global-search { width: min(520px, 46vw); min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #858697; background: #f0f0f4; border: 1px solid #e2e1ea; border-radius: 12px; font-size: var(--font-size-sm); }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.global-search input::placeholder { color: #9595a5; }
.global-search kbd { margin-left: auto; padding: 2px 6px; color: #858596; background: #fff; border: 1px solid #dddce6; border-radius: 5px; font-size: .65rem; }
.quick-add { margin-left: auto; min-height: 48px; padding: 0 20px; display: flex; align-items: center; gap: 9px; color: #fff; background: var(--ink); border: 0; border-radius: 13px; font-weight: 850; font-size: var(--font-size-sm); box-shadow: 0 9px 22px rgba(27,29,45,.16); }
.page-container { max-width: 1600px; margin: auto; padding: 32px clamp(22px, 3vw, 46px) 60px; }
.page-stack { display: flex; flex-direction: column; gap: 24px; animation: page-in .25s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-header p { margin: 0; }
.eyebrow { margin-bottom: 7px; color: #8268e2 !important; font-size: .68rem !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(35,31,64,.045); }
.primary-button, .secondary-button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 13px; font-weight: 850; font-size: var(--font-size-sm); transition: .18s ease; }
.primary-button { color: #fff; background: linear-gradient(135deg, #7c61e5, #6549cf); border: 0; box-shadow: 0 9px 20px rgba(103,73,207,.2); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 25px rgba(103,73,207,.28); }
.secondary-button { color: #555667; background: #fff; border: 1px solid #dedde6; }
.secondary-button:hover { border-color: #bcb7d1; background: #faf9fd; }
.text-button { padding: 5px 0; display: inline-flex; align-items: center; gap: 5px; border: 0; color: var(--primary); background: transparent; font-weight: 700; font-size: .76rem; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #dddbe6; border-radius: 13px; color: #686a7a; background: #fff; }
.header-badge { height: 39px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; color: #5f5e70; background: #fff; border: 1px solid var(--line); border-radius: 11px; font-size: .78rem; font-weight: 700; }
.header-badge.warning { color: #9b5b28; background: #fff9ee; border-color: #f2d6ad; }

.welcome-panel { min-height: 150px; padding: 29px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background:
  radial-gradient(circle at 82% 8%, rgba(255,255,255,.13), transparent 25%),
  linear-gradient(128deg, #26283b, #34304f);
  border-radius: 23px; box-shadow: 0 18px 40px rgba(31,31,50,.14); overflow: hidden;
}
.welcome-panel h1 { color: #fff; }
.welcome-panel p:not(.eyebrow) { margin: 0; color: #b8b8c6; }
.welcome-panel .eyebrow { color: #b9a9ff !important; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric-card { min-height: 125px; padding: 20px; display: flex; align-items: flex-start; gap: 15px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 7px 25px rgba(35,31,64,.035); }
.metric-card.is-clickable { cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.metric-card.is-clickable:hover, .metric-card.is-clickable:focus-visible { transform: translateY(-2px); border-color: #cfc7f7; box-shadow: 0 13px 32px rgba(80,63,150,.12); outline: none; }
.metric-icon { width: 40px; height: 40px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; }
.metric-icon svg { width: 19px; }
.metric-card > div:last-child { min-width: 0; display: flex; flex-direction: column; }
.metric-card span { color: #7c7d8e; font-size: .72rem; font-weight: 600; }
.metric-card strong { margin: 3px 0 2px; color: var(--ink); font-weight: 800; font-size: 1.5rem; letter-spacing: 0; white-space: nowrap; }
.metric-card small { color: #a2a2af; font-size: .66rem; }
.tone-violet .metric-icon { color: #7457db; background: #eeeafe; }
.tone-mint .metric-icon { color: #258c82; background: #e2f5f1; }
.tone-peach .metric-icon { color: #c9714f; background: #fff0e9; }
.tone-blue .metric-icon { color: #4d7fc3; background: #e8f1fc; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(250px, .7fr); gap: 18px; }
.schedule-card { padding: 24px 25px 9px; }
.section-header { display: flex; align-items: flex-start; justify-content: space-between; }
.timeline-list { margin-top: 17px; }
.timeline-row { min-height: 70px; display: grid; grid-template-columns: 55px 13px 1fr auto; align-items: center; gap: 12px; border-top: 1px solid #f0eff3; }
.timeline-time { display: flex; flex-direction: column; }
.timeline-time strong { font-size: .84rem; }
.timeline-time span { color: #a0a0ad; font-size: .65rem; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 4px #f2f0f8; }
.timeline-content { display: flex; flex-direction: column; }
.timeline-content strong { font-size: .84rem; }
.timeline-content span { color: #898a99; font-size: .7rem; }
.status-chip { padding: 5px 8px; border-radius: 8px; color: #318071; background: #e7f5f0; font-size: .63rem; font-weight: 700; }
.status-waiting { color: #a76d27; background: #fff3de; }
.side-stack { display: flex; flex-direction: column; gap: 15px; }
.next-card { min-height: 210px; padding: 23px; background: linear-gradient(155deg, #fff, #faf9ff); }
.next-time { display: flex; align-items: center; gap: 7px; margin: 22px 0 10px; color: var(--primary); font-weight: 700; font-size: 1.05rem; }
.next-card h3 { margin-bottom: 2px; font-size: 1.2rem; }
.next-card p { font-size: .76rem; }
.staff-pill { margin-top: 18px; display: flex; align-items: center; gap: 7px; color: #6f7080; font-size: .72rem; }
.staff-pill span { width: 8px; height: 8px; border-radius: 50%; }
.alert-card { padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 12px; background: #fffaf3; border-color: #f2dfc2; }
.alert-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #bc762d; background: #ffedd4; border-radius: 10px; }
.alert-card strong { font-size: .79rem; }
.alert-card p { margin: 4px 0; font-size: .69rem; }
.alert-ok { background: #f3fbf8; border-color: #d6eee5; }

.page-stack.is-agenda-view {
  --agenda-sticky-top: 82px;
  --agenda-toolbar-sticky-height: 82px;
  --agenda-mobile-staff-top: calc(var(--agenda-sticky-top) + var(--agenda-toolbar-sticky-height) + 8px);
  --agenda-time-column-width: 76px;
  --agenda-staff-column-width: 240px;
}
.agenda-toolbar {
  position: sticky;
  top: var(--agenda-sticky-top);
  z-index: 35;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: minmax(350px, .95fr) minmax(380px, 1.05fr) minmax(120px, auto);
  align-items: center;
  justify-items: stretch;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(35,31,64,.075);
  backdrop-filter: blur(14px);
}
.agenda-date-navigation { min-width: 0; display: grid; justify-items: center; gap: 6px; text-align: center; }
.agenda-date-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 4px 10px; border: 0; border-radius: 12px; background: transparent; color: #2f2a44; font: inherit; font-size: var(--font-size-md); font-weight: 850; cursor: pointer; transition: background .18s ease, box-shadow .18s ease; }
.agenda-date-trigger:hover { background: #f6f3fb; }
.agenda-date-trigger:focus-visible { outline: 3px solid rgba(115,91,208,.22); outline-offset: 2px; }
.agenda-date-trigger.is-loading { opacity: .72; pointer-events: none; }
.agenda-date-label { line-height: 1.2; white-space: nowrap; }
.agenda-date-chevron { color: #7a7390; font-size: .78rem; line-height: 1; transform: translateY(1px); }
.agenda-quick-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.agenda-hour-trigger { min-height: 34px; padding: 5px 14px; font-size: var(--font-size-xs); }
.agenda-today-pill { min-height: 34px; width: auto; padding: 5px 16px; color: #625b75; background: #faf9fd; border-color: #ded9e9; border-radius: 11px; font-size: var(--font-size-xs); font-weight: 850; box-shadow: 0 4px 12px rgba(43,39,68,.04); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.agenda-today-short { display: none; }
.agenda-today-pill:hover { background: #f6f3fb; border-color: #c7bfd9; box-shadow: 0 6px 16px rgba(43,39,68,.07); transform: translateY(-1px); }
.agenda-today-pill:focus-visible { outline: 3px solid rgba(115,91,208,.2); outline-offset: 2px; }
.agenda-today-pill.is-current { opacity: .58; box-shadow: none; }
.agenda-toolbar-controls { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; }
.agenda-filter-control { position: relative; width: min(172px, 100%); min-height: 42px; display: flex; align-items: center; color: #656677; background: #fff; border: 1px solid #dfdee7; border-radius: 12px; box-shadow: 0 5px 16px rgba(31,32,50,.045); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.agenda-filter-control:hover { background: #fdfcff; border-color: #c8c3d7; box-shadow: 0 7px 20px rgba(31,32,50,.065); transform: translateY(-1px); }
.agenda-filter-control:focus-within { border-color: #8f7bd2; box-shadow: 0 0 0 3px rgba(115,91,208,.14), 0 7px 20px rgba(31,32,50,.06); }
.agenda-filter-control .agenda-filter { width: 100%; height: 42px; min-height: 42px; max-width: none; padding: 0 38px 0 42px; appearance: none; -webkit-appearance: none; color: #454657; background: transparent; border: 0; border-radius: 12px; outline: 0; font: inherit; font-size: var(--font-size-sm); font-weight: 800; cursor: pointer; }
.agenda-filter-icon, .agenda-filter-chevron { position: absolute; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.agenda-filter-icon { left: 14px; color: #7262a9; }
.agenda-filter-chevron { right: 13px; color: #8c8d9d; }
.agenda-toolbar-sync { justify-self: end; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.agenda-sync-notice { max-width: 620px; padding: 9px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #8a5847; background: #fff7f3; border: 1px solid #f0ddd5; border-radius: 11px; font-size: var(--font-size-xs); }
.agenda-sync-notice span { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.agenda-sync-notice small { color: #947568; font-size: inherit; }
.mobile-bottom-nav-shell { display: none; }
.agenda-new-btn { min-height: 48px; padding-inline: 18px; font-size: var(--font-size-sm); box-shadow: none; }
.agenda-view-toggle { padding: 3px; display: inline-flex; align-items: center; background: #efedf4; border-radius: 10px; }
.agenda-view-toggle button { min-height: 42px; padding: 0 14px; color: #707182; background: transparent; border: 0; border-radius: 10px; font-size: var(--font-size-sm); font-weight: 850; }
.agenda-view-toggle button.active { color: #55429e; background: #fff; box-shadow: 0 3px 9px rgba(46,39,77,.1); }
.agenda-filter { min-height: 48px; max-width: 190px; padding: 0 32px 0 13px; font-size: var(--font-size-sm); font-weight: 750; }
.day-navigation { display: flex; align-items: center; gap: 13px; }
.day-navigation > div { min-width: 185px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; text-transform: capitalize; }
.day-navigation > .agenda-date-navigation { min-width: 0; flex-direction: row; justify-content: center; gap: 8px; }

@media (min-width: 581px) and (max-width: 1320px) {
  .agenda-toolbar { grid-template-columns: minmax(450px, 1fr) auto minmax(120px, auto); }
  .agenda-toolbar-controls .agenda-filter-control { display: none; }
  .agenda-quick-nav { flex-wrap: nowrap; flex: 0 0 auto; }
  .agenda-date-trigger { flex: 0 0 auto; }
}

@media (min-width: 821px) and (max-width: 1120px) {
  .agenda-toolbar:not(:has(.agenda-toolbar-sync)) { grid-template-columns: minmax(0, 1fr) auto; }
  .agenda-hour-trigger { display: none; }
  .day-navigation > .icon-button,
  .agenda-date-trigger,
  .agenda-today-pill { min-width: 44px; min-height: 44px; }
}

@media (min-width: 900px) and (max-width: 1120px) {
  .page-stack.is-agenda-view { --agenda-toolbar-sticky-height: 136px; }
  .agenda-toolbar,
  .agenda-toolbar:not(:has(.agenda-toolbar-sync)) { grid-template-columns: minmax(0, 1fr); }
  .day-navigation { justify-content: center; }
  .agenda-hour-trigger { display: inline-flex; min-height: 44px; }
  .agenda-toolbar-controls .agenda-filter-control { display: flex; min-height: 44px; }
  .agenda-toolbar-controls .agenda-filter-control .agenda-filter { min-height: 44px; height: 44px; }
  .agenda-toolbar-sync { justify-self: center; }
}

.day-navigation strong { font-weight: 900; font-size: var(--font-size-lg); letter-spacing: 0; }
.day-navigation span { color: #858697; font-size: var(--font-size-sm); }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.agenda-update-toast {
  position: sticky; top: 74px; z-index: 12; margin-bottom: -8px;
  padding: 10px 14px; color: #27695b; background: #e8f6f1; border: 1px solid #cce9df; border-radius: 12px;
  font-size: .78rem; font-weight: 700; box-shadow: 0 8px 24px rgba(39,105,91,.12);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.agenda-update-toast.is-visible { opacity: 1; transform: translateY(0); }
.appointment-status-pill {
  display: inline-flex; align-items: center; max-width: 100%;
  padding: 3px 9px; border-radius: 999px; font-size: var(--font-size-xs); font-weight: 900; letter-spacing: .01em;
  white-space: nowrap; line-height: 1.35; overflow: hidden; text-overflow: ellipsis;
}
.appointment-status-pill.status-confirmed { color: #2f63d8; background: #e9f0ff; }
.appointment-status-pill.status-waiting,
.appointment-status-pill.status-pending { color: #b66b12; background: #fff4df; }
.appointment-status-pill.status-arrived { color: #1f6b62; background: #dff5f1; }
.appointment-status-pill.status-in_progress { color: #4f3aa8; background: #ece7ff; }
.appointment-status-pill.status-completed { color: #267664; background: #e7f5ef; }
.appointment-status-pill.status-cancelled { color: var(--color-status-cancelled); background: #ffe8e8; }
.appointment-status-pill.status-no_show,
.appointment-status-pill.status-noshow { color: #4b5563; background: #eef0f3; }
.appointment-status-pill.status-blocked { color: #1f8f9a; background: #e4f7f9; }
.agenda-sync-status { min-height: 32px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; color: #4e7169; background: #f5faf8; border: 1px solid #dbeae5; border-radius: 999px; font-size: .64rem; font-weight: 800; white-space: nowrap; box-shadow: none; transition: background .18s ease, border-color .18s ease; }
.agenda-sync-status:hover { background: #edf7f3; border-color: #c8e1d9; }
.agenda-sync-status.has-error { color: #8f4e3c; background: #fff7f3; border-color: #efd8cf; }
.agenda-sync-status small { padding-left: 6px; color: inherit; border-left: 1px solid currentColor; font-size: .58rem; font-weight: 900; opacity: .8; }
.agenda-toolbar-sync small { display: none; }
.agenda-sync-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #d3a22e; box-shadow: 0 0 0 3px rgba(211,162,46,.12); }
.agenda-sync-dot.is-ok { background: #36a675; box-shadow: 0 0 0 3px rgba(54,166,117,.12); }
.agenda-sync-dot.has-error { background: #d76148; box-shadow: 0 0 0 3px rgba(215,97,72,.12); }
.agenda-sync-dot.is-syncing { background: #d3a22e; animation: agenda-sync-pulse 1.1s ease-in-out infinite; }
@keyframes agenda-sync-pulse { 50% { opacity: .45; transform: scale(.78); } }
.agenda-sync-status:disabled { cursor: wait; opacity: .75; }
.date-control { height: 48px; min-height: 48px; padding: 0 14px; color: #414354; background: #fafafd; border: 1px solid #d7d5e0; border-radius: 12px; font-size: var(--font-size-sm); font-weight: 800; }
.agenda-board { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 15px; overflow-x: auto; }
.staff-column { min-height: 520px; background: #f0f0f4; border: 1px solid #e6e5eb; border-radius: 18px; }
.staff-column > header { padding: 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; background: #fff; border-radius: 17px 17px 0 0; border-bottom: 1px solid #e9e8ed; }
.staff-column header div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.staff-column header strong { font-size: .82rem; }
.staff-column header span, .staff-column header small { color: #9595a3; font-size: .64rem; }
.staff-schedule { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.appointment-card { position: relative; padding: 15px 15px 14px 18px; background: #fff; border: 1px solid #e5e4ea; border-radius: 13px; box-shadow: 0 5px 15px rgba(35,31,64,.04); overflow: hidden; }
.appointment-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--appointment-color); }
.appointment-top { display: flex; align-items: center; justify-content: space-between; }
.appointment-top span { display: flex; align-items: center; gap: 5px; color: #777889; font-size: .68rem; }
.appointment-top strong { color: #555666; font-size: .7rem; }
.appointment-card h3 { margin: 13px 0 3px; font-size: .9rem; }
.appointment-card p { margin-bottom: 12px; font-size: .69rem; }
.phone-line { display: flex; align-items: center; gap: 5px; color: #9a9aa7; font-size: .64rem; }
.empty-slot { min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #9a99a8; background: rgba(255,255,255,.35); border: 1px dashed #d4d2dc; border-radius: 12px; font-size: .7rem; }
.toast-inline { padding: 12px 16px; color: #276f63; background: #e5f5f0; border: 1px solid #cce9df; border-radius: 11px; font-size: .78rem; font-weight: 700; }
.calendar-shell { overflow: visible; }
.calendar-shell.is-hidden { display: none; }
.free-exposure-panel { padding: 14px 14px 12px; display: grid; gap: 12px; }
.free-exposure-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.free-exposure-panel-header strong { display: block; color: #4a4b5a; font-size: .82rem; }
.free-exposure-panel-header small { display: block; margin-top: 2px; color: #9293a0; font-size: .64rem; font-weight: 600; }
.free-exposure-panel-header > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: #f4f0ff; color: #6c51d3; }
.free-exposure-empty { margin: 0; padding: 12px; color: #77718e; background: #fafafd; border: 1px dashed #ded9eb; border-radius: 12px; font-size: .68rem; line-height: 1.45; text-align: center; }
.free-exposure-list { display: grid; gap: 8px; }
.free-exposure-card { width: 100%; padding: 10px 10px 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 10px; text-align: left; background: #fafafd; border: 1px solid #e5e4eb; border-radius: 12px; cursor: pointer; }
.free-exposure-card strong { display: block; color: #4a4b5a; font-size: .74rem; }
.free-exposure-card span { display: block; margin-top: 2px; color: #7d7e8d; font-size: .64rem; font-weight: 600; }
.free-exposure-card small { display: block; margin-top: 5px; color: #6c51d3; font-size: .62rem; font-weight: 700; }
.free-exposure-card em { display: block; margin-top: 2px; color: #9293a0; font-size: .6rem; font-style: normal; font-weight: 700; }
.free-exposure-dot { width: 10px; height: 34px; margin-top: 2px; border-radius: 999px; }
.free-exposure-card.is-soon { border-color: #e8c547; background: #fffbed; }
.free-exposure-card.is-soon small { color: #9a7d12; }
.free-exposure-card.is-urgent { border-color: #e89a47; background: #fff5eb; }
.free-exposure-card.is-urgent small { color: #b86516; }
.free-exposure-card.is-due { border-color: #4caf7d; background: #eefbf3; }
.free-exposure-card.is-due small, .free-exposure-card.is-due em { color: #2f8f58; }
.weekly-agenda { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; }
.weekly-day { min-width: 170px; min-height: 430px; display: flex; flex-direction: column; overflow: hidden; }
.weekly-day > header { min-height: 68px; padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.weekly-day > header > div { display: flex; align-items: baseline; gap: 6px; }
.weekly-day > header span { color: #737584; font-size: var(--font-size-xs); font-weight: 850; text-transform: capitalize; }
.weekly-day > header strong { font-size: 1.2rem; }
.weekly-day > header small { max-width: 92px; color: #696b7a; font-size: .64rem; text-align: right; line-height: 1.25; }
.weekly-day.is-today { box-shadow: inset 0 0 0 2px rgba(112,83,211,.24), var(--shadow); }
.weekly-day.is-today > header { background: #f3efff; }
.weekly-day.is-closed > header { background: #f1f1f4; }
.weekly-day-list { flex: 1; padding: 9px; display: flex; flex-direction: column; gap: 8px; }
.weekly-appointment { position: relative; width: 100%; min-height: 82px; padding: 11px 11px 11px 13px; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 11px; overflow: hidden; color: #272939; background: #fff; border: 1px solid #dedde7; border-left: 5px solid var(--appointment-color); border-radius: var(--radius-card); text-align: left; box-shadow: var(--shadow-card); }
.weekly-appointment:hover { box-shadow: 0 8px 18px rgba(44,39,77,.11); transform: translateY(-1px); }
.weekly-time { display: flex; flex-direction: column; justify-content: center; }
.weekly-time strong { font-size: var(--font-size-sm); color: #202232; }
.weekly-time small { font-size: .58rem; color: #878294; }
.weekly-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.weekly-client { overflow: hidden; font-size: var(--font-size-sm); font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.weekly-service { overflow: hidden; color: color-mix(in srgb, var(--appointment-color) 72%, #343441); font-size: var(--font-size-xs); font-style: normal; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.weekly-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.weekly-meta small { overflow: hidden; color: #858692; font-size: .58rem; white-space: nowrap; text-overflow: ellipsis; }
.weekly-appointment.status-cancelled, .weekly-appointment.status-no_show { opacity: .62; }
.weekly-appointment.status-completed { opacity: .78; }
.weekly-appointment.status-in_progress { box-shadow: inset 0 0 0 1px rgba(124,92,255,.18), 0 4px 12px rgba(44,39,77,.05); }
.weekly-empty { min-height: 90px; display: grid; place-items: center; color: #aaaab4; font-size: .6rem; text-align: center; }
.weekly-day > footer { padding: 8px 11px; color: #92929e; background: #fafafd; border-top: 1px solid var(--line); font-size: .53rem; }
.calendar-header-track {
  position: sticky;
  top: calc(var(--agenda-sticky-top) + var(--agenda-toolbar-sticky-height));
  z-index: 18;
  overflow: hidden;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(35,31,64,.06);
  backdrop-filter: blur(12px);
}
.calendar-header {
  min-width: calc(var(--agenda-time-column-width) + var(--staff-count) * var(--agenda-staff-column-width));
  display: grid;
  grid-template-columns: var(--agenda-time-column-width) repeat(var(--staff-count), minmax(var(--agenda-staff-column-width), 1fr));
  background: rgba(255,255,255,.97);
}
.calendar-corner { position: sticky; left: 0; z-index: 3; display: grid; place-items: center; color: #747584; border-right: 1px solid var(--line); font-size: var(--font-size-sm); font-weight: 900; text-transform: uppercase; background: rgba(255,255,255,.98); }
.calendar-person { min-height: 82px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; border-right: 1px solid var(--line); cursor: grab; background: linear-gradient(180deg, #fff, #fbfbfe); transform: translateX(var(--agenda-scroll-left, 0px)); will-change: transform; }
.calendar-person.is-dragging { opacity: .55; cursor: grabbing; }
.calendar-person.is-drop-target { box-shadow: inset 0 0 0 2px #9176fa; background: #f7f5fe; }
.calendar-corner small { display: block; margin-top: 4px; color: #9595a5; font-size: .58rem; }
.calendar-person > div:last-child { display: flex; min-width: 0; flex-direction: column; }
.calendar-person strong { font-size: 1.08rem; font-weight: 900; }
.calendar-person span { color: #7f8090; font-size: var(--font-size-xs); white-space: nowrap; }
.calendar-person small { margin-top: 3px; overflow: hidden; color: #6555ad; font-size: var(--font-size-xs); font-weight: 850; white-space: nowrap; text-overflow: ellipsis; }
.calendar-scroll {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.calendar-grid { min-width: calc(var(--agenda-time-column-width) + var(--staff-count) * var(--agenda-staff-column-width)); display: grid; grid-template-columns: var(--agenda-time-column-width) repeat(var(--staff-count), minmax(var(--agenda-staff-column-width), 1fr)); align-items: start; }
.calendar-times { position: sticky; left: 0; z-index: 9; border-right: 1px solid #dedde6; background: #fafafd; box-shadow: 8px 0 16px rgba(35,31,64,.04); }
.calendar-times span,
.calendar-time-label { position: absolute; right: 11px; transform: translateY(-50%); color: #565969; font-size: var(--font-size-sm); font-weight: 900; }
.calendar-times.is-hour-navigable .calendar-time-label { right: 0; left: 0; width: 100%; padding: 0 11px 0 0; border: 0; background: transparent; text-align: right; cursor: pointer; border-radius: 8px; transition: background .15s ease, color .15s ease; }
.calendar-times.is-hour-navigable .calendar-time-label:hover { background: rgba(115,91,208,.08); color: #433d63; }
.calendar-times.is-hour-navigable .calendar-time-label:focus-visible { outline: 2px solid rgba(115,91,208,.24); outline-offset: -2px; }
.agenda-mobile-fab { display: none; }
@media (max-width: 960px), (orientation: landscape) and (max-height: 600px) and (max-width: 950px) {
  body.section-agenda .agenda-mobile-fab {
    position: fixed;
    right: max(18px, env(safe-area-inset-right, 0px) + 14px);
    bottom: max(18px, env(safe-area-inset-bottom, 0px) + 14px);
    z-index: 65;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #7c61e5, #6549cf);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 18px 38px rgba(88,67,188,.28), 0 6px 14px rgba(27,29,45,.16);
    touch-action: manipulation;
  }
  body.section-agenda .agenda-mobile-fab:focus-visible { outline: 3px solid rgba(115,91,208,.28); outline-offset: 3px; }
  body:not(.section-agenda) .agenda-mobile-fab,
  body.modal-open .agenda-mobile-fab { display: none; }
}
.agenda-picker-backdrop { position: fixed; inset: 0; z-index: 1200; border: 0; padding: 0; margin: 0; background: rgba(24, 20, 38, .18); cursor: default; }
.agenda-date-picker-host,
.agenda-hour-picker-host { position: absolute; z-index: 1201; }
.agenda-date-picker,
.agenda-hour-picker { width: min(320px, calc(100vw - 24px)); padding: 14px; border-radius: 16px; border: 1px solid #e4e0ee; background: #fff; box-shadow: 0 18px 48px rgba(34, 28, 58, .16); }
.agenda-date-picker-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-bottom: 10px; }
.agenda-date-picker-title { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.agenda-date-picker-month { font-weight: 900; color: #2f2a44; text-transform: capitalize; }
.agenda-date-picker-year { min-height: 34px; border-radius: 10px; border: 1px solid #ded9e9; padding: 4px 8px; font: inherit; font-weight: 700; color: #4d4763; background: #faf9fd; }
.agenda-date-picker-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; text-align: center; color: #8a8498; font-size: var(--font-size-xs); font-weight: 800; }
.agenda-date-picker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.agenda-date-picker-day { min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: #3f3958; font: inherit; font-weight: 750; cursor: pointer; }
.agenda-date-picker-day:hover { background: #f3f0fa; }
.agenda-date-picker-day.is-outside { color: #a8a2b6; }
.agenda-date-picker-day.is-today { box-shadow: inset 0 0 0 1px #c9bfdc; }
.agenda-date-picker-day.is-selected { background: #735bd0; color: #fff; box-shadow: none; }
.agenda-date-picker-day:focus-visible { outline: 3px solid rgba(115,91,208,.24); outline-offset: 1px; }
.agenda-date-picker-footer { display: flex; justify-content: center; margin-top: 12px; }
.agenda-hour-picker-header { margin-bottom: 10px; text-align: center; color: #2f2a44; }
.agenda-hour-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: min(52vh, 360px); overflow: auto; }
.agenda-hour-option { min-height: 42px; border-radius: 11px; border: 1px solid #e4e0ee; background: #faf9fd; color: #4d4763; font: inherit; font-weight: 800; cursor: pointer; }
.agenda-hour-option:hover { background: #f1ebff; border-color: #cfc3ea; }
.agenda-hour-option:focus-visible { outline: 3px solid rgba(115,91,208,.22); outline-offset: 2px; }
.agenda-date-picker-host.is-mobile,
.agenda-hour-picker-host.is-mobile { position: fixed; left: 50% !important; top: auto !important; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(360px, calc(100vw - 20px)); }
.agenda-date-picker-host.is-mobile .agenda-date-picker,
.agenda-hour-picker-host.is-mobile .agenda-hour-picker { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.agenda-date-picker-host.is-mobile .agenda-date-picker-day { min-height: 44px; font-size: 1rem; }
.agenda-hour-picker-host.is-mobile .agenda-hour-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agenda-hour-picker-host.is-mobile .agenda-hour-option { min-height: 48px; font-size: 1rem; }
.calendar-now-time { position: absolute; right: 6px; z-index: 4; padding: 2px 6px; transform: translateY(-50%); color: #fff; background: #6f55d9; border-radius: 999px; font-size: .62rem; font-style: normal; font-weight: 950; box-shadow: 0 5px 14px rgba(111,85,217,.22); }
.agenda-lane-body { position: relative; border-right: 1px solid #e3e2e8; cursor: crosshair; background:
  repeating-linear-gradient(to bottom,
    transparent 0,
    transparent calc(var(--quarter-height) - 1px),
    #f0eff4 calc(var(--quarter-height) - 1px),
    #f0eff4 var(--quarter-height)),
  linear-gradient(to right, #fff, #fefeff); }
.agenda-lane-body:hover { background:
  repeating-linear-gradient(to bottom,
    transparent 0,
    transparent calc(var(--quarter-height) - 1px),
    #e8e4f7 calc(var(--quarter-height) - 1px),
    #e8e4f7 var(--quarter-height)),
  #fdfcff; }
.agenda-lane-body.is-drop-target { background:
  repeating-linear-gradient(to bottom,
    rgba(111,85,217,.035) 0,
    rgba(111,85,217,.035) calc(var(--quarter-height) - 1px),
    rgba(111,85,217,.22) calc(var(--quarter-height) - 1px),
    rgba(111,85,217,.22) var(--quarter-height)),
  #f8f5ff;
  box-shadow: inset 0 0 0 2px rgba(111,85,217,.42);
}
.agenda-drag-guide {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 25;
  pointer-events: none;
}
.agenda-drag-guide-line {
  display: block;
  height: 2px;
  background: #2f9d62;
  box-shadow: 0 0 0 1px rgba(47,157,98,.25);
}
.agenda-drag-guide.is-invalid .agenda-drag-guide-line {
  background: #d85a45;
  box-shadow: 0 0 0 1px rgba(216,90,69,.25);
}
.agenda-drag-guide-label {
  position: absolute;
  top: -10px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #2f9d62;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(36,120,74,.25);
}
.agenda-drag-guide.is-invalid .agenda-drag-guide-label {
  background: #d85a45;
  box-shadow: 0 6px 16px rgba(160,58,40,.25);
}
.calendar-now-line { position: absolute; z-index: 1; right: 0; left: 0; height: 2px; background: #6f55d9; box-shadow: 0 0 0 1px rgba(111,85,217,.18), 0 4px 12px rgba(111,85,217,.2); pointer-events: none; }
.calendar-now-line::before { content: ""; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; transform: translateY(-50%); border-radius: 50%; background: #6f55d9; }
.calendar-unavailable { position: absolute; z-index: 1; right: 0; left: 0; min-height: 2px; display: flex; align-items: center; justify-content: center; overflow: hidden; pointer-events: none; }
.calendar-unavailable span { padding: 3px 7px; border-radius: 7px; font-size: .56rem; font-weight: 850; letter-spacing: .02em; }
.calendar-center-closed { color: #696a75; background: repeating-linear-gradient(135deg, rgba(80,81,94,.12) 0 7px, rgba(80,81,94,.2) 7px 9px); border-top: 1px solid rgba(74,75,88,.17); border-bottom: 1px solid rgba(74,75,88,.17); }
.calendar-center-closed span { background: rgba(245,245,248,.88); }
.calendar-staff-closed { color: #725eac; background: repeating-linear-gradient(135deg, rgba(128,101,218,.06) 0 8px, rgba(128,101,218,.14) 8px 10px); border-top: 1px dashed rgba(111,86,195,.24); border-bottom: 1px dashed rgba(111,86,195,.24); }
.calendar-staff-closed span { background: rgba(247,244,255,.9); }
.calendar-appointment { position: absolute; z-index: 2; left: 7px; right: 7px; box-sizing: border-box; min-width: 0; padding: 8px 10px 8px 12px; overflow: hidden; color: #202232; border-radius: var(--radius-card); box-shadow: var(--shadow-card); text-align: left; cursor: grab; touch-action: pan-y; user-select: none; transition: box-shadow .15s ease, height .08s linear; border: 1px solid var(--card-status-border, #dedde7); border-left-width: 6px; border-left-color: var(--card-status-accent, #4b7bec); background: linear-gradient(180deg, var(--card-status-bg, #f7f9ff), #fff); }
@media (pointer: coarse) {
  .calendar-appointment { touch-action: manipulation; min-height: 56px; }
  .calendar-appointment.is-pressing,
  .calendar-appointment.is-dragging,
  .calendar-appointment.is-resizing { touch-action: none; }
  .calendar-display-card.is-short,
  .calendar-display-card.is-micro { min-height: 52px; }
}
.calendar-display-card { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; min-height: 0; }
.calendar-display-card .calendar-client-name { display: -webkit-box; overflow: hidden; color: #141624; font-size: 1rem; font-weight: 950; line-height: 1.2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; hyphens: auto; }
.calendar-display-card button.calendar-client-name { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.weekly-client.agenda-client-link,
.mobile-client-name.agenda-client-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; text-align: left; cursor: pointer; }
.calendar-display-card button.calendar-client-name:hover,
.calendar-display-card button.calendar-client-name:focus-visible { color: var(--primary, #df4b12); text-decoration: underline; outline: none; }
.appointment-client-link { margin: 0 0 10px; }
.client-appointment-history article { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--border, #e7e7ea); }
.client-appointment-history article span { color: var(--muted, #666); font-size: .86rem; }
.client-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.client-photo-grid figure { margin: 0; display: grid; gap: 6px; }
.client-photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.calendar-display-card .calendar-service-name { display: -webkit-box; overflow: hidden; color: #333545; font-size: .82rem; font-weight: 900; line-height: 1.22; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; hyphens: auto; }
.calendar-appointment.status-confirmed { --card-status-accent: #3b72e8; --card-status-bg: #eef3ff; --card-status-border: #c8d7fb; }
.calendar-appointment.status-pending { --card-status-accent: #e07a24; --card-status-bg: #fff4e8; --card-status-border: #f3d2ae; }
.calendar-appointment.status-arrived { --card-status-accent: #1f9e95; --card-status-bg: #e8f8f6; --card-status-border: #b8e8e2; }
.calendar-appointment.status-in_progress { --card-status-accent: #7c5cff; --card-status-bg: #f1edff; --card-status-border: #d5cbff; }
.calendar-appointment.status-completed { --card-status-accent: #2f9d62; --card-status-bg: #eaf8f0; --card-status-border: #bfe8d0; }
.calendar-appointment.status-cancelled { --card-status-accent: #e04545; --card-status-bg: #fff0f0; --card-status-border: #f5c3c3; opacity: .78; }
.calendar-appointment.status-noshow { --card-status-accent: #4b5563; --card-status-bg: #eef0f3; --card-status-border: #c5cad3; opacity: .82; }
.calendar-appointment.status-blocked { --card-status-accent: #2bb8c7; --card-status-bg: #e8f9fb; --card-status-border: #b3e8ee; }
.calendar-bundle-badge { position: absolute; top: 4px; right: 5px; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; color: #6d5f9a; background: rgba(109,95,154,.1); border-radius: 999px; pointer-events: none; }
.calendar-display-card.is-bundle { padding-right: 22px; }
.calendar-display-card.is-short { gap: 3px; padding: 6px 8px 6px 10px; }
.calendar-display-card.is-short .calendar-client-name { font-size: .88rem; line-height: 1.18; -webkit-line-clamp: 2; }
.calendar-display-card.is-short .calendar-service-name { font-size: .72rem; line-height: 1.18; -webkit-line-clamp: 2; }
.calendar-display-card.is-micro { gap: 2px; padding: 5px 6px 5px 8px; }
.calendar-display-card.is-micro .calendar-client-name { font-size: .78rem; line-height: 1.16; -webkit-line-clamp: 2; }
.calendar-display-card.is-micro .calendar-service-name { font-size: .66rem; line-height: 1.14; -webkit-line-clamp: 2; }
.calendar-ticket-badge { position: absolute; top: 3px; right: 5px; padding: 1px 5px; color: #5f5e70; background: #f3f2f7; border-radius: 6px; font-size: .5rem; font-weight: 800; }
.calendar-demo-badge { position: absolute; top: 3px; left: 5px; padding: 1px 6px; color: #7a4b00; background: #fff1d6; border: 1px solid #f0c36d; border-radius: 6px; font-size: .5rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.calendar-display-card.is-demo-test { border-left: 3px solid #f0a500; box-shadow: inset 0 0 0 1px rgba(240, 165, 0, .12); }
.calendar-display-card.is-bundle.ticketed .calendar-ticket-badge { top: 22px; }
.calendar-appointment.is-overlap,
.calendar-appointment[data-overlap-count]:not([data-overlap-count="1"]) { padding: 4px 5px 4px 7px; }
.calendar-appointment.is-overlap .calendar-client-name,
.calendar-appointment[data-overlap-count]:not([data-overlap-count="1"]) .calendar-client-name { font-size: .8rem; line-height: 1.16; -webkit-line-clamp: 2; }
.calendar-appointment.is-overlap .calendar-service-name,
.calendar-appointment[data-overlap-count]:not([data-overlap-count="1"]) .calendar-service-name { font-size: .68rem; line-height: 1.16; -webkit-line-clamp: 2; }
.calendar-appointment.is-pressing { box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-status-accent) 24%, transparent), 0 10px 22px rgba(44,39,77,.13); }
.calendar-appointment.has-agenda-tooltip,
.calendar-appointment:hover { z-index: 8; box-shadow: 0 8px 20px rgba(44,39,77,.14); transform: translateY(-1px); }
.calendar-appointment.is-overlap:hover,
.calendar-appointment[data-overlap-count]:not([data-overlap-count="1"]):hover { transform: none; }
.calendar-appointment.is-dragging, .calendar-appointment.is-resizing { z-index: 30; opacity: .92; cursor: grabbing; box-shadow: 0 18px 35px rgba(44,39,77,.25); transform: none; }
.calendar-appointment.is-conflict-highlight { z-index: 12; box-shadow: 0 0 0 2px #fff, 0 0 0 5px #e04545, 0 10px 24px rgba(224,69,69,.28); animation: agenda-conflict-pulse 1.1s ease-in-out infinite; }
.calendar-appointment.is-conflict-segment { z-index: 13; box-shadow: 0 0 0 2px #fff, 0 0 0 6px #c62828, 0 12px 28px rgba(198,40,40,.34); }
.agenda-conflict-overlay { position: absolute; left: 4px; right: 4px; z-index: 20; pointer-events: none; border-radius: 10px; border: 2px solid rgba(198,40,40,.92); background: linear-gradient(180deg, rgba(255,72,72,.24), rgba(255,72,72,.12)); box-shadow: 0 0 0 1px rgba(255,255,255,.75) inset, 0 10px 28px rgba(198,40,40,.28); animation: agenda-conflict-overlay-in .25s ease, agenda-conflict-overlay-pulse 1.2s ease-in-out infinite; }
.agenda-conflict-overlay.is-operational { border-style: dashed; background: linear-gradient(180deg, rgba(176,62,62,.22), rgba(176,62,62,.1)); }
.agenda-conflict-overlay.is-partial { outline: 2px dotted rgba(198,40,40,.55); outline-offset: 2px; }
.agenda-conflict-overlay-inner { display: grid; gap: 2px; padding: 8px 10px; color: #7f1010; font-size: .72rem; line-height: 1.25; }
.agenda-conflict-overlay-inner strong { font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: #a01818; }
.agenda-conflict-overlay-client { font-size: .82rem; font-weight: 700; color: #5f0f0f; }
.agenda-conflict-overlay-service,
.agenda-conflict-overlay-time { font-weight: 600; }
.agenda-conflict-overlay-inner small { color: #8b1e1e; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
@keyframes agenda-conflict-overlay-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes agenda-conflict-overlay-pulse {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.25); }
}
@keyframes agenda-conflict-pulse {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.35); }
}
.calendar-appointment.is-dragging:hover, .calendar-appointment.is-resizing:hover { transform: none; }
.calendar-appointment.ticketed { opacity: .88; }
.legend-status { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.legend-status-confirmed { background: #3b72e8; }
.legend-status-pending { background: #e07a24; }
.legend-status-completed { background: #2f9d62; }
.legend-status-cancelled { background: #e04545; }
.legend-status-noshow { background: #4b5563; }
.legend-status-blocked { background: #2bb8c7; }
.agenda-appointment-tooltip { position: fixed; z-index: 1200; width: min(320px, calc(100vw - 24px)); max-height: min(70vh, 420px); overflow: auto; padding: 14px 16px 16px; color: #1d2030; background: #fff; border: 1px solid #e3e2ea; border-radius: 14px; box-shadow: 0 18px 40px rgba(34, 31, 58, .22); pointer-events: auto; }
.agenda-appointment-tooltip[hidden] { display: none !important; }
.agenda-tooltip-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.agenda-tooltip-client { color: #141624; font-size: 1.05rem; line-height: 1.2; }
.agenda-tooltip-service { margin: 0 0 10px; color: #3a3d4d; font-size: .9rem; font-weight: 850; line-height: 1.35; }
.agenda-tooltip-bundle { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 7px 9px; color: #5f5380; background: #f6f4fb; border-radius: 10px; font-size: .74rem; font-weight: 800; line-height: 1.35; }
.agenda-tooltip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0 0 12px; }
.agenda-tooltip-grid div { min-width: 0; }
.agenda-tooltip-grid dt { margin: 0 0 2px; color: #727484; font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.agenda-tooltip-grid dd { margin: 0; color: #242636; font-size: .82rem; font-weight: 750; line-height: 1.35; word-break: break-word; }
.agenda-tooltip-grid .agenda-tooltip-span { grid-column: 1 / -1; }
.agenda-tooltip-notes { padding-top: 10px; border-top: 1px solid #eceaf2; }
.agenda-tooltip-notes > span { display: block; margin-bottom: 4px; color: #727484; font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.agenda-tooltip-notes p { margin: 0; color: #2d3040; font-size: .82rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.weekly-appointment.has-agenda-tooltip { z-index: 2; box-shadow: 0 8px 18px rgba(44,39,77,.12); }
.phase-strip { display: flex; gap: 2px; overflow: hidden; pointer-events: none; }
.calendar-phase-strip { position: absolute; left: 9px; right: 7px; bottom: 5px; height: 5px; }
.phase-strip span { min-width: 4px; height: 100%; border-radius: 3px; }
.phase-active, .phase-finish { background: #6d56c7; }
.phase-free { background: repeating-linear-gradient(135deg, #fff 0 4px, #eee9fc 4px 8px); border: 1px solid #d9d1f3; }
.appointment-resize-handle { position: absolute; z-index: 8; right: 4px; bottom: 0; left: 4px; height: 14px; cursor: ns-resize; touch-action: none; }
.appointment-resize-handle::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 34px; height: 4px; transform: translateX(-50%); background: color-mix(in srgb, var(--appointment-color) 70%, #5d5d6c); border-radius: 4px; opacity: .92; }
.calendar-appointment.is-short .appointment-resize-handle,
.calendar-appointment.is-micro .appointment-resize-handle { height: 16px; }
.calendar-appointment.is-short .appointment-resize-handle::after,
.calendar-appointment.is-micro .appointment-resize-handle::after { bottom: 4px; width: 38px; height: 5px; }
.calendar-segment-duration { position: absolute; right: 8px; bottom: 16px; padding: 1px 6px; color: #5f6f84; background: rgba(255,255,255,.88); border-radius: 999px; font-size: .58rem; font-weight: 800; line-height: 1.4; pointer-events: none; }
.calendar-appointment.is-resizing .calendar-segment-duration { color: #6c51d3; background: #f4f0ff; }
.calendar-legend { min-height: 45px; padding: 10px 15px; display: flex; align-items: center; gap: 20px; color: #858594; background: #fafafd; border-top: 1px solid var(--line); font-size: .63rem; }
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.calendar-legend span:last-child { margin-left: auto; }
.calendar-legend i { width: 16px; height: 6px; border-radius: 4px; }
.legend-active { background: #8065e4; }
.legend-free { background: repeating-linear-gradient(135deg, #8065e4 0 2px, transparent 2px 4px); border: 1px solid #8065e4; }
.legend-center-closed { background: repeating-linear-gradient(135deg, #777984 0 3px, #d7d7dc 3px 6px); }
.legend-staff-off { background: repeating-linear-gradient(135deg, #8f78d8 0 2px, #eee9ff 2px 5px); border: 1px solid #ab99e4; }
.mobile-agenda { display: none; }
.mobile-staff-picker { padding: 2px 1px 5px; display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.mobile-staff-picker::-webkit-scrollbar { display: none; }
.mobile-staff-chip { min-width: 145px; min-height: 44px; padding: 9px 12px 9px 9px; display: flex; align-items: center; gap: 9px; scroll-snap-align: start; color: #777887; background: #fff; border: 1px solid #e5e4eb; border-radius: 15px; text-align: left; box-shadow: 0 5px 18px rgba(35,31,64,.04); }
.mobile-staff-chip > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.mobile-staff-chip strong { overflow: hidden; color: #4f5060; font-size: .75rem; white-space: nowrap; text-overflow: ellipsis; }
.mobile-staff-chip small { margin-top: 2px; color: #a0a0ad; font-size: .61rem; }
.mobile-staff-chip .avatar { width: 34px; height: 34px; flex: 0 0 auto; }
.mobile-staff-chip.active { color: #fff; background: linear-gradient(135deg, #7d63e7, #6247cd); border-color: transparent; box-shadow: 0 9px 22px rgba(100,72,208,.2); }
.mobile-staff-chip.active strong, .mobile-staff-chip.active small { color: #fff; }
.mobile-staff-chip.active small { opacity: .72; }
.mobile-availability, .mobile-appointments { overflow: hidden; }
.mobile-availability { padding: 17px; }
.mobile-agenda-person { padding-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #efeff3; }
.mobile-agenda-person > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.mobile-agenda-person > div > div { min-width: 0; }
.mobile-agenda-person h2 { margin: 1px 0; overflow: hidden; font-size: 1rem; white-space: nowrap; text-overflow: ellipsis; }
.mobile-agenda-person small { display: block; overflow: hidden; color: #8f909e; font-size: .63rem; white-space: nowrap; text-overflow: ellipsis; }
.mobile-agenda-person .eyebrow { margin-bottom: 0; font-size: .54rem; }
.occupancy-badge { flex: 0 0 auto; padding: 7px 9px; color: #5f4bb8; background: #f0ecfd; border-radius: 9px; font-size: .61rem; font-weight: 800; }
.mobile-section-title { padding: 16px 0 11px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mobile-section-title h3 { margin-bottom: 3px; font-size: .86rem; }
.mobile-section-title p { margin: 0; font-size: .65rem; }
.mobile-section-title > span { flex: 0 0 auto; color: #9a9aa6; font-size: .61rem; }
.mobile-free-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-free-slot { min-width: 0; padding: 11px; display: grid; grid-template-columns: 26px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 8px; color: #4f5060; background: #f7f5fe; border: 1px dashed #c9bdf2; border-radius: 12px; text-align: left; }
.mobile-free-slot > span { grid-row: 1 / 3; width: 26px; height: 26px; display: grid; place-items: center; align-self: center; color: #6d53d7; background: #fff; border-radius: 8px; }
.mobile-free-slot strong { overflow: hidden; font-size: .69rem; white-space: nowrap; text-overflow: ellipsis; }
.mobile-free-slot small { margin-top: 2px; color: #9186bb; font-size: .58rem; }
.mobile-free-slot:active { transform: scale(.98); background: #eee9fc; }
.mobile-no-slots { grid-column: 1 / -1; padding: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #777889; background: #f7f6fa; border-radius: 12px; font-size: .68rem; }
.mobile-appointments { padding: 0 17px 7px; }
.mobile-appointment-list { display: flex; flex-direction: column; }
.mobile-appointment-card { position: relative; width: 100%; min-height: 88px; padding: 14px 4px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 22px; align-items: start; gap: 10px; color: #444553; background: transparent; border: 0; border-top: 1px solid #efeff3; text-align: left; }
.mobile-appointment-card::before { content: ""; position: absolute; top: 16px; bottom: 16px; left: -17px; width: 5px; background: var(--appointment-color); border-radius: 0 4px 4px 0; }
.mobile-appointment-card:first-child { border-top: 0; }
.mobile-appointment-card.ticketed { opacity: .75; }
.mobile-appointment-card.status-in_progress { background: linear-gradient(90deg, rgba(124,92,255,.05), transparent 40%); }
.mobile-appointment-time { display: flex; flex-direction: column; }
.mobile-appointment-time strong { font-size: .82rem; }
.mobile-appointment-time small { margin-top: 2px; color: #aaaab5; font-size: .62rem; }
.mobile-appointment-content { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-appointment-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.mobile-client-name { overflow: hidden; color: #242634; font-size: .86rem; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.mobile-service-name { overflow: hidden; color: color-mix(in srgb, var(--appointment-color) 72%, #565768); font-size: .74rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.mobile-phase-strip { position: relative; width: 66px; height: 7px; margin-top: 2px; }
.mobile-appointment-arrow { align-self: center; color: #aaaab5; }
.mobile-empty-day { padding: 25px 10px 30px; display: flex; flex-direction: column; align-items: center; color: #a0a0ad; text-align: center; }
.mobile-empty-day strong { margin-top: 8px; color: #666775; font-size: .78rem; }
.mobile-empty-day span { max-width: 250px; margin-top: 4px; font-size: .64rem; }
.appointment-detail-hero { padding: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: color-mix(in srgb, var(--appointment-color) 10%, white); border: 1px solid color-mix(in srgb, var(--appointment-color) 25%, white); border-radius: 14px; }
.appointment-detail-hero span { color: #858594; font-size: .6rem; font-weight: 800; letter-spacing: .08em; }
.appointment-detail-hero h3, .appointment-detail-hero p { margin: 3px 0 0; }
.appointment-detail-hero p { font-size: .67rem; }
.appointment-detail-hero > strong { color: #4f436f; font-size: 1.2rem; }
.appointment-contact-card { padding: 12px; display: grid; gap: 10px; background: #fff; border: 1px solid #e6e1ec; border-radius: 12px; }
.appointment-contact-card header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.appointment-contact-card header span { padding: 4px 8px; border-radius: 999px; background: #f4f0fb; color: #5d4f78; font-size: .72rem; font-weight: 800; }
.appointment-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.appointment-contact-grid > div { display: flex; gap: 8px; align-items: center; padding: 9px; background: #faf9fd; border: 1px solid #eeeaf4; border-radius: 10px; }
.appointment-contact-grid small { display: block; color: #777184; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.appointment-contact-grid strong { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.appointment-contact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.appointment-external-id { color: #777184; overflow-wrap: anywhere; }
.appointment-status-bar { padding: 10px 12px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; background: #f8f7fb; border: 1px solid #ebe8f1; border-radius: 12px; }
.appointment-status-bar label { margin: 0; }
.appointment-status-bar select { min-height: 38px; }
.appointment-status-bar .form-error { grid-column: 1 / -1; }
.appointment-phase-summary { padding: 12px; display: grid; gap: 10px; background: linear-gradient(180deg,#fbfaff,#f6f3fd); border: 1px solid #e4dcf7; border-radius: 12px; }
.appointment-phase-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.appointment-phase-summary-grid span { min-width: 0; padding: 9px 10px; background: rgba(255,255,255,.74); border: 1px solid rgba(109,86,199,.12); border-radius: 9px; }
.appointment-phase-summary-grid small { display: block; color: #7d758f; font-size: .58rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.appointment-phase-summary-grid strong { display: block; margin-top: 2px; color: #403657; font-size: .9rem; }
.appointment-phase-summary .is-summary { position: relative; width: 100%; height: 9px; }
.appointment-phase-summary .phase-free { box-shadow: inset 0 0 0 1px #fff; }
.schedule-override-note { padding: 9px 11px; display: flex; align-items: flex-start; gap: 8px; color: #9b5b43; background: #fff1e9; border: 1px solid #efd4c7; border-radius: 10px; }
.schedule-override-note span { display: flex; flex-direction: column; }
.schedule-override-note strong { font-size: .64rem; }
.schedule-override-note small { margin-top: 2px; font-size: .54rem; }
.competency-override-note { padding: 9px 11px; display: flex; align-items: flex-start; gap: 8px; color: #8a6118; background: #fff8ef; border: 1px solid rgba(214, 162, 59, .28); border-radius: 10px; }
.competency-override-note span { display: flex; flex-direction: column; }
.competency-override-note strong { font-size: .64rem; }
.competency-override-note small { margin-top: 2px; font-size: .54rem; color: #7a6a45; }
.phase-gap-note { padding: 8px 11px; border-radius: 10px; background: #fff8d8; border: 1px solid #f0d878; color: #8a6118; font-size: .72rem; font-weight: 600; }
.calendar-competency-badge, .calendar-phase-gap-badge, .calendar-forced-badge { position: absolute; top: 3px; right: 5px; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: .62rem; font-weight: 800; line-height: 1; }
.calendar-competency-badge { color: #8a6118; background: #fff1c9; border: 1px solid #e8c96a; }
.calendar-forced-badge { right: 24px; color: #8a3b18; background: #fff0e8; border: 1px solid #efb08f; }
.appointment-conflict-panel { margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(214, 162, 59, .28); background: #fffaf2; }
.appointment-conflict-guidance { white-space: pre-line; font-size: .82rem; color: #5f4a1f; line-height: 1.45; }
.appointment-conflict-detail { margin-top: 8px; font-size: .74rem; color: #7a6240; }
.agenda-force-divider { border: 0; border-top: 1px solid rgba(0,0,0,.08); margin: 12px 0; }
.agenda-force-conflict-section h4 { margin: 0 0 4px; font-size: .84rem; color: #8a3b18; }
.agenda-force-note { margin: 0 0 10px; font-size: .74rem; color: #7a5a45; }
.staff-conflict-override-note { padding: 9px 11px; display: flex; align-items: flex-start; gap: 8px; color: #8a3b18; background: #fff4ee; border: 1px solid rgba(239, 176, 143, .35); border-radius: 10px; }
.staff-conflict-override-note span { display: flex; flex-direction: column; }
.staff-conflict-override-note strong { font-size: .64rem; }
.staff-conflict-override-note small { margin-top: 2px; font-size: .54rem; color: #7a5a45; }
.calendar-phase-gap-badge { top: 22px; color: #7a4b00; background: #fff8d8; border: 1px solid #f0d878; }
.agenda-decision-panel { display: grid; gap: 14px; }
.agenda-decision-panel > p { margin: 0; color: #4d5168; line-height: 1.5; }
.agenda-decision-actions { justify-content: flex-end; flex-wrap: wrap; }
.agenda-radio-choice { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 12px; background: #f8f8fc; border: 1px solid rgba(23,25,39,.08); cursor: pointer; }
.agenda-radio-choice span { display: grid; gap: 4px; }
.agenda-radio-choice small { color: #6b7086; font-size: .78rem; }
.phase-detail-list { margin: 14px 0; }
.phase-detail-list > div { padding: 10px 4px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; border-bottom: 1px solid #efeff2; }
.phase-detail-list > div > span { width: 9px; height: 9px; border-radius: 50%; }
.busy-dot { background: #765bd9; }
.free-dot { background: #fff; border: 2px dashed #8065e4; }
.phase-detail-list div div { display: flex; flex-direction: column; }
.phase-detail-list strong { font-size: .72rem; }
.phase-detail-list small { color: #9696a4; font-size: .62rem; }
.appointment-notes { padding: 12px; background: #f7f6fa; border-radius: 10px; }
.appointment-notes strong { font-size: .68rem; }
.appointment-notes p { margin: 4px 0 0; font-size: .68rem; }
.appointment-service-heading { padding: 11px 4px 7px !important; grid-template-columns: auto 1fr !important; border-bottom: 0 !important; }
.appointment-service-heading > span { width: 11px !important; height: 28px !important; border-radius: 5px !important; }
.appointment-exposure-editors { margin: 12px 0; padding: 12px; background: #f5f2fd; border: 1px solid #e1daf8; border-radius: 12px; }
.appointment-exposure-editors > .eyebrow { margin-bottom: 8px; }
.phase-duration-editor { padding: 9px; background: #fff; border: 1px solid #e7e3f0; border-radius: 9px; }
.phase-duration-editor + .phase-duration-editor { margin-top: 7px; }
.phase-duration-editor > div:first-child strong, .phase-duration-editor > div:first-child small { display: block; }
.phase-duration-editor > div:first-child strong { font-size: .68rem; }
.phase-duration-editor > div:first-child small { margin-top: 2px; color: #9293a0; font-size: .56rem; }
.exposure-duration-controls { margin-top: 8px; display: grid; grid-template-columns: 42px minmax(70px, 1fr) 42px auto; gap: 6px; }
.exposure-duration-controls > button:not(.secondary-button) { color: #6750bf; background: #eee9fc; border: 1px solid #d9cff7; border-radius: 8px; font-size: .65rem; font-weight: 800; }
.exposure-duration-controls input { min-width: 0; height: 36px; text-align: center; }
.exposure-duration-controls .secondary-button { min-height: 36px; padding: 0 12px; }
.historical-price-confirm p { margin: 0 0 8px; font-size: .74rem; }
.historical-price-confirm p.muted { color: #82818f; }
.historical-price-adjust { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e7e3f0; }
.historical-price-adjust-controls { display: grid; grid-template-columns: 38px 38px minmax(70px, 1fr) 38px 38px; gap: 6px; }
.historical-price-adjust-controls button { color: #6750bf; background: #eee9fc; border: 1px solid #d9cff7; border-radius: 8px; font-size: .65rem; font-weight: 800; }
.historical-price-adjust-controls input { min-width: 0; height: 36px; text-align: center; }
.historical-price-apply { margin-top: 8px; width: 100%; }
.appointment-services-field { margin: 0; padding: 0; border: 0; }
.appointment-services-field legend { margin-bottom: 8px; color: #656674; font-size: .72rem; font-weight: 700; }
.appointment-service-search { margin-bottom: 8px; padding: 4px 6px 4px 10px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; background: #fff; border: 1px solid #d8d3e8; border-radius: 11px; box-shadow: 0 3px 12px rgba(55,44,92,.06); }
.appointment-service-search:focus-within { border-color: #8069d5; box-shadow: 0 0 0 3px rgba(108,81,211,.12); }
.appointment-service-search input { min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: #4a4b5a; font-size: .78rem; font-weight: 700; }
#appointment-service-search { min-height: 44px; }
.appointment-service-search button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #f4f2fa; color: #6c51d3; cursor: pointer; }
.appointment-selected-services { position: sticky; top: 0; z-index: 4; margin-bottom: 10px; padding: 9px; background: rgba(250,249,253,.97); border: 1px solid #e1dcef; border-radius: 12px; box-shadow: 0 7px 18px rgba(51,42,84,.08); backdrop-filter: blur(8px); }
.appointment-selected-services > header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.appointment-selected-services > header strong { color: #4d426f; font-size: .66rem; letter-spacing: .055em; text-transform: uppercase; }
.appointment-selected-services > header small { color: #8b8797; font-size: .54rem; text-align: right; }
.appointment-service-options { max-height: 235px; padding: 3px; display: grid; grid-template-columns: 1fr; gap: 10px; overflow-y: auto; }
.appointment-service-category { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.appointment-service-category h4 { grid-column: 1 / -1; margin: 2px 0 0; color: #656674; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; }
.appointment-service-option { position: relative; margin: 0 !important; cursor: pointer; }
.appointment-service-option.is-search-hidden { display: none !important; }
.appointment-service-category.is-search-hidden { display: none !important; }
.appointment-service-option input { position: absolute; opacity: 0; pointer-events: none; }
.appointment-service-option > span { min-height: 58px; padding: 10px 10px 9px 14px; display: flex; flex-direction: column; justify-content: center; background: #fafafd; border: 1px solid #e5e4eb; border-radius: 11px; box-shadow: inset 4px 0 var(--service-color); }
.appointment-service-option strong { color: #4a4b5a; font-size: .7rem; }
.appointment-service-option small { margin-top: 3px; color: #9293a0; font-size: .58rem; font-weight: 500; }
.appointment-service-option input:checked + span { background: #f0ecfd; border-color: #9d87e8; box-shadow: inset 4px 0 var(--service-color), 0 0 0 2px rgba(113,84,218,.08); }
.appointment-service-option input:checked + span::after { content: "✓"; position: absolute; top: 7px; right: 8px; color: #6c51d3; font-size: .68rem; font-weight: 900; }
.appointment-service-empty { grid-column: 1 / -1; margin: 0; padding: 14px; color: #77718e; background: #fafafd; border: 1px dashed #ded9eb; border-radius: 11px; text-align: center; font-size: .68rem; font-weight: 700; }
.appointment-service-total { margin-top: 7px; padding: 8px; max-height: min(42vh, 360px); overflow-y: auto; color: #6252a0; background: #f5f2fd; border-radius: 9px; font-size: .65rem; font-weight: 700; }
.appointment-service-total > strong { display: block; }
.appointment-service-order { margin-top: 7px; display: flex; flex-direction: column; gap: 4px; }
.appointment-service-plan { padding: 8px; color: #77718e; background: rgba(255,255,255,.72); border: 1px solid #e9e3f8; border-radius: 9px; }
.appointment-service-plan > header { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.appointment-service-plan > header > span { display: flex; }
.appointment-selected-service-copy { min-width: 0; flex-direction: column; }
.appointment-selected-service-copy small { margin-top: 3px; color: #88829a; font-size: .56rem; font-weight: 650; }
.appointment-selected-service-actions { flex: 0 0 auto; gap: 3px; }
.appointment-service-order b { overflow: hidden; font-size: .61rem; white-space: nowrap; text-overflow: ellipsis; }
.appointment-service-order button { width: 44px; height: 44px; display: grid; place-items: center; color: #6c51d3; background: #f6f3fd; border: 1px solid #e2dcf5; border-radius: 9px; font-size: .76rem; }
.appointment-service-order button:focus-visible, .appointment-service-option:focus-visible { outline: 3px solid rgba(108,81,211,.28); outline-offset: 2px; }
.appointment-service-order .appointment-selected-service-remove { color: #a04455; background: #fff4f5; border-color: #f0dadd; font-size: 1rem; }
.appointment-selected-phase-summary { display: flex; flex-wrap: wrap; gap: 4px; }
.appointment-selected-phase-summary span { padding: 3px 6px; color: #736a8d; background: #f4f1fa; border-radius: 999px; font-size: .52rem; font-weight: 700; }
.appointment-duration-control input.is-manually-modified { border-color: #c88432; background: #fff9ef; box-shadow: 0 0 0 2px rgba(200,132,50,.12); }
.appointment-duration-control #appointment-duration-status.is-modified { color: #a46218; font-weight: 800; }
.appointment-phase-details { margin-top: 7px; }
.appointment-phase-details summary { min-height: 38px; padding: 8px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; color: #57479e; background: #f3effd; border: 1px solid #dfd6f7; border-radius: 8px; cursor: pointer; font-size: .62rem; font-weight: 850; list-style: none; }
.appointment-phase-details summary::-webkit-details-marker { display: none; }
.appointment-phase-details summary span, .appointment-phase-details summary small { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.appointment-phase-details summary small { color: #8074aa; font-size: .55rem; font-weight: 700; }
.appointment-phase-details summary b { grid-row: 1 / span 2; grid-column: 2; padding: 5px 8px; border-radius: 7px; background: #fff; color: #6c51d3; font-size: .56rem; white-space: nowrap; }
.appointment-phase-details[open] summary { border-color: #cfc2f4; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.appointment-phase-editor { margin-top: 7px; display: grid; gap: 7px; }
.appointment-phase-timeline { min-height: 36px; display: flex; overflow: hidden; border: 1px solid #e3def0; border-radius: 8px; background: #fff; }
.appointment-phase-timeline span { min-width: 46px; padding: 7px 6px; display: grid; place-items: center; align-content: center; color: #fff; font-size: .52rem; font-weight: 850; text-align: center; }
.appointment-phase-timeline span b { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .55rem; }
.appointment-phase-timeline span small { margin-top: 1px; font-size: .5rem; opacity: .86; }
.appointment-phase-timeline .is-busy { background: #6d56c7; }
.appointment-phase-timeline .is-free { color: #594f7d; background: repeating-linear-gradient(135deg, #fff, #fff 6px, #eee9fc 6px, #eee9fc 12px); border-inline: 1px solid #e1d9f7; }
.appointment-phase-row { display: grid; grid-template-columns: minmax(92px, 1.2fr) 58px 70px minmax(76px, .8fr) minmax(130px, 1.4fr); gap: 6px; align-items: end; padding: 7px; background: #fff; border: 1px solid #ebe7f4; border-radius: 8px; }
.appointment-phase-row label { margin: 0; color: #77718e; font-size: .53rem; }
.appointment-phase-row label > span { display: block; color: #49445f; font-size: .62rem; font-weight: 850; }
.appointment-phase-row input, .appointment-phase-row select { height: 30px; min-height: 30px; padding: 4px 7px; font-size: .58rem; }
.appointment-phase-row input.is-invalid { border-color: #bd625b; box-shadow: 0 0 0 2px rgba(189,98,91,.16); }
.appointment-phase-row .checkbox-label { min-height: 30px; align-items: center; justify-content: center; padding: 5px 7px; background: #f9f8fc; border: 1px solid #ece8f5; border-radius: 7px; }
.phase-occupation-label, .phase-no-staff { min-height: 30px; display: flex; align-items: center; padding: 5px 8px; border-radius: 7px; font-size: .56rem; font-weight: 800; }
.phase-occupation-label.is-work { background: #f0ecff; color: #6252b8; }
.phase-occupation-label.is-technical, .phase-no-staff { background: #eef8f4; color: #31755f; }
.mobile-work-block-meta { display: block; margin-top: 3px; color: #787386; font-size: .68rem; }
.technical-exposure-advice { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border: 1px solid #dfeee8; border-radius: 12px; background: #f8fcfa; }
.technical-exposure-advice > header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.technical-exposure-advice > header small { color: #6b8078; }
.technical-exposure-card { display: grid; gap: 7px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid #e6f0ec; }
.technical-exposure-card > div, .technical-exposure-card dl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; }
.technical-exposure-card > div span { color: #a06024; font-size: .7rem; }
.technical-exposure-card dl div { display: flex; gap: 5px; }
.technical-exposure-card dt { color: #7b857f; font-size: .66rem; }
.technical-exposure-card dd { margin: 0; font-weight: 850; font-size: .7rem; }
.technical-exposure-card p { margin: 0; color: #5f6f69; font-size: .7rem; line-height: 1.45; }
.technical-exposure-card.has-warning { border-color: #efd7b7; background: #fffaf3; }
.exposure-technical-range { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.appointment-phase-template-action { display: flex; justify-content: flex-start; padding-top: 2px; }
.appointment-save-service-template { width: auto; max-width: 100%; justify-content: center; min-height: 34px; padding-inline: 12px; font-size: .6rem; white-space: normal; text-align: center; }
.appointment-service-order .appointment-save-service-template { width: 100%; height: auto; min-height: 34px; display: inline-flex; border: 1px solid #dedde6; }
.service-skill-editor { padding: 12px; background: #f8f7fb; border: 1px solid #e7e4ee; border-radius: 12px; }
.service-skill-editor > .checkbox-label { margin: 0; }
.skill-checkbox-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.skill-checkbox-grid label { position: relative; margin: 0; cursor: pointer; }
.skill-checkbox-grid input { position: absolute; opacity: 0; pointer-events: none; }
.skill-checkbox-grid span { min-height: 48px; padding: 8px 9px 8px 13px; display: flex; flex-direction: column; justify-content: center; background: #fff; border: 1px solid #e4e2e9; border-radius: 9px; box-shadow: inset 4px 0 var(--skill-color); font-size: .65rem; font-weight: 750; }
.skill-checkbox-grid span small { margin-top: 2px; color: #9293a0; font-size: .52rem; font-weight: 500; }
.skill-checkbox-grid input:checked + span { color: #5844aa; background: #f0ecfd; border-color: #9d87e8; }
.skill-checkbox-grid input:disabled + span { opacity: .48; cursor: default; filter: grayscale(.3); }
.phase-staff-grid { margin-top: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.phase-staff-grid label { margin: 0; padding: 6px; color: #77718e; background: #fff; border: 1px solid #ebe7f4; border-radius: 7px; font-size: .56rem; }
.phase-staff-grid label > span { margin-bottom: 4px; display: flex; justify-content: space-between; gap: 4px; }
.phase-staff-grid label small { color: #a09bad; font-size: .5rem; }
.phase-staff-grid select { height: 30px; min-height: 30px; padding: 4px 23px 4px 7px; font-size: .57rem; }
.free-phase-note { min-height: 47px; padding: 6px; display: flex; flex-direction: column; justify-content: center; color: #6856ad; background: #f2eefc; border: 1px dashed #b9abe8; border-radius: 7px; }
.free-phase-note b { font-size: .64rem; }
.free-phase-note span { margin-top: 2px; font-size: .52rem; }
.appointment-client-picker { position: relative; z-index: 4; }
.appointment-client-input { position: relative; display: flex; align-items: center; color: #8d8e9b; }
.appointment-client-input > svg { position: absolute; left: 11px; z-index: 1; pointer-events: none; }
.appointment-client-input > input[type="text"], .appointment-client-input > input:not([type]) { padding-left: 36px; padding-right: 38px; }
.appointment-client-input > input[type="hidden"] { display: none; }
.appointment-client-input > button { position: absolute; right: 5px; width: 30px; height: 30px; display: grid; place-items: center; color: #8b8c98; background: transparent; border: 0; border-radius: 8px; }
.appointment-client-input > button:hover { color: #6048bd; background: #eeeafd; }
.appointment-client-selected { min-height: 16px; color: #9495a1; font-size: .57rem; font-weight: 500; }
.appointment-client-selected.is-selected { color: #347a6c; }
.appointment-no-show-warning { display: grid; gap: 3px; margin-top: 7px; padding: 10px 12px; color: #744019; background: #fff4df; border: 1px solid #edc98f; border-radius: 10px; font-size: .62rem; }
.appointment-no-show-warning[hidden] { display: none; }
.appointment-no-show-warning strong { letter-spacing: .05em; }
.appointment-no-show-warning button { justify-self: start; margin-top: 3px; padding: 0; }
.attendance-history-list { display: grid; gap: 12px; }
.attendance-incident { padding: 14px; border: 1px solid #e4e2ea; border-radius: 13px; background: #fbfafd; }
.attendance-incident.is-forgiven { opacity: .78; background: #f5f5f7; }
.attendance-incident > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.attendance-incident > header span { padding: 4px 7px; color: #744019; background: #fff4df; border-radius: 8px; font-size: .58rem; font-weight: 800; }
.attendance-incident.is-forgiven > header span { color: #5f6570; background: #e9eaed; }
.attendance-incident-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.attendance-incident-grid > div { display: grid; gap: 2px; }
.attendance-incident-grid small { color: var(--muted); font-size: .57rem; }
.attendance-incident-grid strong { font-size: .67rem; }
.attendance-incident footer { margin-top: 12px; display: flex; justify-content: flex-end; }
.attendance-summary-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.attendance-appointment-note { display: grid; gap: 3px; padding: 10px 12px; color: #744019; background: #fff4df; border: 1px solid #edc98f; border-radius: 10px; font-size: .65rem; }
.no-show-review-inbox { display: grid; gap: 12px; }
.no-show-review-inbox > article { padding: 14px; border: 1px solid #edc98f; border-radius: 13px; background: #fffdf8; }
.no-show-review-inbox > article > header { margin-bottom: 12px; display: flex; justify-content: space-between; gap: 12px; }
.no-show-review-inbox > article > header div { display: grid; gap: 3px; }
.no-show-review-inbox > article > header > span { color: #744019; font-size: .62rem; font-weight: 750; }
.appointment-client-results { position: absolute; z-index: 20; top: calc(100% - 11px); right: 0; left: 0; max-height: 286px; padding: 5px; overflow-y: auto; background: #fff; border: 1px solid #dedde7; border-radius: 11px; box-shadow: 0 16px 38px rgba(40,35,65,.18); }
.appointment-client-results[hidden] { display: none; }
.appointment-client-results button { width: 100%; min-height: 48px; padding: 8px 10px; display: flex; flex-direction: column; align-items: flex-start; color: #4c4d5b; background: transparent; border: 0; border-radius: 8px; text-align: left; }
.appointment-client-results button:hover, .appointment-client-results button:focus { color: #5f49b8; background: #f1edfd; outline: none; }
.appointment-client-results button strong { font-size: .68rem; }
.appointment-client-results button span { margin-top: 3px; overflow: hidden; color: #8c8d99; font-size: .57rem; white-space: nowrap; text-overflow: ellipsis; }
.appointment-client-empty { display: block; padding: 12px 10px; color: #8d8e9a; font-size: .61rem; text-align: center; }
.appointment-client-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.appointment-walkin-fields { margin-top: 10px; padding: 10px; background: #faf9fd; border: 1px solid #ebe8f3; border-radius: 10px; }
.appointment-walkin-fields[hidden] { display: none; }
.appointment-contact-hint { grid-column: 1 / -1; color: #6d6578; font-weight: 700; }
.appointment-suggestions { padding: 12px; background: #f8f7fb; border: 1px solid #e7e4ef; border-radius: 13px; }
.appointment-suggestions > header { margin-bottom: 9px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: #6751bf; }
.appointment-suggestions > header strong, .appointment-suggestions > header small { display: block; }
.appointment-suggestions > header strong { color: #454653; font-size: .72rem; }
.appointment-suggestions > header small { margin-top: 2px; color: #92929e; font-size: .57rem; font-weight: 500; }
.appointment-suggestion-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.appointment-suggestion { min-width: 0; padding: 9px; display: flex; flex-direction: column; align-items: flex-start; color: #565764; background: #fff; border: 1px solid #e3e1e9; border-radius: 9px; text-align: left; }
.appointment-suggestion:hover, .appointment-suggestion.selected { color: #5e49b8; background: #f0ecfd; border-color: #9e89e5; box-shadow: 0 0 0 2px rgba(112,83,211,.08); }
.appointment-suggestion strong { font-size: .72rem; }
.appointment-suggestion span { margin-top: 2px; overflow: hidden; font-size: .57rem; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.appointment-suggestion small { margin-top: 3px; color: #9293a0; font-size: .51rem; }
.suggestion-empty, .suggestion-loading { grid-column: 1 / -1; padding: 10px; color: #8d8e9a; background: #fff; border-radius: 8px; font-size: .61rem; text-align: center; }
.toast-inline.toast-error { color: #a23d3d; background: #fff0f0; border-color: #f1caca; }
.toast-inline.toast-working { color: #5e50a0; background: #f0ecfd; border-color: #d9d0f7; }
.client-detail-section { margin-top: 14px; padding-top: 13px; border-top: 1px solid #ecebf1; }
.client-detail-section > header { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; }
.client-detail-section h3 { margin: 0; font-size: .84rem; }
.client-technical-editor, .consent-editor { padding: 12px; display: flex; flex-direction: column; gap: 9px; background: #f8f7fb; border: 1px solid #e7e4ee; border-radius: 12px; }
.client-technical-editor > strong { font-size: .72rem; }
.client-technical-editor label, .consent-editor label { margin: 0; }
.technical-file { padding: 13px; background: #fffaf4; border: 1px solid #f1dfc7; border-radius: 12px; }
.technical-file-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.technical-file-grid > div { padding: 9px; display: flex; flex-direction: column; background: rgba(255,255,255,.7); border-radius: 8px; }
.technical-file-grid small { color: #97866d; font-size: .53rem; font-weight: 750; }
.technical-file-grid strong { margin-top: 3px; font-size: .63rem; white-space: pre-wrap; }
.technical-history-section { padding: 13px; background: #f8fbff; border: 1px solid #dbe7f5; border-radius: 12px; }
.technical-history-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.technical-history-voice-soon { opacity: .72; }
.technical-history-entry { padding: 10px 0; border-top: 1px solid rgba(23,25,39,.06); }
.technical-history-entry:first-of-type { border-top: 0; padding-top: 0; }
.technical-history-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.technical-history-entry-head strong { font-size: .72rem; }
.technical-history-status { font-size: .54rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: #eef2f7; color: #5d6478; }
.technical-history-status.confirmed { background: #e8f7ef; color: #166534; }
.technical-history-status.draft { background: #fff4e8; color: #9a3412; }
.technical-history-meta { margin: 4px 0 0; color: #7a7f92; font-size: .58rem; }
.technical-history-formula { margin: 6px 0 0; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.8); }
.technical-history-formula small { display: block; color: #7a7f92; font-size: .52rem; font-weight: 800; text-transform: uppercase; }
.technical-history-notes { margin: 6px 0 0; color: #4f5568; font-size: .62rem; white-space: pre-wrap; }
.technical-history-natural-card,
.technical-history-detected-panel,
.technical-history-advanced { display: grid; gap: 12px; padding: 14px; border: 1px solid #dbe7f5; border-radius: 13px; background: #f8fbff; }
.technical-history-context { display: grid; gap: 11px; padding: 13px; color: #334155; background: #f2f7fb; border: 1px solid #cfe0ef; border-radius: 13px; }
.technical-history-context > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.technical-history-context > header strong { font-size: .76rem; }
.technical-history-context > header small { color: #64748b; font-size: .6rem; line-height: 1.35; }
.technical-history-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.technical-history-context-grid span { min-width: 0; padding: 8px; display: grid; gap: 2px; background: rgba(255,255,255,.72); border-radius: 9px; }
.technical-history-context-grid small { color: #64748b; font-size: .55rem; font-weight: 800; text-transform: uppercase; }
.technical-history-context-grid strong { overflow: hidden; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.technical-history-natural-card > header,
.technical-history-detected-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.technical-history-natural-card > header span,
.technical-history-detected-panel > header span { display: grid; gap: 3px; }
.technical-history-natural-card > header strong,
.technical-history-detected-panel > header strong { color: #242936; font-size: .78rem; }
.technical-history-natural-card > header small,
.technical-history-detected-panel > header small,
.technical-history-analysis-actions small { color: #6c7486; font-size: .62rem; line-height: 1.35; }
.technical-history-natural-card textarea { min-height: 92px; font-size: .76rem; line-height: 1.45; }
.technical-history-analysis-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.technical-history-detected-list { display: grid; gap: 9px; }
.technical-detected-product { padding: 11px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .6fr); gap: 10px; align-items: start; background: #fff; border: 1px solid #dfe6f2; border-radius: 11px; box-shadow: 0 8px 22px rgba(28,39,61,.06); }
.technical-detected-product.is-ignored { opacity: .55; background: #f7f7fa; }
.technical-detected-main { display: grid; gap: 3px; min-width: 0; }
.technical-detected-main strong { color: #252938; font-size: .76rem; line-height: 1.25; }
.technical-detected-main small { color: #697388; font-size: .6rem; line-height: 1.35; }
.technical-detected-main em { color: #9a5a18; font-size: .6rem; font-style: normal; }
.technical-detected-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.technical-detected-controls label { margin: 0; font-size: .58rem; }
.technical-detected-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.technical-detected-actions .danger { color: #a44848; }
.technical-history-unresolved { display: grid; gap: 5px; padding: 10px; color: #8a4d11; background: #fff7e8; border: 1px solid #f2dbb8; border-radius: 10px; font-size: .62rem; }
.technical-history-unresolved span { display: block; }
.technical-history-advanced { background: #fff; }
.technical-history-advanced > summary { cursor: pointer; color: #4f5f7a; font-size: .72rem; font-weight: 800; }
.technical-history-products-editor { display: grid; gap: 8px; padding: 12px; border: 1px solid #dbe7f5; border-radius: 10px; background: rgba(255,255,255,.72); }
.technical-history-products-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.technical-history-products-editor > header strong { font-size: .68rem; }
.technical-history-product-line { display: grid; gap: 10px; padding: 11px; background: #fff; border: 1px solid rgba(23,25,39,.08); border-radius: 11px; }
.technical-history-product-line:first-child { border-top: 1px solid rgba(23,25,39,.08); padding-top: 11px; }
.technical-history-deduct-flag { display: flex; align-items: flex-start; gap: 8px; font-size: .58rem; color: #5d6478; }
.technical-history-deduct-flag span { display: grid; gap: 2px; }
.technical-history-deduct-flag strong { font-size: .62rem; color: #373847; }
.technical-product-picker { display: grid; gap: 6px; position: relative; }
.technical-product-input-wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #dfe3ec; border-radius: 10px; background: #fff; }
.technical-product-input-wrap input[type="search"] { border: 0; padding: 10px 0; min-width: 0; background: transparent; }
.technical-product-clear { border: 0; background: transparent; color: #7a7f92; cursor: pointer; }
.technical-product-selected { display: inline-flex; width: fit-content; max-width: 100%; padding: 5px 8px; overflow: hidden; color: #315f54; background: #e9f7f1; border: 1px solid #cce7dc; border-radius: 999px; font-size: .64rem; font-weight: 750; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.technical-product-results { position: absolute; left: 0; right: 0; top: calc(100% - 4px); z-index: 12; display: grid; gap: 4px; max-height: 220px; overflow: auto; padding: 6px; border: 1px solid #dfe3ec; border-radius: 12px; background: #fff; box-shadow: 0 14px 34px rgba(17,17,17,.12); }
.technical-product-option { width: 100%; padding: 8px 10px; display: grid; gap: 2px; text-align: left; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.technical-product-option strong { font-size: .64rem; }
.technical-product-option small { color: #7a7f92; font-size: .54rem; }
.technical-product-option:hover,
.technical-product-option.is-active { background: #f4f7ff; }
.technical-product-empty { margin: 0; padding: 8px 10px; color: #7a7f92; font-size: .58rem; }
@media (max-width: 640px) {
  .technical-product-results { max-height: 180px; }
  .technical-history-product-line .form-grid { grid-template-columns: 1fr; }
  .technical-history-natural-card > header,
  .technical-history-detected-panel > header,
  .technical-history-analysis-actions { align-items: stretch; flex-direction: column; }
  .technical-history-context-grid { grid-template-columns: 1fr; }
  .technical-detected-product { grid-template-columns: 1fr; }
  .technical-detected-controls { grid-template-columns: 1fr 1fr; }
}
.consent-event { min-height: 42px; padding: 7px 0; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; border-top: 1px solid #efedf3; }
.consent-event span { display: flex; flex-direction: column; }
.consent-event strong { font-size: .66rem; }
.consent-event small, .consent-event time { color: #92939f; font-size: .52rem; }
.consent-event b { padding: 4px 6px; border-radius: 6px; font-size: .54rem; }
.consent-event b.granted { color: #277a69; background: #e7f5f0; }
.consent-event b.revoked { color: #a35c55; background: #faecea; }
.followup-entry { padding: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; border-top: 1px solid #f0eff3; }
.followup-entry strong { font-size: .7rem; }
.followup-entry span { color: #8d8e9b; font-size: .58rem; }
.followup-entry p { grid-column: 1 / -1; margin: 0; font-size: .64rem; }
.debt-entry { padding: 9px 0; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; border-top: 1px solid #f0eff3; }
.debt-entry > span { display: flex; flex-direction: column; }
.debt-entry strong { font-size: .7rem; }
.debt-entry small { color: #999aa7; font-size: .57rem; }
.debt-entry b { color: #a45f32; font-size: .75rem; }
.debt-entry button { min-height: 32px; padding: 0 9px; font-size: .6rem; }
.debt-amount { padding: 14px; display: flex; justify-content: space-between; color: #9d5b2c; background: #fff4e8; border-radius: 11px; }
.communication-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.mixed-payments { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ecebf1; }
.mixed-payments > header { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.mixed-payments > header strong { font-size: .72rem; }
.payment-line { margin-bottom: 6px; display: grid; grid-template-columns: 1fr 95px auto; gap: 6px; }
.payment-line select, .payment-line input { min-width: 0; height: 37px; border: 1px solid #dedde6; border-radius: 8px; background: #fff; padding: 0 8px; }
.payment-balance { margin-top: 8px; padding: 9px 10px; display: flex; justify-content: space-between; color: #36766a; background: #edf8f4; border-radius: 9px; font-size: .65rem; }
.payment-balance.has-debt { color: #9d5b2c; background: #fff5e9; }
.mixed-payments > small { display: block; margin-top: 6px; color: #9797a4; font-size: .57rem; line-height: 1.4; }
.cash-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.unresolved-appointments { padding: 20px; border-color: #edc98f; }
.unresolved-appointments > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.unresolved-appointments > header > span { padding: 6px 9px; color: #744019; background: #fff4df; border-radius: 9px; font-size: .65rem; font-weight: 750; }
.unresolved-appointment-list { display: grid; gap: 10px; }
.unresolved-appointment-list > article { padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fcfbfe; border: 1px solid #e7e4ef; border-radius: 12px; }
.unresolved-appointment-list > article > div:first-child { display: grid; gap: 3px; }
.unresolved-appointment-list small { color: var(--muted); }
.unresolved-appointment-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.unresolved-appointment-actions button { min-height: 34px; padding: 7px 10px; font-size: .62rem; }
.unresolved-appointment-actions .is-selected { color: #267664; background: #e9f7f2; border-color: #8bc8b7; }
.cash-card { padding: 20px; }
.cash-movement-list { margin-top: 16px; padding-top: 13px; border-top: 1px solid #ecebf1; }
.cash-movement-list > header { margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; }
.cash-movement-list > header strong { font-size: .7rem; }
.cash-movement-list > header span { color: #858692; font-size: .58rem; }
.cash-movement-list > div:not(.empty-state) { min-height: 40px; padding: 6px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #f0eff3; }
.cash-movement-list > div > span { display: flex; flex-direction: column; }
.cash-movement-list > div strong { font-size: .63rem; }
.cash-movement-list > div small { margin-top: 2px; color: #92939f; font-size: .53rem; }
.cash-movement-list > div b { font-size: .65rem; }
.cash-movement-list > div.positive b { color: #277a69; }
.cash-movement-list > div.negative b { color: #ae5a53; }
.cash-methods > div { padding: 11px 0; display: flex; justify-content: space-between; border-top: 1px solid #efeff3; font-size: .72rem; }
.closure-result { padding: 14px; display: flex; flex-direction: column; gap: 6px; color: #347266; background: #edf8f4; border-radius: 12px; font-size: .72rem; }
.closure-result.has-difference { color: #a05b2c; background: #fff3e5; }
.closure-method-block { padding: 12px; background: #f8f7fb; border: 1px solid #eceaf2; border-radius: 11px; }
.closure-method-block > header { margin-bottom: 9px; display: flex; justify-content: space-between; gap: 10px; }
.closure-method-block > header strong { font-size: .72rem; }
.closure-method-block > header span, .closure-method-block > small { color: #8d8e9b; font-size: .61rem; }
.purchase-orders-panel { padding: 20px; }
.purchase-order-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.stock-movement-panel { padding: 18px; }
.stock-movement-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.stock-movement-grid article { min-height: 58px; padding: 9px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; background: #fafafd; border: 1px solid #eceaf0; border-radius: 9px; }
.stock-movement-grid article > span { min-width: 30px; padding: 5px; border-radius: 7px; font-size: .61rem; font-weight: 850; text-align: center; }
.stock-movement-grid article > span.positive { color: #277a69; background: #e7f5f0; }
.stock-movement-grid article > span.negative { color: #ae5a53; background: #faecea; }
.stock-movement-grid article > div { min-width: 0; display: flex; flex-direction: column; }
.stock-movement-grid strong { overflow: hidden; font-size: .62rem; white-space: nowrap; text-overflow: ellipsis; }
.stock-movement-grid small { margin-top: 2px; overflow: hidden; color: #92939f; font-size: .5rem; white-space: nowrap; text-overflow: ellipsis; }
.stock-movement-grid b { color: #777885; font-size: .55rem; }
.purchase-order-card { padding: 13px; border: 1px solid #e8e7ed; border-radius: 13px; }
.purchase-order-card > div:first-child { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: center; }
.purchase-order-card > div:first-child small { grid-column: 2; color: #91929f; font-size: .58rem; }
.purchase-order-card > div:first-child strong { font-size: .7rem; }
.purchase-status { padding: 4px 7px; color: #6654a9; background: #f0ecfd; border-radius: 7px; font-size: .55rem; font-weight: 800; }
.purchase-status.status-received { color: #287064; background: #e7f6f1; }
.purchase-status.status-partial { color: #9b602f; background: #fff2e4; }
.purchase-progress { height: 5px; margin: 11px 0; overflow: hidden; background: #ecebf1; border-radius: 5px; }
.purchase-progress span { height: 100%; display: block; background: linear-gradient(90deg,#7c61e5,#55c7bd); border-radius: 5px; }
.purchase-order-card > div:last-child { display: flex; align-items: center; gap: 8px; color: #888997; font-size: .59rem; }
.purchase-order-card > div:last-child strong { margin-left: auto; color: #444553; font-size: .7rem; }
.purchase-order-card > div:last-child button { min-height: 30px; padding: 0 8px; font-size: .56rem; }
.purchase-line-builder { display: grid; grid-template-columns: minmax(0,1.5fr) 85px 105px auto; align-items: end; gap: 7px; }
.purchase-lines { padding: 9px; background: #f8f7fb; border-radius: 11px; }
.purchase-line { padding: 8px 0; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; border-top: 1px solid #ebe9f0; }
.purchase-line:first-child { border-top: 0; }
.purchase-line > span { display: flex; flex-direction: column; }
.purchase-line strong { font-size: .68rem; }
.purchase-line small { color: #9293a0; font-size: .56rem; }
.purchase-line b { font-size: .68rem; }
.purchase-line-total { padding-top: 9px; display: flex; justify-content: space-between; border-top: 1px solid #dedbe8; font-size: .7rem; }
.receive-lines label { padding: 10px 0; display: grid !important; grid-template-columns: minmax(0,1fr) 90px; align-items: center; gap: 10px; border-top: 1px solid #efeff3; }
.receive-lines label > span { display: flex; flex-direction: column; }
.receive-lines label strong { font-size: .7rem; }
.receive-lines label small { color: #9293a0; font-size: .57rem; font-weight: 500; }
.time-clock-panel { padding: 20px; }
.clock-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.clock-card { padding: 11px; border: 1px solid #e8e7ed; border-radius: 12px; }
.clock-card > div:first-child { display: flex; align-items: center; gap: 8px; }
.clock-card > div:first-child > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.clock-card strong { font-size: .72rem; }
.clock-card small { color: #9293a0; font-size: .58rem; }
.clock-actions { margin-top: 9px; display: flex; gap: 6px; }
.clock-actions button { min-height: 34px; padding: 0 9px; flex: 1; font-size: .62rem; }
.timesheet-list { margin-top: 14px; }
.timesheet-list > div { padding: 9px 0; display: grid; grid-template-columns: 1fr auto auto; gap: 15px; border-top: 1px solid #efeff3; color: #6f7080; font-size: .64rem; }
.timesheet-list > div > span:first-child { display: flex; flex-direction: column; }
.pagination { padding: 13px 4px 3px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.pagination span { color: #888997; font-size: .64rem; }
.pagination button { min-height: 34px; padding: 0 12px; font-size: .64rem; }
.header-actions { display: flex; gap: 8px; }
.ticket-linked { margin-right: auto; display: flex; align-items: center; gap: 6px; color: #267664; font-size: .7rem; font-weight: 700; }

.table-surface { overflow: hidden; }
.table-toolbar { padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.search-box { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 13px; color: #7d7f8f; background: #f5f5f8; border: 1px solid #dedde7; border-radius: 12px; font-size: var(--font-size-sm); }
.search-box input { min-width: 0; flex: 1; min-height: 40px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.search-box input { width: 290px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .78rem; }
.platform-filters { padding: 13px 19px; display: grid; grid-template-columns: minmax(240px, 1fr) 180px 180px; gap: 10px; border-bottom: 1px solid var(--line); }
.platform-filters label { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; color: #8f8f9b; background: #f7f7fa; border: 1px solid #e5e4eb; border-radius: 10px; }
.platform-filters input, .platform-filters select { width: 100%; height: 40px; color: var(--ink); background: #f7f7fa; border: 1px solid #e5e4eb; border-radius: 10px; outline: 0; font-size: .72rem; }
.platform-filters label input { height: auto; padding: 0; background: transparent; border: 0; }
.platform-filters select { padding: 0 10px; }
.platform-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: transparent; border: 0; box-shadow: none; }
.platform-plans article { padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.platform-plans header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.platform-plans strong { font-size: .83rem; }
.platform-plans header span { color: #5e48ba; font-size: .66rem; font-weight: 800; }
.platform-plans p { margin: 8px 0 3px; color: #656675; font-size: .68rem; }
.platform-plans small { color: #92929d; font-size: .61rem; }
.pilot-checklist { overflow: hidden; }
.pilot-grid { padding: 16px 19px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pilot-card { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.pilot-card.is-pending { opacity: .72; }
.pilot-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pilot-card header strong { font-size: .78rem; }
.pilot-card header span { padding: 4px 7px; color: #5c47b5; background: #eeeafd; border-radius: 7px; font-size: .62rem; font-weight: 800; }
.pilot-card > small { display: block; margin: 4px 0 10px; color: #8f909d; font-size: .62rem; }
.pilot-card p { margin: 0; min-height: 27px; display: flex; align-items: center; gap: 7px; color: #9a6b31; border-top: 1px solid #f0eff4; font-size: .62rem; }
.pilot-card p.done { color: #267664; }
.platform-summary { display: grid; gap: 16px; }
.platform-summary h3 { margin: 0 0 9px; font-size: .82rem; }
.feature-fieldset { padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border: 1px solid #e5e4eb; border-radius: 10px; }
.feature-fieldset legend { padding: 0 5px; color: #777887; font-size: .66rem; font-weight: 800; }
.feature-fieldset label { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .62rem; }
.feature-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-chip-list span { padding: 6px 8px; color: #5f4cb6; background: #efebfd; border-radius: 7px; font-size: .62rem; font-weight: 700; }
.success-note { padding: 10px 12px; display: flex; align-items: center; gap: 8px; color: #267664; background: #e8f6f1; border-radius: 10px; font-size: .68rem; }
.result-count { display: flex; align-items: center; gap: 6px; color: #8b8b98; font-size: .72rem; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 19px; color: #9999a6; background: #fafafd; border-bottom: 1px solid var(--line); font-size: .63rem; letter-spacing: .07em; text-transform: uppercase; }
td { padding: 14px 19px; border-bottom: 1px solid #efeff2; color: #646575; font-size: .76rem; }
tbody tr { transition: .15s ease; }
tbody tr:hover { background: #faf9fd; }
td > strong, td > span { display: block; }
td > span { margin-top: 3px; color: #9a9aa7; font-size: .66rem; }
.client-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.client-cell > div:last-child { display: flex; flex-direction: column; }
.client-cell strong { color: #353646; font-size: .78rem; }
.client-cell span { max-width: 260px; overflow: hidden; color: #9a9aa7; font-size: .65rem; white-space: nowrap; text-overflow: ellipsis; }
.avatar.soft { width: 34px; height: 34px; color: #735bd0; background: #eeeafd; }
.consent { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; color: #7d7e8b; background: #f1f1f4; border-radius: 7px; font-size: .63rem; }
.consent.yes { color: #247b69; background: #e6f5ef; }
.row-action { padding: 6px 9px; color: #7459d5; background: #f0ecfd; border: 0; border-radius: 8px; font-size: .65rem; font-weight: 700; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row-action.primary-row-action { color: #fff; background: var(--ink); }
.global-results { display: flex; flex-direction: column; gap: 8px; }
.global-results button { width: 100%; padding: 12px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 10px; align-items: center; color: var(--ink); background: #fbfbfd; border: 1px solid var(--line); border-radius: 10px; text-align: left; }
.global-results button:hover { border-color: #cfc9e8; background: #f8f6ff; }
.global-results strong, .global-results small { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.global-results small { grid-column: 2; color: var(--muted); font-size: .68rem; }

.category-title { margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.category-title span { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.category-title h2 { margin: 0; font-size: .9rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card { min-height: 180px; padding: 20px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 17px; transition: .2s ease; }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.inactive-card { opacity: .55; filter: grayscale(.3); }
.service-card-top { display: flex; justify-content: space-between; }
.service-mark { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; border-radius: 12px; }
.service-main { margin: 20px 0 18px; }
.service-code { color: #9999a7; font-size: .58rem; font-weight: 800; letter-spacing: .09em; }
.service-main h3 { font-size: .93rem; }
.service-main p { margin: 4px 0 0; font-size: .69rem; }
.service-phases { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 5px; }
.phase-chip { min-height: 31px; padding: 5px 7px; display: flex; flex-direction: column; color: #7a7b89; background: #f4f3f7; border-radius: 7px; font-size: .54rem; }
.phase-chip b { color: #4d4e5c; font-size: .67rem; }
.phase-chip-free { color: #7059c8; background: #eeeafd; border: 1px dashed #b7a9e8; }
.service-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.service-meta span, .service-meta strong { display: flex; align-items: center; gap: 5px; font-size: .7rem; }
.service-meta span { color: #888997; }
.service-meta strong { color: #414250; }

.pos-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, .68fr); gap: 17px; align-items: start; }
.catalog-panel { padding: 20px; }
.catalog-tabs { display: inline-flex; padding: 4px; background: #f1f1f5; border-radius: 11px; }
.catalog-tabs button { height: 34px; padding: 0 13px; display: flex; align-items: center; gap: 6px; color: #858695; background: transparent; border: 0; border-radius: 8px; font-size: .71rem; font-weight: 700; }
.catalog-tabs button.active { color: #4f3ba5; background: #fff; box-shadow: 0 3px 10px rgba(40,35,70,.08); }
.catalog-search { margin: 17px 0; }
.catalog-search input { width: 100%; }
.catalog-result-meta { margin: -2px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #8d8d99; font-size: .65rem; }
.catalog-result-meta span { color: #29263a; font-weight: 800; }
.catalog-result-meta small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.catalog-item { min-height: 78px; padding: 11px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; color: inherit; background: #fff; border: 1px solid #e7e6ec; border-radius: 13px; text-align: left; transition: .16s ease; }
.catalog-item:hover { border-color: #c9c1ec; box-shadow: 0 7px 18px rgba(80,61,145,.08); }
.catalog-icon { width: 37px; height: 37px; display: grid; place-items: center; color: #7359d4; background: #f0ecfd; border-radius: 10px; }
.catalog-icon svg { width: 17px; }
.catalog-copy { display: flex; min-width: 0; flex-direction: column; }
.catalog-copy strong { font-size: .75rem; }
.catalog-copy small { margin-top: 3px; color: #9999a5; font-size: .62rem; }
.catalog-item b { font-size: .73rem; }
.add-icon { color: #8d7ad0; }
.checkout-panel { position: sticky; top: 90px; padding: 20px; }
.checkout-panel > header { display: flex; align-items: flex-start; justify-content: space-between; }
.checkout-panel > header span { padding: 5px 8px; color: #7760cc; background: #f0ecfd; border-radius: 7px; font-size: .64rem; font-weight: 700; }
.pos-documents { padding: 18px; }
.pos-documents .section-header > span { max-width: 480px; color: #8d8e9b; font-size: .57rem; text-align: right; }
.pos-document-columns { display: grid; grid-template-columns: repeat(3,minmax(240px,1fr)); gap: 18px; }
.pos-document-columns h3 { margin: 0 0 8px; font-size: .76rem; }
.pos-document-row { min-height: 48px; padding: 7px 0; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 9px; border-top: 1px solid #efedf3; }
.pos-document-row > span:first-child { min-width: 0; display: flex; flex-direction: column; }
.pos-document-row strong, .pos-document-row b { font-size: .65rem; }
.pos-document-row small { margin-top: 2px; overflow: hidden; color: #92939f; font-size: .53rem; white-space: nowrap; text-overflow: ellipsis; }
.pos-document-row.is-voided { opacity: .52; }
.pos-review-list { display: flex; flex-direction: column; min-width: 0; }
.pos-review-card { padding: 12px 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #efedf3; }
.pos-review-card-grid { display: grid; grid-template-columns: minmax(8rem, 1.6fr) minmax(6.5rem, max-content) minmax(6rem, max-content); gap: 12px 18px; align-items: start; }
.pos-review-card-field { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pos-review-card-label { color: #92939f; font-size: .52rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pos-review-card-value { overflow: hidden; color: #2e2f3d; font-size: .72rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.pos-review-card-total { color: #2e2f3d; font-size: .72rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos-review-card-amount { align-items: flex-end; text-align: right; }
.pos-review-card-amount .pos-review-card-label { text-align: right; }
.pos-review-card-status .status-chip { align-self: flex-start; max-width: 100%; white-space: nowrap; }
.pos-review-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.document-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 5px; }
.review-older-note { margin-top: 8px; padding: 8px 10px; color: #74659f; background: #f2eefc; border-radius: 9px; font-size: .62rem; font-weight: 700; }
.text-button.danger { color: #b45e58; }
.danger-button { background: linear-gradient(135deg, #bd625b, #9e4742) !important; }
.compact-label { margin: 16px 0; display: flex; flex-direction: column; gap: 6px; color: #777887; font-size: .67rem; font-weight: 700; }
.compact-label select, .form-stack input, .form-stack select, .form-stack textarea { width: 100%; color: #323341; background: #fbfbfd; border: 1px solid #dedde5; border-radius: 10px; outline: none; }
.compact-label select { height: 39px; padding: 0 10px; }
.cart-list { min-height: 220px; border-top: 1px solid #efeff2; border-bottom: 1px solid #efeff2; }
.empty-cart { height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #a0a0ad; }
.empty-cart strong { margin: 10px 0 3px; color: #5b5c69; font-size: .8rem; }
.empty-cart span { font-size: .64rem; }
.cart-row { padding: 12px 0; display: grid; grid-template-columns: minmax(110px, 1fr) minmax(150px, .9fr) auto auto; align-items: center; gap: 9px; border-bottom: 1px solid #f1f0f3; }
.cart-item-copy { min-width: 0; display: flex; flex-direction: column; }
.cart-item-copy strong, .cart-item-copy span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cart-row strong { font-size: .71rem; }
.cart-row span { color: #9a9aa7; font-size: .6rem; }
.cart-price-controls { display: grid; grid-template-columns: 1fr 72px; gap: 5px; }
.cart-price-controls label { margin: 0; color: #8d8e9b; font-size: .5rem; }
.cart-price-controls input { min-height: 32px; padding: 5px 7px; font-size: .62rem; }
.cart-line-total { min-width: 61px; text-align: right; }
.quantity { display: flex; align-items: center; gap: 5px; }
.quantity button { width: 25px; height: 25px; display: grid; place-items: center; color: #777887; background: #f4f3f7; border: 0; border-radius: 7px; }
.quantity b { min-width: 15px; text-align: center; font-size: .68rem; }
.checkout-total { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; }
.checkout-total span { color: #737482; font-size: .8rem; }
.checkout-total strong { font-weight: 800; font-size: 1.55rem; letter-spacing: 0; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.payment-options button { height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #777887; background: #fff; border: 1px solid #dedde6; border-radius: 9px; font-size: .68rem; font-weight: 700; }
.payment-options button.active { color: #654bc9; background: #f0ecfd; border-color: #bfb1ed; }
.checkout-button { width: 100%; margin-top: 13px; }
.appointment-ticket-banner { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; color: #5c4aab; background: #f0ecfd; border: 1px solid #d9d0f7; border-radius: 12px; }
.appointment-ticket-banner > div { display: flex; align-items: center; gap: 10px; }
.appointment-ticket-banner span { display: flex; flex-direction: column; }
.appointment-ticket-banner strong { font-size: .75rem; }
.appointment-ticket-banner small { margin-top: 2px; color: #8174af; font-size: .62rem; }
.appointment-ticket-banner button { color: #725aca; background: transparent; border: 0; font-size: .65rem; font-weight: 700; }
.success-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(23,25,39,.65); backdrop-filter: blur(6px); }
.success-card { width: min(390px, calc(100vw - 30px)); padding: 38px; display: flex; flex-direction: column; align-items: center; background: #fff; border-radius: 24px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.24); animation: success-in .28s ease-out; }
@keyframes success-in { from { opacity: 0; transform: scale(.92); } }
.success-card > svg { margin-bottom: 18px; color: #42a68c; }
.success-card > strong { margin: 6px 0 24px; font-weight: 800; font-size: 2rem; }

.inventory-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.inventory-summary article { padding: 18px; display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.inventory-summary svg { width: 20px; color: var(--primary); }
.inventory-summary div { display: flex; flex-direction: column; }
.inventory-summary span { color: #858594; font-size: .68rem; }
.inventory-summary strong { font-weight: 800; font-size: 1.35rem; }
.import-wizard { display: grid; gap: 18px; }
.import-step { padding: 14px 0; border-top: 1px solid var(--line); }
.import-step:first-child { border-top: 0; padding-top: 0; }
.import-template-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.import-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.import-preview-table { max-height: 280px; overflow: auto; margin-top: 10px; }
.import-action-badge { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; background: #eef1fb; color: #4d5d96; }
.import-action-create .import-action-badge { background: #e7f7ef; color: #1f7a4d; }
.import-action-update .import-action-badge { background: #fff4df; color: #9a6a16; }
.import-action-skip .import-action-badge { background: #f2f2f5; color: #666; }
.import-action-error .import-action-badge { background: #fdecec; color: #b42318; }
.import-summary-card p { margin: 0 0 12px; }
.import-error-log { white-space: pre-wrap; background: #fafafa; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: .78rem; color: #8a1f1f; }
.product-avatar { width: 34px; height: 34px; display: grid; place-items: center; color: #735bd0; background: #eeeafd; border-radius: 10px; }
.stock-cell { min-width: 130px; }
.stock-cell strong, .stock-cell span { display: block; }
.stock-cell span { margin-top: 2px; color: #999aa6; font-size: .6rem; }
.stock-bar { width: 100px; height: 4px; margin-top: 6px; background: #e9e8ed; border-radius: 4px; overflow: hidden; }
.stock-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8065e4, #a992f5); border-radius: inherit; }
.stock-status { display: inline-flex; padding: 5px 8px; color: #267664; background: #e8f6f1; border-radius: 7px; font-size: .63rem; font-weight: 700; }
.stock-status.low { color: #9a5c26; background: #fff1de; }
.editor-section, .phase-editor { padding: 14px; background: #f8f7fb; border: 1px solid #e8e6ef; border-radius: 13px; }
.editor-section > header, .phase-editor > header { margin-bottom: 13px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.editor-section header strong, .phase-editor header strong { display: block; font-size: .75rem; }
.editor-section header small, .phase-editor header small { color: #9999a6; font-size: .61rem; }
.phase-editor header span { padding: 5px 8px; color: #6850c4; background: #ebe6fc; border-radius: 7px; font-size: .65rem; font-weight: 800; white-space: nowrap; }
.phase-editor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.phase-editor-grid label { padding: 9px; background: #fff; border: 1px solid #e5e3eb; border-radius: 9px; }
.phase-editor-grid label small { color: #9a9aa7; font-size: .55rem; font-weight: 400; }
.product-stock-grid { margin-bottom: 10px; }
.catalog-filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.filter-chip { padding: 7px 11px; color: #5d5e6c; background: #f7f6fa; border: 1px solid #e4e2ea; border-radius: 999px; font-size: .62rem; font-weight: 700; cursor: pointer; }
.filter-chip.active { color: #4f3aa8; background: #f1edff; border-color: #d5cbff; }
.filter-chip-clear { color: #8d8e9b; background: transparent; }
.inventory-products-panel .table-toolbar { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.inventory-products-panel .catalog-filter-chips { margin: 0; flex: 1 1 100%; }
.catalog-panel .catalog-filter-chips { margin: 0 0 12px; }
.catalog-diagnostics-panel {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff8e8;
  border: 1px dashed #e8c96a;
  border-radius: 12px;
  font-size: .62rem;
}
.catalog-diagnostics-panel header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.catalog-diagnostics-panel header strong { color: #7a5a00; font-size: .68rem; }
.catalog-diagnostics-panel header small { color: #9a8450; font-size: .58rem; }
.catalog-diagnostics-panel dl { display: grid; gap: 6px; margin: 0 0 10px; }
.catalog-diagnostics-panel dl div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; }
.catalog-diagnostics-panel dt { color: #8a7340; font-weight: 700; }
.catalog-diagnostics-panel dd { margin: 0; color: #4a4028; word-break: break-word; }

.reports-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.report-export-panel { padding: 20px; }
.report-export-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.report-export-grid article { min-height: 92px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fafafd; border: 1px solid #ebeaf1; border-radius: 10px; }
.report-export-grid article.is-clickable { cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.report-export-grid article.is-clickable:hover, .report-export-grid article.is-clickable:focus-visible { transform: translateY(-1px); background: #fff; border-color: #cfc7f7; outline: none; }
.report-export-grid strong { display: block; color: #29263a; font-size: .78rem; }
.report-export-grid small { display: block; margin-top: 4px; color: #8d8d99; font-size: .61rem; line-height: 1.35; }
.report-export-grid em { display: block; margin-top: 7px; color: #745be0; font-size: .6rem; font-style: normal; font-weight: 800; }
.report-export-grid span { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.report-export-grid button { min-height: 34px; padding: 0 10px; font-size: .62rem; }
.report-card { min-height: 260px; padding: 20px; }
.report-wide { grid-column: span 2; }
.report-card > header { margin-bottom: 15px; }
.report-row { min-height: 48px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; border-top: 1px solid #efeff2; }
.report-row-button { width: 100%; padding: 0; color: inherit; background: transparent; border: 0; text-align: left; cursor: pointer; }
.report-row-button:hover, .report-row-button:focus-visible { background: #faf8ff; outline: 2px solid #d8d0fa; outline-offset: 3px; }
.report-row span { color: #555665; font-size: .7rem; }
.report-row strong { font-size: .73rem; }
.report-row small { grid-column: 1 / -1; margin-top: -8px; color: #9a9aa7; font-size: .57rem; }
.report-focus { min-height: 130px; width: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: #7a68bc; background: #f6f3fe; border: 0; border-radius: 12px; text-align: center; }
.report-focus.is-clickable { cursor: pointer; }
.report-focus.is-clickable:hover, .report-focus.is-clickable:focus-visible { background: #eee7ff; outline: 2px solid #d8d0fa; }
.report-focus strong { font-size: 1.55rem; }
.report-focus span { color: #8a8b98; font-size: .61rem; }
.mini-bars { height: 190px; padding-top: 15px; display: flex; align-items: flex-end; gap: 12px; overflow-x: auto; }
.mini-bars > div, .mini-bars > button { position: relative; min-width: 44px; height: 150px; display: flex; align-items: center; justify-content: flex-end; flex-direction: column; }
.mini-bars > button { padding: 0; color: inherit; background: transparent; border: 0; cursor: pointer; }
.mini-bars > button:hover, .mini-bars > button:focus-visible { outline: 2px solid #d8d0fa; outline-offset: 4px; }
.mini-bars span { width: 22px; min-height: 8px; background: linear-gradient(180deg, #9c85ef, #6950cb); border-radius: 6px 6px 3px 3px; }
.mini-bars small { margin-top: 7px; color: #8f909e; font-size: .56rem; }
.mini-bars b { position: absolute; top: 0; font-size: .54rem; transform: rotate(-35deg); transform-origin: center; }
.coverage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.coverage-grid > div { min-height: 88px; padding: 12px; display: flex; flex-direction: column; background: #f7f6fa; border-radius: 11px; }
.coverage-grid-operational { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-family-card { min-height: 96px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: inherit; background: linear-gradient(180deg, #faf9fd, #f3f1fa); border: 1px solid #e6e1f4; border-radius: 12px; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.report-family-card:hover, .report-family-card:focus-visible { border-color: #c8baf5; box-shadow: 0 8px 18px rgba(44,39,77,.08); transform: translateY(-1px); outline: none; }
.report-family-card strong { color: #6850c4; font-size: 1.2rem; }
.report-family-card span { color: #535461; font-size: .72rem; font-weight: 800; line-height: 1.25; }
.report-family-card small { color: #9999a6; font-size: .58rem; }
.report-search-panel { padding: 14px 16px; }
.report-search-panel label { margin: 0; width: 100%; max-width: 420px; }
.report-catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-catalog-card { min-height: 92px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; color: inherit; background: #fff; border: 1px solid #eceaf2; border-radius: 12px; text-align: left; cursor: pointer; }
.report-catalog-card:hover, .report-catalog-card:focus-visible { border-color: #cfc7f7; box-shadow: 0 8px 18px rgba(44,39,77,.07); outline: none; }
.report-catalog-card strong { color: #242235; font-size: .92rem; }
.report-catalog-card span { color: #696a77; font-size: .72rem; line-height: 1.35; }
.report-filters-panel { padding: 16px 18px; }
.report-filters-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; }
.report-filters-grid label { margin: 0; font-size: .72rem; }
.report-filters-grid select, .report-filters-grid input { min-height: 38px; }
.report-filter-check { display: flex; align-items: center; gap: 8px; padding-top: 22px; }
.report-filter-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.report-export-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.report-results-panel { padding: 16px 18px 18px; }
.is-hidden { display: none !important; }
.coverage-grid strong { color: #6850c4; font-size: 1.2rem; }
.coverage-grid span { margin-top: 5px; color: #535461; font-size: .67rem; font-weight: 700; }
.coverage-grid small { margin-top: 3px; color: #9999a6; font-size: .54rem; }
.modal-wide { width: min(980px, 100%); }
.listing-summary { margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.listing-summary span { padding: 8px 10px; color: #696a77; background: #f6f4fb; border: 1px solid #ebe7f6; border-radius: 9px; font-size: .68rem; }
.listing-summary strong { color: #29263a; }
.report-preview-table { max-height: 54vh; border: 1px solid #eceaf2; border-radius: 12px; }
.report-preview-table table { min-width: 760px; }
.report-preview-table th.right, .report-preview-table td.right { text-align: right; }
.report-drill-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.report-drill-grid article { padding: 12px; background: #f8f7fb; border: 1px solid #ebe8f2; border-radius: 10px; }
.report-drill-grid span { display: block; color: #848592; font-size: .62rem; font-weight: 700; }
.report-drill-grid strong { display: block; margin-top: 5px; color: #242235; font-size: 1rem; }
.report-drill-grid-link { padding: 12px; background: #f8f7fb; border: 1px solid #ebe8f2; border-radius: 10px; text-align: left; cursor: pointer; font: inherit; width: 100%; transition: background .15s, border-color .15s; }
.report-drill-grid-link:hover, .report-drill-grid-link:focus-visible { background: #efecf9; border-color: #cfc7ea; }
.report-detail-list { display: grid; gap: 8px; }
.report-detail-list button, .report-detail-list > div { min-height: 50px; padding: 11px 12px; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center; color: inherit; background: #fff; border: 1px solid #eceaf2; border-radius: 10px; text-align: left; }
.report-detail-list button { cursor: pointer; }
.report-detail-list button:hover, .report-detail-list button:focus-visible { border-color: #cfc7f7; outline: none; }
.report-detail-list span { color: #5d5e6d; font-size: .68rem; }
.report-detail-list strong { color: #242235; font-size: .72rem; }
.report-detail-list small { grid-column: 1 / -1; color: #9999a6; font-size: .58rem; }

.marketing-layout { display: grid; grid-template-columns: 1.45fr .75fr; gap: 15px; }
.marketing-card { padding: 21px; }
.marketing-campaigns { grid-row: span 2; }
.marketing-card .section-header > span { color: #8d8e9c; font-size: .65rem; }
.campaign-list, .automation-list { margin-top: 12px; }
.campaign-row { min-height: 72px; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 11px; border-top: 1px solid #efeff2; }
.channel-icon, .automation-icon { width: 35px; height: 35px; display: grid; place-items: center; color: #6e55ca; background: #eeeafd; border-radius: 10px; }
.channel-email { color: #397ea5; background: #e9f4fa; }
.campaign-row > div:nth-child(2), .automation-row > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.campaign-row strong, .automation-row strong { color: #4a4b59; font-size: .72rem; }
.campaign-row small, .automation-row small { margin-top: 3px; color: #9797a4; font-size: .59rem; }
.campaign-status { padding: 5px 7px; border-radius: 7px; color: #806b35; background: #fff3d9; font-size: .57rem; font-weight: 700; }
.status-completed { color: #267664; background: #e7f5ef; }
.status-scheduled { color: #5d55a4; background: #edeafb; }
.campaign-results { display: grid; grid-template-columns: auto auto; gap: 0 6px; text-align: right; }
.campaign-results b { font-size: .66rem; }
.campaign-results small { margin: 0; font-size: .52rem; }
.automation-row { min-height: 62px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border-top: 1px solid #efeff2; cursor: pointer; }
.automation-toggle { width: 34px; height: 18px; accent-color: var(--primary); }
.segment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 15px; }
.segment-grid > div { min-height: 98px; padding: 12px; display: flex; flex-direction: column; background: #f7f6fa; border-radius: 11px; }
.segment-grid strong { color: #6d54ca; font-size: 1.25rem; }
.segment-grid span { margin-top: 5px; color: #555664; font-size: .65rem; font-weight: 700; }
.segment-grid small { margin-top: 3px; color: #9999a6; font-size: .54rem; }

.smart-promotions-panel { padding: 21px; margin-top: 4px; }
.marketing-page .marketing-module { margin-top: 18px; padding: 18px; border: 1px solid #ebebef; border-radius: 18px; background: linear-gradient(180deg, #fcfcfd 0%, #f7f7fa 100%); }
.marketing-module-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.marketing-module-header h2 { margin: 4px 0 0; font-size: 1.05rem; }
.marketing-module-header small { color: #8d8e9c; font-size: .64rem; }
.marketing-module-basic .marketing-layout { margin-top: 0; }
.marketing-side-stack { display: flex; flex-direction: column; gap: 15px; }
.marketing-module-smart .marketing-subpanel,
.marketing-module-videos .marketing-subpanel { margin-top: 12px; }
.marketing-module-smart .product-recommendation-panel { margin-top: 12px; }
.recommendation-stats-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.recommendation-stat { padding: 10px 12px; border-radius: 12px; background: #f3f3f7; text-align: center; }
.recommendation-stat strong { display: block; font-size: 1rem; color: #4a4b59; }
.recommendation-stat span { display: block; margin-top: 2px; color: #8d8e9c; font-size: .58rem; text-transform: uppercase; letter-spacing: .03em; }
.recommendation-stat.accent { background: #ebe8fb; }
.recommendation-stat.accent strong { color: #6e55ca; }
.recommendation-stat.muted { background: #fff; border: 1px dashed #dddde4; }
.recommendation-families-drawer { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #efeff2; border-radius: 12px; background: #fafafb; }
.recommendation-families-drawer summary { cursor: pointer; font-size: .68rem; font-weight: 700; color: #5d5e6c; }
.recommendation-family-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 10px; }
.recommendation-family-grid.compact .recommendation-family-card { padding: 10px; }
.recommendation-family-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid #ececf0; border-radius: 12px; background: #fff; }
.recommendation-family-card.enabled { border-color: #d8d0f8; background: #f8f6ff; }
.recommendation-family-card strong { display: block; font-size: .7rem; }
.recommendation-family-card small { display: block; margin-top: 3px; color: #9797a4; font-size: .56rem; }
.recommendation-family-card em { display: block; margin-top: 4px; color: #b07a2d; font-size: .54rem; font-style: normal; }
.recommendation-toolbar { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.recommendation-table-wrap { border: 1px solid #efeff2; border-radius: 14px; overflow: hidden; background: #fff; }
.recommendation-table tbody tr.is-recommendable { background: #fcfffd; }
.recommendation-table tbody tr.is-blocked { background: #fffafa; }
.recommendation-product-cell { display: flex; flex-direction: column; gap: 2px; }
.recommendation-product-meta { color: #9797a4; font-size: .58rem; }
.recommendation-blockers { display: block; margin-top: 4px; color: #b07a2d; font-size: .54rem; }
.smart-promotions-copy { margin: 0 0 12px; color: #8d8e9c; font-size: .66rem; }
.marketing-inline-error { margin: 0 0 12px; }
.smart-promotion-list { display: flex; flex-direction: column; gap: 10px; }
.smart-promotion-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid #efeff2; }
.smart-promotion-row strong { display: block; font-size: .74rem; }
.smart-promotion-row small { display: block; margin-top: 4px; color: #9797a4; font-size: .58rem; }
.smart-promotion-meta { display: block; margin-top: 6px; color: #7d7e8b; font-size: .56rem; }
.smart-promotion-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.smart-promotion-card-head { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.smart-promotion-thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #f3f3f6; flex: 0 0 auto; }
.smart-promotion-thumb-placeholder { display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #7d7e8b; text-transform: uppercase; }
.media-library-panel { margin: 0 0 18px; padding: 14px; border: 1px solid #efeff2; border-radius: 16px; background: #fafafb; }
.media-library-grid,
.media-library-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.media-library-card,
.media-library-pick-card { display: grid; gap: 8px; padding: 10px; border: 1px solid #ececf0; border-radius: 14px; background: #fff; }
.media-library-pick-card { text-align: left; cursor: pointer; }
.media-library-preview { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #111; }
.media-library-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-library-preview img,
.media-library-preview.compact img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-library-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; background: linear-gradient(180deg, #2a2a35, #111118); }
.media-library-copy strong { display: block; font-size: .72rem; }
.media-library-copy small { color: #8d8e9c; font-size: .58rem; }
.smart-video-source-panel { display: grid; gap: 12px; padding: 12px; border: 1px dashed #dddde5; border-radius: 14px; background: #fcfcfd; }
.smart-video-source-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #e7e7ec; border-radius: 999px; background: #fff; font-size: .68rem; }
.smart-video-preview-wrap video { width: min(100%, 280px); aspect-ratio: 9 / 16; border-radius: 14px; background: #111; display: block; }
.smart-promotion-collage { width: 56px; height: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: 14px; overflow: hidden; flex: 0 0 auto; }
.smart-promotion-collage img { width: 100%; height: 100%; object-fit: cover; }
.modal-card-wide { width: min(1120px, calc(100vw - 32px)); }
.smart-promo-editor { display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 140px); }
.smart-promo-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 18px; overflow: hidden; min-height: 0; }
.smart-promo-main { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; padding-right: 4px; max-height: calc(100vh - 220px); }
.smart-promo-preview-panel { position: sticky; top: 0; align-self: start; padding: 14px; border: 1px solid #efeff2; border-radius: 18px; background: linear-gradient(180deg, #fafafa, #fff); }
.smart-promo-section { padding: 14px; border: 1px solid #efeff2; border-radius: 16px; background: #fff; }
.smart-promo-section header { margin-bottom: 10px; }
.smart-promo-section header strong { display: block; font-size: .78rem; }
.smart-promo-section header small { color: #8d8e9c; font-size: .58rem; }
.smart-promo-checks { align-items: center; }
.smart-promo-image-panel { display: grid; gap: 10px; }
.smart-promo-image-preview { min-height: 120px; border: 1px dashed #d8d8df; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: #fafafa; }
.smart-promo-image-preview img { width: 100%; max-height: 180px; object-fit: cover; }
.smart-promo-image-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.smart-upload-button { position: relative; overflow: hidden; cursor: pointer; }
.smart-pack-pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; margin-bottom: 12px; }
.smart-pack-price-summary { grid-column: 1 / -1; padding: 10px 12px; border-radius: 12px; background: #f7f7f9; font-size: .66rem; }
.smart-pack-price-summary p { margin: 0; }
.smart-pack-price-summary span { color: #7d7e8b; }
.smart-pack-auto-price { grid-column: 1 / -1; }
.smart-pack-manual-price.is-hidden, .smart-pricing-field.is-hidden { display: none; }
.smart-pricing-modes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.smart-pricing-mode { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid #efeff2; border-radius: 999px; font-size: .62rem; }
.smart-pricing-field { display: grid; gap: 6px; font-size: .62rem; }
.smart-pricing-error { grid-column: 1 / -1; margin: 0; }
.smart-pack-savings { grid-column: 1 / -1; color: #0f766e; font-size: .66rem; font-weight: 600; }
.smart-pack-savings p { margin: 0 0 4px; }
.smart-pack-type { display: inline-block; margin-bottom: 2px; font-size: .52rem; letter-spacing: .06em; text-transform: uppercase; color: #bf3f00; font-weight: 700; }
.smart-pack-subtotal { display: block; margin-top: 4px; color: #111; font-weight: 600; font-size: .58rem; }
.smart-pack-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.smart-pack-item { display: grid; grid-template-columns: auto minmax(0, 1fr) 72px auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid #efeff2; border-radius: 14px; }
.smart-pack-thumb { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #f3f3f6; }
.smart-pack-thumb-empty, .smart-catalog-thumb-empty { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #f3f3f6; color: #8d8e9c; }
.smart-pack-item-body strong { display: block; font-size: .68rem; }
.smart-pack-item-body span { display: block; color: #8d8e9c; font-size: .56rem; }
.smart-pack-item-actions { display: flex; gap: 4px; }
.smart-catalog-picker { border-top: 1px solid #efeff2; padding-top: 12px; }
.smart-catalog-search-label { display: block; margin-bottom: 6px; font-size: .62rem; font-weight: 600; }
.smart-catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 10px; }
.smart-catalog-list { display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow-y: auto; }
.smart-catalog-group { display: grid; gap: 8px; }
.smart-catalog-group-title { margin: 0 0 4px; font-size: .58rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #7d7e8b; }
.smart-catalog-loading { color: #7d7e8b; }
.smart-catalog-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 1px solid #efeff2; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
.smart-catalog-item:hover:not(.is-disabled) { border-color: #d7d7df; background: #fafafa; }
.smart-catalog-item.is-disabled { opacity: .72; cursor: not-allowed; }
.smart-catalog-thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #f3f3f6; }
.smart-catalog-item-copy strong { display: block; font-size: .66rem; }
.smart-catalog-item-copy span { display: block; color: #8d8e9c; font-size: .56rem; }
.smart-catalog-price { font-size: .64rem; font-weight: 700; white-space: nowrap; }
.smart-catalog-stock.is-warning { color: #b45309; font-weight: 600; }
.smart-catalog-warning { display: block; color: #b45309; font-size: .54rem; }
.smart-image-hint { margin: 0; font-size: .58rem; color: #b45309; }
.smart-filter-block { margin-bottom: 10px; }
.smart-filter-block p { margin: 0 0 8px; font-size: .62rem; color: #6f7080; }
.smart-family-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.smart-family-chip { border: 1px solid #dddde4; background: #fff; color: #555663; border-radius: 999px; padding: 6px 12px; font-size: .58rem; cursor: pointer; }
.smart-family-chip.is-selected { border-color: #111; background: #111; color: #fff; }
.smart-preview-card { overflow: hidden; border-radius: 18px; border: 1px solid #ececf0; background: #fff; box-shadow: 0 16px 40px rgba(17,17,17,.08); }
.smart-preview-image, .smart-preview-collage, .smart-preview-placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #f3f3f6; }
.smart-preview-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.smart-preview-collage img { width: 100%; height: 100%; object-fit: cover; }
.smart-preview-placeholder { display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; color: #7d7e8b; text-transform: uppercase; }
.smart-preview-body { padding: 14px; display: grid; gap: 8px; }
.smart-preview-heading { display: grid; gap: 4px; }
.smart-preview-heading small { color: #8d8e9c; font-size: .56rem; }
.smart-preview-tag { font-size: .54rem; letter-spacing: .08em; text-transform: uppercase; color: #bf3f00; font-weight: 700; }
.smart-preview-includes { font-size: .58rem; color: #6f7080; }
.smart-preview-includes span { font-weight: 700; color: #111; }
.smart-preview-pricing { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.smart-preview-pricing s { color: #9a9aa8; font-size: .62rem; }
.smart-preview-pricing strong { font-size: 1rem; }
.smart-preview-save { font-size: .58rem; color: #0f766e; font-weight: 700; }
.smart-preview-cta { border: 0; border-radius: 999px; padding: 10px 14px; background: #111; color: #fff; font-size: .62rem; opacity: .72; }
.smart-promo-footer { position: sticky; bottom: 0; background: #fff; padding-top: 12px; margin-top: 8px; border-top: 1px solid #efeff2; }
.product-thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #f3f3f6; }
.product-image-field { display: grid; gap: 8px; }
.product-image-preview { min-height: 96px; border: 1px dashed #d8d8df; border-radius: 12px; display: grid; place-content: center; gap: 8px; padding: 10px; }
.product-image-preview img { max-width: 180px; max-height: 120px; border-radius: 10px; object-fit: cover; }
@media (max-width: 960px) {
  .smart-promo-layout { grid-template-columns: 1fr; }
  .smart-promo-preview-panel { position: static; }
  .smart-catalog-toolbar { grid-template-columns: 1fr; }
  .smart-pack-pricing { grid-template-columns: 1fr; }
}
.smart-service-rules { margin-top: 14px; }
.smart-service-rules-list { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }

.branding-color-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.branding-upload-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.branding-upload-field {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ececf2;
  border-radius: 14px;
  background: #fafafe;
}
.branding-upload-field strong { font-size: .68rem; }
.branding-upload-status { margin: 0; font-size: .58rem; color: #666; word-break: break-all; }
.branding-accent-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #ececf2;
  border-radius: 16px;
  background: #fafafe;
}
.branding-accent-label small {
  display: block;
  margin-top: 6px;
  color: #7a7a88;
  font-size: .58rem;
}
.branding-accent-picker-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}
.branding-accent-picker-row input[type="color"] {
  width: 56px;
  height: 40px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
}
.branding-accent-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.branding-accent-swatch {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  background: var(--swatch);
  cursor: pointer;
}
.branding-accent-swatch:hover {
  transform: scale(1.06);
}
.branding-preview-wrap { margin-top: 8px; }
.branding-preset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.branding-actions { margin-top: 4px; }
.branding-toast {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .62rem;
}
.branding-toast-success {
  color: #1f6b3f;
  background: #ecf8f0;
  border: 1px solid #b9e3c9;
}
.branding-toast-error {
  color: #8b1c1c;
  background: #fff1f1;
  border: 1px solid #f0c7c7;
}
.branding-preview-wrap iframe {
  width: 100%;
  min-height: 420px;
  border: 1px solid #ececf2;
  border-radius: 16px;
  background: #fff;
}

.checkbox-inline { display: inline-flex; align-items: center; gap: 6px; margin: 4px 10px 4px 0; font-size: .62rem; }

.pos-suggestions { margin-top: 12px; padding: 14px; }
.pos-suggestions .section-header > span { color: #8d8e9c; font-size: .58rem; }
.pos-suggestions-loading { margin: 0; color: #92939f; font-size: .62rem; }
.pos-suggestion-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pos-suggestion-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 10px; border-top: 1px solid #efedf3; }
.pos-suggestion-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.pos-suggestion-copy img, .pos-suggestion-fallback { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #f3f2f7; }
.pos-suggestion-copy strong { display: block; font-size: .68rem; }
.pos-suggestion-copy small { display: block; margin-top: 3px; color: #92939f; font-size: .56rem; }
.pos-suggestion-copy span { display: block; margin-top: 4px; font-size: .62rem; font-weight: 700; }
.pos-suggestion-actions { display: flex; flex-wrap: wrap; gap: 6px 10px; }

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.team-card { padding: 19px; cursor: pointer; transition: .18s ease; }
.team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.team-card header { display: flex; align-items: center; justify-content: space-between; }
.team-avatar { width: 44px; height: 44px; font-size: 1rem; }
.role-chip { padding: 5px 8px; color: #6b54c4; background: #eeeafd; border-radius: 7px; font-size: .58rem; font-weight: 700; }
.team-card h3 { margin-top: 17px; }
.team-card > p { margin-bottom: 16px; font-size: .68rem; }
.team-details { display: flex; flex-direction: column; gap: 8px; }
.team-details span { display: flex; align-items: center; gap: 7px; color: #777887; font-size: .64rem; }
.team-card footer { margin-top: 18px; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #efeff2; }
.team-card footer > span { max-width: 65%; overflow: hidden; color: #9999a6; font-size: .57rem; white-space: nowrap; text-overflow: ellipsis; }
.week-picker { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; }
.week-picker label { display: block; cursor: pointer; }
.week-picker input { position: absolute; opacity: 0; pointer-events: none; }
.week-picker span { height: 34px; display: grid; place-items: center; color: #858594; background: #fff; border: 1px solid #dedde5; border-radius: 8px; font-size: .65rem; font-weight: 700; }
.week-picker input:checked + span { color: #fff; background: var(--primary); border-color: var(--primary); }

.business-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.business-section { padding: 21px; }
.business-section > header { margin-bottom: 20px; display: flex; align-items: flex-start; gap: 11px; }
.business-section > header > svg { color: var(--primary); }
.business-section header h2, .business-section header p { margin: 0; }
.business-section header p { margin-top: 4px; font-size: .67rem; }
.weekly-hours-editor { padding: 12px; display: grid; grid-template-columns: 1fr; gap: 7px; background: #f8f7fb; border: 1px solid #e8e5ef; border-radius: 11px; }
.weekly-hours-editor > strong { font-size: .7rem; }
.weekly-hours-editor > small { margin-top: -3px; color: #8b8c99; font-size: .56rem; }
.weekly-hours-editor label { margin: 0; display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 8px; }
.weekly-hours-editor label span { color: #6d6e7c; font-size: .6rem; font-weight: 700; }
.weekly-hours-editor input { min-height: 34px; }
.schedule-exceptions { margin-top: 12px; padding: 14px; display: grid; gap: 12px; background: #f7f8f4; border: 1px solid #e2e6dc; border-radius: 12px; }
.schedule-exceptions-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.schedule-exceptions-toolbar p { margin: 4px 0 0; color: #6d7468; font-size: .62rem; }
.schedule-exceptions-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-pill { padding: 5px 9px; border-radius: 999px; font-size: .58rem; font-weight: 700; }
.sx-pill.is-vacation { color: #1f6b4f; background: #e5f6ee; }
.sx-pill.is-holiday { color: #8a4b16; background: #fff0df; }
.sx-pill.is-special { color: #1f4f8a; background: #e7f1fb; }
.sx-month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sx-weekdays, .sx-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sx-weekdays span { text-align: center; color: #7a8176; font-size: .58rem; font-weight: 700; }
.sx-day { min-height: 42px; padding: 0; border: 1px solid #dde3d7; border-radius: 10px; background: #fff; color: #2f342e; font-weight: 700; }
.sx-day span { font-size: .72rem; }
.sx-day.is-empty { visibility: hidden; }
.sx-day.is-vacation { background: #e5f6ee; border-color: #b7e0cb; }
.sx-day.is-holiday { background: #fff0df; border-color: #f0d2ad; }
.sx-day.is-special { background: #e7f1fb; border-color: #bfd4ef; }
.sx-day.is-selected { outline: 2px solid #2f6fed; background: #edf3ff; }
.schedule-exceptions-list { display: grid; gap: 8px; }
.schedule-exception-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid #e2e6dc; border-radius: 10px; }
.schedule-exception-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.schedule-exception-row strong { font-size: .72rem; }
.schedule-exception-row span { color: #6d7468; font-size: .6rem; }
.schedule-exception-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.schedule-exceptions-note { margin: 0; color: #6d5b3c; font-size: .6rem; }
.schedule-exception-editor .sx-mode-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.schedule-exception-editor .sx-mode-toggle .is-active { border-color: #2f6fed; color: #1d4fbf; }
.sx-range-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; margin-top: 8px; }
.sx-sticky-actions { position: sticky; bottom: 0; padding-top: 8px; background: linear-gradient(180deg, transparent, #fff 30%); }
.sx-selection-summary { margin: 0; padding: 8px 10px; background: #eef2ea; border-radius: 8px; font-size: .68rem; font-weight: 700; }
@media (max-width: 720px) {
  .schedule-exception-row { flex-direction: column; align-items: stretch; }
  .sx-day { min-height: 40px; }
  .sx-range-row { grid-template-columns: 1fr; }
}
.business-warning { padding: 11px; display: flex; align-items: flex-start; gap: 8px; color: #7b6846; background: #fff7e8; border: 1px solid #f1dfbd; border-radius: 9px; font-size: .62rem; }
.business-save { grid-column: 1 / -1; padding: 13px 0; display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.business-save > span { color: #267664; font-size: .68rem; font-weight: 700; }
.business-save .form-error { margin-right: auto; }
.zerobab-integration { padding: 23px; }
.zerobab-integration > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.integration-title { display: flex; align-items: flex-start; gap: 12px; }
.integration-title > svg { flex: 0 0 auto; color: #6c54d0; }
.integration-title h2, .integration-title p { margin: 0; }
.integration-title p:last-child { margin-top: 5px; font-size: .7rem; }
.readonly-badge { padding: 7px 9px; display: inline-flex; align-items: center; gap: 5px; color: #287265; background: #e7f6f1; border: 1px solid #cce9df; border-radius: 9px; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.integration-safeguards { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.integration-safeguards span { padding: 7px 9px; display: inline-flex; align-items: center; gap: 5px; color: #686978; background: #f7f6fa; border-radius: 8px; font-size: .61rem; }
.integration-counts, .integration-preview > div { margin-top: 17px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.integration-counts > div, .integration-preview > div > div { padding: 12px; display: flex; min-width: 0; flex-direction: column; background: #faf9fd; border: 1px solid #eceaf2; border-radius: 10px; }
.integration-counts strong, .integration-preview strong { color: #373847; font-size: .94rem; }
.integration-counts span, .integration-preview span { margin-top: 2px; overflow: hidden; color: #9292a0; font-size: .59rem; white-space: nowrap; text-overflow: ellipsis; }
.integration-status { margin-top: 14px; padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #737482; background: #f3f1fa; border-radius: 10px; }
.integration-status > div { min-width: 0; display: flex; flex-direction: column; }
.integration-status strong { color: #4f5060; font-size: .7rem; }
.integration-status span { margin-top: 2px; overflow: hidden; font-size: .6rem; white-space: nowrap; text-overflow: ellipsis; }
.integration-status > span { flex: 0 0 auto; margin: 0; color: #715bc5; font-weight: 700; }
.integration-preview { margin-top: 14px; padding: 14px; color: #5d5e6c; background: #f8f6ff; border: 1px solid #ddd5fa; border-radius: 11px; }
.integration-preview > strong { font-size: .72rem; }
.integration-preview > div { margin-top: 10px; }
.integration-preview small { display: block; margin-top: 10px; color: #858594; font-size: .6rem; }
.zerobab-integration > .form-error { margin-top: 13px; }
.zerobab-integration > footer { margin-top: 17px; display: flex; justify-content: flex-end; gap: 9px; }

.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.settings-card { min-height: 175px; padding: 21px; display: flex; flex-direction: column; align-items: flex-start; }
.settings-card > svg { color: var(--primary); }
.settings-card div { margin-top: 22px; }
.settings-card p { font-size: .7rem; }
.settings-card span { margin-top: auto; padding: 4px 7px; color: #8776c6; background: #f0ecfd; border-radius: 6px; font-size: .59rem; font-weight: 700; }
.parallel-settings-card { padding: 20px; display: grid; grid-template-columns: auto minmax(240px,1fr) minmax(260px,.8fr); align-items: center; gap: 16px; border-color: #d7ebe5; background: linear-gradient(135deg,#fff,#eff9f6); }
.parallel-settings-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #397c6d; background: #dff3ec; border-radius: 14px; }
.parallel-settings-card h2 { margin: 2px 0 5px; font-size: 1rem; }
.parallel-settings-card p { margin: 0; font-size: .68rem; }
.parallel-settings-flags { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.parallel-settings-flags span { display: flex; align-items: center; gap: 5px; color: #397366; font-size: .6rem; font-weight: 700; }
.settings-access-note { padding: 20px; display: flex; align-items: center; gap: 13px; }
.settings-access-note > svg { color: var(--primary); }
.settings-access-note p { margin: 3px 0 0; font-size: .68rem; }
.access-denied-state { max-width: 680px; margin: 36px auto; }
.backup-panel { padding: 20px; }
.readiness-grid { margin-bottom: 13px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.readiness-grid > span { padding: 6px 8px; display: inline-flex; align-items: center; gap: 4px; border-radius: 7px; font-size: .57rem; font-weight: 750; }
.readiness-grid > span.ready { color: #277a69; background: #e7f5f0; }
.readiness-grid > span.pending { color: #a15a42; background: #fff0e9; }
.readiness-grid > strong { margin-left: auto; font-size: .65rem; }
.backup-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.backup-list > div:not(.empty-state) { min-height: 48px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fafafd; border: 1px solid #eceaf0; border-radius: 8px; }
.backup-list span { min-width: 0; display: flex; flex-direction: column; }
.backup-list strong { overflow: hidden; font-size: .61rem; white-space: nowrap; text-overflow: ellipsis; }
.backup-list small { margin-top: 2px; color: #92939f; font-size: .51rem; }
.backup-list b { color: #686979; font-size: .58rem; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.catalog-summary-grid div { padding: 10px 12px; background: #fafafd; border: 1px solid #eceaf0; border-radius: 8px; }
.catalog-summary-grid small { display: block; color: #92939f; font-size: .52rem; margin-bottom: 4px; }
.catalog-summary-grid strong { font-size: .85rem; color: #3a3b48; }
.catalog-note { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: #5d5f6d; font-size: .62rem; }
.catalog-changes { margin-top: 12px; border: 1px solid #eceaf0; border-radius: 10px; overflow: hidden; }
.catalog-changes > header { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #f6f5f8; border-bottom: 1px solid #eceaf0; font-size: .62rem; }
.catalog-change-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid #f0eef2; font-size: .6rem; }
.catalog-family-row { width: 100%; color: inherit; background: #fff; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.catalog-family-row:hover, .catalog-family-row:focus-visible { background: #faf7f3; box-shadow: inset 3px 0 0 var(--primary); outline: none; }
.catalog-change-row:last-child { border-bottom: 0; }
.catalog-change-row span { min-width: 0; display: flex; flex-direction: column; }
.catalog-change-row strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.catalog-change-row small { margin-top: 2px; color: #92939f; }
.catalog-change-row b { color: #686979; white-space: nowrap; }

.booking-classification-panel.bc-saas { padding: 0; border: 1px solid #e8e8ed; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.04); }
.bc-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; background: #fff; border-bottom: 1px solid #ececf1; }
.bc-topbar-main { flex: 1 1 220px; min-width: 0; }
.bc-topbar-stats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border: 1px solid #ececf1; border-radius: 999px; background: #fafafa; font-size: .58rem; }
.bc-stat em { color: #8b8d98; font-style: normal; font-weight: 650; }
.bc-stat strong { color: #1f2028; font-size: .68rem; }
.bc-stat.is-alert { border-color: #f3dcc8; background: #fff8f2; }
.bc-stat.is-alert strong { color: #a15a42; }
.booking-class-header-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.bc-ghost-button { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #5d5f6d; font-size: .6rem; font-weight: 750; cursor: pointer; transition: .15s ease; }
.bc-ghost-button:hover:not(:disabled) { background: #f4f4f7; border-color: #e8e8ed; color: #30313a; }
.bc-ghost-button:disabled { opacity: .45; cursor: not-allowed; }
.bc-primary-action { min-height: 34px; padding: 0 14px; border-radius: 8px; font-size: .6rem; }
.booking-class-scope { margin: 4px 0 0; color: #8b8d98; font-size: .58rem; font-weight: 600; }
.booking-class-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .62rem; color: #8b8d98; }
.bc-crumb { color: #686979; text-decoration: none; font-weight: 650; }
.bc-crumb:hover { color: var(--primary); }
.bc-crumb-sep { color: #c8c8d0; user-select: none; }
.booking-class-breadcrumb strong { color: #1f2028; font-weight: 800; }
.booking-class-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; min-height: 0; }
.booking-class-sidebar { display: flex; flex-direction: column; gap: 0; padding: 12px 10px; background: #fafafa; border-right: 1px solid #ececf1; max-height: calc(100vh - 220px); overflow: auto; }
.bc-sidebar-head { padding: 4px 8px 10px; color: #8b8d98; font-size: .52rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bc-family-nav { display: flex; flex-direction: column; gap: 2px; }
.bc-family-item { width: 100%; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #4e4f5c; font-size: .6rem; text-align: left; cursor: pointer; transition: .12s ease; }
.bc-family-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
.bc-family-item b { flex: 0 0 auto; min-width: 22px; padding: 2px 6px; border-radius: 999px; background: #ececf1; color: #686979; font-size: .52rem; text-align: center; }
.bc-family-item:hover { background: #fff; border-color: #e8e8ed; }
.bc-family-item.active { background: #fff; border-color: #d8d2f0; box-shadow: inset 3px 0 0 var(--primary); }
.bc-family-item.active span { color: #1f2028; }
.bc-family-item.active b { background: rgba(128,101,228,.12); color: var(--primary); }
.bc-preview-drawer { margin-top: 12px; border-top: 1px solid #ececf1; padding-top: 10px; }
.bc-preview-drawer summary { padding: 6px 8px; color: #686979; font-size: .56rem; font-weight: 800; cursor: pointer; list-style: none; }
.bc-preview-drawer summary::-webkit-details-marker { display: none; }
.bc-preview-item { width: 100%; padding: 7px 8px; display: flex; justify-content: space-between; gap: 8px; border: 0; border-radius: 6px; background: transparent; color: #5d5f6d; font-size: .56rem; cursor: pointer; }
.bc-preview-item:hover { background: #fff; }
.bc-preview-item b { color: #8b8d98; font-weight: 800; }
.bc-empty-note, .bc-skeleton { padding: 8px; color: #92939f; font-size: .58rem; }
.booking-class-main { min-width: 0; display: flex; flex-direction: column; gap: 0; background: #fff; }
.bc-command-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px; border-bottom: 1px solid #ececf1; background: #fcfcfd; }
.bc-search { flex: 1 1 220px; min-width: 180px; min-height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #e4e4ea; border-radius: 8px; background: #fff; color: #8b8d98; }
.bc-search input { flex: 1; min-width: 0; min-height: 32px; padding: 0; border: 0; background: transparent; font-size: .62rem; color: #1f2028; outline: none; }
.bc-search:focus-within { border-color: #c4b8ef; box-shadow: 0 0 0 3px rgba(128,101,228,.12); }
.booking-class-quick-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.booking-class-chip { padding: 5px 10px; border: 1px solid #e4e4ea; border-radius: 999px; background: #fff; color: #5d5f6d; font-size: .56rem; font-weight: 700; cursor: pointer; transition: .12s ease; }
.booking-class-chip.active { background: #1f2028; border-color: #1f2028; color: #fff; }
.bc-filters-drawer summary { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid #e4e4ea; border-radius: 8px; background: #fff; color: #5d5f6d; font-size: .56rem; font-weight: 750; cursor: pointer; list-style: none; }
.bc-filters-drawer summary::-webkit-details-marker { display: none; }
.bc-filters-drawer[open] summary { border-color: #c4b8ef; background: #faf8ff; }
.booking-class-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 4px; width: 100%; }
.booking-class-toolbar label { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.booking-class-toolbar label span { color: #8b8d98; font-size: .52rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.booking-class-toolbar select { min-height: 32px; padding: 0 10px; border: 1px solid #e4e4ea; border-radius: 8px; background: #fff; font-size: .58rem; }
.bc-view-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.bc-view-controls label { display: flex; flex-direction: column; gap: 4px; min-width: 72px; }
.bc-view-controls label span { color: #8b8d98; font-size: .52rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.bc-view-controls select { min-height: 32px; padding: 0 8px; border: 1px solid #e4e4ea; border-radius: 8px; background: #fff; font-size: .58rem; }
.booking-class-detail { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; background: #faf8ff; border-bottom: 1px solid #ececf1; }
.booking-class-detail-path { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.booking-class-detail-path strong { color: #1f2028; font-size: .64rem; }
.booking-class-detail-path span { color: #8b8d98; font-size: .58rem; font-weight: 650; }
.booking-class-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 14px; border-bottom: 1px solid #ececf1; background: #fafafa; opacity: .72; transition: opacity .15s ease, background .15s ease; }
.booking-class-bulk.has-selection { opacity: 1; background: #f3f0ff; }
.bc-bulk-check { display: inline-flex; align-items: center; gap: 6px; color: #5d5f6d; font-size: .56rem; font-weight: 700; }
.bc-bulk-check input { width: 14px; height: 14px; accent-color: var(--primary); }
.booking-class-bulk select { min-height: 32px; min-width: 140px; padding: 0 10px; border: 1px solid #e4e4ea; border-radius: 8px; background: #fff; font-size: .58rem; }
.booking-class-selection { margin-left: auto; color: #715bc5; font-size: .56rem; font-weight: 800; }
.booking-class-table-shell { display: flex; flex-direction: column; border: 0; border-radius: 0; background: #fff; overflow: hidden; }
.booking-class-table-wrap { max-height: min(58vh, 620px); overflow: auto; margin: 0; border: 0; }
.booking-class-table-wrap table { width: 100%; border-collapse: separate; border-spacing: 0; }
.booking-class-table-wrap thead th { position: sticky; top: 0; z-index: 2; padding: 9px 12px; background: #fafafa; border-bottom: 1px solid #ececf1; color: #8b8d98; font-size: .52rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.booking-class-table-wrap tbody td { padding: 8px 12px; border-bottom: 1px solid #f2f2f5; vertical-align: middle; font-size: .6rem; color: #30313a; }
.booking-class-table-wrap tbody tr:hover td { background: #fcfcff; }
.booking-class-table-wrap tbody tr.is-dirty td { background: #fffbf5; }
.booking-class-table-wrap tbody tr.is-dirty:hover td { background: #fff7eb; }
.booking-class-table-wrap tbody tr.is-blocked { opacity: .55; }
.bc-col-check { width: 36px; }
.bc-col-service strong { display: block; font-size: .62rem; font-weight: 800; color: #1f2028; }
.bc-col-muted { color: #686979; }
.bc-badge { display: inline-flex; margin-top: 4px; margin-right: 4px; padding: 2px 6px; border-radius: 999px; background: #ececf1; color: #686979; font-size: .48rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.bc-badge-live { background: #e8f7ee; color: #2f7a4f; }
.bc-badge-muted { background: #f2f2f5; color: #8b8d98; }
.bc-badge-warn { background: #fff1df; color: #a15a42; }
.bc-inline-select { min-height: 30px; width: 100%; max-width: 160px; padding: 0 8px; border: 1px solid #e4e4ea; border-radius: 7px; background: #fff; font-size: .58rem; }
.bc-inline-select:focus { border-color: #c4b8ef; box-shadow: 0 0 0 3px rgba(128,101,228,.1); outline: none; }
.bc-switch { position: relative; display: inline-flex; width: 34px; height: 20px; }
.bc-switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bc-switch span { position: absolute; inset: 0; border-radius: 999px; background: #dddde4; transition: .15s ease; }
.bc-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); transition: .15s ease; }
.bc-switch input:checked + span { background: var(--primary); }
.bc-switch input:checked + span::after { transform: translateX(14px); }
.booking-class-staff { display: inline-block; max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .56rem; }
.booking-class-footer .primary-button { min-height: 36px; padding: 0 16px; font-size: .62rem; border-radius: 9px; }
.booking-class-footer #booking-class-dirty { margin-right: auto; color: #a15a42; font-size: .58rem; font-weight: 750; }
.booking-class-footer-sticky { position: sticky; bottom: 0; z-index: 4; background: rgba(255,255,255,.94); border-top: 1px solid #ececf1; backdrop-filter: blur(10px); }
.booking-classification-panel.has-dirty .booking-class-footer-sticky { box-shadow: 0 -8px 24px rgba(161,90,66,.08); }
.booking-classification-panel.has-dirty #booking-class-save { box-shadow: 0 8px 20px rgba(128,101,228,.22); }
.booking-class-pagination { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 14px; background: #fafafa; border-top: 1px solid #ececf1; }
.booking-class-table-shell .booking-class-pagination:first-child { border-top: 0; border-bottom: 1px solid #ececf1; }
.booking-class-pagination-meta { color: #686979; font-size: .58rem; font-weight: 650; }
.bc-range { color: #30313a; font-weight: 800; }
.bc-pager { display: inline-flex; align-items: center; gap: 6px; }
.bc-pager-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e4e4ea; border-radius: 8px; background: #fff; color: #30313a; font-size: .9rem; cursor: pointer; }
.bc-pager-btn:hover:not(:disabled) { border-color: #c4b8ef; background: #faf8ff; }
.bc-pager-btn:disabled { opacity: .35; cursor: not-allowed; }
.bc-pager-label { min-width: 48px; text-align: center; color: #686979; font-size: .58rem; font-weight: 750; }
.booking-classification-panel.is-compact .booking-class-table-wrap tbody td { padding: 5px 10px; }
.booking-classification-panel.is-compact .booking-class-table-wrap thead th { padding: 7px 10px; }
.booking-classification-panel.is-compact .bc-badge { display: none; }
.online-booking-page--classification .page-header { display: none; }
.online-booking-page--classification .online-booking-tabs { gap: 0; padding: 0 2px; border-bottom: 1px solid #ececf1; margin-bottom: 12px; }
.online-booking-page--classification .online-booking-tab { min-height: 38px; padding: 0 14px 10px; border: 0; border-radius: 0; background: transparent; color: #686979; font-size: .6rem; font-weight: 750; box-shadow: inset 0 -2px 0 transparent; }
.online-booking-page--classification .online-booking-tab.active { color: #1f2028; background: transparent; box-shadow: inset 0 -2px 0 var(--primary); }
.online-booking-page .online-booking-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.online-booking-tab { padding: 10px 14px; border: 1px solid #eceaf0; border-radius: 999px; background: #fafafd; color: #5d5f6d; font-size: .62rem; font-weight: 800; cursor: pointer; }
.online-booking-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.online-booking-content { display: flex; flex-direction: column; gap: 16px; }
.online-booking-preview-frame { min-height: 70vh; border: 1px solid #eceaf0; border-radius: 14px; overflow: hidden; background: #fafafd; }
.online-booking-preview-frame iframe { width: 100%; min-height: 70vh; border: 0; }
.page-header-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.business-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; }
.service-family-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: end; }
.service-family-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.service-family-row label { margin: 0; }
.service-online-panel { padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #f7f6fa; border: 1px solid #eceaf0; border-radius: 12px; }
.service-online-panel > header p { margin: 6px 0 0; color: #686979; font-size: .62rem; }
.service-online-hint { display: block; margin-top: 6px; color: #715bc5; font-size: .58rem; font-weight: 700; }
.booking-families-manager { display: flex; flex-direction: column; gap: 16px; }
.booking-families-table .booking-family-color { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 999px; vertical-align: middle; }
.settings-card-link { width: 100%; text-align: left; cursor: pointer; border: 1px solid #eceaf0; transition: border-color .15s ease, transform .15s ease; }
.settings-card-link:hover { border-color: #cfc6ef; transform: translateY(-1px); }

.modal-backdrop { position: fixed; inset: 0; z-index: 70; padding: 20px; display: grid; place-items: center; background: rgba(21,22,35,.58); backdrop-filter: blur(7px); }
.modal-card { width: min(560px, 100%); max-height: calc(100vh - 40px); padding: 25px; overflow-y: auto; background: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 22px; box-shadow: 0 30px 100px rgba(0,0,0,.28); animation: modal-in .22s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-wide { width: min(800px, 100%); }
.modal-header { margin-bottom: 23px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.appointment-delete-button { color: var(--danger, #9e4742); }
.appointment-delete-button:hover { background: rgba(158, 71, 66, .08); }
.appointment-cancel-summary { display: grid; gap: 10px; margin-bottom: 16px; }
.appointment-cancel-summary p { display: grid; gap: 2px; margin: 0; }
.appointment-cancel-summary strong { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.appointment-cancel-warning { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(158, 71, 66, .08); color: #7a3a36; margin: 0 0 8px; }

.competency-matrix-panel { overflow: hidden; }
.competency-matrix-scroll { overflow: auto; max-width: 100%; }
.competency-matrix-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.competency-matrix-table th, .competency-matrix-table td { padding: 10px 12px; border-bottom: 1px solid rgba(23,25,39,.08); text-align: center; }
.competency-matrix-table th:first-child, .competency-matrix-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface, #fff); }
.competency-matrix-cell { min-width: 54px; border-radius: 10px; border: 1px solid rgba(23,25,39,.08); background: #f7f7fb; padding: 8px 10px; cursor: pointer; }
.competency-status-allowed { background: rgba(52, 143, 90, .06); color: #35684a; border-color: rgba(52, 143, 90, .12); }
.competency-status-denied { background: rgba(158, 71, 66, .05); color: #8f4a45; border-color: rgba(158, 71, 66, .1); }
.competency-status-mixed { background: rgba(214, 162, 59, .08); color: #8a6118; border-color: rgba(214, 162, 59, .14); }
.competency-status-unset { background: #fafbfc; color: #7a7f92; border-color: rgba(23,25,39,.06); }
.competency-family-grid { display: grid; gap: 12px; }
.competency-family-card { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #f8f8fc; }
.competency-family-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.competency-family-toggle { display: inline-flex; align-items: center; gap: 6px; }
.competency-service-filters { display: grid; gap: 10px; grid-template-columns: 2fr 1fr; }
.competency-service-list { display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.competency-service-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #fafafe; }
.competency-chip { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.competency-bulk-toolbar, .competency-service-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.competency-staff-entry { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #f8f8fc; }
.competency-service-panel-host { margin-top: 8px; }
.competency-service-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.competency-hub { display: grid; gap: 18px; }
.competency-stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.competency-stat-grid.compact { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.competency-stat-card { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(180deg, #fafafe, #f3f4fa); border: 1px solid rgba(23,25,39,.06); }
.competency-stat-card span { font-size: .78rem; color: #6b7086; }
.competency-stat-card strong { font-size: 1.35rem; color: #171927; }
.competency-stat-card.tone-warn { background: rgba(214, 162, 59, .12); border-color: rgba(214, 162, 59, .22); }
.competency-stat-card.tone-danger { background: rgba(158, 71, 66, .1); border-color: rgba(158, 71, 66, .18); }
.competency-hub-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.competency-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.competency-chip-filter { border: 1px solid rgba(23,25,39,.1); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: .82rem; cursor: pointer; }
.competency-chip-filter.active { background: rgba(128, 101, 228, .12); border-color: rgba(128, 101, 228, .35); color: #5f49b8; font-weight: 600; }
.competency-analysis-panel { display: grid; gap: 14px; }
.competency-analysis-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.competency-warning-card { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 12px; background: #fff8ef; border: 1px solid rgba(214, 162, 59, .25); }
.competency-warning-card.severity-high { background: #fff3f2; border-color: rgba(158, 71, 66, .22); }
.competency-warning-card.severity-low { background: #f7f8fc; border-color: rgba(23,25,39,.08); }
.competency-warning-icon { font-size: 1.1rem; line-height: 1.2; }
.competency-analysis-empty { padding: 16px 18px; border-radius: 12px; }
.competency-spreadsheet { border: 1px solid rgba(23,25,39,.1); }
.competency-spreadsheet th, .competency-spreadsheet td { border: 1px solid rgba(23,25,39,.06); }
.competency-matrix-family-head { min-width: 110px; vertical-align: bottom; }
.competency-matrix-family-head small { display: block; color: #6b7086; font-weight: 500; }
.competency-matrix-row-head { min-width: 180px; vertical-align: middle; }
.competency-matrix-row-head small { display: block; color: #6b7086; font-weight: 500; }
.competency-spreadsheet-cell { width: 100%; min-height: 54px; display: grid; gap: 2px; justify-items: center; }
.competency-cell-emoji { font-size: 1rem; line-height: 1; }
.competency-cell-label { font-size: .68rem; font-weight: 600; }
.competency-family-catalog { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.competency-family-summary-card { border: 1px solid rgba(23,25,39,.06); }
.competency-family-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.competency-family-metrics { display: flex; gap: 12px; color: #6b7086; font-size: .84rem; }
.competency-dnd-placeholder { padding: 8px 10px; border-radius: 10px; border: 1px dashed rgba(23,25,39,.14); color: #6b7086; font-size: .78rem; display: inline-flex; align-items: center; gap: 6px; }
.competency-bulk-sidepanel { position: fixed; right: 18px; top: 120px; width: min(320px, calc(100vw - 24px)); z-index: 40; display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(23,25,39,.16); border: 1px solid rgba(23,25,39,.08); }
.competency-bulk-sidepanel header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.competency-bulk-actions { display: grid; gap: 8px; }
.competency-staff-picker { display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.competency-staff-option { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #f8f8fc; }
.competency-staff-tab { display: grid; gap: 14px; }
.competency-tab-actions { justify-content: flex-end; }
.staff-profile-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(23,25,39,.08); }
.staff-profile-tab { border: 0; background: transparent; padding: 8px 12px; border-radius: 999px; color: #6b7086; cursor: pointer; font-weight: 600; }
.staff-profile-tab.active { background: rgba(128, 101, 228, .12); color: #5f49b8; }
.staff-profile-shell { display: grid; gap: 12px; }
.staff-profile-panel { display: grid; gap: 12px; }
.entity-workspace-backdrop { position: fixed; inset: 0; z-index: 80; background: #f4f5f8; }
body.entity-workspace-open { overflow: hidden; }
.entity-workspace { display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: 100dvh; max-height: 100dvh; background: #f4f5f8; }
.entity-workspace-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 20px; background: #fff; border-bottom: 1px solid rgba(23,25,39,.08); box-shadow: 0 1px 0 rgba(23,25,39,.03); flex-shrink: 0; }
.entity-workspace-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: #4d5168; font: inherit; font-weight: 600; cursor: pointer; }
.entity-workspace-back:hover { background: rgba(23,25,39,.05); }
.entity-workspace-heading { min-width: 0; }
.entity-workspace-type { margin: 0 0 2px; color: #7a7f92; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.entity-workspace-title { margin: 0; font-size: 1.35rem; line-height: 1.15; color: #171927; }
.entity-workspace-subtitle { margin: 4px 0 0; color: #7a7f92; font-size: .82rem; }
.entity-workspace-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.entity-workspace-actions .primary-button:disabled,
.entity-workspace-actions .secondary-button:disabled { opacity: .45; cursor: not-allowed; }
.entity-workspace-delete { color: #9a4a45; }
.entity-workspace-tabs { display: flex; gap: 6px; padding: 0 20px; overflow-x: auto; background: #fff; border-bottom: 1px solid rgba(23,25,39,.08); scrollbar-width: none; flex-shrink: 0; }
.entity-workspace-tabs::-webkit-scrollbar { display: none; }
.entity-workspace-tab { flex: 0 0 auto; border: 0; background: transparent; padding: 12px 14px; color: #6b7086; font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.entity-workspace-tab.active { color: #5f49b8; border-bottom-color: #8065e4; }
.entity-workspace-body { min-height: 0; overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.entity-workspace-panel-shell { flex: 1; min-height: 0; position: relative; overflow: hidden; transition: opacity .18s ease; }
.entity-workspace-panel-shell.is-fading { opacity: 0; }
.entity-workspace-views { position: absolute; inset: 0; }
.entity-workspace-view { position: absolute; inset: 0; display: none; overflow-y: auto; padding: 16px 20px 24px; -webkit-overflow-scrolling: touch; }
.entity-workspace-view.is-active { display: block; animation: workspace-panel-in .18s ease; }
.entity-workspace-view[hidden] { display: none !important; }
.entity-workspace-confirm { z-index: 90; }
.entity-workspace-confirm-actions { flex-wrap: wrap; justify-content: flex-end; }
.entity-workspace-form-anchor { display: none; }
.entity-workspace-form-error { position: absolute; left: 20px; right: 20px; bottom: 12px; z-index: 2; margin: 0; }
.staff-general-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 1080px; }
.workspace-card { display: grid; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid rgba(23,25,39,.08); border-radius: 16px; box-shadow: 0 1px 0 rgba(23,25,39,.02); }
.workspace-card header { display: grid; gap: 2px; margin-bottom: 2px; }
.workspace-card header strong { font-size: .92rem; }
.workspace-card header small { color: #7a7f92; font-size: .72rem; }
.workspace-card-wide { grid-column: 1 / -1; }
.workspace-card .form-grid { gap: 10px; }
.professional-profile-form { display: grid; gap: 16px; max-width: 1080px; }
.professional-profile-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: linear-gradient(135deg, #faf8ff 0%, #f3f0fb 100%); }
.professional-profile-hero-copy { display: grid; gap: 4px; }
.professional-profile-hero-copy h2 { margin: 0; font-size: 1.35rem; color: #2f2a44; }
.professional-profile-hero-copy p { margin: 0; color: #6d6780; }
.professional-profile-status { display: grid; gap: 4px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.72); border: 1px solid rgba(115,91,208,.12); text-align: right; }
.professional-profile-status span { color: #8a8498; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.professional-profile-status strong { color: #433d63; font-size: .95rem; }
.professional-profile-status.is-training strong { color: #8a6d00; }
.professional-profile-status.is-leave strong { color: #8b4d57; }
.professional-profile-status.is-vacation strong { color: #2f6f89; }
.professional-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.professional-section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.professional-specialty-list { display: grid; gap: 10px; }
.professional-specialty-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 12px; border-radius: 14px; background: #faf9fd; border: 1px solid rgba(23,25,39,.06); }
.professional-specialty-row label { display: grid; gap: 6px; }
.professional-specialty-row label span { color: #7a7f92; font-size: .72rem; font-weight: 800; }
.professional-new-specialty { display: grid; gap: 6px; margin-top: 4px; }
.professional-gallery-card .professional-gallery-placeholder { display: grid; gap: 10px; }
.professional-gallery-item { padding: 14px 16px; border-radius: 14px; background: #faf9fd; border: 1px dashed #d8d3e6; }
.professional-profile-actions { display: flex; justify-content: flex-end; gap: 10px; }
.professional-profile-loading .empty-state { min-height: 180px; display: grid; place-items: center; }
@keyframes workspace-panel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.staff-schedule-visual { display: grid; gap: 12px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.staff-schedule-day { display: grid; gap: 8px; min-height: 180px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid rgba(23,25,39,.08); }
.staff-schedule-day.is-off { background: #f7f7fb; opacity: .72; }
.staff-schedule-day-head { display: grid; gap: 2px; }
.staff-schedule-day-head strong { font-size: .82rem; }
.staff-schedule-block { display: grid; gap: 4px; padding: 10px; border-radius: 10px; background: rgba(128, 101, 228, .1); border: 1px solid rgba(128, 101, 228, .18); color: #4f3f95; }
.staff-schedule-block small { color: #6b7086; }
.staff-vacation-calendar { display: grid; gap: 12px; }
.staff-vacation-month { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(23,25,39,.08); }
.staff-vacation-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.staff-vacation-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: #f8f8fc; color: #6b7086; font-size: .78rem; }
.staff-vacation-cell.is-muted { opacity: .35; }
.staff-vacation-cell.is-off { background: rgba(158, 71, 66, .08); color: #8f4a45; }
.staff-date-availability { display: grid; gap: 18px; }
.staff-special-ranges { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #f8f8fc; }
.staff-date-exception-list { display: grid; gap: 8px; }
.staff-date-exception-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid rgba(23,25,39,.08); border-radius: 12px; background: #fff; }
.staff-date-exception-row > div:first-child { display: grid; gap: 3px; }
.staff-date-exception-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.staff-date-warning { margin: 0; padding: 10px 12px; border-radius: 10px; color: #74540a; background: #fff5d5; border: 1px solid #f0d88e; }
.staff-commission-cards, .staff-goals-grid, .staff-stats-hero { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.staff-commission-card, .staff-goal-card, .staff-stat-card { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid rgba(23,25,39,.08); }
.staff-stat-card strong { font-size: 1.45rem; line-height: 1; }
.staff-stat-card span { color: #7a7f92; font-size: .76rem; }
.staff-goal-card.is-prepared { background: linear-gradient(180deg, #fff, #fafafe); }
.competency-staff-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.competency-staff-subtab { border: 0; background: #eef0f7; padding: 7px 12px; border-radius: 999px; color: #5d6278; font: inherit; font-weight: 600; cursor: pointer; }
.competency-staff-subtab.active { background: rgba(128, 101, 228, .14); color: #5f49b8; }
.competency-staff-subpanel { display: none !important; gap: 14px; }
.competency-staff-subpanel.is-active { display: grid !important; }
.team-competency-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.competency-page .competency-hub { margin-top: 4px; }
.competency-team-health { display: grid; gap: 12px; }
.competency-stat-card.tone-ok { background: rgba(52, 143, 90, .08); border-color: rgba(52, 143, 90, .16); }
.competency-stat-card small { color: #7a7f92; font-size: .72rem; }
.competency-staff-hero strong { font-size: 1.5rem; }
.competency-recommendation-grid, .competency-optimization-panel { display: grid; gap: 12px; }
.competency-recommendation-card { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #f8f8fc; border: 1px solid rgba(23,25,39,.06); transition: transform .15s ease, box-shadow .15s ease; }
.competency-recommendation-card:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(23,25,39,.06); }
.competency-recommendation-badge { display: inline-flex; width: fit-content; padding: 3px 8px; border-radius: 999px; background: rgba(128, 101, 228, .1); color: #5f49b8; font-size: .72rem; font-weight: 700; }
.competency-history-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.competency-history-item { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fafafe; }
.competency-history-date { color: #6b7086; font-weight: 600; }
.competency-training-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.competency-training-card { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #fafafe; border: 1px solid rgba(23,25,39,.06); }
.competency-training-stars { color: #c9a227; letter-spacing: 1px; }
.competency-link-list { display: grid; gap: 8px; }
.competency-link-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; background: #fafafe; border: 1px solid rgba(23,25,39,.06); cursor: pointer; transition: background .15s ease; }
.competency-link-row:hover { background: #f2f3fa; }
.competency-service-link { display: grid; gap: 2px; text-align: left; background: transparent; border: 0; padding: 0; cursor: pointer; }
.competency-nav-family-inline { color: #5f49b8; text-decoration: underline; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
.competency-family-open { width: 100%; text-align: left; background: transparent; border: 0; padding: 0; cursor: pointer; }
.competency-multicenter-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.competency-multicenter-btn[disabled] { opacity: .55; cursor: not-allowed; }
.competency-placeholder-panel .empty-state { margin: 0; }
.competency-spreadsheet-cell { border: 1px solid rgba(23,25,39,.06); font-size: .78rem; font-weight: 600; transition: background .12s ease, transform .12s ease; }
.competency-spreadsheet-cell:hover { transform: scale(1.02); }
.competency-matrix-cell { min-width: 54px; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.competency-chip { border: 1px solid transparent; }
.modal-header p { margin-bottom: 0; font-size: .72rem; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-stack label { display: flex; flex-direction: column; gap: 8px; color: #555767; font-size: var(--font-size-sm); font-weight: 850; }
.form-stack input, .form-stack select { min-height: 47px; padding: 0 13px; }
.form-stack textarea { padding: 12px 13px; resize: vertical; line-height: 1.45; }
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus { border-color: #9d89e8; box-shadow: 0 0 0 3px rgba(126,99,226,.1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-label { padding: 13px; display: grid !important; grid-template-columns: auto 1fr; align-items: flex-start; background: #f7f6fa; border: 1px solid #e1dfeb; border-radius: 12px; }
.checkbox-label input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); }
.checkbox-label span { display: flex; flex-direction: column; }
.checkbox-label small { margin-top: 3px; color: #9696a4; font-weight: 400; }
.checkbox-picker-field { display: flex; flex-direction: column; gap: 6px; }
.checkbox-picker-label { font-weight: 600; font-size: var(--font-size-sm); }
.checkbox-picker { border: 1px solid #e1dfeb; border-radius: 12px; background: #f7f6fa; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.checkbox-picker-search { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #e1dfeb; border-radius: 8px; font-size: var(--font-size-sm); }
.checkbox-picker-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
.checkbox-picker-list .checkbox-label.compact { padding: 8px 10px; background: #fff; }
.checkbox-picker-count { margin: 0; font-size: var(--font-size-sm); color: #6b6b78; }
.form-error { margin: 0; padding: 11px 13px; color: #a44444; background: #fff0f0; border: 1px solid #f2cccc; border-radius: 10px; font-size: var(--font-size-sm); }
.modal-actions { margin-top: 8px; display: flex; justify-content: flex-end; gap: 9px; }
.profile-hero { padding: 18px; display: flex; align-items: center; gap: 13px; background: linear-gradient(135deg, #f0ecfd, #faf8ff); border-radius: 15px; }
.profile-hero > button { margin-left: auto; }
.profile-avatar { width: 48px; height: 48px; font-size: 1.1rem; }
.profile-hero h3, .profile-hero p { margin: 0; }
.profile-hero p { margin-top: 3px; font-size: .7rem; }
.detail-list { margin: 15px 0; display: flex; flex-direction: column; }
.detail-list > div { padding: 13px 5px; display: grid; grid-template-columns: auto 1fr; gap: 11px; border-bottom: 1px solid #efeff2; color: #7865c4; }
.detail-list span { display: flex; flex-direction: column; }
.detail-list small { color: #9999a6; }
.detail-list strong { margin-top: 2px; color: #4e4f5c; font-size: .74rem; }
.empty-state { padding: 32px; color: #999aa6; text-align: center; font-size: .75rem; }
.empty-state.compact { padding: 20px 0; text-align: left; }
.error-state { color: #a44444; background: #fff; border-radius: 15px; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr); background: #fff; }
.login-story { position: relative; min-height: 100vh; padding: 42px clamp(40px, 6vw, 90px); display: flex; flex-direction: column; color: #fff; background:
  radial-gradient(circle at 70% 72%, rgba(142,112,244,.25), transparent 24%),
  radial-gradient(circle at 12% 18%, rgba(90,196,182,.1), transparent 25%),
  linear-gradient(145deg, #161826, #272840); overflow: hidden;
}
.login-story::after { content: ""; position: absolute; width: 400px; height: 400px; right: -160px; top: -140px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.02), 0 0 0 110px rgba(255,255,255,.015); }
.login-brand { position: relative; z-index: 2; }
.story-copy { position: relative; z-index: 2; margin: auto 0; }
.story-copy h1 { max-width: 650px; color: #fff; font-size: clamp(2.8rem, 5.5vw, 5.4rem); line-height: .99; letter-spacing: 0; }
.story-copy h1 em { color: #a78efb; font-style: normal; }
.story-copy > p:last-child { max-width: 520px; margin-top: 25px; color: #a8a9ba; font-size: 1rem; line-height: 1.7; }
.story-preview { position: absolute; right: clamp(25px, 5vw, 70px); bottom: 95px; width: 280px; height: 170px; }
.preview-card { position: absolute; padding: 16px; color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.11); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.18); backdrop-filter: blur(12px); }
.floating-one { width: 180px; right: 0; top: 0; display: flex; flex-direction: column; }
.floating-one span, .floating-two span { color: #aaaabd; font-size: .62rem; }
.floating-one strong { margin: 7px 0; font-weight: 800; font-size: 1.65rem; }
.floating-one i { height: 4px; background: rgba(255,255,255,.1); border-radius: 5px; }
.floating-one b { display: block; width: 78%; height: 100%; background: #9b82f2; border-radius: inherit; }
.floating-two { left: 0; bottom: 0; display: flex; align-items: center; gap: 10px; }
.floating-two > svg { color: #a992f5; }
.floating-two div { display: flex; flex-direction: column; }
.floating-two strong { margin-top: 3px; font-size: .75rem; }
.login-foot { position: relative; z-index: 2; color: #77798c; font-size: .66rem; }
.login-form-side { display: grid; place-items: center; padding: 35px; }
.login-form { width: min(390px, 100%); }
.login-form h2 { margin-bottom: 8px; font-size: 2rem; }
.login-form > .muted { margin-bottom: 30px; font-size: .78rem; }
.login-form label { margin-bottom: 15px; display: flex; flex-direction: column; gap: 7px; color: #656674; font-size: .72rem; font-weight: 700; }
.login-form input { height: 47px; padding: 0 13px; border: 1px solid #dcdbe4; border-radius: 11px; outline: 0; }
.login-form input:focus { border-color: #987fe5; box-shadow: 0 0 0 3px rgba(126,99,226,.1); }
.login-button { width: 100%; margin-top: 4px; min-height: 48px; }
.demo-credentials { margin-top: 18px; padding: 12px; display: flex; flex-direction: column; color: #696a77; background: #f5f4f8; border-radius: 10px; font-size: .67rem; }
.demo-credentials span { margin-top: 3px; color: #8e8e9b; }
.privacy-line { margin-top: 17px; text-align: center; font-size: .64rem; }
.login-mobile-brand { display: none; }
.boot-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #999aa8; background: #171927; }
.boot-screen .brand-lockup { transform: scale(1.25); }
.boot-screen > span { font-size: .7rem; }
.skeleton { position: relative; overflow: hidden; background: #e9e8ee !important; border: 0 !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton.tall { height: 150px; }
.skeleton.giant { height: 360px; }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .pos-layout { grid-template-columns: 1fr; }
  .checkout-panel { position: static; }
  .pos-document-columns { grid-template-columns: 1fr; }
  .pos-review-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos-review-card-amount { align-items: flex-start; text-align: left; }
  .pos-review-card-amount .pos-review-card-label { text-align: left; }
  .login-page { grid-template-columns: 1fr 430px; }
  .story-preview { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .reports-layout { grid-template-columns: repeat(2, 1fr); }
  .report-wide { grid-column: span 2; }
  .team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stock-movement-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .parallel-banner { padding: 6px 17px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-102%); transition: none; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .sidebar.sidebar.open { transform: translateX(0) !important; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 18; background: rgba(20,21,33,.5); backdrop-filter: blur(3px); }
  .mobile-close, .menu-button { display: grid; }
  .collapse-button { display: none; }
  .topbar { padding: 0 17px; }
  .global-search { flex: 1; width: auto; }
  .quick-add span { display: none; }
  .page-container { padding: 25px 18px 50px; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .agenda-board { grid-template-columns: repeat(3, 285px); }
  .login-page { display: block; background: linear-gradient(145deg, #171927, #26273e); }
  .login-story { display: none; }
  .login-form-side { min-height: 100vh; padding: 25px; }
  .login-form { padding: 26px; background: #fff; border-radius: 22px; box-shadow: 0 25px 60px rgba(0,0,0,.25); }
  .login-mobile-brand { margin-bottom: 42px; display: block; }
  .login-mobile-brand .brand-lockup { color: var(--ink); }
  .reports-layout { grid-template-columns: 1fr; }
  .report-wide { grid-column: auto; }
  .report-drill-grid { grid-template-columns: repeat(2, 1fr); }
  .marketing-layout, .business-layout { grid-template-columns: 1fr; }
  .recommendation-stats-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recommendation-toolbar { grid-template-columns: 1fr; }
  .booking-class-layout { grid-template-columns: 1fr; }
  .booking-class-sidebar { max-height: none; border-right: 0; border-bottom: 1px solid #ececf1; }
  .bc-family-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .bc-family-item { flex: 0 0 auto; min-width: 140px; }
  .bc-command-bar { align-items: stretch; }
  .bc-view-controls { margin-left: 0; width: 100%; }
  .booking-class-selection { margin-left: 0; width: 100%; }
  .marketing-campaigns { grid-row: auto; }
  .business-save { grid-column: auto; }
  .cash-layout { grid-template-columns: 1fr; }
  .unresolved-appointments > header, .unresolved-appointment-list > article { align-items: stretch; flex-direction: column; }
  .unresolved-appointment-actions { justify-content: stretch; }
  .unresolved-appointment-actions button { flex: 1 1 145px; }
  .purchase-order-list { grid-template-columns: 1fr; }
  .clock-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .integration-counts, .integration-preview > div { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .entity-workspace-header { grid-template-columns: 1fr; gap: 10px; padding: 12px 14px; }
  .entity-workspace-back { justify-self: start; }
  .entity-workspace-actions { width: 100%; justify-content: stretch; }
  .entity-workspace-actions button { flex: 1 1 auto; }
  .entity-workspace-tabs { padding: 0 12px; }
  .entity-workspace-body { padding: 0; }
  .entity-workspace-view { padding: 12px; }
  .staff-general-grid { grid-template-columns: 1fr; }
  .professional-profile-grid { grid-template-columns: 1fr; }
  .professional-profile-hero { flex-direction: column; align-items: flex-start; }
  .professional-specialty-row { grid-template-columns: 1fr; }
  .staff-schedule-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.section-agenda .agenda-toolbar .icon-button,
  body.section-agenda .agenda-date-trigger,
  body.section-agenda .agenda-hour-trigger,
  body.section-agenda .agenda-today-pill,
  body.section-agenda .agenda-sync-status,
  body.section-agenda .agenda-view-toggle button,
  body.section-agenda .agenda-filter-control,
  body.section-agenda .agenda-filter-control .agenda-filter {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 580px) {
  .page-stack.is-agenda-view {
    --agenda-sticky-top: 70px;
    --agenda-toolbar-sticky-height: 128px;
  }
  .parallel-banner { min-height: 30px; justify-content: flex-start; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .parallel-banner span { overflow: hidden; text-overflow: ellipsis; }
  .parallel-settings-card { grid-template-columns: 1fr; }
  .topbar { gap: 10px; padding: 0 14px; }
  .topbar .global-search { min-width: 0; }
  .topbar .quick-add { flex: 0 0 44px; width: 44px; min-width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .page-container { padding: 20px max(14px, env(safe-area-inset-left, 0px)) calc(84px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-right, 0px)); }
  body.section-agenda .topbar .global-search,
  body.section-agenda .topbar .quick-add { display: none; }
  body.section-agenda .parallel-banner { display: none; }
  .viewport-mobile .page-stack.is-agenda-view .page-header { display: none; }
  .viewport-mobile .page-stack.is-agenda-view .agenda-message-host { display: none; }
  .agenda-toolbar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-areas:
      "prev date next"
      "today views views";
    align-items: stretch;
    padding: 8px 10px;
    border-radius: 16px;
    gap: 8px;
  }
  .agenda-date-nav,
  .agenda-date-navigation,
  .agenda-toolbar-controls { display: contents; }
  .day-navigation > .agenda-date-navigation { display: contents; }
  #day-back { grid-area: prev; }
  #day-next { grid-area: next; }
  .day-navigation { gap: 0; }
  .agenda-date-trigger {
    grid-area: date;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 3px 7px;
    font-size: .78rem;
    line-height: 1.12;
  }
  .agenda-date-label {
    max-width: none;
    overflow: visible;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
  }
  .agenda-quick-nav { grid-area: today; display: flex; min-width: 0; }
  .agenda-hour-trigger { display: none; }
  .agenda-today-pill { width: 100%; min-height: 44px; padding: 4px 9px; font-size: .72rem; }
  .agenda-today-full { display: none; }
  .agenda-today-short { display: inline; }
  .agenda-filter-control { min-height: 36px; border-radius: 10px; }
  .agenda-filter-control .agenda-filter { height: 36px; min-height: 36px; padding-left: 35px; font-size: .74rem; }
  .agenda-toolbar-controls .agenda-view-toggle { grid-area: views; justify-self: stretch; }
  .agenda-view-toggle { width: 100%; min-width: 0; justify-content: stretch; }
  .agenda-view-toggle button { flex: 1 1 0; min-height: 44px; padding: 0 10px; font-size: .78rem; }
  .agenda-toolbar-controls .agenda-filter-control,
  .agenda-toolbar-sync { display: none; }
  .agenda-sync-notice { width: 100%; flex-wrap: wrap; }
  .mobile-staff-picker {
    position: sticky;
    top: var(--agenda-mobile-staff-top);
    z-index: 24;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 6px;
    margin: -2px 0 0;
    padding: 6px 2px;
    overflow: visible;
    background: rgba(244,245,248,.94);
    border-radius: 14px;
    scroll-snap-type: none;
    backdrop-filter: blur(10px);
  }
  .mobile-staff-chip { min-width: 0; justify-content: center; padding: 10px 8px; border-radius: 12px; }
  .mobile-staff-chip .avatar,
  .mobile-staff-chip small { display: none; }
  .mobile-staff-chip strong { font-size: .78rem; text-align: center; }
  .mobile-free-slot { min-height: 56px; }
  .mobile-appointment-card { min-height: 96px; padding: 16px 4px; }
  .mobile-client-name { font-size: .92rem; }
  .mobile-service-name { font-size: .78rem; }
  .zerobab-integration { padding: 18px; }
  .zerobab-integration > header { flex-direction: column; }
  .integration-counts, .integration-preview > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .integration-status { align-items: flex-start; flex-direction: column; }
  .zerobab-integration > footer { flex-direction: column; }
  .zerobab-integration > footer button { width: 100%; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .page-header .primary-button { width: 100%; }
  .welcome-panel { padding: 25px; align-items: flex-start; flex-direction: column; }
  .welcome-panel .primary-button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 105px; }
  .agenda-toolbar { border-radius: 17px; }
  .agenda-toolbar-nav, .agenda-toolbar-actions { width: 100%; }
  .agenda-toolbar-actions { margin-left: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .mobile-agenda { display: flex; flex-direction: column; gap: 12px; }
  .calendar-shell { display: none; }
  .form-grid, .pos-catalog-grid, .inventory-summary, .service-grid, .phase-editor-grid, .coverage-grid, .coverage-grid-operational, .report-catalog-grid, .report-filters-grid, .team-grid, .segment-grid, .phase-staff-grid, .skill-checkbox-grid, .appointment-phase-row { grid-template-columns: 1fr; }
  .pos-review-card-grid { grid-template-columns: 1fr; }
  .report-export-grid, .report-drill-grid { grid-template-columns: 1fr; }
  .table-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .search-box input { width: 100%; }
  .global-search kbd { display: none; }
  .timeline-row { grid-template-columns: 50px 10px 1fr; }
  .timeline-row .status-chip { display: none; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal-card { width: 100%; max-height: 92vh; border-radius: 22px 22px 12px 12px; }
  .calendar-legend { align-items: flex-start; flex-direction: column; gap: 7px; }
  .calendar-legend span:last-child { margin-left: 0; }
  .appointment-service-category { grid-template-columns: 1fr; }
  .appointment-selected-services { top: -1px; padding: 8px; }
  .appointment-selected-services > header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .appointment-selected-services > header small { text-align: left; }
  .appointment-service-total { max-height: 34vh; }
  .appointment-service-plan > header { align-items: flex-start; }
  .appointment-selected-service-actions { align-self: center; }
  .appointment-suggestion-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appointment-status-bar { grid-template-columns: 1fr; }
  .appointment-status-bar .form-error { grid-column: auto; }
  .appointment-phase-summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .appointment-phase-summary-grid span { padding: 8px 6px; text-align: center; }
  .appointment-phase-summary-grid small { font-size: .5rem; }
  .appointment-phase-summary-grid strong { font-size: .76rem; }
  .appointment-phase-timeline span b { font-size: .5rem; }
  .technical-file-grid { grid-template-columns: 1fr; }
  .backup-list { grid-template-columns: 1fr; }
  .readiness-grid > strong { width: 100%; margin-left: 0; }
  .profile-hero { align-items: flex-start; flex-wrap: wrap; }
  .profile-hero > button { width: 100%; margin-left: 0; }
  .cart-row { grid-template-columns: minmax(0,1fr) auto; }
  .cart-price-controls { grid-column: 1 / -1; grid-row: 2; }
  .cart-row .quantity { grid-column: 1; grid-row: 3; justify-self: start; }
  .cart-line-total { grid-column: 2; grid-row: 3; }
  .exposure-duration-controls { grid-template-columns: 42px minmax(70px, 1fr) 42px; }
  .exposure-duration-controls .secondary-button { grid-column: 1 / -1; }
  .communication-actions, .clock-grid { grid-template-columns: 1fr; }
  .header-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .timesheet-list > div { grid-template-columns: 1fr 1fr; }
  .timesheet-list > div > span:first-child { grid-column: 1 / -1; }
  .pagination { flex-wrap: wrap; }
  .purchase-line-builder { grid-template-columns: 1fr 1fr; }
  .purchase-line-builder > label:first-child { grid-column: 1 / -1; }
  .purchase-line-builder > button { width: 100%; }
  .campaign-row { grid-template-columns: auto 1fr auto; padding: 8px 0; }
  .campaign-results { grid-column: 2 / -1; text-align: left; }
  .stock-movement-grid { grid-template-columns: 1fr; }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 950px) {
  .page-stack.is-agenda-view {
    --agenda-sticky-top: 54px;
    --agenda-toolbar-sticky-height: 102px;
    --agenda-time-column-width: 54px;
    --agenda-staff-column-width: 196px;
  }
  .app-shell { display: block; }
  .main-area { min-height: 0; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-102%); transition: none; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .sidebar.sidebar.open { transform: translateX(0) !important; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 18; background: rgba(20,21,33,.5); backdrop-filter: blur(3px); }
  .mobile-close, .menu-button { display: grid; }
  .collapse-button { display: none; }
  .topbar { height: 54px; min-height: 54px; padding: 0 12px; }
  body.section-agenda .topbar .global-search,
  body.section-agenda .topbar .quick-add { display: none; }
  body.section-agenda .parallel-banner { display: none; }
  .page-container { padding: 9px 12px 18px; overflow: visible; min-height: 0; }
  .page-stack { gap: 8px; min-height: 0; }
  .page-header { display: none; }
  .agenda-message-host { display: none; }
  .mobile-agenda { display: none !important; }
  .agenda-toolbar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-areas:
      "prev date next"
      "today views sync";
    align-items: stretch;
    padding: 7px 10px;
    border-radius: 13px;
    gap: 8px;
  }
  .agenda-date-nav,
  .agenda-date-navigation,
  .agenda-toolbar-controls { display: contents; }
  .day-navigation > .agenda-date-navigation { display: contents; }
  #day-back { grid-area: prev; }
  #day-next { grid-area: next; }
  .day-navigation { gap: 0; }
  .agenda-date-trigger { grid-area: date; width: 100%; min-width: 0; min-height: 44px; padding-inline: 8px; font-size: .82rem; }
  .agenda-date-label { max-width: none; overflow: visible; text-overflow: clip; white-space: normal; text-align: center; }
  .agenda-quick-nav { grid-area: today; display: flex; min-width: 0; }
  .agenda-hour-trigger { display: none; }
  .agenda-today-pill { width: 100%; min-height: 44px; padding-inline: 9px; }
  .agenda-today-full { display: none; }
  .agenda-today-short { display: inline; }
  .agenda-toolbar-controls .agenda-view-toggle { grid-area: views; justify-self: stretch; }
  .agenda-view-toggle { width: 100%; min-width: 0; justify-content: stretch; }
  .agenda-view-toggle button { flex: 1 1 0; min-height: 44px; }
  .agenda-toolbar-controls .agenda-filter-control { display: none; }
  .agenda-toolbar-sync { grid-area: sync; width: 44px; min-width: 44px; max-width: 44px; padding-inline: 0; overflow: hidden; justify-self: stretch; }
  .agenda-toolbar-sync span,
  .agenda-toolbar-sync small { display: none; }
  .calendar-shell { display: block !important; border-radius: 14px; overflow: visible; }
  .calendar-shell.is-hidden { display: none !important; }
  .weekly-agenda { grid-template-columns: repeat(7, minmax(175px, 1fr)); overflow-x: auto; overflow-y: visible; }
  .weekly-day { min-height: 420px; }
  .calendar-header { min-width: calc(var(--agenda-time-column-width) + var(--staff-count) * var(--agenda-staff-column-width)); grid-template-columns: var(--agenda-time-column-width) repeat(var(--staff-count), minmax(var(--agenda-staff-column-width), var(--agenda-staff-column-width))); }
  .calendar-person { min-height: 48px; padding: 6px 9px; }
  .calendar-person .avatar { width: 31px; height: 31px; }
  .calendar-scroll {
    height: clamp(150px, calc(100dvh - 216px), 230px);
    max-height: 230px;
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }
  .calendar-grid { min-width: calc(var(--agenda-time-column-width) + var(--staff-count) * var(--agenda-staff-column-width)); grid-template-columns: var(--agenda-time-column-width) repeat(var(--staff-count), minmax(var(--agenda-staff-column-width), var(--agenda-staff-column-width))); }
  .calendar-times span,
  .calendar-time-label { right: 7px; }
  .calendar-legend { display: none; }
  .calendar-appointment { left: 5px; right: 5px; }
  .calendar-appointment,
  .calendar-display-card.is-short,
  .calendar-display-card.is-micro { min-height: 0; padding: 2px 5px 2px 7px; border-left-width: 4px; border-radius: 5px; }
  .calendar-display-card { gap: 0; justify-content: flex-start; }
  .calendar-display-card .calendar-client-name { font-size: .62rem; line-height: 1.05; -webkit-line-clamp: 1; }
  .calendar-display-card .calendar-service-name,
  .calendar-display-card .calendar-segment-duration,
  .calendar-display-card .calendar-phase-strip,
  .calendar-display-card .appointment-resize-handle { display: none; }
}

/* Reserva online: clasificacion de servicios redisenada. */
.booking-classification-panel.booking-class-redesign {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.booking-class-redesign-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 680px; }
.booking-class-family-pane { display: flex; flex-direction: column; gap: 10px; padding: 18px 14px; background: #fafafa; border-right: 1px solid #e5e7eb; }
.booking-class-family-pane header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.booking-class-family-pane header h2, .booking-class-service-head h2 { margin: 0; color: #111827; font-size: .9rem; letter-spacing: 0; }
.booking-class-family-pane header button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  color: #6b7280;
  font-size: .58rem;
  font-weight: 800;
  cursor: pointer;
}
.booking-class-family-pane header button:hover { color: var(--primary); border-color: #cac3f4; }
.booking-family-list { display: flex; flex-direction: column; gap: 3px; }
.booking-family-row { width: 100%; min-height: 36px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #374151; cursor: pointer; }
.booking-family-row span { overflow: hidden; font-size: .68rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.booking-family-row b { min-width: 26px; padding: 2px 7px; border-radius: 999px; background: #eef0f3; color: #6b7280; font-size: .58rem; text-align: center; }
.booking-family-row:hover { background: #fff; border-color: #e5e7eb; }
.booking-family-row.active { background: #fff; border-color: #d9d4f6; box-shadow: inset 3px 0 0 var(--primary); }
.booking-family-row.active span { color: #111827; }
.booking-family-row.active b { background: rgba(128, 101, 228, .13); color: var(--primary); }
.booking-class-new-family { margin-top: auto; min-height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #374151; font-size: .65rem; font-weight: 800; cursor: pointer; }
.booking-class-new-family:hover { border-color: #cac3f4; color: var(--primary); }
.booking-class-service-pane { min-width: 0; display: flex; flex-direction: column; background: #fff; }
.booking-class-service-head { min-height: 70px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e5e7eb; }
.booking-class-service-head p { margin: 4px 0 0; color: #6b7280; font-size: .62rem; font-weight: 650; }
.booking-class-search { width: min(360px, 100%); min-height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid #dfe3ea; border-radius: 8px; background: #fff; color: #9ca3af; }
.booking-class-search input { width: 100%; min-height: 38px; padding: 0; border: 0; outline: none; color: #111827; font-size: .68rem; }
.booking-class-search:focus-within { border-color: #b9aef0; box-shadow: 0 0 0 3px rgba(128, 101, 228, .12); }
.booking-class-redesign .booking-class-bulk { padding: 10px 18px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #e5e7eb; background: #f7f5ff; }
.booking-class-redesign .booking-class-bulk[hidden] { display: none; }
.booking-class-redesign .booking-class-bulk strong { margin-right: auto; color: #4c3fb0; font-size: .65rem; }
.booking-class-redesign .booking-class-bulk select { min-height: 36px; border: 1px solid #dfe3ea; border-radius: 8px; background: #fff; font-size: .62rem; }
.booking-class-redesign .booking-class-table-shell { border: 0; border-radius: 0; }
.booking-class-redesign .booking-class-table-wrap { max-height: 560px; margin: 0; border: 0; overflow: auto; }
.booking-class-redesign table { width: 100%; border-collapse: separate; border-spacing: 0; }
.booking-class-redesign thead th { position: sticky; top: 0; z-index: 2; padding: 10px 14px; background: #fbfbfc; border-bottom: 1px solid #e5e7eb; color: #6b7280; font-size: .58rem; font-weight: 850; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.booking-class-redesign tbody td { padding: 10px 14px; border-bottom: 1px solid #f0f1f3; color: #1f2937; font-size: .66rem; vertical-align: middle; }
.booking-class-redesign tbody tr:hover td, .booking-class-redesign tbody tr.is-active td { background: #faf9ff; }
.booking-class-redesign tbody tr.is-blocked { opacity: .55; }
.booking-class-redesign .bc-col-check { width: 42px; text-align: center; }
.booking-service-name button, .booking-family-pill { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.booking-service-name strong { display: block; max-width: 340px; overflow: hidden; font-size: .7rem; white-space: nowrap; text-overflow: ellipsis; }
.booking-service-name button:hover strong, .booking-family-pill:hover { color: var(--primary); }
.booking-service-muted { max-width: 220px; overflow: hidden; color: #6b7280; white-space: nowrap; text-overflow: ellipsis; }
.booking-family-pill { padding: 4px 9px; border-radius: 999px; background: #f3f4f6; color: #374151; font-weight: 800; }
.booking-dot { display: inline-flex; align-items: center; gap: 5px; color: #9ca3af; font-weight: 800; }
.booking-dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.booking-dot.is-on { color: #0f9f75; }
.booking-class-redesign .booking-class-pagination { min-height: 52px; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e5e7eb; color: #6b7280; font-size: .62rem; }
.booking-pagination-pages, .booking-page-size { display: inline-flex; align-items: center; gap: 4px; }
.booking-pagination-pages button, .booking-page-size button { min-width: 30px; height: 30px; border: 1px solid #e5e7eb; border-radius: 7px; background: #fff; color: #374151; font-size: .62rem; font-weight: 800; cursor: pointer; }
.booking-pagination-pages button.active, .booking-page-size button.active { border-color: #111827; background: #111827; color: #fff; }
.booking-pagination-pages button:disabled { opacity: .42; cursor: not-allowed; }
.booking-class-drawer { position: absolute; top: 0; right: 0; z-index: 8; width: min(380px, 100%); height: 100%; padding: 0; background: #fff; border-left: 1px solid #e5e7eb; box-shadow: -16px 0 36px rgba(15, 23, 42, .12); }
.booking-class-drawer[hidden] { display: none; }
.booking-class-drawer-form { height: 100%; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.booking-class-drawer-form header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #e5e7eb; }
.booking-class-drawer-form header p { margin: 0 0 4px; color: #6b7280; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.booking-class-drawer-form h3 { margin: 0; color: #111827; font-size: .95rem; line-height: 1.25; }
.booking-class-drawer-form > label { display: flex; flex-direction: column; gap: 6px; color: #374151; font-size: .62rem; font-weight: 850; }
.booking-class-drawer-form input:not([type="checkbox"]), .booking-class-drawer-form select { min-height: 40px; padding: 0 11px; border: 1px solid #dfe3ea; border-radius: 8px; background: #fff; color: #111827; font-size: .66rem; font-weight: 650; }
.booking-class-drawer-form input[readonly] { background: #f9fafb; color: #6b7280; }
.booking-class-staff-list { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fbfbfc; }
.booking-class-staff-list > span { color: #374151; font-size: .62rem; font-weight: 850; }
.booking-class-staff-list label { display: flex; align-items: center; gap: 8px; color: #4b5563; font-size: .64rem; font-weight: 700; }
.booking-class-staff-list p { margin: 0; color: #9ca3af; font-size: .62rem; }
.booking-class-drawer-form footer { margin-top: auto; display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 900px) {
  .booking-class-redesign-layout { grid-template-columns: 1fr; }
  .booking-class-family-pane { border-right: 0; border-bottom: 1px solid #e5e7eb; }
  .booking-class-service-head { align-items: stretch; flex-direction: column; }
  .booking-class-search { width: 100%; }
  .booking-class-drawer { position: fixed; top: 0; bottom: 0; height: auto; }
}

.marketing-ai-page { display: grid; gap: 18px; }
.marketing-ai-hero { padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr); gap: 18px; background: linear-gradient(135deg, #f7f4ff 0%, #fff 55%, #f3fbff 100%); }
.marketing-ai-hero h1 { margin: 6px 0 8px; font-size: 1.55rem; }
.marketing-ai-hero-lead { margin: 0; color: #4a4b5a; font-size: .9rem; line-height: 1.45; }
.marketing-ai-hero-sub { margin: 8px 0 0; color: #7d7e8d; font-size: .72rem; line-height: 1.45; }
.marketing-ai-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.marketing-ai-hero-stats div { padding: 12px 14px; border: 1px solid #eceaf4; border-radius: 14px; background: rgba(255,255,255,.82); }
.marketing-ai-hero-stats span { display: block; color: #8d8e9c; font-size: .62rem; font-weight: 700; }
.marketing-ai-hero-stats strong { display: block; margin-top: 4px; font-size: 1.2rem; }
.marketing-ai-section { display: grid; gap: 12px; }
.marketing-ai-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.marketing-ai-card { padding: 16px; display: grid; gap: 12px; }
.marketing-ai-card.is-dismissed { opacity: .55; }
.marketing-ai-card-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.marketing-ai-card-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #f4f0ff; color: #6c51d3; }
.marketing-ai-card-head strong { display: block; color: #343441; font-size: .82rem; line-height: 1.4; }
.marketing-ai-card-status { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.marketing-ai-card-status.is-pending { color: #8a6d12; background: #fff8df; }
.marketing-ai-card-status.is-reviewed { color: #2f7d57; background: #ebfaf2; }
.marketing-ai-card-status.is-dismissed { color: #7d7e8d; background: #f2f2f5; }
.marketing-ai-card-why span, .marketing-ai-card-action span { display: block; margin-bottom: 3px; color: #9a9aa7; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.marketing-ai-card-why, .marketing-ai-card-action { margin: 0; color: #5d5e6d; font-size: .72rem; line-height: 1.45; }
.marketing-ai-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.marketing-ai-context-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.marketing-ai-context-card { padding: 14px 16px; display: grid; gap: 8px; }
.marketing-ai-context-card strong { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; }
.marketing-ai-context-card p { margin: 0; color: #7d7e8d; font-size: .68rem; line-height: 1.45; }
.marketing-ai-proposal { display: grid; gap: 12px; }
.marketing-ai-proposal-lead { margin: 0; color: #4a4b5a; font-size: .84rem; line-height: 1.45; }
.marketing-ai-proposal-block { padding: 12px 14px; border: 1px solid #eceaf4; border-radius: 12px; background: #fafafd; }
.marketing-ai-proposal-block strong { display: block; margin-bottom: 4px; font-size: .68rem; text-transform: uppercase; color: #8d8e9c; }
.marketing-ai-proposal-block p, .marketing-ai-proposal-block ul { margin: 0; color: #5d5e6d; font-size: .74rem; line-height: 1.45; }
@media (max-width: 900px) {
  .marketing-ai-hero { grid-template-columns: 1fr; }
}

.content-seo-page { display: grid; gap: 18px; }
.content-seo-subtitle { margin: 6px 0 0; color: #7a7f92; font-size: .9rem; line-height: 1.45; }
.content-seo-header-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.content-seo-banner { margin-top: -6px; }
.content-seo-home-cta { display: grid; gap: 8px; padding: 18px; background: linear-gradient(135deg, #f7f4ff 0%, #fff 58%, #f8fbff 100%); border: 1px solid rgba(128,101,228,.14); }
.content-seo-home-new { width: 100%; min-height: 52px; font-size: 1rem; font-weight: 700; justify-content: center; }
.content-seo-home-cta-copy { margin: 0; color: #7a7f92; font-size: .84rem; text-align: center; }
.content-seo-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.content-seo-home-card { display: grid; gap: 10px; padding: 18px; text-align: left; border: 1px solid rgba(23,25,39,.08); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.content-seo-home-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,25,39,.08); }
.content-seo-home-card.primary { border-color: rgba(128,101,228,.25); background: linear-gradient(180deg, #faf8ff 0%, #fff 100%); }
.content-seo-home-card.soon { opacity: .92; }
.content-seo-home-card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #f4f0ff; color: #6c51d3; }
.content-seo-home-card strong { font-size: 1rem; color: #171927; }
.content-seo-home-card p { margin: 0; color: #6b7086; font-size: .84rem; line-height: 1.45; }
.content-seo-home-meta { color: #8d8e9c; font-size: .72rem; font-weight: 600; }
.content-seo-home-badge { justify-self: start; padding: 3px 8px; border-radius: 999px; background: #fff4df; color: #8a6d12; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.content-seo-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.content-seo-info-card { padding: 16px; display: grid; gap: 6px; }
.content-seo-info-label { color: #8d8e9c; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.content-seo-info-card strong { font-size: 1rem; color: #171927; }
.content-seo-info-card small { color: #7a7f92; font-size: .76rem; line-height: 1.4; word-break: break-word; }
.content-seo-info-card.tone-ok { border-left: 3px solid #3f9b74; }
.content-seo-info-card.tone-warn { border-left: 3px solid #d6a53b; }
.content-seo-web-form { padding: 16px; }
.content-seo-overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px; }
.content-seo-overview-side { padding: 16px; }
.content-seo-benefits { margin: 0; padding-left: 18px; color: #5d5e6d; font-size: .82rem; line-height: 1.55; }
.content-seo-status-card { padding: 16px; display: grid; gap: 12px; }
.content-seo-status-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.content-seo-status-badge { padding: 6px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.content-seo-status-card.tone-ok .content-seo-status-badge { background: #ebfaf2; color: #2f7d57; }
.content-seo-status-card.tone-warn .content-seo-status-badge { background: #fff8df; color: #8a6d12; }
.content-seo-status-card.tone-bad .content-seo-status-badge { background: #fff0ef; color: #9a4a45; }
.content-seo-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.content-seo-checklist li { display: flex; align-items: center; gap: 8px; color: #5d5e6d; font-size: .82rem; }
.content-seo-checklist li.is-ok { color: #2f7d57; }
.content-seo-check-icon { width: 18px; text-align: center; font-weight: 800; }
.content-seo-blog-list { padding: 16px; display: grid; gap: 14px; }
.content-seo-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.content-seo-toolbar input,
.content-seo-toolbar select { min-width: 180px; }
.content-seo-post-list { display: grid; gap: 10px; }
.content-seo-post-card { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid rgba(23,25,39,.08); border-radius: 12px; background: #fafafd; }
.content-seo-post-card strong { display: block; color: #171927; }
.content-seo-post-card p { margin: 4px 0; color: #6b7086; font-size: .82rem; }
.content-seo-post-card small { color: #8d8e9c; font-size: .72rem; }
.content-seo-post-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.content-seo-editor-page .blog-editor-layout,
.content-seo-editor-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr); gap: 16px; align-items: start; }
.content-seo-editor-form { display: grid; gap: 16px; padding: 18px; }
.content-seo-field { display: grid; gap: 6px; }
.content-seo-field > span { color: #6b7086; font-size: .74rem; font-weight: 700; }
.content-seo-field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.content-seo-image-panel { display: grid; gap: 10px; padding: 14px; border: 1px dashed rgba(23,25,39,.12); border-radius: 12px; background: #fafafd; }
.content-seo-image-preview { min-height: 140px; display: grid; place-items: center; border-radius: 10px; background: #fff; overflow: hidden; }
.content-seo-image-preview img { width: 100%; max-height: 220px; object-fit: cover; }
.content-seo-schedule-panel { display: none; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid rgba(214,165,59,.28); background: #fffaf0; }
.content-seo-schedule-panel.is-visible { display: grid; }
.content-seo-schedule-copy strong { display: block; color: #171927; font-size: .9rem; }
.content-seo-schedule-copy p { margin: 4px 0 0; color: #7a7f92; font-size: .8rem; line-height: 1.45; }
.content-seo-schedule-summary { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff; color: #5d5e6d; font-size: .82rem; line-height: 1.45; border: 1px solid rgba(23,25,39,.06); }
.content-seo-ai-soon { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: #f7f7fa; border: 1px dashed rgba(23,25,39,.12); color: #6b7086; }
.content-seo-ai-soon-icon { font-size: 1.2rem; line-height: 1; }
.content-seo-ai-soon strong { display: block; color: #4d5168; font-size: .82rem; }
.content-seo-ai-soon p { margin: 4px 0 0; font-size: .8rem; line-height: 1.45; }
.content-seo-content-field { display: grid; gap: 8px; }
.content-seo-content-head { display: flex; justify-content: space-between; gap: 10px; align-items: end; flex-wrap: wrap; }
.content-seo-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.content-seo-content-input { min-height: 320px; padding: 14px 16px; line-height: 1.6; font-size: .92rem; resize: vertical; }
.content-seo-content-meta { display: flex; justify-content: space-between; gap: 10px; color: #8d8e9c; font-size: .74rem; }
.content-seo-content-meta .is-empty { color: #b35b55; }
.content-seo-content-meta .is-ok { color: #2f7d57; }
.content-seo-advanced { border: 1px solid rgba(23,25,39,.08); border-radius: 12px; padding: 0 14px; background: #fafafd; }
.content-seo-advanced summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: #4d5168; }
.content-seo-advanced-body { display: grid; gap: 12px; padding-bottom: 14px; }
.content-seo-readonly-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.content-seo-readonly-grid div { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid rgba(23,25,39,.06); }
.content-seo-readonly-grid strong { display: block; margin-bottom: 4px; color: #8d8e9c; font-size: .66rem; text-transform: uppercase; }
.content-seo-readonly-grid span { color: #5d5e6d; font-size: .76rem; line-height: 1.4; word-break: break-word; }
.content-seo-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.content-seo-editor-side { display: grid; gap: 14px; }
.content-seo-preview-panel { padding: 16px; }
.blog-preview-card { display: grid; gap: 8px; }
.blog-preview-image { width: 100%; border-radius: 10px; object-fit: cover; max-height: 180px; }
@media (max-width: 980px) {
  .content-seo-editor-layout,
  .content-seo-overview { grid-template-columns: 1fr; }
  .content-seo-post-card { flex-direction: column; }
  .content-seo-post-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .content-seo-header,
  .blog-editor-header { grid-template-columns: 1fr; gap: 10px; }
  .content-seo-editor-header-actions,
  .content-seo-header-actions { width: 100%; }
  .content-seo-editor-header-actions .secondary-button,
  .content-seo-header-actions .primary-button,
  .content-seo-header-actions .secondary-button { width: 100%; justify-content: center; }
  .content-seo-home-new { min-height: 56px; font-size: 1.05rem; }
  .content-seo-editor-form { padding: 14px; gap: 14px; }
  .content-seo-content-input { min-height: 240px; font-size: 1rem; }
  .content-seo-toolbar { width: 100%; }
  .content-seo-toolbar .text-button { flex: 1 1 calc(50% - 4px); text-align: center; padding: 8px 6px; }
  .content-seo-editor-actions { position: sticky; bottom: 0; z-index: 2; margin: 0 -14px -14px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid rgba(23,25,39,.08); backdrop-filter: blur(8px); }
  .content-seo-editor-actions .primary-button,
  .content-seo-editor-actions .secondary-button { flex: 1 1 calc(50% - 4px); justify-content: center; min-height: 44px; }
  .content-seo-editor-side { order: 2; }
  .content-seo-editor-form { order: 1; }
  .content-seo-editor-layout { display: flex; flex-direction: column; gap: 12px; }
  .content-seo-preview-panel { display: none; }
  .content-seo-schedule-panel input[type="datetime-local"] { min-height: 44px; font-size: 1rem; }
}
.onboarding-progress {
  display: grid;
  grid-template-columns: repeat(8, minmax(22px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.onboarding-progress span {
  display: grid;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-muted, #f1eff7);
  color: var(--muted, #787382);
  font-size: .72rem;
  font-weight: 800;
}

.onboarding-progress span.active {
  background: var(--primary, #8065e4);
  color: #fff;
}

.onboarding-step {
  min-height: 310px;
}

.onboarding-step[hidden] { display: none; }

@media (max-width: 700px) {
  .onboarding-progress { gap: 4px; }
  .onboarding-step { min-height: 0; }
}
/* Centro de Comunicaciones Inteligente */
.communications-center{display:grid;gap:20px;max-width:1440px;margin:0 auto}.communications-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:28px;border-radius:24px;background:linear-gradient(135deg,#17162b,#353064 65%,#675ed6);color:#fff;box-shadow:0 18px 46px #28244a22}.communications-hero h1{margin:3px 0 8px;font-size:clamp(28px,4vw,44px);letter-spacing:-.04em}.communications-hero p{margin:0;color:#dedcf8}.communications-hero .eyebrow{color:#bdb8ff}.communications-phase{white-space:nowrap;border:1px solid #ffffff36;background:#ffffff12;border-radius:999px;padding:9px 14px;font-size:12px;font-weight:700}.communications-tabs{display:flex;gap:6px;overflow:auto;padding:6px;border-radius:16px;background:var(--surface,#fff);border:1px solid var(--border,#e6e6ee)}.communications-tabs button{border:0;background:transparent;border-radius:11px;padding:10px 14px;color:var(--muted,#69697a);font-weight:650;white-space:nowrap;cursor:pointer}.communications-tabs button.active{background:#6258cf;color:#fff;box-shadow:0 4px 12px #6258cf33}.communications-content{display:grid;gap:18px}.communication-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.communication-metric{display:grid;gap:4px;padding:20px;border:1px solid var(--border,#e6e6ee);background:var(--surface,#fff);border-radius:18px}.communication-metric span{font-size:13px;color:var(--muted,#777786)}.communication-metric strong{font-size:28px;letter-spacing:-.03em}.communication-metric small{color:var(--muted,#777786)}.communications-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:18px;align-items:start}.communication-panel{background:var(--surface,#fff);border:1px solid var(--border,#e6e6ee);border-radius:20px;padding:20px;box-shadow:0 8px 26px #29243b08}.communication-panel>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.communication-panel h2,.communication-panel h3{margin:2px 0}.communication-panel header small{color:var(--muted,#777786)}.communication-readiness{display:grid;gap:0}.communication-readiness p{display:flex;justify-content:space-between;gap:12px;margin:0;padding:12px 0;border-bottom:1px solid var(--border,#eee)}.communication-readiness strong{font-size:13px}.communication-readiness .is-ready{color:#16805b}.communication-ai-note{display:grid;gap:5px;margin-top:18px;padding:15px;border-radius:14px;background:#f1efff;color:#403b77}.communication-ai-note span{font-size:13px;line-height:1.5}.communication-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.communication-template-card{display:grid;gap:10px;border:1px solid var(--border,#e6e6ee);border-radius:16px;padding:16px}.communication-template-card>div,.communication-template-card footer{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}.communication-template-card h3,.communication-template-card p{margin:0}.communication-template-card p{color:var(--muted,#777786);font-size:13px;min-height:36px}.communication-channel{display:inline-flex;padding:4px 8px;border-radius:999px;background:#efedff;color:#554bbd;font-size:11px;font-weight:750;text-transform:uppercase}.communication-editor{margin-top:18px}.communication-variable-list{display:flex;gap:6px;flex-wrap:wrap}.communication-variable-list button{border:1px solid #d9d5fb;background:#f6f5ff;color:#554bbd;border-radius:999px;padding:6px 9px;font-size:11px;cursor:pointer}.communication-preview{margin-top:18px;padding:24px;border:1px dashed #bbb5e9;border-radius:14px;background:#faf9ff}.communication-preview p{line-height:1.65}.communication-automation-list{display:grid;gap:9px}.communication-automation-list article{display:flex;gap:12px;align-items:center;padding:13px;border:1px solid var(--border,#e6e6ee);border-radius:13px}.communication-automation-list article div{display:grid;gap:3px}.communication-automation-list small{color:var(--muted,#777786)}.automation-switch{width:10px;height:10px;border-radius:50%;background:#b6b6c2}.automation-switch.active{background:#20a875;box-shadow:0 0 0 5px #20a87518}.communication-empty{display:grid;place-items:center;text-align:center;gap:6px;min-height:150px;padding:28px;color:var(--muted,#777786)}.communication-empty strong{color:var(--text,#252532)}.communication-status{display:inline-flex;border-radius:999px;padding:5px 8px;background:#eee;font-size:11px;font-weight:750}.status-sent{background:#e4f7ef;color:#10734f}.status-failed{background:#fdeaea;color:#a23a3a}.status-scheduled,.status-pending,.status-prepared,.status-retrying{background:#fff5d9;color:#8a6812}.status-sending{background:#e8f2ff;color:#2867a8}.status-cancelled,.status-suppressed{background:#eeeef2;color:#666675}.communication-error{color:#a23a3a;font-size:12px}.communication-channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.communication-channel-grid article{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;padding:17px;border:1px solid var(--border,#e6e6ee);border-radius:15px}.communication-channel-grid h3,.communication-channel-grid p{margin:0}.communication-channel-grid p{font-size:12px;color:var(--muted,#777786)}.communication-channel-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#efedff;color:#554bbd;font-weight:800}.preference-toggles{display:flex;gap:10px;flex-wrap:wrap}.communication-preferences-form{margin-top:20px;padding-top:20px;border-top:1px solid var(--border,#e6e6ee)}.communication-statistics{grid-template-columns:repeat(7,minmax(0,1fr))}.inline-form{display:flex;gap:10px}.inline-form input{flex:1}.loading-state{padding:48px;text-align:center;color:var(--muted,#777786)}
.status-processing{background:#e8f2ff;color:#2867a8}.status-simulated{background:#eeeafd;color:#5b46aa}.communication-mode-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.communication-mode-picker label{display:flex;gap:10px;padding:15px;border:1px solid var(--border,#e6e6ee);border-radius:14px;cursor:pointer}.communication-mode-picker label:has(input:checked){border-color:#6258cf;background:#f5f3ff}.communication-mode-picker span{display:grid;gap:3px}.communication-mode-picker small,.communication-test-tools small{color:var(--muted,#777786)}.communication-settings-block,.communication-test-tools{display:grid;gap:14px;padding-top:18px;border-top:1px solid var(--border,#e6e6ee)}
@media(max-width:1000px){.communication-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.communication-statistics{grid-template-columns:repeat(4,minmax(0,1fr))}.communications-grid{grid-template-columns:1fr}}
@media(max-width:680px){.communications-hero{align-items:flex-start;flex-direction:column}.communications-phase{white-space:normal}.communication-metrics,.communication-statistics,.communication-template-grid,.communication-channel-grid,.communication-mode-picker{grid-template-columns:1fr 1fr}.communication-channel-grid article{grid-template-columns:auto 1fr}.communication-channel-grid article label{grid-column:1/-1}.communication-panel{padding:15px}.inline-form{flex-direction:column}}
@media(max-width:430px){.communication-metrics,.communication-statistics,.communication-template-grid,.communication-channel-grid{grid-template-columns:1fr}}
.communication-alerts{display:grid;gap:10px;margin-bottom:8px}.communication-alert{padding:12px 14px;border-radius:14px;border:1px solid #f0c7a8;background:#fff7f0;color:#6a3b16}.communication-alert strong{display:block;margin-bottom:4px}.communication-alert span{font-size:13px;color:#7a5240}
.communications-center{min-width:0;width:100%}.communications-center>*,.communications-content,.communications-grid,.communication-panel{min-width:0}.communications-center .table-scroll{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}@supports(-webkit-touch-callout:none){.communications-tabs{max-width:100%;-webkit-overflow-scrolling:touch}.communication-panel{overflow:hidden}.communication-panel .table-scroll{overflow:auto}}
