:root {
    --page-bg: #f3f5f2;
    --surface: #ffffff;
    --surface-muted: #f8faf8;
    --text: #18211b;
    --text-muted: #68736c;
    --border: #dce2dd;
    --border-strong: #cbd3cd;
    --green: #217a52;
    --green-soft: #e7f4ec;
    --red: #c5453f;
    --red-soft: #fbecea;
    --blue: #356ea8;
    --blue-soft: #eaf1f8;
    --amber: #a36513;
    --amber-soft: #fbf1df;
    --shadow: 0 1px 2px rgba(21, 36, 27, 0.06);
    color-scheme: light;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    letter-spacing: 0;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--page-bg);
}

body {
    margin: 0;
    color: var(--text);
    background: var(--page-bg);
    font-size: 14px;
}

button,
input,
select {
    font: inherit;
    letter-spacing: 0;
}

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

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 64px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(280px, 1fr);
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.topbar__brand strong,
.topbar__brand span {
    display: block;
}

.topbar__brand strong {
    font-size: 16px;
    line-height: 1.2;
}

.topbar__brand span:not(.brand-mark) {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 10px;
}

.brand-mark {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 6px solid var(--green);
    border-right-color: var(--blue);
    border-radius: 50%;
}

.main-nav {
    display: flex;
    align-self: stretch;
    gap: 28px;
}

.main-nav a {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-weight: 600;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: transparent;
}

.main-nav a.active {
    color: var(--text);
}

.main-nav a.active::after {
    background: var(--green);
}

.main-nav .main-nav__danger {
    position: relative;
    width: 52px;
    height: 42px;
    min-height: 42px;
    margin: auto 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    border: 2px solid #d94f4b;
    border-radius: 6px;
    background: #d94f4b;
    color: #ffffff;
    box-shadow: 0 6px 0 #7c2421, 0 9px 16px rgba(124, 36, 33, 0.28);
    cursor: pointer;
    appearance: none;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.main-nav .main-nav__danger:hover,
.main-nav .main-nav__danger.active {
    border-color: #b93431;
    background: #b93431;
    color: #ffffff;
    box-shadow: 0 3px 0 #721f1d, 0 6px 11px rgba(124, 36, 33, 0.24);
    transform: translateY(3px);
}

.operation-lock-icon {
    position: relative;
    width: 19px;
    height: 15px;
    margin-top: 5px;
    display: block;
    border: 2px solid #ffffff;
    border-radius: 3px;
}

.operation-lock-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 11px;
    width: 11px;
    height: 10px;
    border: 3px solid #ffffff;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    transform: translateX(-50%);
}

.operation-lock-icon::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    width: 3px;
    height: 6px;
    border-radius: 2px;
    background: #ffffff;
    transform: translateX(-50%);
}

.operations-auth-dialog {
    width: min(480px, calc(100% - 36px));
    padding: 0;
    overflow: hidden;
    border: 2px solid #111713;
    border-radius: 7px;
    background: #ffffff;
    color: #111713;
    box-shadow: 9px 9px 0 #111713;
}

.operations-auth-dialog::backdrop {
    background: rgba(17, 23, 19, 0.72);
}

.operations-auth-form {
    margin: 0;
}

.operations-auth-dialog__header {
    min-height: 104px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 6px solid #ef615d;
    background: #111713;
    color: #ffffff;
}

.operations-auth-dialog__header span,
.operations-auth-dialog__header h2 {
    display: block;
}

.operations-auth-dialog__header span {
    margin-bottom: 8px;
    color: #aeb8b1;
    font-size: 12px;
    font-weight: 800;
}

.operations-auth-dialog__header h2 {
    margin: 0;
    font-size: 25px;
}

.operations-auth-dialog__header .icon-button {
    border-color: #ffffff;
    background: transparent;
    color: #ffffff;
}

.operations-auth-dialog__body {
    padding: 25px 24px 20px;
}

.operations-auth-dialog__body label {
    margin-bottom: 9px;
    display: block;
    color: #59635c;
    font-size: 13px;
    font-weight: 800;
}

.operations-auth-dialog__body input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 2px solid #111713;
    border-radius: 5px;
    background: #ffffff;
    color: #111713;
    font-size: 18px;
    outline: none;
}

.operations-auth-dialog__body input:focus {
    border-color: #3978f6;
    box-shadow: 0 0 0 3px rgba(57, 120, 246, 0.16);
}

.operations-auth-error {
    margin: 10px 0 0;
    color: #c63d39;
    font-size: 13px;
    font-weight: 750;
}

.operations-auth-dialog__footer {
    padding: 16px 24px 22px;
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    border-top: 1px solid #cbd3cd;
}

.operations-auth-dialog__footer button {
    min-width: 106px;
    min-height: 42px;
    padding: 0 16px;
    border: 2px solid #111713;
    border-radius: 5px;
    background: #ffffff;
    color: #111713;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.operations-auth-dialog__footer button[type="submit"] {
    border-color: #d94f4b;
    background: #d94f4b;
    color: #ffffff;
}

.operations-auth-dialog__footer button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.topbar__meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.page-shell {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 52px;
}

.page-shell--details {
    width: min(1700px, calc(100% - 48px));
}

.page-heading,
.section-heading,
.runtime-card__top,
.reason-row__title,
.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.page-heading {
    min-height: 58px;
    margin-bottom: 22px;
}

.page-heading h1,
.section-heading h2,
.dialog-header h2 {
    margin: 0;
    font-weight: 700;
}

.page-heading h1 {
    font-size: 26px;
    line-height: 1.25;
}

.section-heading h2,
.dialog-header h2 {
    font-size: 17px;
}

.section-heading p,
.eyebrow {
    margin: 4px 0 0;
    color: var(--text-muted);
}

.eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
}

.text-button,
.primary-button,
.secondary-button,
.table-action {
    min-height: 36px;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
}

.text-button:hover,
.secondary-button:hover,
.table-action:hover {
    border-color: var(--green);
    color: var(--green);
}

.text-button--muted {
    color: var(--text-muted);
}

.primary-button {
    border-color: var(--green);
    background: var(--green);
    color: #ffffff;
}

.primary-button:hover {
    background: #196742;
}

.overview-metrics {
    display: grid;
    gap: 24px;
}

.metric-row h2 {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.metric-grid {
    display: grid;
    gap: 12px;
}

.metric-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.runtime-card,
.panel {
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.metric-card {
    position: relative;
    min-height: 126px;
    padding: 17px 18px;
    overflow: hidden;
}

.metric-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--border-strong);
}

.metric-card--blue::before { background: var(--blue); }
.metric-card--amber::before { background: var(--amber); }
.metric-card--success::before { background: var(--green); }
.metric-card--danger::before { background: var(--red); }

.metric-card__label,
.metric-card__detail {
    display: block;
    color: var(--text-muted);
}

.metric-card__label {
    font-weight: 600;
}

.metric-card strong {
    display: block;
    margin: 9px 0 7px;
    font-size: 30px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.metric-card__detail {
    font-size: 12px;
}

.metric-card__detail--danger {
    color: var(--red);
    font-weight: 700;
}

.metric-card__breakdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.metric-row__range {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.section-block {
    margin-top: 28px;
}

.section-heading {
    min-height: 42px;
    margin-bottom: 12px;
}

.runtime-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.runtime-card {
    padding: 18px;
}

.runtime-card__label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.runtime-card__top strong {
    font-size: 20px;
}

.runtime-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
}

.runtime-state i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.runtime-state--running,
.runtime-state--completed { color: var(--green); }
.runtime-state--running i,
.runtime-state--completed i { background: var(--green); }
.runtime-state--processing,
.runtime-state--waiting { color: var(--amber); }
.runtime-state--processing i,
.runtime-state--waiting i { background: var(--amber); }
.runtime-state--attention { color: var(--red); }
.runtime-state--attention i { background: var(--red); }

.runtime-meta {
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border);
}

.runtime-meta div {
    min-width: 0;
    padding: 14px 12px 0 0;
}

.runtime-meta dt {
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 11px;
}

.runtime-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
    font-size: 13px;
}

.analytics-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
    gap: 12px;
}

.panel {
    padding: 18px;
}

.chart-wrap {
    position: relative;
    min-height: 300px;
}

#volume-chart {
    width: 100%;
    height: 300px;
    display: block;
}

.chart-legend {
    display: flex;
    gap: 14px;
    color: var(--text-muted);
    font-size: 12px;
}

.chart-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--green);
}

.legend-dot--failed {
    background: var(--red);
}

.reason-list {
    min-height: 300px;
}

.reason-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.reason-row:last-child {
    border-bottom: 0;
}

.reason-row__title {
    align-items: flex-start;
    font-size: 12px;
}

.reason-row__title span {
    max-width: calc(100% - 54px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reason-bar {
    height: 5px;
    margin-top: 8px;
    overflow: hidden;
    background: var(--red-soft);
    border-radius: 2px;
}

.reason-bar i {
    display: block;
    height: 100%;
    background: var(--red);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table th {
    color: var(--text-muted);
    background: var(--surface-muted);
    font-size: 11px;
    font-weight: 700;
}

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

.data-table tbody tr:hover {
    background: #fafcfb;
}

.table-link,
.table-action {
    color: var(--green);
    font-weight: 700;
}

.table-action {
    min-height: 30px;
    padding: 0 9px;
    background: transparent;
}

.table-message {
    height: 120px;
    color: var(--text-muted);
    text-align: center;
}

.text-success { color: var(--green); }
.text-danger { color: var(--red); }

.status-chip {
    min-width: 62px;
    min-height: 26px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.status-chip--success {
    border-color: #b7dbc7;
    background: var(--green-soft);
    color: var(--green);
}

.status-chip--danger {
    border-color: #efc1bd;
    background: var(--red-soft);
    color: var(--red);
}

.status-chip--neutral {
    background: var(--surface-muted);
}

.icon-button {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
}

.icon-button:hover:not(:disabled) {
    border-color: var(--green);
    color: var(--green);
}

.icon-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.is-spinning {
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-block,
.empty-state {
    min-height: 120px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    margin-bottom: 16px;
    padding: 15px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.date-filter-field { grid-column: span 3; }
.filter-group,
.filter-status { grid-column: span 2; }
.filter-city-point { grid-column: span 5; }
.filter-vehicle,
.filter-supplier { grid-column: span 3; }
.filter-reason { grid-column: span 4; }
.filter-submit,
.filter-reset { grid-column: span 1; }

.filter-bar label,
.filter-field {
    min-width: 0;
}

.filter-bar label > span,
.filter-field > span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}

.date-filter-field {
    position: relative;
}

.date-picker-button {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.date-picker-button:hover,
.date-picker-button[aria-expanded="true"] {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(33, 122, 82, 0.12);
}

.date-picker-icon {
    position: relative;
    width: 19px;
    height: 18px;
    border: 1.5px solid var(--green);
    border-radius: 3px;
}

.date-picker-icon::before,
.date-picker-icon::after {
    content: "";
    position: absolute;
}

.date-picker-icon::before {
    top: 4px;
    left: 0;
    width: 100%;
    border-top: 1.5px solid var(--green);
}

.date-picker-icon::after {
    top: -3px;
    left: 4px;
    width: 7px;
    height: 4px;
    border-right: 1.5px solid var(--green);
    border-left: 1.5px solid var(--green);
}

.date-picker-value {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.date-picker-value strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.date-picker-value small {
    color: var(--text-muted);
    font-size: 10px;
    white-space: nowrap;
}

.date-picker-chevron {
    color: var(--text-muted);
    font-size: 16px;
    text-align: center;
}

.date-calendar {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: 322px;
    padding: 14px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 16px 42px rgba(20, 30, 23, 0.18);
}

.date-calendar[hidden] {
    display: none;
}

.calendar-header {
    height: 34px;
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    text-align: center;
}

.calendar-header strong {
    font-size: 14px;
}

.calendar-nav {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 22px;
}

.calendar-nav:hover {
    background: var(--surface-muted);
    color: var(--green);
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays {
    margin: 10px 0 5px;
    color: var(--text-muted);
    font-size: 10px;
    text-align: center;
}

.calendar-weekdays span {
    height: 25px;
    display: grid;
    place-items: center;
}

.calendar-day {
    position: relative;
    width: 36px;
    height: 36px;
    margin: 2px auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.calendar-day:hover:not(:disabled) {
    border-color: #b7dbc7;
    background: var(--green-soft);
    color: var(--green);
}

.calendar-day--outside {
    color: #a5ada8;
}

.calendar-day--today {
    border-color: var(--border-strong);
    font-weight: 700;
}

.calendar-day--selected,
.calendar-day--selected:hover:not(:disabled) {
    border-color: var(--green);
    background: var(--green);
    color: #ffffff;
    font-weight: 700;
}

.calendar-day--has-data::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--blue);
    transform: translateX(-50%);
}

.calendar-day--selected::after {
    background: #ffffff;
}

.calendar-day:disabled {
    color: #c6ccc8;
    cursor: default;
}

.calendar-footer {
    min-height: 38px;
    margin-top: 8px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 10px;
}

.calendar-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.calendar-footer i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
}

.calendar-footer button {
    padding: 5px 7px;
    border: 0;
    border-radius: 4px;
    background: var(--green-soft);
    color: var(--green);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.filter-bar input,
.filter-bar select,
.pagination select {
    width: 100%;
    height: 36px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    padding: 0 10px;
    background: var(--surface);
    color: var(--text);
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus,
.pagination select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(33, 122, 82, 0.12);
}

.detail-summary {
    min-height: 68px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 200px));
    gap: 28px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
}

.detail-summary div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-summary span {
    color: var(--text-muted);
    font-size: 11px;
}

.detail-summary strong {
    font-size: 18px;
}

.detail-table-section {
    margin-top: 0;
}

.table-wrap--details {
    max-height: calc(100vh - 330px);
    min-height: 360px;
    overflow: auto;
}

.detail-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.detail-table td {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cell-subtext {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.failure-cell {
    max-width: 280px !important;
    color: var(--red);
}

.pagination {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: var(--text-muted);
}

.pagination--top {
    min-height: 54px;
    padding: 0 4px;
    border-bottom: 1px solid var(--border);
}

.pagination label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pagination select {
    width: 72px;
}

.record-dialog {
    width: min(880px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 18px 50px rgba(13, 24, 17, 0.2);
}

.record-dialog::backdrop {
    background: rgba(20, 29, 23, 0.42);
}

.dialog-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 17px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.dialog-header > div {
    min-width: 0;
}

.dialog-header h2 {
    margin-top: 7px;
    overflow-wrap: anywhere;
}

.record-fields {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
}

.record-fields div {
    min-height: 76px;
    padding: 12px;
    background: var(--surface);
}

.record-fields .dialog-loading {
    grid-column: 1 / -1;
    min-height: 180px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-weight: 600;
}

.record-fields span,
.record-fields strong {
    display: block;
}

.record-fields span {
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 11px;
}

.record-fields strong {
    overflow-wrap: anywhere;
    font-size: 13px;
}

.raw-json {
    margin: 0 18px 18px;
    border: 1px solid var(--border);
}

.raw-json summary {
    padding: 11px 12px;
    cursor: pointer;
    font-weight: 600;
}

.raw-json pre {
    max-height: 330px;
    margin: 0;
    padding: 14px;
    overflow: auto;
    border-top: 1px solid var(--border);
    background: #f6f8f6;
    font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    max-width: min(440px, calc(100% - 40px));
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(20, 30, 23, 0.16);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.toast--error {
    border-color: #e5a8a3;
    color: var(--red);
}

.toast--success {
    border-color: #b7dbc7;
    color: var(--green);
}

.page-shell--tasks {
    width: min(1280px, calc(100% - 48px));
}

.page-shell--cookies {
    width: min(1280px, calc(100% - 48px));
}

.task-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 12px;
}

.task-upload-panel,
.task-progress-panel {
    min-height: 390px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.target-control {
    margin: 18px 0 16px;
    padding: 0;
    border: 0;
}

.target-control legend {
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}

.segmented-control {
    height: 40px;
    padding: 3px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--surface-muted);
}

.segmented-control label {
    min-width: 0;
    cursor: pointer;
}

.segmented-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented-control span {
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 700;
}

.segmented-control input:checked + span {
    background: var(--surface);
    color: var(--green);
    box-shadow: 0 1px 3px rgba(21, 36, 27, 0.12);
}

.segmented-control input:focus-visible + span {
    outline: 2px solid rgba(33, 122, 82, 0.28);
}

.file-drop-zone {
    min-height: 174px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px dashed var(--border-strong);
    border-radius: 7px;
    background: var(--surface-muted);
    cursor: pointer;
    text-align: center;
}

.file-drop-zone:hover,
.file-drop-zone--dragging,
.file-drop-zone--selected {
    border-color: var(--green);
    background: var(--green-soft);
}

.file-drop-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.file-drop-zone__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #b7dbc7;
    border-radius: 50%;
    background: var(--surface);
    color: var(--green);
    font-size: 20px;
    font-weight: 700;
}

.file-drop-zone strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.file-drop-zone small {
    color: var(--text-muted);
}

.task-submit {
    width: 100%;
    margin-top: 14px;
}

.task-submit:disabled {
    opacity: 0.55;
    cursor: default;
}

.task-progress-panel .section-heading strong {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.task-progress-track {
    height: 8px;
    margin: 28px 0 12px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--green-soft);
}

.task-progress-track i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
    transition: width 0.25s ease;
}

.task-progress-message {
    min-height: 42px;
    margin: 0;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.task-result-meta {
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
}

.task-result-meta div {
    min-width: 0;
    padding: 15px 12px 5px 0;
}

.task-result-meta dt {
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 11px;
}

.task-result-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 700;
}

.task-file-table td {
    max-width: 360px;
}

.task-path-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
}

@media (max-width: 1180px) {
    .analytics-grid { grid-template-columns: 1fr; }
    .task-layout { grid-template-columns: 1fr; }
    .task-upload-panel,
    .task-progress-panel { min-height: auto; }
    .filter-bar { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .date-filter-field,
    .filter-group,
    .filter-status { grid-column: span 2; }
    .filter-city-point,
    .filter-vehicle,
    .filter-supplier,
    .filter-reason { grid-column: span 3; }
    .filter-submit,
    .filter-reset { grid-column: span 1; }
}

@media (max-width: 820px) {
    .topbar {
        position: static;
        padding: 12px 16px 0;
        grid-template-columns: 1fr auto;
        gap: 12px;
    }
    .main-nav {
        grid-row: 2;
        grid-column: 1 / -1;
        height: 42px;
        gap: 24px;
    }
    .topbar__meta #updated-at { display: none; }
    .page-shell,
    .page-shell--details,
    .page-shell--tasks,
    .page-shell--cookies { width: min(100% - 28px, 1500px); padding-top: 20px; }
    .metric-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .metric-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .runtime-grid { grid-template-columns: 1fr; }
    .runtime-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .date-filter-field,
    .filter-group,
    .filter-status,
    .filter-city-point,
    .filter-vehicle,
    .filter-supplier,
    .filter-reason { grid-column: span 1; }
    .filter-submit,
    .filter-reset { grid-column: span 1; }
    .record-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .topbar__brand span:not(.brand-mark) { display: none; }
    .topbar__meta { gap: 7px; }
    .page-heading { align-items: flex-end; }
    .page-heading h1 { font-size: 22px; }
    .text-button { min-height: 32px; padding: 0 9px; font-size: 12px; }
    .metric-grid--two,
    .metric-grid--three,
    .metric-grid--four { grid-template-columns: 1fr; gap: 8px; }
    .metric-card { min-height: 112px; padding: 14px; }
    .metric-card strong { font-size: 25px; }
    .runtime-meta { grid-template-columns: 1fr; }
    .analytics-grid { grid-template-columns: minmax(0, 1fr); }
    .panel { padding: 14px; }
    .chart-wrap, #volume-chart { min-height: 250px; height: 250px; }
    .filter-bar { grid-template-columns: 1fr; }
    .date-filter-field,
    .filter-group,
    .filter-status,
    .filter-city-point,
    .filter-vehicle,
    .filter-supplier,
    .filter-reason,
    .filter-submit,
    .filter-reset { grid-column: auto; }
    .date-calendar { width: min(322px, calc(100vw - 56px)); }
    .detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 12px 10px; }
    .detail-summary strong { font-size: 14px; overflow-wrap: anywhere; }
    .record-fields { grid-template-columns: 1fr; }
    .pagination { justify-content: center; flex-wrap: wrap; }
    .task-upload-panel,
    .task-progress-panel { padding: 14px; }
    .task-result-meta { grid-template-columns: 1fr; }
}

/* Dashboard command center */
.dashboard-page {
    width: min(1580px, calc(100% - 48px));
    padding-top: 24px;
}

.dashboard-heading {
    min-height: 210px;
    padding: 34px 38px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 48px;
    border: 2px solid #111713;
    border-bottom: 7px solid #66dc7d;
    background: #111713;
    color: #ffffff;
    box-shadow: 7px 7px 0 #cbd3cd;
}

.dashboard-heading h1 {
    margin: 12px 0 8px;
    font-size: 46px;
    line-height: 1.08;
    font-weight: 800;
}

.dashboard-heading__kicker,
.dashboard-heading__subtitle,
.dashboard-heading__meta span {
    margin: 0;
    color: #aeb9b1;
    font-weight: 700;
}

.dashboard-heading__kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
}

.dashboard-heading__kicker i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #66dc7d;
    box-shadow: 0 0 0 5px rgba(102, 220, 125, 0.18);
}

.dashboard-heading__subtitle {
    font-size: 16px;
}

.dashboard-heading__meta {
    min-width: 290px;
    padding-left: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    border-left: 1px solid #3f4842;
}

.dashboard-heading__meta > span {
    font-size: 13px;
}

.dashboard-heading__meta strong {
    margin: 8px 0 20px;
    color: #66dc7d;
    font-size: 34px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dashboard-heading__meta a {
    min-height: 42px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-weight: 700;
}

.dashboard-heading__meta a:hover {
    border-color: #66dc7d;
    background: #66dc7d;
    color: #111713;
}

.dashboard-page .overview-metrics {
    margin-top: 42px;
    gap: 40px;
}

.dashboard-page .metric-row__heading {
    min-height: 34px;
    margin-bottom: 13px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 2px solid #111713;
}

.dashboard-page .metric-row__heading h2 {
    margin: 0 0 9px;
    color: #111713;
    font-size: 20px;
    font-weight: 800;
}

.dashboard-page .metric-row__heading > span,
.dashboard-page .metric-row__heading > div > span {
    margin-bottom: 10px;
    color: #7b857e;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-page .metric-row__heading--range {
    align-items: center;
}

.dashboard-page .metric-row__heading--range > .metric-row__title {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.dashboard-page .cumulative-range-control {
    position: relative;
    margin-bottom: 8px;
}

.dashboard-page .cumulative-range-trigger {
    position: relative;
    width: 360px;
    min-height: 62px;
    padding: 9px 52px 9px 15px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "label days" "range range";
    align-items: center;
    gap: 2px 10px;
    border: 2px solid #111713;
    border-radius: 6px;
    background: #111713;
    box-shadow: 4px 4px 0 #66dc7d;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.dashboard-page .cumulative-range-trigger:hover:not(:disabled),
.dashboard-page .cumulative-range-trigger[aria-expanded="true"] {
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0 #66dc7d;
}

.dashboard-page .cumulative-range-trigger:focus-visible,
.dashboard-page .cumulative-range-popover button:focus-visible {
    outline: 3px solid #f5c84c;
    outline-offset: 2px;
}

.dashboard-page .cumulative-range-trigger > span {
    grid-area: label;
    color: #66dc7d;
    font-size: 10px;
    font-weight: 900;
}

.dashboard-page .cumulative-range-trigger > strong {
    grid-area: range;
    overflow: hidden;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-page .cumulative-range-trigger > small {
    grid-area: days;
    color: #b5beb8;
    font-size: 9px;
    font-weight: 800;
}

.dashboard-page .cumulative-range-trigger > i {
    position: absolute;
    top: 19px;
    right: 16px;
    width: 21px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 3px;
}

.dashboard-page .cumulative-range-trigger > i::before {
    content: "";
    position: absolute;
    top: 4px;
    right: 0;
    left: 0;
    border-top: 2px solid #ffffff;
}

.dashboard-page .cumulative-range-trigger:disabled {
    cursor: wait;
    opacity: 0.65;
}

.dashboard-page .cumulative-range-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 60;
    width: 720px;
    padding: 0;
    border: 2px solid #111713;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 8px 8px 0 #111713;
}

.dashboard-page .cumulative-range-popover[hidden] {
    display: none;
}

.dashboard-page .cumulative-calendar-header {
    min-height: 72px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #111713;
    color: #ffffff;
}

.dashboard-page .cumulative-calendar-header > div:first-child {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.dashboard-page .cumulative-calendar-header span {
    color: #66dc7d;
    font-size: 9px;
    font-weight: 900;
}

.dashboard-page .cumulative-calendar-header strong {
    overflow: hidden;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-page .cumulative-calendar-nav {
    display: flex;
    gap: 6px;
}

.dashboard-page .cumulative-calendar-nav button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #667069;
    border-radius: 4px;
    background: #1d251f;
    color: #ffffff;
    cursor: pointer;
    font-size: 23px;
}

.dashboard-page .cumulative-calendar-nav button:hover:not(:disabled) {
    border-color: #66dc7d;
    color: #66dc7d;
}

.dashboard-page .cumulative-calendar-nav button:disabled {
    cursor: default;
    opacity: 0.3;
}

.dashboard-page .cumulative-range-presets {
    padding: 11px 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    border-bottom: 1px solid #d9dfdb;
    background: #f2f5f2;
}

.dashboard-page .cumulative-range-presets button {
    min-height: 32px;
    border: 1px solid #aeb8b1;
    border-radius: 4px;
    background: #ffffff;
    color: #354139;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-page .cumulative-range-presets button:hover,
.dashboard-page .cumulative-range-presets button.is-active {
    border-color: #287a55;
    background: #dff4e7;
    color: #17653f;
}

.dashboard-page .cumulative-calendars {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-page .cumulative-calendar-month {
    min-width: 0;
}

.dashboard-page .cumulative-calendar-month > strong {
    display: block;
    margin-bottom: 9px;
    color: #111713;
    font-size: 13px;
    text-align: center;
}

.dashboard-page .cumulative-calendar-month--next {
    padding-left: 18px;
    border-left: 1px solid #d9dfdb;
}

.dashboard-page .cumulative-calendar-weekdays,
.dashboard-page .cumulative-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.dashboard-page .cumulative-calendar-weekdays {
    margin-bottom: 4px;
}

.dashboard-page .cumulative-calendar-weekdays span {
    height: 23px;
    display: grid;
    place-items: center;
    color: #7b857e;
    font-size: 9px;
    font-weight: 800;
}

.dashboard-page .cumulative-calendar-day {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #273129;
    cursor: pointer;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.dashboard-page .cumulative-calendar-day:hover:not(:disabled) {
    border-color: #287a55;
    color: #17653f;
}

.dashboard-page .cumulative-calendar-day--blank {
    pointer-events: none;
}

.dashboard-page .cumulative-calendar-day--today {
    border-color: #111713;
    font-weight: 900;
}

.dashboard-page .cumulative-calendar-day--within {
    border-color: #dff4e7;
    background: #dff4e7;
    color: #17653f;
}

.dashboard-page .cumulative-calendar-day--start,
.dashboard-page .cumulative-calendar-day--end {
    border-color: #17653f;
    background: #17653f;
    color: #ffffff;
    font-weight: 900;
}

.dashboard-page .cumulative-calendar-day:disabled {
    cursor: default;
    opacity: 0.28;
}

.dashboard-page .cumulative-calendar-footer {
    min-height: 58px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid #d9dfdb;
    background: #f7f9f7;
}

.dashboard-page .cumulative-calendar-footer > span {
    color: #5f6b63;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-page .cumulative-calendar-footer > div {
    display: flex;
    gap: 7px;
}

.dashboard-page .cumulative-calendar-footer button {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #111713;
    border-radius: 4px;
    background: #ffffff;
    color: #111713;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
}

.dashboard-page .cumulative-calendar-footer button:last-child {
    background: #111713;
    color: #ffffff;
}

.dashboard-page .cumulative-calendar-footer button:last-child:hover:not(:disabled) {
    border-color: #287a55;
    background: #287a55;
}

.dashboard-page .cumulative-calendar-footer button:disabled {
    cursor: default;
    opacity: 0.35;
}

.dashboard-page .metric-grid {
    gap: 16px;
}

.dashboard-page .metric-card {
    --card-accent: #111713;
    position: relative;
    min-width: 0;
    min-height: 210px;
    padding: 23px 24px 21px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #111713;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 5px 5px 0 #111713;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-page .metric-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 #111713;
}

.dashboard-page .metric-card::before {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--card-accent);
}

.dashboard-page .metric-card--ink { --card-accent: #111713; }
.dashboard-page .metric-card--success { --card-accent: #28a967; background: #f2fbf5; }
.dashboard-page .metric-card--danger { --card-accent: #ef615d; background: #fff4f3; }
.dashboard-page .metric-card--blue { --card-accent: #3978f6; background: #f3f7ff; }
.dashboard-page .metric-card--amber { --card-accent: #f0b429; background: #fff9e9; }

.dashboard-page .metric-card__label {
    margin-top: 4px;
    color: #4f5a53;
    font-size: 15px;
    font-weight: 800;
}

.dashboard-page .metric-card__primary {
    min-width: 0;
    margin: 16px 0 auto;
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.dashboard-page .metric-card__primary strong {
    min-width: 0;
    margin: 0;
    color: #111713;
    font-size: 48px;
    line-height: 0.94;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.dashboard-page .metric-grid--four .metric-card__primary strong {
    font-size: 40px;
}

.dashboard-page .metric-card__primary > span {
    color: #69736c;
    font-size: 15px;
    font-weight: 800;
}

.dashboard-page .metric-card__note {
    margin-top: 23px;
    color: #69736c;
    font-size: 15px;
    font-weight: 700;
}

.dashboard-page .metric-card__single-stat {
    margin-top: 20px;
    padding-top: 13px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid #cbd3cd;
}

.dashboard-page .metric-card__single-stat > span {
    color: #69736c;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-page .metric-card__single-stat > strong {
    margin: 0;
    color: #111713;
    font-size: 27px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dashboard-page .metric-card__stats {
    margin-top: 22px;
    padding-top: 15px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-top: 1px solid #cbd3cd;
}

.dashboard-page .metric-card__stats div {
    min-width: 0;
}

.dashboard-page .metric-card__stats div + div {
    padding-left: 15px;
    border-left: 1px solid #cbd3cd;
}

.dashboard-page .metric-card__stats span,
.dashboard-page .metric-card__stats strong {
    display: block;
}

.dashboard-page .metric-card__stats span {
    margin-bottom: 7px;
    color: #69736c;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-page .metric-card__stats strong {
    margin: 0;
    color: #111713;
    font-size: 27px;
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.dashboard-page .metric-card__stats div:last-child strong {
    color: #d94f4b;
}

.dashboard-page .dashboard-section {
    margin-top: 48px;
}

.dashboard-page .section-heading {
    min-height: 58px;
    margin-bottom: 16px;
}

.dashboard-page .section-heading__index {
    margin: 0 0 3px;
    color: #3978f6;
    font-size: 24px;
    line-height: 1;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.dashboard-page .section-heading h2 {
    font-size: 22px;
    font-weight: 850;
}

.dashboard-page .section-heading p:not(.section-heading__index) {
    margin-top: 6px;
    font-size: 14px;
}

.dashboard-page .runtime-grid {
    gap: 18px;
}

.dashboard-page .runtime-card {
    min-width: 0;
    padding: 24px;
    border: 2px solid #111713;
    border-radius: 7px;
    box-shadow: 5px 5px 0 #111713;
}

.dashboard-page .runtime-card__label {
    margin-bottom: 9px;
    color: #59635c;
    font-size: 15px;
    font-weight: 800;
}

.dashboard-page .runtime-card__account {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.dashboard-page .runtime-card__account strong {
    font-size: 44px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dashboard-page .runtime-card__account span {
    color: #69736c;
    font-size: 15px;
    font-weight: 700;
}

.dashboard-page .runtime-state {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid currentColor;
    font-size: 14px;
}

.dashboard-page .runtime-meta {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 22px;
    border-top: 2px solid #111713;
}

.dashboard-page .runtime-meta div {
    padding-top: 17px;
}

.dashboard-page .runtime-meta div:last-child {
    grid-column: span 2;
}

.dashboard-page .runtime-meta dt {
    margin-bottom: 8px;
    color: #69736c;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-page .runtime-meta dd {
    color: #111713;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.dashboard-page .runtime-meta div:last-child dd {
    font-size: 18px;
}

.dashboard-page .runtime-card__pid {
    margin: 16px 0 0;
    color: #69736c;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dashboard-page .analytics-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(350px, 0.75fr);
    gap: 18px;
}

.dashboard-page .panel,
.dashboard-page .dashboard-table-wrap {
    border: 2px solid #111713;
    border-radius: 7px;
    box-shadow: 5px 5px 0 #111713;
}

.dashboard-page .panel {
    padding: 24px;
}

.dashboard-page .chart-legend {
    gap: 18px;
    color: #465049;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-page .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.dashboard-page .chart-wrap,
.dashboard-page #volume-chart {
    min-height: 330px;
    height: 330px;
}

.dashboard-page .reason-row {
    padding: 13px 0;
    border-color: #cbd3cd;
}

.dashboard-page .reason-row__title {
    align-items: center;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-page .reason-row__title strong {
    font-size: 22px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dashboard-page .reason-bar {
    height: 8px;
    margin-top: 10px;
    border-radius: 0;
}

.dashboard-page .dashboard-table th {
    padding: 15px 16px;
    color: #4f5a53;
    background: #edf0ed;
    font-size: 13px;
    border-bottom: 2px solid #111713;
}

.dashboard-page .dashboard-table td {
    padding: 15px 16px;
    font-size: 17px;
    font-weight: 700;
}

.dashboard-page .dashboard-table td:first-child strong {
    font-size: 18px;
}

.dashboard-page .dashboard-table .table-link {
    min-height: 34px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #111713;
    color: #111713;
    font-size: 14px;
}

.dashboard-page .dashboard-table .table-link:hover {
    background: #111713;
    color: #ffffff;
}

@media (max-width: 1180px) {
    .dashboard-page .metric-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-page .analytics-grid { grid-template-columns: 1fr; }
    .dashboard-page .metric-row__heading--range { align-items: flex-start; flex-direction: column; }
    .dashboard-page .cumulative-range-control { width: 100%; }
}

@media (max-width: 820px) {
    .dashboard-page { width: min(100% - 28px, 1580px); }
    .dashboard-heading { min-height: 190px; padding: 28px; }
    .dashboard-heading h1 { font-size: 38px; }
    .dashboard-heading__meta { min-width: 250px; padding-left: 24px; }
    .dashboard-heading__meta strong { font-size: 28px; }
    .dashboard-page .metric-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-page .metric-grid--three .metric-card:first-child:last-child { grid-column: 1 / -1; }
    .dashboard-page .runtime-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .dashboard-heading { min-height: 0; padding: 22px; flex-direction: column; gap: 24px; }
    .dashboard-heading h1 { font-size: 32px; }
    .dashboard-heading__meta { min-width: 0; padding: 20px 0 0; align-items: flex-start; border-top: 1px solid #3f4842; border-left: 0; }
    .dashboard-page .overview-metrics { margin-top: 34px; gap: 34px; }
    .dashboard-page .metric-grid--three,
    .dashboard-page .metric-grid--four { grid-template-columns: 1fr; }
    .dashboard-page .metric-card { min-height: 200px; padding: 22px; }
    .dashboard-page .metric-card__primary strong,
    .dashboard-page .metric-grid--four .metric-card__primary strong { font-size: 42px; }
    .dashboard-page .metric-card__stats strong { font-size: 25px; }
    .dashboard-page .metric-row__heading--range > .metric-row__title { display: block; }
    .dashboard-page .cumulative-range-trigger { width: 100%; }
    .dashboard-page .cumulative-range-popover {
        right: auto;
        left: 0;
        width: 100%;
        box-shadow: 5px 5px 0 #111713;
    }
    .dashboard-page .cumulative-calendar-header { min-height: 68px; padding: 11px 12px; }
    .dashboard-page .cumulative-calendar-header strong { font-size: 12px; }
    .dashboard-page .cumulative-range-presets {
        padding: 10px 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-page .cumulative-calendars { padding: 13px 12px; grid-template-columns: 1fr; }
    .dashboard-page .cumulative-calendar-month--next { display: none; }
    .dashboard-page .cumulative-calendar-day { max-height: 42px; }
    .dashboard-page .cumulative-calendar-footer {
        padding: 11px 12px;
        align-items: stretch;
        flex-direction: column;
    }
    .dashboard-page .cumulative-calendar-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
    .dashboard-page .runtime-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-page .runtime-meta div:last-child { grid-column: 1 / -1; }
    .dashboard-page .panel { padding: 18px; }
}

/* Shared workspace theme for details and task configuration */
.workspace-page {
    padding-top: 24px;
}

.workspace-heading {
    min-height: 184px;
    padding: 30px 36px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 44px;
    border: 2px solid #111713;
    border-bottom: 7px solid #66dc7d;
    background: #111713;
    color: #ffffff;
    box-shadow: 7px 7px 0 #cbd3cd;
}

.workspace-heading h1 {
    margin: 10px 0 8px;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 850;
}

.workspace-heading__kicker,
.workspace-heading__subtitle,
.workspace-heading__meta > span {
    margin: 0;
    color: #aeb9b1;
    font-weight: 700;
}

.workspace-heading__kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
}

.workspace-heading__kicker i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #66dc7d;
    box-shadow: 0 0 0 5px rgba(102, 220, 125, 0.18);
}

.workspace-heading__subtitle {
    font-size: 15px;
}

.workspace-heading__meta {
    min-width: 284px;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    border-left: 1px solid #3f4842;
}

.workspace-heading__meta > span {
    font-size: 13px;
}

.workspace-heading__meta > strong {
    margin: 8px 0 18px;
    color: #66dc7d;
    font-size: 31px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.workspace-heading__meta > a {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-weight: 700;
}

.workspace-heading__meta > a:hover {
    border-color: #66dc7d;
    background: #66dc7d;
    color: #111713;
}

/* Details workspace */
#details-page .filter-bar {
    margin: 36px 0 22px;
    padding: 20px;
    gap: 13px;
    border: 2px solid #111713;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 5px 5px 0 #111713;
}

#details-page .filter-bar label > span,
#details-page .filter-field > span {
    margin-bottom: 8px;
    color: #4f5a53;
    font-size: 13px;
    font-weight: 800;
}

#details-page .filter-bar select,
#details-page .date-picker-button {
    height: 44px;
    border: 1px solid #111713;
    border-radius: 5px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 650;
}

#details-page .filter-bar select:focus,
#details-page .date-picker-button:hover,
#details-page .date-picker-button[aria-expanded="true"] {
    border-color: #3978f6;
    box-shadow: 0 0 0 3px rgba(57, 120, 246, 0.14);
}

#details-page .date-picker-value strong {
    font-size: 14px;
}

#details-page .date-picker-value small {
    font-size: 12px;
}

#details-page .filter-submit,
#details-page .filter-reset {
    height: 44px;
    border: 2px solid #111713;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
}

#details-page .filter-submit {
    background: #111713;
    color: #ffffff;
}

#details-page .filter-submit:hover {
    border-color: #66dc7d;
    background: #66dc7d;
    color: #111713;
}

#details-page .filter-reset {
    background: #ffffff;
}

#details-page .filter-reset:hover {
    border-color: #3978f6;
    color: #3978f6;
}

#details-page .date-calendar {
    width: 336px;
    border: 2px solid #111713;
    border-radius: 7px;
    box-shadow: 7px 7px 0 #111713;
}

#details-page .calendar-header strong {
    font-size: 16px;
}

#details-page .calendar-weekdays {
    font-size: 12px;
    font-weight: 700;
}

#details-page .calendar-day {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    font-size: 14px;
}

#details-page .calendar-day--selected,
#details-page .calendar-day--selected:hover:not(:disabled) {
    border-color: #111713;
    background: #111713;
}

#details-page .calendar-footer {
    font-size: 12px;
}

#details-page .detail-summary {
    min-height: 112px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border: 2px solid #111713;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 5px 5px 0 #111713;
}

#details-page .detail-summary div {
    min-width: 0;
    min-height: 108px;
    padding: 19px 22px;
    justify-content: center;
    border-right: 1px solid #cbd3cd;
}

#details-page .detail-summary div:last-child {
    border-right: 0;
}

#details-page .detail-summary span {
    color: #5d6861;
    font-size: 13px;
    font-weight: 750;
}

#details-page .detail-summary strong {
    min-width: 0;
    color: #111713;
    font-size: 32px;
    line-height: 1;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

#details-page .detail-summary .text-success {
    color: #228652;
}

#details-page .detail-summary .text-danger {
    color: #d94f4b;
}

#details-page .detail-summary div:last-child strong {
    font-size: 21px;
}

#details-page .pagination--top {
    min-height: 70px;
    padding: 0;
    border-bottom: 0;
    color: #4f5a53;
    font-size: 15px;
    font-weight: 750;
}

#details-page .pagination #page-indicator {
    min-width: 108px;
    color: #111713;
    font-size: 18px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

#details-page .pagination .icon-button {
    width: 40px;
    height: 40px;
    border: 2px solid #111713;
    border-radius: 5px;
    font-size: 20px;
}

#details-page .pagination .icon-button:hover:not(:disabled) {
    border-color: #111713;
    background: #111713;
    color: #ffffff;
}

#details-page .pagination select {
    height: 40px;
    border: 1px solid #111713;
    font-size: 15px;
    font-weight: 700;
}

#details-page .table-wrap--details {
    border: 2px solid #111713;
    border-radius: 7px;
    box-shadow: 5px 5px 0 #111713;
}

#details-page .detail-table th {
    padding: 14px 13px;
    border-bottom: 2px solid #111713;
    background: #111713;
    color: #ffffff;
    font-size: 13px;
}

#details-page .detail-table td {
    padding: 14px 13px;
    border-color: #d7ddd8;
    font-size: 14px;
    font-weight: 600;
}

#details-page .detail-table tbody tr:nth-child(even) {
    background: #f7f9f7;
}

#details-page .detail-table tbody tr:hover {
    background: #eef6f0;
}

#details-page .detail-table .cell-subtext {
    margin-top: 6px;
    color: #69736c;
    font-size: 12px;
    font-weight: 500;
}

#details-page .detail-table .status-chip {
    min-width: 68px;
    min-height: 30px;
    border-radius: 4px;
    font-size: 12px;
}

#details-page .detail-table .table-action {
    min-height: 34px;
    border: 1px solid #111713;
    color: #111713;
}

#details-page .detail-table .table-action:hover {
    background: #111713;
    color: #ffffff;
}

.record-dialog {
    border: 2px solid #111713;
    box-shadow: 8px 8px 0 #111713;
}

.record-dialog::backdrop {
    background: rgba(17, 23, 19, 0.7);
}

.record-dialog .dialog-header {
    border-bottom: 2px solid #111713;
    background: #f3f5f2;
}

.record-dialog .dialog-header h2 {
    font-size: 21px;
}

.record-dialog .record-fields {
    gap: 2px;
    background: #111713;
}

.record-dialog .record-fields div {
    min-height: 88px;
    padding: 15px;
}

.record-dialog .record-fields span {
    font-size: 12px;
    font-weight: 700;
}

.record-dialog .record-fields strong {
    font-size: 15px;
}

/* Task configuration workspace */
#tasks-page .task-layout {
    margin-top: 36px;
    gap: 18px;
}

#tasks-page .task-upload-panel,
#tasks-page .task-progress-panel {
    position: relative;
    min-height: 430px;
    padding: 25px;
    overflow: hidden;
    border: 2px solid #111713;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 5px 5px 0 #111713;
}

#tasks-page .task-upload-panel::before,
#tasks-page .task-progress-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 8px;
    background: #3978f6;
}

#tasks-page .task-progress-panel::before {
    background: #28a967;
}

#tasks-page .section-heading {
    min-height: 62px;
    margin-bottom: 18px;
}

#tasks-page .section-heading__index {
    margin: 0 0 4px;
    color: #3978f6;
    font-size: 24px;
    line-height: 1;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

#tasks-page .task-progress-panel .section-heading__index {
    color: #28a967;
}

#tasks-page .section-heading h2 {
    font-size: 22px;
    font-weight: 850;
}

#tasks-page .section-heading p:not(.section-heading__index) {
    margin-top: 6px;
    font-size: 14px;
}

#tasks-page .status-chip {
    min-width: 76px;
    min-height: 32px;
    border-radius: 4px;
    font-size: 12px;
}

#tasks-page .target-control {
    margin: 22px 0 18px;
}

#tasks-page .target-control legend {
    margin-bottom: 9px;
    color: #4f5a53;
    font-size: 13px;
}

#tasks-page .segmented-control {
    height: 50px;
    padding: 4px;
    border: 2px solid #111713;
    border-radius: 6px;
    background: #edf0ed;
}

#tasks-page .segmented-control span {
    height: 38px;
    font-size: 14px;
}

#tasks-page .segmented-control input:checked + span {
    background: #111713;
    color: #ffffff;
    box-shadow: none;
}

#tasks-page .file-drop-zone {
    min-height: 186px;
    border: 2px dashed #111713;
    border-radius: 7px;
    background: #f3f5f2;
}

#tasks-page .file-drop-zone:hover,
#tasks-page .file-drop-zone--dragging,
#tasks-page .file-drop-zone--selected {
    border-color: #3978f6;
    background: #f3f7ff;
}

#tasks-page .file-drop-zone__icon {
    width: 44px;
    height: 44px;
    border: 2px solid #111713;
    border-radius: 5px;
    color: #111713;
    font-size: 25px;
}

#tasks-page .file-drop-zone strong {
    font-size: 16px;
}

#tasks-page .file-drop-zone small {
    font-size: 13px;
}

#tasks-page .task-submit {
    min-height: 48px;
    border: 2px solid #111713;
    border-radius: 5px;
    background: #111713;
    font-size: 15px;
    font-weight: 800;
}

#tasks-page .task-submit:hover:not(:disabled) {
    border-color: #66dc7d;
    background: #66dc7d;
    color: #111713;
}

#tasks-page .task-progress-panel .section-heading > strong {
    color: #111713;
    font-size: 34px;
    line-height: 1;
}

#tasks-page .task-progress-track {
    height: 13px;
    margin: 32px 0 16px;
    border: 1px solid #111713;
    border-radius: 0;
    background: #edf0ed;
}

#tasks-page .task-progress-track i {
    border-radius: 0;
    background: #28a967;
}

#tasks-page .task-progress-message {
    min-height: 48px;
    color: #4f5a53;
    font-size: 15px;
    font-weight: 650;
}

#tasks-page .task-result-meta {
    margin-top: 22px;
    border-top: 2px solid #111713;
}

#tasks-page .task-result-meta div {
    padding: 18px 14px 8px 0;
}

#tasks-page .task-result-meta dt {
    margin-bottom: 8px;
    color: #69736c;
    font-size: 13px;
    font-weight: 700;
}

#tasks-page .task-result-meta dd {
    color: #111713;
    font-size: 18px;
    font-weight: 800;
}

#tasks-page #task-result-reused,
#tasks-page #task-result-queried {
    font-size: 28px;
    font-variant-numeric: tabular-nums;
}

#tasks-page .task-file-section {
    margin-top: 48px;
}

#tasks-page .task-file-section > .section-heading {
    margin-bottom: 14px;
}

#tasks-page .task-file-section .table-wrap {
    border: 2px solid #111713;
    border-radius: 7px;
    box-shadow: 5px 5px 0 #111713;
}

#tasks-page .task-file-table th {
    padding: 14px 16px;
    border-bottom: 2px solid #111713;
    background: #111713;
    color: #ffffff;
    font-size: 13px;
}

#tasks-page .task-file-table td {
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
}

#tasks-page .task-file-table tbody tr:nth-child(even) {
    background: #f7f9f7;
}

#tasks-page .task-file-table td:nth-child(2) strong {
    color: #3978f6;
    font-size: 27px;
    font-variant-numeric: tabular-nums;
}

#tasks-page .task-path-cell {
    font-size: 12px;
}

@media (max-width: 820px) {
    .workspace-heading {
        min-height: 176px;
        padding: 27px;
    }
    .workspace-heading h1 { font-size: 36px; }
    .workspace-heading__meta { min-width: 242px; padding-left: 23px; }
    .workspace-heading__meta > strong { font-size: 27px; }
    #details-page .detail-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #details-page .detail-summary div { border-bottom: 1px solid #cbd3cd; }
    #details-page .detail-summary div:nth-child(3) { border-right: 0; }
    #details-page .detail-summary div:nth-child(n + 4) { border-bottom: 0; }
}

@media (max-width: 520px) {
    .workspace-heading { min-height: 0; padding: 22px; flex-direction: column; gap: 24px; }
    .workspace-heading h1 { font-size: 32px; }
    .workspace-heading__meta { min-width: 0; padding: 20px 0 0; align-items: flex-start; border-top: 1px solid #3f4842; border-left: 0; }
    #details-page .filter-bar { padding: 16px; }
    #details-page .detail-summary { grid-template-columns: 1fr 1fr; }
    #details-page .detail-summary div,
    #details-page .detail-summary div:nth-child(3) { border-right: 1px solid #cbd3cd; border-bottom: 1px solid #cbd3cd; }
    #details-page .detail-summary div:nth-child(even) { border-right: 0; }
    #details-page .detail-summary div:last-child { border-right: 0; border-bottom: 0; }
    #details-page .detail-summary strong { font-size: 27px; }
    #tasks-page .task-upload-panel,
    #tasks-page .task-progress-panel { padding: 20px; }
}

/* Cookie operations */
.workspace-heading--danger {
    border-bottom-color: #ef615d;
}

.workspace-heading--danger .workspace-heading__kicker i {
    background: #ef615d;
    box-shadow: 0 0 0 5px rgba(239, 97, 93, 0.18);
}

.workspace-heading--danger .workspace-heading__meta > strong {
    color: #ef615d;
}

.cookie-current-allocation {
    margin-top: 36px;
    display: grid;
    grid-template-columns: minmax(280px, 0.7fr) minmax(520px, 1.3fr);
    border: 2px solid #111713;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 5px 5px 0 #111713;
}

.cookie-current-allocation__heading {
    min-height: 122px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-right: 1px solid #cbd3cd;
}

.cookie-current-allocation__heading > div {
    min-width: 0;
}

.cookie-current-allocation__heading span:not(.status-chip) {
    color: #d94f4b;
    font-size: 12px;
    font-weight: 850;
}

.cookie-current-allocation__heading h2 {
    margin: 6px 0 0;
    font-size: 22px;
    font-weight: 850;
}

.cookie-current-allocation__heading .status-chip {
    margin-left: auto;
    min-width: 76px;
    min-height: 30px;
    border-radius: 4px;
}

.cookie-current-allocation__stats {
    margin: 0;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 20px;
}

.cookie-current-allocation__stats div {
    min-width: 0;
    padding-left: 20px;
    border-left: 1px solid #cbd3cd;
}

.cookie-current-allocation__stats div:first-child {
    border-left: 0;
}

.cookie-current-allocation__stats dt {
    margin-bottom: 9px;
    color: #69736c;
    font-size: 13px;
    font-weight: 750;
}

.cookie-current-allocation__stats dd {
    margin: 0;
    color: #111713;
    font-size: 38px;
    line-height: 1;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.cookie-operation-bar {
    margin-top: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 2px solid #111713;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 5px 5px 0 #111713;
}

.cookie-operation-bar__intro {
    min-width: 0;
    min-height: 98px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cookie-operation-bar__index {
    min-width: 54px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    border: 2px solid #111713;
    background: #66dc7d;
    color: #111713;
    font-size: 14px;
    font-weight: 850;
}

.cookie-operation-bar__intro > div {
    min-width: 0;
}

.cookie-operation-bar__intro h2,
.cookie-operation-bar__intro p {
    margin: 0;
}

.cookie-operation-bar__intro h2 {
    font-size: 20px;
    font-weight: 850;
}

.cookie-operation-bar__intro p {
    margin-top: 5px;
    color: #69736c;
    font-size: 14px;
}

.cookie-operation-bar__intro .status-chip {
    margin-left: auto;
    min-width: 76px;
    min-height: 30px;
    border-radius: 4px;
    font-size: 12px;
}

.cookie-operation-bar__actions {
    min-height: 98px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid #cbd3cd;
}

.cookie-operation-button {
    min-height: 46px;
    padding: 0 17px;
    border: 2px solid #111713;
    border-radius: 5px;
    background: #111713;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.cookie-operation-button:hover:not(:disabled) {
    border-color: #66dc7d;
    background: #66dc7d;
    color: #111713;
}

.cookie-operation-button--legacy {
    background: #fff4cb;
    color: #111713;
}

.cookie-operation-button--legacy:hover:not(:disabled) {
    border-color: #f0b429;
    background: #f0b429;
}

.cookie-operation-button:disabled {
    opacity: 0.5;
    cursor: wait;
}

.cookie-operation-result {
    grid-column: 1 / -1;
    min-height: 104px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(520px, 1.3fr);
    align-items: stretch;
    border-top: 2px solid #111713;
    background: #f2fbf5;
}

.cookie-operation-result[hidden] {
    display: none;
}

.cookie-operation-result--failed {
    background: #fff4f3;
}

.cookie-operation-result__message {
    min-width: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #cbd3cd;
}

.cookie-operation-result__message span {
    margin-bottom: 7px;
    color: #228652;
    font-size: 13px;
    font-weight: 800;
}

.cookie-operation-result--failed .cookie-operation-result__message span {
    color: #d94f4b;
}

.cookie-operation-result__message strong {
    color: #111713;
    font-size: 18px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.cookie-operation-result__stats {
    margin: 0;
    padding: 17px 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cookie-operation-result__stats div {
    min-width: 0;
}

.cookie-operation-result__stats dt {
    margin-bottom: 7px;
    color: #69736c;
    font-size: 12px;
    font-weight: 750;
}

.cookie-operation-result__stats dd {
    margin: 0;
    color: #111713;
    font-size: 28px;
    line-height: 1;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.cookie-operation-dialog {
    width: min(700px, calc(100% - 36px));
    max-height: calc(100vh - 48px);
    padding: 0;
    overflow: auto;
    border: 2px solid #111713;
    border-radius: 7px;
    background: #ffffff;
    color: #111713;
    box-shadow: 9px 9px 0 #111713;
}

.cookie-operation-dialog::backdrop {
    background: rgba(17, 23, 19, 0.72);
}

.cookie-operation-dialog__header {
    min-height: 94px;
    padding: 19px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 6px solid #66dc7d;
    background: #111713;
    color: #ffffff;
}

.cookie-operation-dialog__header span {
    color: #aeb9b1;
    font-size: 12px;
    font-weight: 800;
}

.cookie-operation-dialog__header h2 {
    margin: 6px 0 0;
    font-size: 25px;
    font-weight: 850;
}

.cookie-operation-dialog__header .icon-button {
    border-color: #ffffff;
    background: transparent;
    color: #ffffff;
}

.cookie-operation-dialog__header .icon-button:hover:not(:disabled) {
    border-color: #66dc7d;
    color: #66dc7d;
}

.cookie-operation-dialog__body {
    padding: 24px;
}

.cookie-operation-dialog__description {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 700;
}

.cookie-operation-dialog__steps {
    margin-top: 20px;
    padding: 18px 20px;
    border: 2px solid #111713;
    background: #f3f5f2;
}

.cookie-operation-dialog__steps > span {
    color: #3978f6;
    font-size: 13px;
    font-weight: 850;
}

.cookie-operation-dialog__steps ol {
    margin: 13px 0 0;
    padding-left: 22px;
}

.cookie-operation-dialog__steps li {
    padding: 5px 0 5px 5px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 650;
}

.cookie-operation-dialog__warning {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-left: 5px solid #f0b429;
    background: #fff9e9;
    color: #5d4a18;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 700;
}

.cookie-operation-dialog__footer {
    padding: 17px 22px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #cbd3cd;
}

.cookie-operation-dialog__footer button {
    min-width: 112px;
    min-height: 44px;
    border: 2px solid #111713;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
}

.cookie-operation-dialog__footer .primary-button {
    background: #111713;
}

.cookie-operation-dialog__footer .primary-button:hover:not(:disabled) {
    border-color: #66dc7d;
    background: #66dc7d;
    color: #111713;
}

.cookie-operation-dialog__footer button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.process-control-section {
    margin-top: 48px;
}

.process-control-section > .section-heading {
    min-height: 62px;
    margin-bottom: 16px;
}

.process-control-section .section-heading__index {
    margin: 0 0 4px;
    color: #d94f4b;
    font-size: 22px;
    line-height: 1;
    font-weight: 850;
}

.process-control-section .section-heading h2 {
    font-size: 22px;
    font-weight: 850;
}

.process-control-section .section-heading p:not(.section-heading__index) {
    margin-top: 6px;
    font-size: 14px;
}

.process-control-section .section-heading .icon-button {
    width: 42px;
    height: 42px;
    border: 2px solid #111713;
}

.process-control-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.process-control-grid > .loading-block,
.process-control-grid > .empty-state {
    grid-column: 1 / -1;
    min-height: 220px;
    border: 2px solid #111713;
    background: #ffffff;
}

.process-control-card {
    position: relative;
    min-width: 0;
    min-height: 320px;
    padding: 23px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #111713;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 5px 5px 0 #111713;
}

.process-control-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 8px;
    background: #8b948e;
}

.process-control-card--running::before {
    background: #28a967;
}

.process-control-card__header {
    margin-top: 5px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.process-control-card__header > div > span,
.process-control-card__header > div > strong {
    display: block;
}

.process-control-card__header > div > span {
    color: #69736c;
    font-size: 13px;
    font-weight: 750;
}

.process-control-card__header > div > strong {
    margin-top: 7px;
    font-size: 27px;
    line-height: 1;
    font-weight: 850;
}

.process-state {
    min-height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #9da6a0;
    border-radius: 4px;
    color: #69736c;
    font-size: 12px;
    font-weight: 800;
}

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

.process-state--running {
    border-color: #9dd2b5;
    background: #edf9f2;
    color: #228652;
}

.process-control-card__meta {
    margin: 24px 0 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 14px;
}

.process-control-card__meta div {
    min-width: 0;
}

.process-control-card__meta dt {
    margin-bottom: 6px;
    color: #69736c;
    font-size: 12px;
    font-weight: 700;
}

.process-control-card__meta dd {
    margin: 0;
    color: #111713;
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.process-control-card__meta div:first-child dd {
    font-size: 29px;
    line-height: 1;
}

.process-control-card__error {
    margin: 0 0 14px;
    color: #d94f4b;
    font-weight: 700;
}

.process-control-card__actions {
    margin-top: auto;
    padding-top: 17px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    border-top: 2px solid #111713;
}

.process-control-card__actions button {
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    border: 1px solid #111713;
    border-radius: 4px;
    background: #ffffff;
    color: #111713;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.process-control-card__actions button:hover:not(:disabled) {
    background: #111713;
    color: #ffffff;
}

.process-control-card__actions .process-action--start {
    border-color: #228652;
    background: #edf9f2;
    color: #187344;
}

.process-control-card__actions .process-action--start:hover:not(:disabled) {
    background: #228652;
    color: #ffffff;
}

.process-control-card__actions .process-action--stop {
    border-color: #747d77;
    background: #edf0ed;
}

.process-control-card__actions .process-action--restart {
    border-color: #d94f4b;
    background: #d94f4b;
    color: #ffffff;
}

.process-control-card__actions .process-action--restart:hover:not(:disabled) {
    border-color: #b93431;
    background: #b93431;
}

.process-control-card__actions button:disabled {
    opacity: 0.38;
    cursor: default;
}

.process-confirm-dialog__header,
.process-detail-dialog__header {
    border-bottom-color: #ef615d;
}

.process-confirm-target {
    margin-top: 20px;
    padding: 17px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 2px solid #111713;
    background: #f3f5f2;
}

.process-confirm-target span {
    color: #69736c;
    font-size: 13px;
    font-weight: 750;
}

.process-confirm-target strong {
    font-size: 21px;
}

.cookie-operation-dialog__footer .process-confirm-submit--danger {
    border-color: #d94f4b;
    background: #d94f4b;
}

.cookie-operation-dialog__footer .process-confirm-submit--danger:hover:not(:disabled) {
    border-color: #b93431;
    background: #b93431;
    color: #ffffff;
}

.process-detail-dialog {
    width: min(980px, calc(100% - 36px));
    max-height: calc(100vh - 48px);
    padding: 0;
    overflow: auto;
    border: 2px solid #111713;
    border-radius: 7px;
    background: #ffffff;
    color: #111713;
    box-shadow: 9px 9px 0 #111713;
}

.process-detail-dialog::backdrop {
    background: rgba(17, 23, 19, 0.72);
}

.process-detail-meta {
    margin: 0;
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    background: #111713;
}

.process-detail-meta div {
    min-width: 0;
    min-height: 88px;
    padding: 14px;
    background: #ffffff;
}

.process-detail-meta dt {
    margin-bottom: 8px;
    color: #69736c;
    font-size: 12px;
    font-weight: 700;
}

.process-detail-meta dd {
    margin: 0;
    font-size: 15px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.process-progress-panel {
    margin: 22px;
    padding: 18px;
    border: 2px solid #111713;
    background: #f3f5f2;
}

.process-progress-panel__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.process-progress-panel__header > div {
    display: grid;
    gap: 4px;
}

.process-progress-panel__header span {
    color: #d94f4b;
    font-size: 12px;
    font-weight: 850;
}

.process-progress-panel__header strong {
    font-size: 19px;
}

.process-progress-panel__header .process-progress-percent {
    color: #111713;
    font-size: 28px;
    font-variant-numeric: tabular-nums;
}

.process-progress-track {
    height: 12px;
    margin: 15px 0 18px;
    overflow: hidden;
    border: 2px solid #111713;
    background: #ffffff;
}

.process-progress-track i {
    width: 0;
    height: 100%;
    display: block;
    background: #d94f4b;
    transition: width 0.35s ease;
}

.process-progress-stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #cbd3cd;
    background: #ffffff;
}

.process-progress-stats div {
    min-width: 0;
    padding: 12px 14px;
    border-left: 1px solid #cbd3cd;
}

.process-progress-stats div:first-child {
    border-left: 0;
}

.process-progress-stats dt {
    margin-bottom: 5px;
    color: #69736c;
    font-size: 11px;
    font-weight: 700;
}

.process-progress-stats dd {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.process-progress-finish {
    margin: 12px 0 0;
    color: #69736c;
    font-size: 12px;
    font-weight: 650;
}

.process-log-panel {
    padding: 0 22px 22px;
}

.process-log-panel > div {
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 2px solid #111713;
    border-bottom: 0;
}

.process-log-panel span {
    color: #d94f4b;
    font-size: 13px;
    font-weight: 850;
}

.process-log-panel strong {
    max-width: 70%;
    overflow: hidden;
    color: #69736c;
    font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-log-panel pre {
    min-height: 260px;
    max-height: 420px;
    margin: 0;
    padding: 17px;
    overflow: auto;
    border: 2px solid #111713;
    background: #111713;
    color: #d9e2dc;
    font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .cookie-current-allocation { grid-template-columns: 1fr; }
    .cookie-current-allocation__heading { border-right: 0; border-bottom: 1px solid #cbd3cd; }
    .cookie-operation-bar { grid-template-columns: 1fr; }
    .cookie-operation-bar__actions { min-height: auto; padding-top: 0; border-left: 0; }
    .cookie-operation-result { grid-template-columns: 1fr; }
    .cookie-operation-result__message { border-right: 0; border-bottom: 1px solid #cbd3cd; }
    .process-control-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .cookie-current-allocation__stats { grid-template-columns: 1fr; }
    .cookie-current-allocation__stats div,
    .cookie-current-allocation__stats div:first-child { padding: 13px 0 0; border-top: 1px solid #cbd3cd; border-left: 0; }
    .cookie-current-allocation__stats div:first-child { padding-top: 0; border-top: 0; }
    .cookie-operation-bar__intro { align-items: flex-start; flex-wrap: wrap; }
    .cookie-operation-bar__intro .status-chip { margin-left: 0; }
    .cookie-operation-bar__actions { flex-direction: column; }
    .cookie-operation-button { width: 100%; }
    .cookie-operation-result__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cookie-operation-dialog__footer { flex-direction: column-reverse; }
    .cookie-operation-dialog__footer button { width: 100%; }
    .process-control-card__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-detail-meta { grid-template-columns: 1fr; }
    .process-progress-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-progress-stats div:nth-child(3) { border-left: 0; border-top: 1px solid #cbd3cd; }
    .process-progress-stats div:nth-child(4) { border-top: 1px solid #cbd3cd; }
    .process-log-panel > div { align-items: flex-start; flex-direction: column; }
    .process-log-panel strong { max-width: 100%; }
}
