:root {
  --ink: #172b27;
  --muted: #64756f;
  --forest: #176b57;
  --forest-dark: #0d4f40;
  --mint: #dff3ea;
  --cream: #f7f5ed;
  --sand: #eadfca;
  --gold: #c89b4b;
  --white: #fff;
  --line: #dfe7e3;
  --shadow: 0 18px 50px rgba(23, 64, 53, .10);
}

html { font-size: 16px; min-height: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: "Tajawal", sans-serif; color: var(--ink); background: #fbfcf9; }
main { flex: 1 0 auto; }
a { color: var(--forest); }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(251, 252, 249, .94); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(23, 107, 87, .10); }
.navbar { min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; line-height: 1; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--forest); color: #fff; font-size: 1.35rem; box-shadow: 0 8px 20px rgba(23,107,87,.22); }
.brand strong { display: block; font-size: 1.35rem; font-weight: 800; }
.brand small { display: block; margin-top: .28rem; font-size: .57rem; letter-spacing: .24em; color: var(--muted); }
.nav-link { color: #40534d; font-weight: 700; padding: .65rem .85rem !important; border-radius: 10px; }
.nav-link:hover, .nav-link:focus { color: var(--forest); background: var(--mint); }
.nav-add-school { min-height: 42px; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .75rem; color: #fff; border-radius: 11px; background: var(--forest); text-decoration: none; font-size: .78rem; font-weight: 800; }
.nav-add-school:hover { color: #fff; background: var(--forest-dark); }
.dropdown-menu { text-align: right; }
.dropdown-item { text-align: right; }
.user-schools-menu { width: min(360px, calc(100vw - 1.5rem)); padding: .55rem; left: 0 !important; right: auto !important; margin-top: .5rem; text-align: right !important; }
.user-schools-menu .dropdown-item, .user-schools-menu .dropdown-header { text-align: right !important; }
.managed-school-menu-item { display: grid; grid-template-columns: 1fr 42px; gap: .35rem; align-items: stretch; margin-bottom: .25rem; border: 1px solid transparent; border-radius: 11px; text-align: right; }
.managed-school-menu-item:hover { border-color: var(--line); background: #f7faf8; }.managed-school-menu-item.active { border-color: #b9daca; background: #eff9f4; }
.managed-school-name { min-width: 0; display: flex; align-items: center; gap: .6rem; padding: .58rem .65rem; color: var(--ink); text-decoration: none; }.managed-school-name > i { color: var(--forest); }.managed-school-name span { min-width: 0; }.managed-school-name strong, .managed-school-name small { display: block; }.managed-school-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }.managed-school-name small { margin-top: .12rem; color: var(--muted); font-size: .65rem; }
.managed-school-plan { display: grid; place-items: center; color: var(--forest); border-radius: 9px; background: rgba(23,107,87,.08); text-decoration: none; }.managed-school-plan:hover { color: #fff; background: var(--forest); }.add-school-menu-link { margin-top: .35rem; color: var(--forest); border-radius: 9px; font-weight: 800; }
.site-footer { flex-shrink: 0; padding: 2rem 0; background: var(--ink); color: rgba(255,255,255,.82); margin-top: auto; }
.site-footer small { color: rgba(255,255,255,.58); }

.page-shell { width: min(1140px, calc(100% - 2rem)); margin-inline: auto; }
.hero { position: relative; overflow: hidden; padding: 6.5rem 0 5rem; background: radial-gradient(circle at 8% 20%, rgba(200,155,75,.18), transparent 22rem), linear-gradient(145deg, #f8f5e9, #eef8f3); }
.hero::after { content: ""; position: absolute; inset-inline-end: -8rem; top: -10rem; width: 31rem; height: 31rem; border: 1px solid rgba(23,107,87,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(23,107,87,.035), 0 0 0 140px rgba(23,107,87,.025); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 4rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--forest); font-weight: 800; font-size: .9rem; background: rgba(255,255,255,.7); border: 1px solid rgba(23,107,87,.13); padding: .55rem .85rem; border-radius: 999px; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 800; margin: 1.25rem 0; }
.hero h1 span { color: var(--forest); }
.hero-copy { max-width: 650px; color: var(--muted); font-size: 1.17rem; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn-brand, .btn-soft, .btn-perf-dashboard { border-radius: 13px; padding: .82rem 1.25rem; font-weight: 800; transition: .2s ease; }
.btn-brand { background: var(--forest); border: 1px solid var(--forest); color: #fff; box-shadow: 0 10px 24px rgba(23,107,87,.2); }
.btn-brand:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; transform: translateY(-2px); }
.btn-soft { background: rgba(255,255,255,.74); border: 1px solid var(--line); color: var(--ink); }
.btn-soft:hover { color: var(--forest); background: #fff; border-color: rgba(23,107,87,.3); }
.btn-perf-dashboard {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #111827 !important;
    font-weight: 800;
    border: none;
    box-shadow: 0 6px 18px rgba(255, 140, 0, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
}
.btn-perf-dashboard:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.5);
    color: #000000 !important;
}
.plan-preview { background: rgba(255,255,255,.82); padding: 1.2rem; border-radius: 24px; border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); transform: rotate(-1deg); }
.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.preview-title { font-weight: 800; }
.status-chip { color: var(--forest); background: var(--mint); padding: .38rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.preview-row { display: grid; grid-template-columns: 42px 1fr auto; gap: .75rem; align-items: center; padding: .9rem .25rem; border-top: 1px solid var(--line); }
.step-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--cream); color: var(--forest); font-weight: 800; }
.preview-row strong { display: block; font-size: .93rem; }
.preview-row small { color: var(--muted); }
.progress-ring { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--forest) var(--p), #e6ece9 0); font-size: .65rem; font-weight: 800; position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: white; }
.progress-ring span { position: relative; z-index: 1; }

.section { padding: 5rem 0; }
.section-kicker { color: var(--forest); font-weight: 800; }
.section-title { max-width: 680px; font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.75rem); margin: .6rem 0 2.4rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card, .surface-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(23,64,53,.05); }
.feature-card { padding: 1.6rem; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--forest); background: var(--mint); font-size: 1.25rem; margin-bottom: 1.1rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 800; }
.feature-card p { color: var(--muted); line-height: 1.75; margin: 0; }

.dashboard-hero { padding: 3.5rem 0 2rem; background: linear-gradient(145deg, #f8f5e9, #eef8f3); border-bottom: 1px solid var(--line); }
.dashboard-hero h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.2rem); }
.dashboard-hero p { color: var(--muted); font-size: 1.08rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: -1.2rem; position: relative; }
.stat-card { padding: 1.35rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 35px rgba(23,64,53,.07); }
.stat-card small { color: var(--muted); font-weight: 700; }
.stat-card strong { display: block; font-size: 2rem; margin-top: .35rem; }
.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.action-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.45rem; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: .2s; }
.action-card:hover { color: inherit; border-color: rgba(23,107,87,.35); box-shadow: var(--shadow); transform: translateY(-2px); }
.action-card i { font-size: 1.35rem; color: var(--forest); background: var(--mint); padding: .72rem; border-radius: 13px; }
.action-card h3 { font-size: 1.05rem; font-weight: 800; margin: .15rem 0 .4rem; }
.action-card p { color: var(--muted); margin: 0; }

.auth-shell { width: min(1040px, calc(100% - 2rem)); margin: 3.5rem auto; display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.auth-aside { padding: 3rem; color: #fff; background: linear-gradient(155deg, var(--forest-dark), var(--forest)); display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside h2 { font-weight: 800; font-size: 2.1rem; }
.auth-aside p { color: rgba(255,255,255,.75); line-height: 1.8; }
.auth-form { padding: 3rem; }
.auth-form h1 { font-weight: 800; }
.auth-form > p { color: var(--muted); }
.form-label { font-weight: 700; }
.form-control, .form-select { min-height: 48px; border-color: var(--line); border-radius: 11px; }
.form-control:focus, .form-select:focus { border-color: var(--forest); box-shadow: 0 0 0 .22rem rgba(23,107,87,.12); }
.surface-card { padding: 1.6rem; }
.page-heading { padding: 3rem 0 1rem; }
.page-heading h1 { font-weight: 800; }
.text-muted-custom { color: var(--muted); }
.badge-soft { color: var(--forest-dark); background: var(--mint); border-radius: 999px; padding: .45rem .75rem; font-weight: 700; }
.journey-steps { display: flex; align-items: center; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
.journey-step { display: flex; align-items: center; gap: .65rem; min-width: 175px; opacity: .5; }
.journey-step > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; background: #eef1ef; font-weight: 800; }
.journey-step strong, .journey-step small { display: block; white-space: nowrap; }
.journey-step small { color: var(--muted); }
.journey-step.active, .journey-step.done { opacity: 1; }
.journey-step.active > span { background: var(--forest); color: white; box-shadow: 0 0 0 6px var(--mint); }
.journey-step.done > span { background: var(--mint); color: var(--forest); }
.journey-line { height: 2px; min-width: 45px; flex: 1; background: var(--line); margin: 0 .75rem; }
.journey-line.done { background: var(--forest); }
.onboarding-upload { padding: clamp(2rem, 6vw, 5rem); }
.onboarding-upload > p { max-width: 650px; line-height: 1.8; }
.upload-hero-icon { width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 1rem; color: var(--forest); background: var(--mint); border-radius: 24px; font-size: 2.4rem; }
.upload-dropzone { max-width: 680px; margin: 1.5rem auto 0; padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: .35rem; border: 2px dashed rgba(23,107,87,.35); border-radius: 18px; background: #f9fcfa; cursor: pointer; transition: .2s; }
.upload-dropzone:hover { border-color: var(--forest); background: var(--mint); }
.upload-dropzone i { font-size: 2rem; color: var(--forest); }
.upload-dropzone small { color: var(--muted); }
.processing-card { background: linear-gradient(145deg, #fff, #eef8f3); }
.criterion-plan-block { padding: 1rem 0; border-top: 1px solid var(--line); }
.indicator-actions { margin: .8rem 0; padding: 1rem; background: #f8faf8; border-radius: 14px; }
.plan-action-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); }
.plan-action-row:first-of-type { border-top: 0; }
.plan-action-row small { display: block; color: var(--muted); margin-top: .25rem; }

.plan-reading-key { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.plan-reading-key span { display: inline-flex; align-items: center; gap: .4rem; }
.plan-reading-key span.active { color: var(--forest); }
.plan-domain { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 35px rgba(23,64,53,.06); }
.plan-domain-header { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: 1.25rem 1.5rem; color: #fff; background: linear-gradient(135deg, var(--forest-dark), var(--forest)); }
.plan-domain-header h2 { display: flex; gap: .6rem; align-items: center; margin: 0; font-size: 1.25rem; font-weight: 800; }
.plan-domain-header > span:last-child { padding: .35rem .65rem; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .78rem; }
.plan-level-label { display: block; margin-bottom: .22rem; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.plan-domain-header .plan-level-label { margin: 0; color: rgba(255,255,255,.68); }
.plan-criterion { padding: 1.5rem; }
.plan-criterion + .plan-criterion { border-top: 8px solid #f4f7f5; }
.plan-criterion-title { padding: .85rem 1rem; border-right: 4px solid var(--gold); border-radius: 10px; background: #fbf7ef; }
.plan-criterion-title h3 { margin: 0; font-size: 1.08rem; font-weight: 800; }
.plan-indicator { margin-top: 1.25rem; border: 1px solid #dbe9e3; border-radius: 17px; background: #f8fbf9; }
.plan-indicator-header { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.15rem; border-bottom: 1px solid #dbe9e3; }
.plan-indicator-header h4 { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.6; }
.indicator-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; color: var(--forest); background: var(--mint); }
.plan-action-list { padding: 1rem; }
.plan-action-card { position: relative; padding: 1.15rem; border: 1px solid var(--line); border-right: 5px solid var(--forest); border-radius: 15px; background: #fff; box-shadow: 0 6px 20px rgba(23,64,53,.045); }
.plan-action-card + .plan-action-card { margin-top: .9rem; }
.plan-action-card.action-saved-highlight { border-color: #79bca9; box-shadow: 0 0 0 4px rgba(23,107,87,.10), 0 10px 28px rgba(23,64,53,.08); transition: border-color .2s ease, box-shadow .2s ease; }
.plan-action-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.plan-action-heading h5 { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.8; }
.action-number { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--forest); font-weight: 800; }
.action-label { color: var(--forest); }
.action-tools { display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; justify-content: flex-end; }
.action-tools > form { display: flex; align-items: stretch; margin: 0; }
.action-tools .btn { height: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; padding: .55rem .9rem; white-space: nowrap; border-radius: 10px; font-size: .88rem; font-weight: 800; line-height: 1.2; }
.action-save-toast { position: absolute; z-index: 5; inset-block-end: 1rem; left: 50%; max-width: calc(100% - 2rem); display: inline-flex; align-items: center; gap: .45rem; padding: .65rem .9rem; color: var(--forest-dark); border: 1px solid #9bd0bf; border-radius: 999px; background: #edf9f4; box-shadow: 0 10px 25px rgba(23,64,53,.16); font-size: .86rem; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s ease, transform .2s ease; }
.action-save-toast[hidden] { display: none; }
.action-save-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.action-save-toast i { color: var(--forest); }
.btn-ai { color: #65480f; border: 1px solid #ead39e; background: #fff5d9; border-radius: 11px; font-weight: 800; }
.btn-ai:hover { color: #4f3707; background: #ffedba; border-color: #dcbf77; }
.btn-ai:disabled { opacity: .48; }
.action-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 1rem; }
.action-facts > div { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; padding: .7rem; border-radius: 11px; background: #f6f8f7; }
.action-facts i { grid-row: 1 / 3; align-self: center; color: var(--forest); font-size: 1.1rem; }
.action-facts span { color: var(--muted); font-size: .7rem; }
.action-facts strong { font-size: .82rem; }
.action-details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: .8rem; }
.action-details-grid > div { padding: .8rem; border-radius: 11px; border: 1px dashed var(--line); }
.action-details-grid span { color: var(--forest); font-size: .78rem; font-weight: 800; }
.action-details-grid p { margin: .35rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.action-edit-panel { margin: 1rem -1.15rem -1.15rem; border-top: 1px solid var(--line); background: #fcfdfc; }
.action-edit-form { padding: 1.25rem; }
.date-editor { display: grid; grid-template-columns: 1fr auto 1fr; gap: .85rem; align-items: end; }
.date-field { padding: .85rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.date-field label { display: flex; align-items: center; gap: .65rem; margin-bottom: .6rem; font-weight: 800; }
.date-field label > i { width: 34px; height: 34px; display: grid; place-items: center; color: var(--forest); border-radius: 10px; background: var(--mint); }
.date-field label span { line-height: 1.25; }
.date-field label small { display: block; margin-top: .2rem; color: var(--muted); font-size: .7rem; font-weight: 500; }
.date-field input { cursor: pointer; font-weight: 700; }
.date-range-line { min-width: 92px; padding-bottom: .85rem; text-align: center; color: var(--forest); }
.date-range-line i, .date-range-line span { display: block; }
.date-range-line span { margin-top: .25rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
.quick-dates { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.quick-dates span { margin-left: .25rem; color: var(--muted); font-size: .76rem; }
.quick-dates button { padding: .34rem .62rem; color: var(--forest); border: 1px solid #cde2da; border-radius: 999px; background: #fff; font-size: .75rem; font-weight: 700; }
.quick-dates button:hover { background: var(--mint); }
.alternative-modal-content { border: 0; border-radius: 22px; overflow: hidden; }
.edit-action-modal-content { border: 0; border-radius: 22px; overflow: hidden; }
.edit-action-modal-content .modal-body { padding: 1.4rem; background: #fcfdfc; }
.edit-action-modal-content .modal-footer { padding: 1rem 1.4rem; background: #fff; }
.current-action-preview { padding: 1rem; border-right: 4px solid var(--forest); border-radius: 11px; background: #f3f8f5; }
.current-action-preview small, .current-action-preview strong { display: block; }
.current-action-preview small { color: var(--muted); }
.alternative-results { display: grid; gap: .8rem; }
.alternative-card { display: grid; grid-template-columns: 42px 1fr; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.alternative-number { width: 38px; height: 38px; display: grid; place-items: center; color: #65480f; border-radius: 11px; background: #fff0c9; font-weight: 800; }
.alternative-card h3 { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.7; }
.alternative-meta { margin-top: .45rem; color: var(--muted); font-size: .82rem; }
.alternative-meta span { display: inline-block; padding: .25rem .55rem; border-radius: 999px; color: var(--forest); background: var(--mint); font-weight: 700; }
.alternative-meta p { margin: .35rem 0 0; }

/* Live operations dashboard */
.school-switcher { position: relative; z-index: 4; border-bottom: 1px solid var(--line); background: #fff; }
.school-switcher-inner { display: flex; align-items: stretch; gap: .75rem; min-height: 74px; }
.school-tabs { min-width: 0; display: flex; flex: 1; gap: .35rem; overflow-x: auto; scrollbar-width: thin; }
.school-tab { min-width: max-content; display: flex; align-items: center; gap: .55rem; padding: .75rem .9rem; color: var(--muted); border-bottom: 3px solid transparent; text-decoration: none; }
.school-tab:hover { color: var(--forest); background: #f8fbf9; }.school-tab.active { color: var(--forest-dark); border-bottom-color: var(--forest); background: linear-gradient(0deg, #eef8f3, transparent); }
.school-tab > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #f0f4f2; }.school-tab.active > i { color: #fff; background: var(--forest); }
.school-tab strong, .school-tab small { display: block; }.school-tab strong { max-width: 185px; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }.school-tab small { margin-top: .15rem; color: #8a9b95; font-size: .65rem; }
.school-tab-add { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; align-self: center; min-height: 44px; padding: .65rem .85rem; color: var(--forest); border: 1px dashed #94c3b3; border-radius: 11px; background: #f3faf7; text-decoration: none; font-size: .78rem; font-weight: 800; }.school-tab-add:hover { color: #fff; border-style: solid; background: var(--forest); }
.school-switcher-secondary { position: sticky; top: 78px; z-index: 900; box-shadow: 0 8px 22px rgba(23,64,53,.045); }
.school-context-actions { flex: 0 0 auto; display: flex; align-items: center; gap: .3rem; padding-block: .7rem; border-right: 1px solid var(--line); padding-right: .75rem; }.school-context-actions a { min-height: 42px; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .65rem; color: #456159; border-radius: 9px; background: #f3f6f4; text-decoration: none; font-size: .72rem; font-weight: 800; }.school-context-actions a:hover { color: var(--forest); background: var(--mint); }
.add-school-page { padding-bottom: 5rem; }.add-school-page .page-heading { max-width: 700px; margin-inline: auto; }.add-school-options { max-width: 900px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0 auto; }.add-school-option { position: relative; min-height: 310px; display: flex; flex-direction: column; align-items: flex-start; padding: 1.7rem; color: inherit; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 12px 35px rgba(23,64,53,.06); text-decoration: none; transition: .2s; }.add-school-option:hover { color: inherit; border-color: #8dbbaa; box-shadow: var(--shadow); transform: translateY(-3px); }.add-school-option.recommended { border: 2px solid #70ae99; background: linear-gradient(145deg, #fff, #f0faf6); }.option-badge { position: absolute; top: 1rem; left: 1rem; padding: .32rem .58rem; color: #65480f; border-radius: 999px; background: #fff0c9; font-size: .68rem; font-weight: 800; }.option-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 1.2rem; color: var(--forest); border-radius: 17px; background: var(--mint); font-size: 1.55rem; }.add-school-option h2 { font-size: 1.18rem; font-weight: 800; }.add-school-option p { color: var(--muted); line-height: 1.8; }.add-school-option > strong { margin-top: auto; color: var(--forest); font-size: .86rem; }
.ops-hero { position: relative; overflow: hidden; padding: 3.7rem 0 5.3rem; color: #fff; background: radial-gradient(circle at 15% 20%, rgba(231,188,105,.24), transparent 20rem), linear-gradient(125deg, #0b493c, #176b57 68%, #27806a); }
.ops-hero::after { content: ""; position: absolute; inset: -12rem auto auto -5rem; width: 34rem; height: 34rem; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.ops-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.ops-live { display: inline-flex; align-items: center; gap: .55rem; padding: .48rem .78rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .82rem; font-weight: 700; }
.ops-live i { width: 8px; height: 8px; border-radius: 50%; background: #72e4b7; box-shadow: 0 0 0 5px rgba(114,228,183,.12); }
.ops-hero h1 { margin: 1rem 0 .55rem; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 800; }
.ops-hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.73); font-size: 1.04rem; line-height: 1.8; }
.ops-hero-links { display: flex; gap: .6rem; margin-top: 1.4rem; }
.ops-hero-links .btn { display: inline-flex; align-items: center; gap: .5rem; padding: .67rem 1rem; border-radius: 11px; font-weight: 800; }
.ops-progress { width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#e3ba68 var(--progress), rgba(255,255,255,.12) 0); box-shadow: 0 20px 45px rgba(0,0,0,.14); }
.ops-progress::before { content: ""; grid-area: 1/1; width: 126px; height: 126px; border-radius: 50%; background: #145f4f; }
.ops-progress div { z-index: 1; grid-area: 1/1; text-align: center; }
.ops-progress strong, .ops-progress span { display: block; }
.ops-progress strong { font-size: 2rem; }
.ops-progress span { max-width: 85px; color: rgba(255,255,255,.7); font-size: .72rem; line-height: 1.35; }
.ops-dashboard { position: relative; z-index: 2; margin-top: -2.1rem; padding-bottom: 4rem; }
.ops-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.ops-stat { display: flex; align-items: center; gap: .8rem; padding: 1.1rem; text-align: right; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 12px 30px rgba(23,64,53,.08); transition: .2s; }
.ops-stat:hover, .ops-stat.active { border-color: rgba(23,107,87,.42); transform: translateY(-2px); box-shadow: 0 15px 35px rgba(23,64,53,.12); }
.ops-stat div { min-width: 0; }
.ops-stat small, .ops-stat strong { display: block; }
.ops-stat small { color: var(--muted); font-size: .77rem; font-weight: 700; }
.ops-stat strong { margin-top: .15rem; font-size: 1.7rem; line-height: 1; }
.stat-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 13px; font-size: 1.1rem; }
.stat-icon.total { color: #315ea8; background: #e8effb; }.stat-icon.doing { color: #8b6918; background: #fff4cf; }.stat-icon.late { color: #a44440; background: #fdebea; }.stat-icon.done { color: var(--forest); background: var(--mint); }
.ops-workspace { margin-top: 1.4rem; padding: 1.45rem; border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: 0 12px 35px rgba(23,64,53,.055); }
.ops-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.ops-section-head span { color: var(--forest); font-size: .75rem; font-weight: 800; }
.ops-section-head h2 { margin: .15rem 0 0; font-size: 1.35rem; font-weight: 800; }
.ops-filter-pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.ops-filter-pills button { display: inline-flex; align-items: center; gap: .35rem; padding: .43rem .72rem; color: var(--muted); border: 0; border-radius: 999px; background: #f2f5f3; font-size: .78rem; font-weight: 700; transition: all .2s ease; }
.ops-filter-pills button:hover { background: #e8edea; color: #1c2e28; }
.ops-filter-pills button.active { color: #fff; background: var(--forest); }
.ops-badge-warning { 
    display: inline-flex !important; 
    align-items: center; 
    justify-content: center; 
    min-width: 20px; 
    height: 20px; 
    padding: 0 5px; 
    border-radius: 999px; 
    background-color: #dc3545 !important; 
    color: #ffffff !important; 
    font-size: .72rem; 
    font-weight: 800; 
    line-height: 1; 
    box-shadow: 0 0 0 2px rgba(220,53,69,.3); 
    animation: pulse-danger 2s infinite; 
}
.ops-filter-pills button .ops-badge-warning,
.ops-filter-pills button:hover .ops-badge-warning,
.ops-filter-pills button:focus .ops-badge-warning,
.ops-filter-pills button.active .ops-badge-warning { 
    background-color: #dc3545 !important; 
    color: #ffffff !important; 
    box-shadow: 0 0 0 2px rgba(255,255,255,.5); 
}
@keyframes pulse-danger {
  0%, 100% { box-shadow: 0 0 0 2px rgba(220,53,69,.35); transform: scale(1); }
  50% { box-shadow: 0 0 0 5px rgba(220,53,69,.18); transform: scale(1.06); }
}
.ops-action-list { display: grid; gap: .75rem; margin-top: 1rem; }
.ops-action { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid #e2e9e6; border-radius: 16px; background: #fff; transition: .2s; }
.ops-action:hover { border-color: #bdcfc8; box-shadow: 0 10px 25px rgba(23,64,53,.07); }
.ops-action[hidden] { display: none; }
.ops-action-status { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; font-size: 1.1rem; }
.ops-action-status.open { color: #8b6918; background: #fff4cf; }.ops-action-status.overdue { color: #a44440; background: #fdebea; }.ops-action-status.upcoming { color: #315ea8; background: #e8effb; }.ops-action-status.completed { color: var(--forest); background: var(--mint); }
.ops-action-top { display: flex; justify-content: space-between; align-items: start; gap: .6rem; }
.ops-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.ops-tags span { padding: .28rem .5rem; color: #52665f; border-radius: 7px; background: #f1f5f3; font-size: .69rem; font-weight: 700; }
.ops-tags span.ops-tag-modified { color: #795c16; background: #fff4cf; border: 1px solid #f3e5b8; }
@keyframes actionPulse {
  0% { background-color: #e4f4ec; border-color: #176b57; box-shadow: 0 0 20px rgba(23,107,87,.25); transform: scale(1.01); }
  50% { background-color: #f1f9f5; border-color: #b9daca; }
  100% { background-color: #ffffff; border-color: #e2e9e6; box-shadow: none; transform: scale(1); }
}
.ops-action-updated { animation: actionPulse 2.5s ease-out; }
.ops-state { flex: 0 0 auto; padding: .28rem .55rem; border-radius: 999px; font-size: .69rem; font-weight: 800; }
.ops-state.open { color: #795c16; background: #fff4cf; }.ops-state.overdue { color: #963d39; background: #fdebea; }.ops-state.upcoming { color: #315ea8; background: #e8effb; }.ops-state.completed { color: var(--forest-dark); background: var(--mint); }
.ops-action h3 { margin: .52rem 0 .25rem; font-size: .97rem; font-weight: 800; line-height: 1.65; }
.ops-indicator { margin: 0; color: var(--muted); font-size: .78rem; }
.ops-indicator i { color: var(--forest); }
.ops-action-meta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: .65rem; color: var(--muted); font-size: .75rem; }
.ops-action-meta i { color: #82958e; }.ops-action-meta .danger, .ops-action-meta .danger i { color: #ad4540; font-weight: 700; }
.ops-completion-notes { margin-top: .75rem; padding: .75rem .95rem; border: 1px solid #d4e8de; border-radius: 12px; background: #f4faf7; }
.ops-notes-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; color: var(--forest); font-size: .78rem; font-weight: 800; }
.ops-notes-head i { font-size: .85rem; color: var(--forest); }
.ops-completion-notes p { margin: 0; color: #233b34; font-size: .82rem; line-height: 1.6; white-space: pre-wrap; }
.btn-close-action, .btn-completed, .btn-edit-action { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border-radius: 10px; font-size: .78rem; font-weight: 800; white-space: nowrap; transition: all .2s ease; }
.btn-close-action { color: #fff; border: 1px solid var(--forest); background: var(--forest); }.btn-close-action:hover { color: #fff; background: var(--forest-dark); }
.btn-completed { color: var(--forest); border: 1px solid #b9daca; background: #eff9f4; opacity: 1 !important; }
.btn-edit-action { color: var(--forest); border: 1px solid #b9daca; background: #eff9f4; }.btn-edit-action:hover { color: #fff; background: var(--forest); border-color: var(--forest); box-shadow: 0 6px 16px rgba(23,107,87,.2); }
.ops-empty { padding: 4rem 1rem; text-align: center; }.ops-empty > span { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 1rem; color: var(--forest); border-radius: 20px; background: var(--mint); font-size: 1.7rem; }.ops-empty h3 { font-weight: 800; }.ops-empty p { max-width: 570px; margin: .5rem auto 1.2rem; color: var(--muted); }
.ops-no-filter { padding: 2rem; color: var(--muted); text-align: center; }.ops-no-filter i { margin-left: .35rem; }
.ops-modal { overflow: hidden; border: 0; border-radius: 22px; box-shadow: 0 25px 70px rgba(17,49,41,.2); }.ops-modal .modal-header { align-items: start; padding: 1.35rem 1.4rem; border: 0; background: #f1f8f5; }.ops-modal .modal-header > div { display: flex; align-items: center; gap: .7rem; }.ops-modal-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; border-radius: 12px; background: var(--forest); }.ops-modal .modal-title { font-size: 1.1rem; font-weight: 800; }.ops-modal .modal-body { padding: 1.4rem; }.complete-action-name { margin-bottom: 1.15rem; padding: .8rem; border-right: 4px solid var(--gold); border-radius: 9px; background: #fbf8f1; font-size: .85rem; font-weight: 700; line-height: 1.6; }.evidence-ready { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; margin-top: 1rem; padding: .85rem; border: 1px dashed #bcd2ca; border-radius: 13px; background: #f7fbf9; }.evidence-ready > span { width: 40px; height: 40px; display: grid; place-items: center; color: #ad4540; border-radius: 11px; background: #fdebea; }.evidence-ready strong, .evidence-ready small { display: block; }.evidence-ready strong { font-size: .82rem; }.evidence-ready small { margin-top: .2rem; color: var(--muted); font-size: .7rem; line-height: 1.45; }.evidence-ready > i { color: var(--forest); }.ops-modal .modal-footer { padding: 1rem 1.4rem; border-top-color: var(--line); }

@media (max-width: 991px) {
  .hero-grid, .auth-shell { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .plan-preview { max-width: 620px; }
  .feature-grid { grid-template-columns: 1fr; }
  .navbar-collapse { padding: 1rem 0; }
  .user-schools-menu { position: static !important; width: 100% !important; max-width: 100% !important; box-shadow: none !important; border: 1px solid var(--line) !important; margin-top: .5rem; transform: none !important; }
  .ops-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .hero h1 { font-size: 2.55rem; }
  .stat-grid, .action-grid { grid-template-columns: 1fr; }
  .auth-aside, .auth-form { padding: 2rem 1.35rem; }
  .site-footer { text-align: center; }
  .plan-domain-header { grid-template-columns: 1fr auto; }
  .plan-domain-header .plan-level-label { display: none; }
  .plan-criterion { padding: .9rem; }
  .plan-action-heading { display: block; }
  .action-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-top: .8rem; }
  .action-tools > form, .action-tools .btn { width: 100%; }
  .action-tools .btn { height: auto; min-height: 48px; white-space: normal; }
  .action-facts, .action-details-grid { grid-template-columns: 1fr 1fr; }
  .date-editor { grid-template-columns: 1fr; }
  .date-range-line { padding: 0; transform: rotate(-90deg); }
  .ops-hero { padding: 2.8rem 0 4.8rem; }
  .ops-hero-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .ops-progress { width: 112px; height: 112px; }.ops-progress::before { width: 94px; height: 94px; }.ops-progress strong { font-size: 1.45rem; }.ops-progress span { font-size: .62rem; }
  .ops-section-head { display: block; }.ops-filter-pills { margin-top: .8rem; }
  .ops-action { grid-template-columns: auto 1fr; align-items: start; }.ops-action-cta { grid-column: 1 / -1; }.ops-action-cta .btn { width: 100%; justify-content: center; }
  .school-switcher-inner { width: 100%; padding-inline-start: 1rem; gap: .4rem; }.school-tabs { padding-inline-start: .5rem; }.school-tab-add { position: sticky; left: 0; z-index: 2; margin-left: .5rem; padding-inline: .7rem; box-shadow: -8px 0 15px #fff; }.school-tab-add span { display: none; }
  .school-switcher-secondary { top: 70px; }.school-context-actions { display: none; }
  .add-school-options { grid-template-columns: 1fr; }.add-school-option { min-height: 260px; }
}
@media (max-width: 420px) {
  .action-tools { grid-template-columns: 1fr; }
  .ops-stats { grid-template-columns: 1fr 1fr; gap: .5rem; }.ops-stat { gap: .5rem; padding: .8rem; }.stat-icon { width: 36px; height: 36px; flex-basis: 36px; }.ops-stat strong { font-size: 1.35rem; }
  .ops-workspace { padding: 1rem; }.ops-action { grid-template-columns: 1fr; }.ops-action-status { display: none; }.ops-action-top { display: block; }.ops-state { display: inline-block; margin-top: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .action-save-toast, .plan-action-card { transition: none !important; }
}

/* Quick Access Floating Dock & Right Drawer Slider */
.quick-dock-container {
  position: relative;
  z-index: 1060;
}

.quick-dock-toggle-btn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1065;
  width: 46px;
  height: 56px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(145deg, var(--forest-dark), var(--forest));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-right: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 10px 30px rgba(23, 64, 53, 0.25);
}

.quick-dock-toggle-btn:hover {
  width: 54px;
  background: var(--gold);
  color: #fff;
}

.quick-dock-toggle-btn .pulse-indicator {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(200, 155, 75, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 155, 75, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(200, 155, 75, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 155, 75, 0); }
}

.quick-dock-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(15, 23, 20, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.quick-dock-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.quick-dock-bar {
  position: fixed;
  top: 50%;
  right: -290px;
  transform: translateY(-50%);
  z-index: 1065;
  width: 260px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: rgba(13, 79, 64, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-right: none;
  border-radius: 24px 0 0 24px;
  box-shadow: -10px 25px 50px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-dock-bar.open {
  right: 0;
}

.quick-dock-header {
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dock-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.dock-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dock-close-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.quick-dock-nav {
  padding: 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quick-dock-nav::-webkit-scrollbar {
  width: 4px;
}
.quick-dock-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.dock-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.dock-item i {
  font-size: 1.15rem;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.dock-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-4px);
}

.dock-item:hover i {
  background: var(--gold);
  color: #fff;
  transform: scale(1.08);
}

.dock-item.highlight-item {
  background: rgba(200, 155, 75, 0.2);
  border-color: rgba(200, 155, 75, 0.4);
}

.dock-item.highlight-item i {
  background: var(--gold);
  color: #fff;
}

@media (min-width: 992px) {
  .quick-dock-bar.mini-dock {
    right: 0;
    width: 64px;
    border-radius: 20px 0 0 20px;
    padding: 0.5rem 0;
    max-height: 80vh;
  }
  .quick-dock-bar.mini-dock .quick-dock-header,
  .quick-dock-bar.mini-dock .quick-dock-user-role,
  .quick-dock-bar.mini-dock .dock-label {
    display: none;
  }
  .quick-dock-bar.mini-dock .quick-dock-nav {
    padding: 0.4rem;
    align-items: center;
    gap: 0.55rem;
  }
  .quick-dock-bar.mini-dock .dock-item {
    padding: 0;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
  .quick-dock-bar.mini-dock:hover {
    width: 260px;
    padding: 0;
  }
  .quick-dock-bar.mini-dock:hover .quick-dock-header,
  .quick-dock-bar.mini-dock:hover .quick-dock-user-role,
  .quick-dock-bar.mini-dock:hover .dock-label {
    display: flex;
  }
  .quick-dock-bar.mini-dock:hover .dock-label {
    display: inline;
  }
  .quick-dock-bar.mini-dock:hover .dock-item {
    padding: 0.65rem 0.85rem;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .quick-dock-toggle-btn {
    top: auto;
    bottom: 25px;
    right: 20px;
    transform: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(23, 107, 87, 0.45);
  }
  
  .quick-dock-bar {
    top: 0;
    bottom: 0;
    transform: none;
    height: 100vh;
    max-height: 100vh;
    width: 275px;
    border-radius: 0;
    border: none;
    z-index: 1075;
  }
}

