:root {
    --bg: #0d1117;
    --bg-soft: #151b23;
    --panel: #161d27;
    --panel-2: #1b2430;
    --panel-3: #111720;
    --ink: #e7edf5;
    --muted: #92a0b3;
    --line: #273242;
    --line-soft: #202a37;
    --accent: #5fb0ff;
    --accent-2: #8fbc8f;
    --warn: #ffb86c;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(95, 176, 255, 0.08), transparent 24%),
        radial-gradient(circle at bottom right, rgba(143, 188, 143, 0.08), transparent 18%),
        linear-gradient(180deg, #0d1117 0%, #0b1016 100%);
}

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

.layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    padding: 24px 18px;
    border-right: 1px solid var(--line-soft);
    background: rgba(10, 15, 22, 0.82);
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
}

.brand h1,
.brand p {
    margin: 0;
}

.brand h1 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand p {
    color: var(--muted);
    font-size: 0.82rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4f7e 0%, #2d7fc7 100%);
    color: white;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav {
    display: grid;
    gap: 6px;
}

.nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
    border: 1px solid transparent;
}

.nav a.active,
.nav a:hover {
    background: rgba(95, 176, 255, 0.08);
    border-color: rgba(95, 176, 255, 0.18);
    color: var(--ink);
}

.content {
    padding: 26px;
    display: grid;
    gap: 18px;
    align-content: start;
}

.session-card {
    margin-top: 18px;
    padding: 14px;
    display: grid;
    gap: 12px;
    border-radius: 14px;
    border: 1px solid var(--line-soft);
    background: rgba(17, 23, 32, 0.88);
}

.session-card strong,
.session-card span {
    display: block;
}

.session-card span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.84rem;
    word-break: break-word;
}

.hero,
.page-head,
.card,
.job-card,
.job-tile {
    background: linear-gradient(180deg, rgba(22, 29, 39, 0.96) 0%, rgba(18, 24, 33, 0.98) 100%);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hero,
.page-head {
    padding: 22px;
}

.hero h2,
.page-head h2 {
    margin: 6px 0 8px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.02;
    max-width: 12ch;
    letter-spacing: -0.03em;
}

.hero-simple,
.page-head-simple {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.hero-balanced {
    display: grid;
    gap: 18px;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

.lede {
    max-width: 72ch;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.card-grid,
.split,
.triple {
    display: grid;
    gap: 16px;
}

.card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

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

.split-tight {
    grid-template-columns: 350px minmax(0, 1fr);
}

.triple {
    grid-template-columns: 1.15fr 1.15fr 0.9fr;
}

.card {
    padding: 18px;
}

.stat {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
}

.stat span {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.stat strong {
    font-size: 1.8rem;
    line-height: 1.05;
}

.stat-link {
    transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.stat-link:hover {
    transform: translateY(-2px);
    border-color: rgba(95, 176, 255, 0.28);
    background: linear-gradient(180deg, rgba(26, 35, 47, 0.98) 0%, rgba(19, 25, 34, 0.98) 100%);
}

.stat-link.active {
    border-color: rgba(95, 176, 255, 0.3);
    background: linear-gradient(180deg, rgba(28, 38, 52, 0.98) 0%, rgba(20, 27, 37, 0.98) 100%);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filters-split {
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.head-action,
.head-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(95, 176, 255, 0.08);
    border: 1px solid rgba(95, 176, 255, 0.18);
    color: var(--ink);
    font-size: 0.84rem;
    white-space: nowrap;
}

.action-pill:hover {
    background: rgba(95, 176, 255, 0.14);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(17, 23, 32, 0.72);
}

.filter-action {
    margin-left: auto;
}

.jobs-overview .stat {
    min-height: 78px;
    height: 78px;
    padding: 12px 16px 14px;
    justify-content: center;
    gap: 4px;
}

.jobs-overview {
    align-items: stretch;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    grid-auto-rows: 78px;
}

.jobs-overview .stat span {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.jobs-overview .stat strong {
    line-height: 1;
}

.filters a {
    padding: 7px 10px;
    border-radius: 9px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.2;
}

.filters a.active,
.filters a:hover {
    color: var(--ink);
    border-color: rgba(95, 176, 255, 0.24);
    background: rgba(95, 176, 255, 0.08);
}

.action-chip-button {
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d567f 0%, #3a98dc 100%);
    border: 1px solid rgba(95, 176, 255, 0.35);
    color: white;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 26px rgba(25, 93, 145, 0.24);
}

.action-chip-button:hover,
.action-chip-button.active {
    color: white;
    background: linear-gradient(135deg, #216494 0%, #49a9ef 100%);
    border-color: rgba(144, 208, 255, 0.55);
}

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

.section-head h3 {
    margin: 0;
    font-size: 1rem;
}

.section-head a,
.section-head span {
    color: var(--muted);
    font-size: 0.88rem;
}

.list-table {
    display: grid;
    gap: 10px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(20, 27, 37, 0.88);
}

.quiet-list .list-row {
    padding: 14px 0;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
}

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

.list-row.static {
    border: 1px solid var(--line-soft);
}

.list-row strong,
.job-card strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.list-row span,
.job-card span,
.path,
.note-block p,
small,
label small {
    color: var(--muted);
}

.finance-line {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
}

.meta-block {
    text-align: right;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(95, 176, 255, 0.12);
    color: #acd6ff;
    font-size: 0.76rem;
    text-transform: capitalize;
    border: 1px solid rgba(95, 176, 255, 0.15);
}

.badge-active,
.badge-paid {
    background: rgba(143, 188, 143, 0.14);
    color: #cbe9c0;
    border-color: rgba(143, 188, 143, 0.22);
}

.badge-awarded,
.badge-submitted {
    background: rgba(255, 184, 108, 0.14);
    color: #ffd8a4;
    border-color: rgba(255, 184, 108, 0.22);
}

.badge-estimating,
.badge-draft,
.badge-open {
    background: rgba(95, 176, 255, 0.12);
    color: #acd6ff;
    border-color: rgba(95, 176, 255, 0.2);
}

.badge-needed,
.badge-missing_document {
    background: rgba(255, 132, 132, 0.14);
    color: #ffb2b2;
    border-color: rgba(255, 132, 132, 0.22);
}

.badge-closed {
    background: rgba(146, 160, 179, 0.14);
    color: #d6dde7;
    border-color: rgba(146, 160, 179, 0.2);
}

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

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

.form-shell {
    padding-top: 16px;
}

.compact-inline-form {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.contractor-inline-form select,
.contractor-inline-form input {
    min-width: 0;
}

.compact-checkbox {
    min-height: 40px;
    padding: 8px 10px;
}

.field-note {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

label {
    display: grid;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--muted);
}

.checkbox-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-3);
}

.checkbox-field input {
    width: auto;
}

.contractor-other-field {
    display: none;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-3);
    color: var(--ink);
}

textarea {
    resize: vertical;
}

button {
    border: 1px solid rgba(95, 176, 255, 0.24);
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #16446f 0%, #276eae 100%);
    color: white;
    cursor: pointer;
}

.ghost-button {
    width: 100%;
    background: transparent;
    border-color: var(--line);
}

.mini-button {
    padding: 6px 8px;
    font-size: 0.74rem;
    border-radius: 9px;
    background: var(--panel-3);
    border: 1px solid var(--line);
    color: var(--ink);
}

.mini-link {
    display: inline-block;
    color: var(--accent);
    font-size: 0.78rem;
}

.focus-card {
    border-color: rgba(95, 176, 255, 0.16);
}

.inline-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 8px;
}

.job-grid {
    display: grid;
    gap: 10px;
}

.job-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 12px;
}

.job-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 16px;
    align-items: start;
    align-content: start;
}

.table-shell {
    overflow-x: auto;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
    text-align: left;
}

.data-table th {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(17, 23, 32, 0.92);
}

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

.data-table td form {
    display: grid;
    gap: 8px;
}

.data-table input,
.data-table select,
.data-table textarea {
    min-width: 120px;
}

.payroll-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1.1fr 0.9fr;
}

.employee-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1.2fr 0.8fr;
}

.compact-grid {
    gap: 10px;
}

.stack-list {
    display: grid;
    gap: 12px;
}

.stack-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line-soft);
    background: rgba(11, 16, 22, 0.72);
}

.stack-item span,
.employee-meta {
    color: var(--muted);
    font-size: 0.84rem;
}

.employee-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(95, 176, 255, 0.08);
    border: 1px solid rgba(95, 176, 255, 0.18);
    color: var(--ink);
    font-size: 0.82rem;
}

.status-ready {
    color: #cbe9c0;
}

.status-fix {
    color: #ffd8a4;
}

.job-card {
    padding: 16px;
    transition: border-color 120ms ease, transform 120ms ease;
    display: grid;
    gap: 12px;
}

.job-card:hover {
    border-color: rgba(95, 176, 255, 0.24);
    transform: translateY(-1px);
}

.job-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.job-card-body {
    display: grid;
    gap: 10px;
}

.job-card-subline {
    color: var(--muted);
    font-size: 0.86rem;
}

.job-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding-top: 2px;
}

.job-fact {
    display: grid;
    gap: 4px;
}

.job-card-line {
    display: grid;
    gap: 4px;
}

.job-card-label {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.job-tile {
    padding: 18px;
    display: grid;
    gap: 14px;
    transition: border-color 120ms ease, transform 120ms ease, background-color 120ms ease;
    align-content: start;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(95, 176, 255, 0.14);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.job-tile:hover {
    border-color: rgba(95, 176, 255, 0.3);
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(24, 32, 43, 0.98) 0%, rgba(18, 24, 33, 0.98) 100%);
}

.job-tile-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.job-tile-title strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.3;
}

.job-tile-title span {
    color: var(--muted);
    font-size: 0.9rem;
}

.job-tile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 2px;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 23, 32, 0.9);
    border: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 0.78rem;
}

.info-chip-accent {
    background: rgba(95, 176, 255, 0.1);
    border-color: rgba(95, 176, 255, 0.2);
    color: #c7e4ff;
}

.job-tile-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.job-tile-metric {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(95, 176, 255, 0.12);
    background: rgba(11, 16, 22, 0.98);
}

.job-tile-metric span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.job-tile-metric strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
}

dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    margin: 0;
}

dt {
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

dd {
    margin: 4px 0 0;
    font-size: 0.92rem;
}

.compact {
    margin-bottom: 16px;
}

.path {
    max-width: 220px;
    word-break: break-word;
    text-align: right;
    font-size: 0.82rem;
}

.note-block,
.callout {
    padding: 14px;
    border-radius: 14px;
    background: rgba(17, 23, 32, 0.88);
    border: 1px solid var(--line-soft);
}

.callout {
    margin-top: 14px;
    border-left: 3px solid var(--accent-2);
}

.callout h4,
.subhead {
    margin: 0 0 10px;
}

.divider {
    height: 1px;
    background: var(--line-soft);
    margin: 18px 0 14px;
}

.secondary-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent);
    font-size: 0.88rem;
}

.stack-block {
    display: grid;
    gap: 10px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}

.data-row span {
    color: var(--muted);
}

.empty {
    color: var(--muted);
    margin: 0;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(460px, 100%);
    padding: 28px;
    display: grid;
    gap: 18px;
    background: linear-gradient(180deg, rgba(22, 29, 39, 0.98) 0%, rgba(18, 24, 33, 1) 100%);
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.auth-brand {
    margin-bottom: 0;
}

.auth-copy h2 {
    margin: 6px 0 8px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 184, 108, 0.24);
    background: rgba(255, 184, 108, 0.08);
    color: #ffd9a7;
}

@media (max-width: 1200px) {
    .card-grid,
    .card-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .job-card-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }

    .job-board {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 1000px) {
    .layout,
    .split,
    .split-tight,
    .payroll-grid,
    .employee-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .content {
        padding: 18px;
    }

    .hero-simple,
    .page-head-simple {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .card-grid,
    .card-grid-four,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .jobs-overview {
        grid-template-columns: 1fr;
    }

    .filters-split {
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-action {
        margin-left: 0;
        width: 100%;
    }

    .action-chip-button {
        width: 100%;
        text-align: center;
    }

    .list-row,
    .job-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-block,
    .path {
        text-align: left;
    }

    .inline-actions,
    .data-row {
        justify-content: flex-start;
    }

    .job-card-grid {
        grid-template-columns: 1fr;
    }

    .job-facts {
        grid-template-columns: 1fr;
    }

    .job-tile-head {
        flex-direction: column;
    }

    .job-tile-metrics {
        grid-template-columns: 1fr;
    }
}
