.admin-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(to bottom left, hsl(var(--p)), #7e22ce, #312e81);
}

.admin-hero::before,
.admin-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(48px);
    pointer-events: none;
}

.admin-hero::before {
    top: 1.5rem;
    inset-inline-start: 1.5rem;
    width: 18rem;
    height: 18rem;
    background: rgb(255 255 255 / 0.14);
}

.admin-hero::after {
    right: 0;
    bottom: 0;
    width: 24rem;
    height: 24rem;
    background: rgb(216 180 254 / 0.22);
}

.admin-hero-inner,
.admin-wrap {
    width: min(80rem, calc(100% - 2rem));
    margin-inline: auto;
}

.admin-hero-inner {
    position: relative;
    z-index: 1;
    padding: 2rem 0 2.75rem;
}

.admin-crumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: rgb(255 255 255 / 0.6);
    font-size: 0.75rem;
}

.admin-crumb a:hover,
.admin-crumb .here {
    color: rgb(255 255 255 / 0.92);
}

.admin-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.admin-title-icon {
    display: flex;
    padding: 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.1);
}

.admin-title-icon .glyph {
    width: 2rem;
    height: 2rem;
}

.admin-title h1 {
    font-size: 1.5rem;
    font-weight: 900;
}

.admin-page p.admin-lead {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
    color: rgb(255 255 255 / 0.62);
    font-size: 0.875rem;
}

.admin-lead .glyph {
    width: 0.75rem;
    height: 0.75rem;
}

.admin-heroes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-hero-card {
    padding: 1rem;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.1);
    backdrop-filter: blur(12px);
}

.admin-hero-card:hover {
    background: rgb(255 255 255 / 0.16);
}

.admin-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.admin-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    color: white;
    box-shadow: 0 8px 16px rgb(0 0 0 / 0.15);
}

.admin-glyph .glyph {
    width: 1.25rem;
    height: 1.25rem;
}

.admin-glyph.violet { background: linear-gradient(to bottom right, #7c3aed, #a855f7); }
.admin-glyph.blue { background: linear-gradient(to bottom right, #2563eb, #06b6d4); }
.admin-glyph.green { background: linear-gradient(to bottom right, #059669, #14b8a6); }
.admin-glyph.amber { background: linear-gradient(to bottom right, #f97316, #fbbf24); }

.admin-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: rgb(255 255 255 / 0.55);
    font-size: 10px;
}

.admin-trend .glyph {
    width: 0.75rem;
    height: 0.75rem;
}

.admin-hero-card strong {
    display: block;
    margin-top: 0.75rem;
    font-size: 1.875rem;
    font-weight: 900;
    line-height: 1;
}

.admin-hero-card em {
    display: block;
    margin-top: 0.2rem;
    color: rgb(255 255 255 / 0.62);
    font-size: 0.75rem;
    font-style: normal;
}

.admin-wrap {
    position: relative;
    z-index: 2;
    margin-top: -1rem;
    padding-bottom: 4rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.admin-stat,
.admin-ring-card,
.admin-progress-card,
.admin-card {
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.admin-stat {
    padding: 0.75rem;
    text-align: center;
}

.admin-stat:hover,
.admin-card {
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.admin-stat:hover {
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.06);
}

.admin-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto 0.5rem;
    border-radius: 0.5rem;
}

.admin-stat-icon .glyph {
    width: 1rem;
    height: 1rem;
}

.tone-indigo { background: rgb(99 102 241 / 0.1); color: #6366f1; }
.tone-cyan { background: rgb(6 182 212 / 0.1); color: #06b6d4; }
.tone-violet { background: rgb(139 92 246 / 0.1); color: #8b5cf6; }
.tone-pink { background: rgb(236 72 153 / 0.1); color: #ec4899; }
.tone-emerald { background: rgb(16 185 129 / 0.1); color: #10b981; }
.tone-blue { background: rgb(59 130 246 / 0.1); color: #3b82f6; }

.admin-stat strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 900;
}

.admin-stat span,
.admin-ring-card span,
.admin-page p.admin-fine {
    color: hsl(var(--muted));
    font-size: 10px;
}

.admin-page p.admin-fine {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    line-height: 1.45;
}

.admin-rings {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.admin-ring-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.admin-ring-wrap {
    position: relative;
    flex: none;
    width: 56px;
    height: 56px;
}

.admin-ring-wrap .glyph {
    position: absolute;
    inset: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin: auto;
    color: hsl(var(--muted));
}

.admin-ring-card strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.admin-progress-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.admin-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.admin-progress-head .label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.admin-progress-head .glyph {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--p));
}

.admin-progress-head .count,
.admin-page p.admin-progress-note {
    color: hsl(var(--muted));
    font-size: 0.75rem;
    font-weight: 500;
}

.admin-page p.admin-progress-note {
    margin-top: 0.35rem;
    font-size: 10px;
}

.admin-progress {
    height: 0.5rem;
    overflow: hidden;
    border-radius: 999px;
    background: hsl(var(--line));
}

.admin-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: hsl(var(--p));
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    color: hsl(var(--muted));
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-tab:hover {
    background: hsl(var(--accent));
    color: hsl(var(--fg));
}

.admin-tab.is-on,
.admin-tab.is-on:hover {
    background: hsl(var(--p));
    color: white;
}

.admin-tab .glyph {
    width: 1rem;
    height: 1rem;
}

.admin-card-head {
    padding: 1rem 1rem 0.75rem;
}

.admin-card-head h2 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 700;
}

.admin-card-head h2 .glyph {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--p));
}

.admin-card-body {
    padding: 0 1rem 1rem;
}

.admin-card-body.flush {
    padding: 0;
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.admin-search {
    position: relative;
    flex: 1 1 16rem;
}

.admin-search .glyph {
    position: absolute;
    top: 50%;
    inset-inline-start: 0.75rem;
    width: 1rem;
    height: 1rem;
    color: hsl(var(--muted));
    transform: translateY(-50%);
}

.admin-page .admin-filters input,
.admin-page .admin-filters select {
    height: 2.5rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.5rem;
    background: white;
    font-size: 0.875rem;
}

.admin-page .admin-search input {
    width: 100%;
    padding-inline: 2.4rem 0.75rem;
}

.admin-page .admin-filters select {
    width: 100%;
    padding-inline: 0.75rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 46rem;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsl(var(--line));
    text-align: start;
    vertical-align: middle;
}

.admin-table th {
    color: hsl(var(--muted));
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-table tbody tr:hover {
    background: hsl(270 20% 98%);
}

.admin-name {
    font-weight: 600;
}

.admin-page a.admin-name {
    color: hsl(var(--p));
}

.admin-sub,
.admin-file,
.admin-page p.admin-empty {
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.admin-sub {
    display: block;
}

.admin-file {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.admin-file .glyph {
    width: 0.85rem;
    height: 0.85rem;
}

.admin-page p.admin-empty {
    padding: 2rem 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.admin-badge,
.admin-roles {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.admin-roles {
    flex-wrap: wrap;
}

.admin-badge {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.45;
}

.admin-badge .glyph {
    width: 0.75rem;
    height: 0.75rem;
}

.admin-badge.solid { background: hsl(var(--p)); color: white; }
.admin-badge.soft { background: hsl(var(--accent)); color: hsl(var(--fg)); }
.admin-badge.line { border: 1px solid hsl(var(--line)); color: hsl(var(--muted)); }
.admin-badge.ok { background: #10b981; color: white; }

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.admin-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
}

.admin-page button.admin-btn,
.admin-page a.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 2rem;
    padding: 0.25rem 0.7rem;
    border: 0;
    border-radius: 0.5rem;
    background: hsl(var(--p));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-page button.admin-btn.line,
.admin-page a.admin-btn.line {
    border: 1px solid hsl(var(--line));
    background: white;
    color: hsl(var(--fg));
}

.admin-page a.admin-btn.ghost,
.admin-page button.admin-btn.ghost {
    background: transparent;
    color: hsl(var(--fg));
}

.admin-btn .glyph {
    width: 1rem;
    height: 1rem;
}

.admin-catalog {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
}

.admin-catalog h2 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 700;
}

.admin-catalog h2 .glyph {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--p));
}

.admin-page p.admin-copy {
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.admin-banner {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: hsl(0 84% 60% / 0.1);
    color: hsl(0 72% 38%);
    font-weight: 700;
}

.admin-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem 1rem 4rem;
}

.admin-gate-card {
    display: grid;
    gap: 1rem;
    justify-items: center;
    width: min(24rem, 100%);
    padding: 2rem;
    text-align: center;
}

.admin-page p.admin-danger {
    color: hsl(0 72% 45%);
    font-size: 1.125rem;
    font-weight: 700;
}

@media (min-width: 640px) {
    .admin-select {
        width: 11rem;
    }
}

@media (min-width: 720px) {
    .admin-rings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .admin-heroes {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-stats {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.report-wrap {
    width: min(80rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
}

.report-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.report-head h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
}

.report-head h1 .glyph {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--p));
}

.admin-page p.report-lead {
    margin-top: 0.35rem;
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.report-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.report-kpis,
.report-money {
    display: grid;
    gap: 0.75rem;
}

.report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.report-kpi {
    padding: 1.15rem 1.15rem 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.report-kpi:hover {
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.06);
}

.report-kpi-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.admin-page p.report-kpi-label,
.admin-page p.report-kpi-sub {
    color: hsl(var(--muted));
    font-size: 0.8rem;
}

.report-kpi strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
}

.admin-page p.report-kpi-sub {
    margin-top: 0.35rem;
    font-size: 0.75rem;
}

.report-kpi-icon {
    display: flex;
    padding: 0.65rem;
    border-radius: 0.6rem;
}

.report-kpi-icon .glyph {
    width: 1.4rem;
    height: 1.4rem;
}

.report-stack {
    display: grid;
    gap: 1rem;
}

.report-split {
    display: grid;
    gap: 1rem;
}

.report-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
}

.report-card-head h2 {
    font-size: 1rem;
    font-weight: 700;
}

.report-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.admin-page .report-tools input,
.admin-page .report-tools select {
    height: 2.4rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.5rem;
    background: white;
    padding-inline: 0.75rem;
    font-size: 0.875rem;
}

.admin-page .report-tools input {
    width: min(16rem, 100%);
}

.report-bars {
    display: grid;
    gap: 0.55rem;
    padding: 0 1rem 1rem;
}

.report-bar-row {
    display: grid;
    grid-template-columns: minmax(6rem, 9rem) 1fr auto;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.8rem;
}

.report-bar {
    height: 0.45rem;
    overflow: hidden;
    border-radius: 999px;
    background: hsl(var(--line));
}

.report-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #5b2d8e;
}

.report-split .admin-table {
    min-width: 28rem;
}

@media (min-width: 768px) {
    .report-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (min-width: 900px) {
    .report-split {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1100px) {
    .report-kpis {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.stats-banner {
    background: hsl(var(--p));
    color: white;
}

.stats-banner-inner,
.stats-wrap {
    width: min(80rem, calc(100% - 2rem));
    margin-inline: auto;
}

.stats-banner-inner {
    padding: 2.5rem 0;
}

.stats-crumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgb(255 255 255 / 0.7);
    font-size: 0.875rem;
}

.stats-crumb a:hover,
.stats-crumb .here {
    color: white;
}

.stats-banner h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.stats-banner h1 .glyph {
    width: 2rem;
    height: 2rem;
}

.admin-page p.stats-lead {
    margin-top: 0.35rem;
    color: rgb(255 255 255 / 0.8);
    font-size: 0.875rem;
}

.stats-wrap {
    display: grid;
    gap: 2rem;
    padding: 2rem 0 4rem;
}

.stats-kpis,
.stats-ops,
.stats-breakdown {
    display: grid;
    gap: 1rem;
}

.stats-kpis,
.stats-ops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.stats-card:hover {
    box-shadow: 0 6px 16px rgb(0 0 0 / 0.06);
}

.stats-card-icon {
    display: flex;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: hsl(var(--p) / 0.1);
    color: hsl(var(--p));
}

.stats-card-icon .glyph {
    width: 1.5rem;
    height: 1.5rem;
}

.stats-card strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.stats-card span,
.admin-page p.stats-sub {
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.admin-page p.stats-sub {
    margin-top: 0.15rem;
    font-size: 10px;
}

.stats-panel {
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.stats-panel-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.25rem 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.stats-panel-head .glyph {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--p));
}

.stats-lines {
    padding: 0 1.25rem 1.25rem;
}

.stats-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid hsl(var(--line) / 0.7);
    font-size: 0.875rem;
}

.stats-line:last-child {
    border-bottom: 0;
}

.stats-line.total {
    padding-top: 0.7rem;
    font-weight: 800;
}

.stats-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.25rem 1.25rem;
}

.stats-city {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid hsl(var(--line));
    border-radius: 999px;
    font-size: 0.75rem;
}

.stats-city b {
    color: hsl(var(--muted));
    font-weight: 600;
}

@media (min-width: 640px) {
    .stats-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (min-width: 768px) {
    .stats-banner h1 {
        font-size: 1.875rem;
    }

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

@media (min-width: 1024px) {
    .stats-kpis {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

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

.users-page {
    display: grid;
    gap: 1.25rem;
    width: min(72rem, calc(100% - 2rem));
    margin: 1.25rem auto 4rem;
}

.users-hero {
    position: relative;
    overflow: hidden;
    padding: 1.25rem 1.35rem 1.35rem;
    border-radius: 1rem;
    color: white;
    background: linear-gradient(to bottom left, hsl(var(--p)), #7e22ce, #312e81);
}

.users-hero h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.users-hero h1 .glyph {
    width: 1.5rem;
    height: 1.5rem;
}

.admin-page p.users-lead,
.admin-page p.users-keep {
    color: rgb(255 255 255 / 0.9);
    font-size: 0.875rem;
}

.admin-page p.users-lead {
    margin-top: 0.35rem;
}

.admin-page p.users-keep {
    margin-top: 0.45rem;
    color: rgb(255 255 255 / 0.72);
    font-size: 0.75rem;
}

.users-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.admin-page .users-hero a.admin-btn {
    border-radius: 999px;
    background: white;
    color: hsl(var(--p));
    font-size: 11px;
}

.users-grid {
    display: grid;
    gap: 0.75rem;
}

.users-span {
    grid-column: 1 / -1;
}

.users-grid > .users-slot {
    display: contents;
}

.users-field {
    display: grid;
    gap: 0.3rem;
}

.users-field > span,
.users-field > label,
.admin-page p.users-label {
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-page .users-field input,
.admin-page .users-field select,
.admin-page .users-field textarea {
    width: 100%;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
    font-size: 0.8rem;
}

.admin-page .users-field textarea {
    height: auto;
    min-height: 4.5rem;
    padding: 0.6rem 0.75rem;
    resize: vertical;
}

.users-password {
    display: flex;
    gap: 0.5rem;
}

.admin-page .users-password input {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
}

.admin-page button.users-key {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
    color: hsl(var(--fg));
    cursor: pointer;
}

.users-key .glyph {
    width: 1rem;
    height: 1rem;
}

.users-extra {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.users-form:has([data-users-role] option[value="admin"]:checked) .users-slot,
.users-form:has([data-users-role] option[value="admin"]:checked) .users-extra,
.users-form:has([data-users-role] option[value="developer"]:checked) .users-slot,
.users-form:has([data-users-role] option[value="developer"]:checked) .users-extra,
.users-form:has([data-users-role] option[value="real_estate"]:checked) .users-slot,
.users-form:has([data-users-role] option[value="real_estate"]:checked) .users-extra,
.users-form:has([data-users-role] option[value="worker"]:checked) .users-slot,
.users-form:has([data-users-role] option[value="worker"]:checked) .users-extra {
    display: none;
}

.users-form [data-users-set] {
    display: none;
}

.users-form:has([data-users-type] option[value="designer"]:checked) [data-users-set="designer"],
.users-form:has([data-users-type] option[value="office"]:checked) [data-users-set="office"],
.users-form:has([data-users-type] option[value="procurement_expert"]:checked) [data-users-set="procurement_expert"],
.users-form:has([data-users-type] option[value="supervisor"]:checked) [data-users-set="supervisor"],
.users-form:has([data-users-type] option[value="executor"]:checked) [data-users-set="executor"] {
    display: flex;
}

.users-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.users-pill {
    position: relative;
    cursor: pointer;
}

.users-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.users-pill span {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 999px;
    color: hsl(var(--muted));
    font-size: 11px;
}

.users-pill:has(input:checked) span {
    border-color: hsl(var(--p));
    background: hsl(var(--p));
    color: white;
}

.users-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.admin-page .users-actions .admin-btn,
.admin-page .users-list-head a.admin-btn {
    border-radius: 999px;
}

.admin-page .users-actions .admin-btn {
    min-height: 2.25rem;
    padding-inline: 0.9rem;
}

.users-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.users-list-head h2 {
    font-size: 1rem;
    font-weight: 700;
}

.users-board {
    display: grid;
    gap: 0.75rem;
}

.users-account {
    display: grid;
    gap: 0.5rem;
    align-content: start;
    padding: 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 1rem;
    background: white;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.users-account-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.users-account-name {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.users-account-name .glyph {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--p));
}

.admin-page p.users-meta,
.admin-page p.users-note,
.admin-page p.users-empty {
    color: hsl(var(--muted));
    font-size: 11px;
}

.admin-page p.users-empty {
    font-size: 0.75rem;
}

.users-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.admin-banner.ok {
    background: hsl(152 76% 40% / 0.12);
    color: hsl(152 70% 24%);
}

@media (min-width: 768px) {
    .users-hero h1 {
        font-size: 1.5rem;
    }

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

.offers-page {
    display: grid;
    gap: 1.25rem;
    width: min(72rem, calc(100% - 2rem));
    margin: 1.25rem auto 4rem;
}

.offers-page .admin-card h2 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 1rem;
}

.offers-page .admin-card h2 .glyph {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--p));
}

.offers-form {
    display: grid;
    gap: 0.85rem 1rem;
    min-width: 0;
}

.offers-span {
    grid-column: 1 / -1;
}

.offers-form-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-page .offers-form-actions .admin-btn,
.admin-page .offers-actions .admin-btn,
.admin-page .offers-tools a.admin-btn {
    border-radius: 999px;
    font-size: 11px;
}

.admin-page p.offers-hint,
.admin-page p.offers-count,
.admin-page p.offers-note {
    margin: 0;
    color: hsl(var(--muted));
    font-size: 11px;
    line-height: 1.7;
}

.offers-page .admin-card-body {
    padding: 0 1.25rem 1.25rem;
}

.offers-page .admin-card-head {
    padding: 1.25rem 1.25rem 0.85rem;
}

.offers-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.offers-search {
    position: relative;
    flex: 1 1 14rem;
    min-width: 14rem;
}

.offers-search .glyph {
    position: absolute;
    inset-inline-start: 0.8rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    color: hsl(var(--muted));
}

.admin-page .offers-search input,
.admin-page .offers-tools select {
    height: 2.5rem;
    border: 1px solid hsl(var(--line));
    border-radius: 999px;
    background: white;
    color: inherit;
    font: inherit;
    font-size: 0.75rem;
}

.admin-page .offers-search input {
    width: 100%;
    padding: 0 0.9rem;
    padding-inline-start: 2.2rem;
}

.admin-page .offers-tools select {
    padding: 0 0.85rem;
}

.offers-empty {
    padding: 2.5rem 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 1rem;
    background: white;
    text-align: center;
}

.offers-empty .glyph {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.75rem;
    color: hsl(var(--muted));
}

.admin-page .offers-empty p {
    margin: 0;
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.offers-list {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .offers-list.pair {
        grid-template-columns: 1fr 1fr;
    }
}

.review-label {
    margin: 0.75rem 0 0.35rem;
    font-size: 11px;
    font-weight: 700;
}

.review-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.review-docs {
    margin: 0.35rem 0 0;
    padding-inline-start: 1.1rem;
    color: hsl(var(--muted));
    font-size: 11px;
}

.review-reject {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.offers-card {
    padding: 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 1rem;
    background: white;
    box-shadow: 0 1px 2px rgb(15 10 30 / 0.04);
}

.offers-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.offers-card h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 800;
}

.offers-card-top > div > p {
    margin: 0.2rem 0 0;
    color: hsl(var(--muted));
    font-size: 11px;
}

.offers-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.offers-actions form {
    display: inline-flex;
}

.offers-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.offers-badge.line {
    border: 1px solid hsl(var(--line));
}

.offers-badge.solid {
    background: hsl(var(--p));
    color: white;
}

.offers-note {
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .offers-form {
        grid-template-columns: 1fr 1fr;
    }
}

.templates-page {
    display: grid;
    gap: 1.25rem;
    width: min(64rem, calc(100% - 2rem));
    margin: 1.25rem auto 4rem;
}

.templates-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-page .templates-pills a.admin-btn {
    border-radius: 999px;
    font-size: 11px;
}

.templates-page .admin-card-head {
    padding: 1.25rem 1.25rem 0.85rem;
}

.templates-page .admin-card-body {
    display: grid;
    gap: 0.85rem;
    padding: 0 1.25rem 1.25rem;
}

.templates-page .admin-card h2,
.templates-page .admin-card h3 {
    margin: 0;
    font-size: 1rem;
}

.templates-page .admin-card h3 {
    font-size: 0.875rem;
}

.admin-page p.templates-summary {
    margin: 0.35rem 0 0;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.templates-types,
.templates-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.templates-types {
    margin-top: 0.65rem;
}

.templates-types span,
.templates-miles strong {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.templates-types span {
    background: hsl(var(--muted) / 0.12);
}

.templates-miles {
    display: grid;
    gap: 0.4rem;
}

.templates-miles div,
.templates-clauses article {
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
}

.templates-miles div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.templates-miles strong {
    border: 1px solid hsl(var(--line));
    background: white;
}

.templates-clauses {
    display: grid;
    gap: 0.75rem;
}

.templates-clauses article {
    padding: 0.75rem;
}

.templates-clauses h3 {
    font-size: 0.875rem;
    font-weight: 700;
}

.admin-page .templates-clauses p,
.admin-page .templates-actions p {
    margin: 0.25rem 0 0;
    color: hsl(var(--muted));
    font-size: 0.75rem;
    line-height: 1.7;
}

.templates-text {
    margin: 0;
    padding: 0.9rem 1rem;
    overflow: auto;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: hsl(var(--muted) / 0.06);
    color: hsl(var(--muted));
    font: inherit;
    font-size: 0.75rem;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.admin-page .templates-actions .admin-btn {
    border-radius: 999px;
    font-size: 11px;
}

.admin-page .templates-actions p {
    flex-basis: 100%;
    margin: 0;
}

.projects-page {
    display: grid;
    gap: 1.25rem;
    width: min(72rem, calc(100% - 2rem));
    margin: 1.25rem auto 4rem;
}

.projects-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.projects-services span {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: hsl(var(--muted) / 0.12);
    font-size: 10px;
    font-weight: 700;
}

.pending-page {
    display: grid;
    gap: 1.25rem;
    width: min(72rem, calc(100% - 2rem));
    margin: 1.25rem auto 4rem;
}

.pending-page .admin-card-head {
    padding: 1.25rem 1.25rem 0.85rem;
}

.pending-page .admin-card-body {
    display: grid;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem;
}

.pending-page .admin-card h2 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 1rem;
}

.pending-page .admin-card h2 .glyph {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--p));
}

.pending-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pending-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 999px;
    color: hsl(var(--muted));
    font-size: 11px;
    font-weight: 700;
}

.pending-pill.on {
    border-color: hsl(var(--p));
    background: hsl(var(--p));
    color: white;
}

.pending-pill.stage.on {
    border-color: hsl(var(--fg));
    background: hsl(var(--fg));
    color: white;
}

.offers-badge.soft {
    background: hsl(var(--muted) / 0.12);
}

.admin-page p.pending-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0 0;
    color: hsl(var(--muted));
    font-size: 11px;
}

.pending-facts span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.pending-facts .glyph {
    width: 0.875rem;
    height: 0.875rem;
}

.pending-actions {
    margin-top: 0.75rem;
}

.admin-page .pending-actions .admin-btn {
    border-radius: 999px;
    font-size: 11px;
}

.rfq-page {
    display: grid;
    gap: 1.25rem;
    width: min(72rem, calc(100% - 2rem));
    margin: 1.25rem auto 4rem;
}

.rfq-ref {
    color: hsl(var(--p));
}

.rfq-brief {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid hsl(var(--p) / 0.3);
    border-radius: 0.75rem;
    background: hsl(var(--p) / 0.05);
}

.rfq-brief strong {
    color: hsl(var(--p));
    font-size: 11px;
}

.admin-page .rfq-brief p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin: 0;
    color: hsl(var(--muted));
    font-size: 11px;
}

.rfq-brief a {
    color: hsl(var(--p));
    font-weight: 800;
    text-decoration: underline;
}

.rfq-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rfq-note {
    display: block;
    margin-top: 0.75rem;
}

.admin-page .rfq-note input {
    width: 100%;
    height: 2.5rem;
    padding: 0 0.9rem;
    border: 1px solid hsl(var(--line));
    border-radius: 999px;
    background: white;
    color: inherit;
    font: inherit;
    font-size: 0.75rem;
}

.rfq-page form .pending-pills {
    margin-top: 0.65rem;
}

.rfq-page button.pending-pill {
    background: white;
    cursor: pointer;
}

.rfq-page button.pending-pill.on {
    border-color: hsl(var(--p));
    background: hsl(var(--p));
    color: white;
}

.rfq-page button.pending-pill:disabled {
    opacity: 0.4;
    cursor: default;
}

.rfq-log-toggle {
    flex-basis: 100%;
}

.rfq-log-toggle summary {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    color: hsl(var(--fg));
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.rfq-log-toggle summary .glyph {
    width: 0.75rem;
    height: 0.75rem;
}

.admin-page .rfq-log-toggle p,
.rfq-log {
    margin: 0.5rem 0 0;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: hsl(var(--muted) / 0.12);
    color: hsl(var(--muted));
    font-size: 11px;
}

.rfq-log {
    display: grid;
    gap: 0.4rem;
    list-style: none;
}

.rfq-log li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
}

.rfq-log strong {
    color: hsl(var(--fg));
}

.rfq-actor {
    color: hsl(var(--p));
}

.rfq-entry-note {
    flex-basis: 100%;
}

.svc-page {
    display: grid;
    gap: 1.25rem;
    width: min(72rem, calc(100% - 2rem));
    margin: 1.25rem auto 4rem;
}

.svc-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.svc-hero .users-links {
    margin-top: 0;
}

.svc-count {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border: 1px solid rgb(255 255 255 / 0.45);
    border-radius: 999px;
    color: white;
    font-size: 11px;
    font-weight: 800;
}

.svc-page .admin-card-head {
    padding: 1.25rem 1.25rem 0.85rem;
}

.svc-page .admin-card-body {
    display: grid;
    gap: 1rem;
    padding: 0 1.25rem 1.25rem;
}

.svc-page .admin-card h2 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 1rem;
}

.svc-page .admin-card h2 .glyph {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--p));
}

.svc-form {
    display: grid;
    gap: 1.25rem;
}

.svc-section {
    display: grid;
    gap: 0.75rem;
}

.svc-section h3 {
    margin: 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid hsl(var(--line));
    color: hsl(var(--p));
    font-size: 11px;
    font-weight: 800;
}

.svc-grid {
    display: grid;
    gap: 0.75rem;
}

.svc-req {
    color: hsl(0 72% 38%);
    font-style: normal;
}

.admin-page p.svc-note {
    margin: 0;
    color: hsl(var(--muted));
    font-size: 11px;
    line-height: 1.7;
}

.svc-status {
    max-width: 12rem;
}

.svc-form-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid hsl(var(--line));
}

.admin-page .svc-form-foot .admin-btn {
    border-radius: 999px;
    font-size: 11px;
}

.svc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.svc-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.svc-title h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 800;
}

.svc-title span {
    color: hsl(var(--muted));
    font-size: 10px;
}

.admin-page .svc-row p {
    margin: 0.2rem 0 0;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.svc-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.svc-icons form {
    display: inline-flex;
    margin: 0;
}

.svc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: hsl(var(--muted));
    cursor: pointer;
}

.svc-icon:hover {
    background: hsl(var(--p) / 0.08);
    color: hsl(var(--p));
}

.svc-icon.danger:hover {
    color: hsl(0 72% 38%);
}

.svc-icon .glyph {
    width: 1rem;
    height: 1rem;
}

.svc-media {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.svc-media li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.svc-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
}

.svc-upload .users-field {
    flex: 1 1 16rem;
}

@media (min-width: 768px) {
    .svc-grid.two {
        grid-template-columns: 1fr 1fr;
    }

    .svc-grid.three {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .svc-grid.four {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.cat-panel {
    display: grid;
    gap: 1rem;
}

.cat-head,
.cat-actions,
.cat-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.cat-head {
    align-items: flex-start;
    justify-content: space-between;
}

.cat-head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.cat-head p {
    margin: 0.25rem 0 0;
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.cat-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
}

.cat-muted {
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.cat-table tr.is-off {
    opacity: 0.5;
}

.cat-switch {
    position: relative;
    width: 2.25rem;
    height: 1.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: hsl(var(--line));
    cursor: pointer;
}

.cat-switch > span:first-child {
    position: absolute;
    top: 0.125rem;
    inset-inline-start: 0.125rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: white;
}

.cat-switch.on {
    background: hsl(var(--p));
}

.cat-switch.on > span:first-child {
    inset-inline-start: calc(100% - 1.125rem);
}

.cat-dialog {
    max-width: 36rem;
}

.cat-form {
    display: grid;
    gap: 0.75rem;
}

.cat-active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.cat-save {
    width: 100%;
}

@media (min-width: 640px) {
    .cat-category {
        width: 13rem;
    }
}
