:root {
    --bg: #f4f6f9;
    --panel: #ffffff;
    --text: #152033;
    --muted: #6b7280;
    --blue: #16345f;
    --blue2: #214a85;
    --border: #d8dee9;
    --red: #c0392b;
    --yellow: #b7791f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #10233f, #25558f);
}

.login-card {
    width: min(420px, calc(100% - 32px));
    background: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.login-logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--blue);
    color: white;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 18px;
}

h1 {
    margin: 0 0 8px;
}

p {
    color: var(--muted);
}

label {
    display: block;
    margin-top: 18px;
    margin-bottom: 7px;
    font-weight: 700;
}

input, select, textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
}

button {
    border: 0;
    padding: 12px 16px;
    background: var(--blue);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.login-card button {
    margin-top: 22px;
    width: 100%;
    font-size: 16px;
}

.secondary {
    background: #e8edf5;
    color: var(--blue);
}

.error-box {
    background: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f5b5b5;
    padding: 12px;
    border-radius: 10px;
    margin-top: 18px;
}

.topbar {
    height: 64px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.topbar span {
    color: var(--muted);
    margin-left: 12px;
}

.layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.sidebar {
    width: 230px;
    background: #132844;
    padding: 18px;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.sidebar a:hover {
    background: rgba(255,255,255,.12);
}

.content {
    flex: 1;
    padding: 28px;
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}

.card span {
    display: block;
    color: var(--muted);
    margin-bottom: 12px;
}

.card strong {
    font-size: 38px;
}

.card.red strong {
    color: var(--red);
}

.card.yellow strong {
    color: var(--yellow);
}

.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

@media (max-width: 800px) {
    .layout {
        display: block;
    }

    .sidebar {
        width: auto;
        display: flex;
        overflow-x: auto;
    }

    .sidebar a {
        white-space: nowrap;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px 18px;
}

.grid-form .full {
    grid-column: 1 / -1;
}

textarea {
    resize: vertical;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

tr.inactive {
    opacity: .58;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge.green {
    background: #e6f6eb;
    color: #17633a;
}

.badge.gray {
    background: #edf0f5;
    color: #526071;
}

.empty {
    color: var(--muted);
    text-align: center;
    padding: 24px;
}

@media (max-width: 800px) {
    .grid-form {
        grid-template-columns: 1fr;
    }
}

.badge.blue {
    background: #e6eefb;
    color: #1d4f91;
}

.badge.yellow {
    background: #fff4d8;
    color: #8a5a00;
}

.mt-small {
    margin-top: 8px;
}

.hint {
    margin-top: 16px;
    background: #fff8e6;
    color: #7a5400;
    border: 1px solid #f0d48a;
    padding: 12px 14px;
    border-radius: 10px;
}

.badge.red {
    background: #fde8e8;
    color: #9b1c1c;
}

.month-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button-link {
    display: inline-block;
    text-decoration: none;
    background: var(--blue);
    color: white;
    padding: 11px 14px;
    border-radius: 10px;
    font-weight: 700;
}

.button-link.secondary {
    background: #e8edf5;
    color: var(--blue);
}

.compact-cards {
    grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.compact-cards .card {
    padding: 14px;
}

.compact-cards .card strong {
    font-size: 28px;
}

.planner-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.excel-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    max-height: 72vh;
    background: white;
}

.excel-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1200px;
    font-size: 13px;
}

.excel-table th,
.excel-table td {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 6px;
}

.excel-table th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #f8fafc;
    text-align: center;
    min-width: 62px;
}

.excel-table th.today {
    background: #dbeafe;
}

.excel-table th.weekend {
    background: #f3f4f6;
}

.sticky-person {
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 210px;
    max-width: 210px;
    background: white;
}

.excel-table th.sticky-person {
    z-index: 6;
    background: #f8fafc;
    text-align: left;
}

.person-cell strong {
    display: block;
}

.person-cell span {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

.day-num {
    font-weight: 800;
    font-size: 15px;
}

.day-week {
    color: var(--muted);
    font-size: 11px;
}

.plan-cell {
    min-width: 62px;
    height: 54px;
    vertical-align: top;
    background: #fff;
}

.cell-pill {
    display: block;
    padding: 3px 5px;
    border-radius: 6px;
    margin-bottom: 3px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cell-pill.day {
    background: #fff4d8;
    color: #8a5a00;
}

.cell-pill.night {
    background: #dbeafe;
    color: #1d4f91;
}

.cell-pill.sick {
    background: #fde8e8;
    color: #9b1c1c;
}

.cell-pill.vacation {
    background: #e6f6eb;
    color: #17633a;
}

.cell-pill.other {
    background: #edf0f5;
    color: #526071;
}

@media (max-width: 1100px) {
    .compact-cards {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .planner-head {
        display: block;
    }
}

.clickable-cell {
    cursor: pointer;
}

.clickable-cell:hover {
    outline: 2px solid #214a85;
    outline-offset: -2px;
    background: #f8fbff;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.modal-card {
    width: min(900px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: white;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
    padding: 22px;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.modal-head h2 {
    margin: 0 0 6px;
}

.modal-section {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-top: 16px;
    background: #fbfcfe;
}

.modal-section h3 {
    margin-top: 0;
}

.existing-assignment {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.assignment-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.assignment-title span {
    color: var(--muted);
    font-weight: 700;
}

.tight-form {
    gap: 10px 12px;
}

.assignment-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.small-empty {
    padding: 12px;
}

@media (max-width: 800px) {
    .modal-backdrop {
        padding: 10px;
    }

    .modal-card {
        max-height: 94vh;
        padding: 16px;
    }

    .modal-head {
        display: block;
    }
}

.modal-backdrop[hidden] {
    display: none !important;
}

.drag-selected {
    background: #dbeafe !important;
    outline: 2px solid #214a85;
    outline-offset: -2px;
}

.excel-table,
.excel-table * {
    user-select: none;
}

.filter-sticky {
    position: sticky;
    top: 0;
    z-index: 30;
    margin-bottom: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.range-filter-form {
    display: grid;
    grid-template-columns: 180px 180px auto;
    gap: 12px 16px;
    align-items: end;
}

.range-filter-form label {
    margin-top: 0;
}

.range-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.quick-range-links {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-range-links a {
    text-decoration: none;
    background: #eef3fb;
    color: var(--blue);
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.quick-range-links a:hover {
    background: #dbeafe;
}

.range-info {
    margin-top: 12px;
    color: var(--muted);
}

.excel-table th {
    top: 0;
}

.excel-table th.today {
    background: #bfdbfe;
}

.excel-table th.weekend {
    background: #f1f5f9;
}

.day-month {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.excel-table th.weekend .day-month,
.excel-table th.weekend .day-week {
    color: #64748b;
}

.excel-table th.today .day-month,
.excel-table th.today .day-week {
    color: #1d4f91;
}

.excel-table th:nth-child(1),
.excel-table td:nth-child(1) {
    box-shadow: 5px 0 12px rgba(15, 23, 42, .08);
}

@media (max-width: 900px) {
    .range-filter-form {
        grid-template-columns: 1fr;
    }

    .range-actions {
        align-items: stretch;
    }

    .range-actions button,
    .range-actions .button-link {
        width: 100%;
        text-align: center;
    }
}

/* Tabelle nur innen scrollen lassen */
.excel-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 68vh;
    position: relative;
}

/* Tabelle darf breiter sein als der Bildschirm */
.excel-table {
    width: max-content;
    min-width: max-content;
}

/* Personenspalte bleibt links stehen */
.excel-table .sticky-person,
.excel-table th.sticky-person,
.excel-table td.sticky-person {
    position: sticky;
    left: 0;
    z-index: 20;
    background: #ffffff;
}

/* Kopf links über allem */
.excel-table th.sticky-person {
    z-index: 40;
    background: #f8fafc;
}

/* Tageskopf bleibt oben sichtbar, wenn innerhalb der Tabelle vertikal gescrollt wird */
.excel-table thead th {
    position: sticky;
    top: 0;
    z-index: 30;
}

/* Schnittstelle oben links sauber halten */
.excel-table thead th.sticky-person {
    z-index: 50;
}

/* Tageszellen behalten feste Breite */
.excel-table th:not(.sticky-person),
.excel-table td.plan-cell {
    min-width: 112px;
    max-width: 112px;
}

/* Personenspalte etwas breiter und lesbar */
.excel-table .sticky-person {
    min-width: 260px;
    max-width: 260px;
}

/* Browser-Seite soll nicht wegen der breiten Tabelle horizontal scrollen */
.content {
    overflow-x: hidden;
}

/* Scrollbar in der Tabelle deutlicher sichtbar */
.excel-wrap::-webkit-scrollbar {
    height: 14px;
    width: 14px;
}

.excel-wrap::-webkit-scrollbar-thumb {
    background: #9aa8bd;
    border-radius: 999px;
}

.excel-wrap::-webkit-scrollbar-track {
    background: #e8edf5;
    border-radius: 999px;
}

/* Top-Navigation statt linker Sidebar */
.topnav-bar {
    height: auto;
    min-height: 66px;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 22px;
}

.brand-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-shrink: 0;
}

.brand-block strong {
    white-space: nowrap;
}

.brand-block span {
    color: var(--muted);
    white-space: nowrap;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
    padding: 4px 0;
}

.topnav a {
    display: inline-block;
    color: var(--blue);
    text-decoration: none;
    background: #eef3fb;
    padding: 9px 11px;
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
    font-size: 14px;
}

.topnav a:hover {
    background: #dbeafe;
}

.content-wide {
    padding: 22px;
    width: 100%;
    max-width: none;
    overflow-x: hidden;
}

/* Alte Sidebar/Layout-Regeln neutralisieren */
.layout {
    display: block;
    min-height: auto;
}

.sidebar {
    display: none;
}

/* Dashboard-Tabelle bekommt mehr Raum */
.excel-wrap {
    max-height: 72vh;
}

@media (max-width: 900px) {
    .topnav-bar {
        align-items: flex-start;
    }

    .brand-block {
        width: 100%;
    }

    .topnav {
        order: 3;
        width: 100%;
    }
}

.inline-edit-grid {
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) minmax(130px, .8fr) minmax(100px, .7fr) 90px minmax(180px, 1.2fr) auto;
    gap: 8px;
    align-items: center;
}

.inline-edit-grid input,
.inline-edit-grid select {
    padding: 9px 10px;
    font-size: 14px;
}

code {
    background: #eef3fb;
    color: var(--blue);
    padding: 4px 7px;
    border-radius: 7px;
    font-weight: 700;
}

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

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.admin-tabs a {
    text-decoration: none;
    background: #eef3fb;
    color: var(--blue);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
}

.admin-tabs a.active {
    background: var(--blue);
    color: #ffffff;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.section-head h2 {
    margin-bottom: 4px;
}

.modal-card-small {
    max-width: 760px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 800;
}

.small {
    font-size: 12px;
}

.compact-status-edit {
    grid-template-columns: minmax(150px, 1fr) 150px 120px 90px minmax(160px, 1fr) auto;
}

.modal-backdrop[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

.no-code-status-edit {
    grid-template-columns: minmax(180px, 1fr) 160px 130px 95px minmax(220px, 1fr) auto;
}

.status-action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

button.danger,
.danger {
    background: #b91c1c;
    color: #ffffff;
    border: 0;
}

button.danger:hover,
.danger:hover {
    background: #991b1b;
}

.danger-box {
    background: #fef2f2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .no-code-status-edit {
        grid-template-columns: 1fr;
    }
}

/* Heutigen Tag in der Planung leicht hellgrün markieren */
.excel-table th.today {
    background: #dcfce7 !important;
}

.excel-table td.today,
.excel-table td.plan-cell.today {
    background: #f0fdf4 !important;
}

.excel-table td.today:hover,
.excel-table td.plan-cell.today:hover {
    background: #dcfce7 !important;
}

/* Heute-Spalte als grüner Balken durch die komplette Planung */
.excel-table tbody td.plan-cell.today {
    background: #f0fdf4 !important;
}

.excel-table tbody td.plan-cell.today:hover {
    background: #dcfce7 !important;
}

.excel-table tbody td.plan-cell.today .cell-pill {
    box-shadow: 0 0 0 1px rgba(22, 101, 52, .12);
}

.dashboard-person-filter-form {
    grid-template-columns: 160px 160px minmax(320px, 1fr) auto;
}

.dashboard-person-filter-form input[list] {
    min-height: 56px;
}

.active-filter-chip.neutral {
    background: #eef3fb;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .dashboard-person-filter-form {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .dashboard-person-filter-form .range-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .dashboard-person-filter-form {
        grid-template-columns: 1fr;
    }
}

/* Kompakter Dashboard-Filter mit suchbaren Person- und Projektfeldern */
.dashboard-search-filter-form {
    grid-template-columns: 145px 145px 260px 280px auto;
    align-items: end;
}

.dashboard-search-filter-form input[list] {
    min-height: 52px;
}

.dashboard-search-filter-form .range-actions {
    align-self: end;
}

@media (max-width: 1300px) {
    .dashboard-search-filter-form {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .dashboard-search-filter-form .range-actions,
    .dashboard-search-filter-form .quick-range-links {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .dashboard-search-filter-form {
        grid-template-columns: 1fr;
    }
}

/* Dashboard-Filter: Datum links, Person/Projekt rechts untereinander */
.dashboard-filter-layout {
    display: grid;
    grid-template-columns: auto minmax(280px, 380px);
    gap: 12px 22px;
    align-items: start;
}

.filter-date-row {
    display: grid;
    grid-template-columns: 180px 180px;
    gap: 14px;
    align-items: end;
}

.filter-search-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-self: end;
    width: 100%;
    max-width: 380px;
}

.filter-search-stack input[list] {
    min-height: 50px;
}

.filter-quick-links {
    grid-column: 1 / 2;
    align-self: end;
}

.filter-clear-row {
    grid-column: 2 / 3;
    justify-self: end;
    align-self: end;
}

.clear-filter-button {
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .dashboard-filter-layout {
        grid-template-columns: 1fr;
    }

    .filter-date-row {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .filter-search-stack {
        justify-self: stretch;
        max-width: none;
    }

    .filter-quick-links,
    .filter-clear-row {
        grid-column: 1 / -1;
    }

    .filter-clear-row {
        justify-self: stretch;
    }

    .clear-filter-button {
        display: block;
        text-align: center;
    }
}

@media (max-width: 650px) {
    .filter-date-row {
        grid-template-columns: 1fr;
    }
}

/* Filter kompakter: Zeitraum links zusammen, Person/Projekt rechts */
.dashboard-filter-layout {
    grid-template-columns: minmax(420px, 1fr) minmax(320px, 480px) !important;
    gap: 16px 28px !important;
    align-items: start !important;
}

.filter-date-row {
    grid-column: 1 / 2;
    align-self: start;
}

.filter-quick-links {
    grid-column: 1 / 2 !important;
    margin-top: -4px;
    align-self: start;
}

.filter-search-stack {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    justify-self: end;
    width: 100%;
    max-width: 480px;
}

.filter-clear-row {
    grid-column: 2 / 3 !important;
    justify-self: end;
    align-self: end;
    margin-top: 2px;
}

.range-info {
    margin-top: 10px;
}

/* Schnellbuttons etwas kompakter */
.quick-range-links a {
    padding: 8px 11px;
}

/* Filterbox nicht unnötig hoch wirken lassen */
.filter-sticky {
    padding-bottom: 18px;
}

@media (max-width: 1000px) {
    .dashboard-filter-layout {
        grid-template-columns: 1fr !important;
    }

    .filter-date-row,
    .filter-quick-links,
    .filter-search-stack,
    .filter-clear-row {
        grid-column: 1 / -1 !important;
        grid-row: auto;
    }

    .filter-search-stack {
        justify-self: stretch;
        max-width: none;
    }
}

.sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.sub-tabs button {
    background: #eef3fb;
    color: var(--blue);
    border: 0;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
}

.sub-tabs button.active {
    background: var(--blue);
    color: #ffffff;
}

.qualification-edit-grid {
    grid-template-columns: minmax(220px, 1fr) 120px 100px minmax(240px, 1fr) auto;
}

.master-tab-panel[hidden] {
    display: none !important;
}

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

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.checkbox-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eef3fb;
    border: 1px solid #d8e1ef;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    color: var(--blue);
}

.checkbox-pill input {
    width: auto;
    min-height: auto;
}

.qualification-line {
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
}

.modal-card-small {
    max-width: 820px;
}

/* Qualifikationen unter Namen im Dashboard */
.person-qualifications {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
}

.field-hint {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.inline-sort-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.inline-sort-form input {
    width: 70px;
    min-height: 42px;
    padding: 8px 9px;
    font-weight: 800;
}

.small-button {
    padding: 9px 11px;
    min-height: 42px;
}

.range-choice-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.range-choice-buttons button {
    min-width: 180px;
}
