/* Geometry correction for the five independently scaled Growth Wheel petals. */
.growth-wheel button {
    position: absolute;
    inset: 8%;
    border: 0;
    border-radius: 50%;
    background: var(--color);
    clip-path: polygon(50% 50%, 50% 0, 97.6% 34.5%);
    transform: rotate(calc(var(--i) * 72deg)) scale(calc(.55 + var(--score) * .0045));
    transform-origin: center;
    color: #fff;
    filter: drop-shadow(0 5px 9px rgba(19, 42, 49, .08));
    transition: filter .2s, opacity .2s;
}

.growth-wheel button:hover,
.growth-wheel button:focus-visible {
    filter: brightness(1.06) drop-shadow(0 8px 12px rgba(19, 42, 49, .16));
    outline: none;
}

.growth-wheel button span {
    position: absolute;
    left: 68%;
    top: 26%;
    right: auto;
    width: 52px;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * -72deg));
    text-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    pointer-events: none;
}

.wheel-center { z-index: 2; }

.growth-wheel:has(.growth-wheel-svg) {
    background: none;
}

.growth-wheel-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.wheel-grid-ring {
    fill: none;
    stroke: #dfe5e2;
    stroke-width: 1;
}

.wheel-petal {
    cursor: pointer;
    outline: none;
}

.wheel-petal path {
    opacity: 1;
    stroke: rgba(255, 255, 255, .9);
    stroke-width: 2;
    transition: filter .2s, transform .2s, opacity .2s;
    transform-origin: 250px 250px;
}

.wheel-petal:hover path,
.wheel-petal:focus-visible path,
.wheel-petal.selected path {
    filter: brightness(1.07) drop-shadow(0 7px 9px rgba(19, 42, 49, .2));
    transform: scale(1.018);
}

.wheel-percentage {
    fill: #fff;
    font-size: 17px;
    font-weight: 900;
    text-anchor: middle;
    dominant-baseline: middle;
    paint-order: stroke;
    stroke: rgba(0, 0, 0, .12);
    stroke-width: 2px;
    pointer-events: none;
}

.wheel-svg-center {
    fill: #102f38;
    filter: drop-shadow(0 9px 14px rgba(19, 42, 49, .22));
}

.wheel-center-number,
.wheel-center-caption {
    fill: #fff;
    text-anchor: middle;
    pointer-events: none;
}

.wheel-center-number {
    font-size: 48px;
    font-weight: 900;
}

.wheel-center-caption {
    font-size: 12px;
    font-weight: 600;
}

.choice-limit {
    display: inline-flex;
    margin: -20px 0 24px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e8f4f1;
    color: #087f72;
    font-size: 12px;
    font-weight: 800;
}

.other-answer {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding: 18px;
    border: 1px solid #9fc8c1;
    border-radius: 15px;
    background: #f4fbf9;
    color: #132a31;
    font-size: 13px;
    font-weight: 800;
}

.other-answer textarea {
    width: 100%;
    resize: vertical;
    background: #fff;
}

.question-error {
    min-height: 24px;
    margin: 15px 0 0;
    color: #a33b30;
    font-size: 13px;
    font-weight: 750;
}

.ai-explainer {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
    margin-top: 76px;
    padding: 42px 48px;
    border: 1px solid #cfe1dd;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #edf8f5 100%);
    box-shadow: 0 18px 55px rgba(20, 42, 49, .08);
}

.ai-explainer h2 {
    max-width: 850px;
    margin: 10px 0 14px;
    font-size: clamp(27px, 3.2vw, 43px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.ai-explainer p {
    max-width: 850px;
    margin: 0 0 16px;
    color: #52666c;
    font-size: 17px;
}

.ai-explainer small {
    display: block;
    max-width: 850px;
    padding-top: 15px;
    border-top: 1px solid #d6e4e1;
    color: #64767b;
    font-size: 12px;
}

.ai-orb {
    position: relative;
    width: 146px;
    height: 146px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(from 20deg, #087f72, #3b82f6, #8b5cf6, #087f72);
    box-shadow: 0 18px 42px rgba(8, 127, 114, .23);
}

.ai-orb::before {
    content: '';
    position: absolute;
    inset: 13px;
    border-radius: inherit;
    background: #102f38;
}

.ai-orb span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 35px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.ai-orb i {
    position: absolute;
    right: 4px;
    top: 15px;
    width: 22px;
    height: 22px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #d99a24;
}

@media (max-width: 700px) {
    .ai-explainer {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 45px;
        padding: 30px 24px;
    }

    .ai-orb {
        width: 104px;
        height: 104px;
    }

    .ai-orb span { font-size: 27px; }
}

.admin-notice {
    margin-bottom: 18px;
    padding: 14px 17px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 750;
}

.admin-notice.success { background: #dff4eb; color: #17624f; }
.admin-notice.error { background: #ffebe7; color: #96392e; }

.school-create-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
}

.school-create-card h2,
.edit-school-card h2 { margin: 7px 0 8px; }

.school-create-card p { color: #64767b; font-size: 13px; }

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

.admin-school-form label,
.school-filters label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #31474d;
    font-size: 12px;
    font-weight: 800;
}

.admin-school-form input,
.admin-school-form select,
.school-filters input,
.school-filters select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5d2;
    border-radius: 10px;
    background: #fff;
    color: #132a31;
    outline: none;
}

.admin-school-form input:focus,
.admin-school-form select:focus,
.school-filters input:focus,
.school-filters select:focus {
    border-color: #087f72;
    box-shadow: 0 0 0 3px #d9f0ec;
}

.admin-school-form .span-2 { grid-column: span 2; }
.form-submit { display: flex; justify-content: flex-end; align-items: end; gap: 10px; }

.school-filters {
    display: grid;
    grid-template-columns: 1.2fr 1fr .8fr auto auto;
    gap: 12px;
    align-items: end;
    padding-bottom: 26px;
    margin-bottom: 24px;
    border-bottom: 1px solid #dfe5e2;
}

.school-filters .button { min-height: 44px; padding-block: 8px; }
.filter-reset { align-self: center; margin-top: 18px; color: #64767b; font-size: 12px; font-weight: 800; }
.table-head h2 small { color: #64767b; font-size: 14px; }
.table-subtitle { display: block; margin-top: 3px; color: #64767b; }
.table-action { white-space: nowrap; color: #087f72; font-weight: 800; }

.school-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.status-active { background: #dff4eb; color: #17624f; }
.status-pending_review { background: #fff1cf; color: #8c6412; }
.status-inactive { background: #e8eceb; color: #586a6e; }
.status-archived { background: #eee9f5; color: #655478; }
.empty-table { padding: 30px; text-align: center; color: #64767b; }
.status-help { padding: 14px; border-radius: 10px; background: #eef3f1; color: #64767b; font-size: 12px; }

.admin-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 20px 24px;
    border-radius: 17px;
    background: #102f38;
    color: #fff;
}

.admin-quick-link span { display: flex; flex-direction: column; }
.admin-quick-link small { margin-top: 3px; color: #a9bec1; }
.admin-quick-link i { font-size: 23px; font-style: normal; }

@media (max-width: 1000px) {
    .school-create-card { grid-template-columns: 1fr; }
    .school-filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
    .admin-school-form,
    .school-filters { grid-template-columns: 1fr; }
    .admin-school-form .span-2 { grid-column: auto; }
    .form-submit { justify-content: stretch; flex-direction: column-reverse; }
    .form-submit .button { width: 100%; }
}
