/* Student-facing visual theme only. Keep layout, controls and calculation logic intact. */
:root {
  --blue: var(--susiro-navy);
  --blue-dark: var(--susiro-navy);
  --blue-light: var(--susiro-blue-light);
  --blue-pale: var(--susiro-blue-soft);
  --blue-header: var(--susiro-navy);
  --gray-50: #fafcfe;
  --gray-100: var(--susiro-surface);
  --gray-200: var(--susiro-border-soft);
  --gray-300: var(--susiro-border);
  --gray-400: #7d90a7;
  --gray-500: var(--susiro-muted);
  --gray-600: #4b6078;
  --gray-700: #334b65;
  --gray-900: var(--susiro-text);
  --font: 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
  --accent-gold: var(--susiro-gold);
  --accent-gold-soft: var(--susiro-gold-soft);
  --accent-coral: var(--susiro-coral);
  --accent-coral-soft: var(--susiro-coral-soft);
  --accent-lavender: var(--susiro-lavender);
  --accent-lavender-soft: var(--susiro-lavender-soft);
}
:root[data-student-authenticated] { --font: Pretendard, 'Malgun Gothic', sans-serif; }
body, button, input, select, textarea { font-family: var(--font); }
/* Square surfaces without altering checkbox/radio or social brand colors. */
button, input:not([type=checkbox]):not([type=radio]), select, textarea,
.login-glass-card, .login-feature-card, .login-new-badge, .login-visitor-card,
.search-bar, .qg-panel, .qg-cur-btn, .qg-avg-badge, .qg-conversion-guide,
.interest-hero-card, .interest-stat-card, .interest-list-panel, .interest-detail-panel,
.modal-box, .vb-modal-wrap, .vb-section, .pagination button {
  border-radius: 0 !important;
}
.login-screen { background: var(--susiro-surface); font-family: var(--font); }
.login-page-header { width: 100%; max-width: 1180px; display: flex; align-items: center; justify-content: space-between; padding: 8px 0 24px; margin-bottom: 28px; border-bottom: 1px solid var(--susiro-border); }
.login-page-brand { font-size: 26px; font-weight: 700; color: var(--susiro-navy); }
.login-page-brand small { display: block; font-size: 12px; font-weight: 400; color: var(--susiro-muted); margin-top: 6px; }
.login-page-caption { color: var(--susiro-muted); font-size: 12px; }
.login-orb { display: none; }
.login-main-wrap { max-width: 1180px; gap: 28px; align-items: start; }
.login-brand-col { background: var(--susiro-blue-soft); padding: 38px; gap: 28px; }
.login-brand-title, .login-brand-logo-name, .login-brand-logo-year { color: var(--susiro-navy); }
.login-brand-title { font-size: 40px; font-weight: 700; line-height: 1.35; }
.login-brand-title .brand-gradient {
  background: none; color: var(--susiro-navy); -webkit-text-fill-color: var(--susiro-navy);
}
.login-new-badge { background: var(--accent-lavender-soft); color: var(--accent-lavender); animation: none; box-shadow: none; }
.login-new-dot { background: var(--susiro-navy); animation: none; }
.login-brand-sub { color: #425d7b; font-size: 15px; }
.login-feature-card { background: var(--susiro-surface); border: 1px solid var(--susiro-border); }
.login-feature-label.blue { color: var(--accent-lavender); }
.login-feature-label.amber { color: var(--accent-gold); }
.login-feature-name { color: var(--susiro-text); font-weight: 700; }
.login-feature-desc { color: var(--susiro-muted); }
.login-form-col { max-width: 480px; }
.login-brand-logo-wrap { display: none; }
.login-card-heading { color: var(--susiro-navy); font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.login-glass-card {
  background: var(--susiro-surface); border: 1px solid var(--susiro-border); box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.login-tabs { border-color: var(--susiro-border); }
.login-tab-btn.active { color: var(--susiro-navy); border-color: var(--susiro-navy); }
.login-screen .btn-primary, .btn-search {
  background: var(--susiro-navy); color: var(--susiro-surface); box-shadow: none;
}
.login-screen .btn-primary:hover, .btn-search:hover { background: var(--susiro-navy-hover); }
.login-screen input { background: var(--susiro-surface); border-color: var(--susiro-border); color: var(--susiro-text); }
.login-help-link, .login-footer a, .login-biz-policy a { color: var(--susiro-navy); }
.login-mobile-brand { background: var(--susiro-blue-soft); border: 1px solid var(--susiro-border); }
.login-visitor-card { background: #f5f8fc; border: 1px solid var(--susiro-border-soft); box-shadow: none; }
.app-header { background: var(--susiro-surface); border-bottom: 1px solid var(--susiro-border); }
.sidebar { background: var(--susiro-surface); border-right: 1px solid var(--susiro-border); }
.sidebar-btn { color: #334b65; }
.sidebar-btn:hover { background: var(--susiro-blue-soft); color: var(--susiro-navy); }
.sidebar-btn.active, .sidebar-btn[data-tab=search].active {
  background: var(--susiro-navy); color: var(--susiro-surface); box-shadow: none;
}
.sidebar-bottom-btn { border-radius: 0; }
.search-bar { background: var(--susiro-blue-soft); border-bottom: 1px solid var(--susiro-border); }
.search-bar-title, .search-input-wrap label, .filter-label, .search-checkbox-wrap { color: var(--susiro-navy); }
.search-input, .filter-select, .grade-range-input { border: 1px solid var(--susiro-border); background: var(--susiro-surface); color: var(--susiro-text); }
.btn-reset { background: var(--susiro-surface); color: var(--susiro-navy); border-color: var(--susiro-border); }
.btn-interest-only, .interest-count-mini { background: var(--accent-coral-soft); color: var(--accent-coral); border-color: #e9c2b9; border-radius: 0; }
.btn-interest-only.active { background: var(--accent-coral); color: var(--susiro-surface); border-color: var(--accent-coral); }
.btn-interest-toggle { color: var(--accent-coral); border-radius: 0; }
.btn-interest-toggle:hover, .btn-interest-toggle.active { background: var(--accent-coral-soft); color: var(--accent-coral); border-color: #e9c2b9; }
.result-table thead th, .result-table thead th.th-sub {
  background: var(--susiro-navy); color: var(--susiro-surface); border-color: #41638c;
}
.result-table td { border-color: var(--susiro-border-soft); }
.result-table tbody tr:nth-child(even) { background: #fafcfe; }
.result-table tbody tr:hover { background: var(--susiro-blue-soft); }
.btn-track-detail { color: var(--susiro-navy); border-color: var(--susiro-border); white-space: nowrap; }
.btn-track-detail:hover { background: var(--susiro-navy); color: var(--susiro-surface); }
.qg-panel { background: var(--susiro-surface); border-color: var(--susiro-border); box-shadow: none; }
.quick-grade-box, .quick-grade-box.active { background: var(--susiro-surface); border: 1px solid var(--susiro-border); border-radius: 0; box-shadow: none; }
.quick-grade-box .qg-header { border-color: var(--susiro-border-soft); }
.qg-guide-alert, .qg-avg-badge, .qg-collapse-btn { border-radius: 0; }
.qg-cur-btn.on { background: var(--susiro-navy); color: var(--susiro-surface); border-color: var(--susiro-navy); }
.qg-desc, .qg-desc-sub { color: var(--susiro-muted); }
.qg-desc b, .qg-conv, .qg-avg-badge strong { color: var(--susiro-navy); }
.qg-field:nth-child(2) .qg-label { color: var(--accent-lavender); }
.qg-field:nth-child(2) .qg-text { background: var(--accent-lavender-soft); }
.qg-field:nth-child(3) .qg-label { color: var(--accent-gold); }
.qg-field:nth-child(3) .qg-text { background: var(--accent-gold-soft); }
.qg-field:nth-child(4) .qg-label { color: var(--accent-coral); }
.qg-field:nth-child(4) .qg-text { background: var(--accent-coral-soft); }
.nb-priority.normal, .nb-priority.important { background: var(--accent-gold-soft); color: var(--accent-gold); }
.public-open-label { color: var(--accent-lavender) !important; }
.qg-guide-alert { background: var(--susiro-blue-soft); color: #334b65; border-left: 0; }
.qg-guide-table th, .qg-guide-table tbody th { background: var(--susiro-blue-light); color: var(--susiro-navy); }
.qg-avg-badge { border-left: 0; background: var(--susiro-blue-soft); }
.interest-hero-card { background: var(--susiro-navy); color: var(--susiro-surface); }
.interest-hero-card::after { display: none; }
.interest-summary-card, .interest-list-card, .interest-peer-card, .interest-row, .interest-peer-metrics div { border-radius: 0; border-color: var(--susiro-border); box-shadow: none; }
/* Retain existing responsive drawer, print geometry, semantic status colors and payment/social branding. */
.grade-combo-strip { background: var(--susiro-surface); border-color: var(--susiro-border); border-radius: 0; padding: 8px; }
.grade-combo-item, .grade-combo-item.has-2022-conv { border-color: var(--susiro-border-soft); border-radius: 0; box-shadow: none; }
.grade-combo-label, .grade-combo-item.has-2022-conv .grade-combo-label { background: var(--susiro-navy); }
.grade-combo-conv { flex-direction: column; gap: 3px; width: 100%; padding: 3px 0; }
.grade-combo-raw5, .grade-combo-conv9 { display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap; font-size: 15px; line-height: 1.2; }
.grade-combo-raw5 { color: var(--susiro-lavender); }
.grade-combo-conv9 { color: var(--susiro-navy); }
.grade-combo-raw5 sub, .grade-combo-conv9 sub { position: static; display: block; font-size: 10px; margin: 0; color: var(--susiro-muted); line-height: 1.3; }
.grade-combo-arrow { transform: rotate(90deg); color: #697e96; }
.quick-input-section { background: var(--susiro-surface) !important; border-color: var(--susiro-border) !important; border-radius: 0 !important; padding: 14px !important; }
.quick-input-section h3 { border-bottom: 1px solid var(--susiro-border-soft); color: var(--susiro-navy); padding-bottom: 10px; margin-bottom: 12px !important; }
.quick-input-section .qi-row { gap: 6px 8px; margin-bottom: 8px; }
.quick-input-section .quick-chip { background: var(--susiro-surface); color: #334b65; border: 1px solid var(--susiro-border); box-shadow: none; }
.quick-input-section .quick-chip:hover { background: var(--susiro-blue-soft); color: var(--susiro-navy); }
.quick-input-section .quick-chip.active { background: var(--susiro-navy) !important; color: var(--susiro-surface) !important; border-color: var(--susiro-navy) !important; box-shadow: none; }
.quick-input-section .qi-label { color: var(--susiro-muted); }
#btn-add-row-quick, #btn-add-row-quick-mobile { background: var(--susiro-lavender-soft) !important; color: var(--susiro-lavender) !important; border: 1px solid #d7cde7; box-shadow: none; }
#btn-grade-file-manage { background: var(--susiro-surface) !important; color: var(--susiro-navy) !important; border: 1px solid var(--susiro-border); }
#btn-save-grades { background: var(--susiro-navy) !important; color: var(--susiro-surface); border: 1px solid var(--susiro-navy); }
#btn-reset-all-grades, .grade-input-table .btn-del-row { background: var(--susiro-coral-soft) !important; color: var(--susiro-coral) !important; border: 1px solid #e9c2b9 !important; }
.grade-input-table thead th { background: var(--susiro-navy); color: var(--susiro-surface); }
.grade-input-table td { border-color: var(--susiro-border-soft); }
.grade-input-table input, .grade-input-table select { border-color: var(--susiro-border); }
.recommend-modal { background: var(--susiro-surface); border: 1px solid var(--susiro-border); border-radius: 0; box-shadow: none; }
.recommend-modal .detail-modal-header { background: var(--susiro-surface); color: var(--susiro-navy); border-bottom: 1px solid var(--susiro-border); }
.recommend-modal .detail-modal-header h2 { color: var(--susiro-navy); font-size: 19px; }
.recommend-modal .detail-modal-header p { color: var(--susiro-muted); }
.recommend-modal .modal-close { background: var(--susiro-surface); color: var(--susiro-muted); border: 1px solid var(--susiro-border); border-radius: 0; }
.recommend-modal .rec-summary-bar { background: var(--susiro-blue-soft); color: #334b65; border-color: var(--susiro-border); border-radius: 0; }
.recommend-modal .rec-summary-bar strong { color: var(--susiro-navy); }
.recommend-modal .rec-tier-section { border-color: var(--susiro-border-soft); border-radius: 0; }
.recommend-modal .rec-tier-header { flex-wrap: wrap; gap: 6px 10px; }
.recommend-modal .tier-stable { background: var(--susiro-blue-soft); color: var(--susiro-navy); border-color: var(--susiro-border); }
.recommend-modal .tier-moderate { background: var(--susiro-gold-soft); color: var(--susiro-gold); border-color: #e8d8bd; }
.recommend-modal .tier-challenge { background: var(--susiro-coral-soft); color: var(--susiro-coral); border-color: #e9c2b9; }
.recommend-modal .tier-reach { background: var(--susiro-lavender-soft); color: var(--susiro-lavender); border-color: #d7cde7; }
.recommend-modal .rec-tier-count { background: var(--susiro-surface); color: inherit; border-radius: 0; }
.recommend-modal .rec-tier-desc { opacity: 1; }
.recommend-modal .rec-table thead th { background: #f2f6fb; color: var(--susiro-navy); }
.recommend-modal .rec-table td { border-color: var(--susiro-border-soft); }
.recommend-modal .rec-univ { color: var(--susiro-navy); }
.recommend-modal .score-diff-pos { color: var(--susiro-navy); }
.recommend-modal .score-diff-near { color: var(--susiro-gold); }
.recommend-modal .score-diff-neg { color: var(--susiro-coral); }
@media (max-width: 768px) {
  .recommend-modal { position: relative; width: 100%; max-width: 100%; left: auto; right: auto; bottom: auto; }
}
.search-panel .search-bar.search-bar-refined {
  display: block !important; background: var(--susiro-surface); color: var(--susiro-text);
  border: 1px solid var(--susiro-border); padding: 14px 18px; margin: 10px 16px;
  width: calc(100% - 32px); max-width: 1100px;
}
.search-bar-refined .search-extra-conditions { display: contents; }
.search-panel > .search-bar.search-bar-refined,
.search-panel > #quick-grade-panel > .quick-grade-box {
  box-sizing: border-box;
  width: calc(100% - 32px) !important;
  max-width: 1100px !important;
  margin: 10px 16px;
  padding-left: 18px;
  padding-right: 18px;
}
.search-bar-refined .search-extra-conditions[hidden] { display: none !important; }
.search-bar-refined .search-conditions-toggle { padding: 4px 8px; border: 1px solid var(--susiro-border-soft); background: var(--susiro-surface); color: var(--susiro-muted); font: inherit; font-size: 12px; white-space: nowrap; }
.search-bar-refined .search-heading { display: flex; justify-content: space-between; align-items: center; gap: var(--susiro-space-lg); margin-bottom: 10px; }
.search-bar-refined .search-bar-title { font-size: 17px; font-weight: 700; color: var(--susiro-navy); }
.search-bar-refined .search-heading-caption { font-size: 12px; color: var(--susiro-muted); }
.search-bar-refined .search-primary-row { display: flex; align-items: flex-end; gap: 10px; }
.search-bar-refined .search-input-wrap { display: block; flex: 1; min-width: 0; width: auto; }
.search-bar-refined .search-input-wrap label { display: block; font-size: 12px; color: var(--susiro-muted); margin-bottom: 5px; }
.search-bar-refined .search-input { width: 100%; min-width: 0; max-width: none; padding: 8px 10px; font-size: 13px; height: 36px; }
.search-bar-refined .btn-search, .search-bar-refined .btn-reset { width: auto; height: 36px; padding: 0 16px; flex: 0 0 auto; font-size: 13px; }
.search-bar-refined .search-secondary-row { display: flex; justify-content: flex-start; align-items: center; gap: 14px; margin: 8px 0 10px; }
.search-bar-refined .search-checkbox-wrap { min-height: 32px; color: var(--susiro-muted); font-size: 12px; }
.search-bar-refined .btn-recommend { width: auto; background: var(--susiro-lavender-soft); color: var(--susiro-lavender); border: 1px solid #d7cde7; padding: 7px 12px; font-size: 12px; box-shadow: none; }
.search-bar-refined .search-filters { display: grid; grid-template-columns: 1fr .8fr 1.3fr 1.5fr 1fr; gap: 10px; padding: 10px 12px; width: 100%; max-width: 1100px; background: #f2f6fb; }
.search-bar-refined .filter-group { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; width: auto; }
.search-bar-refined .filter-label { color: var(--susiro-muted); font-size: 12px; margin: 0; }
.search-bar-refined .filter-select, .search-bar-refined .search-filters .search-input, .search-bar-refined .grade-range-input { width: 100%; min-width: 0; max-width: none; height: 32px; padding: 6px 8px; border: 1px solid var(--susiro-border); background: var(--susiro-surface); font-size: 12px; }
.search-bar-refined .search-grade-range { display: flex; gap: 6px; align-items: center; }
.search-bar-refined .search-grade-range input { flex: 1; }
.search-bar-refined .grade-range-sep { color: var(--susiro-muted); flex: 0 0 12px; text-align: center; }
.search-bar-refined .search-filter-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--susiro-space-md); flex-wrap: wrap; max-width: 1100px; margin-top: 8px; }
.search-bar-refined .search-selected-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; font-size: 11px; }
.search-bar-refined .search-selected-label { color: var(--susiro-muted); margin-right: 2px; }
.search-bar-refined .search-selected-chip { background: var(--susiro-gold-soft); color: var(--susiro-gold); padding: 5px 8px; overflow-wrap: anywhere; }
.search-bar-refined .interest-filter-group { display: flex; gap: var(--susiro-space-sm); align-items: center; flex-wrap: wrap; margin-left: auto; }
.search-bar-refined .btn-interest-only, .search-bar-refined .interest-count-mini { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 36px; padding: 5px 8px; font-size: 12px; line-height: 1.4; gap: 3px; border: 1px solid #e9c2b9; white-space: nowrap; }
.qg-body[hidden], .qg-collapse-btn[hidden] { display: none !important; }
.mobile-result-navigation { display: none; }
.sidebar .sidebar-bottom-btn { background: var(--susiro-surface) !important; color: var(--susiro-navy) !important; border: 1px solid var(--susiro-border); box-shadow: none; }
.sidebar .sidebar-talk-btn { background: var(--susiro-coral-soft) !important; color: var(--susiro-coral) !important; border-color: #e9c2b9; }
.sidebar [id^=btn-my-info] { background: var(--susiro-lavender-soft) !important; color: var(--susiro-lavender) !important; border-color: #d7cde7; }
.sidebar [id^=btn-logout] { background: #f5f7fa !important; color: var(--susiro-muted) !important; border-color: var(--susiro-border-soft); }
.sidebar .sidebar-bottom-btn:hover { background: var(--susiro-blue-soft) !important; color: var(--susiro-navy) !important; }
.sidebar .public-open-label { background: var(--susiro-lavender-soft); margin: 0 8px 8px; padding: 5px !important; font-size: 11px; }
@media (min-width: 1101px) {
  .search-panel .search-bar.search-bar-refined { display: grid !important; grid-template-columns: minmax(340px, 660px) minmax(200px, 1fr); grid-template-areas: none; gap: 10px 18px; }
  .search-bar-refined .search-heading { grid-column: 1 / -1; margin: 0; }
  .search-bar-refined .search-input-wrap label { display: none; }
  .search-bar-refined .search-secondary-row { margin: 0; align-self: end; }
  .search-bar-refined .search-primary-row { grid-column: 1; grid-row: 2; }
  .search-bar-refined .search-secondary-row { grid-column: 2; grid-row: 2; }
  .search-bar-refined .search-filters, .search-bar-refined .search-filter-footer { grid-area: auto; grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 768px) {
  .search-panel .search-bar.search-bar-refined { padding: 12px; margin: 8px 10px; }
  .search-panel .search-bar.search-bar-refined { width: calc(100% - 20px) !important; }
  .search-panel > .search-bar.search-bar-refined,
  .search-panel > #quick-grade-panel > .quick-grade-box {
    width: calc(100% - 20px) !important;
    margin: 8px 10px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .search-bar-refined .search-filters { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; gap: 8px !important; }
  .search-bar-refined .search-filters .filter-group { flex-direction: column !important; align-items: stretch !important; min-width: 0 !important; max-width: none !important; }
  .search-bar-refined .search-filters .filter-label { font-size: 12px !important; }
  .search-bar-refined .search-filters .filter-select, .search-bar-refined .filter-group #sq-detail { height: 44px !important; font-size: 16px !important; padding: 6px 8px !important; }
  .search-bar-refined .search-filters .grade-range-filter .grade-range-input { width: 100% !important; }
  .search-bar-refined .grade-range-filter { grid-column: span 2; }
  .search-bar-refined .search-filters .filter-group:nth-child(3),
  .search-bar-refined .search-filters .filter-group:nth-child(5) {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .search-bar-refined .search-filters #sq-detail,
  .search-bar-refined .search-filters #sq-judge {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }
  .search-bar-refined .search-heading-caption { display: none; }
  .search-bar-refined .search-primary-row { flex-wrap: wrap; }
  .search-bar-refined .search-input-wrap { flex-basis: 100%; }
  .search-bar-refined .btn-search { flex: 1; }
  .search-bar-refined .search-heading { gap: 8px; margin-bottom: 8px; }
  .search-bar-refined .search-bar-title { font-size: 16px; }
  .search-bar-refined .search-primary-row { gap: 8px; }
  .search-bar-refined .search-input-wrap label { display: none; }
  .search-bar-refined .search-secondary-row { gap: 10px; margin: 6px 0; }
  .search-bar-refined .search-input, .search-bar-refined .grade-range-input,
  .search-bar-refined .btn-search, .search-bar-refined .btn-reset { height: 44px; font-size: 16px; }
  .search-bar-refined #sq-detail, .search-bar-refined #sq-grade-min,
  .search-bar-refined #sq-grade-max, .search-bar-refined #btn-do-recommend,
  .search-bar-refined .search-checkbox-wrap { min-height: 44px !important; box-sizing: border-box; }
  .search-bar-refined .btn-interest-only, .search-bar-refined .interest-count-mini { height: 44px; min-height: 44px; }
  .mobile-result-navigation { display: flex; justify-content: flex-end; gap: 8px; padding: 6px 10px; }
  .mobile-result-navigation .mobile-scroll-up-btn,
  .mobile-result-navigation .mobile-scroll-down-btn { position: static; min-height: 44px; border: 1px solid var(--susiro-border); border-radius: 0; background: var(--susiro-surface); color: var(--susiro-navy); box-shadow: none; opacity: 1; }
}
@media (pointer: coarse) {
  .search-bar-refined .search-input, .search-bar-refined .filter-select, .search-bar-refined .grade-range-input { font-size: 16px; min-height: 44px; }
  .search-bar-refined button, .search-bar-refined .search-checkbox-wrap { min-height: 44px; }
}
@media (max-width: 1023px) {
  .login-main-wrap { display: flex; flex-direction: column; align-items: center; }
  .login-brand-col { display: none; }
  .login-form-col { margin: 0 auto; width: 100%; }
}
@media (max-width: 639px) {
  .login-screen { padding: 18px 12px; }
  .login-glass-card { padding: 24px 20px; }
}

/* Privacy and terms share the same document presentation. */
.grade-subject-suggestions { position: fixed; z-index: 12000; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; border: 1px solid var(--susiro-border); background: var(--susiro-surface); box-shadow: 0 6px 18px rgba(6,52,111,.14); color: var(--susiro-text); font: 13px Pretendard,sans-serif; }
.grade-subject-suggestions button { display: flex; width: 100%; min-height: 46px; box-sizing: border-box; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--susiro-border-soft); border-radius: 0; background: var(--susiro-surface); color: var(--susiro-text); font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.grade-subject-suggestions button strong { color: var(--susiro-navy); font-weight: 600; }
.grade-subject-suggestions button small { color: var(--susiro-muted); font-size: 11px; flex-shrink: 0; }
.grade-subject-suggestions button:hover, .grade-subject-suggestions button[aria-selected=true] { background: var(--susiro-blue-soft); }
.grade-subject-suggestions .subject-manual-option { color: var(--susiro-lavender); background: var(--susiro-lavender-soft); border-bottom: 0; }
.subject-catalog-reference { margin: 10px 0 16px; color: var(--susiro-navy); font-size: 13px; }
.subject-catalog-reference summary { padding: 8px 0; cursor: pointer; }
.subject-catalog-reference p { margin: 6px 0; color: var(--susiro-muted); }
.subject-catalog-reference a { color: var(--susiro-navy); text-decoration: underline; }
.subject-catalog-table-wrap { overflow-x: auto; margin-top: 8px; border: 1px solid var(--susiro-border); }
.subject-catalog-table-wrap table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 12px; }
.subject-catalog-table-wrap th { background: var(--susiro-navy); color: var(--susiro-surface); }
.subject-catalog-table-wrap th, .subject-catalog-table-wrap td { border: 1px solid var(--susiro-border-soft); padding: 8px; text-align: left; vertical-align: top; }
.subject-catalog-table-wrap tbody th { background: var(--susiro-blue-soft); color: var(--susiro-navy); min-width: 90px; }
@media (max-width: 480px) {
  .grade-subject-suggestions button { align-items: flex-start; flex-direction: column; gap: 3px; min-height: 48px; }
  .grade-subject-suggestions button small { flex-shrink: 1; }
  .grade-input-panel[data-curriculum-page="2022"] .gi-subj { font-size: 16px !important; }
}
.student-curriculum-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--susiro-border-soft); color: var(--susiro-navy); background: var(--susiro-surface); font-size: 13px; }
.student-curriculum-heading button, .curriculum-info-button, .curriculum-input-gate button { border: 1px solid var(--susiro-border); border-radius: 0; padding: 6px 10px; color: var(--susiro-navy); background: var(--susiro-surface); font: inherit; cursor: pointer; }
.curriculum-info-button { margin-left: 8px; }
.curriculum-input-gate { margin: 16px; padding: 20px; border: 1px solid var(--susiro-border); background: var(--susiro-surface); }
.curriculum-input-description { margin: 8px 0 14px; color: var(--susiro-muted); font-size: 13px; }
.qi-row-curriculum[hidden] { display: none !important; }
.student-curriculum-overlay { position: fixed; inset: 0; z-index: 20000; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(6, 28, 57, .52); }
.student-curriculum-dialog { width: 100%; max-width: 610px; max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--susiro-surface); color: var(--susiro-text); border: 1px solid var(--susiro-border); font-family: Pretendard, sans-serif; }
.student-curriculum-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--susiro-border-soft); }
.student-curriculum-dialog header strong { color: var(--susiro-navy); font-size: 20px; }
.student-curriculum-dialog header span { font-size: 12px; color: var(--susiro-muted); }
.curriculum-dialog-content { padding: 24px; }
.curriculum-dialog-content h2 { margin: 0 0 8px; color: var(--susiro-navy); font-size: 23px; }
.curriculum-dialog-content > p { font-size: 13px; color: var(--susiro-muted); margin: 8px 0 18px; }
.curriculum-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.curriculum-choice { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px 16px; border: 1px solid var(--susiro-border); cursor: pointer; }
.curriculum-choice:has(input:checked) { border: 2px solid var(--susiro-navy); padding: 17px 15px; background: #f5f8fc; }
.curriculum-choice.unavailable { background: #f5f7fa; color: var(--susiro-muted); cursor: default; }
.curriculum-choice-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; }
.curriculum-choice-top span { background: var(--susiro-gold-soft); color: var(--susiro-gold); padding: 3px 6px; }
.curriculum-choice:nth-child(2) .curriculum-choice-top span { background: var(--susiro-lavender-soft); color: var(--susiro-lavender); }
.curriculum-choice input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--susiro-navy); }
.curriculum-choice strong { font-size: 24px; color: var(--susiro-navy); }
.curriculum-choice > span:not(.curriculum-choice-top) { font-size: 13px; }
.curriculum-choice small { padding-top: 10px; border-top: 1px solid var(--susiro-border-soft); color: var(--susiro-navy); font-size: 12px; }
.curriculum-conversion-note { margin: 16px 0 10px; padding: 12px; background: #f3f6fa; border-left: 2px solid var(--susiro-navy); color: var(--susiro-muted); font-size: 12px; line-height: 1.7; }
.curriculum-dialog-content .curriculum-existing-note { font-size: 12px; line-height: 1.7; margin-bottom: 8px; }
#student-curriculum-status { color: var(--susiro-coral); min-height: 20px; margin: 8px 0; }
.curriculum-start-button, .curriculum-cancel-button { width: 100%; min-height: 46px; padding: 10px 16px; border: 1px solid var(--susiro-navy); border-radius: 0; background: var(--susiro-navy); color: var(--susiro-surface); font: 600 14px Pretendard, sans-serif; cursor: pointer; }
.curriculum-start-button:disabled { background: #e7edf4; border-color: var(--susiro-border-soft); color: var(--susiro-muted); cursor: default; }
.curriculum-cancel-button { margin-top: 8px; background: var(--susiro-surface); color: var(--susiro-navy); }
@media (max-width: 480px) {
  .student-curriculum-overlay { padding: 12px; }
  .student-curriculum-dialog { max-height: calc(100dvh - 24px); }
  .curriculum-dialog-content { padding: 18px; }
  .student-curriculum-dialog header { padding: 12px 18px; }
  .curriculum-dialog-content h2 { font-size: 21px; }
  .curriculum-choice-grid { grid-template-columns: 1fr; gap: 10px; }
  .curriculum-choice { padding: 12px 14px; gap: 6px; }
  .curriculum-choice:has(input:checked) { padding: 11px 13px; }
  .student-curriculum-heading { padding: 8px 10px; }
  .student-curriculum-heading button { min-height: 44px; }
}
/* Grade-file management shares the square, white/navy student theme. */
#grade-import-modal { padding: 20px; background: rgba(6, 28, 57, .48); }
#grade-import-modal .grade-file-modal { width: min(1080px, 100%); max-height: calc(100dvh - 40px); background: var(--susiro-surface); border: 1px solid var(--susiro-border); border-radius: 0; font-family: Pretendard, sans-serif; color: var(--susiro-text); }
.grade-file-modal * { box-sizing: border-box; border-radius: 0 !important; }
.grade-file-modal .detail-modal-header { background: var(--susiro-surface); color: var(--susiro-navy); border-bottom: 3px solid var(--susiro-navy); padding: 22px 24px; gap: 16px; align-items: flex-start; }
.grade-file-modal .detail-modal-header h2 { color: var(--susiro-navy); font-size: 22px; margin: 0 0 6px; }
.grade-file-modal .detail-modal-header p { color: var(--susiro-muted); line-height: 1.6; margin: 0; }
.grade-file-modal .modal-close { background: var(--susiro-surface); color: var(--susiro-navy); border: 1px solid var(--susiro-border); width: 40px; height: 40px; flex-shrink: 0; }
.grade-file-modal .detail-modal-body { padding: 24px; background: var(--susiro-surface); min-width: 0; }
.grade-file-modal .detail-block { background: var(--susiro-surface); border: 1px solid var(--susiro-border-soft); padding: 20px; margin-bottom: 16px; min-width: 0; }
.grade-file-modal .detail-block:last-child { margin-bottom: 0; }
.grade-file-modal .detail-block h3 { color: var(--susiro-navy); border-color: var(--susiro-border-soft); margin: 0 0 16px; font-size: 15px; }
.grade-file-modal .grade-file-options { background: #f5f8fc; }
.grade-file-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.grade-file-modal button.btn-add-row, .grade-file-modal button.btn-grade-action { min-height: 42px; padding: 10px 16px; border: 1px solid var(--susiro-navy); background: var(--susiro-navy) !important; color: var(--susiro-surface); font: 600 13px Pretendard, sans-serif; line-height: 1.5; }
.grade-file-modal button.grade-file-tab-btn { background: var(--susiro-surface) !important; color: var(--susiro-navy); border-color: var(--susiro-border); }
.grade-file-modal button.grade-file-tab-btn.active { background: var(--susiro-navy) !important; border-color: var(--susiro-navy); color: var(--susiro-surface); }
.grade-file-modal button.grade-file-secondary { background: var(--susiro-surface) !important; color: var(--susiro-navy); border-color: var(--susiro-border); }
.grade-file-modal button:hover:not(:disabled) { filter: brightness(.97); }
.grade-file-modal button:disabled { opacity: 1; background: #e7edf4 !important; border-color: var(--susiro-border-soft); color: var(--susiro-muted); cursor: not-allowed; }
.grade-file-modal .detail-note { color: var(--susiro-muted); line-height: 1.7; }
.grade-file-upload-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.grade-file-upload-row input { flex: 1; min-width: 0; width: 100%; color: var(--susiro-text); font: inherit; font-size: 13px; }
.grade-file-modal input::file-selector-button { min-height: 42px; padding: 8px 12px; margin-right: 10px; border: 1px solid var(--susiro-border); background: var(--susiro-surface); color: var(--susiro-navy); font: inherit; cursor: pointer; }
.grade-file-modal .pdf-import-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade-file-modal .pdf-import-grid label { min-width: 0; }
.grade-file-modal .pdf-import-grid select,
.grade-file-modal .pdf-import-grid input[type="file"] { box-sizing: border-box; width: 100%; min-width: 0; height: 36px; min-height: 36px; max-height: 36px; margin: 0; border: 1px solid var(--susiro-border); font-size: 13px; }
.grade-file-modal .pdf-import-grid select { padding: 5px 8px; }
.grade-file-modal .pdf-import-grid input[type="file"] { padding: 3px; font-weight: 400; }
.grade-file-modal .pdf-import-grid input::file-selector-button { height: 28px; min-height: 28px; padding: 3px 10px; margin-right: 8px; font-size: 13px; line-height: 20px; }
.grade-file-modal .grade-recognition-panel .pdf-import-grid { grid-template-columns: minmax(0,1fr) 210px; gap:20px; margin:0; }
.grade-recognition-panel .grade-recognition-privacy { color:var(--susiro-muted); font-size:12px; line-height:1.7; margin:14px 0; }
.grade-recognition-guide { margin:12px 0 20px; color:var(--susiro-navy); font-size:13px; }
.grade-recognition-guide summary { cursor:pointer; }
.grade-recognition-guide ul { padding-left:18px; margin-bottom:0; }
.grade-recognition-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.grade-file-modal .grade-recognition-actions button { background:var(--susiro-surface)!important; border-color:var(--susiro-border); color:var(--susiro-navy); }
.grade-file-modal .grade-recognition-actions button:hover:not(:disabled) { background:var(--susiro-blue-soft)!important; }
.grade-file-modal .grade-recognition-status { margin-top:14px; padding:12px 14px; background:var(--susiro-blue-soft); border:1px solid var(--susiro-border-soft); font-size:12px; }
.grade-file-modal .grade-recognition-status[data-tone="error"] { background:#fff7f5; border-color:#e8bfb8; color:#9c332b; }
.grade-file-modal .grade-recognition-status[data-tone="warn"] { background:#fffaf0; border-color:#e4d3a5; color:#7f601e; }
.grade-file-modal #grade-import-text { width: 100%; min-height: 150px; padding: 14px; border: 1px solid var(--susiro-border); font: 13px/1.7 Pretendard, sans-serif; color: var(--susiro-text); background: var(--susiro-surface); resize: vertical; }
.grade-file-modal #grade-import-text::placeholder { color: var(--susiro-muted); }
.grade-file-modal #grade-import-status { padding: 12px 14px; background: var(--susiro-blue-soft); border: 1px solid var(--susiro-border-soft); }
.grade-file-modal #grade-import-preview-table th { background: var(--susiro-navy); color: var(--susiro-surface); }
.grade-file-modal button:focus-visible, .grade-file-modal input:focus-visible, .grade-file-modal textarea:focus-visible { outline: 2px solid var(--susiro-navy); outline-offset: 2px; }
@media (max-width: 600px) {
  #grade-import-modal { padding: 10px; }
  #grade-import-modal .grade-file-modal { max-height: calc(100dvh - 20px); }
  .grade-file-modal .detail-modal-header { padding: 16px; }
  .grade-file-modal .detail-modal-header h2 { font-size: 20px; }
  .grade-file-modal .detail-modal-body { padding: 14px; }
  .grade-file-modal .detail-block { padding: 14px; }
  .grade-file-tabs { flex-direction: column; }
  .grade-file-tabs button { width: 100%; min-height: 44px; text-align: left; }
  .grade-file-upload-row { flex-direction: column; align-items: stretch; }
  .grade-file-upload-row input { flex: auto; }
  .grade-file-modal input, .grade-file-modal #grade-import-text { font-size: 16px; }
  .grade-file-modal .pdf-import-grid { grid-template-columns: minmax(0, 1fr); }
  .grade-file-modal .grade-recognition-panel .pdf-import-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
}
/* Real NEIS input: one responsive subject block, with original five-grade values. */
.grade-input-panel[data-curriculum-page="2022"] .quick-input-section[hidden] { display: none !important; }
#btn-add-neis-row { background: var(--susiro-surface); color: var(--susiro-navy); border: 1px solid var(--susiro-border); }
.grade-input-panel[data-curriculum-page="2022"] .grade-table-wrapper { overflow: visible !important; min-width: 0; border: 0; }
.grade-input-panel .neis-grade-table { display: block; width: 100%; min-width: 0 !important; border: 0; }
.neis-grade-table thead { display: none; }
.neis-grade-table tbody { display: flex; flex-direction: column; gap: 18px; }
.neis-grade-table .neis-grade-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding: 20px; border: 1px solid var(--susiro-border); background: var(--susiro-surface); }
.neis-grade-table .neis-grade-row td { display: block; min-width: 0; padding: 0 !important; border: 0; background: transparent; white-space: normal; text-align: left; }
.neis-grade-table .neis-grade-row .neis-curriculum { display: none; }
.neis-grade-row td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; color: var(--susiro-muted); font-size: 12px; }
.neis-grade-row .neis-subject { grid-column: span 2; }
.neis-grade-table .neis-grade-row input, .neis-grade-table .neis-grade-row select { width: 100% !important; min-width: 0; height: 42px !important; padding: 8px 10px !important; font: 14px/1.5 Pretendard, sans-serif; border: 1px solid var(--susiro-border); border-radius: 0; background: var(--susiro-surface); color: var(--susiro-text); box-sizing: border-box; }
.neis-grade-table .neis-grade-row select:disabled { background: #edf1f6; color: var(--susiro-muted); }
.neis-grade-table .neis-grade-row .neis-distribution, .neis-grade-row .neis-row-actions { grid-column: 1 / -1; }
.neis-distribution details { border-top: 1px solid var(--susiro-border-soft); padding-top: 12px; }
.neis-distribution summary { color: var(--susiro-navy); font-size: 13px; cursor: pointer; padding: 6px 0; }
.neis-ratio-count { margin-left: 8px; color: var(--susiro-muted); font-size: 12px; }
.neis-ratio-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.neis-ratio-grid label { color: var(--susiro-muted); font-size: 12px; }
.neis-ratio-grid input { margin-top: 6px; }
.neis-ratio-status { color: var(--susiro-muted); font-size: 12px; }
.neis-ratio-status.neis-ratio-error { color: var(--susiro-coral); }
.neis-row-actions { display: flex !important; justify-content: flex-end; }
.neis-row-actions .btn-del-row { min-height: 40px; padding: 8px 12px; border-radius: 0; font: 13px Pretendard, sans-serif; }
.neis-entry-actions { display: flex; justify-content: flex-end; margin: 12px 0 24px; }
.grade-input-panel[data-curriculum-page="2022"] .neis-list-wrapper { overflow-x: auto !important; border: 1px solid var(--susiro-border); }
.grade-input-panel .neis-summary-table { width: 100%; min-width: 1240px !important; margin: 0; font-size: 12px; }
.neis-summary-table th { padding: 9px 6px; white-space: nowrap; }
.neis-summary-table td { padding: 5px 6px !important; vertical-align: top; }
.neis-summary-table td[hidden] { display: none; }
.neis-summary-table input, .neis-summary-table select { min-height: 32px; border-radius: 0 !important; }
.neis-summary-table .gi-sgroup { max-width: 170px; }
.neis-summary-table .gi-neis-number { width: 76px !important; }
.neis-summary-table .btn-del-row { min-height: 32px; padding: 5px 9px; border-radius: 0 !important; }
.neis-list-ratios { min-width: 105px; }
.neis-list-ratios summary { color: var(--susiro-navy); cursor: pointer; padding: 6px 0; white-space: nowrap; }
.neis-list-ratios .neis-ratio-grid { grid-template-columns: 1fr; gap: 8px; }
.neis-list-empty { text-align: center; padding: 18px !important; color: var(--susiro-muted); }
@media (max-width: 1100px) {
  .neis-grade-table .neis-grade-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .neis-grade-table .neis-grade-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
  .neis-grade-table .neis-grade-row input, .neis-grade-table .neis-grade-row select { font-size: 16px !important; min-height: 44px; }
  .neis-ratio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Spreadsheet ingestion stays inside the browser until the final save action. */
.grade-spreadsheet-import [hidden] { display: none !important; }
.grade-paste-label { display: block; color: var(--susiro-muted); font-size: 13px; margin: 14px 0 6px; }
.grade-import-options, .grade-preview-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.grade-import-options label, .grade-duplicate-default, .grade-sheet-selector label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--susiro-muted); font-size: 13px; }
.grade-import-options input[type="checkbox"] { accent-color: var(--susiro-navy); }
.grade-spreadsheet-import select { padding: 8px; min-height: 40px; border: 1px solid var(--susiro-border); background: var(--susiro-surface); color: var(--susiro-text); font: inherit; }
.grade-import-mapping { border-top: 1px solid var(--susiro-border-soft); border-bottom: 1px solid var(--susiro-border-soft); padding: 12px 0; }
.grade-import-mapping summary { color: var(--susiro-navy); cursor: pointer; }
#grade-import-mapping-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
#grade-import-mapping-fields label { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--susiro-muted); font-size: 12px; }
#grade-import-mapping-fields label span { overflow-wrap: anywhere; }
#grade-import-mapping-fields select { width: 100%; min-width: 0; }
.grade-preview-toolbar { color: var(--susiro-navy); font-size: 13px; }
.grade-duplicate-default { margin-bottom: 12px; }
.grade-sheet-preview-scroll { overflow: auto; max-height: 420px; border: 1px solid var(--susiro-border); }
#grade-import-preview-table { width: 100%; min-width: 1600px; border-collapse: collapse; font-size: 12px; }
#grade-import-preview-table th { position: sticky; top: 0; z-index: 1; padding: 10px 8px; background: var(--susiro-navy); color: var(--susiro-surface); text-align: left; white-space: nowrap; }
#grade-import-preview-table td { padding: 6px; border: 1px solid var(--susiro-border-soft); vertical-align: top; }
#grade-import-preview-table tr:nth-child(even) { background: #f8fafe; }
#grade-import-preview-table input, #grade-import-preview-table select { width: 88px; min-height: 36px; padding: 6px 8px; border: 1px solid var(--susiro-border); background: var(--susiro-surface); color: var(--susiro-text); font: 13px/1.5 Pretendard,sans-serif; box-sizing: border-box; }
#grade-import-preview-table [data-import-field="subject"] { width: 180px; }
#grade-import-preview-table [data-import-field="subject_group"] { width: 150px; }
#grade-import-preview-table [data-duplicate-row] { width: 145px; }
#grade-import-preview-table .grade-cell-error { border: 2px solid var(--susiro-coral); background: var(--susiro-coral-soft); }
.grade-duplicate-label { display: block; color: var(--susiro-gold); margin-bottom: 4px; white-space: nowrap; }
.grade-preview-issue { min-width: 200px; max-width: 280px; color: var(--susiro-coral); overflow-wrap: anywhere; }
.grade-import-validation { margin: 12px 0; padding: 12px; background: var(--susiro-blue-soft); color: var(--susiro-navy); font-size: 13px; line-height: 1.7; }
.grade-import-actions { margin-top: 16px; }
@media (max-width: 600px) {
  #grade-import-mapping-fields { grid-template-columns: minmax(0,1fr); }
  #grade-import-preview-table input, #grade-import-preview-table select { font-size: 16px; min-height: 44px; }
  .grade-import-options { align-items: flex-start; flex-direction: column; }
  .grade-import-options select { font-size: 16px; }
}
.policy-modal-overlay { background: rgba(6, 28, 57, .48); }
.policy-modal-box { background: var(--susiro-surface); border: 1px solid var(--susiro-border); border-radius: 0; box-shadow: 0 12px 40px rgba(6, 52, 111, .16); }
.policy-modal-close { background: var(--susiro-surface); border-bottom: 1px solid var(--susiro-border-soft); padding: 8px 16px; }
.policy-modal-close-btn { width: 44px; height: 44px; border: 1px solid var(--susiro-border); border-radius: 0; background: var(--susiro-surface); color: var(--susiro-navy); }
.policy-modal-close-btn:hover { background: var(--susiro-blue-soft); }
.policy-modal-body { font-family: var(--font); color: var(--susiro-text); overflow-wrap: anywhere; }
.policy-modal-body .pp-header { background: var(--susiro-surface); color: var(--susiro-navy); text-align: left; padding: 24px 28px; border-bottom: 3px solid var(--susiro-navy); }
.policy-modal-body .pp-header .brand { color: var(--susiro-muted); opacity: 1; }
.policy-modal-body .pp-header h1 { font-size: 26px; letter-spacing: -.03em; }
.policy-modal-body .pp-header .meta { justify-content: flex-start; color: var(--susiro-muted); opacity: 1; font-size: 12px; gap: 6px 16px; }
.policy-modal-body .pp-wrap { padding: 24px 28px 32px; }
.policy-modal-body .pp-intro, .policy-modal-body .pp-section, .policy-modal-body .pp-nav { border: 1px solid var(--susiro-border-soft); border-radius: 0; box-shadow: none; background: var(--susiro-surface); }
.policy-modal-body .pp-intro { border-left: 3px solid var(--susiro-navy); background: #f5f8fc; color: var(--susiro-text); }
.policy-modal-body .pp-section { scroll-margin-top: 76px; }
.policy-modal-body .pp-section h2 { color: var(--susiro-navy); border-bottom: 1px solid var(--susiro-border-soft); font-size: 16px; align-items: flex-start; }
.policy-modal-body .pp-section h2 .num { background: var(--susiro-navy); border-radius: 0; width: 24px; height: 24px; font-size: 12px; }
.policy-modal-body .pp-section p, .policy-modal-body .pp-section li, .policy-modal-body .pp-section .sub-list li { color: var(--susiro-text); }
.policy-modal-body .pp-section li strong, .policy-modal-body .pp-contact-box strong { color: var(--susiro-navy); }
.policy-modal-body .pp-table-wrap { border-radius: 0; border-color: var(--susiro-border); }
.policy-modal-body table.pp-table { min-width: 0; table-layout: fixed; }
.policy-modal-body table.pp-table thead tr { background: var(--susiro-navy); }
.policy-modal-body table.pp-table th { white-space: normal; }
.policy-modal-body table.pp-table td { color: var(--susiro-text); border-color: var(--susiro-border-soft); }
.policy-modal-body table.pp-table tbody tr:nth-child(even) { background: #f5f8fc; }
.policy-modal-body .pp-note, .policy-modal-body .pp-info, .policy-modal-body .pp-warn, .policy-modal-body .pp-contact-box { border-radius: 0; }
.policy-modal-body .pp-note { background: var(--susiro-gold-soft); color: var(--susiro-gold); border-color: #e8d8bd; }
.policy-modal-body .pp-info { background: var(--susiro-blue-soft); color: var(--susiro-navy); border-color: var(--susiro-border); }
.policy-modal-body .pp-warn { background: var(--susiro-coral-soft); color: var(--susiro-coral); border-color: #e9c2b9; }
.policy-modal-body .pp-contact-box { background: #f5f8fc; color: var(--susiro-text); border: 1px solid var(--susiro-border-soft); }
.policy-modal-body .pp-ul-plain li::before, .policy-modal-body .pp-contact-box a, .policy-modal-body .pp-footer a { color: var(--susiro-navy); }
.policy-modal-body .pp-nav { padding: 12px; }
.policy-modal-body .pp-nav span, .policy-modal-body .pp-footer { color: var(--susiro-muted); border-color: var(--susiro-border-soft); }
.policy-modal-body .pp-nav a, .policy-modal-body .pp-ext-links a { background: var(--susiro-surface); color: var(--susiro-navy); border: 1px solid var(--susiro-border); border-radius: 0; padding: 7px 10px; }
.policy-modal-body .pp-nav a:hover, .policy-modal-body .pp-ext-links a:hover { background: var(--susiro-blue-soft); }
.policy-modal-box a:focus-visible, .policy-modal-close-btn:focus-visible { outline: 2px solid var(--susiro-navy); outline-offset: 2px; }
@media (max-width: 600px) {
  .policy-modal-body .pp-header { padding: 18px 16px; }
  .policy-modal-body .pp-header h1 { font-size: 22px; }
  .policy-modal-body .pp-wrap { padding: 16px 12px 24px; }
  .policy-modal-body .pp-section { padding: 16px 12px; }
  .policy-modal-body table.pp-table th, .policy-modal-body table.pp-table td { padding: 8px 6px; }
  .policy-modal-body .pp-nav a, .policy-modal-body .pp-ext-links a { min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
}

/* Imported workbook editor: local-only cells, scoped away from grade/PDF forms. */
.grade-workbook-editor { min-width:0; margin:16px 0; border:1px solid #b8cbea; background:#fff; color:#06346f; }
.grade-workbook-editor[hidden] { display:none; }
.grade-workbook-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:7px; padding:12px; background:#f3f6fb; }
.grade-workbook-editor button { border:1px solid #b8cbea; border-radius:0; padding:8px 11px; color:#06346f; background:#fff; font:inherit; font-size:13px; cursor:pointer; }
.grade-workbook-editor button:disabled { opacity:.45; cursor:default; }
.grade-workbook-filename { flex:1 1 100%; font-size:14px; overflow-wrap:anywhere; }
.grade-workbook-editor [data-wb="download"] { background:#06346f; color:white; }
.grade-workbook-formula { display:flex; align-items:center; gap:10px; padding:8px 12px; border-top:1px solid #d8e2f2; border-bottom:1px solid #d8e2f2; }
.grade-workbook-formula output { min-width:50px; font-weight:700; }
.grade-workbook-formula label { font-size:12px; white-space:nowrap; }
.grade-workbook-formula input { min-width:0; flex:1; height:32px; border:1px solid #b8cbea; border-radius:0; padding:4px 8px; font:inherit; }
.grade-workbook-scroll { overflow:auto; max-height:420px; height:420px; width:100%; overscroll-behavior:contain; background:#fff; }
.grade-workbook-table { table-layout:fixed; border-collapse:separate; border-spacing:0; margin:0!important; font-size:13px; }
.grade-workbook-table th,.grade-workbook-table td { position:relative; padding:0!important; border:0; border-right:1px solid #dbe4f1; border-bottom:1px solid #dbe4f1; min-width:0; height:inherit; background:transparent; }
.grade-workbook-table thead { position:sticky; top:0; z-index:3; }
.grade-workbook-table th { height:32px; text-align:center; background:#edf2f9!important; color:#06346f!important; font-weight:600; }
.grade-workbook-table tbody th { position:sticky; left:0; z-index:2; }
.grade-workbook-table thead th:first-child { position:sticky; left:0; z-index:4; }
.grade-workbook-table input { display:block; box-sizing:border-box; width:100%!important; min-width:0!important; height:100%; min-height:28px; padding:5px 7px!important; border:0!important; border-radius:0!important; background:transparent!important; color:#183858; font:inherit; outline:none; }
.grade-workbook-table input.wb-selected { box-shadow:inset 0 0 0 2px #06346f; background:#f3f6fc!important; }
.grade-workbook-table input[readonly] { color:#6a7890; }
.grade-workbook-resize { position:absolute; touch-action:none; z-index:5; }
.grade-workbook-resize.col { top:0; right:-5px; bottom:0; width:12px; cursor:col-resize; }
.grade-workbook-resize.row { left:0; bottom:-5px; right:0; height:12px; cursor:row-resize; }
.grade-workbook-tabs { display:flex; overflow-x:auto; gap:5px; padding:8px; border-top:1px solid #b8cbea; background:#f3f6fb; }
.grade-workbook-tabs button { flex:none; }
.grade-workbook-tabs button[aria-pressed="true"] { background:#06346f; color:white; }
.grade-workbook-footer { display:flex; flex-wrap:wrap; align-items:center; gap:12px; justify-content:space-between; padding:12px; }
.grade-workbook-status { flex:1 1 260px; font-size:12px; line-height:1.6; color:#576c8c; }
.grade-workbook-footer [data-wb="review"] { background:#06346f; color:white; }
.grade-workbook-paste { margin:14px 0; }
.grade-workbook-paste summary { cursor:pointer; margin-bottom:12px; font-size:13px; }
.grade-ai-sheet-review .grade-file-upload-row,
.grade-ai-sheet-review .grade-workbook-paste,
.grade-ai-sheet-review .grade-import-options { display:none; }
.grade-ai-sheet-review .grade-spreadsheet-import { padding:12px; }
.grade-ai-confirm { display:flex; align-items:center; gap:8px; margin:14px 0; color:#06346f; font-weight:600; }
.grade-ai-confirm input { width:18px; height:18px; flex:none; }
.grade-ai-original { margin:12px 0; }
.grade-ai-original summary { cursor:pointer; color:#06346f; }
.grade-ai-original figure { margin:12px 0; }
.grade-ai-original img { width:100%; height:auto; border:1px solid #b8cbea; }
@media(max-width:600px) {
  .grade-workbook-scroll { height:340px; max-height:340px; }
  .grade-workbook-toolbar { padding:8px; gap:5px; }
  .grade-workbook-editor button { padding:9px 8px; font-size:12px; }
  .grade-workbook-formula { padding:8px; gap:6px; }
  .grade-workbook-footer [data-wb="review"] { width:100%; }
}

#grade-rows .grade-save-invalid { border-color:#c53e32!important; outline:2px solid #c53e32; outline-offset:1px; }
