.tun-sp {
    --sp-ink: #101d52;
    --sp-muted: #495978;
    --sp-link: #2449b5;
    --sp-line: #dae3f2;
    --sp-surface: #f2f6fc;
    --sp-white: #fff;
    --sp-focus: #3158ce;
    --sp-fade: linear-gradient(90deg, #df82f6, #7747f5 55%, #04b3e2);
    width: 100%;
    max-width: 1184px;
    margin: 28px auto 64px;
    color: var(--sp-ink);
    font: 1rem/1.65 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

.tun-sp *, .tun-sp *::before, .tun-sp *::after { box-sizing: border-box; }
.tun-sp ::selection { background: #dbdfff; color: var(--sp-ink); }
.tun-sp :is(h1, h2, h3, p, form) { margin: 0; }
.tun-sp :is(h1, h2, h3) { color: var(--sp-ink); font-family: inherit; line-height: 1.23; text-wrap: balance; }
.tun-sp :is(h1, h2) { font-size: 2.25rem; font-weight: 850; letter-spacing: -.025em; }
.tun-sp h3 { font-size: 1.3rem; font-weight: 800; }
.tun-sp a { color: var(--sp-link); text-underline-offset: .18em; }
.tun-sp :focus-visible { outline: 3px solid var(--sp-focus); outline-offset: 3px; }
.tun-sp svg { flex: none; }

.tun-sp__masthead, .tun-sp__account, .tun-sp__header, .tun-sp__section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tun-sp__masthead { min-height: 54px; margin-bottom: 25px; }
.tun-sp__workspace {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: start;
    gap: 25px;
}
.tun-sp__sidebar {
    position: sticky;
    top: 16px;
    padding: 14px;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    background: #edf3fb;
}
.tun-sp__sidebar p { margin: 2px 7px 10px; color: var(--sp-muted); font-size: .8125rem; font-weight: 750; }
.tun-sp__sidebar nav { display: grid; gap: 5px; }
.tun-sp__sidebar a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px;
    border-radius: 8px;
    color: var(--sp-ink);
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
}
.tun-sp__sidebar a:hover { background: #fff; }
.tun-sp__sidebar a[aria-current=page] { background: #dce8ff; color: #19388d; }
.tun-sp__work-area { min-width: 0; }
.tun-sp__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.tun-sp__stats a {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--sp-line);
    border-radius: 12px;
    background: var(--sp-white);
    color: var(--sp-ink);
    text-decoration: none;
}
.tun-sp__stats a:hover { border-color: #869dd4; }
.tun-sp__stats a[aria-current=page] { border-color: #839de0; background: #eaf1ff; }
.tun-sp__stat-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; background: #e4edfb; color: var(--sp-link); }
.tun-sp__stat-label { display: block; color: var(--sp-muted); font-size: .8125rem; font-weight: 700; }
.tun-sp__stats strong { display: block; font-size: 1.625rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.tun-sp__workspace-header {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 18px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sp-line);
}
.tun-sp__workspace-header p { margin: 4px 0; color: var(--sp-muted); font-size: .9rem; overflow-wrap: anywhere; }
.tun-sp__workspace-header :is(h1, h2) { margin-top: 5px; }
.tun-sp__role {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 8px;
    background: #e7eeff;
    color: #19388d;
    font-size: .875rem;
    font-weight: 750;
}
.tun-sp .tun-sp__scope-switch { display: flex; align-items: end; gap: 10px; margin: 14px 0; }
.tun-sp__scope-switch label { min-width: 0; }
.tun-sp .tun-sp__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid var(--sp-line);
    border-radius: 12px;
    background: var(--sp-white);
}
.tun-sp .tun-sp__lookup + .tun-sp__filters { margin-top: 18px; }
.tun-sp__filters label { flex: 1 1 128px; }
.tun-sp__filter-actions { display: flex; align-items: center; gap: 10px; }
.tun-sp__filter-actions a { font-size: .875rem; white-space: nowrap; }
.tun-sp__workspace .tun-sp__section-title h3 { display: flex; align-items: center; gap: 8px; }
.tun-sp__onboard { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.75fr); gap: 24px; align-items: start; }
.tun-sp__onboard-intro { padding: 23px; border-radius: 14px; background: #eaf2ff; }
.tun-sp__onboard-intro > a { font-size: .875rem; }
.tun-sp__onboard-symbol { display: grid; width: 40px; height: 40px; place-items: center; margin: 18px 0 12px; border-radius: 9px; background: #dce8ff; color: #19388d; }
.tun-sp__onboard-intro p { margin-top: 10px; color: var(--sp-muted); }
.tun-sp__steps { display: grid; gap: 8px; padding-inline-start: 23px; margin: 22px 0 6px; font-size: .9375rem; color: var(--sp-muted); }
.tun-sp__steps [aria-current=step] { color: #19388d; font-weight: 800; }
.tun-sp .tun-sp__join-panel { margin-top: 0; }
.tun-sp__join-panel > h3 { margin-bottom: 16px; }
.tun-sp .tun-sp__join-link { margin: 15px 0 0; }
.tun-sp__join-results { margin-top: 14px; }
.tun-sp__join-wide { grid-column: 1 / -1; }
.tun-sp__join-panel .tun-sp__fields > .tun-sp__hint { align-self: end; }
.tun-sp__join-panel .tun-sp__checks + .tun-sp__checks { margin-top: 8px; }
.tun-sp .tun-sp__verify { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tun-sp__verify input { width: 17px; height: 17px; accent-color: var(--sp-focus); }
.tun-sp__review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tun-sp__brand { display: block; width: 190px; height: auto; }
.tun-sp__account { color: var(--sp-muted); font-size: .875rem; }
.tun-sp__account span { overflow-wrap: anywhere; text-align: end; }
.tun-sp__account button { white-space: nowrap; }

.tun-sp__welcome {
    display: grid;
    grid-template-columns: 1.28fr 1fr;
    grid-template-rows: auto minmax(255px, 1fr);
    border-radius: 16px;
    overflow: clip;
    background: #e9f3fd;
    box-shadow: 0 16px 42px #253d6d16;
}

.tun-sp__welcome-copy { padding: 46px 48px 26px; }
.tun-sp__welcome-copy :is(h1, h2) { font-size: 3.55rem; font-weight: 900; letter-spacing: -.035em; }
.tun-sp__welcome-copy :is(h1, h2)::after {
    content: "";
    display: block;
    width: 148px;
    height: 4px;
    margin-top: 16px;
    border-radius: 4px;
    background: var(--sp-fade);
}
.tun-sp__welcome-copy p { margin-top: 15px; color: #354e7c; font-weight: 550; }
.tun-sp__campus { position: relative; min-width: 0; }
.tun-sp__campus img { position: absolute; inset: 0; display: block; height: 100%; width: 100%; object-fit: cover; object-position: 84% 48%; }
.tun-sp__login {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    align-content: center;
    min-width: 0;
    padding: 50px;
    background: var(--sp-white);
}
.tun-sp__login :is(h2, h3) { margin-bottom: 8px; font-size: 1.8rem; }
.tun-sp__login p { margin-bottom: 24px; color: var(--sp-muted); font-size: .9375rem; }
.tun-sp__login label + label { margin-top: 16px; }
.tun-sp__login button {
    justify-content: space-between;
    width: 100%;
    margin-top: 24px;
    background: linear-gradient(104deg, #164dc0, #5541c6 72%, #7344b4);
}

.tun-sp__header {
    flex-wrap: wrap;
    padding: 28px 32px;
    border-radius: 16px;
    background: #e9f3fd;
}
.tun-sp__header p { margin-top: 7px; color: var(--sp-muted); }
.tun-sp__school-code { border-radius: 8px; padding: 7px 12px; color: #284677; background: #fff; font-size: .875rem; }
.tun-sp__school-code strong { margin-inline-start: 6px; font-variant-numeric: tabular-nums; }
.tun-sp__guard, .tun-sp__notice {
    margin: 16px 0;
    padding: 11px 15px;
    border: 1px solid #dbe5f4;
    border-radius: 10px;
    color: #344d75;
    background: #f7faff;
    font-size: .875rem;
}
.tun-sp__notice { background: #e9f7f1; border-color: #c7e7d8; color: #235d4a; }
.tun-sp__notice.is-error { background: #fff0f1; border-color: #f3cbd1; color: #8d2941; }

.tun-sp__catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tun-sp__category, .tun-sp__panel {
    min-width: 0;
    background: var(--sp-white);
    border: 1px solid var(--sp-line);
    border-radius: 14px;
}
.tun-sp__category { overflow: clip; }
.tun-sp__section-title { padding: 12px 18px; min-height: 64px; background: var(--sp-tint, #edf1ff); }
.tun-sp__category--college { --sp-tint: #e8f6fc; }
.tun-sp__category--department { --sp-tint: #e8f7f1; }
.tun-sp__category--graduate { --sp-tint: #f1ebfd; }
.tun-sp__category > p { padding: 14px 18px; color: var(--sp-muted); font-size: .9rem; }

.tun-sp__list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 59px;
    padding: 10px 18px;
    color: var(--sp-ink);
    text-decoration: none;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.tun-sp__list a + a { border-top: 1px solid var(--sp-line); }
.tun-sp__list a:hover { background: var(--sp-surface); color: var(--sp-link); }
.tun-sp__list a:focus-visible { outline-offset: -4px; }
.tun-sp__list small { color: var(--sp-muted); font-size: .8125rem; font-weight: 550; }
.tun-sp__list svg { color: var(--sp-link); }
.tun-sp__catalog > .tun-sp__category:only-child { grid-column: 1 / -1; }
.tun-sp__academy-layout { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 4fr); gap: 16px; align-items: start; }
.tun-sp__academy-picker { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--sp-line); border-radius: 12px; background: var(--sp-surface); }
.tun-sp__academy-picker a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px 9px; border-radius: 8px; font-size: .875rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.tun-sp__academy-picker a:hover { background: var(--sp-white); }
.tun-sp__academy-picker a[aria-current] { background: #dce8ff; color: #19388d; }
.tun-sp__academy-picker .tun-sp__academy-add { margin-top: 5px; border-top: 1px solid var(--sp-line); }
.tun-sp__academy-programs { min-width: 0; }
.tun-sp__academy-heading { flex-wrap: wrap; margin: 0 0 12px; }
.tun-sp__media-tools svg, .tun-sp__category .tun-sp__button-link svg { width: 16px; height: 16px; }
.tun-sp__field-value { display: block; font-weight: 500; }

.tun-sp__activity { margin-top: 32px; }
.tun-sp__activity h3 { margin-bottom: 12px; }
.tun-sp__table { overflow-x: auto; border: 1px solid var(--sp-line); border-radius: 14px; background: var(--sp-white); }
.tun-sp__table table { border-collapse: collapse; width: 100%; min-width: 545px; font-size: .875rem; font-variant-numeric: tabular-nums; }
.tun-sp__table th, .tun-sp__table td { padding: 12px 15px; text-align: start; }
.tun-sp__table th { color: var(--sp-muted); background: var(--sp-surface); }
.tun-sp__table td { border-top: 1px solid var(--sp-line); }
.tun-sp__status { display: inline-block; padding: 3px 9px; border-radius: 8px; color: #344d75; background: #edf2fb; font-weight: 700; }
.tun-sp__status--changes_requested { color: #7b4517; background: #fff1de; }
.tun-sp__status--rejected { color: #89273f; background: #fcebf0; }
.tun-sp__status--approved_pending_publish { color: #215d45; background: #e6f5ec; }

.tun-sp__panel { margin-top: 14px; padding: 26px; }
.tun-sp__panel > h3 { font-size: 1.65rem; overflow-wrap: anywhere; }
.tun-sp__panel > p { margin: 8px 0 18px; color: var(--sp-muted); overflow-wrap: anywhere; }
.tun-sp__panel code { color: inherit; }
.tun-sp__fieldset, .tun-sp__check-field { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.tun-sp__fieldset { margin-bottom: 23px; }
.tun-sp__fieldset > legend {
    width: 100%;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 8px;
    background: var(--sp-surface);
    font-weight: 750;
}
.tun-sp__fields, .tun-sp__checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.tun-sp__check-field, .tun-sp__name-field { grid-column: 1 / -1; }
.tun-sp__name-field input { max-width: 36rem; }
.tun-sp__check-field legend { padding: 0; margin-bottom: 8px; font-size: .9375rem; font-weight: 700; }
.tun-sp__checks { grid-template-columns: repeat(auto-fit, minmax(min(100%, 146px), 1fr)); gap: 7px; }
.tun-sp label { display: block; min-width: 0; color: var(--sp-ink); font-size: .9375rem; font-weight: 700; }
.tun-sp__checks label { display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--sp-line); border-radius: 8px; font-weight: 550; }
.tun-sp__checks input { width: 17px; height: 17px; margin: 0; accent-color: var(--sp-link); }
.tun-sp :is(input:not([type=checkbox], [type=hidden], [hidden]), textarea, select) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #a7b7d1;
    border-radius: 9px;
    color: var(--sp-ink);
    background: #f8faff;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    caret-color: var(--sp-link);
}
.tun-sp input::placeholder, .tun-sp textarea::placeholder { color: #5c6c86; }
.tun-sp textarea { resize: vertical; }
.tun-sp :is(button, .tun-sp__button-link) {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--sp-white);
    background-color: #2449b5;
    font: inherit;
    font-size: .875rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}
.tun-sp .tun-sp__login button { justify-content: space-between; }
.tun-sp button:hover { filter: brightness(.91); }
.tun-sp button:disabled { opacity: .55; cursor: default; }
.tun-sp :is(button.is-secondary, .tun-sp__button-link) { color: var(--sp-ink); background: #fff; border-color: #bdcbe2; }
.tun-sp .tun-sp__button-link:hover { background: var(--sp-surface); }
.tun-sp__editor-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.tun-sp__editor-heading--focused { justify-content: flex-end; }
.tun-sp__editor-heading:empty { display: none; }
.tun-sp__public-link { flex: none; }
.tun-sp__public-link svg { width: 16px; height: 16px; }
.tun-sp .tun-sp__submit { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sp-line); }

.tun-sp-admin-surface, .tun-sp-school-surface { margin: 0; background: #f5f8fd; }
.tun-sp-admin-surface:has(> .tun-sp--admin-login) { background: #f2edf7; }
.tun-sp--admin-login {
    --sp-focus: #6949a0;
    --sp-fade: linear-gradient(90deg, #eebf99, #b995f0);
}
.tun-sp--admin-login .tun-sp__welcome {
    background: #2e2348;
    box-shadow: 0 18px 44px #35235026;
}
.tun-sp--admin-login .tun-sp__welcome-copy h1 { color: #fff8ff; }
.tun-sp--admin-login .tun-sp__welcome-copy p { color: #e3d5ee; }
.tun-sp--admin-login .tun-sp__campus { background: #302339; }
.tun-sp--admin-login .tun-sp__campus img { object-position: center; }
.tun-sp--admin-login .tun-sp__login { background: #fffbff; }
.tun-sp.tun-sp--admin-login .tun-sp__login button { background: #503776; }
.tun-sp.tun-sp--admin-login .tun-sp__login button:hover { background: #3f295f; }
.tun-sp--admin, .tun-sp--school { width: min(calc(100% - 48px), 1184px); }
.tun-sp__account-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; white-space: nowrap; }
.tun-sp__account-link svg { width: 17px; height: 17px; }
.tun-sp__unit-header, .tun-sp__unit-identity, .tun-sp__school-profile { display: flex; align-items: center; gap: 16px; }
.tun-sp__unit-header, .tun-sp__school-profile { justify-content: space-between; flex-wrap: wrap; }
.tun-sp__unit-header { padding: 8px 0 20px; }
.tun-sp__unit-identity { min-width: 0; }
.tun-sp__unit-symbol { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: #e4edff; color: var(--sp-link); }
.tun-sp__unit-symbol svg { width: 25px; height: 25px; }
.tun-sp__unit-identity h1 { font-size: 1.75rem; overflow-wrap: anywhere; text-wrap: initial; }
.tun-sp__unit-identity .tun-sp__unit-school { margin-bottom: 4px; color: var(--sp-link); font-size: 1.2rem; font-weight: 800; line-height: 1.35; }
.tun-sp__unit-identity .tun-sp__unit-college { margin-top: 5px; color: var(--sp-muted); font-size: .9rem; }
.tun-sp__unit-school, .tun-sp__unit-college { overflow-wrap: anywhere; }
.tun-sp__unit-header .tun-sp__role { flex: none; }
.tun-sp__unit-editor { padding: 24px; border: 1px solid var(--sp-line); border-radius: 14px; background: var(--sp-white); }
.tun-sp__unit-editor > p { margin-bottom: 15px; color: var(--sp-muted); }
.tun-sp__editor-fields .tun-sp__checks label:has(input:checked) { border-color: #8fa7dd; background: #eaf1ff; }
.tun-sp__editor-fields #tun-sp-section-intro .tun-sp__fields { grid-template-columns: minmax(0, 1fr); }
.tun-sp__editor-fields #tun-sp-section-intro textarea { min-height: 130px; }
.tun-sp .tun-sp__unit-application { margin-top: 18px; }
.tun-sp__optional { color: var(--sp-muted); font-size: .8125rem; font-weight: 500; }
.tun-sp__school-profile { margin-bottom: 26px; }
.tun-sp__school-profile h2, .tun-sp .tun-sp__catalog-title { font-size: 1.3rem; }
.tun-sp .tun-sp__catalog-title { margin: 0 0 12px; }
.tun-sp__password { width: min(100%, 490px); margin-inline: auto; }
.tun-sp__password h1 { margin: 12px 0 0; font-size: 1.6rem; }
.tun-sp__password form { display: grid; gap: 16px; }
.tun-sp__password form button { justify-self: start; }
.tun-sp__tabs, .tun-sp__editor-nav { display: flex; gap: 7px; flex-wrap: wrap; margin: 18px 0; }
.tun-sp__tabs a, .tun-sp__editor-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-radius: 9px;
    padding: 7px 14px;
    color: var(--sp-ink);
    font-size: .875rem;
    font-weight: 750;
    text-decoration: none;
}
.tun-sp__tabs a:hover, .tun-sp__editor-nav a:hover { background: #e7effb; }
.tun-sp__tabs a[aria-current=page] { background: #dce8fc; color: #19388d; }
.tun-sp__editor-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; margin: 16px 0; }
.tun-sp__editor-nav { display: grid; position: sticky; top: 16px; gap: 4px; margin: 0; padding: 8px; border: 1px solid var(--sp-line); border-radius: 10px; background: var(--sp-surface); }
.tun-sp__editor-nav a { gap: 7px; color: var(--sp-link); padding-inline: 8px; }
.tun-sp__editor-nav a[aria-current="location"] { background: #dce8fc; }
.tun-sp__editor-nav svg { width: 16px; height: 16px; }
.tun-sp__editor-layout.has-sidebar-navigation { display: block; }
.tun-sp__sidebar .tun-sp__editor-nav-heading { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--sp-line); }
.tun-sp__sidebar .tun-sp__editor-nav { position: static; padding: 0; border: 0; background: transparent; }
.tun-sp__fieldset { scroll-margin-top: 20px; }
.tun-sp__fieldset:target > legend { background: #e1ebff; }
.tun-sp__work-heading { display: flex; align-items: center; gap: 12px; }
.tun-sp__work-heading h2, .tun-sp--admin .tun-sp__panel h2 { font-size: 1.5rem; }
.tun-sp__empty { padding-block: 38px; }
.tun-sp__empty p { margin-bottom: 0; }
.tun-sp__review .tun-sp__section-title { min-height: 0; padding: 0; background: none; }
.tun-sp__review summary { color: var(--sp-link); font-weight: 700; cursor: pointer; }
.tun-sp__review-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 0; }
.tun-sp__review-fields > div { min-width: 0; padding: 10px 0; border-top: 1px solid var(--sp-line); overflow-wrap: anywhere; }
.tun-sp__review-fields dt { font-size: .875rem; font-weight: 750; }
.tun-sp__review-fields dd { margin: 0; color: var(--sp-muted); white-space: pre-wrap; }
.tun-sp .tun-sp__admin-form { margin-top: 18px; }
.tun-sp__lookup { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.tun-sp__lookup label { width: min(100%, 25rem); }
.tun-sp__school-matches { margin-top: 18px; }
.tun-sp__checks label:has(input:disabled) { color: var(--sp-muted); background: var(--sp-surface); }
.tun-sp__class-extra { margin-top: 12px; }
.tun-sp__class-extra summary { margin-bottom: 7px; color: var(--sp-link); font-size: .875rem; font-weight: 700; cursor: pointer; }
.tun-sp__class-extra p { margin-bottom: 7px; color: var(--sp-muted); font-size: .875rem; }
.tun-sp__edit-catalog { margin-top: 18px; }
.tun-sp__admin-table td:first-child { overflow-wrap: anywhere; }
.tun-sp__account-edit { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
.tun-sp__form-actions { margin-top: 18px; }
.tun-sp__save-bar {
    position: sticky;
    bottom: 10px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #e9f1fc;
}
.tun-sp__save-bar [data-editor-state] { color: var(--sp-muted); font-size: .8125rem; }
.tun-sp__save-bar [data-editor-state=dirty] { color: #714619; font-weight: 700; }
.tun-sp__save-bar button { flex: none; }
.tun-sp__hint { display: block; color: var(--sp-muted); font-size: .8125rem; font-weight: 500; }
.tun-sp__record-form .tun-sp__hint { margin-bottom: 8px; }
.tun-sp__media-field { min-inline-size: 0; grid-column: 1 / -1; margin: 0; padding: 0; border: 0; }
.tun-sp__media-field + .tun-sp__media-field { margin-top: 10px; }
.tun-sp__media-field legend { padding: 0; font-weight: 750; }
.tun-sp__media-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
.tun-sp__record-form .tun-sp__media-tools .tun-sp__hint { margin: 0; }
.tun-sp__image-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr)); gap: 10px; }
.tun-sp__image-list figure { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--sp-line); border-radius: 10px; background: var(--sp-surface); }
.tun-sp__image-list img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sp-surface); }
.tun-sp [data-image-field=school_logo] .tun-sp__image-list,
.tun-sp .tun-sp__logo-previews { grid-template-columns: minmax(0, 180px); }
.tun-sp :is([data-image-field=school_logo], .tun-sp__logo-previews) img {
    aspect-ratio: 1;
    object-fit: contain;
    padding: 14px;
    background: var(--sp-white);
}
.tun-sp__image-list figcaption { padding: 6px; }
.tun-sp__image-list button { width: 100%; }
.tun-sp__video-list { display: grid; gap: 7px; }
.tun-sp__video-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.tun-sp__video-row input[type=url] { margin: 0; }

@media (max-width: 940px) {
    .tun-sp__workspace { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .tun-sp__sidebar { position: static; padding: 8px; }
    .tun-sp__sidebar p { margin-bottom: 4px; }
    .tun-sp__sidebar nav { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
    .tun-sp__welcome-copy { padding: 34px 30px 22px; }
    .tun-sp__welcome-copy :is(h1, h2) { font-size: 3rem; }
    .tun-sp__login { padding: 34px; }
}

@media (max-width: 1050px) and (min-width: 941px), (max-width: 680px) {
    .tun-sp__editor-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .tun-sp__editor-nav { display: flex; position: static; flex-wrap: wrap; }
}

@media (max-width: 650px) {
    .tun-sp__academy-layout { grid-template-columns: minmax(0, 1fr); }
    .tun-sp__academy-picker { display: flex; overflow-x: auto; }
    .tun-sp__academy-picker a { flex: none; white-space: nowrap; }
    .tun-sp__academy-picker .tun-sp__academy-add { margin-top: 0; border-top: 0; }
    .tun-sp__workspace:has(.tun-sp__unit-header) > .tun-sp__work-area { display: contents; }
    .tun-sp__unit-header { grid-row: 1; padding-bottom: 0; }
    .tun-sp__workspace-header :is(h1, h2) { font-size: 1.7rem; }
    .tun-sp__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .tun-sp__stats a { padding: 10px; }
    .tun-sp__onboard { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .tun-sp__onboard-intro { padding: 18px; }
    .tun-sp__steps { margin-top: 12px; }
    .tun-sp { margin-top: 16px; margin-bottom: 32px; }
    .tun-sp--admin, .tun-sp--school { width: calc(100% - 32px); }
    .tun-sp__masthead { gap: 10px; margin-bottom: 14px; }
    .tun-sp__brand { width: 137px; }
    .tun-sp__account { gap: 7px; font-size: .75rem; }
    .tun-sp__account button { padding-inline: 9px; }
    .tun-sp__unit-identity h1 { font-size: 1.4rem; }
    .tun-sp__unit-editor { padding: 16px; }
    .tun-sp__welcome { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .tun-sp__welcome-copy { padding: 24px 20px 22px; }
    .tun-sp__welcome-copy :is(h1, h2) { font-size: 2.25rem; }
    .tun-sp__welcome-copy :is(h1, h2) br, .tun-sp__wide-break { display: none; }
    .tun-sp__welcome-copy :is(h1, h2)::after { margin-top: 12px; width: 96px; }
    .tun-sp__welcome-copy p { margin-top: 12px; font-size: .875rem; }
    .tun-sp__login { grid-column: 1; grid-row: 2; padding: 23px 20px; }
    .tun-sp__login :is(h2, h3) { font-size: 1.4rem; }
    .tun-sp__login p { margin-bottom: 15px; }
    .tun-sp__campus { grid-row: 3; aspect-ratio: 2.25; }
    .tun-sp__header { padding: 20px; gap: 10px; }
    .tun-sp__header :is(h1, h2) { font-size: 1.65rem; }
    .tun-sp__header p { font-size: .875rem; }
    .tun-sp__catalog, .tun-sp__fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .tun-sp__panel { padding: 18px; }
    .tun-sp__table table { min-width: 0; table-layout: fixed; font-size: .75rem; }
    .tun-sp__table th, .tun-sp__table td { padding: 8px 6px; overflow-wrap: anywhere; }
    .tun-sp__table th:first-child { width: 30%; }
    .tun-sp__table th:nth-child(2) { width: 17%; }
    .tun-sp__table th:nth-child(3) { width: 28%; }
    .tun-sp__status { padding: 3px 5px; }
    .tun-sp__table.tun-sp__admin-table table { min-width: 500px; table-layout: auto; }
    .tun-sp__admin-table th:nth-child(n) { width: auto; }
    .tun-sp__review-fields { grid-template-columns: minmax(0, 1fr); }
    .tun-sp__tabs a, .tun-sp__editor-nav a { padding-inline: 9px; }
}
