:root {
    color-scheme: light;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #eef4f7;
    --text: #17202a;
    --muted: #667085;
    --line: #d8e1e8;
    --primary: #145c63;
    --primary-strong: #0f444a;
    --accent: #c75d37;
    --good: #18824d;
    --warn: #b7791f;
    --danger: #bd3535;
    --shadow: 0 18px 45px rgba(25, 39, 52, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0;
    color: var(--text);
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    flex: 0 0 auto;
    font-size: 14px;
}

.brand-logo {
    width: 220px;
    height: 58px;
    flex: 0 0 auto;
    object-fit: contain;
    background: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-actions a:not(.button) {
    color: var(--muted);
    font-weight: 700;
    padding: 8px 4px;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 112px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 10px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(20, 92, 99, 0.22);
}

.button-primary:hover {
    background: var(--primary-strong);
    color: #fff;
}

.button-subtle {
    background: #fff;
    color: var(--primary);
    border-color: var(--line);
}

.button-danger {
    background: #bd3535;
    color: #fff;
    border-color: #bd3535;
}

.button-danger:hover {
    background: #9f2c2c;
    color: #fff;
}

.button-full {
    width: 100%;
}

.notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 700;
}

.notice-success {
    border-color: rgba(24, 130, 77, 0.28);
    color: var(--good);
}

.notice-error {
    border-color: rgba(189, 53, 53, 0.28);
    color: var(--danger);
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
    gap: 24px;
    align-items: stretch;
    min-height: calc(100vh - 150px);
}

.auth-panel,
.form-card,
.panel,
.metric-card,
.score-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    background: linear-gradient(135deg, #ffffff 0%, #eaf5f0 55%, #f5ebe7 100%);
}

.auth-panel h1,
.page-header h1 {
    max-width: 720px;
    margin: 0;
    font-size: 40px;
    line-height: 1.08;
}

.auth-copy {
    max-width: 560px;
    color: var(--muted);
    font-size: 18px;
}

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    max-width: 430px;
    gap: 10px;
    margin-top: 22px;
}

.mini-metrics span,
.mini-metrics strong {
    display: block;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(216, 225, 232, 0.8);
    border-radius: var(--radius);
}

.mini-metrics span {
    color: var(--muted);
}

.form-card {
    align-self: center;
    padding: 28px;
}

.form-card h2,
.panel h2,
.panel h3 {
    margin: 0;
}

label {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    color: var(--text);
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font: inherit;
    padding: 12px 13px;
    outline: none;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(20, 92, 99, 0.12);
}

.form-note,
.muted,
.field-count,
small {
    color: var(--muted);
}

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

.page-header h1,
.auth-panel h1,
.panel h2,
.executive-banner h2 {
    font-weight: 750;
    letter-spacing: 0;
}

.executive-board {
    position: relative;
    overflow: hidden;
    padding: 22px;
    margin-bottom: 22px;
    background: #f1f4f8;
}

.executive-board::after {
    content: "RJ";
    position: absolute;
    right: 33%;
    bottom: -58px;
    color: rgba(0, 0, 0, 0.05);
    font-size: 96px;
    font-weight: 900;
    transform: rotate(-42deg);
    pointer-events: none;
}

.executive-banner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    min-height: 104px;
    padding: 12px 26px;
    border-radius: 14px;
    background: #080808;
    color: #fff;
}

.executive-banner img {
    width: 320px;
    height: 96px;
    object-fit: contain;
    background: transparent;
}

.executive-banner h2 {
    margin: 0;
    color: #d8b52a;
    font-size: 24px;
    line-height: 1.15;
    text-transform: uppercase;
}

.executive-banner p {
    margin: 8px 0 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.executive-banner span {
    margin: 0 6px;
    color: #d8b52a;
}

.executive-top-grid,
.executive-bottom-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
}

.executive-top-grid {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.7fr);
    margin-top: 28px;
}

.executive-bottom-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
    margin-top: 28px;
}

.prepared-card,
.readiness-card,
.snapshot-card {
    min-width: 0;
    border-radius: 16px;
    background: #fff;
    padding: 22px;
}

.prepared-card h3,
.readiness-card h3,
.snapshot-card h3 {
    margin: 0 0 18px;
    color: #24364d;
    font-size: 18px;
}

.prepared-card p {
    margin: 5px 0;
    color: #53606f;
    font-size: 13px;
}

.prepared-card strong {
    display: inline-flex;
    margin-top: 12px;
    color: #24364d;
    font-size: 13px;
}

.executive-score-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: center;
}

.executive-score-tile {
    min-width: 0;
    min-height: 96px;
    padding: 20px 18px;
    border-radius: 14px;
    color: #fff;
}

.executive-score-tile span {
    display: block;
    overflow-wrap: anywhere;
    font-size: 17px;
}

.executive-score-tile strong {
    display: block;
    margin-top: 8px;
    overflow-wrap: anywhere;
    font-size: 23px;
    line-height: 1.1;
}

.tile-blue {
    background: #3b82f6;
}

.tile-green {
    background: #22c55e;
}

.tile-purple {
    background: #a855f7;
}

.tile-orange {
    background: #f59e0b;
}

.readiness-row {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.readiness-row span {
    color: #4a5565;
    font-weight: 700;
}

.progress-track {
    height: 26px;
    overflow: hidden;
    border-radius: 999px;
    background: #dedede;
}

.progress-track b {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.progress-blue {
    background: #3b82f6;
}

.progress-green {
    background: #22c55e;
}

.snapshot-list {
    display: grid;
    gap: 8px;
}

.snapshot-list span {
    min-height: 31px;
    padding: 7px 16px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.snapshot-good {
    background: #22c55e;
}

.snapshot-warn {
    background: #f59e0b;
}

.snapshot-danger {
    background: #ef4444;
}

.dashboard-detail-grid {
    align-items: start;
}

.report-brand-banner {
    margin-bottom: 18px;
    border-radius: var(--radius);
}

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 30px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

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

.metric-card {
    padding: 18px;
    box-shadow: none;
}

.metric-card span,
.score-breakdown span {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    line-height: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 18px 0;
}

.panel {
    padding: 22px;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 5px 12px;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.chart-panel canvas {
    width: 100% !important;
    max-height: 280px;
}

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

.report-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
}

.report-row span {
    min-width: 0;
}

.report-row strong,
.report-row small {
    display: block;
    overflow-wrap: anywhere;
}

.empty-state {
    display: grid;
    place-items: start;
    gap: 10px;
    padding: 26px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

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

.form-section-wide,
.submit-bar {
    grid-column: 1 / -1;
}

.drop-zone {
    min-height: 148px;
    margin-top: 4px;
    place-items: center;
    border: 2px dashed #aebdc7;
    border-radius: var(--radius);
    background: var(--surface-soft);
    text-align: center;
    cursor: pointer;
}

.drop-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.drop-zone.is-dragging {
    border-color: var(--primary);
    background: #e4f1ee;
}

.drop-title {
    color: var(--primary);
    font-size: 18px;
    font-weight: 900;
}

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

.two-col {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
}

.submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 0 4px;
    background: linear-gradient(180deg, rgba(244, 247, 251, 0), var(--bg) 36%);
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.report-hero {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.score-card {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 22px;
}

.score-ring {
    --score: 0%;
    display: grid;
    width: 190px;
    height: 190px;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle closest-side, #fff 72%, transparent 73%),
        conic-gradient(var(--ring-color) var(--score), #e6edf2 0);
}

.score-ring strong {
    margin-top: 28px;
    font-size: 42px;
    line-height: 1;
}

.score-ring span {
    margin-top: -56px;
    color: var(--muted);
    font-weight: 900;
}

.score-good {
    --ring-color: var(--good);
    color: var(--good);
}

.score-mid {
    --ring-color: var(--warn);
    color: var(--warn);
}

.score-low {
    --ring-color: var(--danger);
    color: var(--danger);
}

.report-summary {
    box-shadow: none;
}

.report-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 0;
}

.report-meta div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.report-meta dt {
    color: var(--muted);
    font-weight: 800;
}

.report-meta dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.score-breakdown {
    box-shadow: none;
}

.score-breakdown strong {
    display: block;
    margin: 8px 0;
    font-size: 30px;
}

.tag-cloud,
.section-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag,
.section-checks span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.tag-good,
.present {
    background: rgba(24, 130, 77, 0.12);
    color: var(--good);
}

.tag-warn,
.missing {
    background: rgba(183, 121, 31, 0.13);
    color: var(--warn);
}

.insight-list,
.action-list {
    margin: 0;
    padding-left: 20px;
}

.insight-list li,
.action-list li {
    margin: 10px 0;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.admin-stat,
.user-admin-card,
.table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.admin-stat {
    padding: 18px;
}

.admin-stat span {
    color: var(--muted);
    font-weight: 800;
}

.admin-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 32px;
    line-height: 1;
}

.admin-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.admin-panel .panel-heading {
    margin-bottom: 14px;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    font-size: 14px;
}

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

.admin-table th {
    color: #344054;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

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

.admin-table small {
    display: block;
    margin-top: 2px;
}

.table-separator {
    color: var(--line);
    margin: 0 6px;
}

.admin-user-list {
    display: grid;
    gap: 16px;
}

.user-admin-card {
    padding: 18px;
}

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

.user-admin-head strong,
.user-admin-head small {
    display: block;
    overflow-wrap: anywhere;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 900;
}

.status-active {
    background: rgba(24, 130, 77, 0.12);
    color: var(--good);
}

.status-inactive {
    background: rgba(189, 53, 53, 0.12);
    color: var(--danger);
}

.status-waiting {
    background: rgba(254, 240, 138, 0.65);
    color: #a16207;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-form-grid label {
    margin: 0;
}

.usage-summary {
    display: grid;
    align-content: center;
    min-height: 84px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: var(--surface-soft);
}

.usage-summary span,
.usage-summary small {
    color: var(--muted);
    font-weight: 800;
}

.usage-summary strong {
    color: var(--text);
    font-size: 24px;
    line-height: 1;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.permission-grid legend {
    padding: 0 6px;
    color: #344054;
    font-weight: 900;
}

.check-control {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #344054;
    font-weight: 750;
}

.check-control input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.user-card-actions {
    display: flex;
    justify-content: flex-end;
}

.user-admin-card > form + form {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.upgrade-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 20px;
    align-items: center;
    margin: 18px 0;
    padding: 24px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(224,242,254,0.7));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.upgrade-panel h2,
.detailed-report-panel h2 {
    margin: 0;
    color: #075985;
    font-size: 20px;
    font-weight: 650;
}

.upgrade-panel p,
.detail-lead,
.coupon-help p {
    color: #475569;
}

.upgrade-form {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(125, 190, 226, 0.32);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
}

.upgrade-form label {
    margin: 0;
}

.upgrade-price {
    display: grid;
    gap: 2px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(240, 249, 255, 0.82);
}

.upgrade-price span,
.upgrade-price small {
    color: #64748b;
    font-weight: 500;
}

.upgrade-price strong {
    color: #075985;
    font-size: 22px;
    font-weight: 650;
}

.detailed-report-panel {
    margin: 18px 0;
}

.detail-section {
    min-width: 0;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(125, 190, 226, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
}

.detail-section h3 {
    margin: 0 0 12px;
    color: #075985;
    font-size: 16px;
    font-weight: 650;
}

.detail-change-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-change-card,
.rewrite-block {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(125, 190, 226, 0.28);
    border-radius: 12px;
    background: rgba(248, 252, 255, 0.78);
}

.detail-change-card > span,
.rewrite-block > span {
    display: block;
    color: #0369a1;
    font-size: 13px;
    font-weight: 650;
}

.detail-change-card p,
.rewrite-block p {
    margin: 8px 0;
}

.detail-change-card small,
.rewrite-block small {
    display: block;
}

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

.rewrite-pair div {
    padding: 10px;
    border-radius: 10px;
    background: rgba(224, 242, 254, 0.56);
}

.rewrite-pair b,
.rewrite-block b {
    color: #0f172a;
    font-weight: 650;
}

.rewrite-block + .rewrite-block {
    margin-top: 12px;
}

blockquote {
    margin: 10px 0 0;
    padding: 12px 14px;
    border-left: 3px solid #38bdf8;
    border-radius: 10px;
    background: rgba(224, 242, 254, 0.54);
    color: #334155;
}

.coupon-help {
    display: grid;
    gap: 10px;
}

.coupon-help p {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(240, 249, 255, 0.72);
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.payment-summary h2 {
    margin: 0;
    color: #075985;
    font-size: 24px;
    font-weight: 650;
}

.payment-meta {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.payment-meta div {
    padding: 11px 12px;
    border: 1px solid rgba(125, 190, 226, 0.28);
    border-radius: 12px;
    background: rgba(240, 249, 255, 0.62);
}

.payment-meta dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.payment-meta dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    color: #172033;
    font-weight: 600;
}

.qr-payment-box {
    display: grid;
    gap: 12px;
    justify-items: start;
    margin-bottom: 16px;
}

.qr-payment-box img,
.qr-placeholder {
    width: min(100%, 260px);
    aspect-ratio: 1;
    border: 1px solid rgba(125, 190, 226, 0.34);
    border-radius: 16px;
    background: rgba(255,255,255,0.76);
    object-fit: contain;
}

.qr-placeholder {
    display: grid;
    place-items: center;
    padding: 18px;
    text-align: center;
}

.qr-placeholder strong,
.qr-placeholder span {
    display: block;
}

.payment-proof-form {
    display: grid;
    gap: 12px;
}

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

.notice-inline {
    color: #b45309;
    font-weight: 600;
}

@media (max-width: 940px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .auth-grid,
    .content-grid,
    .analysis-form,
    .report-hero,
    .executive-top-grid,
    .executive-bottom-grid,
    .upgrade-panel,
    .payment-layout {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .score-grid,
    .executive-score-grid,
    .admin-stat-grid,
    .admin-form-grid,
    .permission-grid,
    .detail-change-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-col,
    .report-meta {
        grid-template-columns: 1fr;
    }

    .auth-panel h1,
    .page-header h1 {
        font-size: 32px;
    }

    .executive-banner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px 16px;
    }

    .executive-banner img {
        width: min(100%, 260px);
        height: 76px;
    }

    .executive-banner h2 {
        font-size: 19px;
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(100% - 22px, 1180px);
        padding-top: 18px;
    }

    .topbar {
        padding: 12px 14px;
    }

    .brand {
        width: 100%;
    }

    .brand-logo {
        width: 180px;
        height: 48px;
    }

    .nav-actions .button,
    .nav-actions a:not(.button) {
        flex: 1 1 auto;
    }

    .auth-panel,
    .form-card,
    .panel,
    .metric-card,
    .score-card {
        padding: 18px;
    }

    .auth-grid {
        min-height: auto;
    }

    .page-header {
        flex-direction: column;
    }

    .header-actions,
    .submit-bar {
        width: 100%;
        justify-content: stretch;
    }

    .header-actions .button,
    .submit-bar .button {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 10px;
    }

    .stats-grid,
    .score-grid,
    .executive-score-grid,
    .admin-stat-grid,
    .admin-form-grid,
    .permission-grid,
    .detail-change-grid,
    .rewrite-pair {
        grid-template-columns: 1fr;
    }

    .executive-board {
        padding: 14px;
    }

    .executive-banner {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .executive-banner h2 {
        font-size: 18px;
    }

    .executive-banner p {
        font-size: 13px;
    }

    .executive-score-tile {
        min-height: 82px;
    }

    .metric-card strong {
        font-size: 30px;
    }

    .report-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .score-card {
        min-height: 230px;
    }

    .score-ring {
        width: 172px;
        height: 172px;
    }
}

@media print {
    .topbar,
    .header-actions,
    .submit-bar {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .page-shell {
        width: 100%;
        padding: 0;
    }

    .panel,
    .score-card,
    .metric-card {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* Light glass sky theme */
:root {
    --bg: #eef8ff;
    --surface: rgba(255, 255, 255, 0.74);
    --surface-soft: rgba(240, 249, 255, 0.72);
    --text: #172033;
    --muted: #64748b;
    --line: rgba(125, 190, 226, 0.32);
    --primary: #0284c7;
    --primary-strong: #0369a1;
    --accent: #0ea5e9;
    --good: #059669;
    --warn: #d97706;
    --danger: #dc2626;
    --shadow: 0 18px 44px rgba(14, 116, 144, 0.11);
}

body {
    background: linear-gradient(135deg, #f8fcff 0%, #eef8ff 48%, #e6f7ff 100%);
    font-family: "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
}

.topbar {
    background: rgba(255, 255, 255, 0.68);
    border-bottom-color: rgba(14, 165, 233, 0.18);
    box-shadow: 0 8px 28px rgba(14, 116, 144, 0.07);
}

.brand {
    font-size: 14.5px;
    font-weight: 600;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}

.nav-actions a:not(.button),
.button,
.notice,
label,
.eyebrow,
.pill,
.tag,
.section-checks span,
.snapshot-list span,
.admin-table th,
.status-pill,
.permission-grid legend {
    font-weight: 600;
}

.button {
    min-height: 38px;
    min-width: 104px;
    padding: 9px 14px;
    border-radius: 10px;
    box-shadow: none;
}

.button-primary {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.18);
}

.button-subtle {
    background: rgba(255, 255, 255, 0.72);
    color: #0369a1;
}

.auth-panel,
.form-card,
.panel,
.metric-card,
.score-card,
.prepared-card,
.readiness-card,
.snapshot-card,
.admin-stat,
.user-admin-card,
.table-wrap,
.report-meta div,
.empty-state,
.usage-summary {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(125, 190, 226, 0.34);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.auth-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(224,242,254,0.68));
}

.auth-panel h1,
.page-header h1 {
    max-width: 680px;
    font-size: 30px;
    line-height: 1.18;
    font-weight: 650;
}

.auth-copy {
    font-size: 15.5px;
}

.form-card h2,
.panel h2 {
    font-size: 18px;
    font-weight: 620;
}

.panel h3,
.prepared-card h3,
.readiness-card h3,
.snapshot-card h3 {
    font-size: 15.5px;
    font-weight: 620;
}

input,
textarea,
select {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(125, 190, 226, 0.4);
    border-radius: 10px;
    padding: 10px 12px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.executive-board {
    border: 1px solid rgba(125, 190, 226, 0.28);
    border-radius: 18px;
    background: rgba(240, 249, 255, 0.58);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.executive-board::after {
    color: rgba(2, 132, 199, 0.06);
    font-size: 74px;
    font-weight: 500;
}

.executive-banner {
    min-height: 92px;
    border: 1px solid rgba(125, 190, 226, 0.36);
    background: linear-gradient(135deg, rgba(255,255,255,0.76), rgba(224,242,254,0.68));
    color: var(--text);
    box-shadow: 0 14px 34px rgba(14, 116, 144, 0.09);
}

.executive-banner h2 {
    color: #075985;
    font-size: 20px;
    font-weight: 650;
    text-transform: none;
}

.executive-banner p {
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

.executive-banner span {
    color: #0ea5e9;
}

.executive-score-tile {
    min-height: 84px;
    color: #0f172a;
    border: 1px solid rgba(125, 190, 226, 0.26);
    box-shadow: 0 12px 28px rgba(14, 116, 144, 0.08);
}

.executive-score-tile span {
    font-size: 14px;
    font-weight: 500;
}

.executive-score-tile strong {
    font-size: 20px;
    font-weight: 650;
}

.tile-blue {
    background: linear-gradient(135deg, rgba(186,230,253,0.92), rgba(125,211,252,0.78));
}

.tile-green {
    background: linear-gradient(135deg, rgba(209,250,229,0.94), rgba(110,231,183,0.74));
}

.tile-purple {
    background: linear-gradient(135deg, rgba(237,233,254,0.96), rgba(196,181,253,0.72));
}

.tile-orange {
    background: linear-gradient(135deg, rgba(255,237,213,0.96), rgba(253,186,116,0.72));
}

.prepared-card p,
.readiness-row span,
.report-meta dt,
.metric-card span,
.score-breakdown span,
.admin-stat span,
.usage-summary span,
.usage-summary small {
    font-weight: 500;
}

.prepared-card strong,
.metric-card strong,
.admin-stat strong,
.usage-summary strong,
.report-row strong,
.admin-table strong,
.user-admin-head strong {
    font-weight: 650;
}

.metric-card strong,
.admin-stat strong {
    font-size: 26px;
}

.score-breakdown strong {
    font-size: 24px;
    font-weight: 650;
}

.score-card {
    min-height: 220px;
}

.score-ring {
    width: 158px;
    height: 158px;
}

.score-ring strong {
    font-size: 32px;
    font-weight: 650;
}

.score-ring span {
    color: #64748b;
    font-weight: 550;
}

.progress-track {
    height: 18px;
    background: rgba(148, 163, 184, 0.25);
}

.progress-blue {
    background: linear-gradient(90deg, #7dd3fc, #38bdf8);
}

.progress-green {
    background: linear-gradient(90deg, #86efac, #22c55e);
}

.snapshot-list span,
.tag,
.section-checks span,
.status-pill {
    color: #0f172a;
}

.snapshot-good,
.tag-good,
.present,
.status-active {
    background: rgba(187, 247, 208, 0.68);
    color: #047857;
}

.snapshot-warn,
.tag-warn,
.missing {
    background: rgba(254, 215, 170, 0.72);
    color: #b45309;
}

.snapshot-danger,
.status-inactive {
    background: rgba(254, 202, 202, 0.72);
    color: #b91c1c;
}

.eyebrow {
    color: #0284c7;
    font-size: 11.5px;
    letter-spacing: 0;
}

.pill {
    background: rgba(224, 242, 254, 0.86);
    color: #0369a1;
}

.drop-title {
    font-size: 15.5px;
    font-weight: 600;
}

.drop-zone {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(240, 249, 255, 0.72);
}

.submit-bar {
    background: linear-gradient(180deg, rgba(238, 248, 255, 0), rgba(238, 248, 255, 0.94) 42%);
}

.admin-table th {
    background: rgba(240, 249, 255, 0.86);
}

.site-footer {
    font-weight: 500;
    color: #64748b;
}

.page-home .page-shell {
    width: min(1220px, calc(100% - 28px));
    padding-top: 22px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 30px;
    align-items: stretch;
    padding: 28px 0 18px;
}

.landing-hero-copy,
.landing-hero-panel,
.landing-band,
.landing-panel,
.service-card,
.price-card {
    border: 1px solid rgba(125, 190, 226, 0.24);
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(239,248,255,0.72));
    box-shadow: 0 18px 46px rgba(14, 116, 144, 0.09);
    backdrop-filter: blur(16px);
}

.landing-hero-copy {
    padding: 42px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(186,230,253,0.7), transparent 40%),
        linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,249,255,0.86));
}

.landing-hero-copy h1 {
    max-width: 760px;
    margin: 10px 0 0;
    font-size: 56px;
    line-height: 1.02;
}

.landing-lead {
    max-width: 720px;
    margin: 18px 0 0;
    color: #475569;
    font-size: 18px;
}

.landing-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.landing-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.landing-metrics div {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(125, 190, 226, 0.2);
    background: rgba(255,255,255,0.66);
}

.landing-metrics span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.landing-metrics strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 650;
}

.landing-hero-panel {
    padding: 22px;
    border-radius: 22px;
}

.hero-glass-card {
    height: 100%;
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.94), rgba(16, 24, 40, 0.88));
    color: #e2e8f0;
}

.hero-glass-card h2 {
    margin: 10px 0 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.18;
}

.hero-feature-list,
.price-list {
    margin: 18px 0 0;
    padding-left: 20px;
    color: inherit;
}

.hero-feature-list li,
.price-list li {
    margin-bottom: 10px;
}

.landing-band,
.landing-grid-two,
.landing-services,
.landing-pricing {
    margin-top: 24px;
}

.landing-band {
    padding: 30px 34px;
    border-radius: 22px;
}

.landing-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.landing-panel,
.service-card,
.price-card {
    padding: 28px;
    border-radius: 22px;
}

.landing-section-head h2,
.landing-panel h2,
.service-card h3,
.price-card h3 {
    margin: 8px 0 0;
}

.landing-copy {
    max-width: 880px;
    margin: 14px 0 0;
    color: #475569;
    font-size: 17px;
}

.landing-card-grid,
.landing-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 18px;
}

.service-card p,
.price-card p,
.landing-panel p {
    color: #475569;
}

.price-card strong {
    display: block;
    margin-top: 12px;
    color: #0f172a;
    font-size: 32px;
    font-weight: 650;
}

.price-card.featured {
    position: relative;
    overflow: hidden;
    border-color: rgba(14, 165, 233, 0.28);
    background:
        radial-gradient(circle at top right, rgba(125,211,252,0.38), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(224,242,254,0.86));
}

.landing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

@media (max-width: 1080px) {
    .landing-hero,
    .landing-grid-two,
    .landing-card-grid,
    .landing-pricing-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero-copy h1 {
        font-size: 42px;
    }

    .landing-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .landing-hero-copy,
    .landing-hero-panel,
    .landing-band,
    .landing-panel,
    .service-card,
    .price-card {
        padding: 22px;
    }

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

    .landing-hero-copy h1 {
        font-size: 34px;
    }

    .landing-lead,
    .landing-copy {
        font-size: 16px;
    }
}

@media (max-width: 940px) {
    .auth-panel h1,
    .page-header h1 {
        font-size: 27px;
    }
}

@media (max-width: 620px) {
    .auth-panel h1,
    .page-header h1 {
        font-size: 24px;
    }

    .score-ring {
        width: 140px;
        height: 140px;
    }
}

@media print {
    body {
        background: #fff;
    }

    .auth-panel,
    .form-card,
    .panel,
    .metric-card,
    .score-card,
    .prepared-card,
    .readiness-card,
    .snapshot-card,
    .admin-stat,
    .user-admin-card,
    .table-wrap {
        background: #fff;
        box-shadow: none;
        backdrop-filter: none;
    }
}
