/* iworkit — emerald, orange, white and black. Loaded after legacy surfaces. */
:root {
 --brand:#047857; --brand-fill:#047857; --brand-on:#ffffff; --brand-bright:#10b981; --brand-soft:#e0f4eb; --accent:#f97316; --accent-ink:#9a3e07; --accent-soft:#fff0e3;
 --ink:#111b16; --muted:#52665d; --canvas:#ffffff; --surface:#ffffff; --surface-soft:#fafafa; --line:#dce5df;
 --pane:linear-gradient(135deg,#fffffffa,#ffffffed); --pane-strong:linear-gradient(135deg,#fffffffc,#fffffff5);
 --edge:#ffffffed; --shadow:inset 0 1px 0 var(--edge),0 8px 30px #063c2510; --control-shadow:inset 0 1px 0 var(--edge),0 2px 7px #063c2510;
 --ambient:none;
 --green:var(--brand); --border:var(--line); --glass-ink:var(--ink); --glass-muted:var(--muted); --glass-teal:var(--brand); --glass-orange:var(--accent);
 --glass-line:var(--edge); --glass-edge:var(--line); --glass-surface:var(--pane); --glass-surface-strong:var(--pane-strong);
 --glass-shadow:var(--shadow); --glass-shadow-small:var(--control-shadow); --depth-panel:var(--shadow); --depth-raised:var(--control-shadow); --depth-pressed:inset 0 2px 4px #0002;
 color-scheme:light;
}
:root[data-appearance=dark] {
 --brand:#6ee7b7; --brand-fill:#6ee7b7; --brand-on:#10251b; --brand-bright:#34d399; --brand-soft:#163b2c; --accent:#fb923c; --accent-ink:#fdba74; --accent-soft:#392719;
 --ink:#f1f7f3; --muted:#afc2b7; --canvas:#090d0b; --surface:#141e18; --surface-soft:#1c2921; --line:#35483d;
 --pane:linear-gradient(135deg,#1c2a22ec,#101a15dc 60%,#163325c9); --pane-strong:linear-gradient(135deg,#202d25fa,#131f18fa);
 --edge:#ffffff20; --shadow:inset 0 1px 0 var(--edge),0 12px 32px #0004; --control-shadow:inset 0 1px 0 var(--edge),0 2px 8px #0003;
 --ambient:radial-gradient(ellipse at 7% 0%,#10b98117,transparent 48%),radial-gradient(ellipse at 96% 92%,#f973160c,transparent 42%);
 color-scheme:dark;
}
html[data-appearance],html[data-appearance] body {background:var(--canvas);color:var(--ink)}
html body,html body:has(#planner:not([hidden])) {background:var(--ambient),var(--canvas)!important;background-attachment:fixed!important;color:var(--ink)!important}
html body main,html body .content,html body:has(#planner:not([hidden])) .content {background:transparent!important}
html body :is(h1,h2,h3,h4,label,strong,.brand,.workspace-mark,#profile-name,.team-member-label,.calendar-person-name,.day-label,.project-name,.task h3,.settings-role-menu summary,.settings-supervisor-menu summary) {color:var(--ink)}
html body :is(small,.nav-label,.workspace-mark small,.aside-foot,.aside-motto,.local-note,.breadcrumb,.intro p,.page-heading p,.settings-card p,.settings-card small,.settings-kicker,.calendar-footnote,.queue-empty,.notes-empty,.empty,.chat-message-meta,.chat-message-meta time,.chat-edited,.chat-room-head small,.chat-reply-quote span,.time-label,.world-clock-city,.settings-account-meta,.filters label,.timezone-popover p,.login-foot,.login-card>p) {color:var(--muted)!important}
html body :is(.eyebrow,.login-eyebrow,.brand-dot) {color:var(--accent-ink)!important}
/* Glass is reserved for larger layers; rows remain crisp and inexpensive. */
html:not(.embedded-workspace) body aside,html:not(.embedded-workspace) body:has(#planner:not([hidden])) aside,
html body :is(main>header,.planner-shell,.chat-shell,.settings-card,.project-card,.stats>div,.stat,.timesheet-summary>div,.lead-time-summary>div,.management-links>a,.payroll-header,.team-payslips,.timesheet-extra,.login-card) {
 background:var(--pane)!important;border:1px solid var(--edge)!important;color:var(--ink)!important;box-shadow:var(--shadow)!important;
 -webkit-backdrop-filter:blur(22px) saturate(140%);backdrop-filter:blur(22px) saturate(140%);
}
html body :is(dialog,#master-dialog,#assign-dialog,.viewer-event-detail,.timezone-popover,.calendar-viewer-options,.search-select-menu,.notification-card,.chat-expression-picker,.chat-emoji-picker) {background:var(--pane-strong)!important;color:var(--ink)!important;border:1px solid var(--line)!important;box-shadow:var(--shadow)!important;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}
html body dialog::backdrop {background:#020b0766;backdrop-filter:blur(5px)}
html body :is(.task-queue,.calendar-toolbar,.calendar-days,.time-labels,.all-day-grid,.calendar-day-column,.time-grid,.chat-room-head,.chat-compose,.calendar-footnote,.chat-sidebar,.chat-search,.calendar-viewer-picker,.timesheet-period,thead,th,.master-toolbar,.management-settings-panel>summary,.catalog-category>summary) {background:var(--surface-soft)!important;background-image:none!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none!important}
html body :is(.task,.queue-task,.priority-group,.notes-card,.notes-empty,.project,.request-card,.master-item,.lead-op-card,.lead-leave-card,.leave-request-card,.timesheet-entry,.task-note,.subtask-card,.viewer-event-list>div,.catalog-category,.management-settings-panel,.monitor-table-scroll,.monitor-shift-scroll,.master-table-scroll,.chat-transcript,.chat-linked-task,.chat-compose-preview,.chat-reply-quote,.shared-message-room,.message-nav-room,.sound-option,.settings-role-menu,.settings-supervisor-menu,.attachment-area,.support-fields,.sop-fields,.task-notes,.subtask-fields,.support-reply,.search-select-trigger) {background:var(--surface)!important;background-image:none!important;border-color:var(--line)!important;color:var(--ink)!important;box-shadow:0 1px 3px #00000008!important}
html body :is(td,tr,table,.profile,.aside-foot,.settings-subhead,.settings-card-head,.notes-card-head,.notes-actions,.chat-general-people,.chat-compose,.time-slot,.all-day-cell,.day-label,.zone-hours,.zone-heading,.sound-settings) {border-color:var(--line)!important}
html body :is(.chat-messages,#board .column,.viewer-column) {background:var(--ambient),var(--canvas)!important;border-color:var(--line)!important}
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea,select) {background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;box-shadow:inset 0 1px 3px #0000000a!important}
html body :is(input,textarea)::placeholder {color:var(--muted);opacity:1}
html body :is(input,select,textarea):disabled {background:var(--surface-soft)!important;color:var(--muted)!important}
html body input:is([type=checkbox],[type=radio],[type=range]) {accent-color:#059669}
html body :is(button,a,select,input,textarea,summary):focus-visible {outline:2px solid var(--brand-bright)!important;outline-offset:3px}
html body :is(.secondary,.chat-tool,.calendar-mode,.view-toggle,.timezone-primary,.timezone-menu>summary,.calendar-viewer-menu>summary,.work-clock button,.monitor-range-presets button,.monitor-pagination button,.leave-review-controls button,.master-toolbar button,.modal-actions button,.modal-footer button,.sound-audition,#refresh,#refresh-leave,#refresh-team-ops,.login-google) {background:var(--pane)!important;color:var(--ink)!important;border:1px solid var(--line)!important;box-shadow:var(--control-shadow)!important}
html body :is(button.primary,a.primary,.primary[type=submit],.calendar-link,.queue-add,.lead-reassign-form button,.team-task-reassign button,.support-reply-form button,.lead-cover-task button,.chat-send,.login-google:hover) {background:var(--brand-fill)!important;color:var(--brand-on)!important;border:1px solid #10b98180!important;box-shadow:inset 0 1px 0 #ffffff40,0 4px 12px #04785725!important}
html body :is(.primary,.calendar-link) :is(strong,span) {color:inherit}
html body aside :is(nav a,nav button[data-page],.role-nav a,.sidebar-signout) {color:var(--muted)!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;filter:none}
html body aside :is(nav a:hover,nav button[data-page]:hover,.sidebar-signout:hover) {background:var(--surface-soft)!important;color:var(--ink)!important}
html body aside :is(nav a.active,nav a.selected,nav button.active,.messages-nav-row:has(:where([id=messages-nav].active))) {background:var(--brand-soft)!important;color:var(--brand)!important;border-color:var(--edge)!important;box-shadow:var(--control-shadow)!important}
html body aside :is(.shared-icon,nav button[data-page]>span:first-child,.role-nav a::before,.sidebar-signout-icon) {background-image:linear-gradient(135deg,#10b981,#047857)!important;filter:none!important}
html body :is(.message-nav-room.selected,.shared-message-room.selected,.calendar-mode .selected,.view-toggle .selected,.sound-option:has(input:checked),.world-clock-city.is-primary,.calendar-person-option:hover,.settings-role-options label:hover,.settings-supervisor-options label:hover,.search-select-option:hover,.search-select-option[aria-selected=true]) {background:var(--brand-soft)!important;color:var(--brand)!important;border-color:var(--brand)!important}
html body :is(#world-clock,#shell-world-clock,.timezone-saved>div,.zone-heading:first-child,.zone-hours:first-child,.calendar-footnote,.auto-tracking-note) {background:var(--surface-soft)!important;color:var(--muted)!important;border-color:var(--line)!important}
html body :is(.avatar,.settings-avatar,.team-member-avatar,.calendar-person-avatar,.stat-icon,.project-icon,.workspace-icon,.logo,.chat-welcome>span) {background:var(--brand-soft)!important;color:var(--brand)!important}
html body :is(.chat-message,#messages-section .chat-message) {background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:0 2px 9px #0000000a!important}
html body :is(.chat-message.mine,#messages-section .chat-message.mine,.chat-reply-panel,.calendar-event) {background:var(--brand-soft)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:var(--control-shadow)!important}
html body :is(.chat-message-meta strong,.chat-message-action,.chat-unsend,.chat-reply-quote strong,.chat-message a,.task a,.notes-card a) {color:var(--brand)!important}
html body :is(.calendar-event.event-history,.queue-hint,.history-note,.support-label,.session-label,.monitor-attention,.leave-status.pending,.leave-chip.pending,.monitor-status.break) {background:var(--accent-soft)!important;color:var(--accent-ink)!important;border-color:var(--accent)!important}
html body :is(.timesheet-state.active,.leave-status.approved,.leave-chip.approved,.monitor-status.working,.work-clock button.is-running) {background:var(--brand-soft)!important;color:var(--brand)!important}
html body :is(.day-label.is-today strong,.message-room-unread,.chat-room-unread,.shared-count.unread,#messages-nav i:not([hidden]),.now-line span) {background:var(--accent)!important;color:#111!important}
html body .now-line {background:var(--accent)!important}
html body .progress-track {background:var(--line)!important}
html body :is(.progress-track span,.status-dot) {background:#059669!important}
html body :is(.calendar-event-content,.queue-task-content,.task-status-control button) {box-shadow:none!important}
html body #team-loading {background:var(--canvas)!important;color:var(--brand)!important}
html body #toast {background:var(--ink)!important;color:var(--canvas)!important}
html body .login-page {margin:0;background:var(--ambient),var(--canvas)!important}
html[data-appearance=dark] body .brand img:not(.brand-icon),html[data-appearance=dark] .login-card>img {content:url('/iworkit-logo-dark.svg')}
html body .appearance-panel {padding:10px 0;margin:8px 0;border-top:1px solid var(--line)}
html body .appearance-control {display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:600;color:var(--muted)}
html body .appearance-control select {width:auto;min-width:94px;min-height:32px;padding:5px 8px;border-radius:10px;font-size:12px}
html body .appearance-settings {padding:12px 0;margin:10px 0;border-bottom:1px solid var(--line)}
html body .appearance-settings p {font-size:11px;margin:7px 0 0}
html.embedded-workspace body {background:var(--canvas)!important}
@media(prefers-reduced-transparency:reduce) {html body aside,html body dialog,html body .settings-card,html body main>header {background:var(--surface)!important;backdrop-filter:none!important}}
@media(prefers-reduced-motion:reduce) {html {scroll-behavior:auto}html body * {transition:none!important}}
@media print {html[data-appearance] {--ink:#000;--muted:#333;--surface:#fff;--surface-soft:#fff;--canvas:#fff;--line:#ccc}.appearance-panel {display:none}}
/* Shared profile, clock and utility labels retain contrast in both modes. */
html body :is(.workspace>div,.profile>div,#crumb,.world-clock-city time,#work-clock-elapsed,#shell-work-clock-elapsed,.shell-work-clock time,.settings-signout) {color:var(--ink)!important}
html body :is(#today,.company-identity>span,#work-clock-status,.shell-work-clock>span,.message-chevron,.export) {color:var(--muted)!important}
html body :is(.profile-photo-choose,.profile-photo-remove,#chat-new,.chat-load-newer,.timezone-edge-toggle,.search-select-popover,.search-select-options) {background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html body .person-avatar {background:var(--brand-soft)!important;border-color:var(--edge)!important;box-shadow:var(--control-shadow)!important}
html body .person-initials {color:var(--brand)!important}
html body .person-avatar::after {box-shadow:inset 0 1px 1px var(--edge)!important}
html[data-appearance=dark] .company-identity img {filter:brightness(0) invert(1);opacity:.85}
html body :is(.priority-group-title,.queue-task-title,.queue-task h3,.chat-pin,.chat-attachment-view,.chat-attachment-name,.chat-file,.calendar-event-title) {color:var(--ink)!important}
html body :is(.priority-group-count,.queue-heading h2 span,.column-heading .count,nav i,.role-count,.chat-room-avatar,.shared-room-icon) {background:var(--brand-soft)!important;color:var(--brand)!important;box-shadow:none!important}
html body :is(.due-group,.queue-client,.priority-group-chevron,.time-labels span,.zone-hours span,.day-label>span,.all-day-heading>span,.chat-attachment-meta,.chat-attachment figcaption,.chat-compose-hint) {color:var(--muted)!important}
html body :is(.chat-search-field,.chat-search-results,.chat-expression-panel,.chat-reactions-picker,.chat-general-grid,.chat-room-avatar,.chat-shared-item,.all-day-heading button) {background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html body #chat-send {background:var(--brand-fill)!important;color:var(--brand-on)!important;border-color:#10b98180!important}
html:not(.embedded-workspace) body.calendar-focus aside .appearance-control {display:block;font-size:10px}
html:not(.embedded-workspace) body.calendar-focus aside .appearance-control>span:not(.appearance-select-wrap) {display:none}
html:not(.embedded-workspace) body.calendar-focus aside .appearance-control :is(select,.search-select,.search-select-trigger) {min-width:0!important;width:100%!important;max-width:100%;font-size:10px!important;padding:5px 3px!important}
html:not(.embedded-workspace) body.calendar-focus aside .appearance-panel {width:100%}
html body .search-select-popup {background:var(--pane-strong)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:var(--shadow)!important}
html body .search-select-option {color:var(--ink)}
html body :is(.management-links p,.stats span,.lead-time-summary span,.shell-clock-city strong,#shared-message-toggle) {color:var(--muted)!important}
html body :is(.management-links b,.management-links i,.room-symbol,.shell-clock-city time) {color:var(--brand)!important}
html body .management-links i {background:var(--brand-soft)!important}
html body .shell-work-clock button {background:var(--pane)!important;color:var(--ink)!important;border:1px solid var(--line)!important}
html body :is(.error,.settings-error,.chat-create-error,.login-error,#load-error) {color:var(--accent-ink)!important}
@media(max-width:600px) {
 html body :is(.settings-layout,.settings-card) {min-width:0!important;width:100%;max-width:100%;box-sizing:border-box}
 html body .appearance-control {flex-wrap:wrap}
}
html body #shell-world-clock strong {color:var(--ink)!important}
html body .onboard-appearance {max-width:240px;margin:12px auto}
html body #onboard-form .section {background:var(--pane)!important;color:var(--ink);border-color:var(--line)!important}

/* Icon-first controls: open lists, soft pills and circular glass actions. */
html body [data-ui-icon="settings"]{--ui-icon:url("/brand-icons/ui-settings.svg")}
html body [data-ui-icon="attach"]{--ui-icon:url("/brand-icons/ui-attach.svg")}
html body [data-ui-icon="mic"]{--ui-icon:url("/brand-icons/ui-mic.svg")}
html body [data-ui-icon="stop"]{--ui-icon:url("/brand-icons/ui-stop.svg")}
html body [data-ui-icon="pause"]{--ui-icon:url("/brand-icons/ui-pause.svg")}
html body [data-ui-icon="play"]{--ui-icon:url("/brand-icons/ui-play.svg")}
html body [data-ui-icon="photo"]{--ui-icon:url("/brand-icons/ui-photo.svg")}
html body [data-ui-icon="video"]{--ui-icon:url("/brand-icons/ui-video.svg")}
html body [data-ui-icon="link"]{--ui-icon:url("/brand-icons/ui-link.svg")}
html body [data-ui-icon="file"]{--ui-icon:url("/brand-icons/ui-file.svg")}
html body [data-ui-icon="check"]{--ui-icon:url("/brand-icons/ui-check.svg")}
html body [data-ui-icon="pin"]{--ui-icon:url("/brand-icons/ui-pin.svg")}
html body [data-ui-icon="send"]{--ui-icon:url("/brand-icons/ui-send.svg")}
html body [data-ui-icon="smile"]{--ui-icon:url("/brand-icons/ui-smile.svg")}
html body [data-ui-icon="mention"]{--ui-icon:url("/brand-icons/ui-mention.svg")}
html body [data-ui-icon="gif"]{--ui-icon:url("/brand-icons/ui-gif.svg")}
html body [data-ui-icon="calendar"]{--ui-icon:url("/brand-icons/ui-calendar.svg")}
html body [data-ui-icon="board"]{--ui-icon:url("/brand-icons/ui-board.svg")}
html body [data-ui-icon="list"]{--ui-icon:url("/brand-icons/ui-list.svg")}
html body [data-ui-icon="plus"]{--ui-icon:url("/brand-icons/ui-plus.svg")}
html body [data-ui-icon="refresh"]{--ui-icon:url("/brand-icons/ui-refresh.svg")}
html body [data-ui-icon="invite"]{--ui-icon:url("/brand-icons/ui-invite.svg")}
html body [data-ui-icon="export"]{--ui-icon:url("/brand-icons/ui-export.svg")}

html body [data-ui-icon],html body #messages-section .chat-compose [data-ui-icon] {display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;min-width:36px;min-height:36px;padding:8px!important;font-size:0!important;gap:0;border-radius:50%!important;background:var(--pane)!important;border:1px solid var(--edge)!important;color:var(--brand)!important;box-shadow:var(--control-shadow)!important;vertical-align:middle;cursor:pointer}
html body [data-ui-icon]::before {content:'';display:block;width:19px;height:19px;flex:0 0 19px;background:currentColor;mask:var(--ui-icon) center/contain no-repeat;-webkit-mask:var(--ui-icon) center/contain no-repeat}
html body [data-ui-icon]:hover,html body [data-ui-icon][aria-pressed=true],html body [data-ui-icon].selected {background:var(--brand-soft)!important;color:var(--brand)!important}
html body [data-ui-icon=send] {background:var(--brand-fill)!important;color:white!important}
html body [data-ui-icon=stop] {color:var(--accent-ink)!important;background:var(--accent-soft)!important}
html body [data-ui-icon][hidden] {display:none!important}
html body aside :is(.shared-message-room,.message-nav-room),html body aside nav :is(.shared-message-room,.message-nav-room) {border:0!important;border-radius:18px!important;background:transparent!important;box-shadow:none!important;padding:9px 8px!important;margin:2px 0!important;min-height:52px;backdrop-filter:none!important}
html body aside :is(.shared-message-room,.message-nav-room):hover {background:var(--surface-soft)!important}
html body aside :is(.shared-message-room.active,.shared-message-room.selected,.message-nav-room.selected) {background:var(--brand-soft)!important;box-shadow:none!important}
html body aside :is(.shared-message-list,.message-nav-list,.conversation-search-results) {border:0!important;box-shadow:none!important;background:transparent!important;padding-left:4px!important}
html body aside :is(.message-nav-symbol,.room-symbol,.room-unread,.message-room-unread) {border:0!important;border-radius:50%!important;box-shadow:none!important;background:var(--brand-soft)!important;color:var(--brand)!important}
html body :is(.primary,.secondary,.calendar-link,.search-select-trigger,.chat-tool,.timezone-primary,.timezone-menu>summary,.modal-actions button,.modal-footer button) {border-radius:999px!important}
html body :is(.priority-group,.queue-task,.task-note,.subtask-card) {border:0!important;box-shadow:none!important;border-radius:20px!important}
html body :is(.settings-card,.project-card,.chat-shell,.planner-shell,dialog) {border-radius:24px!important}
html body .chat-shared-tabs {display:flex;gap:8px;flex-wrap:wrap;padding:4px 0 12px}
html body .chat-inbox-tools {align-items:center}
html body .chat-search-field {border:0!important;border-radius:999px!important;box-shadow:none!important}
html body .chat-compose-tools,html body .chat-expression-tools {align-items:center}
@media(pointer:coarse) {html body [data-ui-icon],html body #messages-section .chat-compose [data-ui-icon] {width:42px;height:42px;min-width:42px;min-height:42px}}
/* Reference finish: frosted white layers with concentrated emerald/orange accents. */
:root {
 --canvas:#ffffff;
 --pane:linear-gradient(135deg,#fffffff2,#ffffffb8 55%,#ffffffd9);
 --pane-strong:linear-gradient(135deg,#fffffffa,#fffffff5);
 --ambient:none;
 --shadow:inset 0 1px 1px #ffffff,0 8px 26px #173b2c08,0 1px 2px #173b2c08;
 --control-shadow:inset 0 1px 1px #ffffff,0 3px 12px #173b2c0b;
}
:root[data-appearance=dark] {
 --canvas:#090d0b;--pane:linear-gradient(135deg,#25332ac9,#111c16c9);--pane-strong:linear-gradient(135deg,#25332afa,#152119fa);
 --ambient:radial-gradient(ellipse at 0% 0%,#10b98117,transparent 48%),radial-gradient(ellipse at 100% 100%,#f973160c,transparent 42%);
 --shadow:inset 0 1px 1px #ffffff20,0 8px 28px #0003;--control-shadow:inset 0 1px 1px #ffffff25,0 3px 12px #0002;
}
html body :is(.planner-shell,.chat-shell,.settings-card,.stats>div,.stat,.timesheet-summary>div,.lead-time-summary>div,.management-links>a,.project-card,.payroll-header,.team-payslips,.timesheet-extra) {border-radius:26px!important;border-color:var(--edge)!important;background:var(--pane)!important;box-shadow:var(--shadow)!important}
html body :is(.calendar-toolbar,.calendar-days,.task-queue,.chat-room-head,.chat-compose) {background:color-mix(in srgb,var(--surface) 65%,transparent)!important}
html body :is(.priority-group,.queue-task,.task,.notes-card,.timesheet-entry,.leave-request-card,.request-card,.master-item,.lead-op-card,.lead-leave-card,.sound-option) {border:0!important;border-radius:22px!important;box-shadow:none!important;background:color-mix(in srgb,var(--surface) 75%,transparent)!important}
html body :is(.notes-card,.timesheet-entry,.leave-request-card,.request-card,.lead-op-card,.lead-leave-card) {border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent!important}
html body :is(.settings-role-menu,.settings-supervisor-menu,.management-settings-panel,.catalog-category) {border:0!important;border-radius:22px!important;background:color-mix(in srgb,var(--surface) 60%,transparent)!important;box-shadow:none!important}
html body :is(.primary,.calendar-link),html body [data-ui-icon=send] {background:linear-gradient(145deg,#10b981,#059669 55%,#047857)!important;box-shadow:inset 0 1px 1px #ffffff70,0 4px 14px #05966920!important}
html body [data-ui-icon=settings],html body [data-ui-icon=gif],html body [data-ui-icon=mention] {color:var(--accent-ink)!important;background:linear-gradient(145deg,var(--surface),var(--accent-soft))!important}
html body [data-ui-icon][aria-pressed=true],html body .view-toggle [data-ui-icon].selected {background:linear-gradient(145deg,#fb923c,#f97316)!important;color:#111!important;box-shadow:inset 0 1px 1px #ffffff70,0 4px 14px #f9731620!important}
html body aside :is(nav a.active:not(.shared-message-room),nav button.active:not(.message-nav-room)) {background:var(--brand-fill)!important;color:var(--brand-on)!important;box-shadow:inset 0 1px 1px #ffffff70,0 4px 14px #0596691a!important;border:0!important;border-radius:999px!important}
html body aside nav a.active>.shared-icon,html body aside nav button.active[data-page]>span:first-child,html body aside .role-nav a.active::before {background-image:none!important;background-color:#fff!important}
html body aside :is(.message-nav-room.selected,.shared-message-room.active) {background:var(--brand-soft)!important;color:var(--brand)!important;box-shadow:none!important}
html body aside :is(.message-nav-room,.shared-message-room) .person-avatar {box-shadow:none!important;border:0!important;border-radius:50%!important}
html body .timesheet-summary>div:first-child strong,html body .stats>div:first-child strong {color:var(--brand)!important}
html body .timesheet-summary>div:nth-child(2) strong,html body .stats>div:nth-child(2) strong {color:var(--accent-ink)!important}
html body :is(.queue-hint,.auto-tracking-note) {background:transparent!important;border:0!important;color:var(--muted)!important}
html body .queue-hint>span {color:var(--accent-ink)!important}
/* World clocks are a flowing utility row, never a scrollbar over the times. */
html body :is(#world-clock,#shell-world-clock) {height:auto!important;min-height:36px;overflow:visible!important;white-space:normal;flex-wrap:wrap;gap:8px;padding:5px 10px!important;border:0!important;border-radius:24px!important;background:transparent!important;box-shadow:none!important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
html body :is(#world-clock-zones,#shell-clock-zones) {display:flex;flex:1 1 360px;flex-wrap:wrap;align-items:center;gap:6px;overflow:visible!important;scrollbar-width:none!important;min-width:0}
html body :is(#world-clock-zones,#shell-clock-zones)::-webkit-scrollbar {display:none;width:0;height:0}
html body .world-clock-label {display:none!important}
html body :is(#world-clock,#shell-world-clock) .world-clock-city {border:0!important;border-radius:999px!important;padding:5px 9px!important;gap:5px;background:var(--pane)!important;box-shadow:inset 0 1px 0 var(--edge);flex:0 1 auto;flex-wrap:wrap}
html body :is(#world-clock,#shell-world-clock) .world-clock-city.is-primary {background:var(--brand-soft)!important}
html body :is(#world-clock,#shell-world-clock) .world-clock-city strong {color:var(--muted)!important;font-size:10px}
html body :is(#world-clock,#shell-world-clock) .world-clock-city time {color:var(--ink)!important;font-size:11px}
html body :is(.work-clock,.shell-work-clock) {border:0!important;padding:0!important;margin-left:auto;flex-wrap:wrap}
html body :is(.work-clock,.shell-work-clock) button {border-radius:999px!important}
html body :is(.work-clock,.shell-work-clock) button.is-running {background:var(--brand-soft)!important;color:var(--brand)!important}
@media(max-width:1200px){html body .world-clock-city small {display:none!important}}
@media(max-width:600px){html body :is(#world-clock-zones,#shell-clock-zones){flex-basis:100%}html body :is(.work-clock,.shell-work-clock){margin-left:0}html body :is(#world-clock,#shell-world-clock){position:static}}
@media(prefers-reduced-transparency:reduce){html body :is(aside,main>header,.planner-shell,.chat-shell,.settings-card,dialog,[data-ui-icon]){background:var(--surface)!important;backdrop-filter:none!important}}
/* Override older ID-scoped button palettes without altering their behavior. */
html body #messages-section #chat-shared-toggle,
html body #messages-section .chat-compose :is([data-ui-icon=gif],[data-ui-icon=mention]) {background:linear-gradient(145deg,var(--surface),var(--accent-soft))!important;color:var(--accent-ink)!important}
html body #messages-section .chat-compose [data-ui-icon=send] {background:var(--brand-fill)!important;color:white!important;box-shadow:inset 0 1px 1px #ffffff70,0 4px 14px #05966920!important}
html body #messages-section .chat-compose [data-ui-icon=stop] {background:var(--accent-soft)!important;color:var(--accent-ink)!important}
html body #messages-section .chat-compose [data-ui-icon]:not([data-ui-icon=send]):hover {background:var(--brand-soft)!important;color:var(--brand)!important}
html body aside nav #messages-nav.active {background:var(--brand-fill)!important;color:var(--brand-on)!important;border-radius:999px!important}

html body [data-ui-icon=reply]{--ui-icon:url("/brand-icons/ui-reply.svg")}

html body [data-ui-icon=edit]{--ui-icon:url("/brand-icons/ui-edit.svg")}

html body [data-ui-icon=undo]{--ui-icon:url("/brand-icons/ui-undo.svg")}

html body #messages-section .chat-message-meta [data-ui-icon] {width:26px;height:26px;min-width:26px;min-height:26px;padding:5px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--muted)!important;text-decoration:none}
html body #messages-section .chat-message-meta [data-ui-icon]::before {width:15px;height:15px;flex-basis:15px}
html body #messages-section .chat-message-meta [data-ui-icon]:hover {background:var(--brand-soft)!important;color:var(--brand)!important}
html body #messages-section .chat-message-meta [data-pin-state=pinned] {color:var(--accent-ink)!important;background:var(--accent-soft)!important}
html body .chat-message-meta {gap:6px!important}
html body .chat-message-meta time {margin-right:5px}
html body aside .messages-nav-row:has(:where([id=messages-nav].active)) {background:transparent!important;box-shadow:none!important}
html body aside nav #messages-nav.active {background:var(--brand-fill)!important;color:var(--brand-on)!important}
html body aside nav #messages-nav.active>span:first-child {background-color:white!important}
@media(pointer:coarse){html body #messages-section .chat-message-meta [data-ui-icon]{width:36px;height:36px;min-width:36px;min-height:36px}}

html body .chat-shared-tabs {background:transparent!important;border:0!important;box-shadow:none!important;border-radius:999px!important}
html body .eyebrow,html body #page-subtitle {display:none!important}
html body main footer {font-size:0}
html body main footer>.status-dot {display:none}
html body main footer #save-status {font-size:11px}
html body .page-heading {margin-top:8px}
html:not(.embedded-workspace) body aside nav :is(button.active[data-page],a.active[data-shared-view],a.active[data-role-section]) {background:var(--brand-fill)!important;color:white!important;border:0!important;box-shadow:inset 0 1px 1px #ffffff70,0 4px 14px #05966920!important}
html:not(.embedded-workspace) body aside nav :is(button.active[data-page],a.active[data-shared-view])>span:first-child {background-color:#fff!important;background-image:none!important}
/* User preference: invisible scrollbars; preserve every existing scroll container. */
html,html body,html body * {scrollbar-width:none!important;scrollbar-gutter:auto!important}
html::-webkit-scrollbar,html body::-webkit-scrollbar,html body *::-webkit-scrollbar {display:none!important;width:0!important;height:0!important}

/* Theme-aware interaction surfaces, including expanded and hovered data rows. */
html body .master-client-group {background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}
html body .master-client-heading {background:var(--pane)!important;color:var(--ink)!important;border:1px solid var(--edge)!important;border-radius:24px!important;box-shadow:var(--control-shadow)!important;backdrop-filter:blur(20px)}
html body .master-client-heading:hover {background:var(--brand-soft)!important}
html body .master-client-symbol {background:var(--brand-soft)!important;color:var(--brand)!important;border-radius:50%!important}
html body .master-client-chevron {color:var(--brand)!important}
html body :is(.monitor-table,.master-table,.notes-table,.leave-table,.support-table,.payroll-employee-table-wrap table) tbody tr:hover {background:var(--surface-soft)!important;color:var(--ink)!important}
html body :is(.payroll-profile-row,.payroll-start-row,.payroll-salary-row,.notes-detail-row,.support-detail-row) {background:var(--surface-soft)!important;color:var(--ink)!important}
html body .monitor-status.off {background:var(--surface-soft)!important;color:var(--muted)!important}
html body :is(.monitor-detail summary,.notes-reference-link,.note-dialog-back) {color:var(--brand)!important}
html body :is(.search-select-option.is-active,.chat-discovery-row:hover,.emoji-grid button:hover,.mention-options .is-active,.mention-options button:hover,.time-slot:hover) {background:var(--brand-soft)!important;color:var(--ink)!important}
html body :is(.notes-row-actions button,.support-detail-toggle,.payroll-employee-table-wrap button,.payroll-download-actions button,.team-payslip-downloads button,#leave-section-toggle):is(:hover,:focus-visible) {background:var(--brand-soft)!important;color:var(--brand)!important}
html body aside .role-nav a[data-role-section]>span {background:transparent!important;color:inherit!important}
/* A bare plus with a native tooltip; keep a generous keyboard/touch target. */
html body aside nav :is(#chat-new,#shared-new-message),
html body aside nav :is(#chat-new,#shared-new-message):is(:hover,:focus,:active) {display:grid;place-items:center;flex:none;width:30px;height:32px;min-width:30px;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:50%!important;color:var(--brand)!important;font-size:24px!important;line-height:1;filter:none!important;transform:none!important}
html body aside nav :is(#chat-new,#shared-new-message):hover {color:var(--accent-ink)!important}
html body :is(.master-table,.monitor-table,.notes-table,.leave-table,.support-table,.payroll-employee-table-wrap table) td {color:var(--ink)!important}
html body :is(.master-created-cell,.master-empty-cell,.master-row-number,.monitor-row-number) {color:var(--muted)!important}
html body .master-table [data-person-label] {white-space:nowrap}

html body aside .conversation-search {width:calc(100% - 16px)!important;margin:8px 8px 12px!important;padding:7px 9px!important;font-size:11px!important;min-height:30px;border-radius:999px!important}
html body #leave-show-all {background:var(--pane)!important;color:var(--ink)!important;border-color:var(--line)!important;border-radius:999px!important}
/* Calendar reminders and compact event labels must remain legible in either theme. */
html body .all-day-reminder {background:var(--accent-soft)!important;color:var(--accent-ink)!important;border-left-color:var(--accent)!important;border-radius:8px!important;box-shadow:none!important}
html body .all-day-reminder.is-shared {background:var(--brand-soft)!important;color:var(--brand)!important;border-left-color:var(--brand-bright)!important}
html body .all-day-reminder :is(strong,small) {color:inherit!important}
html body .calendar-event {border-radius:12px!important}
html body .calendar-event .calendar-event-content {min-width:0;padding-left:27px!important;padding-right:5px!important}
html body .calendar-event .calendar-event-content strong {display:block!important;max-width:100%;min-width:0;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;word-break:normal;-webkit-line-clamp:unset}
html body .calendar-event .task-status-control {width:18px;height:18px;left:4px;top:4px}
html body .calendar-event .task-status-control .status-symbol {width:18px;height:18px;font-size:12px;background:var(--surface-soft)!important;color:var(--brand)!important;border-color:var(--line)!important}
html body .calendar-mode button {color:var(--muted)!important}
html body .calendar-mode button.selected {color:var(--brand)!important}
html body .time-slot.drop-highlight {background:var(--brand-soft)!important;border-color:var(--brand)!important}

html body .calendar-event-preview {background:var(--pane-strong)!important;color:var(--ink)!important;border:1px solid var(--edge)!important;border-radius:18px!important;box-shadow:var(--shadow)!important;backdrop-filter:blur(20px)}
html body .calendar-event-preview strong {color:var(--ink)!important}
html body .calendar-event-preview :is(span,small) {color:var(--muted)!important}
/* Shared secondary surfaces: no fixed white panels beneath dark-mode text. */
html body :is(.notes-table-scroll,.support-table-scroll,.leave-table-shell,.payroll-employees,.payroll-employee-table-wrap,.team-payslip-table-wrap,.chat-shared-results,.chat-file-card,.timesheet-payroll-status,.leave-cover-task) {background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html body :is(.notes-scope-tabs,.task-reference-panel,.note-dialog-meta,.note-dialog-card>footer,.payroll-period-metrics>div,.payroll-benefits-editor,.team-payslip-total,.task-support-replies,.chat-pdf-viewer,.chat-pdf-toolbar,.chat-task-preview-description,.chat-shared-item,.chat-typing-indicator) {background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html body :is(.notes-detail-row,.support-detail-row,.leave-cover-row) td {background:var(--surface-soft)!important;color:var(--ink)!important}
html body :is(.payroll-summary,.payroll-period,.payroll-downloads) {background:var(--pane)!important;color:var(--ink)!important;border-color:var(--edge)!important;box-shadow:var(--shadow)!important}
html body :is(.note-dialog-close,.support-detail-toggle,.support-pagination button,.leave-row-actions button,.payroll-download-actions button,.payroll-employee-pagination button,.team-payslip-downloads button,.chat-pdf-toolbar button,.chat-reply-panel button) {background:var(--surface-soft)!important;color:var(--brand)!important;border-color:var(--line)!important}
html body :is(.notes-scope-tabs button[aria-pressed=true],.settings-role,.support-reply-badge,.team-payslip-state.released,.payroll-state.closed,.catalog-category>summary span,.timesheet-extra>summary b) {background:var(--brand-soft)!important;color:var(--brand)!important}
html body :is(.team-payslip-state.in-progress,.payroll-state:not(.closed),.leave-status.declined,.calendar-leave) {background:var(--accent-soft)!important;color:var(--accent-ink)!important}
html body :is(.timesheet-state:not(.active),.team-payslip-state:not(.released):not(.in-progress)) {background:var(--surface-soft)!important;color:var(--muted)!important}
html body :is(.notes-preview-cell,.note-dialog-body,.note-dialog-content,.payroll-period,.payroll-summary,.team-payslip-table-wrap,.timesheet-period,.settings-access,.support-detail-content) :is(p,td,dd) {color:var(--ink)!important}
html body #chat-task-preview-body :is(p,dd) {color:var(--ink)!important}
html body #chat-task-preview-body a {color:var(--brand)!important}
html body :is(.note-dialog-meta,.chat-task-access-note,.chat-attachment-caption,.chat-file-card,.chat-task-preview-description) :is(span,small,p) {color:var(--muted)!important}
html body #invite-employee-result {background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}

html body .calendar-event.compact-event .calendar-event-content strong {min-width:0;width:100%}

html body #messages-section .chat-message-meta .chat-pin {width:auto!important;min-width:0;height:28px;padding:3px 7px!important;font-size:11px!important;line-height:1.3;border:0!important;border-radius:999px!important;box-shadow:none!important;background:transparent!important;color:var(--muted)!important}
html body #messages-section .chat-message-meta .chat-pin[aria-pressed=true] {color:var(--accent-ink)!important;background:var(--accent-soft)!important}
html body #messages-section .chat-message-meta .chat-pin:hover {color:var(--brand)!important;background:var(--brand-soft)!important}
html body aside :is(#messages-expand,#shared-message-toggle),html body aside :is(#messages-expand,#shared-message-toggle):is(:hover,:focus,:active) {background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important;color:var(--muted)!important}
html body aside :is(#messages-expand,#shared-message-toggle):hover {color:var(--brand)!important}
/* Plain utility icons: emerald at rest, orange for hover and active states. */
html body [data-ui-icon]:not([data-ui-icon=send]),
html body #messages-section .chat-compose [data-ui-icon]:not([data-ui-icon=send]),
html body #messages-section #chat-shared-toggle,
html body #messages-section .chat-message-meta [data-ui-icon] {background:transparent!important;border:0!important;box-shadow:none!important;color:var(--brand)!important;filter:none!important}
html body [data-ui-icon]:not([data-ui-icon=send]):is(:hover,:focus-visible,.selected,[aria-pressed=true]),
html body .view-toggle [data-ui-icon].selected,
html body #messages-section .chat-compose [data-ui-icon]:not([data-ui-icon=send]):is(:hover,:focus-visible,[aria-pressed=true]),
html body #messages-section #chat-shared-toggle:is(:hover,:focus-visible),
html body #messages-section .chat-message-meta [data-ui-icon]:is(:hover,:focus-visible,[data-pin-state=pinned]) {background:transparent!important;color:var(--accent-ink)!important;box-shadow:none!important}
html body :is(#cal-prev,#cal-next,#queue-add,#add-reminder,#timezone-columns-toggle,#close-master,#close-assign,.modal-top>button[aria-label=Close],.note-dialog-close,#chat-create-close,#chat-shared-close) {background:transparent!important;border:0!important;box-shadow:none!important;color:var(--brand)!important;filter:none!important;border-radius:50%!important}
html body :is(#cal-prev,#cal-next,#queue-add,#add-reminder,#timezone-columns-toggle,#close-master,#close-assign,.modal-top>button[aria-label=Close],.note-dialog-close,#chat-create-close,#chat-shared-close):is(:hover,:focus-visible) {color:var(--accent-ink)!important}
html body aside :is(#messages-expand,#shared-message-toggle):is(:hover,:focus-visible) {color:var(--accent-ink)!important}

/* Keep sidebar branding independent of external image loading and theme swaps. */
html body aside .brand .brand-wordmark {display:inline-block;color:var(--brand);font:700 34px/1.25 Arial,Helvetica,sans-serif;letter-spacing:-1.2px;white-space:nowrap}
html body aside .brand .brand-wordmark>span {color:var(--accent)}
html body aside .brand {min-height:58px;display:flex;align-items:center;justify-content:center}
html:not(.embedded-workspace) body.calendar-focus aside .brand {min-height:32px}
html:not(.embedded-workspace) body.calendar-focus aside .brand .brand-wordmark {display:none}

html body button[hidden] {display:none!important}
/* All tabular data shares the same theme foundation, including audit records. */
html body :is(.settings-audit-scroll,.chat-shared-results,[class$="-scroll"]:has(>table),[class$="-wrap"]:has(>table),[class$="-shell"]:has(>table)) {background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html body table {background:var(--surface)!important;color:var(--ink)!important}
html body table td {color:var(--ink)!important}
html body table tbody tr:hover {background:var(--surface-soft)!important}
html body table td:has(.person-identity) {min-width:180px}
html body table .person-identity [data-person-label] {overflow-wrap:normal;word-break:normal;white-space:nowrap}
html body .settings-audit-table {min-width:1100px}
html body .settings-audit-table td:nth-child(2) {width:210px;min-width:210px}
html body .settings-audit-table td:nth-child(3) {min-width:260px;max-width:360px}
html body .settings-audit-table td:nth-child(4) {min-width:145px}
html body :is(.settings-audit-detail summary,.settings-audit-detail a) {color:var(--brand)!important}
html body :is(.settings-audit-count,.chat-task-preview-meta,.chat-task-preview-meta dt,.team-notes-empty,.master-empty-group) {color:var(--muted)!important}
/* Remaining shared overlays and message tools use theme tokens as well. */
html body :is(.attachment-viewer-head,.attachment-viewer-body,.team-notes-empty,.master-empty-group,.chat-recording-bar,.expression-library .gif-grid button,.emoji-category-tabs button,.profile-photo-actions button) {background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html body #chat-task-preview-body dl div {background:var(--surface-soft)!important;border-color:var(--line)!important}
html body #chat-task-preview-body dt {color:var(--muted)!important}
html body :is(.chat-task-preview-meta span:last-child,.chat-recording-bar[data-state=ready],.emoji-category-tabs button.is-active) {background:var(--brand-soft)!important;color:var(--brand)!important}
html body .chat-recording-bar[data-state=paused] {background:var(--accent-soft)!important;color:var(--accent-ink)!important}
html body .chat-reaction {background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html body .chat-reaction.is-mine {background:var(--brand-soft)!important;color:var(--brand)!important;border-color:var(--brand)!important}
html body :is(.expression-pagination,.expression-credit,.gif-unavailable,.chat-room-members .person-identity,.recording-label) {color:var(--muted)!important}

/* Action labels are centered within equal padding; table utilities stay bare. */
html body :is(.primary,.secondary,.calendar-link,.modal-actions button,.modal-footer button,.settings-actions button,.support-pagination button,.monitor-pagination button,.payroll-employee-pagination button) {display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:1.3}
html body table button:not(.search-select-trigger):not(.search-select-option) {display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:1.3;padding:6px 10px!important;min-height:30px;vertical-align:middle}
html body .payroll-employee-table-wrap :is(.payroll-start-edit,.payroll-salary-edit,.payroll-profile-toggle) {display:flex!important;width:fit-content;min-width:76px;max-width:100%;padding:6px 10px!important;margin-top:5px;text-align:center;align-items:center;justify-content:center;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--brand)!important}
html body :is(.payroll-employee-table-wrap button:not([type=submit]),.notes-row-actions button,.leave-cover-toggle,.support-detail-toggle) {background:transparent!important;border:0!important;box-shadow:none!important;color:var(--brand)!important}
html body :is(.payroll-employee-table-wrap button:not([type=submit]),.notes-row-actions button,.leave-cover-toggle,.support-detail-toggle):is(:hover,:focus-visible) {background:transparent!important;color:var(--accent-ink)!important}

html body :is(.payroll-overline,.payroll-cycle,.payroll-cycle span,.payroll-cycle b,.payroll-employees-toggle,.payroll-employee-count,.payroll-rate,.payroll-no-shifts,.payroll-email-note) {color:var(--muted)!important}

.reaction-people-tooltip {position:fixed;z-index:1500;max-width:min(300px,calc(100vw - 16px));padding:9px 12px;border:1px solid var(--edge);border-radius:14px;background:var(--pane-strong);color:var(--ink);box-shadow:var(--shadow);font-size:12px;line-height:1.5;overflow-wrap:anywhere;pointer-events:none;backdrop-filter:blur(20px)}
.reaction-people-tooltip[hidden] {display:none}
.reaction-people-list {list-style:none;padding:0;margin:14px 0;max-height:50vh;overflow:auto}
.reaction-people-list li {padding:8px 0;color:var(--ink)}

html body .expression-library .gif-grid>.gif-tile {background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html body .expression-library .gif-grid button>span {background:var(--surface-soft)!important;color:var(--ink)!important;font-size:11px;line-height:1.4;padding:6px 7px}
html body .expression-library .gif-tile>a {background:var(--surface)!important;color:var(--brand)!important}
html body :is(.expression-status,.expression-pagination span,.expression-credit,.chat-general-people summary span) {color:var(--muted)!important}
html body .gif-source-tabs button {color:var(--ink)!important;border-color:var(--line)!important}
html body .gif-source-tabs button[aria-pressed=true] {background:var(--brand-soft)!important;color:var(--brand)!important}

/* All creation actions share the bare conversation-plus treatment. */
html body :is([data-ui-icon=plus],[data-add-status],#queue-add,#add-reminder,#add-team-task,#add-master,#add-subtask,#timezone-add,.catalog-add button,.timezone-menu>summary,.calendar-viewer-menu>summary,[data-toggle-own-reaction]) {display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important;color:var(--brand)!important;text-align:center;cursor:pointer}
html body :is([data-ui-icon=plus],[data-add-status],#queue-add,#add-reminder,#add-team-task,#add-master,#add-subtask,#timezone-add,.catalog-add button,.timezone-menu>summary,.calendar-viewer-menu>summary,[data-toggle-own-reaction]):is(:hover,:focus-visible,:active) {background:transparent!important;box-shadow:none!important;color:var(--accent-ink)!important}
html body :is([data-ui-icon=plus],[data-add-status],#queue-add,#add-reminder,#add-team-task,#add-master,#add-subtask,#timezone-add,.catalog-add button,.timezone-menu>summary,.calendar-viewer-menu>summary,[data-toggle-own-reaction]):focus-visible {outline:2px solid var(--accent)!important;outline-offset:2px}
html body :is([data-ui-icon=plus],#timezone-add):disabled {opacity:.4;cursor:not-allowed}

html body #board.list-mode {display:block;min-width:0}
.task-list-scroll {overflow:auto;border-radius:22px;background:var(--pane);padding:6px 12px}
html body .task-list-table {width:100%;min-width:760px;border-collapse:collapse;background:transparent!important;font-size:12px}
.task-list-table caption {text-align:left;padding:10px 12px;color:var(--muted);font-size:11px}
.task-list-table :is(th,td) {padding:11px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
.task-list-table th {font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.task-list-table td:first-child {width:36px;color:var(--muted)!important;font-variant-numeric:tabular-nums}
.task-list-table td:nth-child(2) {min-width:240px;max-width:420px}
.task-list-table small {display:block;margin-top:4px;color:var(--muted);font-size:10px}
html body .task-list-table .task-list-open {justify-content:flex-start;text-align:left;padding:0!important;min-height:24px;color:var(--ink);font-weight:600;background:transparent;border:0;box-shadow:none;white-space:normal}
html body .task-list-table .task-list-open:is(:hover,:focus-visible) {color:var(--accent-ink)}
.task-list-priority {color:var(--brand);font-size:11px}
.task-list-priority.urgent-important,.task-list-table .overdue {color:var(--accent-ink)}
.task-list-table tr:last-child td {border-bottom:0}
.task-list-empty {text-align:center!important;padding:30px!important;color:var(--muted)!important}

html body .task-list-table .task-list-open {background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important}
.task-list-scroll {max-height:70vh}

html body .payroll-benefits-editor {padding:12px 16px!important;border:0!important;box-shadow:none!important;border-radius:20px!important}
html body .payroll-benefits-editor>summary {color:var(--brand)!important;font-size:12px;cursor:pointer}
html body .payroll-benefits-editor p {font-size:11px;color:var(--muted)!important;margin:10px 0}
.payroll-benefits-table-wrap {max-width:680px;overflow:auto;margin:12px 0}
.payroll-benefits-table {width:100%;border-collapse:collapse;font-size:12px}
.payroll-benefits-table :is(th,td) {text-align:left;padding:8px 10px;border-bottom:1px solid var(--line)}
.payroll-benefits-table thead th {font-size:10px;color:var(--muted)}
.payroll-benefits-table td:first-child {width:32px;color:var(--muted)!important}
.payroll-benefits-table td:last-child {width:160px;font-variant-numeric:tabular-nums;text-align:right}
.payroll-benefits-table input {width:100%;max-width:150px;min-height:30px!important;padding:5px 10px!important;text-align:right}

#team-benefits {margin-top:18px;background:var(--pane)!important}
.team-benefits-controls {display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:14px 0}
.team-benefits-controls label {display:grid;gap:5px;font-size:11px;color:var(--muted)}
.team-benefits-controls :is(input,select) {max-width:260px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:6px 12px}
.team-benefits-manage {display:inline-block;color:var(--brand);font-size:12px;padding:8px 0}
.team-benefits-manage:hover {color:var(--accent-ink)}
#team-benefits-person-label[hidden] {display:none!important}

/* Light appearance: clear emerald actions and orange interaction feedback. */
html:not([data-appearance=dark]) {--brand:#047857; --brand-fill:#047857; --brand-on:#ffffff;--brand-bright:#10b981;--accent:#f97316;--accent-ink:#c2410c;--accent-soft:#fff0e3}
html:not([data-appearance=dark]) body :is(.secondary,.text-button,.sound-audition,.settings-signout,.team-benefits-manage,.payroll-benefits-editor>summary,.catalog-category>summary,.management-settings-panel>summary,.calendar-mode button,.monitor-range-presets button,.monitor-pagination button,.support-pagination button) {color:var(--brand)!important}
html:not([data-appearance=dark]) body :is(.secondary,.text-button,.sound-audition,.settings-signout,.team-benefits-manage,.payroll-benefits-editor>summary,.catalog-category>summary,.management-settings-panel>summary,.calendar-mode button,.monitor-range-presets button,.monitor-pagination button,.support-pagination button):is(:hover,:focus-visible) {color:var(--accent-ink)!important}
html:not([data-appearance=dark]) body [data-ui-icon]:not([data-ui-icon=send]):is(:hover,:focus-visible,:active),
html:not([data-appearance=dark]) body aside :is(#chat-new,#shared-new-message,#messages-expand,#shared-message-toggle):is(:hover,:focus-visible,:active) {color:#ea580c!important;background:transparent!important;box-shadow:none!important}
html:not([data-appearance=dark]) body aside :is(nav a,nav button[data-page],.sidebar-signout) {color:var(--brand)!important}
html:not([data-appearance=dark]) body aside :is(nav a,nav button[data-page],.sidebar-signout):is(:hover,:focus-visible) {color:var(--accent-ink)!important}
html:not([data-appearance=dark]) body aside :is(.shared-icon,nav button[data-page]>span:first-child,.role-nav a::before,.sidebar-signout-icon) {background-image:none!important;background-color:currentColor!important}
html:not([data-appearance=dark]):not(.embedded-workspace) body aside nav :is(button.active[data-page],a.active[data-shared-view],a.active[data-role-section]) {color:#fff!important}
html:not([data-appearance=dark]):not(.embedded-workspace) body aside nav :is(button.active[data-page],a.active[data-shared-view],a.active[data-role-section]):is(:hover,:focus-visible) {background:linear-gradient(145deg,#ea580c,#c2410c)!important;color:#fff!important}
html:not([data-appearance=dark]) body :is(button.primary,a.primary,.chat-send,#chat-send,.team-task-reassign button,.support-reply-form button):not([data-ui-icon=plus]):not([data-ui-icon=invite]):not([data-ui-icon=calendar]):is(:hover,:focus-visible) {background:linear-gradient(145deg,#ea580c,#c2410c)!important;color:#fff!important;border-color:#ea580c!important}
html:not([data-appearance=dark]) body :is(.chat-message a,.notes-reference-link,.monitor-detail summary,.settings-audit-detail summary,.settings-audit-detail a,.gif-tile>a):is(:hover,:focus-visible) {color:var(--accent-ink)!important}
html:not([data-appearance=dark]) body :is(button,a,summary):focus-visible {outline-color:var(--accent)!important}

/* Both appearances use emerald actions and orange interaction feedback. */
html[data-appearance=dark] {--action-rest:#6ee7b7;--action-hover:#fb923c}
html[data-appearance=dark] body :is(.secondary,.text-button,.sound-audition,.settings-signout,.team-benefits-manage,.payroll-benefits-editor>summary,.catalog-category>summary,.management-settings-panel>summary,.calendar-mode button,.monitor-range-presets button,.monitor-pagination button,.support-pagination button,.notes-row-actions button,.payroll-employee-table-wrap button:not([type=submit]),.chat-message a,.notes-reference-link,.monitor-detail summary,.settings-audit-detail summary,.settings-audit-detail a,.gif-tile>a) {color:var(--action-rest)!important}
html[data-appearance=dark] body :is(.secondary,.text-button,.sound-audition,.settings-signout,.team-benefits-manage,.payroll-benefits-editor>summary,.catalog-category>summary,.management-settings-panel>summary,.calendar-mode button,.monitor-range-presets button,.monitor-pagination button,.support-pagination button,.notes-row-actions button,.payroll-employee-table-wrap button:not([type=submit]),.chat-message a,.notes-reference-link,.monitor-detail summary,.settings-audit-detail summary,.settings-audit-detail a,.gif-tile>a):is(:hover,:focus-visible) {color:var(--action-hover)!important}
html[data-appearance=dark] body [data-ui-icon]:not([data-ui-icon=send]),
html[data-appearance=dark] body #messages-section [data-ui-icon]:not([data-ui-icon=send]),
html[data-appearance=dark] body aside nav :is(#chat-new,#shared-new-message,#messages-expand,#shared-message-toggle),
html[data-appearance=dark] body :is(#cal-prev,#cal-next,#queue-add,#add-reminder,#timezone-columns-toggle,#add-team-task,#add-master,#add-subtask,#timezone-add,[data-add-status],.timezone-menu>summary,.calendar-viewer-menu>summary,[data-toggle-own-reaction]) {color:var(--action-rest)!important;background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important}
html[data-appearance=dark] body [data-ui-icon]:not([data-ui-icon=send]):is(:hover,:focus-visible,:active,.selected,[aria-pressed=true]),
html[data-appearance=dark] body #messages-section [data-ui-icon]:not([data-ui-icon=send]):is(:hover,:focus-visible,:active,[aria-pressed=true]),
html[data-appearance=dark] body aside nav :is(#chat-new,#shared-new-message,#messages-expand,#shared-message-toggle):is(:hover,:focus-visible,:active),
html[data-appearance=dark] body :is(#cal-prev,#cal-next,#queue-add,#add-reminder,#timezone-columns-toggle,#add-team-task,#add-master,#add-subtask,#timezone-add,[data-add-status],.timezone-menu>summary,.calendar-viewer-menu>summary,[data-toggle-own-reaction]):is(:hover,:focus-visible,:active) {color:var(--action-hover)!important;background:transparent!important;box-shadow:none!important}
html[data-appearance=dark] body aside :is(nav a,nav button[data-page],.sidebar-signout) {color:var(--action-rest)!important}
html[data-appearance=dark] body aside :is(nav a,nav button[data-page],.sidebar-signout):is(:hover,:focus-visible) {color:var(--action-hover)!important}
html[data-appearance=dark] body aside :is(.shared-icon,nav button[data-page]>span:first-child,.role-nav a::before,.sidebar-signout-icon) {background-image:none!important;background-color:currentColor!important}
html[data-appearance=dark]:not(.embedded-workspace) body aside nav :is(button.active[data-page],a.active[data-shared-view],a.active[data-role-section]),
html[data-appearance=dark] body :is(button.primary,a.primary,.chat-send,#chat-send,.team-task-reassign button,.support-reply-form button):not([data-ui-icon=plus]):not([data-ui-icon=invite]):not([data-ui-icon=calendar]) {background:var(--brand-fill)!important;color:var(--brand-on)!important;border-color:#10b981!important}
html[data-appearance=dark]:not(.embedded-workspace) body aside nav :is(button.active[data-page],a.active[data-shared-view],a.active[data-role-section]):is(:hover,:focus-visible),
html[data-appearance=dark] body :is(button.primary,a.primary,.chat-send,#chat-send,.team-task-reassign button,.support-reply-form button):not([data-ui-icon=plus]):not([data-ui-icon=invite]):not([data-ui-icon=calendar]):is(:hover,:focus-visible) {background:linear-gradient(145deg,#ea580c,#c2410c)!important;color:#fff!important;border-color:#ea580c!important}
html[data-appearance=dark]:not(.embedded-workspace) body aside nav :is(button.active[data-page],a.active[data-shared-view])>span:first-child {background-color:#fff!important}
html[data-appearance=dark] body :is(button,a,summary):focus-visible {outline-color:var(--action-hover)!important}
html[data-appearance=dark] body #messages-section #chat-shared-toggle,html[data-appearance=dark] body #export {color:var(--action-rest)!important}
html[data-appearance=dark] body #messages-section #chat-shared-toggle:is(:hover,:focus-visible),html[data-appearance=dark] body #export:is(:hover,:focus-visible) {color:var(--action-hover)!important}
html[data-appearance=dark]:not(.embedded-workspace) body aside nav #messages-nav.active {background:var(--brand-fill)!important;color:var(--brand-on)!important}
html[data-appearance=dark]:not(.embedded-workspace) body aside nav #messages-nav.active:is(:hover,:focus-visible) {background:linear-gradient(145deg,#ea580c,#c2410c)!important}
html[data-appearance=dark]:not(.embedded-workspace) body aside nav #messages-nav.active>span:first-child {background-color:#fff!important}

/* Leave room for rounded edges inside the scrolling sidebar. */
html:not(.embedded-workspace) body aside nav {box-sizing:border-box;min-width:0;max-width:100%;padding-inline:6px!important}
html:not(.embedded-workspace) body aside nav :is(a,button) {box-sizing:border-box;max-width:100%;transform:none!important}
html:not(.embedded-workspace) body aside nav>:is(a,button[data-page]) {width:100%;min-width:0}
html body aside :is(.messages-nav-row,.shared-message-row) {box-sizing:border-box;max-width:100%;min-width:0}
html body aside :is(.conversation-search,.search-select,.search-select-trigger) {box-sizing:border-box;max-width:100%;min-width:0}
html body aside :is(button,a,input,select,summary):focus-visible {outline-offset:-3px!important}
html body aside .conversation-search:focus {outline-offset:-3px!important}
html body :is(.search-select-options,.message-nav-list,.shared-message-list) :is(button,a):focus-visible {outline-offset:-3px!important}

/* Filled calendar labels and status badges use white text on dark colored surfaces. */
html[data-appearance=dark] body :is(.all-day-reminder,.calendar-event,.calendar-leave,.support-label,.session-label,.monitor-attention,.leave-status,.leave-chip,.monitor-status,.timesheet-state.active,.team-payslip-state.released,.team-payslip-state.in-progress,.payroll-state,.settings-role,.support-reply-badge,.chat-task-preview-meta span:last-child) {color:#fff!important}
html[data-appearance=dark] body :is(.all-day-reminder,.calendar-event,.calendar-leave,.support-label,.session-label,.monitor-attention,.leave-status,.leave-chip,.monitor-status,.timesheet-state.active,.team-payslip-state.released,.team-payslip-state.in-progress,.payroll-state) :is(strong,small,span) {color:inherit!important}
html[data-appearance=dark] body :is(.queue-hint,.history-note,.chat-recording-bar[data-state=paused]) {color:#fff!important}
html[data-appearance=dark] body .queue-hint>span {color:#fff!important}
html[data-appearance=dark] body .calendar-event .calendar-event-content,html[data-appearance=dark] body .calendar-event .calendar-event-content :is(strong,span,small) {color:#fff!important}

html:not([data-appearance=dark]) body :is(.all-day-reminder,.calendar-event,.calendar-leave,.support-label,.session-label,.monitor-attention,.leave-status,.leave-chip,.monitor-status,.timesheet-state.active,.team-payslip-state.released,.team-payslip-state.in-progress,.payroll-state,.settings-role,.support-reply-badge) {color:#111!important}
html:not([data-appearance=dark]) body :is(.all-day-reminder,.calendar-event-content,.calendar-leave) :is(strong,small,span),html:not([data-appearance=dark]) body .calendar-event-content {color:#111!important}
#team-benefits[hidden] {display:none!important}

/* Center the appearance chevron with balanced space inside the select. */
html body .appearance-control select {appearance:none;-webkit-appearance:none;padding:6px 32px 6px 12px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23111b16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-size:12px 12px!important;background-position:right 12px center!important}
html[data-appearance=dark] body .appearance-control select {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23f1f7f3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important}
html:not(.embedded-workspace) body.calendar-focus aside .appearance-control select {padding:5px 22px 5px 6px!important;background-position:right 6px center!important;background-size:10px 10px!important}

html body #calendar-view {width:auto;min-width:76px;min-height:36px;padding:8px 12px!important;font-size:12px!important;font-weight:600;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--brand)!important}
html body #calendar-view:is(.selected,:hover,:focus-visible) {color:var(--accent-ink)!important}
html body :is(.payroll-download-actions,.team-payslip-downloads) button {opacity:1!important;color:var(--brand)!important;font-weight:700}
html body :is(.payroll-download-actions,.team-payslip-downloads) button:disabled {opacity:1!important;color:var(--ink)!important;background:var(--surface-soft)!important;border-color:var(--line)!important;box-shadow:none!important;cursor:not-allowed;filter:none!important}
html body :is(.payroll-download-actions,.team-payslip-downloads) button:enabled:is(:hover,:focus-visible) {color:var(--accent-ink)!important}

/* Compact payroll dashboard above the searchable employee database. */
html body #payroll-root .payroll-summary {padding:14px 18px!important;gap:20px;border-radius:20px!important}
html body #payroll-root .payroll-summary h3 {font-size:24px;margin:6px 0}
html body #payroll-root .payroll-summary h3 span {font-size:12px}
html body #payroll-root .payroll-cycle {font-size:11px;max-width:420px}
html body #payroll-root .payroll-cycle small {font-size:10px;line-height:1.4}
html body #payroll-root .payroll-periods {gap:12px;margin-top:12px}
html body #payroll-root .payroll-period {padding:14px 18px!important;border-radius:20px!important}
html body #payroll-root .payroll-period h3 {font-size:14px}
html body #payroll-root .payroll-period-metrics {margin:10px 0;gap:12px}
html body #payroll-root .payroll-period-metrics>div {padding:0!important;background:transparent!important}
html body #payroll-root .payroll-period-metrics strong {font-size:18px}
html body #payroll-root .payroll-release-row {min-height:0;margin:8px 0}
html body #payroll-root .payroll-details {margin-top:10px;padding-top:8px}
html body #payroll-root .payroll-downloads {padding:12px 18px!important;margin-top:12px;border-radius:20px!important}
html body #payroll-root .payroll-downloads h3 {font-size:14px;margin:3px 0}
html body #payroll-root .payroll-email-note {font-size:10px;margin:8px 0 16px}
html body #payroll-employees {margin-top:20px}
.employee-record-heading {display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.employee-record-heading span {color:var(--muted);font-size:11px}
.employee-record-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.employee-record-grid.addresses {grid-template-columns:repeat(2,minmax(0,1fr));margin:14px 0}
.employee-profile-detail form {max-width:960px;white-space:normal}
.employee-profile-detail label {display:grid;gap:6px;font-size:11px;color:var(--ink)}
.employee-profile-detail :is(input,select,textarea) {box-sizing:border-box;width:100%;min-width:0;padding:8px 12px;font:inherit;border:1px solid var(--line);border-radius:14px;color:var(--ink);background:var(--surface)}
.employee-profile-detail fieldset {padding:12px 0;border:0;border-top:1px solid var(--line);margin:16px 0 0}
.employee-profile-detail legend {font-weight:600;padding:0 8px 0 0}
.employee-passport,.employee-record-actions {display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:14px}
.employee-passport small {color:var(--muted)}
.employee-passport a {color:var(--brand)}
.employee-record-actions [role=status] {font-size:12px;color:var(--ink)}
@media(max-width:700px){.employee-record-grid,.employee-record-grid.addresses{grid-template-columns:1fr}}

html body #payroll-quick-edit {position:fixed;inset:auto;margin:0;width:min(360px,calc(100vw - 24px));max-height:calc(100vh - 24px);padding:16px!important;border-radius:22px!important;box-sizing:border-box;overflow:auto}
#payroll-quick-edit::backdrop {background:rgba(0,0,0,.08)}
html body #payroll-quick-edit header {display:flex;align-items:center;justify-content:space-between;height:auto;padding:0;margin:0 0 14px;border:0;background:transparent}
#payroll-quick-edit h3 {font-size:14px;margin:0}
#payroll-quick-edit small {font-size:11px;color:var(--muted)}
#payroll-quick-edit label {display:grid;gap:6px;font-size:11px}
#payroll-quick-edit input {width:100%;min-width:0;box-sizing:border-box;padding:8px 10px;font:inherit;border:1px solid var(--line);border-radius:12px}
.payroll-quick-fields {display:grid;grid-template-columns:1fr 1.25fr;gap:12px}
#payroll-quick-edit .payroll-quick-hint,#payroll-quick-edit [data-quick-status] {font-size:11px;margin:8px 0;color:var(--muted)}
#payroll-quick-edit footer {display:flex;justify-content:flex-end;gap:12px;margin-top:12px}
#payroll-quick-edit [data-quick-close],#payroll-quick-edit [data-quick-auto] {background:transparent!important;border:0!important;box-shadow:none!important;color:var(--brand)!important;padding:4px}
#payroll-quick-edit [data-quick-close] {font-size:24px;line-height:1}
#payroll-quick-edit [data-quick-auto] {margin-right:auto;font-size:11px}
html body #payroll-quick-edit::backdrop {backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(0,0,0,.06)!important}

/* Compact, aligned payroll selectors and inline edit actions. */
html body .payroll-selector{align-items:flex-end;gap:12px}
html body .payroll-selector label{gap:6px;margin:0}
html body .payroll-selector :is(input,select){box-sizing:border-box;height:40px!important;min-height:40px!important;max-height:40px;padding:8px 12px!important;font-size:14px!important;line-height:20px!important;margin:0}
html body .payroll-selector #payroll-month{width:180px;min-width:0;max-width:100%}
html body .payroll-selector #payroll-person{max-width:240px;padding-right:32px!important}
html body .payroll-inline-value{display:inline-flex;align-items:center;gap:6px;max-width:100%}
html body .payroll-employee-table-wrap .payroll-inline-value :is(.payroll-start-edit,.payroll-salary-edit){display:inline-flex!important;flex:0 0 28px;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:4px!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--brand)!important}
html body .payroll-inline-value [data-ui-icon]::before{width:16px;height:16px}
html body .payroll-employee-table-wrap .payroll-inline-value :is(.payroll-start-edit,.payroll-salary-edit):is(:hover,:focus-visible){color:var(--accent)!important}

html body .payroll-selector .search-select-trigger{box-sizing:border-box;height:40px!important;min-height:40px!important;padding:8px 12px!important;font-size:14px!important;line-height:20px!important;margin:0}

html body .task-created-cell{min-width:110px;white-space:nowrap}
html body #work-clock-toggle{color:var(--brand)!important}
html body #work-clock-toggle:is(:hover,:focus-visible,:active){color:var(--accent-ink)!important;border-color:var(--accent)!important;background:var(--accent-soft)!important}

/* Settings uses a compact internal navigation rail, one section at a time. */
html body #settings-root.settings-workspace{display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px;align-items:start}
html body .settings-workspace .settings-layout{display:block!important;min-width:0}
html body .settings-workspace .settings-card{width:100%;max-width:none;box-sizing:border-box;margin:0;padding:22px!important}
html body .settings-workspace [hidden]{display:none!important}
html body .settings-section-nav{display:flex;flex-direction:column;gap:5px;position:sticky;top:96px;padding:4px;min-width:0}
html body .settings-section-nav button{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:40px;padding:10px 12px!important;text-align:left;font-size:12px;line-height:1.35;white-space:normal;border:0!important;box-shadow:none!important;background:transparent!important;color:var(--brand)!important;border-radius:14px!important}
html body .settings-section-nav button[aria-current=page]{background:var(--brand-soft)!important;font-weight:700}
html body .settings-section-nav button:is(:hover,:focus-visible){color:var(--accent-ink)!important;background:var(--accent-soft)!important}
html body .settings-workspace #settings-profile{max-width:820px}
html body .settings-workspace .settings-card-head{margin-bottom:16px}
html body .settings-workspace .settings-subhead{margin-top:18px;padding-top:14px}
html body .settings-workspace .settings-audit-scroll{width:100%;max-height:60vh}
html body .settings-workspace .settings-access-scroll{max-height:65vh}
html body .settings-workspace #notification-sound-settings .notification-settings{margin:0;border:0;padding:0}
@media(max-width:850px){html body #settings-root.settings-workspace{grid-template-columns:minmax(0,1fr);gap:12px}html body .settings-section-nav{position:static;flex-direction:row;overflow-x:auto}html body .settings-section-nav button{width:auto;flex:0 0 auto;white-space:nowrap}html body .settings-workspace .settings-card{padding:16px!important}}

html body .catalog-search-tools{display:flex;align-items:flex-end;gap:10px;margin-bottom:14px}
html body .catalog-search-tools .catalog-search-label{flex:1;min-width:0;margin:0}
html body .catalog-search-tools [data-catalog-add]{flex:0 0 36px;margin:0 0 2px!important}
html body .catalog-category form[hidden]{display:none!important}
html body .catalog-category form{margin:0 0 16px!important;align-items:end}

html body .settings-workspace .catalog-grid{grid-template-columns:minmax(0,1fr);align-items:start;gap:12px}

.message-audit-trail{padding-left:20px;margin:12px 0}.message-audit-trail li{padding:8px 0;border-bottom:1px solid var(--line)}.message-audit-trail p{white-space:pre-wrap;overflow-wrap:anywhere}

html body :is(#messages-unread,#shared-unread-count){display:none!important}
html body .conversation-title-line{display:flex;align-items:center;gap:7px;min-width:0}
html body .conversation-title-line :is(strong,.message-nav-name){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body aside .conversation-title-line :is(.room-unread,.message-room-unread){flex:0 0 auto;display:inline!important;min-width:0;width:auto;height:auto;padding:0!important;margin:0!important;background:transparent!important;color:var(--accent-ink)!important;border:0!important;box-shadow:none!important;font-size:12px;font-weight:800;line-height:1.2}

/* Use a structural chevron so background resets cannot erase it. */
html body .appearance-control .appearance-select-wrap{display:block!important;position:relative;flex:0 0 auto;width:108px;max-width:100%;color:var(--ink)}
html body .appearance-control .appearance-select-wrap::after{content:"";position:absolute;pointer-events:none;right:13px;top:50%;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-70%) rotate(45deg)}
html body .appearance-control .appearance-select-wrap select,html:not(.embedded-workspace) body.calendar-focus aside .appearance-control .appearance-select-wrap select{box-sizing:border-box;display:block;width:100%!important;min-width:0!important;height:36px;min-height:36px;padding:6px 25px!important;font-size:12px!important;line-height:20px;text-align:center!important;text-align-last:center!important;appearance:none;-webkit-appearance:none;background-image:none!important;margin:0!important}
html:not(.embedded-workspace) body.calendar-focus aside .appearance-control .appearance-select-wrap{width:100%}

html body :is(#work-clock-toggle,#work-clock-break-toggle,#shell-clock-toggle,#shell-break-toggle){color:var(--brand)!important}
html body :is(#work-clock-toggle,#work-clock-break-toggle,#shell-clock-toggle,#shell-break-toggle):not(:disabled):is(:hover,:focus-visible,:active){color:var(--accent-ink)!important;border-color:var(--accent)!important;background:var(--accent-soft)!important}

/* Only the collapsed rail needs an aggregate unread alert. */
html:not(.embedded-workspace) body.calendar-focus aside nav :is(#messages-nav,[data-shared-view=messages]){position:relative;overflow:visible!important}
html:not(.embedded-workspace) body.calendar-focus aside nav :is(#messages-nav,[data-shared-view=messages]).has-unread-messages{color:var(--accent)!important}
html:not(.embedded-workspace) body.calendar-focus aside nav #messages-nav.has-unread-messages>span:first-child,
html:not(.embedded-workspace) body.calendar-focus aside nav [data-shared-view=messages].has-unread-messages>.shared-icon{background-image:none!important;background-color:var(--accent)!important;color:var(--accent)!important}
html:not(.embedded-workspace) body.calendar-focus aside nav :is(#messages-unread,#shared-unread-count):not([hidden]){display:block!important;position:absolute!important;top:2px!important;right:-4px!important;bottom:auto!important;min-width:16px!important;width:auto!important;height:auto!important;padding:0 2px!important;margin:0!important;font-size:11px!important;line-height:16px!important;font-weight:800!important;font-style:normal!important;color:var(--accent)!important;background:var(--surface)!important;border:0!important;border-radius:8px!important;box-shadow:none!important}

html body .appearance-control .appearance-select-wrap::after{display:none!important}
html body .appearance-control .appearance-select-wrap select,html:not(.embedded-workspace) body.calendar-focus aside .appearance-control .appearance-select-wrap select{padding:6px 4px!important;text-align:center!important;text-align-last:center!important}

/* Logo mint is the shared accent; light text keeps sufficient contrast. */
html body input:is([type=checkbox],[type=radio],[type=range]){accent-color:var(--brand)}
html body :is(button.primary,a.primary,.primary[type=submit],.calendar-link,.queue-add,.lead-reassign-form button,.team-task-reassign button,.support-reply-form button,.lead-cover-task button,.chat-send,#chat-send,.login-google:hover):not([data-ui-icon=plus]):not([data-ui-icon=invite]):not([data-ui-icon=calendar]):not(.queue-add){background:var(--brand-fill)!important;color:var(--brand-on)!important;border-color:var(--brand-fill)!important}
html body aside :is(.shared-icon,nav button[data-page]>span:first-child,.role-nav a::before,.sidebar-signout-icon){background-image:none!important;background-color:var(--brand)!important}
html body :is(.progress-track span,.status-dot){background:var(--brand)!important}
html body :is(.payroll-details summary,.payroll-release b,.payroll-release-status.is-released,.leave-cover-toggle,.notes-reference-link,.text-button,.calendar-viewer-menu>summary b){color:var(--brand)!important}
html body :is(.payroll-release-row button,.payroll-start-row button[type=submit],.payroll-salary-actions button[type=submit],.leave-cover-task button){background:var(--brand-fill)!important;border-color:var(--brand-fill)!important;color:var(--brand-on)!important}

/* Selected mint navigation uses emerald icons; orange feedback uses white. */
html[data-appearance=dark]:not(.embedded-workspace) body aside nav :is(button.active[data-page],#messages-nav.active,a.active[data-shared-view])>span:first-child,
html[data-appearance=dark]:not(.embedded-workspace) body aside nav a.active[data-role-section]::before{background-image:none!important;background-color:#047857!important;color:#047857!important}
html[data-appearance=dark]:not(.embedded-workspace) body aside nav :is(button.active[data-page],#messages-nav.active,a.active[data-shared-view]):is(:hover,:focus-visible)>span:first-child,
html[data-appearance=dark]:not(.embedded-workspace) body aside nav a.active[data-role-section]:is(:hover,:focus-visible)::before{background-image:none!important;background-color:#fff!important;color:#fff!important}

/* One conversation header keeps identity and search together. */
html body:has(#messages-section:not([hidden]) .chat-header) .page-heading{display:none!important}
html body #messages-section .chat-main{position:relative}
html body #messages-section .chat-header{display:flex;align-items:center;gap:16px;flex:none;min-height:60px;padding:8px 14px;border-bottom:1px solid var(--line);background:var(--surface-soft);box-sizing:border-box}
html body #messages-section .chat-header .chat-room-head{flex:0 1 30%;min-width:130px;min-height:0;padding:0;border:0!important;background:transparent!important;overflow:hidden}
html body #messages-section .chat-header .chat-room-head:empty{display:block}
html body #messages-section .chat-header .chat-room-head:empty::before{content:'Messages';font-weight:700;color:var(--ink)}
html body #messages-section .chat-header .chat-room-head>div,html body #messages-section .chat-direct-heading>div{min-width:0}
html body #messages-section .chat-header .chat-room-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
html body #messages-section .chat-header .chat-inbox-tools{flex:1;min-width:0;gap:8px;margin:0;flex-wrap:nowrap}
html body #messages-section .chat-header .chat-search-field{min-width:0;gap:6px;padding:0;border:0;box-shadow:none!important;background:transparent!important;backdrop-filter:none}
html body #messages-section .chat-header #chat-inbox-search{height:36px;min-height:36px;padding:7px 11px!important;font-size:12px}
html body #messages-section .chat-header .chat-search-field>.search-select{flex:0 0 150px;min-width:0;width:150px}
html body #messages-section .chat-header .chat-search-field select{max-width:150px;min-width:0;height:36px;font-size:12px}
html body #messages-section .chat-header .search-select-trigger{height:36px;min-height:36px;padding:7px 10px;font-size:11px}
html body #messages-section .chat-header #chat-shared-toggle{flex:0 0 32px;width:32px;height:32px;min-width:32px;min-height:32px}
html body #messages-section .chat-search-results{position:absolute;top:62px;right:12px;left:12px;z-index:5;max-height:min(310px,50vh);margin:0;box-shadow:var(--shadow)!important}
@media(max-width:650px){html body #messages-section .chat-header{flex-wrap:wrap;gap:8px;padding:10px 12px}html body #messages-section .chat-header .chat-room-head{flex-basis:100%}html body #messages-section .chat-header .chat-inbox-tools{flex-basis:100%}html body #messages-section .chat-header .chat-search-field>.search-select{flex-basis:130px;width:130px}html body #messages-section .chat-search-results{top:100px}}

/* Creation icons always use the bare Add conversation treatment. */
html[data-appearance] body :is([data-ui-icon=plus],[data-catalog-add],[data-add-status],#queue-add,#add-reminder,#add-team-task,#add-master,#add-subtask,#timezone-add){background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;filter:none!important;color:var(--brand)!important}
html[data-appearance] body :is([data-ui-icon=plus],[data-catalog-add],[data-add-status],#queue-add,#add-reminder,#add-team-task,#add-master,#add-subtask,#timezone-add):is(:hover,:focus-visible,:active){background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;color:var(--accent-ink)!important}

/* Leave requests: readable emerald action in either appearance, orange interaction. */
html body #leave-section-toggle {background:var(--surface)!important;color:#047857!important;border:1px solid var(--line)!important;box-shadow:var(--control-shadow)!important}
html[data-appearance=dark] body #leave-section-toggle {background:#e0f4eb!important;border-color:#a7d8c0!important}
html body #leave-section-toggle:is(:hover,:focus-visible,:active) {background:var(--accent-soft)!important;color:var(--accent-ink)!important;border-color:var(--accent)!important}
