@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --orange: #f47721;
    --orange-dark: #d95c0b;
    --ink: #202124;
    --muted: #7c8085;
    --line: #e9e9e7;
    --paper: #f7f7f5;
    --white: #fff;
    font-family: 'DM Sans', Arial, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.site-header { height: 82px; max-width: 1200px; padding: 0 30px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo { width: 36px; height: 39px; display: block; flex: 0 0 auto; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.35; }
.brand-copy strong { font-family: Manrope, sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .7px; }
.brand-copy small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.top-nav { display: flex; align-items: center; gap: 31px; }
.nav-link { color: #686b6e; font-size: 13px; font-weight: 600; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.manager-link { border: 0; padding: 11px 16px; border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 700; }
.manager-link:hover { color: var(--orange-dark); background: #fff1e7; }
.manager-link span { margin-left: 10px; color: var(--orange); }
.page-shell { max-width: 1140px; margin: 0 auto; padding: 18px 30px 90px; }
.welcome-panel { min-height: 350px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 48px 63px; border-radius: 13px; color: var(--white); background: #282a2c; }
.welcome-copy { z-index: 1; max-width: 520px; }
.eyebrow { color: var(--muted); display: block; font-size: 9px; font-weight: 700; letter-spacing: 1.55px; line-height: 1.7; }
.welcome-copy .eyebrow { color: #d4d4d1; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--orange); }
h1, h2, h3, h4, p { margin-top: 0; }
.welcome-copy h1 { margin: 18px 0 12px; font-family: Manrope, sans-serif; font-size: clamp(38px, 5vw, 58px); font-weight: 700; letter-spacing: -2.8px; line-height: 1.07; }
.welcome-copy h1 span, .manager-heading h1 span, .login-panel h1 span { color: var(--orange); }
.welcome-copy p { max-width: 400px; margin-bottom: 22px; color: #bfc0be; font-size: 13px; line-height: 1.8; }
.button { min-height: 43px; display: inline-flex; justify-content: center; align-items: center; gap: 22px; border: 0; border-radius: 6px; padding: 0 17px; font-size: 12px; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-light { color: #232425; background: var(--white); }
.button-light span, .button-orange span { color: var(--orange); font-size: 17px; }
.welcome-art { width: 360px; height: 290px; position: absolute; right: 56px; top: 28px; }
.art-orbit { position: absolute; inset: 9px 24px 10px 34px; border: 1px solid #515254; border-radius: 50%; transform: rotate(-27deg); }
.orbit-two { inset: 39px 60px 22px 4px; border-color: #444648; transform: rotate(30deg); }
.art-book { position: absolute; left: 137px; top: 92px; width: 113px; height: 89px; padding: 18px 14px; display: flex; flex-direction: column; justify-content: center; gap: 9px; border-radius: 5px 13px 13px 5px; background: var(--orange); box-shadow: 11px 8px 0 #c75a16; transform: rotate(-12deg); }
.art-book::before { position: absolute; top: 0; bottom: 0; left: 12px; width: 1px; background: #ffac6e; content: ''; }
.art-book span { height: 2px; margin-left: 11px; background: #ffd3b0; opacity: .8; }
.art-book span:nth-child(2) { width: 67%; }
.art-book span:nth-child(3) { width: 48%; }
.art-star { position: absolute; color: #ffa05c; }
.star-one { top: 46px; right: 81px; font-size: 35px; }
.star-two { bottom: 30px; left: 37px; color: #7e8080; font-size: 20px; }
.art-caption { position: absolute; right: 22px; bottom: 25px; color: #848687; font-size: 9px; font-weight: 700; letter-spacing: 2px; line-height: 1.5; }
.welcome-index { position: absolute; right: 27px; bottom: 21px; display: flex; align-items: center; gap: 9px; color: #aaa; font-size: 9px; }
.welcome-index span:first-child { color: var(--orange); }
.welcome-index i { width: 35px; height: 1px; background: #666; }
.section-block { padding-top: 68px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2 { margin: 3px 0 0; font-family: Manrope, sans-serif; font-size: 27px; font-weight: 700; letter-spacing: -.8px; }
.count-label { padding: 6px 10px; border-radius: 5px; color: #62666a; background: var(--paper); font-size: 10px; font-weight: 600; }
.discipline-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 25px; }
.discipline-sidebar { align-self: start; padding: 19px 15px; border: 1px solid var(--line); border-radius: 8px; }
.sidebar-label { display: block; margin: 0 8px 12px; color: #8c8e91; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.discipline-option { min-height: 61px; display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 6px; }
.discipline-option + .discipline-option { margin-top: 3px; }
.discipline-option:hover { background: #faf6f2; }
.discipline-option.selected { background: #fff2e9; }
.discipline-number { color: #a4a5a4; font-size: 10px; font-weight: 700; }
.selected .discipline-number { color: var(--orange); }
.discipline-option-copy { min-width: 0; display: grid; flex: 1; line-height: 1.45; }
.discipline-option-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.discipline-option-copy small { color: #909296; font-size: 9px; }
.discipline-arrow { color: #aaa; font-size: 14px; }
.selected .discipline-arrow { color: var(--orange); }
.discipline-content { min-width: 0; }
.discipline-intro { margin-bottom: 17px; padding: 20px 22px; border-radius: 8px; background: var(--paper); }
.discipline-intro h3 { margin: 5px 0 5px; font-family: Manrope, sans-serif; font-size: 22px; letter-spacing: -.6px; }
.discipline-intro p { margin: 7px 0 0; color: #686b6e; font-size: 12px; line-height: 1.8; }
.discipline-intro .lecturer { color: var(--orange-dark); font-size: 11px; font-weight: 600; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.content-card { min-width: 0; padding: 19px 17px; border: 1px solid var(--line); border-radius: 8px; }
.card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.card-icon { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 7px; font-size: 14px; }
.icon-orange { color: var(--orange-dark); background: #fff0e5; }
.icon-gray { color: #686c6c; background: #f0f1ef; }
.card-heading .eyebrow { font-size: 8px; }
.card-heading h4 { margin: 0; font-family: Manrope, sans-serif; font-size: 12px; line-height: 1.4; }
.card-count { min-width: 22px; margin-left: auto; padding: 2px 6px; border-radius: 10px; color: #7b7c7c; background: var(--paper); font-size: 9px; text-align: center; }
.resource-list { margin: 0; padding: 0; list-style: none; }
.resource-item { display: flex; align-items: flex-start; gap: 9px; padding: 11px 0; border-top: 1px solid #f0f0ee; }
.resource-symbol { width: 23px; height: 23px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 5px; color: var(--orange-dark); background: #fff5ee; font-size: 11px; }
.check-symbol { color: #6e7871; background: #f1f3f1; }
.resource-copy { min-width: 0; flex: 1; }
.resource-copy strong { display: block; font-size: 10px; line-height: 1.5; }
.resource-copy small { display: block; margin-top: 2px; color: #929496; font-size: 9px; overflow-wrap: anywhere; }
.resource-copy p { margin: 6px 0 0; color: #6f7274; font-size: 10px; line-height: 1.65; }
.download-link { width: 23px; height: 23px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 5px; color: var(--orange-dark); background: #fff5ee; font-size: 12px; }
.download-link:hover { color: white; background: var(--orange); }
.muted-note { margin: 0; color: #898c8e; font-size: 11px; line-height: 1.7; }
.privacy-note { margin: 11px 0 0; padding-top: 10px; border-top: 1px solid #f0f0ee; color: #989a9a; font-size: 9px; }
.news-section { padding-top: 77px; }
.news-decoration { color: var(--orange); font-size: 27px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.news-card { min-height: 190px; padding: 19px; border: 1px solid var(--line); border-radius: 8px; }
.news-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.news-tag { max-width: 70%; overflow: hidden; padding: 4px 7px; border-radius: 4px; color: var(--orange-dark); background: #fff3e9; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.news-card time { color: #999; font-size: 9px; }
.news-card h3 { margin: 15px 0 7px; font-family: Manrope, sans-serif; font-size: 14px; line-height: 1.45; }
.news-card p { margin-bottom: 10px; color: #74777a; font-size: 11px; line-height: 1.7; }
.text-link { color: var(--orange-dark); font-size: 10px; font-weight: 700; }
.text-link span { margin-left: 5px; }
.empty-state { padding: 54px 20px; border: 1px dashed #ddd; border-radius: 9px; text-align: center; }
.empty-icon { width: 35px; height: 35px; display: grid; margin: 0 auto 9px; place-items: center; border-radius: 50%; color: var(--orange); background: #fff1e6; font-size: 22px; }
.empty-state h3 { margin-bottom: 4px; font-family: Manrope, sans-serif; font-size: 16px; }
.empty-state p, .compact-empty p { max-width: 480px; margin: 0 auto; color: #828587; font-size: 11px; }
.compact-empty { padding: 25px; border-radius: 7px; background: var(--paper); text-align: center; }
.site-footer { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px max(30px, calc((100% - 1140px) / 2)); border-top: 1px solid var(--line); }
.site-footer > span, .site-footer > a:last-child { color: #808386; font-size: 10px; }
.footer-brand .brand-logo { width: 36px; height: 40px; }
.footer-brand .brand-copy strong { font-size: 11px; }
.footer-brand .brand-copy small { font-size: 7px; }
.alert { margin: 0 0 16px; padding: 12px 15px; border: 1px solid; border-radius: 6px; font-size: 12px; }
.alert-error { border-color: #f0c7c0; color: #8c3024; background: #fff4f1; }
.alert-success { border-color: #bedfc9; color: #21633b; background: #f0fbf3; }
.alert code, .setup-note code { font-size: 11px; }
.manager-page { background: #fafaf9; }
.manager-shell { max-width: 1140px; min-height: calc(100vh - 168px); margin: 0 auto; padding: 35px 30px 75px; }
.manager-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.manager-heading h1 { margin: 6px 0 4px; font-family: Manrope, sans-serif; font-size: clamp(29px, 4vw, 39px); letter-spacing: -1.5px; line-height: 1.2; }
.manager-heading p { margin: 0; color: #7a7d80; font-size: 12px; }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: #414345; }
.manager-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.manager-stats > div { display: grid; gap: 4px; padding: 15px 19px; }
.manager-stats > div + div { border-left: 1px solid var(--line); }
.manager-stats span { color: #85888a; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.manager-stats strong { font-family: Manrope, sans-serif; font-size: 22px; }
.manager-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.manager-card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.manager-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.form-number { color: var(--orange); font-family: Manrope, sans-serif; font-size: 22px; font-weight: 700; }
.manager-card-heading .eyebrow { font-size: 8px; }
.manager-card-heading h2 { margin: 1px 0 0; font-family: Manrope, sans-serif; font-size: 16px; }
.form-stack { display: grid; gap: 13px; }
.form-stack label { display: grid; gap: 5px; color: #55595b; font-size: 10px; font-weight: 700; }
.form-stack input:not([type=hidden]), .form-stack textarea, .form-stack select { width: 100%; min-height: 38px; border: 1px solid #e5e5e2; border-radius: 5px; outline: none; padding: 9px 10px; color: var(--ink); background: white; font-size: 11px; font-weight: 400; }
.form-stack textarea { min-height: 70px; resize: vertical; }
.form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus { border-color: #efa36d; box-shadow: 0 0 0 3px #fff2e9; }
.form-stack input::placeholder, .form-stack textarea::placeholder { color: #a3a4a5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-stack .file-field { padding: 10px; border: 1px dashed #dededb; border-radius: 5px; background: #fdfdfc; }
.form-stack .file-field input[type=file] { min-height: auto; padding: 7px; font-size: 10px; }
.file-field small { color: #888b8d; font-size: 9px; font-weight: 400; }
.optional-label { margin-left: 5px; color: var(--orange-dark); font-size: 8px; letter-spacing: .8px; }
.button-orange { justify-self: start; color: white; background: var(--orange); }
.button-orange:hover { background: var(--orange-dark); }
.button-orange span { color: #ffe4d1; }
.button-full { width: 100%; }
.managed-list { display: grid; gap: 0; margin: 17px 0 0; padding: 0; border-top: 1px solid #efefed; list-style: none; }
.managed-list li { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f1ef; }
.managed-list li > span { min-width: 0; display: grid; }
.managed-list strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.managed-list small { overflow: hidden; color: #929496; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.delete-button { padding: 4px 7px; border: 0; border-radius: 4px; color: #a3493e; background: #fff3f1; font-size: 9px; }
.delete-button:hover { color: white; background: #bd5548; }
.managed-empty { margin: 14px 0 0; color: #909295; font-size: 10px; }
.upload-footnote { margin-top: 17px; color: #898c8e; font-size: 10px; }
.inline-form { margin: 0; }
.button-link { cursor: pointer; }
.login-panel { width: min(100%, 420px); margin: 26px auto; padding: 35px 38px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 12px 35px #20212409; }
.login-logo { width: 82px; height: 88px; display: block; margin-bottom: 18px; object-fit: contain; }
.login-panel h1 { margin: 6px 0 9px; font-family: Manrope, sans-serif; font-size: 37px; letter-spacing: -1.6px; line-height: 1.1; }
.login-panel > p { margin-bottom: 22px; color: #777a7d; font-size: 11px; line-height: 1.8; }
.login-form { margin-top: 20px; }
.login-form .button { margin-top: 4px; }
.setup-note { margin: 15px 0 0 !important; padding: 10px; border-radius: 5px; color: #815126 !important; background: #fff7ed; font-size: 10px !important; }
.back-link { display: inline-block; margin-top: 21px; color: #777a7d; font-size: 10px; }
.back-link:hover { color: var(--orange-dark); }

@media (max-width: 850px) {
    .welcome-panel { min-height: 330px; padding-left: 39px; }
    .welcome-art { right: -70px; opacity: .75; }
    .discipline-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 15px; }
    .content-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .site-header { height: 69px; padding: 0 18px; }
    .brand-logo { width: 32px; height: 35px; }
    .brand-copy strong { font-size: 12px; }
    .brand-copy small { font-size: 7px; }
    .top-nav { gap: 12px; }
    .top-nav > .nav-link { display: none; }
    .manager-link { padding: 9px 10px; font-size: 10px; }
    .page-shell { padding: 12px 17px 58px; }
    .welcome-panel { min-height: 345px; padding: 37px 25px; }
    .welcome-copy { max-width: 100%; }
    .welcome-copy h1 { font-size: 43px; }
    .welcome-copy p { max-width: 290px; font-size: 12px; }
    .welcome-art { right: -200px; opacity: .35; }
    .welcome-index { right: 18px; bottom: 16px; }
    .section-block { padding-top: 51px; }
    .section-heading h2 { font-size: 24px; }
    .discipline-layout { grid-template-columns: 1fr; }
    .discipline-sidebar { display: flex; gap: 5px; overflow-x: auto; padding: 10px; }
    .sidebar-label { display: none; }
    .discipline-option { min-width: 158px; min-height: 54px; }
    .discipline-option + .discipline-option { margin-top: 0; }
    .discipline-intro { padding: 16px; }
    .content-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card { min-height: auto; }
    .site-footer { align-items: flex-start; flex-wrap: wrap; padding: 17px; }
    .site-footer > span { display: none; }
    .manager-shell { padding: 26px 17px 55px; }
    .manager-heading { align-items: flex-start; flex-direction: column; }
    .manager-heading .button { min-height: 38px; }
    .manager-stats { grid-template-columns: 1fr 1fr; }
    .manager-stats > div { padding: 12px; }
    .manager-stats > div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
    .manager-stats > div:nth-child(4) { border-top: 1px solid var(--line); }
    .manager-grid { grid-template-columns: 1fr; }
    .manager-card { padding: 17px; }
    .login-panel { margin: 10px auto; padding: 27px 22px; }
}
