:root {
  --sn-blue: #006fa7;
  --sn-blue-deep: #01334d;
  --sn-dark: #01324b;
  --sn-tab: #555555;
  --sn-link: #025e8d;
  --sn-bg: #f8f8f8;
  --sn-text: #222222;
  --sn-muted: #666666;
  --sn-border: #e2e2e2;
  --sn-notice: #fdf9ee;
  --sn-notice-border: #f0cf8a;
  --sn-red: #e4002b;
  --sn-orcid: #5b7f2d;
  --sn-google: #2b59d8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sn-bg);
  color: var(--sn-text);
  font-family: "Merriweather Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sn-link); }
a:hover { color: #063e5b; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 32px;
  font-family: "Merriweather Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sn-button--primary { background: var(--sn-dark); color: #fff; }
.sn-button--primary:hover { background: #0a4969; color: #fff; }
.sn-button--secondary { background: #fff; color: var(--sn-dark); border-color: var(--sn-dark); }
.sn-button--secondary:hover { background: #f4f8fa; color: var(--sn-dark); }
.button-arrow { font-size: 18px; line-height: 1; }

/* ── Login / identity page ─────────────────────────────────── */
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #d3d4d5;
}
.idp-topbar {
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
}
.idp-topbar-inner {
  width: min(1160px, calc(100% - 48px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.idp-sn-logo {
  width: 200px;
  height: auto;
  display: block;
  filter: brightness(0);
  opacity: .92;
}
.idp-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 60px;
}
.login-card {
  width: min(760px, 100%);
  background: #f5f5f5;
  padding: 34px 38px 38px;
}
.login-card h1 {
  max-width: 720px;
  margin: 0 0 30px;
  color: #202b33;
  font-family: "Merriweather Sans", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.015em;
}
.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1.08fr);
  align-items: center;
  gap: 20px;
}
.login-email-form,
.password-step { width: 100%; }
.login-email-form label,
.password-step label {
  display: block;
  margin: 0 0 7px;
  color: #222;
  font-size: 14px;
  font-weight: 600;
}
.login-email-form input,
.password-input-wrap input {
  width: 100%;
  height: 49px;
  padding: 9px 12px;
  border: 1px solid #777;
  border-radius: 2px;
  background: #fff;
  color: #222;
  font: 16px "Merriweather Sans", Arial, sans-serif;
}
.login-email-form input:focus,
.password-input-wrap input:focus {
  outline: 3px solid rgba(1, 50, 75, .16);
  border-color: var(--sn-dark);
}
.login-continue { width: 100%; margin-top: 17px; min-height: 47px; font-size: 16px; }
.login-or {
  color: #555;
  font-size: 14px;
  text-align: center;
}
.login-oauth { display: flex; flex-direction: column; gap: 14px; }
.oauth-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 17px;
  border: 0;
  border-radius: 27px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.oauth-button:hover { filter: brightness(.94); color: #fff; }
.oauth-google { background: var(--sn-google); }
.oauth-orcid { background: var(--sn-orcid); }
.oauth-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
}
.google-icon { color: #4285f4; font-family: Arial, sans-serif; }
.orcid-icon { background: #a7c8a4; color: #fff; font-size: 9px; letter-spacing: 0; }
.oauth-arrow { margin-left: auto; font-size: 18px; font-weight: 400; }
.password-step {
  width: min(360px, 100%);
  margin: 0 auto;
}
.welcome-back {
  margin: 0 0 2px;
  color: #222;
  font-size: 22px;
  font-weight: 600;
}
.logging-as { margin: 0 0 20px; color: #555; font-size: 14px; }
.logging-as strong { color: #222; }
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 58px; }
.password-show {
  position: absolute;
  right: 1px; top: 1px; bottom: 1px;
  width: 54px;
  border: 0;
  border-left: 1px solid #ddd;
  background: #fff;
  color: #555;
  font-size: 13px;
}
.password-show:hover { background: #f6f6f6; }
.forgot-row { margin: 10px 0 2px; font-size: 14px; }
.login-error {
  margin: 8px 0 10px;
  color: #b00020;
  font-size: 14px;
  line-height: 1.45;
}
.try-another {
  display: block;
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sn-link);
  font-size: 14px;
  text-decoration: underline;
}
.idp-footer {
  padding: 22px 24px 26px;
  text-align: center;
  color: #4a4a4a;
  font-size: 12px;
}
.idp-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin-bottom: 5px;
}
.idp-footer a { color: #4a4a4a; text-decoration: none; }
.idp-footer a:hover { text-decoration: underline; }
.idp-copyright { color: #5e5e5e; }

/* ── App header ─────────────────────────────────────────────── */
.app-header {
  height: 105px;
  background: #fff;
}
.header-inner {
  height: 105px;
  display: flex;
  align-items: center;
}
.snapp-logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-right: 30px;
  border-right: 1px solid #d9d9d9;
  text-decoration: none;
}
.snapp-logo { width: 159px; height: auto; display: block; }
.header-divider { display: none; }
.journal-title {
  margin-left: 28px;
  color: #222;
  font-family: Merriweather, Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-menu-wrap { position: relative; }
.header-action {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #222;
  font-size: 14px;
}
.header-action:hover { color: var(--sn-link); }
.header-icon { width: 20px; height: 20px; display: block; }
.notification-badge {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--sn-red);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
.header-menu {
  position: absolute;
  z-index: 60;
  right: 0;
  top: 38px;
  width: 264px;
  padding: 8px;
  background: #fff;
  border: 1px solid #d7d7d7;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
}
.menu-title {
  padding: 8px 10px 9px;
  color: #222;
  font-family: Merriweather, Georgia, serif;
  font-size: 18px;
  border-bottom: 1px solid #ededed;
  margin-bottom: 4px;
}
.menu-item {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: none;
  color: #222;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}
.menu-item strong { display: block; font-weight: 600; }
.menu-item span { display: block; color: #666; font-size: 12px; margin-top: 2px; }
.menu-item:hover { background: #f4f4f4; }
.menu-divider { height: 1px; background: #e6e6e6; margin: 5px 0; }
.menu-item--logout { color: var(--sn-link); }

/* ── Blue banner and step navigation ───────────────────────── */
.blue-zone {
  background: linear-gradient(90deg, #006fa7 0%, #005984 48%, #01334d 100%);
  padding-top: 40px;
  color: #fff;
}
.banner-title {
  margin: 0 0 41px;
  color: #fff;
  font-family: Merriweather, Georgia, serif;
  font-size: 35px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.step-nav-wrap { position: relative; }
.step-nav {
  height: 40px;
  display: flex;
  align-items: stretch;
  background: var(--sn-tab);
}
.step-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}
.step-list li { display: flex; }
.step-link {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.step-link:hover { color: #fff; background: #666; }
.step-link.is-current {
  background: #fff;
  color: #555;
  cursor: default;
}
.step-link.is-current:hover { background: #fff; color: #555; }
.save-status {
  align-self: center;
  margin-left: auto;
  padding: 0 20px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

/* ── Files page ─────────────────────────────────────────────── */
.content-area {
  background: var(--sn-bg);
  padding: 0 0 64px;
}
.paper {
  background: #fff;
  padding: 63px 49px;
}
.file-section {
  padding: 0 0 31px;
  margin-bottom: 31px;
  border-bottom: 1px solid #e4e4e4;
}
.file-section h2 {
  margin: 0 0 16px;
  color: #222;
  font-family: Merriweather, Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
}
.file-section h3 {
  margin: 27px 0 8px;
  color: #222;
  font-family: "Merriweather Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.file-section p {
  max-width: 100%;
  margin: 0 0 14px;
  color: #222;
  font-size: 16px;
  line-height: 30px;
}
.file-section ul {
  margin: 0 0 16px;
  padding-left: 25px;
  color: #222;
  font-size: 16px;
  line-height: 30px;
}
.file-section li { margin: 0 0 2px; }
.file-section a { color: var(--sn-link); text-decoration: underline; }
.optional {
  color: #444;
  font-family: "Merriweather Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
.anonymous-notice {
  margin: 22px 0 6px;
  padding: 10px 14px;
  border: 1px solid var(--sn-notice-border);
  background: var(--sn-notice);
  color: #333;
  font-size: 15px;
  line-height: 1.55;
}
.anonymous-notice a { color: var(--sn-link); }
.upload-button { margin-top: 15px; }
.disclosure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0 8px;
  padding: 3px 0;
  border: 0;
  background: none;
  color: #222;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.disclosure:hover { color: var(--sn-link); }
.chevron {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  transition: transform .15s ease;
}
.disclosure[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.figures-panel {
  padding: 3px 0 2px 20px;
}
.figures-panel p { font-size: 15px; line-height: 26px; }
.uploaded-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 13px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #e2e2e2;
  background: #fafafa;
  font-size: 14px;
  line-height: 1.45;
}
.file-pdf-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #d8b7ba;
  background: #fff5f5;
  color: #a22b34;
  font-size: 7px;
  font-weight: 700;
}
.file-info { min-width: 0; flex: 1; }
.file-name { color: #222; overflow-wrap: anywhere; }
.file-meta { color: #777; font-size: 12px; margin-top: 2px; }
.file-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.file-actions a, .file-actions button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--sn-link);
  font-size: 13px;
  text-decoration: underline;
}
.next-bar {
  padding: 16px 0 18px;
  border-top: 1px solid #e2e2e2;
  text-align: center;
}
.next-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--sn-dark);
  font-size: 16px;
  font-weight: 600;
}
.next-link:hover { color: var(--sn-link); }
.next-link span { font-size: 20px; font-weight: 300; }

/* ── Submission status page ────────────────────────────────── */
.submission-panel { animation: panel-in .18s ease; }
@keyframes panel-in { from { opacity: .4; } to { opacity: 1; } }
.submission-kicker {
  margin: 0 0 12px;
  color: #777;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.5;
  text-transform: uppercase;
}
.submission-title {
  max-width: 1020px;
  margin: 0;
  color: #1c2b33;
  font-family: Merriweather, Georgia, serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -.005em;
}
.submission-title--small { font-size: 30px; }
.submission-authors {
  margin: 17px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 33px;
}
.status-card {
  padding: 22px 24px 20px;
  border: 1px solid #dbe3e8;
  border-top: 4px solid #9fb4c0;
  background: #fbfcfc;
}
.status-card--current {
  border-color: #bfd6e2;
  border-top-color: var(--sn-blue);
  background: #f2f8fb;
}
.status-label {
  color: #6b7a83;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.status-value {
  margin-top: 5px;
  color: #17313f;
  font-family: Merriweather, Georgia, serif;
  font-size: 24px;
  line-height: 1.32;
}
.status-date {
  margin-top: 2px;
  color: #5e6d76;
  font-size: 13px;
}
.status-card p {
  margin: 15px 0 0;
  color: #37464e;
  font-size: 14px;
  line-height: 1.65;
}
.progress-strip {
  display: flex;
  margin-top: 24px;
  border: 1px solid #e0e5e8;
  background: #fcfcfc;
}
.progress-step {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 15px;
}
.progress-step + .progress-step { border-left: 1px solid #e6eaec; }
.progress-dot {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #b9c4ca;
  background: #fff;
}
.progress-step.is-done .progress-dot { border-color: #39728c; background: #39728c; }
.progress-step.is-current .progress-dot {
  border-color: var(--sn-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 111, 167, .16);
}
.progress-text { display: flex; flex-direction: column; min-width: 0; }
.progress-text strong { color: #3a4a53; font-size: 13px; font-weight: 600; line-height: 1.35; }
.progress-text small { color: #7a878e; font-size: 11px; line-height: 1.4; }
.progress-step.is-current .progress-text strong { color: #0a4f70; }
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  gap: 60px;
  margin-top: 42px;
}
.section-heading {
  margin: 0 0 15px;
  color: #1c2b33;
  font-family: Merriweather, Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.35;
}
.overview-grid + .section-heading { margin-top: 40px; }
.detail-list { margin: 0; padding: 0; }
.detail-list > div {
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #eceff1;
}
.detail-list dt { color: #5c6a72; font-size: 13px; line-height: 1.5; }
.detail-list dd { margin: 0; color: #222; font-size: 13px; font-weight: 600; line-height: 1.5; }
.inline-status { color: #0a5d83; font-weight: 700; }
.review-summary {
  border: 1px solid #e2e7ea;
  background: #fcfdfd;
}
.review-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 15px;
  font-size: 13px;
}
.review-row + .review-row { border-top: 1px solid #eaeef0; }
.review-row span { color: #5c6a72; }
.review-row strong { color: #222; font-weight: 600; text-align: right; }
.review-row .accent-text { color: #0a5d83; }
.body-note {
  margin: 14px 0 0;
  color: #5a6870;
  font-size: 13px;
  line-height: 1.65;
}
.abstract-box {
  margin-top: 5px;
  padding: 3px 0 3px 22px;
  border-left: 3px solid #c8d9e2;
}
.abstract-box p {
  margin: 0 0 11px;
  color: #293940;
  font-size: 15px;
  line-height: 1.75;
}
.abstract-box p:last-child { margin-bottom: 0; }
.abstract-box .keyword-line { color: #526169; font-size: 14px; }
.overview-file-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding: 18px 0 0;
  border-top: 1px solid #e3e7e9;
  font-size: 14px;
}
.overview-file-strip .strip-label { display: block; color: #77848b; font-size: 12px; }
.overview-file-strip strong { color: #222; font-weight: 600; }
.overview-file-strip a { color: var(--sn-link); font-weight: 600; text-decoration: none; }
.overview-file-strip a:hover { text-decoration: underline; }
.submission-lead {
  max-width: 850px;
  margin: 14px 0 30px;
  color: #4f5e66;
  font-size: 15px;
  line-height: 1.7;
}
.table-wrap { overflow-x: auto; }
.submitted-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
}
.submitted-table th {
  padding: 11px 13px;
  border: 1px solid #dde4e8;
  background: #f2f6f8;
  color: #3b4a52;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}
.submitted-table td {
  padding: 13px;
  border: 1px solid #e3e8eb;
  color: #333;
  vertical-align: middle;
}
.submitted-table tbody tr:nth-child(even) { background: #fbfcfc; }
.file-name-cell { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.file-name-cell strong { display: block; color: #222; font-size: 13px; font-weight: 600; }
.file-name-cell span:not(.file-badge) {
  display: block;
  margin-top: 2px;
  color: #7b878e;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.file-badge {
  flex: 0 0 38px;
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dbb5b9;
  background: #fff4f4;
  color: #a52a36;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
}
.file-badge--docx { border-color: #b8cde0; background: #f1f7fc; color: #1e5f92; }
.nowrap { white-space: nowrap; }
.actions-cell a {
  color: var(--sn-link);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.actions-cell a + a { margin-left: 14px; }
.actions-cell a:hover { text-decoration: underline; }
.table-footnote {
  margin: 13px 0 0;
  color: #78858c;
  font-size: 12px;
  line-height: 1.55;
}
.history-table td { vertical-align: top; }
.history-table td:nth-child(2) { color: #263840; font-weight: 600; }
.history-table td:nth-child(3) { color: #55646c; }
.current-history-row { background: #f1f8fb !important; }
.correspondence-list { display: flex; flex-direction: column; gap: 13px; }
.correspondence-item {
  border: 1px solid #dfe5e8;
  background: #fff;
}
.correspondence-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  background: #f8fafb;
  cursor: pointer;
  list-style: none;
}
.correspondence-item summary::-webkit-details-marker { display: none; }
.correspondence-item summary::before {
  content: "▸";
  flex: 0 0 auto;
  color: #6b7d86;
  font-size: 12px;
}
.correspondence-item[open] summary::before { content: "▾"; }
.corr-subject { flex: 1; color: #1f323c; font-size: 14px; font-weight: 600; }
.corr-date { color: #75828a; font-size: 12px; white-space: nowrap; }
.corr-body {
  padding: 18px 22px 20px;
  border-top: 1px solid #e5eaed;
  color: #333;
  font-size: 14px;
  line-height: 1.75;
}
.corr-body p { margin: 0 0 11px; }
.corr-body p:last-child { margin-bottom: 0; }
.corr-meta { color: #77848b; font-size: 12px; }

/* ── Footer and help ────────────────────────────────────────── */
.corporate-footer {
  margin-top: 64px;
  padding: 32px 0;
  background: var(--sn-dark);
  color: #fff;
}
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 25px;
  font-size: 14px;
  line-height: 1.5;
}
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-sn-logo {
  width: 175px;
  height: auto;
  margin-top: 27px;
}
.footer-copyright {
  margin-top: 10px;
  color: #fff;
  font-size: 16px;
}
.help-bubble {
  position: fixed;
  right: 20px;
  top: 48%;
  z-index: 30;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #1d847e;
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.help-bubble:hover { background: #176b66; }

/* ── Loading and modal ─────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e0e8ed;
  border-top-color: var(--sn-dark);
  border-radius: 50%;
  animation: sn-spin .8s linear infinite;
}
@keyframes sn-spin { to { transform: rotate(360deg); } }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .48);
}
.modal {
  width: min(580px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  box-shadow: 0 12px 42px rgba(0,0,0,.25);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 25px 14px;
  border-bottom: 1px solid #e4e4e4;
}
.modal-head h2 {
  margin: 0;
  color: #222;
  font-family: Merriweather, Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}
.modal-close {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 0;
  background: #f4f4f4;
  color: #555;
  font-size: 22px;
  line-height: 1;
}
.modal-close:hover { background: #e9e9e9; }
.modal-body { padding: 20px 25px 23px; font-size: 16px; line-height: 1.65; }
.modal-body p { margin: 0 0 12px; }
.modal-footer {
  padding: 0 25px 22px;
  display: flex;
  justify-content: flex-end;
}
.modal-close-button { min-width: 100px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .container { width: calc(100% - 48px); }
  .paper { padding: 48px 34px 0; }
  .help-bubble { right: 14px; }
}
@media (max-width: 900px) {
  .app-header, .header-inner { height: 82px; }
  .snapp-logo { width: 130px; }
  .snapp-logo-link { padding-right: 20px; }
  .journal-title { margin-left: 20px; font-size: 20px; white-space: normal; }
  .header-actions { gap: 14px; }
  .header-action { position: relative; padding-right: 6px; }
  .header-action span:not(.notification-badge) { display: none; }
  .header-icon { width: 22px; height: 22px; }
  .notification-badge {
    position: absolute;
    top: -4px;
    right: -3px;
    transform: none;
  }
  .blue-zone { padding-top: 28px; }
  .banner-title { margin-bottom: 28px; font-size: 30px; }
  .step-nav { overflow-x: auto; }
  .step-link { font-size: 14px; padding: 0 15px; }
  .save-status { display: none; }
  .paper { padding: 35px 24px 0; }
  .file-section h2 { font-size: 22px; }
  .file-section p, .file-section ul { font-size: 15px; line-height: 27px; }
  .anonymous-notice { font-size: 14px; }
  .footer-links { gap: 6px 16px; font-size: 13px; }
  .footer-copyright { font-size: 14px; }
  .login-card { padding: 26px 24px 30px; }
  .login-card h1 { font-size: 24px; }
  .login-grid { grid-template-columns: 1fr; gap: 18px; }
  .login-or { position: relative; }
  .login-or::before, .login-or::after {
    content: ""; position: absolute; top: 50%; width: calc(50% - 26px);
    height: 1px; background: #d5d5d5;
  }
  .login-or::before { left: 0; }
  .login-or::after { right: 0; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 30px); }
  .idp-topbar-inner { width: calc(100% - 32px); height: 54px; }
  .idp-main { padding: 24px 16px 40px; }
  .login-card { padding: 22px 19px 25px; }
  .login-card h1 { font-size: 21px; margin-bottom: 22px; }
  .login-oauth { gap: 10px; }
  .oauth-button { min-height: 48px; font-size: 13px; }
  .app-header, .header-inner { height: 70px; }
  .snapp-logo { width: 105px; }
  .snapp-logo-link { padding-right: 13px; }
  .journal-title { margin-left: 13px; font-size: 16px; }
  .header-actions { gap: 10px; }
  .blue-zone { padding-top: 23px; }
  .banner-title { font-size: 27px; margin-bottom: 23px; }
  .step-link { font-size: 13px; padding: 0 11px; }
  .paper { padding: 29px 17px 0; }
  .file-section h2 { font-size: 20px; }
  .file-section p, .file-section ul { font-size: 14px; line-height: 25px; }
  .file-section h3 { font-size: 16px; }
  .optional { font-size: 13px; }
  .anonymous-notice { padding: 9px 11px; font-size: 13px; }
  .sn-button { font-size: 13px; }
  .upload-button { width: 100%; }
  .file-item { align-items: flex-start; flex-wrap: wrap; }
  .file-actions { width: 100%; padding-left: 38px; }
  .footer-links { flex-direction: column; gap: 7px; }
  .footer-sn-logo { width: 150px; margin-top: 20px; }
  .help-bubble { width: 40px; height: 40px; font-size: 18px; }
  .modal-backdrop { padding: 12px; }
}

/* ── Status page responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .paper { padding-bottom: 44px; }
  .submission-title { font-size: 26px; }
  .status-grid { grid-template-columns: 1fr; gap: 13px; }
  .status-value { font-size: 22px; }
  .progress-strip { flex-wrap: wrap; }
  .progress-step { flex: 1 1 45%; }
  .progress-step:nth-child(3) { border-left: 0; border-top: 1px solid #e6eaec; }
  .progress-step:nth-child(4) { border-top: 1px solid #e6eaec; }
  .overview-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 34px; }
  .section-heading { font-size: 21px; }
  .submission-title--small { font-size: 25px; }
  .submitted-table { font-size: 12px; }
  .file-name-cell { min-width: 220px; }
}
@media (max-width: 620px) {
  .paper { padding-bottom: 34px; }
  .submission-kicker { font-size: 10px; letter-spacing: .05em; }
  .submission-title { font-size: 22px; line-height: 1.42; }
  .submission-title--small { font-size: 22px; }
  .submission-authors { font-size: 13px; }
  .status-grid { margin-top: 24px; }
  .status-card { padding: 17px 17px 16px; }
  .status-value { font-size: 20px; }
  .progress-step { flex: 1 1 100%; padding: 12px 13px; }
  .progress-step + .progress-step { border-left: 0; border-top: 1px solid #e6eaec; }
  .progress-step:nth-child(3), .progress-step:nth-child(4) { border-top: 1px solid #e6eaec; }
  .overview-grid { gap: 27px; margin-top: 28px; }
  .detail-list > div { grid-template-columns: 46% 54%; }
  .abstract-box { padding-left: 15px; }
  .abstract-box p { font-size: 14px; line-height: 1.7; }
  .overview-file-strip { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 27px; }
  .submission-lead { margin-bottom: 22px; font-size: 14px; }
  .submitted-table th { padding: 9px 8px; font-size: 10px; }
  .submitted-table td { padding: 10px 8px; }
  .file-name-cell { min-width: 185px; gap: 8px; }
  .file-badge { flex-basis: 32px; width: 32px; height: 30px; font-size: 8px; }
  .file-name-cell span:not(.file-badge) { font-size: 10px; }
  .actions-cell a { font-size: 11px; }
  .actions-cell a + a { margin-left: 8px; }
  .correspondence-item summary { flex-wrap: wrap; gap: 4px 10px; padding: 13px 13px; }
  .corr-subject { flex-basis: calc(100% - 22px); font-size: 13px; }
  .corr-date { margin-left: 22px; }
  .corr-body { padding: 15px 16px 16px; font-size: 13px; }
}
