/* src/styles.css */
:root {
  --teal-900: #0D3D2C;
  --teal-800: #1B5C47;
  --teal-700: #226A53;
  --teal-600: #2D7E63;
  --teal-500: #3A9679;
  --teal-200: #B5D9CE;
  --teal-100: #D6EDE6;
  --teal-50: #EEF7F3;
  --olive-700: #6B9527;
  --olive-600: #7AAB2E;
  --olive-500: #8BBF3B;
  --olive-100: #E4F4CA;
  --olive-50: #F2FAEB;
  --color-include: #1B5C47;
  --color-include-light: #E6F2ED;
  --color-include-border: #A8CFBF;
  --color-exclude: #8B3D37;
  --color-exclude-light: #F5EDEC;
  --color-exclude-border: #D4ABA7;
  --color-unsure: #6B7A2C;
  --color-unsure-light: #F0F3E0;
  --color-unsure-border: #C0CC8E;
  --bg: #F2F7F5;
  --surface: #FFFFFF;
  --surface-sub:#F6FAFA;
  --border: #CDE3DA;
  --border-sub: #E3EFE9;
  --text-1: #152920;
  --text-2: #2B4A3D;
  --text-3: #567A6E;
  --text-4: #88A39A;
  --amber-700: #8F5D09;
  --amber-200: #FCDDA8;
  --amber-100: #FEF4D4;
  --red-700: #9E2620;
  --red-100: #FDDAD7;
  --red-200: #F9BDB9;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 100px;
  --shadow-xs: 0 1px 3px rgba(13, 61, 44, 0.04), 0 1px 2px rgba(13, 61, 44, 0.03);
  --shadow-sm: 0 2px 8px rgba(13, 61, 44, 0.06), 0 1px 3px rgba(13, 61, 44, 0.03);
  --shadow-md: 0 8px 28px rgba(13, 61, 44, 0.08), 0 2px 8px rgba(13, 61, 44, 0.04);
  --shadow-lg: 0 20px 56px rgba(13, 61, 44, 0.10), 0 8px 20px rgba(13, 61, 44, 0.05);
  color-scheme: light;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text-1);
}
p {
  margin: 0;
}
.session-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 247, 245, 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 0.5px solid rgba(205, 227, 218, 0.8);
  box-shadow: 0 1px 0 rgba(205, 227, 218, 0.4), var(--shadow-xs);
}
.header-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 0.5px solid var(--border-sub);
}
.header-logos img,
.modal-logos img {
  background: transparent;
  mix-blend-mode: multiply;
}
.logo-sil {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-cambridge {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.header-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.38rem 2rem;
}
.header-session {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.header-reviewer {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-1);
  background: var(--teal-50);
  border: 0.5px solid var(--teal-100);
  border-radius: var(--r-pill);
  padding: 0.18rem 0.65rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.header-position {
  font-size: 0.9rem;
  color: var(--text-3);
  white-space: nowrap;
  font-weight: 400;
}
.header-pid {
  font-size: 0.8rem;
  font-family:
    ui-monospace,
    Menlo,
    monospace;
  color: var(--text-4);
  background: rgba(246, 250, 250, 0.9);
  border: 0.5px solid var(--border-sub);
  border-radius: var(--r-sm);
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
}
.header-sync-status {
  font-size: 0.78rem;
  color: var(--text-4);
  white-space: nowrap;
}
.header-sync-status.error {
  color: var(--red-600, #b91c1c);
  font-weight: 500;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  flex-shrink: 0;
  background: rgba(246, 250, 250, 0.85);
  border: 0.5px solid var(--border-sub);
  border-radius: var(--r-pill);
  padding: 0.18rem 0.2rem;
}
.header-nav a,
.header-nav .nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.62rem;
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  min-height: auto;
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.header-nav a:hover,
.header-nav .nav-btn:hover {
  background: var(--surface);
  color: var(--teal-800);
  box-shadow: var(--shadow-xs);
}
.header-nav a.active {
  background: var(--surface);
  color: var(--teal-800);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}
.nav-divider {
  width: 0.5px;
  height: 14px;
  background: var(--border-sub);
  margin: 0 0.15rem;
  flex-shrink: 0;
}
.header-progress-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.3rem 2rem;
  background: rgba(246, 250, 250, 0.6);
  border-top: 0.5px solid var(--border-sub);
}
.header-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}
.header-progress-wrap progress {
  flex: 1;
  height: 6px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--teal-50);
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
}
.header-progress-wrap progress::-webkit-progress-bar {
  background: var(--teal-50);
  border-radius: var(--r-pill);
}
.header-progress-wrap progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      var(--teal-700),
      var(--olive-500));
  border-radius: var(--r-pill);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-progress-wrap progress::-moz-progress-bar {
  background:
    linear-gradient(
      90deg,
      var(--teal-700),
      var(--olive-500));
  border-radius: var(--r-pill);
}
.header-progress-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-700);
  min-width: 2.5rem;
  letter-spacing: -0.01em;
}
.header-stats {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.12rem 0.48rem;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.badge-include {
  background: var(--color-include-light);
  color: var(--color-include);
  border: 0.5px solid var(--color-include-border);
}
.badge-exclude {
  background: var(--red-100);
  color: var(--red-700);
  border: 0.5px solid var(--red-200);
}
.badge-unsure {
  background: var(--olive-100);
  color: var(--olive-700);
  border: 0.5px solid #C8E89A;
}
.badge-remaining {
  background: var(--surface-sub);
  color: var(--text-3);
  border: 0.5px solid var(--border);
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.4rem 0.875rem;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
  white-space: nowrap;
}
button:hover:not(:disabled) {
  background: var(--surface-sub);
  border-color: var(--teal-200);
  color: var(--text-1);
  box-shadow: var(--shadow-xs);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}
.btn-primary {
  background: var(--teal-800);
  border-color: var(--teal-800);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
input,
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-1);
  font: inherit;
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(45, 126, 99, 0.12);
}
textarea {
  min-height: 8rem;
  resize: vertical;
}
label {
  display: grid;
  gap: 0.3rem;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-2);
  letter-spacing: -0.01em;
}
main {
  min-height: 100vh;
}
.upload-screen,
.label-screen,
.review-table-screen,
.rules-screen,
.export-screen {
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 1.75rem;
  display: grid;
  gap: 1.25rem;
}
.label-screen {
  width: min(100%, 74rem);
  min-height: auto;
  padding: 0.85rem 1.1rem;
  gap: 0.65rem;
  align-content: start;
}
.panel {
  padding: 1.35rem;
  display: grid;
  gap: 0.85rem;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.panel h2,
.panel p {
  margin: 0;
}
.label-card {
  position: relative;
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(13, 61, 44, 0.38);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
}
.modal {
  width: min(100%, 30rem);
  background: rgba(255, 255, 255, 0.96);
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem 2rem 1.75rem;
  display: grid;
  gap: 1.1rem;
}
.modal-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.5px solid var(--border-sub);
}
.modal-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 0.5px solid var(--border-sub);
}
.modal-logo-divider {
  width: 0.5px;
  height: 42px;
  background: var(--border);
  flex-shrink: 0;
}
.modal h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.project-meta {
  display: grid;
  gap: 0.2rem;
}
.project-id {
  font-family:
    ui-monospace,
    Menlo,
    Consolas,
    monospace;
  font-size: 0.72rem;
  color: var(--text-4);
  background: var(--surface-sub);
  border: 0.5px solid var(--border-sub);
  border-radius: var(--r-sm);
  padding: 0.1rem 0.45rem;
  width: fit-content;
  margin: 0;
  overflow-wrap: anywhere;
}
.project-meta h1 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
.shared-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.12rem 0.55rem;
  border: 0.5px solid var(--amber-200);
  border-radius: var(--r-pill);
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 0.72rem;
  font-weight: 600;
}
.ai-panel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  overflow: hidden;
  border: 0.5px solid var(--teal-100);
  border-radius: var(--r-md);
  background: var(--teal-50);
  padding: 0.45rem 0.7rem;
  line-height: 1.35;
}
.ai-panel > div {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  white-space: nowrap;
}
.ai-panel > div:first-child {
  flex: 0 0 auto;
}
.ai-panel > div:last-child {
  flex: 1 1 auto;
}
.ai-panel strong,
.ai-panel span:not(.muted) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-panel .muted::after {
  content: ":";
}
.ai-panel .muted {
  flex: 0 0 auto;
}
.muted {
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 400;
}
.confidence-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.14rem 0.5rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  border: 0.5px solid var(--border);
  background: var(--surface-sub);
  color: var(--text-3);
  letter-spacing: 0.01em;
}
.confidence-badge.low {
  background: var(--olive-50);
  border-color: var(--olive-100);
  color: var(--olive-700);
}
.confidence-badge.medium {
  background: var(--amber-100);
  border-color: var(--amber-200);
  color: var(--amber-700);
}
.confidence-badge.high {
  background: var(--red-100);
  border-color: var(--red-200);
  color: var(--red-700);
}
.confidence-badge.no-score {
  color: var(--text-4);
}
.overview-text {
  display: grid;
  gap: 0.45rem;
  max-height: min(18rem, 34vh);
  overflow: auto;
  padding-right: 0.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-2);
}
.overview-text button {
  width: fit-content;
}
.overview-toggle {
  font-size: 0.78rem;
  color: var(--teal-800);
  background: none;
  border: none;
  padding: 0;
  min-height: auto;
  cursor: pointer;
  opacity: 0.65;
  font-weight: 500;
}
.overview-toggle:hover {
  opacity: 1;
  text-decoration: underline;
}
.keyword-highlight {
  border-radius: 3px;
  background: #FFF49E;
  color: inherit;
  padding: 0.05rem 0.15rem;
}
.note-field {
  gap: 0.25rem;
  font-size: 0.82rem;
}
.note-field textarea {
  min-height: 3.25rem;
  height: 3.25rem;
  padding: 0.45rem 0.65rem;
  line-height: 1.35;
}
.label-actions {
  display: grid;
  gap: 0.45rem;
}
.current-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.16rem 0.6rem;
  border: 0.5px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-sub);
  color: var(--text-2);
  font-size: 0.76rem;
  font-weight: 600;
  margin: 0;
}
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.action-buttons button {
  flex: 1 1 9rem;
  min-height: 42px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 0.5px solid;
  border-radius: var(--r-md);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
}
.action-buttons button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.action-buttons button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}
.action-buttons .include {
  background: var(--color-include-light);
  border-color: var(--color-include-border);
  color: var(--color-include);
}
.action-buttons .include:hover:not(:disabled) {
  background: var(--color-include);
  border-color: var(--color-include);
  color: #fff;
}
.action-buttons .exclude {
  background: var(--color-exclude-light);
  border-color: var(--color-exclude-border);
  color: var(--color-exclude);
}
.action-buttons .exclude:hover:not(:disabled) {
  background: var(--color-exclude);
  border-color: var(--color-exclude);
  color: #fff;
}
.action-buttons .unsure {
  background: var(--color-unsure-light);
  border-color: var(--color-unsure-border);
  color: var(--color-unsure);
}
.action-buttons .unsure:hover:not(:disabled) {
  background: var(--color-unsure);
  border-color: var(--color-unsure);
  color: #fff;
}
.navigation-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  align-self: start;
  justify-content: space-between;
  padding: 0.48rem 0.75rem;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.toast {
  position: sticky;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--teal-900);
  color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  font-weight: 500;
}
.toast button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  min-height: 30px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
}
.toast button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: none;
}
.shortcut-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  max-width: min(22rem, calc(100vw - 3rem));
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-md);
}
.shortcut-panel dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.7rem;
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
}
.shortcut-panel dt {
  font-weight: 600;
  color: var(--text-1);
}
.shortcut-panel dd {
  margin: 0;
  color: var(--text-3);
}
.review-table-screen {
  display: grid;
  gap: 1.25rem;
}
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.table-toolbar label {
  min-width: 13rem;
}
.table-wrap {
  overflow-x: auto;
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
th,
td {
  border-bottom: 0.5px solid var(--border-sub);
  padding: 0.7rem 1rem;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.review-table-screen tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}
.review-table-screen tbody tr:hover {
  background: var(--teal-50);
}
.sort-button,
.row-link {
  min-height: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--teal-700);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  letter-spacing: inherit;
  box-shadow: none;
}
.row-link {
  text-align: left;
}
.rules-screen,
.export-screen {
  display: grid;
  gap: 1.25rem;
}
.rule-review-panel,
.export-panel {
  display: grid;
  gap: 1.25rem;
}
.rule-review-panel > header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
}
.rule-review-panel h1,
.rule-review-panel h2,
.rule-review-panel h3,
.export-panel h1 {
  margin: 0;
  letter-spacing: -0.02em;
}
.file-picker {
  min-width: min(100%, 20rem);
}
.candidate-meta {
  width: 100%;
}
.candidate-list,
.keyword-review-group {
  display: grid;
  gap: 0.75rem;
}
.keyword-review-group {
  margin-block: 0.8rem;
}
.candidate-item,
.keyword-candidate {
  display: grid;
  gap: 0.75rem;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 1rem;
  box-shadow: var(--shadow-xs);
}
.candidate-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.14rem 0.5rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  border: 0.5px solid var(--border);
  background: var(--surface-sub);
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.status-pill.approved {
  background: var(--teal-50);
  border-color: var(--teal-100);
  color: var(--teal-700);
}
.status-pill.rejected {
  background: var(--red-100);
  border-color: var(--red-200);
  color: var(--red-700);
}
.status-pill.edited {
  background: var(--amber-100);
  border-color: var(--amber-200);
  color: var(--amber-700);
}
.keyword-candidate {
  grid-template-columns: minmax(14rem, 1fr) auto minmax(14rem, 1fr) auto;
  align-items: flex-end;
}
.export-summary {
  width: min(100%, 34rem);
}
.warning {
  padding: 0.7rem 1rem;
  border: 0.5px solid var(--amber-200);
  border-radius: var(--r-md);
  background: var(--amber-100);
  color: var(--amber-700);
  font-weight: 500;
  font-size: 0.85rem;
}
.error {
  padding: 0.7rem 1rem;
  border: 0.5px solid var(--red-200);
  border-radius: var(--r-md);
  background: var(--red-100);
  color: var(--red-700);
  font-weight: 500;
  font-size: 0.85rem;
}
.badge-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
@media (max-width: 900px) {
  .header-logos {
    padding: 0.75rem 1rem;
    gap: 1rem;
  }
  .logo-sil {
    height: 36px;
  }
  .logo-cambridge {
    height: 26px;
  }
  .header-session-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  .header-nav {
    flex-wrap: wrap;
  }
  .header-progress-row {
    padding: 0.35rem 1rem;
  }
  .ai-panel > div {
    grid-template-columns: 1fr;
  }
  .keyword-candidate {
    grid-template-columns: 1fr;
  }
  .modal-logos {
    flex-direction: column;
    gap: 1rem;
  }
  .modal-logo-divider {
    width: 60px;
    height: 0.5px;
  }
  .upload-screen,
  .label-screen,
  .review-table-screen,
  .rules-screen,
  .export-screen {
    padding: 1.25rem 1rem;
  }
}
