/* Shared customer, report and keyboard/touch improvements. */
.customer-sections details{border:1px solid var(--line,#bccdc7);border-radius:12px;margin:12px 0;padding:0 16px}
.customer-sections summary{font-weight:var(--fw-bold);cursor:pointer;min-height:48px;display:flex;align-items:center;gap:10px;color:var(--ink,#18392f)}
.customer-sections summary::before{content:'\25B8'}.customer-sections details[open]>summary::before{content:'\25BE'}
.customer-sections details>div{padding:0 0 16px}.customer-sections details h3:first-child{margin-top:0}
.customer-toolbar{display:flex;flex-wrap:wrap;gap:8px;position:sticky;top:0;z-index:2;padding:12px 0;background:var(--surface,#fff)}
.customer-toolbar button{min-height:44px}.customer-readiness{padding:12px;border-left:3px solid #ba8d35;background:var(--surface-soft,#eef4f0);color:var(--ink,#18392f);line-height:1.6}
.field-error{color:#b42318;display:block;line-height:1.5;margin:6px 0}.shv-dialog .field-error{color:#ffc2b6}
[aria-invalid=true]{outline:2px solid #c84731;outline-offset:2px}
.recurring-filters{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.recurring-filters label{display:grid;gap:5px;min-width:160px;flex:1}.recurring-filters input,.recurring-filters select{width:100%}
#calendarDialog{height:min(860px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden;box-sizing:border-box}
#calendarDialog .calendar-shell{height:100%;max-height:100%;box-sizing:border-box;grid-template-rows:auto minmax(0,1fr)}
#calendarDialog .calendar-board-scroll{min-height:0;max-height:none;grid-template-rows:auto 1fr;align-content:start;overflow:auto}
#calendarDialog .calendar-grid{grid-auto-rows:minmax(132px,auto);align-content:start}
button,input:not([type=checkbox]):not([type=radio]),select,summary,.upload-button{min-height:44px}
button.icon,button.icon-button,button.edit-button,button.delete-button,button.archive-button,.calendar-day-add{min-width:44px;min-height:44px}
label:has(>input[type=checkbox]),label:has(>input[type=radio]){min-height:44px;display:flex;align-items:center;gap:8px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #238dcb;outline-offset:3px}
.shv-step-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0}.shv-step-list li{border:1px solid #52776b;padding:8px 12px;border-radius:20px;color:#dcebe5}.shv-step-list [aria-current=step]{background:#d9f5e8;color:#163c30;font-weight:var(--fw-bold)}
.shv-phone-preview{font-size:var(--fs-lg);line-height:1.6;background:#fff;color:#18363b;padding:18px;border-radius:12px;max-width:480px;margin:16px auto}.shv-phone-preview h3,.shv-phone-preview p{color:#18363b}.shv-phone-preview article{border-bottom:1px solid #bccdc7;padding:14px 0}.shv-phone-preview dl{margin:8px 0}.shv-phone-preview dl div{display:flex;justify-content:space-between;gap:12px}.shv-phone-preview dd{margin:0;font-weight:var(--fw-bold)}.shv-phone-preview small{color:#425c54}.shv-phone-preview strong{color:#145b49}.shv-phone-preview[hidden]{display:none}
.shv-dialog .shv-confirm{min-height:44px;display:flex;align-items:center;gap:8px}.shv-dialog .shv-confirm input{flex-shrink:0}
@media(max-width:600px){.customer-toolbar{top:0}.recurring-filters label{min-width:100%}.shv-dialog table.shv-edit-table,.shv-dialog .shv-edit-table tbody,.shv-dialog .shv-edit-table tr,.shv-dialog .shv-edit-table td{display:block}.shv-dialog .shv-edit-table thead{display:none}.shv-dialog .shv-edit-table tr{padding:12px 0;border-bottom:1px solid #52776b}.shv-dialog .shv-edit-table td{border:0;padding:5px 0}.shv-dialog .shv-edit-table td[data-label]::before{content:attr(data-label) ': ';color:#c1d3d1}.shv-dialog input[type=number]{width:100%;font-size:var(--fs-lg)}.shv-dialog .shv-actions button{flex:1 1 45%}.customer-sections details{padding:0 12px}}

:root{--quiet:#596579}:root[data-theme="dark"]{--quiet:#b5bdc7}:root[data-theme="calm"]{--quiet:#705761}
#mobileCustomerForm fieldset{border:1px solid var(--line);border-radius:12px;margin:16px 0;padding:14px}#mobileCustomerForm legend{font-weight:var(--fw-bold)}#mobileCustomerForm label{display:grid;gap:6px;margin:12px 0}#mobileCustomerForm label:has(input[type=checkbox]){display:flex}#mobileCustomerForm input:not([type=checkbox]),#mobileCustomerForm select,#mobileCustomerForm textarea{width:100%;min-width:0}.customer-notes{white-space:pre-wrap;overflow-wrap:anywhere}.mobile-language{font-size:var(--fs-xs);display:grid;gap:2px;margin-left:auto;margin-right:8px}.mobile-language select{padding:6px;min-width:64px}
:root[data-theme="dark"] .field-error{color:#ffc2b6}.customer-rent-tax-status{color:var(--ink)}

:root{--muted:#52675e}:root[data-theme="dark"]{--muted:#b8c3cf}:root[data-theme="calm"]{--muted:#68515b}
body button{min-height:44px!important;min-width:44px}.shv-confirm{flex-wrap:wrap}.shv-confirm .field-error{flex-basis:100%}.field-hint{display:block;margin-top:6px;color:var(--muted);line-height:1.5}

/* Team load: one compact table instead of eight tall cards (dashboard, 2026-10-01). */
.load-table{width:100%;border-collapse:separate;border-spacing:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;font-size:var(--fs-md)}
.load-table th,.load-table td{padding:6px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
.load-table tbody tr:last-child > *{border-bottom:0}
.load-table thead th{font-size:var(--fs-xs);font-weight:var(--fw-bold);color:var(--muted);background:var(--surface-soft,transparent);white-space:normal}
.load-table tbody th{font-weight:var(--fw-regular)}
.load-table .capacity-person{display:flex;align-items:center;gap:10px;min-width:0}
.load-table .capacity-person small{display:block;color:var(--muted);font-size:var(--fs-xs);line-height:1.4;margin-top:1px}
.load-table td{font-variant-numeric:tabular-nums}
.load-table thead th:nth-child(n+3),.load-table td:nth-child(n+3){text-align:right}
.load-table .capacity-person small:empty{display:none}
.load-table td.load-alert{color:#b42318;font-weight:var(--fw-bold)}
.load-bar{display:flex;align-items:center;gap:10px;min-width:200px}
.load-track{flex:1;display:block;height:10px;border-radius:5px;background:var(--line)}
.load-bar-fill{display:block;height:100%;min-width:3px;border-radius:5px;background:var(--green,#1f8a5f);overflow:hidden}
.load-bar-late{display:block;height:100%;background:#d92d20;float:right}
.load-bar b{font-weight:var(--fw-bold);min-width:1.5em}
@media (max-width:720px){
  .load-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .load-table,.load-table tbody,.load-table tr,.load-table th,.load-table td{display:block}
  .load-table tr{padding:10px 12px;border-bottom:1px solid var(--line)}
  .load-table th,.load-table td{border:0;padding:4px 0}
  .load-table td[data-label]{display:flex;justify-content:space-between;gap:12px}
  .load-table td[data-label]::before{content:attr(data-label);color:var(--muted);font-size:var(--fs-sm)}
  .load-bar{flex:1;justify-content:flex-end}
}

/* Clickable dashboard numbers open the board filtered to exactly those tasks. */
.load-link{font:inherit;color:inherit;font-weight:inherit;background:none;border:0;padding:2px 8px;margin:-2px -8px;border-radius:6px;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}
.load-link:hover,.load-link:focus-visible{text-decoration-color:currentColor;background:var(--surface-soft,rgba(0,0,0,.05))}
button.risk-link{display:block;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}
button.risk-link:hover,button.risk-link:focus-visible{filter:brightness(.97);outline-offset:2px}

/* Risk cards are buttons now: keep the title above the note like the original cards. */
button.risk-link{display:grid;gap:4px}
button.risk-link strong,button.risk-link span{display:block}
.timeline-item-link{cursor:pointer}
.timeline-item-link:hover{filter:brightness(.98)}
.timeline-item-link:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

/* One-click complete on board cards. */
.compact-task-meta{align-items:center}
.quick-complete-button{margin-left:auto;flex:none;display:inline-grid;place-items:center;width:30px;height:30px;padding:0;border-radius:50%;border:1.5px solid var(--green,#1f8a5f);background:transparent;color:var(--green,#1f8a5f);font-size:var(--fs-md);line-height:1;cursor:pointer}
.quick-complete-button:hover,.quick-complete-button:focus-visible{background:var(--green,#1f8a5f);color:#fff}
.quick-complete-button:disabled{opacity:.5;cursor:progress}

/* Zero counts take the same box as clickable counts so the columns stay aligned. */
span.load-zero{display:inline-block;padding:2px 8px;margin:-2px -8px;font:inherit}
.load-link{display:inline-block}
/* Same box for clickable and zero counts: global buttons are min 44px wide, so give both that width and centre the digits. */
.load-link,span.load-zero{box-sizing:border-box;min-width:44px;text-align:center}

/* Deadline buckets (4 bars instead of 3) and the three-part load bar: overdue | due within 30 days | later. */
.priority-chart{grid-template-columns:repeat(4,minmax(0,1fr))}
button.bucket-bar{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer;min-width:0}
button.bucket-bar:hover .priority-track,button.bucket-bar:focus-visible .priority-track{border-color:var(--primary)}
.priority-later{--priority-fill:linear-gradient(180deg,#9fb3c8,#7b93ad)}
.load-bar-fill{display:flex;background:none}
.load-bar-fill>span{display:block;height:100%;flex:none}
.load-bar-late{background:#d92d20;float:none}
.load-bar-now{background:var(--green,#1f8a5f)}
.load-bar-later{background:#a9d8c3}
.load-table small .load-link{font-size:var(--fs-xs);padding:0 4px;margin:0 -4px;min-width:0;text-align:left;text-decoration:underline;text-decoration-color:var(--line-strong,#c7d0dd)}
/* A person with no open work has an empty bar, not a green dot. */
.load-bar-fill[style*="width:0.0%"]{display:none}
/* Project steps: the title gets the full row; owner and deadline sit under it; the customer photo is a small leading icon. */
.checklist-item{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"handle check actions" ". meta meta";align-items:center;row-gap:2px;column-gap:10px}
.checklist-item>.checklist-drag-handle{grid-area:handle}
.checklist-item>.checklist-check{grid-area:check;align-items:center}
.checklist-item>.checklist-meta{grid-area:meta;justify-content:flex-start;margin-inline-start:28px;gap:8px}
.checklist-item>.checklist-item-actions{grid-area:actions;align-items:center;gap:6px}
.checklist-check>span{display:flex;align-items:center;gap:10px;line-height:1.3}
.checklist-check>input{flex:none}
.checklist-check .customer-photo{flex:none;width:34px;height:34px;min-width:34px;border-radius:7px;font-size:var(--fs-xs)}
@media (max-width:700px){
  .checklist-item{grid-template-areas:"handle check check" ". meta actions";row-gap:4px}
  .checklist-item>.checklist-meta{margin-inline-start:0}
}
/* Board: each column scrolls on its own, so every status stays in view instead of one very long page. */
@media (min-width: 900px) {
  .board:not(.list-view) .board-column { display:flex; flex-direction:column; max-height:calc(100vh - var(--board-top, 230px) - 12px); min-height:420px; }
  .board:not(.list-view) .board-column > * { flex:none; }
  .board:not(.list-view) .board-column > .task-list { flex:1 1 auto; min-height:0; overflow-y:auto; padding:2px 6px 2px 2px; margin-right:-6px; scrollbar-width:thin; }
  /* Denser cards: smaller customer photo, shorter details row. */
  .board:not(.list-view) .task-card .task-customer-row { margin:0 0 6px; padding:0 0 6px; gap:8px; }
  .board:not(.list-view) .task-card .customer-photo-trigger { flex:0 0 32px; width:32px; height:32px; min-width:32px; min-height:32px; }
  .board:not(.list-view) .task-card .customer-photo { width:32px; height:32px; min-width:32px; font-size:var(--fs-xs); }
  .board:not(.list-view) .task-card .task-extra > summary { min-height:30px; padding-block:4px; }
}
/* Contrast: text and icons meet 4.5:1 in the standard, calm and dark themes. */
.task-card .chip.High { color:#b42318; }
.task-card .task-deadline-alert, .task-deadline-alert { color:#b42318; }
.task-deadline-alert strong, .task-deadline-alert span { color:inherit; }
.quick-complete-button { color:color-mix(in srgb, var(--green,#1f8a5f) 78%, #000); border-color:currentColor; }
.quick-complete-button:hover, .quick-complete-button:focus-visible { background:color-mix(in srgb, var(--green,#1f8a5f) 78%, #000); color:#fff; }
.column-sort-button { color:color-mix(in srgb, var(--ink,#17202f) 80%, var(--surface,#fff)); }
.notification-toast-icon { color:#b42318; }
:root:not([data-theme="dark"]) .eyebrow { color:color-mix(in srgb, var(--muted,#5b6673) 55%, #000); }
:root[data-theme="calm"] .eyebrow, :root[data-theme="calm"] .active-label { color:#8b5a70; }
:root[data-theme="dark"] .inbox-trigger { background:var(--surface,#1c2228); color:var(--ink,#e8edf0); }
:root[data-theme="dark"] .task-card .chip.High, :root[data-theme="dark"] .task-card .task-deadline-alert, :root[data-theme="dark"] .task-deadline-alert { color:#ff9a95; }
:root[data-theme="dark"] .load-link { color:#ff9a95; }
:root[data-theme="dark"] .notification-toast-icon, :root[data-theme="dark"] .task-deadline-alert span { color:#ffc9c5; }
:root[data-theme="dark"] .column-sort-button { color:#9aa1a8; }
:root[data-theme="dark"] .quick-complete-button { color:#7fd6b0; }
/* Dashboard: one title row with the date range, no duplicate summary row, help text folded away. */
.dashboard-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; }
.dashboard-heading .capacity-controls { width:auto; grid-template-columns:repeat(2, minmax(140px, 1fr)); }
.capacity-heading:not(:has(.capacity-controls)) { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
#metrics { display:none; }
.capacity-help > summary { display:inline-flex; align-items:center; gap:6px; min-height:32px; cursor:pointer; color:var(--muted); font-size:var(--fs-sm); font-weight:var(--fw-strong); list-style:none; }
.capacity-help > summary::-webkit-details-marker { display:none; }
.capacity-help > summary::before { content:"\24D8"; font-size:var(--fs-md); }
.capacity-help > .capacity-note { margin:4px 0 0; }
/* The range hint repeats the "How is this counted?" text; it stays for screen readers only. */
.dashboard-heading .period-hint { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* Top bar: one row from 1340px up (brand | navigation | actions), two rows below. Inbox is a normal menu item, Settings is an icon-only button (the gear SVG is already inside the summary). */
.sidebar .inbox-trigger { border-color:transparent; background:transparent; box-shadow:none; min-height:40px; padding:0 8px; gap:6px; }
.sidebar .inbox-trigger:hover { background:var(--surface-soft); border-color:transparent; box-shadow:none; }
.account-settings > summary { font-size:0; width:44px; min-width:44px; min-height:44px; padding:0; justify-content:center; }
@media (min-width:1340px) {
  .sidebar { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; align-items:center; gap:0 16px; flex-wrap:nowrap; min-height:64px; padding:8px 24px; }
  .sidebar .nav-links { grid-column:2; grid-row:1; width:auto; min-width:0; flex:initial; flex-wrap:nowrap; overflow:visible; gap:2px; justify-content:flex-start; }
  .sidebar .nav-links > * { flex-shrink:0; }
  .sidebar .nav-links a { padding-inline:8px; }
  .sidebar .sidebar-actions { grid-column:3; grid-row:1; margin-left:0; min-width:0; gap:8px; }
  .sidebar .sidebar-actions .task-scope-select { width:clamp(200px, calc(100vw - 1150px), 208px); min-width:150px; }
}
/* Inter is wider than the fallback fonts: on 1340-1439px screens the menu gets tighter spacing so Azerbaijani labels still fit in the single row. */
@media (min-width:1340px) and (max-width:1439px) {
  .sidebar { padding-inline:16px; gap:0 12px; }
  .sidebar .nav-links { gap:0; }
  .sidebar .nav-links a { padding-inline:5px; }
  .sidebar .inbox-trigger { padding-inline:5px; gap:4px; }
  .sidebar .sidebar-actions { gap:6px; }
}
/* The scope select is as wide as its text on whatever font the computer uses (the page asks for Inter first, which is wider than the fallback). */
@supports (field-sizing: content) {
  .sidebar .sidebar-actions .task-scope-select { field-sizing:content; width:auto; min-width:150px; max-width:260px; }
}
/* Brand subtitle: up to two lines, never cut off (the old 130px limit clipped the Azerbaijani text). */
.sidebar .brand small { white-space:normal; max-width:132px; line-height:1.2; }
/* Priority chips: Standard and Low are quiet (no box; text stays at 4.5:1 or better), Very important stands out. */
.task-priority-label.priority-Medium, .task-card .chip.Medium { background:transparent; border-color:transparent; color:var(--muted); padding-inline:4px; }
.task-priority-label.priority-Low, .task-card .chip.Low { background:transparent; border-color:transparent; color:color-mix(in srgb, var(--muted) 90%, var(--surface)); padding-inline:4px; }
.task-priority-label.priority-Low::before { background:transparent; box-shadow:inset 0 0 0 1px currentColor; }
.task-priority-label.priority-High, .task-card .chip.High { color:#b42318; background:#fdecea; border:1px solid #f0b4ad; font-weight:var(--fw-strong); }
:root[data-theme="dark"] .task-priority-label.priority-High, :root[data-theme="dark"] .task-card .chip.High { color:#ff9a95; background:rgba(255,154,149,.12); border-color:#7a3f3b; }
/* The auto-refresh status bar had light colours written in directly; it follows the dark theme now. */
:root[data-theme="dark"] .desktop-sync-status { background:#1d3a32; color:#c4ecdb; border-color:#2f5d4e; box-shadow:0 2px 8px #0006; }
:root[data-theme="dark"] .desktop-sync-status[data-state="error"] { background:#3a2a14; color:#f3d6a0; border-color:#6b4d1f; }
/* Narrow screens: the Inbox button keeps its full width so the counter stays inside it instead of overlapping the next menu item. */
.nav-links .inbox-nav{flex-shrink:0}

.empty-state:has([data-empty-create]) { gap: 10px; align-content: center; min-height: 110px; }

.date-echo { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-regular); }

/* Board cards are tall because every control is a 44px touch target. With a mouse the same controls can be smaller:
   about 200px instead of 246px per card, so one more card fits in a column. Phones and tablets (coarse pointer) are unchanged. */
@media (hover: hover) and (pointer: fine) {
  body .board:not(.list-view) .task-card :is(.quick-complete-button, .customer-photo-trigger) { min-width: 32px !important; min-height: 32px !important; }
  body .board:not(.list-view) .task-card .task-extra > summary { min-height: 30px !important; padding-top: 4px !important; padding-bottom: 4px !important; }
  body .board:not(.list-view) .task-card .compact-task-main { gap: 6px; }
  body .board:not(.list-view) .task-card .task-extra { margin-top: 2px; }
}

/* Board cards read title first; the customer is a quiet line under it and overdue is told by the date text, not by a red frame. */
body .board .task-card .compact-task-main > .task-customer-row { margin:0; padding:0; border-bottom:0; gap:8px; }
body .task-card .compact-task-main > .task-customer-row > span { font-size:var(--fs-sm); font-weight:var(--fw-regular); color:var(--muted); }
body .task-card .compact-task-main > .task-customer-row .customer-photo-trigger { flex:0 0 24px; width:24px; height:24px; min-width:24px !important; min-height:24px !important; }
body .task-card .compact-task-main > .task-customer-row .customer-photo { width:24px; height:24px; min-width:24px; border-radius:6px; font-size:var(--fs-xs); }
body .task-card.deadline-overdue { background:var(--surface); box-shadow:none; }

/* Board toolbar: search, then quiet tools (My actions, Calendar, view), and "Create new" is the only filled button. */
@media (min-width: 901px) {
  body .board-toolbar #searchInput { order: 1; }
  body .board-toolbar #personalActionsToggle { order: 2; }
  body .board-toolbar #calendarToggleButton { order: 3; }
  body .board-toolbar .view-segments { order: 4; }
}
body .board-toolbar #personalActionsToggle[aria-pressed="false"] { background: transparent; border-color: transparent; }
body .board-toolbar #personalActionsToggle[aria-pressed="false"]:hover { background: var(--surface-soft); }

/* Dashboard numbers that open a filtered board are buttons that look like the cards they replace. */
button.metric, button.capacity-insight { font:inherit; color:inherit; text-align:left; cursor:pointer; appearance:none; width:100%; }
button.metric-link:hover, button.capacity-link:hover { border-color:var(--primary-strong, var(--primary)); }
button.metric-link:focus-visible, button.capacity-link:focus-visible { outline:3px solid #4f9d81; outline-offset:2px; }
button.metric-link em::after, button.capacity-link span::after { content:" \203A"; }
.period-presets { grid-column:1 / -1; display:flex; gap:4px; flex-wrap:wrap; }
.period-presets button { min-height:32px; padding:4px 12px; border:1px solid var(--line); border-radius:999px; background:transparent; color:var(--muted); font:inherit; font-size:var(--fs-sm); cursor:pointer; }
.period-presets button:hover { background:var(--surface-soft); }
.period-presets button[aria-pressed="true"] { background:var(--active-surface, var(--surface-soft)); border-color:var(--primary-strong, var(--primary)); color:var(--primary-strong, var(--ink)); font-weight:var(--fw-strong); }

/* A spelled-out date under the date field makes that column taller; the neighbouring time field must not stretch with it. */
.form-row:has(.date-echo) { align-items:start; }
.form-row:has(.date-echo) > label { align-content:start; }
.vault-dialog{width:min(560px,calc(100vw - 32px))}.vault-form{display:grid;gap:12px}.vault-body{display:grid;gap:12px}.vault-body p{margin:0}
.vault-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.vault-actions button{min-height:44px}.vault-masked{-webkit-text-security:disc}.vault-banks{flex:0 0 100%}.vault-banks summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.vault-banks>div{display:flex;flex-wrap:wrap;gap:8px}
.vault-items,.vault-users,.vault-log{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.vault-items li,.vault-users li,.vault-log li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid var(--line,#dbe4dd);border-radius:12px}
.vault-users small,.vault-log small{display:block;color:var(--muted,#59695f)}.vault-log-note{display:block;margin-top:2px;color:var(--muted,#59695f)}.vault-log li.vault-log-problem{border-color:var(--danger-border);background:var(--danger-bg-soft);color:var(--danger-text)}.vault-log li.vault-log-problem .vault-log-note{color:var(--danger-text)}.vault-secret{margin-top:4px;font-variant-numeric:tabular-nums;word-break:break-all}
.vault-recovery{padding:16px;border:1px dashed var(--line,#b8c7bd);border-radius:12px;font-family:ui-monospace,Consolas,monospace;font-size:var(--fs-lg);letter-spacing:.08em;line-height:1.8;word-break:break-all;user-select:all}
.vault-users li>span:last-child{display:flex;flex-wrap:wrap;gap:8px}.vault-users li>span:last-child:empty{display:none}
.vault-users .danger-button{min-height:40px;padding:9px 14px;border:1px solid var(--danger-border,#e6aaa3);border-radius:10px;background:var(--danger-bg-soft,#fff3f1);color:var(--danger-text-strong,#94251c);font:inherit;font-size:var(--fs-sm);font-weight:var(--fw-strong);cursor:pointer;transition:background .15s,border-color .15s}
.vault-users .danger-button:hover{background:var(--danger-bg,#fee9e7);border-color:var(--danger-text,#a12a20)}
@media(max-width:600px){.vault-items li,.vault-users li{align-items:stretch}}
.vault-check{display:flex;align-items:center;gap:8px}.vault-check input{width:auto;min-height:0}

/* Customer card: the close button lives in the sticky toolbar, so it is reachable from any scroll position (not only at the very top). */
.customer-toolbar .customer-toolbar-close { margin-inline-start:auto; font-size:var(--fs-xl); line-height:1; }
.customer-dialog-body > .icon-button { display:none; }
/* Delete is an icon-only button (name in title and aria-label), so the toolbar fits Close on the same row. */
#customerDetails .customer-toolbar #deleteCustomer { font-size:0; gap:0; width:44px; min-width:44px; padding:0; margin-left:0; }
/* One row in every language: the long ŞHV button shrinks (with an ellipsis) before anything wraps. */
.customer-toolbar { flex-wrap:nowrap; gap:6px; }
.customer-toolbar > button { padding-inline:12px; flex:none; }
.customer-toolbar > button:first-child { flex:1 1 0; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width: 560px) {
  .customer-toolbar { flex-wrap:wrap; }
  .customer-toolbar > button:first-child { flex:1 1 100%; }
}

.customer-lifecycle { display:inline-block; margin-left:8px; padding:2px 8px; border:1px solid var(--line); border-radius:999px; background:var(--surface-soft); color:var(--muted); font-size:var(--fs-xs); font-style:normal; font-weight:var(--fw-strong); vertical-align:middle; white-space:nowrap; }
.card .customer-lifecycle { margin:6px 0 0; }
.customer-lifecycle-note { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:8px 0; }
.customer-lifecycle-note .customer-lifecycle { margin:0; }
.customer-inactive-hint { color:var(--muted); font-size:var(--fs-sm); }
.closing-steps { list-style:none; margin:0; padding:0; display:grid; gap:4px; font-size:var(--fs-sm); }
.closing-steps li[data-done="false"] { color:var(--muted); }
#closingSteps { display:grid; gap:8px; }
#closingSteps[hidden], #mobileClosingSteps[hidden] { display:none; }
.closing-panel { margin:8px 0; }
.closing-step { min-height:40px; padding:6px 0; border:0; background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.closing-step[aria-pressed="false"] { color:var(--muted); }
.closing-step:hover { text-decoration:underline; }
.closing-actions { display:flex; gap:8px; margin:8px 0; }
.customer-work-list button[data-customer-task] > :first-child { margin-right:8px; }
#contentParent{display:flex;flex-wrap:wrap;gap:8px}
#quickAccessButton{position:relative}.qa-dot{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:50%;background:#2e9d6b;display:none}#quickAccessButton.is-open .qa-dot{display:block}
.quick-access{box-sizing:border-box;width:min(740px,calc(100vw - 32px));max-height:min(80vh,640px);padding:18px;overflow:hidden}.quick-access[open]{display:flex;flex-direction:column}.qa-head{flex:0 0 auto}.qa-head{display:flex;gap:8px;align-items:center}.qa-search{flex:1;min-height:44px}.qa-body{margin-top:12px;display:grid;gap:8px;align-content:start;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.qa-title{margin:8px 0 0;color:var(--muted,#59695f);font-size:var(--fs-xs)}.qa-message{margin:0;padding:12px 0}.qa-client{margin:0}.qa-back{justify-self:start;min-height:44px}
.qa-list{margin:0;padding:0;list-style:none;display:grid;gap:4px}.qa-row{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:44px;text-align:left}.qa-row small{color:var(--muted,#59695f)}.qa-row.is-active{background:var(--surface-soft,#eef4f0);outline:2px solid var(--accent,#0f4a40)}
.qa-chips{display:flex;flex-wrap:wrap;gap:8px}.qa-chip{min-height:44px;display:inline-flex;align-items:center;gap:8px}.qa-chip kbd{font:inherit;font-size:var(--fs-xs);padding:0 6px;border:1px solid var(--line,#b8c7bd);border-radius:6px;color:var(--muted,#59695f)}
.qa-unlock{display:grid;gap:8px;max-width:360px}

.pi{--pi-size:32px;flex:none;width:var(--pi-size);height:var(--pi-size);border-radius:calc(var(--pi-size) * .26);display:inline-flex;align-items:center;justify-content:center;overflow:hidden;font-size:var(--fs-xs);font-weight:var(--fw-strong);line-height:1;background:#fff;border:1px solid var(--line);box-sizing:border-box}
.pi img{width:78%;height:78%;object-fit:contain;display:block}
.pi-gov.pi-letters,.pi-gov:not(:has(img)){background:color-mix(in srgb,var(--primary) 14%,var(--surface));color:var(--primary-strong)}
.pi-bank.pi-letters,.pi-bank:not(:has(img)){background:color-mix(in srgb,var(--blue) 14%,var(--surface));color:var(--blue)}
.pi-other.pi-letters,.pi-other:not(:has(img)){background:color-mix(in srgb,var(--amber) 18%,var(--surface));color:var(--ink)}
.qa-list .qa-row{justify-content:flex-start}.qa-row .qa-main{display:grid;gap:2px;flex:1;min-width:0;text-align:left}.qa-row .qa-main small{color:var(--muted)}.qa-row>small{margin-left:auto;color:var(--muted);white-space:nowrap}
.qa-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:10px}
.qa-tile{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 12px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.qa-tile:hover,.qa-tile:focus-visible{border-color:var(--active-border-strong)}
.qa-tile-text{display:grid;gap:2px;min-width:0;flex:1}.qa-tile-text small{color:var(--muted)}
.qa-tile kbd,.qa-mini kbd{font:inherit;font-size:var(--fs-xs);padding:0 6px;border:1px solid var(--line);border-radius:6px;color:var(--muted)}
.qa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.qa-mini{display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 8px;text-align:left;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.qa-mini:hover,.qa-mini:focus-visible{border-color:var(--active-border-strong)}
.qa-mini span:not(.pi){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qa-mini em{font-style:normal;font-size:var(--fs-xs);color:var(--muted)}
.qa-fold{border:1px solid var(--line);border-radius:10px;padding:2px 10px 10px}.qa-fold>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--muted)}.qa-fold[open]>summary{color:var(--ink)}
.vault-login{display:inline-flex;align-items:center;gap:8px}.vault-login .pi{--pi-size:22px}
.qa-search[hidden]+.icon-button{margin-left:auto}.qa-head:has(.qa-search[hidden]){justify-content:flex-end}

/* A button that cannot be undone (vault key rotation): outlined in red like the other buttons, so it stays recognisable but is not mistaken for a selected one. */
.vault-form [data-rotate] { color: #a12b22; border-color: #edc7c3; background: #fff9f8; }
.vault-form [data-rotate]:hover { background: #fdeceb; }

/* Customer's Google Drive folder: a button-like link in the customer toolbars, a small folder icon in the customer list and next to a task's customer. */
.customer-drive-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);text-decoration:none;white-space:nowrap}
.customer-drive-link svg{width:18px;height:18px;flex:none;color:var(--primary)}
.customer-drive-link:hover{background:var(--surface-soft);border-color:var(--line-strong)}
.customer-drive-link:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.customer-drive-link.is-compact{width:32px;min-height:32px;padding:0;border-color:transparent;background:transparent}
.customer-drive-link.is-compact:hover{background:var(--surface-soft);border-color:var(--line)}
.customer-caption .customer-drive-link.is-compact{width:44px;min-height:44px;margin-left:auto}
#customerDialog .customer-toolbar > .customer-drive-add{background:var(--surface);border:1px dashed var(--line-strong);border-radius:9px;color:var(--muted);padding:0 16px}
#customerDialog .customer-toolbar > .customer-drive-add:hover{background:var(--surface-soft);color:var(--ink)}
#customerDialog .customer-toolbar > .customer-drive-link{font-size:var(--fs-sm);font-weight:var(--fw-strong);border-color:var(--line-strong);border-radius:9px;padding:0 16px}
#dialogBody .customer-toolbar > .customer-drive-link{min-height:50px;padding:0 16px;border-radius:14px;background:white;font-size:var(--fs-lg)}
.task-customer-row .customer-drive-link.is-compact{margin-left:auto;width:28px;min-height:28px}
.customer-card-item{position:relative;display:flex;min-width:0}
.customer-card-item>.customer-card{flex:1;min-width:0}
.customer-card-item.has-drive>.customer-card,.customer-table .customer-card-item>.customer-card{padding-right:52px}
.customer-table .customer-column-headings{padding-right:52px}
.customer-card-item>.customer-drive-link{position:absolute;top:12px;right:12px}
.customer-table .customer-card-item>.customer-drive-link{top:50%;transform:translateY(-50%)}
.customer-table .customer-card-item .customer-card{border-bottom:1px solid var(--line)}
.customer-table .customer-card-item:last-child .customer-card{border-bottom:0}
.customer-drive-status{display:block;margin-top:4px;color:var(--primary,var(--green));font-size:var(--fs-xs);font-weight:var(--fw-strong)}
.customer-drive-status:empty{display:none}
.customer-drive-status.is-problem{color:var(--danger-text,#b42318)}
.customer-drive-suggest{display:inline-flex;align-items:center;justify-self:start;align-self:flex-start;width:auto;min-height:36px;margin-top:6px;padding:0 12px;border:1px dashed var(--line-strong,#b8c7bf);border-radius:8px;background:var(--surface,white);color:var(--ink);font:inherit;font-size:var(--fs-sm);font-weight:var(--fw-strong);cursor:pointer}
.customer-drive-suggest:hover{background:var(--surface-soft,var(--soft))}
.customer-drive-suggest:focus-visible{outline:2px solid var(--primary,var(--green));outline-offset:2px}
.customer-drive-suggest[hidden]{display:none}
#dialogBody .customer-drive-suggest{min-height:44px;padding:0 16px;border-radius:14px}
/* Bulk Drive linking (drive-bulk.js) */
.drive-bulk-dialog{width:min(920px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);padding:0;overflow:hidden}
.drive-bulk-dialog .drive-bulk-form{display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - 34px);box-sizing:border-box;padding:22px 24px}
.drive-bulk-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.drive-bulk-head h2{margin:0}
.drive-bulk-intro,.drive-bulk-count{margin:0;color:var(--muted);font-size:var(--fs-sm)}
.drive-bulk-filters{display:flex;flex-wrap:wrap;gap:10px}
.drive-bulk-filters select{flex:0 1 260px}
.drive-bulk-filters input{flex:1 1 220px}
.drive-bulk-list{flex:1 1 auto;min-height:120px;overflow:auto;border:1px solid var(--line);border-radius:12px}
.drive-bulk-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(240px,1.2fr);gap:8px 16px;align-items:start;padding:10px 14px;border-bottom:1px solid var(--line)}
.drive-bulk-row:last-child{border-bottom:0}
.drive-bulk-row.is-checked{background:var(--surface-soft,var(--soft))}
.drive-bulk-name{display:flex;gap:10px;align-items:flex-start;cursor:pointer;font-size:var(--fs-sm)}
.drive-bulk-name input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:var(--primary,var(--green))}
.drive-bulk-name span{display:flex;flex-direction:column;gap:2px;font-weight:var(--fw-strong)}
.drive-bulk-name small{color:var(--muted);font-size:var(--fs-xs);font-weight:var(--fw-regular)}
.drive-bulk-folder input{box-sizing:border-box;width:100%;min-height:38px}
.drive-bulk-empty{margin:0;padding:24px;color:var(--muted);text-align:center}
.drive-bulk-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px;padding-top:12px;border-top:1px solid var(--line)}
.drive-bulk-progress{flex:1 1 200px;color:var(--primary,var(--green));font-size:var(--fs-sm);font-weight:var(--fw-strong)}
.drive-bulk-progress.is-problem{color:var(--danger-text,#b42318)}
@media(max-width:640px){.drive-bulk-row{grid-template-columns:1fr}.drive-bulk-dialog .drive-bulk-form{padding:16px}}
