/* GLLX Folder Structure Builder v1.0 — local system fonts, no external assets. */
:root {
  color-scheme: light;
  --cream: #f7f5ef;
  --navy: #101a35;
  --coral: #ff765f;
  --teal: #49d4c4;
  --ink: #26334c;
  --muted: #626d80;
  --line: #e1e5e9;
  --focus: #00776e;
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, input, textarea, select { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea, select, summary, a { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--focus); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 1.2rem; font-weight: 720; letter-spacing: -.025em; }
h3 { font-size: .93rem; font-weight: 700; }
input[type='checkbox'] { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--navy); cursor: pointer; }
input:not([type='checkbox']):not([type='file']), select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--navy);
  border: 1px solid #8793a3;
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #626d80; opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: #788596; }
input:focus, textarea:focus, select:focus { border-color: var(--focus); }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: #aa332b; background: #fffaf8; }
textarea { resize: vertical; min-height: 76px; }
label { display: block; font-size: .88rem; font-weight: 650; }
code { font: .85em ui-monospace, SFMono-Regular, Consolas, monospace; background: #edf0f3; border-radius: 4px; padding: 2px 4px; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; left: 16px; top: 12px; padding: 12px 18px; color: #fff; background: var(--navy); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { max-width: 1392px; margin: 0 auto; padding: 25px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid #dfdfd8; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand-logo { display: block; width: 104px; height: 104px; object-fit: contain; flex: 0 0 auto; }
.brand strong { display: block; font-size: 1.25rem; letter-spacing: .03em; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: .66rem; letter-spacing: .03em; margin-top: 5px; }
.site-header nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 24px; font-size: .8rem; font-weight: 650; }
.site-header nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { text-decoration: underline; }
.staff-badge { padding: 6px 10px; border: 1px solid #d4dacf; border-radius: 5px; font-size: .64rem; letter-spacing: .12em; white-space: nowrap; color: #536456; }
.shell { max-width: 1296px; margin: 0 auto; padding: 40px 32px 56px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.eyebrow { font-size: .69rem; letter-spacing: .09em; font-weight: 700; color: #456961; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #238878; display: inline-block; margin-right: 6px; }
h1 { font-size: clamp(2rem, 3.5vw, 2.9rem); font-weight: 780; letter-spacing: -.047em; margin: 13px 0 15px; }
h1 span { color: #287a70; }
.intro { color: var(--muted); font-size: .92rem; line-height: 1.75; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 5px; flex-shrink: 0; }
.button, .small-button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #cdd3dc;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.button { min-height: 44px; padding: 10px 16px; font-size: .83rem; }
.small-button { min-height: 34px; padding: 6px 10px; font-size: .75rem; }
.icon-button { width: 34px; height: 34px; min-width: 34px; padding: 3px; font-size: 1.02rem; }
.button:hover:not(:disabled), .small-button:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: #f1f5f5; border-color: #90a8a3; }
.button:active:not(:disabled), .small-button:active:not(:disabled), .icon-button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled, .small-button:disabled, .icon-button:disabled { background: #eef0f2; color: #747b86; border-color: #dde1e6; }
.primary { background: var(--coral); border-color: var(--coral); color: var(--navy); }
.primary:hover:not(:disabled) { background: #ff8975; border-color: #f0634c; }
.danger { color: #9e3d31; }
.danger:hover:not(:disabled) { background: #fff1ed; border-color: #dab0a6; }
.workflow { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 26px; background: #efeee7; border: 1px solid #e1e2d9; border-radius: 10px; }
.workflow li { flex: 1 1 0; min-width: 0; }
.workflow li + li { border-left: 1px solid #dcded6; }
.workflow a { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 10px 15px; text-decoration: none; font-size: .75rem; font-weight: 650; }
.workflow a:hover { background: #e4ebe3; }
.workflow b { font-size: .66rem; color: #476b60; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: 24px; }
.editor-column, .preview-column { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; min-width: 0; scroll-margin-top: 24px; }
.panel-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 21px; }
.panel-heading > div:not(.step-number) { min-width: 0; flex: 1; }
.panel-heading p:not(.eyebrow) { font-size: .79rem; color: var(--muted); margin-top: 5px; }
.step-number { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border-radius: 9px; background: #f0f2f4; color: #58677b; font-size: .7rem; font-weight: 750; }
.badge { margin-left: auto; max-width: 155px; border: 1px solid #dbe6e1; background: #eff7f2; color: #3e6754; padding: 4px 8px; border-radius: 20px; font-size: .67rem; font-weight: 650; text-align: center; }
.upload-zone { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px dashed #99b6ad; border-radius: 10px; background: #f5f9f6; }
.upload-zone > div:last-child { min-width: 0; flex: 1; }
.upload-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 12px; background: #e0eee7; font-size: 1.65rem; color: #36715b; }
.upload-zone label { font-size: .95rem; }
.upload-zone p { font-size: .73rem; color: var(--muted); margin: 3px 0 10px; }
input[type='file'] { display: block; width: 100%; min-width: 0; font-size: .71rem; color: var(--muted); }
input[type='file']::file-selector-button { background: var(--navy); color: #fff; border: 0; border-radius: 6px; min-height: 34px; padding: 7px 11px; margin-right: 9px; font: inherit; font-weight: 650; cursor: pointer; }
input[type='file']::file-selector-button:hover { background: #263957; }
.privacy-note { display: flex; align-items: flex-start; gap: 7px; margin: 12px 0 0; font-size: .71rem; line-height: 1.6; color: #596d62; }
.privacy-note > span { font-size: 1rem; line-height: 1.1; }
.import-summary { margin-top: 15px; font-size: .82rem; color: #256452; }
.import-summary:empty { display: none; }
.validation-details { margin-top: 12px; padding: 10px 12px; background: #fff4e2; border: 1px solid #ead8b8; border-radius: 8px; color: #775020; font-size: .76rem; }
.validation-details summary { cursor: pointer; font-weight: 650; min-height: 24px; }
.validation-details ul { padding-left: 18px; margin: 10px 0 0; }
.validation-details li + li { margin-top: 5px; }
.student-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; font-size: .75rem; font-weight: 650; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .79rem; }
th { padding: 10px 12px; background: #f4f6f8; color: #626d80; font-size: .68rem; font-weight: 650; letter-spacing: .035em; }
td { padding: 10px 12px; border-top: 1px solid #e9ecef; vertical-align: middle; }
tbody tr:hover { background: #fafcfb; }
.student-table td:nth-child(2) { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.student-table td:nth-child(3) { overflow-wrap: anywhere; }
.student-table th:first-child, .student-table td:first-child { width: 42px; padding-right: 3px; }
.student-table th:last-child, .student-table td:last-child { width: 48px; padding-left: 4px; }
.student-table td input { display: block; margin: 0; }
#student-table-wrap { max-height: 344px; overflow-y: auto; }
.student-table th { position: sticky; top: 0; z-index: 1; }
#more-students { margin-top: 10px; }
.templates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 23px; }
.templates button { min-height: 69px; padding: 11px 6px; color: #526079; background: #fff; border: 1px solid #d8dee5; border-radius: 9px; text-align: center; }
.templates strong { display: block; font-size: .9rem; }
.templates span { display: block; font-size: .67rem; margin-top: 4px; }
.templates button:hover { border-color: #6f9791; background: #f3f9f7; }
.templates button[aria-pressed='true'] { color: var(--navy); border: 2px solid #368f82; padding: 10px 5px; background: #e8f7f2; }
.field { margin-top: 19px; }
.field > label { margin-bottom: 7px; }
.field-hint { margin-top: 7px; color: var(--muted); font-size: .73rem; line-height: 1.65; overflow-wrap: anywhere; }
.field-hint:empty { display: none; }
.example { margin-top: 7px; color: #3e7262; font-size: .76rem; overflow-wrap: anywhere; }
.details-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 23px; }
.details-grid h3 { margin-bottom: 9px; }
.muted { color: var(--muted); font-size: .72rem; font-weight: 400; }
.value-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.value-row input { font-size: .78rem; }
.value-row .icon-button { flex: 0 0 32px; width: 32px; min-width: 32px; height: 36px; background: #fafbfc; }
.add-button { color: #37675b; background: #f4f9f6; border-color: #dae5df; }
.criteria-field { margin-top: 23px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.chips > span, .chip { display: inline-flex; align-items: center; min-height: 27px; padding: 3px 9px; border: 1px solid #d7e8e0; border-radius: 5px; color: #35634f; background: #f0f7f2; font: 650 .7rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.inline-error { color: #a0382c; font-size: .77rem; margin-top: 8px; }
.inline-error:empty { display: none; }
#criteria-source[aria-invalid='false'] ~ #criteria-error { color: #326c57; }
.combination-note { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 19px; }
.hierarchy { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 9px; counter-reset: level; }
.level-row { border: 1px solid #d9e1e4; border-radius: 9px; background: #f8faf9; padding: 9px 10px; position: relative; transition: border-color .15s, background .15s; }
.level-main { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.drag-handle { display: grid; place-items: center; min-width: 32px; height: 36px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #7c8797; cursor: grab; font-size: 1.2rem; touch-action: none; }
.drag-handle:hover { color: var(--navy); background: #e4ede7; }
.drag-handle:active { cursor: grabbing; }
.level-enabled { margin: 0; }
.level-label { min-width: 0; flex: 1; font-size: .86rem; font-weight: 650; overflow-wrap: anywhere; }
.level-order { font-size: .65rem; color: #667084; white-space: nowrap; }
.level-arrows { display: flex; gap: 4px; margin-left: auto; flex-shrink: 0; }
.level-arrows .icon-button { background: #fff; border-color: #e0e5e8; }
.is-disabled { background: #f6f7f8; border-style: dashed; }
.is-disabled .level-label { color: #747b88; font-weight: 500; }
.is-disabled .level-label::after { content: ' · off'; font-size: .72rem; }
.drag-over { border-color: #267d6d; background: #dbf4eb; box-shadow: 0 0 0 2px #72c0aa; }
.dragging { opacity: .5; }
.custom-fields { display: grid; gap: 10px; margin: 12px 3px 3px; padding-top: 12px; border-top: 1px solid #dce5df; }
.custom-fields label { font-size: .75rem; }
.custom-fields input, .custom-fields textarea { margin-top: 5px; font-size: .8rem; }
.preview-panel { padding-bottom: 20px; }
.preview-panel .step-number { color: #287767; background: #e7f3ed; }
.live-indicator { width: 8px; height: 8px; border-radius: 50%; background: #218274; margin-left: auto; box-shadow: 0 0 0 4px #e9f6f0; }
.preview-errors { font-size: .8rem; color: #89522b; }
.preview-errors:not(:empty) { margin-bottom: 17px; background: #fff5e8; border: 1px solid #eedfc8; border-radius: 8px; padding: 12px; }
.preview-errors ul { margin: 0; padding-left: 17px; }
.preview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 20px; padding: 17px 0; background: #f6f8f8; border: 1px solid #e6eae9; border-radius: 10px; text-align: center; }
.preview-stats > div + div { border-left: 1px solid #dce2e1; }
.preview-stats strong { display: block; font-size: 1.55rem; letter-spacing: -.04em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.preview-stats span { display: block; color: #647181; font-size: .64rem; margin-top: 5px; }
.tree-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 11px 15px; background: #1b2944; color: #d0dadf; border-radius: 10px 10px 0 0; font-size: .6rem; letter-spacing: .13em; }
.tree { color: #dbf0e4; background: var(--navy); margin: 0; padding: 18px 17px 22px; border-radius: 0 0 10px 10px; font: .75rem/1.9 ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace; min-height: 195px; max-height: 610px; overflow: auto; tab-size: 2; white-space: pre; overscroll-behavior: contain; }
.preview-bottom { display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 13px; }
.preview-bottom p { flex: 1 1 190px; color: var(--muted); font-size: .7rem; line-height: 1.65; }
.preview-bottom button { flex: 0 0 auto; }
.preview-warning { margin-top: 15px; padding: 12px; border: 1px solid #edc898; border-radius: 8px; background: #fff4e5; color: #86521b; font-size: .78rem; }
.save-panel .panel-heading { margin-bottom: 15px; }
.save-panel .field:first-of-type { margin-top: 0; }
.checkbox-label { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-size: .77rem; font-weight: 500; line-height: 1.6; cursor: pointer; }
.checkbox-label input { margin: 3px 0 0; }
.save-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.save-actions .button { flex: 1; }
#save-schema { background: var(--navy); color: #fff; border-color: var(--navy); }
#save-schema:hover { background: #283b59; }
.save-state { margin: 10px 0 17px; color: #647180; font-size: .7rem; }
.zip-button { width: 100%; min-height: 50px; font-size: .83rem; }
.zip-button > span { font-size: 1.4rem; line-height: 1; }
.schema-file-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.schema-file-actions .small-button { flex: 1; }
.help-card { padding: 19px 22px; background: #e8eee5; border: 1px solid #dce4d8; border-radius: 12px; color: #3b5b48; }
.help-card strong { font-size: .82rem; }
.help-card p { font-size: .77rem; line-height: 1.75; margin-top: 6px; }
.recent-panel { margin-top: 26px; padding: 27px; }
.recent-panel .panel-heading { margin-bottom: 8px; }
.recent-panel .eyebrow { margin-bottom: 9px; font-size: .6rem; letter-spacing: .14em; }
.recent-panel .table-scroll { margin-top: 20px; }
.recent-table { min-width: 630px; }
.recent-table td:first-child { font-weight: 650; max-width: 340px; overflow-wrap: anywhere; }
.recent-table td:last-child { width: 310px; }
.recent-table td .small-button { margin: 2px 3px 2px 0; }
.recent-table td .badge { display: inline-block; }
.remembered-label { display: block; margin-top: 3px; color: #647180; font-size: .68rem; font-weight: 400; }
.empty-state { text-align: center; padding: 34px 16px 23px; }
.empty-state > span { display: inline-grid; place-items: center; width: 44px; height: 44px; color: #6e897c; background: #eff3ee; border-radius: 11px; font-size: 1.5rem; margin-bottom: 12px; }
.empty-state h3 { font-size: .91rem; }
.empty-state p { color: var(--muted); font-size: .79rem; margin-top: 7px; }
.notice { margin: 0 0 22px; padding: 13px 17px; background: #eaf7ef; border: 1px solid #bcd7c8; border-radius: 10px; color: #286246; font-size: .86rem; overflow-wrap: anywhere; }
#notice { position: sticky; top: 10px; z-index: 5; max-height: 25vh; overflow: auto; }
.notice.error { background: #fff0ec; border-color: #e7bfb3; color: #943d2c; }
.notice.warning { background: #fff5e5; border-color: #ead1a8; color: #775023; }
.site-footer { max-width: 1296px; margin: 0 auto; border-top: 1px solid #dddcd3; padding: 27px 32px 35px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .brand-logo { width: 88px; height: 88px; }
.site-footer .brand strong { font-size: 1.02rem; }
.site-footer .brand small { font-size: .59rem; }
.site-footer p { color: #55685d; font-size: .78rem; }
.footer-copy { display: grid; gap: 8px; }
.site-footer .footer-copy a { color: var(--navy); }
.site-footer > span { color: var(--muted); font-size: .65rem; }
dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 27px; border: 1px solid #d8dfe4; border-radius: 16px; color: var(--navy); background: #fff; box-shadow: 0 15px 65px #101a3526; overflow-y: auto; }
dialog::backdrop { background: #101a3580; backdrop-filter: blur(3px); }
dialog h2 { font-size: 1.3rem; }
dialog p { margin-top: 13px; color: #5d687a; font-size: .88rem; line-height: 1.75; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
@media (min-width: 1440px) { .shell { padding-top: 45px; } }
@media (max-width: 1100px) {
  .site-header { padding: 22px 28px; }
  .shell { padding: 32px 24px 42px; }
  .workspace { gap: 18px; }
  .panel { padding: 20px; }
  .page-heading { align-items: flex-start; }
  .heading-actions { flex-direction: column; min-width: 126px; padding-top: 25px; }
  .workflow a { padding: 10px; gap: 6px; font-size: .7rem; }
  .details-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .student-controls { align-items: flex-start; }
  .panel-heading .badge { margin-left: 44px; }
  .level-main { gap: 7px; }
  .level-order { display: none; }
  .site-footer { padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 780px) {
  .site-header { padding: 18px 22px; }
  .site-header nav { width: 100%; justify-content: flex-start; gap: 8px 16px; }
  .staff-badge { display: none; }
  .shell { padding: 28px 20px 36px; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-heading { gap: 18px; }
  h1 { font-size: 2.3rem; max-width: 410px; }
  .workflow { flex-wrap: wrap; }
  .workflow li { flex: 1 1 30%; }
  .workflow a { min-height: 44px; padding: 10px 12px; }
  .workflow li:nth-child(4) { border-left: 0; }
  .workflow li:nth-child(n+4) { border-top: 1px solid #dcded6; }
  .panel { padding: 23px; }
  .panel-heading .badge { margin-left: auto; }
  .details-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .level-order { display: block; }
  .tree { max-height: 460px; }
  .site-footer { flex-wrap: wrap; gap: 18px; }
  .site-footer .footer-copy { flex: 1 0 100%; }
  .site-footer > span { flex: 1 0 100%; text-align: center; }
}
@media (max-width: 520px) {
  :root { font-size: 15px; }
  .site-header { padding: 16px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-logo { width: 88px; height: 88px; }
  .brand strong { font-size: 1.15rem; }
  .brand small { font-size: .59rem; }
  .site-header nav { gap: 10px; font-size: .69rem; }
  .site-header nav a:first-child { display: inline-flex; }
  .shell { padding: 27px 14px 32px; }
  .page-heading { flex-direction: column; gap: 17px; margin-bottom: 23px; }
  .eyebrow { font-size: .63rem; letter-spacing: .04em; }
  h1 { font-size: 2.13rem; margin-top: 11px; max-width: 350px; }
  .intro { font-size: .82rem; }
  .intro br { display: none; }
  .heading-actions { flex-direction: row; padding: 0; width: 100%; }
  .heading-actions .button { flex: 1; }
  .workflow { margin-bottom: 20px; }
  .workflow a { gap: 5px; padding: 9px 8px; font-size: .66rem; }
  .workflow b { font-size: .61rem; }
  .editor-column, .preview-column { gap: 18px; }
  .panel { padding: 19px 16px; border-radius: 12px; }
  .panel-heading { gap: 10px; margin-bottom: 18px; }
  h2 { font-size: 1.1rem; }
  .panel-heading p:not(.eyebrow) { font-size: .73rem; }
  .panel-heading .badge { margin-left: 42px; }
  .upload-zone { padding: 14px 12px; gap: 11px; }
  .upload-icon { width: 34px; height: 38px; flex-basis: 34px; border-radius: 8px; }
  .upload-zone label { font-size: .87rem; }
  .upload-zone p { font-size: .65rem; }
  input[type='file'] { font-size: .65rem; }
  input[type='file']::file-selector-button { padding: 6px 8px; margin-right: 5px; }
  .privacy-note { font-size: .68rem; }
  .student-controls .inline-actions { width: 100%; }
  .student-controls .small-button { flex: 1; }
  th, td { padding: 9px 8px; }
  .student-table { font-size: .74rem; }
  .templates { gap: 5px; }
  .templates button { min-height: 65px; padding: 10px 4px; }
  .templates strong { font-size: .81rem; }
  .templates span { font-size: .62rem; }
  .templates button[aria-pressed='true'] { padding: 9px 3px; }
  .details-grid { grid-template-columns: minmax(0, 1fr); }
  input:not([type='checkbox']):not([type='file']), textarea, select { font-size: 16px; }
  .level-main { gap: 7px; }
  .level-row { padding: 8px 7px; }
  .drag-handle { min-width: 24px; }
  .level-label { font-size: .8rem; }
  .level-order { display: none; }
  .level-arrows { gap: 3px; }
  .level-arrows .icon-button { width: 32px; min-width: 32px; }
  .preview-stats strong { font-size: 1.4rem; }
  .tree { font-size: .69rem; padding: 14px 12px; }
  .preview-bottom p { flex-basis: 100%; }
  .zip-button { padding-right: 9px; padding-left: 9px; font-size: .77rem; }
  .recent-panel { margin-top: 20px; }
  .recent-panel .panel-heading { align-items: flex-start; }
  .recent-panel .panel-heading > div { flex-basis: 100%; }
  .recent-panel #view-all { margin-top: 3px; }
  .site-footer { padding: 23px 18px; gap: 16px; }
  .site-footer p { font-size: .7rem; }
  .site-footer > span { text-align: left; }
  dialog { padding: 23px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .site-header nav, .heading-actions, .workflow, .editor-column, .save-panel, .help-card, .recent-panel, .site-footer, .notice, .preview-bottom button { display: none !important; }
  .shell { max-width: none; padding: 0; }
  .workspace { display: block; }
  .tree { max-height: none; white-space: pre-wrap; color: #000; background: #fff; }
  .tree-toolbar { color: #000; background: #eee; }
  .panel { break-inside: avoid; }
}
