/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Flexible duration editing is scoped to the website sidebar and Timecard. */
.flexible-duration-input { width: 12ch; max-width: 100%; min-width: 8ch; }
.timer-clock-flexible .timer-clock-digits { min-width: 0; }
.timer-clock.timer-clock-flexible [data-clock-part="hours"] { width: 2.5ch; min-width: 2.5ch; max-width: 12ch; }
.timer-clock.timer-clock-flexible [data-clock-part="minutes"] { width: 2ch; min-width: 2ch; max-width: 2ch; }
.timer-clock-seconds { color: #78716c; cursor: default; user-select: none; }
.timer-clock-flexible [data-clock-total] {
  appearance: none; box-sizing: content-box; min-width: 0; max-width: 100%;
  border: 0; border-radius: 4px; padding: 1px 0; margin: 0; background: transparent;
  color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit;
  cursor: text; caret-color: #526549; outline: none;
}
.timer-clock-flexible [data-clock-total]:not([readonly]):hover { background: #e8eddf; }
.timer-clock-flexible [data-clock-total]:focus { background: #e8eddf; box-shadow: 0 0 0 1px #708567; }
.timer-clock-flexible [data-clock-total][aria-invalid="true"] { box-shadow: 0 0 0 1px #b91c1c; }
.timer-clock-flexible [data-clock-total][readonly] { cursor: default; }
.timer-clock-flexible [data-clock-total]::selection, .flexible-duration-input::selection { color: #2d332a; background: #d2dcc8; }

/* Page titles share the Timecard typography across every application layout.
   Dialogs and the compact timer window keep their own heading hierarchy. */
:where(main) h1:not(:where(dialog *, [role="dialog"] *, .timer-window *)) {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* Keep bypass navigation visible above fixed chrome only while focused. */
.skip-link { position:fixed; top:8px; left:8px; z-index:100; padding:10px 14px; background:#fff; color:#36462f; border:2px solid #526549; border-radius:6px; transform:translateY(-150%); }
.skip-link:focus { transform:translateY(0); outline:2px solid #36462f; outline-offset:2px; }
#main-content { scroll-margin-top:4rem; }
/* Small supporting copy still needs readable contrast on linen and white. */
.app-shell .field-hint, .app-shell .text-stone-400, .app-shell .text-stone-500,
.app-shell .pref-head, .app-shell .nav-item:not(.nav-item-active) { color:#6b645f; }
.field-input::placeholder { color:#6b645f; opacity:1; }
@media(max-width:1023px) {
  html:has(.app-shell) { scroll-padding-top:4rem; }
  /* Only release the bar when a software keyboard leaves too little field space. */
  .app-shell[data-focus-viewport-compact="true"] > [data-nav-target="mobileHeader"] { position:static; }
  html:has(.app-shell[data-focus-viewport-compact="true"]) { scroll-padding-top:0; }
  [data-sidebar-footer] [data-footer-actions] .btn-quiet { min-width:44px; min-height:44px; }
}

/* Review Desk: reuse the existing cascade and fields in a compact composer. */
@media (min-width: 640px) {
  .reviewdesk-workspace > [data-recent-activities-composer] .entry-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .reviewdesk-workspace > [data-recent-activities-composer] .entry-line > [data-controller~="time-entry-cascade"] { display: contents; }
  .reviewdesk-workspace > [data-recent-activities-composer] .entry-line > *,
  .reviewdesk-workspace > [data-recent-activities-composer] [data-controller~="time-entry-cascade"] > * { margin-block: 0; min-width: 0; }
  .reviewdesk-workspace > [data-recent-activities-composer] .entry-line > :last-child { grid-column: 1 / -1; }
}
/* Number fields use direct entry throughout the app, including future fields.
   Keep native numeric keyboards and min/max/step validation intact. */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Approved option A: a compact editor with persistent actions. */
.resource-dialog { margin:auto; width:calc(100% - 2rem); max-width:650px; max-height:calc(100dvh - 3rem); padding:0; border:0; border-radius:14px; background:white; color:#272b26; box-shadow:0 18px 60px #172c2533; overflow:hidden; }
.resource-dialog[open] { display:flex; flex-direction:column; }
.resource-dialog::backdrop { background:#25352c55; }
.resource-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:22px 28px; border-bottom:1px solid #dee0dc; flex-shrink:0; }
.resource-dialog-title { font-size:23px; font-weight:650; letter-spacing:-.025em; }
.resource-dialog-content { display:flex; min-height:0; }
.resource-dialog-content > form { display:flex; flex-direction:column; width:100%; min-height:0; gap:0; }
.resource-dialog-content > form > :not([hidden]) { margin-top:0!important; }
.resource-dialog .resource-form-fields { min-height:0; overflow-y:auto; padding:24px 28px; scrollbar-width:thin; scrollbar-color:#b1b9ae #f3f5f2; }
.resource-dialog .resource-form-fields > * + * { margin-top:20px; }
.resource-dialog .resource-section-title { margin:0 0 14px; font-size:15px; font-weight:650; color:#3b4736; }
.resource-dialog .resource-section-divider { border-top:1px solid #dee0dc; padding-top:22px; margin-top:24px; }
.resource-dialog .resource-form-actions { padding:16px 28px; background:white; border-top:1px solid #dee0dc; flex-shrink:0; }
.resource-dialog .resource-form-actions { justify-content:flex-end; }
.resource-dialog .field-label { font-size:13px; text-transform:none; letter-spacing:0; font-weight:550; color:#394135; }
.resource-dialog .field-input { min-height:40px; border-radius:6px; }
.resource-dialog .field-hint { color:#666b63; }
.resource-dialog-error { margin:14px 28px; padding:10px 12px; border-radius:6px; background:#fef2f2; color:#a33625; font-size:13px; }
.resource-dialog ::selection { background:#d6e4cf; }
@media(max-width:640px) {
 .resource-dialog { max-height:calc(100dvh - 1.5rem); }
 .resource-dialog-header { padding:18px 20px; }
 .resource-dialog .resource-form-fields { padding:20px; }
 .resource-dialog .resource-form-actions { padding:14px 20px; }
 .resource-dialog-title { font-size:21px; }
}
/* Keep both branding choices on the same row, including narrow editors. */
@media(max-width:640px) {
 .resource-dialog [data-controller$="-brand"] { padding:14px; }
 .resource-dialog [data-controller$="-brand"] > .grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; }
 .resource-dialog [data-controller$="-brand"] [data-action*="dragover"] { flex-direction:column; align-items:flex-start; gap:8px; padding:12px; }
 .resource-dialog [data-controller$="-brand"] [data-client-brand-target="colorSection"],
 .resource-dialog [data-controller$="-brand"] [data-project-brand-target="colorSection"] { flex-direction:column; align-items:flex-start; gap:8px; }
}

/* Carry the approved A form treatment through the editor's lower sections. */
.resource-dialog-description { margin-top:4px; color:#656d68; font-size:14px; }
.resource-dialog [data-controller="member-visibility"] { border:0; border-top:1px solid #dee0dc; border-radius:0; padding:22px 0 0; margin-top:24px; }
.resource-dialog [data-controller="member-visibility"] > legend { float:left; width:100%; padding:0; margin-bottom:15px; font-size:15px; font-weight:650; }
.resource-dialog [data-controller="member-visibility"] > div { clear:both; padding-top:0; }
.resource-dialog [data-controller="member-visibility"] [role="tablist"] { gap:3px; padding:3px; border-radius:6px; background:#eef2ec; }
.resource-dialog [data-member-visibility-target="modeTab"] { border-radius:4px; padding:6px 9px; font-size:12px; font-weight:500; background:transparent; color:#596155; }
.resource-dialog [data-member-visibility-target="modeTab"] svg { display:none; }
.resource-dialog [data-member-visibility-target="modeTab"][aria-selected="true"] { background:white; color:#526549; box-shadow:0 1px 3px #263b2417; }
.resource-dialog [data-controller="member-visibility"] .uppercase { text-transform:none; letter-spacing:0; }
.resource-dialog [data-member-visibility-target$="List"]:not([hidden]) { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; border:0; border-radius:0; }
.resource-dialog [data-member-visibility-target$="List"] > div { display:contents; }
.resource-dialog .who-member-row { border:0; padding:7px 0; min-width:0; }
.resource-dialog .who-member-row > .text-sm { overflow-wrap:anywhere; }
.resource-member-initials { display:grid; place-items:center; flex-shrink:0; width:25px; height:25px; border-radius:50%; background:#eaf0e9; color:#596155; font-size:10px; }
.resource-dialog [data-recurring-schedule-target="combinedControls"] > .flex { gap:10px; }
.resource-dialog [data-recurring-schedule-target="combinedControls"] select { min-width:110px; }
@media(max-width:640px) {
 .resource-dialog [data-member-visibility-target$="List"]:not([hidden]) { grid-template-columns:1fr; }
}

/* Match the approved A mockup's actual field geometry and density. */
.resource-dialog { font-family:var(--font-sans); font-size:14px; line-height:1.5; }
.resource-dialog .field-label { font-size:14px; font-weight:560; margin-bottom:6px; }
.resource-dialog .field-input { height:40px; padding:8px 11px; border:1px solid #bfc5bc; background:white; color:#272b26; font-size:14px; }
.resource-dialog .field-hint { font-size:12px; line-height:1.5; margin-top:5px; }
.resource-dialog .resource-budget-pair { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; align-items:start; }
.resource-dialog .resource-budget-pair > * { margin:0; min-width:0; }
.resource-dialog .resource-budget-pair [data-recurring-schedule-target="combinedControls"] > .flex { display:flex; flex-direction:column; align-items:stretch; gap:8px; }
.resource-dialog .resource-budget-pair [data-recurring-schedule-target="frequency"],
.resource-dialog .resource-budget-pair [data-recurring-schedule-target="weeklyFields"] select { width:100%!important; }
.resource-dialog .resource-budget-pair [data-recurring-schedule-target="prefix"],
.resource-dialog .resource-budget-pair [data-recurring-schedule-target="onLabel"] { display:none; }
.resource-dialog .resource-time-options > * + * { margin-top:13px; }
.resource-dialog .resource-time-options label > .text-sm { font-size:14px; color:#272b26; }
.resource-dialog [data-controller="threshold-list"] > [data-threshold-list-target="section"] { margin-left:0; margin-top:12px; }
.resource-dialog [data-controller="threshold-list"] a { font-size:12px; font-weight:400; text-decoration:underline; text-underline-offset:3px; }
.resource-dialog .resource-form-fields > .resource-budget-pair { margin-top:0; }
@media(max-width:640px) {
 .resource-dialog .resource-budget-pair { grid-template-columns:1fr; }
}

/* Approved working ledger, shared by Clients and Projects. */
.directory-page { color:#2a3127; font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.directory-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.directory-header h1 { margin:0 0 8px; }
.directory-header p { color:#686f64; margin:0; }
.directory-summary { display:flex; flex-wrap:wrap; gap:12px 24px; margin:25px 0 12px; padding-bottom:20px; border-bottom:1px solid #dce3dc; color:#686f64; font-size:13px; }
.directory-summary strong { color:#2a3127; font-weight:650; }
.directory-status { display:flex; gap:24px; border-bottom:1px solid #dce3dc; margin:0 0 22px; }
.directory-status a { padding:10px 0 12px; border-bottom:2px solid transparent; color:#686f64; font-weight:550; text-decoration:none; }
.directory-status a[aria-current="page"] { color:#526549; border-color:#526549; }
.directory-status span { margin-left:5px; font-size:12px; font-weight:400; }
.directory-filters { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:22px; }
.directory-filters input[type="search"] { width:340px; max-width:100%; }
.directory-filters select,.directory-filters input[type="search"] { min-height:40px; padding:8px 11px; background:white; border:1px solid #bdc9bf; border-radius:6px; font:inherit; color:#2a3127; }
.directory-filter-controls { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.directory-table-wrap { overflow:auto; border:1px solid #dce3dc; border-radius:10px; background:white; }
.directory-table { width:100%; border-collapse:collapse; text-align:left; }
.directory-table th, .people-table thead th { padding:14px 16px; background:#f4f7f1; border-bottom:1px solid #dce3dc; color:#627063; font-size:11px; text-transform:uppercase; letter-spacing:.055em; font-weight:600; white-space:nowrap; }
.people-table { min-width:64rem; }
.people-table tbody td { padding-inline:16px; }
.directory-table td { padding:17px 16px; border-bottom:1px solid #e9eee6; font-size:13px; vertical-align:middle; }
.directory-table tr:last-child td { border-bottom:0; }
.directory-resource-row { position:relative; isolation:isolate; }
.directory-resource-row:hover { background:#f5f8f1; }
.directory-name { display:flex; align-items:center; gap:10px; min-width:160px; }
.directory-primary-link { font-weight:600; font-size:14px; color:#2a3127; }
.directory-primary-link::after { content:""; position:absolute; inset:0; z-index:0; }
.directory-primary-link:focus-visible::after { outline:2px solid #526549; outline-offset:-2px; }
.directory-client-link,.directory-actions { position:relative; z-index:1; }
.directory-sub { margin-left:41px; margin-top:3px; }
.directory-client-link { font-size:12px; color:#526549; text-decoration:underline; text-underline-offset:3px; }
.directory-mark { height:31px; width:31px; display:grid; place-items:center; flex-shrink:0; border-radius:7px; object-fit:cover; background:#e6eee1; color:#415438; font-size:11px; font-weight:600; }
.directory-budget { min-width:150px; }
.directory-budget-line { display:flex; justify-content:space-between; gap:14px; font-size:12px; white-space:nowrap; }
.directory-budget-track { height:4px; background:#e6ece1; border-radius:3px; margin-top:7px; overflow:hidden; }
.directory-budget-fill { height:100%; background:#4d7856; border-radius:3px; }
.directory-budget-fill.over,.directory-budget-fill.at,.directory-budget-fill.red { background:#bd6351; }.directory-budget-fill.near { background:#ae8c3a; }.directory-budget-fill.yellow { background:#f2c230; }
.directory-over { color:#a83c30; }.directory-total { font-weight:600; }
.directory-table .num { font-variant-numeric:tabular-nums; white-space:nowrap; }
.directory-actions { display:flex; align-items:center; justify-content:flex-end; gap:2px; }
.directory-actions form { display:inline-flex; }
.directory-icon-button { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:5px; color:#526549; }
.directory-icon-button:hover { background:#e4ecde; }.directory-icon-button:disabled { opacity:.5; cursor:not-allowed; }
.directory-action-cell { width:86px; min-width:86px; }
.directory-table-footer { display:flex; justify-content:space-between; gap:16px; padding:14px 2px; font-size:12px; color:#686f64; }
.directory-page ::selection { background:#d3e1cd; }
.directory-page :is(button,a,input,select):focus-visible { outline:2px solid #526549; outline-offset:3px; }

#sidebar-timer-region .sidebar-timer-transport:disabled { cursor:default; }

/* Compact searchable client, project and task pickers used by time entry and
   the timer. The native select remains visible until popover support is live. */
.searchable-select[data-searchable-select-enhanced="true"] > select { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.searchable-select-trigger { min-height:38px; padding:7px 10px; border:1px solid #c8cec4; border-radius:6px; background:#fff; color:#2d332a; font-size:13px; }
.searchable-select-trigger:focus { border-color:#c8cec4; outline:0!important; box-shadow:none!important; }
.searchable-select-trigger:focus-visible,.searchable-select-search:focus-visible { border-color:#53634a!important; outline:0!important; box-shadow:none!important; }
.searchable-select-trigger.searchable-select-open { border-color:#53634a; }
.searchable-select-trigger.searchable-select-invalid { border-color:#b54437; background:#fffafa; }
.searchable-select-trigger:disabled { background:#f7f7f4; color:#777d73; }
.searchable-select-trigger svg { transition:transform .15s ease; }
.searchable-select-trigger.searchable-select-open svg { transform:rotate(180deg); }
.searchable-select-panel { position:fixed!important; inset:auto; z-index:1000; box-sizing:border-box; width:max-content; max-width:calc(100vw - 16px); overflow-x:hidden; overflow-y:auto; margin:0; border:1px solid #d6dbd2; border-radius:7px; padding:5px; background:#fff; color:#2d332a; box-shadow:0 8px 24px #172c2526; }
.searchable-select-panel::backdrop { background:transparent; }
.searchable-select-search { min-height:34px; border:1px solid #d6dbd2; border-radius:5px; padding-block:5px; font-size:13px; }
.searchable-select-list { margin:4px 0 0; padding:0; list-style:none; scrollbar-width:thin; scrollbar-color:#c4cbc0 #f6f7f4; }
.searchable-select-list [role="option"] { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:31px; padding:5px 8px; border:0; border-radius:4px; background:transparent; color:#30362d; text-align:left; font-size:13px; line-height:1.35; cursor:pointer; }
.searchable-select-list [role="option"]:hover,.searchable-select-list [role="option"].searchable-select-active { background:#f1f4ee; }
.searchable-select-list [role="option"].searchable-select-selected { color:#384b32; font-weight:600; }
.searchable-select-check { display:block; flex:none; width:14px; height:14px; color:#53634a; }
.searchable-select-panel [data-searchable-select-target="empty"] { margin:3px 0 0; padding:7px 8px; color:#686f64; font-size:12px; }
.searchable-select-panel [data-testid="select-creation-footer"] { margin-top:4px; border-color:#e5e8e2; padding-top:4px; }
.searchable-select-panel [data-testid="select-creation-footer"] button { min-height:32px; padding:5px 8px; color:#40543a; }
.timer-workflow-fields [data-workflow-field] { display:flex; min-width:0; flex-direction:column; gap:5px; }
.timer-workflow-fields [data-workflow-field] > label { display:flex; min-height:0; margin:0!important; padding:0; flex-direction:row; align-items:center; color:#2d332a; font-size:12px; font-weight:500; }
.timer-workflow-fields [data-workflow-field]:first-child { margin-top:4px; }
.timer-workflow-fields [data-workflow-field]:last-child { margin-bottom:10px; }
.timer-workflow-fields [data-workflow-field].timer-workflow-required .searchable-select-trigger { border-color:#b54437; background:#fffafa; }
.timer-workflow-fields [data-controller~="searchable-select"] { width:100%; min-width:0; }
.timer-workflow-fields [data-controller~="searchable-select"] .searchable-select-trigger { min-height:38px; font-size:13px; }
.timer-workflow-fields [data-controller~="searchable-select"] .searchable-select-panel { z-index:1100; }
.timer-workflow-fields [data-controller~="searchable-select"]:not([data-searchable-select-enhanced="true"]) > select { min-height:38px; }
@media(prefers-reduced-motion:reduce) { .searchable-select-trigger svg { transition:none; } }

/* Centered detail window A: fixed header, summary, tabs and footer. */
.detail-window { width:860px; max-width:calc(100% - 32px); max-height:calc(100dvh - 48px); margin:auto; padding:0; border:0; border-radius:12px; color:#2a3127; background:white; box-shadow:0 18px 60px #172c2533; overflow:hidden; font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.detail-window[open],.detail-window-content,.detail-window-content>section { display:flex; flex-direction:column; min-height:0; }
.detail-window::backdrop { background:#273b3055; }
.detail-window-header { padding:25px 28px 20px; border-bottom:1px solid #dce3dc; display:flex; justify-content:space-between; align-items:flex-start; gap:18px; flex-shrink:0; }
.detail-window-name { display:flex; align-items:center; gap:12px; }
.detail-window-heading { min-width:0; }
.detail-window-name h2 { font-size:23px; letter-spacing:-.025em; font-weight:650; margin:0; line-height:1.3; overflow-wrap:anywhere; }
.detail-window-mark { width:31px; height:31px; border-radius:7px; object-fit:cover; flex-shrink:0; }
.detail-window-meta { font-size:12px; color:#686f64; margin:6px 0 0; }.detail-window-meta a { color:#526549; text-decoration:underline; text-underline-offset:3px; }
.detail-window-actions { display:flex; align-items:center; gap:3px; }.detail-window-actions form { display:inline-flex; }
.detail-window-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; padding:23px 28px; background:#f4f7f1; flex-shrink:0; }
.detail-window-summary span { display:block; color:#686f64; font-size:11px; margin-bottom:6px; }
.detail-window-summary strong { font-weight:600; font-size:17px; line-height:1.4; font-variant-numeric:normal; }
.detail-window-tabs { display:flex; gap:26px; padding:0 28px; border-bottom:1px solid #dce3dc; flex-shrink:0; }
.detail-window-tabs button { padding:15px 0 12px; border-bottom:2px solid transparent; color:#686f64; font-size:13px; font-weight:550; }
.detail-window-tabs button[aria-pressed="true"] { border-color:#526549; color:#526549; }
.detail-window-scroll { padding:24px 28px; overflow:auto; min-height:0; scrollbar-width:thin; scrollbar-color:#b1b9ae #f2f5ee; }
.detail-window-scroll h3 { font-size:15px; font-weight:650; margin:0 0 16px; }
.detail-window-footer { border-top:1px solid #dce3dc; padding:14px 28px; display:flex; align-items:center; justify-content:flex-end; gap:15px; flex-shrink:0; }
.detail-work-tabs { display:flex; gap:18px; margin-bottom:14px; }.detail-work-tabs button { font-size:12px; padding:4px 0; color:#686f64; }.detail-work-tabs button[aria-pressed="true"] { color:#526549; text-decoration:underline; text-underline-offset:5px; }
.detail-project-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.detail-project-toolbar .detail-work-tabs { margin:0; }
.detail-project-toolbar .detail-text-action { white-space:nowrap; }
.client-people-table th:last-child,.client-people-table td:last-child,.project-people-table th:last-child,.project-people-table td:last-child { text-align:right; }
.client-people-table .client-member-name,.project-people-table .project-person-name { overflow-wrap:anywhere; }
.detail-section-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:16px; }.detail-section-heading h3 { margin:0; }
.detail-period-filter { display:flex; align-items:center; gap:6px; }.detail-period-filter .field-input { height:32px; font-size:12px; padding:5px 9px; }.detail-period-filter .btn-secondary { padding:5px 9px; font-size:12px; }
.detail-text-action { display:flex; align-items:center; gap:4px; font-size:12px; color:#526549; }
.detail-table-wrap { overflow:auto; }.detail-table { width:100%; border-collapse:collapse; text-align:left; }.detail-table th { padding:10px; font-size:10px; color:#627063; background:#f4f7f1; border-bottom:1px solid #dce3dc; text-transform:uppercase; letter-spacing:.04em; }.detail-table td { padding:15px 10px; font-size:12px; border-bottom:1px solid #e9eee6; }.detail-table td:first-child a { font-size:13px; font-weight:550; color:#526549; }.detail-table td.num { white-space:nowrap; }
.detail-row-actions { white-space:nowrap; }.detail-row-actions>* { display:inline-flex; }.detail-information { display:grid; grid-template-columns:1fr 1fr; gap:20px 30px; margin:0; }.detail-information dt { font-size:12px; color:#686f64; margin-bottom:4px; }.detail-information dd { font-size:13px; font-weight:550; margin:0; }.detail-information a { color:#526549; text-decoration:underline; }
.detail-empty { padding:35px!important; text-align:center; color:#686f64; }.detail-back { padding-bottom:10px; font-size:12px; color:#526549; text-decoration:underline; text-underline-offset:3px; }
.detail-window-error { margin:16px 28px; background:#fef2f2; color:#a33625; padding:12px; border-radius:6px; font-size:13px; flex-shrink:0; }
.detail-window input[type="number"] { -moz-appearance:textfield; appearance:textfield; }.detail-window input[type="number"]::-webkit-inner-spin-button,.detail-window input[type="number"]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.detail-window [hidden] { display:none!important; }
@media(max-width:720px) {
 .directory-header { gap:15px; }.directory-header p { font-size:13px; }.directory-filters { flex-wrap:wrap; gap:12px; }.directory-filters input[type="search"] { width:100%; }.directory-filter-controls { width:100%; }.directory-filter-controls select { flex:1; min-width:0; font-size:12px; }.directory-table-footer { font-size:11px; }.directory-table td { padding:14px 12px; }
 .detail-window { max-width:calc(100% - 20px); max-height:calc(100dvh - 24px); }.detail-window-header { padding:20px; gap:8px; }.detail-window-name h2 { font-size:19px; }.detail-window-mark { display:none; }.detail-window-actions { gap:0; }.detail-window-actions .btn-quiet { padding:5px; }.detail-window-summary { grid-template-columns:1fr 1fr; padding:18px 20px; gap:15px; }.detail-window-summary strong { font-size:15px; }.detail-window-tabs { padding:0 20px; gap:22px; }.detail-window-scroll { padding:20px; }.detail-window-footer { padding:12px 20px; }.detail-information { gap:16px; }.detail-section-heading { flex-wrap:wrap; }.detail-task-editor { min-width:650px; }
}
/* The window's task ledger keeps the approved four-column density. */
.detail-task-editor { overflow-x:auto; }
.detail-task-editor .task-columns > span:nth-child(4),.detail-task-editor .task-columns > span:nth-child(5),
.detail-task-editor :is(#open-tasks, #closed-tasks) turbo-frame > div > .hidden,.detail-task-editor :is(#open-tasks, #closed-tasks) turbo-frame > div > span.w-14 { display:none; }
.detail-task-editor .task-columns { padding:10px; background:#f4f7f1; color:#627063; font-size:10px; }
.detail-task-editor :is(#open-tasks, #closed-tasks) turbo-frame > div { padding:15px 10px; }
.detail-task-editor :is(#open-tasks, #closed-tasks) input[aria-label="Task name"] { font-size:13px; color:#526549; font-weight:550; }
.detail-task-editor :is(#open-tasks, #closed-tasks) input[aria-label="Budget (hours)"] { color:#2a3127; font-size:12px; }
.detail-archived-task { display:flex; align-items:center; gap:20px; padding:15px 10px; border-bottom:1px solid #e9eee6; font-size:13px; }
.detail-archived-task>span:first-child { flex:1; }
@media(max-width:720px) {
 .detail-task-editor { min-width:0; }
 .detail-task-editor .task-columns,.detail-task-editor :is(#open-tasks, #closed-tasks),.detail-task-editor [data-inline-row-target="row"] { min-width:440px; }
 .detail-task-editor [aria-controls="copy-tasks-panel"] { max-width:180px; }
}

.detail-loading-header { display:flex; align-items:center; justify-content:space-between; padding:20px 28px; border-bottom:1px solid #dce3dc; font-weight:600; }
.detail-window-content:empty { min-height:80px; }

.client-member-columns { display:grid; grid-template-columns:1fr 1fr; gap:0 28px; }
.client-member-heading,.client-member-history-row { display:grid; grid-template-columns:minmax(0,1fr) 112px 72px; gap:12px; align-items:center; border-bottom:1px solid #e9eee6; }
.client-member-heading { color:#686f64; font-size:10px; line-height:1.4; padding-bottom:10px; }
.client-member-heading>span:last-child,.client-member-hours { text-align:right; }
.client-member-history-row { padding:10px 0; font-size:12px; }
.client-member-name { overflow-wrap:anywhere; }
.client-member-last-login { color:#686f64; font-size:11px; line-height:1.45; }
.client-member-last-login time>span { display:block; }
.client-member-hours { font-weight:550; white-space:nowrap; }
@media(max-width:720px) { .client-member-columns { grid-template-columns:1fr; gap:24px; }.client-member-heading,.client-member-history-row { grid-template-columns:minmax(0,1fr) 110px 65px; gap:8px; } }

/* Migration examples remain next to their field and reflow in reading order. */
.migration-column-head, .migration-column-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid #e7e5e4;
  overflow-wrap: anywhere;
}
.migration-column-head { color: #57534e; font-size: 0.875rem; }
.migration-column-row { font-size: 0.875rem; }
.migration-flow, .migration-flow * { overflow-anchor: none; }
@media (max-width: 640px) {
  .migration-column-head { display: none; }
  .migration-column-row { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
}

/* Compact account-data rows: headings and refresh controls share a rail. */
.account-data-panel { container-type:inline-size; padding:28px; border:1px solid #efcfcd; border-radius:14px; background:#fff7f6; color:#292724; font-size:14px; line-height:1.55; }
.account-data-panel > h2 { margin:0 0 30px; font-size:23px; line-height:1.25; font-weight:650; letter-spacing:-.025em; }
.account-data-row { display:grid; grid-template-columns:175px minmax(0,1fr); gap:24px; padding:24px 0; border-top:1px solid #eaded9; }
.account-export-row { padding-top:0; border-top:0; }
.account-data-row-heading { min-width:0; }
.account-data-row-heading h3 { font-size:16px; line-height:1.35; font-weight:600; }
.account-data-row-heading button { margin-top:6px; font-size:12px; }
.account-data-row-content, .account-data-row > #account-deletion-flow { min-width:0; }
.account-data-row-content > p:first-child, .account-data-row > #account-deletion-flow > p:first-child { margin-top:0; }
.account-export-row .account-data-row-content > form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:0 12px; max-width:none; margin-top:22px; }
.account-export-row .account-data-row-content > form > p { grid-column:1/-1; margin-top:12px; }
.account-export-row .account-data-row-content > form > input[type=submit] { min-height:42px; margin-top:24px; }
.account-data-panel .field-input { background:white; }
.account-data-panel #account-export-results { margin-top:24px; padding-top:20px; }
.account-data-panel .account-data-support { border-top:1px solid #eaded9; padding-top:18px; margin-top:2px; font-size:12px; }
@container (max-width:600px) {
  .account-data-row { grid-template-columns:minmax(0,1fr); gap:16px; }
  .account-data-row-heading { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; }
  .account-data-row-heading button { margin-top:0; }
  .account-export-row .account-data-row-content > form { grid-template-columns:minmax(0,1fr); gap:12px; }
  .account-export-row .account-data-row-content > form > input[type=submit] { justify-self:start; margin-top:0; }
  .account-export-row .account-data-row-content > form > p { margin-top:0; }
}
@media(max-width:700px) { .account-data-panel { padding:20px; } }
.account-data-panel #account-export-results > p { border:1px dashed #d8ccc6; border-radius:8px; padding:16px; font-size:12px; color:#6b645f; }
.account-data-panel #account-export-results > h4 { font-size:13px; }

/* Private integration workflows retain their own document and form behavior. */
.integration-window { width: 860px; height: min(820px, calc(100dvh - 48px)); max-width: calc(100% - 32px); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: 12px; background: var(--color-paper, #f7f4ec); color: var(--color-ink, #252521); box-shadow: 0 18px 60px #172c2533; overflow: hidden; }
.integration-window[open] { display: flex; flex-direction: column; }
.integration-window::backdrop { background: #273b3066; }
.integration-window-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid #e7e5e4; flex-shrink: 0; }
.integration-window-body { flex: 1; min-height: 0; }
.integration-window-frame { display: block; width: 100%; height: 100%; border: 0; }
.integration-window [hidden] { display: none !important; }
@media (max-width: 640px) { .integration-window { max-width: calc(100% - 16px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); }.integration-window-header { padding: 12px 16px; } }

/* Settings extension workflow shares the app's typography and moss palette. */
.extension-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; list-style:none; padding:0; margin:24px 0 0; }
.extension-step { position:relative; min-width:0; color:#78716c; }
.extension-step:not(:last-child)::after { content:"→"; position:absolute; right:-23px; top:0; color:#78716c; font-size:20px; }
.extension-step-heading { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.extension-step-heading h4 { font-size:14px; font-weight:600; margin:0; }
.extension-step-number { display:grid; place-items:center; flex-shrink:0; width:24px; height:24px; border:1px solid #d6d3d1; border-radius:50%; font-size:12px; }
.extension-step p { font-size:13px; line-height:1.5; color:#57534e; margin:0; }
.extension-step[aria-current="step"] { color:#292524; }
.extension-step[aria-current="step"] .extension-step-number { background:#526549; border-color:#526549; color:white; }
.extension-step[data-complete="true"] .extension-step-number { background:#e9eee7; border-color:#e9eee7; color:#526549; }
.extension-step-result { display:inline-block; margin-top:10px; font-size:13px; color:#526549; }
.extension-install { margin-top:12px; font-size:13px; }
.extension-step-result[hidden] { display:none; }
@media(max-width:640px) { .extension-steps { grid-template-columns:1fr; gap:32px; }.extension-step:not(:last-child)::after { content:"↓"; left:4px; right:auto; top:auto; bottom:-28px; } }

/* Contain both overflowing and short integration documents, including backdrop gestures. */
.integration-window, .integration-window-body { overscroll-behavior: contain; }
.integration-window::backdrop { overflow: hidden; overscroll-behavior: contain; }
html.integration-document, html.integration-document body { overscroll-behavior: contain; }

/* Event capture reuses the existing Timecard composer, with one focused editor. */
.timecard-event-dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b1b9ae #f3f5f2; }
.timecard-event-dialog [data-recent-activities-composer] { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.timecard-event-dialog [data-recent-activities-composer] form > input[type="submit"] { display: none; }
.timecard-event-dialog [data-recent-activities-composer] > h2 { display: none; }
.timecard-event-dialog #time_entry_notes:focus { border-color: #617858; outline: 2px solid #617858; outline-offset: 2px; background: #f3f7f2; }
.timecard-event-dialog ::selection { background: #d6e4cf; }
.timecard-event-row-selected { background: #e9f0e6; border-radius: 8px; padding-inline: 12px; }

/* Keep Settings in place while the existing migration wizard navigates. */
.migration-overlay { width:calc(100% - 2rem); max-width:1200px; height:calc(100dvh - 3rem); }
.migration-overlay iframe { display:block; width:100%; flex:1; min-height:0; border:0; background:white; }
.migration-overlay-page { padding:24px; overflow-wrap:anywhere; }
@media (max-width:640px) {
  .migration-overlay { width:calc(100% - 1rem); height:calc(100dvh - 1rem); max-height:calc(100dvh - 1rem); }
  .migration-overlay .resource-dialog-header { padding:14px 16px; }
  .migration-overlay-page { padding:16px; }
}


.field-validation-row { flex-wrap:wrap !important; }

/* Shared Quiet inline field errors and the checklist for longer forms. */
.field-validation-error { grid-column:1 / -1; flex:0 0 auto; min-width:0; margin:6px 0 0; color:#9d342b; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.field-validation-row > .field-validation-error { flex-basis:100%; }
[data-validation-invalid="true"] { border-color:#c1796b; }
.field-validation-summary { grid-column:1 / -1; flex:0 0 auto; min-width:0; width:100%; margin:0 0 20px; padding:14px 16px; border:1px solid #d9a79e; border-radius:9px; background:#fff3ef; color:#8d3026; }
.field-validation-summary-title { margin:0 0 5px; font-size:14px; font-weight:600; }
.field-validation-summary ul { margin:0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:4px 18px; }
.field-validation-summary button { min-height:32px; background:transparent; border:0; padding:3px 0; font:inherit; font-size:14px; color:inherit; text-align:start; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.field-validation-summary button:focus-visible { outline:2px solid #526549; outline-offset:3px; border-radius:2px; }
@media(pointer:coarse) { .field-validation-summary button { min-height:44px; } }
@media(prefers-reduced-motion:reduce) { .field-validation-error,.field-validation-summary { scroll-behavior:auto; } }
/* Keep the duration and action row fixed while delete confirmation swaps in. */
.timecard-entry-actions-stable { width: 8.75rem; height: 2rem; justify-content: flex-end; }
/* The 31px Cancel control centers over the former 44px trash control. */
.timecard-entry-actions-stable [data-entry-delete-target="pending"] { padding-inline-end: 0.40625rem; }

/* Store status shares the existing three-step Settings layout. */
.extension-step[data-extension-step="get"] { display:flex; flex-direction:column; align-items:flex-start; }
.extension-install-row { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; margin-top:auto; padding-top:12px; }
.extension-install-row .extension-install { margin-top:0; }
.extension-install[aria-disabled="true"], .extension-install[aria-disabled="true"]:hover { color:#78716c; text-decoration:underline; cursor:default; }
.extension-detected { font-size:12px; color:#57534e; }
.extension-connection-actions { display:inline-flex; align-items:baseline; gap:8px; }
.extension-detected[hidden], .extension-connection-actions[hidden], .extension-install[hidden] { display:none; }
.extension-store-unavailable { margin-top:12px; font-size:12px; line-height:1.5; color:#b42318; white-space:nowrap; }
@media(max-width:640px) { .extension-store-unavailable { white-space:normal; } }

/* Secondary navigation belongs only to the long Settings page. */
.settings-page .settings-layout { display:grid; grid-template-columns:200px minmax(0, 1fr); align-items:start; gap:32px; }
.settings-page .settings-content { min-width:0; }
.settings-page .settings-navigation { position:sticky; top:24px; max-height:calc(100dvh - 48px); overflow-y:auto; padding-right:12px; scrollbar-color:var(--color-pine-700) transparent; scrollbar-width:thin; }
.settings-page .settings-navigation ul { display:grid; gap:3px; margin:0; padding:0; list-style:none; }
.settings-page .settings-navigation-link { display:block; border-radius:6px; padding:9px 12px; color:var(--color-stone-600); font-size:13px; line-height:1.4; text-decoration:none; }
.settings-page .settings-navigation-link:hover { background:var(--color-pine-50); color:var(--color-pine-800); }
.settings-page .settings-navigation-link[aria-current] { background:var(--color-pine-50); color:var(--color-pine-800); font-weight:600; }
.settings-page .settings-navigation-link:focus-visible { outline:2px solid var(--color-pine-600); outline-offset:2px; }
.settings-page .settings-navigation-subsection { padding-left:24px; }
.settings-page .settings-navigation-section { scroll-margin-top:24px; }
@media(max-width:767px) {
  .settings-page .settings-layout { grid-template-columns:minmax(0, 1fr); gap:24px; }
  .settings-page .settings-navigation { position:static; max-height:none; padding:0 0 16px; border-bottom:1px solid var(--color-stone-200); }
  .settings-page .settings-navigation ul { grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 8px; }
  .settings-page .settings-navigation-subsection { padding-left:12px; }
}

@media(max-width:1199px) {
  .settings-page .extension-store-unavailable { white-space:normal; }
}
/* The standalone editor fills its page; only the actual edit dialog is compact. */
.entry-edit-dialog #edit-time-entry-form { max-width: 24rem; }

/* Give bell messages the width of a sentence; timestamps use their own row. */
.app-shell #bell-panel.sidebar-bell-panel[data-bell-target="panel"] {
  position: fixed;
  transform: none;
  left: 12px;
  bottom: 76px;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
}
/* Keep the collapsed rail's bell toggle outside its wider notification panel. */
.app-shell[data-nav-collapsed="true"] #bell-panel.sidebar-bell-panel[data-bell-target="panel"] {
  left: calc(var(--sidebar-rail-width, 64px) + 12px);
  width: min(360px, calc(100vw - var(--sidebar-rail-width, 64px) - 24px));
}
.app-shell dialog #bell-panel.sidebar-bell-panel[data-bell-target="panel"] { width: min(306px, calc(92vw - 24px)); }
.bell-notice-link { min-width: 0; width: 100%; }
.bell-notice-heading { display: block; }
.bell-notice-title { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.bell-notice-link > .line-clamp-2 { font-size: 12px; line-height: 1.5; }
.bell-notice-stamp { margin-top: 6px; font-size: 11px; }

/* First-use helpers keep one type treatment across Timecard and directories. */
.empty-state-title, .empty-state-description, .empty-state-action {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.5;
}
.empty-state-title { margin: 0; font-weight: 500; color: var(--color-stone-600); }
.empty-state-description { margin: 4px 0 0; color: var(--color-stone-600); }
.empty-state-action { display: inline-block; margin-top: 4px; font-weight: 500; color: var(--color-pine-700); text-decoration: underline; text-underline-offset: 3px; }
.empty-state-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.settings-page { width: 100%; max-width: 1180px; margin-right: auto; }
/* The shared save controller inserts feedback after submit buttons. Stack it
   below this compact icon instead of reserving invisible width to its right. */
#api-token .api-token-value { flex: 1; }
#api-token .api-token-refresh { display: flex; flex-direction: column; align-items: flex-end; }
#api-token .api-token-refresh [data-settings-save-feedback] { min-width: 0; margin-left: 0; }

.migration-highlight { padding:20px 24px; border:1px solid #c5d1bb; border-radius:12px; background:#e8eddf; }

/* Selected C: centered records, labelled open sections. Selected H: quiet roster actions. */
.detail-window,.resource-dialog,.directory-record-dialog { width: min(1080px, calc(100vw - 40px)); max-width: calc(100vw - 40px); max-height: calc(100dvh - 64px); margin: auto; border: 0; border-radius: 12px; background: white; color: #2a3127; box-shadow: 0 18px 60px #172c2533; font-family: inherit; }
.directory-record-dialog { padding: 0; overflow: hidden; }
.directory-record-dialog[open] { display: flex; flex-direction: column; }
.directory-record-dialog::backdrop { background: #273b3055; }
.directory-record-section { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid #dce3dc; }
.directory-record-section:first-child { padding-top: 0; }.directory-record-section:last-child { border-bottom: 0; padding-bottom: 0; }
.directory-section-label { font-size: 13px!important; font-weight: 600; color: #526549; margin: 0!important; line-height: 1.6; }
.directory-section-body { min-width: 0; }

.directory-form-fields { display:grid; grid-template-columns:145px minmax(0,1fr) minmax(0,1fr); gap:20px 24px; align-items:start; }
.directory-form-fields > * { grid-column:2 / -1; margin:0!important; min-width:0; }
.directory-form-fields > .directory-section-label { grid-column:1; margin-top:4px!important; }
.directory-form-fields > .directory-section-label + * { grid-column:2 / -1; }
.directory-person-fields { display:grid; grid-template-columns:1fr 1fr; gap:22px 28px; }
.directory-person-fields > .form-errors,.directory-person-fields > turbo-frame { grid-column:1/-1; }
.directory-toolbar { display:flex; gap:12px; align-items:center; }.directory-toolbar > input { flex:1; min-width:180px; }.directory-toolbar > select { width:auto; }
.directory-person-initial { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; color:#526549; background:#eaf0e9; }
.directory-invitation-menu { position:relative; text-align:left; }.directory-invitation-menu summary { display:flex; align-items:center; justify-content:center; width:32px; height:32px; cursor:pointer; list-style:none; border-radius:6px; color:#526549; }.directory-invitation-menu summary::-webkit-details-marker { display:none; }.directory-invitation-menu summary:hover { background:#eef2e9; }
.directory-invitation-actions { position:fixed; inset:auto; margin:0; z-index:30; width:250px; padding:8px; border:1px solid #dce3dc; border-radius:8px; background:white; box-shadow:0 10px 24px #172c2520; }
.directory-menu-action { display:block; width:100%; padding:9px 10px; text-align:left; color:#526549; font-size:13px; border-radius:5px; }.directory-menu-action:hover { background:#eef2e9; }.directory-menu-action:disabled { opacity:.5; cursor:not-allowed; }
.directory-invitation-actions p { padding:5px 10px; }.directory-row-actions { display:flex; justify-content:flex-end; align-items:center; gap:8px; }
.people-table { min-width:780px; }.people-table .directory-row-actions { min-height:70px; }
.directory-record-dialog input[type=number] { appearance:textfield; }.directory-record-dialog input[type=number]::-webkit-inner-spin-button,.directory-record-dialog input[type=number]::-webkit-outer-spin-button { appearance:none; margin:0; }
.directory-record-dialog :focus-visible,.directory-invitation-menu :focus-visible { outline:2px solid #526549; outline-offset:3px; }
@media(max-width:640px) {
 .detail-window,.resource-dialog,.directory-record-dialog { width:calc(100vw - 20px); max-width:calc(100vw - 20px); max-height:calc(100dvh - 24px); }
 .directory-record-section,.directory-form-fields,.directory-person-fields { grid-template-columns:minmax(0,1fr); gap:16px; }
 .directory-form-fields > *,.directory-form-fields > .directory-section-label,.directory-form-fields > .directory-section-label + * { grid-column:1; }
 .directory-toolbar { flex-wrap:wrap; }.directory-toolbar > input { flex-basis:100%; }.directory-toolbar > select { flex:1; min-width:0; }
}

.directory-filters { justify-content:flex-start; gap:16px; }.directory-filters > input[type=search] { width:33.333%; flex:none; }.directory-filter-controls { margin-left:0; }.directory-filters select { min-width:160px; }.directory-table th a { color:inherit; display:inline-flex; align-items:center; gap:5px; text-decoration:none; }.directory-table th a:focus-visible { outline:2px solid #526549; outline-offset:4px; }
@media(max-width:640px) { .directory-filters > input[type=search] { width:100%; } }

.directory-form-related { padding:24px 0; border-top:1px solid #dce3dc; }.resource-dialog [data-member-visibility-target$="List"]:not([hidden]) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; border:0; }.resource-dialog [data-member-visibility-target$="List"] > div { display:contents; }.resource-dialog .who-member-row { border:0; min-width:0; padding:8px 0; }.resource-dialog .who-member-row > span { overflow-wrap:anywhere; }
@media(max-width:640px) { .resource-dialog [data-member-visibility-target$="List"]:not([hidden]) { grid-template-columns:1fr; } }

.directory-record-fields { min-width:0; margin:0; padding:0; border:0; }.directory-record-fields[disabled] input:not([type=radio]):not([type=checkbox]),.directory-record-fields[disabled] select { border-color:transparent; background:transparent; color:#2a3127; opacity:1; padding-left:0; appearance:none; }.directory-record-fields[disabled] input[type=radio],.directory-record-fields[disabled] input[type=checkbox] { opacity:.65; }

.directory-form-fields > .directory-form-related { grid-column:1 / -1; width:100%; padding:24px 0 0; }.directory-form-related .directory-record-section { margin:0; }.directory-form-related .detail-empty { text-align:left; padding:0; }

.directory-toolbar > input { flex:none; width:33.333%; }.directory-status button { padding:12px 0; color:#68705f; border-bottom:2px solid transparent; }.directory-status button[aria-pressed=true] { color:#526549; border-bottom-color:#526549; font-weight:600; }.directory-row-actions { display:grid; grid-template-columns:repeat(4,32px); gap:6px; }.directory-row-actions > button { grid-column:1; }.directory-archive-action { grid-column:2; }.directory-remove-action { grid-column:3; }.directory-row-actions > .directory-invitation-menu { grid-column:4; }.directory-actions { display:grid; grid-template-columns:repeat(3,32px); gap:6px; }.directory-actions > a { grid-column:1; }.directory-actions > button { grid-column:2; }
@media(max-width:640px) { .directory-toolbar > input { width:100%; } }

/* Read-only monthly people-cost comparison, shared by Project New/View/Edit. */
.project-people-costs { min-width:0; }
.project-cost-privacy { margin:0 0 10px!important; }
.project-cost-comparison th:not(:first-child),.project-cost-comparison td:not(:first-child),.project-cost-people-table th:not(:first-child),.project-cost-people-table td:not(:first-child) { text-align:right; font-variant-numeric:normal; }
.project-cost-comparison td small,.project-cost-people-table td small { display:block; margin-top:3px; font-size:11px; color:#626d5e; white-space:normal; }
.project-cost-comparison td strong,.project-cost-people-table td strong { font-weight:550; }
.project-cost-breakdown-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:24px 0 10px; }
.project-cost-breakdown-heading h4 { font-size:13px; font-weight:550; margin:0; }
.project-cost-breakdown-heading select { font-size:12px; border:1px solid #c9d3c1; border-radius:6px; background:white; padding:6px 9px; color:#2a3127; }
.project-cost-explanation { margin-top:12px!important; }
@media(max-width:650px) {
 .project-cost-comparison,.project-cost-people-table { width:100%; table-layout:fixed; }
 .project-cost-comparison th:first-child { width:34%; }.project-cost-people-table th:first-child { width:38%; }
 .project-cost-comparison th:nth-child(2),.project-cost-people-table th:nth-child(2) { width:12%; }
 .project-cost-comparison th,.project-cost-people-table th { white-space:normal; font-size:9px; }
 .project-cost-comparison :is(th,td),.project-cost-people-table :is(th,td) { padding:10px 4px; }
 .project-cost-comparison td:not(:first-child),.project-cost-people-table td:not(:first-child) { font-size:11px; overflow-wrap:anywhere; }
 .project-cost-comparison td:first-child,.project-cost-people-table td:first-child { overflow-wrap:anywhere; }
 .project-cost-comparison td small,.project-cost-people-table td small { font-size:10px; }
 .project-cost-breakdown-heading { flex-wrap:wrap; }
}

/* Overlay numbers use the same face and natural spacing as the surrounding UI. */
dialog { font-family:var(--font-sans); }
dialog :is(.num, .stat-value, input[type="number"], input[inputmode="decimal"], input[inputmode="numeric"]),
dialog.billing-window :is(p, span).font-mono {
  font-family:var(--font-sans);
  font-variant-numeric:normal;
  word-spacing:normal;
}
dialog .tabular-nums, dialog .directory-table .num, .directory-table dialog .num { font-variant-numeric:normal; }

/* Compact workspace disclosure; the account avatar remains rightmost. */
.sidebar-footer-actions[data-workspace-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sidebar-footer-actions[data-workspace-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-shell .sidebar-profile-button { display: inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; }
.app-shell .sidebar-profile-panel { position:fixed; bottom:1rem; left:252px; z-index:40; width:240px; padding:16px; border-radius:12px; background:white; box-shadow:0 8px 24px rgb(28 25 23 / .12); }
.app-shell .sidebar-profile-panel[hidden], .sidebar-workspace-picker[hidden] { display:none; }
.app-shell .sidebar-profile-identity, .app-shell .sidebar-logout-label { display:block; }
.sidebar-profile-identity { padding-bottom:12px; margin-bottom:8px; border-bottom:1px solid #e7e5e4; }
.sidebar-workspace-button { display:flex; justify-content:center; align-items:center; width:44px; height:44px; }
.sidebar-workspace-button[aria-expanded="true"] { background:#d9e3d5; border-radius:7px; color:#41543b; }
.sidebar-workspace-picker { position:fixed; z-index:45; overflow-y:auto; background:white; border-radius:12px; box-shadow:0 12px 36px rgb(28 25 23 / .14),0 3px 8px rgb(28 25 23 / .05); }
.workspace-picker-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 16px 12px; color:#526549; }
.workspace-picker-heading h2 { font-size:14px; font-weight:600; color:#2d332a; }
.workspace-picker-options { padding:0 6px 7px; }
.workspace-picker-option { display:flex; align-items:center; gap:10px; width:100%; padding:10px; border-radius:7px; text-align:left; }
button.workspace-picker-option:hover { background:#f3f5ef; }
.workspace-picker-option.is-current { background:#e8eddf; }
.workspace-picker-mark { display:flex; align-items:center; justify-content:center; width:30px; height:30px; flex-shrink:0; border-radius:6px; background:#f0f1eb; color:#526549; font-family:var(--font-mono); font-size:12px; }
.is-current .workspace-picker-mark { background:#526549; color:white; }
.workspace-picker-copy { min-width:0; flex:1; }
.workspace-picker-name { display:block; font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.workspace-picker-role { display:block; font-size:12px; color:#656b5f; }
.workspace-picker-option>svg { flex-shrink:0; color:#526549; }
.workspace-picker-create { border-top:1px solid #e5e7de; padding:9px 8px; }
.workspace-picker-create a { display:flex; align-items:center; gap:10px; min-height:44px; padding:8px; color:#41543b; font-size:13px; }
@media(min-width:1024px) { .app-shell[data-nav-collapsed="true"] .sidebar-profile-panel { left:calc(var(--sidebar-rail-width, 96px) + 10px); } }
@media(max-width:1023px) { .app-shell .sidebar-profile-panel { left:16px; bottom:160px; max-width:calc(100vw - 32px); } }
[data-footer-card] { container-type:inline-size; }
@container (max-width:180px) {
  .sidebar-footer-actions[data-workspace-count="4"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sidebar-footer-actions[data-workspace-count="4"] > :nth-child(even) { justify-self:end; }
}
