:root {
    --color-primary: #2f6fed;
    --color-primary-dark: #1f52c4;
    --color-bg: #f4f6fb;
    --color-border: #e1e5ec;
    --color-text: #1c232b;
    --color-muted: #6b7280;
    --color-danger: #e5484d;
    --color-success: #17c964;
    --color-warning: #f5a524;
    --sidebar-bg: #0f1b33;
    --sidebar-bg-active: #17284a;
    --sidebar-text: #aab4cc;
    --sidebar-text-active: #ffffff;
    --sidebar-width: 240px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

a {
    color: var(--color-primary);
}

/* Sidebar */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.75rem;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem 1.5rem;
    letter-spacing: 0.01em;
}

.sidebar__logo {
    font-size: 1.2rem;
}

.sidebar__brand-accent {
    color: var(--color-primary);
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.sidebar__section-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: #5a6786;
    padding: 1rem 0.75rem 0.3rem;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.sidebar__link:hover {
    background: var(--sidebar-bg-active);
    color: var(--sidebar-text-active);
}

.sidebar__link.active {
    background: var(--color-primary);
    color: #fff;
}

.sidebar__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    margin-top: 1rem;
}

.sidebar__user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.75rem 0.75rem;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sidebar__user-name {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}

.sidebar__user-role {
    color: var(--sidebar-text);
    font-size: 0.78rem;
}

.sidebar__logout {
    width: 100%;
    background: var(--sidebar-bg-active);
    color: var(--sidebar-text-active);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
}

.sidebar__logout:hover {
    background: var(--color-danger);
}

/* App area */

.app-area {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.no-sidebar .app-area {
    margin-left: 0;
}

.content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.content--centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.8rem;
    padding: 1.5rem 0;
}

.auth-card {
    max-width: 360px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

/* Forms */

.form-field {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-field label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #333c48;
}

input, select, textarea {
    font-size: 0.95rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    width: 100%;
    font-family: inherit;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

.btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}

.field-hint {
    color: var(--color-muted);
    font-size: 0.82rem;
    margin: 0;
}

.field-error, .form-errors {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin: 0;
    padding-left: 1rem;
}

.messages {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.message--success {
    background: #e2f9ec;
    color: #0e9448;
}

.message--error {
    background: #fdeaea;
    color: var(--color-danger);
}

/* Tables */

table.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

table.data-table th, table.data-table td {
    border-bottom: 1px solid var(--color-border);
    padding: 0.7rem 1rem;
    text-align: left;
    font-size: 0.92rem;
}

table.data-table th {
    background: #f8f9fc;
    color: var(--color-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

table.data-table tfoot td {
    border-top: 2px solid var(--color-border);
    border-bottom: none;
    background: #f8f9fc;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h1, .page-header h2 {
    margin: 0;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.search-form input {
    flex: 1;
}

.pagination {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.detail-list {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 180px 1fr;
    row-gap: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.detail-list dt {
    font-weight: 600;
    color: var(--color-muted);
    font-size: 0.88rem;
}

.detail-list dd {
    margin: 0;
}

.record-form {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 600px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #e3e7eb;
    color: #44505c;
}

.badge--new {
    background: #e4edfd;
    color: var(--color-primary-dark);
}

.badge--in_progress {
    background: #fdf1da;
    color: #9a6a00;
}

.badge--on_hold {
    background: #fdeaea;
    color: var(--color-danger);
}

.badge--completed {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--draft {
    background: #e3e7eb;
    color: #44505c;
}

.badge--final {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--sent {
    background: #fdf1da;
    color: #9a6a00;
}

.badge--accepted {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--rejected {
    background: #fdeaea;
    color: var(--color-danger);
}

.badge--closed {
    background: #e3e7eb;
    color: #44505c;
}

.badge--pending {
    background: #fdf1da;
    color: #9a6a00;
}

.badge--received {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--declined {
    background: #fdeaea;
    color: var(--color-danger);
}

.badge--pass {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--fail {
    background: #fdeaea;
    color: var(--color-danger);
}

.badge--na {
    background: #e3e7eb;
    color: #44505c;
}

.badge--done {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--low {
    background: #e3e7eb;
    color: #44505c;
}

.badge--normal {
    background: #e4edfd;
    color: var(--color-primary-dark);
}

.badge--high {
    background: #fdf1da;
    color: #9a6a00;
}

.badge--urgent {
    background: #fdeaea;
    color: var(--color-danger);
    font-weight: 700;
}

.badge--issued {
    background: #e4edfd;
    color: var(--color-primary-dark);
}

.badge--paid {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--cancelled {
    background: #e3e7eb;
    color: #44505c;
}

.quick-actions--row {
    flex-direction: row;
    flex-wrap: wrap;
}

.quick-actions--row form {
    display: inline;
}

/* Dashboard */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stat-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef3fe;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card__icon svg {
    width: 20px;
    height: 20px;
}

.stat-card__label {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0 0 0.25rem;
}

.stat-card__value {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

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

.panel {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    margin-bottom: 1.5rem;
}

.panel h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.quick-actions .btn {
    text-align: center;
}

.donut-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.donut {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
}

.donut-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.donut-legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donut-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.empty-state {
    color: var(--color-muted);
    font-size: 0.92rem;
}

/* Calendar */

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.calendar-nav h2 {
    margin: 0;
    min-width: 220px;
    text-align: center;
    font-size: 1.15rem;
}

table.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    table-layout: fixed;
}

table.calendar-table th {
    background: #f8f9fc;
    color: var(--color-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.6rem;
    text-align: center;
}

td.calendar-day {
    vertical-align: top;
    border: 1px solid var(--color-border);
    padding: 0.4rem;
    height: 110px;
    width: 14.28%;
}

td.calendar-day--muted {
    background: #fafbfc;
    color: var(--color-muted);
}

td.calendar-day--today {
    background: #eef3fe;
}

.calendar-day__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.calendar-day__header a {
    text-decoration: none;
    color: inherit;
}

.calendar-day__add {
    color: var(--color-primary) !important;
    font-weight: 700;
    padding: 0 0.3rem;
}

.calendar-event {
    display: block;
    font-size: 0.72rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    background: #e4edfd;
    color: var(--color-primary-dark);
}

.calendar-event--measurement {
    background: #fdf1da;
    color: #9a6a00;
}

.calendar-event--visit {
    background: #e3e7eb;
    color: #44505c;
}

.calendar-event--other {
    background: #f1e4fd;
    color: #7c3aed;
}

.calendar-day__more {
    display: block;
    font-size: 0.72rem;
    color: var(--color-muted);
}

.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
}

.calc-tab {
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: none;
    background: transparent;
}

.calc-tab:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.calc-tab--active {
    background: var(--color-primary);
    color: #fff;
}

/* ===================== Strony publiczne (wizytówka) ===================== */

body.public {
    background: #fff;
}

.public-main {
    min-height: 60vh;
}

/* Nagłówek */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
}

.site-logo__mark {
    color: var(--color-warning);
}

.site-logo__accent {
    color: var(--color-primary);
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    margin-right: auto;
}

.site-nav a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--color-text);
}

.site-header__actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.btn-ghost {
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-lg {
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
}

/* Hero */

.hero {
    background: linear-gradient(160deg, #0f1b33 0%, #17284a 60%, #1f3566 100%);
    color: #fff;
    padding: 4.5rem 1.5rem 5rem;
}

.hero__inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    background: rgba(47, 111, 237, 0.2);
    border: 1px solid rgba(47, 111, 237, 0.5);
    color: #bdd3ff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: 2.9rem;
    line-height: 1.12;
    margin: 0 0 1.1rem;
    letter-spacing: -0.02em;
}

.hero__lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #c2cce0;
    margin: 0 0 1.8rem;
    max-width: 34rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero .btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.hero__note {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: #8e9cba;
}

.hero__card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.hero__card-head {
    background: #f4f6fb;
    border-bottom: 1px solid var(--color-border);
    padding: 0.7rem 1rem;
    display: flex;
    gap: 0.4rem;
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d3d9e4;
}

.hero__card-body {
    padding: 1.4rem;
}

.hero__stat {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.hero__stat strong {
    font-size: 1.5rem;
    color: var(--color-primary);
    min-width: 2.2rem;
}

.hero__stat span {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.hero__bar {
    height: 8px;
    background: #eef1f7;
    border-radius: 999px;
    margin-top: 0.6rem;
    overflow: hidden;
}

.hero__bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #5b9bff);
    border-radius: 999px;
}

/* Sekcje */

.section {
    padding: 4.5rem 1.5rem;
}

.section--top {
    padding-top: 3rem;
}

.section--alt {
    background: var(--color-bg);
}

.section__inner {
    max-width: 1160px;
    margin: 0 auto;
}

.section__inner.narrow {
    max-width: 560px;
}

.section__title {
    font-size: 2rem;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 0 0.8rem;
}

.section__title--left {
    text-align: left;
}

.section__lead {
    text-align: center;
    color: var(--color-muted);
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 44rem;
    margin: 0 auto 2.8rem;
}

.section__lead--left {
    text-align: left;
    margin-left: 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Funkcje */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.1rem;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.4rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
}

.feature-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Kroki */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.step h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.step p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Lista z ptaszkami */

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.check-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(23, 201, 100, 0.15);
    color: var(--color-success);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Makieta telefonu */

.phone-mock {
    justify-self: center;
    width: 260px;
    border: 10px solid #0f1b33;
    border-radius: 32px;
    background: #0f1b33;
    box-shadow: 0 20px 50px rgba(15, 27, 51, 0.25);
}

.phone-mock__screen {
    background: var(--color-bg);
    border-radius: 22px;
    padding: 1.2rem 0.9rem;
}

.phone-mock__row {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.phone-mock__row span {
    font-size: 0.85rem;
    font-weight: 600;
}

.phone-mock__row em {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--color-primary);
}

/* Cennik */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 1.3rem;
    align-items: start;
}

.plan-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.plan-card--featured {
    border-color: var(--color-primary);
    box-shadow: 0 12px 34px rgba(47, 111, 237, 0.16);
}

.plan-card__tag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-card__name {
    margin: 0 0 0.3rem;
    font-size: 1.25rem;
}

.plan-card__desc {
    margin: 0 0 1.1rem;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    min-height: 2.6rem;
}

.plan-card__price {
    margin: 0 0 0.3rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.plan-card__price strong {
    font-size: 2.1rem;
    letter-spacing: -0.02em;
}

.plan-card__price span {
    color: var(--color-muted);
    font-size: 0.82rem;
}

.plan-card__users {
    margin: 0 0 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.plan-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    flex: 1;
}

.plan-card__features li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
    font-size: 0.88rem;
    color: var(--color-text);
}

.plan-card__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

.plan-card__cta {
    text-align: center;
}

/* Wybór pakietu w rejestracji */

.plan-choice {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.plan-choice legend {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    padding: 0;
}

.plan-choice__option input[type="radio"] {
    width: auto;
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.plan-choice__option {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
    cursor: pointer;
}

.plan-choice__option:hover {
    border-color: var(--color-primary);
}

.plan-choice__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.plan-choice__price {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

.plan-choice__desc {
    font-size: 0.82rem;
    color: var(--color-muted);
}

/* FAQ */

.faq {
    max-width: 700px;
    margin: 4rem auto 0;
}

.faq h3 {
    text-align: center;
    font-size: 1.4rem;
    margin: 0 0 1.8rem;
}

.faq__item {
    border-top: 1px solid var(--color-border);
    padding: 1.2rem 0;
}

.faq__item h4 {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
}

.faq__item p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA */

.cta {
    background: var(--sidebar-bg);
    color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
}

.cta h2 {
    font-size: 1.9rem;
    margin: 0 0 0.7rem;
    letter-spacing: -0.02em;
}

.cta p {
    color: #c2cce0;
    margin: 0 0 1.8rem;
}

/* Panel informacyjny (brak subskrypcji) */

.notice-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-warning);
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 3rem;
}

.notice-panel h2 {
    margin: 0 0 0.8rem;
    font-size: 1.3rem;
}

.notice-panel p {
    margin: 0 0 0.6rem;
    line-height: 1.6;
}

.inline-form {
    display: inline;
}

.auth-form {
    margin-top: 1rem;
}

.auth-form__footer {
    margin-top: 1rem;
    text-align: center;
}

/* Stopka publiczna */

.public-footer {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
}

.public-footer__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
}

.public-footer h3 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.9rem;
}

.public-footer a {
    display: block;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.public-footer a:hover {
    color: #fff;
}

.site-logo--footer {
    color: #fff;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.public-footer__tagline {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 24rem;
}

.public-footer__muted {
    font-size: 0.85rem;
}

.public-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 1.2rem;
    font-size: 0.82rem;
}

/* Responsywność stron publicznych */

@media (max-width: 900px) {
    .hero__inner,
    .split {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero__visual {
        order: -1;
    }

    .public-footer__inner {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .site-nav {
        display: none;
    }
}

@media (max-width: 560px) {
    .site-header__inner {
        gap: 0.6rem;
        padding: 0.75rem 1rem;
    }

    .site-logo {
        font-size: 1rem;
    }

    .site-header__actions {
        gap: 0.4rem;
        margin-left: auto;
    }

    .site-header__actions .btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.78rem;
    }

    .hero {
        padding: 3rem 1.25rem 3.5rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 3rem 1.25rem;
    }

    .section__title {
        font-size: 1.6rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }
}

/* Podpowiadanie ceny z magazynu w pozycji kosztorysu */

.price-lookup {
    margin-bottom: 1.5rem;
}

.price-lookup h2 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.price-lookup__form {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.price-lookup__form select {
    flex: 1;
    min-width: 220px;
    width: auto;
}

.price-lookup__result {
    margin: 1rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.price-lookup__result strong {
    font-size: 1.1rem;
    color: var(--color-primary);
}

/* Podgląd logo firmy w ustawieniach */

.logo-preview {
    margin-bottom: 1.5rem;
}

.logo-preview h2 {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
}

.logo-preview img {
    max-height: 90px;
    max-width: 280px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.6rem;
    background: #fff;
    display: block;
    margin-bottom: 0.7rem;
}

/* ===================== Panel aplikacji na telefonie =====================

   Sidebar jest przyklejony na stałe po lewej i przy 375 px zabierał niemal
   cały ekran, spychając treść poza widok. Bez JavaScriptu nie zrobimy
   rozwijanego menu, więc na wąskich ekranach sidebar przestaje być
   przyklejony i układa się poziomo nad treścią. */

@media (max-width: 820px) {
    .sidebar {
        position: static;
        width: 100%;
        padding: 0.9rem 1rem;
    }

    .sidebar__brand {
        padding: 0 0 0.8rem;
    }

    /* Linki w rzędach — zawijają się zamiast tworzyć wysoką kolumnę. */
    .sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .sidebar__link {
        padding: 0.45rem 0.7rem;
        font-size: 0.85rem;
    }

    .sidebar__section-label {
        width: 100%;
        padding: 0.6rem 0 0.2rem;
    }

    .sidebar__footer {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.9rem;
        padding-top: 0.8rem;
    }

    .sidebar__user {
        padding: 0;
        flex: 1;
    }

    .sidebar__logout {
        width: auto;
    }

    .app-area {
        margin-left: 0;
    }

    .content {
        padding: 1.25rem 1rem;
    }

    /* Nagłówek strony: tytuł nad przyciskami, przyciski pełnej szerokości —
       inaczej „Pobierz PDF” i „Edytuj” wychodzą poza ekran. */
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .page-header > div {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .page-header .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    /* Szerokie tabele przewijają się w swoim kontenerze, a nie rozpychają
       całej strony. */
    table.data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }
}

/* Komunikaty — ostrzeżenie i informacja */

.message--warning {
    background: #fdf1da;
    color: #9a6a00;
}

.message--info {
    background: #e4edfd;
    color: var(--color-primary-dark);
}

/* Oferty od hurtowni */

.badge--analysing {
    background: #fdf1da;
    color: #9a6a00;
}

.badge--selected {
    background: #d8f5e4;
    color: #0b7a3b;
}

.badge--expired {
    background: #fdeaea;
    color: var(--color-danger);
}

.badge--superseded {
    background: #eef0f3;
    color: #6b7684;
}

.btn-small {
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
}

.link-danger {
    color: var(--color-danger);
}

.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

/* Tabela ofert ma osiem kolumn — przewija się w swoim kontenerze, nie rozpycha strony. */
.table-scroll {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

/* Zaokrąglenie i cień ma ramka, nie tabela: `overflow: hidden` na tabeli robi z niej
   osobny kontener przewijania i przyklejona kolumna przestaje działać. */
.table-scroll table.data-table {
    min-width: 900px;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
}

/* `table.` w selektorze: musi przebić ogólne `table.data-table td`. */
table.quote-table th,
table.quote-table td {
    padding: 0.55rem 0.5rem;
    vertical-align: top;
}

.quote-table td:nth-child(3) {
    max-width: 7.5rem;
    overflow-wrap: anywhere;
}

/* Wąskie kolumny (daty, wersja) poszerzały nagłówki wersalikami — mniejsze w tej tabeli. */
.quote-table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

/* Kolumna „Akcje” przyklejona do prawej krawędzi ramki — widoczna także wtedy,
   gdy na węższym ekranie tabela przewija się w bok. */
.quote-table .col-actions {
    position: sticky;
    right: 0;
    background: #fff;
    box-shadow: -1px 0 0 var(--color-border);
}

.quote-table th.col-actions {
    background: #f8f9fc;
}

.quote-table .action-links {
    flex-direction: column;
    white-space: nowrap;
}

.quote-table .inline-form {
    flex-wrap: wrap;
}

.quote-table .inline-form select {
    max-width: 8.5rem;
}

.quote-table .file-list__name {
    max-width: 13rem;
}

.quote-table .inline-form {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.inline-form select {
    width: auto;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
}

.detail-list .inline-form {
    display: inline-flex;
    gap: 0.35rem;
    margin-left: 0.5rem;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.file-list li {
    display: flex;
    flex-direction: column;
}

.file-list__name {
    font-weight: 600;
    word-break: break-word;
}

.file-list__meta {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.file-list__actions {
    display: flex;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.scan-status--not_scanned,
.scan-status--error {
    color: #9a6a00;
}

.scan-status--infected {
    color: var(--color-danger);
    font-weight: 600;
}

/* Pole plików: duży obszar — przeciąganie plików na pole działa w przeglądarce bez JS */
.form-field--files input[type="file"] {
    padding: 1.6rem 1rem;
    border: 2px dashed var(--color-border);
    background: #f8f9fc;
    cursor: pointer;
}

.form-field--files input[type="file"]:hover,
.form-field--files input[type="file"]:focus {
    border-color: var(--color-primary);
}

.upload-report {
    background: #fdeaea;
    color: var(--color-danger);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    max-width: 600px;
}

.upload-report h2 {
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.upload-report ul {
    margin: 0;
    padding-left: 1.1rem;
}

.quote-history td {
    background: #fbfcfe;
}

.quote-history summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
}

.version-history {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Panel pracownika — duże pola dotyku na telefonie (min. 44 px) */

.worker-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.worker-list__link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.worker-list__link:hover,
.worker-list__link:focus {
    border-color: var(--color-primary);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-width: 1.1rem;
    min-height: 1.1rem;
    align-self: flex-start;
}

/* Zadania (etap 10) */

.badge--todo { background: #eef0f3; color: #44505c; }
.badge--reported { background: #e4edfd; color: var(--color-primary-dark); }
.badge--approved { background: #e2f9ec; color: #0e9448; }
.badge--needs_fix { background: #fdf1da; color: #9a6a00; }
.badge--overdue { background: #fdeaea; color: var(--color-danger); }

.transition-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.transition-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 12rem;
}

.step-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.step-tools__form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.5rem;
}

.step-tools__form input[type="text"],
.step-tools__form select {
    width: auto;
    min-width: 14rem;
}

.input-narrow {
    width: 5rem !important;
}

.problem {
    border-left: 3px solid var(--color-border);
    padding: 0.25rem 0 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
}

.problem--open { border-left-color: var(--color-danger); }
.problem--resolved { border-left-color: #0e9448; }

fieldset.form-field--choices {
    border: none;
    padding: 0;
    min-width: 0;
}

.form-field--choices legend {
    font-weight: 600;
    font-size: 0.88rem;
    color: #333c48;
    padding: 0;
    margin-bottom: 0.25rem;
}

.form-field--choices ul,
.form-field--choices > div {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field--choices label {
    font-weight: 400;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Kalendarz: zadania obok wpisów */

.calendar-event--task { background: #eef3ff; color: var(--color-primary-dark); border-left: 3px solid var(--color-primary); }
.calendar-event--task.calendar-event--overdue { border-left-color: var(--color-danger); }
.calendar-event--task.calendar-event--approved { opacity: 0.6; }

.calendar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calendar-filters select { width: auto; }

.calendar-views {
    display: flex;
    gap: 0.35rem;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(8rem, 1fr));
    gap: 0.5rem;
}

.week-grid__day {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.5rem;
    min-height: 8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.week-grid__day--today { border-color: var(--color-primary); }

.week-grid__header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Panel pracownika (10D): telefon przede wszystkim, cele dotyku min. 44 px, jedna akcja = jeden przycisk */

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

.worker-date {
    margin: -0.5rem 0 1.25rem;
    color: var(--color-muted);
}

.worker-section h2 {
    font-size: 1.05rem;
    margin: 0 0 0.6rem;
}

.worker-section {
    margin-bottom: 1.5rem;
}

.task-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 5px solid #c3cbd5;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.9rem;
}

.task-card--in_progress { border-left-color: var(--color-primary); }
.task-card--needs_fix { border-left-color: #e0a100; }
.task-card--reported { border-left-color: #8fb0f5; }
.task-card--approved { border-left-color: #0e9448; }
.task-card--overdue { border-left-color: var(--color-danger); }

.task-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
}

.task-card__title {
    font-weight: 600;
    font-size: 1.05rem;
    color: inherit;
    text-decoration: none;
}

.task-card__title:hover,
.task-card__title:focus {
    color: var(--color-primary);
    text-decoration: underline;
}

.task-card__meta {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: var(--color-muted);
}

.task-card__note {
    margin: 0.7rem 0 0;
    padding: 0.6rem 0.8rem;
    background: #fdf6e7;
    border-radius: 8px;
    font-size: 0.9rem;
}

.task-card__progress {
    margin: 0.8rem 0 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.step-toggle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 48px;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

button.step-toggle:hover,
button.step-toggle:focus-visible {
    border-color: var(--color-primary);
}

.step-toggle--static {
    cursor: default;
    color: var(--color-muted);
}

.step-toggle__mark {
    flex: 0 0 1.7rem;
    height: 1.7rem;
    border: 2px solid #9aa5b1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.step-toggle--done {
    background: #f1fbf5;
    border-color: #b9e8cc;
}

.step-toggle--done .step-toggle__mark {
    background: #0e9448;
    border-color: #0e9448;
    color: #fff;
}

.step-meta {
    margin: 0.2rem 0 0 2.6rem;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.step-comment {
    margin: 0.25rem 0 0 2.6rem;
    font-size: 0.85rem;
}

.step-comment summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    cursor: pointer;
    color: var(--color-primary);
}

.step-comment__form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.worker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.worker-actions > form,
.worker-actions > .btn {
    flex: 1 1 12rem;
}

.worker-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    text-align: center;
}

.report-warning {
    margin: 0 0 1rem;
    padding: 0.8rem 1rem;
    background: #fdf6e7;
    border-left: 4px solid var(--color-warning);
    border-radius: 8px;
}

.report-warning p,
.report-warning ul {
    margin: 0.2rem 0;
}

.week-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.week-nav .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.day-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.day-list__day {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
}

.day-list__day--today {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.day-list__title {
    margin: 0 0 0.5rem;
    font-size: 0.98rem;
}

.day-list__day .field-hint {
    margin: 0;
}

.worker-list__event {
    background: #f7f8fa;
}

.worker-list__note {
    flex-basis: 100%;
    font-size: 0.85rem;
    color: #5b6673;
}

.filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.filter-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.filter-links a[aria-current="page"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Panel administratora i powiadomienia (10E) */

.search-form__check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    font-size: 0.9rem;
}

.nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    margin-left: 0.3rem;
    border-radius: 999px;
    background: var(--color-danger);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.team-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.6rem;
}

.team-stats a {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 44px;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}

.team-stats a:hover,
.team-stats a:focus {
    border-color: var(--color-primary);
}

.team-stats__value {
    font-size: 1.5rem;
    font-weight: 700;
}

.team-stats__label {
    font-size: 0.82rem;
    color: var(--color-muted);
}

.team-stats--attention a { border-color: #8fb0f5; background: #f3f7ff; }
.team-stats--danger a { border-color: #f2b8ba; background: #fff6f6; }
.team-stats--danger .team-stats__value { color: var(--color-danger); }

.progress-summary {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.progress-summary__item {
    display: grid;
    grid-template-columns: 10rem 1fr 3rem;
    align-items: center;
    gap: 0.6rem;
}

.progress-summary__label {
    font-size: 0.88rem;
}

.progress-bar {
    display: block;
    height: 0.6rem;
    border-radius: 999px;
    background: #eef0f3;
    overflow: hidden;
}

.progress-bar > span {
    display: block;
    height: 100%;
    background: var(--color-primary);
}

.progress-bar--approved > span {
    background: #0e9448;
}

@media (max-width: 560px) {
    .progress-summary__item {
        grid-template-columns: 1fr 3rem;
    }

    .progress-summary__label {
        grid-column: 1 / -1;
    }
}

.queue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: 0.9rem;
}

.queue-actions .btn {
    min-height: 44px;
}

.queue-actions__return {
    display: flex;
    flex: 1 1 18rem;
    flex-direction: column;
    gap: 0.4rem;
}

.data-table__row--selected td {
    background: #f3f7ff;
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.notification__button {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.notification__button:hover,
.notification__button:focus-visible {
    border-color: var(--color-primary);
}

.notification--unread .notification__button {
    border-left: 4px solid var(--color-primary);
    background: #f7faff;
}

.notification--unread .notification__text {
    font-weight: 600;
}

.notification__meta {
    font-size: 0.8rem;
    color: var(--color-muted);
}
