/* Shared blue visual system for the cross-disciplinary student portal. */
@font-face { font-family: 'Font Awesome 6 Free'; font-style: normal; font-weight: 900; font-display: block; src: url('/assets/fonts/fa-solid-900.woff2') format('woff2'); }
:root {
    --sidebar-width: 252px;
    --header-height: 80px;
    --thu-green: #123b70;
    --thu-green-2: #2059a3;
    --thu-gold: #3985dd;
    --thu-gold-soft: #eaf3ff;
    --focus: #2878d0;
    --canvas: #f3f6fb;
    --sidebar-bg: #102d52;
    --ink: #20354f;
    --muted: #5c6e84;
    --line: #dce5ef;
    --surface: #fff;
    --bs-primary: #205fba;
    --bs-link-color: #205fba;
}
html { scrollbar-color: #9eb3cc #f3f6fb; }
body { font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: #205fba; }
a:hover { color: #123b70; }
::selection { background: #c8e0ff; color: #102d52; }
input, textarea, select { caret-color: #205fba; }
.app-header { background: #fff; box-shadow: none; padding-inline: 26px; gap: 16px; }
.app-header__logo { width: auto; flex-shrink: 0; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: #205fba; flex-shrink: 0; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { display: flex; flex-direction: column; gap: 2px; }
.brand-name strong { font-size: 17px; font-weight: 750; letter-spacing: .035em; }
.brand-name small { font-size: 10px; letter-spacing: .12em; color: #5c6e84; font-weight: 500; }
.app-header .btn-outline-dark { border-color: var(--line); color: #365675; background: #fff; padding: 8px 14px; }
.app-header .dropdown { font-size: 13px; }
.app-header .dropdown a { text-decoration: none; font-weight: 650; }
.app-sidebar { scrollbar-width: thin; scrollbar-color: #47668b #102d52; border: 0; }
.app-sidebar__inner { padding: 12px 16px 28px; }
.app-sidebar__heading { color: #a9c2df; font-size: 11px; margin: 25px 0 10px; padding-left: 12px; letter-spacing: .12em; }
.vertical-nav-menu li a { color: #d4e2f3; min-height: 43px; padding: 10px 12px; font-size: 13px; border-radius: 7px; margin-block: 3px; font-weight: 400; }
.vertical-nav-menu .metismenu-icon { display: inline-block; font-size: 15px; width: 18px; margin-right: 12px; color: #92b8e5; }
.vertical-nav-menu li a.mm-active { background: #2b65ac; color: #fff; font-weight: 650; }
.vertical-nav-menu li a.mm-active .metismenu-icon { color: #fff; }
.vertical-nav-menu li a:not(.mm-active):hover { background: #1d416c; color: #fff; }
.app-main__outer { padding: 36px clamp(24px, 3vw, 50px) 52px; }
.app-main__inner { max-width: 1280px; }
.home-intro { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 198px; padding: 38px 40px; margin-bottom: 0; background: #173f75; color: #fff; border-radius: 16px 16px 0 0; overflow: hidden; }
.home-intro h1 { margin: 0 0 12px; color: #fff; font-size: clamp(25px, 2.6vw, 38px); font-weight: 750; letter-spacing: .025em; line-height: 1.4; }
.home-intro p { margin: 0; color: #d0e1f7; font-size: 14px; line-height: 1.8; }
.intro-action { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 11px 18px; background: #fff; color: #173f75; border-radius: 7px; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s, transform .2s; }
.intro-action:hover { background: #eaf3ff; color: #173f75; transform: translateY(-2px); }
.study-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 34px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; overflow: hidden; }
.study-shortcuts a { position: relative; padding: 24px 28px; text-decoration: none; transition: background .2s; }
.study-shortcuts a + a { border-left: 1px solid var(--line); }
.study-shortcuts a:hover { background: #eaf3ff; }
.study-shortcuts a > span:first-child { display: block; font-size: 18px; font-weight: 750; color: #173f75; }
.study-shortcuts small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.study-shortcuts a > span:last-child { position: absolute; right: 24px; top: 26px; color: #3478cb; transition: transform .2s; }
.study-shortcuts a:hover > span:last-child { transform: translate(2px,-2px); }
.bulletin-paper { background: #fff; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.bulletin-content { line-height: 1.95; overflow-wrap: anywhere; font-size: 14px; }
.bulletin-content > p:first-child { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); font-weight: 750; }
.bulletin-content > p:first-child font { font-size: 19px; color: #173f75; line-height: 1.65; }
.bulletin-content ul { padding-left: 20px; }
.bulletin-content li { margin-bottom: 14px; padding-left: 4px; }
.bulletin-content li::marker { color: #3478cb; }
.bulletin-section-title { margin: 30px 0 16px; padding: 12px 14px; background: #edf4fd; color: #173f75; font-weight: 700; scroll-margin-top: 104px; border-radius: 6px; font-size: 14px; line-height: 1.8; }
.bulletin-section-title font { color: inherit; }
.bulletin-section-title:target { outline: 2px solid #3985dd; outline-offset: 3px; }
.application-diagram { display: block; margin-top: 24px; text-decoration: none; }
.application-diagram img { width: 100%; max-width: 600px; height: auto; }
.application-diagram > span { display: block; margin-top: 12px; font-size: 13px; }
.page-title-icon { display: none; }
.page-title-heading { color: #173f75; }
.main-card.card, .app-main__inner > .card, .table-card-deck .card { box-shadow: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card-header { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 24px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.card-header-title { display: flex; gap: 12px; align-items: center; color: #173f75; }
.card-header-title > i { display: none; }
.card-header h5 { font-size: 21px; font-weight: 750; }
.card-header small { display: block; margin-top: 6px; }
.card-body { padding: 28px; overflow-wrap: anywhere; }
.card-body img { max-width: 100%; height: auto; }
.card-body h4 { color: #173f75; font-size: 21px; margin-bottom: 20px; }
.table { --bs-table-striped-bg: #f3f7fd; --bs-table-hover-bg: #eaf3ff; font-size: 14px; font-variant-numeric: tabular-nums; }
.table > :not(caption) > * > * { padding: 15px 12px; border-bottom-color: #e4ebf4; }
.table > thead th { color: #234e83; background: #edf4fd; border-bottom-color: #dce5ef; }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table-detail-view th { min-width: 110px; }
.nav-tabs { gap: 4px; border-bottom: 0; }
.nav-tabs .nav-link { color: #5c6e84; border: 0; border-radius: 6px; padding: 10px 14px; }
.nav-tabs .nav-link.active { color: #164d91; background: #eaf3ff; font-weight: 700; }
.nav-tabs .nav-link:hover { background: #f3f7fd; }
.btn-primary { --bs-btn-bg: #205fba; --bs-btn-border-color: #205fba; --bs-btn-hover-bg: #174d98; --bs-btn-hover-border-color: #174d98; --bs-btn-disabled-bg: #617b9e; --bs-btn-disabled-border-color: #617b9e; }
.btn-outline-primary { --bs-btn-color: #205fba; --bs-btn-border-color: #205fba; --bs-btn-hover-bg: #205fba; --bs-btn-hover-border-color: #205fba; }
.form-control, .form-select { border-color: #bfcee0; min-height: 44px; border-radius: 7px; }
.form-control:focus, .form-select:focus { border-color: #2878d0; box-shadow: 0 0 0 3px #dcecff; }
.form-control::placeholder { color: #62748a; opacity: 1; }
.app-main__inner { animation: blue-enter .45s cubic-bezier(.22,1,.36,1); }
@keyframes blue-enter { from { transform: translateY(8px); } to { transform: translateY(0); } }
@media (max-width: 1199px) {
    .home-intro { padding: 32px; }
    .study-shortcuts a { padding: 22px; }
    .study-shortcuts a > span:last-child { right: 16px; }
}
@media (max-width: 992px) {
    .app-main__outer { padding: 24px; }
    .app-sidebar { visibility: hidden; box-shadow: 16px 0 36px rgba(16,45,82,.2); }
    .app-sidebar.active { visibility: visible; }
    .sidebar-overlay { background: rgba(12,30,56,.5); }
    .sidebar-toggle { display: inline-flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; margin: 0; }
}
@media (max-width: 600px) {
    :root { --header-height: 72px; }
    .app-header { padding: 0 12px; gap: 8px; }
    .app-header__logo { flex-shrink: 1; min-width: 0; gap: 8px; }
    .brand-mark { width: 32px; height: 36px; border-radius: 8px; }
    .brand-mark svg { width: 23px; }
    .brand-name strong { font-size: 12px; letter-spacing: 0; white-space: nowrap; }
    .brand-name small { font-size: 8px; letter-spacing: .04em; }
    .app-header > .ms-auto { flex-shrink: 0; font-size: 11px; }
    .app-header .dropdown { font-size: 11px; white-space: nowrap; }
    .app-main__outer { padding: 20px 14px 32px; }
    .home-intro { align-items: flex-start; flex-direction: column; gap: 24px; min-height: auto; padding: 28px 24px; border-radius: 12px 12px 0 0; }
    .home-intro h1 { font-size: 27px; margin-bottom: 10px; }
    .home-intro p { font-size: 13px; max-width: 24ch; }
    .intro-action { min-height: 44px; padding: 10px 16px; }
    .study-shortcuts { margin-bottom: 26px; border-radius: 0 0 12px 12px; }
    .study-shortcuts a { padding: 18px 12px; min-width: 0; }
    .study-shortcuts a > span:first-child { font-size: 15px; }
    .study-shortcuts small { font-size: 11px; max-width: 7em; line-height: 1.7; }
    .study-shortcuts a > span:last-child { display: none; }
    .bulletin-paper { padding: 22px 18px; }
    .bulletin-content { font-size: 14px; }
    .bulletin-content > p:first-child font { font-size: 18px; }
    .card-header, .card-body { padding: 20px 16px; }
    .card-header { gap: 16px; }
    .card-header h5 { font-size: 19px; }
    .nav-tabs { gap: 4px; }
    .nav-tabs .nav-link { font-size: 13px; padding: 10px; }
    .table { font-size: 13px; }
    .table > :not(caption) > * > * { padding: 12px 8px; }
    .course-directory, .course-directory tbody { display: block; }
    .course-directory tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .course-directory td { display: block; overflow-wrap: anywhere; }
    .course-directory a { display: flex; align-items: center; min-height: 44px; }
    .table-scroll { overflow-x: auto; max-width: 100%; }
    .table-scroll > table { min-width: 560px; }
    .table-scroll:focus-visible { outline-offset: -3px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Curriculum: one clear year control and a quiet reading surface. */
.curriculum-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.curriculum-heading h4 { margin: 0 0 8px; font-size: clamp(21px, 2.4vw, 26px); font-weight: 750; line-height: 1.5; }
.curriculum-heading p { margin: 0; font-size: 13px; color: var(--muted); }
.curriculum-year { flex: 0 0 174px; }
.curriculum-year label { display: block; margin-bottom: 7px; color: #4d6480; font-size: 12px; font-weight: 650; }
.curriculum-year .form-select { font-size: 14px; font-weight: 650; color: #173f75; background-color: #fff; }
.curriculum-year-fallback { display: flex; flex-wrap: wrap; gap: 8px; }
.curriculum-context { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); color: #536b87; font-size: 13px; }
.curriculum-context > i { color: #3478cb; }
.curriculum-context strong { font-weight: 650; color: #234e83; }
.curriculum-history { background: #eaf3ff; border-radius: 5px; padding: 4px 9px; color: #234e83; }
.curriculum-note { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px; background: #f1f6fc; border-radius: 8px; color: #36516e; font-size: 13px; line-height: 1.85; margin-bottom: 24px; }
.curriculum-note > i { margin-top: 5px; color: #3478cb; font-size: 16px; flex-shrink: 0; }
.curriculum-note h5 { color: #234e83; font-size: 14px; font-weight: 750; margin: 0 0 6px; }
.curriculum-note p { margin: 0; }
.curriculum-department-note { display: block; background: #f8fafc; }
.curriculum-department-note > :last-child { margin-bottom: 0; }
.curriculum-table { width: 100%; margin-bottom: 0; }
.curriculum-table thead th { white-space: nowrap; font-size: 12px; padding-block: 14px; }
.curriculum-table th:first-child { width: 76px; }
.curriculum-table th:nth-child(2) { width: 112px; }
.curriculum-table th:nth-child(4) { width: 76px; text-align: center; }
.curriculum-table td:nth-child(4) { text-align: center; }
.curriculum-table td:first-child, .curriculum-table td:nth-child(2) { white-space: nowrap; }
.curriculum-table td:nth-child(3) { min-width: 160px; font-weight: 550; }
.curriculum-table td:last-child { color: #536b87; font-size: 13px; }
.curriculum-table th:last-child { width: 28%; }
.curriculum-table a { font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 600px) {
    .curriculum-toolbar { flex-direction: column; align-items: stretch; gap: 18px; }
    .curriculum-year { flex-basis: auto; }
    .curriculum-year .form-select { width: 100%; min-height: 46px; }
    .curriculum-context { margin-bottom: 18px; padding-bottom: 18px; font-size: 12px; }
    .curriculum-note { padding: 16px; gap: 10px; font-size: 13px; line-height: 1.85; }
    .table-scroll > .curriculum-table { min-width: 660px; }
}

/* The category, page list and reading area share the same workspace. */
:root { --workspace-category-width: 182px; --workspace-list-width: clamp(198px, 19vw, 266px); }
.app-main {
    display: grid;
    grid-template-columns: var(--workspace-category-width) var(--workspace-list-width) minmax(0, 1fr);
    align-items: start;
}
.app-sidebar {
    grid-column: 1;
    width: var(--workspace-category-width);
    height: calc(100dvh - var(--header-height));
}
.workspace-category-title { margin: 14px 12px 20px; color: #fff; font-size: 15px; font-weight: 700; }
.workspace-category-links { margin-top: 24px; border-top: 1px solid #47668b; padding: 16px 12px; }
.workspace-category-links a { color: #d4e2f3; font-size: 13px; }
.workspace-category-links i { margin-inline-start: 4px; font-size: 10px; }
.workspace-list {
    grid-column: 2;
    position: sticky;
    top: var(--header-height);
    height: calc(100dvh - var(--header-height));
    overflow: auto;
    background: #fff;
    border-inline-end: 1px solid var(--line);
}
.workspace-list summary { display: none; }
.workspace-list h2 { margin: 0; padding: 25px 19px 18px; color: var(--thu-green); font-size: 16px; font-weight: 750; }
.workspace-list ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.workspace-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    overflow-wrap: anywhere;
    transition: background-color .18s, color .18s;
}
.workspace-list li a:hover { background: #f3f6fb; }
.workspace-list li a[aria-current] { background: var(--thu-gold-soft); color: var(--thu-green); font-weight: 750; }
.workspace-list li a:focus-visible { outline-offset: -3px; }
.workspace-list li i { font-size: 10px; color: var(--thu-green-2); }
.app-main__outer { grid-column: 3; margin: 0; padding: clamp(20px, 3vw, 44px); }
.workspace-page-title { margin: 0; color: var(--thu-green); font-size: clamp(22px, 2.5vw, 32px); font-weight: 750; overflow-wrap: anywhere; }
.app-main__inner img { max-width: 100%; height: auto; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: -3px; }
.workspace-outline { padding: 0 0 14px; color: var(--thu-green); }
.workspace-outline summary { cursor: pointer; min-height: 44px; padding-block: 9px; font-weight: 650; }
.workspace-outline #bulletin-links { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-block: 6px; }
.workspace-outline a { font-size: 13px; }
@media (min-width: 860px) {
    .app-sidebar { grid-row: 1; visibility: visible; transform: none; box-shadow: none; }
    .app-sidebar__inner { padding-inline: 10px; }
    .app-sidebar .metismenu-icon { margin-inline-end: 7px; }
    .sidebar-toggle { display: none !important; }
}
@media (min-width: 860px) and (max-width: 992px) {
    .app-main__outer { padding-inline: 18px; }
    .home-intro { padding-inline: 22px; align-items: flex-start; flex-direction: column; }
    .study-shortcuts a { padding-inline: 12px; }
    .study-shortcuts a > span:last-child { display: none; }
}
@media (max-width: 859px) {
    .app-main { grid-template-columns: var(--workspace-list-width) minmax(0, 1fr); }
    .app-sidebar { width: min(82vw, 252px); }
    .workspace-list { grid-column: 1; }
    .app-main__outer { grid-column: 2; }
}
@media (max-width: 680px) {
    .app-main { grid-template-columns: minmax(0, 1fr); }
    .workspace-list { grid-column: 1; position: static; height: auto; border: 0; border-bottom: 1px solid var(--line); }
    .workspace-list summary { display: list-item; padding: 12px 18px; min-height: 44px; cursor: pointer; color: var(--thu-green); font-weight: 650; }
    .workspace-list h2 { display: none; }
    .workspace-list li a { min-height: 46px; }
    .app-main__outer { grid-column: 1; }
}

.application-panel { color: var(--ink); }
.application-panel h5 {
    margin: 22px 0 8px;
    color: var(--thu-green);
    font-size: 16px;
    font-weight: 700;
}
.application-panel ol { padding-inline-start: 1.5em; }
.application-panel li + li { margin-top: 4px; }
.application-guidelines { line-height: 1.8; }
.application-notice {
    margin-block: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--thu-gold-soft);
    color: var(--thu-green);
}
.application-notice > :last-child { margin-bottom: 0; }
.application-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.application-status {
    flex-basis: 100%;
    margin: 0 0 4px;
    color: var(--muted);
    font-weight: 650;
}
.application-status--blocked { color: #8d3546; }
.application-actions .btn { padding: 8px 12px; }
@media (max-width: 480px) {
    .application-actions .btn { width: 100%; }
}

.directory-search { margin-bottom: 16px; }
.directory-search label {
    display: block;
    margin-bottom: 6px;
    color: var(--thu-green);
    font-weight: 700;
}
.directory-search-controls { display: flex; gap: 8px; max-width: 460px; }
.directory-search-controls input { min-width: 0; }
.directory-search-controls button { flex-shrink: 0; }
.directory-count {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.directory-results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}
.directory-results li { border-bottom: 1px solid var(--line); }
.directory-results a {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 46px;
    padding: 10px;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.directory-results a:hover { background: var(--thu-gold-soft); text-decoration: underline; }
.directory-results a:focus-visible { outline-offset: -3px; }
@media (max-width: 1100px) {
    .directory-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
    .directory-results { grid-template-columns: minmax(0, 1fr); }
}

.wish-list { max-width: 700px; }
.wish-item { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.wish-badge {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #173f75;
    background: #eaf3ff;
    font-weight: 700;
    flex-shrink: 0;
}
.wish-name { flex: 1 1 160px; color: var(--ink); font-weight: 650; }
.wish-controls { display: inline-flex; gap: 6px; margin-left: auto; }
.wish-controls .btn { min-height: 40px; padding: 5px 10px; }
.wish-feedback { color: var(--muted); margin: 8px 0 0; }
.wish-feedback:empty { display: none; }
#wishSaveMsg { display: inline-block; margin-top: 8px; }

.wish-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px 26px;
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.wish-entry h2, .wish-empty h2, .wish-list-title {
    margin: 0 0 6px;
    color: var(--thu-green);
    font-size: 18px;
    font-weight: 700;
}
.wish-entry p, .wish-page-intro, .wish-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.wish-page-intro { margin-top: 8px; }
.wish-empty p { margin: 10px 0 20px; }

/* Application document upload */
.upload-page-header { margin: 0 0 28px; }
.upload-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; font-weight: 650; text-decoration: none; }
.upload-back:hover { text-decoration: underline; }
.upload-page-header h1 { margin: 0 0 8px; color: var(--thu-green); font-size: clamp(25px, 2.6vw, 32px); font-weight: 750; }
.upload-page-header p { margin: 0; color: var(--muted); }
.upload-intro { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.upload-intro h2, .upload-unavailable h2 { margin: 0 0 8px; color: var(--thu-green); font-size: 20px; font-weight: 700; }
.upload-intro p, .upload-unavailable p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.upload-list { margin-top: 4px; }
.upload-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.upload-item-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.upload-item-heading h3 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.upload-state { flex-shrink: 0; padding: 4px 9px; border-radius: 5px; background: #f1f4f8; color: #53667d; font-size: 12px; font-weight: 650; }
.upload-state.is-complete { background: #eaf3ff; color: #205fba; }
.upload-form label { display: block; margin-bottom: 8px; color: #53667d; font-size: 13px; font-weight: 650; }
.upload-form-controls, .upload-item-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.upload-form-controls input { flex: 1 1 250px; max-width: 480px; }
.upload-form-controls .btn, .upload-item-actions .btn { min-height: 44px; }
.upload-delete { border: 1px solid #d8b7c0; color: #8d3546; background: #fff; }
.upload-delete:hover { border-color: #8d3546; color: #fff; background: #8d3546; }
.upload-footer { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding: 16px; border-radius: 8px; background: #edf4fd; color: #365675; font-size: 13px; }
.upload-footer i { margin-top: 4px; color: #205fba; }
.upload-footer p { margin: 0; line-height: 1.8; }
.upload-unavailable { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.upload-unavailable .btn { margin-top: 20px; }
@media (max-width: 600px) {
    .upload-page-header { margin-bottom: 20px; }
    .upload-item-heading { flex-wrap: wrap; }
    .upload-form-controls { align-items: stretch; flex-direction: column; }
    .upload-form-controls input { flex: auto; max-width: none; width: 100%; }
    .upload-form-controls .btn { width: 100%; }
}
.upload-message { margin: 8px 0 0; color: #8d3546; font-size: 13px; }
.upload-message:empty { display: none; }
