/* ПОСТ / Blue CRM. Approved reference: compact enterprise panels and pale-blue navigation. */
:root{--ink:#213b50;--muted:#5c6e7d;--line:#dbe4ed;--canvas:#f3f7fb;--paper:#fff;--navy:#184762;--blue:#2878b6;--accent:#2878b6;--danger:#b33e4c;--good:#27755d;--warn:#8b601c;--control-line:#7c91a5;--sidebar:48px;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;background:#eef3f9;color:var(--ink)}
body{background:#eef3f9;font-size:14px}*{scrollbar-color:#b3c7da transparent}a{color:inherit}::selection{background:#277ab8;color:#fff}.app-shell{background:#f6f8fb}.app-sidebar{width:var(--sidebar);padding:0;border:0;background:#194763}.app-rail{position:absolute;inset:0 auto 0 0;overflow-y:auto;overflow-x:hidden;width:48px;display:flex;flex-direction:column;align-items:center;gap:7px;background:#194763;color:#d8eaf6}.app-rail .brand-mark{width:20px;height:20px;border-width:3px}.rail-brand{width:48px;min-height:52px;background:#fff;color:var(--accent);display:flex;align-items:center;justify-content:center;margin-bottom:5px}.rail-tool{width:44px;min-height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:transparent;color:#e1eff9;border:0;border-radius:3px;text-decoration:none}.rail-tool .icon{width:19px;height:19px}.rail-tool:hover{background:#285c7b}.rail-tool[aria-current=page]{background:#2b6488;color:#fff}.rail-brand{flex-shrink:0}.rail-settings{margin-top:auto;margin-bottom:12px}.app-sidebar>.brand{font-size:21px;letter-spacing:.01em;min-height:36px;gap:9px}.app-sidebar>.brand .brand-mark{display:none}.brand-period{background:var(--accent);width:4px;height:4px;margin-left:-4px}.sidebar-company{font-size:11px;margin:9px 0 20px;line-height:1.6;color:#59748b}.workspace-nav a{min-height:36px;padding:8px;font-size:12px;border-radius:3px;margin-bottom:2px;gap:8px}.workspace-nav .icon{width:16px;height:16px;color:#4c83aa}.workspace-nav a:hover{background:#e1effb}.workspace-nav a[aria-current=page]{background:#d3eafb;color:#155a8a}.workspace-nav a[aria-current=page] .icon{color:#1671b1}.nav-group{margin-bottom:15px}.nav-group-title{font-size:10px;letter-spacing:.03em;color:#6b7f90;margin:0 8px 8px}.nav-secondary{margin-top:8px}.nav-secondary>summary{font-size:11px;min-height:36px;padding:9px 8px;color:#60798c}.nav-secondary>a{padding-left:10px}.sidebar-account{margin-top:16px;padding-top:14px;font-size:11px;border-color:#d4e4f1}.user-initial{background:#d6e8fa;color:#236b9e;width:29px;height:29px}.sidebar-account small{font-size:10px}.workspace-header{min-height:56px;padding:6px 24px;background:#fff;border-color:var(--line)}.header-scope{font-size:12px;color:#4b667c}.header-tools{gap:18px}.logout-button{font-size:12px;color:#466880}.app-page{background:#f6f8fb}.workspace{padding:24px;min-height:calc(100dvh - 112px);max-width:1600px}.workspace-footer{margin:0 24px;padding:18px 0;border:0;font-size:11px;color:#667d91}.workspace h1{font-size:22px;font-weight:600;letter-spacing:-.015em;line-height:1.3}.workspace-title{margin-bottom:20px;gap:14px}.workspace-title p{font-size:12px;margin-top:7px;line-height:1.6}.workspace h2{letter-spacing:0}.section-heading{margin:20px 0 12px}.section-heading h2{font-size:16px}.count{font-size:11px;min-width:21px;min-height:21px;background:#f3f8fd;border-color:#d7e4ef;color:#45667f}.button{font-size:13px;min-height:44px;border-radius:4px;padding:10px 16px;gap:8px}.button-primary,.link-button{background:#2878b6;border-color:#2878b6;color:#fff}.button-primary:hover,.link-button:hover{background:#20679e;border-color:#20679e}.button-outline{background:#fff;border-color:#b8cbdc;color:#2f638b}.button-outline:hover{border-color:#6e9bbb;background:#f1f7fc}.link-button{border-radius:4px;font-size:12px}.link-button.danger-link{background:#fff;color:var(--danger);border-color:#d9b4bb}.row-action,.back-link{color:#2c719f;font-size:12px;text-decoration:none}.row-action:hover,.back-link:hover{text-decoration:underline}.icon-button{color:#397395}.pager .pager-arrow{border-color:#b1c5d5;color:#397395;background:#fff}.filter-disclosure>summary.filter-toggle,.schedule-filter-disclosure>summary.filter-toggle{border-color:#9db5c8;color:#34769f;background:#fff;border-radius:4px}.filter-disclosure[open]>summary.filter-toggle,.schedule-filter-disclosure[open]>summary.filter-toggle{border-color:#5f91b7;background:#eaf4fc}.field label{font-size:13px;color:#2a465c}.field input,.field select,.field textarea{border-radius:4px;border-color:var(--control-line);font-size:16px}.field-help{font-size:12px}.field-checkbox{background:#f3f8fc;border-color:var(--line)}.record-layout{gap:24px}.record-card{border:1px solid var(--line);border-radius:4px;padding:22px;background:#fff}.record-card h2{font-size:17px}.record-aside{padding:20px;border:1px solid var(--line);border-radius:4px;background:#fff}.record-group+.record-group{padding-top:22px;margin-top:2px}.record-group legend{font-size:15px}.record-form{gap:20px}.scope-help,.notice{background:#f0f7fd;border-color:#c8dfef;border-radius:4px}.table-wrap{border:1px solid var(--line);border-radius:4px}.table-wrap table{font-size:13px}.table-wrap thead th{background:#f2f7fc;color:#557086;padding:12px;font-size:11px}.table-wrap tbody td,.table-wrap tbody th{padding:14px 12px}.people-list,.object-work-list,.today-work-list,.work-queue{background:#fff;border:1px solid var(--line);border-radius:4px}.people-list>li,.object-work-list>li,.today-work-list>li,.work-queue>li{padding:13px 16px}.people-list>li:last-child,.object-work-list>li:last-child,.today-work-list>li:last-child,.work-queue>li:last-child{border-bottom:0}.person-link strong,.person-name,.ticket-primary{font-size:14px;color:#244862}.ticket-list,.account-list{background:#fff;border:1px solid var(--line);border-radius:4px}.ticket-list>li,.account-list>li{padding:16px}.ticket-list>li:last-child,.account-list>li:last-child{border-bottom:0}.profile-grid{background:#fff;padding:20px;border:1px solid var(--line);border-radius:4px}.schedule-editor>header,.mobile-menu>header{background:#f1f7fc}.schedule-editor{color:var(--ink);border-left-color:#c2d5e5}.roster-table thead th,.roster-table .roster-person-head,.roster-table thead .roster-total{background:#edf4fa}.roster-table .roster-today{background:#f1f7ff}.roster-table thead .roster-today{background:#dcecff;color:#185e9b}.roster-slot.roster-empty{color:#5d84a3;border-color:#c9d8e6}.roster-views a[aria-current]{border-bottom-color:var(--accent);color:#246b9f}.kanban-column{background:#eff5fa;border-color:#d4e1ec}.kanban-column-header{background:#e8f1f9}.kanban-card{border-color:#d1dfe9;border-radius:4px}.kanban-card:hover{border-color:#7ca4c3}.kanban-status-nav button[aria-pressed=true]{background:#2878b6;border-color:#2878b6}.view-tabs a[aria-current],.queue-tabs a[aria-current]{border-bottom-color:#2878b6;color:#216b9f}.status-strip{background:#fff;border:1px solid var(--line);border-radius:4px;padding:16px}.auth-layout{background:#edf4fc}.identity-panel{background:#e7f1fb;color:#213e55;border-color:#d0dfec}.identity-panel .brand{color:#245a80}.identity-content h1{font-size:35px;letter-spacing:-.02em}.identity-intro,.identity-panel .access-list small{color:#526f87}.identity-panel .access-list>div{border-color:#c6dbed}.auth-panel{background:#fff}.auth-form .button-primary{background:#2878b6;border-color:#2878b6}
/* The supplied reference fixes the home composition: three indicators and four analytical panels. */
.crm-dashboard-heading{align-items:center}.crm-heading-tools{display:flex;align-items:flex-start;gap:8px;position:relative}.crm-heading-tools .filter-disclosure{margin:0}.crm-heading-tools .filter-fields{position:absolute;right:0;top:50px;z-index:30;min-width:min(580px,calc(100vw - 48px));background:#fff;border:1px solid #a6bed1;border-radius:4px;padding:18px;box-shadow:0 8px 20px rgba(29,64,91,.12);margin:0}.crm-refresh{border:1px solid #b1c5d5;border-radius:4px;background:#fff}.crm-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}.crm-kpi{display:flex;flex-direction:column;align-items:flex-start;padding:18px 20px;gap:5px;border:1px solid var(--line);background:#fff;border-radius:4px;text-decoration:none;min-width:0}.crm-kpi:hover{border-color:#92b5d2}.crm-kpi>strong{font-size:28px;line-height:1.15;font-weight:500;letter-spacing:-.02em;color:#253c4e}.crm-kpi>span{font-size:12px;color:#405a6f}.crm-kpi>small{font-size:11px;color:#66798a;margin-top:3px;line-height:1.5}.crm-kpi-alert>strong{color:#be3f4b}.crm-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:16px;align-items:stretch}.crm-panel{min-width:0;background:#fff;border:1px solid var(--line);border-radius:4px;padding:17px 18px}.crm-panel-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px}.crm-panel-header h2{font-size:14px;font-weight:600;line-height:1.4}.crm-panel-header>span,.crm-panel-header>a{font-size:11px;color:#4f748f;line-height:1.4;text-decoration:none}.crm-panel-header>a:hover{text-decoration:underline}.crm-chart-key{display:flex;flex-wrap:wrap;gap:7px 18px;font-size:11px;color:#566e81;margin-bottom:5px}.crm-chart-key>span{display:flex;align-items:center;gap:5px}.crm-chart-key i{display:block;width:8px;height:8px;border-radius:1px}.crm-chart-key>span:last-child{margin-left:auto}.crm-line-scroll{max-width:100%;overflow-x:auto}.crm-line-chart,.crm-bar-chart{width:100%;height:auto;display:block;max-height:220px;overflow:visible}.crm-line-chart text,.crm-bar-chart text{font-family:Arial,sans-serif;font-size:11px;fill:#587086}.crm-chart-grid line{stroke:#e5ecf3;stroke-width:1}.crm-chart-data{margin-top:4px;font-size:11px;color:#527995}.crm-chart-data>summary{cursor:pointer;min-height:28px;padding-block:7px}.crm-chart-data table{font-size:12px;margin-top:8px}.crm-chart-data th,.crm-chart-data td{padding:7px 9px}.crm-panel-subtitle{font-size:12px;color:#61788b;margin-bottom:3px}.crm-panel-subtitle strong{font-weight:600;color:#2a5d84}.crm-coverage-total{display:grid;grid-template-columns:1fr auto;gap:8px 18px;font-size:12px;margin-bottom:20px}.crm-coverage-total strong{margin-left:8px}.crm-progress{height:5px;background:#e5eef9;overflow:hidden;border-radius:1px}.crm-progress i{display:block;height:100%;background:#689bf0;max-width:100%}.crm-coverage-total .crm-progress{grid-column:1/-1;height:6px}.crm-object-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;padding:0;margin:0;gap:17px 24px}.crm-object-bars>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 9px;min-width:0;font-size:11px;align-items:center}.crm-object-bars a{text-decoration:none;line-height:1.5;color:#3e5f79;overflow-wrap:anywhere}.crm-object-bars a:hover{text-decoration:underline}.crm-object-bars>li>span{color:#4d708d;white-space:nowrap}.crm-object-bars .crm-progress{grid-column:1/-1}.crm-panel-note{font-size:11px;color:#62798b;line-height:1.6;margin-top:20px}.crm-state-content{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap}.crm-donut{width:166px;height:166px;flex-shrink:0}.crm-donut text{font-family:Arial,sans-serif;font-size:10px;fill:#61788b}.crm-donut .crm-donut-total{font-size:24px;font-weight:500;fill:#28465d}.crm-state-key{padding:0;margin:0;list-style:none;flex:1;min-width:132px}.crm-state-key>li{display:flex;align-items:center;gap:8px;min-height:29px;font-size:11px;color:#4b667c}.crm-state-key i{display:block;width:8px;height:8px;border-radius:1px;flex-shrink:0}.crm-state-key span{flex:1}.crm-state-key strong{font-weight:500;color:#294b66}.crm-operations{margin-top:18px}.crm-operations>section,.crm-chief-work>section{padding:18px;border:1px solid var(--line);border-radius:4px;background:#fff;margin-bottom:16px}.crm-operations .section-heading,.crm-chief-work .section-heading{margin:0 0 12px}.crm-operations .section-heading h2,.crm-chief-work .section-heading h2{font-size:15px}.crm-operations .work-queue,.crm-chief-work .work-queue,.crm-chief-work .people-list,.crm-chief-work .today-work-list{border:0;border-top:1px solid var(--line);border-radius:0}.crm-operations .work-queue>li,.crm-chief-work .work-queue>li,.crm-chief-work .people-list>li,.crm-chief-work .today-work-list>li{padding-inline:0}.crm-chief-work{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:16px;margin-bottom:18px}.crm-chief-work .people-list{font-size:13px}.crm-chief-work .secondary-section{grid-column:1/-1}.crm-chief-work .pager{padding-bottom:0}.crm-operations>.secondary-section{background:#fff;border:1px solid var(--line);border-radius:4px;padding:0 18px}.crm-operations>.secondary-section>summary{min-height:48px;color:#376c92}
@media(max-width:1100px) and (min-width:761px){:root{--sidebar:48px}.workspace{padding:22px 18px}.workspace-header{padding-inline:18px}.crm-dashboard-grid{grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr)}.crm-state-content{gap:10px}.crm-donut{width:142px;height:142px}.crm-object-bars{grid-template-columns:1fr}}
@media(max-width:760px){.app-sidebar{display:none}.app-page{margin-left:0}.workspace-header{min-height:58px;padding:6px 18px}.mobile-brand{font-size:21px;color:#225f8b}.mobile-brand .brand-mark{width:18px;height:20px;border-width:3px}.workspace{padding:20px 16px 24px;background:#f5f8fc}.workspace h1,.compact-title h1{font-size:22px}.workspace-title{margin-bottom:18px}.workspace-title p{font-size:12px}.workspace-header .header-tools{gap:9px}.workspace-footer{margin-inline:16px;font-size:10px}.mobile-nav{background:#fff;border-color:#d8e4ee}.mobile-nav a,.mobile-nav button{font-size:10px;color:#55748c}.mobile-nav a[aria-current=page]{color:#247bb7;background:#f2f8fd}.mobile-menu{background:#f4f9fd;border-color:#c8ddea}.mobile-menu .workspace-nav a{min-height:44px;font-size:14px}.mobile-menu .nav-secondary>summary{min-height:44px}.button{font-size:13px}.record-card{padding:18px 15px}.record-aside{padding:18px 15px}.record-form{gap:20px}.table-wrap .responsive-table tbody tr{padding:14px}.table-wrap .responsive-table td,.table-wrap .responsive-table tbody th{padding:5px 0}.people-list>li,.object-work-list>li{padding-inline:13px}.person-link strong{font-size:13px}.crm-dashboard-heading{align-items:flex-start}.crm-heading-tools{gap:5px}.crm-heading-tools .icon-button,.crm-heading-tools .filter-toggle{width:44px;min-width:44px;min-height:44px}.crm-kpis{gap:8px;margin-bottom:14px}.crm-kpi{padding:13px 10px;gap:6px;min-height:109px}.crm-kpi>strong{font-size:25px}.crm-kpi>span{font-size:11px;line-height:1.5}.crm-kpi>small{display:none}.crm-dashboard-grid{grid-template-columns:minmax(0,1fr);gap:14px}.crm-panel{padding:15px}.crm-panel-header h2{font-size:14px}.crm-panel-header{gap:10px}.crm-panel-header>span{font-size:10px}.crm-chart-key{font-size:11px;gap:6px 12px}.crm-chart-key>span:last-child{margin-left:0}.crm-line-chart{max-height:none;min-width:544px}.crm-chart-data>summary{min-height:44px;display:flex;align-items:center}.crm-panel-header>a{min-height:44px;display:flex;align-items:center}.crm-object-bars a{min-height:44px;display:flex;align-items:center}.crm-bar-chart{max-height:190px}.crm-object-bars{grid-template-columns:1fr;gap:16px}.crm-object-bars>li{font-size:12px}.crm-state-content{flex-wrap:nowrap;gap:12px}.crm-donut{width:142px;height:142px}.crm-state-key{min-width:0}.crm-state-key>li{font-size:11px}.crm-chief-work{display:block}.crm-chief-work>section,.crm-operations>section{padding:15px}.crm-chief-work .people-list .work-label{font-size:11px}.crm-operations{margin-top:14px}.crm-heading-tools .filter-fields{left:0;right:auto;min-width:min(580px,calc(100vw - 32px))}.auth-panel{padding-inline:24px}.identity-panel{background:#e7f1fb}.roster-toolbar{background:transparent}.schedule-editor .form-actions{padding-bottom:max(14px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:no-preference){.button,.workspace-nav a,.rail-tool,.crm-kpi{transition:background-color .16s ease,border-color .16s ease,color .16s ease}}

/* One persistent icon rail; the full role-scoped menu slides out only on request. */
.mobile-menu{position:fixed;inset:0 auto 0 48px;margin:0;width:292px;max-width:calc(100vw - 48px);height:100dvh;max-height:100dvh;padding:18px 20px;border:0;border-right:1px solid var(--line);border-radius:0;background:#eef6fd;overflow:hidden}
.mobile-menu[open]{display:flex;flex-direction:column;animation:none}
.mobile-menu .menu-heading,.mobile-menu .menu-account{flex-shrink:0}
.mobile-menu .menu-heading h2{font-size:16px;line-height:1.4}
.mobile-menu .menu-account{padding:18px 0;overflow-wrap:anywhere;font-size:13px}
.mobile-menu .workspace-nav{flex:1;overflow-y:auto;min-height:0}
.mobile-menu .workspace-nav a,.mobile-menu .nav-secondary>summary{min-height:44px}
.mobile-menu::backdrop{background:rgba(23,52,73,.22)}
@media(max-width:760px){.mobile-menu{left:0;width:320px;max-width:calc(100vw - 24px);padding:18px 20px max(18px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:no-preference){.mobile-menu[open]{animation:workspace-menu-enter .18s cubic-bezier(.2,.8,.2,1)}@keyframes workspace-menu-enter{from{transform:translateX(-100%)}to{transform:translateX(0)}}}

/* Personal account is the entry point for security and future account settings. */
.mobile-menu .menu-account{text-decoration:none;color:inherit}
.mobile-menu .menu-account:hover strong{text-decoration:underline}
.account-profile{max-width:820px}
.account-profile-data{background:var(--paper);border:1px solid var(--line);border-radius:4px;padding:24px}
.account-profile-heading{display:flex;gap:16px;align-items:center;padding-bottom:24px;border-bottom:1px solid var(--line)}
.account-profile-avatar{display:grid;place-items:center;flex-shrink:0;width:56px;height:56px;background:#d3eafb;color:#155a8a;border-radius:50%;font-size:24px}
.account-profile-heading h2{font-size:20px;line-height:1.4;overflow-wrap:anywhere}
.account-profile-heading p{font-size:13px;color:var(--muted);margin-top:4px}
.account-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0 0}
.account-profile-facts dt{font-size:12px;color:var(--muted);margin-bottom:7px}
.account-profile-facts dd{margin:0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.account-profile-settings{margin-top:28px}
.account-profile-settings h2{font-size:16px;margin-bottom:12px}
.account-setting{display:flex;align-items:center;gap:16px;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:4px;text-decoration:none;min-height:76px}
.account-setting:hover{background:#eef6fd}
.account-setting>.icon{width:22px;height:22px;flex-shrink:0;color:var(--accent)}
.account-setting>span{flex:1;min-width:0}
.account-setting strong{font-size:14px;font-weight:600}
.account-setting small{display:block;font-size:12px;line-height:1.6;color:var(--muted);margin-top:5px}
@media(max-width:760px){.account-profile-data{padding:18px 16px}.account-profile-heading{gap:12px;padding-bottom:18px}.account-profile-heading h2{font-size:18px}.account-profile-facts{grid-template-columns:minmax(0,1fr);gap:20px;margin-top:20px}.account-setting{padding:18px 16px;gap:12px}}
/* Loading reserves the existing dashboard geometry without pretending to show values. */
.dashboard-loading-label{font-size:13px;color:var(--muted);margin:0 0 12px}
.dashboard-skeleton>div{background:#e8f0f7;border:1px solid var(--line);border-radius:4px;min-height:114px}
.crm-dashboard-grid.dashboard-skeleton>div{min-height:260px}
.dashboard-load-error{padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:4px}
.dashboard-load-error[hidden]{display:none}
.dashboard-load-error p{font-size:14px;line-height:1.6;margin-bottom:12px}
@media(max-width:760px){.dashboard-skeleton>div{min-height:109px}.crm-dashboard-grid.dashboard-skeleton>div{min-height:220px}}

.section-loading-status{font-size:13px;color:var(--muted);margin-bottom:16px}
.section-loading-placeholder{min-height:280px;background:#e8f0f7;border:1px solid var(--line);border-radius:4px}
.section-load-error{padding:20px;border:1px solid var(--line);border-radius:4px;background:var(--paper)}
.section-load-error p{font-size:14px;line-height:1.6;margin-bottom:14px}

.ticket-nav-link{position:relative}
.ticket-unread-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:22px;height:22px;padding:0 5px;border-radius:50%;background:var(--danger);color:#fff;font-size:11px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.ticket-unread-badge[hidden],[data-ticket-unread-caption][hidden]{display:none}
.ticket-nav-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.ticket-nav-copy small{font-size:11px;color:var(--muted);line-height:1.3}
.workspace-nav .ticket-unread-badge,.no-script-nav .ticket-unread-badge{margin-left:auto}
.workspace-nav a>span.ticket-unread-badge{flex:0 0 auto}
.rail-tool .ticket-unread-badge{position:absolute;top:1px;right:0;min-width:20px;height:20px;border:2px solid #194763;padding:0 3px;font-size:10px}
.mobile-nav .ticket-unread-badge{position:absolute;top:2px;left:calc(50% + 4px);min-width:20px;height:20px;border:2px solid var(--paper);padding:0 3px;font-size:10px}

.schedule-day-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}
.schedule-day-summary p{margin:0;font-size:13px}
.schedule-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:0 0 16px}
.schedule-week a{min-height:64px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-decoration:none;border:1px solid transparent;border-radius:3px}
.schedule-week span{font-size:11px;color:var(--muted)}
.schedule-week strong{font-size:17px;font-weight:500;line-height:1}
.schedule-week [aria-current=date] span{color:var(--paper)}
.schedule-week-today:not([aria-current]){border-color:var(--line)}
.schedule-agenda-entry{padding:20px 0;border-top:1px solid var(--line)}
.schedule-agenda-entry:last-of-type{border-bottom:1px solid var(--line)}
.schedule-agenda-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.schedule-agenda-heading>div{min-width:0}
.schedule-agenda-heading p{font-size:13px;color:var(--muted);margin:0}
.schedule-agenda-heading h3{font-size:16px;font-weight:600;line-height:1.45;overflow-wrap:anywhere;margin:0 0 5px}
.schedule-agenda-heading h3 a{text-decoration:none}
.schedule-agenda-portrait{display:block;width:48px;height:60px;flex:0 0 48px;object-fit:cover;border-radius:3px}
.schedule-agenda-placeholder{display:flex;align-items:center;justify-content:center;background:#e8f0f7;color:var(--muted)}
.schedule-agenda-placeholder .icon{width:26px;height:26px}
.schedule-agenda-entry .schedule-entry-time{font-size:20px}
.schedule-agenda-result,.schedule-carryover{font-size:13px;line-height:1.5;margin:10px 0}
.schedule-carryover{color:var(--muted)}
.schedule-agenda-entry .row-actions{margin-top:14px;gap:8px 16px}
.schedule-action-hint{font-size:13px;line-height:1.5;color:var(--muted);margin-top:10px}
.schedule-week [aria-current=date]{background:var(--blue);color:var(--paper)}

.ticket-heading{align-items:flex-start;margin-bottom:18px}
.ticket-heading h1{font-size:28px;line-height:1.25;max-width:36ch}
.ticket-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.ticket-quick-action{margin:0}
.ticket-toolbar .button,.ticket-quick-action .button{font-size:13px;min-height:44px}
.ticket-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}
.ticket-main,.ticket-properties{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:4px;padding:24px}
.ticket-section{padding:24px 0;border-top:1px solid var(--line);scroll-margin-top:24px}
.ticket-section:first-child{padding-top:0;border-top:0}
.ticket-section:last-child{padding-bottom:0}
.ticket-section h2,.ticket-properties h2{font-size:17px;margin-bottom:16px}
.ticket-description .history-text{font-size:14px;line-height:1.7;max-width:72ch}
.ticket-assignee{font-size:15px;line-height:1.5;font-weight:600;overflow-wrap:anywhere;margin:0 0 12px}
.ticket-properties summary,.ticket-transition summary{cursor:pointer;min-height:44px;line-height:1.5;padding:12px 0;font-size:13px}
.ticket-properties summary:hover,.ticket-transition summary:hover{color:var(--accent)}
.ticket-property-list{margin:20px 0;display:grid;gap:16px}
.ticket-property-list dt{font-size:12px;color:var(--muted);margin-bottom:5px}
.ticket-property-list dd{font-size:14px;margin:0;overflow-wrap:anywhere;line-height:1.5}
.ticket-property-list dd strong{display:block;font-size:12px}
.ticket-metadata{border-top:1px solid var(--line)}
.ticket-sharing{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:16px}
.ticket-action-form{max-width:none;gap:16px}
.ticket-action-form .field{margin:0}
.ticket-action-form textarea{min-height:96px;resize:vertical}
.ticket-action-form .button{justify-self:start;font-size:13px}
.ticket-action-form .field-help{font-size:12px;line-height:1.6}
.ticket-action-form input[type=file]{max-width:100%;font-size:13px}
.ticket-transition{background:var(--paper);border:1px solid var(--line);border-radius:4px;padding:0 20px;margin-bottom:16px;scroll-margin-top:24px;max-width:760px}
.ticket-transition details[open]{padding-bottom:20px}
.ticket-transition>details>p{font-size:13px;color:var(--muted);line-height:1.6;margin-bottom:16px}
.ticket-error{padding:16px;margin-bottom:20px;line-height:1.6}
.ticket-error p{font-size:13px;margin-top:8px}
.ticket-attachments{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr));gap:16px}
.ticket-attachments a{min-width:0;text-decoration:none;display:flex;flex-direction:column;gap:5px;font-size:12px;overflow-wrap:anywhere}
.ticket-attachments img{width:100%;height:144px;object-fit:cover;border-radius:3px}
.ticket-attachments small{color:var(--muted);font-size:11px}
.ticket-activity-tabs,.ticket-quick-filters{display:flex;flex-wrap:wrap;gap:4px 20px}
.ticket-activity-tabs{border-bottom:1px solid var(--line);margin-bottom:8px}
.ticket-activity-tabs a,.ticket-quick-filters a{min-height:44px;padding:12px 0;text-decoration:none;font-size:13px;line-height:1.5;border-bottom:2px solid transparent}
.ticket-activity-tabs a[aria-current],.ticket-quick-filters a[aria-current]{border-bottom-color:var(--accent);color:var(--accent);font-weight:600}
.ticket-event{padding:20px 0;border-bottom:1px solid var(--line)}
.ticket-event:last-child{border-bottom:0}
.ticket-event header{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;font-size:13px;margin-bottom:6px}
.ticket-event time,.ticket-event-action,.ticket-event-change{font-size:12px;color:var(--muted);line-height:1.6}
.ticket-event .history-text{font-size:14px;line-height:1.6;margin-top:10px}
.ticket-event-files{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.ticket-board-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;margin:20px 0}
.ticket-board-search{display:flex;gap:8px;max-width:440px;flex:1;min-width:220px}
.ticket-board-search input{min-width:0;flex:1;padding:10px 12px;border:1px solid var(--control-line);border-radius:3px;background:var(--paper);font-size:14px}
.ticket-board-search .button{font-size:13px}
.kanban-ticket{background:var(--paper);border:1px solid var(--line);border-radius:4px;overflow:hidden}
.kanban-ticket:hover{border-color:var(--accent)}
.kanban-ticket>.kanban-card{border:0;border-radius:0;background:transparent}
.kanban-card-actions{padding:10px 14px;border-top:1px solid var(--line)}
.kanban-card-actions .ticket-quick-action .button{width:100%;font-size:12px;min-height:40px}
@media(max-width:900px){.ticket-layout{grid-template-columns:minmax(0,1fr) 240px;gap:16px}.ticket-main,.ticket-properties{padding:18px}}
@media(max-width:760px){.ticket-heading h1{font-size:24px}.ticket-toolbar{gap:8px;margin-bottom:16px}.ticket-toolbar .button{font-size:12px;padding:10px 12px}.ticket-layout{display:flex;flex-direction:column;gap:16px}.ticket-properties{order:-1;width:100%}.ticket-main{width:100%}.ticket-main,.ticket-properties{padding:16px}.ticket-properties h2{font-size:14px;margin-bottom:8px}.ticket-property-list{grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0;gap:12px}.ticket-metadata .ticket-property-list{grid-template-columns:minmax(0,1fr)}.ticket-property-list dd{font-size:13px}.ticket-section{padding-block:20px}.ticket-section h2{font-size:16px}.ticket-transition{padding-inline:16px}.ticket-board-toolbar{display:block}.ticket-board-search{max-width:none;min-width:0;margin-bottom:8px}.ticket-quick-filters{gap:4px 16px}.ticket-activity-tabs{gap:4px 14px}.ticket-activity-tabs a{font-size:12px}.ticket-action-form input,.ticket-action-form select,.ticket-action-form textarea,.ticket-board-search input{font-size:16px}}
/* Daily attendance: the plan, the recorded fact and the next action stay together. */
.attendance-filter-disclosure{margin:0 0 12px}.attendance-scope{font-size:13px;line-height:1.6;color:var(--muted);margin:12px 0}
.attendance-day{display:flex;align-items:center;gap:12px;margin:20px 0}
.attendance-day h2{font-size:20px;margin:0;font-weight:600}
.attendance-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:18px 0 0;border-bottom:1px solid var(--line)}
.attendance-tabs a{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 14px;text-decoration:none;border-bottom:2px solid transparent;font-weight:600}
.attendance-tabs a[aria-current=page]{color:#155a8a;background:#e1effb;border-bottom-color:var(--accent)}
.attendance-tabs a:hover{background:#e1effb}
.attendance-tabs span{font-variant-numeric:tabular-nums;font-weight:400}
.attendance-list{background:var(--paper);border:1px solid var(--line);border-top:0;border-radius:0 0 4px 4px}
.attendance-row{display:grid;grid-template-columns:minmax(220px,1.1fr) minmax(190px,.8fr) minmax(260px,1.2fr);gap:24px;padding:24px;align-items:start;border-bottom:1px solid var(--line)}
.attendance-row:last-child{border-bottom:0}
.attendance-person{display:flex;align-items:flex-start;gap:12px;min-width:0}
.attendance-person>div{min-width:0}
.attendance-person img{object-fit:cover;border-radius:4px;flex-shrink:0}
.attendance-person h3,.attendance-person h2{font-size:16px;line-height:1.45;margin:0 0 5px;overflow-wrap:anywhere}
.attendance-person h3 a{text-decoration:none}
.attendance-person h3 a:hover{text-decoration:underline}
.attendance-person p{font-size:13px;line-height:1.5;margin:4px 0;color:var(--muted);overflow-wrap:anywhere}
.attendance-avatar{width:48px;height:60px;display:flex;align-items:center;justify-content:center;background:var(--canvas);flex-shrink:0;border-radius:4px;color:var(--muted)}
.attendance-time{display:flex;flex-direction:column;gap:7px;font-size:13px;font-variant-numeric:tabular-nums;line-height:1.6}
.attendance-caption{color:var(--muted)}
.attendance-time strong{font-size:14px;font-weight:600}
.attendance-result{min-width:0}
.attendance-status{display:inline-block;font-size:14px;line-height:1.6}
.attendance-on_time,.attendance-late{color:#155a8a}.attendance-completed{color:var(--good)}.attendance-no_show{color:var(--danger)}
.attendance-result p{font-size:13px;line-height:1.6;color:var(--muted);max-width:65ch;margin:8px 0}
.attendance-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}
.attendance-action{min-height:44px;font-size:13px;padding:10px 14px;text-decoration:none}
.attendance-history{display:inline-flex;align-items:center;min-height:44px;padding:7px 0;font-size:13px;color:#20679e;text-underline-offset:3px}
.attendance-notice{background:#eef6fd;border:1px solid var(--line);padding:12px 16px;max-width:75ch;line-height:1.6;color:var(--ink)}
.attendance-empty{padding:32px 24px;max-width:75ch}.attendance-empty h2{font-size:18px}.attendance-empty p{line-height:1.7}
.attendance-footnote{margin:18px 0;max-width:75ch}
.attendance-confirm{max-width:720px;padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:4px}
.attendance-confirm .attendance-person h2{font-size:20px}
.attendance-confirm-facts{display:grid;gap:20px;margin:24px 0;padding:20px 0;border-block:1px solid var(--line)}
.attendance-confirm-facts dt{color:var(--muted);font-size:13px;margin-bottom:7px}
.attendance-confirm-facts dd{margin:0;font-size:15px;line-height:1.6;font-variant-numeric:tabular-nums}
.attendance-consequence{max-width:65ch;line-height:1.7;margin:20px 0}
.attendance-confirm-form{margin-bottom:12px}.attendance-confirm-form .form-actions{margin-top:16px}
.guard-attendance-section{margin:28px 0;padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:4px}
.guard-attendance-section h2{font-size:20px;margin:0}
.guard-current-shift p{margin:10px 0;line-height:1.6}
.guard-state-editor summary{cursor:pointer;min-height:44px;padding:12px 0;line-height:1.6;color:#20679e}
.guard-state-editor .field-help{max-width:65ch}
@media(max-width:1100px){.attendance-row{grid-template-columns:minmax(180px,1fr) minmax(180px,1fr);gap:18px}.attendance-result{grid-column:1/-1}.attendance-buttons{margin-top:10px}}
@media(max-width:760px){.attendance-day{gap:8px;flex-wrap:wrap}.attendance-day h2{font-size:18px}.attendance-tabs a{padding:10px;font-size:13px}.attendance-row{grid-template-columns:minmax(0,1fr);padding:20px 16px;gap:16px}.attendance-result{grid-column:auto}.attendance-buttons .attendance-action{flex:1 1 auto;justify-content:center}.attendance-confirm{padding:20px 16px}.attendance-confirm .form-actions{display:flex;flex-direction:column;align-items:stretch}.guard-attendance-section{padding:20px 16px}.guard-attendance-section .section-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}.mobile-nav:has(a[href="/attendance/"]){grid-template-columns:repeat(5,minmax(0,1fr))}}
/* Role workspaces: posts, document deadlines and regional object records. */
.ops-form{max-width:760px}.ops-task-context{max-width:760px;margin:20px 0;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:4px}.ops-task-context>p{line-height:1.7;white-space:normal;overflow-wrap:anywhere}.ops-task-context dl,.ops-contract-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:20px 0}.ops-task-context dl{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-task-context dt,.ops-contract-facts dt{font-size:13px;color:var(--muted);margin-bottom:8px}.ops-task-context dd,.ops-contract-facts dd{margin:0;font-size:15px;line-height:1.6;overflow-wrap:anywhere}.ops-contract-facts small{display:block;color:var(--muted);font-size:12px}.ops-document-list,.ops-contract-list{display:grid;gap:18px;margin-top:20px}.ops-person-docs,.ops-contract{padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:4px;min-width:0}.ops-person-docs h2,.ops-contract h2,.ops-record-list h2{font-size:17px;line-height:1.5;margin:0}.ops-person-docs header h2{margin:0}.ops-document-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.ops-document-columns h3{font-size:14px;margin:0 0 8px}.ops-document-columns p{font-size:13px;line-height:1.6;margin:6px 0}.ops-deadline{font-weight:600}.ops-expired{color:var(--danger)}.ops-soon{color:var(--warn)}.ops-unknown{color:var(--muted)}.ops-valid{color:var(--good)}.ops-text-link{min-height:44px;display:inline-flex;align-items:center;color:#20679e;text-underline-offset:3px;font-size:13px;margin-right:12px}.ops-contract>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.ops-contract>header p{font-size:13px;color:var(--muted);line-height:1.6;margin:6px 0}.ops-document-checks{list-style:none;padding:16px 0 0;margin:16px 0 0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}.ops-document-checks li{display:flex;justify-content:space-between;gap:12px;font-size:13px;line-height:1.6}.ops-document-checks strong{font-weight:600}.ops-contract-overview{padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:4px}.ops-edit-details{margin:20px 0}.ops-edit-details>summary{padding:12px 0;min-height:44px;cursor:pointer;color:#20679e}.ops-add-records{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.ops-record-list{list-style:none;margin:16px 0;padding:0;background:var(--paper);border:1px solid var(--line);border-radius:4px}.ops-record-list>li{padding:20px;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:1px solid var(--line);min-width:0}.ops-record-list>li:last-child{border-bottom:0}.ops-record-list p{font-size:13px;line-height:1.7;margin:6px 0;overflow-wrap:anywhere}.ops-record-list small{font-size:12px;color:var(--muted);line-height:1.6}.ops-record-list>li>div{min-width:0}.ops-history{max-width:760px;margin-top:28px}.ops-history h2{font-size:18px}.ops-history ul{list-style:none;padding:0}.ops-history li{padding:16px 0;border-bottom:1px solid var(--line);line-height:1.6;font-size:13px}.ops-post{padding:16px 0;border-top:1px solid var(--line)}.ops-post>header{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px}.ops-post h3{font-size:16px;margin:0}.ops-post header>span{font-size:12px;color:var(--muted)}.ops-post ul,.ops-doc-summary ul,.ops-regional-objects{list-style:none;margin:0;padding:0}.ops-post li{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 0}.ops-post .row-actions{flex-wrap:wrap}.ops-doc-summary ul{display:grid;gap:12px}.ops-doc-summary li{display:flex;justify-content:space-between;gap:12px;font-size:14px;line-height:1.6}.ops-regional-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.ops-regional-grid .ops-record-list{border:0;margin:0}.ops-regional-grid .ops-record-list>li{padding:16px 0}.ops-regional-grid h2{font-size:16px}.ops-regional-grid h3{font-size:15px;margin:0;line-height:1.5}.ops-regional-objects li{padding:16px 0;border-bottom:1px solid var(--line)}.ops-regional-objects li:last-child{border:0}.ops-regional-objects a{font-weight:600;font-size:14px}.ops-regional-objects p{font-size:13px;line-height:1.6;color:var(--muted);margin:6px 0}.ops-record-list .row-actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:1100px){.ops-regional-grid{grid-template-columns:minmax(0,1fr)}.ops-post li{flex-direction:column}}
@media(max-width:760px){.ops-person-docs,.ops-contract{padding:20px 16px}.ops-document-columns{grid-template-columns:minmax(0,1fr);gap:0;padding-top:0}.ops-document-columns>section{padding:20px 0;border-bottom:1px solid var(--line)}.ops-document-columns>section:last-child{border:0;padding-bottom:0}.ops-contract-facts,.ops-task-context dl{grid-template-columns:minmax(0,1fr);gap:16px}.ops-document-checks{grid-template-columns:minmax(0,1fr)}.ops-contract>header{flex-wrap:wrap}.ops-record-list>li{padding:18px 16px;flex-direction:column;align-items:stretch}.ops-record-list .row-actions{justify-content:flex-start}.ops-add-records>.button{flex:1 1 100%;justify-content:center}.ops-contract-overview{padding:20px 16px}.ops-post .row-actions>.button{flex:1 1 auto;justify-content:center}.ops-post .row-actions{width:100%}.ops-regional-grid .section-heading{align-items:flex-start;gap:12px}.ops-task-context{padding:20px 16px}}
.crm-chief-work{align-items:start}.crm-chief-work>#attention{grid-column:1/-1}.ops-regional-grid{align-items:start}
