:root {
    --bg: #07070b;
    --panel: #11111a;
    --panel2: #171724;
    --border: #2a2a3b;
    --text: #f4f4fb;
    --muted: #9fa3b7;
    --purple: #8b5cf6;
    --cyan: #00e5ff;
    --green: #35d07f;
    --red: #ff5577;
    --amber: #f5b942
}

html {
    font-family: "Saira", sans-serif;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(circle at top right, #16102a 0, #07070b 35%);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    background: rgba(10, 10, 16, .96);
    border-right: 1px solid var(--border);
    padding: 22px;
    display: flex;
    flex-direction: column;
    z-index: 10
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand.large {
    margin-bottom: 28px
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--cyan);
    border-radius: 12px;
    color: var(--cyan);
    font-weight: 800;
    box-shadow: 0 0 24px #00e5ff33
}

.brand small,
.userbox small {
    display: block;
    color: var(--muted)
}

nav {
    display: grid;
    gap: 8px;
    margin-top: 34px
}

nav a,
.link-btn {
    color: #d8daea;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer
}

nav a:hover,
.link-btn:hover {
    background: #ffffff0d;
    color: var(--cyan)
}

.userbox {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 18px
}

.content {
    margin-left: 240px;
    padding: 30px;
    min-height: 100vh
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center
}

.login-card {
    width: min(440px, 92vw);
    background: rgba(17, 17, 26, .92);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 30px 90px #0008
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px
}

.page-head h1 {
    margin: 0;
    font-size: 28px
}

.page-head p {
    margin: 4px 0 0;
    color: var(--muted)
}

.actions,
.inline-form,
.filters,
.project-nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap
}

.project-nav {
    margin-bottom: 18px
}

.project-nav a {
    padding: 9px 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none
}

.card {
    background: linear-gradient(180deg, #151520, #101018);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 12px 32px #0003
}

.card h2 {
    margin-top: 0
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px
}

.stat {
    background: linear-gradient(145deg, #151520, #101018);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px
}

.stat span {
    color: var(--muted);
    display: block
}

.stat b {
    font-size: 30px;
    color: var(--cyan)
}

.stat .smalltext {
    font-size: 18px
}

.readiness {
    max-width: 280px;
    margin-bottom: 18px
}

table {
    width: 100%;
    border-collapse: collapse
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top
}

th {
    color: #bfc3d8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em
}

a {
    color: var(--cyan)
}

small,
.muted {
    color: var(--muted)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #1b1b29;
    color: #fff;
    text-decoration: none;
    cursor: pointer
}

.btn.primary {
    background: linear-gradient(90deg, var(--purple), #6d4ce8);
    border-color: #9c7cff
}

.btn.small {
    padding: 5px 9px;
    font-size: 12px
}

.w100 {
    width: 100%
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.span2 {
    grid-column: 1/-1
}

label {
    display: grid;
    gap: 6px;
    color: #c7cad9
}

input,
select,
textarea {
    width: 100%;
    background: #09090e;
    border: 1px solid #303044;
    border-radius: 9px;
    padding: 10px;
    color: #fff;
    outline: none
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px #8b5cf622
}

textarea {
    min-height: 90px;
    resize: vertical
}

.check {
    display: flex;
    align-items: center;
    gap: 8px
}

.check input {
    width: auto
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ffffff12;
    color: #d9dbea;
    font-size: 12px
}

.severity {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px
}

.severity.critical {
    background: #7f1d1d;
    color: #fecaca
}

.severity.high {
    background: #7c2d12;
    color: #fed7aa
}

.severity.medium {
    background: #713f12;
    color: #fde68a
}

.severity.low {
    background: #164e63;
    color: #a5f3fc
}

.severity.informational {
    background: #312e81;
    color: #c7d2fe
}

.progress {
    height: 8px;
    background: #242436;
    border-radius: 99px;
    overflow: hidden;
    min-width: 100px
}

.progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--cyan))
}

.metric-row,
.report-metric {
    display: grid;
    grid-template-columns: 220px 1fr 55px;
    gap: 12px;
    align-items: center;
    margin: 12px 0
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px
}

.alert.success {
    background: #123d2a;
    color: #b9f6d2
}

.alert.error {
    background: #4b1723;
    color: #ffc6d3
}

.activity,
.item,
.comment,
.evidence,
.roadmap-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border)
}

.activity small,
.item small,
.evidence small {
    display: block
}

.callout {
    background: #0b1220;
    border-left: 3px solid var(--cyan);
    padding: 14px;
    border-radius: 8px
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.pillar-card {
    background: #0d0d15;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px
}

.report-actions {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #07070be8;
    padding: 10px 0;
    margin-bottom: 10px
}

.report {
    max-width: 1100px;
    margin: auto;
    background: #fff;
    color: #171721
}

.report-cover,
.report-page {
    min-height: 900px;
    padding: 70px;
    position: relative;
    page-break-after: always
}

.report-cover {
    background: radial-gradient(circle at top right, #351761, #090914 50%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.report-cover h1 {
    font-size: 54px;
    line-height: 1.05;
    max-width: 800px;
    margin: 20px 0
}

.report-cover h2 {
    color: var(--cyan);
    font-weight: 500
}

.report-brand {
    letter-spacing: .3em;
    color: #b69cff
}

.cover-meta {
    position: absolute;
    left: 70px;
    right: 70px;
    bottom: 55px;
    display: flex;
    justify-content: space-between;
    color: #b8bac8
}

.report-page h1 {
    font-size: 38px;
    border-bottom: 3px solid #7c3aed;
    padding-bottom: 12px
}

.report-page h2 {
    margin-top: 28px
}

.report-score {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin: 25px 0
}

.report-score b {
    font-size: 70px;
    color: #6d28d9
}

.report-score.small b {
    font-size: 48px
}

.report-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 35px
}

.report-kpis div {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 18px
}

.report-kpis b {
    display: block;
    font-size: 30px;
    color: #6d28d9
}

.report-metric div {
    height: 12px;
    background: #ececf4;
    border-radius: 99px;
    overflow: hidden
}

.report-metric i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #00b8d4)
}

.report-control {
    border-left: 4px solid #7c3aed;
    padding: 10px 18px;
    margin: 18px 0;
    background: #f8f7fc
}

.report table {
    color: #222
}

.report th {
    color: #555
}

.report td,
.report th {
    border-color: #ddd
}

@media(max-width:1000px) {
    .sidebar {
        position: static;
        width: auto
    }

    .content {
        margin-left: 0
    }

    .grid2,
    .stats,
    .pillar-grid {
        grid-template-columns: 1fr
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .span2 {
        grid-column: auto
    }

    .metric-row {
        grid-template-columns: 1fr
    }

    .report-cover,
    .report-page {
        padding: 35px
    }

    .report-kpis {
        grid-template-columns: 1fr 1fr
    }
}

@media print {
    body {
        background: #fff
    }

    .sidebar,
    .no-print {
        display: none !important
    }

    .content {
        margin: 0;
        padding: 0
    }

    .report {
        max-width: none
    }

    .report-page,
    .report-cover {
        min-height: 100vh
    }

    .severity {
        border: 1px solid #999
    }

    .report-page:last-child {
        page-break-after: auto
    }
}

/* Methodology management */
.section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px
}

.section-title h2,
.section-title h3 {
    margin: 0
}

.section-title p {
    margin: 3px 0 0
}

.pillar-card-head {
    display: flex;
    justify-content: space-between;
    gap: 8px
}

.badge-success {
    background: #123d2a;
    color: #b9f6d2
}

.badge-muted {
    background: #292936;
    color: #aaaec0
}

.row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.row-actions form {
    display: inline-flex
}

.btn.danger {
    border-color: #6b2434;
    background: #3a1620;
    color: #ffc6d3
}

.table-wrap {
    overflow: auto
}

.table-search {
    max-width: 340px
}

.question-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 9px
}

.compact-card summary {
    cursor: pointer
}

.top-gap {
    margin-top: 18px
}

.control-selector {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    background: #0c0c13
}

.control-selection-list {
    max-height: 430px;
    overflow: auto;
    margin-top: 12px;
    border-top: 1px solid var(--border)
}

.control-pillar-title {
    position: sticky;
    top: 0;
    background: #11111a;
    padding: 12px 8px;
    margin: 0;
    color: var(--cyan);
    z-index: 1
}

.control-option {
    display: flex;
    grid-template-columns: auto 1fr;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 8px;
    border-bottom: 1px solid #20202e;
    cursor: pointer
}

.control-option:hover {
    background: #ffffff08
}

.control-option input {
    width: auto;
    margin-top: 4px
}

.control-option span {
    display: grid
}

.control-option small {
    display: block
}

.control-option[hidden],
.control-pillar-title[hidden] {
    display: none !important
}

/* Executive report charts */
.report-eyebrow {
    font-size: 11px;
    letter-spacing: .18em;
    color: #6d28d9;
    font-weight: 800;
    margin-bottom: 10px
}

.lead {
    font-size: 18px;
    line-height: 1.7;
    color: #34313f
}

.executive-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd
}

.executive-status {
    display: grid;
    text-align: right
}

.executive-status b {
    font-size: 38px;
    color: #0e7490
}

.executive-status span {
    color: #666
}

.report-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.chart-panel {
    border: 1px solid #dedce8;
    border-radius: 16px;
    padding: 20px;
    break-inside: avoid
}

.chart-panel h2 {
    font-size: 18px;
    margin: 0 0 15px
}

.radar-svg {
    width: 100%;
    max-height: 430px
}

.report-bars {
    display: grid;
    gap: 12px
}

.report-bar-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) 2fr 35px;
    gap: 10px;
    align-items: center
}

.report-bar-row span {
    font-size: 12px
}

.report-bar-row>div {
    height: 11px;
    background: #ececf4;
    border-radius: 20px;
    overflow: hidden
}

.report-bar-row i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #00b8d4);
    border-radius: 20px
}

.empty-chart {
    color: #777
}

.donut-layout {
    display: flex;
    align-items: center;
    gap: 28px
}

.donut {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative
}

.donut:after {
    content: "";
    position: absolute;
    inset: 38px;
    border-radius: 50%;
    background: #fff
}

.donut span {
    position: relative;
    z-index: 1;
    display: grid;
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    color: #312e81
}

.donut small {
    font-size: 11px;
    color: #777;
    font-weight: 500
}

.chart-legend {
    flex: 1;
    display: grid;
    gap: 9px
}

.chart-legend>div {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 8px;
    align-items: center
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px
}

.legend-0 {
    background: #7c3aed
}

.legend-1 {
    background: #ef4444
}

.legend-2 {
    background: #f59e0b
}

.legend-3 {
    background: #06b6d4
}

.legend-4 {
    background: #22c55e
}

.legend-5 {
    background: #64748b
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.overview-grid>div {
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 20px
}

.overview-grid h2 {
    margin-top: 0
}

.pillar-summary {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: #f7f5fb;
    border-radius: 14px
}

.pillar-summary>div {
    display: grid
}

.pillar-summary>div>b {
    font-size: 28px;
    color: #6d28d9
}

.pillar-summary span {
    color: #666
}

.control-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center
}

.control-heading h2 {
    margin: 0
}

.control-heading span {
    font-size: 26px;
    font-weight: 800;
    color: #6d28d9
}

.roadmap-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 22px 0 35px
}

.roadmap-summary div {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    text-align: center
}

.roadmap-summary b {
    display: block;
    font-size: 32px;
    color: #6d28d9
}

.roadmap-summary span {
    font-size: 12px;
    color: #666
}

.matrix {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    padding: 20px 0 25px 35px;
    min-height: 390px
}

.matrix-cell {
    border-radius: 14px;
    padding: 24px;
    display: grid;
    align-content: start;
    gap: 6px
}

.matrix-cell b {
    font-size: 20px
}

.matrix-cell small {
    color: #555
}

.matrix-cell span {
    margin-top: 20px;
    font-size: 28px;
    font-weight: 800
}

.matrix-cell.strategic {
    background: #ede9fe
}

.matrix-cell.quick {
    background: #dcfce7
}

.matrix-cell.low {
    background: #fee2e2
}

.matrix-cell.maintain {
    background: #e0f2fe
}

.matrix-label {
    position: absolute;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #777;
    letter-spacing: .1em
}

.matrix-label.y {
    left: 0;
    top: 50%;
    transform: rotate(-90deg)
}

.matrix-label.x {
    bottom: 0;
    left: 50%
}

.muted-report {
    color: #777;
    font-style: italic
}

@media(max-width:1000px) {

    .report-chart-grid,
    .overview-grid {
        grid-template-columns: 1fr
    }

    .question-row {
        grid-template-columns: 1fr
    }

    .pillar-summary {
        grid-template-columns: 1fr
    }

    .roadmap-summary {
        grid-template-columns: 1fr 1fr
    }
}

@media print {

    .chart-panel,
    .report-control,
    .overview-grid>div,
    .matrix-cell {
        break-inside: avoid
    }

    .report-chart-grid {
        gap: 12px
    }

    .report-page {
        overflow: hidden
    }

    .radar-svg {
        max-height: 380px
    }
}


.login-card{
    width:420px;
    max-width:90%;
    border-radius:16px;
    padding:40px;
    box-shadow:0 12px 35px rgba(0,0,0,.12);
}

.login-header{
    text-align:center;
    margin-bottom:32px;
}

.login-logo{
    width:120px;
    max-width:100%;
    margin-bottom:18px;
}

.login-header h1{
    margin:0;
    font-size:32px;
    font-weight:700;
    color:#0f172a;
}

.login-header .subtitle{
    margin-top:8px;
    color:#64748b;
    font-size:15px;
}

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:6px;
    font-weight:600;
}

.form-group input{
    width:100%;
    padding:12px 14px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    font-size:15px;
    transition:.2s;
}

.form-group input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.15);
}

.btn.w100{
    width:100%;
    margin-top:10px;
}

body,
button,
input,
select,
textarea,
label,
a,
nav,
table,
th,
td,
.btn {
    font-family: inherit;
}