/* ==========================================================
   CAMPUS RESOURCE HUB — CLEAN BLUE & WHITE DESIGN SYSTEM
   One source of truth; no repeated theme overrides.
   ========================================================== */

:root {
    --blue: #1769e8;
    --blue-dark: #104eae;
    --blue-deep: #0b347b;
    --blue-soft: #eaf3ff;
    --blue-pale: #f4f8ff;
    --ink: #17345f;
    --muted: #7185a5;
    --line: #dce8f8;
    --white: #ffffff;
    --page: #f7faff;
    --green: #16845c;
    --green-soft: #e7f7ef;
    --red: #b83248;
    --red-soft: #fff0f1;
    --yellow: #ffcf69;
    --shadow: 0 16px 42px rgba(29, 83, 153, .08);
    --shadow-small: 0 7px 22px rgba(29, 83, 153, .07);
    --radius: 20px;
}

/* Hierarchical library explorer */
.folder-explorer{margin-top:24px;border:1px solid #d9e5f3;border-radius:22px;background:#fff;box-shadow:0 18px 45px rgba(32,67,108,.08);overflow:visible}
.library-breadcrumb{position:sticky;top:12px;z-index:20;display:flex;align-items:center;gap:9px;min-height:52px;margin:0;padding:0 24px;border-bottom:1px solid #e3ebf5;border-radius:22px 22px 0 0;background:rgba(255,255,255,.96);box-shadow:0 7px 22px rgba(29,64,105,.06);backdrop-filter:blur(12px);font-size:.88rem}
.library-breadcrumb a{color:#48627f;text-decoration:none}.library-breadcrumb a:hover{color:#174f96;text-decoration:underline}.library-breadcrumb span{color:#9aadc2}.library-breadcrumb strong{max-width:300px;overflow:hidden;color:#142c49;text-overflow:ellipsis;white-space:nowrap}
.folder-explorer-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:30px 28px 20px}.folder-explorer-heading h2{margin:4px 0 5px;color:#142c49;font-size:1.8rem}.folder-explorer-heading p{margin:0;color:#70839a;font-size:.9rem}.folder-up-link{display:inline-flex;align-items:center;min-height:38px;padding:0 15px;border:1px solid #cbd9e9;border-radius:11px;color:#284b73;font-size:.85rem;font-weight:700;text-decoration:none}.folder-up-link:hover{border-color:#84a9d4;background:#f3f8fe}
.folder-list{border-top:1px solid #edf2f8}.folder-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto 20px;align-items:center;gap:16px;min-height:78px;padding:12px 26px;border-bottom:1px solid #edf2f8;color:inherit;text-decoration:none;transition:background .18s ease,transform .18s ease}.folder-row:hover{background:#f6faff}.folder-row:focus-visible{outline:3px solid rgba(42,112,193,.3);outline-offset:-3px}.folder-icon{position:relative;display:inline-block;width:42px;height:31px;border-radius:5px 7px 7px 7px;background:linear-gradient(145deg,#68aaf2,#3678c7);box-shadow:inset 0 -3px 0 rgba(12,62,126,.16),0 5px 12px rgba(44,106,178,.16)}.folder-icon::before{position:absolute;top:-7px;left:3px;width:18px;height:9px;border-radius:5px 5px 0 0;background:#4b8edb;content:""}.folder-icon-course{background:linear-gradient(145deg,#68aaf2,#3678c7);box-shadow:inset 0 -3px 0 rgba(12,62,126,.16),0 5px 12px rgba(44,106,178,.16)}.folder-icon-course::before{background:#4b8edb}.folder-row-main{min-width:0}.folder-row-main strong{display:block;overflow:hidden;color:#172f4d;font-size:1rem;text-overflow:ellipsis;white-space:nowrap}.folder-row-main small{display:block;margin-top:5px;color:#7b8da2;font-size:.78rem}.folder-row-count{color:#61778f;font-size:.82rem;font-weight:650}.folder-row-chevron{color:#8094aa;font-size:1.55rem;line-height:1}
.folder-resource-toolbar{padding:22px 26px 10px;border-top:0;background:#fbfdff}.folder-resource-toolbar .resource-tabs{margin:0}.resource-file-list{padding:10px 26px 28px;background:#fbfdff;border-radius:0 0 22px 22px}.resource-file-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto auto auto;align-items:center;gap:16px;min-height:82px;margin-top:9px;padding:13px 16px;border:1px solid #dfe8f3;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(29,64,105,.035)}.resource-file-row:hover{border-color:#b9cee4;box-shadow:0 8px 22px rgba(29,64,105,.07)}.resource-file-type{display:grid;width:44px;height:50px;place-items:center;border-radius:9px;background:#eaf3fe;color:#215a9b;font-size:.68rem;font-weight:900;text-decoration:none}.resource-file-type-pdf{background:#fff0ef;color:#be3b35}.resource-file-type-slides{background:#fff2e9;color:#b75b24}.resource-file-type-video{background:#eeeaff;color:#6549b5}.resource-file-type-images{background:#e9f8ef;color:#277b49}.resource-file-main{min-width:0}.resource-file-main h3{margin:0 0 5px;font-size:1rem}.resource-file-main h3 a{color:#173454;text-decoration:none}.resource-file-main h3 a:hover{text-decoration:underline}.resource-file-main p{display:-webkit-box;overflow:hidden;margin:0 0 6px;color:#5f738b;font-size:.82rem;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:1}.resource-file-main small{color:#8798aa;font-size:.72rem}.resource-file-format{padding:5px 9px;border-radius:999px;background:#eef4fa;color:#55718e;font-size:.72rem;font-weight:750}.resource-file-open{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border:1px solid #bed0e4;border-radius:10px;color:#245b96;font-size:.8rem;font-weight:800;text-decoration:none}.resource-file-open:hover{border-color:#397cc4;background:#edf6ff}.compact-empty{margin:10px 0 0;padding:40px 20px;border:1px dashed #c8d8e8;border-radius:15px;background:#fff}.compact-empty .folder-icon{display:block;margin:0 auto 15px}
.admin-course-folders{display:grid;gap:20px}.admin-course-folder-card{padding:0;overflow:hidden}.admin-course-folder-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid #e4ecf4}.admin-course-folder-heading>div{display:flex;align-items:center;gap:16px}.admin-course-folder-heading h2{margin:2px 0 3px;font-size:1.2rem}.admin-course-folder-heading p,.admin-course-folder-heading small{margin:0;color:#778a9e}.admin-folder-list{padding:10px 20px}.admin-folder-list>div{display:grid;grid-template-columns:32px minmax(130px,auto) minmax(0,1fr);align-items:center;gap:12px;min-height:46px;padding-left:calc(var(--folder-depth) * 24px);border-bottom:1px solid #edf2f7}.admin-folder-list .folder-icon{width:27px;height:20px}.admin-folder-list .folder-icon::before{top:-5px;width:12px;height:6px}.admin-folder-list small{overflow:hidden;color:#8a99aa;text-overflow:ellipsis;white-space:nowrap}.admin-add-folder-form{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:12px;padding:18px 22px;background:#f7faff}.admin-add-folder-form label{margin:0}.admin-add-folder-form .button{min-height:44px}
@media (max-width:760px){.library-breadcrumb{top:6px;overflow-x:auto;padding:0 16px;white-space:nowrap}.folder-explorer-heading{align-items:flex-start;flex-direction:column;padding:24px 18px 16px}.folder-row{grid-template-columns:44px minmax(0,1fr) 16px;gap:12px;padding:12px 17px}.folder-row-count{grid-column:2;font-size:.75rem}.folder-row-chevron{grid-column:3;grid-row:1}.resource-file-list{padding:8px 14px 20px}.resource-file-row{grid-template-columns:44px minmax(0,1fr) auto;gap:12px}.resource-file-format{display:none}.resource-file-open{grid-column:2 / -1;justify-self:start}.folder-resource-toolbar{padding:18px 14px 8px}.admin-add-folder-form{grid-template-columns:1fr}.admin-folder-list>div{grid-template-columns:28px minmax(0,1fr)}.admin-folder-list small{display:none}}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* Match the cleaner density of a browser set to 90%, while keeping mobile native. */
@media (min-width: 901px) {
    body { zoom: .9; }
}

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
small, .muted { color: var(--muted); }
small { font-size: .82rem; }

/* Shared brand mark */
.brand-symbol {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 34px;
    height: 34px;
    padding: 7px;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(145deg, #4c9bff, #155dd1);
    box-shadow: 0 6px 14px rgba(23, 105, 232, .2);
}
.brand-symbol span { display: block; width: 5px; border-radius: 3px 3px 1px 1px; background: white; }
.brand-symbol span:nth-child(1) { height: 11px; opacity: .78; }
.brand-symbol span:nth-child(2) { height: 17px; }
.brand-symbol span:nth-child(3) { height: 13px; opacity: .88; }
.eyebrow {
    display: inline-block;
    color: var(--blue);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .14em;
    line-height: 1.4;
}

/* Main application shell and sidebar */
.site-layout { min-height: 100vh; }
.site-sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: 252px;
    padding: 28px 18px 20px;
    background: var(--white);
    border-right: 1px solid #e7eef9;
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; color: var(--blue-deep); }
.sidebar-brand:hover { color: var(--blue); text-decoration: none; }
.sidebar-brand strong { display: block; font-size: 1.04rem; line-height: 1.15; font-weight: 850; letter-spacing: -.035em; }
.sidebar-brand small { display: block; margin-top: 3px; color: #91a3bf; font-size: .58rem; font-weight: 800; letter-spacing: .18em; }
.sidebar-caption { margin: 53px 12px 13px; color: #9aabc3; font-size: .65rem; font-weight: 850; letter-spacing: .15em; }
.sidebar-nav { display: grid; gap: 7px; }
.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 49px;
    padding: 0 14px;
    border-radius: 13px;
    color: #637b9f;
    font-size: .91rem;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.sidebar-link:hover { background: #f3f7ff; color: var(--blue-dark); text-decoration: none; transform: translateX(2px); }
.sidebar-link.active { color: var(--blue-dark); background: #eaf3ff; box-shadow: inset 3px 0 0 var(--blue); }
.sidebar-link-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; color: #83a0c8; font-size: 1.23rem; line-height: 1; }
.sidebar-link.active .sidebar-link-icon { color: var(--blue); }
.sidebar-active-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--blue); }
.sidebar-bottom-card {
    position: relative;
    margin: auto 3px 0;
    padding: 18px 16px 16px;
    overflow: hidden;
    border: 1px solid #e4efff;
    border-radius: 17px;
    background: linear-gradient(145deg, #f1f7ff, #fbfdff);
}
.sidebar-bottom-card strong { position: relative; z-index: 1; display: block; margin-top: 27px; color: var(--blue-deep); font-size: .98rem; line-height: 1.35; }
.sidebar-bottom-card small { position: relative; z-index: 1; display: block; margin-top: 7px; font-size: .7rem; }
.sidebar-bottom-art { position: absolute; top: 12px; right: 14px; width: 66px; height: 39px; }
.sidebar-bottom-art span { position: absolute; bottom: 0; width: 19px; height: 25px; border: 2px solid #8ab7f7; border-radius: 4px 4px 2px 2px; background: #dbeaff; transform: rotate(-12deg); }
.sidebar-bottom-art span:nth-child(2) { left: 18px; height: 33px; background: #fff; border-color: #5e9cf0; transform: rotate(8deg); }
.sidebar-bottom-art span:nth-child(3) { left: 37px; height: 28px; background: #c7e0ff; transform: rotate(18deg); }
.sidebar-footer { padding: 17px 8px 0; color: #9aaac0; font-size: .68rem; text-align: center; letter-spacing: .04em; }
.site-main { min-height: 100vh; }
.site-footer { margin-top: 48px; padding: 22px 0 8px; border-top: 1px solid var(--line); color: #91a2bc; font-size: .76rem; text-align: center; }

/* Buttons and notices */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 47px;
    padding: 0 21px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(110deg, #247af0, #145ed5);
    box-shadow: 0 8px 18px rgba(23, 105, 232, .18);
    color: white;
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.button:hover { color: white; text-decoration: none; transform: translateY(-2px); box-shadow: 0 11px 22px rgba(23, 105, 232, .22); filter: saturate(1.08); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.button.full { width: 100%; }
.button-outline { border: 1px solid #cfe0f7; background: white; box-shadow: none; color: var(--blue-dark); }
.button-outline:hover { color: var(--blue-dark); background: #f5f9ff; box-shadow: var(--shadow-small); }
.button-white { background: white; color: var(--blue-dark); box-shadow: none; }
.button-white:hover { background: #f3f8ff; color: var(--blue-dark); }
.button-small, .button.small { min-height: 36px; padding: 0 13px; border-radius: 9px; font-size: .75rem; }
.button.secondary { color: var(--blue-dark); background: #edf4ff; box-shadow: none; }
.button.danger { background: #c63b50; }
.notice { margin: 14px 0; padding: 13px 15px; border: 1px solid #d8e8ff; border-radius: 11px; background: #f0f6ff; color: var(--blue-dark); font-size: .88rem; }
.notice.success { border-color: #c9eedb; background: var(--green-soft); color: #176b4b; }
.notice.error { border-color: #ffd4d9; background: var(--red-soft); color: #a52c41; }

/* Homepage carousel */
.learning-carousel {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid #e2edfc;
    border-radius: 25px;
    background: linear-gradient(112deg, #edf5ff 0%, #f7faff 52%, #eaf3ff 100%);
    box-shadow: var(--shadow-small);
}
.carousel-track { position: relative; min-height: 342px; }
.carousel-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 15px; padding: 36px 48px 28px; opacity: 0; pointer-events: none; transform: translateX(18px); transition: opacity .45s ease, transform .45s ease; }
.carousel-slide.active { position: relative; opacity: 1; pointer-events: auto; transform: translateX(0); }
.carousel-copy { position: relative; z-index: 2; max-width: 510px; }
.carousel-copy h1 { margin: 15px 0 13px; color: var(--blue-deep); font-size: clamp(2rem, 3.1vw, 3.1rem); line-height: 1.08; letter-spacing: -.055em; }
.carousel-copy h1 span, .page-intro h1 span, .about-hero h1 span, .how-intro h2 span { color: var(--blue); }
.carousel-copy p { max-width: 430px; margin: 0 0 23px; color: #6e83a3; font-size: .95rem; }
.carousel-art { position: relative; min-height: 280px; width: 100%; max-width: 430px; justify-self: center; }
.carousel-controls { position: absolute; z-index: 3; right: 37px; bottom: 21px; left: 48px; display: flex; align-items: center; justify-content: space-between; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 10px; background: #b9cde8; cursor: pointer; transition: width .2s ease, background .2s ease; }
.carousel-dot.active { width: 25px; background: var(--blue); }
.carousel-arrows { display: flex; gap: 8px; }
.carousel-arrows button { width: 32px; height: 32px; border: 1px solid #d3e2f6; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--blue-dark); cursor: pointer; }
.carousel-arrows button:hover { border-color: var(--blue); background: white; }
/* Decorative educational illustrations built with CSS shapes. */
.art-orbit { position: absolute; border: 1px dashed #a9cafa; border-radius: 50%; transform: rotate(-20deg); }
.orbit-one { top: 18px; left: 38px; width: 280px; height: 210px; }
.orbit-two { top: 38px; left: 62px; width: 240px; height: 170px; border-color: #d0e2fb; }
.art-star { position: absolute; color: #f2b948; font-size: 1.6rem; }
.star-a { top: 22px; right: 62px; }.star-b { top: 91px; left: 35px; color: #7eaff1; font-size: 1.2rem; }
.art-book { position: absolute; bottom: 35px; width: 125px; height: 88px; border: 3px solid #1c63c5; border-radius: 8px 10px 9px 5px; background: #fff; box-shadow: 0 12px 20px rgba(31, 88, 159, .13); transform: skewY(-8deg) rotate(-7deg); }
.art-book::before { position: absolute; top: 0; bottom: 0; left: 12px; width: 4px; background: #c4dcfb; content: ""; }
.art-book i { position: relative; display: block; width: 63px; height: 3px; margin: 16px 0 0 34px; border-radius: 3px; background: #c1d8f7; }
.book-a { left: 52px; bottom: 42px; background: #dcecff; transform: rotate(-10deg) skewY(-8deg); }
.book-b { left: 151px; bottom: 52px; border-color: #f0b94f; background: #fff9e8; transform: rotate(8deg) skewY(7deg); }
.art-pencil { position: absolute; z-index: 2; width: 13px; height: 155px; border: 2px solid #d79a37; border-radius: 6px; background: linear-gradient(90deg, #ffd777, #fff0b9); }
.art-pencil::before { position: absolute; top: -13px; left: 0; border-right: 5px solid transparent; border-bottom: 13px solid #dca55c; border-left: 5px solid transparent; content: ""; }
.pencil-a { top: 26px; right: 85px; transform: rotate(32deg); }.pencil-b { top: 85px; right: 31px; height: 110px; transform: rotate(-28deg); background: #8ebaf4; border-color: #4f8bdc; }
.art-paper { position: absolute; top: 22px; right: 99px; display: grid; gap: 9px; width: 80px; height: 105px; padding: 22px 12px; border: 1px solid #c6daf5; border-radius: 7px; background: white; transform: rotate(10deg); box-shadow: 0 8px 18px rgba(32, 85, 149, .08); }
.art-paper span, .art-note span, .share-sheet span { height: 4px; border-radius: 5px; background: #c8dcf6; }
/* second slide */
.art-sun { position: absolute; top: 24px; right: 75px; width: 72px; height: 72px; border-radius: 50%; background: #ffe5a2; }
.art-note { position: absolute; top: 46px; left: 90px; display: grid; gap: 12px; width: 190px; height: 210px; padding: 26px 23px; border: 3px solid #367bd4; border-radius: 12px; background: white; box-shadow: 13px 14px 0 #cfe3ff, 0 14px 25px rgba(34, 85, 150, .12); transform: rotate(-5deg); }
.art-note b { margin-bottom: 3px; color: var(--blue-dark); font-size: .66rem; letter-spacing: .09em; }
.art-note span { width: 100%; background: #d5e5f9; }
.art-note span:nth-of-type(2) { width: 78%; }.art-note span:nth-of-type(4) { width: 65%; }
.art-note i { position: absolute; right: 18px; bottom: 16px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #e2f6eb; color: #16845c; font-style: normal; }
.art-bulb { position: absolute; right: 28px; bottom: 45px; width: 68px; height: 68px; border: 4px solid #e5aa38; border-radius: 50% 50% 45% 45%; background: #fff0bd; }
.art-bulb::after { position: absolute; bottom: -14px; left: 19px; width: 24px; height: 13px; border-radius: 2px 2px 6px 6px; background: #e5aa38; content: ""; }
.star-c { top: 18px; left: 42px; color: #4b8fe7; }.star-d { right: 20px; top: 104px; color: #e8b24c; }
.art-eraser { position: absolute; bottom: 25px; left: 36px; width: 68px; height: 24px; border: 2px solid #df9cb0; border-radius: 5px; background: linear-gradient(90deg, #ffcbd8 50%, #fff 50%); transform: rotate(-22deg); }
/* third slide */
.share-circle { position: absolute; border-radius: 50%; }.circle-one { top: 16px; left: 45px; width: 240px; height: 240px; background: #e1efff; }.circle-two { top: 52px; left: 85px; width: 170px; height: 170px; border: 1px dashed #7eafea; }
.share-sheet { position: absolute; top: 44px; left: 110px; display: grid; gap: 12px; width: 160px; height: 190px; padding: 22px 18px; border: 2px solid #347bd5; border-radius: 9px; background: white; box-shadow: 10px 12px 0 #c5ddfb; transform: rotate(-7deg); }
.share-sheet b { color: var(--blue-dark); font-size: .6rem; letter-spacing: .08em; }.share-sheet span { background: #cfe1f8; }
.share-pencil { position: absolute; top: 56px; right: 58px; width: 15px; height: 150px; border: 2px solid #d7a044; border-radius: 6px; background: #ffe29a; transform: rotate(29deg); }
.share-arrow { position: absolute; right: 29px; bottom: 32px; display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; background: #1d6cdb; color: white; font-size: 2rem; box-shadow: 0 10px 18px rgba(23,105,232,.2); }
.star-e { top: 18px; right: 30px; }

/* Content sections on homepage */
.welcome-section, .recent-section, .content-section { padding: 55px 5px 0; }
.section-heading { max-width: 680px; }
.section-heading h2, .how-intro h2 { margin: 10px 0 10px; color: var(--blue-deep); font-size: clamp(1.65rem, 2.4vw, 2.25rem); line-height: 1.18; letter-spacing: -.045em; }
.section-heading p { max-width: 650px; margin: 0; color: var(--muted); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 25px; }
.benefit-card { min-height: 190px; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 7px 18px rgba(34, 85, 149, .035); }
.benefit-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; font-size: 1.3rem; font-weight: 800; }
.icon-blue { color: #246bcb; background: #e6f1ff; }.icon-yellow { color: #b67b1e; background: #fff3d6; }.icon-lilac { color: #6c68c7; background: #efedff; }
.benefit-card h3 { margin: 17px 0 5px; color: var(--blue-deep); font-size: 1rem; }.benefit-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.how-it-works { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; margin-top: 60px; padding: 36px 38px; border-radius: 22px; background: #edf5ff; }
.how-intro h2 { margin-bottom: 12px; }.how-intro p { max-width: 330px; color: var(--muted); font-size: .9rem; }
.text-link { color: var(--blue-dark); font-size: .84rem; font-weight: 800; }.text-link b { margin-left: 5px; color: var(--blue); }
.steps-list { display: grid; gap: 19px; align-content: center; }
.step-row { display: flex; align-items: flex-start; gap: 16px; }.step-number { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 1px solid #c9defb; border-radius: 13px; background: white; color: var(--blue); font-size: .78rem; font-weight: 900; }
.step-row h3 { margin: 0 0 3px; color: var(--blue-deep); font-size: .95rem; }.step-row p { margin: 0; color: var(--muted); font-size: .82rem; }
.inline-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }.inline-heading h2 { margin-bottom: 0; }
.recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.recent-card { display: flex; align-items: flex-start; gap: 13px; min-height: 116px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.recent-card-icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: #e7f1ff; color: var(--blue); font-size: 1.15rem; }.recent-icon-1 { background: #fff3dc; color: #b47a1b; }.recent-icon-2 { background: #eeedff; color: #6e68c7; }
.recent-card h3 { margin: 0 0 4px; color: var(--blue-deep); font-size: .88rem; }.recent-card p { margin: 0 0 5px; color: var(--muted); font-size: .76rem; }.recent-card small { font-size: .7rem; }
.empty-library { display: flex; align-items: center; gap: 15px; margin-top: 22px; padding: 20px; border: 1px dashed #cbdcf2; border-radius: 16px; background: white; }.empty-library > span { color: #e0aa43; font-size: 1.8rem; }.empty-library strong { color: var(--blue-deep); }.empty-library p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }.empty-library a { margin-left: auto; white-space: nowrap; font-size: .82rem; font-weight: 800; }
.home-cta { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 54px; padding: 30px 36px; border-radius: 21px; background: linear-gradient(112deg, #1769e8, #0e50b9); color: white; }
.home-cta .eyebrow { color: #cfe2ff; }.home-cta h2 { margin: 8px 0 4px; color: white; font-size: 1.65rem; letter-spacing: -.035em; }.home-cta p { margin: 0; color: #d8e8ff; font-size: .88rem; }

/* About page */
.about-hero { position:relative;display:grid;grid-template-columns:1.18fr .82fr;align-items:center;min-height:350px;padding:24px 54px 18px;overflow:hidden;border:1px solid #d5e5f8;border-radius:28px;background:#edf5ff url("about-hero-v2.png") center/cover no-repeat;box-shadow:0 24px 65px rgba(17,74,145,.1); }
.about-hero::before { position:absolute;right:-115px;top:-190px;width:500px;height:420px;border-radius:50%;background:linear-gradient(145deg,rgba(194,220,255,.85),rgba(238,246,255,.18));content:"";pointer-events:none;transform:rotate(10deg); }
.about-hero::before,.about-hero::after { display:none; }
.about-hero-copy { position:relative;z-index:3; }.about-hero h1 { margin:20px 0 22px;color:#092b64;font-size:clamp(2rem,2.8vw,3rem);line-height:.99;letter-spacing:-.06em;white-space:nowrap; }.about-hero h1 .about-highlight { position:relative;display:inline-block;color:var(--blue); }.about-hero h1 .about-highlight::after { position:absolute;right:9%;bottom:-13px;left:24%;height:10px;border-top:3px solid var(--blue);border-radius:50%;content:"";transform:rotate(-3deg); }.about-hero h1 .hero-accent::after { content:none; }.about-hero p { max-width:610px;margin:0 0 24px;color:#3e5e88;font-size:.94rem;line-height:1.55;text-align:center; }.about-hero-action { display:flex;align-items:center;width:min(620px,100%);min-height:57px;padding:5px 6px 5px 18px;border:1px solid #c4d9f5;border-radius:999px;background:rgba(255,255,255,.96);box-shadow:0 12px 28px rgba(33,86,153,.1); }.about-hero-action > span { min-width:0;flex:1;overflow:hidden;padding-right:14px;color:#7890af;font-size:.84rem;text-overflow:ellipsis;white-space:nowrap; }.about-hero-action .button { min-height:45px;padding:0 21px;border-radius:999px;box-shadow:0 7px 16px rgba(23,105,232,.18); }
.about-hero-illustration { position:relative;z-index:2;min-height:270px; }.about-hero-illustration::before { position:absolute;top:52px;left:2%;width:94%;height:155px;border:2px solid rgba(111,169,243,.28);border-radius:50%;content:"";transform:rotate(-9deg); }.about-hero-illustration::after { position:absolute;right:3%;bottom:0;width:94%;height:90px;border-radius:50%;background:radial-gradient(ellipse,rgba(102,164,245,.2),rgba(102,164,245,0) 70%);content:""; }.about-sun { position:absolute;z-index:1;top:13px;right:70px;width:94px;height:94px;border-radius:50%;background:linear-gradient(145deg,#ffeab9,#ffdc88);box-shadow:0 13px 28px rgba(214,155,54,.13); }.about-cloud { position:absolute;z-index:2;height:23px;border-radius:30px;background:rgba(255,255,255,.94);box-shadow:0 7px 17px rgba(36,91,155,.08); }.cloud-one { top:66px;left:10px;width:95px; }.cloud-two { top:103px;right:0;width:70px; }
.about-book { position:absolute;z-index:4;bottom:24px;width:150px;height:100px;border:3px solid #2c70c8;border-radius:11px;background:#fff;box-shadow:0 18px 34px rgba(32,86,151,.16); }.book-back { left:60px;bottom:31px;background:linear-gradient(145deg,#dceaff,#bcd7fb);transform:rotate(-13deg); }.book-front { left:132px;bottom:26px;padding:26px 18px;transform:rotate(8deg); }.book-front i { display:block;width:80px;height:4px;margin-bottom:10px;border-radius:5px;background:#c9def8; }.about-pencil { position:absolute;z-index:4;top:62px;right:57px;width:15px;height:145px;border:2px solid #d9a34b;border-radius:5px;background:linear-gradient(#ffe8ad,#ffd477);box-shadow:0 10px 20px rgba(174,117,25,.12);transform:rotate(31deg); }.about-spark { position:absolute;z-index:5;color:#e9b044;font-size:1.8rem; }.spark-one { top:17px;left:110px; }.spark-two { right:22px;bottom:40px;color:#5d9ae8; }
.about-problem { padding-top:48px; }.problem-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px; }.info-card { position:relative;min-height:180px;padding:24px;overflow:hidden;border:1px solid #d7e5f6;border-radius:18px;background:linear-gradient(145deg,#fff,#fbfdff);box-shadow:0 10px 28px rgba(29,83,153,.055);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }.info-card::before { position:absolute;top:0;right:0;left:0;height:4px;background:linear-gradient(90deg,#1769e8,#65a7ff);content:""; }.info-card:hover { border-color:#b8d1f3;box-shadow:0 18px 38px rgba(29,83,153,.11);transform:translateY(-4px); }.info-number { display:inline-grid;min-width:34px;height:27px;padding:0 8px;place-items:center;border-radius:8px;background:#edf4ff;color:#4b83cf;font-size:.7rem;font-weight:900;letter-spacing:.08em; }.info-card h3 { margin:15px 0 7px;color:var(--blue-deep);font-size:1.03rem; }.info-card p { margin:0;color:var(--muted);font-size:.86rem;line-height:1.65; }
.solution-band { position:relative;display:flex;align-items:center;gap:26px;margin-top:34px;padding:30px 38px;overflow:hidden;border:1px solid #c8dcf6;border-radius:23px;background:linear-gradient(118deg,#fff 0%,#f7fbff 48%,#e8f3ff 100%);box-shadow:0 16px 38px rgba(29,83,153,.08); }.solution-band::before { position:absolute;right:-72px;top:-125px;width:320px;height:260px;border-radius:50%;background:linear-gradient(145deg,rgba(190,218,255,.7),rgba(239,247,255,.15));content:"";transform:rotate(12deg); }.solution-band::after { position:absolute;right:54px;bottom:24px;width:110px;height:2px;border-radius:99px;background:linear-gradient(90deg,transparent,#75aaf0,transparent);content:""; }.solution-icon { position:relative;z-index:2;display:grid;flex:0 0 72px;width:72px;height:72px;place-items:center;border:1px solid rgba(255,255,255,.6);border-radius:22px;background:linear-gradient(145deg,#2b82f3,#0d59cf);box-shadow:0 13px 26px rgba(23,105,232,.22),inset 0 1px 0 rgba(255,255,255,.35);color:#fff;transform:rotate(-3deg); }.solution-icon svg { width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }.solution-copy { position:relative;z-index:2; }.solution-band .eyebrow { display:inline-block;padding:5px 10px;border:1px solid #c5daf6;border-radius:999px;background:rgba(255,255,255,.78); }.solution-band h2 { margin:8px 0 8px;color:var(--blue-deep);font-size:clamp(1.35rem,2vw,1.75rem);line-height:1.08;letter-spacing:-.035em; }.solution-band h2 span { color:var(--blue); }.solution-band p { max-width:900px;margin:0;color:#516f95;font-size:.9rem;line-height:1.65; }
.about-how { padding-top:48px; }.how-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px; }.how-step { display:flex;gap:14px;min-height:125px;padding:20px;border:1px solid #d8e5f5;border-radius:17px;background:white;box-shadow:0 9px 24px rgba(29,83,153,.045);transition:transform .2s ease,box-shadow .2s ease; }.how-step:hover { box-shadow:0 16px 34px rgba(29,83,153,.09);transform:translateY(-3px); }.how-step > span { display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border-radius:12px;background:linear-gradient(145deg,#eaf3ff,#dcecff);color:var(--blue);font-weight:900; }.how-step h3 { margin:1px 0 5px;color:var(--blue-deep);font-size:.94rem; }.how-step p { margin:0;color:var(--muted);font-size:.8rem;line-height:1.6; }.about-cta { display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:34px;padding:25px 28px;border:1px solid #cfe0f5;border-radius:19px;background:linear-gradient(120deg,#fff,#f4f8ff);box-shadow:0 11px 28px rgba(29,83,153,.06); }.about-cta h2 { margin:0 0 4px;color:var(--blue-deep);font-size:1.25rem; }.about-cta p { margin:0;color:var(--muted);font-size:.84rem; }.about-cta .button { border-radius:999px;box-shadow:0 8px 18px rgba(23,105,232,.17); }
.about-challenge-panel { position:relative;margin-top:28px;padding:21px 32px 25px;overflow:hidden;border:1px solid #d7e6f8;border-radius:23px;background:linear-gradient(145deg,#fff 0%,#fbfdff 62%,#f2f7ff 100%);box-shadow:0 13px 34px rgba(29,83,153,.07); }
.about-challenge-panel::before { position:absolute;top:-195px;right:-115px;width:470px;height:330px;border-radius:50%;background:linear-gradient(145deg,rgba(204,226,255,.84),rgba(238,246,255,.2));content:"";pointer-events:none;transform:rotate(12deg); }
.about-challenge-panel::after { position:absolute;bottom:-205px;left:-135px;width:500px;height:340px;border-radius:50%;background:linear-gradient(145deg,rgba(198,223,255,.72),rgba(241,247,255,.12));content:"";pointer-events:none;transform:rotate(-13deg); }
.about-challenge-heading { position:relative;z-index:2;text-align:center; }.about-challenge-heading .eyebrow { display:inline-block;margin-top:5px; }.about-challenge-heading h2 { margin:5px 0 4px;color:#092e69;font-size:clamp(1.65rem,2.45vw,2.35rem);line-height:1.05;letter-spacing:-.055em; }.about-challenge-heading h2 span { position:relative;display:inline-block;color:var(--blue); }.about-challenge-heading h2 span::after { position:absolute;right:13%;bottom:-9px;left:29%;height:7px;border-top:3px solid var(--blue);border-radius:50%;content:"";transform:rotate(-4deg); }.about-challenge-heading > p { margin:12px 0 0;color:#617998;font-size:.88rem; }
.about-challenge-copy { position:relative;z-index:2;width:100%;max-width:none;margin:25px auto 4px;padding:25px 38px;box-sizing:border-box;border-top:1px solid #d7e5f6;border-bottom:1px solid #d7e5f6;text-align:center; }
.about-challenge-copy p { margin:0;color:#486685;font-size:1rem;line-height:1.9; }
.about-challenge-panel .problem-grid { position:relative;z-index:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:23px; }
.about-challenge-panel .info-card { display:flex;align-items:center;flex-direction:column;min-height:190px;padding:13px 28px 17px;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:center;transform:none; }
.about-challenge-panel .info-card::before { display:none; }.about-challenge-panel .info-card + .info-card { border-left:1px solid #cfe0f5; }.about-challenge-panel .info-card:hover { border-color:#cfe0f5;border-radius:17px;background:rgba(255,255,255,.72);box-shadow:none;transform:translateY(-2px); }.challenge-icon { display:grid;width:64px;height:64px;place-items:center;border-radius:20px; }.challenge-icon svg { width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }.challenge-lecture .challenge-icon { background:#ffecef;color:#e84155; }.challenge-scattered .challenge-icon { background:#fff2d9;color:#e18b00; }.challenge-pressure .challenge-icon { background:#e8f2ff;color:#1769e8; }.about-challenge-panel .info-card h3 { margin:14px 0 7px;font-size:1.05rem; }.about-challenge-panel .info-card p { max-width:330px;font-size:.82rem;line-height:1.6; }

/* Page introductions, courses and library */
.page-intro { max-width: 760px; padding: 29px 0 26px; }.page-intro h1 { margin: 9px 0 10px; color: var(--blue-deep); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.12; letter-spacing: -.05em; }.page-intro p { max-width: 680px; margin: 0; color: var(--muted); font-size: .94rem; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }.course-card { position: relative; display: flex; flex-direction: column; min-height: 194px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 5px 17px rgba(36,86,146,.035); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }.course-card:hover { border-color: #b7d2f7; box-shadow: var(--shadow-small); text-decoration: none; transform: translateY(-3px); }.course-card.selected { border-color: #8db8f1; background: #f2f7ff; }.course-card-icon { display: grid; width: 38px; height: 38px; margin-bottom: 13px; place-items: center; border-radius: 11px; background: #eaf3ff; color: var(--blue); font-size: 1.2rem; }.course-card .eyebrow { font-size: .63rem; }.course-card h2 { margin: 6px 0 3px; color: var(--blue-deep); font-size: 1.05rem; }.course-card p { margin: 0; color: var(--muted); font-size: .78rem; }.course-card-link { margin-top: auto; padding-top: 16px; color: var(--blue); font-size: .78rem; font-weight: 850; }.course-card-link b { margin-left: 5px; }
.library-results { margin-top: 46px; }.resource-list { display: grid; gap: 12px; margin-top: 20px; }.resource-card { display: flex; align-items: center; gap: 15px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 15px; background: white; }.resource-file-icon { display: grid; flex: 0 0 45px; width: 45px; height: 45px; place-items: center; border-radius: 12px; background: #eaf3ff; color: var(--blue); font-size: .68rem; font-weight: 900; }.resource-card-copy { min-width: 0; flex: 1; }.resource-card-copy h3 { margin: 0 0 3px; color: var(--blue-deep); font-size: .92rem; }.resource-card-copy p { margin: 0 0 4px; color: var(--muted); font-size: .8rem; }.resource-card-copy small { font-size: .72rem; }.library-note { display: flex; align-items: center; gap: 14px; margin-top: 33px; padding: 18px 20px; border: 1px solid #e2ecfa; border-radius: 15px; background: #f1f7ff; }.library-note-icon { color: #e2a83f; font-size: 1.7rem; }.library-note strong { color: var(--blue-deep); font-size: .88rem; }.library-note p { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }.library-note a { margin-left: auto; white-space: nowrap; font-size: .8rem; font-weight: 850; }
.empty-state { display: grid; justify-items: center; margin-top: 20px; padding: 43px 25px; border: 1px dashed #cbdcf2; border-radius: 18px; background: white; text-align: center; }.empty-state > span { color: #e4ad48; font-size: 2rem; }.empty-state h2 { margin: 9px 0 5px; color: var(--blue-deep); font-size: 1.2rem; }.empty-state p { max-width: 500px; margin: 0 0 17px; color: var(--muted); font-size: .87rem; }.compact-empty { padding: 28px; }

/* Review page */
.review-summary { display: flex; align-items: center; gap: 14px; margin: 2px 0 22px; padding: 16px 19px; border: 1px solid #d8ebdf; border-radius: 15px; background: #f0faf4; }.review-summary-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #d9f3e4; color: #16845c; font-weight: 900; }.review-summary strong { color: #176b4b; font-size: .86rem; }.review-summary p { margin: 2px 0 0; color: #668b79; font-size: .77rem; }.review-summary a { margin-left: auto; white-space: nowrap; color: #176b4b; font-size: .8rem; font-weight: 850; }
.review-notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }.note-card { display: flex; flex-direction: column; min-height: 240px; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: white; }.note-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.note-type { padding: 5px 9px; border-radius: 7px; background: #edf4ff; color: var(--blue-dark); font-size: .67rem; font-weight: 850; }.approved-mark { color: #16845c; font-size: .7rem; font-weight: 800; }.note-card h2 { margin: 17px 0 5px; color: var(--blue-deep); font-size: 1.08rem; }.note-course { margin: 0; color: var(--blue); font-size: .77rem; font-weight: 750; }.note-description { margin: 12px 0 18px; color: var(--muted); font-size: .83rem; }.note-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #edf2fa; }.note-card-bottom small { font-size: .68rem; }.note-card-bottom a { white-space: nowrap; font-size: .78rem; font-weight: 850; }
.submission-view-card { max-width: 900px; margin: 18px auto 0; padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-small); }.submission-view-card h1 { margin: 10px 0 5px; color: var(--blue-deep); font-size: 2.1rem; line-height: 1.15; letter-spacing: -.04em; }.submission-meta { color: var(--muted); font-size: .82rem; }.submission-description { margin-top: 25px; color: #526d91; }.note-content { margin: 20px 0; padding: 23px; border: 1px solid #e2ecfa; border-radius: 13px; background: #f7faff; white-space: pre-wrap; color: #435e83; }.back-review-link { display: inline-block; margin-top: 28px; }

/* Submit page and drop zone */
.submit-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .75fr); align-items: start; gap: 20px; }.submit-main-card, .submit-side-card { padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: 0 7px 20px rgba(34,85,149,.035); }.submit-card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }.submit-card-heading h2 { margin: 5px 0 0; color: var(--blue-deep); font-size: 1.3rem; }.submit-heading-icon { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 14px; background: #eaf3ff; color: var(--blue); font-size: 1.4rem; }
.submit-form, .auth-form { display: grid; gap: 16px; }.submit-form label, .auth-form label, .panel label, .narrow label { display: grid; gap: 7px; color: #3d587e; font-size: .82rem; font-weight: 750; }.submit-form input:not([type="file"]), .submit-form select, .submit-form textarea, .auth-form input, .panel input, .panel select, .panel textarea, .narrow input, .narrow select, .narrow textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #d8e4f4; border-radius: 10px; outline: 0; background: #fbfdff; color: var(--ink); font-size: .88rem; font-weight: 450; transition: border-color .18s ease, box-shadow .18s ease; }
.submit-form textarea, .auth-form textarea, .panel textarea, .narrow textarea { min-height: 100px; resize: vertical; }.submit-form input:focus, .submit-form select:focus, .submit-form textarea:focus, .auth-form input:focus, .panel input:focus, .panel select:focus, .panel textarea:focus { border-color: #7eb0f1; box-shadow: 0 0 0 3px rgba(23,105,232,.1); }
.student-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; padding: 13px; border: 1px solid #e6effb; border-radius: 12px; background: #f7faff; }.identity-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: #dcecff; color: var(--blue-dark); font-size: 1rem; font-weight: 900; }.student-identity small, .student-identity strong, .student-identity span { display: block; }.student-identity small { color: #91a4c0; font-size: .61rem; font-weight: 850; letter-spacing: .1em; }.student-identity strong { color: var(--blue-deep); font-size: .87rem; }.student-identity div > span { color: var(--muted); font-size: .72rem; }
.optional-label { margin-left: 6px; color: #9aabc3; font-size: .62rem; font-weight: 850; letter-spacing: .1em; }.drop-zone { position: relative; display: grid; justify-items: center; min-height: 190px; padding: 25px 15px; border: 2px dashed #b9d2f3; border-radius: 14px; background: #f6faff; text-align: center; cursor: pointer; transition: background .18s ease, border-color .18s ease; }.drop-zone:hover, .drop-zone.dragging { border-color: var(--blue); background: #edf5ff; }.drop-zone-icon { display: grid; width: 42px; height: 42px; margin-bottom: 9px; place-items: center; border-radius: 13px; background: #e1efff; color: var(--blue); font-size: 1.55rem; font-weight: 700; }.drop-zone strong { color: var(--blue-deep); font-size: .9rem; }.drop-zone p { margin: 3px 0 8px; color: var(--muted); font-size: .78rem; }.drop-zone p span { color: var(--blue); font-weight: 800; }.drop-zone small { font-size: .69rem; }.drop-zone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px,1fr)); gap: 10px; margin-top: 12px; }.preview-item { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; text-align: center; }.preview-item img { display: block; width: 100%; height: 75px; border-radius: 6px; object-fit: cover; }.preview-item small { display: block; overflow: hidden; margin-top: 6px; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }.preview-file-icon { display: grid; height: 75px; place-items: center; border-radius: 6px; background: #edf4ff; color: var(--blue); font-size: .8rem; font-weight: 900; }
.submit-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 6px; }.submit-form-footer p { margin: 0; color: var(--muted); font-size: .72rem; }.submit-form-footer p span { color: var(--blue); font-weight: 900; }.submit-side-card { position: relative; overflow: hidden; background: linear-gradient(160deg, #f4f8ff, white); }.submit-side-illustration { position: relative; height: 145px; margin-bottom: 16px; border-radius: 14px; background: #e7f1ff; }.side-paper { position: absolute; top: 22px; left: 39%; width: 76px; height: 94px; border: 2px solid #4e8bd8; border-radius: 7px; background: white; transform: rotate(-8deg); box-shadow: 8px 8px 0 #c6ddfb; }.side-paper::before { position: absolute; top: 24px; left: 12px; width: 48px; height: 4px; background: #c9ddf6; box-shadow: 0 13px #c9ddf6, 0 26px #c9ddf6; content: ""; }.side-pencil { position: absolute; top: 20px; right: 24%; width: 12px; height: 112px; border: 2px solid #d6a04a; border-radius: 5px; background: #ffe09a; transform: rotate(26deg); }.side-star { position: absolute; top: 14px; right: 22px; color: #e8ae43; font-size: 1.5rem; }.submit-side-card h3 { margin: 7px 0 14px; color: var(--blue-deep); font-size: 1.14rem; line-height: 1.3; }.submit-side-card ul { display: grid; gap: 10px; margin: 0; padding: 0 0 0 17px; color: #6b81a1; font-size: .79rem; }.submit-side-card li::marker { color: var(--blue); }.upload-limits { display: grid; gap: 4px; margin-top: 23px; padding: 14px; border: 1px solid #e0ebfa; border-radius: 12px; background: white; }.upload-limits strong { color: var(--blue-deep); font-size: .77rem; }.upload-limits span { color: var(--blue); font-size: .78rem; font-weight: 800; }.upload-limits small { font-size: .68rem; }

/* Student dashboard */
.dashboard-intro { padding-bottom: 15px; }.dashboard-quick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }.dashboard-logout { margin-left: auto; padding: 9px 4px; color: #7185a5; font-size: .82rem; font-weight: 800; }.dashboard-logout:hover { color: var(--red); text-decoration: none; }.submission-table-wrap, .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: white; }.submission-table, table { width: 100%; border-collapse: collapse; font-size: .8rem; }.submission-table th, .submission-table td, table th, table td { padding: 14px 15px; border-bottom: 1px solid #edf2fa; text-align: left; vertical-align: top; }.submission-table th, table th { background: #f6f9ff; color: #7890b1; font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }.submission-table td { color: #526d91; }.submission-table td strong { color: var(--blue-deep); }.submission-table tr:last-child td, table tr:last-child td { border-bottom: 0; }.status-pill { display: inline-block; padding: 4px 8px; border-radius: 20px; font-size: .67rem; font-weight: 850; }.status-pending { background: #fff4dc; color: #a36a10; }.status-approved { background: #e6f7ed; color: #16744e; }.status-rejected { background: #fff0f1; color: #ad3147; }

/* Authentication screens — intentionally no sidebar */
.auth-page { min-height: 100vh; background: radial-gradient(circle at 80% 12%, #e7f2ff 0, transparent 27%), #f7faff; }.auth-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 5vw; border-bottom: 1px solid #e5eef9; background: rgba(255,255,255,.85); }.auth-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--blue-deep); font-size: 1rem; font-weight: 850; }.auth-brand:hover { color: var(--blue); text-decoration: none; }.back-home { color: #6e83a3; font-size: .8rem; font-weight: 750; }.auth-main { width: min(1040px, 92vw); margin: 0 auto; }.role-main { padding: 62px 0 48px; }.auth-intro { margin-bottom: 30px; text-align: center; }.auth-intro h1 { margin: 12px 0 9px; color: var(--blue-deep); font-size: clamp(2.3rem, 4vw, 3.4rem); line-height: 1.03; letter-spacing: -.055em; }.auth-intro h1 span { color: var(--blue); }.auth-intro p { margin: 0; color: var(--muted); }.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 810px; margin: 0 auto; }.role-card { position: relative; min-height: 370px; padding: 25px 27px; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow-small); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }.role-card:hover { border-color: #a9c9f3; box-shadow: var(--shadow); text-decoration: none; transform: translateY(-4px); }.role-art { position: relative; height: 135px; margin-bottom: 15px; overflow: hidden; border-radius: 15px; background: #eef5ff; }.admin-art { background: #f1f4ff; }.role-label { color: #8ca1bd; font-size: .65rem; font-weight: 900; letter-spacing: .14em; }.role-card h2 { margin: 7px 0 5px; color: var(--blue-deep); font-size: 1.35rem; }.role-card p { max-width: 310px; margin: 0; color: var(--muted); font-size: .83rem; }.role-action { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; color: var(--blue); font-size: .83rem; font-weight: 850; }.role-action b { font-size: 1.1rem; }.role-art-book { position: absolute; bottom: 17px; left: 39%; width: 78px; height: 80px; border: 3px solid #397ed6; border-radius: 7px; background: white; transform: rotate(-8deg); box-shadow: 8px 8px 0 #c8defb; }.role-art-book::before { position: absolute; top: 23px; left: 12px; width: 45px; height: 3px; background: #c8defb; box-shadow: 0 12px #c8defb, 0 24px #c8defb; content: ""; }.role-art-pencil { position: absolute; top: 13px; right: 24%; width: 11px; height: 106px; border: 2px solid #d6a04a; border-radius: 5px; background: #ffe09a; transform: rotate(27deg); }.role-art-star { position: absolute; top: 13px; right: 23px; color: #e5ad43; font-size: 1.55rem; }.admin-art-sheet, .admin-art-sheet::before { position: absolute; top: 18px; left: 41%; width: 78px; height: 98px; border: 2px solid #7897e3; border-radius: 7px; background: white; box-shadow: 7px 7px 0 #d6ddff; content: ""; }.admin-art-sheet::before { top: 19px; left: 11px; width: 47px; height: 3px; border: 0; border-radius: 0; background: #d6e1fa; box-shadow: 0 12px #d6e1fa, 0 24px #d6e1fa; }.admin-art-check { position: absolute; top: 57px; left: 56%; display: grid; width: 36px; height: 36px; place-items: center; border: 3px solid white; border-radius: 50%; background: #43b58a; color: white; font-weight: 900; }.auth-footnote { margin: 24px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }.auth-footnote a { color: var(--blue); font-weight: 850; }.auth-footer { padding: 22px; color: #9aabc2; font-size: .73rem; text-align: center; }
.form-main { display: grid; justify-items: center; padding: 36px 0 48px; }.auth-form-card { position: relative; width: min(500px, 100%); padding: 30px 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }.auth-form-card h1 { margin: 8px 0 5px; color: var(--blue-deep); font-size: 1.9rem; letter-spacing: -.045em; }.auth-form-card > .muted { margin: 0 0 19px; font-size: .84rem; }.auth-form-art { position: relative; height: 100px; margin: -7px -9px 18px; overflow: hidden; border-radius: 14px; background: #edf5ff; }.admin-form-art { background: #f0f3ff; }.form-art-book { position: absolute; bottom: 10px; left: 43%; width: 62px; height: 67px; border: 2px solid #397ed6; border-radius: 6px; background: white; transform: rotate(-9deg); }.form-art-pencil { position: absolute; top: 6px; right: 30%; width: 10px; height: 88px; border: 2px solid #d6a04a; border-radius: 5px; background: #ffe09a; transform: rotate(24deg); }.form-art-star { position: absolute; top: 8px; right: 20%; color: #e4ad43; font-size: 1.4rem; }.register-sheet { position: absolute; top: 13px; left: 43%; width: 68px; height: 78px; border: 2px solid #397ed6; border-radius: 6px; background: white; transform: rotate(7deg); }.register-sheet::before { position: absolute; top: 20px; left: 11px; width: 43px; height: 3px; background: #d1e1f7; box-shadow: 0 12px #d1e1f7, 0 24px #d1e1f7; content: ""; }.register-pencil { position: absolute; top: 4px; right: 29%; width: 10px; height: 92px; border: 2px solid #d6a04a; border-radius: 5px; background: #ffe09a; transform: rotate(24deg); }.form-two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.auth-form .button { margin-top: 3px; }.admin-auth-card { width: min(460px,100%); }
.unified-auth-main { padding-top:46px; }
.unified-auth-card { border-color:#c9def8;background:linear-gradient(145deg,#fff 0%,#fbfdff 68%,#eef6ff 100%);box-shadow:0 24px 65px rgba(17,74,145,.13); }
.unified-auth-card .auth-form-art { height:112px;background:linear-gradient(135deg,#eaf4ff,#dcecff); }
.unified-auth-card .button { min-height:48px;border-radius:12px;background:linear-gradient(135deg,#287cf1,#155dd7);box-shadow:0 9px 20px rgba(23,105,232,.2); }

/* Shared sign-in and registration modal */
body.auth-modal-open { overflow:hidden; }
.auth-modal { position:fixed;z-index:500;inset:0;display:grid;place-items:center;padding:22px;opacity:0;transition:opacity .2s ease; }
.auth-modal[hidden] { display:none; }
.auth-modal.is-open { opacity:1; }
.auth-modal-backdrop { position:absolute;inset:0;background:linear-gradient(145deg,rgba(6,28,65,.58),rgba(13,67,141,.42));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px); }
.auth-modal-dialog { position:relative;z-index:2;width:min(560px,100%);max-height:calc(100vh - 44px);overflow:auto;border:1px solid rgba(194,219,249,.95);border-radius:28px;background:#fff;box-shadow:0 35px 110px rgba(3,30,72,.36),0 0 0 7px rgba(255,255,255,.1);transform:translateY(18px) scale(.975);transition:transform .22s ease;scrollbar-width:thin;scrollbar-color:#bfd6f3 transparent; }
.auth-modal.is-open .auth-modal-dialog { transform:translateY(0) scale(1); }
.auth-modal-hero { position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;height:132px;padding:15px 22px 15px 25px;overflow:hidden;background:linear-gradient(125deg,#0d55c5 0%,#287cf1 56%,#55a5ff 100%); }
.auth-modal-hero::after { position:absolute;right:-50px;bottom:-100px;width:250px;height:185px;border:1px solid rgba(255,255,255,.19);border-radius:50%;content:"";transform:rotate(-15deg); }
.auth-hero-orbit { position:absolute;border:1px solid rgba(255,255,255,.17);border-radius:50%; }
.orbit-one { top:-88px;left:-55px;width:255px;height:190px; }.orbit-two { top:24px;right:115px;width:150px;height:90px;transform:rotate(-12deg); }
.auth-modal-brand { position:relative;z-index:2;display:flex;align-items:center;gap:12px;color:#fff; }
.auth-modal-brand img { width:48px;height:48px;padding:3px;border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 10px 25px rgba(0,34,90,.25); }
.auth-modal-brand strong,.auth-modal-brand small { display:block; }.auth-modal-brand strong { font-size:1.12rem;font-style:italic;letter-spacing:-.035em; }.auth-modal-brand small { margin-top:2px;color:#d9ebff;font-size:.69rem; }
.auth-modal-hero-image { position:relative;z-index:2;width:min(50%,260px);height:118px;object-fit:contain;object-position:center;filter:drop-shadow(0 10px 14px rgba(4,42,103,.2)); }
.auth-modal-body { padding:27px 31px 27px;background:linear-gradient(160deg,#fff 0%,#fff 68%,#f3f8ff 100%); }
.auth-modal-view .eyebrow { display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border:1px solid #c8dcf7;border-radius:999px;background:#f3f8ff;color:#1769e8; }
.auth-modal-view h2 { margin:10px 0 5px;color:var(--blue-deep);font-size:2rem;line-height:1.05;letter-spacing:-.055em; }
.auth-modal-view h2 span { position:relative;color:var(--blue); }.auth-modal-view h2 span::after { position:absolute;right:5%;bottom:-7px;left:20%;height:6px;border-top:2px solid var(--blue);border-radius:50%;content:"";transform:rotate(-3deg); }
.auth-modal-view > p:not(.auth-modal-switch) { margin:0 0 14px;color:#6a82a3;font-size:.83rem;line-height:1.55; }
.auth-modal-message { margin:0 0 14px;padding:11px 13px;border-radius:11px;font-size:.78rem;line-height:1.45; }
.auth-modal-message.error { border:1px solid #f2c6cd;background:#fff1f3;color:#a92f44; }
.auth-modal-message.success { border:1px solid #bee6d1;background:#ecfaf3;color:#15714c; }
.auth-modal-form { gap:13px; }
.auth-modal-form label { gap:6px;color:#294a76;font-size:.78rem; }
.auth-input-shell { position:relative;display:flex;align-items:center;min-height:51px;border:1px solid #ccdcf0;border-radius:12px;background:#fff;box-shadow:none;transition:border-color .18s ease; }
.auth-input-shell:hover,.auth-input-shell:focus-within { border-color:#ccdcf0;outline:0;box-shadow:none;transform:none; }
.auth-input-shell > svg { width:19px;height:19px;margin-left:14px;flex:0 0 19px;fill:none;stroke:#7193bd;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.auth-modal-form .auth-input-shell input { min-width:0;min-height:49px;padding:10px 43px 10px 11px;border:0;border-radius:12px;background:transparent;box-shadow:none;font-size:.84rem; }
.auth-modal-form .auth-input-shell input:hover,.auth-modal-form .auth-input-shell input:focus,.auth-modal-form .auth-input-shell input:focus-visible { border:0;outline:0!important;box-shadow:none!important; }
.auth-modal-form .auth-input-shell input::placeholder { color:#9bacbf; }
.auth-password-toggle { position:absolute;right:8px;display:grid;width:35px;height:35px;padding:0;place-items:center;border:0;border-radius:9px;background:transparent;color:#86a0bf;cursor:pointer; }
.auth-password-toggle:hover,.auth-password-toggle.is-visible { background:#edf5ff;color:var(--blue); }
.auth-password-toggle svg { width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.auth-password-grid { gap:10px; }
.auth-modal-form .auth-submit { display:flex;align-items:center;justify-content:center;min-height:50px;margin-top:3px;border:1px solid #1763d7;border-radius:13px;background:linear-gradient(135deg,#2f84f4,#155dd7);box-shadow:0 11px 24px rgba(23,105,232,.24),inset 0 1px 0 rgba(255,255,255,.25);font-size:.86rem;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease; }
.auth-modal-form .auth-submit:hover { filter:saturate(1.08);box-shadow:0 14px 29px rgba(23,105,232,.3);transform:translateY(-2px); }
.auth-modal-form .button:disabled { cursor:wait;opacity:.72; }
.auth-modal-switch { margin:18px 0 0;color:#7187a5;font-size:.78rem;text-align:center; }
.auth-modal-switch button { padding:0;border:0;background:transparent;color:var(--blue);font-weight:850;cursor:pointer; }
.auth-modal-switch button:hover { text-decoration:underline; }
.auth-simple-dialog { width:min(500px,100%);border-radius:24px; }
.auth-simple-dialog .auth-modal-body { padding:35px 36px 29px;background:linear-gradient(160deg,#fff 0%,#fff 72%,#f3f8ff 100%); }
.auth-simple-dialog .auth-modal-view h2 { margin-top:0;font-size:2.1rem; }
.auth-simple-dialog .auth-modal-view > p:not(.auth-modal-switch) { margin-bottom:20px; }
.auth-simple-dialog .auth-password-grid { grid-template-columns:1fr;gap:13px; }
@media (max-width:650px) {
    .auth-modal { align-items:end;padding:10px; }
    .auth-modal-dialog { max-height:calc(100vh - 20px);border-radius:23px; }
    .auth-modal-hero { height:108px;padding:10px 16px 10px 18px; }
    .auth-modal-brand img { width:42px;height:42px; }.auth-modal-brand small { display:none; }
    .auth-modal-hero-image { width:48%;height:96px; }
    .auth-modal-body { padding:16px 19px 22px; }
    .auth-simple-dialog .auth-modal-body { padding:29px 21px 24px; }
    .auth-modal-view h2 { font-size:1.72rem; }
    .auth-password-grid { grid-template-columns:1fr;gap:13px; }
}

/* Existing admin dashboard and management screens */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; padding: 13px max(3vw, 20px); background: linear-gradient(110deg, #1769e8, #1056c5); color: white; box-shadow: 0 5px 18px rgba(12,73,159,.15); }
.topbar .brand { color: white; font-size: 1.12rem; font-weight: 850; }.topbar nav { display: flex; flex-wrap: wrap; gap: 17px; }.topbar nav a { color: #eaf3ff; font-size: .82rem; font-weight: 700; }.topbar nav a:hover { color: white; }
.page { width: min(1180px, 92vw); margin: 36px auto; }.page h1 { margin: 8px 0; color: var(--blue-deep); font-size: 2.1rem; letter-spacing: -.04em; }.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 15px 0 22px; }.panel { padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow-small); }.panel h2 { margin-top: 0; color: var(--blue-deep); }.narrow { width: min(540px, 92vw); margin: 55px auto; }.narrow.wide { width: min(880px, 92vw); }.narrow-panel { max-width: 700px; }.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin-top: 25px; }.feature { padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-small); }.feature h2 { margin: 10px 0 7px; color: var(--blue-deep); font-size: 1.05rem; }.feature p { color: var(--muted); font-size: .86rem; }.feature a { font-size: .82rem; font-weight: 800; }.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 25px 0; }.stat { display: grid; gap: 5px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: white; }.stat span { color: var(--muted); font-size: .76rem; }.stat strong { color: var(--blue-deep); font-size: 1.8rem; }.stat a { font-size: .76rem; font-weight: 800; }.two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }.section-title { margin: 32px 0 13px; color: var(--blue-deep); font-size: 1.25rem; }.inline-form { display: flex; align-items: center; gap: 8px; }.inline-form select { min-width: 140px; min-height: 39px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }.status { display: inline-block; padding: 4px 9px; border-radius: 20px; background: #edf4ff; color: var(--blue-dark); font-size: .7rem; font-weight: 850; }.status.pending { background: #fff4dc; color: #9c6a13; }.status.approved { background: #e6f7ed; color: #16744e; }.status.rejected { background: #fff0f1; color: #ad3147; }.review-card { margin: 18px 0; }.review-card .page-heading { margin-top: 0; }.review-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }.resource { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 10px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }.resource p { margin: 3px 0; color: var(--muted); }.resource small { display: block; }.empty { padding: 35px; border: 1px dashed #cbdcf2; border-radius: 15px; background: white; text-align: center; }.empty h2 { color: var(--blue-deep); }.empty p { color: var(--muted); }.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }.notice + .notice { margin-top: 10px; }

/* Legacy shared-sidebar class support if any old page still includes it */
.resources-layout { display: flex; align-items: flex-start; gap: 25px; width: min(1320px, 94vw); margin: 28px auto; }.resources-content { min-width: 0; flex: 1; }.home-sidebar { flex: 0 0 235px; }.shared-sidebar { position: sticky; top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }.sidebar-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }.sidebar-heading-icon { font-size: 1.5rem; }.sidebar-heading strong, .sidebar-heading small { display: block; }.sidebar-heading strong { color: var(--blue-deep); }.sidebar-section-label { margin: 17px 0 7px; color: #91a2bc; font-size: .65rem; font-weight: 850; letter-spacing: .12em; }.shared-sidebar > a { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 9px; color: #637b9f; font-size: .82rem; }.shared-sidebar > a.active { background: #eaf3ff; color: var(--blue-dark); }.sidebar-arrow { margin-left: auto; }

/* General legacy helpers */
.narrow form { display: grid; gap: 14px; }.narrow .button { margin-top: 5px; }.page .muted { color: var(--muted); }

/* Responsive layouts */
@media (max-width: 1150px) {
    .site-sidebar { width: 225px; }.site-main { margin-left: 225px; padding-right: 28px; padding-left: 28px; }
    .carousel-slide { padding-right: 30px; padding-left: 34px; }.carousel-controls { left: 34px; }
    .carousel-art { transform: scale(.9); transform-origin: center; }
    .submit-layout { grid-template-columns: minmax(0,1.3fr) minmax(220px,.7fr); }
}
@media (max-width: 900px) {
    .site-sidebar { position: relative; inset: auto; width: auto; min-height: auto; padding: 14px 18px; border-right: 0; border-bottom: 1px solid #e7eef9; }
    .sidebar-brand { padding: 0 4px; }.sidebar-caption, .sidebar-bottom-card, .sidebar-footer { display: none; }
    .sidebar-nav { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
    .sidebar-link { min-height: 40px; gap: 7px; padding: 0 10px; font-size: .78rem; }.sidebar-link-icon { width: 18px; font-size: 1rem; }
    .site-main { margin-left: 0; padding: 0 25px 22px; }
    .carousel-slide { grid-template-columns: 1fr .8fr; padding: 30px 28px 26px; }.carousel-copy h1 { font-size: 2.35rem; }.carousel-art { transform: scale(.8); }
    .benefit-grid, .problem-grid, .how-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .submit-layout { grid-template-columns: 1fr; }.submit-side-card { display: grid; grid-template-columns: 150px 1fr; column-gap: 20px; }.submit-side-illustration { grid-row: span 4; margin: 0; }
    .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
    .site-main { padding-right: 15px; padding-left: 15px; }
    .learning-carousel { min-height: 545px; }.carousel-track { min-height: 490px; }
    .carousel-slide { grid-template-columns: 1fr; align-content: start; gap: 0; padding: 28px 22px 20px; }
    .carousel-copy h1 { font-size: 2.15rem; }.carousel-copy p { font-size: .85rem; }.carousel-copy .button { min-height: 42px; }
    .carousel-art { min-height: 205px; width: 100%; max-width: 320px; margin-top: -4px; transform: scale(.72); transform-origin: top center; }
    .carousel-controls { right: 20px; bottom: 14px; left: 22px; }
    .welcome-section, .recent-section, .content-section { padding-top: 39px; }
    .benefit-grid, .problem-grid, .how-grid, .recent-grid, .review-notes-grid, .course-grid, .role-grid { grid-template-columns: 1fr; }
    .benefit-card { min-height: auto; }.how-it-works { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; padding: 25px 20px; }
    .inline-heading, .home-cta, .about-cta { align-items: flex-start; flex-direction: column; }.home-cta { padding: 25px 22px; }.empty-library { align-items: flex-start; flex-wrap: wrap; }.empty-library a { margin-left: 0; }
    .about-hero { grid-template-columns: 1fr; padding: 27px 23px 10px; }.about-hero-illustration { min-height: 225px; }.about-hero h1 { font-size: 2.35rem; white-space: normal; }
    .solution-band { align-items:flex-start;gap:15px;padding:22px 18px; }.solution-icon { flex-basis:52px;width:52px;height:52px;border-radius:16px; }.solution-icon svg { width:30px;height:30px; }.solution-band h2 { font-size:1.3rem; }.solution-band p { font-size:.82rem; }.how-step { padding: 16px; }
    .resource-card { align-items: flex-start; flex-wrap: wrap; }.resource-card-copy { flex-basis: calc(100% - 60px); }.resource-card .button { margin-left: 60px; }
    .library-note { align-items: flex-start; flex-wrap: wrap; }.library-note a { margin-left: 47px; }
    .review-summary { align-items: flex-start; flex-wrap: wrap; }.review-summary a { margin-left: 52px; }
    .submit-main-card, .submit-side-card { padding: 19px; }.submit-side-card { display: block; }.submit-side-illustration { height: 125px; margin-bottom: 15px; }
    .submit-form-footer { align-items: stretch; flex-direction: column; }.submit-form-footer .button { width: 100%; }
    .submission-view-card { padding: 23px 18px; }.submission-view-card h1 { font-size: 1.65rem; }
    .auth-topbar { min-height: 66px; padding: 0 17px; }.auth-brand { font-size: .85rem; }.back-home { font-size: .7rem; }.role-main { padding-top: 42px; }.role-card { min-height: 330px; }
    .form-main { padding: 25px 0 35px; }.auth-form-card { padding: 24px 20px; }.form-two-fields { grid-template-columns: 1fr; gap: 15px; }
    .page { margin: 22px auto; }.page-heading { align-items: flex-start; flex-direction: column; }.two-col, .feature-grid, .cards { grid-template-columns: 1fr; }.stats { grid-template-columns: repeat(2,minmax(0,1fr)); }.topbar { align-items: flex-start; flex-direction: column; gap: 10px; }.topbar nav { gap: 12px; }.resource { align-items: flex-start; flex-direction: column; }
    .submission-table { min-width: 780px; }
    .dashboard-logout { width: 100%; margin-left: 0; text-align: center; }
}

/* Library explorer polish: compact AJAX folder browser */
.library-collection-panel.folder-explorer {
    padding: 0 0 30px;
    overflow: hidden;
    border-color: #c8dcf5;
    background: #fff;
    box-shadow: 0 20px 48px rgba(28, 78, 146, .10);
}
.library-collection-panel.folder-explorer::before,
.library-collection-panel.folder-explorer::after { display: none; }
.library-collection-panel.folder-explorer.is-entering {
    animation: library-panel-in .24s ease both;
}
@keyframes library-panel-in {
    from { opacity: .25; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.folder-explorer > * { position: relative; z-index: 2; }
.folder-explorer .library-breadcrumb {
    position: relative;
    top: auto;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    margin: 0;
    padding: 0 28px;
    overflow-x: auto;
    border: 0;
    border-bottom: 1px solid #0d4fae;
    border-radius: 23px 23px 0 0;
    background: linear-gradient(115deg, #104fae 0%, #1769e8 58%, #5b4bd8 120%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .16), 0 8px 20px rgba(15, 79, 174, .16);
    color: #fff;
    font-size: .84rem;
    white-space: nowrap;
    backdrop-filter: blur(14px);
}
.folder-explorer .library-breadcrumb::after {
    display: none;
}
.folder-explorer .library-breadcrumb a,
.folder-explorer .library-breadcrumb strong {
    position: relative;
    z-index: 1;
    max-width: 330px;
    overflow: hidden;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.folder-explorer .library-breadcrumb a { opacity: 1; }
.folder-explorer .library-breadcrumb a:hover { color: #fff; opacity: 1; text-decoration: none; }
.folder-explorer .library-breadcrumb strong { opacity: 1; }
.folder-explorer .library-breadcrumb i { color: rgba(255, 255, 255, .58); font-style: normal; }
.folder-explorer .breadcrumb-home { display: inline-flex; align-items: center; gap: 8px; }
.folder-explorer .breadcrumb-home svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.8; }

.folder-explorer .folder-explorer-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    min-height: 154px;
    padding: 28px;
    border-bottom: 1px solid #dfebf8;
    background: linear-gradient(120deg, rgba(234, 244, 255, .96), rgba(248, 245, 255, .94));
    outline: none;
}
.folder-explorer .folder-heading-copy { display: flex; align-items: center; gap: 18px; min-width: 0; }
.folder-explorer .folder-heading-mark {
    display: grid;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 20px;
    background: linear-gradient(145deg, #2f89f7, #155dcc 66%, #7357d9);
    box-shadow: 0 13px 26px rgba(28, 95, 194, .22), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.folder-explorer .folder-heading-mark svg { width: 34px; height: 34px; fill: rgba(255,255,255,.14); stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.folder-explorer .folder-heading-copy > div { min-width: 0; }
.folder-explorer .folder-explorer-heading .eyebrow { color: #1766d9; letter-spacing: .14em; }
.folder-explorer .folder-explorer-heading h2 {
    max-width: 760px;
    margin: 5px 0 6px;
    overflow: hidden;
    color: #0d315e;
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    line-height: 1.16;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.folder-explorer .folder-explorer-heading p { margin: 0; color: #607b9b; font-size: .9rem; }
.folder-explorer .folder-explorer-heading-root {
    justify-content: center;
    min-height: 86px;
    padding: 14px 28px;
    border-bottom-color: #fff;
    background: #fff;
    text-align: center;
}
.folder-explorer .folder-root-intro { display: flex; align-items: center; justify-content: center; gap: 18px; width: min(980px, 100%); }
.folder-explorer .folder-root-intro::before,
.folder-explorer .folder-root-intro::after {
    flex: 1 1 70px;
    max-width: 82px;
    min-width: 28px;
    height: 2px;
    border-radius: 999px;
    content: "";
}
.folder-explorer .folder-root-intro::before { background: linear-gradient(90deg, transparent, #9d8be0); }
.folder-explorer .folder-root-intro::after { background: linear-gradient(90deg, #9d8be0, transparent); }
.folder-explorer .folder-root-intro p {
    flex: 0 1 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #5b4bb7;
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}
.folder-explorer .folder-explorer-heading-current {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 18px;
    min-height: 86px;
    padding: 14px 28px;
    border-bottom-color: #fff;
    background: #fff;
    text-align: center;
}
.folder-explorer .folder-explorer-heading-current .folder-up-link {
    width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.folder-explorer .folder-explorer-heading-current .folder-up-link:hover {
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}
.folder-explorer .folder-explorer-heading-current .folder-back-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, #287cf1, #145bc9);
    box-shadow: 0 6px 14px rgba(22, 92, 201, .24);
    color: #fff;
}
.folder-explorer .folder-explorer-heading-current .folder-back-arrow svg { width: 20px; height: 20px; stroke-width: 1.7; }
.folder-explorer .folder-explorer-heading-current .folder-up-link:hover .folder-back-arrow {
    background: linear-gradient(145deg, #176fe5, #0d4fad);
    box-shadow: 0 8px 17px rgba(22, 92, 201, .31);
    color: #fff;
}
.folder-explorer .folder-current-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
}
.folder-explorer .folder-current-intro::before,
.folder-explorer .folder-current-intro::after {
    flex: 1 1 70px;
    max-width: 82px;
    min-width: 28px;
    height: 2px;
    border-radius: 999px;
    content: "";
}
.folder-explorer .folder-current-intro::before { background: linear-gradient(90deg, transparent, #9d8be0); }
.folder-explorer .folder-current-intro::after { background: linear-gradient(90deg, #9d8be0, transparent); }
.folder-explorer .folder-explorer-heading-current .folder-current-intro h2 {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: #5b4bb7;
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .14em;
    line-height: 1.4;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.folder-explorer .folder-heading-balance { width: 44px; }
.folder-explorer .folder-up-link {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-height: 55px;
    padding: 7px 13px 7px 8px;
    border: 1px solid #c5d9ef;
    border-radius: 17px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 8px 20px rgba(34, 83, 144, .09);
    color: #184b86;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.18;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.folder-explorer .folder-up-link:hover { border-color: #80afe1; background: #fff; box-shadow: 0 11px 25px rgba(34,83,144,.14); transform: translateY(-1px); }
.folder-explorer .folder-up-link small { display: block; margin-bottom: 2px; color: #7490ae; font-size: .61rem; letter-spacing: .13em; }
.folder-explorer .folder-back-arrow { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #257cf0, #145bc9); color: #fff; box-shadow: 0 6px 14px rgba(22,92,201,.23); }
.folder-explorer .folder-back-arrow svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

.folder-explorer .folder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    padding: 26px 28px 4px;
}
.folder-explorer .folder-explorer-heading-root + .course-folder-grid { padding-top: 0; }
.folder-explorer .folder-card {
    position: relative;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    min-width: 0;
    min-height: 138px;
    padding: 20px 18px 37px;
    overflow: hidden;
    border: 1px solid #d8e5f3;
    border-radius: 19px;
    background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
    box-shadow: 0 9px 22px rgba(33, 77, 132, .065);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.folder-explorer .folder-card::after {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #68aaf2, #3678c7);
    content: "";
}
.folder-explorer .folder-card:hover { border-color: #acc8e8; box-shadow: 0 15px 30px rgba(31, 80, 143, .12); text-decoration: none; transform: translateY(-3px); }
.folder-explorer .folder-card:focus-visible { outline: 3px solid rgba(36, 116, 221, .27); outline-offset: 3px; }
.folder-explorer .folder-card-icon { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 18px; background: linear-gradient(145deg, #e5f2ff, #eee9ff); }
.folder-explorer .folder-card-icon .folder-icon { width: 44px; height: 32px; }
.folder-explorer .folder-card-copy { min-width: 0; }
.folder-explorer .folder-card-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #12365f;
    font-size: .98rem;
    line-height: 1.38;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.folder-explorer .folder-card-copy small { display: block; margin-top: 7px; color: #7790ab; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.folder-explorer .folder-card-count { position: absolute; right: 15px; bottom: 11px; padding: 4px 8px; border-radius: 999px; background: #edf4fc; color: #587594; font-size: .68rem; font-weight: 800; }
.folder-explorer .course-folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 210px));
    justify-content: start;
    gap: 20px 16px;
}
.folder-explorer .course-folder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    min-height: 0;
    padding: 12px 10px;
    overflow: visible;
    border: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
    text-align: center;
}
.folder-explorer .course-folder-card::after { display: none; }
.folder-explorer .course-folder-card:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: translateY(-3px);
}
.folder-explorer .folder-card-icon-course {
    width: 70px;
    height: 70px;
    border: 1px solid #d9e6f8;
    border-radius: 20px;
    background: linear-gradient(145deg, #e5f2ff, #eee9ff);
    box-shadow: 0 9px 20px rgba(36, 87, 157, .1);
    transition: box-shadow .2s ease, transform .2s ease;
}
.folder-explorer .course-folder-card:hover .folder-card-icon-course {
    box-shadow: 0 13px 25px rgba(36, 87, 157, .16);
    transform: translateY(-2px);
}
.folder-explorer .folder-card-icon-course .folder-icon { width: 48px; height: 35px; }
.folder-explorer .course-folder-card .folder-card-copy { width: 100%; }
.folder-explorer .course-folder-card .folder-card-copy strong {
    color: #294c72;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.35;
    -webkit-line-clamp: 2;
}
.folder-explorer .topic-folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    justify-content: stretch;
    gap: 20px 16px;
}
.folder-explorer .topic-folder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    min-height: 0;
    padding: 12px 10px;
    overflow: visible;
    border: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
    text-align: center;
}
.folder-explorer .topic-folder-card::after { display: none; }
.folder-explorer .topic-folder-card:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: translateY(-3px);
}
.folder-explorer .topic-folder-card .folder-card-icon {
    width: 70px;
    height: 70px;
    border: 1px solid #d9e6f8;
    border-radius: 20px;
    background: linear-gradient(145deg, #e5f2ff, #eee9ff);
    box-shadow: 0 9px 20px rgba(36, 87, 157, .1);
    transition: box-shadow .2s ease, transform .2s ease;
}
.folder-explorer .topic-folder-card:hover .folder-card-icon {
    box-shadow: 0 13px 25px rgba(36, 87, 157, .16);
    transform: translateY(-2px);
}
.folder-explorer .topic-folder-card .folder-card-icon .folder-icon { width: 48px; height: 35px; }
.folder-explorer .topic-folder-card .folder-card-copy { width: 100%; }
.folder-explorer .topic-folder-card .folder-card-copy strong {
    color: #294c72;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.35;
    -webkit-line-clamp: 2;
}

.folder-explorer .folder-resource-toolbar { margin: 26px 28px 0; }
.folder-explorer .resource-file-list { margin: 26px 28px 0; padding-right: 0; padding-left: 0; }

@media (max-width: 980px) {
    .folder-explorer .folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .folder-explorer .folder-explorer-heading { align-items: flex-start; }
}
@media (max-width: 650px) {
    .library-collection-panel.folder-explorer { padding-bottom: 20px; border-radius: 20px; }
    .folder-explorer .library-breadcrumb { top: auto; min-height: 54px; padding: 0 17px; border-radius: 19px 19px 0 0; font-size: .78rem; }
    .folder-explorer .library-breadcrumb a,
    .folder-explorer .library-breadcrumb strong { max-width: 185px; }
    .folder-explorer .folder-explorer-heading { flex-direction: column; gap: 16px; min-height: 0; padding: 22px 18px; }
    .folder-explorer .folder-explorer-heading-root { padding: 14px 18px; text-align: center; }
    .folder-explorer .folder-explorer-heading-current {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px;
        min-height: 68px;
        padding: 10px 12px;
    }
    .folder-explorer .folder-explorer-heading-current .folder-up-link { width: 42px; min-height: 42px; padding: 0; }
    .folder-explorer .folder-heading-balance { width: 44px; }
    .folder-explorer .folder-current-intro { gap: 7px; }
    .folder-explorer .folder-current-intro::before,
    .folder-explorer .folder-current-intro::after { flex-basis: 12px; min-width: 6px; height: 1px; }
    .folder-explorer .folder-explorer-heading-current .folder-current-intro h2 { font-size: .68rem; letter-spacing: .07em; }
    .folder-explorer .folder-root-intro { flex-direction: row; gap: 10px; }
    .folder-explorer .folder-root-intro p { width: auto; padding: 0; font-size: .78rem; }
    .folder-explorer .folder-heading-copy { gap: 13px; }
    .folder-explorer .folder-heading-mark { flex-basis: 52px; width: 52px; height: 52px; border-radius: 16px; }
    .folder-explorer .folder-heading-mark svg { width: 28px; height: 28px; }
    .folder-explorer .folder-explorer-heading h2 { white-space: normal; }
    .folder-explorer .folder-explorer-heading:not(.folder-explorer-heading-root) p { font-size: .83rem; line-height: 1.45; }
    .folder-explorer .folder-up-link { min-height: 48px; }
    .folder-explorer .folder-back-arrow { width: 34px; height: 34px; }
    .folder-explorer .folder-grid { grid-template-columns: 1fr; gap: 12px; padding: 17px 15px 2px; }
    .folder-explorer .course-folder-grid,
    .folder-explorer .topic-folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding-right: 12px; padding-left: 12px; }
    .folder-explorer .course-folder-grid { padding-top: 0; }
    .folder-explorer .folder-card { min-height: 116px; padding: 16px 15px 34px; }
    .folder-explorer .folder-card-icon { width: 56px; height: 56px; }
    .folder-explorer .course-folder-card,
    .folder-explorer .topic-folder-card { min-height: 0; padding: 10px 6px; }
    .folder-explorer .folder-card-icon-course { width: 62px; height: 62px; }
    .folder-explorer .topic-folder-card .folder-card-icon { width: 62px; height: 62px; }
    .folder-explorer .folder-resource-toolbar { margin: 20px 14px 0; }
    .folder-explorer .resource-file-list { margin: 20px 14px 0; }
}

/* My Space hero */
.member-dashboard-page .dashboard-space-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
    align-items: center;
    min-height: 238px;
    margin: 14px 0 22px;
    padding: 30px 46px;
    overflow: hidden;
    border: 1px solid #cfe1f7;
    border-radius: 25px;
    background-color: #edf6ff;
    background-image:
        url("my-space-hero-v1.png"),
        linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(250,253,255,.95) 44%, rgba(235,246,255,.22) 68%, rgba(229,243,255,.04) 100%),
        linear-gradient(120deg, #fff 0%, #f4f9ff 48%, #dceeff 100%);
    background-position: calc(100% - 26px) center, center, center;
    background-repeat: no-repeat;
    background-size: 360px auto, 100% 100%, 100% 100%;
    box-shadow: 0 18px 48px rgba(24, 82, 154, .08);
}
.member-dashboard-page .dashboard-space-hero::before {
    position: absolute;
    top: -175px;
    right: -100px;
    width: 440px;
    height: 335px;
    border: 1px solid rgba(92,153,232,.15);
    border-radius: 50%;
    background: rgba(204,226,255,.06);
    content: "";
    pointer-events: none;
    transform: rotate(12deg);
}
.member-dashboard-page .dashboard-space-hero::after {
    position: absolute;
    bottom: -135px;
    left: -65px;
    width: 335px;
    height: 185px;
    border-radius: 50%;
    background: rgba(215,233,255,.72);
    content: "";
    pointer-events: none;
    transform: rotate(-12deg);
}
.dashboard-space-copy { position: relative; z-index: 2; }
.member-dashboard-page .dashboard-space-copy > .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 29px;
    padding: 0 11px;
    border: 1px solid #bdd7f7;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
}
.member-dashboard-page .dashboard-space-copy > .eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #42c594;
    box-shadow: 0 0 0 4px #e5f8f1;
}
.member-dashboard-page .dashboard-space-hero h1 {
    margin: 14px 0 8px;
    color: var(--blue-deep);
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -.055em;
}
.member-dashboard-page .dashboard-space-hero h1 span {
    position: relative;
    display: inline-block;
    color: var(--blue);
}
.member-dashboard-page .dashboard-space-hero h1 span::after {
    position: absolute;
    right: 7%;
    bottom: -8px;
    left: 22%;
    height: 7px;
    border-top: 3px solid var(--blue);
    border-radius: 50%;
    content: "";
    transform: rotate(-3deg);
}
.member-dashboard-page .dashboard-space-hero p {
    max-width: 650px;
    margin: 0;
    color: #587497;
    font-size: .88rem;
    line-height: 1.55;
}
.dashboard-space-art { position: relative; z-index: 2; min-height: 168px; }
.dashboard-space-art::before {
    position: absolute;
    top: 51px;
    right: -3%;
    width: 106%;
    height: 78px;
    border: 2px solid rgba(85,148,230,.2);
    border-radius: 50%;
    content: "";
    transform: rotate(-9deg);
}
.dashboard-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.member-dashboard-page .dashboard-hero-actions .button {
    min-height: 41px;
    padding: 0 17px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(23,105,232,.17);
    font-size: .76rem;
}
.member-dashboard-page .dashboard-hero-actions .dashboard-review-button {
    border: 1px solid #bcd4f4;
    background: rgba(255,255,255,.92);
    box-shadow: 0 7px 16px rgba(29,83,153,.08);
    color: #1559b8;
}
.member-dashboard-page .dashboard-hero-actions .dashboard-review-button:hover { border-color: #8cb9ef; background: #fff; color: #0d4ca5; }
.member-dashboard-page .member-dashboard-collection { margin-top: 0; }
.member-dashboard-page.member-approved-page .approved-resources-hero {
    background-image:
        url("approved-resources-hero-v1.png"),
        linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(250,253,255,.95) 44%, rgba(235,246,255,.22) 68%, rgba(229,243,255,.04) 100%),
        linear-gradient(120deg, #fff 0%, #f4f9ff 48%, #dceeff 100%);
    background-size: 360px auto, 100% 100%, 100% 100%;
}
.member-approved-page .member-approved-collection { margin-top: 0; }

@media (max-width: 900px) {
    .member-dashboard-page .dashboard-space-hero { grid-template-columns: 1fr .55fr; padding: 29px 31px; background-position: calc(100% + 15px) center, center, center; background-size: 325px auto, 100% 100%, 100% 100%; }
    .member-dashboard-page.member-approved-page .approved-resources-hero { background-size: 325px auto, 100% 100%, 100% 100%; }
}
@media (max-width: 650px) {
    .member-dashboard-page .dashboard-space-hero { grid-template-columns: 1fr; min-height: auto; padding: 25px 21px; background-image: url("my-space-hero-v1.png"), linear-gradient(120deg,rgba(255,255,255,.97),rgba(239,247,255,.94)), linear-gradient(120deg,#fff,#e7f3ff); background-position: calc(100% + 185px) center, center, center; background-size: 290px auto, 100% 100%, 100% 100%; }
    .member-dashboard-page.member-approved-page .approved-resources-hero { background-size: 290px auto, 100% 100%, 100% 100%; }
    .member-dashboard-page .dashboard-space-hero h1 { font-size: 2rem; }
    .dashboard-space-art { display: none; }
    .dashboard-hero-actions { align-items: stretch; flex-direction: column; }
    .member-dashboard-page .dashboard-hero-actions .button { justify-content: center; width: 100%; }
}

/* Polished contribution page */
.submit-page-body .site-main { padding-bottom: 34px; }
.submit-page-body .submit-page-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
    align-items: center;
    width: 100%;
    max-width: none;
    min-height: 238px;
    margin: 14px 0 22px;
    padding: 32px 46px;
    overflow: hidden;
    border: 1px solid #cfe1f7;
    border-radius: 25px;
    background-color: #edf6ff;
    background-image:
        url("submit-hero-upload-v1.png"),
        linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(250,253,255,.94) 43%, rgba(235,246,255,.22) 66%, rgba(229,243,255,.04) 100%),
        linear-gradient(120deg, #fff 0%, #f4f9ff 48%, #dceeff 100%);
    background-position: calc(100% - 34px) center, center, center;
    background-repeat: no-repeat;
    background-size: 455px auto, 100% 100%, 100% 100%;
    box-shadow: 0 18px 48px rgba(24, 82, 154, .08);
}
.submit-page-body .submit-page-hero::before {
    position: absolute;
    top: -170px;
    right: -95px;
    width: 430px;
    height: 330px;
    border-radius: 50%;
    border: 1px solid rgba(92, 153, 232, .16);
    background: rgba(204, 226, 255, .07);
    content: "";
    transform: rotate(12deg);
}
.submit-page-body .submit-page-hero::after {
    position: absolute;
    bottom: -130px;
    left: -65px;
    width: 330px;
    height: 180px;
    border-radius: 50%;
    background: rgba(219, 235, 255, .72);
    content: "";
    transform: rotate(-12deg);
}
.submit-hero-copy { position: relative; z-index: 2; }
.submit-page-body .submit-page-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 29px;
    padding: 0 11px;
    border: 1px solid #bdd7f7;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
}
.submit-page-body .submit-page-hero .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #42c594; box-shadow: 0 0 0 4px #e5f8f1; }
.submit-page-body .submit-page-hero h1 { margin: 15px 0 9px; font-size: clamp(2rem, 3vw, 2.85rem); }
.submit-page-body .submit-page-hero h1 span { position: relative; display: inline-block; }
.submit-page-body .submit-page-hero h1 span::after { position: absolute; right: 7%; bottom: -8px; left: 20%; height: 7px; border-top: 3px solid var(--blue); border-radius: 50%; content: ""; transform: rotate(-3deg); }
.submit-page-body .submit-page-hero p { color: #577397; font-size: .92rem; line-height: 1.65; }
.submit-hero-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.submit-hero-points span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid #d8e6f7; border-radius: 999px; background: rgba(255, 255, 255, .8); color: #557294; font-size: .73rem; font-weight: 750; }
.submit-hero-points svg { width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.submit-hero-art { position: relative; z-index: 2; min-height: 170px; }
.submit-hero-art::before { position: absolute; top: 56px; right: -2%; width: 105%; height: 76px; border: 2px solid rgba(85, 148, 230, .22); border-radius: 50%; content: ""; transform: rotate(-10deg); }
.hero-upload-sheet { position: absolute; top: 30px; left: 22%; width: 100px; height: 124px; border: 2px solid #3880da; border-radius: 12px; background: #fff; box-shadow: 11px 12px 0 #cfe2fb, 0 18px 32px rgba(25, 82, 150, .14); transform: rotate(-8deg); }
.hero-upload-sheet::before { position: absolute; top: 28px; left: 17px; width: 62px; height: 5px; border-radius: 5px; background: #c9ddf6; box-shadow: 0 16px #c9ddf6, 0 32px #c9ddf6; content: ""; }
.hero-upload-sheet i { position: absolute; right: 13px; bottom: 13px; width: 20px; height: 20px; border-radius: 7px; background: #e7f2ff; }
.hero-upload-arrow { position: absolute; top: 10px; right: 18%; display: grid; width: 68px; height: 68px; place-items: center; border: 7px solid rgba(255, 255, 255, .82); border-radius: 22px; background: linear-gradient(145deg, #3789f5, #1764da); box-shadow: 0 16px 30px rgba(23, 105, 232, .24); transform: rotate(7deg); }
.hero-upload-arrow svg { width: 34px; height: 34px; fill: none; stroke: white; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-upload-check { position: absolute; right: 22%; bottom: 12px; display: grid; width: 48px; height: 48px; place-items: center; border: 5px solid white; border-radius: 50%; background: #42bc8b; box-shadow: 0 10px 24px rgba(33, 146, 103, .2); color: white; font-size: 1.25rem; font-weight: 900; }
.hero-upload-star { position: absolute; top: 5px; left: 11%; color: #edb345; font-size: 1.7rem; }

.submit-page-body .submit-layout { gap: 22px; grid-template-columns: minmax(0, 1.62fr) minmax(290px, .72fr); }
.submit-page-body .submit-main-card,
.submit-page-body .submit-side-card { border-color: #cee0f5; border-radius: 22px; box-shadow: 0 14px 38px rgba(27, 82, 151, .075); }
.submit-page-body .submit-main-card { padding: 31px; background: linear-gradient(155deg, #fff 0%, #fff 78%, #f7fbff 100%); }
.submit-page-body .submit-card-heading { margin-bottom: 22px; padding-bottom: 19px; border-bottom: 1px solid #e5eef9; }
.submit-page-body .submit-card-heading h2 { margin-top: 6px; font-size: 1.48rem; letter-spacing: -.035em; }
.submit-page-body .submit-card-heading p { margin: 5px 0 0; color: #7890ae; font-size: .78rem; }
.submit-page-body .submit-heading-icon { width: 52px; height: 52px; border: 1px solid #d8e7fa; border-radius: 16px; background: linear-gradient(145deg, #f2f7ff, #e2efff); box-shadow: inset 0 1px 0 white; }
.submit-page-body .submit-heading-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.submit-page-body .submit-form { gap: 19px; }
.submit-page-body .student-identity { position: relative; isolation: isolate; min-height: 78px; gap: 14px; margin: 0 0 3px; padding: 14px 16px 14px 15px; overflow: hidden; border-color: #cddff5; border-radius: 17px; background: linear-gradient(118deg, #fff 0%, #f4f8ff 56%, #eaf3ff 100%); box-shadow: 0 9px 24px rgba(30, 86, 158, .08), inset 0 1px 0 #fff; }
.submit-page-body .student-identity::before { position: absolute; z-index: -1; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, #68adff, #1769e8); content: ""; }
.submit-page-body .student-identity::after { position: absolute; z-index: -1; top: -75px; right: 80px; width: 190px; height: 145px; border-radius: 50%; background: rgba(116, 173, 246, .11); content: ""; pointer-events: none; }
.submit-page-body .identity-avatar { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border: 3px solid rgba(255,255,255,.92); border-radius: 16px; background: linear-gradient(145deg, #438ff2, #1769e8); box-shadow: 0 7px 16px rgba(23, 105, 232, .22); color: #fff; font-size: 1.05rem; text-align: center; text-shadow: 0 1px 2px rgba(0, 40, 105, .18); }
.submit-page-body .identity-copy { display: grid; min-width: 0; gap: 1px; align-content: center; }
.submit-page-body .identity-copy small { color: #6f88a9; font-size: .69rem; letter-spacing: .12em; }
.submit-page-body .identity-copy strong { overflow: hidden; color: #0d3979; font-size: .96rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.submit-page-body .identity-copy > span { overflow: hidden; color: #6f86a5; font-size: .75rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.submit-page-body .identity-status { display: inline-flex; position: relative; align-items: center; gap: 7px; margin-left: auto; padding: 7px 11px; border: 1px solid #bfe4d3; border-radius: 999px; background: rgba(255,255,255,.86); box-shadow: 0 5px 13px rgba(30, 116, 81, .08), inset 0 1px 0 #fff; color: #167653; font-size: .7rem; font-weight: 850; white-space: nowrap; }
.submit-page-body .identity-status i { width: 7px; height: 7px; border-radius: 50%; background: #27b77b; box-shadow: 0 0 0 3px #ddf6eb; }
.submit-page-body .form-label-text { color: #284c79; font-size: .8rem; font-weight: 800; }
.submit-page-body .submit-form input:not([type="file"]),
.submit-page-body .submit-form select,
.submit-page-body .submit-form textarea { min-height: 50px; padding: 12px 14px; border-color: #cfdff2; border-radius: 12px; background: #fbfdff; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.submit-page-body .submit-form input:not([type="file"]):hover,
.submit-page-body .submit-form select:hover,
.submit-page-body .submit-form textarea:hover { border-color: #accbf1; }
.submit-page-body .submit-form input:focus,
.submit-page-body .submit-form select:focus,
.submit-page-body .submit-form textarea:focus { border-color: #6da8ef; background: #fff; box-shadow: 0 0 0 4px rgba(23, 105, 232, .09); }
.submit-page-body .drop-zone { min-height: 210px; padding: 29px 17px; border-color: #aecdF4; border-radius: 17px; background: linear-gradient(145deg, #f9fcff, #eff6ff); }
.submit-page-body .drop-zone:hover,
.submit-page-body .drop-zone.dragging { border-color: #5598ec; background: linear-gradient(145deg, #f7fbff, #e8f3ff); box-shadow: 0 12px 28px rgba(23, 105, 232, .08); }
.submit-page-body .drop-zone:focus-visible { outline: 3px solid rgba(23, 105, 232, .16); outline-offset: 3px; }
.submit-page-body .drop-zone-icon { width: 52px; height: 52px; margin-bottom: 12px; border: 1px solid #cfe1f7; border-radius: 16px; background: #fff; box-shadow: 0 9px 20px rgba(28, 86, 158, .1); }
.submit-page-body .drop-zone-icon svg { width: 25px; height: 25px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.submit-page-body .drop-zone strong { font-size: .96rem; }
.submit-page-body .drop-zone p { margin: 5px 0 11px; font-size: .8rem; }
.submit-page-body .drop-zone small { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.8); color: #7990ad; }
.submit-page-body #fileArea.has-files .drop-zone { grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;justify-items:start;column-gap:13px;min-height:92px;padding:14px 16px;text-align:left; }
.submit-page-body #fileArea.has-files .drop-zone-icon { grid-row:1 / 3;width:44px;height:44px;margin:0;border-radius:13px; }
.submit-page-body #fileArea.has-files .drop-zone-icon svg { width:22px;height:22px; }
.submit-page-body #fileArea.has-files .drop-zone strong { grid-column:2;grid-row:1;align-self:end; }
.submit-page-body #fileArea.has-files .drop-zone p { grid-column:2;grid-row:2;align-self:start;margin:2px 0 0; }
.submit-page-body #fileArea.has-files .drop-zone small { grid-column:3;grid-row:1 / 3;align-self:center;white-space:nowrap; }
.submit-page-body #fileArea.single-file-mode .preview-grid { grid-template-columns:minmax(0,1fr); }
.submit-page-body #fileArea.single-file-mode .preview-item { display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:13px;padding:10px 12px;border-color:#cfe0f5;border-radius:13px;background:#fafdff;text-align:left; }
.submit-page-body #fileArea.single-file-mode .preview-file-icon { height:54px;border-radius:10px; }
.submit-page-body #fileArea.single-file-mode .preview-item small { margin:0;color:#365b88;font-size:.76rem;font-weight:750; }
.submit-page-body .optional-label { display: inline-flex; margin-left: 5px; padding: 3px 6px; border-radius: 6px; background: #edf4ff; color: #7391b8; vertical-align: middle; }
.submit-page-body .submit-form-footer { margin: 2px -8px -8px; padding: 17px 8px 8px; border-top: 1px solid #e5eef9; }
.submit-page-body .submit-form-footer p { max-width: 430px; font-size: .75rem; line-height: 1.55; }
.submit-page-body .submit-form-footer .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 21px; border-radius: 12px; box-shadow: 0 10px 23px rgba(23, 105, 232, .22); }
.submit-page-body .submit-form-footer .button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.submit-page-body .submit-side-card { position: sticky; top: 102px; padding: 21px; background: linear-gradient(160deg, #f5f9ff 0%, #fff 75%); }
.submit-page-body .submit-side-card::after { position: absolute; right: -85px; bottom: -115px; width: 230px; height: 210px; border-radius: 50%; background: rgba(220, 236, 255, .48); content: ""; pointer-events: none; }
.submit-page-body .submit-side-card > * { position: relative; z-index: 2; }
.submit-page-body .submit-side-illustration { height: 150px; border: 1px solid #d9e8fa; border-radius: 17px; background: linear-gradient(145deg, #eaf4ff, #dcecff); }
.submit-page-body .submit-side-card h3 { margin-top: 9px; font-size: 1.2rem; letter-spacing: -.025em; }
.submit-page-body .submit-side-card ul { gap: 11px; padding-left: 0; list-style: none; }
.submit-page-body .submit-side-card li { position: relative; padding-left: 23px; line-height: 1.55; }
.submit-page-body .submit-side-card li::before { position: absolute; top: 1px; left: 0; display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: #e3f0ff; color: var(--blue); content: "✓"; font-size: .62rem; font-weight: 900; }
.submit-page-body .upload-limits { margin-top: 20px; padding: 15px; border-color: #d9e7f8; border-radius: 14px; box-shadow: 0 8px 20px rgba(28, 86, 158, .05); }
.format-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 6px; }
.submit-page-body .format-tags span { padding: 5px 7px; border-radius: 7px; background: #eaf3ff; color: #1769e8; font-size: .65rem; font-weight: 850; }
.submit-page-body .upload-limits small { color: #8296b1; line-height: 1.45; }

@media (max-width: 900px) {
    .submit-page-body .submit-page-hero { grid-template-columns: 1fr .55fr; padding: 29px 31px; background-position:calc(100% + 15px) center,center,center; background-size:390px auto,100% 100%,100% 100%; }
    .submit-page-body .submit-layout { grid-template-columns: 1fr; }
    .submit-page-body .submit-side-card { position: relative; top: auto; grid-template-columns: 170px 1fr; }
}
@media (max-width: 650px) {
    .submit-page-body .submit-page-hero { grid-template-columns: 1fr; min-height: auto; margin-top: 10px; padding: 25px 21px; background-image:url("submit-hero-upload-v1.png"),linear-gradient(120deg,rgba(255,255,255,.97),rgba(239,247,255,.94)),linear-gradient(120deg,#fff,#e7f3ff);background-position:calc(100% + 165px) center,center,center;background-size:360px auto,100% 100%,100% 100%; }
    .submit-page-body .submit-page-hero h1 { font-size: 2rem; }
    .submit-page-body .submit-hero-art { display: none; }
    .submit-hero-points { gap: 7px; }
    .submit-hero-points span { min-height: 32px; padding: 0 9px; font-size: .68rem; }
    .submit-page-body .submit-main-card { padding: 21px 17px; }
    .submit-page-body .submit-card-heading { align-items: flex-start; }
    .submit-page-body .submit-heading-icon { width: 44px; height: 44px; flex: 0 0 44px; }
    .submit-page-body .student-identity { min-height: 72px; padding: 12px 13px; }
    .submit-page-body .identity-avatar { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
    .submit-page-body .identity-copy { padding-right: 29px; }
    .submit-page-body .identity-copy strong { font-size: .9rem; }
    .submit-page-body .identity-status { position: absolute; top: 12px; right: 12px; width: 27px; height: 27px; margin: 0; padding: 0; justify-content: center; font-size: 0; }
    .submit-page-body .identity-status i { width: 8px; height: 8px; }
    .submit-page-body .submit-form-footer { margin-right: 0; margin-left: 0; }
}

/* Sticky top navigation shell */
.site-navbar {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    padding: 9px 42px 0;
    background: rgba(247, 250, 255, .88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.navbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    width: 100%;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 27px;
    border: 1px solid rgba(210, 224, 243, .92);
    border-radius: 21px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 34px rgba(26, 72, 136, .09);
}
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--blue-deep);
    text-decoration: none;
    transform: translateY(3px);
}
.navbar-brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 52px; height: 52px; flex: 0 0 52px; filter: drop-shadow(0 5px 7px rgba(18,75,157,.18)); transition: transform .22s ease, filter .22s ease; }
.navbar-brand:hover .brand-mark { filter: drop-shadow(0 8px 10px rgba(18,75,157,.24)); transform: translateY(-2px) rotate(-2deg); }
.brand-wordmark { display: block; line-height: 1; transform: translateY(6px); }
.navbar-brand strong { position: relative; display: inline-flex; align-items: baseline; padding: 0 4px 9px 0; color: #082d67; font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive; font-size: 1.55rem; font-style: italic; font-weight: 700; letter-spacing: -.075em; line-height: .9; text-shadow: 0 1px 0 rgba(255,255,255,.92), 0 3px 8px rgba(18,74,150,.11); transform: rotate(-1deg); transform-origin: left center; }
.navbar-brand strong::after { position: absolute; right: 5%; bottom: -1px; left: 27%; height: 11px; border-top: 3px solid #1769e8; border-radius: 50%; content: ""; transform: rotate(-3deg); }
.navbar-brand .brand-uni { background: none; color: #0b3e8f; -webkit-text-fill-color: #0b3e8f; }
.navbar-brand .brand-shelf { position: relative; margin-left: 1px; padding-right: 2px; background: none; color: #1268df; -webkit-text-fill-color: #1268df; }
.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 7px;
}
.navbar-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: #0d2e60;
    font-size: .86rem;
    font-weight: 850;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.navbar-link-icon { display: grid; width: 20px; height: 20px; place-items: center; }
.navbar-link-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.navbar-link:hover { background: #eff5ff; color: var(--blue); text-decoration: none; }
.navbar-link.active { background: linear-gradient(135deg,#287cf1,#145fdc); box-shadow: 0 9px 20px rgba(23,105,232,.27); color: white; text-decoration: none; }
.navbar-link.active:hover { background: linear-gradient(135deg,#1e70e9,#0f56c7); transform: translateY(-1px); }
.navbar-actions { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-left: 4px; padding-left: 24px; }
.navbar-actions::before { position: absolute; top: 6px; bottom: 6px; left: 0; width: 1px; background: #bcd0eb; content: ""; }
.navbar-submit,
.navbar-account,
.navbar-logout {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1.5px solid #b7cff0;
    border-radius: 999px;
    background: white;
    font-size: .84rem;
    font-weight: 850;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.navbar-submit {
    gap: 8px;
    padding: 0 21px;
    color: var(--blue);
}
.navbar-submit > span { display: grid; width: 18px; height: 18px; place-items: center; font-size: 1.35rem; font-weight: 500; line-height: 1; }
.navbar-submit:hover,
.navbar-submit.active { border-color: var(--blue); background: #f3f7ff; box-shadow: 0 7px 17px rgba(23,105,232,.11); color: var(--blue-dark); text-decoration: none; transform: translateY(-1px); }
.navbar-account {
    gap: 8px;
    padding: 0 20px;
    color: #0d2e60;
}
.navbar-account:hover,
.navbar-account.active { border-color: var(--blue); background: #f3f7ff; box-shadow: 0 7px 17px rgba(23,105,232,.11); color: var(--blue); text-decoration: none; transform: translateY(-1px); }
.navbar-logout { gap:7px;padding:0 15px;border-color:#d5dfec;color:#6d819d; }
.navbar-logout svg { width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.navbar-logout:hover { border-color:#efb8c0;background:#fff5f6;box-shadow:0 7px 17px rgba(177,48,69,.09);color:#b13149;text-decoration:none;transform:translateY(-1px); }
.navbar-account-icon {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.8px solid currentColor;
}
.navbar-account-icon::before {
    position: absolute;
    top: 4px;
    left: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}
.navbar-account-icon::after {
    position: absolute;
    right: 3px;
    bottom: 2px;
    left: 3px;
    height: 5px;
    border: 1.5px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    content: "";
}
.site-main {
    width: 100%;
    margin: 0 auto !important;
    padding: 14px 42px 24px;
}
@media (max-width: 1100px) {
    .site-navbar { padding-right: 14px; padding-left: 14px; }
    .navbar-inner { gap: 16px; }
    .site-main { padding-right: 28px; padding-left: 28px; }
    .navbar-link { padding-right: 13px; padding-left: 13px; }
}
@media (max-width: 850px) {
    .site-navbar { padding-top: 8px; }
    .navbar-inner {
        grid-template-columns: 1fr auto;
        gap: 10px 18px;
        min-height: auto;
        padding: 11px 12px 10px;
        border-radius: 16px;
    }
    .navbar-brand { grid-column: 1; grid-row: 1; }
    .navbar-actions { grid-column: 2; grid-row: 1; }
    .navbar-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-end;
        justify-self: stretch;
        gap: 3px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .navbar-nav::-webkit-scrollbar { display: none; }
    .navbar-link { min-height: 38px; padding: 0 14px; white-space: nowrap; }
}
@media (max-width: 560px) {
    .site-navbar { padding-right: 8px; padding-left: 8px; }
    .navbar-inner { gap: 9px 10px; padding: 10px; }
    .site-main { padding-right: 15px; padding-left: 15px; }
    .navbar-brand { gap: 7px; }
    .brand-mark { width: 37px; height: 37px; flex-basis: 37px; }
    .navbar-brand strong { font-size: 1rem; }
    .navbar-actions { gap: 6px; }
    .navbar-submit,
    .navbar-account,
    .navbar-logout { min-height: 38px; }
    .navbar-submit { padding: 0 11px; font-size: .76rem; }
    .navbar-submit > span { display: none; }
    .navbar-account { width: 38px; padding: 0; }
    .navbar-account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .navbar-logout { width:38px;padding:0; }
    .navbar-logout-label { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap; }
    .navbar-link { min-height: 35px; padding: 0 12px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================
   RESOURCE DISCOVERY EXPERIENCE
   Search-first public library inspired by modern study hubs.
   ========================================================== */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.library-page, .resource-detail-page, .home-discovery-page { font-size: 1rem; }
.library-page a:focus-visible, .resource-detail-page a:focus-visible, .home-discovery-page a:focus-visible,
.library-page button:focus-visible, .library-page input:focus-visible, .library-page select:focus-visible,
.home-discovery-page button:focus-visible, .home-discovery-page input:focus-visible { outline: 3px solid rgba(23,105,232,.28); outline-offset: 3px; }

/* New home */
.discovery-hero { position: relative; display: flex; min-height: 350px; padding: 24px 54px 18px; overflow: hidden; flex-direction: column; justify-content: flex-start; border: 1px solid #d3e4fa; border-radius: 28px; background-color: #edf5ff; background-image: url("hero-study-v3.png"); background-position: center; background-size: cover; box-shadow: 0 24px 65px rgba(17,74,145,.1); }
.discovery-hero-copy { position: relative; z-index: 2; width: min(760px, 58%); padding: 4px 0 0; }
.home-aligned-hero { display:grid;grid-template-columns:1.18fr .82fr;align-items:center; }
.home-aligned-hero .discovery-hero-copy { width:100%; }
.home-aligned-hero h1 { margin:20px 0 22px;font-size:clamp(2rem,2.8vw,3rem);line-height:.99; }
.home-aligned-hero .hero-resource-search { width:min(620px,100%);min-height:57px;padding:5px 6px 5px 18px;border-color:#c4d9f5;box-shadow:0 12px 28px rgba(33,86,153,.1); }
.home-aligned-hero .hero-resource-search .search-icon { flex:0 0 15px; }
.home-aligned-hero .hero-resource-search button { min-height:45px;padding:0 21px; }
.discovery-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid #a9c9f4; border-radius: 999px; background: rgba(255,255,255,.89); box-shadow: 0 5px 16px rgba(42,94,162,.06); color: var(--blue); font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.discovery-pill::before { width: 7px; height: 7px; border-radius: 50%; background: #2db67c; box-shadow: 0 0 0 4px rgba(45,182,124,.12); content: ""; }
.hero-accent { position: relative; top: -.58em; display: inline-block; width: 28px; height: 27px; margin-left: 8px; pointer-events: none; vertical-align: middle; }
.hero-accent i { position: absolute; display: block; width: 3px; height: 14px; border-radius: 999px; background: var(--blue); transform-origin: bottom center; }
.hero-accent i:first-child { top: 2px; left: 3px; transform: rotate(8deg); }
.hero-accent i:nth-child(2) { top: 5px; left: 13px; transform: rotate(40deg); }
.hero-accent i:last-child { top: 15px; left: 21px; height: 13px; transform: rotate(76deg); }
.discovery-hero h1 { margin: 20px 0 22px; color: #092b64; font-size: clamp(2.65rem,3.35vw,3.55rem); line-height: .99; letter-spacing: -.06em; white-space: nowrap; }
.discovery-hero h1 .hero-highlight { position: relative; display: inline-block; color: var(--blue); }
.discovery-hero h1 .hero-highlight::after { position: absolute; right: 12%; bottom: -22px; left: 8%; height: 14px; border-top: 4px solid #1769e8; border-radius: 50%; content: ""; transform: rotate(-4deg); }
.discovery-hero-copy > p { max-width: 610px; margin: 0 0 24px; color: #3e5e88; font-size: .94rem; line-height: 1.55; text-align: center; }
.hero-resource-search, .library-search { display: flex; align-items: center; width: min(600px,100%); min-height: 58px; padding: 6px 6px 6px 21px; border: 1px solid #bfd5f2; border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 12px 27px rgba(33,86,153,.11); }
.search-icon { position: relative; flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid #5579a8; border-radius: 50%; }
.search-icon::after { position: absolute; right: -5px; bottom: -3px; width: 7px; height: 2px; border-radius: 2px; background: #5579a8; content: ""; transform: rotate(45deg); }
.library-search > span { color: #6c88ad; font-size: 1.65rem; line-height: 1; }
.hero-resource-search input, .library-search input { min-width: 0; flex: 1; padding: 0 15px; border: 0; outline: 0; color: #17345f; background: transparent; font-size: .88rem; }
.hero-resource-search input::placeholder, .library-search input::placeholder { color: #8fa1b9; }
.hero-resource-search button, .library-search button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(135deg,#287cf1,#155dd7); box-shadow: 0 7px 16px rgba(23,105,232,.18); color: white; font-size: .84rem; font-weight: 850; cursor: pointer; }
.hero-resource-search button span { font-size: 1.5rem; font-weight: 350; line-height: .5; transform: translateY(-1px); }
.hero-resource-search button:hover, .library-search button:hover { background: #104eae; }
.hero-quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; color: #315276; font-size: .72rem; }
.hero-quick-links > span { margin-right: 2px; color: #102f5f; font-size: .73rem; }
.hero-quick-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 11px; border: 1px solid rgba(195,214,239,.95); border-radius: 999px; background: rgba(255,255,255,.86); box-shadow: 0 4px 12px rgba(36,86,150,.045); color: #173a68; font-weight: 800; }
.format-chip-icon { display: grid; width: 17px; height: 18px; place-items: center; border-radius: 4px; color: white; font-size: .52rem; font-style: normal; font-weight: 900; line-height: 1; }
.chip-pdf { background: #ef4050; }.chip-slides { background: #ff8a18; }.chip-video { background: #764ce8; }.chip-notes { background: #1688e7; font-size: .84rem; }
.hero-quick-links a:hover { border-color: #96bbed; background: white; text-decoration: none; }
.hero-benefits { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 20px 20px 0; padding: 11px 16px; border: 1px solid rgba(215,228,246,.95); border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 13px 30px rgba(33,78,140,.09); backdrop-filter: blur(15px); }
.hero-benefits article { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 4px 16px; border-right: 1px solid #dbe7f7; }
.hero-benefits article:last-child { border-right: 0; }
.hero-benefits article > div { min-width: 0; }
.hero-benefits strong { display: block; overflow: hidden; color: #0c326d; font-size: .82rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.hero-benefits small { display: block; overflow: hidden; margin-top: 3px; color: #6580a4; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.hero-benefit-icon { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 50%; }
.hero-benefit-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit-blue { background: #e3f2ff; color: #0785e7; }.benefit-purple { background: #f0e9ff; color: #7644e8; }.benefit-green { background: #e2f8ec; color: #1ba968; }.benefit-sky { background: #e8f3ff; color: #2077df; }
.format-explorer { position: relative; margin-top: 28px; padding: 21px 32px 20px; overflow: hidden; border: 1px solid #d7e6f8; border-radius: 23px; background: linear-gradient(145deg,#fff 0%,#fbfdff 62%,#f2f7ff 100%); box-shadow: 0 13px 34px rgba(29,83,153,.07); }
.format-explorer::before { position: absolute; top: -195px; right: -115px; width: 470px; height: 330px; border-radius: 50%; background: linear-gradient(145deg,rgba(204,226,255,.84),rgba(238,246,255,.2)); content: ""; pointer-events: none; transform: rotate(12deg); }
.format-explorer::after { position: absolute; bottom: -195px; left: -135px; width: 500px; height: 340px; border-radius: 50%; background: linear-gradient(145deg,rgba(198,223,255,.72),rgba(241,247,255,.12)); content: ""; pointer-events: none; transform: rotate(-13deg); }
.pdf-library-callout { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:34px;min-height:184px;padding:30px 38px; }
.pdf-library-callout > * { position:relative;z-index:2; }
.pdf-library-copy { min-width:0; }
.pdf-library-copy .eyebrow { color:#1769e8;letter-spacing:.14em; }
.pdf-library-copy h2 { margin:7px 0 7px;color:#092e69;font-size:clamp(1.7rem,2.25vw,2.25rem);line-height:1.08;letter-spacing:-.045em; }
.pdf-library-copy h2 span { color:#1769e8; }
.pdf-library-copy > p { max-width:720px;margin:0;color:#617998;font-size:.88rem;line-height:1.65; }
.pdf-library-points { display:flex;flex-wrap:wrap;gap:9px 18px;margin-top:13px; }
.pdf-library-points span { display:inline-flex;align-items:center;gap:7px;color:#385f8c;font-size:.72rem;font-weight:750; }
.pdf-library-points span::before { display:grid;width:17px;height:17px;place-items:center;border-radius:50%;background:#e5f1ff;color:#1769e8;content:"✓";font-size:.65rem;font-weight:950; }
.pdf-library-link { min-width:154px;border:1px solid #1769e8;background:linear-gradient(135deg,#287cf1,#155dd7);box-shadow:0 10px 22px rgba(23,105,232,.2);color:#fff; }
.pdf-library-link:hover { color:#fff; }
.home-library-section { position: relative; margin-top: 28px; padding: 21px 32px 24px; overflow: hidden; border: 1px solid #d7e6f8; border-radius: 23px; background: linear-gradient(145deg,#fff 0%,#fbfdff 62%,#f2f7ff 100%); box-shadow: 0 13px 34px rgba(29,83,153,.07); }
.home-library-section::before { position: absolute; top: -195px; right: -115px; width: 470px; height: 330px; border-radius: 50%; background: linear-gradient(145deg,rgba(204,226,255,.84),rgba(238,246,255,.2)); content: ""; pointer-events: none; transform: rotate(12deg); }
.home-library-section::after { position: absolute; bottom: -215px; left: -145px; width: 500px; height: 340px; border-radius: 50%; background: linear-gradient(145deg,rgba(198,223,255,.72),rgba(241,247,255,.12)); content: ""; pointer-events: none; transform: rotate(-13deg); }
.home-library-heading { position: relative; z-index: 2; text-align: center; }
.home-library-heading .eyebrow { margin-top: 5px; }
.home-library-heading h2 { margin: 5px 0 4px; color: #092e69; font-size: clamp(1.65rem,2.45vw,2.35rem); line-height: 1.05; letter-spacing: -.055em; }
.home-library-heading h2 span { position: relative; display: inline-block; color: var(--blue); }
.home-library-heading h2 span::after { position: absolute; right: 13%; bottom: -9px; left: 29%; height: 7px; border-top: 3px solid var(--blue); border-radius: 50%; content: ""; transform: rotate(-4deg); }
.home-library-intro { margin: 12px 0 0; color: #617998; font-size: .88rem; }
.home-library-action { position: absolute; z-index: 3; top: 22px; right: 28px; display: flex; justify-content: flex-end; margin: 0; }
.home-library-section .text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px; border: 1px solid #bcd4f4; border-radius: 999px; background: rgba(255,255,255,.92); color: #0f56ba; box-shadow: 0 6px 15px rgba(23,105,232,.07); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.home-library-section .text-link:hover { border-color: var(--blue); box-shadow: 0 9px 20px rgba(23,105,232,.13); text-decoration: none; transform: translateY(-2px); }
.format-explorer-heading { position: relative; z-index: 2; text-align: center; }
.format-book-divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--blue); }
.format-book-divider span { width: 66px; height: 2px; border-radius: 999px; background: linear-gradient(90deg,transparent,#7fb3f6); }
.format-book-divider span:last-child { background: linear-gradient(90deg,#7fb3f6,transparent); }
.format-book-divider svg { width: 31px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.format-explorer-heading h2 { margin: 7px 0 4px; color: #092e69; font-size: clamp(1.65rem,2.45vw,2.35rem); line-height: 1.05; letter-spacing: -.055em; }
.format-explorer-heading h2 span { position: relative; display: inline-block; color: var(--blue); }
.format-explorer-heading h2 span::after { position: absolute; right: 17%; bottom: -9px; left: 32%; height: 7px; border-top: 3px solid var(--blue); border-radius: 50%; content: ""; transform: rotate(-4deg); }
.format-explorer-heading > p { margin: 12px 0 0; color: #617998; font-size: .88rem; }
.format-explorer-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 20px; }
.format-explorer-grid.pdf-only { grid-template-columns: minmax(0,420px); justify-content:center; }
.format-tile { --format-accent:#1769e8; --format-soft:#edf4ff; position: relative; display: grid; justify-items: center; align-content: start; min-height: 142px; padding: 10px 22px 8px; color: inherit; text-align: center; transition: transform .2s ease,background .2s ease; }
.format-tile + .format-tile { border-left: 1px solid #cfe0f5; }
.format-tile:hover { border-radius: 18px; background: rgba(239,246,255,.72); text-decoration: none; transform: translateY(-4px); }
.format-tile-icon { display: grid; width: 59px; height: 53px; margin-bottom: 10px; place-items: center; border-radius: 18px; background: var(--format-soft); color: var(--format-accent); }
.format-tile-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.format-tile > div { min-width: 0; }
.format-pdf { --format-accent:#e33647; --format-soft:#ffedef; }.format-slides { --format-accent:#e79512; --format-soft:#fff3d9; }.format-video { --format-accent:#1769e8; --format-soft:#eaf3ff; }.format-notes { --format-accent:#40a969; --format-soft:#e8f8ee; }
.format-tile h3 { margin: 0 0 5px; color: #092e69; font-size: 1rem; line-height: 1.3; }
.format-tile p { margin: 0; color: #657a98; font-size: .72rem; line-height: 1.45; }
.home-resource-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 17px; margin-top: 23px; }
.home-resource-card { display: flex; min-height: 302px; overflow: hidden; flex-direction: column; border: 1px solid #d6e3f4; border-radius: 17px; background: #fff; box-shadow: 0 9px 24px rgba(24,73,137,.07); color: inherit; transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.home-resource-card:hover { border-color:#9cbfec; box-shadow:0 16px 34px rgba(24,73,137,.13); text-decoration:none; transform:translateY(-5px); }
.home-resource-preview { --preview-accent:#1769e8; --preview-soft:#eaf3ff; position: relative; display: block; height: 146px; overflow: hidden; flex: 0 0 146px; border-bottom: 1px solid #dce7f5; background: linear-gradient(145deg,var(--preview-soft),#f7faff); }
.home-resource-preview::before { position: absolute; top: 17px; left: 50%; width: 101px; height: 130px; border: 1px solid rgba(38,92,163,.15); border-radius: 8px; background: #fff; box-shadow: 0 12px 24px rgba(35,79,135,.13); content: ""; transform: translateX(-50%) rotate(-3deg); }
.home-resource-preview b { position: absolute; z-index: 2; top: 31px; left: 50%; display: grid; min-width: 40px; height: 31px; padding: 0 8px; place-items: center; border-radius: 8px; background: var(--preview-soft); color: var(--preview-accent); font-size: .61rem; font-weight: 950; transform: translateX(-50%) rotate(-3deg); }
.home-resource-preview i { position: absolute; z-index: 2; left: calc(50% - 33px); width: 69px; height: 4px; border-radius: 4px; background: #dbe6f4; transform: rotate(-3deg); }
.home-resource-preview i:nth-of-type(1) { top: 74px; }.home-resource-preview i:nth-of-type(2) { top: 86px; width: 57px; }.home-resource-preview i:nth-of-type(3) { top: 98px; }.home-resource-preview i:nth-of-type(4) { top: 110px; width: 48px; }
.home-resource-preview em { position: absolute; z-index: 3; right: 11px; bottom: 9px; padding: 4px 8px; border: 1px solid rgba(190,211,238,.8); border-radius: 7px; background: rgba(255,255,255,.93); color: #69809e; font-size: .58rem; font-style: normal; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.home-resource-preview.resource-pdf { --preview-accent:#d63849; --preview-soft:#ffebee; }.home-resource-preview.resource-slides { --preview-accent:#c97a0c; --preview-soft:#fff1d8; }.home-resource-preview.resource-video { --preview-accent:#1769e8; --preview-soft:#e8f2ff; }.home-resource-preview.resource-notes { --preview-accent:#14805a; --preview-soft:#e7f7ef; }.home-resource-preview.resource-images { --preview-accent:#7149bb; --preview-soft:#f1ebff; }
.home-resource-body { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 15px 16px 14px; }
.home-resource-body > small { overflow: hidden; color:#7890ae; font-size:.63rem; font-weight:850; text-overflow: ellipsis; text-transform:uppercase; letter-spacing:.06em; white-space: nowrap; }
.home-resource-body > strong { margin: 6px 0 5px; overflow: hidden; color:var(--blue-deep); font-size:.94rem; line-height:1.35; text-overflow: ellipsis; white-space: nowrap; }
.home-resource-description { display:-webkit-box; overflow:hidden; color:var(--muted); font-size:.7rem; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.home-resource-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:11px; border-top:1px solid #edf2f8; font-size:.62rem; }
.home-resource-footer > span { color:#8798ae; }.home-resource-footer > b { color:var(--blue); font-size:.66rem; }
.how-access-works { display:grid;grid-template-columns:.72fr 1.28fr;gap:45px;margin-top:64px;padding:37px;border-radius:23px;background:#0d3776;color:white; }.how-access-works h2 { margin:10px 0 0;font-size:2.15rem;line-height:1.1;letter-spacing:-.045em; }.how-access-works h2 span { color:#83b7ff; }.how-access-works .eyebrow { color:#9ac4ff; }.access-steps { display:grid;grid-template-columns:repeat(3,1fr);gap:13px; }.access-steps article { padding:19px;border:1px solid rgba(255,255,255,.13);border-radius:15px;background:rgba(255,255,255,.07); }.access-steps span { color:#8bbcff;font-size:.72rem;font-weight:900; }.access-steps h3 { margin:12px 0 6px;font-size:.95rem; }.access-steps p { margin:0;color:#bed1ec;font-size:.76rem;line-height:1.55; }
.discovery-cta { position: relative; margin-top: 28px; padding: 27px 32px; overflow: hidden; border: 1px solid #d6e5f8; background: linear-gradient(115deg,#fff 0%,#f8fbff 56%,#eaf3ff 100%); box-shadow: 0 12px 30px rgba(29,83,153,.07); color: var(--blue-deep); }
.discovery-cta::before { position: absolute; top: -105px; right: 105px; width: 250px; height: 210px; border-radius: 50%; background: radial-gradient(circle,rgba(157,199,255,.32),rgba(157,199,255,0) 70%); content: ""; pointer-events: none; }
.discovery-cta::after { position: absolute; right: 25px; bottom: -75px; width: 190px; height: 130px; border: 24px solid rgba(105,166,246,.12); border-radius: 50%; content: ""; pointer-events: none; transform: rotate(-12deg); }
.discovery-cta > div,.discovery-cta > a { position: relative; z-index: 2; }
.discovery-cta .eyebrow { color: var(--blue); }
.discovery-cta h2 { margin: 7px 0 4px; color: var(--blue-deep); font-size: 1.55rem; }
.discovery-cta h2 span { color: var(--blue); }
.discovery-cta p { color: #647d9f; font-size: .84rem; }
.discovery-cta-button { min-width: 155px; border: 1px solid #1769e8; background: linear-gradient(135deg,#287cf1,#155dd7); color: #fff; box-shadow: 0 9px 20px rgba(23,105,232,.2); }
.discovery-cta-button:hover { color: #fff; }
.home-footer { position: relative; margin-top: 28px; padding: 0; overflow: hidden; border: 1px solid #d8e6f7; border-radius: 21px; background: linear-gradient(145deg,#fff,#f3f8ff); box-shadow: 0 12px 30px rgba(29,83,153,.055); color: #647d9f; text-align: left; }
.home-footer::after { position: absolute; right: -95px; bottom: -125px; width: 270px; height: 220px; border-radius: 50%; background: radial-gradient(circle,rgba(155,199,255,.28),rgba(155,199,255,0) 70%); content: ""; pointer-events: none; }
.home-footer-main { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(250px,1.7fr) repeat(3,minmax(125px,1fr)); gap: 36px; padding: 30px 34px 27px; }
.home-footer-brand a { display: inline-flex; align-items: center; gap: 11px; color: var(--blue-deep); }
.home-footer-brand a:hover { color: var(--blue); text-decoration: none; }
.home-footer-brand img { width: 43px; height: 43px; filter: drop-shadow(0 7px 11px rgba(23,105,232,.16)); }
.home-footer-brand strong { font-size: 1.35rem; font-style: italic; letter-spacing: -.045em; }
.home-footer-brand p { max-width: 330px; margin: 12px 0 0; color: #7187a5; font-size: .86rem; line-height: 1.65; }
.home-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.home-footer-links h3 { margin: 0 0 5px; color: var(--blue-deep); font-size: .82rem; letter-spacing: .02em; }
.home-footer-links a { color: #6b82a1; font-size: .82rem; transition: color .18s ease,transform .18s ease; }
.home-footer-links a:hover { color: var(--blue); text-decoration: none; transform: translateX(3px); }
.home-footer-bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 34px; border-top: 1px solid #1763d7; background: linear-gradient(135deg,#287cf1 0%,#155dd7 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); color: #fff; font-size: .72rem; }
.home-footer-bottom span:last-child { color: #dbeaff; }
.auth-page .home-footer { width: min(1420px,calc(100% - 50px)); margin: 30px auto 18px; flex: none; }

/* Public library */
.library-hero { position:relative;display:grid;grid-template-columns:1.18fr .82fr;align-items:center;min-height:350px;overflow:hidden;padding:34px 42px;border:1px solid #d5e5f8;border-radius:24px;background:linear-gradient(120deg,#fff 0%,#f7fbff 50%,#e9f3ff 100%);box-shadow:0 14px 36px rgba(29,83,153,.07); }
.library-hero::before { position:absolute;right:-115px;top:-190px;width:500px;height:420px;border-radius:50%;background:linear-gradient(145deg,rgba(194,220,255,.85),rgba(238,246,255,.18));content:"";pointer-events:none;transform:rotate(10deg); }
.library-hero::after { position:absolute;bottom:-205px;left:-165px;width:480px;height:310px;border-radius:50%;background:linear-gradient(145deg,rgba(202,226,255,.65),rgba(245,249,255,.05));content:"";pointer-events:none;transform:rotate(-10deg); }
.library-hero-copy { position:relative;z-index:3;align-self:center; }
.library-hero-copy > .eyebrow { display:inline-flex;align-items:center;gap:8px;padding:6px 11px;border:1px solid #c9dcf6;border-radius:999px;background:rgba(255,255,255,.86);box-shadow:0 4px 12px rgba(29,83,153,.05);letter-spacing:.12em; }
.library-hero-copy > .eyebrow::before { width:7px;height:7px;border-radius:50%;background:#25b67b;box-shadow:0 0 0 4px rgba(37,182,123,.12);content:""; }
.library-hero h1 { margin:15px 0 10px;color:#092f6d;font-size:clamp(2rem,3vw,3rem);line-height:1.03;letter-spacing:-.06em;white-space:nowrap; }
.library-hero h1 span { position:relative;display:inline-block;color:var(--blue); }
.library-hero h1 span::after { position:absolute;right:10%;bottom:-10px;left:28%;height:8px;border-top:3px solid var(--blue);border-radius:50%;content:"";transform:rotate(-3deg); }
.library-hero-copy > p { max-width:630px;margin:0 0 20px;color:#627a9a;font-size:.91rem;line-height:1.65; }
.library-home-style { min-height:350px;padding:24px 54px 18px;border-radius:28px;background:#edf5ff url("library-hero-v2.png") center/cover no-repeat;box-shadow:0 24px 65px rgba(17,74,145,.1); }
.library-home-style::before,.library-home-style::after { display:none; }
.library-home-style .library-hero-copy { padding-top:4px; }
.library-home-style h1 { margin:20px 0 22px;color:#092b64;font-size:clamp(2rem,2.8vw,3rem);line-height:.99;letter-spacing:-.06em;white-space:nowrap; }
.library-home-style h1 .hero-highlight { position:relative;display:inline-block;color:var(--blue); }
.library-home-style h1 .hero-highlight::after { right:12%;bottom:-22px;left:8%;height:14px;border-top:4px solid #1769e8;border-radius:50%;transform:rotate(-4deg); }
.library-home-style h1 .hero-accent { position:relative;top:-.58em;display:inline-block;width:28px;height:27px;margin-left:8px;vertical-align:middle; }
.library-home-style h1 .hero-accent::after { content:none; }
.library-home-style .library-hero-copy > p { max-width:610px;margin:0 0 24px;color:#3e5e88;font-size:.94rem;line-height:1.55;text-align:center; }
.library-search { width:min(620px,100%);min-height:57px;padding:5px 6px 5px 18px;border-color:#c4d9f5;box-shadow:0 12px 28px rgba(33,86,153,.1); }
.library-search .search-icon { flex:0 0 15px; }
.library-search button { min-height:45px;padding:0 21px; }
.library-trust-row { display:flex;flex-wrap:wrap;gap:8px;margin-top:13px;color:#5f7899;font-size:.68rem;font-weight:800; }
.library-trust-row span { display:inline-flex;align-items:center;min-height:29px;padding:0 10px;border:1px solid #d9e6f6;border-radius:999px;background:rgba(255,255,255,.76); }
.library-trust-row span::before { display:grid;width:16px;height:16px;margin-right:6px;place-items:center;border-radius:50%;background:#e5f8ef;color:#179665;content:"✓";font-size:.58rem; }
.library-hero-visual { position:relative;z-index:2;min-height:270px; }
.library-hero-visual::before { position:absolute;top:45px;left:5%;width:88%;height:165px;border:2px solid rgba(111,169,243,.32);border-radius:50%;content:"";transform:rotate(-10deg); }
.library-hero-visual::after { position:absolute;right:4%;bottom:8px;width:90%;height:90px;border-radius:50%;background:radial-gradient(ellipse,rgba(102,164,245,.23),rgba(102,164,245,0) 70%);content:""; }
.visual-card { position:absolute;border:1px solid rgba(54,111,190,.22);background:white;box-shadow:0 18px 36px rgba(31,79,143,.15); }
.visual-card-pdf { z-index:3;top:35px;left:14%;width:145px;height:190px;padding:20px;border-radius:13px;transform:rotate(-7deg); }
.visual-card-pdf b { display:grid;width:45px;height:45px;place-items:center;border-radius:11px;background:#ffeded;color:#c83e4d;font-size:.69rem; }
.visual-card-pdf i { display:block;height:5px;margin-top:15px;border-radius:4px;background:#dde8f7; }.visual-card-pdf i:nth-of-type(2){width:72%;}.visual-card-pdf i:nth-of-type(3){width:87%;}
.visual-card-slide { z-index:2;top:20px;left:46%;width:150px;height:178px;padding:20px;border-radius:13px;background:linear-gradient(145deg,#226fd7,#67a8fa);color:white;transform:rotate(8deg); }
.visual-card-slide small { font-size:.56rem;letter-spacing:.1em; }.visual-card-slide strong { display:block;margin-top:18px;font-size:1.45rem;line-height:1.1; }.visual-card-slide em { position:absolute;right:12px;bottom:12px;padding:4px 7px;border-radius:6px;background:rgba(255,255,255,.2);font-size:.6rem;font-style:normal;font-weight:900; }
.visual-card-video { z-index:4;bottom:19px;left:43%;display:grid;width:147px;height:88px;place-items:center;border:5px solid white;border-radius:14px;background:linear-gradient(145deg,#0f315d,#1f4f82);transform:rotate(-2deg); }
.visual-card-video b { display:grid;width:40px;height:40px;place-items:center;border-radius:50%;background:white;color:var(--blue); }.visual-card-video span { position:absolute;right:10px;bottom:9px;width:39px;height:5px;border-radius:4px;background:rgba(255,255,255,.3); }
.visual-spark { position:absolute;z-index:5;color:#edb44d;font-size:1.5rem; }.visual-spark.spark-one{top:14px;right:9%;}.visual-spark.spark-two{bottom:22px;left:10%;font-size:1rem;}
.library-toolbar { display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-top:28px;padding-bottom:17px;border-bottom:1px solid var(--line); }.resource-tabs { display:flex;flex-wrap:wrap;gap:7px; }.resource-tab { display:inline-flex;align-items:center;gap:7px;min-height:39px;padding:0 13px;border:1px solid transparent;border-radius:10px;color:#68809f;font-size:.77rem;font-weight:800; }.resource-tab span { display:grid;min-width:21px;height:21px;padding:0 5px;place-items:center;border-radius:7px;background:#edf3fb;color:#7489a5;font-size:.63rem; }.resource-tab:hover { background:#f2f7ff;text-decoration:none; }.resource-tab.active { border-color:#b8d1f4;background:#eaf3ff;color:var(--blue-dark); }.resource-tab.active span { background:var(--blue);color:white; }.course-filter { display:flex;align-items:center;gap:8px; }.course-filter label { color:#8294ad;font-size:.7rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em; }.course-filter select { min-width:180px;height:42px;padding:0 35px 0 12px;border:1px solid #d3e0f1;border-radius:10px;background:white;color:#3f5f87;font-size:.78rem; }
.library-results-block { padding-top:32px; }.library-results-heading { display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px; }.library-results-heading h2 { margin:5px 0 0;color:var(--blue-deep);font-size:1.7rem;letter-spacing:-.035em; }.library-results-heading > p { margin:0;color:#8497b0;font-size:.76rem; }.library-resource-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }.library-resource-card { overflow:hidden;border:1px solid var(--line);border-radius:18px;background:white;box-shadow:0 8px 24px rgba(29,83,153,.045);transition:transform .2s,box-shadow .2s,border-color .2s; }.library-resource-card:hover { border-color:#b5d0f4;box-shadow:0 17px 38px rgba(29,83,153,.1);transform:translateY(-4px); }.resource-card-preview { position:relative;display:flex;align-items:center;justify-content:center;height:190px;overflow:hidden;background:linear-gradient(145deg,#edf5ff,#dceaff); }.resource-card-preview::after { position:absolute;inset:23px 25% 18px;border:1px solid rgba(38,92,163,.15);border-radius:10px;background:white;box-shadow:0 13px 24px rgba(35,79,135,.13);content:"";transform:rotate(-3deg); }.resource-card-preview:hover { text-decoration:none; }.resource-format-mark { position:relative;z-index:3;display:grid;width:52px;height:52px;place-items:center;border-radius:13px;background:#e8f1ff;color:var(--blue);font-size:.7rem;font-weight:950; }.resource-pdf .resource-format-mark{background:#ffeded;color:#c8404d;}.resource-slides .resource-format-mark{background:#fff0d9;color:#ba6b10;}.resource-video .resource-format-mark{background:white;color:var(--blue);font-size:1.1rem;}.resource-notes .resource-format-mark{background:#e7f7ef;color:#157b55;}.resource-images .resource-format-mark{background:#f0eaff;color:#7249bd;}.resource-preview-lines { position:absolute;z-index:2;bottom:41px;left:37%;width:28%; }.resource-preview-lines i { display:block;height:4px;margin:6px;border-radius:3px;background:#dbe7f6; }.resource-preview-lines i:nth-child(2){width:72%;}.resource-card-preview small { position:absolute;z-index:4;right:13px;bottom:11px;padding:4px 8px;border-radius:7px;background:rgba(255,255,255,.9);color:#66809f;font-size:.62rem;font-weight:900;text-transform:uppercase; }.resource-play { position:absolute;z-index:5;display:grid;width:54px;height:54px;place-items:center;border-radius:50%;background:white;color:var(--blue);box-shadow:0 9px 22px rgba(20,68,134,.18); }.resource-card-body { padding:18px; }.resource-card-tags { display:flex;flex-wrap:wrap;gap:6px; }.resource-card-tags span { padding:4px 7px;border-radius:6px;background:#f0f5fc;color:#7187a5;font-size:.61rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em; }.resource-card-body h3 { margin:10px 0 7px;font-size:1.06rem;line-height:1.35; }.resource-card-body h3 a { color:var(--blue-deep); }.resource-card-body > p { display:-webkit-box;min-height:42px;overflow:hidden;margin:0;color:var(--muted);font-size:.76rem;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2; }.resource-card-meta { display:flex;justify-content:space-between;gap:12px;margin-top:15px;padding-top:12px;border-top:1px solid #edf2f9;color:#8395ac;font-size:.66rem; }.resource-preview-link { display:inline-block;margin-top:12px;color:var(--blue);font-size:.75rem;font-weight:850; }.library-empty { padding:55px 25px;border:1px dashed #c8daf1;border-radius:18px;background:#fbfdff;text-align:center; }.library-empty > span { display:grid;width:58px;height:58px;margin:0 auto 13px;place-items:center;border-radius:17px;background:#eaf3ff;color:var(--blue);font-size:1.8rem; }.library-empty h2{margin:0;color:var(--blue-deep);}.library-empty p{max-width:500px;margin:8px auto 18px;color:var(--muted);}.library-contribute-banner { position:relative;display:grid;grid-template-columns:78px minmax(0,1fr) auto;align-items:center;gap:25px;margin-top:50px;padding:29px 34px;overflow:hidden;border:1px solid rgba(255,255,255,.2);border-radius:23px;background:linear-gradient(118deg,#0a397f 0%,#0e56bc 52%,#1975ed 100%);box-shadow:0 18px 42px rgba(15,74,154,.2);color:white; }.library-contribute-banner::before { position:absolute;right:110px;top:-155px;width:350px;height:260px;border-radius:50%;background:rgba(139,193,255,.16);content:"";transform:rotate(12deg); }.library-contribute-banner::after { position:absolute;right:-36px;bottom:-96px;width:230px;height:185px;border:1px solid rgba(255,255,255,.13);border-radius:50%;content:""; }.library-contribute-icon { position:relative;z-index:2;display:grid;width:72px;height:72px;place-items:center;border:1px solid rgba(255,255,255,.28);border-radius:21px;background:rgba(255,255,255,.13);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 12px 25px rgba(4,33,82,.16);backdrop-filter:blur(8px); }.library-contribute-icon svg { width:39px;height:39px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }.library-contribute-copy { position:relative;z-index:2; }.library-contribute-banner .eyebrow{display:inline-block;padding:4px 9px;border:1px solid rgba(255,255,255,.19);border-radius:999px;background:rgba(255,255,255,.08);color:#c7e0ff;}.library-contribute-banner h2{margin:8px 0 7px;font-size:clamp(1.45rem,2.2vw,1.8rem);line-height:1.08;letter-spacing:-.035em;}.library-contribute-banner h2 span{color:#acd3ff;}.library-contribute-banner p{max-width:720px;margin:0;color:#d9e9ff;font-size:.86rem;line-height:1.6;}.library-contribute-button{position:relative;z-index:2;display:inline-flex;align-items:center;gap:9px;min-height:49px;padding:0 22px;border:1px solid rgba(255,255,255,.85);border-radius:14px;box-shadow:0 11px 24px rgba(4,37,87,.18);white-space:nowrap;}.library-contribute-button>span{display:grid;width:22px;height:22px;place-items:center;border-radius:7px;background:#e9f3ff;color:var(--blue);font-size:1.05rem;font-weight:900;}

/* Real file content inside resource cards */
.resource-card-preview-real::after,.home-resource-preview-real::before { display:none; }
.resource-file-preview { position:absolute;z-index:1;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#e8f0fa; }
.resource-file-preview img,.resource-file-preview video,.resource-file-preview iframe { display:block;width:100%;height:100%;border:0; }
.resource-file-preview img { object-fit:contain;background:#eef3f9; }
.resource-file-preview video { object-fit:cover;background:#10243d; }
.resource-file-preview iframe { pointer-events:none;background:white; }
.resource-file-preview-pdf iframe { width:100%;height:100%;max-width:none;margin:0;clip-path:inset(0 10px 0 0);transform:scaleX(1.04);transform-origin:left center; }
.resource-file-play { position:absolute;z-index:2;display:grid;width:50px;height:50px;place-items:center;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 9px 24px rgba(10,39,77,.25);color:var(--blue);font-size:1rem; }
.resource-file-preview-slides { padding:13px;background:linear-gradient(145deg,#dceaff,#f4f8ff); }
.resource-file-preview-notes { padding:13px;background:linear-gradient(145deg,#e6f5ed,#f7fbf9); }
.resource-preview-sheet { display:flex;width:min(88%,360px);height:calc(100% + 24px);min-height:130px;padding:17px 19px;overflow:hidden;flex-direction:column;border:1px solid rgba(37,76,127,.13);border-radius:8px;background:white;box-shadow:0 11px 25px rgba(25,67,123,.14);color:#294667;transform:rotate(-1.2deg); }
.resource-preview-sheet > b { align-self:flex-start;margin:0 0 8px;padding:3px 6px;border-radius:5px;background:#fff0d9;color:#b7670f;font-size:.52rem;font-weight:950;letter-spacing:.07em; }
.resource-file-preview-notes .resource-preview-sheet > b { background:#e5f6ed;color:#177454; }
.resource-preview-sheet > strong { display:-webkit-box;overflow:hidden;color:#123f77;font-size:.72rem;line-height:1.3;-webkit-box-orient:vertical;-webkit-line-clamp:2; }
.resource-preview-sheet > span { display:-webkit-box;overflow:hidden;margin-top:7px;color:#68809e;font-size:.58rem;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:5; }
.home-resource-preview-real .resource-preview-sheet > b { position:static;z-index:auto;display:block;min-width:0;height:auto;padding:3px 6px;transform:none; }
.library-resource-card.resource-pdf .resource-card-preview > small { border:1px solid #7f1d1d;background:#991b1b;color:#fff;box-shadow:0 4px 12px rgba(127,29,29,.25); }
.library-resource-card.resource-slides .resource-card-preview > small { border:1px solid #9a3412;background:#c2410c;color:#fff;box-shadow:0 4px 12px rgba(154,52,18,.24); }
.library-resource-card.resource-video .resource-card-preview > small { border:1px solid #1e3a8a;background:#1d4ed8;color:#fff;box-shadow:0 4px 12px rgba(30,58,138,.24); }
.library-resource-card.resource-notes .resource-card-preview > small { border:1px solid #065f46;background:#047857;color:#fff;box-shadow:0 4px 12px rgba(6,95,70,.24); }
.library-resource-card.resource-images .resource-card-preview > small { border:1px solid #581c87;background:#7e22ce;color:#fff;box-shadow:0 4px 12px rgba(88,28,135,.24); }

/* Polished library collection */
.library-collection-panel { position:relative;margin-top:30px;padding:16px 20px 25px;overflow:hidden;border:1px solid #d2e3f7;border-radius:24px;background:linear-gradient(145deg,#fff 0%,#f8fbff 64%,#edf5ff 100%);box-shadow:0 15px 38px rgba(29,83,153,.07);transition:opacity .18s ease,filter .18s ease; }
.library-collection-panel.is-loading { cursor:progress;filter:saturate(.78);opacity:.58;pointer-events:none; }
.library-collection-panel::before { position:absolute;right:-110px;top:-190px;width:410px;height:310px;border-radius:50%;background:rgba(198,223,255,.38);content:"";pointer-events:none; }
.library-collection-panel::after { position:absolute;bottom:-170px;left:-125px;width:360px;height:250px;border-radius:50%;background:rgba(218,234,255,.45);content:"";pointer-events:none; }
.library-collection-panel .library-toolbar { position:relative;z-index:2;align-items:center;margin-top:0;padding:10px 11px;border:0;border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(30,91,171,.08); }
.library-collection-panel .resource-tabs { flex:1 1 auto;min-width:0;gap:5px; }
.library-collection-panel .resource-tab { min-height:38px;padding:0 12px;border-radius:10px;color:#1763d7; }
.library-collection-panel .resource-tab span { background:#e8f1ff;color:#1763d7; }
.library-collection-panel .resource-tab:hover { background:#f1f6ff; }
.library-collection-panel .resource-tab.active { border-color:#0e4fbc;background:#0e4fbc;box-shadow:0 5px 12px rgba(14,79,188,.2);color:#fff; }
.library-collection-panel .resource-tab.active span { background:rgba(255,255,255,.22);color:#fff; }
.library-toolbar-filters { display:flex;flex:0 0 auto;align-items:flex-end;justify-content:flex-end;gap:8px; }
.topic-filter-control { flex:0 0 auto;align-items:flex-end; }
.course-filter-control { flex:0 0 auto; }
.library-collection-panel .course-filter label { color:#1763d7; }
.library-collection-panel .course-filter select { min-width:190px;appearance:none;border-color:#c9dbf2;border-radius:11px;background-color:#fff;background-image:linear-gradient(45deg,transparent 50%,#55779f 50%),linear-gradient(135deg,#55779f 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 12px) 50%;background-repeat:no-repeat;background-size:4px 4px;box-shadow:0 5px 13px rgba(29,83,153,.045); }
.library-select-filters { align-items:flex-end;flex-wrap:wrap;justify-content:flex-end; }
.library-filter-field { display:grid;gap:4px; }
.library-filter-field label { line-height:1.2; }
.library-filter-field select { width:100%; }
.library-filter-field.topic-filter-field select { min-width:175px; }
.resource-card-tags .resource-topic-tag { background:#e7f7ef;color:#187252;text-transform:none; }
.library-collection-panel .library-results-block { position:relative;z-index:2;padding-top:27px; }
.library-collection-panel .library-results-heading { align-items:center;margin-bottom:19px;padding:0 4px; }
.library-collection-panel .library-results-heading h2 { font-size:1.65rem; }
.library-collection-panel .library-results-heading > p { padding:6px 10px;border:1px solid #d5e4f6;border-radius:999px;background:#fff;color:#6882a3;font-weight:800; }
.library-collection-panel .library-resource-grid { grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px; }
.library-collection-panel .library-resource-card { position:relative;border-color:#ccdef3;border-radius:19px;box-shadow:0 12px 28px rgba(29,83,153,.075); }
.library-collection-panel .library-resource-card::before { position:absolute;z-index:6;top:0;right:0;left:0;height:4px;background:linear-gradient(90deg,#6aa9ff,#1769e8);content:""; }
.library-collection-panel .library-resource-card:hover { border-color:#a9c8ee;box-shadow:0 19px 40px rgba(29,83,153,.12); }
.library-collection-panel .resource-card-preview { height:165px;background:linear-gradient(145deg,#eef6ff,#dceaff); }
.library-collection-panel .resource-card-preview::after { inset:19px 25% 15px; }
.library-collection-panel .resource-card-body { padding:17px 18px 18px; }
.library-collection-panel .resource-card-tags span { background:#edf4ff;color:#5275a2; }
.library-collection-panel .resource-card-body h3 { margin-top:11px; }
.library-collection-panel .resource-preview-link { display:inline-flex;align-items:center;min-height:31px;margin-top:12px;padding:0 11px;border:1px solid #c9ddf8;border-radius:9px;background:#f2f7ff; }
.resource-card-actions { display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px; }
.library-collection-panel .resource-card-actions .resource-preview-link { margin-top:0; }
.resource-card-stats { display:inline-flex;align-items:center;gap:6px;color:#6681a4; }
.resource-card-stats > span { display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:42px;min-height:31px;padding:0 7px;border:1px solid #d8e5f5;border-radius:9px;background:#f7faff;white-space:nowrap; }
.resource-card-stats svg { width:15px;height:15px;fill:none;stroke:#4f7fb8;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.resource-card-stats b { color:#58779e;font-size:.68rem;font-weight:850; }
.resource-card-stats.resource-file-stats { flex-shrink:0; }
.resource-card-stats.compact { gap:4px; }
.resource-card-stats.compact > span { min-width:36px;min-height:25px;padding:0 5px;border-radius:7px; }
.resource-card-stats.compact svg { width:13px;height:13px; }
.resource-card-stats.compact b { font-size:.62rem; }
.home-resource-footer .resource-card-stats { color:#6681a4; }
.related-resource-grid .resource-card-stats { margin-top:7px; }
.member-resources-intro { padding-bottom:12px; }
.member-resources-intro h1 { max-width:760px; }
.member-approved-collection,.member-dashboard-collection { margin-top:18px; }
.member-dashboard-collection .submission-table-wrap { position:relative;z-index:2;box-shadow:0 10px 25px rgba(29,83,153,.055); }
.member-dashboard-collection .submission-table td:first-child a:hover { text-decoration:underline; }
.member-dashboard-collection .library-empty { position:relative;z-index:2;background:rgba(255,255,255,.88); }
.member-approved-page .dashboard-quick-actions { margin-bottom:0; }

@media (max-width:900px) {
    .library-collection-panel { padding:14px 15px 22px; }
    .library-collection-panel .library-toolbar { align-items:stretch; }
    .library-toolbar-filters { width:100%;align-items:flex-end;justify-content:flex-end;flex-wrap:wrap; }
    .library-collection-panel .course-filter { justify-content:space-between; }
    .library-filter-field { flex:1 1 180px; }
}
@media (max-width:650px) {
    .library-collection-panel { margin-top:22px;padding:12px 11px 18px;border-radius:20px; }
    .library-collection-panel .resource-tabs { width:100%; }
    .library-toolbar-filters { align-items:stretch;flex-direction:column;gap:8px; }
    .library-toolbar-filters .course-filter { width:100%; }
    .topic-filter-control .library-filter-field { width:100%; }
    .library-select-filters { align-items:stretch;flex-direction:column; }
    .library-filter-field { width:100%;flex-basis:auto; }
    .library-filter-field select,.library-filter-field.topic-filter-field select { min-width:0; }
    .library-collection-panel .library-results-heading { align-items:flex-start; }
    .library-collection-panel .library-results-heading > p { margin-top:0; }
    .library-collection-panel .library-resource-grid { grid-template-columns:1fr; }
}

/* Light library contribution banner */
.library-contribute-banner { border:1px solid #c9def8;background:linear-gradient(118deg,#fff 0%,#f6faff 52%,#e8f3ff 100%);box-shadow:0 16px 38px rgba(29,83,153,.09);color:var(--blue-deep); }
.library-contribute-banner::before { background:rgba(125,178,245,.15); }
.library-contribute-banner::after { border-color:rgba(84,145,226,.15); }
.library-contribute-icon { border-color:#c6dcf7;background:linear-gradient(145deg,#edf6ff,#dcecff);box-shadow:0 12px 25px rgba(29,83,153,.11),inset 0 1px 0 #fff; }
.library-contribute-icon svg { stroke:var(--blue); }
.library-contribute-banner .eyebrow { border-color:#c6dcf7;background:rgba(255,255,255,.85);color:var(--blue); }
.library-contribute-banner h2 { color:var(--blue-deep); }
.library-contribute-banner h2 span { color:var(--blue); }
.library-contribute-banner p { color:#58749a; }
.library-contribute-button { border-color:#1769e8;background:linear-gradient(135deg,#2379ee,#1261d7);box-shadow:0 11px 24px rgba(23,105,232,.2);color:#fff; }
.library-contribute-button:hover { background:linear-gradient(135deg,#176fe5,#0e58c7);color:#fff; }
.library-contribute-button > span { position:relative;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.18);color:#fff;font-size:0;line-height:1; }
.library-contribute-button > span::before,.library-contribute-button > span::after { position:absolute;left:50%;top:50%;width:9px;height:2px;border-radius:999px;background:currentColor;content:"";transform:translate(-50%,-50%); }
.library-contribute-button > span::after { transform:translate(-50%,-50%) rotate(90deg); }

/* Resource preview page */
.resource-breadcrumb { display:flex;flex-wrap:wrap;gap:8px;margin:13px 0 22px;color:#91a1b6;font-size:.72rem; }.resource-breadcrumb a{color:#5376a4;font-weight:750;}.resource-detail-header { display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:35px;align-items:center;padding:32px 36px;border:1px solid var(--line);border-radius:21px;background:white; }.resource-detail-tags { display:flex;flex-wrap:wrap;gap:7px; }.resource-detail-tags span{padding:5px 9px;border-radius:7px;background:#edf4ff;color:#54749f;font-size:.66rem;font-weight:850;}.resource-detail-tags span:first-child{background:#1769e8;color:white;}.resource-detail-tags span:last-child{background:#e8f7ef;color:#157a55;}.resource-detail-header h1{max-width:800px;margin:14px 0 9px;color:var(--blue-deep);font-size:clamp(2rem,3.4vw,3.15rem);line-height:1.08;letter-spacing:-.05em;}.resource-detail-header > div > p{max-width:770px;margin:0;color:var(--muted);font-size:.93rem;}.resource-detail-meta{display:flex;flex-wrap:wrap;gap:9px 16px;margin-top:17px;color:#8193aa;font-size:.75rem;}.resource-detail-meta strong{color:#315f99;}.resource-action-card{padding:19px;border:1px solid #dce8f8;border-radius:16px;background:#f7faff;text-align:center;}.resource-action-mark{display:grid;width:66px;height:66px;margin:0 auto 14px;place-items:center;border-radius:18px;background:white;box-shadow:var(--shadow-small);color:var(--blue);font-size:.82rem;font-weight:950;}.resource-action-card small{display:block;margin-top:10px;font-size:.68rem;line-height:1.5;}.resource-preview-shell{margin-top:22px;overflow:hidden;border:1px solid #d8e5f5;border-radius:20px;background:#eaf0f8;box-shadow:0 20px 48px rgba(30,72,128,.08);}.resource-preview-topbar{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 17px;border-bottom:1px solid #d8e2ef;background:white;color:#607996;font-size:.75rem;}.resource-preview-topbar > div{display:flex;gap:6px;}.resource-preview-topbar > div span{width:9px;height:9px;border-radius:50%;background:#d9e3ef;}.resource-preview-topbar > div span:first-child{background:#ffb4b4;}.resource-preview-topbar > div span:nth-child(2){background:#ffd98e;}.resource-preview-topbar > div span:nth-child(3){background:#9cdeb9;}.resource-preview-topbar small{font-size:.68rem;}.resource-preview-content{min-height:610px;padding:28px;}.resource-document-frame{display:block;width:min(950px,100%);height:760px;margin:auto;border:0;border-radius:10px;background:white;box-shadow:0 15px 38px rgba(26,65,117,.13);}.typed-resource-content{width:min(850px,100%);min-height:680px;margin:auto;padding:60px 70px;border-radius:8px;background:white;box-shadow:0 15px 38px rgba(26,65,117,.13);color:#243d61;font-size:1rem;line-height:1.9;white-space:normal;}.image-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;width:min(1000px,100%);margin:auto;}.image-resource-grid figure{margin:0;padding:12px;border-radius:12px;background:white;box-shadow:0 12px 30px rgba(26,65,117,.12);}.image-resource-grid img{display:block;width:100%;max-height:760px;object-fit:contain;}.image-resource-grid figcaption{padding:8px 3px 0;color:#7d90a9;font-size:.7rem;text-align:center;}video.resource-video{display:block;width:min(1000px,100%);max-height:700px;margin:auto;border-radius:13px;background:#0d1d32;box-shadow:0 18px 42px rgba(16,48,91,.2);}.resource-empty-preview-card{display:grid;align-content:center;justify-items:center;width:min(850px,100%);min-height:560px;margin:auto;padding:45px;border-radius:13px;background:linear-gradient(145deg,#1659b8,#4c94f2);box-shadow:0 18px 42px rgba(16,67,137,.22);color:white;text-align:center;}.resource-empty-preview-card > span{display:grid;width:72px;height:72px;place-items:center;border-radius:18px;background:rgba(255,255,255,.16);font-size:.85rem;font-weight:950;}.resource-empty-preview-card h2{margin:20px 0 6px;font-size:2rem;}.resource-empty-preview-card p{margin:0;color:#dcecff;}.resource-empty-preview-card small{max-width:560px;margin-top:15px;color:#c7dcf8;font-size:.78rem;}.resource-attachments,.related-resources{margin-top:43px;}.resource-attachments h2{margin:5px 0 15px;color:var(--blue-deep);}.related-resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;}.related-resource-grid > a{display:flex;align-items:center;gap:14px;min-height:110px;padding:17px;border:1px solid var(--line);border-radius:15px;background:white;}.related-resource-grid > a:hover{border-color:#b6cff2;box-shadow:var(--shadow-small);text-decoration:none;}.related-resource-grid .resource-format-mark{flex:0 0 49px;height:55px;}.related-resource-grid small{display:block;color:#8294aa;font-size:.65rem;text-transform:uppercase;}.related-resource-grid strong{display:block;margin:3px 0;color:var(--blue-deep);font-size:.9rem;line-height:1.3;}.related-resource-grid p{margin:0;color:var(--muted);font-size:.69rem;}.resource-login-note{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:42px;padding:22px 25px;border:1px solid #cfe0f6;border-radius:16px;background:#eef5ff;}.resource-login-note strong{color:var(--blue-deep);}.resource-login-note p{margin:2px 0 0;color:var(--muted);font-size:.76rem;}.resource-login-note > a{padding:10px 15px;border-radius:9px;background:white;color:var(--blue);font-size:.75rem;font-weight:850;white-space:nowrap;}

/* Resource hero — matched to My Space */
/* Keep library card titles on one line, matching the homepage cards. */
.library-resource-card .resource-card-body h3 { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.library-resource-card .resource-card-body h3 a { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }

/* Previously previewed resource state */
.resource-viewed-badge { position:absolute;z-index:7;top:12px;left:12px;padding:5px 9px;border:1px solid #064e3b;border-radius:999px;background:#065f46;box-shadow:0 5px 14px rgba(6,78,59,.28);color:#fff;font-size:.62rem;font-weight:900;letter-spacing:.02em; }
.library-resource-card.resource-card-viewed { border-color:#adddc7;box-shadow:0 10px 26px rgba(24,132,91,.08); }
.library-collection-panel .library-resource-card.resource-card-viewed::before { background:linear-gradient(90deg,#51c68e,#16845c); }
.library-resource-card.resource-card-viewed .resource-card-preview { background:linear-gradient(145deg,#effaf5,#dff4ea); }
.library-resource-card.resource-card-viewed .resource-card-body { background:linear-gradient(145deg,#f5fcf8,#eaf8f1); }
.library-resource-card.resource-card-viewed .resource-card-tags span { background:#e3f5ec;color:#367d62; }
.library-resource-card.resource-card-viewed .resource-card-meta { border-top-color:#d4eee1; }
.library-resource-card.resource-card-viewed .resource-preview-link { border-color:#bce4d1;background:#f0faf5;color:#16845c; }
.home-resource-card.resource-card-viewed { border-color:#adddc7;box-shadow:0 11px 27px rgba(24,132,91,.09); }
.home-resource-card.resource-card-viewed .home-resource-preview { background:linear-gradient(145deg,#e7f7ef,#f8fcfa); }
.home-resource-preview em.resource-preview-viewed { border-color:#064e3b;background:#065f46;color:#fff;box-shadow:0 5px 14px rgba(6,78,59,.25); }
.home-resource-card.resource-card-viewed .home-resource-footer > b { color:#16845c; }
.resource-related-card.resource-card-viewed { --related-accent:#16845c;border-color:#adddc7;background:linear-gradient(145deg,#fff,#f3fbf7); }
.resource-related-card.resource-card-viewed .resource-related-card-footer > b { color:#16845c; }

/* Preview with matched resources */
.resource-preview-layout { display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin-top:22px;align-items:stretch; }
.resource-preview-layout.has-related-resources { grid-template-columns:minmax(0,1fr) 313px; }
.resource-preview-layout .resource-preview-shell { min-width:0;margin-top:0; }
.resource-preview-layout .resource-preview-content { min-width:0;padding:14px;overflow:hidden; }
.resource-preview-layout .resource-document-frame { width:100%;max-width:100%;box-sizing:border-box; }
.resource-preview-layout .typed-resource-content { width:100%;margin:0;padding:48px 54px; }
.resource-preview-layout .image-resource-grid,.resource-preview-layout video.resource-video,.resource-preview-layout .resource-empty-preview-card { width:100%; }
.resource-related-rail { display:flex;min-width:0;height:100%;overflow:hidden;flex-direction:column;border:1px solid #d8e5f5;border-radius:20px;background:#eaf0f8;box-shadow:0 20px 48px rgba(30,72,128,.08); }
.resource-related-topbar { display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:0 14px;border-bottom:1px solid #d8e2ef;background:#fff;color:#607996;font-size:.75rem; }
.resource-related-topbar > div { display:flex;gap:6px; }
.resource-related-topbar > div span { width:9px;height:9px;border-radius:50%;background:#d9e3ef; }
.resource-related-topbar > div span:first-child { background:#ffb4b4; }
.resource-related-topbar > div span:nth-child(2) { background:#ffd98e; }
.resource-related-topbar > div span:nth-child(3) { background:#9cdeb9; }
.resource-related-topbar strong { color:#526d8e;font-size:.75rem;white-space:nowrap; }
.resource-related-topbar small { font-size:.65rem;white-space:nowrap; }
.resource-related-content { display:flex;min-height:0;flex:1;flex-direction:column;padding:12px; }
.resource-related-cards { display:grid;gap:10px; }
.resource-related-card { --related-accent:#1769e8;position:relative;display:flex;min-height:126px;overflow:hidden;flex-direction:column;padding:13px 14px 12px;border:1px solid #d5e3f4;border-radius:14px;background:#fff;box-shadow:0 7px 18px rgba(29,83,153,.05);color:inherit;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.resource-related-card::before { position:absolute;top:0;right:0;left:0;height:3px;background:var(--related-accent);content:""; }
.resource-related-card.resource-pdf { --related-accent:#d63849; }.resource-related-card.resource-slides { --related-accent:#c97a0c; }.resource-related-card.resource-video { --related-accent:#1769e8; }.resource-related-card.resource-notes { --related-accent:#14805a; }.resource-related-card.resource-images { --related-accent:#7149bb; }
.resource-related-card:hover { border-color:#a9c8ee;box-shadow:0 11px 24px rgba(29,83,153,.1);text-decoration:none;transform:translateY(-2px); }
.resource-related-card-top { display:flex;align-items:center;justify-content:space-between;gap:9px; }
.resource-related-card-top small { overflow:hidden;color:#7890ae;font-size:.61rem;font-weight:850;text-overflow:ellipsis;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap; }
.resource-related-card-top b { flex:0 0 auto;padding:3px 7px;border-radius:6px;background:#eef4fc;color:var(--related-accent);font-size:.58rem;text-transform:uppercase; }
.resource-related-card > strong { margin:7px 0 3px;overflow:hidden;color:var(--blue-deep);font-size:.88rem;line-height:1.3;text-overflow:ellipsis;white-space:nowrap; }
.resource-related-card-description { display:-webkit-box;overflow:hidden;color:var(--muted);font-size:.66rem;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:1; }
.resource-related-card-footer { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px;border-top:1px solid #edf2f8; }
.resource-related-card-footer > b { color:var(--blue);font-size:.62rem;white-space:nowrap; }
.resource-related-empty { display:grid;min-height:260px;padding:28px 22px;place-content:center;justify-items:center;border:1px dashed #bfd5f1;border-radius:14px;background:rgba(255,255,255,.7);text-align:center; }
.resource-related-empty > span { display:grid;width:52px;height:52px;margin-bottom:13px;place-items:center;border-radius:16px;background:#e7f2ff;color:var(--blue);font-size:1.35rem; }
.resource-related-empty strong { color:var(--blue-deep);font-size:.9rem; }
.resource-related-empty p { margin:6px 0 0;color:#7489a5;font-size:.7rem;line-height:1.5; }
.resource-related-more { position:relative;display:grid;width:100%;min-height:43px;margin:10px 0 0;padding:0;place-items:center;border:0;border-radius:0;background:transparent;color:var(--blue);box-shadow:none;font-size:.78rem;font-weight:900;line-height:1;text-align:center;letter-spacing:.015em;text-decoration:none;transition:color .18s ease,letter-spacing .18s ease; }
.resource-related-more::before,.resource-related-more::after { position:absolute;right:0;left:0;height:1px;border-radius:999px;background:linear-gradient(90deg,transparent 0%,#9bc2f4 16%,#4f93ec 50%,#9bc2f4 84%,transparent 100%);content:"";transition:height .18s ease,background .18s ease; }
.resource-related-more::before { top:0; }
.resource-related-more::after { bottom:0; }
.resource-related-more:hover { background:transparent;color:var(--blue-dark);box-shadow:none;letter-spacing:.03em;text-decoration:none;transform:none; }
.resource-related-more:hover::before,.resource-related-more:hover::after { height:2px;background:linear-gradient(90deg,transparent 0%,#71a9f0 14%,#1769e8 50%,#71a9f0 86%,transparent 100%); }

@media (max-width: 1050px) {
    .resource-preview-layout.has-related-resources { grid-template-columns:1fr; }
    .resource-related-rail { height:auto; }
    .resource-related-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .resource-related-more { margin-top:2px; }
}

@media (max-width: 650px) {
    .resource-preview-layout .resource-preview-content { padding:8px; }
    .resource-preview-layout .typed-resource-content { padding:32px 22px; }
    .resource-related-cards { grid-template-columns:1fr; }
}

.resource-detail-page .resource-detail-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 18px;
    align-items: center;
    min-height: 238px;
    overflow: hidden;
    padding: 29px 38px;
    border: 1px solid #cfe1f7;
    border-radius: 24px;
    background-image:
        url("my-space-hero-v1.png"),
        linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(250,253,255,.95) 44%, rgba(235,246,255,.22) 68%, rgba(229,243,255,.04) 100%),
        linear-gradient(120deg, #fff 0%, #f4f9ff 48%, #dceeff 100%);
    background-position: calc(100% - 26px) center, center, center;
    background-repeat: no-repeat;
    background-size: 260px auto, 100% 100%, 100% 100%;
    box-shadow: 0 18px 48px rgba(24, 82, 154, .08);
}
.resource-detail-page .resource-detail-header::before {
    position: absolute;
    top: -175px;
    right: -100px;
    width: 440px;
    height: 335px;
    border-radius: 50%;
    background: rgba(204,226,255,.06);
    content: "";
    pointer-events: none;
    transform: rotate(12deg);
}
.resource-detail-page .resource-detail-header::after {
    position: absolute;
    bottom: -135px;
    left: -65px;
    width: 335px;
    height: 185px;
    border-radius: 50%;
    background: rgba(218,235,255,.58);
    content: "";
    pointer-events: none;
}
.resource-detail-page .resource-detail-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
}
.resource-detail-page .resource-detail-visual { min-height: 170px; }
.resource-detail-page .resource-detail-tags span {
    border: 1px solid #c8ddf8;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
}
.resource-detail-page .resource-detail-tags span:first-child { border-color: #1769e8; background: #1769e8; color: #fff; }
.resource-detail-page .resource-detail-header h1 {
    max-width: 100%;
    margin: 13px 0 7px;
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.05;
}
.resource-detail-page .resource-detail-header > .resource-detail-copy > p {
    max-width: 100%;
    color: #587497;
    line-height: 1.55;
}
.resource-detail-page .resource-detail-meta { margin-top: 11px; }
.resource-detail-page .resource-action-card {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}
.resource-detail-page .resource-action-card .button {
    min-height: 42px;
    padding: 0 18px;
    flex: 0 0 auto;
    border-radius: 999px;
}
.resource-detail-page .resource-action-card small {
    max-width: 230px;
    margin: 0;
    color: #6c84a3;
    font-size: .72rem;
    line-height: 1.4;
}
@media (max-width: 900px) {
    .resource-detail-page .resource-detail-header {
        grid-template-columns: minmax(0, 1fr) 180px;
        padding: 29px 31px;
        background-position: calc(100% + 15px) center, center, center;
        background-size: 230px auto, 100% 100%, 100% 100%;
    }
}
@media (max-width: 650px) {
    .resource-detail-page .resource-detail-header {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 25px 21px;
        background-position: calc(100% + 185px) center, center, center;
        background-size: 290px auto, 100% 100%, 100% 100%;
    }
    .resource-detail-page .resource-detail-visual { display: none; }
    .resource-detail-page .resource-detail-header h1 { font-size: 2rem; }
    .resource-detail-page .resource-action-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 1100px) {
    .discovery-hero{min-height:350px;padding:24px 28px 18px}.discovery-hero-copy{width:min(600px,60%)}.discovery-hero h1{font-size:3rem}.hero-benefits{margin-right:10px;margin-left:10px}.hero-benefits article{padding-right:10px;padding-left:10px}.format-explorer-grid{grid-template-columns:repeat(2,1fr)}.library-resource-grid{grid-template-columns:repeat(2,1fr)}.access-steps{grid-template-columns:1fr}.how-access-works{grid-template-columns:.8fr 1.2fr}.library-hero{padding:38px 34px}.resource-tabs{max-width:690px}
}
@media (max-width: 900px) {
    .discovery-hero{min-height:auto;padding:26px 26px 22px;background-image:linear-gradient(rgba(246,250,255,.9),rgba(239,246,255,.88)),url("hero-study-v3.png");background-position:68% center}.discovery-hero-copy{width:100%;max-width:620px}.discovery-hero h1{white-space:normal}.hero-benefits{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:28px}.hero-benefits article:nth-child(2){border-right:0}.hero-benefits article:nth-child(-n+2){border-bottom:1px solid #dbe7f7}.library-hero{grid-template-columns:1fr;padding-bottom:10px}.library-hero h1{white-space:normal}.library-hero-visual{min-height:300px;transform:scale(.9);transform-origin:top center}.library-toolbar{align-items:flex-start;flex-direction:column}.course-filter{width:100%;justify-content:flex-end}.resource-detail-header{grid-template-columns:1fr}.resource-action-card{display:grid;grid-template-columns:70px 1fr;align-items:center;gap:12px;text-align:left}.resource-action-mark{grid-row:span 2;margin:0}.resource-action-card small{margin:0}.related-resource-grid{grid-template-columns:1fr}
}
@media (max-width: 800px) and (min-width: 651px) {
    .library-contribute-banner{grid-template-columns:64px minmax(0,1fr);gap:20px;padding:28px}.library-contribute-icon{width:62px;height:62px}.library-contribute-button{grid-column:2;justify-self:start}
}
@media (max-width: 650px) {
    .discovery-hero{padding:28px 20px 20px;border-radius:22px;background-position:67% center}.discovery-hero h1{margin:18px 0 14px;font-size:2.55rem}.discovery-hero h1 .hero-highlight::after{bottom:-13px}.hero-accent{display:none}.discovery-hero-copy>p{margin-bottom:22px;font-size:.92rem}.hero-resource-search,.library-search{min-height:57px;padding-left:14px}.hero-resource-search button,.library-search button{min-height:43px;padding:0 14px}.hero-quick-links{margin-top:15px}.hero-quick-links>span{width:100%}.hero-quick-links a{min-height:31px;padding:0 10px}.hero-benefits{gap:0;padding:10px}.hero-benefits article{gap:9px;padding:10px 8px}.hero-benefit-icon{width:39px;height:39px;flex-basis:39px;border-radius:12px}.hero-benefit-icon svg{width:22px;height:22px}.hero-benefits strong{font-size:.78rem}.hero-benefits small{font-size:.62rem}.format-explorer{margin-top:24px;padding:20px 15px 18px;border-radius:20px}.home-library-section{margin-top:42px}.format-explorer-grid,.home-resource-grid,.library-resource-grid{grid-template-columns:1fr}.format-book-divider{gap:10px}.format-book-divider span{width:44px}.format-explorer-heading h2{font-size:1.8rem}.format-explorer-heading>p{font-size:.82rem;line-height:1.5}.format-explorer-grid{margin-top:18px}.format-tile{min-height:145px;padding:15px 10px}.format-tile+.format-tile{border-top:1px solid #cfe0f5;border-left:0}.how-access-works{grid-template-columns:1fr;gap:24px;padding:26px 21px}.access-steps{grid-template-columns:1fr}.library-hero{padding:30px 21px 0;border-radius:20px}.library-hero h1{font-size:2.45rem}.library-hero-visual{min-height:280px;margin:0 -20px;transform:scale(.75)}.library-trust-row{gap:8px 13px}.resource-tabs{flex-wrap:nowrap;width:100%;overflow-x:auto;padding-bottom:5px}.resource-tab{white-space:nowrap}.course-filter{justify-content:stretch}.course-filter select{min-width:0;flex:1}.library-results-heading{align-items:flex-start;flex-direction:column}.library-results-heading>p{margin-top:-12px}.library-contribute-banner{grid-template-columns:56px minmax(0,1fr);gap:16px;padding:25px 20px}.library-contribute-icon{width:54px;height:54px;border-radius:17px}.library-contribute-icon svg{width:30px;height:30px}.library-contribute-banner h2{font-size:1.42rem}.library-contribute-button{grid-column:1 / -1;justify-content:center;width:100%;}.resource-detail-header{padding:24px 20px}.resource-detail-header h1{font-size:2rem}.resource-action-card{display:block;text-align:center}.resource-action-mark{margin:0 auto 12px}.resource-preview-content{min-height:420px;padding:12px}.resource-document-frame{height:580px}.typed-resource-content{min-height:500px;padding:34px 25px}.image-resource-grid{grid-template-columns:1fr}.resource-empty-preview-card{min-height:420px;padding:30px 20px}.resource-login-note{align-items:flex-start;flex-direction:column}.resource-login-note>a{width:100%;text-align:center}
}

@media (max-width: 900px) {
    .library-hero.library-home-style{min-height:auto;padding:26px 26px 22px;background:#edf5ff url("library-hero-v2.png") 68% center/cover no-repeat}
}

@media (max-width: 650px) {
    .library-hero.library-home-style{padding:28px 20px 22px;border-radius:22px;background-position:67% center}
}

@media (max-width: 1100px) and (min-width: 651px) {
    .format-tile:nth-child(3) { border-left: 0; }
    .format-tile:nth-child(n+3) { border-top: 1px solid #cfe0f5; padding-top: 24px; }
}

@media (max-width: 1100px) {
    .home-aligned-hero { padding:38px 34px; }
}

@media (max-width: 1180px) and (min-width: 901px) {
    .home-resource-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .home-resource-grid .home-resource-card:nth-child(n+13) { display:none; }
}

@media (max-width: 900px) {
    .home-aligned-hero { grid-template-columns:1fr;padding-bottom:10px; }
}

@media (max-width: 650px) {
    .home-aligned-hero { padding:30px 21px 0; }
}

@media (max-width: 900px) {
    .home-library-action { position: relative; top: auto; right: auto; justify-content: flex-end; margin-bottom: 7px; }
    .home-resource-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .home-resource-grid .home-resource-card:nth-child(n+10) { display:none; }
    .home-footer-main { grid-template-columns: 1.5fr repeat(2,1fr); }
    .home-footer-links:last-child { grid-column: 2 / -1; }
}

@media (max-width: 650px) {
    .home-library-section { margin-top: 24px; padding: 20px 15px; border-radius: 20px; }
    .home-library-heading h2 { font-size: 1.8rem; }
    .home-library-intro { font-size: .82rem; line-height: 1.5; }
    .home-resource-grid { grid-template-columns: 1fr; }
    .home-resource-grid .home-resource-card:nth-child(n+4) { display:none; }
    .home-resource-card { min-height: 282px; }
    .home-resource-preview { height: 136px; flex-basis: 136px; }
    .discovery-cta { padding: 24px 20px; }
    .discovery-cta-button { width: 100%; }
    .home-footer-main { grid-template-columns: 1fr 1fr; gap: 26px 20px; padding: 25px 21px; }
    .home-footer-brand { grid-column: 1 / -1; }
    .home-footer-links:last-child { grid-column: auto; }
    .home-footer-bottom { align-items: flex-start; flex-direction: column; gap: 4px; padding: 13px 21px; }
    .auth-page .home-footer { width: calc(100% - 30px); }
    .about-challenge-panel { margin-top:24px;padding:20px 15px 18px;border-radius:20px; }
    .about-challenge-heading h2 { font-size:1.8rem; }
    .about-challenge-heading > p { font-size:.82rem;line-height:1.5; }
    .about-challenge-copy { margin-top:20px;padding:20px 8px; }
    .about-challenge-copy p { font-size:.9rem;line-height:1.75; }
    .about-challenge-panel .problem-grid { grid-template-columns:1fr;margin-top:18px; }
    .about-challenge-panel .info-card { min-height:auto;padding:20px 14px; }
    .about-challenge-panel .info-card + .info-card { border-top:1px solid #cfe0f5;border-left:0; }
}

@media (max-width: 760px) {
    .pdf-library-callout { grid-template-columns:1fr;gap:20px;min-height:0;padding:24px 20px; }
    .pdf-library-copy h2 { font-size:1.55rem; }
    .pdf-library-copy > p { font-size:.82rem;line-height:1.55; }
    .pdf-library-points { grid-column:1 / -1;gap:8px 14px; }
    .pdf-library-link { grid-column:1 / -1;width:100%; }
}

@media (max-width: 430px) {
    .pdf-library-callout { grid-template-columns:1fr;text-align:center; }
    .pdf-library-points { justify-content:center; }
}

/* Admin bulk ZIP upload */
.topbar nav a.active { color:var(--blue); }
.admin-feature-grid { grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); }
.bulk-upload-page { max-width:1180px; }
.bulk-upload-hero { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:30px;margin:15px 0 24px;padding:28px 30px;overflow:hidden;border:1px solid #d3e3f7;border-radius:20px;background:linear-gradient(135deg,#fff 0%,#f5f9ff 67%,#e8f2ff 100%);box-shadow:var(--shadow-small); }
.bulk-upload-hero h1 { margin:6px 0 7px;color:var(--blue-deep);font-size:2.15rem;letter-spacing:-.04em; }
.bulk-upload-hero p { max-width:760px;margin:0;color:var(--muted);font-size:.9rem;line-height:1.65; }
.bulk-hero-badge { display:grid;width:118px;height:92px;place-items:center;border:1px solid #c9dcf5;border-radius:18px;background:#fff;box-shadow:0 12px 25px rgba(31,83,150,.1); }
.bulk-hero-badge span { color:var(--blue);font-size:1.35rem;font-weight:950;letter-spacing:.08em; }
.bulk-hero-badge small { margin-top:-18px;color:#7b91ad;font-size:.68rem;font-weight:750; }
.bulk-message { margin-bottom:16px; }
.bulk-upload-card,.bulk-progress-card,.bulk-preview-card,.bulk-summary-card { margin-top:18px; }
.bulk-upload-card.is-busy { opacity:.72;pointer-events:none; }
.bulk-step-heading { display:flex;align-items:flex-start;gap:14px;margin-bottom:22px; }
.bulk-step-heading > span { display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border-radius:11px;background:linear-gradient(145deg,#2b7cef,#155bc9);box-shadow:0 7px 15px rgba(23,105,232,.2);color:#fff;font-size:.85rem;font-weight:900; }
.bulk-step-heading h2 { margin:0 0 4px;color:var(--blue-deep);font-size:1.22rem; }
.bulk-step-heading p { margin:0;color:var(--muted);font-size:.82rem;line-height:1.5; }
.bulk-form-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
.bulk-zip-picker { display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:15px;min-height:92px;margin-top:18px;padding:15px 18px;border:2px dashed #bdd2ed;border-radius:16px;background:#f9fcff;cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.bulk-zip-picker:hover,.bulk-zip-picker.has-file { border-color:#4b8fe8;background:#f3f8ff;box-shadow:0 9px 22px rgba(31,83,150,.08); }
.bulk-zip-picker input { position:absolute;width:1px;height:1px;overflow:hidden;opacity:0; }
.bulk-zip-picker-icon { display:grid;width:50px;height:50px;place-items:center;border-radius:14px;background:#e5f0ff;color:#1769e8;font-size:.72rem;font-weight:950; }
.bulk-zip-picker > span:nth-of-type(2) { min-width:0; }
.bulk-zip-picker strong { display:block;color:var(--blue-deep);font-size:.9rem; }
.bulk-zip-picker small { display:block;overflow:hidden;margin-top:4px;color:#7890ad;font-size:.74rem;text-overflow:ellipsis;white-space:nowrap; }
.bulk-zip-picker b { padding:9px 14px;border:1px solid #bad0eb;border-radius:9px;background:#fff;color:#1a5ead;font-size:.75rem; }
.bulk-upload-guidance { display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px; }
.bulk-upload-guidance span { padding:6px 10px;border-radius:999px;background:#edf4fc;color:#557694;font-size:.7rem;font-weight:750; }
.bulk-primary-button { border-color:#1769e8;background:linear-gradient(135deg,#287cf1,#155dd7);box-shadow:0 9px 20px rgba(23,105,232,.18);color:#fff; }
.bulk-primary-button:hover { color:#fff; }
.bulk-progress-heading { display:flex;align-items:flex-end;justify-content:space-between;gap:20px; }
.bulk-progress-heading h2 { margin:4px 0 0;font-size:1.2rem; }
.bulk-progress-heading > strong { color:var(--blue);font-size:1.35rem; }
.bulk-progress-track { height:12px;margin-top:18px;overflow:hidden;border-radius:999px;background:#e7eef8; }
.bulk-progress-track span { display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1769e8,#5b9df4);box-shadow:0 0 14px rgba(23,105,232,.35);transition:width .25s ease; }
.bulk-progress-card > p { margin:10px 0 0;color:var(--muted);font-size:.78rem; }
.bulk-preview-summary,.bulk-result-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px; }
.bulk-preview-summary > div,.bulk-result-grid > div { display:grid;gap:4px;padding:15px;border:1px solid #dce6f3;border-radius:13px;background:#f9fbfe; }
.bulk-preview-summary strong,.bulk-result-grid strong { color:var(--blue-deep);font-size:1.3rem; }
.bulk-preview-summary span,.bulk-result-grid span { color:#71859d;font-size:.72rem; }
.bulk-preview-summary .is-warning,.bulk-result-grid .is-warning { border-color:#efdca9;background:#fffaf0; }
.bulk-result-grid .is-success { border-color:#bfe4ce;background:#f2fbf6; }
.bulk-result-grid .is-danger { border-color:#efc8cc;background:#fff5f6; }
.bulk-tree-wrap { overflow:hidden;border:1px solid #dce6f3;border-radius:15px;background:#fff; }
.bulk-tree-heading { display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 16px;border-bottom:1px solid #e5edf6;background:#f7faff; }
.bulk-tree-heading strong { color:var(--blue-deep);font-size:.82rem; }
.bulk-tree-heading small { color:#8294aa;font-size:.68rem; }
.bulk-tree { max-height:430px;overflow:auto;padding:8px 0; }
.bulk-tree-row { display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;min-height:52px;padding:7px 16px 7px calc(16px + (var(--tree-depth) * 20px));border-bottom:1px solid #f0f4f8; }
.bulk-tree-row:last-child { border-bottom:0; }
.bulk-tree-icon { display:grid;width:31px;height:29px;place-items:center;border-radius:8px;background:#e5f1ff;color:#1769e8;font-size:.58rem;font-weight:950; }
.bulk-tree-row.is-folder .bulk-tree-icon { background:#e8f2ff;color:#2d75ce;font-size:.9rem; }
.bulk-tree-row > span:last-child { min-width:0; }
.bulk-tree-row strong { display:block;overflow:hidden;color:#254665;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap; }
.bulk-tree-row small { display:block;overflow:hidden;margin-top:3px;color:#8999ab;font-size:.65rem;text-overflow:ellipsis;white-space:nowrap; }
.bulk-tree-row.is-ignored { opacity:.64;background:#fff9f1; }
.bulk-tree-row.is-ignored .bulk-tree-icon { background:#fff0da;color:#a66a13; }
.bulk-preview-actions,.bulk-summary-actions { display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:18px; }
.bulk-summary-heading { display:flex;align-items:center;gap:15px;margin-bottom:20px; }
.bulk-summary-heading > span { display:grid;width:48px;height:48px;place-items:center;border-radius:50%;background:#dcf5e6;color:#16814f;font-size:1.35rem;font-weight:950; }
.bulk-summary-heading h2 { margin:3px 0;color:var(--blue-deep);font-size:1.35rem; }
.bulk-summary-heading p { margin:0;color:var(--muted);font-size:.78rem; }
.bulk-error-list { margin-top:15px;padding:15px 17px;border:1px solid #efc8cc;border-radius:13px;background:#fff7f8;color:#87414a;font-size:.76rem; }
.bulk-error-list ul { margin:9px 0 0;padding-left:19px; }
.bulk-security-panel { margin:18px 0 30px;padding:18px 21px;border:1px solid #dbe6f4;border-radius:15px;background:#f8fbff; }
.bulk-security-panel h2 { margin:0 0 6px;color:var(--blue-deep);font-size:.94rem; }
.bulk-security-panel p { margin:0;color:var(--muted);font-size:.76rem;line-height:1.6; }

@media (max-width: 760px) {
    .bulk-upload-hero { grid-template-columns:1fr;padding:23px 20px; }
    .bulk-hero-badge { display:none; }
    .bulk-form-grid { grid-template-columns:1fr; }
    .bulk-preview-summary,.bulk-result-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .bulk-zip-picker { grid-template-columns:46px minmax(0,1fr);padding:14px; }
    .bulk-zip-picker b { display:none; }
    .bulk-preview-actions,.bulk-summary-actions { align-items:stretch;flex-direction:column; }
    .bulk-preview-actions .button,.bulk-summary-actions .button { justify-content:center;width:100%; }
    .bulk-tree-row { padding-left:calc(12px + (min(var(--tree-depth), 8) * 14px)); }
}

/* Manual ordering for course folders. */
.admin-folder-list > .admin-folder-row { grid-template-columns:32px minmax(130px,auto) minmax(0,1fr) auto; }
.admin-folder-actions { display:flex;align-items:center;gap:6px;margin:0; }
.admin-folder-actions button { min-width:48px;height:30px;padding:0 9px;border:1px solid #cbdcf0;border-radius:8px;background:#f4f8fe;color:#155ec4;font-size:.7rem;font-weight:850;cursor:pointer; }
.admin-folder-actions button:hover:not(:disabled) { border-color:#1769e8;background:#eaf2ff; }
.admin-folder-actions button:focus-visible { outline:2px solid #1769e8;outline-offset:2px; }
.admin-folder-actions button:disabled { opacity:.35;cursor:not-allowed; }

@media (max-width:760px) {
    .admin-folder-list > .admin-folder-row { grid-template-columns:28px minmax(0,1fr) auto;padding-left:calc(min(var(--folder-depth), 4) * 12px); }
    .admin-folder-row > small { display:none; }
    .admin-folder-actions { grid-column:3;grid-row:1; }
    .admin-folder-actions button { min-width:42px;padding:0 7px; }
}
