.catalog-tools {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 9px;}
.catalog-list {background:#fff;border:1px solid #dce9e2;border-radius:14px;}
.catalog-list table {min-width:470px;}
.catalog-list th {background:#edf5f0;}
.work-body .catalog-list td,.work-body .catalog-list th {padding:13px 15px;height:auto;}
.catalog-name {display:flex;align-items:center;gap:10px;}
.catalog-name img,.catalog-owner img {width:22px;height:22px;}
.catalog-list .link {min-height:36px;white-space:nowrap;}
.catalog-list td:last-child {white-space:normal;}
.catalog-five {max-height:49vh;overflow:auto;}
.catalog-five table {min-width:700px;}
.catalog-five thead {position:sticky;top:0;z-index:1;}
.catalog-five td:nth-child(4),.catalog-five td:nth-child(5) {min-width:150px;}
.catalog-five td {overflow-wrap:anywhere;}
.catalog-empty {min-height:210px;display:grid;place-content:center;justify-items:center;gap:7px;background:#fff;border:1px dashed #bad3c7;border-radius:16px;color:#42685b;}
.catalog-empty img {width:36px;height:36px;}
.catalog-owner,.catalog-owner .pill {display:flex;align-items:center;gap:8px;width:fit-content;}
.catalog-upload {max-width:720px;display:grid;gap:15px;}
.catalog-file {display:grid;gap:9px;padding:13px;border:1px dashed #a9ccbe;border-radius:10px;background:#f3faf6;}
.catalog-file input {width:100%;min-width:0;}
.catalog-publish {display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;margin-top:14px;}
#libraries .primary {color:#fff;background:#14695f;border-color:#10574f;}
#libraries .primary:hover {background:#105a51;}
.lookup {display:flex;align-items:center;gap:6px;min-width:0;background:#fdfefd;border:1px solid #dcebe4;border-radius:9px;padding-left:8px;}
.lookup img {width:16px;height:16px;}
.lookup input {width:113px; min-height:30px; padding:4px 6px; border:0; background:transparent; font-size:12px;}
.catalog-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; min-height:26px; }
.catalog-pagination .subtle { font-size:11px; }
.catalog-page-buttons { display:flex; gap:5px; }
.catalog-page-buttons button { min-height:26px; line-height:16px; }
.word-grid table { table-layout:fixed; min-width:470px; }
.word-grid th:nth-child(1),.word-grid th:nth-child(4) { width:11.45%; }
.word-grid th:nth-child(2) { width:20%; }
.word-grid th:nth-child(3),.word-grid th:nth-child(5) { width:18.05%; }
.word-grid td { overflow-wrap:anywhere; }
.choice-editor table { table-layout: fixed; }
.choice-editor th:first-child { width: 30.8%; }
.work-body .choice-editor th,.work-body .choice-editor td { padding: 0 8px; }
.work-body .choice-editor th { height: 27px; }
.work-body .choice-editor td { height: 28.6px; }
.choice-editor input { border-color: transparent; background: #fff; min-height: 26px; padding: 2px 0; }
.question-fields details {font-size:12px;color:#4b6a61;}
.question-fields details summary {cursor:pointer;}
.library-layout { display:grid; grid-template-columns:135px minmax(0,1fr); gap:10px; }
.library-layout .card-head .subtle { margin-top:4px; font-size:12px; }
.level-card { padding:10px 11px; }
.level-card .card-head { margin-bottom:4px; }
.level-card h2 { font-size:13px; }
.level-card .link { white-space:nowrap; }
.level-card .subtle { padding:0 4px; }
.level-tree { display:grid; gap:4px; margin-top:9px; }
.level-node { padding:5px 6px; color:#2d6659; font-size:12px; font-weight:650; }
.level-node::before { content:'⌄'; margin-right:5px; }
.lesson-node { background:transparent; border:0; border-radius:8px; padding:5px 5px 5px 13px; min-height:34px; text-align:left; display:flex; align-items:center; justify-content:space-between; gap:3px; font-size:12px; color:#426960; }
.lesson-node[aria-current] { background:#e4f4ec; color:#155b50; font-weight:730; }
.lesson-node small { color:#54746a; white-space:nowrap; }
.import-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:center; min-height:33px; gap:10px; margin:6px 0 13px; }
.step { display:flex; gap:7px; align-items:center; font-size:13px; color:#5d786e; }
.step span { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#e3efe9; }
.step.current { color:#155b50; font-weight:690; }
.step.current span { background:#14766d; color:#fff; }
.upload { display:grid; place-items:center; background:#f3faf6; padding:18px; border-radius:12px; border:1px dashed #a3cbbd; }
.upload img { width:28px; height:28px; filter:brightness(.55); }
.upload input { width:min(100%,360px); text-align:center; }
.preview { margin-top:0; }
.preview .summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.import-metric { display:flex; gap:7px; align-items:center; border-radius:10px; padding:9px; color:#365e54; background:#e7f4ed; font-size:13px; }
.import-metric strong { font-size:22px; }
.import-metric.update { background:#eee9fb; }
.import-metric.skip { background:#eaf0ed; }
.import-metric.error { background:#ffeae6; color:#893c32; }
.short-select { max-width:340px; }
/* Reading editor uses the board's two equal panels on desktop. */
.author { gap: 11px; }
.author .heading { margin-bottom: 0; }
.reading-editor-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; align-items: stretch; }
.reading-editor-pane {
  min-width: 0; min-height: 342px; border: 1px solid var(--border); border-radius: 13px;
  padding: 12px; display: grid; align-content: start; gap: 9px;
  background: var(--paper);
}
.reading-pane-header { display: flex; min-height: 31px; justify-content: space-between; align-items: center; gap: 8px; }
.reading-pane-header h2 { font-size: 16px; }
.reading-document-status { padding: 6px 9px; border: 1px solid #dce9e3; min-height: 32px; border-radius: 8px; background: #fbfdfc; color: #254f45; font-size: 12px; overflow-wrap: anywhere; }
.reading-passage { display: flex; flex-direction: column; gap: 3px; min-height: 160px; padding: 12px; border: 1px solid #d7e6e0; border-radius: 10px; background: #f3f8f6; }
.reading-passage input,.reading-passage textarea { padding: 3px 0; background: transparent; border-color: transparent; }
.reading-passage input { font-weight: 740; font-size: 16px; }
.reading-passage textarea { flex: 1; min-height: 88px; font: 13px/1.52 "Segoe UI",sans-serif; }
.reading-question-pane { position: relative; grid-template-rows: auto 1fr auto; row-gap: 0; }
.reading-pane-header select { width: auto; font-size: 15px; font-weight: 770; border-color: transparent; background: transparent; padding-inline: 0 8px; }
#question-meta { background: #eee9fb; color: #593e8c; }
#reading-questions { min-width: 0; }
.question-fields { display: grid; gap: 9px; border: 0; padding: 0; margin: 0; min-width: 0; }
.question-fields label,.reading-editor-pane label { gap: 3px; font-size: 11px; line-height: 16px; }
.question-options:not([open]) { position: absolute; bottom: 12px; left: 12px; min-height: 31px; display: flex; align-items: center; }
.question-options[open] { display: grid; gap: 5px; padding-top: 3px; }
.question-options[open] label { margin-top: 4px; }
.reading-editor-actions { display: flex; justify-content: flex-end; gap: 7px; }
.author-footer { justify-content: flex-end; margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pilot-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:11px; }
.pilot-metrics>div { background:#eee9fb; padding:8px 12px; min-height:41px; border-radius:10px; display:flex; gap:8px; align-items:center; color:#315a4d; font-size:13px; }
.pilot-metrics>div:nth-child(2) { background:#e4f5ed; }
.pilot-metrics>div:nth-child(3) { background:#fff1ce; }
.pilot-metrics strong { font-size:22px; }
#audio-metrics,#pilot-plan .pilot-metrics { grid-template-columns:repeat(auto-fit,minmax(125px,1fr)); }
#audio-metrics { margin-bottom:6px; }
#audio-progress { display:block; width:100%; height:8px; accent-color:#2c9988; }
.audio-table,#pilot-bank .table-scroll { max-height:171px; overflow:auto; }
.audio-table th,#pilot-bank th { position:sticky; top:0; }
#word-form { gap:6.6px; }
#word-form label,#lesson-settings-form label,#import-form label:not(.upload) { gap:3px; }
.form-footer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:9px; }
.form-footer details { font-size:12px; color:#246254; }
.form-footer summary { cursor:pointer; }
.form-footer details[open] summary { margin-bottom:6px; }
#lesson-settings-form { gap:10px; min-height:294px; }
#lesson-settings-form .audio-review>div { min-height:49px; padding:7px 10px; }
#lesson-settings-form .info-callout { margin:0; }
#import-form { gap:8px; }
#word-form textarea[name=example] { min-height:32px; padding:5px 9px; }
#word-form .audio-review>div { min-height:44px; padding:5px 9px; font-size:12px; }
.audio-review .subtle { font-size:11px; }
#word-form .info-callout,#lesson-settings-form .info-callout { padding:7px 12px; min-height:32px; }
#word-form .info-callout { margin:0; background:#e5f3ed; color:#315e53; }
#textbook-coverage { margin-bottom:0; }
#textbook-editor { width:min(640px,94vw); }
#textbook-form { display:grid; gap:9px; }
#import-form .upload { min-height:165px; justify-items:center; align-content:center; gap:6px; background:#f4faf7; }
#import-form .upload img { width:24px; height:24px; }
#import-form .upload input { width:min(100%,260px); }
.upload-actions {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;}
#import-options {font-size:12px;line-height:16.4px;color:#246254;}
#import-options summary {cursor:pointer;}
#import-options[open] .fields {margin-top:6px;}
.pilot-tabs { flex-wrap:wrap; }
.audio-review { display:flex; flex-wrap:wrap; gap:10px; }
.audio-review>div { flex:1; min-width:150px; padding:12px; border-radius:9px; background:#e5f3ed; }
.audio-review>div:nth-child(2) { background:#eee9fb; }
#confirm-change { max-width:min(440px, calc(100vw - 28px)); }
#confirm-change .info-callout { font-size:14px; padding:12px; }
.info-callout { background:#ffeae6; color:#84392d; font-size:12px; padding:8px 12px; border-radius:8px; margin:9px 0 13px; }
@media (max-width:800px) {
  .layout { grid-template-columns:160px minmax(0,1fr); }
  .library-layout,.reading-editor-layout { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .layout {display:block;}
  .rail {padding:14px;gap:11px;}
  .nav-button {padding:7px 8px;font-size:12px;}
  .rail nav {display:flex;flex-wrap:wrap;}
  .heading {align-items:flex-start;flex-wrap:wrap;}
  .work-body {padding:16px 12px 25px;}
  .work-top {height:50px;padding:0 12px;}
  .work-user {gap:6px;}
  .form-footer {grid-template-columns:1fr;}
  .question-options:not([open]) { position:static; }
}

.console-filter {width:auto;max-width:100%;font-size:12px;}
.console-list {display:grid;align-content:start;gap:9px;}
.console-list .table-scroll {margin-top:0;}
.console-list-tools {justify-content:space-between;}
.console-note {padding:7px 10px;border-radius:8px;background:#e5f3ed;color:#315e53;font-size:12px;}
.log-list {min-height:281px;}
.compact-console-table table {table-layout:fixed;min-width:490px;}
.compact-console-table th,.compact-console-table td {padding-block:3px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.compact-console-table td .subtle {font-size:10px;line-height:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.compact-console-table td strong,.compact-console-table td .pill {display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.compact-console-table td .pill {width:max-content;}
.import-log-window {max-height:136px;overflow:auto;}
.import-log-window th {position:sticky;top:0;z-index:1;}
.import-log-window th:first-child {width:21%;}
.import-log-window th:nth-child(2) {width:16%;}
.import-log-window th:nth-child(3) {width:25%;}
.import-log-window th:nth-child(4) {width:25%;}
.import-log-window th:nth-child(5) {width:13%;}
.library-directory {min-height:279px;}
.textbook-directory {min-height:298px;}
.reading-directory {min-height:238px;}
.restore-banner {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-radius:9px;background:#fff3d5;font-size:12px;}
.restore-banner .subtle {font-size:11px;}
#library-editor {width:min(460px,94vw);}

.reading-publish-card {min-height:296px;}
.reading-publish-card .pilot-metrics {margin:0;}
.reading-publish-card .head-actions {justify-content:space-between;align-items:flex-start;}
.reading-publish-card details {flex:1;min-width:0;font-size:12px;color:#246254;}
.reading-publish-card summary {cursor:pointer;min-height:31px;display:list-item;padding:6px 0;}

.import-preview {min-height:276px;gap:8.4px;}
.import-preview .summary {margin:0;}
.import-preview .table-scroll {max-height:95px;}
.approval-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.approval-grid .card {min-height:256px;}
.import-mode {padding:6px 10px;border:1px solid #d8e9df;border-radius:8px;}
.import-mode-active {background:#e5f3ed;}
.import-warning {background:#fff9eb;}
.import-warning .pilot-metrics {margin:0;}
.audio-panel {min-height:311px;}
.audio-panel #audio-metrics {margin:0;}
.reading-publish-card .pilot-metrics>div {padding-block:4.4px;}
#vocab .pilot-metrics>div {padding-block:5.5px;}
#pilot-bank label {font-size:11px;gap:3px;}
@media (max-width:800px) {.approval-grid {grid-template-columns:1fr;}}

.organization-open {display:block;}
.organization-open .rail,.organization-open .work-top {display:none;}
#organization {max-width:472px;margin:0 auto;}
.org-return {margin-bottom:9px;}
#organization-panel {min-height:370px;overflow:hidden;border:2px solid #284f47;border-radius:19px;background:#fff;}
.organization-bar {display:flex;align-items:center;gap:8px;padding:10px 13px;background:#154f47;color:white;font-size:12px;}
.organization-bar span {width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#33766b;}
.organization-bar img {width:15px;height:15px;}
.organization-content {display:grid;align-content:start;gap:9px;padding:13px 14px;}
.organization-content h2 {font-size:21px;}
.organization-content h3 {margin:0;font-size:15px;}
.organization-content .short-select {flex:1;}
.organization-content .card-head,.organization-content .table-scroll {margin:0;}
.organization-content table {min-width:380px;}
.organization-content th,.organization-content td {height:29px;padding:3px 7px;}
.organization-content details {font-size:12px;}
.organization-content summary {cursor:pointer;}
.organization-content .organization-metrics {margin:0;gap:6px;}
.organization-content .organization-metrics>div {min-height:70px;display:grid;justify-content:center;gap:2px;border:1px solid #dcebe4;border-radius:13px;background:#f9fcfa;text-align:center;}
.organization-metrics strong {font-size:26px;color:#14675d;}
.organization-chart {border:1px solid #dcebe4;border-radius:13px;padding:11px;}
.organization-bars {height:106px;display:grid;grid-template-columns:repeat(5,1fr);gap:7px;padding-top:12px;}
.organization-bars>div {position:relative;display:flex;align-items:end;justify-content:center;height:76px;border-bottom:1px dashed #dcebe4;}
.organization-bars span {max-width:38px;width:76%;background:#84cabb;border-radius:5px 5px 0 0;}
.organization-bars small {position:absolute;bottom:-18px;font-size:11px;color:#46665e;white-space:nowrap;}
.organization-gate {display:grid;justify-items:center;padding:10px;background:#ecf6f1;border-radius:12px;}
.organization-qr {width:117px;height:117px;border:6px solid white;border-radius:14px;background:#fff;box-shadow:0 0 0 1px #dceae4;}
.organization-qr img {display:block;width:100%;height:100%;}
.login-guide {font-size:12px;color:var(--muted);}
.organization-gate-actions {display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;}
.org-period {gap:4px;justify-content:stretch;padding:4px;border-radius:9px;background:#e6f3ed;}
.org-period button {flex:1;min-height:27px;border:0;border-radius:6px;background:transparent;color:#225e53;font-size:12px;}
.org-period button[aria-pressed=true] {background:#fff;font-weight:700;}
#org-tabs {margin-top:10px;justify-content:center;flex-wrap:wrap;}
.audio-panel .audio-table {max-height:167px;}

#org-feedback {margin-top:10px;font-size:12px;}
#org-feedback summary {cursor:pointer;}
