/* Appearance changes only paint; layout and user data stay identical. */
#current-actor{font-size:10px;color:var(--muted);white-space:nowrap}.settings-section{padding:0 0 17px;margin-bottom:18px;border-bottom:1px solid var(--line)}.settings-section h3{font-size:13px;font-weight:600;margin:0 0 15px}.settings-links{display:grid;gap:9px;margin:0 0 22px}.settings-links .button{justify-content:flex-start}.hours-list{margin:20px 0}.hours-row{display:grid;grid-template-columns:minmax(105px,1fr) 95px 15px 95px;gap:7px;align-items:center;border-bottom:1px solid var(--line);padding:7px 0;font-size:11px}.hours-row input[type=time]{min-height:44px;border:1px solid #87948c;border-radius:7px;padding:7px;background:transparent;color:inherit;font:inherit;width:100%}.hours-row input:disabled{opacity:.35}.sidebar-bottom label[for=actor]{margin-top:14px}.sidebar-bottom select{min-height:35px}html{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;background:#151b17;color:#e7efe8;--muted:#b3c1b6;--line:#354139;--blue:#8fc6a0}
[data-theme=dark] body{background:#151b17;color:#e7efe8}
[data-theme=dark] .sidebar{background:rgba(26,35,29,.85);border-color:#354139}
[data-theme=dark] .topbar{background:rgba(30,41,33,.78);border-color:#47584a;border-top-color:#657669;box-shadow:0 8px 24px #0003}
[data-theme=dark] .sidebar nav{background:rgba(39,52,43,.72);border-color:#45594a}
[data-theme=dark] .nav-item{color:#c0cec3}[data-theme=dark] .nav-item:hover{background:#314236}[data-theme=dark] .nav-item.active{background:#344b3c;color:#d5efdd;border-color:#5a7963;box-shadow:0 2px 7px #0002}
[data-theme=dark] .workspace-icon,[data-theme=dark] .contact-avatar{background:#294432;color:#b5d9c0}
[data-theme=dark] .business-brand,[data-theme=dark] .breadcrumb strong,[data-theme=dark] .contact-name{color:#e7efe8}
[data-theme=dark] .breadcrumb #active-business,[data-theme=dark] .breadcrumb,[data-theme=dark] .product-credit,[data-theme=dark] #current-actor{color:#b3c1b6}
[data-theme=dark] .metric,[data-theme=dark] .panel,[data-theme=dark] .deal-card,[data-theme=dark] dialog{background:#202a23;border-color:#405046;color:#e7efe8}
[data-theme=dark] .metric-icon{color:#9ab7a2}[data-theme=dark] .metric-note,[data-theme=dark] .metric-label,[data-theme=dark] .contact-detail,[data-theme=dark] .count-label,[data-theme=dark] .quiet-note,[data-theme=dark] .dialog-kicker{color:#b3c1b6}
[data-theme=dark] .primary{background:#9ed2ab;color:#142719;box-shadow:none}[data-theme=dark] .primary:hover{background:#b6e3c0}
[data-theme=dark] .secondary,[data-theme=dark] .sidebar-bottom select{background:#25322a;border-color:#687d6e;color:#e5eee7}[data-theme=dark] .secondary:hover{background:#35493b}
[data-theme=dark] .danger{background:#41292b;border-color:#865357;color:#ffb4b8}
[data-theme=dark] .text-button{color:#a8dcb7}[data-theme=dark] .icon-button{color:#b6c9bc}[data-theme=dark] .icon-button:hover{background:#344a3b}
[data-theme=dark] .field input,[data-theme=dark] .field select,[data-theme=dark] .search,[data-theme=dark] .calendar-top input,[data-theme=dark] .pipeline-picker select,[data-theme=dark] .deal-card select{background:#1b251f;border-color:#84998a;color:#e7efe8}
[data-theme=dark] input::placeholder{color:#9dac9f}[data-theme=dark] .hours-row input[type=time]{background:#1b251f;border-color:#84998a}
[data-theme=dark] th,[data-theme=dark] .quiet-note,[data-theme=dark] .day-header{background:#253128;color:#bdcbc0}
[data-theme=dark] td,[data-theme=dark] th,[data-theme=dark] .agenda-item,[data-theme=dark] .panel-header{border-color:#354139}
[data-theme=dark] .stage-column{background:#253128}[data-theme=dark] .stage-heading>span{background:#3e5144;color:#d6e4da}
[data-theme=dark] .badge{background:#2d4436;color:#c2e2cb}[data-theme=dark] .badge.green{background:#294734;color:#b8e6c7}[data-theme=dark] .badge.amber{background:#4d4024;color:#f4d992}[data-theme=dark] .badge.grey{background:#38433b;color:#c0cec4}
[data-theme=dark] .booking-card{background:#294332;border-color:#5b7e66;color:#e0f0e5}[data-theme=dark] .booking-card p,[data-theme=dark] .booking-time{color:#bfd4c6}[data-theme=dark] .booking-card.pending{background:#423a25;border-color:#8c7543}[data-theme=dark] .booking-card.cancelled{background:#303a33;border-color:#5a675e}
[data-theme=dark] .agenda-day .calendar-events{background:#1b251e}[data-theme=dark] .time-block strong,[data-theme=dark] .empty strong{color:#e0eae2}[data-theme=dark] .time-block,[data-theme=dark] .empty,[data-theme=dark] .board-empty{color:#b2c2b6}
[data-theme=dark] .form-error{color:#ffb5ba}[data-theme=dark] .error-panel{background:#3c292c;color:#ffd2d5;border-color:#8d575e}[data-theme=dark] dialog::backdrop{background:#050b0788}[data-theme=dark] .toast{background:#d2e9d9;color:#173322}
[data-theme=dark] .avatar{background:#354b3d;color:#dcece1;border-color:#4d6355}
[data-theme=dark] .sage-calendar{--sc-ink:#e7efe8;--sc-muted:#b3c1b6;--sc-sage:#9ed2ab;--sc-rule:#405046}
[data-theme=dark] .sc-toolbar{background:rgba(30,41,33,.78);border-color:#52675a;box-shadow:0 4px 24px #0002}
[data-theme=dark] .sc-icon,[data-theme=dark] .sc-control,[data-theme=dark] .sc-view-switch button{color:#dce9e0}[data-theme=dark] .sc-icon:hover,[data-theme=dark] .sc-control:hover{background:#344a3b}
[data-theme=dark] .sc-view-switch{background:#18241c}[data-theme=dark] .sc-view-switch button[aria-pressed=true]{background:#37513f;color:#e0f3e6}
[data-theme=dark] .sc-date input,[data-theme=dark] .sc-filter select{background:#1b251f;color:#e7efe8;border-color:#84998a}
[data-theme=dark] .sc-schedule,[data-theme=dark] .sc-corner,[data-theme=dark] .sc-day-heading,[data-theme=dark] .sc-hours,[data-theme=dark] .sc-appointments,[data-theme=dark] .sc-list-item{background:#202a23;color:#e7efe8}
[data-theme=dark] .sc-day-heading strong{color:#e7efe8}[data-theme=dark] .sc-day-heading.sc-today strong{background:#9ed2ab;color:#142719}[data-theme=dark] .sc-day-heading.sc-day-selected{background:#2b3c30}
[data-theme=dark] .sc-day-body{background:repeating-linear-gradient(to bottom,#202a23 0,#202a23 31px,#2d3b31 31px,#2d3b31 32px,#202a23 32px,#202a23 63px,#405046 63px,#405046 64px);border-color:#354139}
[data-theme=dark] .sc-event{background:#294632;color:#d7f0de;border-color:#71967a;border-left-color:#a5d5b2}[data-theme=dark] .sc-event.sc-pending{background:#514124;color:#f8dfa1;border-color:#b69c62}[data-theme=dark] .sc-event.sc-block{background:#3b3848;color:#e2dcec;border-color:#9d94ad}
[data-theme=dark] .sc-list-item{border-color:#354139}[data-theme=dark] .sc-list-item:hover{background:#293a2f}[data-theme=dark] .sc-list-selected{background:#314b3a!important}
[data-theme=dark] .sc-list-heading>span,[data-theme=dark] .sc-details{background:#293b2e;color:#dcece2;border-color:#63816b}[data-theme=dark] .sc-list-date strong{color:#e7efe8}[data-theme=dark] .sc-status{background:#375841;color:#d5efde}[data-theme=dark] .sc-status-pending{background:#554424;color:#f4daa0}
[data-theme=dark] .sc-slot:hover,[data-theme=dark] .sc-slot:focus-visible{background:#abcdbb26}[data-theme=dark] .sc-now-label{background:#e9c894;color:#251c0c}
[data-theme=dark] .resource-options{border-color:#7c9282}[data-theme=dark] .checkbox-field input{accent-color:#9ed2ab}[data-theme=dark] :focus-visible{outline-color:#b6dfc2}
@media(max-width:700px){#current-actor{max-width:88px;overflow:hidden;text-overflow:ellipsis;font-size:9px}.topbar #sync-status{display:none}.hours-row{grid-template-columns:minmax(85px,1fr) 83px 12px 83px;gap:5px}.hours-row input[type=time]{font-size:14px;padding:4px}.sidebar-bottom label[for=actor]{display:none}.sidebar-bottom{top:58px;display:flex;gap:5px;max-width:calc(100% - 40px)}.sidebar-bottom select{width:auto;max-width:145px;min-height:30px;font-size:9px}.sidebar-bottom #actor{max-width:130px}.topbar-right{gap:2px}.breadcrumb #active-business{max-width:105px}[data-theme=dark] .sidebar nav{background:transparent}.settings-links .button{white-space:normal;text-align:left}.resource-options .checkbox-field{font-size:13px}}

.hours-day{border-bottom:1px solid var(--line);padding:8px 0 12px}.hours-day-heading{display:flex;align-items:center;justify-content:space-between}.hours-periods{padding-left:28px}.hours-interval{display:grid;grid-template-columns:1fr 18px 1fr 44px;align-items:center;gap:8px;margin-top:7px;font-size:11px}.hours-interval input{min-height:44px;width:100%;border:1px solid #87948c;background:transparent;color:inherit;border-radius:7px;padding:6px;font:inherit}.hours-interval input:disabled{opacity:.35}[data-theme=dark] .sc-event.sc-inactive-event{background:#303c33;color:#bfcec3;border-color:#738578}[data-theme=dark] .pending-policy{color:#e6d096}
@media(max-width:700px){.hours-periods{padding-left:10px}.hours-interval{gap:5px;grid-template-columns:1fr 12px 1fr 36px}.hours-interval input{font-size:16px}.hours-interval .icon-button{min-width:36px}}

@media(max-width:700px){.sidebar nav{margin-top:34px}.sidebar-bottom{top:56px}}

[data-theme=dark] .sidebar-bottom p,[data-theme=dark] .sidebar-bottom label{color:#b3c1b6}

.tag-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px}.tag-chips:empty{display:none}.tag-chip{display:inline-block;font-size:10px;font-weight:500;padding:4px 7px;border-radius:5px;line-height:1.35;overflow-wrap:anywhere}.tag-sage{color:#286247;background:#e6f0e8}.tag-blue{color:#315d93;background:#e9f0fb}.tag-purple{color:#69518c;background:#f0eaf8}.tag-amber{color:#7d5c18;background:#f9efda}.tag-gray{color:#56635b;background:#eaf0eb}.tag-filter select{border:1px solid #87948c;border-radius:8px;min-height:44px;background:#fff;padding:9px 11px;font-size:11px;max-width:210px}.deal-card[draggable=true]{cursor:grab}.deal-card.dragging{opacity:.5;cursor:grabbing}.stage-column.drop-target{outline:2px solid #286247;outline-offset:-2px;background:#e0ede3}.deal-card[aria-busy=true]{opacity:.6}.tag-manager{margin:18px 0}.tag-manager .stage-settings-row{gap:20px}.tag-manager .tag-chip{max-width:270px}.toolbar .search{flex-shrink:1}[data-theme=dark] .tag-filter select{background:#1b251f;color:#e7efe8;border-color:#84998a}[data-theme=dark] .tag-sage{background:#294432;color:#c6e3ce}[data-theme=dark] .tag-blue{background:#2d415c;color:#c1d8f5}[data-theme=dark] .tag-purple{background:#473653;color:#e1caef}[data-theme=dark] .tag-amber{background:#4c4026;color:#f0d99d}[data-theme=dark] .tag-gray{background:#3a473e;color:#d2dfd6}[data-theme=dark] .stage-column.drop-target{background:#35503e;outline-color:#a5d7b3}
@media(max-width:700px){.toolbar:has(.tag-filter){flex-wrap:wrap}.tag-filter select{font-size:16px;max-width:100%;width:100%}.pipeline-toolbar .tag-filter{width:100%}.tag-chip{font-size:10px}.tag-manager .tag-chip{max-width:210px}.stage-column{scroll-snap-align:start}.board{scroll-snap-type:x proximity}}
@media(prefers-reduced-motion:no-preference){.stage-column{transition:background .18s,outline-color .18s}.deal-card{transition:opacity .15s}}

/* Mobile contact cards keep details and every action in one readable column. */
@media(max-width:700px){
 .topbar .breadcrumb #active-business,.topbar .breadcrumb>span:not(#active-business),.topbar #current-actor{display:none}
 .topbar .breadcrumb{min-width:0;gap:0}.topbar #tab-label{font-size:12px;white-space:nowrap}.topbar-right{margin-left:auto}
 .table-scroll:has(.contact-name){overflow:visible;border:0;background:transparent}
 .table-scroll:has(.contact-name) table,.table-scroll:has(.contact-name) tbody{display:block;width:100%}
 .table-scroll:has(.contact-name) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .table-scroll:has(.contact-name) tr{display:grid;grid-template-columns:minmax(0,1fr);width:100%;padding:16px;margin-bottom:12px;background:#fff;border:1px solid var(--line);border-radius:12px}
 .table-scroll:has(.contact-name) td{display:block;min-width:0;width:100%;padding:0;border:0;overflow-wrap:anywhere}
 .table-scroll:has(.contact-name) td:first-child{margin-bottom:13px}.table-scroll:has(.contact-name) .contact-name{font-size:13px;align-items:center}
 .table-scroll:has(.contact-name) td:nth-child(2),.table-scroll:has(.contact-name) td:nth-child(3){font-size:12px;line-height:1.6;margin-bottom:7px}
 .table-scroll:has(.contact-name) td:nth-child(2)::before{content:'Email';display:inline-block;min-width:43px;color:var(--muted);font-size:10px;margin-right:7px}
 .table-scroll:has(.contact-name) td:nth-child(3)::before{content:'Phone';display:inline-block;min-width:43px;color:var(--muted);font-size:10px;margin-right:7px}
 .table-scroll:has(.contact-name) td:last-child{margin-top:9px;padding-top:12px;border-top:1px solid var(--line)}
 .table-scroll:has(.contact-name) .row-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;justify-content:stretch}
 .table-scroll:has(.contact-name) .row-actions .button{width:100%;min-height:44px;padding-inline:7px;font-size:11px}
 [data-theme=dark] .table-scroll:has(.contact-name){background:transparent;border:0}[data-theme=dark] .table-scroll:has(.contact-name) tr{background:#202a23;border-color:#405046}
}

@media(max-width:700px){.sidebar nav{margin-top:0}[data-theme=dark] .sidebar nav{background:rgba(30,41,33,.94);border-color:#47584a}[data-theme=dark] .sidebar .nav-item.active{background:#2c4634;color:#b6e0c0}}

/* Booking-first refinement: neutral paper, readable records, generous touch controls. */
body{font-size:16px;line-height:1.5}.contact-detail,.agenda-body p,.page-heading p,.quiet-note{font-size:14px;line-height:1.55}.page-heading h1{letter-spacing:-.025em}.panel-header h2{font-size:18px}.button,.field,.field input,.field select{font-size:15px}.field input,.field select{min-height:46px}.metric-label{font-size:14px}.metric-note{font-size:12px}.contact-name{font-size:16px}.contact-more{width:44px;min-height:44px;font-size:25px}.table-scroll tr[data-contact-row]{cursor:pointer}.table-scroll tr[data-contact-row]:hover{background:var(--selection,#edf5ee)}.table-scroll tr[data-contact-row]:focus-visible{outline:2px solid #286247;outline-offset:-3px}.contact-facts{display:grid;gap:8px;margin:20px 0}.contact-facts dt{font-size:13px;color:var(--muted)}.contact-facts dd{margin:0 0 12px;overflow-wrap:anywhere}.contact-detail-actions,.empty-actions{padding:0 20px 22px}.contact-detail-actions{padding:0}.settings-links .button{min-height:46px}.empty{font-size:15px;line-height:1.6}.empty strong{font-size:18px}.contact-facts .tag-chip{margin:3px}.page-heading,.toolbar{flex-wrap:wrap}
[data-theme=dark] .table-scroll tr[data-contact-row]:hover{background:#2a3c30}
@media(max-width:700px){
 body{font-size:16px}.sidebar{position:sticky;top:0;z-index:20;background:#f6f7f4;padding:12px 16px 8px}.sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:10px 0 0;gap:2px}.sidebar .nav-item{min-width:0;font-size:12px;min-height:46px;padding:10px 2px;text-align:center}.business-brand{font-size:20px;max-width:100%;overflow-wrap:anywhere}.workspace{display:none}.sidebar-bottom{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:8px}.sidebar-bottom select{width:auto;max-width:48%;font-size:12px;min-height:40px}.sidebar-bottom .product-credit{margin:0;font-size:12px}.topbar{position:static;height:auto;min-height:52px;flex-wrap:wrap;padding:10px 16px;gap:8px}.topbar-right{flex-wrap:wrap;gap:8px}#current-actor{font-size:12px;white-space:normal;max-width:180px}.breadcrumb{font-size:12px;min-width:0;overflow-wrap:anywhere}main{padding:20px 16px;min-height:60dvh}.page-heading{gap:14px}.page-heading h1{font-size:27px}.page-heading p{font-size:14px;max-width:none}.page-heading .button{font-size:14px;min-height:44px;padding:10px 14px}.metrics{gap:12px}.metric{padding:18px 14px;min-width:0}.metric-value{font-size:26px;overflow-wrap:anywhere}.metric-label{font-size:13px}.metric-note{font-size:12px}.toolbar{gap:12px}.search{width:100%;min-width:0;font-size:16px;min-height:46px}.table-scroll:has(.contact-name) td:nth-child(2),.table-scroll:has(.contact-name) td:nth-child(3){font-size:14px}.table-scroll:has(.contact-name) td:last-child{position:absolute;right:10px;top:8px;border:0;margin:0;padding:0}.table-scroll:has(.contact-name) tr{position:relative;padding:18px 58px 18px 18px}.table-scroll .contact-name{overflow-wrap:anywhere}.agenda-item{flex-wrap:wrap;gap:10px}.agenda-body{min-width:0;flex:1}.agenda-body strong{font-size:15px}.agenda-body p{font-size:13px}.agenda-item .badge{margin-left:0}.field input,.field select,dialog input,dialog select{font-size:16px}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}#editor-form{padding:22px}.dialog-actions{flex-wrap:wrap}.dialog-actions .button{min-height:46px;flex:1}.hours-row{grid-template-columns:minmax(70px,1fr) 90px 10px 90px;font-size:13px;gap:5px}.sc-heading-actions,.heading-actions{flex-wrap:wrap}.sc-filter-row{gap:10px}.sc-filter-row label{min-width:0}.sc-filter-row select{max-width:100%;font-size:16px}.sc-list-item{min-height:64px}.toast{max-width:calc(100vw - 32px);white-space:normal}[data-theme=dark] .sidebar{background:#171d19}
}

@media(max-width:700px){.table-scroll:has(.contact-name) td:last-child{width:44px;min-width:44px}.table-scroll:has(.contact-name) .contact-name{font-size:16px}.contact-name{padding-right:8px}}
@media(max-width:700px){dialog[open]{position:fixed;inset:12px;width:calc(100vw - 24px);max-width:calc(100vw - 24px);height:fit-content;max-height:calc(100dvh - 24px);margin:0;overflow-y:auto;overflow-x:hidden}}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}@media(max-width:700px){#editor-form{width:100%;box-sizing:border-box;overflow-wrap:anywhere}}
/* Keep top-layer dialogs on a simple scrim: blurred backdrops can clip long
   scrollable dialog text in Chromium's narrow-viewport compositor. */
dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}
body{min-width:0}
