/* CopyBoss workspace · framed-sheet, seed 364826822.
   At 1440: 228 sidebar + 8 inset + 1204 sheet = 1440.
   Sheet: 24 + 1154 usable + 24 + 2 border = 1204.
   Two columns: (usable - 24 gutter) * 2/3 and * 1/3. */
:root {
  /* CopyBoss brand: deep navy, petroleum teal, mint and mineral neutrals. */
  --brand-ink: #142D3B; --brand-primary: #087E8B; --brand-mint: #B9E8DA;
  --ground: #EAF0F2; --surface: #FFFFFF; --raised: #F3F6F7; --active: #DFE8EB;
  --border: #D8E2E6; --rule: #E8EEF0; --control: #ACBEC6;
  --text: var(--brand-ink); --muted: #526975; --faint: #526975;
  --primary: var(--brand-primary); --accent: var(--brand-primary); --primary-hover: #066571;
  --brand-soft: #E3F2F1; --row-hover: #F0F7F7;
  --nav-bg: var(--brand-ink); --nav-text: #C3D3DA; --nav-muted: #A4BAC5;
  --nav-active: #244653; --nav-rule: #345361;
  --positive: #28724F; --negative: #AD3545;
  --waiting-bg: #FFF4DD; --waiting-ink: #84530E; --waiting-chart: #A97822;
  --running-bg: #EAF1FA; --running-ink: #285C91; --running-chart: #3974AD;
  --done-bg: #E8F4EB; --done-ink: #28724F; --done-chart: #3C8059;
  --cancelled-bg: #FBECEE; --cancelled-ink: #AD3545; --cancelled-chart: #AE5364;
  --overlay-shadow: #142D3B20; --overlay-backdrop: #142D3B66;
  --radius-card: 8px; --radius-control: 6px; --radius-sheet: 16px;
  --gap: 24px; --pad: 24px; --sidebar-width: 228px;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif; --font-id: "IBM Plex Mono", monospace;
  --fs-title: 28px; --fs-section: 16px; --fs-kpi: 34px; --fs-body: 15px; --fs-small: 14px;
}
* { box-sizing: border-box; }
.workspace { margin: 0; color: var(--text); background: var(--ground); font: 400 var(--fs-body)/1.5 var(--font); -webkit-font-smoothing: antialiased; }
.workspace a { color: inherit; text-decoration: none; }
.workspace button, .workspace input, .workspace select { font: inherit; }
.workspace button { cursor: pointer; }
.workspace svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.workspace h1, .workspace h2, .workspace p { margin: 0; }
.workspace h1 { font-size: var(--fs-title); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.workspace h2 { font-size: var(--fs-section); font-weight: 500; line-height: 1.5; }
.workspace [hidden] { display: none !important; }
.workspace :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ws-skip { position: fixed; top: -80px; left: 16px; padding: 12px; background: var(--surface); z-index: 2000; }
.ws-skip:focus { top: 8px; }
.ws-shell { min-height: 100dvh; }
.ws-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 0 16px 16px; display: flex; flex-direction: column; overflow-y: auto; z-index: 1030; background: var(--ground); }
.ws-brand-row { height: 76px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.ws-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 600; letter-spacing: -1px; padding: 0 9px; }
.workspace .ws-brand-mark { width: 27px; height: 27px; color: var(--accent); stroke-width: 1.7; }
.ws-brand-period { color: var(--accent); }
.ws-workspace { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); background: var(--surface); padding: 10px 12px; border-radius: var(--radius-control); font-size: var(--fs-small); color: var(--muted); overflow-wrap: anywhere; }
.ws-workspace-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.ws-nav { display: flex; flex-direction: column; gap: 4px; padding-top: 24px; }
.ws-nav-caption { font-size: var(--fs-small); color: var(--faint); padding: 0 12px 6px; }
.ws-nav-caption:not(:first-child) { margin-top: 24px; }
.ws-nav-link { min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-control); color: var(--muted) !important; }
.ws-nav-link svg { width: 17px; height: 17px; }
.ws-nav-link:hover, .ws-nav-link.is-active { color: var(--text) !important; background: var(--active); }
.ws-nav-link.is-active { font-weight: 500; }
.ws-sidebar-bottom { margin-top: auto; padding-top: 32px; }
.ws-account { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); margin-top: 16px; padding: 18px 4px 0; }
.ws-avatar { width: 32px; height: 32px; background: var(--active); color: var(--muted); display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-size: var(--fs-small); font-weight: 500; }
.ws-account-name { min-width: 0; flex: 1; font-size: var(--fs-small); }
.ws-account-name strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-account-name span { color: var(--muted); }
.ws-main { margin-left: var(--sidebar-width); padding: 0 8px 8px 0; }
.ws-topbar { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); gap: 16px; color: var(--muted); font-size: var(--fs-small); }
.ws-topbar-context { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ws-topbar-divider { color: var(--control); }
.ws-mobile-brand { display: none; }
.ws-icon-button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: var(--radius-control); color: var(--muted); display: inline-flex; justify-content: center; align-items: center; flex: none; }
.ws-icon-button:hover { color: var(--text); background: var(--active); }
.ws-notifications { position: relative; }
.ws-notification-dot { position: absolute; width: 6px; height: 6px; top: 6px; right: 7px; background: var(--negative); border-radius: 50%; }
.ws-menu-toggle, .ws-menu-close { display: none; }
.ws-sheet { min-height: calc(100dvh - 64px); padding: 32px var(--pad) var(--pad); border: 1px solid var(--border); border-radius: var(--radius-sheet); background: var(--surface); }
.ws-title-row { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); margin-bottom: var(--gap); }
.ws-subtitle { color: var(--muted); margin-top: 7px !important; font-size: var(--fs-body); }
.ws-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ws-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 12px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font-weight: 500; white-space: nowrap; }
.ws-button:hover { border-color: var(--muted); }
.ws-button-primary { background: var(--primary); color: var(--surface) !important; border-color: var(--primary); }
.ws-button-primary:hover { background: var(--text); border-color: var(--text); }
.ws-button-text { border-color: transparent; padding-left: 0; padding-right: 0; background: transparent; }
.ws-button-danger { color: var(--negative) !important; }
.ws-button:disabled { color: var(--muted); background: var(--raised); border-color: var(--border); cursor: default; }
.ws-id { font: 400 var(--fs-small)/1.5 var(--font-id); color: var(--muted); white-space: nowrap; }
.ws-number, .ws-money, .ws-metrics, .ws-status-tab span { font-variant-numeric: tabular-nums; }
.ws-money { white-space: nowrap; }
.ws-muted { color: var(--muted); }
.ws-small { font-size: var(--fs-small); }
.ws-overview-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: var(--gap); align-items: start; }
.ws-column { display: grid; gap: var(--gap); min-width: 0; }
.ws-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-card); }
.ws-metric { min-width: 0; padding: 20px; }
.ws-metric + .ws-metric { border-left: 1px solid var(--border); }
.ws-metric-label { display: block; color: var(--muted); font-size: var(--fs-small); }
.ws-metric-value { display: block; margin-top: 8px; font-size: var(--fs-kpi); font-weight: 400; letter-spacing: -.03em; line-height: 1.2; }
.ws-metric-note { display: block; margin-top: 8px; font-size: var(--fs-small); color: var(--muted); }
.ws-panel { border: 1px solid var(--border); border-radius: var(--radius-card); min-width: 0; }
.ws-panel-header { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ws-text-link { color: var(--muted) !important; font-size: var(--fs-small); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.ws-text-link:hover { color: var(--text) !important; text-decoration: underline; }
.ws-text-link svg { width: 14px; height: 14px; }
.ws-panel-body { padding: 0 20px 20px; }
.ws-request-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 15px 20px; border-top: 1px solid var(--rule); align-items: center; }
.ws-row-heading { font-weight: 500; display: block; overflow-wrap: anywhere; }
.ws-row-subline { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; color: var(--muted); font-size: var(--fs-small); }
.ws-row-side { display: flex; align-items: center; gap: 12px; }
.ws-row-side > svg { width: 14px; height: 14px; color: var(--muted); }
.ws-request-row:hover .ws-row-heading { color: var(--accent); }
.ws-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); line-height: 1.5; min-height: 22px; padding: 2px 7px; border-radius: 4px; flex: none; white-space: nowrap; background: var(--active); color: var(--muted); }
.ws-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.ws-status-waiting { background: var(--waiting-bg); color: var(--waiting-ink); }
.ws-status-running { background: var(--running-bg); color: var(--running-ink); }
.ws-status-done { background: var(--done-bg); color: var(--done-ink); }
.ws-status-cancelled { background: var(--cancelled-bg); color: var(--cancelled-ink); }
.ws-balance { padding: 20px; }
.ws-balance-label { color: var(--muted); font-size: var(--fs-body); }
.ws-balance-value { font-size: 32px; font-weight: 500; letter-spacing: -.04em; margin: 12px 0 8px; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ws-balance .ws-text-link { margin-top: 20px; }
.ws-inline-facts { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--fs-small); }
.ws-inline-facts strong { color: var(--text); font-weight: 500; }
.ws-person-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--rule); padding: 12px 20px; }
.ws-person-row > div { min-width: 0; }
.ws-person-row strong { display: block; font-weight: 500; overflow-wrap: anywhere; }
.ws-person-row small { color: var(--muted); font-size: var(--fs-small); }
.ws-movement { padding: 12px 20px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: start; }
.ws-movement > div:last-child { text-align: right; }
.ws-movement time { display: block; color: var(--muted); font-size: var(--fs-small); margin-top: 4px; }
.ws-empty { padding: 24px 20px; color: var(--muted); border-top: 1px solid var(--rule); }
.ws-empty strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 6px; }
.ws-status-tabs { display: flex; border-bottom: 1px solid var(--border); gap: 24px; overflow-x: auto; scrollbar-width: thin; }
.ws-status-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 0 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); white-space: nowrap; flex: none; }
.ws-status-tab.is-active { color: var(--text); border-bottom-color: var(--accent); font-weight: 500; }
.ws-status-tab span { color: var(--muted); font-size: var(--fs-small); }
.ws-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 18px; }
.ws-search { position: relative; display: block; width: 316px; max-width: 100%; }
.ws-search > svg { position: absolute; top: 10px; left: 11px; width: 16px; height: 16px; color: var(--muted); }
.ws-input, .ws-select { width: 100%; height: 36px; border: 1px solid var(--control); background: var(--surface); color: var(--text); border-radius: var(--radius-control); padding: 7px 12px; }
.ws-input { padding-left: 36px; }
.ws-input::placeholder { color: var(--faint); opacity: 1; }
.ws-directory-toolbar { flex-wrap: wrap; }
.ws-directory-toolbar > .ws-search { flex: 1 1 260px; width: auto; }
.ws-directory-toolbar .ws-select { width: auto; max-width: 100%; }
[data-staff-picker] [aria-disabled="true"] { cursor: progress; }
@media (max-width:700px) {
  .ws-directory-toolbar > .ws-search { flex: initial; width: 100%; }
  .ws-directory-toolbar .ws-select { width: 100%; }
}
.ws-toolbar-end { display: flex; align-items: center; gap: 16px; }
.ws-toolbar-end .ws-select { width: auto; }
.ws-results-count { color: var(--muted); white-space: nowrap; font-size: var(--fs-small); }
.ws-service-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ws-service-table th { color: var(--muted); font-size: var(--fs-small); font-weight: 400; text-align: left; padding: 12px 12px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.ws-service-table td { border-top: 1px solid var(--rule); padding: 18px 12px; vertical-align: middle; }
.ws-service-table th:first-child, .ws-service-table td:first-child { padding-left: 0; }
.ws-service-table th:last-child, .ws-service-table td:last-child { padding-right: 0; }
.ws-service-table th:nth-child(1) { width: 35%; }
.ws-service-table th:nth-child(2) { width: 23%; }
.ws-service-table th:nth-child(3) { width: 14%; }
.ws-service-table th:nth-child(4) { width: 15%; }
.ws-service-table th:nth-child(5) { width: 13%; }
.ws-service-table .ws-num-cell { text-align: right; }
.ws-service-title { display: block; font-weight: 500; overflow-wrap: anywhere; margin: 4px 0; }
.ws-service-title:hover { color: var(--accent); }
.ws-service-description { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: var(--fs-small); display: block; }
.ws-cell-subline { display: block; color: var(--muted); font-size: var(--fs-small); margin-top: 4px; overflow-wrap: anywhere; }
.ws-service-meta { margin-top: 8px; display: flex; gap: 4px 12px; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-small); }
.ws-service-meta time { white-space: nowrap; }
.ws-cell-actions { display: flex; justify-content: flex-end; gap: 4px; }
.ws-row-menu .dropdown-menu { padding: 5px; border-color: var(--border); border-radius: var(--radius-card); box-shadow: 0 8px 24px var(--overlay-shadow); min-width: 180px; }
.ws-row-menu .dropdown-item { padding: 9px 10px; border-radius: 4px; font-size: var(--fs-body); }
.ws-row-menu .dropdown-item:hover { background: var(--raised); }
.ws-list-empty { padding: 40px 0; }
.ws-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; }
.ws-breadcrumb { display: inline-flex; align-items: center; gap: 8px; color: var(--muted) !important; margin-bottom: 20px; }
.ws-breadcrumb svg { width: 14px; height: 14px; }
.ws-object-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ws-detail-title { margin-top: 8px !important; }
.ws-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: var(--gap); align-items: start; }
.ws-detail-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px; border-bottom: 1px solid var(--rule); }
.ws-detail-summary .ws-money { font-size: 28px; letter-spacing: -.035em; }
.ws-detail-copy { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); line-height: 1.8; }
.ws-detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0; }
.ws-detail-facts dt { font-weight: 400; color: var(--muted); font-size: var(--fs-small); margin-bottom: 6px; }
.ws-detail-facts dd { margin: 0; overflow-wrap: anywhere; }
.ws-detail-section { padding: 20px; border-bottom: 1px solid var(--rule); }
.ws-detail-section:last-child { border: 0; }
.ws-detail-section h2 { margin-bottom: 14px; }
.ws-assignment { padding: 20px; border-top: 1px solid var(--rule); }
.ws-assignment-label { color: var(--muted); font-size: var(--fs-small); margin-bottom: 12px; }
.ws-assignment-person { display: flex; align-items: center; gap: 12px; }
.ws-assignment-person > div { min-width: 0; overflow-wrap: anywhere; }
.ws-assignment-person .ws-avatar { width: 38px; height: 38px; }
.ws-assignment-person strong { font-weight: 500; }
.ws-assignment-person .ws-cell-subline { margin-top: 3px; }
.ws-assignment-person .ws-icon-button { margin-left: auto; }
.ws-complete-panel { padding: 20px; }
.ws-complete-panel p { margin: 10px 0 18px; color: var(--muted); }
.ws-complete-panel .ws-button { width: 100%; }
.ws-complete-panel .ws-actions { margin-top: 8px; }
.ws-complete-panel .ws-actions > * { flex: 1; }
.ws-detail-operation-actions { display: flex; align-items: center; gap: 20px; }
.ws-detail-operation-actions .ws-button { width: auto; }
.ws-event-list { padding: 0 20px 20px; margin: 0; list-style: none; }
.ws-event-list li { position: relative; padding: 0 0 22px 20px; border-left: 1px solid var(--border); }
.ws-event-list li::before { content: ""; position: absolute; left: -4px; top: 7px; width: 7px; height: 7px; background: var(--control); border-radius: 50%; }
.ws-event-list li:last-child { padding-bottom: 0; border-left-color: transparent; }
.ws-event-list li:last-child::before { background: var(--accent); }
.ws-event-list time { display: block; font-size: var(--fs-small); color: var(--muted); margin-top: 4px; }
.ws-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.ws-photo { border: 0; padding: 0; background: var(--raised); border-radius: var(--radius-control); overflow: hidden; text-align: left; }
.ws-photo img { width: 100%; height: 140px; object-fit: cover; display: block; }
.ws-photo span { display: block; padding: 10px; font-size: var(--fs-small); overflow-wrap: anywhere; }
.ws-modal .modal-content { border: 1px solid var(--border); border-radius: var(--radius-card); color: var(--text); background: var(--surface); }
.ws-modal .modal-header, .ws-modal .modal-body, .ws-modal .modal-footer { padding: 20px; border-color: var(--rule); }
.ws-modal .modal-title { font-size: 18px; font-weight: 500; }
.ws-modal .modal-body p + p { margin-top: 12px; }
.ws-modal .modal-footer { gap: 8px; }
.ws-modal .modal-footer > * { margin: 0; }
.ws-modal .modal-footer form { display: contents; }
.ws-lightbox-image { max-width: 100%; max-height: 65dvh; object-fit: contain; display: block; margin: auto; }
.ws-notice, .ws-preview-notice { padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-control); margin-bottom: 24px; background: var(--raised); }
.ws-notice-error { color: var(--negative); }
.ws-preview-notice { color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 1600px) { .ws-sheet { padding: 36px; } }
@media (max-width: 1200px) {
  .ws-overview-grid, .ws-detail-grid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
  .ws-metric { padding: 16px; }
  .ws-service-table th:nth-child(1) { width: 32%; }
  .ws-service-table th:nth-child(2) { width: 22%; }
  .ws-service-table th:nth-child(3) { width: 16%; }
  .ws-service-table th:nth-child(4) { width: 16%; }
  .ws-service-table th:nth-child(5) { width: 14%; }
}
@media (max-width: 1100px) {
  .ws-sidebar { display: none; width: min(340px, 100%); }
  .ws-main { margin-left: 0; padding: 0 8px 8px; }
  .ws-menu-toggle, .ws-menu-close { display: inline-flex; }
  .ws-topbar { height: 56px; padding: 0 16px; }
  .ws-menu-open { overflow: hidden; }
  .ws-menu-open .ws-sidebar { display: flex; box-shadow: 12px 0 40px var(--overlay-shadow); }
  .ws-menu-backdrop { position: fixed; inset: 0; background: var(--overlay-backdrop); border: 0; z-index: 1020; }
  .ws-overview-grid, .ws-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); }
}
@media (max-width: 800px) {
  .ws-overview-grid, .ws-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .ws-overview-rail { grid-template-columns: 1fr 1fr; align-items: start; }
  .ws-overview-rail > :last-child { grid-column: 1 / -1; }
  .ws-title-row { gap: 16px; }
  .ws-metric { padding: 20px; }
  .ws-detail-rail { grid-template-columns: 1fr 1fr; align-items: start; }
  .ws-detail-rail > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --pad: 18px; --fs-title: 22px; }
  .ws-main { padding: 0; }
  .ws-sheet { border: 0; border-top: 1px solid var(--border); border-radius: 0; padding-top: 24px; min-height: calc(100dvh - 56px); }
  .ws-topbar { padding: 0 10px; }
  .ws-topbar-product, .ws-topbar-divider, .ws-topbar-section { display: none; }
  .ws-mobile-brand { display: inline; color: var(--text) !important; font-size: 18px; font-weight: 600; letter-spacing: -.5px; }
  .ws-mobile-brand span { color: var(--accent); }
  .ws-topbar-context { gap: 8px; font-size: var(--fs-body); }
  .ws-sidebar { width: 100%; padding: 0 18px 18px; }
  .ws-title-row { align-items: flex-start; }
  .ws-title-row > div { min-width: 0; }
  .ws-title-row .ws-button { padding: 9px 12px; }
  .ws-title-row .ws-button svg { display: none; }
  .ws-title-row .ws-title-secondary { display: none; }
  .ws-button, .ws-icon-button, .ws-nav-link { min-height: 44px; }
  .ws-icon-button { width: 44px; height: 44px; }
  .ws-nav { gap: 4px; }
  .ws-metrics { grid-template-columns: 1fr 1fr; }
  .ws-metric { padding: 16px; }
  .ws-metric:last-child { grid-column: 1 / -1; border-top: 1px solid var(--border); border-left: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .ws-metric:last-child .ws-metric-value { grid-column: 2; grid-row: 1 / 3; margin-top: 0; font-size: 24px; }
  .ws-metric:last-child .ws-metric-note { margin-top: 2px; }
  .ws-metric-value { font-size: 26px; }
  .ws-overview-rail, .ws-detail-rail { grid-template-columns: minmax(0, 1fr); }
  .ws-panel-header, .ws-balance, .ws-complete-panel { padding: 16px; }
  .ws-panel-header { align-items: flex-start; }
  .ws-request-row { padding: 16px; gap: 8px; }
  .ws-row-side { gap: 0; }
  .ws-row-side > svg { display: none; }
  .ws-row-heading { font-size: var(--fs-body); }
  .ws-person-row, .ws-movement { padding: 14px 16px; }
  .ws-balance-value { font-size: 30px; }
  .ws-status-tabs { gap: 20px; }
  .ws-status-tab { padding-bottom: 12px; }
  .ws-toolbar { align-items: stretch; padding-top: 18px; flex-direction: column; gap: 12px; }
  .ws-search { width: 100%; }
  .ws-input, .ws-select { height: 44px; font-size: 16px; }
  .ws-search > svg { top: 14px; }
  .ws-toolbar-end { justify-content: space-between; gap: 8px; }
  .ws-toolbar-end .ws-select { font-size: var(--fs-body); }
  .ws-service-table, .ws-service-table tbody { display: block; }
  .ws-service-table thead { display: none; }
  .ws-service-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; position: relative; padding: 18px 0; border-top: 1px solid var(--border); }
  .ws-service-table td { display: block; border: 0; padding: 0 !important; }
  .ws-service-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .ws-service-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); }
  .ws-service-table td:nth-child(3) { grid-column: 2; grid-row: 2; align-self: center; }
  .ws-service-table td:nth-child(4) { grid-column: 2; grid-row: 1; padding-top: 2px !important; }
  .ws-service-table td:nth-child(5) { grid-column: 1 / -1; grid-row: 3; }
  .ws-service-table td:nth-child(2) .ws-cell-subline { margin-top: 2px; }
  .ws-service-description { max-width: 100%; }
  .ws-service-meta { display: grid; gap: 4px; }
  .ws-cell-actions { justify-content: space-between; }
  .ws-cell-actions > .ws-button { font-weight: 400; font-size: var(--fs-small); }
  .ws-pagination { align-items: flex-start; font-size: var(--fs-small); }
  .ws-pagination .ws-actions { flex-wrap: nowrap; }
  .ws-breadcrumb { margin-bottom: 16px; min-height: 28px; }
  .ws-detail-operation-actions { flex-wrap: wrap; gap: 4px 16px; }
  .ws-detail-title-row { flex-direction: column; }
  .ws-detail-title-row .ws-actions { width: 100%; }
  .ws-detail-title-row .ws-actions > * { flex: 1; }
  .ws-detail-facts { gap: 20px; }
  .ws-detail-summary, .ws-detail-section, .ws-assignment { padding: 16px; }
  .ws-detail-summary .ws-money { font-size: 26px; }
  .ws-photo-grid { grid-template-columns: 1fr 1fr; }
  .ws-photo img { height: 120px; }
}

/* Refined workspace: stronger hierarchy, compact records, consistent blue identity. */
.workspace h2 { font-weight: 600; }
.ws-sidebar { border-right: 1px solid var(--border); }
.ws-brand-row { height: 84px; }
.ws-brand { font-size: 25px; }
.ws-workspace { padding: 12px; font-weight: 500; }
.ws-nav-caption { font-size: 13px; }
.ws-nav-link { min-height: 40px; }
.ws-nav-link.is-active { background: var(--brand-soft); color: var(--primary-hover) !important; position: relative; font-weight: 600; }
.ws-nav-link.is-active::before { content: ''; position: absolute; left: 0; height: 18px; width: 3px; border-radius: 2px; background: var(--accent); }
.ws-topbar { height: 64px; }
.ws-topbar-section { color: var(--text); font-weight: 500; }
.ws-topbar-tools { display: flex; align-items: center; gap: 14px; }
.ws-topbar .ws-preview-notice { padding: 0; margin: 0; border: 0; background: none; font-size: 13px; }
.ws-sheet { background: var(--raised); min-height: calc(100dvh - 72px); padding-top: 28px; }
.ws-title-row { margin-bottom: 28px; }
.ws-button { min-height: 38px; padding: 8px 14px; }
.ws-button-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.ws-metrics { margin-bottom: 24px; background: var(--surface); overflow: hidden; }
.ws-metric { padding: 22px; }
.ws-metric:hover { background: var(--raised); }
.ws-metric-label { font-weight: 500; }
.ws-metric-value { font-weight: 600; margin-top: 12px; }
.ws-metric-note { font-size: 13px; margin-top: 12px; }
.ws-metric-finance, .ws-metric-finance:hover { background: var(--brand-soft); }
.ws-metric-finance .ws-metric-value { color: var(--primary-hover); font-size: 30px; overflow-wrap: anywhere; }
.ws-metric-finance .ws-metric-note { display: flex; align-items: center; justify-content: space-between; }
.ws-metric-finance svg { width: 15px; height: 15px; }
.ws-panel { background: var(--surface); overflow: hidden; }
.ws-panel-header { padding: 20px; border-bottom: 1px solid var(--rule); }
.ws-panel-header .ws-small { margin-top: 3px; }
.ws-text-link { color: var(--accent) !important; font-weight: 500; }
.ws-row-heading { font-weight: 500; }
.ws-request-row { padding: 17px 20px; }
.ws-request-row:first-of-type, .ws-person-row:first-of-type, .ws-movement:first-of-type { border-top: 0; }
.ws-request-row:hover, .ws-person-row:hover { background: var(--row-hover); }
.ws-person-row { padding-top: 16px; padding-bottom: 16px; }
.ws-avatar { background: var(--raised); color: var(--muted); border: 1px solid var(--border); }
.ws-movement { padding-top: 16px; padding-bottom: 16px; }
.ws-movement .ws-money { font-weight: 600; }
.ws-distribution-total { display: flex; align-items: baseline; gap: 10px; padding: 20px 20px 12px; }
.ws-distribution-total strong { font-size: 32px; font-weight: 600; line-height: 1.2; }
.ws-distribution-total > span { color: var(--muted); font-size: 14px; }
.ws-distribution-bar { display: flex; gap: 3px; height: 12px; border-radius: 3px; overflow: hidden; margin: 0 20px 16px; }
.ws-distribution-bar > span { flex-basis: 0; }
.ws-segment-waiting { background: var(--waiting-chart); }
.ws-segment-running { background: var(--running-chart); }
.ws-segment-done { background: var(--done-chart); }
.ws-segment-cancelled { background: var(--cancelled-chart); }
.ws-distribution-legend { padding: 0 20px 12px; }
.ws-distribution-legend a { display: flex; align-items: center; gap: 12px; min-height: 42px; border-bottom: 1px solid var(--rule); }
.ws-distribution-legend a:last-child { border: 0; }
.ws-distribution-legend a > span { display: flex; align-items: center; gap: 9px; flex: 1; }
.ws-distribution-legend i { width: 7px; height: 7px; border-radius: 2px; }
.ws-distribution-legend strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.ws-distribution-legend svg { width: 13px; height: 13px; color: var(--muted); }
.ws-distribution-legend a:hover { color: var(--accent); }
[data-service-list] { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0 20px 20px; }
.ws-status-tabs { gap: 28px; }
.ws-status-tab { min-height: 57px; padding: 16px 0; }
.ws-status-tab.is-active { color: var(--accent); font-weight: 600; }
.ws-status-tab span { background: var(--raised); border-radius: 4px; padding: 1px 6px; min-width: 24px; }
.ws-status-tab.is-active span { background: var(--brand-soft); color: var(--accent); }
.ws-toolbar { padding-top: 20px; }
.ws-service-table th { background: var(--raised); font-weight: 500; padding-top: 10px; padding-bottom: 10px; }
.ws-service-table th:first-child { padding-left: 12px; border-radius: 4px 0 0 4px; }
.ws-service-table th:last-child { padding-right: 12px; border-radius: 0 4px 4px 0; }
.ws-service-table td { padding-top: 14px; padding-bottom: 14px; }
.ws-service-table tbody tr:hover { background: var(--row-hover); }
.ws-service-table .ws-money { font-weight: 600; }
.ws-service-meta { font-size: 13px; margin-top: 6px; }
.ws-service-description { font-size: 13px; }
.ws-detail-title-row { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.ws-detail-summary { background: var(--raised); padding: 24px; }
.ws-detail-summary .ws-money { font-weight: 600; }
.ws-detail-section { padding: 24px; }
.ws-detail-facts { background: var(--raised); padding: 18px; border-radius: 6px; }
.ws-complete-panel { border-top: 3px solid var(--accent); }
.ws-detail-operation-actions { flex-direction: column; align-items: stretch; gap: 6px; }
.ws-detail-operation-actions .ws-button { width: 100%; }
.ws-event-list { padding-top: 20px; }
.ws-panel-header + .ws-panel-body { padding-top: 20px; }
.ws-assignment { padding: 20px 24px; }
@media (min-width: 801px) and (max-width: 1200px) {
  .ws-metric { padding: 18px 14px; }
  .ws-metric-finance .ws-metric-value { font-size: 25px; }
}
@media (max-width: 800px) {
  .ws-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .ws-metric:nth-child(4) { border-top: 1px solid var(--border); }
  .ws-overview-rail > :last-child { grid-column: auto; }
}
@media (max-width: 640px) {
  .ws-topbar { height: 56px; }
  .ws-topbar-tools { gap: 2px; }
  .ws-topbar .ws-preview-notice { font-size: 10px; }
  .ws-sheet { padding-top: 24px; }
  .ws-metric { padding: 16px 14px; }
  .ws-metric:last-child { grid-column: auto; display: block; border-left: 1px solid var(--border); }
  .ws-metric:last-child .ws-metric-value { margin-top: 12px; font-size: 24px; }
  .ws-metric:last-child .ws-metric-note { margin-top: 12px; }
  .ws-metric-note { font-size: 11px; }
  .ws-metric-finance svg { display: none; }
  .ws-overview-rail { grid-template-columns: minmax(0, 1fr); }
  .ws-panel-header { padding: 16px; }
  .ws-request-row { grid-template-columns: minmax(0,1fr); padding: 16px; }
  .ws-row-side { justify-content: flex-start; }
  .ws-row-subline { gap: 4px 8px; }
  .ws-service-table td { padding: 0; }
  [data-service-list] { padding: 0 14px 16px; }
  .ws-status-tabs { gap: 20px; }
  .ws-status-tab { min-height: 52px; }
  .ws-service-table tr { padding: 16px 0; }
  .ws-service-meta { gap: 3px; }
  .ws-detail-summary, .ws-detail-section { padding: 16px; }
  .ws-detail-facts { padding: 14px; gap: 16px; }
  .ws-title-row { margin-bottom: 24px; }
  .ws-button { min-height: 44px; }
}

@media (max-width: 800px) {
  .ws-detail-grid > .ws-column { display: contents; }
  .ws-detail-grid > .ws-column > * { order: 2; }
  .ws-detail-grid section[aria-labelledby="service-info-title"] { order: 0; }
  .ws-detail-grid .ws-complete-panel { order: 1; }
}
@media (max-width: 640px) {
  .ws-distribution-legend a { min-height: 44px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .ws-cell-actions { flex-direction: column; align-items: flex-end; gap: 0; }
  .ws-cell-actions > .ws-button { padding: 6px 0; }
}

/* Brand fields are limited to navigation and financial summary. Status colors retain their meaning. */
.ws-sidebar { background: var(--nav-bg); border-color: var(--nav-rule); color: var(--surface); }
.ws-sidebar .ws-brand { color: var(--surface); }
.ws-sidebar .ws-brand-mark, .ws-sidebar .ws-brand-period { color: var(--brand-mint); }
.ws-sidebar .ws-workspace { background: var(--nav-active); border-color: var(--nav-rule); color: var(--nav-text); }
.ws-sidebar .ws-workspace-dot { background: var(--brand-mint); }
.ws-sidebar .ws-nav-caption { color: var(--nav-muted); }
.ws-sidebar .ws-nav-link { color: var(--nav-text) !important; }
.ws-sidebar .ws-nav-link:hover, .ws-sidebar .ws-nav-link.is-active { background: var(--nav-active); color: var(--surface) !important; }
.ws-sidebar .ws-nav-link.is-active::before { background: var(--brand-mint); }
.ws-sidebar .ws-nav-link.is-active svg { color: var(--brand-mint); }
.ws-sidebar .ws-account { border-color: var(--nav-rule); }
.ws-sidebar .ws-account-name span { color: var(--nav-muted); }
.ws-sidebar .ws-avatar { background: var(--nav-active); border-color: var(--nav-rule); color: var(--brand-mint); }
.ws-sidebar .ws-icon-button { color: var(--nav-text); }
.ws-sidebar .ws-icon-button:hover { background: var(--nav-active); color: var(--surface); }
.ws-sidebar :focus-visible { outline-color: var(--brand-mint); }
.ws-metric-finance, .ws-metric-finance:hover { background: var(--brand-ink); }
.ws-metric-finance .ws-metric-label, .ws-metric-finance .ws-metric-note { color: var(--nav-text); }
.ws-metric-finance .ws-metric-value { color: var(--surface); }
.ws-metric-finance svg { color: var(--brand-mint); }
/* Service forms: W = flexible form + 24px gutter + 280px factual summary. */
.ws-form-layout { display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start; }
.ws-form-fields { min-width:0;border:0;padding:0;margin:0; }
.ws-form-section { margin:0 0 24px; }
.ws-form-section + .ws-form-section { border-top:1px solid var(--border);padding-top:24px; }
.ws-form-section-heading { margin-bottom:20px; }
.ws-form-section-heading h2 { font-weight:600; }
.ws-form-section-heading p { color:var(--muted);margin-top:4px; }
.ws-field { min-width:0;margin-bottom:16px; }
.ws-field label { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-weight:500; }
.ws-required { color:var(--muted);font-size:13px;font-weight:400; }
.ws-service-form .ws-input { padding-left:12px;height:42px; }
.ws-service-form .ws-select { height:42px; }
.ws-textarea { width:100%;border:1px solid var(--control);border-radius:var(--radius-control);padding:10px 12px;background:var(--surface);color:var(--text);font:inherit;resize:vertical;min-height:110px; }
.ws-textarea::placeholder { color:var(--faint); }
.ws-field-pair { display:grid;grid-template-columns:1fr 1fr;gap:24px; }
.ws-field-help { font-size:14px;color:var(--muted);margin-top:7px!important; }
.workspace .ws-field-help a,.workspace .ws-field-link { color:var(--accent);text-decoration:underline;text-underline-offset:3px; }
.ws-field-link { display:inline-block;margin-top:7px;font-size:14px; }
.ws-form-state { min-height:42px;display:flex;align-items:center;font-weight:500; }
.ws-field-error { color:var(--negative);font-size:14px;display:block;margin-top:5px; }
.ws-service-form .input-validation-error { border-color:var(--negative); }
.ws-form-errors.validation-summary-valid { display:none; }
.ws-form-errors.validation-summary-errors { padding:16px;border:1px solid var(--negative);border-radius:var(--radius-control);color:var(--negative);margin-bottom:24px; }
.ws-form-errors ul { margin:0;padding-left:20px; }
.ws-form-actions { display:flex;gap:12px;justify-content:flex-end;border-top:1px solid var(--border);padding-top:20px; }
.ws-form-summary { padding:20px;background:var(--raised);border-radius:var(--radius-card);overflow-wrap:anywhere; }
.ws-form-summary h2 { font-weight:600;margin-bottom:14px; }
.ws-summary-title { font-size:18px;font-weight:500;margin:8px 0 16px!important; }
.ws-form-summary dl { margin:0; }
.ws-form-summary dl>div { border-top:1px solid var(--border);padding:12px 0; }
.ws-form-summary dt { font-size:14px;font-weight:400;color:var(--muted); }
.ws-form-summary dd { margin:4px 0 0; }
.ws-summary-amount { font-size:24px;font-weight:600;font-variant-numeric:tabular-nums; }
.ws-form-preview { margin-top:14px!important;color:var(--muted);font-size:14px; }
.ws-service-form button:disabled { cursor:not-allowed;background:var(--active);color:var(--muted);border-color:var(--control); }
.ws-customer-picker { border:1px solid var(--border);border-radius:var(--radius-card); }
.ws-customer-choice { display:flex;align-items:center;gap:16px;padding:20px;min-width:0; }
.ws-customer-choice + .ws-customer-choice { border-top:1px solid var(--rule); }
.ws-customer-choice>div { flex:1;min-width:0;overflow-wrap:anywhere; }
.ws-customer-choice strong { font-weight:500;display:block;font-size:16px; }
.ws-customer-choice>div>span { display:block;color:var(--muted);font-size:14px;margin-top:2px; }
.ws-choice-action { white-space:nowrap;color:var(--accent);font-weight:500; }
.ws-customer-choice:hover { outline:1px solid var(--control);outline-offset:-1px; }
.ws-picker-search { padding-left:12px; }
@media(max-width:1100px) { .ws-form-layout { grid-template-columns:minmax(0,1fr); } .ws-form-summary { max-width:none; } }
@media(max-width:600px) { .ws-field-pair { grid-template-columns:minmax(0,1fr);gap:0; } .ws-service-form .ws-input,.ws-service-form .ws-select { height:44px; } .ws-form-actions { flex-direction:column-reverse; } .ws-form-actions .ws-button { justify-content:center;min-height:44px; } .ws-customer-choice { padding:16px;gap:12px; } .ws-customer-choice .ws-avatar { display:none; } .ws-form-summary { padding:16px; } }
/* Disabled primary text stays readable despite the shared primary colour rule. */
.ws-service-form .ws-button-primary:disabled { color:var(--muted)!important; }
.ws-form-section { margin-bottom:20px; }
.ws-form-section-heading { margin-bottom:16px; }
.ws-field { margin-bottom:12px; }
.ws-textarea { min-height:96px; }
.ws-service-form fieldset:disabled .ws-input,.ws-service-form fieldset:disabled .ws-select,.ws-service-form fieldset:disabled .ws-textarea { color:var(--muted);opacity:1;-webkit-text-fill-color:var(--muted); }
.workspace .ws-field-help a,.workspace .ws-field-link,.ws-choice-action { color:var(--primary-hover); }
.ws-customer-picker { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border:0; }
.ws-customer-choice { display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:12px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface); }
.ws-customer-choice + .ws-customer-choice { border-top:1px solid var(--border); }
.ws-customer-choice>.ws-avatar { grid-column:1;grid-row:1; }
.ws-customer-choice>div { grid-column:2;grid-row:1; }
.ws-choice-action { grid-column:2;grid-row:2; }
@media(max-width:1100px) { .ws-customer-picker { grid-template-columns:minmax(0,1fr); } .ws-customer-choice { grid-template-columns:32px minmax(0,1fr) auto; } .ws-choice-action { grid-column:3;grid-row:1;align-self:center; } }
@media(max-width:600px) { .ws-customer-choice { grid-template-columns:minmax(0,1fr) auto; } .ws-customer-choice>div { grid-column:1; } .ws-choice-action { grid-column:2; } }
.ws-request-overview { display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:24px; }
.ws-request-next { display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px;margin-bottom:24px;background:var(--raised);border:1px solid var(--border);border-radius:var(--radius-card); }
.ws-request-next h2 { font-weight:600; }
.ws-request-next>.ws-actions { flex-shrink:0; }
.ws-request-description { white-space:pre-wrap;overflow-wrap:anywhere; }
.ws-request-notes-title { font-size:15px;font-weight:500;margin:20px 0 8px; }
.ws-request-assignee { margin-top:16px!important; }
.ws-request-assignment { margin-top:20px; }
.ws-request-assignment label { display:block;margin-bottom:8px;font-weight:500; }
.ws-request-assignment>div { display:flex;gap:12px; }
.ws-request-linked-title { margin:8px 0!important;font-weight:500; }
.ws-request-price { margin:12px 0 16px!important;font-size:24px;font-weight:600;font-variant-numeric:tabular-nums; }
.ws-request-payments { margin:0; }
.ws-request-payments>div+div { padding-top:12px;margin-top:12px;border-top:1px solid var(--rule); }
.ws-request-payments dt { color:var(--muted);font-size:14px;font-weight:400; }
.ws-request-payments dd { margin:4px 0 0;font-size:20px;font-weight:500;font-variant-numeric:tabular-nums; }
.ws-request-brief { margin-bottom:24px; }
@media(max-width:1100px) { .ws-request-next { align-items:flex-start;flex-direction:column;gap:16px; } }
@media(max-width:600px) { .ws-request-next { padding:16px; } .ws-request-next>.ws-actions { flex-wrap:wrap;width:100%; } .ws-request-next .ws-button { min-height:44px; } .ws-request-assignment>div { flex-wrap:wrap; } .ws-request-assignment .ws-button { min-height:44px; } }
/* Customer sheets: remaining canvas = primary column + 24px gutter + 300px guide. */
.ws-customer-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.ws-customer-guide{padding:20px;font-size:15px;line-height:1.65}.ws-customer-guide h2{font-size:16px;margin-bottom:16px}
.ws-customer-form-layout .ws-status-tabs{padding-bottom:0}.ws-customer-form-layout a.ws-status-tab{text-decoration:none}
.ws-cell-line,.ws-cell-secondary{display:block;overflow-wrap:anywhere}.ws-cell-secondary{font-size:13px;color:var(--muted);margin-top:5px}
.ws-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2px 8px}
.ws-customer-table td:nth-child(1){width:25%}.ws-customer-table td:nth-child(2){width:23%}
.ws-customer-table td:nth-child(3){width:14%}.ws-customer-table td:nth-child(4){width:18%}.ws-customer-table td:nth-child(5){width:20%}
.ws-customer-balance{display:flex;flex-direction:column;gap:4px}.ws-customer-balance>strong{font-size:32px;font-variant-numeric:tabular-nums}
.ws-customer-facts{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:20px;margin:24px 0 0;padding-top:20px;border-top:1px solid var(--border)}
.ws-customer-facts dt,.ws-customer-contact dt{font-weight:400;color:var(--muted);font-size:13px}.ws-customer-facts dd{margin:6px 0 0;font-weight:500}.ws-customer-contact{margin:0}.ws-customer-contact dd{margin:5px 0 20px;overflow-wrap:anywhere}.ws-customer-contact dd:last-child{margin-bottom:0}
.ws-customer-history{padding:0 20px}.ws-customer-transaction{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--border)}.ws-customer-transaction:last-child{border-bottom:0}.ws-customer-transaction>strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.ws-customer-money-forms{display:grid;grid-template-columns:1fr 1fr;gap:24px}.ws-customer-money-forms h3{font-size:16px;margin:0 0 8px}.ws-customer-money-forms .ws-field-help{min-height:42px}
[data-customer-form] textarea.ws-input{height:auto;min-height:70px}
@media(max-width:1100px){.ws-customer-form-layout{grid-template-columns:minmax(0,1fr)}.ws-customer-guide{padding:16px 0}.ws-customer-table .ws-row-actions{flex-direction:column;align-items:flex-end}}
@media(max-width:600px){.ws-customer-table td:nth-child(n){width:auto}.ws-customer-table .ws-row-actions{flex-direction:row;align-items:center;justify-content:flex-start}.ws-customer-table td:nth-child(4) .ws-cell-secondary{white-space:normal}.ws-customer-facts{grid-template-columns:1fr 1fr}.ws-customer-money-forms{grid-template-columns:minmax(0,1fr)}.ws-customer-transaction{flex-wrap:wrap}.ws-customer-form-layout .ws-input,[data-customer-form] .ws-input{min-height:44px}}

.ws-customer-form-layout .ws-panel-body{padding-top:20px}
.ws-customer-form-layout .ws-button-primary:disabled{color:var(--muted)!important;background:var(--active);border-color:var(--control)}
.ws-customer-table .ws-service-date{display:block;font-size:13px;color:var(--muted);margin-top:5px}
.ws-customer-table th:nth-child(1){width:25%}.ws-customer-table th:nth-child(2){width:23%}.ws-customer-table th:nth-child(3){width:14%}.ws-customer-table th:nth-child(4){width:18%}.ws-customer-table th:nth-child(5){width:20%}
@media(max-width:640px){.ws-title-row:has(+.ws-detail-grid){flex-direction:column}.ws-title-row:has(+.ws-detail-grid)>.ws-actions{width:100%}}
.ws-customer-table .ws-row-actions{display:grid;grid-template-columns:auto auto;justify-content:end;gap:0 8px}.ws-customer-table .ws-row-actions>button{grid-column:1/-1}.ws-customer-table .ws-row-actions>.ws-button{padding:5px 0;min-height:32px;font-size:14px}
@media(max-width:640px){.ws-customer-table .ws-row-actions{display:flex;gap:8px 20px;justify-content:flex-start}.ws-customer-table .ws-row-actions>.ws-button{min-height:44px}}
/* Employee identity and contact sheets share one 24px gutter. */
.ws-employee-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start;max-width:1000px}
.ws-employee-table td:nth-child(4){font-variant-numeric:tabular-nums}.ws-employee-table th:nth-child(1){width:28%}.ws-employee-table th:nth-child(2){width:30%}.ws-employee-table th:nth-child(3){width:12%}.ws-employee-table th:nth-child(4){width:18%}.ws-employee-table th:nth-child(5){width:12%}
@media(max-width:640px){.ws-employee-detail{grid-template-columns:minmax(0,1fr)}.ws-employee-table td:nth-child(4){text-align:right;font-size:13px;color:var(--muted)}}
/* Finance: summary thirds and a ledger + 300px collection column, 24px gutter. */
.ws-finance-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:20px 0;border-bottom:1px solid var(--border)}.ws-finance-totals>div{display:flex;flex-direction:column;gap:8px}.ws-finance-totals span{color:var(--muted);font-size:14px}.ws-finance-totals strong{font-size:26px;font-variant-numeric:tabular-nums}.ws-finance-scope{margin:12px 0 24px!important}
.ws-finance-table th:nth-child(1){width:27%}.ws-finance-table th:nth-child(2){width:25%}.ws-finance-table th:nth-child(3){width:16%}.ws-finance-table th:nth-child(4){width:20%}.ws-finance-table th:nth-child(5){width:12%}
.ws-finance-detail{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.ws-finance-detail .ws-customer-facts{grid-template-columns:1fr 1fr}.ws-finance-detail .ws-field-help{margin-top:12px}.ws-finance-detail .ws-column{min-width:0}.ws-finance-detail .ws-panel-body{min-width:0}
.ws-ledger-table{width:100%;font-size:14px}.ws-ledger-table th{font-weight:400;color:var(--muted);font-size:13px;text-align:left;padding:12px 6px;border-bottom:1px solid var(--border)}.ws-ledger-table td{padding:16px 6px;border-bottom:1px solid var(--rule);overflow-wrap:anywhere}.ws-ledger-table th:nth-child(n+3),.ws-ledger-table td:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums}.ws-ledger-table td:first-child{min-width:100px}.ws-ledger-table td:nth-child(2){width:26%}.ws-ledger-table td:nth-child(n+3){white-space:nowrap}
[data-collection-form] button:disabled{background:var(--active);color:var(--muted)!important;border-color:var(--control)}
@media(max-width:1100px){.ws-finance-detail{grid-template-columns:minmax(0,1fr)}.ws-finance-detail>aside{grid-row:1;display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}}
@media(max-width:640px){.ws-finance-totals{grid-template-columns:1fr 1fr;gap:20px}.ws-finance-totals>div:last-child{grid-column:1/-1}.ws-finance-totals strong{font-size:22px}.ws-finance-table td:nth-child(2){grid-column:1/-1;grid-row:2;text-align:left}.ws-finance-table td:nth-child(3){grid-column:1;grid-row:3}.ws-finance-table td:nth-child(5){grid-row:4}.ws-finance-detail>aside{display:flex}.ws-ledger-table,.ws-ledger-table tbody{display:block}.ws-ledger-table thead{display:none}.ws-ledger-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px;padding:16px 0;border-bottom:1px solid var(--border)}.ws-ledger-table td{display:block;width:auto!important;padding:0;border:0;min-width:0!important}.ws-ledger-table td:first-child,.ws-ledger-table td:nth-child(2){grid-column:1/-1}.ws-ledger-table td:nth-child(n+3){text-align:left;white-space:normal}.ws-ledger-table td:nth-child(n+3)::before{content:attr(data-label);display:block;font-size:13px;color:var(--muted);margin-bottom:4px}.ws-ledger-table strong{font-weight:600}}
@media(max-width:640px){.ws-finance-detail>div.ws-column{display:contents}.ws-finance-detail>div>.ws-panel:first-child{grid-row:1}.ws-finance-detail>div>.ws-panel:nth-child(2){grid-row:3}.ws-finance-detail>aside{grid-row:2;display:flex;flex-direction:column}.ws-finance-detail>aside>.ws-panel{width:100%}}
[data-ledger] label.ws-field{display:block}
@media(max-width:640px){.ws-finance-totals{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 0}.ws-finance-totals>div{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.ws-finance-totals>div:last-child{grid-column:auto}.ws-finance-totals strong{font-size:20px}.ws-finance-scope{font-size:13px;margin:8px 0 16px!important}}
.ws-finance-table th:nth-child(1){width:25%}.ws-finance-table th:nth-child(2){width:23%}.ws-finance-table th:nth-child(5){width:16%}.ws-finance-table td:last-child .ws-button{padding-left:0;padding-right:0;white-space:normal}
/* Subscription overview halves, plan cards follow the actual plan count. */
.ws-subscription-overview{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.ws-plan-current{font-size:24px;font-weight:600}.ws-subscription-dates{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0 0}.ws-subscription-dates dt{font-size:13px;color:var(--muted);font-weight:400}.ws-subscription-dates dd{margin:5px 0 0}.ws-subscription-queue{list-style:none;padding:0;margin:0}.ws-subscription-queue li+li{border-top:1px solid var(--rule);padding-top:16px;margin-top:16px}.ws-plan-section{margin-top:32px}.ws-plan-section>.ws-title-row{margin-bottom:20px}.ws-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:24px;align-items:stretch}.ws-plan{padding:20px;display:flex;flex-direction:column;justify-content:space-between;gap:24px}.ws-plan h3{font-size:18px;font-weight:500;margin:0 0 16px}.ws-plan-price{font-size:26px;font-weight:600;font-variant-numeric:tabular-nums}.ws-plan-description{margin-top:16px!important;white-space:pre-wrap}.ws-plan .ws-button{width:100%;justify-content:center}.ws-plan button:disabled,[data-account-form] button:disabled{color:var(--muted)!important;background:var(--active);border-color:var(--control)}[data-account-form] textarea.ws-input{height:auto;min-height:72px}
.ws-subscription-state{max-width:760px;margin:40px auto}.ws-subscription-state .ws-panel-body{padding:32px}.ws-subscription-state .ws-subtitle{margin:16px 0 24px}.ws-state-shell{max-width:850px;margin:auto;padding:32px 24px}.ws-state-brand{color:var(--text)!important;display:inline-flex}.ws-state-shell .ws-brand-period{color:var(--accent)}
@media(max-width:700px){.ws-subscription-overview{grid-template-columns:minmax(0,1fr)}.ws-plan-grid{grid-template-columns:minmax(0,1fr)}.ws-subscription-state{margin:0}.ws-subscription-state .ws-panel-body{padding:20px}.ws-state-shell{padding:24px 18px}.ws-state-shell>.ws-subscription-state{margin-top:32px}.ws-subscription-dates{gap:16px}}
.ws-plan-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
@media(max-width:700px){.ws-plan-grid{grid-template-columns:minmax(0,1fr)}}
/* Reports: four values; 2:1 primary sheet, then three supporting answers. */
.ws-report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:20px 0;border-bottom:1px solid var(--border)}.ws-report-metrics>div{display:flex;flex-direction:column;gap:8px}.ws-report-metrics span,.ws-report-metrics small{font-size:13px;color:var(--muted)}.ws-report-metrics strong{font-size:25px;font-variant-numeric:tabular-nums}.ws-report-metrics strong.ws-report-name{font-size:18px;overflow-wrap:anywhere}.ws-report-note{font-size:13px;color:var(--muted);margin:12px 0 24px!important;line-height:1.7}.ws-report-main{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;align-items:start}.ws-report-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start;margin-top:24px}.ws-report-main>.ws-panel,.ws-report-secondary>.ws-panel{min-width:0}.ws-report-main .ws-panel-header,.ws-report-secondary .ws-panel-header{gap:12px;flex-wrap:wrap}.ws-report-chart{--chart-1:var(--accent);--chart-muted:var(--muted);--axis-ink:var(--muted);--ink:var(--text);--grid:var(--rule);min-width:0;width:100%}.ws-report-chart svg{width:100%;height:auto;stroke:none;display:block}.ws-report-chart svg text{font-family:var(--font);fill:var(--muted)}.ws-chart-data{margin-top:12px;font-size:13px;color:var(--muted)}.ws-chart-data summary{cursor:pointer}.ws-chart-data-grid{display:grid;grid-template-columns:1fr;max-height:250px;overflow:auto;margin-top:12px}.ws-chart-data-grid>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0}.ws-report-status{margin:16px 0}.ws-report-status>div{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid var(--rule)}.ws-report-ranking{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--rule)}.ws-report-ranking:last-child{border-bottom:0}.ws-report-ranking>strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.ws-report-filter{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:24px}.ws-report-filter .ws-field{margin:0}.ws-report-filter .ws-form-errors{flex-basis:100%;margin:0}.ws-tracking-table{width:100%;font-size:14px}.ws-tracking-table th{text-align:right;font-size:13px;color:var(--muted);font-weight:400;padding:12px 8px;border-bottom:1px solid var(--border)}.ws-tracking-table td{text-align:right;padding:16px 8px;border-bottom:1px solid var(--rule);font-variant-numeric:tabular-nums}.ws-tracking-table th:first-child,.ws-tracking-table td:first-child{text-align:left}.ws-tracking-table td:first-child{max-width:200px;overflow-wrap:anywhere}
@media(max-width:1100px){.ws-report-secondary{grid-template-columns:1fr 1fr}.ws-report-secondary>.ws-panel:first-child{grid-column:1/-1}.ws-report-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.ws-tracking-table{font-size:13px}.ws-tracking-table td,.ws-tracking-table th{padding-left:4px;padding-right:4px}}
@media(max-width:700px){.ws-report-metrics{grid-template-columns:1fr 1fr;gap:20px}.ws-report-metrics strong{font-size:22px}.ws-report-main,.ws-report-secondary{grid-template-columns:minmax(0,1fr)}.ws-report-filter>.ws-field{width:calc(50% - 8px);min-width:0}.ws-report-filter .ws-input{width:100%}.ws-tracking-table,.ws-tracking-table tbody{display:block}.ws-tracking-table thead{display:none}.ws-tracking-table tr{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;padding:16px 0;border-bottom:1px solid var(--border)}.ws-tracking-table td{display:block;padding:0;text-align:left;border:0;max-width:none!important}.ws-tracking-table td:first-child{grid-column:1/-1;font-size:15px}.ws-tracking-table td:not(:first-child)::before{content:attr(data-label);display:block;color:var(--muted);font-size:13px;margin-bottom:4px}.ws-tracking-table td:last-child{grid-column:1/-1}}
.ws-report-note,.ws-report-metrics span,.ws-report-metrics small,.ws-report-main .ws-field-help,.ws-report-secondary .ws-field-help,.ws-chart-data,.ws-tracking-table th{font-size:14px}.ws-report-note .ws-text-link{color:var(--primary-hover)}.ws-report-ranking .ws-cell-secondary{font-size:14px}.ws-report-filter .validation-summary-valid{display:none}.ws-report-status>div{padding:6px 0}
@media(max-width:1100px){.ws-tracking-table{font-size:14px}}
@media(max-width:700px){.ws-tracking-table td:not(:first-child){text-align:right}.ws-tracking-table td:not(:first-child)::before{font-size:14px}}
.ws-report-note .ws-text-link{color:var(--primary-hover)!important}.ws-report-filter{margin-bottom:8px}
/* Request forms keep native file input and ordered caption rows. */
.ws-request-textarea{height:auto;min-height:140px}.ws-request-fieldset{border:0;padding:0;margin:0;min-width:0}.ws-request-fieldset:disabled .ws-input,.ws-request-fieldset:disabled .ws-select{color:var(--muted);opacity:1}.ws-file-input{display:block;width:100%;min-height:44px;font:inherit;color:var(--text);border:1px solid var(--control);border-radius:var(--radius-control);padding:8px;background:var(--surface)}.ws-file-input::file-selector-button{font:inherit;border:0;border-right:1px solid var(--border);padding:4px 12px 4px 0;margin-right:12px;background:transparent;color:var(--text);cursor:pointer}.ws-request-uploads{display:grid;gap:16px;margin-top:16px}.ws-upload-row{display:grid;grid-template-columns:80px minmax(0,1fr) auto;gap:16px;align-items:start;padding-top:16px;border-top:1px solid var(--rule)}.ws-upload-row img{width:80px;height:80px;object-fit:cover;border-radius:4px}.ws-upload-row strong{display:block;overflow-wrap:anywhere;font-size:14px}.ws-upload-row label{display:block;color:var(--muted);font-size:13px;margin:8px 0}.ws-customer-request-tabs{margin-bottom:24px}.ws-personal-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--rule)}.ws-personal-row:last-child{border-bottom:0}.ws-personal-row>div:first-child{min-width:0;overflow-wrap:anywhere}.ws-personal-amount{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}.ws-personal-money{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:600px){.ws-upload-row{grid-template-columns:56px minmax(0,1fr);gap:12px}.ws-upload-row img{width:56px;height:56px}.ws-upload-row>button{grid-column:2;justify-self:end}.ws-personal-row{align-items:flex-start;flex-wrap:wrap}.ws-upload-row label{font-size:14px}}
.ws-customer-request-tabs .ws-status-tab.is-active,[data-customer-panel] .ws-text-link{color:var(--primary-hover)!important}

/* Invitation work area: remaining width splits 2:1 with a 24px gutter. */
.ws-invite-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:24px;align-items:start}.ws-invite-grid .ws-panel-header{gap:12px;flex-wrap:wrap}.ws-invite-share{margin-top:28px;padding-top:24px;border-top:1px solid var(--border)}.ws-invite-code-qr{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:24px;align-items:start}.ws-invite-code{font-family:var(--font-id);font-size:14px;letter-spacing:.03em}.ws-invite-qr{display:block;max-width:100%;height:auto;background:white}.ws-invite-share .ws-field button,.ws-invite-code-qr button{margin-top:8px}.ws-invite-history{margin-top:24px}.ws-invite-list{list-style:none;margin:0;padding:0}.ws-invite-list li{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--border)}.ws-invite-list li:last-child{border-bottom:0}.ws-invite-list li>div{flex:1;min-width:0}.ws-invite-list strong,.ws-invite-list .ws-muted{display:block}.ws-invite-list .ws-muted{margin-top:4px;font-size:14px}.ws-invite-list form{margin:0}.ws-invite-join{max-width:620px;margin:0 auto;width:100%}.ws-invite-join h1{font-size:26px;line-height:1.2;margin-top:0}.ws-invite-facts{margin:24px 0}.ws-invite-facts>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--border)}.ws-invite-facts dt{color:var(--muted)}.ws-invite-facts dd{margin:0;text-align:right}.ws-invite-entry{margin:24px 0}.ws-invite-entry summary{cursor:pointer;margin-bottom:16px}.ws-invite-grid ol{padding-left:20px}.ws-invite-grid li{margin-bottom:12px}
@media(max-width:1000px){.ws-invite-grid{grid-template-columns:1fr}}@media(max-width:600px){.ws-invite-code-qr{grid-template-columns:1fr}.ws-invite-list li{flex-wrap:wrap}.ws-invite-list li>div{flex-basis:100%}.ws-invite-facts>div{display:block}.ws-invite-facts dd{text-align:left;margin-top:6px}.ws-invite-join h1{font-size:24px}}
.ws-invite-grid .ws-button-primary:disabled,.ws-invite-join .ws-button-primary:disabled{color:var(--muted)!important;background:var(--active);border-color:var(--control)}.ws-invite-join{margin-top:32px}.ws-invite-join>.ws-panel-body{padding:28px}.ws-invite-share h3{font-size:18px}.ws-invite-code{font-family:var(--font-id)}
.ws-invite-history .ws-invite-list li{display:grid;grid-template-columns:minmax(0,1fr) auto}.ws-invite-history .ws-invite-list li>div{grid-column:1/-1}.ws-invite-history .ws-status{justify-self:start}.ws-invite-grid>.ws-column{min-width:0}

/* Account access keeps the CopyBoss frame; 300px context + 32px gap + remaining form. */
.ws-auth-shell{max-width:1160px;margin:0 auto;padding:28px 32px}.ws-auth-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.ws-auth-header .ws-brand{color:var(--text)!important}.ws-auth-header .ws-brand-period{color:var(--primary)}.ws-auth-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:32px;align-items:start}.ws-auth-context{background:var(--brand-ink);color:#eaf0f2;border-radius:8px;padding:28px;min-width:0}.ws-auth-context-label{font-size:14px;color:#bcd8dd}.ws-auth-context h2{font-size:26px;font-weight:500;line-height:1.3;margin:20px 0}.ws-auth-context p{color:#d3e3e7;line-height:1.6}.ws-auth-context dl{margin:28px 0}.ws-auth-context dl>div{padding:12px 0;border-top:1px solid #38525d}.ws-auth-context dt{font-weight:500}.ws-auth-context dd{margin:5px 0 0;color:#d3e3e7;font-size:14px}.ws-auth-context a{color:#d3f1ec!important;text-decoration:underline;text-underline-offset:3px;font-size:14px}.ws-auth-content{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:28px;min-width:0}.ws-auth-title h1{font-size:28px;line-height:1.25;letter-spacing:-.02em;margin:0}.ws-auth-title p{margin:10px 0 24px;color:var(--muted)}.ws-auth-content .ws-field{margin-bottom:16px}.ws-auth-content .ws-input,.ws-auth-content .ws-select{width:100%;min-width:0}.ws-auth-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.ws-auth-check{display:flex;align-items:center;gap:8px;cursor:pointer}.ws-auth-check input{width:18px;height:18px;accent-color:var(--primary)}.ws-auth-submit{width:100%;margin-top:16px}.ws-auth-switch{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin:24px 0 0}.ws-auth-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.ws-auth-wide{grid-column:1/-1}.ws-auth-optional{margin:20px 0}.ws-auth-optional summary{cursor:pointer;padding:12px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.ws-auth-optional summary .ws-muted{margin-left:12px;font-size:14px}.ws-auth-optional[open]>.ws-auth-fields{margin-top:16px}.ws-auth-footer{color:var(--muted);font-size:14px;margin-top:24px}.ws-auth-roles>a{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid var(--border);color:var(--text)!important}.ws-auth-roles>a:first-child{padding-top:0}.ws-auth-roles>a:hover h2{text-decoration:underline;text-underline-offset:4px}.ws-auth-roles h2{font-size:20px;margin:0 0 6px}.ws-auth-roles p{color:var(--muted);margin:0}.ws-auth .ws-button-primary:disabled{color:var(--muted)!important;background:var(--active);border-color:var(--control)}.ws-auth .field-validation-error{font-size:14px!important}.ws-auth .ws-notice{margin-bottom:20px}.ws-auth .ws-form-errors:empty{display:none}
@media(max-width:1000px){.ws-auth-grid{grid-template-columns:240px minmax(0,1fr);gap:24px}.ws-auth-shell{padding:24px}.ws-auth-context{padding:24px}.ws-auth-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.ws-auth-shell{padding:20px 18px}.ws-auth-grid{grid-template-columns:minmax(0,1fr);gap:24px}.ws-auth-context{grid-row:2;min-height:0}.ws-auth-context dl{margin:20px 0}.ws-auth-context h2{font-size:24px}.ws-auth-content{padding:24px 20px}.ws-auth-title h1{font-size:24px}.ws-auth-header{margin-bottom:20px}.ws-auth-options{flex-wrap:wrap}.ws-auth-switch{display:block}.ws-auth-switch>span{display:block;margin-top:12px}}
.ws-auth .ws-text-link{color:var(--primary-hover)!important}.ws-auth-context h2{font-weight:500}.ws-auth-content .ws-input,.ws-auth-content .ws-select{min-height:44px}.ws-auth-grid{align-items:stretch}.ws-auth-context{display:flex;flex-direction:column}.ws-auth-context>a{margin-top:auto}.ws-auth-context dl{margin-bottom:28px}
@media(max-width:700px){.ws-auth-content .ws-input,.ws-auth-content .ws-select{font-size:16px}.ws-auth-context{display:block}}
.ws-auth .ws-auth-switch{margin-top:24px}

/* Role dashboards: 2 equal work columns, 24px gap; nested panels stack naturally. */
.ws-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.ws-role-grid>.ws-column{display:grid;gap:24px;min-width:0}.ws-role-grid .ws-panel-header{gap:12px;flex-wrap:wrap}.ws-role-state{text-align:right;display:grid;gap:6px;justify-items:end}.ws-role-state>.ws-muted{font-size:14px}.ws-role-grid .ws-personal-row{gap:16px}.ws-role-grid .ws-personal-row>div:first-child{min-width:0}.ws-role-grid .ws-text-link{white-space:normal}.ws-role-grid .ws-text-link,.ws-inbox-pages a{color:var(--primary-hover)!important}.ws-role-grid .ws-service-title{overflow-wrap:anywhere}.ws-inbox-item{padding:24px 0;border-bottom:1px solid var(--border)}.ws-inbox-item:last-child{border-bottom:0}.ws-inbox-item>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.ws-inbox-item h3{font-size:16px;margin:0 0 6px;line-height:1.4;font-weight:500;overflow-wrap:anywhere}.ws-inbox-item[data-read="false"] h3{font-weight:600}.ws-inbox-item .ws-inbox-message{margin:16px 0;white-space:pre-wrap;overflow-wrap:anywhere;max-width:80ch}.ws-inbox-actions{display:flex;gap:12px;flex-wrap:wrap}.ws-inbox-actions form,.ws-title-row form{margin:0}.ws-inbox-pages{display:flex;justify-content:center;align-items:center;gap:16px;margin:24px 0}.ws-inbox-clear{margin-top:24px;max-width:720px}.ws-inbox-clear summary{cursor:pointer;color:var(--muted)}.ws-inbox-clear p{margin:16px 0}.ws-inbox-clear button{margin-top:16px}.ws-inbox-clear .ws-auth-check{align-items:flex-start}.ws-inbox-clear input{flex:none}.workspace [data-notification-form] .ws-button-primary:disabled{color:var(--muted)!important}
@media(max-width:1000px){.ws-role-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:600px){.ws-role-state{justify-items:start;text-align:left}.ws-inbox-item>header{display:block}.ws-inbox-item>header>.ws-status{margin-top:12px}}
.workspace .ws-inbox-tabs .ws-status-tab.is-active,.workspace .ws-inbox-tabs .ws-status-tab.is-active span{color:#fff!important}
@media(max-width:600px){.ws-inbox-title{display:block}.ws-inbox-title>form{margin-top:16px}.ws-inbox-title button{width:100%;justify-content:center}}
.ws-delete-request{max-width:800px}.ws-delete-request>.ws-panel-body{padding:28px}.ws-delete-request h2{font-size:22px}.ws-delete-request p{margin:20px 0}.ws-checkout h1,.ws-subscription-state h1{font-size:28px;line-height:1.25}.ws-checkout #iyzipay-checkout-form{max-width:100%;min-width:0;margin:24px 0}.ws-delete-request .ws-button-primary:disabled{color:var(--muted)!important;background:var(--active)}
.ws-checkout-billing .ws-button-primary:disabled{color:var(--muted)!important;background:var(--active);border-color:var(--control)}.ws-checkout-billing textarea.ws-input{height:auto;min-height:90px;font:inherit}.ws-checkout-billing .ws-notice{margin-bottom:20px}
/* Shared account interaction finishing: preserve focus, text scale and the current frame. */
.ws-sidebar{overscroll-behavior:contain}
.ws-form-errors a{text-decoration:underline;text-underline-offset:.18em}
.workspace [data-account-form] [aria-disabled="true"],.workspace [data-auth-form] [aria-disabled="true"]{cursor:wait;color:var(--muted)!important;background:var(--active);border-color:var(--control)}
.workspace [data-account-form] input,.workspace [data-auth-form] input{scroll-margin-block:80px}
@media(max-width:700px),(pointer:coarse){.workspace input.ws-input,.workspace select.ws-select,.workspace textarea.ws-input{font-size:1rem}}
@media(forced-colors:active){.workspace :focus-visible{outline-color:Highlight}.workspace .ws-sidebar :focus-visible{outline-color:Highlight}}
.workspace [data-account-form] .field-validation-error,.workspace [data-auth-form] .field-validation-error{color:var(--negative)!important;font-size:.8125rem!important;line-height:1.5}
/* Lists and confirmations retain the existing frame and native Bootstrap behavior. */
[data-service-list]{scroll-margin-block-start:76px}
.ws-row-menu .dropdown-menu,.ws-modal{overscroll-behavior:contain}
.ws-modal [aria-disabled="true"]{cursor:wait;color:var(--muted)!important;background:var(--active);border-color:var(--control)}
@media(max-width:700px){.ws-toolbar-end{flex-wrap:wrap}.ws-list-reset{margin-left:auto}}
[data-results-count],[data-page-range]{font-variant-numeric:tabular-nums}
.ws-modal .modal-body{overflow-wrap:anywhere}.ws-modal .modal-title{min-width:0;overflow-wrap:anywhere}
.ws-modal .ws-button:disabled{color:var(--muted)!important;background:var(--active);border-color:var(--control)}

/* Shared CRUD pending controls retain focus and the action name. */
.workspace :is([data-customer-form],[data-employee-form],[data-collection-form]) [aria-disabled="true"]{cursor:wait;color:var(--muted)!important;background:var(--active);border-color:var(--control)}
.workspace :is([data-customer-form],[data-employee-form],[data-collection-form]) :is(input,textarea){scroll-margin-block:80px}

/* Service/request forms use the same pending and mobile text behavior. */
.workspace :is([data-service-form],[data-request-form]) [aria-disabled="true"]{cursor:wait;color:var(--muted)!important;background:var(--active);border-color:var(--control)}
.workspace :is([data-service-form],[data-request-form]) :is(input,select,textarea){scroll-margin-block:80px}
@media(max-width:700px),(pointer:coarse){.workspace textarea.ws-textarea{font-size:1rem}}

/* Approval and assignment share the existing focus-preserving pending state. */
.workspace :is([data-request-approval],[data-request-assignment]) [aria-disabled="true"]{cursor:wait;color:var(--muted)!important;background:var(--active);border-color:var(--control)}
.workspace :is([data-request-approval],[data-request-assignment]) :is(input,select){scroll-margin-block:80px}

/* Invitation and billing forms keep the common action label and keyboard focus. */
.workspace :is([data-invitation-form],[data-billing-form]) [aria-disabled="true"]{cursor:wait;color:var(--muted)!important;background:var(--active);border-color:var(--control)}
.workspace [data-notification-form] [aria-disabled="true"]{cursor:wait;color:var(--muted)!important;background:var(--active);border-color:var(--control)}
[data-report-filter] .ws-form-errors{scroll-margin-top:80px}
.workspace :is([data-invitation-form],[data-billing-form]) :is(input,select,textarea){scroll-margin-block:80px}

.ws-invite-join [data-invitation-error]{margin-top:16px}

/* 7 Kasım: Boş durumlar. Liste hiç kayıt içermiyorsa (data-first-run) boş tablo başlığı,
   sıfır sayaçlı sekmeler ve arama gizlenir; yerine ne yapılacağını söyleyen ortalanmış blok gelir.
   Arama/filtre sonucu boşsa (data-list-empty) aynı görünüm kullanılır ama kontroller kalır. */
.ws-list-empty { padding: 56px 24px 48px; text-align: center; }
.ws-list-empty::before { content: ""; display: block; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087E8B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16l2 11v5H2v-5L4 4Z'/%3E%3Cpath d='M2 15h6l2 3h4l2-3h6M8 8h8M8 11h6'/%3E%3C/svg%3E") no-repeat center / 22px; }
.ws-list-empty h2 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.ws-list-empty .ws-subtitle { max-width: 46ch; margin: 0 auto; }
.ws-list-empty .ws-actions, .ws-list-empty > .ws-button { justify-content: center; margin-top: 20px; }
.ws-list-empty > .ws-button { display: inline-flex; }
[data-service-list]:has([data-first-run]) :is(.ws-service-table, [data-list-controls]) { display: none !important; }
.ws-empty { padding: 28px 20px; line-height: 1.6; }
.ws-chart-empty { display: grid; place-items: center; min-height: 140px; padding: 16px; margin: 0; text-align: center; color: var(--muted); background: var(--raised); border-radius: var(--radius-card); }
/* Çalışma alanı etiketi tıklanabilir değil; düğme gibi kutu yerine sade bir başlık satırı olarak gösterilir. */
.ws-sidebar .ws-workspace { background: transparent; border-color: transparent; border-bottom-color: var(--nav-rule); border-radius: 0; padding: 4px 4px 16px; color: var(--nav-muted); font-weight: 500; }

/* =====================================================================================
   8 Kasım: Ortak sayfa ve form sistemi
   Sorun: iki ayrı form ailesi (kartlı ws-customer-form-layout / kartsız ws-form-layout),
   farklı kutu yükseklikleri (36 / 42 / 44 px), tüm giriş kutularına uygulanan arama ikonu
   girintisi, ultra geniş ekranda kenardan kenara uzayan içerik ve çerçevesiz yan metinler.
   Mevcut sınıflara bağlanır; Razor işaretlemesi, form hedefleri ve doğrulama değişmez.
   ===================================================================================== */

/* Sayfa genişliği: içerik en fazla 1280 px, form sayfaları 1120 px; başlık, düğme ve içerik aynı kenarlara hizalanır. */
.ws-sheet > :not(.modal):not(script):not(template) { max-width: 1280px; margin-left: auto; margin-right: auto; }
.ws-sheet:has(.ws-customer-form-layout, .ws-form-layout) > :not(.modal):not(script):not(template) { max-width: 1120px; }

/* Giriş kutuları: tek yükseklik, tek köşe, tek odak halkası. Arama ikonu girintisi yalnız arama kutusunda. */
.workspace .ws-input, .workspace .ws-select, .workspace .ws-textarea {
  min-height: 44px; height: auto; padding: 10px 14px; font-size: var(--fs-body); line-height: 1.4;
  border: 1px solid #C9D6DC; border-radius: 8px; background: var(--surface); color: var(--text);
  box-shadow: 0 1px 2px #142D3B0a; transition: border-color .15s, box-shadow .15s;
}
.workspace .ws-select { padding-right: 36px; }
.workspace textarea.ws-input, .workspace .ws-textarea { min-height: 96px; resize: vertical; }
.workspace .ws-input:hover, .workspace .ws-select:hover, .workspace .ws-textarea:hover { border-color: var(--control); }
.workspace .ws-input:focus, .workspace .ws-select:focus, .workspace .ws-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px #087E8B26; }
.workspace .ws-input[aria-invalid="true"], .workspace .input-validation-error { border-color: var(--negative); }
.workspace .ws-search .ws-input { padding-left: 40px; }
.workspace .ws-search > svg { top: 50%; transform: translateY(-50%); left: 14px; }
.workspace .ws-toolbar .ws-input, .workspace .ws-toolbar .ws-select { min-height: 40px; }

/* Etiket, yardım ve alan aralıkları */
.workspace .ws-field { margin-bottom: 20px; }
.workspace .ws-field > label, .workspace .ws-field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.workspace .ws-required { font-size: 12px; font-weight: 500; color: var(--muted); }
.workspace .ws-field-help { margin-top: 6px !important; font-size: 13px; line-height: 1.5; }
.workspace .ws-field-pair { gap: 20px; }

/* İki form ailesi aynı ızgarayı kullanır: ana kart + 300 px yan kart. */
.ws-customer-form-layout, .ws-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }

/* Ana form her zaman bir kart; servis formunun kartsız fieldset'i de karta dönüşür. */
.workspace .ws-panel { border-radius: 12px; box-shadow: 0 1px 2px #142D3B0a; }
.ws-form-layout > .ws-form-fields { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; box-shadow: 0 1px 2px #142D3B0a; }
.workspace .ws-panel-header h2, .workspace .ws-form-section-heading h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.workspace .ws-form-section-heading p { font-size: 14px; }
.ws-customer-form-layout .ws-panel-body { padding: 24px; }
.ws-customer-form-layout .ws-panel-header + .ws-panel-body { padding-top: 20px; }

/* Yan kart: çerçevesiz yüzen metin yerine bilgi kartı; formla birlikte kayar. */
.workspace .ws-customer-guide, .workspace .ws-form-summary {
  position: sticky; top: 24px; padding: 22px 22px 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px #142D3B0a; font-size: 14px; line-height: 1.6; color: var(--muted);
}
.workspace .ws-customer-guide h2, .workspace .ws-form-summary > h2 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--text);
}
.workspace .ws-customer-guide h2::before {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087E8B' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.workspace .ws-customer-guide p { margin: 0; }
.workspace .ws-customer-guide p + p { margin-top: 10px; }
.workspace .ws-customer-guide p:first-of-type { color: var(--text); }

/* Form eylemleri: kartın altında, sağda, eşit yükseklikte. */
.workspace .ws-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--rule); }
.workspace .ws-form-actions .ws-button { min-height: 44px; padding: 0 20px; border-radius: 8px; font-weight: 600; }
.workspace .ws-button { border-radius: 8px; }
.workspace .ws-button-primary { box-shadow: 0 1px 0 #ffffff26 inset, 0 6px 16px -10px #087E8Bb3; }


/* Bilgi şeridi (ör. "Bağlantıyla davet edin" + düğme): metin ve eylem iki uca. */
.workspace .ws-notice:has(> .ws-button) { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 16px 14px 18px; border-radius: 12px; }

@media (max-width: 1100px) {
  .ws-customer-form-layout, .ws-form-layout { grid-template-columns: minmax(0, 1fr); }
  .workspace .ws-customer-guide, .workspace .ws-form-summary { position: static; }
}
@media (max-width: 700px) {
  .ws-form-layout > .ws-form-fields, .ws-customer-form-layout .ws-panel-body { padding: 18px; }
  .workspace .ws-field-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .workspace .ws-form-actions { flex-direction: column-reverse; align-items: stretch; }
  .workspace .ws-input, .workspace .ws-select, .workspace .ws-textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .workspace .ws-input, .workspace .ws-select, .workspace .ws-textarea { transition: none; } }
.ws-eyebrow-note { display: inline-block; font-size: 13px; font-weight: 500; color: var(--muted); }

/* =====================================================================================
   8 Kasım (2): Kart hizası, zebra listeler, düğme ve rozet rötuşu
   ===================================================================================== */

/* Aynı sıradaki kartlar eşit boyda; sütunda üst üste duran kartların sonuncusu sütunun dibine uzar.
   Böylece Genel bakış, Raporlar ve Davetler'de kartların alt kenarları aynı çizgide biter. */
@media (min-width: 1101px) {
  .ws-overview-grid, .ws-invite-grid, .ws-report-main, .ws-report-secondary { align-items: stretch; }
  .ws-overview-grid > .ws-column, .ws-invite-grid > .ws-column { display: flex; flex-direction: column; gap: var(--gap); }
  .ws-overview-grid > .ws-column > .ws-panel:last-child, .ws-invite-grid > .ws-column > .ws-panel:last-child { flex: 1 1 auto; }
  .ws-report-main > .ws-panel, .ws-report-secondary > .ws-panel, .ws-invite-grid > .ws-panel { display: flex; flex-direction: column; }
  .ws-report-main > .ws-panel > .ws-panel-body, .ws-report-secondary > .ws-panel > .ws-panel-body { flex: 1 1 auto; display: flex; flex-direction: column; }
  .ws-report-main .ws-report-chart, .ws-report-secondary .ws-report-chart { flex: 1 1 auto; }
  .ws-report-status + .ws-button-text { margin-top: auto; }
}
.ws-invite-grid .ws-panel-body > p:first-child { margin: 0 0 20px; color: var(--muted); }

/* Metin düğmeleri: sonraki genel kural iç boşluğu geri ekliyordu; içeriden kayık görünmesin. */
.workspace .ws-button.ws-button-text { padding-left: 0; padding-right: 0; min-height: 0; border: 0; background: none; box-shadow: none; font-weight: 600; color: var(--primary-hover); }
.workspace .ws-button.ws-button-text:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.workspace .ws-button.ws-button-text.ws-button-danger { color: var(--negative) !important; font-weight: 500; }

/* Satır eylemleri: küçük, hayalet düğmeler; hover'da zemin kazanır. Tehlikeli eylem sakin ama ayırt edilir. */
.workspace .ws-row-actions { gap: 4px; }
.workspace .ws-row-actions .ws-button.ws-button-text { padding: 6px 10px; border-radius: 6px; font-size: 14px; color: var(--text); text-decoration: none; }
.workspace .ws-row-actions .ws-button.ws-button-text:hover { background: var(--brand-soft); color: var(--primary-hover); text-decoration: none; }
.workspace .ws-row-actions .ws-button.ws-button-text.ws-button-danger { color: var(--negative) !important; font-weight: 500; }
.workspace .ws-row-actions .ws-button.ws-button-text.ws-button-danger:hover { background: var(--cancelled-bg); }

/* Zebra listeler: tablolarda çift satırlar çok hafif tonlu, üzerine gelinen satır belirgin. */
.workspace :is(.ws-service-table, .ws-ledger-table, .ws-tracking-table) tbody tr:nth-child(even) { background: #F7FAFB; }
.workspace :is(.ws-service-table, .ws-ledger-table, .ws-tracking-table) tbody tr { transition: background .12s; }
.workspace :is(.ws-service-table, .ws-ledger-table, .ws-tracking-table) tbody tr:hover { background: var(--row-hover); }
.workspace .ws-service-table th { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); background: var(--raised); }
.workspace .ws-service-table thead th:first-child { border-top-left-radius: 8px; }
.workspace .ws-service-table thead th:last-child { border-top-right-radius: 8px; }
/* Kart içi listeler (son talepler, hesap hareketleri, kişiler) için yalnız hover vurgusu. */
.workspace :is(.ws-request-row, .ws-person-row, .ws-personal-row) { transition: background .12s; }
.workspace a.ws-request-row:hover, .workspace :is(.ws-request-row, .ws-person-row):hover { background: var(--row-hover); }

/* Düğmeler: ikincil düğme beyaz zemin + ince gölge; hover'da marka rengine döner. */
.workspace .ws-button:not(.ws-button-primary):not(.ws-button-text) { background: var(--surface); border-color: #C9D6DC; box-shadow: 0 1px 2px #142D3B0f; font-weight: 600; transition: border-color .15s, color .15s, background .15s; }
.workspace .ws-button:not(.ws-button-primary):not(.ws-button-text):hover { border-color: var(--primary); color: var(--primary-hover); background: #FBFEFE; }
.workspace .ws-button-primary { background: linear-gradient(180deg, #0A8A98 0%, var(--primary) 100%); border-color: var(--primary-hover); font-weight: 600; }
.workspace .ws-button-primary:hover { filter: brightness(1.05); }

/* Durum rozetleri: hap biçimli, biraz daha dolgun ve okunur. */
.workspace .ws-status { border-radius: 999px; padding: 3px 10px 3px 9px; font-size: 13px; font-weight: 600; }
.workspace .ws-status::before { width: 6px; height: 6px; }

@media (prefers-reduced-motion: reduce) {
  .workspace :is(.ws-service-table, .ws-ledger-table, .ws-tracking-table) tbody tr, .workspace .ws-button { transition: none; }
}
/* Rapor notu kendi !important kenar boşluğuyla genişlik sınırının dışına taşıyordu. */
.ws-sheet > .ws-report-note { margin-left: auto !important; margin-right: auto !important; max-width: 1280px; }

/* =====================================================================================
   8 Kasım (3): Renk, filtreler, özet kartları, halka grafik
   ===================================================================================== */

/* Sayfa çocukları kendi !important kenar boşluklarıyla hizadan taşmasın (rapor/finans notları). */
.ws-sheet > :not(.modal):not(script):not(template) { margin-left: auto !important; margin-right: auto !important; }

/* Tablo başlıkları: marka renginde nane zemin + petrol yazı; tüm tablolarda aynı. */
.workspace :is(.ws-service-table, .ws-ledger-table, .ws-tracking-table, .ws-finance-table) thead th {
  background: var(--brand-soft); color: var(--primary-hover); font-size: 13px; font-weight: 600; letter-spacing: .02em;
  border-bottom: 0; padding-top: 13px; padding-bottom: 13px;
}
.workspace :is(.ws-ledger-table, .ws-tracking-table) thead th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; padding-left: 14px; }
.workspace :is(.ws-ledger-table, .ws-tracking-table) thead th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; padding-right: 14px; }
.workspace .ws-service-table thead th:first-child { border-bottom-left-radius: 8px; }
.workspace .ws-service-table thead th:last-child { border-bottom-right-radius: 8px; }

/* Durum sekmeleri → huni ikonlu hap filtre düğmeleri. Etkin filtre dolu, sayaç rozetli. */
.workspace .ws-status-tabs { align-items: center; gap: 8px; padding: 2px 0 16px; border-bottom: 1px solid var(--rule); }
.workspace .ws-status-tabs::before {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 10px; margin-right: 4px;
  background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526975' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6 7.5V19l-4-2v-4.5L4 5Z'/%3E%3C/svg%3E") center / 17px no-repeat;
}
.workspace .ws-status-tab { min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; transition: background .15s, border-color .15s, color .15s; }
.workspace .ws-status-tab:hover { border-color: var(--primary); color: var(--primary-hover); }
.workspace .ws-status-tab.is-active, .workspace .ws-status-tab[aria-pressed="true"], .workspace .ws-status-tab[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.workspace .ws-status-tab span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--raised); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.workspace .ws-status-tab.is-active span, .workspace .ws-status-tab[aria-pressed="true"] span, .workspace .ws-status-tab[aria-current="page"] span { background: #ffffff33; color: #fff; }

/* Rapor tarih filtresi: kart içinde, alanlar ve düğmeler aynı taban çizgisinde. */
.workspace .ws-report-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 18px 20px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px #142D3B0a; }
.workspace .ws-report-filter::before { content: "Tarih aralığı"; flex: 1 0 100%; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-hover); }
.workspace .ws-report-filter .ws-field { margin: 0; min-width: 190px; }
.workspace .ws-report-filter .ws-button { min-height: 44px; padding: 0 20px; }
.workspace .ws-report-filter .ws-form-errors { flex: 1 0 100%; }
.workspace .ws-report-filter .ws-form-errors:empty { display: none; }

/* Özet rakamlar → renk vurgulu kartlar (finans ve rapor). */
.workspace :is(.ws-finance-totals, .ws-report-metrics) { gap: 16px; padding: 0; margin-bottom: 8px; border-bottom: 0; }
.workspace :is(.ws-finance-totals, .ws-report-metrics) > div {
  position: relative; padding: 18px 20px 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px #142D3B0a; overflow: hidden;
}
.workspace :is(.ws-finance-totals, .ws-report-metrics) > div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--primary); }
.workspace :is(.ws-finance-totals, .ws-report-metrics) > div:nth-child(2)::before { background: var(--running-chart); }
.workspace :is(.ws-finance-totals, .ws-report-metrics) > div:nth-child(3)::before { background: var(--done-chart); }
.workspace :is(.ws-finance-totals, .ws-report-metrics) > div:nth-child(4)::before { background: var(--waiting-chart); }
.workspace .ws-finance-totals > div:nth-child(2)::before { background: var(--cancelled-chart); }
.workspace .ws-finance-totals > div:nth-child(3) { background: var(--brand-ink); border-color: var(--brand-ink); }
.workspace .ws-finance-totals > div:nth-child(3)::before { background: var(--brand-mint); }
.workspace .ws-finance-totals > div:nth-child(3) span { color: #A4BAC5; }
.workspace .ws-finance-totals > div:nth-child(3) strong { color: #fff; }
.workspace .ws-finance-scope, .workspace .ws-report-note { margin-top: 10px !important; margin-bottom: 24px !important; }

/* Halka (pasta) grafik: conic-gradient, JS gerekmez. Değerler Razor'da hesaplanır; açıklama listesi metin olarak verilir. */
.ws-donut-wrap { display: flex; align-items: center; gap: 20px; margin: 4px 0 16px; }
.ws-donut { position: relative; flex: none; width: 112px; height: 112px; border-radius: 50%; }
.ws-donut::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--surface); }
.ws-donut > span { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; font-size: 22px; font-weight: 600; line-height: 1.1; }
.ws-donut > span small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.ws-donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; min-width: 0; font-size: 14px; }
.ws-donut-legend li { display: flex; align-items: center; gap: 8px; }
.ws-donut-legend li > i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.ws-donut-legend li > :is(b, strong) { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.ws-finance-totals .ws-donut { width: 72px; height: 72px; }
.ws-finance-totals .ws-donut::after { inset: 12px; }
.ws-finance-totals .ws-donut > span { font-size: 15px; }
.ws-finance-totals .ws-donut-wrap { margin: 0; gap: 14px; }
.ws-finance-totals .ws-donut-legend { gap: 4px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { .workspace .ws-status-tab { transition: none; } }
.workspace .ws-finance-totals:has(> .ws-finance-states) { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(240px, 1.2fr); }
.workspace .ws-finance-totals > .ws-finance-states { display: flex; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.workspace .ws-finance-totals > .ws-finance-states::before { background: var(--waiting-chart); }
@media (max-width: 1100px) { .workspace .ws-finance-totals:has(> .ws-finance-states) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .workspace .ws-finance-totals > .ws-finance-states { grid-column: auto; } }
@media (max-width: 640px) { .workspace .ws-finance-totals:has(> .ws-finance-states) { grid-template-columns: minmax(0, 1fr); } }

/* Abonelik: geçerli paket kartı, kalan süre, paket kartları */
.workspace .ws-subscription-overview { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: stretch; margin-bottom: 20px; }
.ws-plan-hero { padding: 22px 24px; background: linear-gradient(135deg, #173444 0%, var(--brand-ink) 65%, #0F2430 100%) !important; border-color: var(--brand-ink) !important; color: #EAF0F2; }
.ws-plan-hero > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ws-plan-hero h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-mint); }
.ws-plan-hero .ws-plan-current, .ws-plan-hero .ws-plan-none { margin: 14px 0 16px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.ws-plan-hero-help { margin: 0; color: #C3D3DA; }
.ws-plan-progress { height: 8px; border-radius: 999px; background: #ffffff1f; overflow: hidden; }
.ws-plan-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-mint), #6FD3C0); }
.ws-plan-hero .ws-subscription-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.ws-plan-hero .ws-subscription-dates dt { color: #A4BAC5; font-size: 13px; }
.ws-plan-hero .ws-subscription-dates dd { margin: 4px 0 0; color: #fff; font-weight: 600; }
.workspace .ws-notice-info { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--running-bg); border: 1px solid #CFE0F2; color: var(--running-ink); }
.workspace .ws-notice-info::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23285C91' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / 20px no-repeat; }
.workspace .ws-notice-info > .ws-notice-body { min-width: 0; display: grid; gap: 8px; }
.workspace .ws-notice-body > p { margin: 0; }

.ws-plan-section { margin-top: 32px; }
.ws-plan-section-head { margin-bottom: 18px; }
.ws-plan-section-head h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.ws-plan-section-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 70ch; }
.workspace .ws-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.workspace .ws-plan { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 22px 20px 20px; overflow: visible; transition: box-shadow .15s, transform .15s; }
.workspace .ws-plan:hover { box-shadow: 0 18px 36px -26px #142D3B80; transform: translateY(-2px); }
.workspace .ws-plan.is-featured { border: 2px solid var(--primary); box-shadow: 0 20px 40px -28px #087E8Bcc; }
.workspace .ws-plan.is-trial { background: linear-gradient(180deg, var(--brand-soft) 0%, var(--surface) 55%); }
.ws-plan-badge { position: absolute; top: -12px; left: 20px; padding: 3px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; box-shadow: 0 6px 14px -8px #087E8B; }
.workspace .ws-plan h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.workspace .ws-plan .ws-plan-price { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.ws-plan-per { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.ws-plan-saving { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--done-bg); color: var(--done-ink); font-size: 12px; font-weight: 600; }
.ws-plan-features { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 9px; font-size: 14px; }
.ws-plan-features li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.ws-plan-features li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23087E8B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5l2.2 2.2L11.5 6'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ws-plan-action .ws-button { width: 100%; min-height: 44px; }
.ws-plan-action .ws-button:disabled { background: var(--raised) !important; color: var(--muted) !important; border-color: var(--border) !important; box-shadow: none !important; filter: none; cursor: not-allowed; }
@media (max-width: 1180px) { .workspace .ws-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }
@media (max-width: 900px) { .workspace .ws-subscription-overview { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .workspace .ws-plan-grid { grid-template-columns: minmax(0, 1fr); } .ws-plan-hero .ws-subscription-dates { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .workspace .ws-plan { transition: none; } .workspace .ws-plan:hover { transform: none; } }

/* Hesap ayarları: profil kartı, bölümlü form, yan kartlar. */
.ws-settings-main { display: grid; gap: 20px; min-width: 0; align-content: start; }
.workspace .ws-profile-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: linear-gradient(135deg, #173444 0%, var(--brand-ink) 70%); border-color: var(--brand-ink); color: #fff; }
.ws-profile-avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-mint); color: var(--brand-ink); font-size: 20px; font-weight: 600; }
.ws-profile-meta { flex: 1; min-width: 0; }
.ws-profile-meta strong { display: block; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.ws-profile-meta span { display: block; margin-top: 2px; color: #C3D3DA; font-size: 14px; overflow-wrap: anywhere; }
.ws-profile-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.ws-profile-company { font-size: 14px; color: #C3D3DA; }
.ws-settings-aside { display: grid; gap: 16px; position: sticky; top: 24px; align-self: start; }
.workspace .ws-settings-aside .ws-customer-guide { position: static; }
.workspace .ws-settings-card { padding: 20px 22px; }
.workspace .ws-settings-card h2 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.workspace .ws-settings-card p { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.workspace .ws-settings-card .ws-button { width: 100%; min-height: 40px; }
@media (max-width: 1100px) { .ws-settings-aside { position: static; } }
@media (max-width: 600px) { .workspace .ws-profile-card { flex-wrap: wrap; } .ws-profile-tags { justify-content: flex-start; } }
/* Halka grafik orta etiketi: sayı ve birim alt alta, birlikte ortalı. */
.ws-donut > span { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ws-report-main .ws-donut-wrap { margin-top: 16px; }

/* Hesap kapatma */
.ws-close-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ws-close-summary > div { padding: 16px; border-radius: 10px; background: var(--raised); }
.ws-close-summary > div:first-child { background: var(--cancelled-bg); }
.ws-close-summary h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.ws-close-summary ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.ws-close-warning { margin: 0 0 20px; font-size: 14px; font-weight: 600; color: var(--negative); }
.workspace .ws-button-danger-solid { background: var(--negative); border-color: var(--negative); color: #fff !important; font-weight: 600; }
.workspace .ws-button-danger-solid:hover { filter: brightness(1.08); }
.workspace .ws-settings-danger h2 { color: var(--negative); }
@media (max-width: 700px) { .ws-close-summary { grid-template-columns: minmax(0, 1fr); } }

/* 2026-11-08 Gelen mesajlar (site yöneticisi): bildirim kutusu bileşenlerini kullanır */
.ws-contact-item h3 a{color:inherit!important;text-decoration:none}.ws-contact-item h3 a:hover{text-decoration:underline}
.ws-contact-item[data-read="true"] h3{font-weight:500}
.ws-contact-body{margin:0 0 24px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:72ch;line-height:1.65}
.ws-contact-retention{margin:24px 0 0;max-width:72ch}
.ws-contact-facts{grid-template-columns:minmax(0,1fr);gap:16px;margin-top:0}.ws-contact-facts dd{overflow-wrap:anywhere}
.ws-customer-guide .ws-contact-facts + p{margin-top:20px}
.ws-sidebar .ws-nav-caption-admin{margin-top:20px}
@media(max-width:600px){.ws-contact-title{flex-direction:column;align-items:stretch;gap:16px}.ws-contact-title .ws-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ws-contact-title .ws-actions .ws-button{justify-content:center;text-align:center}}

/* 2026-11-08 CSP style-src 'self': satır içi style yerine sınıf ve data-* */
.ws-inline-form{display:inline;margin:0}
.ws-swatch-waiting{background:var(--waiting-chart)}.ws-swatch-cancelled{background:var(--cancelled-chart)}.ws-swatch-done{background:var(--done-chart)}

/* Grafik açıklamaları (report-charts.js önceden <style> enjekte ediyordu) */
:where(.chart-legend){list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;line-height:16px;color:var(--muted,#5f6368)}:where(.chart-legend li){display:inline-flex;align-items:center;gap:6px;white-space:nowrap}:where(.chart-legend svg){flex:none;overflow:visible}@media (max-width:480px){:where(.chart-legend){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 29 Kasım: mobil dokunma hedefi ve okunabilirlik.
   Hap filtrelerin 36 px kuralı (.workspace .ws-status-tab) daha güçlü seçiciyle mobildeki 52 px kuralını eziyordu;
   dokunmatik/dar ekranda 44 px'e çıkar. 10-12 px kalan yardımcı yazılar bir kademe büyür. */
.workspace .ws-required, .workspace .ws-status-tab span { font-size: 13px; }
.ws-donut > span small { font-size: 12px; }
:where(.chart-legend) { font-size: 13px; line-height: 18px; }
@media (max-width: 640px) { .ws-metric-note { font-size: 13px; } }
@media (max-width: 700px), (pointer: coarse) {
  .workspace .ws-status-tab { min-height: 44px; }
  /* title yalnız fareyle görünür: dokunmatikte açıklama tek satırda kesilmek yerine iki satıra sarılır. */
  .ws-service-description { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  /* Satır yüksekliğini bozmadan arama/e-posta bağlantısının dokunma alanını büyütür. */
  .ws-contact-link { display: inline-block; padding: 10px 0; margin: -10px 0; }
}
.ws-contact-link { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ws-contact-link:hover { color: var(--primary-hover); }
/* Çok fotoğraflı görüntüleyici: önceki/sonraki ve sıra bilgisi fotoğrafın altında. */
.ws-lightbox-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.ws-lightbox-nav[hidden] { display: none; }
.ws-lightbox-nav .ws-button { min-width: 96px; }
.ws-lightbox-count { color: var(--muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; text-align: center; }
.ws-lightbox-image { touch-action: pan-y pinch-zoom; }

/* Çalışan detayı: yetki ve ekip yönetimi (ortaklık, işletmeden çıkarma) */
.ws-team-access{max-width:1000px;margin-top:24px}
.ws-team-access .ws-panel-body{display:grid;gap:20px}
.ws-team-action{display:grid;gap:10px;justify-items:start}
.ws-team-action .ws-field-help{margin:0}
.ws-team-remove{border-top:1px solid var(--rule);padding-top:20px;width:100%}
.ws-team-remove h3{font-size:1rem;margin:0}
.ws-team-remove .ws-notice{width:100%;margin:0}

/* 2 Aralık: parola alanı içinde göz düğmesi (password-reveal.js). Hesap ve çalışma ekranlarında ortak.
   Düğme 44 px dokunma alanı, alanın sağ kenarında; metin düğmesi "Parolayı göster" kaldırıldı. */
.ws-password { position: relative; display: block; }
.ws-password > .ws-input { width: 100%; padding-right: 50px; }
.ws-password-toggle { position: absolute; top: 0; right: 0; bottom: 0; width: 46px; display: grid; place-items: center; padding: 0; margin: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 0 var(--radius-control) var(--radius-control) 0; }
.ws-password-toggle:hover { color: var(--primary-hover); }
.ws-password-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }
.ws-password-toggle[aria-pressed="true"] { color: var(--primary-hover); }
.ws-password > .ws-input::-ms-reveal, .ws-password > .ws-input::-ms-clear { display: none; }
