*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    min-width: 320px;
    background: #f4f7f6;
    color: #17212b;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    letter-spacing: 0;
}

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

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

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfd9e3;
    border-radius: 8px;
    background: #ffffff;
    color: #17212b;
    padding: 10px 12px;
}

textarea {
    resize: vertical;
}

label {
    display: grid;
    gap: 6px;
    color: #526274;
    font-size: 13px;
    font-weight: 800;
}

code {
    padding: 2px 5px;
    border-radius: 6px;
    background: #eef3f8;
    color: #0e6f5a;
}

.site-header {
    min-height: 72px;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #dce5ed;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.brand span {
    display: grid;
}

.brand strong {
    line-height: 1.15;
}

.brand small,
.muted-text,
.note,
.section-heading p {
    color: #607286;
}

.top-actions,
.hero-buttons,
.install-actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quiet-link {
    color: #475569;
    font-size: 14px;
    font-weight: 800;
}

.quiet-link:hover,
.table-link {
    color: #0f7b63;
}

.flash,
.inline-alert {
    width: min(1120px, calc(100% - 36px));
    margin: 16px auto 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d5e4f0;
    background: #ffffff;
    color: #17212b;
}

.flash-success {
    border-color: #bfe5d7;
    background: #effaf5;
}

.flash-error,
.inline-alert {
    border-color: #f2c5be;
    background: #fff2ef;
}

.hero-band {
    min-height: 540px;
    padding: 58px 32px 42px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 34px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(15, 123, 99, 0.14), transparent 38%),
        linear-gradient(315deg, rgba(72, 104, 180, 0.12), transparent 42%),
        #ffffff;
    border-bottom: 1px solid #dce5ed;
}

.hero-copy,
.content-band,
.site-footer,
.app-shell,
.narrow-page {
    width: min(1120px, 100%);
    margin-inline: auto;
}

.hero-copy {
    margin-right: 0;
}

.status-line,
.eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #526274;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.status-line {
    padding: 8px 10px;
    border: 1px solid #d6e1e9;
    border-radius: 8px;
    background: #ffffff;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #0f9f79;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    margin-top: 16px;
    max-width: 760px;
    font-size: 50px;
    line-height: 1.04;
    font-weight: 860;
    letter-spacing: 0;
}

h2 {
    font-size: 28px;
    line-height: 1.2;
}

.lead {
    max-width: 700px;
    margin-top: 18px;
    color: #4e6074;
    font-size: 18px;
}

.hero-buttons {
    margin-top: 28px;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.icon-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

.primary-btn {
    background: #0f7b63;
    color: #ffffff;
}

.primary-btn:hover {
    background: #0b6954;
}

.secondary-btn,
.icon-btn {
    background: #ffffff;
    color: #1d2937;
    border-color: #cfd9e3;
}

.secondary-btn:hover,
.icon-btn:hover {
    border-color: #0f7b63;
    color: #0b6954;
}

.danger-btn {
    background: #fff2ef;
    color: #b42318;
    border-color: #f2c5be;
}

.phone-preview {
    width: min(380px, 100%);
    min-height: 430px;
    margin-left: 0;
    padding: 24px;
    border: 10px solid #17212b;
    border-radius: 28px;
    background: #edf3f2;
    box-shadow: 0 20px 50px rgba(23, 33, 43, 0.16);
}

.phone-top {
    width: 82px;
    height: 7px;
    margin: 0 auto 22px;
    border-radius: 999px;
    background: #17212b;
}

.phone-card {
    margin-top: 12px;
    padding: 18px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #d8e3ec;
}

.phone-card span {
    color: #607286;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.phone-card strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
}

.phone-row {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
}

.phone-card.accent {
    background: #e9f7f1;
}

.content-band,
.app-shell,
.narrow-page {
    padding: 40px 32px;
}

.narrow-page {
    max-width: 760px;
}

.panel,
.feature-grid article,
.stats-grid article {
    border: 1px solid #dbe5ed;
    border-radius: 8px;
    background: #ffffff;
}

.panel {
    padding: 22px;
}

.section-heading {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
}

.section-heading span,
.feature-grid strong {
    color: #607286;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.feature-grid,
.stats-grid,
.claim-layout,
.form-grid {
    display: grid;
    gap: 14px;
}

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

.feature-grid article {
    padding: 20px;
}

.feature-grid p {
    margin-top: 8px;
    color: #526274;
}

.muted-band {
    padding-top: 10px;
}

.steps {
    margin: 0;
    padding-left: 22px;
    color: #44576b;
}

.steps li + li {
    margin-top: 8px;
}

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

.dashboard-head h1 {
    margin-top: 4px;
    font-size: 36px;
}

.stats-grid {
    margin-bottom: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid article {
    padding: 16px;
}

.stats-grid span {
    color: #607286;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.stats-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 30px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

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

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

.claims-table th,
.claims-table td {
    padding: 13px 10px;
    text-align: left;
    border-bottom: 1px solid #e5edf3;
    vertical-align: middle;
}

.claims-table th {
    color: #607286;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.empty-cell {
    color: #607286;
    text-align: center;
}

.status-pill {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: #edf3f8;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
}

.status-ready,
.status-approved {
    background: #e9f8f2;
    color: #0a715b;
}

.status-submitted {
    background: #ecf1ff;
    color: #3657a6;
}

.status-rejected {
    background: #fff0ed;
    color: #a23a2d;
}

.status-closed {
    background: #eef1f4;
    color: #405064;
}

.claim-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    align-items: start;
}

.claim-form,
.stacked-form {
    display: grid;
    gap: 16px;
}

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

.upload-panel {
    position: sticky;
    top: 94px;
}

.compact-heading {
    margin-bottom: 12px;
}

.file-list {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e2ebf2;
    border-radius: 8px;
    background: #f9fbfc;
}

.file-item div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.file-item a {
    color: #0f7b63;
    overflow-wrap: anywhere;
}

.file-item span {
    color: #607286;
    font-size: 12px;
}

.install-list {
    overflow: hidden;
    border: 1px solid #dbe5ed;
    border-radius: 8px;
}

.install-row {
    padding: 16px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #e5edf3;
}

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

.install-row p {
    margin-top: 3px;
    color: #607286;
}

.ok-mark,
.warn-mark {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 5px;
    border-radius: 999px;
}

.ok-mark {
    background: #0f9f79;
}

.warn-mark {
    background: #e5a63b;
}

.install-actions {
    margin-top: 18px;
}

.note {
    margin-top: 14px;
    font-size: 13px;
}

.site-footer {
    padding: 24px 32px 38px;
    display: flex;
    justify-content: space-between;
    color: #607286;
    font-size: 13px;
}

@media (max-width: 860px) {
    .site-header,
    .dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header {
        padding: 12px 18px;
    }

    .hero-band {
        min-height: auto;
        padding: 38px 18px 30px;
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 36px;
    }

    .lead {
        font-size: 16px;
    }

    .content-band,
    .app-shell,
    .narrow-page {
        padding: 28px 18px;
    }

    .feature-grid,
    .stats-grid,
    .claim-layout,
    .form-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .upload-panel {
        position: static;
    }

    .site-footer {
        padding-inline: 18px;
        flex-direction: column;
        gap: 6px;
    }
}
