/* JAMA Network Open — eJournalPress-style author interface */
:root {
  --jama-red: #8c303d;
  --jama-cyan: #0078c4;
  --jama-link: #003399;
  --jama-nav: #9cb6c6;
  --jama-navy: #003366;
  --jama-detail-blue: #1e4f79;
  --line: #cccccc;
  --soft-line: #dddddd;
  --muted: #666666;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: #000;
  font: 13px/1.45 Verdana, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--jama-link); text-decoration: underline; cursor: pointer; }
a:hover { color: #cc3300; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.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;
}

/* ── Masthead ───────────────────────────────────────────────── */
.network-strip {
  height: 24px;
  background: #b1babb;
  display: flex;
  align-items: flex-end;
}
.network-strip a { display: block; line-height: 0; }
.network-strip img { width: 158px; height: 24px; display: block; }
.crimson-line { height: 2px; background: var(--jama-red); }
.masthead {
  height: 69px;
  background: #fff;
}
.masthead a { display: inline-block; line-height: 0; }
.masthead .jno-logo { width: 245px; height: 69px; display: block; }

/* ── Navigation ─────────────────────────────────────────────── */
.main-nav {
  height: 31px;
  background: var(--jama-nav);
  border-top: 1px solid #e3f2db;
  overflow-x: auto;
  overflow-y: hidden;
}
.nav-inner {
  display: flex;
  align-items: stretch;
  height: 30px;
  min-width: 100%;
}
.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  color: #3333cc;
  font: 12px/1 Verdana, Arial, Helvetica, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
}
.main-nav a:hover { background: rgba(255,255,255,.22); color: #111; }
.main-nav a.nav-home { flex-grow: 150; }
.main-nav a.nav-author { flex-grow: 300; }
.main-nav a.nav-reviewer { flex-grow: 350; }
.main-nav a.nav-logout { flex-grow: 125; }
.main-nav a.nav-journal { flex-grow: 150; }
.nav-sep { width: 1px; flex: 0 0 1px; background: #fff; }
.alert-icon {
  width: 12px; height: 12px; display: inline-block;
  margin-left: 3px; vertical-align: -2px; border: 0;
}

/* ── Shared page layout ────────────────────────────────────── */
.page-content {
  padding: 30px;
  min-height: 320px;
}
.page-content.narrow { padding-bottom: 8px; }
.section-rule {
  height: 1px;
  margin: 8px 0 18px;
  background: linear-gradient(90deg, #222, #999 70%, #d8d8d8);
}
.system-subtitle {
  color: var(--jama-navy);
  font-size: 16px;
  line-height: 1.2;
  font-weight: bold;
}
.system-subtitle i { font-style: italic; }
.system-intro {
  margin: 10px 0 0;
  color: #1e1e1e;
  font-size: 13px;
  line-height: 1.6;
  max-width: 1000px;
}

/* ── Login ──────────────────────────────────────────────────── */
.login-stage {
  padding: 58px 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-prompt {
  margin: 0 0 8px;
  color: var(--jama-link);
  font-size: 14px;
  font-weight: bold;
}
.login-box {
  width: 614px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #bbbbbb;
  border-radius: 7px;
}
.login-grid { display: grid; grid-template-columns: 1.52fr 1fr; }
.login-left { padding: 21px 24px 16px 22px; }
.login-right {
  border-left: 1px solid #d8d8d8;
  padding: 21px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.login-box-title {
  margin: 0 0 20px;
  color: var(--jama-navy);
  text-align: center;
  font-size: 13px;
  font-weight: bold;
}
.login-row {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.login-row label {
  color: var(--jama-navy);
  font-size: 12px;
  font-weight: bold;
  text-align: right;
}
.login-row input {
  width: 210px;
  max-width: 100%;
  height: 24px;
  padding: 2px 5px;
  border: 1px solid #7f9db9;
  background: #fff;
  color: #000;
  font: 13px Verdana, Arial, sans-serif;
  border-radius: 0;
}
.login-row input:focus {
  outline: 1px dotted #333;
  outline-offset: 1px;
}
.login-forgot {
  margin: 0 0 13px 102px;
  font-size: 10px;
  line-height: 1.4;
}
.login-forgot a { color: var(--jama-link); }
.login-error {
  margin: 0 0 12px 102px;
  color: #cc0000;
  font-size: 12px;
  line-height: 1.45;
}
.login-actions {
  margin-left: 102px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.ejp-button,
.login-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 11px;
  border: 1px solid #888888;
  border-radius: 2px;
  background: linear-gradient(#f7f7f7, #e6e6e6);
  color: #000;
  font: 12px Verdana, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.ejp-button:hover,
.login-actions button:hover { background: linear-gradient(#fff, #efefef); color: #000; }
.ejp-button:active { background: #e1e1e1; }
.ejp-button.blue { background: linear-gradient(#2b6b9d, #1e4f79); border-color: #173d5e; color: #fff; }
.ejp-button.blue:hover { background: linear-gradient(#347bab, #235a88); color: #fff; }
.ejp-button.small { min-height: 21px; padding: 1px 7px; font-size: 11px; }
.login-right p {
  margin: 0 0 13px;
  color: #333;
  font-size: 11px;
  line-height: 1.45;
}
.orcid-link { display: inline-block; line-height: 0; text-decoration: none; }
.orcid-link img { width: 32px; height: 32px; border: 0; display: block; }
.orcid-link:hover { opacity: .8; }
.login-bottom {
  padding: 7px 14px;
  border-top: 1px solid #dedede;
  background: #fbfbfb;
  border-radius: 0 0 6px 6px;
  text-align: center;
  font-size: 11px;
  color: #333;
}
.login-bottom strong { color: var(--jama-navy); }
.login-legal {
  width: 614px;
  max-width: 100%;
  margin: 18px auto 0;
  color: #737373;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}
.login-legal a { color: #555; }

/* ── eJournalPress modern desktop ───────────────────────────── */
.desktop { position: relative; min-width: 0; }
.desktop-header {
  position: relative;
  min-height: 24px;
  padding: 0 6px;
  border-bottom: 1px solid #dddfe0;
}
.desktop-title {
  padding-bottom: 12px;
  color: var(--jama-cyan);
  font-size: 26px;
  line-height: 1.25;
  font-weight: bold;
}
.mode-toggle {
  position: absolute;
  right: 6px;
  bottom: 6px;
  color: var(--jama-link);
  font-size: 13px;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
}
.mode-toggle:hover { text-decoration: underline; color: #cc3300; }
.desktop-bar {
  margin: 18px 6px 6px;
  display: flex;
  align-items: center;
}
.task-tab {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--jama-cyan);
  border-radius: 4px;
  background: #fff;
  color: var(--jama-cyan);
  font-size: 14.3px;
  line-height: 1.1;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}
.task-tab + .task-tab { margin-left: 18px; }
.task-tab:hover { background: var(--jama-cyan); color: #fff; }
.task-tab.selected { background: var(--jama-cyan); color: #fff; }
.desktop-contents { padding: 12px 6px 24px; }
.desktop-panel { display: none; }
.desktop-panel.selected { display: block; }
.contents-label {
  padding-bottom: 8px;
  color: var(--jama-cyan);
  font-size: 19.5px;
  line-height: 1.2;
  font-weight: bold;
}
.task-table { border-collapse: collapse; border-spacing: 0; width: auto; max-width: 100%; }
.task-table td { padding: 2px 4px 2px 0; vertical-align: top; font-size: 13px; }
.task-icon { width: 20px; text-align: center; }
.task-icon .arrow { color: #cc0000; font-weight: bold; }
.task-link { color: var(--jama-link); text-decoration: underline; }
.task-link:hover { color: #cc3300; }
.folder-icon {
  display: inline-block; width: 13px; height: 10px; position: relative;
  margin-right: 2px; vertical-align: -1px;
  background: #e6c45b; border: 1px solid #9f7f23;
}
.folder-icon::before {
  content: ""; position: absolute; left: -1px; top: -4px;
  width: 6px; height: 4px; background: #e6c45b;
  border: 1px solid #9f7f23; border-bottom: 0;
}
.manuscript-section { margin-top: 22px; }
.subsection-label {
  color: var(--jama-cyan);
  font-size: 16px;
  line-height: 1.2;
  font-weight: bold;
  margin: 0 0 8px;
}
.small-note { color: #555; font-size: 11px; line-height: 1.55; }
.small-note strong { color: #222; }

/* plain eJP table */
.table-scroll { width: 100%; overflow-x: auto; }
.ejp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.4;
  background: #fff;
}
.ejp-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 6px;
  color: var(--jama-cyan);
  font-size: 16px;
  font-weight: bold;
}
.ejp-table th {
  padding: 6px 8px;
  border: 1px solid #bfbfbf;
  background: #efefef;
  color: #222;
  text-align: left;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
}
.ejp-table td {
  padding: 7px 8px;
  border: 1px solid #d5d5d5;
  vertical-align: top;
}
.ejp-table tbody tr:nth-child(odd) td { background: #f8f8f8; }
.ejp-table tbody tr:hover td { background: #eef6fc; }
.ejp-table a { color: var(--jama-link); }
.ms-number a { font-weight: bold; white-space: nowrap; }
.ms-cell-title { min-width: 360px; }
.ms-cell-title a { color: #003399; font-weight: bold; }
.ms-cell-authors { margin-top: 4px; color: #666; font-size: 11px; line-height: 1.4; }
.ms-status { color: var(--jama-red); font-weight: bold; white-space: nowrap; }
.ms-date { white-space: nowrap; }
.action-cell { white-space: nowrap; }

/* classic desktop */
.classic-header {
  position: relative;
  border-bottom: 1px solid #dddfe0;
  padding: 0 6px 9px;
}
.classic-title {
  color: #333;
  font-size: 13px;
  font-weight: bold;
}
.classic-layout { display: flex; gap: 35px; align-items: flex-start; padding-top: 12px; }
.classic-sidebar { width: 185px; flex: 0 0 185px; }
.classic-main { flex: 1; min-width: 0; }
.classic-sidebar h2 {
  margin: 0 0 5px;
  color: #333;
  font-size: 13px;
  font-weight: bold;
}
.classic-sidebar h2.general { margin-top: 20px; }
.classic-sidebar ul { list-style: none; margin: 0; padding: 0 0 0 8px; }
.classic-sidebar li { margin: 0 0 3px; }
.classic-sidebar a, .classic-sidebar button {
  border: 0; background: none; padding: 0; color: var(--jama-link);
  font: 12px Verdana, Arial, sans-serif; text-decoration: underline; text-align: left;
}
.classic-sidebar a:hover, .classic-sidebar button:hover { color: #cc3300; }
.classic-main h2 {
  margin: 0 0 8px;
  color: var(--jama-cyan);
  font-size: 16px;
  font-weight: bold;
}

/* ── Manuscript detail ─────────────────────────────────────── */
.breadcrumb {
  margin: 0 0 12px;
  color: #777;
  font-size: 12px;
  line-height: 1.5;
}
.breadcrumb a { color: var(--jama-link); }
.breadcrumb .sep { margin: 0 5px; color: #999; }
.detail-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.detail-title {
  margin: 0;
  color: var(--jama-cyan);
  font-size: 24px;
  line-height: 1.25;
  font-weight: bold;
}
.detail-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; padding-top: 3px; }
.detail-status-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 10px 0 18px;
  padding: 8px 10px;
  border: 1px solid #d6d6d6;
  background: #f7f7f7;
  font-size: 12px;
}
.detail-status-line .label { color: #555; }
.detail-status-line .value { color: var(--jama-red); font-weight: bold; }
.article-title {
  margin: 0 0 8px;
  color: #111;
  font-size: 16px;
  line-height: 1.45;
  font-weight: bold;
  max-width: 1150px;
}
.article-authors {
  margin: 0 0 18px;
  color: #444;
  font-size: 12px;
  line-height: 1.6;
}
.detail-tabs {
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #888;
  margin-top: 22px;
  overflow-x: auto;
}
.detail-tab {
  padding: 7px 14px 6px;
  border: 1px solid #b4b4b4;
  border-bottom: 1px solid #888;
  margin-right: 2px;
  margin-bottom: -1px;
  background: #e8e8e8;
  color: #333;
  font: 12px Verdana, Arial, sans-serif;
  white-space: nowrap;
}
.detail-tab:hover { background: #f3f3f3; }
.detail-tab.selected {
  background: var(--jama-detail-blue);
  border-color: var(--jama-detail-blue);
  color: #fff;
  font-weight: bold;
}
.detail-panel {
  display: none;
  padding: 16px;
  border: 1px solid #888;
  border-top: 0;
  background: #fff;
}
.detail-panel.selected { display: block; }
.detail-panel h2 {
  margin: 0 0 10px;
  color: var(--jama-cyan);
  font-size: 17px;
  line-height: 1.3;
}
.detail-panel h2:not(:first-child) { margin-top: 23px; }
.detail-panel h3 {
  margin: 14px 0 4px;
  color: #333;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.detail-panel p { margin: 0 0 9px; font-size: 12px; line-height: 1.65; }
.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.5;
  table-layout: fixed;
}
.meta-table th,
.meta-table td {
  padding: 6px 8px;
  border: 1px solid #d3d3d3;
  vertical-align: top;
  word-wrap: break-word;
}
.meta-table th {
  width: 16%;
  background: #efefef;
  text-align: left;
  color: #333;
  font-size: 11px;
}
.meta-table tr:nth-child(even) td { background: #fafafa; }
.meta-table td.wide { width: 34%; }
.meta-table .full { width: auto; }

.file-table th { white-space: nowrap; }
.file-name-cell { min-width: 250px; }
.file-name-row { display: flex; align-items: flex-start; gap: 7px; }
.file-icon {
  flex: 0 0 24px; width: 24px; height: 27px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #c9c9c9; background: #f5f5f5;
  color: #555; font-size: 6px; font-weight: bold; line-height: 1;
}
.file-icon.pdf { border-color: #d8b2b5; background: #fff1f1; color: #a22b34; }
.file-icon.docx { border-color: #c5d8e7; background: #f3f8fd; color: #2e5f88; }
.file-icon.png { border-color: #ccdcc8; background: #f4faf2; color: #486c41; }
.file-icon.zip { border-color: #dfd2ad; background: #fbf7ea; color: #715e28; }
.file-type { color: #555; font-size: 11px; white-space: nowrap; }
.file-size { color: #555; font-size: 11px; white-space: nowrap; }
.file-actions { white-space: nowrap; text-align: right; }
.file-actions a, .file-actions button { font-size: 11px; margin-left: 8px; }
.file-actions a:first-child, .file-actions button:first-child { margin-left: 0; }
.status-history-table td:first-child { white-space: nowrap; }
.status-history-table .current-row td { background: #fdf4f4; font-weight: bold; }
.correspondence-list { list-style: none; margin: 0; padding: 0; }
.correspondence-list li { padding: 10px 0; border-bottom: 1px solid #e0e0e0; }
.correspondence-list li:first-child { padding-top: 1px; }
.correspondence-list li:last-child { border-bottom: 0; }
.corr-subject { margin: 0 0 3px; color: #222; font-size: 12px; font-weight: bold; }
.corr-meta { color: #666; font-size: 11px; margin: 0 0 4px; }
.corr-excerpt { margin: 0 0 4px; color: #444; font-size: 12px; line-height: 1.55; }
.corr-open { border: 0; background: none; padding: 0; color: var(--jama-link); font-size: 11px; text-decoration: underline; }
.detail-bottom-note {
  margin: 14px 0 0; color: #666; font-size: 11px; line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  width: 904px;
  max-width: calc(100% - 60px);
  margin: 8px auto 26px;
  text-align: center;
  color: #555;
  font-size: 11px;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 5px;
  padding-top: 5px;
  border-top: 1px solid #222;
  font-size: 12px;
}
.footer-links a, .footer-links button {
  border: 0; background: none; padding: 0;
  color: #3333cc; font: 12px Verdana, Arial, sans-serif; text-decoration: none;
}
.footer-links a:hover, .footer-links button:hover { text-decoration: underline; color: #cc3300; }
.footer-links .footer-sep { color: #555; }
.footer-legal { margin-top: 4px; font-size: 11px; }
.footer-legal a { color: #3333cc; text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
.footer-software { margin-top: 8px; font-size: 11px; color: #333; }
.footer-software a { color: #3333cc; text-decoration: none; }
.footer-copyright { margin-top: 2px; font-size: 11px; color: #333; }
.footer-alert { width: 11px; height: 11px; vertical-align: -1px; margin-left: 1px; border: 0; }

/* ── Page transition loader ────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(255, 255, 255, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.loader-card {
  width: 360px;
  max-width: 100%;
  padding: 26px 26px 22px;
  border: 1px solid #bbbbbb;
  border-top: 4px solid var(--jama-red);
  background: #ffffff;
  box-shadow: 0 6px 26px rgba(0, 0, 0, .13);
  text-align: center;
}
.loader-brand {
  color: var(--jama-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.loader-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 13px;
  border: 3px solid #e1e6e9;
  border-top-color: var(--jama-red);
  border-radius: 50%;
  animation: jama-spin .8s linear infinite;
}
.loader-message {
  min-height: 18px;
  color: #333333;
  font-size: 12px;
  line-height: 1.5;
}
.loader-track {
  height: 4px;
  margin-top: 16px;
  background: #e6eaed;
  overflow: hidden;
}
.loader-track span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--jama-red);
  animation: jama-loader-bar 1.5s ease-in-out infinite;
}
@keyframes jama-spin { to { transform: rotate(360deg); } }
@keyframes jama-loader-bar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(275%); }
}

/* ── Modals ─────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.48);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: jama-fade .12s ease-out;
}
.modal {
  width: min(660px, 100%);
  max-height: min(86vh, 820px);
  background: #fff;
  border: 2px solid #888;
  box-shadow: 0 0 14px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
}
.modal.wide { width: min(1060px, 100%); height: min(86vh, 840px); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 7px 11px;
  background: var(--jama-detail-blue);
  color: #fff;
}
.modal-head h2 { margin: 0; font-size: 13px; font-weight: bold; line-height: 1.35; color: #fff; }
.modal-close {
  flex: 0 0 22px; width: 22px; height: 22px;
  border: 1px solid #9eb5c7; background: #f8fbfd; color: #23465e;
  font-size: 15px; line-height: 1; display: grid; place-items: center;
}
.modal-close:hover { background: #eaf2f8; }
.modal-body {
  padding: 14px 16px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.65;
  color: #222;
}
.modal-body.flush { padding: 0; flex: 1; min-height: 0; overflow: hidden; }
.modal-body p { margin: 0 0 10px; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-body h3 { margin: 14px 0 4px; color: #333; font-size: 11px; text-transform: uppercase; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body ul { margin: 5px 0 11px; padding-left: 20px; }
.modal-body li { margin-bottom: 3px; }
.modal-body a { color: var(--jama-link); }
.modal-footer {
  padding: 8px 12px;
  border-top: 1px solid #ccc;
  background: #f7f7f7;
  display: flex; justify-content: flex-end; gap: 6px;
}
.pdf-frame { display: block; width: 100%; height: 100%; border: 0; background: #525659; }
.image-preview { display: block; max-width: 100%; max-height: 62vh; margin: 0 auto; border: 1px solid #ccc; }
.letter-meta {
  margin-bottom: 12px; padding-bottom: 9px;
  border-bottom: 1px solid #ddd; color: #555; font-size: 11px; line-height: 1.6;
}
.letter-meta strong { color: #222; }
.letter-text { font-size: 12px; line-height: 1.75; color: #222; }
.letter-text p { margin: 0 0 11px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #1e4f79; color: #fff; padding: 8px 13px;
  border: 1px solid #173d5e; font-size: 11px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 1100;
  animation: jama-fade .12s ease-out;
}
@keyframes jama-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .page-content { padding: 20px; }
  .login-stage { padding: 38px 0 21px; }
  .site-footer { max-width: calc(100% - 40px); }
  .ms-cell-title { min-width: 280px; }
  .detail-heading-row { flex-direction: column; }
  .detail-actions { justify-content: flex-start; }
  .meta-table th { width: 24%; }
}
@media (max-width: 760px) {
  .network-strip { display: none; }
  .masthead { height: 58px; }
  .masthead .jno-logo { width: 206px; height: 58px; object-fit: cover; object-position: left center; }
  .nav-inner { min-width: 760px; }
  .main-nav a { font-size: 11px; }
  .page-content { padding: 16px 14px 20px; }
  .system-subtitle { font-size: 15px; }
  .section-rule { margin-bottom: 14px; }
  .login-stage { padding: 28px 0 17px; }
  .login-grid { grid-template-columns: 1fr; }
  .login-right {
    border-left: 0;
    border-top: 1px solid #d8d8d8;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
    padding: 12px 20px;
  }
  .login-right p { margin: 0; }
  .login-left { padding: 19px 19px 15px; }
  .login-row { grid-template-columns: 88px 1fr; }
  .login-row input { width: 100%; }
  .login-forgot, .login-error, .login-actions { margin-left: 96px; }
  .login-box { border-radius: 5px; }
  .desktop-header { padding-left: 2px; padding-right: 2px; }
  .desktop-title { font-size: 22px; }
  .mode-toggle { position: static; display: inline-block; margin-bottom: 8px; font-size: 12px; }
  .desktop-bar { margin-left: 2px; margin-right: 2px; overflow-x: auto; }
  .task-tab { font-size: 13px; padding: 7px 10px; }
  .task-tab + .task-tab { margin-left: 10px; }
  .desktop-contents { padding-left: 2px; padding-right: 2px; }
  .contents-label { font-size: 18px; }
  .ejp-table { min-width: 660px; }
  .classic-layout { display: block; }
  .classic-sidebar { width: auto; margin-bottom: 20px; }
  .classic-main .ejp-table { min-width: 660px; }
  .breadcrumb { font-size: 11px; }
  .detail-title { font-size: 21px; }
  .detail-tabs { overflow-x: auto; }
  .detail-tab { font-size: 11px; padding: 6px 10px; }
  .detail-panel { padding: 11px; }
  .detail-panel h2 { font-size: 16px; }
  .meta-table,
  .meta-table tbody,
  .meta-table tr,
  .meta-table th,
  .meta-table td { display: block; width: 100%; }
  .meta-table { border-top: 1px solid #d3d3d3; }
  .meta-table th { border-bottom: 0; padding: 5px 8px 2px; }
  .meta-table td { border-top: 0; padding: 4px 8px 7px; }
  .meta-table tr:nth-child(even) td { background: #fafafa; }
  .display-pair { margin-bottom: 7px; }
  .article-title { font-size: 15px; }
  .article-authors { font-size: 11px; }
  .site-footer { max-width: calc(100% - 28px); margin-bottom: 20px; }
  .footer-links { font-size: 11px; }
  .footer-links a, .footer-links button { font-size: 11px; }
  .modal-backdrop { padding: 10px; }
  .modal { max-height: 92vh; }
  .modal.wide { height: 90vh; }
  .file-table, .file-table tbody, .file-table tr, .file-table td { display: block; width: 100%; }
  .file-table thead { display: none; }
  .file-table tr { padding: 9px 10px; border-bottom: 1px solid #ddd; }
  .file-table td { border: 0; padding: 2px 0; }
  .file-actions { text-align: left; margin-top: 4px; }
  .file-name-cell { min-width: 0; }
}
@media (max-width: 460px) {
  .login-row { grid-template-columns: 1fr; gap: 2px; }
  .login-row label { text-align: left; }
  .login-forgot, .login-error, .login-actions { margin-left: 0; }
  .login-actions { width: 100%; }
  .login-actions button { flex: 1; }
  .masthead .jno-logo { width: 196px; height: 55px; }
  .masthead { height: 55px; }
  .desktop-title { font-size: 20px; }
  .task-tab { font-size: 12px; padding: 6px 8px; }
  .task-tab + .task-tab { margin-left: 7px; }
  .contents-label { font-size: 17px; }
  .detail-status-line { font-size: 11px; gap: 4px 9px; }
  .detail-title { font-size: 19px; }
}
@media print {
  .main-nav, .site-footer, .detail-actions, .file-actions, .modal-backdrop, .mode-toggle, .desktop-bar { display: none !important; }
  .page-content { padding: 0; }
  .detail-tabs { display: none !important; }
  .detail-panel { display: block !important; border: 0; padding: 8px 0; page-break-inside: avoid; }
}
