/* ==========================================================================
   AET Tema — İlk Adım tasarım dili
   Krem #f9f4da · Lacivert #242946 · Yeşil #c0ff72 · Pembe #e85a91
   Panel ve ölçek formlarında ortak kullanılır.
   ========================================================================== */

:root {
    --aet-ink: #242946;
    --aet-muted: #62657b;
    --aet-line: #d9d3b8;
    --aet-line-strong: #c7c4b4;
    --aet-cream: #f9f4da;
    --aet-cream-deep: #f3edcc;
    --aet-card: #fffbee;
    --aet-lime: #c0ff72;
    --aet-lime-soft: #eefad8;
    --aet-pink: #e85a91;
    --aet-pink-deep: #b92860;
    --aet-shadow: 3px 3px 0 #e5dfc4;
}

body.aet {
    background-color: var(--aet-cream) !important;
    color: var(--aet-ink) !important;
    font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

body.aet h1,
body.aet h2,
body.aet h3,
body.aet h4,
body.aet .aet-display {
    font-family: 'Paytone One', Arial, sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: -0.6px;
}

body.aet h2 { line-height: 1.25; }

/* --------------------------------------------------------------------------
   Renk eşlemesi — mevcut Tailwind sınıflarını tema paletine taşır
   -------------------------------------------------------------------------- */

body.aet .bg-white { background-color: var(--aet-card) !important; }
body.aet .bg-white\/90 { background-color: rgba(255, 251, 238, 0.94) !important; }
body.aet .bg-slate-50 { background-color: var(--aet-cream) !important; }
body.aet .bg-slate-50\/70 { background-color: rgba(249, 244, 218, 0.72) !important; }
body.aet .bg-slate-100 { background-color: var(--aet-cream-deep) !important; }
body.aet .bg-slate-200 { background-color: #e5dfc4 !important; }
body.aet .bg-slate-700 { background-color: #3a4066 !important; }
body.aet .bg-slate-800 { background-color: #333a63 !important; }
body.aet .bg-slate-900 { background-color: var(--aet-ink) !important; }

body.aet .text-slate-900,
body.aet .text-slate-800,
body.aet .text-slate-700 { color: var(--aet-ink) !important; }
body.aet .text-slate-600,
body.aet .text-slate-500 { color: var(--aet-muted) !important; }
body.aet .text-slate-400 { color: #8b8d9c !important; }
body.aet .text-slate-300 { color: #a9a9a0 !important; }

body.aet .border-slate-100 { border-color: #e9e3ca !important; }
body.aet .border-slate-200 { border-color: var(--aet-line) !important; }
body.aet .border-slate-300 { border-color: var(--aet-line-strong) !important; }
body.aet .border-slate-800 { border-color: #3a4066 !important; }
body.aet .divide-slate-100 > :not([hidden]) ~ :not([hidden]) { border-color: #e9e3ca !important; }
body.aet .divide-slate-200 > :not([hidden]) ~ :not([hidden]) { border-color: var(--aet-line) !important; }

/* Indigo -> lacivert / pembe vurgu */
body.aet .bg-indigo-600 { background-color: var(--aet-ink) !important; }
body.aet .bg-indigo-700 { background-color: #333a63 !important; }
body.aet .hover\:bg-indigo-700:hover { background-color: #333a63 !important; }
body.aet .hover\:bg-indigo-50:hover { background-color: #f2f8e2 !important; }
body.aet .bg-indigo-50 { background-color: var(--aet-lime-soft) !important; }
body.aet .bg-indigo-100 { background-color: #dcffb0 !important; }
body.aet .text-indigo-400 { color: var(--aet-pink) !important; }
body.aet .text-indigo-500 { color: var(--aet-pink-deep) !important; }
body.aet .text-indigo-600,
body.aet .text-indigo-700,
body.aet .text-indigo-800 { color: var(--aet-pink-deep) !important; }
body.aet .border-indigo-100 { border-color: #e9d2dc !important; }
body.aet .border-indigo-200 { border-color: var(--aet-line) !important; }
body.aet .border-indigo-400 { border-color: var(--aet-ink) !important; }
body.aet .ring-indigo-400 { --tw-ring-color: var(--aet-ink) !important; }
body.aet .from-indigo-600 { --tw-gradient-from: var(--aet-lime) !important; }
body.aet .to-violet-600 { --tw-gradient-to: #b8f06a !important; }

/* Yeşil -> lime */
body.aet .bg-emerald-50 { background-color: var(--aet-lime-soft) !important; }
body.aet .bg-emerald-100 { background-color: #dcffb0 !important; }
body.aet .bg-emerald-400,
body.aet .bg-emerald-500 { background-color: #8fd94b !important; }
body.aet .text-emerald-400 { color: #8fd94b !important; }
body.aet .text-emerald-500,
body.aet .text-emerald-600,
body.aet .text-emerald-700,
body.aet .text-emerald-800 { color: #3f5c22 !important; }
body.aet .border-emerald-200 { border-color: #c9dfa4 !important; }
body.aet .border-emerald-400 { border-color: #8fd94b !important; }

/* Pembe -> rose */
body.aet .bg-rose-50 { background-color: #fbe9ef !important; }
body.aet .bg-rose-100 { background-color: #f6d6e2 !important; }
body.aet .bg-rose-500,
body.aet .bg-rose-600 { background-color: var(--aet-pink-deep) !important; }
body.aet .hover\:bg-rose-100:hover { background-color: #f2c9d9 !important; }
body.aet .text-rose-600,
body.aet .text-rose-700,
body.aet .text-rose-800 { color: var(--aet-pink-deep) !important; }
body.aet .border-rose-200 { border-color: #efc3d4 !important; }

/* Amber -> sıcak krem */
body.aet .bg-amber-50 { background-color: #fbf0d9 !important; }
body.aet .bg-amber-100 { background-color: #f7e6c8 !important; }
body.aet .bg-amber-500 { background-color: #e0a83a !important; }
body.aet .text-amber-500,
body.aet .text-amber-600,
body.aet .text-amber-800 { color: #8a5a1f !important; }
body.aet .border-amber-200 { border-color: #e7d2a6 !important; }

/* --------------------------------------------------------------------------
   Kartlar, tablolar, form alanları
   -------------------------------------------------------------------------- */

body.aet .bg-white.rounded-2xl,
body.aet .bg-white.rounded-xl {
    border-color: var(--aet-line) !important;
    box-shadow: var(--aet-shadow);
}

body.aet .shadow-sm,
body.aet .shadow,
body.aet .shadow-lg,
body.aet .shadow-xl {
    box-shadow: var(--aet-shadow) !important;
}

/* Seçili seçenek (ölçek maddeleri) */
body.aet label:has(> input[type="radio"]:checked) {
    background-color: var(--aet-lime-soft) !important;
    border-color: var(--aet-ink) !important;
    color: var(--aet-ink) !important;
    box-shadow: 2px 2px 0 var(--aet-lime);
}

body.aet table { font-size: 13px; }
body.aet table thead tr { background-color: var(--aet-cream-deep) !important; }
body.aet table th {
    color: var(--aet-muted) !important;
    font-size: 10.5px !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600 !important;
}
body.aet table td { border-color: #e9e3ca !important; }
body.aet main code { overflow-wrap: anywhere; }
.aet-responsive-table { overflow-x: auto !important; }
.aet-responsive-table > table { min-width: 680px; }

body.aet main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.aet main select,
body.aet main textarea,
body.aet form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.aet form select,
body.aet form textarea {
    background-color: var(--aet-card) !important;
    border-color: var(--aet-line-strong) !important;
    border-radius: 9px !important;
    color: var(--aet-ink) !important;
}

body.aet main input:not([type="checkbox"]):not([type="radio"]):focus,
body.aet main select:focus,
body.aet main textarea:focus,
body.aet form input:not([type="checkbox"]):not([type="radio"]):focus,
body.aet form select:focus,
body.aet form textarea:focus {
    border-color: var(--aet-ink) !important;
    box-shadow: 0 0 0 3px var(--aet-lime) !important;
    outline: none !important;
}

body.aet main input::placeholder,
body.aet main textarea::placeholder,
body.aet form input::placeholder,
body.aet form textarea::placeholder { color: #8b8d9c !important; }

body.aet input[type="checkbox"],
body.aet input[type="radio"] { accent-color: var(--aet-ink); }

/* Birincil butonlar: lacivert + lime gölge */
body.aet main button.bg-indigo-600,
body.aet main a.bg-indigo-600,
body.aet button.bg-indigo-600,
body.aet a.bg-indigo-600 {
    border: 1px solid var(--aet-ink) !important;
    box-shadow: 2px 2px 0 var(--aet-lime) !important;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
body.aet main button.bg-indigo-600:hover,
body.aet main a.bg-indigo-600:hover,
body.aet button.bg-indigo-600:hover,
body.aet a.bg-indigo-600:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--aet-lime) !important;
}

/* Modallar */
body.aet .bg-slate-900\/50 { background-color: rgba(36, 41, 70, 0.55) !important; }

/* Takvim */
body.aet #cal-grid > div { background-color: var(--aet-card) !important; }
body.aet #cal-grid > div.bg-slate-50\/70 { background-color: #f6f0d6 !important; }
body.aet #cal-grid button.bg-indigo-50 { background-color: #e8f4d4 !important; color: var(--aet-ink) !important; }
body.aet #cal-grid button.bg-emerald-50 { background-color: var(--aet-lime) !important; color: var(--aet-ink) !important; }

/* Quill */
body.aet .ql-toolbar.ql-snow { border-color: var(--aet-line) !important; background: var(--aet-cream-deep) !important; }
body.aet .ql-container.ql-snow { border-color: var(--aet-line) !important; background: var(--aet-card); }
body.aet .ql-editor { color: var(--aet-ink); }

/* --------------------------------------------------------------------------
   Panel kabuğu (sidebar + topbar)
   -------------------------------------------------------------------------- */

.aet-sidebar {
    width: 264px;
    flex: 0 0 264px;
    min-height: 100vh;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    background: var(--aet-cream);
    border-right: 1px solid #c9c5ac;
    padding: 26px 20px 22px;
    overflow-y: auto;
}

.aet-sidebar .aet-brand { display: block; padding: 2px 0 0; }
.aet-sidebar .aet-brand img { width: 186px; max-width: 100%; height: auto; display: block; }
.aet-side-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aet-nav-drawer { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.aet-drawer-head { display: none; }
.aet-menu-toggle,
.aet-drawer-close { display: none; }
.aet-drawer-backdrop { display: none; }

.aet-side-heading {
    margin-top: 26px;
    padding: 17px 16px 18px;
    background: var(--aet-lime);
    border: 1px solid var(--aet-ink);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--aet-ink);
}
.aet-side-heading .eyebrow {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: var(--aet-ink);
}
.aet-side-heading .title {
    font-family: 'Paytone One', Arial, sans-serif;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-top: 7px;
    color: var(--aet-ink);
}

.aet-nav { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }

.aet-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 12.5px;
    color: var(--aet-muted);
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.aet-nav-link:hover { background: var(--aet-cream-deep); color: var(--aet-ink); }
.aet-nav-link.active {
    background: var(--aet-lime);
    border-color: var(--aet-ink);
    color: var(--aet-ink);
    font-weight: 600;
    box-shadow: 2px 2px 0 var(--aet-ink);
}
.aet-nav-link .nav-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aet-nav-link svg { width: 17px; height: 17px; flex: none; }
.aet-nav-link .nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.aet-nav-badge {
    font-size: 10px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 20px;
    background: #e8e2c6;
    color: var(--aet-ink);
    font-weight: 600;
    white-space: nowrap;
}
.aet-nav-link.active .aet-nav-badge { background: var(--aet-ink); color: var(--aet-lime); }

.aet-side-note {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--aet-line);
    font-size: 10.5px;
    line-height: 1.8;
    color: var(--aet-muted);
}
.aet-side-note strong { color: var(--aet-ink); font-weight: 600; }
.aet-side-note .dot { color: var(--aet-pink); }

.aet-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--aet-line);
    padding-bottom: 16px;
    margin-bottom: 26px;
    font-size: 11px;
    color: var(--aet-muted);
}
.aet-topbar .crumb { font-weight: 500; letter-spacing: .02em; }
.aet-topbar .crumb strong { color: var(--aet-ink); font-weight: 600; }
.aet-topbar .actions { display: flex; align-items: center; gap: 16px; }
.aet-topbar a { color: var(--aet-pink-deep); text-decoration: none; }
.aet-topbar a:hover { text-decoration: underline; }
.aet-topbar .date { white-space: nowrap; }
.aet-topbar .logout-form { margin: 0; display: inline-flex; }
.aet-topbar .logout-btn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--aet-pink-deep);
    cursor: pointer;
}
.aet-topbar .logout-btn:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   İlk Adım / onboarding panel bileşenleri
   -------------------------------------------------------------------------- */

.aet-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--aet-muted);
}

.aet-card {
    background: var(--aet-card);
    border: 1px solid var(--aet-line);
    border-radius: 14px;
    box-shadow: var(--aet-shadow);
}

.aet-card-lime {
    background: var(--aet-lime);
    border: 1.5px solid var(--aet-ink);
    border-radius: 14px;
    box-shadow: 5px 5px 0 var(--aet-ink);
}

.aet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid var(--aet-ink);
    background: var(--aet-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--aet-lime);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.aet-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--aet-lime); }
.aet-btn.secondary {
    background: transparent;
    border-color: var(--aet-line-strong);
    color: var(--aet-ink);
    box-shadow: none;
}
.aet-btn.secondary:hover { background: var(--aet-cream-deep); transform: none; }
.aet-btn.small { min-height: 32px; padding: 6px 11px; font-size: 11px; }
.aet-btn.pink { background: var(--aet-pink-deep); border-color: var(--aet-pink-deep); box-shadow: 2px 2px 0 #f6d6e2; }

.aet-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    background: #e8e2c6;
    color: var(--aet-ink);
}
.aet-badge.lime { background: var(--aet-lime); color: var(--aet-ink); border: 1px solid #96b36d; }
.aet-badge.pink { background: #f6d6e2; color: var(--aet-pink-deep); }
.aet-badge.navy { background: var(--aet-ink); color: #fff; }
.aet-badge.muted { background: #eee9d2; color: var(--aet-muted); }

.aet-stat {
    background: var(--aet-card);
    border: 1px solid var(--aet-line);
    border-radius: 12px;
    padding: 16px 18px;
}
.aet-stat .label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--aet-muted); font-weight: 600; }
.aet-stat .value { font-family: 'Paytone One', Arial, sans-serif; font-size: 32px; line-height: 1.1; margin-top: 6px; color: var(--aet-ink); }

.aet-onb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #e9e3ca;
}
.aet-onb-row:last-child { border-bottom: 0; }
.aet-onb-row:hover { background: #fdf8e6; }

.aet-detail-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 18px; font-size: 13px; }
.aet-detail-grid dt { color: var(--aet-muted); font-size: 12px; }
.aet-detail-grid dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--aet-ink); }

.aet-divider { border: 0; border-top: 1px solid var(--aet-line); margin: 22px 0; }

/* --------------------------------------------------------------------------
   Ölçek formu kabuğu
   -------------------------------------------------------------------------- */

.aet-scale-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--aet-line);
    padding-bottom: 14px;
    margin-bottom: 22px;
}
.aet-scale-bar .aet-scale-brand img { width: 156px; max-width: 100%; height: auto; display: block; }
.aet-scale-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    font-size: 11px;
    color: var(--aet-muted);
}
.aet-scale-meta a { color: var(--aet-pink-deep); text-decoration: none; }
.aet-scale-meta a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .aet-scale-bar { flex-direction: column; align-items: flex-start; }
    .aet-scale-meta { align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Duyarlı ve baskı
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    body.aet.flex { flex-direction: column; }
    .aet-sidebar {
        position: sticky;
        top: 0;
        z-index: 40;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        flex: none;
        height: auto;
        min-height: 0;
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid #c9c5ac;
        overflow: visible;
    }
    .aet-sidebar.drawer-open {
        z-index: 130;
    }
    .aet-sidebar .aet-brand img { width: 144px; }
    .aet-menu-toggle,
    .aet-drawer-close {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--aet-ink);
        border-radius: 10px;
        background: var(--aet-card);
        color: var(--aet-ink);
        cursor: pointer;
        box-shadow: 2px 2px 0 var(--aet-lime);
        touch-action: manipulation;
    }
    .aet-menu-toggle:hover,
    .aet-drawer-close:hover { background: var(--aet-lime-soft); }
    .aet-menu-toggle:focus-visible,
    .aet-drawer-close:focus-visible { outline: 3px solid var(--aet-pink-deep); outline-offset: 2px; }
    .aet-menu-dot {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--aet-pink);
        border: 1.5px solid var(--aet-card);
    }
    .aet-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 110;
        background: rgba(36, 41, 70, 0.5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .aet-drawer-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .aet-nav-drawer {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 120;
        width: min(312px, 86vw);
        height: 100dvh;
        background: var(--aet-cream);
        border-right: 1px solid #c9c5ac;
        box-shadow: 12px 0 32px rgba(36, 41, 70, 0.18);
        padding: 16px 18px calc(20px + env(safe-area-inset-bottom));
        overflow-y: auto;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s ease;
    }
    .aet-nav-drawer.is-open {
        transform: translateX(0);
        visibility: visible;
    }
    .aet-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--aet-line);
    }
    .aet-drawer-title {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--aet-muted);
    }
    .aet-side-heading { margin-top: 16px; }
    .aet-nav { margin-top: 16px; flex-direction: column; gap: 6px; }
    .aet-nav-link { min-height: 44px; padding: 10px 12px; }
    .aet-side-note { display: block; margin-top: auto; padding-top: 16px; }
    body.aet > main { width: 100%; min-width: 0; box-sizing: border-box; }
    .aet-topbar { flex-wrap: wrap; }
    .aet-topbar .actions { flex-wrap: wrap; gap: 8px 14px; }
}

@media (max-width: 640px) {
    body.aet > main { padding: 16px; }
    .aet-sidebar { padding: 12px 14px; }
    .aet-sidebar .aet-brand img { width: 140px; }
    .aet-topbar .actions { width: 100%; }
    .aet-topbar .actions > a:first-child,
    .aet-topbar .date { display: none; }
    .aet-detail-grid { grid-template-columns: 1fr; gap: 3px; }
    .aet-detail-grid dd { margin-bottom: 10px; }
    body.aet #scale-form > div:first-child > .flex { flex-wrap: wrap; gap: 8px; }
    body.aet #scale-form > div:first-child > .flex > a { width: 100%; }
    body.aet input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    body.aet select,
    body.aet textarea { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .aet-drawer-backdrop,
    .aet-nav-drawer { transition: none !important; }
}

@media print {
    .aet-sidebar, .aet-topbar, .no-print { display: none !important; }
    body.aet { background: #fff !important; }
}
.aet-portal-subnav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 16px}
.aet-portal-subnav a{display:flex;align-items:center;justify-content:center;min-height:46px;padding:9px 12px;border:1px solid #d8d4bf;border-radius:12px;background:#fffaf0;font-size:14px;font-weight:700;line-height:1.3;text-align:center;color:#242946;text-decoration:none;transition:background .15s,border-color .15s}
.aet-portal-subnav a:hover{background:#f3efdb;border-color:#999c86}
.aet-portal-subnav a.active{background:#242946;border-color:#242946;color:#fff;box-shadow:3px 3px 0 #b7ff6b}
.aet-portal-subnav a:focus-visible{outline:3px solid #d2477d;outline-offset:2px}
.aet-portal-subnav-secondary{display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 20px;padding:10px;background:#fdf8e6;border:1px solid #e9e3ca;border-radius:14px}
.aet-portal-subnav-secondary a{min-height:42px;background:transparent;font-size:13px}
.aet-portal-subnav-secondary a.active{background:#b7ff6b;border-color:#242946;color:#242946;box-shadow:none}
@media(max-width:900px){.aet-portal-subnav:not(.aet-portal-subnav-secondary){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.aet-portal-subnav:not(.aet-portal-subnav-secondary){grid-template-columns:repeat(2,minmax(0,1fr))}.aet-portal-subnav-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.aet-portal-subnav a{font-size:13px}}
.pe-readonly{max-width:85ch;margin:auto;padding:22px 8px;font-size:15px;line-height:1.8;color:#242946}
.pe-readonly h2{font-size:1.8rem;font-weight:700;margin:1.2em 0 .4em}.pe-readonly h3{font-size:1.25rem;font-weight:700;margin:1em 0 .3em}
.pe-readonly p{margin:.5em 0;white-space:pre-wrap}.pe-readonly blockquote{border-left:4px solid #d2477d;padding:.4em 1em;margin:1em 0;background:#fffbee}
.pe-readonly hr{border:0;border-top:1px solid #d8d9d3;margin:1.5em 0}
