/* ==========================================================
   OSCC theme: AI Matterz look
   Light green #77CC35 · Dark green #002619 · Black #252522
   Page bg #F2F9ED · Font: Geist
   ========================================================== */
:root {
    --green: #77CC35;
    --green-hover: #68B82C;
    --dark: #002619;
    --dark-2: #0a3a28;
    --black: #252522;
    --white: #fff;
    --paper: #F2F9ED;
    --paper-soft: rgb(242 249 237 / 0.4);
    --mint: #E6F4DA;
    --line: #DCE9D2;
    --muted: #5F6B63;
    --ink: var(--black);
    --warn: #C98A1B;
    --danger: #B23B3B;
    --radius: 10px;
    --radius-2: 5px;


    --shadow: 0 1px 2px rgb(0 38 25 / .04), 0 8px 24px rgb(0 38 25 / .06);

    /* legacy aliases so existing JS/inline usage keeps working */
    --navy: var(--dark);
    --teal: var(--green);
    --gold: var(--warn)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'Geist', 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased
}

button,
input,
textarea,
select {
    font: inherit
}

a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500
}

a:hover {
    text-decoration: underline;
    text-decoration-color: var(--green);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px
}

:focus-visible {
    outline: 3px solid rgb(119 204 53 / .55);
    outline-offset: 2px
}

h1,
h2,
h3,
h4 {
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--dark);
    font-weight: 600
}

h1 {
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -1.2px;
    font-weight: 500
}

h2 {
    font-size: 24px;
    letter-spacing: -.5px
}

h3 {
    font-size: 18px;
    letter-spacing: -.2px
}

p {
    margin: 0 0 15px
}

/* ---------- Top bar ---------- */
/* .topbar {
    background: var(--dark-2);
    color: #fff;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgb(119 204 53 / .25)
} */

.brand {
    display: flex;
    gap: 11px;
    align-items: center;
    color: #fff;
    line-height: 1.2
}

.brand:hover {
    text-decoration: none
}

.brand img {
    width: 40px;
    height: 40px
}

.brand b {
    font-size: 22px;
    letter-spacing: 1.5px;
    font-weight: 800
}

.brand small {
    display: block;
    color: #B7D3C2;
    font-size: 11px;
    margin-top: 3px;
    font-weight: 400
}

.topbar nav {
    display: flex;
    flex: 1;
    gap: 4px;
    flex-wrap: wrap
}

.topbar nav a {
    color: #B7D3C2;
    padding: 8px 8px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    transition: background .15s, color .15s
}

.topbar nav a.active,
.topbar nav a:hover {
    color: #fff;
    background: rgb(119 204 53 / .18);
    text-decoration: none
}

.topbar nav a.active {
    color: var(--green)
}

#userbar {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    /* margin-right: 10px; */
    color: #B7D3C2
}

main {
    /* max-width: 1240px; */
    margin: 0 auto;
    padding: 35px 35px;
    min-height: 75vh
}

main>h1 {
    color: var(--dark-2);
}

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 35px;
    background:
        radial-gradient(600px 300px at 90% 0%, rgb(119 204 53 / .22), transparent 70%), var(--dark-2);
    border-radius: 10px;
    padding: 44px;
    color: #fff;
    margin-bottom: 25px
}

.hero h1,
.hero h2,
.hero h3 {
    color: #fff
}

.hero p {
    color: #C9DDD0
}

.hero .eyebrow {
    background: rgb(119 204 53 / .15);
    border-color: rgb(119 204 53 / .35);
    color: var(--green)
}

.eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    background: var(--mint);
    border: 1px solid var(--line);
    padding: 4px 16px;
    border-radius: 999px;
    margin-bottom: 14px
}

.hero .chips span {
    border-color: rgb(255 255 255 / .22);
    color: #E3EEE7
}

/* ---------- Panels ---------- */
.panel {
    background: #fff;
    border: 1px solid var(--line);
    padding: 26px;
    /* border-radius: var(--radius); */
    border-radius: var(--radius-2);
    box-shadow: var(--shadow);
    margin-bottom: 22px
}
.panel1 {
    width: 100%;
        max-width: 1220px;
 
    background: #fff;
    border: 1px solid var(--line);
    padding: 26px;
    /* border-radius: var(--radius); */
    border-radius: var(--radius-2);
    box-shadow: var(--shadow);
    margin-bottom: 22px;

}

.decision-span
{
    display: flex;
    align-items: center;
    justify-content: center;
}
.head-des
{

}
.head-h1
{
   
    padding: 0 40px;
}

/* .panel ol li{
    gap: 10px;
} */
 .asump-li{
       /* gap: 10px; */
       margin-bottom: 10px;
 }

 .th-h2{
    font-size: 38px;
 }
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.grid .panel {
    margin-bottom: 0
}

.panel.dark {
    background: var(--dark-2);
    color: #fff;
    border-color: var(--dark)
}

.panel.dark h1,
.panel.dark h2,
.panel.dark h3 {
    color: #fff
}

.judge-heading {
    font-size: 38px;
}

.panel.dark .muted {
    color: #B7D3C2
}

.muted {
    color: var(--muted)
}

.small {
    font-size: 14px
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--dark);
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s
}

.btn:hover {
    background: var(--mint);
    border-color: var(--green);
    text-decoration: none
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed
}

.btn.primary {
    background: var(--dark-2);
    /* border-color: var(--dark); */
    color: #fff;
    margin-bottom: 10px;
    padding: 10px 24px !important;
    font-size: 16px !important;
}

.btn.primary:hover {
    background: var(--dark-2);
    border-color: var(--dark-2)
}

.btn.gold {
    background: var(--green);
    border-color: var(--green);
    color: var(--dark)
}

.btn.gold:hover {
    background: var(--green-hover);
    border-color: var(--green-hover)
}

.btn.danger {
    color: var(--danger);
    border-color: #E8C3C3
}

.btn.danger:hover {
    background: #FBEDED;
    border-color: var(--danger)
}

.btn.ghost {
    background: transparent;
    color: inherit;
    border-color: rgb(255 255 255 / .3)
}

.btn.ghost:hover {
    background: rgb(255 255 255 / .1);
    border-color: var(--green)
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: end;
    flex-wrap: wrap;
    margin: 16px 0
}

/* ---------- Chips and badges ---------- */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.chips span,
.badge {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600
}

.badge.locked,
.badge.strong {
    background: var(--mint);
    border-color: #C8E4B0;
    color: var(--dark)
}

.badge.skipped,
.badge.exposed {
    background: #FCE9E7;
    border-color: #F0C6C1;
    color: #8F3434
}

.badge.draft,
.badge.developing {
    background: #FFF3DB;
    border-color: #F1DCAE;
    color: #7A5410
}

.badge.waiting {
    background: #EEF1EC;
    color: #5F6B63
}

/* ---------- Forms ---------- */
label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 17px
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #CBDDBF;
    border-radius: var(--radius-2);
    background: #fff;
    padding: 11px 13px;
    color: var(--ink);
    margin-top: 6px;
    outline: none;
    font-weight: 400;
    transition: border-color .15s, box-shadow .15s
}

input::placeholder,
textarea::placeholder {
    color: #94A399
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgb(119 204 53 / .2)
}

textarea {
    min-height: 105px;
    resize: vertical
}

input:disabled,
textarea:disabled,
select:disabled {
    background: #F2F6EF;
    color: #6B7A70
}

input[type=checkbox] {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 0;
    accent-color: var(--green);
    flex: none
}

.check {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500
}

.field {
    margin-bottom: 25px
}

.field label {
    margin-bottom: 5px
}

.field-help {
    font-size: 12px;
    color: var(--muted)
}

details {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 14px;
    margin: 10px 0;
    background: #fff
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--dark)
}

details p {
    margin: 10px 0 0
}

.help-example {
    padding: 10px 14px;
    background: var(--mint);
    border-left: 3px solid var(--green);
    border-radius: 0 8px 8px 0
}

.themes {
    background: var(--paper-soft);
    padding: 22px;
    border-radius: 12px;
    margin-top: 24px;
    border: 1px solid var(--line)
}

.themes .field:last-child {
    margin-bottom: 0
}

.span-row {
    display: flex;
    align-items: center;
}

/* ---------- Notices ---------- */
.notice {
    padding: 14px 17px;
    background: #FFF6E2;
    border: 1px solid #F1DCAE;
    border-radius: 12px;
    margin: 14px 0;
    overflow-wrap: anywhere
}

.notice.red {
    background: #FCEDEB;
    border-color: #EBC0BA;
    color: #8E3232
}

.notice.green {
    background: var(--mint);
    border-color: #C8E4B0;
    color: var(--dark)
}

/* ---------- Gates ---------- */
.gate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px
}

.gate-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    padding: 22px;
    border-radius: var(--radius);
    min-height: 215px;
    box-shadow: var(--shadow)
}

.gate-card h3 {
    margin: 12px 0 8px
}

.gate-card .actions {
    margin-top: auto;
    margin-bottom: 0
}

.gate-card p {
    font-size: 14px;
    color: var(--muted)
}

.gate-card .number {
    font-size: 11px;
    color: var(--dark);
    font-weight: 700;
    letter-spacing: .5px
}

.gate-card.locked {
    border-top: 4px solid var(--green)
}

.gate-card.blocked {
    background: #F7FAF4;
    box-shadow: none
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;    
padding: 0px 40px;
    margin: 0 0 20px;
}

.section-head h1 {
    font-size: 34px
}

.section-head h1,
h2 {
    color: var(--dark-2);
}

.executive-overview{
    margin: 5px 20px;
}

/* ---------- KPIs and charts ---------- */
.kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0
}

.kpi {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 18px;
    box-shadow: var(--shadow)
}

.kpi small {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500
}

.kpi strong {
    display: block;
    font-size: 28px;
    line-height: 1.2;
    margin: 25px 0 2px 0;

    letter-spacing: -.8px;
    color: var(--dark)
}

.kpi span {
    font-size: 11px;
    color: var(--muted)
}

.chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0
}

.barrow {
    display: grid;
    grid-template-columns: 110px 1fr 80px;
    gap: 10px;
    align-items: center;
    font-size: 12px
}

.track {
    height: 14px;
    border-radius: 10px;
    background: #E9F1E3;
    overflow: hidden
}

.track i {
    display: block;
    height: 100%;
    background: var(--green);
    border-radius: 10px
}

.track i.warning {
    background: var(--warn)
}

.track i.danger {
    background: var(--danger)
}

.gate-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.gate-pills a {
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: #fff; */
    /* border: 1px solid var(--line); */
    font-weight: 600;
    color: var(--dark);
}

.gate-pills a:hover {
    text-decoration: none;
    border-color: var(--green);
    background: var(--mint)
}

.gate-pills a.active {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

.split {
    display: grid;
    grid-template-columns: 1fr 0.5fr;
    gap: 25px
}

.sticky {
    position: sticky;
    top: 20px;
    align-self: start
}

/* ---------- Tables ---------- */
.table-wrap {
    overflow: auto
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px
}

th,
td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    vertical-align: top
}

th {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background: var(--paper-soft)
}

.empty {
    padding: 25px;
    text-align: center;
    color: var(--muted);
    background: var(--paper-soft);
    border: 1px dashed var(--line);
    border-radius: 12px
}

.timeline {
    padding: 14px 0 14px 17px;
    border-left: 3px solid #C8E4B0;
    margin-left: 6px
}

.timeline small {
    display: block;
    color: var(--muted)
}

.review {
    border-left: 4px solid var(--green)
}

.review li {
    margin-bottom: 8px
}

.credentials {
    background: var(--mint);
    border: 2px solid var(--green);
    padding: 20px;
    border-radius: 14px;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.modal {
    position: fixed;
    inset: 0;
    background: rgb(0 38 25 / .62);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 35px;
    z-index: 50;
    overflow: auto
}

.modal>.panel {
    max-width: 700px;
    width: 100%;
    margin-top: 30px
}

.credential-code {
    font: 17px/2 ui-monospace, SFMono-Regular, Menlo, monospace
}

.login {
    max-width: 440px;
    margin: auto
}

.loading {
    opacity: .6;
    pointer-events: none
}

footer {
    /* max-width: 1240px; */
    padding: 24px 30px;
    /* margin: 0 auto; */
    color: var(--muted);
    font-size: 12px;
    border-top: 1px solid var(--line)
}

footer span {
    float: right
}

#toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    max-width: 420px;
    background: var(--dark);
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--green);
    box-shadow: 0 12px 34px rgb(0 38 25 / .3);
    z-index: 100;
    display: none
}

#toast.show {
    display: block
}

#toast.error {
    background: #7E2E2E;
    border-left-color: #F0A0A0
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

.login-error {
    color: var(--danger)
}

.horizontal-rule {
    height: 1px;
    background: var(--line);
    margin: 25px 0
}

.scope-note {
    font-size: 12px;
    background: var(--mint);
    padding: 12px;
    border-radius: 10px
}

.board-summary {
    white-space: pre-wrap
}

.peer-highlight {
    background: #F0F9E4
}

/* ==========================================================
   Setup page
   ========================================================== */
body.setup-page {
    background:
        radial-gradient(700px 380px at 0% 0%, rgb(119 204 53 / .16), transparent 70%),
        radial-gradient(600px 340px at 100% 100%, rgb(119 204 53 / .12), transparent 70%),
        var(--paper)
}

main.setup {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: start;
    padding-top: 56px
}

.setup-intro {
    background:
        radial-gradient(420px 260px at 100% 0%, rgb(119 204 53 / .25), transparent 70%),
        var(--dark-2);
    color: #fff;
    border-radius: 5px;
    padding: 36px;
    position: sticky;
    top: 28px
}

.setup-intro h1 {
    color: #fff;
    font-size: clamp(28px, 3.4vw, 38px)
}

.setup-intro p {
    color: #C9DDD0
}

.setup-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 1.5px;
    font-size: 20px
}

.setup-brand img {
    width: 40px;
    height: 40px
}

.setup-steps {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    gap: 12px
}

.setup-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    color: #E3EEE7;
    background: rgb(255 255 255 / .06);
    border: 1px solid rgb(255 255 255 / .1);
    padding: 12px 14px;
    border-radius: 12px
}

.setup-steps li::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--green)
}

.setup-body h2 {
    margin-bottom: 6px
}

.setup-body .panel {
    padding: 30px
}

.setup-body form.panel .btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 14px
}

.setup-body .form-lead {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px
}


/* ---------- Login feature cards (image on top) ---------- */
.feature-cards {
    margin: 25px 40px;

}

.panel.feature-card {
    padding: 0px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease
}

.panel.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--green);
    box-shadow: 0 2px 4px rgb(0 38 25 / .05), 0 14px 32px rgb(0 38 25 / .1)
}

.feature-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    /* border-radius: 8px; */
    /* background: var(--mint) */
}

.feature-body {
    padding: 35px 25px;
}

.feature-body h3 {
    margin-bottom: 8px
}

.feature-body p {
    margin: 0;
    font-size: 14px;
    color: var(--muted)
}


/* ---------- Topbar logo ---------- */
.brand.brand-logo img {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block
}

/* ---------- Login hero (light, split layout) ---------- */
.login-hero {
    /* max-width: 1100px; */
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 440px);
    /* align-content: center; */
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 36px 120px
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 500;
    color: var(--dark);
    background: #fff;
    border: 1px solid var(--green);
    border-radius: 999px
}

.login-badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green)
}

.login-copy h1 {
    margin: 20px 0 14px;
    font-size: clamp(32px, 3.6vw, 44px);
    font-weight: 600;
    letter-spacing: -1.2px
}

.login-copy>p {
    max-width: 520px;
    font-size: 16px;
    color: var(--muted)
}

.login-copy .chips {
    margin-top: 22px
}

.login-copy .chips span {
    background: #EAF7DD;
    border: 1px solid var(--green);
    color: var(--dark);
    /* padding: 5px 12px */
}

/* Login card */
.login-hero .login {
    max-width: none;
    margin: 0;
    padding: 30px;
    border-radius: 10px;
    border-color: var(--line);
    box-shadow: 0 1px 2px rgb(0 38 25 / .04), 0 12px 32px rgb(0 38 25 / .06)
}

.login-hero .login h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px
}

.login-hero .login>p.muted {
    font-size: 14px;
    margin-bottom: 24px
}

.login-hero .login label {
    font-weight: 500;
    margin-bottom: 18px
}

.login-hero .login input {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 5px;
    border-color: var(--line)
}

.login-hero .login input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--ink)
}

.pw-field {
    position: relative;
    display: block;
    margin-top: 6px
}

.pw-field input {
    margin-top: 0;
    padding-right: 46px
}

.pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer
}

.pw-toggle:hover,
.pw-toggle[aria-pressed="true"] {
    color: var(--dark);
    background: var(--mint)
}

.login-hero .login .btn.primary {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    border-radius: 8px;
    margin-top: 4px
}

.login-hero .login-error {
    margin: 14px 0 0;
    font-size: 13px
}

.login-hero .login-error:empty {
    display: none
}


/* ---------- Site footer (dark, background image) ---------- */
footer.site-footer {
    max-width: none;
    margin: 0;
    padding: 0;
    border-top: 0;
    color: #C9DDD0;
    font-size: 13px;
    background:
        linear-gradient(rgb(0 38 25 / .55), rgb(0 38 25 / .55)),
        url("images/footer_back.png") center / cover no-repeat,
        var(--dark)
}

.footer-inner {
    /* max-width: 1240px; */
    margin: 0 auto;
    padding: 25px 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 56px 0 48px
}

.footer-brand {
    max-width: 380px
}

.footer-brand img {
    display: block;
    width: auto;
    height: 42px;
    margin-bottom: 18px
}

.footer-brand p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #C9DDD0
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, auto));
    gap: 14px 56px
}

.footer-links a {
    color: #B7D3C2;
    font-size: 13px;
    font-weight: 400
}

.footer-links a:hover {
    color: var(--green);
    text-decoration: none
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 18px 0;
    border-top: 1px solid rgb(255 255 255 / .12);
    font-size: 13px;
    color: #9FBFAE
}

.footer-bottom p {
    margin: 0
}

.footer-bottom b {
    color: #fff;
    font-weight: 600
}

@media (max-width: 950px) {
    .footer-top {
        flex-direction: column;
        padding: 40px 0 32px
    }
}

@media (max-width: 600px) {
    .footer-inner {
        padding: 0 15px
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 12px 24px;
        width: 100%
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start
    }
}


@media (max-width: 950px) {
    .login-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 16px 0 28px
    }
}

@media (max-width: 600px) {
    .login-hero .login {
        padding: 22px
    }

    .brand.brand-logo img {
        height: 34px
    }
}


@media (prefers-reduced-motion: reduce) {
    .panel.feature-card:hover {
        transform: none
    }
}

/* ---------- Responsive ---------- */
@media(max-width:950px) {


    .hero {
        grid-template-columns: 1fr
    }

    .gate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .split {
        grid-template-columns: 1fr
    }

    .sticky {
        position: static
    }

    .kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .grid.three {
        grid-template-columns: 1fr 1fr
    }

    main.setup {
        grid-template-columns: 1fr;
        padding-top: 28px
    }

    .setup-intro {
        position: static
    }
}

@media(max-width:600px) {
    main {
        padding: 22px 15px
    }

    .hero {
        padding: 26px
    }

    .grid,
    .grid.three,
    .gate-grid {
        grid-template-columns: 1fr
    }

    .topbar nav {
        order: 3;
        width: 100%
    }

    .topbar nav a {
        padding: 6px 10px
    }



    .brand small {
        font-size: 9px
    }

    .panel {
        padding: 20px
    }

    .barrow {
        grid-template-columns: 80px 1fr 65px
    }

    .section-head h1 {
        font-size: 28px
    }

    .modal {
        padding: 15px
    }

    footer span {
        float: none;
        display: block
    }

    .kpi {
        padding: 13px
    }

    .kpi strong {
        font-size: 22px
    }

    .setup-intro {
        padding: 26px
    }

    .setup-body .panel {
        padding: 22px
    }
}

.hero .panel {
    color: var(--ink)
}

.hero .panel h1,
.hero .panel h2,
.hero .panel h3 {
    /* color: var(--dark) */
    color: #1d542a;
}

.hero .panel p {
    /* color: var(--muted) */
    color: #1d542a;
}

.panel h1,
h2,
h3 {
    color: #1d542a;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important
    }
}


/* ---------- Gate card icons ---------- */
.gate-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px
}

.gate-icon {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--mint);
    color: var(--dark);
    transition: background .15s, color .15s
}

.gate-card:hover .gate-icon {
    background: var(--green)
}

.gate-card.locked .gate-icon {
    background: var(--green)
}

.gate-card.blocked .gate-icon {
    background: #EEF1EC;
    color: #8A968E
}

.gate-card.blocked:hover .gate-icon {
    background: #EEF1EC
}


/* ---------- Gate previous / next navigation ---------- */
.gate-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 8px 0 30px
}

.btn.gate-nav-btn {
    gap: 12px;
    padding: 12px 20px;
    border-color: var(--dark);
    font-size: 15px;
    background-color: transparent;
}

.btn.gate-nav-btn:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff
}

.gate-nav-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25
}

.gate-nav-text small {
    font-size: 11px;
    font-weight: 500;
    opacity: .65
}

.btn.gate-nav-btn.next {
    text-align: right
}

@media (max-width: 600px) {
    .btn.gate-nav-btn {
        padding: 10px 14px;
        font-size: 13px
    }
}


/* ---------- Calculation lab: aligned card buttons + spacing ---------- */
.panel.calc-card {
    display: flex;
    flex-direction: column
}

.calc-card form.calc {
    flex: 1;
    display: flex;
    flex-direction: column
}

.calc-card form.calc>p.small {
    margin: 4px 0 18px
}

.calc-card form.calc .btn {
    margin-top: auto;
    align-self: flex-start
}

.calc-card .calcResult:empty {
    display: none
}

.calc-card .calcResult .notice {
    margin: 0 0 18px
}

.calc-card .calcResult .login-error {
    margin: 0 0 18px
}

/* panel directly after a .grid (grid panels have margin-bottom: 0) */
.grid+.panel {
    margin-top: 22px
}


/* ---------- Mission page: 2-column section cards ---------- */
.mission-grid {
    margin: 22px 0
}

.mission-grid .panel p {
    margin-bottom: 0
}

/* gap between two consecutive grids (e.g. mission cards -> operating facts) */
.grid+.grid {
    margin-top: 22px
}


.assumption-list {
    margin-bottom: 3px;
}

/*  faculty tabs bar */

/* ---------- Faculty sub-navbar (tabs under header) ---------- */
.fac-layout {
    display: block
}

.fac-main {
    min-width: 0
}

.fac-subnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -35px -28px 28px;
    padding: 10px 10px;
    /* background: #fff; */
    /* border-bottom: 1px solid var(--line); */
    overflow-x: auto
}

.fac-tabs {
    display: flex;
    width: 100%;
    justify-content: space-around;
    gap: 4px
}

button.fac-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 16px 14px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s
}

button.fac-tab:hover {
    color: var(--dark);
    background: var(--paper)
}

button.fac-tab.active {
    color: var(--dark);
    font-weight: 600;
    background: var(--mint);
    border-bottom-color: var(--green)
}

button.fac-signout {
    margin-left: auto;
    color: var(--danger)
}

button.fac-signout:hover {
    color: var(--danger);
    background: #FBEDED
}

.fac-pane>.panel:last-child,
.fac-pane>.grid:last-child {
    margin-bottom: 0
}

.fac-pane>.panel+.panel {
    margin-top: 22px
}

@media (max-width: 600px) {
    .fac-subnav {
        margin: -22px -15px 22px;
        padding: 0 15px
    }

    button.fac-tab {
        padding: 14px 12px 12px;
        font-size: 13px
    }
}


/* ---------- Professional data table ---------- */
.table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    overflow-x: auto
}

.data-table {
    width: 100%;
    min-width: 960px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px
}

.data-table thead th {
    position: sticky;
    top: 0;
    padding: 12px 16px;
    background: var(--mint);
    color: var(--dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
    border-bottom: 1px solid var(--line)
}

.data-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--line)
}

.data-table tbody tr:last-child td {
    border-bottom: 0
}

.data-table tbody tr:hover {
    background: var(--paper-soft)
}

.data-table .num {
    text-align: right;
    white-space: nowrap
}

.data-table .col-actions {
    text-align: right;
    white-space: nowrap
}

.grp-name {
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3
}

.grp-code {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--muted);
    font: 500 11.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace
}

.attempt-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap
}

.row-actions {
    display: inline-flex;
    gap: 6px;
    justify-content: flex-end
}

.btn.sm {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap
}

/* status badges used in the table */
.badge.active,
.badge.submitted {
    background: var(--mint);
    border-color: #C8E4B0;
    color: var(--dark)
}

.badge.working {
    background: #FFF3DB;
    border-color: #F1DCAE;
    color: #7A5410
}

.badge.disabled {
    background: #FCE9E7;
    border-color: #F0C6C1;
    color: #8F3434
}

/* ---------- KPI card icons ---------- */
/* .kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px
}

.kpi-icon {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--mint);
    color: var(--dark);
    transition: background .15s
}

.kpi:hover .kpi-icon {
    background: var(--green)
}

.kpi-icon.warn {
    background: #FFF3DB;
    color: #7A5410
}

.kpi:hover .kpi-icon.warn {
    background: #F1DCAE
} */

/* ---------- KPI card icons (bottom-right) ---------- */
.kpi.has-icon,
.kpis .kpi {
    position: relative;
    min-height: 128px;
    padding-right: 84px
}

.kpi-top {
    display: block
}

.kpi-icon {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--mint);
    color: var(--dark);
    transition: background .15s
}

.kpi:hover .kpi-icon {
    background: var(--green)
}

.kpi-icon.warn {
    background: #FFF3DB;
    color: #7A5410
}

.kpi:hover .kpi-icon.warn {
    background: #F1DCAE
}

@media (max-width: 600px) {
    .kpi-icon {
        width: 40px;
        height: 40px;
        right: 12px;
        bottom: 12px
    }

    .kpi:has(.kpi-icon) {
        padding-right: 64px
    }
}


/* ---------- Faculty top row: workspace left, KPI cards right ---------- */
.fac-top {
    display: grid;
    /* grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); */
    grid-template-columns: 0.8fr 1fr;
    gap: 22px;
    align-items: stretch;
    margin: 20px 0
}

.fac-top>.panel {
    margin: 0;
    display: flex;
    flex-direction: column
}

.fac-top .kpis {
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

@media (min-width: 1500px) {
    /* .fac-top .kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    } */
}

@media (max-width: 950px) {
    .fac-top {
        grid-template-columns: 1fr
    }
}


.fac-top .section-head label {
    flex: 1 1 100%;
    margin-bottom: 0
}


.span-field {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 10px;
}

.btn-style {
    font-size: 16px;
    color: var(--dark-2);
}


/* ------------------ */
/* ---------- Responsive top bar ---------- */
.topbar {
    position: relative;
}

.topbar {
    background: var(--dark-2);
    color: #fff;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgb(119 204 53 / .25)
}


.topbar-menu {
    display: contents;
}

/* desktop: pehle jaisa layout */

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgb(255 255 255 / .3);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.nav-toggle:hover {
    background: rgb(255 255 255 / .1);
    border-color: var(--green);
}

.nav-toggle[hidden] {
    display: none !important;
}

.nav-toggle .ic-close {
    display: none;
}

.nav-toggle.open .ic-open {
    display: none;
}

.nav-toggle.open .ic-close {
    display: block;
}

@media (max-width: 1100px) {
    .topbar {
        padding: 14px 20px;
        gap: 12px;
    }

    .brand.brand-logo img {
        max-width: 180px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .topbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 40;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px 20px 20px;
        background: var(--dark-2);
        border-top: 1px solid rgb(119 204 53 / .25);
        box-shadow: 0 16px 32px rgb(0 38 25 / .35);
    }

    .topbar-menu.open {
        display: flex;
    }

    .topbar nav {
        flex: none;
        order: 0;
        width: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 2px;
    }

    .topbar nav a {
        display: block;
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 16px;
    }

    #userbar {
        justify-content: space-between;
        margin-top: 10px;
        padding-top: 14px;
        border-top: 1px solid rgb(255 255 255 / .14);
    }
}