@import url("agenda-visual-premium-v1.css?v=20261113");
:root {
  color-scheme: light;
  --ink: #172a54;
  --muted: #61718f;
  --line: #dbe4f5;
  --paper: #fff;
  --wash: #f4f7ff;
  --plum: #173789;
  --plum-dark: #10286a;
  --rose: #305bc1;
  --rose-wash: #e8efff;
  --sage: #27796c;
  --sage-wash: #e6f4ef;
  --blue: #2550b6;
  --blue-wash: #e9effd;
  --amber: #7c542c;
  --amber-wash: #f8efe1;
  --plum-wash: #e3eaff;
  --soft-shadow: 0 1px 2px #142e650b, 0 7px 20px #142e6508;
  --radius: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.47;
  color: var(--ink);
  background: var(--wash);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .54; }
a { color: inherit; }
a, button, input, select, textarea { -webkit-tap-highlight-color: #efc9d650; }
:focus-visible { outline: 2px solid #9b5b72; outline-offset: 3px; }
img, svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h2 { line-height: 1.2; }
small { font-size: .82rem; }
[hidden] { display: none !important; }
.sr-only { width: 1px; height: 1px; position: absolute; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { font-size: .73rem; letter-spacing: .15em; color: #84596c; font-weight: 760; }
.muted { color: var(--muted); }
.brand-mark { border-radius: 12px; }
.button { border: 1px solid transparent; border-radius: 10px; min-height: 39px; padding: .65rem .92rem; font-weight: 660;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; white-space: nowrap; color: var(--ink); }
.button.primary { background: var(--plum); color: #fff9fc; box-shadow: 0 2px 5px #4a303e2b; }
.button.primary:hover:not(:disabled) { background: var(--plum-dark); }
.button.secondary { border-color: var(--line); background: var(--paper); }
.button.secondary:hover:not(:disabled), .button.quiet:hover:not(:disabled) { background: #f8f1f5; }
.button.quiet { background: transparent; color: #71475d; }
.button.danger { background: #fff1f1; color: #963847; border-color: #f1ced3; }
.icon-button { padding: 0; min-width: 35px; min-height: 35px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: #674e5e; }
.icon-button:hover { background: #f7eef3; }
.text-button { border: 0; background: none; padding: 6px 0; color: var(--rose); text-align: left; font-weight: 650; text-decoration: underline; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-stack { display: grid; gap: 15px; }
.form-stack label:not(.check-line):not(.trap), .field { display: grid; gap: 6px; font-weight: 650; min-width: 0; }
.field small, .form-stack label small { color: var(--muted); font-weight: 400; }
input:not([type=checkbox]), select, textarea {
  width: 100%; min-height: 42px; border: 1px solid #ded4da; border-radius: 9px; background: #fff; color: var(--ink); padding: .64rem .75rem;
}
input[type=date], input[type=time] { min-width: 0; }
input:disabled, select:disabled { background: #f5f1f3; }
textarea { resize: vertical; min-height: 76px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.money-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.check-line { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .96rem; }
.check-line input { accent-color: var(--plum); width: 16px; height: 16px; margin: 0; flex: 0 0 16px; }
.form-error { background: #fff0f0; border: 1px solid #f0d1d5; color: #882e40; padding: 10px 12px; border-radius: 9px; }
.form-error-slot:empty { display: none; }
.loading-screen { min-height: 80vh; display: grid; justify-items: center; align-content: center; gap: 14px; color: var(--muted); }
.loading-inline { color: var(--muted); padding: 24px 0; }
.noscript { margin: 24px; text-align: center; }
.copy-buffer { position: fixed; left: -9999px; top: 0; }

.shell { display: grid; grid-template-columns: 260px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 22px 12px 16px; background: #fffdfd; border-right: 1px solid var(--line); }
.studio-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); padding: 0 4px; text-align: left; background: none; border: 0; }
.studio-brand span { display: grid; gap: 4px; }
.studio-brand strong { font-family: Georgia, serif; font-size: 1.12rem; line-height: 1.14; font-weight: 700; }
.studio-brand small { color: #875f71; font-weight: 730; letter-spacing: .14em; font-size: .62rem; }
.nav-caption { margin: 35px 0 11px 10px; color: #886d7b; font-size: .66rem; letter-spacing: .14em; font-weight: 750; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { display: flex; gap: 12px; align-items: center; padding: 10px 11px; color: #6b5763; border: 1px solid transparent; border-radius: 9px; background: none; text-align: left; font-weight: 570; }
.nav-item:hover { background: #f9f3f6; }
.nav-item[aria-current=page] { color: #60394e; background: #f5e9ef; border-color: #eddae4; font-weight: 730; }
.sidebar-bottom { margin-top: auto; padding-top: 16px; display: grid; gap: 14px; }
.sidebar-book { display: flex; align-items: center; gap: 8px; color: #785368; text-decoration: none; font-size: .86rem; padding: 7px 9px; font-weight: 640; }
.sidebar-book svg:last-child { margin-left: auto; }
.account-line { display: flex; align-items: center; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.account-line > span:nth-child(4), .account-line > span:nth-child(5) { min-width: 0; }
.account-line > span:not(.avatar) { flex: 1; min-width: 0; }
.account-line strong, .account-line small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .83rem; }
.account-line small { color: var(--muted); font-size: .72rem; }
.workspace { min-width: 0; }
.topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 clamp(17px, 2.5vw, 34px);
  border-bottom: 1px solid var(--line); background: #fffcfc; }
.breadcrumbs { display: flex; align-items: center; min-width: 0; gap: 11px; color: var(--muted); }
.crumb-studio { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs strong { color: var(--ink); white-space: nowrap; }
.crumb-slash { color: #ac95a2; }
.local-tag { color: #6e5664; font-size: .83rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.menu-trigger, .nav-backdrop { display: none; }
#screen { max-width: 1700px; margin-inline: auto; padding: 28px clamp(17px, 2.5vw, 34px) 44px; min-height: calc(100vh - 62px); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 23px; }
.page-head h1, .auth-card h1 { font: 600 clamp(2.15rem, 4vw, 3.05rem)/1.05 Georgia, serif; margin-top: 5px; letter-spacing: -.035em; }
.page-head p:last-child { margin-top: 8px; color: var(--muted); }
.page-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 19px; }
.metric { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 15px 14px; min-height: 108px; box-shadow: var(--soft-shadow); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-weight: 625; color: #66525e; line-height: 1.15; }
.metric-icon { width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 33px; }
.metric strong { display: block; font-size: clamp(1.31rem, 2vw, 1.8rem); font-weight: 745; margin: 2px 0 1px; line-height: 1.25; letter-spacing: -.04em; }
.metric small { color: var(--muted); font-size: .76rem; }
.rose { background: var(--rose-wash); color: var(--rose); }
.sage { background: var(--sage-wash); color: var(--sage); }
.plum { background: var(--plum-wash); color: var(--plum); }
.blue { background: var(--blue-wash); color: var(--blue); }
.amber { background: var(--amber-wash); color: var(--amber); }
.avatar { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; font-weight: 750; font-size: .74rem; flex: 0 0 auto; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--soft-shadow); min-width: 0; }
.agenda-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(218px,260px); align-items: start; gap: 15px; }
.calendar-panel { overflow: hidden; }
.calendar-toolbar { padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.calendar-day, .calendar-controls, .day-arrows { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.calendar-day > strong { font-size: 1.03rem; }
.day-arrows > .icon-button { min-width: 31px; min-height: 32px; border-color: var(--line); background: #fff; }
.calendar-date { width: 136px; }
.filter { width: 167px; }
.calendar-controls input, .calendar-controls select { min-height: 34px; padding: 4px 6px; border-color: var(--line); font-size: .79rem; }
.segmented { display: inline-flex; padding: 3px; border-radius: 9px; background: #f5eff3; }
.segmented button { border: 0; border-radius: 7px; background: transparent; min-height: 28px; padding: 4px 9px; color: #6b4c5e; font-size: .81rem; }
.segmented button[aria-pressed=true] { background: #fff; box-shadow: 0 1px 3px #43243a21; font-weight: 730; color: var(--plum); }
.calendar-scroll { overflow: auto; max-height: 720px; }
.calendar-grid { display: grid; grid-template-columns: 59px repeat(var(--columns),minmax(143px,1fr)); }
.grid-header { position: sticky; top: 0; z-index: 5; min-height: 63px; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fdfafc; min-width: 0; }
.grid-header > span:last-child { min-width: 0; display: grid; gap: 2px; }
.grid-header strong, .grid-header small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-header strong { font-size: .91rem; }
.grid-header small { color: var(--muted); font-size: .73rem; }
.time-header { font-size: .73rem; color: var(--muted); justify-content: center; padding: 3px; gap: 3px; }
.time-axis, .time-column { height: var(--grid-height); position: relative; border-right: 1px solid var(--line); }
.time-axis { background: #fbf8fa; }
.time-axis span { position: absolute; right: 9px; margin-top: 5px; font-size: .75rem; color: #786572; font-variant-numeric: tabular-nums; }
.time-column {
  background: repeating-linear-gradient(to bottom, transparent 0 62px, #e9e0e5 62px 63px),
    repeating-linear-gradient(135deg,#fcfafb 0 9px,#f8f3f6 9px 10px);
}
.working-area { position: absolute; width: 100%; background: repeating-linear-gradient(to bottom,#fff 0 62px,#e9e0e5 62px 63px); }
.day-off { display: block; text-align: center; position: sticky; top: 81px; padding: 10px; color: #826d7a; font-size: .8rem; }
.slot-button { position: absolute; inset-inline: 0; height: 31.5px; width: 100%; background: transparent; border: 0; text-align: left; color: #7c4e64; padding-inline: 9px; }
.slot-button span { opacity: 0; font-size: .77rem; font-weight: 650; }
.slot-button:hover, .slot-button:focus-visible { background: #f8edf3; z-index: 1; }
.slot-button:hover span, .slot-button:focus-visible span { opacity: 1; }
.theme-rose { --event-bg: #f9e9ee; --event-edge: #b9637c; --event-ink: #73364c; }
.theme-plum { --event-bg: #f1e8f4; --event-edge: #94649c; --event-ink: #694575; }
.theme-sage { --event-bg: #e9f2e8; --event-edge: #689471; --event-ink: #3f6548; }
.theme-blue { --event-bg: #e9f1f9; --event-edge: #698eac; --event-ink: #405d76; }
.theme-amber { --event-bg: #f8eee0; --event-edge: #b68b52; --event-ink: #755230; }
.theme-muted { --event-bg: #f1edf0; --event-edge: #978390; --event-ink: #665661; }
.event-card, .tiny-event { min-width: 0; text-align: left; border: 1px solid #44203313; border-left: 3px solid var(--event-edge); background: var(--event-bg); color: var(--event-ink);
  border-radius: 8px; padding: 5px 8px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.event-card { position: absolute; inset-inline: 4px; z-index: 2; }
.event-card:hover, .tiny-event:hover { box-shadow: 0 2px 7px #4c283526; }
.event-clock { font-size: .7rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.event-card b, .event-card small, .tiny-event b, .tiny-event small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; line-height: 1.2; }
.event-card b { font-size: .85rem; }
.event-card small { font-size: .74rem; }
.event-card.short { flex-flow: row wrap; align-content: center; padding: 3px 5px; column-gap: 4px; }
.event-card.short small { display: none; }
.tiny-event { width: 100%; padding: 7px 8px; gap: 4px; }
.tiny-event > span:first-child { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 3px; }
.tiny-event b { color: var(--ink); font-size: .83rem; }
.tiny-event small { font-size: .73rem; }
.status-chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border-radius: 999px; font-size: .69rem; font-weight: 700; padding: 3px 7px; width: fit-content; }
.status-chip i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-chip.muted { background: #eee9ed; color: #60545d; }
.week-grid { display: grid; grid-template-columns: repeat(7,minmax(116px,1fr)); min-height: 290px; }
.week-day { border-right: 1px solid var(--line); min-width: 0; }
.week-heading { width: 100%; min-height: 57px; padding: 7px; display: grid; justify-items: start; border: 0; border-bottom: 1px solid var(--line); background: #fcf8fb; color: var(--ink); }
.week-heading strong { font-size: 1.24rem; }
.is-today .week-heading { background: #f5e7ef; color: #693c53; }
.week-events { padding: 7px 5px; display: grid; gap: 7px; align-content: start; }
.week-events .button { font-size: .74rem; min-height: 33px; padding-inline: 4px; }
.week-empty { color: var(--muted); padding: 2px; }
.calendar-foot { display: flex; flex-wrap: wrap; gap: 13px; padding: 10px 13px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.calendar-foot > span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 9px; height: 9px; border: 1px solid #c9b6c3; border-radius: 3px; display: inline-block; }
.legend-dot.open { background: #fff; }
.legend-dot.blocked { background: #efe8ed; }
.right-rail { display: grid; gap: 12px; }
.rail-card { padding: 13px 13px 12px; }
.rail-title h2 { font: 650 1.37rem Georgia,serif; margin-top: 3px; }
.rail-events { display: grid; gap: 6px; margin-top: 10px; max-height: 520px; overflow: auto; }
.people-list { display: grid; gap: 4px; margin-top: 8px; }
.people-list button { background: none; border: 0; border-radius: 9px; padding: 6px 2px; display: flex; align-items: center; gap: 8px; text-align: left; color: var(--ink); }
.people-list button:hover { background: #faf1f6; }
.people-list button > span:nth-child(2) { min-width: 0; display: grid; flex: 1; gap: 2px; }
.people-list strong { font-size: .87rem; }
.people-list small { color: var(--muted); font-size: .75rem; }
.booking-teaser { padding: 16px; background: #503747; color: #fff9fc; border-radius: var(--radius); box-shadow: var(--soft-shadow); }
.teaser-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #ffffff20; margin-bottom: 8px; }
.booking-teaser h2 { font: 650 1.31rem Georgia,serif; }
.booking-teaser p { color: #eddee7; margin: 7px 0 12px; font-size: .87rem; }
.booking-teaser a { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.empty { min-height: 139px; display: grid; align-content: center; justify-items: center; padding: 17px 12px; text-align: center; gap: 4px; }
.empty-icon { width: 39px; height: 39px; border-radius: 12px; background: #f4ecf1; display: grid; place-items: center; color: #845970; margin-bottom: 4px; }
.empty p { color: var(--muted); font-size: .85rem; max-width: 310px; }
.problem { padding: 18px; display: grid; justify-items: start; gap: 12px; }

.list-panel { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { padding: 11px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #fdf9fb; color: #6f5666; font-size: .79rem; }
td { font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
.table-person { display: flex; gap: 8px; align-items: center; }
.cell-sub { display: block; color: var(--muted); }
.searchbar { display: flex; align-items: center; gap: 9px; padding: 13px 15px; color: #74576a; }
.searchbar input { flex: 1; min-width: 0; }
.pagination, .list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 12px 15px; border-top: 1px solid var(--line); }
.list-toolbar { border-top: 0; }
.list-toolbar h2 { font: 650 1.38rem Georgia, serif; text-transform: capitalize; }
.panel-note { padding: 12px 15px; background: #fbf7f9; color: var(--muted); font-size: .83rem; }
.professional-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 14px; }
.professional-card, .settings-card { padding: 18px; display: grid; align-content: start; justify-items: start; gap: 13px; }
.professional-head { display: flex; align-items: center; gap: 10px; }
.professional-head .avatar { width: 43px; height: 43px; font-size: .89rem; }
.professional-head h2, .settings-card h2 { font: 650 1.55rem Georgia, serif; }
.professional-head p, .professional-card > p, .settings-card > p:not(.eyebrow) { color: var(--muted); font-size: .89rem; }
.schedule-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.schedule-chips span { background: #f7f1f5; color: #6f5062; padding: 5px 7px; font-size: .78rem; border-radius: 7px; }
.finance-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: start; }
.settings-card > form, .link-tools, .accounts-list { width: 100%; }
.settings-card .form-stack > .button { justify-self: start; }
.link-tools { display: grid; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.accounts-list { display: grid; gap: 8px; }
.accounts-list > div { display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.accounts-list > div > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.accounts-list small { color: var(--muted); overflow-wrap: anywhere; }

.editor { width: min(640px, calc(100vw - 22px)); max-height: min(90dvh, 860px); border: 1px solid var(--line); padding: 0; border-radius: 17px;
  color: var(--ink); background: #fff; box-shadow: 0 21px 75px #2b142845; overscroll-behavior: contain; }
.editor::backdrop { background: #321c2a63; backdrop-filter: blur(2px); }
.editor-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 19px 13px; border-bottom: 1px solid var(--line); background: #fffdfd; }
.editor-head h2 { font: 650 1.8rem Georgia, serif; margin: 3px 0; }
.editor-head p:not(.eyebrow) { color: var(--muted); font-size: .89rem; }
.editor-form { padding: 16px 19px; gap: 13px; }
.editor-section { display: grid; gap: 9px; padding: 11px 0 0; border-top: 1px solid var(--line); }
.editor-section h3 { font-size: 1rem; }
.editor-section-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; }
.existing-client { display: grid; gap: 6px; }
.selected-client { color: var(--muted); font-size: .83rem; }
.selected-client.has-client { color: #562886; font-size: .96rem; font-weight: 740; }
.client-suggestions { display: grid; gap: 3px; }
.client-suggestions:empty { display: none; }
.client-suggestions button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 7px; text-align: left; border: 1px solid var(--line); border-radius: 7px; padding: 7px; color: var(--ink); background: #fcf7fa; }
.client-suggestions p { font-size: .85rem; color: var(--muted); }
.dialog-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding-top: 5px; }
.dialog-actions > span { flex: 1; }
.client-history { display: grid; gap: 6px; }
.client-history article { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; }
.client-history small { display: block; color: var(--muted); }
.import-preview { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 13px; }
.import-preview[hidden] { display: none; }
.import-preview h3 { font-size: 1rem; }
.import-preview .form-grid { align-items: end; }
.import-preview .muted { font-size: .87rem; }
.import-count { padding: 11px 13px; background: var(--rose-wash); border-radius: 10px; }
.import-count strong { font-size: 1.2rem; }
.import-sample { font-size: .82rem; min-width: 475px; }
.import-sample td { max-width: 230px; overflow-wrap: anywhere; }
.import-result { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--sage-wash); }
.import-result details { background: #fff; padding: 8px 10px; border-radius: 8px; }
.import-result ul { padding-left: 20px; margin-top: 8px; font-size: .85rem; }
.work-hours { display: grid; gap: 5px; }
.hour-row { display: grid; grid-template-columns: minmax(90px,1fr) minmax(75px,110px) 20px minmax(75px,110px); align-items: center; gap: 6px; }
.hour-row input[type=time] { padding: 3px 5px; min-height: 35px; }
.hour-row > span { color: var(--muted); font-size: .8rem; }
.check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.toast { position: fixed; z-index: 20; right: 21px; bottom: 21px; max-width: min(400px,calc(100vw - 42px)); padding: 12px 15px; background: var(--plum-dark); color: white; border-radius: 10px; box-shadow: 0 8px 28px #351a3040; font-weight: 600; }

.auth-page { min-height: 100dvh; display: grid; place-items: center; padding: 26px; background: #f8f1f4; }
.auth-page.auth-split { grid-template-columns: 1fr 1fr; padding: 0; }
.auth-story { height: 100%; min-height: 100dvh; padding: clamp(26px,6vw,75px); display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  background: radial-gradient(ellipse at 80% 90%,#765163,#4a303e 62%); color: #fff9fb; }
.story-brand { display: flex; gap: 12px; align-items: center; font: 650 1.15rem Georgia,serif; }
.auth-story .eyebrow { color: #e6b8c9; }
.auth-story h1 { font: 500 clamp(2.7rem,6.3vw,6rem)/.98 Georgia,serif; letter-spacing: -.06em; margin: 11px 0 15px; }
.auth-story p:not(.eyebrow) { color: #f4dce8; font-size: 1.04rem; max-width: 330px; }
.story-foot { color: #e0bcca; font-size: .7rem; letter-spacing: .16em; font-weight: 720; }
.auth-card { width: min(100%, 450px); display: grid; gap: 13px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--soft-shadow); }
.auth-split .auth-card { width: min(calc(100% - 30px),435px); }
.auth-card > p:not(.eyebrow):not(.form-error) { color: var(--muted); }
.auth-card > .button { justify-self: start; }
.auth-card .form-stack { margin-top: 4px; }
.install-card { width: min(100%, 495px); }

.booking-page { max-width: 1110px; margin: auto; padding: 28px clamp(15px,4vw,36px); }
.booking-brand { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 19px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.booking-brand div { display: flex; align-items: center; gap: 10px; }
.booking-brand span { display: grid; }
.booking-brand strong { font: 650 1.23rem Georgia,serif; }
.booking-brand small { color: #84596c; font-size: .65rem; font-weight: 760; letter-spacing: .15em; margin-top: 4px; }
.preview-tag { color: #795235; background: var(--amber-wash); border-radius: 999px; padding: 5px 10px; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.booking-layout { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0,1.06fr); gap: 17px; align-items: start; }
.booking-intro { min-height: 412px; padding: clamp(19px,4vw,34px); border-radius: 19px; background: #503747; color: #fff9fb; position: relative; overflow: hidden; }
.booking-intro > *:not(.booking-decoration) { position: relative; }
.booking-decoration { position: absolute; right: 17px; bottom: 12px; color: #f0d5e52b; }
.booking-intro .eyebrow { color: #e9bfce; }
.booking-intro h1 { font: 500 clamp(2.43rem,6.1vw,4.55rem)/.98 Georgia,serif; letter-spacing: -.045em; margin: 13px 0 14px; }
.booking-intro > p:not(.eyebrow) { color: #f2dce6; font-size: 1.03rem; max-width: 290px; }
.booking-sequence { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.booking-sequence span { font-size: .77rem; color: #fff6fa; padding: 5px 8px; border: 1px solid #ffffff40; border-radius: 999px; }
.booking-intro a { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.booking-form-panel { padding: clamp(17px,3.4vw,28px); }
.booking-form-panel h2 { font: 650 1.88rem Georgia,serif; margin: 4px 0 15px; }
.booking-form-panel .form-stack > .button { justify-self: start; }
.booking-times h3 { font-size: .98rem; margin-bottom: 7px; }
.booking-placeholder, .privacy-note { font-size: .86rem; color: var(--muted); }
.service-summary { color: #78546a; margin-top: -8px; font-weight: 600; font-size: .82rem; }
.time-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(64px,1fr)); gap: 6px; }
.time-options button { padding: 6px 7px; min-height: 37px; border: 1px solid var(--line); border-radius: 8px; background: #fdf9fb; color: var(--plum); font-weight: 640; }
.time-options button[aria-pressed=true] { background: var(--plum); color: #fff; border-color: var(--plum); }
.booking-summary { display: flex; gap: 10px; align-items: center; background: var(--rose-wash); border-radius: 11px; padding: 11px; margin-bottom: 13px; color: #6f3d50; }
.booking-summary p { font-size: .84rem; }
.preview-note { background: var(--amber-wash); padding: 9px; border-radius: 8px; color: var(--amber); margin-bottom: 12px; }
.trap { position: absolute; top: -10000px; left: -10000px; height: 0; width: 0; overflow: hidden; }
.booking-success { text-align: center; padding: 19px 5px; }
.booking-success p { margin-bottom: 8px; }
.success-icon { display: inline-grid; place-items: center; width: 61px; height: 61px; border-radius: 50%; background: var(--sage-wash); color: var(--sage); margin-bottom: 15px; }
.booking-page > footer { color: var(--muted); font-size: .83rem; text-align: center; padding-top: 19px; }
.booking-page > footer span { margin: 0 4px; color: #ad8194; }

@media (max-width: 1190px) {
  .agenda-layout { grid-template-columns: minmax(0,1fr); }
  .right-rail { grid-template-columns: repeat(auto-fit,minmax(195px,1fr)); align-items: start; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: fixed; width: min(84vw,264px); inset: 0 auto 0 0; z-index: 11; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease,visibility .2s; }
  .shell.nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .nav-backdrop { position: fixed; inset: 0; background: #2e182a56; border: 0; z-index: 10; }
  .shell.nav-open .nav-backdrop { display: block; }
  .menu-trigger { display: inline-grid; }
  .page-head { align-items: flex-start; }
  .local-tag { display: none; }
  .topbar { min-height: 53px; }
  #screen { padding-top: 20px; }
}
@media (max-width: 580px) {
  .page-head { display: grid; gap: 12px; }
  .page-actions { justify-content: flex-start; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .metric { padding: 9px 10px; min-height: 93px; }
  .metric strong { font-size: 1.43rem; }
  .metric-top { font-size: .85rem; }
  .metric small { font-size: .72rem; }
  .metric-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .metric-icon svg { width: 15px; height: 15px; }
  .calendar-toolbar { padding: 10px; }
  .calendar-day > strong { font-size: .93rem; }
  .calendar-controls { width: 100%; }
  .calendar-controls .filter { flex: 1; min-width: 115px; }
  .calendar-date { width: 124px; }
  .calendar-grid { grid-template-columns: 47px repeat(var(--columns),minmax(137px,1fr)); }
  .time-axis span { right: 6px; }
  .right-rail, .settings-grid { grid-template-columns: minmax(0,1fr); }
  .money-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  input:not([type=checkbox]), select, textarea { font-size: 16px; }
  .calendar-controls input, .calendar-controls select { font-size: .85rem; }
  .editor-head, .editor-form { padding-inline: 13px; }
  .editor-head h2 { font-size: 1.58rem; }
  .auth-page { padding: 14px; }
  .auth-page.auth-split { grid-template-columns: minmax(0,1fr); gap: 16px; padding-bottom: 15px; }
  .auth-story { min-height: 0; padding: 20px; gap: 16px; }
  .auth-story h1 { font-size: 2.65rem; }
  .story-foot { display: none; }
  .booking-layout { grid-template-columns: minmax(0,1fr); }
  .booking-intro { min-height: 0; }
  .booking-intro h1 { font-size: 2.69rem; }
  .booking-brand { margin-bottom: 14px; padding-bottom: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

/* Identidade visual Espaço Juliana Diniz — azul e branco da marca original. */
a, button, input, select, textarea { -webkit-tap-highlight-color: #b8c9ff55; }
:focus-visible { outline: 2px solid #547dde; }
.eyebrow { color: #4164ad; }
.button.primary { color: #fff; box-shadow: 0 2px 7px #17378931; }
.button.secondary:hover:not(:disabled), .button.quiet:hover:not(:disabled) { background: #eaf0ff; }
.button.quiet, .text-button { color: #3159ae; }
.icon-button { color: #4b6693; }
.icon-button:hover { background: #edf2ff; }
input:not([type=checkbox]), select, textarea { border-color: #d1dcef; }
input:disabled, select:disabled { background: #f0f4fc; }

.sidebar { background: #fff; }
.studio-brand { display: grid; justify-items: center; width: 100%; padding: 0; gap: 0; text-align: center; }
.sidebar-wordmark { width: 100%; max-width: 236px; height: auto; }
.studio-brand .sidebar-brand-caption { color: #5b75ac; font-family: inherit; font-size: .61rem; font-weight: 750; letter-spacing: .15em; margin-top: -2px; }
.nav-caption { color: #7184a6; margin-top: 29px; }
.nav-item { color: #516788; }
.nav-item:hover { background: #f1f5ff; }
.nav-item[aria-current=page] { color: #173789; background: #e8efff; border-color: #d4e0ff; }
.sidebar-book { color: #34599e; }
.topbar { background: #fff; }
.crumb-slash { color: #a4b4d0; }
.local-tag { color: #536b95; }
.metric-top { color: #566b90; }
.segmented { background: #e9eefb; }
.segmented button { color: #48629a; }
.grid-header, th { background: #f7f9ff; }
th { color: #57709c; }
.time-axis { background: #f5f8ff; }
.time-axis span { color: #6f80a1; }
.time-column { background: repeating-linear-gradient(to bottom,transparent 0 62px,#dce5f8 62px 63px),
  repeating-linear-gradient(135deg,#f9fbff 0 9px,#f0f5ff 9px 10px); }
.working-area { background: repeating-linear-gradient(to bottom,#fff 0 62px,#dce5f8 62px 63px); }
.day-off { color: #6980a8; }
.slot-button { color: #315caa; }
.slot-button:hover, .slot-button:focus-visible { background: #e9f0ff; }
.theme-rose { --event-bg: #e8efff; --event-edge: #4973c5; --event-ink: #254d9d; }
.theme-plum { --event-bg: #e5eaff; --event-edge: #5a61ba; --event-ink: #373d8d; }
.theme-blue { --event-bg: #e4f2ff; --event-edge: #5b98c8; --event-ink: #245b86; }
.theme-muted { --event-bg: #eff2f9; --event-edge: #8191aa; --event-ink: #586783; }
.week-heading { background: #f7f9ff; }
.is-today .week-heading { background: #e8efff; color: #204a9a; }
.people-list button:hover { background: #f0f4ff; }
.booking-teaser { background: linear-gradient(135deg,#102970,#254bb7); color: #fff; }
.booking-teaser p { color: #e0eaff; }
.empty-icon { background: #e8efff; color: #355cac; }
.searchbar { color: #4e69a1; }
.panel-note { background: #f5f8ff; }
.schedule-chips span { background: #eaf0ff; color: #34599b; }
.editor::backdrop { background: #10285870; }
.editor-head { background: #fff; }
.client-suggestions button { background: #f7f9ff; }
.toast { box-shadow: 0 8px 28px #10296144; }

/* Login: fotografia original preservada, com logotipo dourado em vetor. */
.auth-page { background: #f3f6ff; }
.auth-story { padding: 0; gap: 0; background: linear-gradient(160deg,#102b83 0%,#1645bb 100%); color: #fff; overflow: hidden; }
.auth-brand-visual { position: relative; width: 100%; aspect-ratio: 1820 / 864; flex-shrink: 0; isolation: isolate; }
.auth-brand-photo { display: block; width: 100%; height: 100%; object-fit: cover; background: #122d8f; }
.auth-brand-blue-wash { position: absolute; inset: 0 auto 0 0; width: 47%; pointer-events: none;
  background: linear-gradient(173deg,#1b2e77 0%,#0b2490 47%,#1449c6 100%);
  -webkit-mask-image: linear-gradient(to right,#000 0%,#000 63%,transparent 100%);
  mask-image: linear-gradient(to right,#000 0%,#000 63%,transparent 100%); }
.auth-gold-wordmark { position: absolute; left: 5.5%; top: 27%; width: 49%; max-width: 360px; height: auto;
  filter: drop-shadow(0 0 8px #ffdb3299) drop-shadow(0 2px 2px #5c340080); }
.auth-story-copy { flex: 1; display: grid; align-content: center; justify-items: start; padding: clamp(24px,4.3vw,60px); }
.auth-story .eyebrow { color: #c8dbff; }
.auth-story h1 { font-size: clamp(2.65rem,5.1vw,4.8rem); margin: 9px 0 12px; }
.auth-story p:not(.eyebrow) { color: #e1ebff; max-width: 415px; }
.story-foot { padding: 0 clamp(24px,4.3vw,60px) 27px; color: #c8daff; }
.auth-card { box-shadow: 0 13px 46px #17378915; }

.booking-logo { width: min(210px,55vw); height: auto; }
.booking-intro { background: radial-gradient(ellipse at 90% 85%,#2b56d4,#133486 72%); color: #fff; }
.booking-intro .eyebrow { color: #c9dcff; }
.booking-intro > p:not(.eyebrow) { color: #e2ecff; }
.booking-sequence span { color: #fff; }
.service-summary, .booking-summary { color: #2b509c; }
.time-options button { background: #f7f9ff; }
.booking-page > footer span { color: #7996cf; }

@media (max-width: 580px) {
  .auth-story { min-height: 0; }
  .auth-story-copy { padding: 19px 20px 15px; }
  .auth-story h1 { font-size: 2.5rem; }
  .story-foot { padding: 2px 20px 19px; }
  .sidebar-wordmark { width: 100%; max-width: 236px; }
}

/* Etapa 1: calendário mensal, visão da equipe e filtros. */
.calendar-controls .segmented { flex-wrap: wrap; }
.month-scroll { max-height: 780px; }
.month-grid { display: grid; grid-template-columns: repeat(7,minmax(109px,1fr)); min-width: 763px; }
.month-weekday { padding: 11px 8px; font-size: .75rem; font-weight: 760; text-align: center; color: #5271aa; background: #f2f6ff; border-bottom: 1px solid #d8e3f8; border-right: 1px solid #d8e3f8; }
.month-cell { min-height: 119px; padding: 5px; border-right: 1px solid #d8e3f8; border-bottom: 1px solid #d8e3f8; background: #fff; overflow: hidden; }
.month-cell.outside { background: #f7f9ff; }
.month-cell.is-selected { box-shadow: inset 0 0 0 2px #adc5fc; }
.month-cell.is-today { background: #f4f7ff; }
.month-number { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 3px; border: 0; border-radius: 50%; color: #294c8b; background: transparent; font-size: .83rem; font-weight: 760; }
.month-number:hover, .month-cell.is-today .month-number { background: #2454ba; color: #fff; }
.month-items { display: grid; gap: 3px; margin-top: 3px; }
.month-event { min-width: 0; width: 100%; padding: 4px 5px; border: 0; border-left: 3px solid var(--event-edge); border-radius: 4px; background: var(--event-bg); color: var(--event-ink); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .7rem; }
.month-event:hover { filter: brightness(.95); }
.month-event strong { font-variant-numeric: tabular-nums; }
.month-more { border: 0; padding: 3px 2px; background: none; color: #2b55aa; font-size: .68rem; font-weight: 710; }
.team-board { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); align-items: start; gap: 11px; padding: 13px; max-height: 715px; overflow: auto; }
.team-column { min-width: 0; border: 1px solid #d7e2f7; border-radius: 12px; background: #f8faff; overflow: hidden; }
.team-heading { display: flex; align-items: center; gap: 8px; padding: 11px; border-bottom: 1px solid #d7e2f7; }
.team-heading span { min-width: 0; display: grid; gap: 4px; }
.team-heading strong { font-size: .89rem; }
.team-heading small { font-size: .73rem; color: #5a7099; }
.team-events { display: grid; gap: 6px; padding: 9px; }
.team-column > .button { margin: 0 9px 10px; }
.mini-calendar .mini-head { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-bottom: 11px; }
.mini-head h2 { font-size: 1rem; font-weight: 760; color: #244a91; text-transform: capitalize; }
.mini-head > span { display: flex; }
.mini-head .icon-button { padding: 3px; min-width: 25px; min-height: 25px; }
.mini-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; }
.mini-weekday { text-align: center; font-size: .7rem; font-weight: 800; color: #6d80a2; padding: 4px 0; }
.mini-date { position: relative; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #435b87; aspect-ratio: 1; min-height: 27px; padding: 2px; font-size: .78rem; }
.mini-date:hover { background: #ebf1ff; }
.mini-date.is-selected { background: #2454ba; color: #fff; font-weight: 800; }
.mini-date.is-today:not(.is-selected) { box-shadow: inset 0 0 0 1px #537bd2; }
.mini-date.has-events::after { content: ""; position: absolute; bottom: 1px; width: 3px; height: 3px; border-radius: 50%; background: #6c8dd6; }
.mini-date.is-selected.has-events::after { background: #fff; }
.calendar-filters { display: grid; gap: 9px; }
.calendar-filters .rail-title { margin-bottom: 2px; }
.filter-label { display: block; font-size: .75rem; font-weight: 760; color: #536d99; margin: 3px 0 5px; }
.calendar-filters select, .mini-search input { width: 100%; min-width: 0; font-size: .82rem; min-height: 35px; padding: 5px 7px; }
.mini-search { display: flex; gap: 4px; }
.mini-search button { font-size: .74rem; min-height: 35px; padding: 5px 7px; }
.status-filters { display: grid; gap: 7px; border: 0; padding: 0; min-width: 0; }
.status-filters legend { margin-bottom: 4px; }
.status-filters label { display: flex; align-items: center; gap: 7px; color: #40577f; font-size: .8rem; cursor: pointer; }
.status-filters input { margin: 0; accent-color: #2454ba; }
.status-swatch { width: 8px; height: 8px; border-radius: 3px; background: #698bd2; }
.status-confirmed { background: #48a5b0; }
.status-completed { background: #497aca; }
.status-cancelled, .status-blocked { background: #a0abc2; }
.status-no_show { background: #d19c4c; }
.calendar-filters > .button { justify-self: start; }
.filter-help { margin: 0; color: #7589aa; font-size: .69rem; line-height: 1.5; }
@media (max-width: 1190px) { .right-rail { grid-template-columns: repeat(auto-fit,minmax(228px,1fr)); } }
@media (max-width: 580px) { .month-grid { min-width: 763px; } .team-board { padding: 8px; } .calendar-controls .segmented { width: 100%; justify-content: space-between; } }

/* Etapa 2: fila de espera e conversão de solicitações em agendamentos. */
.waitlist-table td { vertical-align: middle; }
.waitlist-table .table-person { align-items: center; }
.waitlist-table .table-person > span { display: grid; gap: 3px; }
.waitlist-table .table-person small { font-size: .75rem; color: #61769e; }
.waitlist-detail { display: block; margin-top: 5px; font-size: .76rem; color: #7183a2; }
.waitlist-notes { display: block; max-width: 300px; margin-top: 7px; color: #7484a3; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.waitlist-status { display: inline-flex; padding: 5px 8px; border-radius: 20px; white-space: nowrap; font-size: .73rem; font-weight: 750; }
.waitlist-status.waiting { color: #28529d; background: #e9f0ff; }
.waitlist-status.contacted { color: #66529f; background: #edeaff; }
.waitlist-status.booked { color: #22776c; background: #e5f5f0; }
.waitlist-status.cancelled { color: #697993; background: #edf0f6; }
.waitlist-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.waitlist-actions .button { min-height: 34px; padding: 6px 9px; font-size: .76rem; }
.waitlist-foot { border-top: 1px solid #e0e8f8; color: #6c82aa; padding: 12px 15px; font-size: .76rem; }

/* Barra lateral azul Juliana Diniz, inspirada na marca fornecida. */
.sidebar {
  color: #f5f8ff;
  background: linear-gradient(165deg,#1649c2 0%,#123aaa 51%,#0d2d86 100%);
  border-right: 1px solid #0d318d;
  box-shadow: 4px 0 24px #0d2e7d18;
}
.sidebar .studio-brand { color: #fff; }
.sidebar .sidebar-wordmark { filter: drop-shadow(0 0 6px #ffd629aa) drop-shadow(0 2px 1px #57320060); }
.sidebar .sidebar-brand-caption { color: #ffd500; }
.sidebar .nav-caption { color: #bdd3ff; }
.sidebar .nav-item { color: #edf3ff; }
.sidebar .nav-item:hover { color: #fff; background: #ffffff19; }
.sidebar .nav-item[aria-current=page] {
  background: #ffffff2e;
  border-color: #ffffff3d;
  color: #fff;
  box-shadow: inset 3px 0 0 #e5eeff;
}
.sidebar .sidebar-book { color: #e2ebff; border-radius: 8px; }
.sidebar .sidebar-book:hover { color: #fff; background: #ffffff18; }
.sidebar .account-line { border-color: #ffffff34; }
.sidebar .account-line strong { color: #fff; }
.sidebar .account-line small { color: #d3e0fd; }
.sidebar .account-line .avatar { background: #ffffff27; color: #fff; }
.sidebar .account-line .icon-button { color: #e7efff; }
.sidebar .account-line .icon-button:hover { background: #ffffff21; }
.sidebar :focus-visible { outline-color: #fff; }

/* Menu azul com rolagem independente: marca e conta permanecem visíveis. */
.sidebar > .studio-brand,
.sidebar > .nav-caption,
.sidebar > .sidebar-bottom { flex-shrink: 0; }
.sidebar nav {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  align-content: start;
  grid-auto-rows: max-content;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #b9d2ff #ffffff16;
  padding-right: 3px;
}
.sidebar nav::-webkit-scrollbar { width: 8px; }
.sidebar nav::-webkit-scrollbar-track { background: #ffffff16; border-radius: 10px; }
.sidebar nav::-webkit-scrollbar-thumb { background: #b9d2ffb8; border-radius: 10px; border: 2px solid #173d9e; }
.sidebar nav::-webkit-scrollbar-thumb:hover { background: #e2ecff; }

/* Etapa 2B: sequências e sessões recorrentes. */
.recurrence-section { padding: 14px; background: #f2f6ff; border-radius: 11px; border: 1px solid #d6e2fc; }
.recurrence-section .check-line { color: #244b99; font-weight: 730; }
.recurrence-section input[type=checkbox] { accent-color: #2352b6; }
.recurrence-details { margin-top: 12px; }
.recurrence-details p { font-size: .78rem; color: #5873a2; line-height: 1.5; margin-top: 10px; }
.series-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(290px,1fr)); gap: 14px; padding: 16px; }
.series-card { border: 1px solid #d8e2f5; border-radius: 13px; overflow: hidden; background: #fff; box-shadow: 0 2px 9px #102b7010; }
.series-header { padding: 16px; background: #f5f8ff; }
.series-header h2 { margin: 5px 0 4px; font: 650 1.35rem Georgia,serif; color: #203f82; }
.series-header p { color: #56709d; font-size: .79rem; }
.series-progress { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 13px; font-size: .73rem; }
.series-progress strong { color: #214c9f; }
.series-progress span { color: #6b7f9d; }
.series-track { height: 7px; overflow: hidden; border-radius: 99px; background: #dae4f7; margin-top: 7px; }
.series-track > span { display: block; height: 100%; background: #2c61c8; border-radius: inherit; }
.series-items { display: grid; }
.series-items button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; border-top: 1px solid #e6edfa; background: #fff; color: #284779; text-align: left; padding: 10px 12px; }
.series-items button:hover { background: #f4f7ff; }
.series-step { display: inline-grid; place-items: center; flex: 0 0 38px; border-radius: 8px; background: #eaf0ff; color: #2854ac; padding: 6px 3px; font-size: .78rem; font-weight: 780; }
.series-date { display: grid; gap: 2px; flex: 1; min-width: 0; }
.series-date strong { font-size: .84rem; }
.series-date small { color: #6c82a6; font-size: .74rem; }
.series-items .status-chip { flex-shrink: 0; }
@media (max-width: 580px) {
  .series-grid { padding: 9px; grid-template-columns: minmax(0,1fr); }
  .series-items button { flex-wrap: wrap; }
}

/* Etapa 3A: ficha de relacionamento, aniversário e contatos adicionais. */
.client-profile-section { border-top: 0; padding-top: 0; }
.client-profile-section h3, .editor-section h3 { color: #224a9a; }
.client-section-caption { font-size: .79rem; color: #63799e; line-height: 1.5; }
.client-history { max-height: 360px; overflow-y: auto; }
.client-history article { align-items: flex-start; padding: 10px; background: #f8faff; border-color: #e0e8f7; }
.client-history article > span { min-width: 0; flex: 1; }
.client-history article strong { display: block; color: #254a8f; overflow-wrap: anywhere; }
.client-history article .status-chip { flex-shrink: 0; }
.client-history .client-history-note { margin-top: 5px; color: #53698e; overflow-wrap: anywhere; white-space: normal; }
.birthday-cell { display: inline-flex; border-radius: 99px; padding: 5px 9px; background: #f0f4ff; color: #345899; font-size: .82rem; }
.birthday-today { background: #ddecff; color: #0e4ab7; font-weight: 800; }
.birthday-panel { display: grid; gap: 14px; margin-top: 16px; padding: 18px; background: #fff; border: 1px solid #dfe8f8; border-radius: 14px; }
.birthday-panel h2 { font: 650 1.45rem Georgia,serif; color: #244b96; margin: 3px 0; }
.birthday-panel > div > p:not(.eyebrow) { color: #6e7f9e; font-size: .84rem; }
.birthday-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(235px,1fr)); gap: 9px; }
.birthday-list button { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px; border: 1px solid #e1eaf9; border-radius: 10px; color: #264884; background: #f8faff; text-align: left; }
.birthday-list button:hover { border-color: #94b1ec; background: #edf3ff; }
.birthday-list button > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.birthday-list button strong { font-size: .85rem; overflow-wrap: anywhere; }
.birthday-list button small { font-size: .74rem; color: #637a9f; }
.birthday-date { flex: 0 0 auto; padding: 7px 8px; font-size: .86rem; font-weight: 800; border-radius: 8px; background: #dfe9ff; color: #1645a7; }
.birthday-hint { padding: 12px; border-radius: 9px; background: #f2f6ff; color: #687eaa; font-size: .82rem; }
@media (max-width: 580px) {
  .client-history article { flex-wrap: wrap; }
  .client-profile-section .form-grid { grid-template-columns: minmax(0,1fr); }
}

/* Etapa 3B.1: modelos contratuais originais em revisão e acesso protegido. */
.documents-advice { display: flex; gap: 13px; align-items: flex-start; margin: 0 0 15px; padding: 17px 18px; border: 1px solid #bfd3f9; border-radius: 13px; background: #ecf3ff; color: #2150a6; }
.documents-advice > svg { flex: 0 0 auto; margin-top: 2px; }
.documents-advice strong { display: block; font-size: .95rem; margin-bottom: 5px; }
.documents-advice p { max-width: 960px; font-size: .81rem; line-height: 1.6; color: #45699f; }
.document-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.document-group { margin-top: 17px; overflow: hidden; }
.document-group-header { display: flex; align-items: baseline; gap: 13px; padding: 15px 18px; border-bottom: 1px solid #e0e8f7; }
.document-group-header h2 { font: 650 1.38rem Georgia,serif; color: #214887; }
.document-group-header span { font-size: .75rem; font-weight: 700; color: #7d8fae; }
.document-group-header { flex-wrap: wrap; }
.document-group-header > .button { margin-left: auto; min-height: 32px; padding: 6px 11px; font-size: .78rem; }
.document-group-header h2 svg { vertical-align: -.17em; }
.document-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(255px,1fr)); gap: 13px; padding: 15px; }
.document-card { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 17px; border: 1px solid #dbe5f6; border-radius: 12px; background: linear-gradient(145deg,#fff,#f8faff); }
.document-card-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.document-glyph { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #2453ae; background: #e5edff; }
.document-review { border-radius: 30px; padding: 5px 9px; background: #fff3da; color: #946226; font-size: .71rem; font-weight: 750; white-space: nowrap; }
.document-card h3 { font: 650 1.09rem Georgia,serif; line-height: 1.28; color: #1c3e7f; }
.document-card p { flex: 1; font-size: .79rem; line-height: 1.55; color: #667a9b; }
.document-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.document-card-foot small { font-size: .71rem; color: #7388a9; }
.document-card-foot a { min-height: 34px; padding: 7px 10px; font-size: .76rem; text-decoration: none; }
.document-privacy-note { padding: 13px 4px; margin-top: 10px; color: #7184a5; font-size: .77rem; line-height: 1.5; }
.document-import-panel { margin-top: 16px; overflow: hidden; }
.document-upload-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px,1fr); gap: 22px; padding: 18px; }
.document-client-selector h3 { font: 650 1.13rem Georgia,serif; color: #244c92; margin-bottom: 6px; }
.document-assist { color: #6d82a5; font-size: .78rem; line-height: 1.5; margin-bottom: 10px; }
.document-client-selector .searchbar { padding: 5px; gap: 6px; }
.document-client-selector .searchbar input { min-width: 0; }
.document-client-results { display: grid; gap: 4px; margin-top: 8px; max-height: 210px; overflow: auto; }
.document-client-results button { display: flex; align-items: center; gap: 7px; padding: 8px; border: 1px solid #d9e4f7; border-radius: 8px; background: #f9fbff; color: #2c508f; text-align: left; font-size: .79rem; }
.document-client-results button:hover { background: #eaf1ff; border-color: #9bb4e8; }
.document-selected { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; color: #54729d; font-size: .78rem; }
.document-selected strong { color: #2855aa; }
.document-selected .button { min-height: 26px; padding: 4px 6px; font-size: .7rem; }
.document-upload-form { padding: 12px; border: 1px solid #e0e8f8; border-radius: 11px; background: #fbfcff; }
.document-upload-form input[type=file] { width: 100%; padding: 8px; background: #fff; }
.document-upload-form .form-error-slot:not(:empty) { padding: 8px; border-radius: 7px; background: #fff3f3; color: #a52a42; font-size: .8rem; }
.document-import-panel .table-wrap .button { min-height: 32px; padding: 6px 10px; font-size: .75rem; text-decoration: none; }
.document-row-actions { display: inline-flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.document-import-panel .table-wrap .document-delete-button { color: #a52235; border-color: #edc8cf; background: #fff5f6; }
.document-import-panel .table-wrap .document-delete-button:hover { color: #821528; background: #ffe8ed; border-color: #e29aa7; }
.document-delete-dialog { width: min(530px,calc(100vw - 22px)); }
.document-delete-summary { display: grid; gap: 6px; padding: 14px; border: 1px solid #e9bbc4; border-radius: 10px; background: #fff5f7; }
.document-delete-summary strong { color: #8b2134; overflow-wrap: anywhere; }
.document-delete-summary span { color: #7d4a55; font-size: .81rem; overflow-wrap: anywhere; }
.document-delete-summary p { margin-top: 6px; color: #875463; font-size: .81rem; line-height: 1.5; }
.document-delete-dialog .form-error-slot:not(:empty) { padding: 10px; border-radius: 8px; background: #fff0f2; color: #982437; font-size: .83rem; }
.button.document-danger-button { color: #fff; background: #b4273c; border-color: #b4273c; }
.button.document-danger-button:hover:not(:disabled) { background: #932035; border-color: #932035; }
.document-trash-hint { padding: 13px 17px; color: #697e9f; font-size: .81rem; line-height: 1.55; }
.document-fill-hint { margin-top: 13px; padding: 10px 11px; border: 1px solid #c9dbfa; border-radius: 9px; background: #eff5ff; color: #385c9e; font-size: .79rem; line-height: 1.5; }
.document-fill-dialog { width: min(740px,calc(100vw - 22px)); }
.document-fill-dialog .editor-head p:not(.eyebrow) { overflow-wrap: anywhere; }
.document-fill-summary { display: grid; gap: 5px; padding: 13px 15px; border: 1px solid #c6d9fc; border-radius: 11px; background: #f1f6ff; color: #345b9e; }
.document-fill-summary strong { color: #194593; }
.document-fill-summary span { font-size: .84rem; }
.document-fill-summary p { font-size: .8rem; color: #4b699d; line-height: 1.55; }
.document-fill-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.document-fill-field { padding: 10px; border: 1px solid #e0e8f7; border-radius: 9px; background: #fff; }
.document-fill-field > span { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #2c4d86; font-size: .84rem; overflow-wrap: anywhere; }
.document-filled-tag { display: inline-block; padding: 3px 6px; border-radius: 6px; background: #e3f6ec; color: #227046; font-size: .68rem; font-weight: 700; }
.document-review-check { align-items: flex-start; line-height: 1.5; padding: 12px; border-radius: 9px; background: #f5f8fd; font-size: .83rem; }
.document-fill-dialog .form-error-slot:not(:empty) { padding: 9px; border-radius: 7px; background: #fff0f2; color: #9a263a; font-size: .83rem; }
@media (max-width: 600px) { .document-metrics { grid-template-columns: 1fr; } .document-grid { grid-template-columns: minmax(0,1fr); padding: 10px; } .documents-advice { padding: 13px; } }
@media (max-width: 800px) { .document-upload-layout { grid-template-columns: minmax(0,1fr); padding: 10px; } }
@media (max-width: 630px) { .document-fill-fields { grid-template-columns: 1fr; } }
.signature-request-dialog{width:min(610px,calc(100vw - 30px))}
.signature-generated-warning{border:1px solid #f0c58c;background:#fff5e7;color:#714d1c;border-radius:12px;padding:14px;line-height:1.5}
.signature-request-dialog .field input[readonly]{width:100%;overflow:hidden;text-overflow:ellipsis;background:#f6f9ff}
.signature-state{display:inline-block;border-radius:20px;padding:5px 10px;font-size:12px;font-weight:700;background:#eaf0fc;color:#264e8f}
.signature-state-signed{background:#e5f6ee;color:#176d41}
.signature-state-revoked{background:#f6e8ec;color:#87364b}
.finance-cash-panel{padding:22px}
.finance-cash-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:end}
.finance-cash-actions .field{margin:0;font-size:.8rem;min-width:140px}
.finance-cash-actions .field select{margin-top:4px}
.cash-metrics{grid-template-columns:repeat(5,minmax(0,1fr));margin:20px 0}
.finance-separation-note{line-height:1.55;color:#36578c;background:#eff5ff;border:1px solid #d2dff8;border-radius:10px;padding:12px 14px;font-size:.83rem;margin:14px 0}
.finance-cash-secondary{color:#63779b;font-size:.82rem}
.cash-credit{color:#137f50}
.cash-debit{color:#a03543}
.cash-ledger-dialog{width:min(740px,calc(100vw - 30px))}
@media(max-width:1070px){.cash-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.cash-metrics{grid-template-columns:1fr}.finance-cash-panel{padding:13px}.finance-cash-actions{width:100%}}
.payout-panel{padding:22px;margin-top:18px}
.payout-explainer{display:flex;gap:14px;background:#eef5ff;border:1px solid #d3e2fb;color:#244b90;padding:17px;border-radius:12px;margin:18px 0;line-height:1.55}
.payout-explainer p{margin:6px 0 0;font-size:.82rem;color:#375b99}
.payout-dialog{width:min(740px,calc(100vw - 30px))}
.payout-dialog [hidden]{display:none!important}
.payout-preview{font-size:.85rem;color:#24529c;font-weight:650;margin:6px 0 12px}
@media(max-width:650px){.payout-panel{padding:13px}.payout-explainer{padding:12px}}

/* Módulo fiscal: preparação de NFS-e sem emissão automática. */
.fiscal-page { min-height: 100dvh; background: #f3f6ff; color: #172d60; }
.fiscal-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px clamp(18px,4vw,52px); background: linear-gradient(115deg,#10389e,#194dbe); color: #fff; }
.fiscal-logo { display: flex; align-items: center; gap: 20px; }
.fiscal-logo img { width: 218px; max-width: 45vw; height: auto; filter: drop-shadow(0 0 7px #ffd62988); }
.fiscal-logo span { font-size: .72rem; font-weight: 800; letter-spacing: .16em; color: #ffdc30; }
.fiscal-topbar .button.secondary { background: #fff; border-color: transparent; color: #173789; }
.fiscal-content { width: min(1230px,calc(100% - 36px)); margin: 0 auto; padding: 35px 0 70px; display: grid; gap: 19px; }
.fiscal-heading h1 { margin: 6px 0 8px; font: 650 clamp(2.2rem,4.7vw,3.5rem)/1.08 Georgia,serif; }
.fiscal-heading p:last-child { color: #526b9b; }
.fiscal-important { border-radius: 12px; border: 1px solid #f3cf80; padding: 15px 19px; background: #fff9e8; color: #67470c; line-height: 1.55; }
.fiscal-important a { color: #254eab; font-weight: 750; }
.fiscal-success { padding: 13px 16px; border: 1px solid #abdcc9; border-radius: 10px; color: #146747; background: #edfcf5; }
.fiscal-integration-card { display: grid; gap: 14px; }
.fiscal-integration-card .fiscal-section-title { margin-bottom: 0; }
.fiscal-connection-status { margin: 2px 0; }
.fiscal-certificate-result { background: #f1f8ff; border: 1px solid #c9defb; border-radius: 10px; padding: 13px 15px; display: grid; gap: 6px; overflow-wrap: anywhere; }
.fiscal-certificate-result p { color: #4c648e; }
.fiscal-certificate-result small { color: #6178a1; }
.fiscal-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; align-items: start; }
.fiscal-card { background: #fff; padding: 24px; border-radius: 15px; border: 1px solid #d6e1f7; box-shadow: 0 8px 25px #1737890b; min-width: 0; }
.fiscal-section-title { display: flex; gap: 13px; align-items: center; padding-bottom: 17px; margin-bottom: 20px; border-bottom: 1px solid #e5ebf6; }
.fiscal-section-title h2 { font: 650 1.54rem/1.2 Georgia,serif; }
.fiscal-section-title p { margin-top: 4px; color: #6980a7; font-size: .87rem; }
.fiscal-step { flex: 0 0 35px; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: #eaf0ff; color: #2a56b7; font-weight: 800; }
.fiscal-fields { display: grid; gap: 15px; }
.fiscal-fields label { display: grid; gap: 6px; font-weight: 660; font-size: .91rem; }
.fiscal-fields input, .fiscal-fields select, .fiscal-fields textarea { width: 100%; min-width: 0; }
.fiscal-fields textarea { resize: vertical; }
.fiscal-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.fiscal-three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 13px; }
.fiscal-hint { font-size: .85rem; color: #61789e; line-height: 1.55; }
.fiscal-search, .fiscal-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.fiscal-search input { flex: 1; min-width: 170px; }
.fiscal-client-results { display: grid; margin-top: 16px; border-top: 1px solid #e4ebf8; }
.fiscal-client-results a { display: flex; justify-content: space-between; gap: 15px; padding: 11px 4px; text-decoration: none; border-bottom: 1px solid #e4ebf8; }
.fiscal-client-results a:hover { color: #2255b9; background: #f6f9ff; }
.fiscal-client-results small { color: #7286a8; }
.fiscal-history { display: grid; gap: 12px; }
.fiscal-history-item { display: flex; justify-content: space-between; gap: 15px; padding: 15px; border: 1px solid #e1e9f9; border-radius: 12px; }
.fiscal-history-main { flex: 1; min-width: 0; display: grid; justify-items: start; gap: 6px; }
.fiscal-history-main strong { font-size: 1.04rem; }
.fiscal-history-main p { color: #50658c; }
.fiscal-history-main small { color: #7184a4; }
.fiscal-status { display: inline-block; padding: 4px 8px; color: #8a5b17; background: #fff0cd; border-radius: 100px; font-size: .74rem; font-weight: 750; }
.fiscal-status.is-issued { color: #196b4d; background: #e3f5ed; }
.fiscal-status.is-reviewed { color: #204e9d; background: #e5efff; }
.fiscal-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.fiscal-summary div { padding: 15px; border-radius: 11px; border: 1px solid #e1e9f9; background: #f8faff; display: grid; gap: 5px; }
.fiscal-summary strong { font: 700 1.75rem/1 Georgia,serif; color: #234ca1; }
.fiscal-summary span { font-size: .85rem; color: #6079a3; }
.fiscal-export-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; margin-bottom: 18px; border-radius: 11px; background: #f7f9ff; border: 1px solid #dce6fa; }
.fiscal-export-form label { font-weight: 700; width: 100%; }
.fiscal-export-form select { width: min(100%,320px); }
.fiscal-export-form .fiscal-hint { width: 100%; }
.fiscal-pending { width: min(100%,260px); padding: 9px 12px; border: 1px solid #ead8ae; background: #fffaf0; border-radius: 9px; }
.fiscal-pending summary { cursor: pointer; font-weight: 700; color: #815b1a; }
.fiscal-pending ul { margin: 9px 0 0; padding-left: 18px; color: #765c2b; font-size: .83rem; }
.fiscal-history-main .fiscal-issued-detail { font-weight: 650; color: #1d724f; }
.fiscal-history-actions { display: flex; align-items: start; gap: 9px; flex-wrap: wrap; }
.fiscal-record { width: min(100%,260px); padding: 9px 12px; border: 1px solid #d9e4f7; border-radius: 9px; }
.fiscal-record summary { cursor: pointer; color: #2655ad; font-weight: 700; }
.fiscal-record form { margin-top: 14px; }
.fiscal-record .fiscal-confirm { display: flex; align-items: start; gap: 8px; font-weight: 570; }
.fiscal-record .fiscal-confirm input { width: 17px; height: 17px; min-height: 17px; flex: 0 0 17px; margin-top: 2px; accent-color: #2456b8; }
@media(max-width:900px){.fiscal-columns{grid-template-columns:minmax(0,1fr)}.fiscal-three{grid-template-columns:repeat(2,minmax(0,1fr))}.fiscal-history-item{display:grid}}
@media(max-width:560px){.fiscal-topbar{padding:13px 15px;flex-wrap:wrap}.fiscal-logo{gap:12px}.fiscal-logo img{max-width:190px}.fiscal-content{width:calc(100% - 24px);padding-top:23px}.fiscal-card{padding:16px}.fiscal-two,.fiscal-three{grid-template-columns:minmax(0,1fr)}.fiscal-summary{grid-template-columns:minmax(0,1fr)}.fiscal-record,.fiscal-pending{width:100%}}

/* Etapa 6: pesquisa ChatGPT no topo e atendimento virtual independente. */
.ai-top-search { flex: 1 1 285px; max-width: 400px; min-width: 185px; display: flex; align-items: center; gap: 8px;
  padding: 4px 5px 4px 11px; border: 1px solid #cbdafa; border-radius: 11px; background: #f5f8ff; color: #4267b6; }
.ai-top-search input[type=search] { flex: 1; min-width: 0; min-height: 30px; width: auto; border: 0; padding: 4px 0; outline: none; background: transparent; color: #193a80; font-size: .86rem; }
.ai-top-search:focus-within { border-color: #567bd5; box-shadow: 0 0 0 2px #7192de30; }
.ai-top-search button { border: 0; background: #194ab2; color: #fff; padding: 7px 11px; border-radius: 8px; font-size: .78rem; font-weight: 750; }
.ai-top-search button:hover { background: #0d3489; }
.ai-official-link { flex: 0 0 auto; text-decoration: none; white-space: nowrap; font-size: .8rem; font-weight: 750; color: #1649b7; border: 1px solid #d4e1fd; border-radius: 9px; padding: 9px 10px; background: #fff; }
.ai-official-link:hover { background: #f0f5ff; }
.ai-assistant-dialog { width: min(650px,calc(100% - 20px)); max-width: 650px; max-height: 92dvh; padding: 0; margin: auto;
  border: 1px solid #b8cefa; border-radius: 16px; background: #fff; color: #16356c; box-shadow: 0 20px 80px #071d57a1; }
.ai-assistant-dialog::backdrop { background: #091b43a6; }
.ai-assistant-dialog[open] { display: flex; flex-direction: column; }
.ai-chat-header { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 15px 18px; background: linear-gradient(120deg,#1649be,#11317f); color: #fff; }
.ai-chat-kicker { color: #ffda36; font-size: .62rem; font-weight: 760; letter-spacing: .12em; }
.ai-chat-header h2 { margin-top: 3px; font: 650 1.37rem Georgia,serif; }
.ai-chat-controls { display: flex; gap: 6px; align-items: center; }
.ai-chat-controls button { border: 1px solid #ffffff3a; color: #fff; background: #ffffff1e; border-radius: 8px; padding: 7px 9px; cursor: pointer; }
.ai-chat-close { font-size: 1.35rem; line-height: 1; }
.ai-chat-log { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 180px; height: min(52dvh,420px); overflow-y: auto; padding: 18px; background: #f6f9ff; overscroll-behavior: contain; }
.ai-bubble { max-width: 93%; width: fit-content; padding: 11px 13px; border-radius: 12px; line-height: 1.52; overflow-wrap: anywhere; font-size: .89rem; }
.ai-bubble-text { white-space: pre-wrap; }
.ai-user { align-self: flex-end; background: #1c4db3; color: #fff; border-bottom-right-radius: 3px; }
.ai-assistant { align-self: flex-start; border: 1px solid #d8e4fa; background: #fff; }
.ai-info,.ai-pending { align-self: center; border: 1px dashed #cddcf5; color: #5b75a1; background: #edf3ff; }
.ai-error { align-self: center; color: #8f293c; background: #fff0f1; border: 1px solid #f5cbd3; }
.ai-sources { display: grid; gap: 5px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #e4ebf8; font-size: .77rem; }
.ai-sources a { color: #164ba9; text-decoration: underline; overflow-wrap: anywhere; }
.ai-chat-form { padding: 13px 17px 15px; display: grid; gap: 8px; border-top: 1px solid #d8e4fa; }
.ai-chat-form textarea { resize: vertical; min-height: 55px; max-height: 125px; }
.ai-chat-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.ai-web-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: .81rem; color: #46639a; }
.ai-web-toggle input { accent-color: #1b51bd; }
.ai-chat-disclaimer { color: #7184a5; font-size: .72rem; }
.ai-public-launcher { position: fixed; z-index: 40; right: 20px; bottom: 21px; border: 1px solid #ffe47b; border-radius: 30px;
  padding: 12px 17px; color: #0c2b75; background: #ffe05b; box-shadow: 0 6px 20px #071e5570; font-weight: 780; cursor: pointer; }
.ai-public-launcher:hover { background: #ffed96; }
@media(max-width:1450px){.topbar .local-tag{display:none}}
@media(max-width:950px){.topbar{flex-wrap:wrap;padding-block:9px}.topbar .breadcrumbs{flex:1}.ai-top-search{order:3;flex-basis:100%;max-width:none}.ai-official-link{margin-left:auto}}
@media(max-width:560px){.ai-assistant-dialog{width:calc(100% - 12px);max-height:96dvh}.ai-chat-header{padding:12px}.ai-chat-header h2{font-size:1.13rem}.ai-chat-controls button{font-size:.75rem}.ai-chat-log{min-height:155px;height:45dvh;padding:12px}.ai-chat-form{padding:10px 12px}.ai-public-launcher{right:12px;bottom:12px}}

/* Identidade premium v3: um só degradê contínuo em toda a coluna de login. */
.auth-story {
  background: linear-gradient(to bottom,
    #030407 0%,
    #07112d 19%,
    #102d79 37%,
    #1749b8 54%,
    #1b52c2 77%,
    #205ad0 100%);
}
.auth-brand-visual {
  background: #030407 url("juliana-banner-luxo.webp") center center / cover no-repeat;
  /* Dissolve o limite inferior da fotografia no fundo contínuo da coluna. */
  -webkit-mask-image: linear-gradient(to bottom,
    #000 0%, #000 60%, #000e 72%, #0009 84%, transparent 100%);
  mask-image: linear-gradient(to bottom,
    #000 0%, #000 60%, #000e 72%, #0009 84%, transparent 100%);
}
.auth-brand-visual .auth-brand-photo { opacity: 0; }
.auth-brand-visual .auth-brand-blue-wash { display: none; }
.auth-story-copy {
  background: transparent;
}
.story-foot { background: transparent; }
.sidebar {
  background: linear-gradient(to bottom, #030407 0%, #080e25 25%, #0d2873 61%, #1647b8 100%);
  border-right-color: #12295b;
  box-shadow: 4px 0 24px #06132922;
}
.sidebar .nav-item[aria-current=page] { box-shadow: inset 3px 0 0 #f7d34f; }
.sidebar nav::-webkit-scrollbar-thumb { border-color: #102d78; }

/*
 * Ajuste visual do calendário — 10/11/2026.
 * Somente apresentação: preserva os botões, rotas, dados e eventos existentes.
 * A folha schedule-status-v4.css é carregada depois desta; por isso, as
 * substituições específicas abaixo têm maior prioridade no CSS.
 */

/* Mais espaço para a agenda, sem ocultar opções usadas pela equipe. */
@media (min-width: 1025px) {
  .shell { grid-template-columns: 232px minmax(0, 1fr); }
  .sidebar { padding-inline: 10px; }
  .sidebar .sidebar-wordmark { max-width: 208px; }
  #screen:has(.schedule-workspace) { padding-inline: clamp(10px, 1.15vw, 19px); }
}

@media (min-width: 761px) {
  #screen .schedule-workspace {
    grid-template-columns: minmax(160px, 182px) minmax(0, 1fr);
    gap: 10px;
  }
}

/* Cabeçalho mais claro, mantendo os controles e suas ações originais. */
#screen .schedule-workspace .schedule-heading {
  padding-block: 4px 8px;
  gap: 11px;
}
#screen .schedule-workspace .schedule-heading h1 {
  color: #14367c;
  font-weight: 770;
  letter-spacing: -.025em;
}
#screen .schedule-workspace .schedule-heading-icon {
  border-color: #c9dafa;
  background: linear-gradient(145deg, #e7efff, #f9fbff);
  color: #1b4daf;
}
#screen .schedule-workspace .schedule-heading .page-actions { align-items: center; }
#screen .schedule-workspace .schedule-heading .page-actions .button[data-action="new-block"] {
  background: #f6f8fc;
  border: 1px solid #d7e0ef;
  color: #53688d;
  box-shadow: none;
}

/* O botão "Criar" já chama new-event. Mudamos apenas o rótulo visível. */
#screen .schedule-workspace .schedule-heading .button[data-action="new-event"] {
  min-height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid #264b95;
  border-radius: 10px;
  background: linear-gradient(125deg, #0b2e82 0%, #1749b8 100%);
  box-shadow: 0 3px 10px #13357a25;
  font-size: 0; /* Oculta apenas o texto visual original "Criar". */
  white-space: nowrap;
}
#screen .schedule-workspace .schedule-heading .button[data-action="new-event"]::after {
  content: "Novo agendamento";
  font-size: .86rem;
  line-height: 1.25;
  font-weight: 760;
  letter-spacing: .005em;
}
#screen .schedule-workspace .schedule-heading .button[data-action="new-event"] svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
#screen .schedule-workspace .schedule-heading .button[data-action="new-event"]:hover {
  background: linear-gradient(125deg, #0b286e, #123c9e);
  box-shadow: 0 5px 14px #13357a35;
}
#screen .schedule-workspace .schedule-heading .button[data-action="new-event"]:focus-visible {
  outline: 3px solid #e4c45c;
  outline-offset: 2px;
}

/* O calendário menor continua navegável, mas ocupa menos altura e largura. */
#screen .schedule-workspace .schedule-mini .mini-grid { padding: 6px; gap: 1px; }
#screen .schedule-workspace .schedule-mini .mini-date {
  min-height: 24px;
  font-size: .75rem;
}
#screen .schedule-workspace .schedule-holidays {
  max-height: 116px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b2c4e5 #f1f5ff;
}
#screen .schedule-workspace .schedule-holidays button { padding-block: 3px; }
#screen .schedule-workspace .schedule-holidays strong { font-size: .72rem; }

/* Maior legibilidade das colunas e da foto de cada profissional. */
#screen .schedule-workspace .schedule-main .calendar-panel {
  border-color: #d3def1;
  box-shadow: 0 5px 18px #153b8a0d;
}
#screen .schedule-workspace .grid-header {
  background: #eef4ff;
  border-bottom-color: #cfdef4;
}
#screen .schedule-workspace .grid-header .professional-avatar {
  width: 39px;
  height: 39px;
  border: 2px solid #fff;
  box-shadow: 0 2px 7px #183f8626;
}
#screen .schedule-workspace .grid-header strong { color: #1b3c83; font-size: .88rem; }
#screen .schedule-workspace .time-axis span { color: #365586; font-weight: 660; }
#screen .schedule-workspace .slot-button:hover,
#screen .schedule-workspace .slot-button:focus-visible { background: #dfedff; }

/* Cores fortes, com texto escuro para facilitar a leitura. */
.schedule-status-arrived.schedule-status-arrived {
  --event-bg: #ff8624;
  --event-edge: #b84900;
  --event-ink: #2e1a08;
}
.schedule-status-in_progress.schedule-status-in_progress {
  --event-bg: #ffd328;
  --event-edge: #af7900;
  --event-ink: #302500;
}

/* Fila de espera apenas oculta: seus registros permanecem preservados. */
.sidebar nav .nav-item[data-page="waitlist"],
#screen .schedule-workspace .schedule-rail > section.schedule-rail-card {
  display: none;
}

@media (max-width: 760px) {
  #screen .schedule-workspace .schedule-mini .mini-date { min-height: 33px; }
  #screen .schedule-workspace .schedule-heading .button[data-action="new-event"] {
    min-height: 36px;
    padding: 7px 10px;
  }
  #screen .schedule-workspace .schedule-heading .button[data-action="new-event"]::after {
    font-size: .76rem;
  }
}

/* Ajuste final: retira "Fila de espera" também das abas da janela de criação. */
#editor .schedule-create-tabs button[data-create-mode="waitlist"] {
  display: none;
}

/*
 * Etapa 2 — grade de horários: alterações de apresentação somente.
 * A linha "Agora" e a dica de atendimento são montadas pelo módulo
 * independente agenda-horario-atual-v1.js, sem chamadas à API.
 */

/* Cabeçalhos permanecem identificáveis durante a rolagem vertical. */
#screen .schedule-workspace .schedule-grid-scroll .grid-header {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 2px solid #b9d1f4;
  background: linear-gradient(to bottom, #f5f8ff 0%, #e9f1ff 100%);
  box-shadow: 0 2px 5px #193f8114;
}
#screen .schedule-workspace .schedule-grid-scroll .time-header { z-index: 9; }
#screen .schedule-workspace .schedule-grid-scroll .time-axis { z-index: 5; }
#screen .schedule-workspace .schedule-grid-scroll .grid-header strong {
  color: #14377c;
  font-size: .91rem;
}

/* Expediente branco, indisponibilidade cinza-azulada com hachuras claras. */
#screen .schedule-workspace .time-column,
#screen .schedule-workspace .time-column.closed {
  background: repeating-linear-gradient(135deg, #f1f3f8 0 8px, #e3e9f3 8px 10px);
}
#screen .schedule-workspace .working-area {
  background: #fff;
  box-shadow: inset 0 0 0 1px #eaf0fa;
}
#screen .schedule-workspace .day-off {
  color: #526887;
  font-size: .79rem;
  font-weight: 750;
  padding: 8px 4px;
  background: #eff3f9d9;
  border-radius: 5px;
}
#screen .schedule-workspace .slot-button:hover,
#screen .schedule-workspace .slot-button:focus-visible {
  background: #dceaff;
  outline: 1px dashed #7ea5e4;
  outline-offset: -1px;
}

/* Dia escolhido com destaque inequívoco no minicalendário. */
#screen .schedule-workspace .mini-date.is-selected {
  background: #174bb6;
  color: #fff;
  font-weight: 820;
  box-shadow: 0 0 0 2px #f6d25c inset;
}
#screen .schedule-workspace .mini-date.is-selected.is-holiday { color: #fff; }
#screen .schedule-workspace .mini-date.is-selected.has-events::after { background: #fff; }
#screen .schedule-workspace .schedule-period-label {
  color: #fff;
  font-size: .9rem;
  font-weight: 780;
}

/* Os cartões continuam abrindo os mesmos detalhes ao clicar. */
#screen .schedule-workspace .event-card:hover,
#screen .schedule-workspace .event-card:focus-visible {
  filter: brightness(.97);
  box-shadow: 0 4px 11px #112d6450;
}

/* Linha vermelha: somente no dia atual e se o horário cair na grade. */
#screen .schedule-workspace .time-axis .agenda-linha-agora {
  position: absolute;
  left: 0;
  height: 0;
  z-index: 12;
  pointer-events: none;
}
.agenda-linha-agora .agenda-hora-traco {
  position: absolute;
  top: -1px;
  left: var(--agenda-eixo-largura, 54px);
  right: 0;
  height: 2px;
  background: #e72739;
  box-shadow: 0 1px 3px #9a1b3040;
}
.agenda-linha-agora .agenda-hora-traco::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e72739;
}
.agenda-linha-agora .agenda-hora-etiqueta {
  position: absolute;
  top: 0;
  left: 1px;
  transform: translateY(-50%);
  min-width: 47px;
  padding: 3px 4px;
  border-radius: 5px;
  background: #ca1f32;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: -.015em;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 6px #8a182f2b;
}

/* Resumo seguro, construído apenas com as informações já visíveis no cartão. */
.agenda-resumo-hover[hidden] { display: none; }
.agenda-resumo-hover {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  padding: 11px 13px;
  border: 1px solid #4b6db3;
  border-radius: 10px;
  background: #0b255b;
  color: #fff;
  box-shadow: 0 10px 30px #091b4370;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: .79rem;
  line-height: 1.55;
}
@media (hover: none) {
  .agenda-resumo-hover { display: none; }
}

/* V8 — identidade visual do agendamento público.
   Somente CSS: não altera scripts, reservas ou as telas internas. */
body:has(#app[data-mode="booking"]) {
  background: #f9f6f1;
  color: #081a50;
}

#app[data-mode="booking"] .booking-page {
  --booking-pad: clamp(16px, 3vw, 46px);
  max-width: 1510px;
  margin: 0 auto;
  padding: var(--booking-pad) var(--booking-pad) 28px;
  position: relative;
}

#app[data-mode="booking"] .booking-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(15px, 1.5vw, 23px);
  align-items: stretch;
}

/* Move visualmente a marca existente para dentro do painel azul.
   Mantém a imagem SVG original e o selo de prévia interna. */
#app[data-mode="booking"] .booking-brand {
  position: absolute;
  z-index: 8;
  top: calc(var(--booking-pad) + 39px);
  left: calc(var(--booking-pad) + 34px);
  right: calc(var(--booking-pad) + 34px);
  width: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  align-items: flex-start;
}
#app[data-mode="booking"] .booking-brand .booking-logo {
  width: clamp(210px, 25vw, 360px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 7px rgb(255 204 40 / 27%));
}
#app[data-mode="booking"] .booking-brand .preview-tag {
  pointer-events: auto;
  color: #7b581b;
  background: #fff5d8;
  box-shadow: 0 2px 9px rgb(3 24 78 / 9%);
  font-size: .74rem;
  padding: 6px 11px;
}

/* A foto é a mesma da tela de login, já presente no servidor. */
#app[data-mode="booking"] .booking-intro {
  min-height: 656px;
  padding: 250px clamp(25px, 3.2vw, 48px) 42px;
  border: 1px solid rgb(3 18 74 / 10%);
  border-radius: 27px;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(158deg, #030a24 0%, #081a60 47%, #0745d2 100%);
  box-shadow: 0 17px 42px rgb(8 34 105 / 13%);
}
#app[data-mode="booking"] .booking-intro::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  top: 0;
  width: 79%;
  height: 62%;
  pointer-events: none;
  background: url("juliana-banner-luxo.webp") right top / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 66%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 66%, transparent 99%);
}
#app[data-mode="booking"] .booking-intro::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(2 8 33 / 44%), transparent 68%),
    linear-gradient(180deg, transparent 37%, rgb(6 30 106 / 28%) 60%, transparent 85%);
}
#app[data-mode="booking"] .booking-intro > *:not(.booking-decoration) {
  position: relative;
  z-index: 2;
}
#app[data-mode="booking"] .booking-decoration { display: none; }
#app[data-mode="booking"] .booking-intro .eyebrow {
  color: #d7e3ff;
  font-weight: 800;
  font-size: .71rem;
  letter-spacing: .18em;
}
#app[data-mode="booking"] .booking-intro h1 {
  font: 500 clamp(3.05rem, 4.1vw, 5rem)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.048em;
  color: #fff;
  text-shadow: 0 2px 13px rgb(3 9 33 / 13%);
  margin: 16px 0 15px;
}
#app[data-mode="booking"] .booking-intro > p:not(.eyebrow) {
  color: #ebf2ff;
  max-width: 440px;
  font-size: 1rem;
  line-height: 1.55;
}
#app[data-mode="booking"] .booking-sequence {
  gap: 8px;
  margin: 24px 0 21px;
}
#app[data-mode="booking"] .booking-sequence span {
  padding: 7px 11px;
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  border: 1px solid rgb(235 242 255 / 55%);
  background: rgb(8 24 88 / 18%);
}
#app[data-mode="booking"] .booking-intro a {
  color: #fff;
  font-size: .87rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#app[data-mode="booking"] .booking-intro .booking-jump { display: none; }

/* Formulário: hierarquia nítida e alvos de toque maiores, sem mudar campos. */
#app[data-mode="booking"] .booking-form-panel {
  min-height: 656px;
  padding: clamp(27px, 3.25vw, 48px);
  background: #fff;
  border: 1px solid #d9af56;
  border-radius: 27px;
  box-shadow: 0 17px 42px rgb(30 45 87 / 8%);
}
#app[data-mode="booking"] .booking-form-panel > .eyebrow {
  color: #102d82;
  font-size: .74rem;
  letter-spacing: .17em;
  font-weight: 800;
}
#app[data-mode="booking"] .booking-form-panel h2 {
  font: 650 clamp(2.05rem, 2.85vw, 3.05rem)/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  color: #071b5a;
  margin: 12px 0 28px;
}
#app[data-mode="booking"] .booking-form-panel .form-stack { gap: 20px; }
#app[data-mode="booking"] .booking-form-panel .form-stack label:not(.check-line):not(.trap) {
  gap: 9px;
  color: #092764;
  font-size: .94rem;
  font-weight: 740;
}
#app[data-mode="booking"] .booking-form-panel input:not([type="checkbox"]),
#app[data-mode="booking"] .booking-form-panel select {
  min-height: 54px;
  border: 1px solid #b6c6e6;
  border-radius: 12px;
  background: #fff;
  color: #0d285c;
  padding: 10px 14px;
  box-shadow: 0 1px 0 rgb(12 30 84 / 2%);
}
#app[data-mode="booking"] .booking-form-panel :is(input, select):focus-visible {
  border-color: #245bd2;
  outline: 3px solid rgb(36 91 210 / 17%);
  outline-offset: 1px;
}
#app[data-mode="booking"] .booking-times h3 {
  color: #0c2b6b;
  font-size: .99rem;
  font-weight: 800;
  margin: 3px 0 8px;
}
#app[data-mode="booking"] .booking-placeholder,
#app[data-mode="booking"] .privacy-note { color: #536b98; line-height: 1.48; }
#app[data-mode="booking"] .booking-form-panel .button.primary {
  min-height: 49px;
  padding: 12px 25px;
  border-radius: 11px;
  background: linear-gradient(135deg, #0e39c6, #135bea);
  color: #fff;
  box-shadow: 0 6px 16px rgb(16 67 181 / 19%);
}
#app[data-mode="booking"] .booking-form-panel .button.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #092faa, #0f4fda);
}
#app[data-mode="booking"] .booking-form-panel .button.primary:disabled {
  opacity: .56;
  box-shadow: none;
}
#app[data-mode="booking"] .time-options button {
  border-color: #b9cbec;
  border-radius: 10px;
  color: #16418f;
}
#app[data-mode="booking"] .time-options button[aria-pressed="true"] {
  border-color: #164ccd;
  background: #164ccd;
  color: #fff;
}
#app[data-mode="booking"] .booking-page > footer {
  color: #1b397e;
  padding: 26px 0 5px;
  font-size: .82rem;
  letter-spacing: .01em;
}

@media (max-width: 960px) {
  #app[data-mode="booking"] .booking-layout { grid-template-columns: minmax(0, 1fr); }
  #app[data-mode="booking"] .booking-intro {
    min-height: 520px;
    padding-top: 230px;
  }
  #app[data-mode="booking"] .booking-intro::before { width: 64%; height: 80%; }
  #app[data-mode="booking"] .booking-brand .booking-logo { width: clamp(240px, 37vw, 350px); }
  #app[data-mode="booking"] .booking-form-panel { min-height: 0; }
}

@media (max-width: 600px) {
  #app[data-mode="booking"] .booking-page { --booking-pad: 12px; padding-bottom: 20px; }
  #app[data-mode="booking"] .booking-brand {
    top: 28px;
    left: 31px;
    right: 28px;
  }
  #app[data-mode="booking"] .booking-brand .booking-logo { width: min(64vw, 255px); }
  #app[data-mode="booking"] .booking-brand .preview-tag {
    position: absolute;
    top: -13px;
    right: -6px;
    font-size: .63rem;
    padding: 4px 7px;
  }
  #app[data-mode="booking"] .booking-intro {
    min-height: 515px;
    padding: 236px 24px 27px;
    border-radius: 21px;
  }
  #app[data-mode="booking"] .booking-intro::before { width: 92%; height: 58%; }
  #app[data-mode="booking"] .booking-intro h1 { font-size: clamp(2.75rem, 9vw, 3.35rem); }
  #app[data-mode="booking"] .booking-intro .booking-jump {
    display: inline-flex;
    min-height: 44px;
    padding: 0 16px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #fff;
    color: #14244a;
    text-decoration: none;
  }
  #app[data-mode="booking"] .booking-jump:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }
  #app[data-mode="booking"] .booking-intro > p:not(.eyebrow) { font-size: .91rem; }
  #app[data-mode="booking"] .booking-sequence { margin: 17px 0; gap: 5px; }
  #app[data-mode="booking"] .booking-sequence span { font-size: .68rem; padding: 6px 8px; }
  #app[data-mode="booking"] .booking-form-panel {
    padding: 28px 21px 30px;
    border-radius: 21px;
    scroll-margin-top: 12px;
  }
  #app[data-mode="booking"] .booking-form-panel h2 { font-size: 2.05rem; }
  #app[data-mode="booking"] .booking-page > footer { font-size: .73rem; }
}

/* V10 — Status dentro do cartão, com acabamento para atendimentos estreitos.
   Alteração somente visual: nenhum status ou agendamento é modificado. */
#screen .schedule-workspace .event-card::after {
  content: "Agendado";
  position: absolute;
  top: 2px;
  right: 4px;
  box-sizing: border-box;
  display: block;
  max-width: 48%;
  padding: 2px 4px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: inherit;
  font: 760 10px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  pointer-events: none;
  opacity: .94;
}
#screen .schedule-workspace .event-card .event-clock {
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#screen .schedule-workspace .event-card.schedule-status-scheduled::after { content: "Agendado"; }
#screen .schedule-workspace .event-card.schedule-status-confirmed::after { content: "✓ Confirmou"; }
#screen .schedule-workspace .event-card.schedule-status-arrived::after { content: "Chegou"; }
#screen .schedule-workspace .event-card.schedule-status-in_progress::after { content: "Em atendimento"; }
#screen .schedule-workspace .event-card.schedule-status-completed::after { content: "Finalizado"; }
#screen .schedule-workspace .event-card.schedule-status-paid_completed::after { content: "✓ Finalizado e pago"; }
#screen .schedule-workspace .event-card.schedule-status-no_show::after { content: "Faltou"; }
#screen .schedule-workspace .event-card.schedule-status-cancelled::after { content: "Cancelou"; }
#screen .schedule-workspace .event-card.schedule-status-blocked::after { content: "Bloqueado"; }

/* Em cartões estreitos, deixa o rótulo compacto e dentro do espaço disponível. */
#screen .schedule-workspace .event-card.short::after {
  top: 1px;
  right: 2px;
  font-size: 9px;
  padding: 1px 3px;
}
#screen .schedule-workspace .event-card.short.schedule-status-paid_completed::after {
  content: "✓ Pago";
}

/* V14: current time marker strictly 1px */
#screen .schedule-workspace .time-axis .agenda-linha-agora .agenda-hora-traco { top:0!important;height:1px!important;min-height:1px!important;max-height:1px!important;border:0!important;box-shadow:none!important;background:#e72739!important; }
#screen .schedule-workspace .time-axis .agenda-linha-agora .agenda-hora-traco::before { content:none!important;display:none!important; }
#screen .schedule-workspace .time-axis .agenda-linha-agora .agenda-hora-etiqueta { display:none!important; }


/* V18 — Correção consolidada dos cartões.
   Preserva todas as cores/status e a janela de observações. */
#screen .schedule-workspace .event-card {
  box-sizing: border-box;
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 1px;
  min-width: 0;
  padding: 3px 6px;
  overflow: hidden;
}

/* O relógio fica à esquerda da etiqueta de status, na primeira linha. */
#screen .schedule-workspace .event-card .event-clock {
  position: static;
  display: block;
  flex: 0 0 12px;
  width: 49%;
  max-width: 49%;
  min-height: 12px;
  margin: 0;
  padding: 0;
  font-size: 10px;
  line-height: 12px;
  white-space: nowrap;
  overflow: hidden;
}

/* Nome ocupa uma linha própria, abaixo do horário. */
#screen .schedule-workspace .event-card b {
  position: static;
  display: block;
  flex: 0 0 15px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 15px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#screen .schedule-workspace .event-card small {
  position: static;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 11px;
  line-height: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mesmo em cartões baixos, impede que o nome suba para a linha do relógio. */
#screen .schedule-workspace .event-card.short {
  display: flex;
  flex-flow: column nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: 2px 5px;
}
#screen .schedule-workspace .event-card.short .event-clock {
  flex-basis: 12px;
  min-height: 12px;
  line-height: 12px;
}
#screen .schedule-workspace .event-card.short b {
  flex-basis: 15px;
  min-height: 15px;
  font-size: 12px;
  line-height: 15px;
}
#screen .schedule-workspace .event-card.short small {
  display: none;
}

/* Etiqueta de status permanece no canto superior, sem cobrir o nome. */
#screen .schedule-workspace .event-card::after {
  top: 2px;
  right: 3px;
  max-width: 48%;
  font-size: 9px;
  line-height: 10px;
  padding: 1px 3px;
}
#screen .schedule-workspace .event-card.short::after {
  top: 1px;
  right: 2px;
  max-width: 48%;
  font-size: 9px;
  line-height: 10px;
  padding: 1px 3px;
}


/* V19 — Ajuste seguro para cartões de curta duração.
   Evita sobreposição entre horário, nome e etiqueta de status. */
#screen .schedule-workspace .event-card.short {
  padding: 1px 4px;
  gap: 0;
}
#screen .schedule-workspace .event-card.short .event-clock {
  flex: 0 0 10px;
  min-height: 10px;
  height: 10px;
  font-size: 9px;
  line-height: 10px;
  max-width: 48%;
}
#screen .schedule-workspace .event-card.short b {
  flex: 0 0 12px;
  min-height: 12px;
  height: 12px;
  font-size: 10px;
  line-height: 12px;
  max-width: 100%;
}
#screen .schedule-workspace .event-card.short::after {
  font-size: 8px;
  line-height: 9px;
  padding: 0 2px;
}

/* V20 — Layout responsivo para cartões de agendamento.
   Baseado na estrutura gerada por studio.js; sem alterações em dados ou ações. */
#screen .schedule-workspace .event-card {
  min-width: 0;
  gap: 1px;
}
#screen .schedule-workspace .event-card .event-clock {
  box-sizing: border-box;
  width: 51%;
  max-width: 51%;
  flex: 0 0 12px;
  min-height: 12px;
  font-size: 10px;
  line-height: 12px;
  text-overflow: ellipsis;
}
#screen .schedule-workspace .event-card b {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  font-size: 12px;
  line-height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#screen .schedule-workspace .event-card small {
  flex: 0 0 auto;
  line-height: 12px;
  font-size: 10px;
}
/* Curta duração: apenas horário e nome, em linhas independentes. */
#screen .schedule-workspace .event-card.short {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  padding: 2px 4px;
  gap: 0;
}
#screen .schedule-workspace .event-card.short .event-clock {
  width: 51%;
  max-width: 51%;
  flex: 0 0 11px;
  min-height: 0;
  height: 11px;
  font-size: 9px;
  line-height: 11px;
}
#screen .schedule-workspace .event-card.short b {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  max-width: 100%;
  font-size: 10px;
  line-height: 12px;
  white-space: nowrap;
}
#screen .schedule-workspace .event-card.short small { display: none; }
#screen .schedule-workspace .event-card::after {
  max-width: 46%;
  top: 2px;
  right: 3px;
  font-size: 9px;
  line-height: 10px;
  padding: 1px 3px;
}
#screen .schedule-workspace .event-card.short::after {
  max-width: 46%;
  top: 1px;
  right: 2px;
  font-size: 8px;
  line-height: 9px;
  padding: 0 2px;
}


/* V21 — Cartões do calendário: posições fixas por linha.
   Evita que flex, textos longos e etiquetas ocupem a mesma área.
   Não altera horários, estados, registros ou interações. */
#screen .schedule-workspace .time-column > .event-card {
  display: block;
  position: absolute;
  box-sizing: border-box;
  padding: 0 5px;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
}
#screen .schedule-workspace .time-column > .event-card > .event-clock {
  position: absolute;
  top: 3px;
  left: 5px;
  display: block;
  width: calc(100% - 11px);
  max-width: calc(100% - 11px);
  height: 12px;
  min-height: 0;
  line-height: 12px;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  padding-right: 45%;
}
#screen .schedule-workspace .time-column > .event-card > b {
  position: absolute;
  top: 18px;
  left: 5px;
  right: 4px;
  display: block;
  width: auto;
  max-width: none;
  height: 15px;
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#screen .schedule-workspace .time-column > .event-card > small {
  position: absolute;
  top: 35px;
  left: 5px;
  right: 4px;
  display: block;
  width: auto;
  max-width: none;
  height: 13px;
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: 10px;
  line-height: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#screen .schedule-workspace .time-column > .event-card > small.schedule-event-notes {
  top: 49px;
  font-size: 9px;
  line-height: 11px;
  height: 11px;
}
#screen .schedule-workspace .time-column > .event-card::after {
  position: absolute;
  top: 2px;
  right: 3px;
  max-width: 44%;
  z-index: 1;
  font-size: 9px;
  line-height: 10px;
  padding: 1px 3px;
}
/* Cartões compactos: nome e status na primeira linha, horário abaixo. */
#screen .schedule-workspace .time-column > .event-card.short {
  --status-space: min(112px, 57%);
  --inline-clock-space: min(66px, 34%);
  --inline-status-space: min(105px, 42%);
  display: block;
  padding: 0;
  container: compact-appointment / size;
}
#screen .schedule-workspace .time-column > .event-card.short > .event-clock {
  top: 14px;
  left: 4px;
  right: 3px;
  width: auto;
  max-width: none;
  height: 11px;
  padding: 0;
  font-size: 9px;
  line-height: 11px;
  text-overflow: ellipsis;
}
#screen .schedule-workspace .time-column > .event-card.short > small {
  display: none;
}
#screen .schedule-workspace .time-column > .event-card.short > b {
  position: absolute;
  top: 1px;
  left: 4px;
  right: var(--status-space);
  height: 13px;
  font-size: 10px;
  line-height: 13px;
}
#screen .schedule-workspace .time-column > .event-card.short::after {
  position: absolute;
  top: 1px;
  right: 3px;
  display: block;
  max-width: calc(var(--status-space) - 7px);
  padding: 0 3px;
}

/* Quando só cabe uma linha, o horário ocupa o espaço antes do nome. */
@container compact-appointment (max-height: 25px) {
  #screen .schedule-workspace .time-column > .event-card.short > .event-clock {
    top: 2px;
    right: auto;
    width: var(--inline-clock-space);
  }
  #screen .schedule-workspace .time-column > .event-card.short > b {
    left: calc(var(--inline-clock-space) + 7px);
    right: var(--inline-status-space);
  }
  #screen .schedule-workspace .time-column > .event-card.short::after {
    max-width: calc(var(--inline-status-space) - 7px);
  }
}

@container compact-appointment (max-width: 170px) {
  #screen .schedule-workspace .time-column > .event-card.short.schedule-status-in_progress::after {
    content: "Em atend.";
  }
}

@container compact-appointment (max-width: 108px) {
  #screen .schedule-workspace .time-column > .event-card.short.schedule-status-scheduled::after {
    content: "Agend.";
  }
  #screen .schedule-workspace .time-column > .event-card.short.schedule-status-confirmed::after {
    content: "✓";
  }
  #screen .schedule-workspace .time-column > .event-card.short.schedule-status-in_progress::after {
    content: "Atend.";
  }
  #screen .schedule-workspace .time-column > .event-card.short.schedule-status-completed::after {
    content: "Finaliz.";
  }
  #screen .schedule-workspace .time-column > .event-card.short.schedule-status-cancelled::after {
    content: "Cancel.";
  }
  #screen .schedule-workspace .time-column > .event-card.short.schedule-status-blocked::after {
    content: "Bloq.";
  }
}

/* Botao de exclusao nos detalhes do agendamento. */
.schedule-details-actions .schedule-action-delete {
  --event-bg: rgb(255 255 255 / 18%);
  --event-ink: #fff;
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}
.schedule-details-actions .schedule-action-delete:hover:not(:disabled) {
  background: #921b14;
  border-color: #921b14;
}
