:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #153044;
  background: #eef3f5;
  font-synthesis: none;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #eef3f5; }
a { color: #176c74; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #f0ad18;
  outline-offset: 3px;
}

.app-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1.25rem 0 2rem; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1.65rem;
  color: white;
  background: linear-gradient(125deg, #123b59, #176c74);
  border-radius: 1rem;
  box-shadow: 0 .7rem 1.8rem rgb(24 55 70 / 15%);
}
.brand-lockup { display: flex; align-items: center; gap: 1rem; min-width: 0; color: white; text-decoration: none; }
.reviewer-emblem {
  display: grid;
  place-items: center;
  width: 4.7rem;
  height: 4.7rem;
  flex: 0 0 auto;
  color: #123b59;
  background: #fff;
  border-radius: 50%;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 .38rem rgb(23 108 116 / 14%);
}
.site-header h1 { margin: .1rem 0 0; font-size: clamp(2rem, 6vw, 3rem); line-height: 1; }
.eyebrow { margin: 0; font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow.dark { color: #176c74; }
.header-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; }
.release-badge, .signed-in { margin: 0; padding: .55rem .8rem; background: rgb(255 255 255 / 14%); border: 1px solid rgb(255 255 255 / 30%); border-radius: 999px; white-space: nowrap; }
.signed-in { font-weight: 700; }

.reviewer-nav {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: .8rem;
  padding: .42rem;
  background: white;
  border: 1px solid #d5e0e5;
  border-radius: .75rem;
  box-shadow: 0 .15rem .55rem rgb(24 55 70 / 6%);
}
.reviewer-nav a, .logout-form button {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: .55rem .8rem;
  color: #3d5663;
  background: transparent;
  border: 0;
  border-radius: .5rem;
  font-weight: 750;
  text-decoration: none;
}
.reviewer-nav a:hover, .logout-form button:hover { background: #eef4f7; color: #153044; }
.reviewer-nav a.active { color: #124f45; background: #e7f6f1; }
.logout-form { margin: 0; }
.reviewer-navigation > summary { display: none; }
.reviewer-navigation:not([open]) > .reviewer-nav { display: flex; }
.nav-account-tools { display: flex; align-items: center; gap: .3rem; margin-left: auto; }

.messages { margin-top: 1rem; }
.message { padding: .85rem 1rem; background: #e7f6f1; border-left: .35rem solid #23806f; border-radius: .45rem; }
.message.info { background: #edf2f5; color: #173042; border-left-color: #70818a; }
.error-banner { margin: 1rem 0; padding: 1rem 1.1rem; color: #74232d; background: #fdebed; border-left: .4rem solid #b23a48; border-radius: .4rem; }
.structured-text { white-space: pre-line; }
.supporting { color: #526a78; }

.reviewer-layout { display: grid; gap: 1rem; margin-top: 1rem; }
.narrow-layout { max-width: 760px; margin-inline: auto; }
.page-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid #d5e0e5;
  border-radius: .85rem;
  box-shadow: 0 .2rem .7rem rgb(24 55 70 / 7%);
}
.page-intro h2 { margin: .3rem 0 .4rem; font-size: clamp(1.65rem, 4vw, 2.35rem); }
.page-intro p:last-child { margin-bottom: 0; }
.metric-strip { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.metric-strip span { padding: .55rem .75rem; color: #3d5663; background: #f4f7f9; border-radius: .55rem; white-space: nowrap; }
.metric-strip strong { color: #153044; }

.filter-card {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: white;
  border: 1px solid #d5e0e5;
  border-radius: .75rem;
}
.search-form { display: grid; gap: .35rem; }
.search-form label { font-weight: 750; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
.search-row input, .auth-form input {
  width: 100%;
  min-height: 2.85rem;
  padding: .65rem .8rem;
  color: #153044;
  background: white;
  border: 1px solid #8299a5;
  border-radius: .5rem;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter-tabs a { padding: .5rem .7rem; color: #506977; background: #f4f7f9; border: 1px solid #d5e0e5; border-radius: 999px; font-weight: 750; text-decoration: none; }
.filter-tabs a.active { color: #124f45; background: #e7f6f1; border-color: #8dc7b9; }
.filter-tabs span { margin-left: .25rem; font-size: .84em; }

.primary-action, .secondary-action, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .55rem;
  font-weight: 750;
  text-decoration: none;
}
.primary-action { min-height: 2.75rem; padding: .7rem 1rem; color: white; background: #176c74; border: 0; }
.primary-action:hover, .primary-action:focus-visible { background: #10535a; color: white; }
.secondary-action { min-height: 2.65rem; padding: .65rem .9rem; color: #176c74; background: white; border: 1px solid #8ab1b6; }
.secondary-action:hover { background: #eef7f7; }

.question-list { display: grid; gap: .65rem; }
.question-row { overflow: hidden; background: white; border: 1px solid #d5e0e5; border-radius: .75rem; box-shadow: 0 .15rem .5rem rgb(24 55 70 / 5%); }
.question-row-link { display: block; color: inherit; text-decoration: none; border-radius: .75rem; }
.question-row-link:hover .question-row { background: #f7fafb; border-color: #9cb7c1; }
.question-row-link:focus-visible { outline: 3px solid #176c74; outline-offset: 3px; }
.question-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.15rem; }
.question-id { display: grid; place-items: center; min-height: 3.5rem; color: #176c74; background: #e7f6f1; border-radius: .55rem; font-size: 1.15rem; font-weight: 900; }
.question-row-copy h3 { margin: .3rem 0; font-size: 1.06rem; line-height: 1.4; }
.question-row-copy p { margin: .25rem 0 0; font-size: .9rem; }
.question-row-copy .admin-question-title { margin: .45rem 0 .2rem; color: #102a43; font-size: clamp(1.08rem, 2vw, 1.32rem); font-weight: 850; line-height: 1.25; overflow-wrap: anywhere; }
.question-row-copy .admin-question-title-missing { color: #526a78; font-size: 1rem; }
.question-row-copy .admin-question-summary { color: #344f5e; font-weight: 650; }
.question-row-copy .question-learner-excerpt { display: -webkit-box; max-width: 72ch; overflow: hidden; color: #526a78; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.metadata-state { display: inline-flex; margin-top: .35rem; padding: .15rem .48rem; border-radius: 999px; background: #edf2f5; color: #344f5e; font-size: .72rem; font-weight: 800; }
.metadata-state-stale, .metadata-state-missing, .metadata-state-current { color: #684b00; background: #fff2c6; }
.check-warning-status { color: #7a4300; background: #fff1d6; }
.publication-human-card, .publication-history-card { min-width: 0; overflow-wrap: anywhere; }
.publication-human-card h3 { margin: .25rem 0 .5rem; color: #102a43; font-size: clamp(1.15rem, 2.1vw, 1.45rem); }
.publication-human-card details { margin-top: .8rem; }
.human-diff, .technical-evidence { max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.history-question { padding: .65rem 0; border-bottom: 1px solid #d7e1e8; }
.history-question h5 { margin: .25rem 0; font-size: 1.02rem; }
.history-question:last-child { border-bottom: 0; }
.admin-metadata-card h2 { margin: 0 0 .35rem; color: #102a43; font-size: clamp(1.25rem, 2.5vw, 1.7rem); }
.admin-metadata-card { grid-column: 1 / -1; min-width: 0; }
.admin-metadata-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .8rem; }
.admin-metadata-heading h2 { margin: 0; overflow-wrap: anywhere; }
.admin-metadata-heading p { margin: .35rem 0; max-width: 75ch; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.type-label, .question-type { color: #176c74; font-size: .75rem; font-weight: 850; letter-spacing: .07em; }
.status-badge, .history-badge, .readonly-chip, .quality-chip, .critical-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .18rem .5rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.2;
}
.status-draft_ai { color: #654900; background: #fff2c6; }
.status-source_checked, .status-reviewed { color: #173f5f; background: #e9f1f5; }
.status-approved, .status-published { color: #124f45; background: #e0f4ed; }
.status-rejected, .status-retired { color: #74232d; background: #fdebed; }
.history-badge { color: #4d5364; background: #eef0f4; }
.readonly-chip { color: #173f5f; background: #e9f1f5; }
.quality-chip { color: #3d5663; background: #eef4f7; }
.critical-chip { color: #74232d; background: #fdebed; }
.row-arrow { color: #8299a5; font-size: 2rem; line-height: 1; }

.empty-state { padding: 2rem; text-align: center; background: white; border: 1px dashed #b8c8cf; border-radius: .75rem; }
.empty-state h3 { margin-top: 0; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: .5rem; }
.pagination a { font-weight: 750; }

.question-review-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.review-toolbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.1rem; }
.back-link { font-weight: 800; text-decoration: none; }
.review-toolbar-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .45rem; }
.learner-preview {
  grid-column: 1 / span 8;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: white;
  border: 1px solid #d5e0e5;
  border-radius: .85rem;
  box-shadow: 0 .2rem .7rem rgb(24 55 70 / 7%);
}
.preview-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.preview-heading .question-type { display: block; margin-top: .35rem; }
.preview-id { color: #176c74; font-weight: 900; }
.learner-preview > h2 { margin: .25rem 0 1.3rem; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.scenario-state { margin: 0 0 1rem; padding: 1rem; line-height: 1.65; background: #eef4f7; border-radius: .55rem; }
.answer-group { display: grid; gap: .65rem; }
.choice-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .8rem; padding: .9rem 1rem; background: #f7f9fa; border: 1px solid #cad7dd; border-radius: .55rem; }
.choice-shortcut { min-width: 1.8rem; padding: .12rem .35rem; color: #506977; background: #eef4f7; border: 1px solid #c7d7df; border-radius: .35rem; font-size: .8rem; font-weight: 800; text-align: center; }
.option-feedback { margin: .45rem 0 0; color: #526a78; font-size: .92rem; }
.choice-review-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; }
.sequence-list { display: grid; gap: .65rem; padding: 0; list-style: none; counter-reset: sequence; }
.sequence-list li { padding: .8rem 1rem; background: #f7f9fa; border: 1px solid #cad7dd; border-radius: .55rem; counter-increment: sequence; }
.sequence-list li > span::before { content: counter(sequence) ". "; font-weight: 800; color: #176c74; }
.threshold-preview { display: grid; gap: .7rem; padding: 1rem; background: #f7f9fa; border: 1px solid #cad7dd; border-radius: .55rem; }
.threshold-answer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .8rem; background: white; border-radius: .45rem; }
.threshold-preview p { margin: 0; }

.feedback-panel { padding: 1.2rem; border-left: .42rem solid #d19500; border-radius: .55rem; background: #fff8df; }
.feedback-panel.success { color: #124f45; background: #e7f6f1; border-color: #23806f; }
.correction-panel { grid-column: 1 / span 8; }
.correction-panel h3 { margin: .35rem 0 .8rem; font-size: 1.35rem; }
.expected-answer { display: grid; gap: .3rem; padding: .9rem; color: #153044; background: rgb(255 255 255 / 70%); border: 1px solid rgb(21 48 68 / 14%); border-radius: .45rem; }
.explanation-block { margin-top: 1rem; color: #153044; }
.explanation-block h4 { margin-bottom: .35rem; }
.explanation-block p { margin-top: 0; }
.why-panel { margin: 1rem 0 0; padding: .9rem 1rem; color: #153044; background: rgb(255 255 255 / 68%); border: 1px solid rgb(21 48 68 / 14%); border-radius: .5rem; }
.why-panel h4 { margin: 0; color: #176c74; font-size: 1rem; }
.why-panel p { margin: .5rem 0 0; line-height: 1.55; }
.why-details { margin-top: .75rem; padding-top: .65rem; border-top: 1px solid rgb(21 48 68 / 12%); }
.why-details > summary, .technical-details > summary { color: #176c74; cursor: pointer; font-weight: 800; }
.rationale-references { margin-top: .8rem; padding: .75rem .85rem; background: #f3f8f8; border-radius: .4rem; }
.rationale-references ul { display: grid; gap: .35rem; margin: .45rem 0 0; padding-left: 1.15rem; }
.rationale-references a { overflow-wrap: anywhere; }

.reviewer-context { grid-column: 9 / -1; grid-row: 2 / span 2; display: grid; align-content: start; gap: 1rem; }
.context-card, .account-card, .reviewer-table-card, .scenario-review-card {
  padding: 1.2rem;
  background: white;
  border: 1px solid #d5e0e5;
  border-radius: .85rem;
  box-shadow: 0 .15rem .55rem rgb(24 55 70 / 6%);
}
.context-card h4 { margin: 1rem 0 .35rem; }
.metadata-list { display: grid; gap: 0; margin: .8rem 0 0; }
.metadata-list > div { display: grid; grid-template-columns: minmax(7.5rem, .9fr) 1.3fr; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid #e7edef; }
.metadata-list > div:last-child { border-bottom: 0; }
.metadata-list dt { color: #5b707c; font-size: .88rem; font-weight: 700; }
.metadata-list dd { margin: 0; overflow-wrap: anywhere; }
.metadata-list.compact > div { grid-template-columns: 6.5rem minmax(0, 1fr); }
.history-callout { display: grid; gap: .2rem; margin-top: 1rem; padding: .85rem; background: #f4f7f9; border-left: .32rem solid #8299a5; border-radius: .45rem; }
.history-callout p { margin: .35rem 0; }
.history-callout small { color: #5b707c; }
.plain-list { display: grid; gap: .35rem; margin: .35rem 0 0; padding-left: 1.15rem; }
.technical-details { margin-top: .7rem; }
.source-rule { margin-top: .7rem; padding: .7rem; background: #f7f9fa; border-radius: .45rem; }
.source-rule p { margin: .35rem 0; font-size: .9rem; }
.source-rule small { color: #5b707c; }

.embedded-scenario { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #d5e0e5; }
.embedded-scenario h3 { margin-top: 0; }
.scenario-node { margin-top: .7rem; padding: .75rem; background: #f7f9fa; border: 1px solid #cad7dd; border-radius: .55rem; }
.scenario-node > summary { cursor: pointer; color: #176c74; font-weight: 800; }
.scenario-node .scenario-state { margin-top: .7rem; }
.scenario-choice-review { margin-top: .55rem; padding: .75rem; color: #153044; background: white; border: 1px solid #d5e0e5; border-radius: .5rem; }
.scenario-choice-review p { margin: .45rem 0; color: #526a78; }
.scenario-choice-review small { color: #5b707c; }

.scenario-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.scenario-card { display: block; padding: 1.15rem; color: inherit; background: white; border: 1px solid #d5e0e5; border-radius: .75rem; box-shadow: 0 .15rem .5rem rgb(24 55 70 / 5%); text-decoration: none; }
.scenario-card:hover { background: #f7fafb; border-color: #a9bdc6; }
.scenario-card h3 { margin: .55rem 0 .35rem; }
.scenario-card p { margin: .25rem 0 .7rem; }
.scenario-review-card h2 { margin: .35rem 0; font-size: clamp(1.55rem, 4vw, 2.2rem); }
.scenario-flow { display: grid; gap: 1rem; margin-top: 1.2rem; }
.scenario-node-card { padding: 1rem; background: #f7f9fa; border: 1px solid #cad7dd; border-left: .38rem solid #8299a5; border-radius: .65rem; }
.scenario-node-card.start { border-left-color: #176c74; }
.scenario-node-card.terminal { border-left-color: #23806f; }
.node-heading, .scenario-choice-heading { display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.node-heading > div { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.node-index { color: #176c74; font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.scenario-node-card > .scenario-state { margin-top: .8rem; }
.scenario-choice-list { display: grid; gap: .6rem; }
.scenario-linked-question { max-width: 760px; }
.scenario-linked-question h3 { margin-bottom: .3rem; }

.reviewer-table-card { overflow-x: auto; }
.reviewer-table { width: 100%; border-collapse: collapse; }
.reviewer-table th, .reviewer-table td { padding: .8rem .7rem; text-align: left; border-bottom: 1px solid #e4ebee; vertical-align: middle; }
.reviewer-table th { color: #506977; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.reviewer-table tr:last-child td { border-bottom: 0; }
.reviewer-table td:first-child { white-space: nowrap; }
.reviewer-table .history-badge { margin-left: .4rem; }
.table-note { margin: 1rem 0 0; }

.account-card { display: grid; gap: 1rem; }
.account-actions { padding-top: .5rem; border-top: 1px solid #e4ebee; }
.auth-layout { display: grid; place-items: start center; margin-top: 2rem; }
.auth-card { width: min(100%, 460px); padding: 1.5rem; background: white; border: 1px solid #d5e0e5; border-radius: .85rem; box-shadow: 0 .2rem .7rem rgb(24 55 70 / 7%); }
.wide-auth-card { width: min(100%, 620px); }
.auth-card h2 { margin: .35rem 0 .45rem; font-size: 1.75rem; }
.auth-form { display: grid; gap: 1rem; margin-top: 1.1rem; }
.form-field { display: grid; gap: .35rem; }
.form-field label { font-weight: 750; }
.field-help { color: #5b707c; font-size: .87rem; }
.field-help ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.field-errors { color: #74232d; font-size: .9rem; }
.field-errors ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .55rem; }

footer { margin-top: 1.35rem; padding: .8rem; color: #637984; font-size: .8rem; text-align: center; }

@media (max-width: 860px) {
  .site-header { align-items: flex-start; }
  .header-tools { justify-content: flex-start; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .metric-strip { justify-content: flex-start; }
  .question-review-layout { display: grid; grid-template-columns: 1fr; }
  .review-toolbar, .learner-preview, .correction-panel, .reviewer-context { grid-column: 1; grid-row: auto; }
  .scenario-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .reviewer-navigation > summary { display: list-item; min-height: 2.75rem; align-content: center; cursor: pointer; font-weight: 750; }
  .reviewer-navigation:not([open]) > .reviewer-nav { display: none; }
  .reviewer-navigation[open] > .reviewer-nav { display: flex; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .app-shell { width: min(100% - 1rem, 1180px); padding-top: .5rem; }
  .site-header { flex-direction: column; padding: 1rem; border-radius: .75rem; }
  .reviewer-emblem { width: 3.8rem; height: 3.8rem; }
  .site-header h1 { font-size: 2rem; }
  .reviewer-nav { overflow-x: auto; align-items: stretch; }
  .reviewer-navigation > summary { display: list-item; min-height: 2.75rem; align-content: center; cursor: pointer; font-weight: 750; }
  .reviewer-navigation:not([open]) > .reviewer-nav { display: none; }
  .reviewer-navigation[open] > .reviewer-nav { display: flex; flex-direction: column; }
  .nav-account-tools { margin-left: 0; flex-direction: column; align-items: stretch; }
  .reviewer-nav a, .logout-form button { white-space: nowrap; }
  .question-row-link .question-row { grid-template-columns: 3rem minmax(0, 1fr); gap: .7rem; padding: .85rem; }
  .row-arrow { display: none; }
  .choice-row { grid-template-columns: auto minmax(0, 1fr); }
  .choice-review-meta { grid-column: 2; justify-content: flex-start; }
  .search-row { grid-template-columns: 1fr; }
  .review-toolbar { align-items: flex-start; flex-direction: column; }
  .review-toolbar-meta { justify-content: flex-start; }
  .metadata-list > div { grid-template-columns: 1fr; gap: .15rem; }
  .node-heading, .scenario-choice-heading { flex-direction: column; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions > * { width: 100%; }
}


/* Task-oriented logical-question catalogue. */
.questions-layout { width: min(100%, 1500px); gap: .8rem; }
.questions-page .app-shell { width: min(1600px, calc(100% - 2rem)); }
.questions-intro { align-items: center; padding: 1rem 1.2rem; }
.questions-intro h2 { margin-top: 0; }
.question-list-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.catalogue-views { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid #cad8de; }
.catalogue-views a { display: inline-flex; gap: .5rem; align-items: center; min-height: 2.8rem; padding: .45rem .9rem; border-bottom: 3px solid transparent; color: #3d5663; font-weight: 750; text-decoration: none; }
.catalogue-views a:hover, .catalogue-views a.active { color: #124f45; background: #eef7f5; border-color: #176c74; }
.view-count { color: #3d5663; font-variant-numeric: tabular-nums; }
.catalogue-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .7rem; }
.catalogue-search > form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; }
.catalogue-search input, .catalogue-search select { box-sizing: border-box; width: 100%; min-height: 2.8rem; padding: .6rem .8rem; color: #153044; background: #fff; border: 1px solid #8299a5; border-radius: .5rem; }
.catalogue-filters > summary { cursor: pointer; list-style: none; display: flex; gap: .55rem; align-items: center; min-height: 2.8rem; padding: 0 .8rem; border: 1px solid #8299a5; border-radius: .5rem; background: white; font-weight: 750; }
.catalogue-filters > summary::-webkit-details-marker { display: none; }
.filter-active-count { color: #526a78; font-size: .82rem; font-weight: 600; }
.catalogue-filter-form { display: grid; grid-template-columns: repeat(3, minmax(10rem, 1fr)) auto; align-items: end; gap: .7rem; padding: .85rem; margin-top: .45rem; border: 1px solid #d5e0e5; border-radius: .65rem; background: #fff; }
.catalogue-filter-form .filter-control { display: grid; gap: .35rem; font-weight: 700; }
.catalogue-filter-form .filter-actions { display: flex; align-items: center; gap: .65rem; min-height: 2.8rem; }
.catalogue-result-count { margin: 0; color: #526a78; font-size: .9rem; }
.question-row-link .question-row { grid-template-columns: 3.7rem minmax(0, 1fr) auto; align-items: start; padding: .85rem 1rem; box-shadow: none; }
.question-row-link .question-id { min-height: 2.7rem; }
.question-row-titleline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.question-row-copy .admin-question-title { margin: 0; max-width: 75ch; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.3; }
.question-row-copy .question-learner-excerpt { max-width: 85ch; margin-top: .35rem; color: #526a78; }
.question-row-statuses { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center; margin-top: .45rem; }
.workflow-status { padding: .2rem .5rem; border-radius: .3rem; color: #153044; background: #edf2f5; font-size: .86rem; font-weight: 750; }
.workflow-status.status-review { color: #614a06; background: #fff2c6; }
.workflow-status.status-correction { color: #762d32; background: #fce8e8; }
.workflow-status.status-ready { color: #155342; background: #e3f4ec; }
.publication-status { color: #526a78; font-size: .86rem; }
.question-row-link .row-arrow { align-self: center; }
.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; }
@media(max-width: 760px) { .catalogue-search { grid-template-columns: minmax(0, 1fr); } .catalogue-filter-form { grid-template-columns: minmax(0, 1fr); } }
@media(max-width: 560px) { .questions-intro { align-items: stretch; } .question-list-actions { display: grid; grid-template-columns: 1fr; } .catalogue-search > form { grid-template-columns: minmax(0, 1fr); } .question-row-link .question-row { grid-template-columns: 2.9rem minmax(0, 1fr); gap: .65rem; padding: .75rem; } .question-row-link .row-arrow { display: none; } }
