.academic-structure { display: grid; gap: 24px; min-width: 0; color: var(--ss-text, #0f172a); }
.academic-structure__hero { display: flex; justify-content: space-between; gap: 24px; padding: 28px; border-radius: 20px; background: #173a8a; color: #fff; }
.academic-structure__hero span, .academic-section > header span { color: #fbbf24; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.academic-structure__hero h3 { margin: 5px 0 8px; font-size: clamp(24px, 3vw, 34px); }
.academic-structure__hero p { margin: 0; max-width: 620px; color: #dbeafe; }
.academic-structure__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.academic-local-notice, .academic-jaspe, .academic-denied { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid #f59e0b66; border-radius: 16px; background: #fffbeb; }
.academic-local-notice svg, .academic-jaspe svg, .academic-denied svg { flex: 0 0 auto; width: 22px; color: #b45309; }
.academic-local-notice p, .academic-jaspe p, .academic-denied p { margin: 4px 0 0; }
.academic-section { min-width: 0; padding: 22px; border: 1px solid var(--ss-border, #dbe3ef); border-radius: 20px; background: var(--ss-surface, #fff); }
.academic-section > header { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 16px; }
.academic-section > header h3 { margin: 3px 0 0; font-size: 21px; }
.academic-section > header p { margin: 0; color: var(--ss-text-muted, #64748b); }
.academic-year-grid, .academic-level-grid, .academic-class-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; min-width: 0; }
.academic-year-card, .academic-level-card, .academic-class-card { min-width: 0; padding: 18px; border: 1px solid var(--ss-border, #dbe3ef); border-radius: 16px; background: var(--ss-surface-raised, #fff); box-shadow: 0 8px 22px #0f172a0a; }
.academic-year-card header, .academic-class-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.academic-year-card h3, .academic-level-card h3, .academic-class-card h3 { margin: 4px 0; overflow-wrap: anywhere; }
.academic-year-card header span:first-child, .academic-level-card > span, .academic-class-card header span:first-child { color: var(--ss-text-muted, #64748b); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.academic-year-card dl, .academic-class-card dl { display: grid; gap: 9px; margin: 14px 0; }
.academic-year-card dl div, .academic-class-card dl div { display: flex; justify-content: space-between; gap: 10px; }
.academic-year-card dt, .academic-class-card dt { color: var(--ss-text-muted, #64748b); }
.academic-year-card dd, .academic-class-card dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.academic-year-card footer { padding-top: 10px; border-top: 1px solid var(--ss-border, #e2e8f0); color: var(--ss-text-muted, #64748b); font-size: 12px; }
.academic-level-card p { margin: 8px 0 0; color: var(--ss-text-muted, #64748b); }
.academic-card-edit { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; border: 0; background: transparent; color: #1d4ed8; font-weight: 800; cursor: pointer; }
.academic-card-edit svg { width: 17px; }
.academic-draft-indicator { display: grid; grid-template-columns: auto auto; gap: 5px 10px; margin: 14px 0; padding: 10px 12px; border: 1px solid #f59e0b66; border-radius: 12px; background: #fffbeb; color: #92400e; }
.academic-draft-indicator span, .academic-draft-indicator strong { font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.academic-draft-indicator strong { text-align: right; }
.academic-draft-indicator small { grid-column: 1 / -1; }
.academic-readonly { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 999px; background: #ffffff18; color: #fff !important; }
.academic-modal-state { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; background: #fffbeb; color: #92400e; font-weight: 800; }
.academic-modal-copy { color: var(--ss-text-muted, #64748b); line-height: 1.5; }
[data-theme="dark"] .academic-local-notice, [data-theme="dark"] .academic-jaspe, [data-theme="dark"] .academic-denied, [data-theme="dark"] .academic-modal-state, [data-theme="dark"] .academic-draft-indicator { background: #422006; color: #fde68a; }
@media (max-width: 720px) {
  .academic-structure { gap: 16px; }
  .academic-structure__hero { flex-direction: column; padding: 20px; }
  .academic-structure__actions { justify-content: stretch; }
  .academic-structure__actions .ss-button { flex: 1 1 100%; justify-content: center; }
  .academic-section { padding: 16px; }
  .academic-section > header { align-items: flex-start; flex-direction: column; gap: 6px; }
  .academic-year-grid, .academic-level-grid, .academic-class-grid { grid-template-columns: 1fr; }
}
