*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; background: #fafaf7; }
button { cursor: pointer; font-family: inherit; }
input { font-family: inherit; }

/* ── Auth ── */
.auth-bg { min-height: 100vh; background: #fafaf7; display: flex; align-items: center; justify-content: center; padding: 24px 16px; position: relative; }
.auth-card { background: #fff; border-radius: 16px; padding: 40px 36px; width: 100%; max-width: 420px; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 24px rgba(0,0,0,.07); }
.auth-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.auth-title { font-size: 22px; font-weight: 700; color: #193b38; text-align: center; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: #3d524d; }
.form-input { width: 100%; padding: 10px 14px; border: 1px solid #d4e0d8; border-radius: 8px; font-size: 14px; color: #193b38; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.form-input:focus { border-color: #125c58; box-shadow: 0 0 0 3px rgba(18,92,88,.1); }
.form-input::placeholder { color: #99a39d; }
.input-wrapper { position: relative; }
.input-wrapper .form-input { padding-right: 42px; }
.input-eye-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #99a39d; padding: 4px; display: flex; align-items: center; cursor: pointer; transition: color .15s; }
.input-eye-btn:hover { color: #3d524d; }
.form-forgot { display: flex; justify-content: flex-end; margin-top: -4px; }
.link-btn { background: none; border: none; font-size: 13px; color: #72807b; cursor: pointer; padding: 0; font-family: inherit; }
.link-btn--blue { color: #125c58; font-weight: 500; }
.link-btn--blue:hover { text-decoration: underline; }
.btn-primary { width: 100%; padding: 11px; background: #125c58; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, transform .1s; margin-top: 4px; }
.btn-primary:hover { background: #103e3d; }
.btn-primary:active { transform: scale(.99); }
.btn-primary:disabled { background: #8fbab5; cursor: not-allowed; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: #99a39d; font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e3e9e4; }
.social-buttons { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }
.social-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #e3e9e4; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s, box-shadow .15s; color: #193b38; }
.social-btn:hover { border-color: #99a39d; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.auth-footer { text-align: center; font-size: 13px; color: #72807b; }
.auth-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; font-size: 13px; padding: 9px 12px; border-radius: 8px; }
.auth-version { position: fixed; bottom: 14px; right: 18px; font-size: 11px; color: #99a39d; font-weight: 500; letter-spacing: .03em; pointer-events: none; }

/* ── App Layout ── */
.app-layout { display: flex; min-height: 100vh; background: #eef3ef; }
.sidebar { width: 220px; min-width: 220px; height: 100vh; background: #fff; border-right: 1px solid #e3e9e4; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; position: fixed; left: 0; top: 0; z-index: 100; transition: transform .25s ease, width .25s ease; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; height: 56px; flex-shrink: 0; box-sizing: border-box; padding: 0 16px; border-bottom: 1px solid #eef3ef; }
.sidebar-logo { display: flex; align-items: center; }
.brand-lockup { display: flex; align-items: center; gap: 8px; }
.brand-lockup-name { font-size: 13px; font-weight: 700; line-height: 1.15; letter-spacing: -.2px; color: #125c58; white-space: nowrap; }
.brand-lockup-name em { font-style: normal; color: var(--hk-terracotta); }
.sidebar-brand { display: flex; align-items: center; gap: 8px; }
.mobile-menu-btn { display: none; position: fixed; top: 12px; left: 12px; z-index: 98; width: 40px; height: 40px; align-items: center; justify-content: center; background: #fff; border: 1px solid #e3e9e4; border-radius: 10px; color: #3d524d; box-shadow: 0 2px 8px rgba(0,0,0,.08); cursor: pointer; }
.sidebar-collapse-btn { background: none; border: none; color: #99a39d; padding: 4px; border-radius: 4px; display: flex; align-items: center; transition: color .15s; cursor: pointer; }
.sidebar-collapse-btn:hover { color: #3d524d; }
.sidebar-nav { padding: 12px 8px; flex: 1; }
.nav-section-label { font-size: 10px; font-weight: 600; color: #99a39d; letter-spacing: .08em; padding: 4px 10px 6px; margin-top: 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: none; background: none; border-radius: 6px; color: #72807b; font-size: 13.5px; font-weight: 400; text-align: left; transition: background .15s, color .15s; cursor: pointer; margin-bottom: 1px; }
.nav-item:hover { background: #eef3ef; color: #193b38; }
.nav-item--active { background: #e6f2ee; color: #125c58; font-weight: 500; }
.nav-item--active .nav-item-icon { color: #125c58; }
.nav-item-icon { display: flex; align-items: center; flex-shrink: 0; }
.nav-item-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item-chevron { display: flex; align-items: center; color: #99a39d; }
.sidebar-footer { padding: 8px 8px 12px; border-top: 1px solid #eef3ef; }
.nav-item--logout { color: #ef4444 !important; }
.nav-item--logout:hover { background: #fef2f2 !important; color: #dc2626 !important; }

/* ── Sidebar collapsed ── */
.sidebar--collapsed { width: 60px; min-width: 60px; }
.sidebar--collapsed .sidebar-header { flex-direction: column; justify-content: center; height: auto; padding: 10px 8px; gap: 6px; }
.sidebar--collapsed .nav-item-label { display: none; }
.sidebar--collapsed .nav-item-chevron { display: none; }
.sidebar--collapsed .nav-section-label { visibility: hidden; height: 20px; padding: 0; }
.sidebar--collapsed .nav-item { justify-content: center; padding: 8px; }
.sidebar--collapsed .sidebar-footer .nav-item { justify-content: center; padding: 8px; }
.app-main--collapsed { margin-left: 60px; }

/* ── Icon button in the menu header (Messages) ── */
.header-icon-btn { position: relative; background: none; border: none; color: #72807b; padding: 7px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s; }
.header-icon-btn:hover { background: #eef3ef; color: #193b38; }
.header-icon-btn--active { background: #e6f2ee; color: #125c58; }
.notification-badge { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; background: #ef4444; color: #fff; font-size: 9px; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid #fff; }

/* ── App Main ── */
.app-main { flex: 1; margin-left: 220px; display: flex; flex-direction: column; min-height: 100vh; transition: margin-left .25s ease, left .25s ease; }
.app-content { flex: 1; padding: 24px; overflow-y: auto; }
.app-empty-state { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 48px); color: #99a39d; }
.empty-hint { font-size: 14px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; opacity: 0; pointer-events: none; transition: opacity .25s; }

/* ── Dashboard ── */
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.dashboard-title { font-size: 20px; font-weight: 700; color: #193b38; margin-bottom: 4px; }
.dashboard-subtitle { font-size: 13px; color: #72807b; }
.dashboard-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.operators-panel, .tasks-panel { background: #fff; border-radius: 12px; border: 1px solid #e3e9e4; overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; border-bottom: 1px solid #eef3ef; gap: 8px; }
.panel-title { font-size: 14px; font-weight: 600; color: #193b38; }
.panel-count { background: #eef3ef; color: #72807b; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 12px; }
.tasks-panel-actions { display: flex; align-items: center; gap: 8px; }
.clear-filter-btn { background: #fee2e2; color: #dc2626; border: none; border-radius: 6px; font-size: 12px; font-weight: 500; padding: 3px 8px; cursor: pointer; transition: background .15s; }
.clear-filter-btn:hover { background: #fecaca; }
.operators-list { padding: 8px; }
.operator-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid transparent; background: none; border-radius: 8px; cursor: pointer; text-align: left; transition: background .15s; }
.operator-item:hover { background: #fafbf8; }
.operator-item--selected { background: #e6f2ee; border-color: #c4ddd8; }
.operator-avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; letter-spacing: .02em; }
.operator-status-dot { position: absolute; bottom: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff; }
.operator-info { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.operator-name { font-size: 13px; font-weight: 500; color: #193b38; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.operator-role { font-size: 11px; color: #99a39d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.operators-empty { padding: 16px 10px; font-size: 13px; color: #99a39d; text-align: center; grid-column: 1 / -1; }
.operator-meta { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.operator-task-count { font-size: 15px; font-weight: 700; color: #3d524d; line-height: 1; }
.operator-task-label { font-size: 10px; color: #99a39d; }
.tasks-grid { padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.task-card { background: #fff; border: 1px solid #e3e9e4; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, border-color .15s; cursor: pointer; }
.task-card:hover { border-color: #d4e0d8; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.task-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-category { font-size: 11px; font-weight: 500; color: #72807b; background: #eef3ef; padding: 2px 7px; border-radius: 4px; }
.task-priority { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.task-title { font-size: 14px; font-weight: 600; color: #193b38; line-height: 1.35; }
.task-location { display: flex; align-items: center; gap: 5px; color: #99a39d; font-size: 12px; }
.task-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-operator { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #5a6b66; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-operator-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.task-due { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #99a39d; white-space: nowrap; flex-shrink: 0; }
.task-status-bar { padding-top: 2px; border-top: 1px solid #eef3ef; }
.task-status-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }

/* ── List View ── */
.lv-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.lv-header-left h2 { font-size: 20px; font-weight: 700; color: #193b38; margin-bottom: 4px; }
.lv-header-left p { font-size: 13px; color: #72807b; }
.lv-header-right { display: flex; gap: 8px; flex-shrink: 0; }
.btn-export { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: #125c58; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; transition: background .15s; }
.btn-export:hover { background: #103e3d; }
.lv-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.btn-add { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: #125c58; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; transition: background .15s; }
.btn-add:hover { background: #103e3d; }
.btn-filter { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #fff; border: 1px solid #d4e0d8; border-radius: 8px; font-size: 13px; font-weight: 500; color: #3d524d; cursor: pointer; transition: border-color .15s; }
.btn-filter:hover { border-color: #99a39d; }
.lv-table-wrap { background: #fff; border: 1px solid #e3e9e4; border-radius: 12px; overflow: hidden; }
.lv-table { width: 100%; border-collapse: collapse; }
.lv-table thead tr { border-bottom: 1px solid #e3e9e4; }
.lv-table th { padding: 11px 14px; text-align: left; font-size: 12px; font-weight: 600; color: #72807b; white-space: nowrap; background: #fff; }
.lv-table td { padding: 13px 14px; font-size: 13.5px; color: #3d524d; border-bottom: 1px solid #eef3ef; }
.lv-table tbody tr:last-child td { border-bottom: none; }
.lv-table tbody tr:hover td { background: #fafbf8; }
.lv-id { color: #72807b; font-size: 13px; }
.lv-date { color: #3d524d; }
.lv-actions { display: flex; align-items: center; gap: 8px; }
.lv-action-btn { background: none; border: none; color: #99a39d; padding: 5px; border-radius: 6px; display: flex; align-items: center; cursor: pointer; transition: color .15s, background .15s; }
.lv-action-btn:hover { background: #eef3ef; color: #3d524d; }
.lv-action-btn.delete:hover { background: #fee2e2; color: #dc2626; }
.lv-cb { width: 15px; height: 15px; accent-color: #125c58; cursor: pointer; }

/* Operator photo — click to change (Operators) */
.op-avatar { position: relative; width: 28px; height: 28px; border-radius: 50%; border: none; padding: 0; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.op-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.op-avatar-cam { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; color: #3d524d; box-shadow: 0 0 0 1px #e3e9e4; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.op-avatar:hover .op-avatar-cam, .op-avatar:focus-visible .op-avatar-cam { opacity: 1; }
.op-avatar:hover { box-shadow: 0 0 0 2px #c4ddd8; }
.op-avatar--busy { opacity: .5; cursor: progress; }

/* Last login / last seen (Operators) */
.ls { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; cursor: default; }
.ls-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ls-text { display: flex; flex-direction: column; line-height: 1.25; }
.ls-seen { font-size: 11px; color: #99a39d; }
.ls-never { color: #99a39d; }
.op-job { font-size: 13px; color: #3d524d; }
.lv-table--compact th { padding: 8px 12px; }
.lv-table--compact td { padding: 5px 12px; font-size: 13px; }
.lv-table--compact .lv-action-btn { padding: 4px; }

/* Click-to-edit cells (Operators) */
.inline-cell { display: inline-block; min-width: 40px; padding: 3px 6px; margin: -3px -6px; border: 1px solid transparent; border-radius: 6px; cursor: text; outline: none; }
.inline-cell:hover, .inline-cell:focus { border-color: #d4e0d8; background: #fff; }
.inline-cell--name { font-weight: 500; color: #193b38; }
.inline-cell-input { width: 100%; max-width: 260px; padding: 3px 6px; margin: -4px -7px; border: 1px solid #125c58; border-radius: 6px; font: inherit; color: #193b38; background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(18,92,88,.12); }
.inline-cell-input:disabled { opacity: .6; }

/* ── Jobs: list on the left, editor on the right ── */
.jb-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.jb-list { background: #fff; border: 1px solid #e3e9e4; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.jb-add-task .btn-add { white-space: nowrap; flex-shrink: 0; }
.jb-add-task .btn-add:disabled { opacity: .5; cursor: not-allowed; }
.jb-search { width: 100%; margin: 4px 0 6px; }
.jb-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; text-align: left; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.jb-item:hover { background: #fafbf8; }
.jb-item--active { background: #e6f2ee; border-color: #c4ddd8; }
.jb-item-name { font-size: 13.5px; font-weight: 500; color: #193b38; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-item-meta { font-size: 11.5px; color: #72807b; white-space: nowrap; }
.jb-item-op { grid-column: 1 / -1; font-size: 12px; color: #125c58; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-item-op--none { color: #99a39d; }
.jb-main { min-width: 0; }
.jb-placeholder { background: #fff; border: 1px dashed #d4e0d8; border-radius: 12px; padding: 48px; text-align: center; color: #99a39d; font-size: 14px; min-height: 120px; }
.jb-empty { padding: 16px; text-align: center; color: #99a39d; font-size: 13px; }
.jb-editor { background: #fff; border: 1px solid #e3e9e4; border-radius: 12px; padding: 16px 18px; }
.jb-editor-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid #eef3ef; }
.jb-editor-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jb-job-name { font-size: 18px; font-weight: 700; color: #193b38; }
.jb-editor-meta { font-size: 12.5px; color: #72807b; }
.jb-editor-actions { display: flex; align-items: flex-end; gap: 10px; }
.jb-delete:disabled { opacity: .45; cursor: not-allowed; }
.jb-field { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #72807b; }
.jb-input { padding: 5px 8px; border: 1px solid #d4e0d8; border-radius: 6px; font-size: 13px; color: #193b38; background: #fff; outline: none; }
.jb-input:focus { border-color: #125c58; box-shadow: 0 0 0 3px rgba(18,92,88,.1); }
.jb-input--num { width: 64px; }
.jb-unit { color: #99a39d; }
.jb-task { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 10px 4px; border-bottom: 1px solid #eef3ef; transition: opacity .15s; }
.jb-task--busy { opacity: .55; pointer-events: none; }
.jb-task-order { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 28px; }
.jb-task-num { font-size: 12px; font-weight: 700; color: #125c58; background: #e6f2ee; border-radius: 6px; width: 24px; height: 22px; display: flex; align-items: center; justify-content: center; }
.jb-task-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.jb-task-title { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.jb-task-desc { font-size: 12.5px; color: #72807b; }
.jb-badge { font-size: 10.5px; font-weight: 600; color: #7e22ce; background: #f3e8ff; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.jb-task-fields { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }
.jb-days { display: flex; gap: 3px; }
.jb-day { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #d4e0d8; background: #fff; color: #99a39d; font-size: 11px; font-weight: 600; cursor: pointer; padding: 0; }
.jb-day--on { background: #125c58; border-color: #125c58; color: #fff; }
.jb-add-task { display: flex; gap: 8px; margin-top: 14px; }
@media (max-width: 900px) { .jb-layout { grid-template-columns: 1fr; } .jb-list { position: static; max-height: 320px; } }

/* ── Tasks: operators on the left, task panels on the right ── */
.tk-op { display: flex; align-items: center; gap: 10px; }
.tk-op-avatar { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tk-op-text { display: flex; flex-direction: column; min-width: 0; }
.tk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #e3e9e4; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.tk-toolbar-title { display: flex; flex-direction: column; gap: 2px; }
.tk-toolbar-title strong { font-size: 15px; color: #193b38; }
.tk-toolbar-title span { font-size: 12.5px; color: #72807b; }
.tk-toolbar-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tk-day { margin-bottom: 20px; }
.tk-day-title { font-size: 13px; font-weight: 600; color: #72807b; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px 2px; }
.tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.tk-panel { background: #fff; border: 1px solid #e3e9e4; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.tk-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tk-panel-lead { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.tk-day-no { flex-shrink: 0; width: auto; min-width: 24px; padding: 0 6px; margin-top: 1px; }   /* the task number for the day */
.tk-panel-title { min-width: 0; }
.tk-panel-title h4 { font-size: 14.5px; font-weight: 600; color: #193b38; line-height: 1.3; }
.tk-job { font-size: 12px; color: #72807b; }
.tk-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex-shrink: 0; }
.tk-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.tk-prio { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px; border: 1px solid; white-space: nowrap; }
.tk-prio--H { color: #c2410c; background: #fff7ed; border-color: #fdba74; }
.tk-prio--M { color: #92400e; background: #fffbeb; border-color: #fcd34d; }
.tk-prio--L { color: #15803d; background: #f0fdf4; border-color: #86efac; }
.tk-desc { font-size: 13px; color: #3d524d; }
.tk-info { font-size: 12.5px; color: #5a6b66; background: #fafbf8; border-radius: 6px; padding: 6px 8px; }
.tk-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5a6b66; }
.tk-line a { color: #125c58; }
.tk-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; margin: 2px 0 0; padding: 8px 0 0; border-top: 1px solid #eef3ef; }
.tk-times dt { font-size: 10.5px; color: #99a39d; text-transform: uppercase; letter-spacing: .03em; }
.tk-times dd { font-size: 13px; font-weight: 600; color: #193b38; margin: 0; }
.tk-times dd.tk-over { color: #dc2626; }
.tk-cancel { font-size: 12.5px; color: #991b1b; background: #fef2f2; border-radius: 6px; padding: 6px 8px; }
.tk-files-block { border-top: 1px solid #eef3ef; padding-top: 8px; }
.tk-files-label { font-size: 11.5px; font-weight: 600; color: #72807b; margin-bottom: 6px; }
.tk-files { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-file { width: 72px; height: 72px; border-radius: 8px; border: 1px solid #e3e9e4; background: #fafbf8; padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 10.5px; color: #99a39d; text-align: center; cursor: zoom-in; }
.tk-file:disabled { cursor: default; }
.tk-file img { width: 100%; height: 100%; object-fit: cover; }
.tk-file--note { cursor: default; padding: 4px; }
.tk-file--sig { width: 150px; background: #fff; }
.tk-file--sig img { object-fit: contain; }
.tk-viewer { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 1100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; cursor: zoom-out; }
.tk-viewer img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 8px; background: #fff; }
.tk-viewer-label { color: #e3e9e4; font-size: 13px; }

/* ── Profile (Configuration) ── */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; align-items: start; }
.pf-card { background: #fff; border: 1px solid #e3e9e4; border-radius: 12px; padding: 20px; }
.pf-card-title { font-size: 15px; font-weight: 600; color: #193b38; }
.pf-card-sub { font-size: 12.5px; color: #72807b; margin-top: 2px; }
.pf-card-body { margin-top: 16px; }
.pf-form { display: flex; flex-direction: column; gap: 14px; }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-save-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.pf-save-row button:disabled { opacity: .6; cursor: not-allowed; }
.pf-ok { font-size: 13px; color: #15803d; }
.pf-err { font-size: 13px; color: #dc2626; }
.pf-note { font-size: 13px; color: #72807b; }
.pf-version { text-align: right; margin-top: 24px; font-size: 11.5px; font-weight: 500; color: #99a39d; letter-spacing: .03em; }
select.form-input { padding-right: 32px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center; }
@media (max-width: 560px) { .pf-grid { grid-template-columns: 1fr; } .pf-row { grid-template-columns: 1fr; } }

/* Type-to-filter search box in a list toolbar */
.lv-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d4e0d8; border-radius: 8px; padding: 0 10px; width: 300px; max-width: 100%; transition: border-color .15s, box-shadow .15s; }
.lv-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lv-toggle { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; background: #fff; border: 1px solid #d4e0d8; border-radius: 8px; font-size: 13px; color: #3d524d; cursor: pointer; white-space: nowrap; user-select: none; }
.lv-toggle:hover { border-color: #99a39d; }
.lv-search:focus-within { border-color: #125c58; box-shadow: 0 0 0 3px rgba(18,92,88,.1); }
.lv-search-icon { color: #99a39d; display: flex; flex-shrink: 0; }
.lv-search-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 8px 0; font-size: 13px; color: #193b38; }
.lv-search-input::placeholder { color: #99a39d; }
.lv-search-clear { background: none; border: none; color: #99a39d; font-size: 18px; line-height: 1; padding: 0 2px; cursor: pointer; }
.lv-search-clear:hover { color: #3d524d; }

/* ── Add / edit modal (Operators) ── */
.op-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.op-modal { background: #fff; border-radius: 14px; padding: 24px; width: 100%; max-width: 440px; box-shadow: 0 8px 40px rgba(0,0,0,.2); display: flex; flex-direction: column; gap: 14px; }
.op-modal-title { font-size: 16px; font-weight: 700; color: #193b38; }
.op-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.op-modal-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #3d524d; cursor: pointer; }
.op-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.op-modal-actions button:disabled { opacity: .6; cursor: not-allowed; }
.op-modal-text { font-size: 13.5px; color: #3d524d; line-height: 1.5; }
.btn-danger { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: #dc2626; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; transition: background .15s; }
.btn-danger:hover { background: #b91c1c; }
@media (max-width: 480px) { .op-modal-row { grid-template-columns: 1fr; } }

/* ── Gallery ── */
.gallery-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.gallery-title { font-size: 20px; font-weight: 700; color: #193b38; margin-bottom: 4px; }
.gallery-subtitle { font-size: 13px; color: #72807b; }
.gallery-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-toggle { display: flex; align-items: center; background: #eef3ef; border-radius: 8px; padding: 3px; gap: 2px; }
.view-toggle-btn { display: flex; align-items: center; gap: 5px; padding: 6px 12px; border: none; border-radius: 6px; background: transparent; color: #72807b; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.view-toggle-btn:hover { background: #e3e9e4; color: #3d524d; }
.view-toggle-btn--active { background: #fff; color: #193b38; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.gallery-add-btn { display: flex; align-items: center; gap: 6px; padding: 9px 16px; background: #125c58; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; white-space: nowrap; }
.gallery-add-btn:hover { background: #103e3d; }
.gallery-grid { display: grid; gap: 16px; }
.gallery-grid--large { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-grid--small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gallery-item { display: flex; flex-direction: column; gap: 6px; }
.gallery-item-img-wrap { position: relative; border-radius: 10px; overflow: hidden; background: #eef3ef; border: 1px solid #e3e9e4; aspect-ratio: 3/2; }
.gallery-grid--small .gallery-item-img-wrap { border-radius: 7px; aspect-ratio: 1/1; }
.gallery-item-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.gallery-item-img-wrap:hover .gallery-item-img { transform: scale(1.04); }
.gallery-item-img-wrap { cursor: zoom-in; }
.gallery-item-loading { width: 100%; height: 100%; background: linear-gradient(90deg, #eef3ef, #e3e9e4, #eef3ef); background-size: 200% 100%; animation: gallery-shimmer 1.2s infinite; }
@keyframes gallery-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.gallery-item-missing { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: .35; }
.gallery-item-tools { position: absolute; top: 7px; right: 7px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; cursor: default; }
.gallery-item-img-wrap:hover .gallery-item-tools, .gallery-item-tools:focus-within { opacity: 1; }
.gallery-item-tool { width: 28px; height: 28px; border-radius: 6px; border: none; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gallery-item-tool:hover { background: #125c58; }
.gallery-item-tool--delete:hover { background: #dc2626; }
.gallery-item-tool:disabled { opacity: .4; cursor: not-allowed; }
@media (hover: none) { .gallery-item-tools { opacity: 1; } }
.gallery-item-name .inline-cell { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.gallery-item-meta { font-size: 11px; color: #99a39d; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-preview { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gallery-preview-body { background: #fff; border-radius: 12px; overflow: hidden; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; }
.gallery-preview-body .gallery-item-loading, .gallery-preview-body .gallery-item-missing { width: 480px; max-width: 80vw; height: 320px; }
.gallery-preview-img { display: block; max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; background: #193b38; margin: 0 auto; }
.gallery-preview-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid #e3e9e4; }
.gallery-preview-bar > div { flex: 1; }
.gallery-preview-label { font-size: 14px; font-weight: 600; color: #193b38; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-item-name { font-size: 12px; font-weight: 500; color: #3d524d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.gallery-grid--small .gallery-item-name { font-size: 11px; }
.gallery-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px; text-align: center; }
.gallery-empty-icon { margin-bottom: 16px; opacity: .5; }
.gallery-empty-text { font-size: 16px; font-weight: 600; color: #3d524d; margin: 0 0 6px; }
.gallery-empty-hint { font-size: 13px; color: #99a39d; margin: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) { .dashboard-grid { grid-template-columns: 240px 1fr; } }
@media (max-width: 860px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .operators-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); padding: 12px; gap: 6px; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar--open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,.15); }
  .app-main { margin-left: 0 !important; }
  .mobile-menu-btn { display: flex; }
  /* the menu button sits in the top bar */
  .sidebar-overlay { display: block; }
  .sidebar-overlay--visible { opacity: 1; pointer-events: auto; }
}
@media (max-width: 600px) {
  .app-content { padding: 16px; }
  .tasks-grid { grid-template-columns: 1fr; padding: 12px; }
  .operators-list { grid-template-columns: 1fr 1fr !important; }
  .auth-card { padding: 32px 24px; }
  .auth-title { font-size: 20px; }
  .lv-table th:nth-child(3), .lv-table td:nth-child(3),
  .lv-table th:nth-child(4), .lv-table td:nth-child(4) { display: none; }
  .gallery-grid--large { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gallery-grid--small { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}
@media (max-width: 400px) { .operators-list { grid-template-columns: 1fr !important; } }

/* ── Messages (beside the logo at the top of the menu): chat with the operators — src/components/Messages.jsx ── */
.msg-menu { position: relative; }
.msg-menu .notification-badge { width: auto; min-width: 16px; padding: 0 3px; border-radius: 8px; }
.msg-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 200; background: #fff; border-left: 1px solid #e3e9e4; box-shadow: -12px 0 40px rgba(17,24,39,.14); display: flex; flex-direction: column; overflow: hidden; animation: msg-slide-in .2s ease-out; }
@keyframes msg-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .msg-panel { animation: none; } }
.msg-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; border: none; border-radius: 8px; background: none; color: #72807b; font-size: 22px; line-height: 1; cursor: pointer; }
.msg-close:hover { background: #eef3ef; color: #193b38; }
.msg-head { padding-right: 52px !important; }
.sidebar-actions { display: flex; align-items: center; gap: 2px; }
.sidebar--collapsed .sidebar-header { height: auto; min-height: 56px; padding: 8px 0; }
.sidebar--collapsed .sidebar-actions { flex-direction: column; gap: 4px; }
.msg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; }
.msg-title { font-size: 16px; font-weight: 700; color: #193b38; }
.msg-sub { font-size: 12px; color: #72807b; margin-top: 2px; }
.msg-unread { font-size: 11px; font-weight: 600; color: #125c58; background: #e6f2ee; border-radius: 10px; padding: 3px 8px; white-space: nowrap; }
.msg-search { display: flex; align-items: center; gap: 8px; margin: 0 16px 8px; padding: 7px 12px; background: #fafbf8; border: 1px solid #e3e9e4; border-radius: 8px; color: #99a39d; }
.msg-search input { flex: 1; border: none; background: transparent; outline: none; font-size: 13.5px; color: #3d524d; min-width: 0; }
.msg-list { flex: 1; overflow-y: auto; padding: 0 8px 8px; }
.msg-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 8px; background: none; border: none; border-radius: 10px; text-align: left; }
.msg-item:hover { background: #fafbf8; }
.msg-item-main { flex: 1; min-width: 0; }
.msg-item-top, .msg-item-bottom { display: flex; align-items: center; gap: 8px; }
.msg-item-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #193b38; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-item-when { font-size: 11px; color: #99a39d; flex-shrink: 0; }
.msg-item-preview { flex: 1; min-width: 0; font-size: 12.5px; color: #72807b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.msg-item--unread .msg-item-preview { color: #193b38; font-weight: 500; }
.msg-item--unread .msg-item-when { color: #125c58; font-weight: 600; }
.msg-pill { flex-shrink: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #125c58; color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.msg-pill--ack { background: #fdecec; color: #c62828; }

.chat-avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #125c58; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-online-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #16a34a; border: 2px solid #fff; }
.chat-empty { padding: 32px 16px; text-align: center; color: #99a39d; font-size: 13px; }
.chat-error { margin: 6px 12px; padding: 8px 10px; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 12.5px; }

.chat-conv { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-conv-head { display: flex; align-items: center; gap: 10px; padding: 10px 52px 10px 12px; border-bottom: 1px solid #eef3ef; }
.chat-back { background: none; border: none; width: 30px; height: 30px; border-radius: 8px; font-size: 18px; color: #72807b; }
.chat-back:hover { background: #eef3ef; color: #193b38; }
.chat-conv-title { min-width: 0; }
.chat-conv-name { font-size: 14.5px; font-weight: 700; color: #193b38; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conv-sub { font-size: 11.5px; color: #72807b; }
.chat-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 12px 12px; background-color: #e6ecf5; }
/* The chat wallpaper, as on the mobile app (chat_page.dart ChatWallpaper): faint operations icons tiled
   over a soft tint; it stays put while the messages scroll. Generated tile, 132 x 264, rows offset half a tile. */
.chat-list { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22132%22%20height%3D%22264%22%20viewBox%3D%220%200%20132%20264%22%20fill%3D%22none%22%20stroke%3D%22rgba(100%2C116%2C139%2C0.2)%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cg%20transform%3D%22translate(14%2012)%20rotate(-14.3%2013%2013)%20scale(1.0833)%22%3E%3Cpath%20d%3D%22M10%206h11M10%2012h11M10%2018h11%22%2F%3E%3Cpath%20d%3D%22M3%206l1.5%201.5L7%205M3%2012l1.5%201.5L7%2011M3%2018l1.5%201.5L7%2017%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(80%20144)%20rotate(-14.3%2013%2013)%20scale(1.0833)%22%3E%3Cpath%20d%3D%22M10%206h11M10%2012h11M10%2018h11%22%2F%3E%3Cpath%20d%3D%22M3%206l1.5%201.5L7%205M3%2012l1.5%201.5L7%2011M3%2018l1.5%201.5L7%2017%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(-52%20144)%20rotate(-14.3%2013%2013)%20scale(1.0833)%22%3E%3Cpath%20d%3D%22M10%206h11M10%2012h11M10%2018h11%22%2F%3E%3Cpath%20d%3D%22M3%206l1.5%201.5L7%205M3%2012l1.5%201.5L7%2011M3%2018l1.5%201.5L7%2017%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(74%208)%20rotate(11.5%2011%2011)%20scale(0.9167)%22%3E%3Cpath%20d%3D%22M23%2019a2%202%200%200%201-2%202H3a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h4l2-3h6l2%203h4a2%202%200%200%201%202%202z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2213%22%20r%3D%224%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(140%20140)%20rotate(11.5%2011%2011)%20scale(0.9167)%22%3E%3Cpath%20d%3D%22M23%2019a2%202%200%200%201-2%202H3a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h4l2-3h6l2%203h4a2%202%200%200%201%202%202z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2213%22%20r%3D%224%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(8%20140)%20rotate(11.5%2011%2011)%20scale(0.9167)%22%3E%3Cpath%20d%3D%22M23%2019a2%202%200%200%201-2%202H3a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h4l2-3h6l2%203h4a2%202%200%200%201%202%202z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2213%22%20r%3D%224%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(106%2044)%20rotate(8.6%2010%2010)%20scale(0.8333)%22%3E%3Cpath%20d%3D%22M21%2015a2%202%200%200%201-2%202H7l-4%204V5a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(172%20176)%20rotate(8.6%2010%2010)%20scale(0.8333)%22%3E%3Cpath%20d%3D%22M21%2015a2%202%200%200%201-2%202H7l-4%204V5a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(40%20176)%20rotate(8.6%2010%2010)%20scale(0.8333)%22%3E%3Cpath%20d%3D%22M21%2015a2%202%200%200%201-2%202H7l-4%204V5a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(20%2062)%20rotate(5.7%2013%2013)%20scale(1.0833)%22%3E%3Cpath%20d%3D%22M19%203l-7%207%22%2F%3E%3Cpath%20d%3D%22M9.5%209.5l5%205L12%2021c-3-1-6-3.5-8-7z%22%2F%3E%3Cpath%20d%3D%22M7%2017l3-3%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(86%20194)%20rotate(5.7%2013%2013)%20scale(1.0833)%22%3E%3Cpath%20d%3D%22M19%203l-7%207%22%2F%3E%3Cpath%20d%3D%22M9.5%209.5l5%205L12%2021c-3-1-6-3.5-8-7z%22%2F%3E%3Cpath%20d%3D%22M7%2017l3-3%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(-46%20194)%20rotate(5.7%2013%2013)%20scale(1.0833)%22%3E%3Cpath%20d%3D%22M19%203l-7%207%22%2F%3E%3Cpath%20d%3D%22M9.5%209.5l5%205L12%2021c-3-1-6-3.5-8-7z%22%2F%3E%3Cpath%20d%3D%22M7%2017l3-3%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(68%2056)%20rotate(-17.2%2010%2010)%20scale(0.8333)%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M12%206v6l4%202%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(134%20188)%20rotate(-17.2%2010%2010)%20scale(0.8333)%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M12%206v6l4%202%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(2%20188)%20rotate(-17.2%2010%2010)%20scale(0.8333)%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M12%206v6l4%202%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(102%2096)%20rotate(0%2011%2011)%20scale(0.9167)%22%3E%3Cpath%20d%3D%22M22%2011.08V12a10%2010%200%201%201-5.93-9.14%22%2F%3E%3Cpath%20d%3D%22M22%204L12%2014.01l-3-3%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(168%20228)%20rotate(0%2011%2011)%20scale(0.9167)%22%3E%3Cpath%20d%3D%22M22%2011.08V12a10%2010%200%201%201-5.93-9.14%22%2F%3E%3Cpath%20d%3D%22M22%204L12%2014.01l-3-3%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(36%20228)%20rotate(0%2011%2011)%20scale(0.9167)%22%3E%3Cpath%20d%3D%22M22%2011.08V12a10%2010%200%201%201-5.93-9.14%22%2F%3E%3Cpath%20d%3D%22M22%204L12%2014.01l-3-3%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(44%2098)%20rotate(-8.6%2011%2011)%20scale(0.9167)%22%3E%3Cpath%20d%3D%22M14.7%206.3a1%201%200%200%200%200%201.4l1.6%201.6a1%201%200%200%200%201.4%200l3.77-3.77a6%206%200%200%201-7.94%207.94l-6.91%206.91a2.12%202.12%200%200%201-3-3l6.91-6.91a6%206%200%200%201%207.94-7.94l-3.76%203.76z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(110%20230)%20rotate(-8.6%2011%2011)%20scale(0.9167)%22%3E%3Cpath%20d%3D%22M14.7%206.3a1%201%200%200%200%200%201.4l1.6%201.6a1%201%200%200%200%201.4%200l3.77-3.77a6%206%200%200%201-7.94%207.94l-6.91%206.91a2.12%202.12%200%200%201-3-3l6.91-6.91a6%206%200%200%201%207.94-7.94l-3.76%203.76z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(-22%20230)%20rotate(-8.6%2011%2011)%20scale(0.9167)%22%3E%3Cpath%20d%3D%22M14.7%206.3a1%201%200%200%200%200%201.4l1.6%201.6a1%201%200%200%200%201.4%200l3.77-3.77a6%206%200%200%201-7.94%207.94l-6.91%206.91a2.12%202.12%200%200%201-3-3l6.91-6.91a6%206%200%200%201%207.94-7.94l-3.76%203.76z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(4%20104)%20rotate(14.3%209%209)%20scale(0.75)%22%3E%3Cpath%20d%3D%22M21%2010c0%207-9%2013-9%2013s-9-6-9-13a9%209%200%200%201%2018%200z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%223%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(70%20236)%20rotate(14.3%209%209)%20scale(0.75)%22%3E%3Cpath%20d%3D%22M21%2010c0%207-9%2013-9%2013s-9-6-9-13a9%209%200%200%201%2018%200z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%223%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(-62%20236)%20rotate(14.3%209%209)%20scale(0.75)%22%3E%3Cpath%20d%3D%22M21%2010c0%207-9%2013-9%2013s-9-6-9-13a9%209%200%200%201%2018%200z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%223%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.chat-day { text-align: center; margin: 10px 0 6px; }
.chat-day span { display: inline-block; font-size: 11.5px; font-weight: 600; color: #72807b; background: #fff; border: 1px solid #e3e9e4; border-radius: 10px; padding: 3px 10px; }
.chat-row { display: flex; flex-direction: column; align-items: flex-start; margin: 3px 0; }
.chat-row--mine { align-items: flex-end; }
.chat-sender { font-size: 11px; color: #72807b; margin: 4px 0 2px 6px; }
.chat-bubble { max-width: 82%; padding: 8px 10px; border-radius: 14px 14px 14px 4px; background: #fff; color: #193b38; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.chat-bubble--mine { border-radius: 14px 14px 4px 14px; background: #125c58; color: #fff; }
.chat-bubble--ack { background: #fdecec; color: #193b38; border: 1.3px solid #c62828; }
.chat-ack-title { font-size: 12.5px; font-weight: 700; color: #c62828; margin-bottom: 4px; }
.chat-text { font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.chat-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 3px; font-size: 10.5px; opacity: .75; }
.chat-ticks { display: inline-flex; color: inherit; }
.chat-ticks--read { color: #53bdeb; opacity: 1; }
.chat-bubble--mine .chat-ticks--read { color: #a5f3fc; }
.chat-bubble--ack .chat-ticks--read { color: #0284c7; }
.chat-ack-state { margin-top: 6px; font-size: 12px; font-weight: 600; color: #9a3412; }
.chat-ack-state--done { color: #15803d; }
.chat-photo { width: 240px; max-width: 100%; height: 170px; border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; cursor: zoom-in; margin-bottom: 4px; }
.chat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-photo span { font-size: 12px; color: #72807b; }
.chat-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.chat-lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.chat-compose { border-top: 1px solid #eef3ef; padding: 8px 10px 10px; }
.chat-askack { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #72807b; padding: 3px 8px; border-radius: 12px; cursor: pointer; margin-bottom: 6px; user-select: none; }
.chat-askack input { accent-color: #c62828; }
.chat-askack--on { background: #fdecec; color: #c62828; }
.chat-compose-row { display: flex; align-items: flex-end; gap: 6px; }
.chat-attach { background: none; border: none; color: #72807b; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-attach:hover:not(:disabled) { background: #eef3ef; color: #193b38; }
.chat-input { flex: 1; min-width: 0; resize: none; max-height: 120px; border: 1px solid #e3e9e4; background: #fafbf8; border-radius: 18px; padding: 8px 14px; font-family: inherit; font-size: 14px; color: #193b38; outline: none; field-sizing: content; }
.chat-input:focus { border-color: #125c58; background: #fff; }
.chat-send { width: 36px; height: 36px; border-radius: 50%; border: none; background: #125c58; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-send:disabled, .chat-attach:disabled { opacity: .45; cursor: default; }


/* ── Forms (src/pages/Forms.jsx, ported from thermotrack.io) ──
   The ported screen styles itself with ThermoTrack's CSS variables; here they take OpsAssist's
   light palette, scoped to the page (and to its menus and modals, which carry .fm-page too). */
.fm-page {
  --border: #e3e9e4; --card-bg: #fff; --text: #193b38; --text-muted: #72807b;
  --input-bg: #fff; --input-border: #d4e0d8; --tabs-bg: #fafbf8; --nav-hover: #e6f2ee;
  --accent: #125c58; --red: #dc2626; --green: #15803d;
  color: var(--text);
}
.fm-page input, .fm-page select, .fm-page textarea { font-family: inherit; }
.fm-page input:focus, .fm-page select:focus, .fm-page textarea:focus { outline: none; border-color: #125c58 !important; box-shadow: 0 0 0 3px rgba(18,92,88,.1); }
.fm-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid #d4e0d8; background: #fff; color: #3d524d; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.fm-btn:hover:not(:disabled) { background: #fafbf8; border-color: #99a39d; }
.fm-btn:disabled { opacity: .5; cursor: not-allowed; }
.fm-btn.primary { background: #125c58; border-color: #125c58; color: #fff; }
.fm-btn.primary:hover:not(:disabled) { background: #103e3d; border-color: #103e3d; }
.fm-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.fm-pill.ok { background: #dcfce7; color: #15803d; }
.fm-pill.muted { background: #eef3ef; color: #72807b; }
.fm-chip { display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid #d4e0d8; background: #fff; color: #3d524d; font-size: 13px; cursor: pointer; }
.fm-chip:hover:not(:disabled) { border-color: #125c58; color: #125c58; }
.fm-inp { width: 100%; border: 1px solid #d4e0d8; border-radius: 8px; font-size: 14px; color: #193b38; background: #fff; }
.fm-page .btn-primary { margin-top: 0; font-size: 13.5px; }
.fm-page .lv-search { width: 100% !important; }

/* ── Integrations (MCP + API keys) ── */
.ig-info { display: flex; gap: 10px; align-items: flex-start; background: #f8fafc; border: 1px solid #e3e9e4; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-size: 13px; color: #72807b; line-height: 1.5; }
.ig-card { background: #fff; border: 1px solid #e3e9e4; border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.ig-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ig-card-title { font-weight: 700; font-size: 15px; color: #193b38; }
.ig-card-sub { font-size: 13px; color: #72807b; line-height: 1.6; margin-bottom: 14px; }
.ig-state { padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #64748b; background: rgba(100,116,139,.12); }
.ig-state--on { color: #16a34a; background: rgba(34,197,94,.12); }
.ig-switch { margin-left: auto; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #72807b; }
.ig-switch input, .ig-check input, .ig-scope input { accent-color: #125c58; width: 16px; height: 16px; }
.ig-label { font-size: 11px; font-weight: 700; color: #72807b; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.ig-mini-label { font-size: 11px; color: #72807b; margin-bottom: 4px; }
.ig-hint { font-size: 12px; color: #72807b; margin-top: 6px; }
.ig-url { display: flex; align-items: center; gap: 8px; background: #fafbf8; border: 1px solid #e3e9e4; border-radius: 6px; padding: 8px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.ig-url-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-icon-btn { background: none; border: none; cursor: pointer; color: #72807b; padding: 2px 4px; flex-shrink: 0; display: flex; }
.ig-icon-btn--ok { color: #16a34a; }
.ig-section { border-top: 1px solid #e3e9e4; padding-top: 14px; }
.ig-limits { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-end; }
.ig-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #3d524d; cursor: pointer; }
.ig-num { width: 110px; padding: 7px 10px; border-radius: 8px; border: 1px solid #e3e9e4; background: #fafbf8; color: #193b38; font-size: 14px; font-weight: 600; text-align: center; outline: none; }
.ig-num:focus { border-color: #125c58; }
.ig-used { font-size: 14px; font-weight: 700; color: #193b38; }
.ig-used span { font-size: 12px; font-weight: 400; color: #72807b; }
.ig-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ig-tool-input { width: 190px; text-align: left; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; font-weight: 400; }
.ig-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 8px; border-radius: 6px; background: #eef3ef; border: 1px solid #e3e9e4; }
.ig-chip button { background: none; border: none; color: #72807b; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.ig-btn { display: flex; align-items: center; gap: 6px; padding: 7px 12px; background: #fff; border: 1px solid #d4e0d8; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: #3d524d; cursor: pointer; }
.ig-btn:hover { border-color: #99a39d; }
.ig-btn-danger { margin-left: auto; font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(239,68,68,.4); background: rgba(239,68,68,.08); color: #dc2626; cursor: pointer; }
.ig-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.ig-keys { display: flex; flex-direction: column; gap: 12px; }
.ig-key { background: #fafbf8; border: 1px solid #e3e9e4; border-radius: 10px; padding: 16px 20px; }
.ig-key-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ig-key-name { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.ig-key-title { font-weight: 700; font-size: 15px; color: #193b38; }
.ig-key-btns { display: flex; gap: 8px; align-items: center; }
.ig-masked { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #72807b; }
.ig-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.ig-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ig-pill--active  { color: #15803d; background: #f0fdf4; }
.ig-pill--expired { color: #b45309; background: #fffbeb; }
.ig-pill--revoked { color: #dc2626; background: #fef2f2; }
.ig-key-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: #72807b; }
.ig-expired { color: #b45309; font-weight: 700; }
.ig-key-scopes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ig-scope-tag { font-size: 12px; padding: 3px 9px; border-radius: 6px; background: #fff; border: 1px solid #e3e9e4; color: #72807b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ig-empty { text-align: center; padding: 60px 20px; color: #72807b; display: flex; flex-direction: column; align-items: center; }
.ig-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.ig-modal { background: #fff; border: 1px solid #e3e9e4; border-radius: 12px; padding: 28px; width: 520px; max-width: 92vw; max-height: 90vh; overflow-y: auto; }
.ig-modal h3 { margin: 0 0 4px; font-size: 20px; color: #193b38; }
.ig-modal-sub { color: #72807b; font-size: 13px; margin-bottom: 20px; }
.ig-form-lbl { display: block; font-size: 13px; font-weight: 600; color: #3d524d; margin-bottom: 6px; }
.ig-form-inp { width: 100%; padding: 9px 12px; border: 1px solid #d4e0d8; border-radius: 8px; font-size: 14px; color: #193b38; outline: none; }
.ig-form-inp:focus { border-color: #125c58; }
.ig-scope-list { display: flex; flex-direction: column; gap: 8px; }
.ig-scope { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 10px 12px; border-radius: 8px; border: 1px solid #e3e9e4; }
.ig-scope--on { border-color: #125c58; }
.ig-scope-label { display: block; font-size: 14px; font-weight: 600; color: #193b38; }
.ig-scope-code { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #72807b; margin-top: 2px; }
.ig-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #72807b; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #fafbf8; }
.ig-error { margin-top: 14px; padding: 9px 12px; border-radius: 7px; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); color: #dc2626; font-size: 12px; }
.ig-modal-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
@media (max-width: 560px) { .ig-switch, .ig-btn-danger { margin-left: 0; } }

/* ── Refresh countdown: 2px across the top of the menu, above the logo (Sidebar.jsx) ──
   Overlaid (sticky, -2px margin) so it does not push the header down. */
.sidebar-countdown { position: sticky; top: 0; height: 2px; margin-bottom: -2px; flex-shrink: 0; background: #e3e9e4; overflow: hidden; z-index: 1; }
.sidebar-countdown-bar { height: 100%; background: #125c58; transform-origin: left center; animation: oa-countdown linear forwards; }
@keyframes oa-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ── Preferences (src/pages/Preferences.jsx) ── */
.pref-scope { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; border: 1px solid #c4ddd8; background: #e6f2ee; margin-bottom: 16px; max-width: 900px; }
.pref-scope svg { flex: none; margin-top: 1px; }
.pref-scope-title { font-size: 14px; font-weight: 600; color: #193b38; }
.pref-scope-sub { font-size: 13px; color: #72807b; margin-top: 2px; }
.pref-group { max-width: 900px; padding: 0; margin-bottom: 16px; }
.pref-group-head { padding: 16px 20px; border-bottom: 1px solid #eef3ef; }
.pref-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.pref-row + .pref-row { border-top: 1px solid #eef3ef; }
.pref-row-main { flex: 1 1 320px; min-width: 0; }
.pref-row-name { font-size: 14.5px; font-weight: 600; color: #193b38; }
.pref-row-desc { font-size: 13px; color: #72807b; margin-top: 3px; line-height: 1.45; }
.pref-row-value { display: flex; align-items: center; gap: 12px; }
.pref-switch { display: inline-flex; align-items: center; gap: 10px; border: none; background: none; padding: 0; font-size: 14px; font-weight: 600; color: #3d524d; }
.pref-switch-track { position: relative; width: 44px; height: 24px; border-radius: 12px; background: #d4e0d8; transition: background .2s; }
.pref-switch-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .2s; }
.pref-switch--on .pref-switch-track { background: #125c58; }
.pref-switch--on .pref-switch-knob { left: 23px; }
.pref-input { width: 220px; }
.pref-input--bad { border-color: #fca5a5; color: #dc2626; }
.pref-saved { width: 16px; font-size: 14px; font-weight: 700; color: #15803d; opacity: 0; transition: opacity .25s; }
.pref-saved--on { opacity: 1; }
.pref-empty { padding: 32px 0; color: #72807b; font-size: 14px; }

/* ── Operator login QR code (Operators) ── */
.qr-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.qr-modal { position: relative; background: #fff; border-radius: 16px; padding: 28px; max-width: 380px; width: 100%; box-shadow: 0 8px 40px rgba(0,0,0,.2); text-align: center; }
.qr-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: none; border-radius: 8px; background: none; color: #72807b; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qr-close:hover { background: #eef3ef; color: #193b38; }
.qr-title { font-size: 16px; font-weight: 700; color: #193b38; margin: 0 28px 4px; }
.qr-sub { font-size: 12px; color: #99a39d; margin-bottom: 20px; }
.qr-img { width: 100%; max-width: 280px; height: auto; border-radius: 8px; border: 1px solid #e3e9e4; }
.qr-none { color: #99a39d; font-size: 13px; }
.qr-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.qr-actions button { display: flex; align-items: center; gap: 6px; }
.qr-status { margin-top: 12px; }

/* ── Leave (src/pages/Leave.jsx): the filter row above the list, the count, the status pills ── */
.lv-filters { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 14px; background: #fff; border: 1px solid #e3e9e4; border-radius: 12px; }
.lv-filter { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 600; color: #72807b; }
.lv-filter .jb-input { height: 36px; min-width: 130px; padding: 0 10px; }
.lv-filter-search { flex: 1 1 220px; height: 36px; }
.lv-filters .btn-filter { height: 36px; }
.lv-count { font-size: 12.5px; color: #72807b; margin: 0 2px 8px; }
.lv-pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eef3ef; color: #3d524d; white-space: nowrap; }
.lv-pill--amber { background: #fef3c7; color: #92400e; }
.lv-pill--green { background: #dcfce7; color: #15803d; }
.lv-pill--red   { background: #fee2e2; color: #b91c1c; }

/* ── Add Job dialog (Jobs) ── */
.aj-modal { position: relative; max-width: 560px; }
.aj-head { display: flex; align-items: center; gap: 10px; padding-right: 32px; }
.aj-back { background: none; border: none; color: #125c58; font-size: 13px; font-weight: 500; cursor: pointer; padding: 2px 0; }
.aj-back:disabled { opacity: .5; cursor: default; }
.aj-intro { font-size: 13px; color: #72807b; margin-bottom: 2px; }
.aj-choices, .aj-body { display: flex; flex-direction: column; gap: 10px; }
.aj-choice { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 14px 16px; border: 1px solid #e3e9e4; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.aj-choice:hover:not(:disabled) { border-color: #8fbab5; background: #f8fbff; }
.aj-choice:disabled { opacity: .5; cursor: not-allowed; }
.aj-choice strong { font-size: 14px; color: #193b38; }
.aj-choice span { font-size: 12.5px; color: #72807b; }
.aj-choice--ai strong::after { content: ' ✦'; color: #7c3aed; }
.aj-search { width: 100%; }
.aj-list { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.aj-item { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.aj-item:hover { background: #fafbf8; border-color: #e3e9e4; }
.aj-item strong { font-size: 13.5px; font-weight: 500; color: #193b38; }
.aj-item span { font-size: 12px; color: #72807b; }
.aj-picked { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #3d524d; background: #fafbf8; border-radius: 8px; padding: 8px 10px; }
.aj-prompt { min-height: 110px; resize: vertical; font-family: inherit; }
.aj-working { align-items: center; text-align: center; padding: 20px 0; font-size: 14px; color: #3d524d; }
.aj-muted { font-size: 12px; color: #99a39d; }
.aj-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #d5e8e2; border-top-color: #125c58; animation: aj-spin .9s linear infinite; }
@keyframes aj-spin { to { transform: rotate(360deg); } }
.aj-html { width: 100%; height: 280px; border: 1px solid #e3e9e4; border-radius: 8px; background: #fff; }

/* OperatorPhoto (Dashboard and Tasks lists): the photo fills the round avatar; a status dot sits on top */
.op-photo { overflow: visible; }
.op-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* ── Jobs: drag to reorder, 24 h bar, totals, typed add ── */
.jb-grip { display: flex; align-items: center; justify-content: center; width: 24px; height: 22px; margin-top: 2px; color: #c4c9d2; border-radius: 4px; cursor: grab; }
.jb-grip:hover { color: #72807b; background: #eef3ef; }
.jb-grip:active { cursor: grabbing; }
.jb-task { position: relative; }
.jb-task--dragging { opacity: .4; }
.jb-task--drop-before::before, .jb-task--drop-after::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: #125c58; }
.jb-task--drop-before::before { top: -2px; }
.jb-task--drop-after::after { bottom: -2px; }
.jb-editor-head { align-items: flex-start; }
.jb-warn { font-size: 12px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 3px 8px; }
.jb-stats { display: flex; gap: 18px; margin: 0; }
.jb-stats dt { font-size: 10.5px; color: #99a39d; text-transform: uppercase; letter-spacing: .03em; text-align: right; }
.jb-stats dd { font-size: 15px; font-weight: 700; color: #193b38; margin: 0; text-align: right; }
.jb-bar { flex-basis: 100%; margin-top: 4px; }
.jb-bar-track { position: relative; height: 18px; background: #eef3ef; border-radius: 4px; }
.jb-bar-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: #e3e9e4; }
.jb-bar-seg { position: absolute; top: 3px; bottom: 3px; min-width: 3px; background: #2a7f78; border-radius: 2px; opacity: .85; }
.jb-bar-seg:hover { opacity: 1; outline: 1px solid #103e3d; }
.jb-bar-seg--break { background: #f59e0b; }
.jb-bar-clock { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; }
.jb-bar-clock--CI { background: #16a34a; }
.jb-bar-clock--CO { background: #dc2626; }
.jb-bar-hours { position: relative; height: 14px; margin-top: 2px; }
.jb-bar-hours span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: #99a39d; }
.jb-bar-hours span:first-child { transform: none; }
.jb-bar-hours span:last-child { transform: translateX(-100%); }
.jb-bar-track--movable .jb-bar-seg, .jb-bar-track--movable .jb-bar-clock { cursor: ew-resize; touch-action: none; }
.jb-bar--dragging { opacity: 1; outline: 2px solid #103e3d; z-index: 2; }
.jb-bar-time { position: absolute; top: -20px; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: #fff; background: #103e3d; border-radius: 4px; padding: 1px 5px; pointer-events: none; white-space: nowrap; z-index: 3; }

/* Task History: All Tasks entry, task details frame */
.tk-all-icon { background: #e6f2ee; color: #125c58; }
.tk-all { border-bottom: 1px solid #eef3ef; border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.tk-info-block { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tk-info-frame { width: 100%; height: 320px; border: 1px solid #e3e9e4; border-radius: 8px; background: #fff; }

/* ── Dashboard: operator panels ── */
.dp-subtitle-late { color: #dc2626; font-weight: 600; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-rows: 1fr; gap: 14px; }   /* every card as tall as the fullest one, no taller */
.dp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e9e4; border-radius: 12px; overflow: hidden; transition: box-shadow .15s, opacity .15s; }
.dp-card--dragging { opacity: .4; }
.dp-card--over { box-shadow: 0 0 0 3px #8fbab5; }
.dp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; cursor: grab; }
.dp-head:active { cursor: grabbing; }
.dp-avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.dp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dp-who strong { font-size: 14px; color: #193b38; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-who span { font-size: 12px; color: #72807b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-grip { color: #c4c9d2; display: flex; }
.dp-day { padding: 0 14px 6px; }
.dp-day-track { position: relative; height: 12px; background: #eef3ef; border-radius: 3px; overflow: hidden; }
.dp-seg { position: absolute; top: 2px; bottom: 2px; min-width: 2px; border-radius: 2px; }
.dp-seg--done { background: #22c55e; }
.dp-seg--late { background: #ef4444; }
.dp-seg--todo { background: #cbd5e1; }
.dp-seg--cancel { background: #e3e9e4; }
.dp-day-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #193b38; }
.dp-day-hours { display: flex; justify-content: space-between; font-size: 9.5px; color: #99a39d; margin-top: 1px; }
.dp-section { padding: 8px 14px; border-top: 1px solid #eef3ef; }
.dp-section--next { flex: 1; min-height: 0; overflow: hidden; }
.dp-label { font-size: 10.5px; font-weight: 600; color: #99a39d; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.dp-none { font-size: 12.5px; color: #99a39d; }
.dp-task { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dp-task--current { flex-direction: column; align-items: stretch; gap: 3px; padding: 8px 10px; border-radius: 8px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.dp-task--overdue { background: #fef2f2; border-color: #fecaca; }
.dp-task-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dp-task-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; color: #193b38; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-task-meta { font-size: 12px; }
.dp-late { color: #dc2626; font-weight: 600; }
.dp-running { color: #15803d; }
.dp-task--next { flex-direction: column; align-items: stretch; gap: 1px; padding: 4px 0; }
.dp-next-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dp-day-label { font-weight: 600; color: #3d524d; margin-right: 6px; }
.dp-task--next .dp-task-name { font-weight: 400; font-size: 10px; color: #5a6b66; }
.dp-time { font-size: 12px; color: #72807b; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dp-prio { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px; border: 1px solid; white-space: nowrap; flex-shrink: 0; }
.dp-prio--H { color: #c2410c; background: #fff7ed; border-color: #fdba74; }
.dp-prio--M { color: #92400e; background: #fffbeb; border-color: #fcd34d; }
.dp-foot { display: flex; align-items: stretch; border-top: 1px solid #eef3ef; }
.dp-exceptions { flex: 1; min-width: 0; padding: 8px 14px 10px; background: #fafafa; }
.dp-add { flex-shrink: 0; align-self: stretch; width: 52px; padding: 0; border: none; border-left: 1px solid #e3e9e4; background: #fff; color: #125c58; font-size: 22px; font-weight: 500; line-height: 1; cursor: pointer; white-space: nowrap; }
.dp-add:hover { background: #e6f2ee; }
.dp-adhoc { position: relative; max-width: 460px; }
.dp-adhoc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.dp-exceptions--some { background: #fef2f2; border-top-color: #fecaca; }
.dp-exceptions--some .dp-label { color: #dc2626; }
.dp-exc { font-size: 12px; color: #7f1d1d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Menu: parent items with sub-pages (Reports) */
.nav-group { display: flex; flex-direction: column; }
.nav-item-chevron { display: flex; align-items: center; color: #99a39d; transition: transform .15s; }
.nav-item-chevron--open { transform: rotate(180deg); }
.nav-item--parent-active { color: #193b38; font-weight: 500; }
.nav-subitem { padding-left: 38px; font-size: 13px; }
/* Dashboard card: pulsing red dot when the operator has overdue tasks */
.dp-alert { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; flex-shrink: 0; animation: dp-pulse 2.4s ease-in-out infinite; }
@keyframes dp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); opacity: 1; } 50% { box-shadow: 0 0 0 7px rgba(239,68,68,0); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .dp-alert { animation: none; } }
/* Dashboard card: the task's number in its day, in a circle before the name */
.dp-num { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: #e6f2ee; color: #125c58; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.dp-task--overdue .dp-num { background: #fee2e2; color: #b91c1c; }
.dp-next-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dp-next-name .dp-num { width: 15px; height: 15px; font-size: 9px; }

/* Demo data banner (top of every page) and the start-up loading screen */
.demo-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -8px 0 16px; padding: 10px 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; font-size: 13px; color: #78350f; }
.demo-banner-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #f59e0b; color: #fff; border-radius: 4px; padding: 2px 7px; }
.demo-banner-text { flex: 1; min-width: 200px; }
.demo-banner-err { color: #b91c1c; }
.demo-banner-confirm { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.demo-banner-btn { padding: 6px 12px; border-radius: 7px; border: 1px solid #f59e0b; background: #fff; color: #92400e; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.demo-banner-btn:hover:not(:disabled) { background: #fef3c7; }
.demo-banner-btn--danger { border-color: #dc2626; background: #dc2626; color: #fff; }
.demo-banner-btn--danger:hover:not(:disabled) { background: #b91c1c; }
.demo-banner-btn:disabled { opacity: .6; cursor: progress; }
.demo-banner-link { background: none; border: none; color: #92400e; font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.app-booting { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: #99a39d; font-size: 14px; background: #eef3ef; }
.pref-select { width: 260px; }

/* Menu badge (Need Attention open count) */
.nav-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sidebar--collapsed .nav-badge { position: absolute; top: 4px; right: 6px; margin: 0; }
.nav-item { position: relative; }

/* ── Need Attention ── */
.na-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.na-tabs { background: none; padding: 0; border-bottom: none; }
.na-tab-count { margin-left: 6px; font-size: 11px; font-weight: 700; background: #e6f2ee; color: #125c58; border-radius: 9px; padding: 1px 7px; }
.na-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.na-chips { display: flex; gap: 4px; }
.na-chip { padding: 6px 12px; border-radius: 16px; border: 1px solid #e3e9e4; background: #fff; font-size: 12.5px; color: #3d524d; cursor: pointer; }
.na-chip--on { background: #193b38; border-color: #193b38; color: #fff; }
.na-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
.na-card { background: #fff; border: 1px solid #e3e9e4; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.na-card--done { opacity: .75; }
.na-head { display: flex; align-items: center; gap: 10px; }
.na-avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.na-avatar img { width: 100%; height: 100%; object-fit: cover; }
.na-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.na-who strong { font-size: 14px; color: #193b38; }
.na-who span { font-size: 12px; color: #72807b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.na-type { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.na-type--issue { background: #fee2e2; color: #991b1b; }
.na-type--purchase { background: #e0f2fe; color: #075985; }
.na-type--question { background: #f3e8ff; color: #6b21a8; }
.na-status { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; white-space: nowrap; border: 1px solid #e3e9e4; color: #5a6b66; }
.na-status--open { border-color: #fca5a5; color: #b91c1c; }
.na-status--replied { border-color: #8fbab5; color: #103e3d; }
.na-status--done { border-color: #86efac; color: #15803d; }
.na-body { display: flex; gap: 12px; align-items: flex-start; }
.na-text { flex: 1; min-width: 0; }
.na-text h4 { font-size: 15px; font-weight: 600; color: #193b38; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.na-text p { font-size: 13px; color: #3d524d; margin-top: 4px; white-space: pre-wrap; }
.na-qty { font-size: 11.5px; font-weight: 600; color: #075985; background: #e0f2fe; border-radius: 4px; padding: 1px 6px; }
.na-photo { width: 84px; height: 84px; flex-shrink: 0; border-radius: 8px; border: 1px solid #e3e9e4; background: #fafbf8; padding: 0; overflow: hidden; cursor: zoom-in; font-size: 10.5px; color: #99a39d; }
.na-photo img { width: 100%; height: 100%; object-fit: cover; }
.na-photo:disabled { cursor: default; }
.na-reply { background: #e6f2ee; border-radius: 8px; padding: 8px 10px; }
.na-reply-label { font-size: 11px; font-weight: 600; color: #103e3d; }
.na-reply p { font-size: 13px; color: #0c2f2e; margin-top: 2px; white-space: pre-wrap; }
.na-reply-form { display: flex; flex-direction: column; gap: 6px; }
.na-reply-form textarea { resize: vertical; font-family: inherit; }
.na-reply-actions { display: flex; justify-content: flex-end; gap: 6px; }
.na-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-top: 1px solid #eef3ef; padding-top: 10px; }
.na-actions .btn-add, .na-actions .btn-filter { padding: 6px 12px; font-size: 12.5px; }
.na-spacer { flex: 1; }
.na-confirm { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #3d524d; }
.na-confirm-yes { padding: 5px 10px; border: none; border-radius: 6px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }

/* ── Claims: Add Claim dialog and receipt ── */
.cl-modal { max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto; }
.cl-optional { font-weight: 400; color: #99a39d; }
.lv-pill--gray { background: #eef3ef; color: #5a6b66; }
.cl-receipt-pick { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 12px; border: 1.5px dashed #d4e0d8; border-radius: 10px; color: #72807b; font-size: 13px; cursor: pointer; text-align: center; }
.cl-receipt-pick:hover { border-color: #125c58; color: #125c58; }
.cl-receipt-pick input { display: none; }
.cl-receipt { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid #e3e9e4; border-radius: 10px; }
.cl-receipt img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #eef3ef; }
.cl-receipt-pdf { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #fee2e2; color: #b91c1c; font-weight: 700; font-size: 12px; }
.cl-receipt-name { flex: 1; min-width: 0; font-size: 13px; color: #3d524d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #fafbf8; border-radius: 10px; font-size: 13px; color: #72807b; }
.cl-total strong { font-size: 16px; color: #193b38; font-variant-numeric: tabular-nums; }
.cl-receipt-link { background: none; border: none; padding: 0; color: #125c58; font-size: 13px; cursor: pointer; }
.cl-receipt-link:hover { text-decoration: underline; }

/* == Housekeeper Assist portal (revamp/dist/styles.css, colours from new_ci "Together") ==
   Teal #125c58, terracotta #c7775b, ivory #fafaf7, ink #193b38 (new_ci/07-guides).
   --hk-accent is a darker terracotta for small text such as eyebrows: #c7775b itself is
   about 3.3:1 on white, too light for 10px text. Deep #103e3d, mint #e6f2ee, muted
   #72807b and line #e3e9e4 come from the revamp portal. */
:root { --hk-teal: #125c58; --hk-deep: #103e3d; --hk-mint: #e6f2ee; --hk-terracotta: #c7775b; --hk-accent: #a65a3f; --hk-amber: #fff4dc;
        --hk-red: #b53c3a; --hk-ink: #193b38; --hk-muted: #72807b; --hk-line: #e3e9e4; --hk-bg: #fafaf7; }
body, .app-layout { background: var(--hk-bg); color: var(--hk-ink); }

/* menu */
.sidebar-header { height: 72px; padding: 0 14px 0 18px; border-bottom: none; }
.nav-section-label { font-size: 10px; font-weight: 700; color: #99a39d; letter-spacing: .14em; padding: 4px 12px 6px; }
.nav-item { min-height: 38px; padding: 8px 12px; border-radius: 8px; color: #697971; font-weight: 500; }
.nav-item:hover { background: #f5f8f5; color: var(--hk-ink); }
.nav-item--active { background: var(--hk-mint); color: var(--hk-teal); font-weight: 650; }
.nav-badge { background: #c85548 !important; border-radius: 6px !important; }
.sidebar-footer { border-top: 1px solid var(--hk-line); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; }
.sidebar-user-text, .topbar-user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; text-align: left; }
.sidebar-user-text b, .topbar-user-text b { font-size: 13px; font-weight: 600; color: var(--hk-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-text small, .topbar-user-text small { font-size: 11px; color: var(--hk-muted); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
          padding: 0 28px; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--hk-line); backdrop-filter: blur(8px); }
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crumb { font-size: 12.5px; color: #9aa59d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb b { color: var(--hk-ink); font-weight: 500; }
.crumb-sep { margin: 0 10px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar .header-icon-btn { color: var(--hk-teal); }
.topbar-badge { width: auto !important; min-width: 17px; padding: 0 4px; border-radius: 8px !important; background: #c85548 !important; top: -2px !important; right: -2px !important; }
.topbar-divider { width: 1px; height: 24px; background: var(--hk-line); margin: 0 6px; }
.topbar-user { display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 2px 4px; border-radius: 8px; }
.topbar-user:hover { background: #f5f8f5; }
.topbar .mobile-menu-btn { position: static; box-shadow: none; }

/* page frame */
.app-content { padding: 28px 32px 32px; }
.app-footnote { display: flex; justify-content: space-between; gap: 10px; padding: 0 32px 24px; font-size: 11px; color: #94a08f; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 24px; flex-wrap: wrap; }
.page-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--hk-accent); font-weight: 700; margin-bottom: 7px; }
.page-title { font-size: 28px; line-height: 1.25; letter-spacing: -.8px; font-weight: 650; color: var(--hk-ink); margin: 0; }
.page-sub { color: var(--hk-muted); margin-top: 5px; font-size: 14px; }
.page-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* hk- kit: shared building blocks for the redesigned pages */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #e6eeea; color: var(--hk-teal); display: inline-flex; align-items: center; justify-content: center; font-weight: 650; font-size: 13px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 32px; height: 32px; font-size: 11px; }
.avatar--lg { width: 56px; height: 56px; font-size: 19px; }
.avatar--gold { background: #f6e8e1; color: #a65a3f; }
.avatar--blue { background: #e6eef1; color: #547682; }
.hk-card { background: #fff; border: 1px solid var(--hk-line); border-radius: 11px; padding: 22px; }
.hk-card--flush { padding: 0; overflow: hidden; }
.hk-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.hk-card-head .hk-meta { flex: 1; min-width: 0; }
.hk-card-head h3 { font-size: 15px; font-weight: 650; margin: 0; color: var(--hk-ink); }
.hk-card-head p { font-size: 12px; color: var(--hk-muted); margin-top: 2px; }
.hk-card-foot { border-top: 1px solid var(--hk-line); margin-top: 12px; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hk-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hk-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 26px; }
.hk-stat { background: #fff; border: 1px solid var(--hk-line); border-radius: 11px; padding: 18px 20px; position: relative; }
.hk-stat label { font-size: 12px; color: var(--hk-muted); }
.hk-stat strong { font-size: 28px; font-weight: 600; display: block; letter-spacing: -1px; margin: 4px 0; color: var(--hk-ink); }
.hk-stat strong small { font-size: 15px; color: #99a39d; font-weight: 500; letter-spacing: 0; }
.hk-stat em { font-style: normal; font-size: 11.5px; color: var(--hk-muted); }
.hk-stat-icon { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; border-radius: 8px; background: #f2f6f1; display: grid; place-items: center; color: var(--hk-teal); }
.hk-section { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 26px 0 14px; }
.hk-section h2 { font-size: 18px; font-weight: 650; letter-spacing: -.3px; margin: 0; color: var(--hk-ink); }
.hk-section h2 .hk-count { color: #9ca69d; font-size: 13px; margin-left: 8px; font-weight: 400; }
.hk-pill { font-size: 11px; display: inline-flex; gap: 6px; align-items: center; padding: 3px 9px; border-radius: 5px; background: #f2f5f2; color: #7b877e; white-space: nowrap; font-weight: 500; }
.hk-pill--green { background: #e6f3ec; color: #397450; }
.hk-pill--amber { background: var(--hk-amber); color: #9b712d; }
.hk-pill--red { background: #fbecea; color: #af4942; }
.hk-pill--blue { background: #eaf0f6; color: #54728d; }
.hk-pill--teal { background: var(--hk-mint); color: var(--hk-teal); }
.hk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px; background: var(--hk-teal); color: #fff; padding: 9px 16px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--hk-teal); white-space: nowrap; min-height: 40px; cursor: pointer; text-decoration: none; }
.hk-btn:hover:not(:disabled) { background: var(--hk-deep); border-color: var(--hk-deep); }
.hk-btn:disabled { opacity: .5; cursor: not-allowed; }
.hk-btn--secondary { background: #fff; color: var(--hk-teal); border-color: #d4e0d8; }
.hk-btn--secondary:hover:not(:disabled) { background: #f5f8f5; border-color: #c4d4ca; }
.hk-btn--danger { background: #fff; color: var(--hk-red); border-color: #e6c5c1; }
.hk-btn--danger:hover:not(:disabled) { background: #fdf3f2; border-color: #e0b3ae; }
.hk-btn--sm { font-size: 12px; padding: 6px 11px; min-height: 32px; }
.hk-btn--block { width: 100%; }
.hk-textbtn { background: none; border: none; color: var(--hk-teal); padding: 0; font-weight: 600; font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.hk-textbtn:hover { text-decoration: underline; }
.hk-textbtn--red { color: var(--hk-red); }
.hk-iconbtn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--hk-teal); background: #f0f6f2; border: none; cursor: pointer; flex: none; }
.hk-iconbtn:hover { background: var(--hk-mint); }
.hk-toolbar { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; flex-wrap: wrap; }
.hk-toolbar-note { margin-left: auto; font-size: 12px; color: var(--hk-muted); }
.hk-search { position: relative; flex: 1; max-width: 330px; min-width: 180px; }
.hk-search svg { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: #97a397; }
.hk-search input, .hk-select { width: 100%; height: 42px; padding: 0 12px 0 38px; background: #fff; border: 1px solid #dfe6d9; border-radius: 7px; font-size: 13.5px; color: var(--hk-ink); outline: none; }
.hk-select { width: auto; padding: 0 10px; }
.hk-search input:focus, .hk-select:focus { border-color: var(--hk-teal); box-shadow: 0 0 0 3px rgba(18,92,88,.1); }
.hk-tabs { display: inline-flex; gap: 4px; background: #ebefea; border: 1px solid #e2e8df; padding: 4px; border-radius: 8px; }
.hk-tab { padding: 7px 15px; border-radius: 5px; background: transparent; border: none; color: #81907e; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.hk-tab--active { background: #fff; box-shadow: 0 1px 4px rgba(35,67,41,.06); color: var(--hk-teal); font-weight: 600; }
.hk-progress { height: 5px; background: #edf2ec; border-radius: 5px; overflow: hidden; }
.hk-progress span { display: block; height: 100%; background: #6b9b87; border-radius: 5px; }
.hk-progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--hk-ink); margin: 12px 0 7px; }
.hk-progress-label span:last-child { color: var(--hk-muted); }
.hk-rows { margin: 12px 0; }
.hk-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--hk-line); gap: 20px; font-size: 12.5px; }
.hk-row:last-child { border-bottom: 0; }
.hk-row > span:first-child { color: var(--hk-muted); }
.hk-row > b, .hk-row > span:last-child { font-weight: 600; color: var(--hk-ink); text-align: right; }
.hk-notice { background: #f2f6ef; padding: 12px 16px; border-radius: 7px; font-size: 12.5px; color: #708568; margin: 16px 0; display: flex; gap: 9px; align-items: flex-start; }
.hk-notice--amber { background: var(--hk-amber); color: #9c7c3f; }
.hk-empty { padding: 56px 24px; text-align: center; background: #fff; border: 1px dashed var(--hk-line); border-radius: 11px; color: var(--hk-muted); }
.hk-empty h3 { color: var(--hk-ink); font-size: 15px; margin: 10px 0 6px; }
.hk-placeholder { border: 1px dashed #cbd8c6; border-radius: 11px; min-height: 240px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; gap: 12px; color: #7c9278; padding: 24px; background: transparent; cursor: pointer; font-family: inherit; }
.hk-placeholder:hover { border-color: var(--hk-teal); background: #fafcf8; }
.hk-placeholder b { font-size: 15px; }
.hk-placeholder p { font-size: 12.5px; max-width: 220px; margin: 0; }
.hk-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.hk-table th { text-align: left; background: #fafbf8; color: #87917f; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; padding: 13px 18px; border-bottom: 1px solid var(--hk-line); }
.hk-table td { padding: 15px 18px; border-bottom: 1px solid #edf0e9; font-size: 13px; color: var(--hk-ink); }
.hk-table tr:last-child td { border-bottom: 0; }
.hk-person { display: flex; align-items: center; gap: 10px; }
.hk-label { display: block; font-size: 12px; color: #63765d; font-weight: 600; margin-bottom: 6px; }

@media (max-width: 1100px) { .hk-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .topbar { padding: 0 16px; }
  .topbar .mobile-menu-btn { display: flex; }
  .topbar-user-text { display: none; }
  .app-content { padding: 20px 16px; }
  .app-footnote { padding: 0 16px 20px; flex-direction: column; }
  .page-title { font-size: 24px; }
  .hk-grid2, .hk-grid3 { grid-template-columns: 1fr; }
  .hk-search { max-width: none; flex-basis: 100%; }
}
.sidebar-household { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--hk-muted); padding: 10px 10px 2px; }
/* Today: red dot while tasks are overdue (Sidebar useOverdue) */
.nav-dot { width: 9px; height: 9px; border-radius: 50%; background: #c85548; flex: none; margin-left: auto; box-shadow: 0 0 0 2px #fff; }
.nav-item--active .nav-dot { box-shadow: 0 0 0 2px var(--hk-mint); }
.sidebar--collapsed .nav-item { position: relative; }
.sidebar--collapsed .nav-dot { position: absolute; top: 6px; right: 10px; margin: 0; }
