#catalog-root[hidden], #catalog-root [hidden] { display:none !important; }
#catalog-root { position:fixed;inset:0;z-index:120;background:rgba(15,31,34,.64);backdrop-filter:blur(9px);color:#233a34;color-scheme:light;overscroll-behavior:contain; }
body.catalog-open { overflow:hidden; }
#catalog-root *, #catalog-root *::before, #catalog-root *::after { box-sizing:border-box; }
#catalog-root button, #catalog-root input { font:inherit; }
#catalog-root button { cursor:pointer; }
#catalog-root button:disabled { cursor:default;opacity:.52; }
#catalog-root :focus-visible { outline:3px solid #366b77;outline-offset:3px; }
.catalog-panel { display:flex;flex-direction:column;width:min(1120px,calc(100% - 48px));height:calc(100dvh - 48px);margin:24px auto;background:#f8f7f0;border:1px solid #d7e0d7;border-radius:22px;padding:24px;box-shadow:0 24px 100px #102c3a55;overflow:hidden; }
.catalog-header { display:flex;align-items:center;justify-content:space-between;gap:18px;flex:none; }
#catalog-root .catalog-header, #catalog-root .catalog-photo-header { position:static;inset:auto;z-index:auto;height:auto;width:auto;padding:0;border:0;background:none;transform:none; }
.catalog-eyebrow { margin:0 0 7px;font-size:11px;letter-spacing:.12em;color:#5c7268; }
.catalog-heading h2 { margin:0;font-size:clamp(20px,2.4vw,28px);line-height:1.3;color:#203e35; }
.catalog-actions { display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end; }
#catalog-root .catalog-button, #catalog-root .catalog-small-button { color:#29493d;background:#fffdf8;border:1px solid #cad6cb;border-radius:10px;padding:9px 13px;line-height:1.4; }
#catalog-root .catalog-button:hover:not(:disabled), #catalog-root .catalog-small-button:hover:not(:disabled) { background:#e6eee6;border-color:#78998b; }
.catalog-close { min-width:56px; }
.catalog-notice { flex:none;margin-top:16px;padding:10px 14px;border-radius:10px;background:#fff0d3;border:1px solid #e6c481;font-size:13px;line-height:1.6;color:#715227; }
.catalog-hall-tabs { display:flex;gap:7px;overflow-x:auto;padding:17px 2px 13px;flex:none;scrollbar-width:thin; }
#catalog-root .catalog-hall-tabs { position:static;inset:auto;width:auto;max-width:100%;height:auto;z-index:auto;margin:0; }
#catalog-root .catalog-hall-tab { flex:none;white-space:nowrap;border:1px solid #d4ded4;border-radius:100px;background:transparent;color:#526e60;padding:8px 13px;font-size:13px; }
#catalog-root .catalog-hall-tab.is-current { background:#244d40;border-color:#244d40;color:white; }
.catalog-toolbar { display:flex;justify-content:space-between;align-items:center;gap:18px;flex:none;padding:8px 0 12px;border-bottom:1px solid #dce3d8; }
.catalog-modes { display:flex;gap:5px;padding:4px;background:#e8ece2;border-radius:12px; }
#catalog-root .catalog-mode { border:0;border-radius:9px;background:transparent;color:#62756a;font-size:13px;padding:8px 13px;white-space:nowrap; }
#catalog-root .catalog-mode.is-current { background:white;color:#234d3f;box-shadow:0 2px 5px #1b453b0a; }
.catalog-search-label { display:flex;align-items:center;gap:9px;font-size:12px;color:#5e7566; }
.catalog-search { width:205px;max-width:100%;border:1px solid #ccd8cb;border-radius:10px;background:#fffefb;padding:10px 12px;color:#233a34; }
.catalog-summary { margin:12px 0;font-size:12px;line-height:1.7;color:#52745e;flex:none; }
.catalog-feedback { flex:none; }
.catalog-feedback:not(:empty) { margin-bottom:14px;padding:12px 14px;border:1px solid #dccaa4;border-radius:12px;background:#fbf2de; }
.catalog-feedback p { margin:0 0 8px;line-height:1.6; }
.catalog-content { min-height:0;overflow-y:auto;flex:1;padding:2px 4px 18px 2px;scrollbar-width:thin;overscroll-behavior:contain; }
.catalog-student-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.catalog-student { padding:16px;border:1px solid #dce4d7;border-radius:14px;background:#fffefa;min-width:0; }
.catalog-student-heading { display:flex;align-items:baseline;gap:9px;margin-bottom:13px; }
.catalog-number { color:#849489;font-size:11px;font-variant-numeric:tabular-nums; }
.catalog-student-name { font-size:16px;line-height:1.4;margin:0;font-weight:650;color:#284735; }
.catalog-submission { display:flex;align-items:baseline;justify-content:space-between;gap:8px;line-height:1.55; }
.catalog-status { font-size:12px;color:#758172; }
.catalog-score { font-size:13px;color:#527155;font-weight:600;white-space:nowrap; }
.catalog-score.is-missing { color:#b32c24;font-weight:700; }
.catalog-student-tools { display:flex;gap:6px;flex-wrap:wrap;margin-top:13px; }
#catalog-root .catalog-small-button { font-size:11px;padding:6px 9px;border-radius:8px; }
.catalog-phases { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px; }
.catalog-phase { min-width:0;border-top:1px solid #e4e8df;padding-top:10px; }
.catalog-phase h4 { margin:0 0 8px;font-size:11px;font-weight:600;color:#687f70; }
.catalog-phase .catalog-submission { flex-direction:column;gap:2px;align-items:flex-start;margin-bottom:8px; }
.catalog-empty { padding:32px 20px;text-align:center;font-size:14px;line-height:1.8;color:#647563; }
.catalog-foot { margin:10px 0 0;font-size:11px;line-height:1.65;color:#74836f;flex:none; }
.catalog-photo-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px; }
#catalog-root .catalog-photo-tile { display:flex;flex-direction:column;align-items:stretch;padding:0;border:1px solid #d7dfd2;border-radius:14px;overflow:hidden;background:#fffefa;text-align:left;min-width:0;color:#284735; }
.catalog-thumbnail { display:block;width:100%;height:178px;object-fit:contain;background:#e9ede5; }
.catalog-photo-caption { display:flex;flex-direction:column;gap:5px;padding:13px 15px; }
.catalog-photo-caption strong { font-size:14px; }
.catalog-photo-caption span { font-size:11px;color:#71836e; }
.catalog-thumbnail-error { display:flex;align-items:center;justify-content:center;height:178px;padding:24px;font-size:12px;text-align:center;color:#876340;background:#f4efdf; }
.catalog-modal { width:min(1040px,calc(100vw - 36px));max-height:calc(100dvh - 36px);padding:18px;border:1px solid #d6dfd2;border-radius:18px;background:#f8f7ef;color:#284735;overflow:auto; }
.catalog-modal::backdrop { background:#0b1d21cc;backdrop-filter:blur(6px); }
.catalog-photo-header { display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px; }
.catalog-photo-header h3 { font-size:17px;margin:0; }
.catalog-photo-stage { display:flex;position:relative;flex-direction:column;justify-content:center;align-items:center;min-height:150px;background:#e9ede5;border-radius:12px;padding:12px; }
.catalog-full-image { display:block;max-width:100%;max-height:calc(100dvh - 215px);width:auto;height:auto;object-fit:contain; }
.catalog-photo-status { font-size:13px;color:#766448;line-height:1.8;text-align:center; }
.catalog-photo-navigation { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px; }
.catalog-photo-counter { font-size:12px;font-variant-numeric:tabular-nums; }
@media(max-width:850px) {
  .catalog-student-grid,.catalog-photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catalog-toolbar { flex-wrap:wrap;gap:12px; }
  .catalog-search-label { flex:1;justify-content:flex-end; }
}
@media(max-width:560px) {
  .catalog-panel { width:100%;height:100dvh;margin:0;border-radius:0;padding:18px 14px 14px; }
  .catalog-header { align-items:flex-start;gap:8px; }
  .catalog-heading h2 { font-size:20px; }
  .catalog-eyebrow { font-size:9px;letter-spacing:.06em; }
  .catalog-actions { gap:5px;flex-direction:column;align-items:stretch; }
  #catalog-root .catalog-actions .catalog-button { font-size:11px;padding:6px 9px; }
  .catalog-hall-tabs { padding-top:15px; }
  .catalog-toolbar { display:block; }
  .catalog-modes { width:max-content;max-width:100%; }
  .catalog-search-label { margin-top:12px;justify-content:flex-start; }
  .catalog-search { flex:1;width:auto;min-width:0; }
  .catalog-student-grid { grid-template-columns:1fr;gap:9px; }
  .catalog-student { padding:14px; }
  .catalog-student-heading { margin-bottom:10px; }
  .catalog-photo-grid { gap:9px; }
  .catalog-thumbnail,.catalog-thumbnail-error { height:125px; }
  .catalog-photo-caption { padding:10px; }
  .catalog-summary { font-size:11px; }
  .catalog-modal { width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:12px;border-radius:12px; }
  .catalog-photo-header h3 { font-size:15px; }
  .catalog-photo-header .catalog-button { font-size:11px;padding:7px; }
  .catalog-full-image { max-height:calc(100dvh - 190px); }
}
@media(prefers-reduced-motion:reduce) { #catalog-root * { scroll-behavior:auto !important; } }

.catalog-seal-tour{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px;color:#6a543a;font-size:12px}.catalog-seal-tour .catalog-small-button{min-height:40px}.catalog-seal-tour>span{margin-right:4px}@media(max-width:600px){.catalog-seal-tour{gap:6px}.catalog-seal-tour .catalog-small-button{min-height:44px;padding:8px 10px}}

.catalog-summary-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap}.catalog-actions{flex-wrap:wrap}.catalog-summary-link:focus-visible{outline:2px solid #806846;outline-offset:3px}

.catalog-score.grade-zero{color:#b4232d;font-weight:700}
