:root {
    --bg: #0d0f12;
    --surface: #15181d;
    --surface-2: #1b1f25;
    --surface-3: #232831;
    --line: #2b3039;
    --line-soft: #22262d;
    --text: #f4f5f7;
    --muted: #969da9;
    --accent: #e3b04b;
    --accent-soft: rgba(227, 176, 75, 0.13);
    --blue: #7194ff;
    --green: #58c895;
    --red: #f07178;
    --orange: #ec9660;
    --sidebar-width: 256px;
    --radius: 16px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 82% 0%, rgba(227, 176, 75, 0.06), transparent 28rem),
        var(--bg);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.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(--muted);
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    padding: 24px 18px 18px;
    flex-direction: column;
    border-right: 1px solid var(--line-soft);
    background: rgba(17, 19, 23, 0.96);
    backdrop-filter: blur(20px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 8px 24px;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(227, 176, 75, 0.45);
    border-radius: 12px;
    color: #15120b;
    background: linear-gradient(145deg, #f1c467, #bb7f27);
    box-shadow: 0 8px 24px rgba(227, 176, 75, 0.12);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
    letter-spacing: 0.02em;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.main-nav {
    display: grid;
    gap: 6px;
}

.nav-caption {
    margin: 8px 12px;
    color: #6f7680;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-link {
    position: relative;
    display: flex;
    min-height: 44px;
    padding: 10px 12px;
    align-items: center;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #aeb4bd;
    font-size: 14px;
    font-weight: 600;
    transition: 160ms ease;
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav-link--active {
    border-color: rgba(227, 176, 75, 0.16);
    color: #f4d798;
    background: var(--accent-soft);
}

.nav-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    font-size: 18px;
}

.sidebar-note {
    display: flex;
    margin-top: auto;
    padding: 14px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.sidebar-note strong,
.sidebar-note small {
    display: block;
}

.sidebar-note strong {
    font-size: 12px;
}

.sidebar-note small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-top: 4px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(88, 200, 149, 0.1);
}

.user-panel {
    display: flex;
    margin-top: 12px;
    padding: 14px 8px 0;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line-soft);
}

.avatar,
.mini-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #dfe4ff;
    background: #313a59;
    font-weight: 800;
}

.avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
}

.mini-avatar {
    width: 26px;
    height: 26px;
    font-size: 10px;
}

.user-copy {
    min-width: 0;
    flex: 1;
}

.user-copy strong,
.user-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-copy strong {
    font-size: 12px;
}

.user-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.icon-button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.icon-button:hover {
    color: var(--text);
    background: var(--surface-2);
}

.main-content {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.page-wrap {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 44px 38px 64px;
}

.mobile-header,
.mobile-backdrop {
    display: none;
}

.page-heading,
.detail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-heading h1,
.detail-heading h1 {
    margin: 8px 0 8px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.page-heading p,
.detail-heading p,
.panel-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.eyebrow,
.section-kicker {
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sync-badge,
.source-label,
.overdue-badge {
    display: inline-flex;
    padding: 9px 12px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #c2c7ce;
    background: rgba(255, 255, 255, 0.02);
    font-size: 11px;
    font-weight: 700;
}

.sync-badge .live-dot {
    margin: 0;
}

.overdue-badge {
    border-color: rgba(240, 113, 120, 0.24);
    color: #ffafb4;
    background: rgba(240, 113, 120, 0.09);
}

.stats-grid {
    display: grid;
    margin: 28px 0 22px;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-card {
    position: relative;
    min-height: 128px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent), var(--surface);
}

.stat-card::after {
    position: absolute;
    content: "";
    width: 80px;
    height: 80px;
    right: -28px;
    bottom: -38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
}

.stat-card--accent {
    border-color: rgba(227, 176, 75, 0.22);
    background: linear-gradient(145deg, rgba(227, 176, 75, 0.1), transparent), var(--surface);
}

.stat-card--success {
    border-color: rgba(88, 200, 149, 0.17);
}

.stat-card span,
.stat-card strong,
.stat-card small {
    display: block;
}

.stat-label {
    color: #b1b7c0;
    font-size: 11px;
    font-weight: 700;
}

.stat-card strong {
    margin: 9px 0 4px;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.stat-card small {
    color: #737a85;
    font-size: 10px;
}

.panel {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(21, 24, 29, 0.88);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
}

.panel-heading {
    display: flex;
    padding: 22px 24px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line-soft);
}

.panel-heading h2,
.aside-card h2 {
    margin: 4px 0;
    font-size: 17px;
    letter-spacing: -0.015em;
}

.filters {
    display: flex;
    padding: 16px 20px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line-soft);
}

.filters select,
.filters input,
.form-control,
.login-form input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    color: var(--text);
    background: var(--surface-2);
    transition: border-color 150ms, box-shadow 150ms;
}

.filters select {
    min-width: 160px;
}

.filters input:focus,
.filters select:focus,
.form-control:focus,
.login-form input:focus {
    border-color: rgba(227, 176, 75, 0.65);
    box-shadow: 0 0 0 3px rgba(227, 176, 75, 0.09);
}

.search-field {
    position: relative;
    display: flex;
    min-width: 240px;
    flex: 1;
    align-items: center;
}

.search-field span {
    position: absolute;
    left: 13px;
    color: var(--muted);
}

.search-field input {
    padding-left: 36px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    padding: 10px 16px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 120ms, filter 120ms, background 120ms;
}

.button:hover {
    filter: brightness(1.08);
}

.button:active {
    transform: translateY(1px);
}

.button--primary {
    color: #17130b;
    background: linear-gradient(145deg, #edc16b, #c88b31);
}

.button--secondary {
    border-color: var(--line);
    color: var(--text);
    background: var(--surface-3);
}

.button--ghost {
    border-color: var(--line);
    color: var(--muted);
    background: transparent;
}

.button--danger {
    border-color: rgba(240, 113, 120, 0.4);
    color: #ffb0b5;
    background: rgba(240, 113, 120, 0.1);
}

.button--restore {
    border-color: rgba(88, 200, 149, 0.4);
    color: #a3e6c6;
    background: rgba(88, 200, 149, 0.11);
}

.button--full {
    width: 100%;
}

.table-scroll {
    overflow-x: auto;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
}

.task-table th {
    padding: 13px 16px;
    color: #747b86;
    background: rgba(255, 255, 255, 0.01);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.task-table td {
    padding: 13px 16px;
    border-top: 1px solid var(--line-soft);
    color: #cbd0d7;
    font-size: 12px;
    vertical-align: middle;
}

.task-table tbody tr {
    transition: background 120ms;
}

.task-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.018);
}

.task-table td small,
.task-table time {
    display: block;
}

.task-table td small {
    margin-top: 4px;
    color: #727984;
    font-size: 10px;
}

.product-thumb {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #7e7460;
    background: var(--surface-2);
    font-size: 24px;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-number {
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.task-number:hover,
.text-link:hover,
.back-link:hover {
    color: var(--accent);
}

.person {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.status,
.priority {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 800;
}

.status {
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
}

.status--new {
    border-color: rgba(113, 148, 255, 0.22);
    color: #aebeff;
    background: rgba(113, 148, 255, 0.09);
}

.status--in_progress,
.status--filming_completed {
    border-color: rgba(227, 176, 75, 0.22);
    color: #edcb89;
    background: rgba(227, 176, 75, 0.09);
}

.status--editing {
    border-color: rgba(166, 122, 255, 0.22);
    color: #c9adff;
    background: rgba(166, 122, 255, 0.09);
}

.status--completed {
    border-color: rgba(88, 200, 149, 0.22);
    color: #8ce1b8;
    background: rgba(88, 200, 149, 0.09);
}

.status--cancelled {
    border-color: rgba(150, 157, 169, 0.2);
    color: #a4aab3;
    background: rgba(150, 157, 169, 0.08);
}

.priority i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7d8490;
}

.priority--high i {
    background: var(--orange);
}

.priority--urgent i {
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(240, 113, 120, 0.1);
}

.priority--low {
    color: var(--muted);
}

.row-arrow {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
}

.row-arrow:hover {
    border-color: rgba(227, 176, 75, 0.3);
    color: var(--accent);
}

.empty-state,
.empty-inline {
    padding: 44px 20px;
    color: var(--muted);
    text-align: center;
}

.empty-state > span {
    color: #5f5749;
    font-size: 34px;
}

.empty-state h3 {
    margin: 10px 0 4px;
    color: #d9dce1;
    font-size: 15px;
}

.empty-state p {
    margin: 0;
    font-size: 11px;
}

.pagination {
    display: flex;
    padding: 18px 20px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 11px;
}

.pagination a {
    color: #d5d8dd;
}

.pagination .disabled {
    opacity: 0.35;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.heading-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-heading__side {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.irrelevant-badge {
    display: inline-flex;
    padding: 7px 10px;
    align-items: center;
    border: 1px solid rgba(240, 113, 120, 0.3);
    border-radius: 999px;
    color: #ffb0b5;
    background: rgba(240, 113, 120, 0.1);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.relevance-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.relevance-meta {
    color: var(--muted);
    font-size: 11px;
}

.detail-layout {
    display: grid;
    margin-top: 26px;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.detail-main,
.detail-aside {
    display: grid;
    gap: 18px;
}

.detail-aside {
    position: sticky;
    top: 20px;
}

.source-label {
    padding: 7px 10px;
    font-size: 9px;
}

.source-grid {
    display: grid;
    padding: 24px;
    grid-template-columns: minmax(200px, 0.75fr) 1.25fr;
    gap: 26px;
}

.source-preview {
    min-height: 280px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #0f1114;
}

.source-preview a,
.source-preview img,
.image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.source-preview img {
    min-height: 280px;
    object-fit: cover;
}

.image-placeholder {
    display: grid;
    min-height: 280px;
    place-content: center;
    gap: 10px;
    color: #635b4c;
    text-align: center;
}

.image-placeholder span {
    font-size: 44px;
}

.image-placeholder small {
    color: var(--muted);
    font-size: 10px;
}

.source-data,
.compact-data {
    margin: 0;
}

.source-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

.source-data > div {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line-soft);
}

.source-data dt,
.compact-data dt {
    color: #747b85;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.source-data dd,
.compact-data dd {
    margin: 7px 0 0;
    color: #e2e4e8;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.text-link {
    color: #e8bd68;
}

.work-form {
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group--wide {
    grid-column: 1 / -1;
}

.form-group label,
.login-form label {
    display: block;
    margin-bottom: 7px;
    color: #afb5bd;
    font-size: 10px;
    font-weight: 800;
}

.form-control[type="datetime-local"] {
    color-scheme: dark;
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.field-error,
.errorlist {
    display: block;
    margin: 6px 0 0;
    padding: 0;
    color: #ff9ea4;
    font-size: 10px;
    list-style: none;
}

.form-actions {
    display: flex;
    margin-top: 22px;
    padding-top: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line-soft);
    font-size: 10px;
}

.upload-form {
    display: flex;
    padding: 22px 24px;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.drop-zone {
    position: relative;
    display: flex;
    min-height: 76px;
    padding: 14px;
    flex: 1;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    border: 1px dashed #3a404a;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
    cursor: pointer;
}

.drop-zone:hover {
    border-color: rgba(227, 176, 75, 0.48);
    background: rgba(227, 176, 75, 0.035);
}

.drop-zone strong,
.drop-zone small {
    display: block;
}

.drop-zone strong {
    font-size: 12px;
}

.drop-zone small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.drop-zone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.upload-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 22px;
}

.gallery {
    display: grid;
    padding: 24px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: var(--surface-2);
}

.gallery-item > a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0c0e10;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item figcaption {
    display: flex;
    min-height: 45px;
    padding: 9px 10px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
}

.gallery-item figcaption small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
}

.delete-button {
    display: grid;
    width: 26px;
    height: 26px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.delete-button:hover {
    border-color: rgba(240, 113, 120, 0.35);
    color: #ff9ea4;
}

.aside-card {
    padding: 20px;
}

.aside-card h2 {
    margin-bottom: 16px;
}

.compact-data > div {
    padding: 12px 0;
    border-top: 1px solid var(--line-soft);
}

.compact-data > div:first-child {
    border-top: 0;
}

.aside-card .button {
    margin-top: 14px;
}

.timeline {
    display: grid;
    gap: 0;
}

.timeline-item {
    position: relative;
    display: grid;
    padding: 0 0 20px;
    grid-template-columns: 14px 1fr;
    gap: 10px;
}

.timeline-item:not(:last-child)::before {
    position: absolute;
    content: "";
    left: 4px;
    top: 9px;
    bottom: 0;
    width: 1px;
    background: var(--line);
}

.timeline-item > i {
    position: relative;
    z-index: 1;
    width: 9px;
    height: 9px;
    margin-top: 3px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px rgba(227, 176, 75, 0.18);
}

.timeline-item strong,
.timeline-item span,
.timeline-item small {
    display: block;
}

.timeline-item strong {
    font-size: 11px;
}

.timeline-item span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.timeline-item small {
    margin-top: 4px;
    color: #686f79;
    font-size: 8px;
}

.empty-history {
    padding: 18px 8px;
    color: var(--muted);
    text-align: center;
    font-size: 10px;
}

.empty-history span {
    color: #504a3f;
}

.message-stack {
    position: fixed;
    z-index: 80;
    top: 20px;
    right: 20px;
    display: grid;
    width: min(360px, calc(100vw - 40px));
    gap: 8px;
}

.message {
    display: flex;
    padding: 13px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: #dfe2e7;
    background: #20242b;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
    font-size: 11px;
}

.message--success {
    border-color: rgba(88, 200, 149, 0.28);
}

.message--error {
    border-color: rgba(240, 113, 120, 0.3);
}

.message button {
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.auth-body {
    display: grid;
    place-items: center;
}

.login-shell {
    display: grid;
    width: min(1040px, calc(100% - 36px));
    min-height: 620px;
    margin: 30px auto;
    overflow: hidden;
    grid-template-columns: 1.15fr 0.85fr;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.login-visual {
    position: relative;
    display: flex;
    padding: 42px;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(135deg, rgba(227, 176, 75, 0.12), transparent 50%),
        radial-gradient(circle at 70% 75%, rgba(111, 85, 43, 0.35), transparent 18rem),
        #101216;
}

.login-visual::before {
    position: absolute;
    content: "";
    width: 280px;
    height: 280px;
    right: 70px;
    bottom: 74px;
    border: 1px solid rgba(227, 176, 75, 0.17);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 50px rgba(227, 176, 75, 0.025),
        0 0 0 50px rgba(227, 176, 75, 0.02);
}

.login-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.login-copy {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin-bottom: 80px;
}

.login-copy h1 {
    margin: 12px 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.login-copy p {
    max-width: 390px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.film-strip {
    position: absolute;
    right: -20px;
    bottom: 28px;
    display: flex;
    padding: 12px;
    gap: 10px;
    border-block: 8px dotted rgba(227, 176, 75, 0.18);
    transform: rotate(-5deg);
}

.film-strip i {
    width: 86px;
    height: 54px;
    border: 1px solid rgba(227, 176, 75, 0.14);
    background: rgba(227, 176, 75, 0.035);
}

.login-form-wrap {
    display: grid;
    padding: 44px;
    place-items: center;
}

.login-form {
    width: min(330px, 100%);
}

.login-form h2 {
    margin: 8px 0;
    font-size: 27px;
    letter-spacing: -0.035em;
}

.login-form > p {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 12px;
}

.login-form label {
    margin-top: 16px;
}

.login-form .button {
    margin-top: 22px;
}

.form-alert {
    padding: 11px 12px;
    border: 1px solid rgba(240, 113, 120, 0.25);
    border-radius: 9px;
    color: #ffadb2;
    background: rgba(240, 113, 120, 0.08);
    font-size: 10px;
}

@media (max-width: 1180px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .task-table th:nth-child(3),
    .task-table td:nth-child(3),
    .task-table th:nth-child(4),
    .task-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 820px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }

    .menu-open .sidebar {
        transform: translateX(0);
    }

    .mobile-backdrop {
        position: fixed;
        z-index: 30;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(0, 0, 0, 0.55);
    }

    .menu-open .mobile-backdrop {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-header {
        display: flex;
        min-height: 58px;
        padding: 10px 18px;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid var(--line-soft);
        background: rgba(13, 15, 18, 0.9);
        backdrop-filter: blur(15px);
    }

    .mobile-header strong {
        font-size: 13px;
    }

    .page-wrap {
        padding: 30px 18px 50px;
    }

    .filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .search-field {
        min-width: 0;
        grid-column: 1 / -1;
    }

    .source-grid {
        grid-template-columns: 1fr;
    }

    .source-preview,
    .source-preview img,
    .image-placeholder {
        min-height: 240px;
        max-height: 380px;
    }

    .upload-form {
        align-items: stretch;
        flex-direction: column;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 260px;
        padding: 28px;
    }

    .login-copy {
        margin: 40px 0 20px;
    }

    .login-copy h1 {
        max-width: 500px;
        font-size: 38px;
    }

    .film-strip {
        opacity: 0.5;
    }
}

@media (max-width: 600px) {
    .page-heading,
    .detail-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-heading__side {
        width: 100%;
        justify-items: start;
    }

    .heading-badges,
    .relevance-form {
        justify-content: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        min-height: 112px;
        padding: 16px;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .filters > * {
        grid-column: 1;
    }

    .filters select {
        width: 100%;
    }

    .task-table th:nth-child(4),
    .task-table td:nth-child(4),
    .task-table th:nth-child(7),
    .task-table td:nth-child(7),
    .task-table th:nth-child(8),
    .task-table td:nth-child(8) {
        display: none;
    }

    .task-table th,
    .task-table td {
        padding: 11px 10px;
    }

    .form-grid,
    .source-data,
    .detail-aside {
        grid-template-columns: 1fr;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 16px;
        gap: 9px;
    }

    .panel-heading,
    .work-form,
    .source-grid {
        padding: 18px;
    }

    .login-shell {
        width: min(100% - 20px, 520px);
        margin: 10px auto;
    }

    .login-visual {
        min-height: 230px;
    }

    .login-copy h1 {
        font-size: 31px;
    }

    .login-form-wrap {
        padding: 34px 24px 40px;
    }
}
.task-checks {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 6px 12px;
}

.task-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}

.task-check input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: var(--accent);
}

.task-check input:disabled {
    opacity: 1;
}

/* В карточке чекбоксы собраны в отдельные крупные зоны: так их удобнее
   нажимать и на ноутбуке, и на сенсорном экране. */
.form-group--check {
    align-self: end;
}

.work-check {
    display: flex !important;
    min-height: 46px;
    margin: 0 !important;
    padding: 11px 13px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #d7dbe1 !important;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color 150ms, background 150ms;
}

.work-check:hover {
    border-color: rgba(227, 176, 75, 0.4);
    background: rgba(227, 176, 75, 0.04);
}

.form-checkbox {
    width: 17px;
    height: 17px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.work-check span {
    font-size: 11px;
    font-weight: 800;
}

/* Панель управления очередью: основные фильтры всегда видимы, а более
   точные условия собраны в раскрывающемся блоке, чтобы не перегружать экран. */
.task-panel__heading {
    align-items: center;
}

.view-switcher {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-2);
}

.view-switcher__button {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 11px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    transition: color 140ms, background 140ms;
}

.view-switcher__button:hover {
    color: var(--text);
}

.view-switcher__button--active {
    color: #17130b;
    background: linear-gradient(145deg, #edc16b, #c88b31);
}

.filters--extended {
    display: block;
}

.filters__primary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filters__primary .search-field {
    flex: 1 1 280px;
}

.filters__primary > label:not(.search-field) {
    flex: 1 1 155px;
}

.filters__primary select {
    min-width: 0;
}

.filter-details {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.filter-details summary {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: #c9cdd4;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    list-style-position: outside;
}

.filter-details summary small {
    padding: 3px 7px;
    border-radius: 999px;
    color: #f0cb84;
    background: var(--accent-soft);
    font-size: 9px;
}

.filter-grid {
    display: grid;
    margin-top: 14px;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
}

.filter-field {
    display: grid;
    gap: 6px;
}

.filter-field > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.filter-field input,
.filter-field select {
    min-width: 0;
}

/* Плиточный режим показывает те же рабочие данные, что и таблица, но лучше
   подходит для визуального просмотра изделий и небольших экранов. */
.task-cards {
    display: grid;
    padding: 20px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.task-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent), var(--surface-2);
    transition: border-color 150ms, transform 150ms, box-shadow 150ms;
}

.task-card:hover {
    border-color: rgba(227, 176, 75, 0.26);
    transform: translateY(-2px);
    box-shadow: 0 15px 34px rgba(0, 0, 0, 0.17);
}

.task-card__media {
    position: relative;
    height: 190px;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
    background: #101216;
}

.task-card__media > a {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #6d6557;
    font-size: 46px;
}

.task-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.task-card:hover .task-card__media img {
    transform: scale(1.025);
}

.task-card__media .status {
    position: absolute;
    top: 12px;
    right: 12px;
    backdrop-filter: blur(12px);
}

.task-card__body {
    padding: 16px;
}

.task-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.task-card__title-row > div {
    min-width: 0;
}

.task-card__title {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-card__title:hover {
    color: var(--accent);
}

.task-card__title-row small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-card__meta {
    display: grid;
    margin: 16px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.task-card__meta > div:last-child {
    grid-column: 1 / -1;
}

.task-card__meta dt,
.task-card__meta dd {
    margin: 0;
}

.task-card__meta dt {
    color: #747b86;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.task-card__meta dd {
    margin-top: 5px;
    overflow: hidden;
    color: #d2d6dc;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-checks--card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 11px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
}

.task-checks--card .task-check {
    font-size: 10px;
}

.task-card__open {
    display: flex;
    margin-top: 14px;
    padding-top: 13px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line-soft);
    color: #d5d8dd;
    font-size: 11px;
    font-weight: 800;
}

.task-card__open:hover {
    color: var(--accent);
}

.task-cards__empty {
    grid-column: 1 / -1;
}

@media (max-width: 1180px) {
    .filter-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 820px) {
    .filter-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (max-width: 600px) {
    .task-panel__heading {
        align-items: stretch;
        flex-direction: column;
    }

    .view-switcher {
        width: 100%;
    }

    .view-switcher__button {
        flex: 1;
    }

    .filters--extended {
        padding: 14px;
    }

    .filters__primary {
        display: grid;
        grid-template-columns: 1fr;
    }

    .filters__primary > *,
    .filters__primary .search-field {
        width: 100%;
        min-width: 0;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .task-cards {
        padding: 14px;
        grid-template-columns: 1fr;
    }
}

/* Раскрывающаяся панель держит очередь компактной, пока фильтры не нужны. */
.filter-drawer {
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.008);
}

.filter-drawer__summary {
    display: flex;
    min-height: 66px;
    padding: 14px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    list-style: none;
    transition: background 150ms;
}

.filter-drawer__summary::-webkit-details-marker {
    display: none;
}

.filter-drawer__summary:hover {
    background: rgba(255, 255, 255, 0.018);
}

.filter-drawer[open] .filter-drawer__summary {
    border-bottom: 1px solid var(--line-soft);
    background: rgba(227, 176, 75, 0.025);
}

.filter-drawer__lead {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.filter-drawer__lead strong,
.filter-drawer__lead small {
    display: block;
}

.filter-drawer__lead strong {
    font-size: 13px;
}

.filter-drawer__lead small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.filter-drawer__icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(227, 176, 75, 0.22);
    border-radius: 10px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 20px;
}

.filter-drawer__chevron {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    transition: color 150ms, transform 180ms;
}

.filter-drawer[open] .filter-drawer__chevron {
    color: var(--accent);
    transform: rotate(180deg);
}

.filters--drawer {
    display: block;
    padding: 0;
    border: 0;
    background: rgba(10, 12, 15, 0.2);
}

.filter-section {
    padding: 22px 20px;
}

.filter-section + .filter-section {
    border-top: 1px solid var(--line-soft);
}

.filter-section__heading {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.filter-section__heading h3 {
    margin: 5px 0 0;
    font-size: 14px;
}

.filter-section__heading p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.filter-search-grid,
.filter-exact-grid,
.readiness-filter-grid,
.date-filter-grid,
.sorting-grid {
    display: grid;
    gap: 12px;
}

.filter-search-grid {
    grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(150px, 1fr));
    align-items: end;
}

.filter-search-grid .search-field {
    min-width: 0;
}

.filter-exact-grid {
    margin-top: 12px;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.readiness-filter-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.readiness-filter {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 64px;
    padding: 12px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color 150ms, background 150ms, transform 120ms;
}

.readiness-filter:hover {
    border-color: rgba(227, 176, 75, 0.35);
    transform: translateY(-1px);
}

.readiness-filter:has(input:checked) {
    border-color: rgba(227, 176, 75, 0.42);
    background: var(--accent-soft);
}

.readiness-filter input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    opacity: 0;
}

.readiness-filter__mark {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #454b55;
    border-radius: 7px;
    color: transparent;
    background: #111318;
    font-size: 13px;
    font-weight: 900;
    transition: color 150ms, border-color 150ms, background 150ms;
}

.readiness-filter input:checked ~ .readiness-filter__mark {
    border-color: var(--accent);
    color: #17130b;
    background: var(--accent);
}

.readiness-filter input:focus-visible ~ .readiness-filter__mark {
    box-shadow: 0 0 0 3px rgba(227, 176, 75, 0.18);
}

.readiness-filter strong,
.readiness-filter small {
    display: block;
}

.readiness-filter strong {
    color: #dde0e5;
    font-size: 11px;
}

.readiness-filter small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date-filter-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.date-slider {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.date-slider__heading,
.date-slider__values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.date-slider__heading strong {
    font-size: 11px;
}

.date-slider__heading button {
    padding: 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 9px;
    cursor: pointer;
}

.date-slider__heading button:hover {
    color: var(--accent);
}

.date-slider__values {
    margin-top: 13px;
    color: #d8dbe0;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.date-slider__values span {
    color: #626975;
}

.date-slider__rail {
    --range-from: 0%;
    --range-to: 100%;
    position: relative;
    height: 30px;
    margin-top: 7px;
}

.date-slider__rail::before {
    position: absolute;
    content: "";
    top: 13px;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        #343a44 0 var(--range-from),
        var(--accent) var(--range-from) var(--range-to),
        #343a44 var(--range-to) 100%
    );
}

.date-slider__rail input[type="range"] {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    min-height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.date-slider__rail input[type="range"]:first-child {
    z-index: 3;
}

.date-slider__rail input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.date-slider__rail input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -7px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    appearance: none;
    background: #17191e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: grab;
    pointer-events: auto;
}

.date-slider__rail input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
}

.date-slider__rail input[type="range"]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    background: #17191e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: grab;
    pointer-events: auto;
}

.sorting-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.filter-actions {
    display: flex;
    padding: 18px 20px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--line-soft);
    background: rgba(0, 0, 0, 0.12);
}

@media (max-width: 1180px) {
    .filter-search-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .filter-search-grid .search-field {
        grid-column: 1 / -1;
    }

    .readiness-filter-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 820px) {
    .filter-exact-grid,
    .date-filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .filter-drawer__summary,
    .filter-section,
    .filter-actions {
        padding-right: 14px;
        padding-left: 14px;
    }

    .filter-section__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .filter-search-grid,
    .filter-exact-grid,
    .readiness-filter-grid,
    .sorting-grid {
        grid-template-columns: 1fr;
    }

    .filter-search-grid .search-field {
        grid-column: 1;
    }

    .filter-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .filter-actions .button {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Тёмная редакционная тема

   Основа — визуальный язык ювелирных каталогов: антиква в заголовках,
   винный акцент, тонкие разделители, прямые углы и свободная композиция.
   Все правила ниже переопределяют прежнюю тему, не меняя структуру экранов.
   -------------------------------------------------------------------------- */

:root {
    --bg: #0a0809;
    --surface: #110d0f;
    --surface-2: #181214;
    --surface-3: #21191b;
    --line: #3b2d31;
    --line-soft: #281e21;
    --text: #f3ede8;
    --muted: #a39898;
    --accent: #c7a56a;
    --accent-soft: rgba(199, 165, 106, 0.13);
    --blue: #9dabc8;
    --green: #77b99a;
    --red: #d86672;
    --orange: #c99369;
    --sidebar-width: 272px;
    --radius: 0;
    font-family: "Rubik", Inter, ui-sans-serif, -apple-system, sans-serif;
}

body {
    font-weight: 300;
    background:
        linear-gradient(118deg, rgba(111, 8, 36, 0.08), transparent 32rem),
        radial-gradient(circle at 100% 0%, rgba(124, 73, 82, 0.08), transparent 34rem),
        var(--bg);
}

h1,
h2,
h3,
.brand strong,
.stat-card strong,
.task-card__title,
.task-number,
.login-copy h1 {
    font-family: "Noto Serif", "Iowan Old Style", Georgia, serif;
    font-weight: 400;
}

.sidebar {
    padding: 30px 22px 22px;
    border-right-color: #2a1c20;
    background: rgba(10, 7, 8, 0.97);
    backdrop-filter: blur(24px);
}

.brand {
    gap: 14px;
    padding: 0 8px 38px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-color: rgba(199, 165, 106, 0.68);
    border-radius: 0;
    color: #f0d9ad;
    background: rgba(199, 165, 106, 0.07);
    box-shadow: none;
    font-family: "Noto Serif", Georgia, serif;
    font-size: 18px;
    font-weight: 400;
}

.brand strong {
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand small {
    margin-top: 4px;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.main-nav {
    gap: 0;
}

.nav-caption {
    margin: 6px 12px 14px;
    color: #766a6c;
    font-size: 9px;
    letter-spacing: 0.18em;
}

.nav-link {
    min-height: 48px;
    padding: 12px 10px;
    gap: 13px;
    border-width: 0 0 1px;
    border-color: var(--line-soft);
    border-radius: 0;
    color: #b5aaab;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.nav-link:hover {
    color: var(--text);
    background: linear-gradient(90deg, rgba(111, 8, 36, 0.18), transparent);
}

.nav-link--active {
    border-color: rgba(199, 165, 106, 0.5);
    color: #f2e5cf;
    background: linear-gradient(90deg, rgba(111, 8, 36, 0.42), rgba(111, 8, 36, 0.04));
}

.nav-link--active::before {
    position: absolute;
    left: 0;
    width: 2px;
    height: 22px;
    content: "";
    background: var(--accent);
}

.nav-icon {
    color: var(--accent);
    font-size: 16px;
}

.sidebar-note {
    padding: 16px;
    border-radius: 0;
    background: rgba(111, 8, 36, 0.08);
}

.user-panel {
    padding-top: 18px;
}

.avatar,
.mini-avatar {
    border: 1px solid rgba(192, 82, 102, 0.38);
    color: #f1dfe0;
    background: #31151d;
}

.icon-button {
    border-radius: 0;
}

.page-wrap {
    width: min(1560px, 100%);
    padding: 58px 46px 76px;
}

.page-heading,
.detail-heading {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line-soft);
}

.page-heading h1,
.detail-heading h1 {
    margin: 10px 0 12px;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -0.025em;
}

.page-heading p,
.detail-heading p,
.panel-heading p {
    max-width: 660px;
    color: #a69a9a;
    font-size: 13px;
    line-height: 1.7;
}

.eyebrow,
.section-kicker {
    color: var(--accent);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.sync-badge,
.source-label,
.overdue-badge,
.irrelevant-badge {
    border-radius: 0;
    background: transparent;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stats-grid {
    margin: 30px 0 24px;
    gap: 1px;
    border: 1px solid var(--line-soft);
    background: var(--line-soft);
}

.stat-card,
.stat-card--accent,
.stat-card--success {
    min-height: 142px;
    padding: 24px;
    border: 0;
    border-radius: 0;
    background: var(--surface);
}

.stat-card::after {
    width: 34px;
    height: 1px;
    right: 24px;
    bottom: 24px;
    border-radius: 0;
    background: #7d6268;
}

.stat-card--accent::after {
    background: var(--accent);
}

.stat-card--success::after {
    background: var(--green);
}

.stat-label {
    color: #b8acad;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.stat-card strong {
    margin: 14px 0 7px;
    color: #f4ebe6;
    font-size: 38px;
}

.panel {
    border-color: var(--line-soft);
    border-radius: 0;
    background: rgba(17, 13, 15, 0.94);
    box-shadow: none;
}

.panel-heading {
    padding: 26px 28px;
}

.panel-heading h2,
.aside-card h2 {
    margin: 6px 0;
    font-size: 21px;
    letter-spacing: 0;
}

.filters select,
.filters input,
.form-control,
.login-form input,
.filter-field input,
.filter-field select {
    border-color: var(--line);
    border-radius: 0;
    color: var(--text);
    background: #100c0e;
    font-weight: 300;
}

.filters input:focus,
.filters select:focus,
.form-control:focus,
.login-form input:focus {
    border-color: rgba(199, 165, 106, 0.82);
    box-shadow: 0 0 0 2px rgba(199, 165, 106, 0.14);
}

.button {
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.button--primary {
    border-color: #c7a56a;
    color: #17110a;
    background: #b9975f;
}

.button--primary:hover {
    background: #caaa72;
}

.button--secondary {
    background: #1d1518;
}

.button--danger {
    border-color: rgba(216, 102, 114, 0.5);
    color: #efb9be;
    background: rgba(111, 8, 36, 0.2);
}

.button--restore {
    border-color: rgba(119, 185, 154, 0.45);
    color: #a9d8c1;
    background: rgba(55, 107, 82, 0.14);
}

.task-table th {
    padding: 16px 18px;
    color: #897d7f;
    background: #0d0a0b;
    font-weight: 500;
    letter-spacing: 0.15em;
}

.task-table td {
    padding: 16px 18px;
    color: #d3c9c7;
}

.task-table tbody tr:hover {
    background: rgba(111, 8, 36, 0.12);
}

.product-thumb,
.row-arrow,
.status,
.irrelevant-badge {
    border-radius: 0;
}

.product-thumb {
    border-color: #33262a;
    background: #0d0a0b;
}

.task-number {
    font-size: 13px;
    font-weight: 500;
}

.status {
    padding: 7px 10px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status--new {
    border-color: rgba(157, 171, 200, 0.28);
    color: #c3cce0;
    background: rgba(77, 91, 121, 0.16);
}

.status--in_progress,
.status--filming_completed,
.status--editing {
    border-color: rgba(192, 82, 102, 0.34);
    color: #e0a5ae;
    background: rgba(111, 8, 36, 0.18);
}

.row-arrow:hover {
    border-color: rgba(199, 165, 106, 0.62);
}

.back-link {
    margin-bottom: 26px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.source-preview,
.image-placeholder,
.drop-zone,
.gallery-item,
.message,
.task-card,
.task-card__media,
.view-switcher,
.view-switcher__button,
.filter-drawer,
.readiness-filter,
.date-slider {
    border-radius: 0;
}

.source-preview,
.task-card__media,
.gallery-item > a {
    background: #0d0a0b;
}

.source-data > div,
.compact-data > div {
    border-color: var(--line-soft);
}

.source-data dt,
.compact-data dt,
.task-card__meta dt {
    color: #84787a;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.drop-zone {
    border-color: #463439;
    background: rgba(111, 8, 36, 0.05);
}

.drop-zone:hover {
    border-color: rgba(199, 165, 106, 0.65);
    background: rgba(111, 8, 36, 0.12);
}

.upload-icon {
    border-radius: 0;
    color: #17110a;
    background: #b9975f;
}

.timeline-item > i {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(111, 8, 36, 0.18);
}

.live-dot {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(119, 185, 154, 0.12);
}

.task-card {
    border-color: var(--line-soft);
    background: var(--surface);
    box-shadow: none;
}

.task-card:hover {
    border-color: rgba(199, 165, 106, 0.45);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.task-card__title {
    font-size: 20px;
    font-weight: 400;
}

.task-card__open {
    color: #d8c8c6;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.task-check input,
.form-checkbox {
    accent-color: #b9975f;
}

.work-check,
.readiness-filter {
    border-color: var(--line);
    border-radius: 0;
    background: #100c0e;
}

.work-check:hover,
.readiness-filter:hover,
.readiness-filter:has(input:checked) {
    border-color: rgba(199, 165, 106, 0.58);
    background: rgba(199, 165, 106, 0.07);
}

.filter-drawer__summary {
    background: #0e0a0c;
}

.view-switcher {
    padding: 0;
    border-color: var(--line);
    background: #0e0a0c;
}

.view-switcher__button {
    min-height: 38px;
    border-radius: 0;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.view-switcher__button--active {
    color: #17110a;
    background: #b9975f;
}

.filter-drawer__summary:hover,
.filter-drawer[open] .filter-drawer__summary {
    background: rgba(111, 8, 36, 0.12);
}

.filter-drawer__icon,
.filter-drawer__chevron,
.readiness-filter__mark {
    border-radius: 0;
}

.filter-drawer__icon,
.readiness-filter input:checked ~ .readiness-filter__mark {
    color: #17110a;
    background: #b9975f;
}

.readiness-filter input:focus-visible ~ .readiness-filter__mark {
    box-shadow: 0 0 0 2px rgba(111, 8, 36, 0.28);
}

.date-slider {
    background: #100c0e;
}

.date-slider__rail::before {
    background: linear-gradient(
        to right,
        #392a2e 0 var(--range-from),
        var(--accent) var(--range-from) var(--range-to),
        #392a2e var(--range-to) 100%
    );
}

.date-slider__rail input[type="range"]::-webkit-slider-thumb,
.date-slider__rail input[type="range"]::-moz-range-thumb {
    border-color: var(--accent);
    background: #130d0f;
}

.login-shell {
    border-color: #2e2024;
    border-radius: 0;
    background: #0e0a0c;
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.48);
}

.login-visual {
    background:
        linear-gradient(140deg, rgba(111, 8, 36, 0.68), rgba(10, 8, 9, 0.2) 58%),
        radial-gradient(circle at 75% 75%, rgba(199, 165, 106, 0.18), transparent 18rem),
        #100b0d;
}

.login-visual::before {
    border-color: rgba(199, 165, 106, 0.24);
    border-radius: 0;
    box-shadow:
        inset 0 0 0 50px rgba(111, 8, 36, 0.035),
        0 0 0 50px rgba(111, 8, 36, 0.025);
}

.login-copy h1 {
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
}

.film-strip {
    border-color: rgba(199, 165, 106, 0.28);
}

@media (max-width: 920px) {
    .sidebar {
        background: rgba(10, 7, 8, 0.99);
    }

    .mobile-header {
        border-bottom: 1px solid var(--line-soft);
        background: rgba(10, 8, 9, 0.96);
    }
}

@media (max-width: 600px) {
    .page-wrap {
        padding: 32px 16px 52px;
    }

    .page-heading,
    .detail-heading {
        padding-bottom: 22px;
    }

    .page-heading h1,
    .detail-heading h1 {
        font-size: 36px;
    }

    .stats-grid {
        gap: 1px;
    }

    .stat-card,
    .stat-card--accent,
    .stat-card--success {
        min-height: 122px;
        padding: 18px;
    }

    .panel-heading {
        padding: 20px 16px;
    }
}

/* Переключатель темы закреплён отдельно от содержимого, поэтому доступен
   и на экране входа, и внутри CRM. */
.theme-switch {
    position: fixed;
    z-index: 90;
    top: 18px;
    right: 22px;
    display: inline-flex;
    min-height: 34px;
    padding: 5px 8px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(17, 13, 15, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
    cursor: pointer;
}

.theme-switch:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.theme-switch__icon {
    width: 14px;
    color: #766b6b;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    transition: color 160ms;
}

.theme-switch__icon--moon {
    color: var(--accent);
}

.theme-switch__track {
    position: relative;
    width: 40px;
    height: 22px;
    flex: 0 0 auto;
    border: 1px solid #4a393d;
    border-radius: 999px;
    background: #20171a;
}

.theme-switch__track i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(18px);
    transition: transform 180ms ease, background 180ms ease;
}

.message-stack {
    top: 66px;
}

/* Светлая тема использует тёплые оттенки бумаги. Золото отвечает за активные
   элементы, а винный цвет сохраняет связь с тёмной версией интерфейса. */
html[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f1eb;
    --surface: #fffdf9;
    --surface-2: #f1ebe4;
    --surface-3: #e9e0d8;
    --line: #d8ccc4;
    --line-soft: #e8dfd8;
    --text: #201a1a;
    --muted: #776c6c;
    --accent: #9a7437;
    --accent-soft: rgba(154, 116, 55, 0.12);
    --blue: #52688f;
    --green: #39765a;
    --red: #a23f4a;
    --orange: #9a603d;
}

html[data-theme="light"] body {
    background:
        linear-gradient(118deg, rgba(111, 8, 36, 0.035), transparent 34rem),
        radial-gradient(circle at 100% 0%, rgba(199, 165, 106, 0.13), transparent 36rem),
        var(--bg);
}

html[data-theme="light"] .theme-switch {
    border-color: #d4c6bc;
    color: #4c4242;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 10px 30px rgba(63, 42, 35, 0.12);
}

html[data-theme="light"] .theme-switch__icon--sun {
    color: var(--accent);
}

html[data-theme="light"] .theme-switch__icon--moon {
    color: #a99e98;
}

html[data-theme="light"] .theme-switch__track {
    border-color: #cdbfb4;
    background: #e8dfd7;
}

html[data-theme="light"] .theme-switch__track i {
    transform: translateX(0);
}

html[data-theme="light"] .sidebar {
    border-right-color: #ded3cb;
    background: rgba(250, 247, 242, 0.97);
}

html[data-theme="light"] .brand-mark {
    border-color: rgba(154, 116, 55, 0.55);
    color: #704f1f;
    background: rgba(199, 165, 106, 0.1);
}

html[data-theme="light"] .brand small,
html[data-theme="light"] .nav-caption {
    color: #8b7f7d;
}

html[data-theme="light"] .nav-link {
    border-color: #e8dfd8;
    color: #5f5555;
}

html[data-theme="light"] .nav-link:hover {
    color: #201a1a;
    background: linear-gradient(90deg, rgba(154, 116, 55, 0.1), transparent);
}

html[data-theme="light"] .nav-link--active {
    border-color: rgba(154, 116, 55, 0.4);
    color: #641426;
    background: linear-gradient(90deg, rgba(199, 165, 106, 0.18), transparent);
}

html[data-theme="light"] .sidebar-note {
    background: rgba(199, 165, 106, 0.07);
}

html[data-theme="light"] .avatar,
html[data-theme="light"] .mini-avatar {
    border-color: rgba(111, 8, 36, 0.24);
    color: #fff7f3;
    background: #711126;
}

html[data-theme="light"] .icon-button {
    color: #746969;
    background: transparent;
}

html[data-theme="light"] .icon-button:hover {
    color: #641426;
    background: #eee6de;
}

html[data-theme="light"] .page-heading,
html[data-theme="light"] .detail-heading {
    border-color: #dfd4cc;
}

html[data-theme="light"] .page-heading p,
html[data-theme="light"] .detail-heading p,
html[data-theme="light"] .panel-heading p {
    color: #756a69;
}

html[data-theme="light"] .sync-badge,
html[data-theme="light"] .source-label {
    color: #625755;
    background: rgba(255, 253, 249, 0.7);
}

html[data-theme="light"] .stats-grid {
    border-color: #dfd4cc;
    background: #dfd4cc;
}

html[data-theme="light"] .stat-card,
html[data-theme="light"] .stat-card--accent,
html[data-theme="light"] .stat-card--success {
    background: var(--surface);
}

html[data-theme="light"] .stat-label {
    color: #716664;
}

html[data-theme="light"] .stat-card strong {
    color: #2a2221;
}

html[data-theme="light"] .stat-card small {
    color: #8a7e7b;
}

html[data-theme="light"] .panel {
    border-color: #dfd5cd;
    background: rgba(255, 253, 249, 0.96);
}

html[data-theme="light"] .filters select,
html[data-theme="light"] .filters input,
html[data-theme="light"] .form-control,
html[data-theme="light"] .login-form input,
html[data-theme="light"] .filter-field input,
html[data-theme="light"] .filter-field select {
    border-color: #d6c9c0;
    color: #251e1d;
    background: #fffdf9;
}

html[data-theme="light"] .filters input:focus,
html[data-theme="light"] .filters select:focus,
html[data-theme="light"] .form-control:focus,
html[data-theme="light"] .login-form input:focus {
    border-color: rgba(154, 116, 55, 0.75);
    box-shadow: 0 0 0 2px rgba(154, 116, 55, 0.12);
}

html[data-theme="light"] .button--secondary {
    color: #342b29;
    background: #f0e8e1;
}

html[data-theme="light"] .button--ghost {
    color: #6d6260;
    background: transparent;
}

html[data-theme="light"] .button--danger {
    color: #7b1f31;
    background: rgba(111, 8, 36, 0.06);
}

html[data-theme="light"] .button--restore {
    color: #285e45;
    background: rgba(57, 118, 90, 0.07);
}

html[data-theme="light"] .task-table th {
    color: #756967;
    background: #f2ece6;
}

html[data-theme="light"] .task-table td {
    color: #4c4240;
}

html[data-theme="light"] .task-table tbody tr:hover {
    background: rgba(199, 165, 106, 0.09);
}

html[data-theme="light"] .task-table td small {
    color: #8a7f7c;
}

html[data-theme="light"] .product-thumb,
html[data-theme="light"] .source-preview,
html[data-theme="light"] .image-placeholder,
html[data-theme="light"] .task-card__media,
html[data-theme="light"] .gallery-item > a {
    border-color: #ddd2c9;
    color: #9a835d;
    background: #f2ece6;
}

html[data-theme="light"] .row-arrow {
    color: #6e6260;
    background: #fffdf9;
}

html[data-theme="light"] .status--new {
    border-color: rgba(82, 104, 143, 0.24);
    color: #40577d;
    background: #edf1f7;
}

html[data-theme="light"] .status--in_progress,
html[data-theme="light"] .status--filming_completed,
html[data-theme="light"] .status--editing {
    border-color: rgba(111, 8, 36, 0.2);
    color: #741c2f;
    background: rgba(111, 8, 36, 0.06);
}

html[data-theme="light"] .status--completed {
    border-color: rgba(57, 118, 90, 0.22);
    color: #286347;
    background: rgba(57, 118, 90, 0.08);
}

html[data-theme="light"] .status--cancelled {
    border-color: #d8cfca;
    color: #706663;
    background: #eee9e5;
}

html[data-theme="light"] .empty-state > span,
html[data-theme="light"] .empty-history span {
    color: #a58b60;
}

html[data-theme="light"] .empty-state h3,
html[data-theme="light"] .pagination a,
html[data-theme="light"] .task-card__open {
    color: #403634;
}

html[data-theme="light"] .source-data dt,
html[data-theme="light"] .compact-data dt,
html[data-theme="light"] .task-card__meta dt {
    color: #817572;
}

html[data-theme="light"] .source-data dd,
html[data-theme="light"] .compact-data dd,
html[data-theme="light"] .task-card__meta dd {
    color: #342c2a;
}

html[data-theme="light"] .drop-zone {
    border-color: #cfc0b5;
    background: rgba(199, 165, 106, 0.05);
}

html[data-theme="light"] .drop-zone:hover {
    background: rgba(199, 165, 106, 0.11);
}

html[data-theme="light"] .gallery-item {
    border-color: #ddd2c9;
    background: #fffdf9;
}

html[data-theme="light"] .timeline-item span,
html[data-theme="light"] .timeline-item small {
    color: #796e6b;
}

html[data-theme="light"] .message {
    color: #342b29;
    background: #fffdf9;
    box-shadow: 0 14px 40px rgba(63, 42, 35, 0.14);
}

html[data-theme="light"] .task-card {
    border-color: #dfd5cd;
    background: #fffdf9;
}

html[data-theme="light"] .task-card:hover {
    box-shadow: 0 20px 45px rgba(63, 42, 35, 0.12);
}

html[data-theme="light"] .task-checks--card {
    background: #f4eee8;
}

html[data-theme="light"] .work-check,
html[data-theme="light"] .readiness-filter,
html[data-theme="light"] .date-slider {
    border-color: #d8ccc4;
    color: #3d3331 !important;
    background: #fffdf9;
}

html[data-theme="light"] .work-check:hover,
html[data-theme="light"] .readiness-filter:hover,
html[data-theme="light"] .readiness-filter:has(input:checked) {
    background: rgba(199, 165, 106, 0.09);
}

html[data-theme="light"] .readiness-filter strong {
    color: #3d3331;
}

html[data-theme="light"] .readiness-filter__mark {
    border-color: #cfc1b7;
    background: #f1eae3;
}

html[data-theme="light"] .filter-drawer,
html[data-theme="light"] .filter-drawer__summary,
html[data-theme="light"] .view-switcher {
    background: #f7f1eb;
}

html[data-theme="light"] .filter-drawer__summary:hover,
html[data-theme="light"] .filter-drawer[open] .filter-drawer__summary {
    background: rgba(199, 165, 106, 0.1);
}

html[data-theme="light"] .filter-drawer__chevron {
    color: #766a67;
    background: #fffdf9;
}

html[data-theme="light"] .filters--drawer,
html[data-theme="light"] .filter-actions {
    background: rgba(239, 231, 223, 0.45);
}

html[data-theme="light"] .date-slider__rail::before {
    background: linear-gradient(
        to right,
        #d8ccc4 0 var(--range-from),
        var(--accent) var(--range-from) var(--range-to),
        #d8ccc4 var(--range-to) 100%
    );
}

html[data-theme="light"] .date-slider__rail input[type="range"]::-webkit-slider-thumb,
html[data-theme="light"] .date-slider__rail input[type="range"]::-moz-range-thumb {
    background: #fffdf9;
}

html[data-theme="light"] .login-shell {
    border-color: #d8ccc4;
    background: #fffdf9;
    box-shadow: 0 34px 100px rgba(63, 42, 35, 0.16);
}

html[data-theme="light"] .login-form-wrap {
    background: #fffdf9;
}

html[data-theme="light"] .login-visual {
    color: #f8f1eb;
    background:
        linear-gradient(140deg, rgba(111, 8, 36, 0.86), rgba(25, 10, 14, 0.7) 62%),
        radial-gradient(circle at 75% 75%, rgba(199, 165, 106, 0.28), transparent 18rem),
        #2a0c14;
}

html[data-theme="light"] .login-visual .brand small,
html[data-theme="light"] .login-copy p {
    color: #d8cac7;
}

html[data-theme="light"] .form-alert {
    color: #7b1f31;
    background: rgba(111, 8, 36, 0.05);
}

html[data-theme="light"] .mobile-header {
    border-color: #ded3cb;
    background: rgba(250, 247, 242, 0.97);
}

@media (max-width: 600px) {
    .theme-switch {
        top: 8px;
        right: 12px;
    }

    .message-stack {
        top: 58px;
    }
}

/* Минималистичная страница авторизации с фирменным знаком Augusta. */
.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 18%, rgba(111, 8, 36, 0.22), transparent 30rem),
        #0a0809;
}

.auth-login {
    display: grid;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(54px, 10vh, 104px) 20px 48px;
    place-items: start center;
}

.auth-login__panel {
    display: flex;
    width: min(430px, 100%);
    padding: 16px 24px 28px;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.auth-login__logo {
    display: block;
    width: clamp(112px, 12vw, 142px);
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(199, 165, 106, 0.12));
}

.auth-login__title {
    margin: 28px 0 24px;
    color: var(--text);
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(20px, 3vw, 25px);
    font-weight: 400;
    letter-spacing: 0.045em;
    line-height: 1.25;
}

.auth-login__form {
    display: grid;
    width: min(330px, 100%);
    gap: 15px;
}


.auth-login__input {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid #3a2c30;
    border-radius: 0;
    outline: none;
    color: var(--text);
    background: #171114;
    font-size: 14px;
    font-weight: 300;
    transition: border-color 160ms, box-shadow 160ms, background 160ms;
}

.auth-login__input::placeholder {
    color: #95898a;
    opacity: 1;
}

.auth-login__input:focus {
    border-color: rgba(199, 165, 106, 0.88);
    background: #1c1417;
    box-shadow: 0 0 0 3px rgba(199, 165, 106, 0.12);
}

.auth-login__submit {
    width: min(194px, 72%);
    min-height: 49px;
    margin: 25px auto 0;
    padding: 11px 24px;
    border: 1px solid rgba(199, 165, 106, 0.55);
    border-radius: 0;
    color: #f4dfb8;
    background: #6f0824;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    transition: transform 160ms, border-color 160ms, background 160ms;
}

.auth-login__submit:hover {
    border-color: #c7a56a;
    background: #85102f;
    transform: translateY(-1px);
}

.auth-login__submit:focus-visible {
    outline: 2px solid #c7a56a;
    outline-offset: 3px;
}

.auth-login__alert {
    padding: 10px 12px;
    border: 1px solid rgba(216, 102, 114, 0.45);
    color: #efb9be;
    background: rgba(111, 8, 36, 0.18);
    font-size: 12px;
    line-height: 1.4;
}

html[data-theme="light"] .auth-body {
    background:
        radial-gradient(circle at 50% 16%, rgba(199, 165, 106, 0.08), transparent 29rem),
        #fbfaf8;
}

html[data-theme="light"] .auth-login__title {
    color: #25201f;
}

html[data-theme="light"] .auth-login__input {
    border-color: #ddd5ce;
    color: #2e2827;
    background: #ebe7e3;
}

html[data-theme="light"] .auth-login__input::placeholder {
    color: #6d6562;
}

html[data-theme="light"] .auth-login__input:focus {
    border-color: rgba(154, 116, 55, 0.78);
    background: #f2efec;
    box-shadow: 0 0 0 3px rgba(154, 116, 55, 0.1);
}

html[data-theme="light"] .auth-login__submit {
    border-color: #6f0824;
    color: #ffffff;
    background: #6f0824;
}

html[data-theme="light"] .auth-login__submit:hover {
    border-color: #871332;
    background: #871332;
}

html[data-theme="light"] .auth-login__alert {
    border-color: rgba(111, 8, 36, 0.25);
    color: #7b1f31;
    background: rgba(111, 8, 36, 0.06);
}

@media (max-width: 600px) {
    .auth-login {
        padding-top: 72px;
    }

    .auth-login__panel {
        padding-inline: 0;
    }

    .auth-login__logo {
        width: 106px;
    }

    .auth-login__title {
        margin-top: 22px;
        font-size: 19px;
    }
}
