:root {
    --ink: #172033;
    --ink-soft: #5b6472;
    --paper: #f5f7fb;
    --surface: #ffffff;
    --surface-muted: #eef2f7;
    --line: #dfe5ee;
    --green: #2563eb;
    --green-dark: #1d4ed8;
    --green-soft: #dbeafe;
    --amber: #a7600a;
    --amber-soft: #fff0d2;
    --slate: #64748b;
    --slate-soft: #e8edf4;
    --danger: #a33838;
    --shadow: 0 18px 50px rgba(23, 32, 51, 0.07);
    --radius: 16px;
    --sidebar: 258px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--paper);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
summary,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0.4rem;
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 680;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

h2 {
    margin-bottom: 0.35rem;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.muted {
    color: var(--ink-soft);
}

.small {
    font-size: 0.85rem;
}

.eyebrow {
    margin-bottom: 0.55rem;
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-subtitle {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 1rem;
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 2px rgba(23, 32, 51, 0.02);
}

.sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar);
    flex-direction: column;
    padding: 26px 18px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #eef3ff;
    background: #16233b;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 9px 30px;
    font-size: 1rem;
    font-weight: 690;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-mark-large {
    width: 52px;
    height: 52px;
    border-color: var(--green);
    border-radius: 15px;
    color: #fff;
    background: var(--green);
    font-size: 1rem;
}

.department-nav {
    flex: 1;
    overflow-y: auto;
}

.nav-heading {
    padding: 0 10px;
    color: #94a3bd;
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0;
    padding: 10px 11px;
    border: 0;
    border-radius: 11px;
    color: #c3cce0;
    background: transparent;
    font-size: 0.89rem;
    text-align: left;
    transition: 150ms ease;
}

.nav-item:hover,
.nav-item.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.nav-count {
    display: inline-grid;
    min-width: 24px;
    height: 22px;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    color: #b7c6e0;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
}

.nav-empty {
    padding: 8px 10px;
    color: #94a3bd;
    font-size: 0.84rem;
}

.sidebar-footer {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer form {
    margin: 0;
}

.nav-button {
    width: 100%;
    cursor: pointer;
}

.user-avatar {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #1e3a8a;
    background: #dbeafe;
    font-size: 0.7rem;
    font-weight: 750;
}

.main-content {
    min-height: 100vh;
    margin-left: var(--sidebar);
    padding: 52px clamp(28px, 5vw, 76px) 80px;
}

.mobile-menu,
.sidebar-scrim {
    display: none;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 670;
    line-height: 1.2;
    cursor: pointer;
    transition: 150ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.button-primary {
    color: #fff;
    background: var(--green);
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.2);
}

.button-primary:hover {
    background: var(--green-dark);
}

.button-secondary {
    border-color: var(--line);
    color: var(--ink);
    background: #fff;
}

.button-secondary:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.button-ghost {
    color: var(--ink-soft);
    background: transparent;
}

.button-small {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 0.85rem;
}

.button-block {
    width: 100%;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 18px;
}

.department-card {
    display: flex;
    min-height: 215px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    transition: 180ms ease;
}

.department-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 22px 55px rgba(23, 32, 51, 0.1);
}

.department-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.department-icon {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    color: var(--green);
    background: var(--green-soft);
    font-weight: 780;
}

.department-card .arrow {
    color: #94a3b8;
    font-size: 1.25rem;
}

.department-card h2 {
    margin-bottom: 4px;
    font-size: 1.35rem;
}

.department-card p {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.filter-strip {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.filter-strip-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-title {
    font-weight: 720;
}

.filter-mobile-toggle {
    display: none;
}

.filter-reset {
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 650;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown summary {
    display: flex;
    min-height: 36px;
    list-style: none;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink-soft);
    background: #fff;
    font-size: 0.82rem;
    font-weight: 650;
    cursor: pointer;
}

.filter-dropdown summary::-webkit-details-marker {
    display: none;
}

.filter-dropdown summary::after {
    content: "⌄";
    color: #94a3b8;
}

.filter-dropdown[open] summary {
    border-color: #a9b7ca;
    color: var(--ink);
}

.filter-count {
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    padding: 0 5px;
    border-radius: 99px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 0.67rem;
}

.filter-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.filter-popover {
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    left: 0;
    width: 250px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.14);
}

.filter-popover > label:first-child:not(.check-option) {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 650;
}

.check-list {
    display: grid;
    max-height: 260px;
    gap: 3px;
    overflow-y: auto;
}

.check-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px;
    border-radius: 8px;
    cursor: pointer;
}

.check-option:hover {
    background: var(--surface-muted);
}

.check-option input {
    accent-color: var(--green);
}

.state-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.table-panel {
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.task-table th {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    color: #64748b;
    background: #f8fafc;
    font-size: 0.69rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.task-table td {
    padding: 15px 16px;
    border-bottom: 1px solid #e8edf4;
    vertical-align: top;
}

.task-table tbody tr:last-child td {
    border-bottom: 0;
}

.task-row {
    transition: 120ms ease;
}

.task-row:hover {
    background: #f9fbff;
}

.task-row.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.column-task {
    width: 19%;
}

.column-person {
    width: 15%;
}

.column-days {
    width: 90px;
}

.column-expected {
    width: 118px;
}

.column-state {
    width: 112px;
}

.table-secondary {
    display: block;
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 0.7rem;
    white-space: nowrap;
}

.date-overdue {
    color: var(--danger);
    font-weight: 700;
}

.filter-range {
    display: grid;
    gap: 7px;
}

.filter-range label {
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 650;
}

.task-link {
    display: inline-block;
    font-weight: 700;
    line-height: 1.35;
}

.task-link:hover {
    color: var(--green);
}

.person {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.person-avatar {
    display: inline-grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #46536a;
    background: #e7edf6;
    font-size: 0.68rem;
    font-weight: 780;
}

.editable-cell {
    padding: 0 !important;
}

.cell-edit {
    display: flex;
    width: 100%;
    min-height: 70px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 15px 16px;
    border: 0;
    color: var(--ink);
    background: transparent;
    line-height: 1.45;
    text-align: left;
    cursor: text;
}

.cell-edit:hover {
    background: #f3f7ff;
}

.cell-edit.is-empty {
    color: #94a3b8;
    font-style: italic;
}

.edit-glyph {
    opacity: 0;
    color: var(--green);
    transition: 120ms ease;
}

.cell-edit:hover .edit-glyph {
    opacity: 1;
}

.state-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 720;
    white-space: nowrap;
}

.state-badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.state-in_progress {
    color: var(--green);
    background: var(--green-soft);
}

.state-on_hold {
    color: var(--amber);
    background: var(--amber-soft);
}

.state-done {
    color: var(--slate);
    background: var(--slate-soft);
}

.mobile-state {
    display: none;
}

.task-row-edit td {
    padding: 0;
}

.inline-update-form {
    padding: 22px;
    background: #f7f9fd;
    box-shadow: inset 4px 0 0 var(--green);
}

.inline-edit-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.inline-edit-heading .eyebrow {
    margin-bottom: 2px;
}

.inline-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 170px;
    gap: 14px;
}

.inline-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 15px;
}

.form-control,
.login-card input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #d3dbe7;
    border-radius: 9px;
    color: var(--ink);
    outline: none;
    background: #fff;
    transition: 120ms ease;
}

textarea.form-control {
    min-height: 86px;
    resize: vertical;
}

.form-control:focus,
.login-card input:focus {
    border-color: #7aa2f7;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field {
    display: grid;
    gap: 6px;
}

.field > label {
    font-size: 0.79rem;
    font-weight: 700;
}

.field-checkbox {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.field-checkbox input {
    grid-column: 1;
    grid-row: 1;
    accent-color: var(--green);
}

.field-checkbox label {
    grid-column: 2;
}

.field-choice-list > div {
    display: grid;
    gap: 5px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.field-choice-list > div label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-radius: 7px;
    cursor: pointer;
}

.field-choice-list > div label:hover {
    background: var(--surface-muted);
}

.field-choice-list input {
    accent-color: var(--green);
}

.help-text {
    color: var(--ink-soft);
    font-size: 0.76rem;
}

.errorlist {
    margin: 2px 0 0;
    padding: 0;
    color: var(--danger);
    font-size: 0.78rem;
    list-style: none;
}

.form-errors {
    padding: 10px 12px;
    border-radius: 9px;
    color: #832e2e;
    background: #fae7e7;
    font-size: 0.83rem;
}

.empty-state {
    display: grid;
    justify-items: center;
    padding: 48px 24px;
    text-align: center;
}

.empty-state p {
    max-width: 430px;
    color: var(--ink-soft);
}

.empty-icon {
    display: inline-grid;
    width: 45px;
    height: 45px;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 50%;
    color: var(--green);
    background: var(--green-soft);
    font-size: 1.3rem;
}

.table-empty {
    padding: 60px 20px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.breadcrumbs a:hover {
    color: var(--green);
}

.task-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.task-detail-header h1 {
    max-width: 850px;
    margin-top: 12px;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.header-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.detail-layout {
    display: grid;
    gap: 35px;
}

.current-snapshot {
    padding: 24px;
}

.resource-links {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.resource-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 9px;
    color: var(--green-dark);
    background: var(--paper);
    overflow-wrap: anywhere;
}

.resource-links a:hover {
    background: var(--green-soft);
}

.resource-links-empty {
    margin: 18px 0 0;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.section-heading time {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 18px;
}

.snapshot-grid article {
    min-height: 135px;
    padding: 18px;
    border-radius: 12px;
    background: var(--paper);
}

.snapshot-grid h3,
.timeline-copy h3 {
    margin-bottom: 9px;
    color: var(--ink-soft);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.timeline {
    position: relative;
    margin: 18px 0 0;
    padding: 0 0 0 30px;
    list-style: none;
}

.timeline::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 7px;
    width: 1px;
    background: #cbd5e1;
    content: "";
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
}

.timeline-marker {
    position: absolute;
    top: 24px;
    left: -30px;
    z-index: 1;
    width: 15px;
    height: 15px;
    border: 3px solid var(--paper);
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 1px #b8c4d6;
}

.timeline-card {
    padding: 20px;
}

.timeline-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.timeline-card time,
.timeline-card footer {
    color: var(--ink-soft);
    font-size: 0.76rem;
}

.current-label {
    margin-left: 6px;
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 720;
}

.timeline-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.timeline-card footer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.form-page {
    max-width: 760px;
    margin: 0 auto;
}

.form-page-narrow {
    max-width: 620px;
}

.form-page > header {
    margin-bottom: 24px;
}

.stack-form {
    display: grid;
    gap: 18px;
}

.form-card {
    padding: 26px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

.manage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.manage-panel {
    padding: 22px;
}

.manage-list {
    display: grid;
    gap: 5px;
    margin-top: 18px;
}

.manage-row {
    display: flex;
    min-height: 57px;
    align-items: center;
    gap: 11px;
    padding: 9px;
    border-radius: 10px;
}

.manage-row:hover {
    background: var(--paper);
}

.manage-row-main {
    display: grid;
    flex: 1;
}

.manage-row-main small {
    color: var(--ink-soft);
}

.small-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.78rem;
}

.inactive-badge {
    padding: 3px 7px;
    border-radius: 99px;
    color: var(--slate);
    background: var(--slate-soft);
    font-size: 0.65rem;
    font-weight: 700;
}

.messages {
    position: fixed;
    z-index: 50;
    top: 20px;
    right: 24px;
    display: grid;
    gap: 8px;
    max-width: 420px;
}

.message {
    padding: 11px 15px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    color: var(--green-dark);
    background: #eff6ff;
    box-shadow: 0 12px 30px rgba(23, 32, 51, 0.12);
}

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: #16233b;
}

.auth-content {
    width: min(900px, 100%);
}

.login-shell {
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: center;
    gap: clamp(40px, 9vw, 100px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fff;
}

.login-brand h1 {
    margin: 0;
}

.login-brand .eyebrow {
    color: #b8cdf9;
}

.login-card {
    display: grid;
    gap: 24px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.login-card h2 {
    font-size: 1.55rem;
}

@media (max-width: 1050px) {
    .inline-edit-grid {
        grid-template-columns: 1fr 1fr;
    }

    .inline-edit-grid .field:last-child {
        grid-column: 1 / -1;
    }

    .task-table {
        min-width: 1120px;
    }
}

@media (max-width: 820px) {
    :root {
        --sidebar: 275px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }

    .menu-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-scrim {
        position: fixed;
        z-index: 20;
        inset: 0;
        background: rgba(10, 20, 40, 0.45);
    }

    .menu-open .sidebar-scrim {
        display: block;
    }

    .mobile-menu {
        position: fixed;
        z-index: 19;
        top: 14px;
        left: 14px;
        display: inline-grid;
        width: 42px;
        height: 42px;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 11px;
        color: var(--ink);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 8px 24px rgba(23, 32, 51, 0.1);
    }

    .main-content {
        margin-left: 0;
        padding: 78px 20px 60px;
    }

    .manage-grid,
    .snapshot-grid {
        grid-template-columns: 1fr;
    }

    .task-detail-header {
        display: grid;
    }

    .login-shell {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .login-brand {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .main-content {
        padding-right: 14px;
        padding-left: 14px;
    }

    .page-header {
        align-items: flex-start;
    }

    .page-header,
    .task-detail-header {
        margin-bottom: 24px;
    }

    .page-header .button {
        flex-shrink: 0;
    }

    .filter-strip {
        display: block;
    }

    .filter-strip-heading {
        justify-content: space-between;
    }

    .filter-title-desktop {
        display: none;
    }

    .filter-mobile-toggle {
        display: flex;
        min-height: 32px;
        flex: 1;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        border: 0;
        color: var(--ink);
        background: transparent;
        font: inherit;
        text-align: left;
        cursor: pointer;
    }

    .filter-toggle-icon {
        width: 9px;
        height: 9px;
        margin-right: 3px;
        border-right: 2px solid #94a3b8;
        border-bottom: 2px solid #94a3b8;
        transform: rotate(45deg) translateY(-2px);
        transition: transform 160ms ease;
    }

    .filter-strip.is-expanded .filter-toggle-icon {
        transform: rotate(225deg) translate(-2px, -2px);
    }

    .filter-controls {
        display: none;
        grid-template-columns: 1fr 1fr;
        margin-top: 10px;
    }

    .filter-strip.is-expanded .filter-controls {
        display: grid;
    }

    .filter-dropdown summary,
    .filter-controls > .button {
        width: 100%;
    }

    .filter-dropdown summary {
        justify-content: space-between;
    }

    .filter-popover {
        position: fixed;
        z-index: 100;
        top: auto;
        right: 14px;
        bottom: 14px;
        left: 14px;
        width: auto;
        padding: 20px;
    }

    .task-table,
    .task-table tbody,
    .task-table tr,
    .task-table td {
        display: block;
        width: 100%;
    }

    .task-table {
        min-width: 0;
    }

    .task-table thead {
        display: none;
    }

    .task-table tbody {
        display: grid;
        gap: 10px;
        padding: 10px;
    }

    .task-table tr {
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 13px;
        background: #fff;
    }

    .task-table td {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        column-gap: 8px;
        padding: 11px 13px;
        border-bottom: 1px solid #e8edf4;
    }

    .task-table td::before {
        color: #64748b;
        content: attr(data-label);
        font-size: 0.67rem;
        font-weight: 730;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .task-table td:first-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 14px 13px;
        background: #f8fafc;
    }

    .task-table td:first-child::before,
    .task-table td:last-child {
        display: none;
    }

    .mobile-state {
        display: inline-flex;
    }

    .editable-cell {
        display: grid !important;
        grid-template-columns: 105px minmax(0, 1fr) !important;
        padding: 0 13px !important;
    }

    .editable-cell::before {
        padding-top: 13px;
    }

    .cell-edit {
        min-height: 50px;
        padding: 11px 0;
    }

    .edit-glyph {
        opacity: 1;
    }

    .task-row-edit td {
        display: block;
        padding: 0;
    }

    .task-row-edit td::before {
        display: none;
    }

    .inline-update-form {
        padding: 17px;
    }

    .inline-edit-heading {
        display: grid;
    }

    .inline-edit-grid {
        grid-template-columns: 1fr;
    }

    .inline-edit-grid .field:last-child {
        grid-column: auto;
    }

    .inline-edit-actions .button {
        flex: 1;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .button {
        flex: 1;
    }

    .timeline {
        padding-left: 23px;
    }

    .timeline-marker {
        left: -23px;
    }

    .timeline-card header,
    .section-heading {
        align-items: flex-start;
    }

    .timeline-copy {
        grid-template-columns: 1fr;
    }

    .form-card,
    .current-snapshot,
    .manage-panel {
        padding: 19px;
    }

    .login-card {
        padding: 25px;
    }

    .login-brand {
        justify-content: flex-start;
    }

    .messages {
        right: 14px;
        left: 14px;
    }
}
