.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); gap: var(--space-6); }
.dashboard-stack { display: grid; align-content: start; gap: var(--space-4); }
.dashboard-section { margin: 0; }
.dashboard-section.is-overdue { border-top: 2px solid var(--color-danger); }
.dashboard-section.is-empty { padding-block: var(--space-4); }
.dashboard-section.is-empty .panel-header { margin-bottom: var(--space-2); }
.dashboard-section.is-empty > .muted { margin: 0; font-size: .8125rem; }
.dashboard-count { color: var(--color-text-muted); font-size: .75rem; }
.work-list { display: grid; }
.work-list-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--space-4); align-items: center; min-height: 58px; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); color: inherit; text-decoration: none; }
.work-list-item.deadline-row--overdue, .work-list-item.deadline-row--today, .work-list-item.deadline-row--soon, .work-list-item.deadline-row--later { margin-inline: calc(0px - var(--space-2)); padding-inline: var(--space-2); border-radius: var(--radius-sm); }
.work-list-item.deadline-row--overdue { background: var(--deadline-overdue-surface); }
.work-list-item.deadline-row--today { background: var(--deadline-today-surface); }
.work-list-item.deadline-row--soon { background: var(--deadline-soon-surface); }
.work-list-item.deadline-row--later { background: var(--deadline-later-surface); }
.work-list-item.deadline-row--overdue { box-shadow: inset 3px 0 0 var(--deadline-overdue-accent); }
.work-list-item.deadline-row--today { box-shadow: inset 3px 0 0 var(--deadline-today-accent); }
.work-list-item.deadline-row--soon { box-shadow: inset 3px 0 0 var(--deadline-soon-accent); }
.work-list-item.deadline-row--later { box-shadow: inset 3px 0 0 var(--deadline-later-accent); }
.work-list-item:last-child { border-bottom: 0; }
.work-list-item:hover .work-list-title { color: var(--color-accent); }
.work-list-title { display: block; font-weight: 650; }
.work-list-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); color: var(--color-text-muted); font-size: .75rem; }
.work-list-side { text-align: right; }
.work-list-date { display: block; color: var(--color-text-secondary); font-size: .75rem; font-variant-numeric: tabular-nums; }
.workload-list { display: grid; }
.workload-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: var(--space-3); align-items: center; min-height: 44px; border-bottom: 1px solid var(--color-border); color: inherit; font-size: .8125rem; text-decoration: none; }
.workload-row:last-child { border-bottom: 0; }
.workload-row strong { font-weight: 620; }
.workload-row span { color: var(--color-text-muted); }

.job-identity { display: flex; align-items: center; gap: var(--space-3); }
.job-identity .brand-mark { flex: 0 0 auto; }
.brand-mark-link { display: inline-flex; flex: 0 0 auto; border-radius: var(--radius-sm); }
.brand-mark-link:focus-visible { outline-offset: 3px; }
.table-meta-link { color: inherit; text-decoration: none; }
.table-meta-link:hover { color: var(--color-accent); }
.jobs-page-header { margin-bottom: var(--space-4); }
.jobs-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-bottom: var(--space-3); padding: 1px; border-radius: var(--radius-lg); background: var(--color-border); box-shadow: var(--shadow-subtle); overflow: hidden; }
.jobs-summary-item { display: grid; gap: 2px; min-width: 0; padding: var(--space-3) var(--space-4); background: var(--color-surface); color: inherit; text-decoration: none; }
.jobs-summary-item:hover { background: var(--color-surface-muted); color: inherit; }
.jobs-summary-label { color: var(--color-text-muted); font-size: .6875rem; font-weight: 680; letter-spacing: .04em; line-height: 1.25; text-transform: uppercase; }
.jobs-summary-item strong { font-size: 1.0625rem; font-weight: 680; font-variant-numeric: tabular-nums; line-height: 1.2; }
.jobs-summary-secondary { color: var(--color-text-muted); font-size: .6875rem; line-height: 1.25; }
.jobs-summary-today strong { color: var(--deadline-today-text); }
.jobs-summary-approval strong { color: var(--color-accent); }
.jobs-queue-tools { display: flex; min-width: 0; max-width: 100%; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.jobs-filter-tabs { min-width: 0; max-width: 100%; margin-bottom: 0; }
.jobs-filter-tabs { flex: 1; }
.jobs-filter-tabs a { display: inline-flex; align-items: center; gap: var(--space-2); }
.queue-count-badge { display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding-inline: 6px; border-radius: 999px; background: var(--color-surface-strong); color: var(--color-text-secondary); font-size: .6875rem; font-variant-numeric: tabular-nums; font-weight: 720; line-height: 1; }
.queue-count-badge--active { background: var(--color-accent-soft); color: var(--color-accent); }
.queue-count-badge--overdue { background: var(--color-danger-soft); color: var(--color-danger); }
.queue-count-badge--pending_approval { background: var(--color-warning-soft); color: var(--color-warning); }
.queue-count-badge--done { background: color-mix(in srgb,var(--color-success-soft) 55%,var(--color-surface-strong)); color: var(--color-text-secondary); }
.jobs-filter-tabs a.active .queue-count-badge { box-shadow: inset 0 0 0 1px currentColor; }
.manual-order-filter-note { color: var(--color-text-muted); font-size: .75rem; }
.manual-order-reset { margin-left: auto; }
.jobs-filter-toggle { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.jobs-filter-count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--color-accent); color: #fff; font-size: .6875rem; font-variant-numeric: tabular-nums; line-height: 1; }
.jobs-compact-filter { margin-bottom: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-subtle); }
.jobs-filter-sheet-header, .jobs-filter-backdrop { display: none; }
.jobs-filter-form { grid-template-columns: repeat(3,minmax(150px,1fr)) auto; padding: var(--space-3); border-top: 0; }
.jobs-filter-form-fields-4 { grid-template-columns: repeat(4,minmax(140px,1fr)) auto; }
.jobs-filter-form .filter-actions { justify-content: flex-end; }
.jobs-primary-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); }
.jobs-primary-toolbar .jobs-view-switch { margin-bottom: 0; }
.jobs-primary-toolbar .page-actions { margin-left: auto; }
.jobs-action-mobile { display: none; }
.jobs-view-switch { margin-bottom: var(--space-3); }
.completed-archive { display: grid; gap: var(--space-4); }
.completed-period, .completed-history { min-width: 0; }
.completed-period-header { display: flex; align-items: center; min-height: 36px; margin-bottom: var(--space-2); }
.completed-period-header h2, .completed-history > h2 { margin: 0; color: var(--color-text-secondary); font-size: .8125rem; font-weight: 720; letter-spacing: .04em; text-transform: uppercase; }
.completed-period-header h2 span { color: var(--color-text-muted); font-weight: 600; }
.completed-period .table-shell { margin-bottom: 0; }
.completed-period-empty { margin: 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text-muted); font-size: .8125rem; }
.completed-history { margin-top: var(--space-2); }
.completed-history > h2 { margin-bottom: var(--space-2); }
.completed-month-list { overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-subtle); }
.completed-month + .completed-month { border-top: 1px solid var(--color-border); }
.completed-month-toggle { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 0 var(--space-4); border: 0; border-radius: 0; background: var(--color-surface); color: var(--color-text-secondary); font: inherit; font-size: .8125rem; font-weight: 650; text-align: left; cursor: pointer; }
.completed-month-toggle:hover { background: var(--color-surface-muted); color: var(--color-text); }
.completed-month-toggle:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.completed-month-toggle strong { color: var(--color-text-muted); font-weight: 600; }
.completed-month-chevron { color: var(--color-text-muted); transition: transform var(--transition); }
.completed-month-toggle[aria-expanded="true"] .completed-month-chevron { transform: rotate(180deg); }
.completed-month-content { padding: var(--space-3); border-top: 1px solid var(--color-border); background: var(--color-surface-muted); }
.completed-month-content .table-shell { margin-bottom: 0; }
.completed-month-loading { margin: 0; padding: var(--space-3); color: var(--color-text-muted); font-size: .8125rem; }
.completed-month-fallback { display: inline-block; margin: 0 var(--space-4) var(--space-3); font-size: .8125rem; }
.completed-date-display { display: inline-grid; gap: 1px; white-space: nowrap; }
.completed-date-display span { color: var(--color-text-muted); font-size: .625rem; font-weight: 650; }
.completed-date-display strong { color: var(--color-text-secondary); font-size: .75rem; font-variant-numeric: tabular-nums; font-weight: 620; }
.archive-filter-panel { margin-bottom: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-subtle); }
.archive-filter-form { grid-template-columns: minmax(220px,1.5fr) minmax(150px,1fr) minmax(150px,1fr) auto; padding: var(--space-3); border-top: 0; }
.archive-mobile-tools, .archive-filter-sheet { display: none; }
.archive-job-dates { display: inline-grid; gap: var(--space-1); }
.archive-job-dates > small { color: var(--color-text-muted); font-size: .625rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.archived-job-card { border-left-color: var(--color-text-muted); background: color-mix(in srgb,var(--color-surface-muted) 46%,var(--color-surface)); }
.mobile-archive-state { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); color: var(--color-text-muted); font-size: .6875rem; }
.archive-state-label { display: inline-flex; min-height: 22px; align-items: center; padding: 0 var(--space-2); border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-text-secondary); font-weight: 700; }
.workload-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
.workload-perspective-tabs { margin-bottom: var(--space-3); }
.workload-table-shell { margin-bottom: 0; }
.workload-table th:first-child { width: 30%; }
.workload-table th:last-child { width: 18%; }
.workload-table--departments th:first-child { width: 24%; }
.workload-table--departments th:nth-child(2) { width: 13%; }
.workload-entity { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.workload-entity > div { min-width: 0; }
.workload-entity-media { display: inline-flex; flex: 0 0 auto; border-radius: var(--radius-sm); text-decoration: none; }
.workload-entity-media:focus-visible { outline-offset: 3px; }
.workload-sort { display: inline-flex; min-height: 28px; align-items: center; color: inherit; text-decoration: none; white-space: nowrap; }
.workload-sort:hover { color: var(--color-accent); }
.workload-mobile-sort { display: none; }
.workload-sort-dialog { width: min(520px,calc(100vw - 32px)); }
.workload-sort-options { display: grid; gap: var(--space-1); }
.workload-sort-option { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: var(--space-3); min-height: 46px; padding-block: var(--space-1); border-bottom: 1px solid var(--color-border); }
.workload-sort-option:last-child { border-bottom: 0; }
.workload-sort-option > span { color: var(--color-text-secondary); font-size: .8125rem; font-weight: 650; }
.workload-sort-option > div { display: flex; gap: var(--space-1); }
.workload-sort-option .is-active { background: var(--color-accent-soft); color: var(--color-accent); }
.workload-count { color: var(--color-text); font-variant-numeric: tabular-nums; font-weight: 640; text-decoration: none; }
.workload-count:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.workload-count-danger { color: var(--color-danger); }
.workload-count-today { color: var(--deadline-today-text); }
.workload-mobile-row { padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.workload-mobile-head { margin-bottom: var(--space-3); }
.workload-mobile-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-2) var(--space-4); }
.workload-mobile-metrics a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); color: var(--color-text-secondary); font-size: .75rem; text-decoration: none; }
.workload-mobile-metrics a:hover { color: var(--color-accent); }
.workload-mobile-metrics strong { color: var(--color-text); font-size: .875rem; font-variant-numeric: tabular-nums; }
.workload-mobile-metrics .is-zero { color: var(--color-text-muted); }
.workload-mobile-metrics .is-zero strong { color: var(--color-text-muted); font-weight: 560; }
.workload-mobile-metrics .workload-mobile-completed { grid-column: 1 / -1; margin-top: var(--space-1); padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
.analytics-period-tabs { margin-bottom: var(--space-3); }
.analytics-custom-period { display: grid; grid-template-columns: minmax(180px,240px) minmax(180px,240px) auto; align-items: end; gap: var(--space-3); margin-bottom: var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-subtle); }
.analytics-custom-period label { display: grid; min-width: 0; gap: var(--space-1); color: var(--color-text-secondary); font-size: var(--font-size-meta); font-weight: 650; }
.analytics-custom-period input { min-width: 0; }
.analytics-custom-period .button { align-self: end; }
.analytics-kpi-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1px; margin: 0; padding: 1px; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-border); box-shadow: var(--shadow-subtle); }
.analytics-kpi { min-width: 0; padding: var(--space-4); background: var(--color-surface); }
.analytics-kpi dt { overflow-wrap: anywhere; color: var(--color-text-muted); font-size: .6875rem; font-weight: 680; letter-spacing: .04em; line-height: 1.35; text-transform: uppercase; }
.analytics-kpi dd { margin: var(--space-2) 0 0; color: var(--color-text); font-size: clamp(1.5rem,2.5vw,2rem); font-variant-numeric: tabular-nums; font-weight: 720; line-height: 1; }
.analytics-kpi--revision { background: color-mix(in srgb,var(--color-danger-soft) 32%,var(--color-surface)); }
.analytics-kpi--revision dd { color: color-mix(in srgb,var(--color-danger) 78%,var(--color-text)); }
.analytics-brand-section { margin-top: var(--space-8); }
.analytics-brand-section .panel-header { margin-bottom: var(--space-3); }
.analytics-brand-section .panel-header h2 { font-size: 1rem; }
.analytics-brand-table-shell { margin-bottom: 0; }
.analytics-brand-table { min-width: 860px; }
.analytics-brand-table th:first-child { width: 28%; }
.analytics-brand-table .analytics-revision-column { background: color-mix(in srgb,var(--color-danger-soft) 18%,var(--color-surface)); }
.analytics-brand-empty { margin: 0; padding: var(--space-4); }
.analytics-brand-empty p { margin: 0; color: var(--color-text-muted); font-size: .8125rem; }
.analytics-brand-card { display: grid; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.analytics-brand-card-head .brand-mark { width: 40px; height: 40px; }
.analytics-brand-card-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-border); }
.analytics-brand-card-metrics > div { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--color-surface); }
.analytics-brand-card-metrics dt { color: var(--color-text-muted); font-size: .6875rem; }
.analytics-brand-card-metrics dd { margin: 0; font-size: .875rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.analytics-brand-card-metrics .analytics-brand-revision { background: color-mix(in srgb,var(--color-danger-soft) 20%,var(--color-surface)); }
.analytics-brand-card-metrics .analytics-brand-average { grid-column: 1 / -1; }

@media (max-width: 1100px) {
    .analytics-kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 800px) {
    .jobs-page-header { margin-bottom: var(--space-3); }
    .jobs-page-header h1 { font-size: 2rem; }
    .jobs-primary-toolbar { align-items: stretch; flex-direction: column; gap: var(--space-2); }
    .jobs-primary-toolbar .jobs-view-switch { width: 100%; }
    .jobs-primary-toolbar .page-actions { width: 100%; margin-left: 0; justify-content: flex-end; }
    .jobs-primary-toolbar .page-actions .btn { flex: 1 1 auto; min-height: 44px; }
    .jobs-primary-toolbar .page-actions .button-secondary { flex: 0 0 auto; min-height: 44px; }
    .jobs-create-actions { display: grid; grid-template-columns: auto minmax(0,1fr) minmax(0,1fr); }
    .jobs-create-actions .jobs-archive-action { grid-column: 1; }
    .jobs-action-desktop { display: none; }
    .jobs-action-mobile { display: inline; }
    .jobs-view-switch, .jobs-filter-tabs { position: relative; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .jobs-view-switch::-webkit-scrollbar, .jobs-filter-tabs::-webkit-scrollbar { display: none; }
    .jobs-view-switch.is-scrollable, .jobs-filter-tabs.is-scrollable { padding-inline: 4px 28px; scroll-padding-inline: var(--space-4); mask-image: linear-gradient(to right,transparent 0,#000 10px,#000 calc(100% - 22px),transparent 100%); -webkit-mask-image: linear-gradient(to right,transparent 0,#000 10px,#000 calc(100% - 22px),transparent 100%); }
    .jobs-view-switch.is-scrollable.is-at-start, .jobs-filter-tabs.is-scrollable.is-at-start { mask-image: linear-gradient(to right,#000 0,#000 calc(100% - 22px),transparent 100%); -webkit-mask-image: linear-gradient(to right,#000 0,#000 calc(100% - 22px),transparent 100%); }
    .jobs-view-switch.is-scrollable.is-at-end, .jobs-filter-tabs.is-scrollable.is-at-end { mask-image: linear-gradient(to right,transparent 0,#000 10px,#000 100%); -webkit-mask-image: linear-gradient(to right,transparent 0,#000 10px,#000 100%); }
    .jobs-view-switch a, .jobs-filter-tabs a { min-height: 44px; align-items: center; white-space: nowrap; }
    .jobs-view-switch.is-scrollable a:last-child, .jobs-filter-tabs.is-scrollable a:last-child { margin-right: var(--space-3); }
    .jobs-summary { margin-bottom: var(--space-2); }
    .jobs-summary-item { min-height: 62px; padding: var(--space-2) var(--space-3); }
    .jobs-summary-item strong { font-size: .9375rem; }
    .jobs-queue-tools { align-items: center; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-2); }
    .jobs-filter-tabs { width: 100%; flex-basis: 100%; }
    .jobs-filter-tabs a { padding-inline: var(--space-3); }
    .jobs-filter-toggle { min-height: 44px; margin-left: auto; }
    .manual-order-reset { margin-left: 0; }
    .jobs-filter-backdrop { position: fixed; inset: 0; z-index: 79; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: rgba(8,14,22,.48); }
    .jobs-filter-backdrop:not([hidden]) { display: block; }
    .jobs-compact-filter { position: fixed; right: 0; bottom: 0; left: 0; z-index: 80; max-height: min(78dvh,680px); margin: 0; padding-bottom: env(safe-area-inset-bottom); overflow-y: auto; overscroll-behavior: contain; border: 0; border-top: 1px solid var(--color-border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -16px 48px rgba(11,18,27,.18); }
    .jobs-filter-sheet-header { position: sticky; top: 0; z-index: 2; display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
    .jobs-filter-sheet-header h2 { margin: 1px 0 0; font-size: 1rem; }
    .jobs-filter-sheet-header button { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--color-text-muted); font-size: 1.35rem; }
    .jobs-filter-sheet-header button:hover { background: var(--color-surface-muted); color: var(--color-text); }
    .jobs-filter-form, .archive-filter-form { grid-template-columns: 1fr; padding: var(--space-4); }
    .jobs-filter-form .filter-actions { position: sticky; bottom: calc(0px - env(safe-area-inset-bottom)); z-index: 1; justify-content: stretch; margin: var(--space-2) calc(var(--space-4) * -1) calc(var(--space-4) * -1); padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); background: var(--color-surface); }
    .jobs-filter-form .filter-actions > * { flex: 1; min-height: 44px; }
    body.filter-sheet-open { overflow: hidden; }
    .archive-page-header { margin-bottom: var(--space-2); }
    .archive-page-header h1 { font-size: 1.75rem; }
    .archive-page-header p { margin-bottom: 0; }
    .archive-mobile-tools { display: flex; justify-content: flex-end; margin-bottom: var(--space-2); }
    .archive-mobile-tools .jobs-filter-toggle { min-height: 44px; }
    .archive-filter-panel-desktop { display: none; }
    .archive-filter-sheet { display: block; }
    .archive-filter-sheet[hidden] { display: none; }
    .archive-filter-sheet .archive-filter-form { grid-template-columns: 1fr; padding: var(--space-4); }
    .archive-filter-sheet .filter-actions { position: sticky; bottom: calc(0px - env(safe-area-inset-bottom)); z-index: 1; display: grid; grid-template-columns: 1fr 1fr; margin: var(--space-2) calc(var(--space-4) * -1) calc(var(--space-4) * -1); padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); background: var(--color-surface); }
    .archive-filter-sheet .filter-actions > * { min-height: 44px; }
    .workload-perspective-tabs, .analytics-period-tabs, .brand-secondary-nav { position: relative; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .workload-perspective-tabs::-webkit-scrollbar, .analytics-period-tabs::-webkit-scrollbar, .brand-secondary-nav::-webkit-scrollbar { display: none; }
    .workload-perspective-tabs.is-scrollable, .analytics-period-tabs.is-scrollable, .brand-secondary-nav.is-scrollable { padding-inline-end: 18px; mask-image: linear-gradient(to right,#000 0,#000 calc(100% - 22px),transparent 100%); -webkit-mask-image: linear-gradient(to right,#000 0,#000 calc(100% - 22px),transparent 100%); }
    .workload-perspective-tabs a, .analytics-period-tabs a, .brand-secondary-nav a { min-height: 44px; flex: 0 0 auto; align-items: center; white-space: nowrap; }
    .workload-mobile-sort { display: flex; justify-content: flex-start; margin-bottom: var(--space-2); }
    .workload-sort-trigger { min-height: 44px; }
    .workload-mobile-row { padding: var(--space-3); }
    .workload-mobile-head { margin-bottom: var(--space-2); }
    .workload-mobile-metrics { gap: var(--space-1) var(--space-3); }
    .analytics-custom-period { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .analytics-custom-period .button { grid-column: 1 / -1; }
    .analytics-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .analytics-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .analytics-kpi { padding: var(--space-3); }
    .analytics-kpi dd { margin-top: var(--space-1); font-size: 1.5rem; }
    .analytics-brand-section { margin-top: var(--space-6); }
}

@media (max-width: 560px) {
    .analytics-custom-period { grid-template-columns: repeat(2,minmax(0,1fr)); padding: var(--space-3); }
    .analytics-custom-period .button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
}
.person-workflow-header { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.person-workflow-avatar { width: 60px; height: 60px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: var(--color-surface-strong); }
.person-workflow-header h1 { margin: 2px 0 var(--space-1); font-size: clamp(1.65rem,3vw,2.15rem); }
.person-workflow-header p { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; color: var(--color-text-secondary); font-size: .8125rem; }
.person-workflow-summary { grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: var(--space-3); }
.empty-state-compact { padding: var(--space-6); }
.empty-state-compact p { margin-bottom: 0; }

@media (max-width: 560px) {
    .jobs-primary-toolbar .page-actions .btn { flex: 1 1 auto; }
    .jobs-primary-toolbar .page-actions .button-secondary { flex: 0 0 auto; }
}
.deadline-display { display: inline-grid; gap: 1px; justify-items: start; font-variant-numeric: tabular-nums; white-space: nowrap; }
.deadline-date { color: var(--color-text-secondary); font-size: .75rem; font-weight: 620; }
.deadline-cue { color: var(--color-text-muted); font-size: .625rem; font-weight: 650; }
.deadline-urgency--overdue .deadline-date, .deadline-urgency--overdue .deadline-cue { color: var(--deadline-overdue-text); }
.deadline-urgency--today .deadline-date, .deadline-urgency--today .deadline-cue { color: var(--deadline-today-text); }
.deadline-urgency--soon .deadline-date, .deadline-urgency--soon .deadline-cue { color: var(--deadline-soon-text); }
.deadline-urgency--later .deadline-cue { color: var(--deadline-later-text); }
.work-list-side .deadline-display { display: grid; justify-items: end; margin-top: 2px; }

@media (max-width: 800px) {
    .completed-archive { gap: var(--space-6); }
    .completed-period .mobile-list, .completed-month-content .mobile-list { gap: var(--space-2); }
    .completed-month-content { padding: var(--space-2); }
    .completed-month-toggle { min-height: 52px; }
}

.job-detail-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--space-6); align-items: end; margin-bottom: var(--space-4); }
.job-detail-title { min-width: 0; }
.job-context { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); color: var(--color-text-secondary); font-size: .8125rem; }
.job-context a:not(.brand-mark-link) { color: inherit; font-weight: 620; text-decoration: none; }
.job-context a:not(.brand-mark-link):hover { color: var(--color-accent); }
.job-heading-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-3); }
.job-detail-header h1 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.job-code { color: var(--color-text-muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.job-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--space-2); }
.workflow-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); }
.mobile-job-action-bar { display: none; }
.job-revisions { display: grid; gap: var(--space-3); margin-bottom: var(--space-4); padding: var(--space-4); border: 1px solid color-mix(in srgb,var(--color-danger) 28%,var(--color-border)); border-radius: var(--radius-lg); background: color-mix(in srgb,var(--color-danger-soft) 62%,var(--color-surface)); }
.job-revisions.is-current { border-color: color-mix(in srgb,var(--color-danger) 42%,var(--color-border)); background: color-mix(in srgb,var(--color-danger-soft) 78%,var(--color-surface)); }
.job-revisions > .panel-header h2 { font-weight: 720; }
.job-revisions > .panel-header .section-kicker { color: var(--color-danger); }
.job-revision-list { display: grid; gap: var(--space-3); }
.job-revision-entry { display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.job-revision-entry:first-child { padding-top: 0; border-top: 0; }
.job-revision-entry.is-latest { margin-inline: calc(var(--space-2) * -1); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border: 0; border-left: 3px solid var(--color-danger); border-radius: var(--radius-md); background: color-mix(in srgb,var(--color-danger-soft) 88%,var(--color-surface)); }
.job-revision-entry header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); color: var(--color-text-secondary); font-size: .8125rem; }
.job-revision-entry.is-latest strong { color: var(--color-danger); font-weight: 750; }
.job-revision-entry.is-latest p { font-weight: 600; }
.job-revision-entry p { max-width: 72ch; margin: 0; overflow-wrap: anywhere; }
.job-metadata-strip { width: 100%; min-width: 0; margin-bottom: var(--space-4); padding: var(--space-4) var(--space-6); border-block: 1px solid var(--color-border); background: var(--color-surface); }
.job-metadata-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-4) var(--space-6); margin: 0; }
.job-metadata-grid > div { min-width: 0; }
.job-metadata-grid dt { margin-bottom: var(--space-1); color: var(--color-text-muted); font-size: .6875rem; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.job-metadata-grid dd { min-height: 26px; margin: 0; color: var(--color-text); font-size: .8125rem; font-weight: 590; overflow-wrap: anywhere; }
.job-people-metadata .job-assignees-label { margin-top: var(--space-3); }
.job-owner-person { display: inline-flex; min-width: 0; align-items: center; gap: 6px; color: var(--color-text-secondary); font-size: .75rem; font-weight: 600; text-decoration: none; }
.job-owner-person > span:last-child { overflow-wrap: anywhere; }
a.job-owner-person:hover { color: var(--color-accent); }
.form-group label.brief-future-toggle { display: flex; width: fit-content; flex-direction: row; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 0; color: var(--color-text-secondary); font-size: .8125rem; font-weight: 500; line-height: 1.25; cursor: pointer; }
.agenda-dialog.inline-work-type-dialog { width: min(520px, calc(100vw - 32px)); }
.inline-work-type-error { margin: 0; }
.brief-future-toggle input[type="checkbox"] { width: 18px; min-width: 18px; max-width: none; height: 18px; min-height: 0; flex: 0 0 18px; margin: 0; padding: 0; accent-color: var(--color-accent); }
.future-deadline-label { display: inline-flex; align-items: center; min-height: 24px; padding: 2px var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-muted); color: var(--color-text-secondary); font-size: .75rem; font-weight: 680; }
.job-sequence-column, .job-sequence-cell { width: 54px; text-align: center !important; }
[data-job-order-root] .job-sequence-column, [data-job-order-root] .job-sequence-cell { width: 82px; }
.job-sequence-cell { white-space: nowrap; }
.job-sequence-layout { display: inline-flex; align-items: center; justify-content: flex-start; gap: var(--space-2); vertical-align: middle; }
.job-sequence { display: inline-block; width: 18px; color: var(--color-text-muted); font-size: .6875rem; font-variant-numeric: tabular-nums; font-weight: 680; letter-spacing: .03em; text-align: center; }
.job-order-handle { display: inline-grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--color-text-muted); cursor: grab; touch-action: none; }
.job-order-handle:hover { border-color: var(--color-border); background: var(--color-accent-soft); color: var(--color-accent); }
.job-order-handle:active, [data-job-order-root].is-sorting .job-order-handle { cursor: grabbing; }
.job-order-handle:focus-visible { border-color: var(--color-accent); outline-offset: 2px; }
.job-order-grip-icon { width: 12px; height: 16px; background-image: radial-gradient(circle, currentColor 1.25px, transparent 1.5px); background-position: 0 1px; background-size: 6px 6px; }
[data-job-order-root][aria-busy="true"] .job-order-handle { cursor: wait; opacity: .55; }
.job-sortable-chosen { position: relative; z-index: 2; }
.job-sortable-chosen:not(tr) { filter: drop-shadow(0 7px 12px rgba(22,31,43,.12)); }
.job-sortable-drag { opacity: .96; cursor: grabbing; }
.job-sortable-ghost { opacity: .42; outline: 1px solid color-mix(in srgb,var(--color-accent) 38%,transparent); outline-offset: -1px; }
.job-sortable-fallback { overflow: hidden; box-sizing: border-box; isolation: isolate; contain: paint; box-shadow: var(--shadow-overlay); }
.job-sortable-table-fallback { display: table !important; table-layout: fixed; border-collapse: separate; border-spacing: 0; filter: none; }
.job-sortable-table-fallback > td { overflow: hidden; box-sizing: border-box; }
.job-team-stack { display: inline-grid; width: 198px; max-width: 100%; grid-template-columns: minmax(0,1fr) 1px 30px; align-items: center; gap: var(--space-2); }
.job-team-assignees { display: flex; min-width: 0; justify-content: flex-end; }
.job-team-stack .avatar-stack { min-width: 0; padding-left: 0; }
.job-team-assignees .avatar-stack { justify-content: flex-end; gap: 0; }
.job-team-assignees .avatar-stack .avatar-item { width: 28px; height: 28px; flex: 0 0 28px; margin-left: -8px; }
.job-team-assignees .avatar-stack .avatar-item:first-child { margin-left: 0; }
.job-team-assignees .avatar-stack .avatar-item:hover, .job-team-assignees .avatar-stack .avatar-item:focus-visible { z-index: 2; }
.job-team-separator { width: 1px; height: 28px; background: var(--color-border); }
.avatar-stack-creator { width: 30px; }
.avatar-stack-creator .avatar-item { flex: 0 0 30px; margin-left: 0; }
.inline-title-input { width: min(100%, 520px); min-height: 32px; padding: var(--space-1) var(--space-2); font-size: .8125rem; font-weight: 650; }
.inline-title-error { display: block; margin-top: 3px; color: var(--color-danger); font-size: .6875rem; }
.mobile-row-actions { display: flex; align-items: center; gap: var(--space-2); }
.job-detail-content { display: grid; gap: var(--space-4); }
.job-content-section { margin: 0; }
.job-team-list { display: flex; min-width: 0; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.job-team-member { display: inline-flex; min-width: 0; align-items: center; gap: 6px; color: var(--color-text-secondary); font-size: .75rem; font-weight: 560; text-decoration: none; }
.job-team-member span { overflow-wrap: anywhere; }
a.job-team-member:hover { color: var(--color-accent); }
.editorial-copy { max-width: 76ch; color: var(--color-text); line-height: 1.7; white-space: normal; }
.metadata-list { margin: 0; }
.metadata-row { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.metadata-row:first-child { padding-top: 0; }
.metadata-row:last-child { padding-bottom: 0; border-bottom: 0; }
.metadata-row dt { color: var(--color-text-muted); font-size: .75rem; }
.metadata-row dd { margin: 0; font-size: .8125rem; font-weight: 580; }
.note-compose { margin-bottom: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); }
.note-compose textarea { min-height: 58px; }
.note-empty { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); color: var(--color-text-muted); font-size: .8125rem; }
.note-empty strong { color: var(--color-text-secondary); }
.note-list { display: grid; gap: var(--space-6); }
.note-entry { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: var(--space-3); }
.note-entry-header { display: flex; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2); }
.note-entry time { color: var(--color-text-muted); font-size: .75rem; }
.note-entry p { margin: 0; color: var(--color-text-secondary); line-height: 1.65; }
.activity-day + .activity-day { margin-top: var(--space-6); }
.activity-date { margin-bottom: var(--space-3); color: var(--color-text-muted); font-size: .6875rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.activity-item { position: relative; display: grid; grid-template-columns: 46px minmax(0,1fr); gap: var(--space-3); padding-bottom: var(--space-4); font-size: .8125rem; }
.activity-item::before { position: absolute; top: 22px; bottom: -2px; left: 37px; width: 1px; background: var(--color-border); content: ""; }
.activity-item:last-child::before { display: none; }
.activity-time { color: var(--color-text-muted); font-size: .6875rem; font-variant-numeric: tabular-nums; }
.job-archive-action { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; color: var(--color-text-muted); font-size: .75rem; }

.brand-list-name { display: flex; align-items: center; gap: var(--space-3); }
.brand-mobile-list { gap: var(--space-1); }
.brand-mobile-row { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); }
.brand-mobile-identity { display: grid; grid-template-columns: 42px minmax(0,1fr) 18px; align-items: center; gap: var(--space-3); }
.brand-mobile-identity .brand-mark { width: 42px; height: 42px; }
.brand-mobile-identity > span { min-width: 0; }
.brand-mobile-identity small { display: block; margin-top: 1px; color: var(--color-text-muted); font-size: .6875rem; }
.brand-mobile-chevron { color: var(--color-text-muted); font-size: 1.25rem; text-align: right; }
.brand-mobile-metrics { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: var(--space-2) 0 0 54px; color: var(--color-text-muted); font-size: .6875rem; }
.brand-workflow-header { display: grid; grid-template-columns: minmax(0,1fr) minmax(330px,.8fr); gap: var(--space-6); align-items: center; margin-bottom: var(--space-6); }
.brand-workflow-identity { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.brand-workflow-logo { width: 68px; height: 68px; flex: 0 0 auto; border-radius: var(--radius-md); }
.brand-logo.brand-workflow-logo { padding: 8px; }
.brand-workflow-title { min-width: 0; }
.brand-workflow-heading { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.brand-workflow-heading h1 { margin: 2px 0 0; font-size: clamp(1.75rem,3vw,2.35rem); overflow-wrap: anywhere; }
.brand-workflow-title p { margin: var(--space-1) 0 0; color: var(--color-text-secondary); font-size: .8125rem; overflow-wrap: anywhere; }
.brand-completion-summary { min-width: 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-subtle); }
.brand-completion-summary h2 { margin: 0 0 var(--space-2); font-size: .8125rem; font-weight: 700; }
.brand-completion-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-2); }
.brand-completion-item { display: grid; gap: 2px; min-width: 0; }
.brand-completion-item span { color: var(--color-text-muted); font-size: .6875rem; font-weight: 650; line-height: 1.2; }
.brand-completion-item strong { font-size: 1.125rem; font-weight: 680; font-variant-numeric: tabular-nums; }
.brand-workflow-section { margin-bottom: var(--space-4); }
.brand-secondary-nav { position: static; margin: 0 0 var(--space-4); padding-block: var(--space-3); }
.brand-metadata { margin-bottom: 0; }
.brand-hero { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: var(--space-8); align-items: center; }
.brand-detail-logo { width: 140px; max-height: 100px; object-fit: contain; }
.brand-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-4) var(--space-6); }
.brand-links strong { display: block; margin-bottom: var(--space-1); color: var(--color-text-muted); font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; }
.brand-links a, .brand-links span { font-size: .8125rem; overflow-wrap: anywhere; }
.operational-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--color-border); }
.operational-stat { padding: var(--space-4); border-right: 1px solid var(--color-border); }
.operational-stat { color: inherit; text-decoration: none; }
.operational-stat:hover { background: var(--color-surface-muted); color: inherit; }
.operational-stat:last-child { border-right: 0; }
.operational-stat strong { display: block; font-size: 1.5rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.operational-stat span { color: var(--color-text-muted); font-size: .75rem; }
.section-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: var(--space-4); margin-bottom: var(--space-6); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); background: var(--color-bg); overflow-x: auto; }
.section-nav a { flex: 0 0 auto; color: var(--color-text-secondary); font-size: .8125rem; font-weight: 620; text-decoration: none; }
.section-nav a:hover { color: var(--color-accent); }
.brand-section { scroll-margin-top: 64px; }
.brand-agenda-section { padding-bottom: var(--space-3); }
.compact-section-empty { margin: 0; }
.agenda-list { display: grid; }
.agenda-list-row { border-top: 1px solid var(--color-border); }
.agenda-list-trigger { display: grid; width: 100%; min-height: 50px; grid-template-columns: 116px minmax(180px,1fr) minmax(130px,.55fr) 72px 18px; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; border: 0; background: transparent; color: var(--color-text-secondary); text-align: left; cursor: pointer; }
.agenda-list-trigger:hover { background: var(--color-surface-muted); color: var(--color-text); }
.agenda-list-trigger:focus-visible { outline-offset: 2px; }
.agenda-list-date, .agenda-list-author, .agenda-list-files { color: var(--color-text-muted); font-size: .75rem; }
.agenda-list-title { min-width: 0; overflow: hidden; color: var(--color-text); font-size: .875rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.agenda-list-preview { display: none; }
.agenda-list-files { text-align: right; white-space: nowrap; }
.agenda-list-chevron { color: var(--color-text-muted); font-size: 1.25rem; text-align: right; }
.agenda-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(85dvh, 800px); padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-overlay); }
.modal-open { overflow: hidden; }
.agenda-dialog::backdrop { background: rgba(9,15,23,.55); backdrop-filter: blur(2px); }
.agenda-dialog-shell { display: flex; flex-direction: column; max-height: min(85dvh, 800px); overflow: hidden; }
.agenda-dialog-header { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) var(--space-8); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.agenda-dialog-header h2 { margin: var(--space-1) 0 0; font-size: 1.25rem; line-height: 1.3; overflow-wrap: anywhere; }
.agenda-dialog-close { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; padding: 0; font-size: 1.25rem; line-height: 1; }
.agenda-dialog-body { min-height: 0; padding: var(--space-6) var(--space-8); overflow-y: auto; }
.agenda-dialog-form { display: flex; min-height: 0; flex-direction: column; overflow: hidden; }
.agenda-dialog-fields { display: grid; gap: var(--space-6); }
.agenda-field { min-width: 0; }
.agenda-field > label, .agenda-field-label { display: block; margin-bottom: var(--space-2); color: var(--color-text-secondary); font-size: .8125rem; font-weight: 650; }
.agenda-field > textarea { min-height: 144px; max-height: 300px; }
.agenda-dialog-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-4) var(--space-8); border-top: 1px solid var(--color-border); background: var(--color-surface); }
.agenda-dialog-detail-footer .inline-action { margin-right: auto; }
.agenda-dialog-meta { margin: var(--space-1) 0 0; color: var(--color-text-muted); font-size: .75rem; }
.agenda-dialog-note { max-width: 64ch; margin-bottom: var(--space-6); overflow-wrap: anywhere; }
.agenda-files { padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.agenda-files-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.agenda-files-head h3 { margin: 0; font-size: .8125rem; }
.agenda-attachment-list { margin-top: var(--space-2); }
.agenda-file-picker { position: relative; min-width: 0; }
.agenda-file-picker .agenda-file-input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.agenda-file-input:focus-visible + .agenda-file-controls [data-file-trigger] { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.agenda-file-controls { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.agenda-file-state { color: var(--color-text-muted); font-size: .75rem; }
.agenda-selected-files { display: grid; gap: var(--space-1); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.agenda-selected-files[hidden] { display: none; }
.agenda-selected-files li { display: flex; align-items: center; gap: var(--space-2); min-width: 0; padding: var(--space-1) var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-muted); font-size: .75rem; }
.agenda-selected-files li span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-selected-files li small { flex: 0 0 auto; color: var(--color-text-muted); }
.agenda-selected-remove { width: 24px; height: 24px; flex: 0 0 auto; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-text-secondary); cursor: pointer; }
.agenda-selected-remove:hover { background: var(--color-surface-strong); color: var(--color-danger); }
.agenda-file-picker .field-help { margin-top: var(--space-2); }
.agenda-file-picker .field-error { display: block; margin-top: var(--space-2); color: var(--color-danger); font-size: .75rem; }
.agenda-file-picker .field-error[hidden] { display: none; }
.agenda-existing-files { display: grid; gap: var(--space-1); min-width: 0; font-size: .75rem; }
.agenda-existing-file { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-width: 0; padding: var(--space-1) 0; border-bottom: 1px solid var(--color-border); }
.agenda-existing-file a { min-width: 0; overflow-wrap: anywhere; }
.agenda-existing-file button { flex: 0 0 auto; }
.contact-book { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: var(--space-6); }
.contact-entry { padding-left: var(--space-4); border-left: 2px solid var(--color-border); }
.contact-entry strong { display: block; }
.contact-entry span { display: block; color: var(--color-text-muted); font-size: .75rem; }
.contact-entry a { display: block; margin-top: var(--space-2); font-size: .8125rem; overflow-wrap: anywhere; }

.user-identity { display: flex; align-items: center; gap: var(--space-3); }
.user-identity > span { min-width: 0; }
.settings-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.danger-zone { border-left: 3px solid var(--color-danger); }

.profile-settings { display: grid; gap: var(--space-6); }
.profile-page-header { margin-bottom: var(--space-6); }
.profile-section { display: grid; gap: var(--space-6); }
.profile-avatar-editor { display: grid; grid-template-columns: 88px minmax(0,1fr); align-items: center; gap: var(--space-6); padding-bottom: var(--space-6); border-bottom: 1px solid var(--color-border); }
.profile-avatar-preview { width: 88px; height: 88px; border-radius: 50%; background: var(--color-surface-strong); object-fit: cover; }
.profile-file-control { position: relative; min-width: 0; }
.profile-file-input { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; padding: 0 !important; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.profile-file-trigger { width: fit-content; min-height: 44px; cursor: pointer; }
.profile-file-input:focus-visible + .profile-file-name { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.profile-file-name { display: block; max-width: 100%; margin-top: var(--space-2); color: var(--color-text-secondary); font-size: .75rem; overflow-wrap: anywhere; }
.profile-section-heading h2 { margin-bottom: var(--space-1); }
.profile-section-heading p { margin: 0; color: var(--color-text-muted); font-size: .8125rem; }
.profile-readonly-context { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-surface-muted); }
.profile-readonly-context span { display: block; margin-bottom: var(--space-1); color: var(--color-text-muted); font-size: .75rem; }
.profile-readonly-context strong { font-size: .8125rem; }
.profile-password-grid { max-width: 720px; }
.pwa-install-section { width: 100%; min-width: 0; gap: var(--space-4); }
.pwa-install-state { display: grid; width: 100%; min-width: 0; max-width: 64ch; gap: var(--space-1); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-muted); overflow-wrap: anywhere; }
.pwa-install-state[hidden] { display: none; }
.pwa-install-section [data-pwa-install-action][hidden] { display: none; }
.pwa-install-state strong { font-size: .875rem; }
.pwa-install-state span, .pwa-install-steps { margin: 0; color: var(--color-text-muted); font-size: .8125rem; }
.pwa-install-steps { display: grid; gap: var(--space-1); padding-left: 1.25rem; }

.theme-preset-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: var(--space-3); }
.theme-preset { display: grid; min-width: 0; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); text-align: left; transition: border-color var(--transition), background var(--transition), box-shadow var(--transition); }
.theme-preset:hover { border-color: var(--color-accent-border); background: var(--color-accent-subtle); }
.theme-preset.is-selected { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.theme-preset-card { display: grid; min-width: 0; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-muted); transition: border-color var(--transition), background var(--transition), box-shadow var(--transition); }
.theme-preset-card:hover { border-color: var(--color-accent-border); background: var(--color-accent-subtle); }
.theme-preset-card.is-selected { border-color: var(--color-accent); background: var(--color-accent-subtle); box-shadow: inset 0 0 0 1px var(--color-accent); }
.theme-card-actions { display: flex; min-height: 30px; align-items: center; justify-content: flex-end; gap: var(--space-1); }
.theme-card-action { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: var(--radius-round); background: transparent; color: var(--color-text-muted); }
.theme-card-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-card-action:hover, .theme-card-action:focus-visible { border-color: var(--color-accent-border); background: var(--color-surface); color: var(--color-accent); }
.theme-card-action--delete:hover, .theme-card-action--delete:focus-visible { border-color: color-mix(in srgb,var(--color-danger) 30%,transparent); background: var(--color-danger-soft); color: var(--color-danger); }
.theme-palette-select { display: grid; min-width: 0; width: 100%; gap: var(--space-3); padding: 0; border: 0; background: transparent; color: var(--color-text); text-align: left; }
.theme-preset-swatches { display: grid; grid-template-columns: repeat(5,1fr); height: 26px; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.theme-preset-swatches i { background: var(--swatch); }
.theme-preset > span:last-child, .theme-palette-select > span:last-child { display: grid; min-width: 0; gap: 2px; }
.theme-preset strong, .theme-palette-select strong { overflow: hidden; font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
.theme-preset small, .theme-palette-select small { color: var(--color-text-muted); font-size: .6875rem; }
.theme-mode { padding: 3px var(--space-2); border-radius: var(--radius-round); background: var(--color-surface-strong); color: var(--color-text-secondary); font-size: .6875rem; font-weight: 700; }
.animation-library { scroll-margin-top: var(--space-6); }
.animation-library-heading { align-items: center; }
.animation-library-heading h2 { margin: var(--space-1) 0 0; }
.animation-selection-form { display: grid; gap: var(--space-4); }
.animation-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-3); }
.animation-card-shell, .animation-card { min-width: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.animation-card-shell { position: relative; display: grid; overflow: hidden; }
.animation-card-shell.is-selected, .animation-card.is-selected { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.animation-card { display: grid; width: 100%; gap: var(--space-3); padding: var(--space-3); color: var(--color-text); text-align: left; }
.animation-card-shell .animation-card { border: 0; border-radius: 0; box-shadow: none; }
.animation-card:hover { background: var(--color-accent-subtle); }
.animation-card-actions { position: absolute; top: var(--space-2); right: var(--space-2); z-index: 3; display: flex; gap: 2px; padding: 2px; border-radius: var(--radius-round); background: color-mix(in srgb,var(--theme-nav) 68%,transparent); backdrop-filter: blur(5px); }
.animation-card-actions .theme-card-action { color: #fff; text-decoration: none; }
.animation-preview { position: relative; display: block; isolation: isolate; min-height: 112px; overflow: hidden; border-radius: var(--radius-sm); background: var(--theme-nav); }
.animation-preview-flat::after { position: absolute; inset: 0; display: grid; place-items: center; color: var(--color-sidebar-muted); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; content: "Düz"; }
.animation-preview canvas { border-radius: inherit; }
.animation-card-copy { display: grid; gap: 2px; min-width: 0; }
.animation-card-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.animation-card-copy small { color: var(--color-text-muted); font-size: .6875rem; }
.animation-empty { margin: 0; }
.animation-apply-actions { justify-content: flex-end; }
.animation-editor-dialog { width: min(900px,calc(100vw - 32px)); }
.animation-editor-body { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(260px,.85fr); gap: var(--space-6); }
.animation-editor-body textarea { width: 100%; min-height: min(48dvh,420px); resize: vertical; font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size: .75rem; line-height: 1.55; tab-size: 2; }
.animation-dialog-preview { display: grid; align-content: start; gap: var(--space-2); min-width: 0; }
.animation-dialog-preview > strong { font-size: .8125rem; }
.animation-preview-dialog { min-height: 300px; }
.animation-validation-state { margin: 0; color: var(--color-danger); font-size: .75rem; }
.animation-validation-state.is-valid { color: var(--color-success); }
.animation-dialog-actions { row-gap: var(--space-2); }
.theme-editor-grid { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(320px,1.2fr); gap: var(--space-6); }
.theme-color-fields { display: grid; gap: var(--space-3); }
.theme-color-field { display: grid; grid-template-columns: minmax(0,1fr) minmax(150px,180px); align-items: center; gap: var(--space-3); }
.theme-color-field label { min-width: 0; color: var(--color-text); }
.theme-color-field label small { display: block; margin-top: 2px; color: var(--color-text-muted); font-size: .6875rem; font-weight: 450; }
.theme-color-control { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: var(--space-2); }
.theme-color-control input[type="color"] { width: 42px; height: 40px; padding: 3px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface); }
.theme-color-control input[type="text"] { min-width: 0; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: .8125rem; text-transform: uppercase; }
.theme-preview { display: grid; min-height: 260px; grid-template-columns: 32% 68%; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--theme-background); box-shadow: var(--shadow-subtle); }
.theme-preview-nav { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--theme-nav); color: #fff; font-size: .6875rem; }
.theme-preview-nav strong { margin-bottom: var(--space-3); font-size: 1rem; }
.theme-preview-nav span { padding: var(--space-2); border-radius: var(--radius-sm); color: color-mix(in srgb,#fff 62%,var(--theme-nav)); }
.theme-preview-nav .is-active { background: color-mix(in srgb,var(--theme-accent) 26%,var(--theme-nav)); color: #fff; }
.theme-preview-main { padding: var(--space-4); color: var(--theme-text); }
.theme-preview-card { margin-top: var(--space-3); padding: var(--space-4); border: 1px solid color-mix(in srgb,var(--theme-text) 14%,var(--theme-surface)); border-radius: var(--radius-md); background: var(--theme-surface); }
.theme-preview-card p { margin: var(--space-1) 0 var(--space-6); color: color-mix(in srgb,var(--theme-text) 62%,var(--theme-background)); font-size: .75rem; }
.theme-preview-card > div { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.theme-preview-card button { min-height: 34px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-md); background: var(--theme-accent); color: #fff; font-size: .75rem; font-weight: 650; }
.theme-preview-tab { padding-bottom: 3px; border-bottom: 2px solid var(--theme-accent); color: var(--theme-accent); font-size: .75rem; font-weight: 650; }
.theme-form-actions { justify-content: flex-end; flex-wrap: wrap; }
.theme-action-dialog { width: min(460px,calc(100vw - 32px)); }
.theme-delete-message { margin: 0; color: var(--color-text-secondary); }

.login-body { min-height: 100%; background: var(--theme-nav); }
.login-page { position: relative; isolation: isolate; display: grid; width: 100%; min-height: 100vh; min-height: 100dvh; place-items: center; overflow-x: clip; padding: max(var(--space-8),env(safe-area-inset-top)) max(var(--space-6),env(safe-area-inset-right)) max(var(--space-8),env(safe-area-inset-bottom)) max(var(--space-6),env(safe-area-inset-left)); background: var(--theme-nav); color: var(--color-sidebar-text); -webkit-text-size-adjust: 100%; }
.login-background { position: fixed; z-index: -1; inset: 0; overflow: hidden; background: var(--theme-nav); pointer-events: none; }
.login-background-effect { position: absolute; inset: 0; }
.login-content { display: grid; width: min(100%,440px); min-width: 0; gap: calc(var(--space-8) + var(--space-2)); text-align: center; }
.login-brand { display: grid; place-items: center; gap: var(--space-4); }
.login-brand img { width: 120px; height: auto; }
.login-brand .section-kicker { color: var(--color-sidebar-muted); }
.login-panel { width: 100%; min-width: 0; }
.login-form { display: grid; gap: var(--space-4); margin-top: 0; }
.login-form label { display: grid; gap: var(--space-2); color: var(--color-sidebar-text); text-align: left; }
.login-form input { background: var(--theme-surface); color: var(--theme-text); }
.login-form .btn { width: 100%; }
.login-panel .notice { margin-top: 0; margin-bottom: var(--space-4); text-align: left; }

@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .jobs-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .person-workflow-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .workload-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .brand-workflow-header { grid-template-columns: 1fr; gap: var(--space-4); }
    .theme-preset-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .animation-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
    .jobs-filter-form, .archive-filter-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .job-detail-header { grid-template-columns: 1fr; }
    .job-header-actions { display: none; }
    .mobile-job-action-bar { position: fixed; z-index: 42; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: var(--space-2); padding: var(--space-2) max(var(--space-4), env(safe-area-inset-right)) max(var(--space-2), env(safe-area-inset-bottom)) max(var(--space-4), env(safe-area-inset-left)); border-top: 1px solid var(--color-border); background: color-mix(in srgb,var(--color-surface) 96%,transparent); box-shadow: 0 -8px 24px rgba(22,31,43,.1); backdrop-filter: blur(12px); }
    .mobile-job-action-primary { display: grid; min-width: 0; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: var(--space-2); }
    .mobile-job-action-primary .inline-action, .mobile-job-action-primary .button { width: 100%; }
    .mobile-job-action-primary .button { min-height: 44px; padding-inline: var(--space-3); }
    .mobile-job-action-more { position: relative; }
    .mobile-job-action-more > summary { display: grid; width: 44px; min-height: 44px; place-items: center; padding: 0; list-style: none; font-size: 1.15rem; letter-spacing: .08em; cursor: pointer; }
    .mobile-job-action-more > summary::-webkit-details-marker { display: none; }
    .mobile-job-action-menu { position: absolute; right: 0; bottom: calc(100% + var(--space-2)); display: grid; width: min(260px,calc(100vw - 32px)); gap: var(--space-1); padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-overlay); }
    .mobile-job-action-menu .inline-action, .mobile-job-action-menu .button { width: 100%; }
    .mobile-job-action-menu .button { min-height: 44px; justify-content: flex-start; text-align: left; }
    body.mobile-input-active .mobile-job-action-bar { visibility: hidden; transform: translateY(100%); pointer-events: none; }
    .theme-card-actions { min-height: 44px; }
    .theme-card-action { width: 44px; height: 44px; }
    .job-detail-content.has-mobile-action-bar { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .job-archive-action { display: none; }
    .job-metadata-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-4); }
    .brand-hero { grid-template-columns: 92px minmax(0,1fr); gap: var(--space-4); }
    .brand-detail-logo { width: 92px; max-height: 72px; }
    .section-nav { top: 58px; }
    .brand-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .brand-workflow-logo { width: 56px; height: 56px; }
    .login-page { min-height: 100vh; min-height: 100svh; padding: max(var(--space-4),env(safe-area-inset-top)) max(var(--space-8),env(safe-area-inset-right)) max(var(--space-4),env(safe-area-inset-bottom)) max(var(--space-8),env(safe-area-inset-left)); }
    .login-content { width: min(100%,340px); translate: 0 -4svh; }
    .login-brand img { width: 96px; }
    .login-form { gap: var(--space-3); }
    .login-form label { gap: var(--space-1); font-size: .8125rem; }
    .login-form :is(input,select,textarea) { width: 100%; max-width: 100%; font-size: 1rem; line-height: 1.4; }
    .login-form :is(input,.btn) { min-height: 46px; }
    .profile-settings .settings-section { padding: var(--space-4); box-shadow: none; }
    .theme-editor-grid { grid-template-columns: 1fr; }
    .animation-editor-body { grid-template-columns: 1fr; gap: var(--space-4); }
    .animation-preview-dialog { min-height: 220px; }
}

@media (max-width: 560px) {
    .theme-preset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .animation-card-grid { grid-template-columns: 1fr; }
    .animation-library-heading { align-items: stretch; }
    .animation-library-heading .button { width: 100%; }
    .animation-dialog-actions { align-items: stretch; flex-direction: column-reverse; }
    .animation-dialog-actions .button { width: 100%; min-height: 44px; }
    .theme-color-field { grid-template-columns: 1fr; gap: var(--space-2); }
    .theme-color-control { grid-template-columns: 48px minmax(0,1fr); }
    .theme-color-control input[type="color"] { width: 48px; height: 44px; }
    .theme-preview { min-height: 220px; }
    .jobs-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .person-workflow-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .workload-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .jobs-summary-item { padding: var(--space-3); }
    .jobs-summary-item strong { font-size: .9375rem; }
    .jobs-queue-tools { align-items: stretch; flex-wrap: wrap; gap: var(--space-2); }
    .jobs-filter-tabs { flex-basis: 100%; }
    .manual-order-reset { margin-left: 0; }
    .jobs-filter-tabs a { padding-inline: var(--space-2); }
    .jobs-filter-form, .archive-filter-form { grid-template-columns: 1fr; }
    .person-workflow-avatar { width: 48px; height: 48px; }
    .back-link { margin-bottom: var(--space-2); }
    .job-detail-header { gap: var(--space-2); margin-bottom: var(--space-3); }
    .job-context { flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin-bottom: var(--space-2); }
    .job-context .brand-mark { width: 34px; height: 34px; }
    .job-heading-row { align-items: flex-start; flex-direction: column; gap: var(--space-1); }
    .job-detail-header h1 { font-size: 1.5rem; line-height: 1.18; }
    .job-heading-row .status-badge { min-height: 22px; }
    .job-metadata-strip { margin-bottom: var(--space-3); padding: var(--space-3); }
    .job-metadata-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3); }
    .job-metadata-grid > div:last-child { grid-column: 1 / -1; }
    .job-metadata-grid dt { margin-bottom: 2px; font-size: .625rem; }
    .job-metadata-grid dd { min-height: 22px; font-size: .75rem; }
    .job-people-metadata .job-assignees-label { margin-top: var(--space-2); }
    .job-team-list { gap: var(--space-1) var(--space-2); }
    .job-revisions { gap: var(--space-2); margin-bottom: var(--space-3); padding: var(--space-3); }
    .job-revisions > .panel-header { margin-bottom: var(--space-2); }
    .job-revision-list { gap: var(--space-2); }
    .job-revision-entry { gap: var(--space-1); padding-top: var(--space-2); }
    .job-revision-entry.is-latest { margin-inline: 0; padding: var(--space-2) var(--space-3); }
    .job-revision-entry header { align-items: flex-start; flex-direction: column; gap: var(--space-1); }
    .job-revision-entry header span, .job-revision-entry p { overflow-wrap: anywhere; }
    .job-detail-content { gap: var(--space-3); }
    .job-content-section { padding: var(--space-3); }
    .job-content-section > .panel-header { margin-bottom: var(--space-1); }
    .job-content-section > .panel-header h2 { font-size: 1.0625rem; }
    .editorial-copy { font-size: .875rem; line-height: 1.6; }
    .note-compose { gap: var(--space-2); margin-bottom: var(--space-2); padding-bottom: var(--space-2); }
    .note-compose textarea { min-height: 52px; }
    .note-compose .button { min-height: 40px; }
    .note-empty { display: grid; gap: 2px; }
    .note-list { gap: var(--space-4); }
    .note-entry { grid-template-columns: 28px minmax(0,1fr); gap: var(--space-2); }
    .note-entry .avatar { width: 28px; height: 28px; }
    .note-entry-header { align-items: flex-start; flex-direction: column; gap: 2px; margin-bottom: var(--space-1); }
    .note-entry p { font-size: .8125rem; line-height: 1.55; overflow-wrap: anywhere; }
    .activity-day + .activity-day { margin-top: var(--space-4); }
    .activity-date { margin-bottom: var(--space-2); }
    .activity-item { grid-template-columns: 38px minmax(0,1fr); gap: var(--space-2); padding-bottom: var(--space-3); }
    .activity-item::before { top: 20px; left: 30px; }
    .activity-item > span { overflow-wrap: anywhere; line-height: 1.45; }
    .job-archive-action { align-items: flex-start; flex-direction: column; }
    .brand-workflow-identity { align-items: flex-start; gap: var(--space-3); }
    .brand-workflow-header { gap: var(--space-3); margin-bottom: var(--space-3); }
    .brand-workflow-logo { width: 48px; height: 48px; }
    .brand-workflow-heading { gap: var(--space-2); }
    .brand-workflow-heading h1 { font-size: 1.5rem; }
    .brand-workflow-section, .brand-section { padding: var(--space-3); }
    .brand-workflow-section > .panel-header, .brand-section > .panel-header { margin-bottom: var(--space-2); }
    .brand-agenda-section > .panel-header .button { min-height: 44px; }
    .brand-completion-summary { padding: var(--space-3); }
    .brand-completion-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3) var(--space-4); }
    .brand-hero { grid-template-columns: 1fr; }
    .brand-links { grid-template-columns: 1fr; }
    .operational-strip { grid-template-columns: 1fr; }
    .operational-stat { border-right: 0; border-bottom: 1px solid var(--color-border); }
    .operational-stat:last-child { border-bottom: 0; }
    .agenda-list-trigger { grid-template-columns: minmax(0,1fr) auto; gap: 2px var(--space-3); min-height: 58px; padding-block: var(--space-2); }
    .agenda-list-date { grid-column: 1; grid-row: 3; }
    .agenda-list-title { grid-column: 1; grid-row: 1; }
    .agenda-list-preview { display: -webkit-box; grid-column: 1; grid-row: 2; overflow: hidden; color: var(--color-text-muted); font-size: .6875rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
    .agenda-list-author { display: none; }
    .agenda-list-files { grid-column: 2; grid-row: 1; }
    .agenda-list-chevron { grid-column: 2; grid-row: 2 / 4; align-self: center; }
    .agenda-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: auto; }
    .agenda-dialog-shell { max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
    .agenda-dialog-header { position: sticky; z-index: 1; top: 0; padding: var(--space-4); }
    .agenda-dialog-body { padding: var(--space-4); overscroll-behavior: contain; }
    .agenda-dialog-footer { position: sticky; z-index: 1; bottom: 0; padding: var(--space-3) var(--space-4) max(var(--space-3),env(safe-area-inset-bottom)); }
    .agenda-dialog-footer .button { min-height: 44px; }
    .agenda-attachment-list .attachment-row { grid-template-columns: 40px minmax(0,1fr); }
    .agenda-attachment-list .attachment-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .contact-book { grid-template-columns: 1fr; gap: var(--space-3); }
    .profile-avatar-editor { grid-template-columns: 72px minmax(0,1fr); gap: var(--space-4); padding-bottom: var(--space-4); }
    .profile-avatar-preview { width: 72px; height: 72px; }
    .profile-readonly-context { grid-template-columns: 1fr; }
    .profile-page-header { margin-bottom: var(--space-3); }
    .profile-page-header h1 { font-size: 1.75rem; }
    .profile-page-header p { margin-bottom: 0; }
    .profile-settings { gap: var(--space-4); }
    .profile-section { gap: var(--space-4); }
    .profile-section-heading h2 { font-size: 1.0625rem; }
    .profile-file-trigger { width: 100%; }
    .pwa-install-state { padding: var(--space-3); }
    .pwa-install-section .form-actions .button { min-height: 44px; }
    .notification-page-header { margin-bottom: var(--space-3); }
    .notification-page-header h1 { font-size: 1.75rem; }
    .pagination { align-items: stretch; flex-direction: column; gap: var(--space-2); }
    .pagination-links { width: 100%; overflow-x: auto; padding-bottom: 2px; }
    .pagination-links .button { min-width: 44px; min-height: 44px; }
    .login-brand img { width: 88px; }
}

@media (max-width: 359px) {
    .login-page { padding-right: max(var(--space-6),env(safe-area-inset-right)); padding-left: max(var(--space-6),env(safe-area-inset-left)); }
}

@media (max-width: 800px) {
    .jobs-filter-form, .archive-filter-form { grid-template-columns: 1fr; }
    .person-workflow-header { gap: var(--space-3); margin-bottom: var(--space-3); }
    .person-workflow-header h1 { font-size: 1.75rem; }
    .person-workflow-summary { margin-bottom: var(--space-2); }
}
