:root {
  --ink: #0e1b2c;
  --ink-2: #1a2a40;
  --muted: #556173;
  --faint: #8a94a3;
  --line: #dde2ea;
  --accent: #1f4fd1;
  --accent-dark: #163a9e;
  --accent-tint: #eaf0fd;
  --paper: #f5f7fa;
  --cream: #eef1f6;
  --ok: #1c8a5a;
  --ok-tint: #e8f6ef;
  --warn: #b8790a;
  --warn-tint: #fdf3df;
  --info: #5b3fae;
  --info-tint: #f1edfb;
  --teal: #0d7d75;
  --teal-tint: #e4f5f3;
  --shadow-sm: 0 1px 2px rgba(14, 27, 44, .05);
  --shadow-md: 0 10px 30px rgba(14, 27, 44, .08), 0 2px 6px rgba(14, 27, 44, .05);
  --radius: 12px;
  --mark: #f2b705;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.brand,
.display {
  font-family: var(--serif);
  letter-spacing: -.01em;
  font-weight: 700;
}

.section-pad h2.h3 {
  font-size: 2.15rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

section {
  position: relative;
}

.section-pad {
  padding: 5.5rem 0;
}

.section-pad-sm {
  padding: 3.5rem 0;
}

.eyebrow {
  font-size: .82rem;
  font-weight: 800;
  color: var(--accent);
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Nav ---------- */
.navbar-scholarly {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.navbar-scholarly .brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.navbar-scholarly .nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
  padding: .5rem .9rem;
}

.navbar-scholarly .nav-link:hover {
  color: var(--accent);
}

.icon-btn {
  background: none;
  border: none;
  color: var(--ink);
  padding: .4rem;
  opacity: .8;
  position: relative;
}

.icon-btn:hover {
  opacity: 1;
  color: var(--accent);
}

.icon-btn .dot-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid #fff;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-outline-light-custom {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
}

.btn-outline-light-custom:hover {
  background: rgba(255, 255, 255, .08);
  border-color: #fff;
  color: #fff;
}

.btn-quiet {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: .88rem;
}

.btn-quiet:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.avatar-circle {
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--serif);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(31, 79, 209, .28), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(91, 63, 174, .22), transparent 55%),
    var(--ink);
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}

.hero h1 {
  color: #fff;
  font-size: 2.7rem;
  font-weight: 600;
  line-height: 1.18;
  max-width: 640px;
}

.hero .lede-light {
  color: #c9c7bd;
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #e7e5db;
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .85rem;
  border-radius: 999px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4ade80;
}

.flow-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 1.6rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem 0;
}

.flow-step .num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: -14px;
}

.flow-step.active .num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.flow-step .lbl {
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
}

.flow-step.active .lbl {
  color: var(--accent);
}

.flow-step:not(:last-child) {
  border-left: 2px solid var(--line);
  margin-left: 13px;
  padding-left: 1rem;
}

.flow-step.active:not(:last-child) {
  border-left-color: var(--accent);
}

/* ---------- Bars / banners ---------- */
.stats-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.stat-block {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-block .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--ink);
}

.stat-block .lbl {
  color: var(--muted);
  font-size: .82rem;
  margin-top: .15rem;
}

.banner-dark {
  background: var(--ink);
  border-bottom: 3px solid var(--accent);
}

/* ---------- Cards ---------- */
.card-plain {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-hover {
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: #d8d5c9;
}

.journal-card {
  overflow: hidden;
  height: 100%;
}

.journal-card .bar {
  height: 6px;
}

.journal-card .body {
  padding: 1.5rem;
}

.badge-oa {
  background: var(--ok-tint);
  color: var(--ok);
  font-size: .7rem;
  font-weight: 700;
  padding: .28rem .6rem;
  border-radius: 999px;
}

.badge-issn {
  color: var(--faint);
  font-size: .72rem;
  font-family: monospace;
}

.article-row {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.article-row:last-child {
  border-bottom: none;
}

.article-tag {
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 6px;
}

.article-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.4;
}

.article-title:hover {
  color: var(--accent);
}

.article-meta {
  color: var(--faint);
  font-size: .82rem;
}

.article-abstract {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

.process-card {
  text-align: left;
  height: 100%;
  padding: 1.6rem;
}

.process-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.process-num {
  font-family: var(--serif);
  font-size: .78rem;
  font-weight: 700;
  color: var(--faint);
  margin-bottom: .4rem;
}

.feature-card {
  padding: 1.8rem;
  height: 100%;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.person-card {
  text-align: center;
  padding: 1.6rem 1rem;
}

.person-avatar {
  width: 64px;
  height: 64px;
  font-size: 1.2rem;
  margin: 0 auto .9rem;
}

.quote-card {
  padding: 1.8rem;
  height: 100%;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--line);
  line-height: .5;
  display: block;
  margin-bottom: .6rem;
}

.accordion-scholarly .accordion-item {
  border: 1px solid var(--line);
  border-radius: 12px !important;
  margin-bottom: .75rem;
  overflow: hidden;
}

.accordion-scholarly .accordion-button {
  font-weight: 600;
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
}

.accordion-scholarly .accordion-button:not(.collapsed) {
  background: var(--accent-tint);
  color: var(--accent);
  box-shadow: none;
}

.accordion-scholarly .accordion-button:focus {
  box-shadow: none;
}

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 3.5rem 3rem;
}

.newsletter-panel {
  background: var(--cream);
  border-radius: 20px;
  padding: 2.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a1522;
  color: #8a94a3;
}

.site-footer a {
  color: #c3cbd6;
  font-size: .88rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-heading {
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-brand {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  padding: 2.5rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 2.4rem;
}

.auth-side {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(31, 79, 209, .3), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(91, 63, 174, .24), transparent 55%),
    var(--ink);
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.role-pick {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .9rem 1rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.role-pick.active {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.role-pick input {
  display: none;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(31, 79, 209, .12);
}

.demo-strip {
  background: var(--cream);
  border: 1px dashed #d8d5c9;
  border-radius: 12px;
  padding: .9rem 1.1rem;
  font-size: .82rem;
  color: var(--muted);
}

/* ---------- Dashboards (shared) ---------- */
.dash-sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  min-height: calc(100vh - 66px);
  padding: 1.5rem 1rem;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .9rem;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .2rem;
}

.dash-nav-link:hover {
  background: var(--paper);
  color: var(--ink);
}

.dash-nav-link.active {
  background: var(--ink);
  color: #fff;
}

.dash-nav-link .cnt {
  margin-left: auto;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  padding: .05rem .4rem;
  border-radius: 999px;
}

.dash-nav-link.active .cnt {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.dash-main {
  padding: 2.2rem 2.4rem;
}

.chip-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 999px;
}

.chip-status.ok {
  background: var(--ok-tint);
  color: var(--ok);
}

.chip-status.warn {
  background: var(--warn-tint);
  color: var(--warn);
}

.chip-status.info {
  background: var(--info-tint);
  color: var(--info);
}

.chip-status.accent {
  background: var(--accent-tint);
  color: var(--accent);
}

.chip-status.muted {
  background: #f1efe6;
  color: var(--muted);
}

.badge-needs {
  background: var(--accent-tint);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  padding: .28rem .65rem;
  border-radius: 999px;
}

.submission-row {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid #f0eee6;
  transition: background .15s ease;
}

.submission-row:last-child {
  border-bottom: none;
}

.submission-row:hover {
  background: #fbfaf7;
}

.submission-title {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.submission-title:hover {
  color: var(--accent);
}

.step {
  display: flex;
  gap: .85rem;
}

.step .dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step .dot.done {
  background: var(--ok);
  color: #fff;
}

.step .dot.current {
  border: 3px solid var(--info);
  background: #fff;
  box-shadow: 0 0 0 4px var(--info-tint);
}

.step .dot.upcoming {
  border: 2px solid var(--line);
  background: #fff;
}

.step .line {
  width: 2px;
  flex-grow: 1;
  background: var(--ok);
  min-height: 20px;
  margin: 2px auto 0;
}

.step .line.upcoming {
  background: var(--line);
}

.step-label.current {
  font-weight: 700;
}

.step-label.upcoming {
  color: var(--faint);
}

.empty-state {
  background: #fff;
  border: 1px dashed #d8d5c9;
  border-radius: var(--radius);
  padding: 3.5rem 1.75rem;
  text-align: center;
}

.empty-state .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  color: var(--faint);
}

.subtab .nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: .85rem;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: .85rem 1.05rem;
}

.subtab .nav-link:hover {
  color: var(--ink);
}

.subtab .nav-link.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  background: transparent;
}

.comment {
  display: flex;
  gap: .85rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0eee6;
}

.comment:last-child {
  border-bottom: none;
}

.visibility-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 6px;
}

.visibility-tag.visible {
  background: var(--ok-tint);
  color: var(--ok);
}

.visibility-tag.confidential {
  background: var(--accent-tint);
  color: var(--accent);
}

.reviewer-pick {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: .6rem;
}

.reviewer-pick:hover {
  border-color: var(--accent);
}

.reviewer-pick input {
  width: 16px;
  height: 16px;
}

.kpi-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
}

.kpi-tile .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
}

.toggle-pill {
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: var(--ok);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-pill .knob {
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #fff;
  position: absolute;
  top: 3px;
  right: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.chip {
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .76rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  color: #4a4944;
}

.resource-row {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

.resource-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ================= v2 additions — editorial hero, detail pages, richer dashboards ================= */

/* Editorial masthead hero (replaces the dark gradient hero) */
.masthead-ticker {
  background: var(--ink);
  color: #e7e5db;
  font-size: .78rem;
  padding: .55rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.masthead-ticker .item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-right: 2.5rem;
}

.masthead-ticker .item .dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-editorial {
  background:
    repeating-linear-gradient(135deg, rgba(14, 27, 44, .025) 0px, rgba(14, 27, 44, .025) 1px, transparent 1px, transparent 13px),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 4.5rem;
}

.issue-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.issue-label .rule {
  height: 1px;
  width: 34px;
  background: var(--faint);
}

.hero-editorial h1 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.16;
  color: var(--ink);
}

.spotlight-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.spotlight-panel .top {
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--info));
}

.byline-stack .avatar-circle {
  margin-right: -9px;
  border: 2px solid #fff;
}

/* Motivational progress ring */
.progress-ring {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring .pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
}

/* Achievement chips */
.achv {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.achv.locked {
  opacity: .45;
}

.achv .badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mini bar chart (pure CSS) */
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  height: 110px;
}

.mini-bars .bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.mini-bars .bar-col .bar {
  width: 100%;
  border-radius: 5px 5px 0 0;
  background: var(--info);
}

.mini-bars .bar-col .lbl {
  font-size: .68rem;
  color: var(--faint);
  margin-top: .4rem;
}

/* Timeline */
.tl-item {
  display: flex;
  gap: .9rem;
  padding-bottom: 1.3rem;
  position: relative;
}

.tl-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.tl-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--line);
  z-index: 1;
}

.tl-dot.done {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.tl-dot.now {
  border-color: var(--info);
  box-shadow: 0 0 0 4px var(--info-tint);
}

/* Kanban (editor pipeline) */
.kanban-col {
  background: var(--paper);
  border-radius: 14px;
  padding: .9rem;
  min-height: 340px;
}

.kanban-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem;
  margin-bottom: .6rem;
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

.kanban-card:active {
  cursor: grabbing;
}

/* Detail pages */
.detail-hero {
  background: var(--ink);
  border-bottom: 3px solid var(--accent);
  padding: 2.6rem 0;
}

.doi-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-family: monospace;
  font-size: .82rem;
}

.keyword-pill {
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: .78rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  color: var(--ink);
}

.metric-tile {
  text-align: center;
  padding: 1rem .5rem;
  border-right: 1px solid var(--line);
}

.metric-tile:last-child {
  border-right: none;
}

.metric-tile .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
}

.toc-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}

.toc-row:last-child {
  border-bottom: none;
}

/* Distinct section divider used instead of repeating icon-circle formula */
.editorial-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.editorial-rule .num {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--line);
}

.editorial-rule .line {
  flex-grow: 1;
  height: 1px;
  background: var(--line);
}

/* ================= v3 — split-panel hero + news/blog section ================= */
.hero-split {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-split-ink {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0px, rgba(255, 255, 255, .02) 1px, transparent 1px, transparent 13px),
    var(--ink);
  padding: 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-split-light {
  padding: 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-split h1 {
  color: #fff;
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1.22;
}

.hero-split h1 .hl {
  color: #ef6b62;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1.5px solid rgba(255, 255, 255, .22);
  color: #e7e5db;
  font-size: .82rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 999px;
}

.role-chip:hover {
  border-color: #fff;
  color: #fff;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  position: relative;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1.5px solid #22c55e;
  animation: livepulse 1.8s ease-out infinite;
}

@keyframes livepulse {
  0% {
    transform: scale(.6);
    opacity: 1;
  }

  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.feed-item {
  display: flex;
  gap: .8rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: .4rem;
  flex-shrink: 0;
}

/* News & blog cards */
.news-card {
  height: 100%;
  overflow: hidden;
}

.news-card .tag-strip {
  height: 5px;
}

.news-card .body {
  padding: 1.4rem;
}

.news-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.news-card-img {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: var(--cream);
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.07);
}

.news-card-img .kicker-pill {
  position: absolute;
  left: .9rem;
  bottom: .9rem;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .32rem .7rem;
  border-radius: 999px;
}

/* Featured post (large, leads the News & Blog section) */
.featured-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.featured-post-img {
  position: relative;
  height: 260px;
}

.featured-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-post-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 19, 16, .82) 0%, rgba(20, 19, 16, 0) 60%);
}

.featured-post-img .fp-tag {
  position: absolute;
  left: 1.4rem;
  top: 1.3rem;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .35rem .8rem;
  border-radius: 999px;
  z-index: 1;
}

.featured-post-img .fp-title {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.2rem;
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  z-index: 1;
}

/* ================= v4 — centered search hero, banner journal cards, list articles ================= */
.hero-centered {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 0;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--ok-tint);
  color: var(--ok);
  font-size: .78rem;
  font-weight: 700;
  padding: .45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}

.hero-centered h1 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto;
}

.hero-centered h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero-centered .lede {
  max-width: 640px;
  margin: 1.4rem auto 2.2rem;
}

.search-panel {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  display: flex;
  gap: .6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .5rem;
  box-shadow: var(--shadow-sm);
}

.search-panel input {
  border: none;
  flex-grow: 1;
  padding: .6rem .8rem;
  font-size: .92rem;
  background: transparent;
}

.search-panel input:focus {
  outline: none;
}

.stats-strip-dark {
  background: var(--ink);
  padding: 2.2rem 0;
}

.stats-strip-dark .num {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
}

.stats-strip-dark .lbl {
  color: #9a988f;
  font-size: .78rem;
  margin-top: .2rem;
}

.indexing-strip {
  padding: 1.6rem 0;
}

.indexing-strip .ibadge {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 999px;
}

.jbanner-card {
  overflow: hidden;
  height: 100%;
}

.jbanner {
  height: 130px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.2rem;
  color: #fff;
}

.jbanner .code {
  position: absolute;
  top: .9rem;
  right: .9rem;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: .68rem;
  font-weight: 700;
  padding: .25rem .55rem;
  border-radius: 6px;
}

.jbanner .glyph {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: .28;
}

.jbanner .issn {
  font-size: .68rem;
  opacity: .8;
  display: block;
  margin-bottom: .15rem;
}

.jbanner .jname {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
}

.article-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.article-list-row:last-child {
  border-bottom: none;
}

.article-list-row .jtitle {
  font-weight: 700;
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.4;
}

.article-list-row .jtitle:hover {
  color: var(--accent);
}

.btn-pdf {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  padding: .4rem .8rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.btn-pdf:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ================= v5 — bold masthead hero + minimal journal rows + workspace theming ================= */
.hero-asym {
  background: var(--ink);
  background-image: radial-gradient(1100px 620px at 88% -15%, rgba(31, 79, 209, .35), transparent 60%);
  padding: 6.5rem 0 6rem;
  overflow: hidden;
}

.hero-asym .eyebrow {
  color: #9db8ff;
}

.hero-asym h1 {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: #fff;
  max-width: 780px;
}

.hero-asym .lede {
  color: #c7c5ba;
  font-size: 1.12rem;
}

.hero-asym .stat-inline {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  margin-right: 2.2rem;
}

.hero-asym .stat-inline .n {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
}

.hero-asym .stat-inline .l {
  font-size: .8rem;
  color: #9a988f;
}

.quickstart-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  transition: border-color .15s ease, transform .15s ease;
}

.quickstart-card:hover {
  border-color: var(--accent);
  transform: translateX(3px);
}

.quickstart-card .qi {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quickstart-card .qt {
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
}

.quickstart-card .qd {
  font-size: .78rem;
  color: var(--muted);
}

/* Minimal journal rows (left accent bar instead of full banner) */
.journal-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 1.5rem;
  border-left: 4px solid transparent;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease, border-color .15s ease;
}

.journal-row:last-child {
  border-bottom: none;
}

.journal-row:hover {
  background: var(--paper);
}

.journal-row .mono {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: .85rem;
  color: #fff;
  flex-shrink: 0;
}

/* Dashboard workspace badge */
.workspace-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .4rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.workspace-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* ================= v6 — data tables for submissions ================= */
.data-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.data-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.data-table-toolbar input[type="search"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .45rem .8rem;
  font-size: .85rem;
  width: 220px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
}

.data-table thead th {
  background: var(--paper);
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #f0eee6;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--paper);
}

.data-table .id-cell {
  color: var(--faint);
  font-family: monospace;
  font-size: .78rem;
}

.data-table .title-cell {
  font-weight: 700;
  color: var(--ink);
}

.data-table .title-cell a {
  color: var(--ink);
}

.data-table .title-cell a:hover {
  color: var(--accent);
}

.data-table .sub-cell {
  color: var(--muted);
  font-size: .8rem;
  margin-top: .15rem;
}

.row-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.row-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.data-table-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.2rem;
  font-size: .8rem;
  color: var(--muted);
}

.status-select {
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .55rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

/* ================= Activity Log / Audit Trail ================= */
.audit-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.audit-filter {
  display: inline-flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.audit-filter button {
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .32rem .85rem;
}

.audit-filter button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.audit-day-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--faint);
  margin: 1.6rem 0 .6rem;
}

.audit-day-label:first-child {
  margin-top: 0;
}

.audit-trail {
  position: relative;
}

.audit-entry {
  display: flex;
  gap: .85rem;
  padding: 0 0 1.15rem 0;
  position: relative;
}

.audit-entry:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: -2px;
  width: 1.5px;
  background: var(--line);
}

.audit-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--paper);
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  z-index: 1;
}

.audit-body {
  flex-grow: 1;
  padding-top: .1rem;
  min-width: 0;
}

.audit-line {
  font-size: .88rem;
  color: var(--ink);
  line-height: 1.55;
}

.audit-line .actor {
  font-weight: 700;
}

.audit-line .action-verb {
  color: var(--muted);
}

.audit-line .target {
  font-weight: 600;
  color: var(--ink);
}

.audit-note {
  font-size: .8rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55rem .75rem;
  margin-top: .45rem;
}

.audit-time {
  font-size: .75rem;
  color: var(--faint);
  margin-top: .2rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.audit-time .exact {
  font-family: monospace;
  font-size: .72rem;
}

.audit-role-tag {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .1rem .4rem;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--accent);
}

/* =====================================================================
   v6 — Home page redesign (ink-blue + cobalt, Newsreader / IBM Plex Sans)
   ===================================================================== */
body {
  font-family: var(--sans);
  line-height: 1.6;
}

body.home {
  background: #fff;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.form-control:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}

/* Nav */
.navbar-scholarly {
  padding: .8rem 0;
  background: rgba(255, 255, 255, .96);
}

.navbar-scholarly .brand {
  font-size: 1.2rem;
  font-weight: 600;
}

.navbar-scholarly .nav-link {
  font-weight: 500;
  font-size: .93rem;
  color: var(--ink-2);
}

.navbar-scholarly .nav-link:hover {
  color: var(--accent);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;

  justify-content: center;
  align-items: center;
  display: flex;
}

.btn {
  border-radius: 9px;
}

.btn-lg {
  font-size: 1rem;
  padding: .75rem 1.4rem;
}

.btn-light-solid {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  border: 1px solid #fff;
}

.btn-light-solid:hover {
  background: var(--accent-tint);
  color: var(--accent-dark);
  border-color: var(--accent-tint);
}

/* ---------- Hero ---------- */
.hx-hero {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 5.5rem 0 6rem;
  color: #fff;
  overflow: hidden;
}

.hx-title {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 17ch;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}

.hx-lede {
  color: #b9c3d1;
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hx-search {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  border-radius: 12px;
  padding: .4rem .4rem .4rem 1rem;
  max-width: 34rem;
  color: var(--faint);
}

.hx-search input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: .98rem;
  color: var(--ink);
  min-width: 0;
  background: transparent;
}

.hx-search input:focus-visible {
  outline: none;
}

.hx-search:focus-within {
  box-shadow: 0 0 0 3px rgba(157, 184, 255, .55);
}

.hx-search .btn {
  padding: .55rem 1.1rem;
}

.hx-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 2.5rem;
  margin: 2.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.hx-stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.hx-stats dt {
  font-size: .8rem;
  font-weight: 400;
  color: #8a94a3;
}

.hx-stats dd {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
}

/* Tracker — the signature element */
.tracker {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  max-width: 480px;
  margin-left: auto;
}

.tracker-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.6rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.tracker-id {
  font-size: .78rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  margin-bottom: .25rem;
}

.tracker-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.tracker-live {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ok);
  height: fit-content;
}

.tracker-live .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(28, 138, 90, .5);
  animation: pulse 2s infinite;
}

.tracker-steps {
  list-style: none;
  margin: 0;
  padding: 1.4rem 1.6rem .6rem;
}

.tracker-steps li {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 1.15rem;
  animation: stepIn .45s ease both;
}

.tracker-steps li:nth-child(2) {
  animation-delay: .12s;
}

.tracker-steps li:nth-child(3) {
  animation-delay: .24s;
}

.tracker-steps li:nth-child(4) {
  animation-delay: .36s;
}

.tracker-steps li:nth-child(5) {
  animation-delay: .48s;
}

.tracker-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 20px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}

.tracker-steps li.done:not(:last-child)::after {
  background: var(--accent);
  transform-origin: top;
  animation: grow .5s ease both;
  animation-delay: inherit;
}

.ts-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  border: 2px solid var(--line);
  background: #fff;
  position: relative;
  z-index: 1;
}

.tracker-steps li.done .ts-dot {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
  border-color: var(--accent);
}

.tracker-steps li.now .ts-dot {
  border-color: var(--mark);
  background: var(--mark);
  box-shadow: 0 0 0 5px rgba(242, 183, 5, .22);
}

.tracker-steps b {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
}

.tracker-steps li:not(.done):not(.now) b {
  color: var(--faint);
  font-weight: 500;
}

.tracker-steps small {
  color: var(--muted);
  font-size: .8rem;
}

.tracker-steps li.now small {
  color: #8a6400;
  font-weight: 500;
}

.tracker-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.6rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  border-radius: 0 0 16px 16px;
  font-size: .84rem;
  color: var(--muted);
}

.tracker-foot a {
  font-weight: 600;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(28, 138, 90, .5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(28, 138, 90, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(28, 138, 90, 0);
  }
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes grow {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

/* ---------- Sections ---------- */
.sec {
  padding: 5.5rem 0;
}

.sec-tint {
  background: var(--paper);
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.sec-title {
  text-wrap: balance;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.015em;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: .5rem;
}

.sec-title.h-sm {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.sec-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
  max-width: 36rem;
}

.sec-link {
  font-weight: 600;
  font-size: .93rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Journals */
.jcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(14, 27, 44, .04), 0 6px 18px rgba(14, 27, 44, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.jcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(14, 27, 44, .05), 0 14px 30px rgba(14, 27, 44, .12);
}

.jcard-head {
  position: relative;
  display: block;
  min-height: 168px;
  padding: 1rem 1rem 1.1rem;
  color: #fff;
  background:
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 16px 16px,
    linear-gradient(180deg, var(--j) 0%, color-mix(in srgb, var(--j) 55%, #071a1f) 100%);
  isolation: isolate;
}

.jcard-head:hover {
  color: #fff;
}

.jcard-pill {
  display: inline-block;
  padding: .3rem .7rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.jcard-badge {
  position: absolute;
  top: .85rem;
  right: .85rem;
  min-width: 66px;
  padding: .4rem .55rem .3rem;
  border-radius: 8px;
  background: #fff;
  color: var(--j);
  text-align: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.jcard-badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.jcard-badge small {
  display: block;
  margin-top: .2rem;
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--faint);
  text-transform: uppercase;
}

.jcard-icon {
  position: absolute;
  top: 26px;
  left: 50%;
  z-index: -1;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transform: translateX(-50%);
}

.jcard-icon::after {
  content: "";
  position: absolute;
  inset: 22px;
  background: rgba(255, 255, 255, .92);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.jcard-meta {
  display: block;
  margin-top: 4.3rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .85);
}

.jcard-title {
  margin-top: .2rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jcard-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.1rem 1.1rem 1rem;
}

.jcard-desc {
  flex-grow: 1;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}

.jcard-desc span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.jcard-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
  color: var(--muted);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

.jcard-status::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--j);
}

.jcard-btn {
  flex-shrink: 0;
  padding: .55rem 1rem;
  border-radius: 8px;
  background: var(--j);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .15s ease;
}

.jcard-btn:hover {
  color: #fff;
  background: color-mix(in srgb, var(--j) 80%, #000);
}

.jcard-icon--network { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='4' r='2'/%3E%3Ccircle cx='5' cy='9' r='2'/%3E%3Ccircle cx='19' cy='9' r='2'/%3E%3Ccircle cx='12' cy='12' r='2.4'/%3E%3Ccircle cx='7' cy='19' r='2'/%3E%3Ccircle cx='17' cy='19' r='2'/%3E%3Cpath d='M12 6v3.6M6.7 10l3.3 1.3M17.3 10 14 11.3M10.6 13.9 8 17.3M13.4 13.9 16 17.3M7 9.5l3.9-4.2M17 9.5l-3.9-4.2M9 19h6'/%3E%3C/svg%3E"); }
.jcard-icon--heart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7.2a4.3 4.3 0 0 1 7.5 2.6C19.5 15.4 12 20 12 20Z'/%3E%3Cpath d='M4 12h4l1.5-3 3 6 1.5-3h6'/%3E%3C/svg%3E"); }
.jcard-icon--flask { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6.5L4.6 18.4A1.7 1.7 0 0 0 6 21h12a1.7 1.7 0 0 0 1.4-2.6L14 9.5V3'/%3E%3Cpath d='M7.2 15h9.6'/%3E%3Ccircle cx='10' cy='18' r='.6'/%3E%3Ccircle cx='13.5' cy='17.5' r='.6'/%3E%3C/svg%3E"); }
.jcard-icon--atom { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3Cellipse cx='12' cy='12' rx='9' ry='3.6'/%3E%3Cellipse cx='12' cy='12' rx='9' ry='3.6' transform='rotate(60 12 12)'/%3E%3Cellipse cx='12' cy='12' rx='9' ry='3.6' transform='rotate(-60 12 12)'/%3E%3C/svg%3E"); }
.jcard-icon--gear { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M5.3 18.7l2.1-2.1M16.6 7.4l2.1-2.1'/%3E%3Ccircle cx='12' cy='12' r='6.5'/%3E%3C/svg%3E"); }
.jcard-icon--leaf { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-13 15-14-1 10-6 15-14 15'/%3E%3Cpath d='M5 19 13 11'/%3E%3C/svg%3E"); }
.jcard-icon--chart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18'/%3E%3Cpath d='M6 16v-4M10.5 16V8M15 16v-6M19.5 16V5'/%3E%3C/svg%3E"); }
.jcard-icon--book { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 5 7 4.5 3.5 5v13.5c3.5-.5 6.5 0 8.5 1.5 2-1.5 5-2 8.5-1.5V5C17 4.5 14 5 12 6.5Z'/%3E%3Cpath d='M12 6.5V20'/%3E%3C/svg%3E"); }

/* Articles */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.fchip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: .86rem;
  font-weight: 500;
  padding: .45rem .95rem;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.fchip:hover {
  border-color: var(--ink-2);
}

.fchip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.alist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.aitem {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}

.aitem[hidden] {
  display: none;
}

.aitem-j {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: .6rem;
}

.aitem-j::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--j);
}

.aitem-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .5rem;
}

.aitem-title a {
  color: var(--ink);
}

.aitem-title a:hover {
  color: var(--accent);
}

.aitem-abs {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aitem-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.1rem;
  font-size: .8rem;
  color: var(--faint);
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.aitem-meta span:first-child {
  color: var(--ink-2);
  font-weight: 500;
}

.aitem-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .88rem;
  font-weight: 600;
}

.alist-empty {
  color: var(--muted);
  padding: 2rem 0;
}

/* News */
.nlist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.nitem {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.nlist li:last-child .nitem {
  border-bottom: 0;
}

.nitem:hover {
  color: var(--ink);
}

.nitem:hover .ntitle {
  color: var(--accent);
}

.ndate b {
  display: block;
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
}

.ndate span {
  display: block;
  font-size: .8rem;
  color: var(--faint);
  margin-top: .3rem;
}

.ncat {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--c);
}

.ncat::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.ntitle {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin: .35rem 0 .35rem;
  transition: color .15s ease;
}

.nexc {
  color: var(--muted);
  font-size: .93rem;
  margin: 0;
  max-width: 38rem;
}

/* Blog */
.bpost {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  color: var(--ink);
  height: 100%;
}

.bpost:hover {
  color: var(--ink);
  border-color: #c7cfdb;
}

.bpost:hover .bpost-title {
  color: var(--accent);
}

.bpost-img {
  position: relative;
  overflow: hidden;
  background-color: var(--j);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 14px);
}

.bpost-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bpost-lg .bpost-img {
  aspect-ratio: 16 / 9;
}

.bpost-body {
  padding: 1.5rem 1.6rem 1.6rem;
}

.bpost-cat {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
}

.bpost-title {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  margin: .4rem 0 .5rem;
  transition: color .15s ease;
}

.bpost-lg .bpost-title {
  font-size: 1.75rem;
}

.bpost-exc {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.bpost-by {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .88rem;
}

.bpost-by b {
  display: block;
  font-weight: 600;
}

.bpost-by small {
  color: var(--faint);
  font-size: .8rem;
}

.bpost-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  flex: 1;
}

.bpost-row .bpost-img {
  min-height: 128px;
}

.bpost-row .bpost-body {
  padding: 1.1rem 1.25rem;
}

.bpost-row .bpost-title {
  font-size: 1.12rem;
}

.bpost-meta {
  font-size: .8rem;
  color: var(--faint);
}

/* Process */
.psteps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
}

.psteps li {
  position: relative;
  padding-top: 3.25rem;
}

.psteps li::before {
  content: "";
  position: absolute;
  left: 0;
  right: -1.5rem;
  top: 16px;
  height: 2px;
  background: var(--line);
}

.psteps li:last-child::before {
  right: 0;
}

.pnum {
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 0 0 6px #fff;
}

.psteps li:last-child .pnum {
  background: var(--accent);
}

.psteps h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .4rem;
}

.psteps p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

/* Authors */
.flist {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.flist li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.ficon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flist b {
  display: block;
  font-weight: 600;
  margin-bottom: .15rem;
}

.flist p {
  color: var(--muted);
  font-size: .92rem;
  margin: 0;
}

.cfp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin-bottom: .9rem;
}

.cfp-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.cfp-dl {
  font-size: .8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cfp h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: .6rem 0 .3rem;
}

.cfp p {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: .6rem;
}

.cfp a {
  font-weight: 600;
  font-size: .88rem;
}

/* Board + quote */
.board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.bperson {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.bperson .avatar-circle {
  width: 44px;
  height: 44px;
  font-size: .85rem;
}

.bperson b {
  display: block;
  font-weight: 600;
  font-size: .95rem;
}

.bperson small {
  color: var(--muted);
  font-size: .82rem;
}

.bigquote {
  margin: 0;
  padding-left: 1.75rem;
  border-left: 3px solid var(--accent);
}

.bigquote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.bigquote figcaption {
  color: var(--muted);
  font-size: .9rem;
}

.bigquote figcaption b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* FAQ */
.accordion-scholarly .accordion-button {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 1.1rem 1.25rem;
}

.accordion-scholarly .accordion-body {
  color: var(--muted);
  font-size: .95rem;
  padding: 0 1.25rem 1.25rem;
  background: var(--accent-tint);
}

.accordion-scholarly .accordion-item {
  border-radius: 10px !important;
}

/* CTA */
.cta-panel {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.75rem);
}

.cta-title {
  font-family: var(--serif);
  font-weight: 600;
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: .75rem;
}

.cta-sub {
  color: #b9c3d1;
  margin-bottom: 1.75rem;
  max-width: 30rem;
}

.cta-news {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 1.75rem;
}

.cta-news h3 {
  color: #fff;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .3rem;
}

.cta-news p {
  color: #b9c3d1;
  font-size: .92rem;
  margin-bottom: 1rem;
}

.cta-news .form-control {
  border: 0;
  padding: .65rem .9rem;
  border-radius: 9px;
}

/* Footer */
.footer-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid #1c2a3d;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  font-size: .82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hx-hero {
    padding: 3.5rem 0 4rem;
  }

  .tracker {
    margin: 0 auto;
  }

  .alist {
    grid-template-columns: minmax(0, 1fr);
  }

  .psteps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .psteps li {
    padding: 0 0 1.75rem 3.5rem;
  }

  .psteps li::before {
    left: 16px;
    right: auto;
    top: 34px;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .psteps li:last-child::before {
    display: none;
  }

  .sec {
    padding: 4rem 0;
  }
}

@media (max-width: 575.98px) {
  .hx-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .hx-stats dd {
    font-size: 1.35rem;
  }

  .hx-search .btn {
    padding: .55rem .8rem;
  }

  .nitem {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1rem;
  }

  .ndate b {
    font-size: 1.8rem;
  }

  .bpost-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .bpost-lg .bpost-title {
    font-size: 1.4rem;
  }

  .board {
    grid-template-columns: minmax(0, 1fr);
  }

  .tracker-head,
  .tracker-steps,
  .tracker-foot {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =====================================================================
   v7 — Manuscript submission flow
   ===================================================================== */
:root {
  --danger: #c42b2b;
  --danger-tint: #fdeeee;
}

body.sub {
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Focused header */
.sub-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.sub-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.sub-top .brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .55rem;
}

.sub-top-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sub-top-right .avatar-circle {
  width: 32px;
  height: 32px;
  font-size: .8rem;
  background: var(--accent);
}

.sub-main {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

.sub-crumb {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .5rem;
}

.sub-crumb a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sub-h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  letter-spacing: -.015em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: .4rem;
}

.sub-lead {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 1.75rem;
  max-width: 42rem;
}

.sub-lead b {
  color: var(--ink);
  font-weight: 600;
}

/* Stepper */
.stepper {
  list-style: none;
  display: flex;
  margin: 0 0 1.75rem;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.stepper li {
  flex: 1;
  position: relative;
}

.stepper li>a,
.stepper li>span {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .95rem 1.1rem;
  color: var(--faint);
  font-size: .92rem;
  font-weight: 500;
  height: 100%;
}

.stepper li+li {
  border-left: 1px solid var(--line);
}

.st-n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  flex-shrink: 0;
  background: #fff;
}

.stepper li.done>a {
  color: var(--ink-2);
}

.stepper li.done>a:hover {
  background: var(--paper);
}

.stepper li.done .st-n {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.stepper li.current>span {
  color: var(--ink);
  font-weight: 600;
  background: var(--accent-tint);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.stepper li.current .st-n {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.stepper-mobile {
  display: none;
  margin-bottom: 1.5rem;
}

.stepper-mobile .sm-row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  margin-bottom: .5rem;
}

.stepper-mobile .sm-row b {
  font-weight: 600;
  color: var(--ink);
}

.stepper-mobile .sm-row span {
  color: var(--muted);
}

.sm-bar {
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.sm-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}

/* Cards & fields */
.fcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

.fcard-h {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .25rem;
}

.fcard-sub {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

.fsec+.fsec {
  border-top: 1px solid var(--line);
  margin-top: 1.75rem;
  padding-top: 1.75rem;
}

.fsec-h {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .2rem;
}

.fsec-q {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: .9rem;
}

.field {
  margin-bottom: 1.35rem;
}

.field:last-child {
  margin-bottom: 0;
}

.flabel {
  display: block;
  font-weight: 600;
  font-size: .93rem;
  color: var(--ink);
  margin-bottom: .4rem;
}

.flabel .req {
  color: var(--danger);
  margin-left: .15rem;
}

.flabel .opt {
  color: var(--faint);
  font-weight: 400;
  font-size: .85rem;
  margin-left: .25rem;
}

.fhint {
  color: var(--muted);
  font-size: .84rem;
  margin: -.15rem 0 .5rem;
}

.fhint-after {
  color: var(--faint);
  font-size: .8rem;
  margin-top: .4rem;
}

.finput,
.sub .form-select {
  width: 100%;
  border: 1px solid #cfd6e0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: .97rem;
  padding: .72rem .9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.finput::placeholder {
  color: #98a1ae;
}

.finput:hover,
.sub .form-select:hover {
  border-color: #b3bdca;
}

.finput:focus,
.sub .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 79, 209, .16);
}

textarea.finput {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

.frow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.fmeta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .4rem;
}

.counter {
  font-size: .8rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.counter.over {
  color: var(--danger);
  font-weight: 600;
}

/* Error / valid states */
.field.has-error .finput,
.field.has-error .form-select,
.field.has-error .tag-input,
.field.has-error .typeahead-box {
  border-color: var(--danger);
  background: #fffafa;
}

.field.has-error .finput:focus {
  box-shadow: 0 0 0 3px rgba(196, 43, 43, .15);
}

.field.has-error .dropzone {
  border-color: var(--danger);
  background: var(--danger-tint);
}

.field.has-error .choice,
.field.has-error .seg label {
  border-color: #eab4b4;
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  color: var(--danger);
  font-size: .85rem;
  font-weight: 500;
  margin-top: .45rem;
}

.field-error svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Choice cards (radio / checkbox) */
.choices {
  display: grid;
  gap: .75rem;
}

.choices.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}

.choice:hover {
  border-color: #b3bdca;
}

.choice input {
  margin-top: .25rem;
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.choice b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.choice small {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  margin-top: .15rem;
}

.choice.is-checked {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.choice:focus-within {
  box-shadow: 0 0 0 3px rgba(31, 79, 209, .16);
}

.check {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: .93rem;
  color: var(--ink-2);
}

.check input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin-top: .15rem;
  flex-shrink: 0;
}

.check-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .9rem 1rem;
  background: var(--paper);
}

/* Segmented yes / no */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.seg label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .6rem 1rem;
  cursor: pointer;
  font-size: .92rem;
  background: #fff;
  color: var(--ink-2);
}

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg label::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #b3bdca;
  background: #fff;
  flex-shrink: 0;
}

.seg label.is-checked {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--ink);
  font-weight: 500;
}

.seg label.is-checked::before {
  border: 5px solid var(--accent);
}

.seg label:focus-within {
  box-shadow: 0 0 0 3px rgba(31, 79, 209, .16);
}

.cond {
  margin-top: .9rem;
}

.cond[hidden] {
  display: none;
}

/* Dropzone */
.dropzone {
  position: relative;
  border: 1.5px dashed #b8c2cf;
  border-radius: 12px;
  background: #fbfcfd;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color .15s ease, background-color .15s ease;
}

.dropzone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.dropzone:hover,
.dropzone.drag {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.dropzone:focus-within {
  box-shadow: 0 0 0 3px rgba(31, 79, 209, .16);
  border-color: var(--accent);
}

.dz-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dz-text b {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
}

.dz-text b u {
  color: var(--accent);
  text-underline-offset: 3px;
}

.dz-text small {
  color: var(--muted);
  font-size: .84rem;
}

.dropzone.compact {
  padding: 1rem 1.2rem;
}

.dropzone.compact .dz-icon {
  width: 36px;
  height: 36px;
}

.file-list {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.file-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .65rem .8rem;
  background: #fff;
}

.file-ext {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink-2);
  flex-shrink: 0;
  text-transform: lowercase;
}

.file-ext.pdf {
  background: #b3261e;
}

.file-ext.doc,
.file-ext.docx {
  background: #2b5bd7;
}

.file-ext.xlsx,
.file-ext.csv {
  background: #1c8a5a;
}

.file-ext.png,
.file-ext.jpg,
.file-ext.jpeg,
.file-ext.tif,
.file-ext.tiff {
  background: #8a5a00;
}

.file-info {
  min-width: 0;
  flex: 1;
}

.file-name {
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-sub {
  font-size: .8rem;
  color: var(--ok);
  display: flex;
  align-items: center;
  gap: .3rem;
}

.icon-action {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-action:hover {
  background: var(--danger-tint);
  color: var(--danger);
}

.icon-action.neutral:hover {
  background: var(--paper);
  color: var(--ink);
}

.icon-action:disabled {
  opacity: .35;
  pointer-events: none;
}

/* Tag input */
.tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  border: 1px solid #cfd6e0;
  border-radius: 10px;
  background: #fff;
  padding: .5rem .6rem;
  min-height: 50px;
  cursor: text;
}

.tag-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 79, 209, .16);
}

.tag-input input {
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 160px;
  font-size: .97rem;
  padding: .25rem .3rem;
  background: transparent;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--accent-tint);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: .28rem .35rem .28rem .75rem;
  font-size: .86rem;
  font-weight: 500;
}

.tag button {
  border: 0;
  background: transparent;
  color: inherit;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.tag button:hover {
  background: rgba(31, 79, 209, .15);
}

/* Typeahead */
.typeahead,
.inst-typeahead {
  position: relative;
}

.typeahead-box {
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid #cfd6e0;
  border-radius: 10px;
  background: #fff;
  padding: 0 .9rem;
  color: var(--faint);
}

.typeahead-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 79, 209, .16);
}

.typeahead-box input {
  border: 0;
  outline: 0;
  flex: 1;
  padding: .75rem 0;
  font-size: .97rem;
  color: var(--ink);
  min-width: 0;
  background: transparent;
}

.ta-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: .35rem;
  max-height: 320px;
  overflow-y: auto;
}

.ta-list li {
  padding: .65rem .8rem;
  border-radius: 8px;
  cursor: pointer;
}

.ta-list li b {
  display: block;
  font-weight: 500;
  color: var(--ink);
  font-size: .94rem;
}

.ta-list li small {
  color: var(--faint);
  font-size: .8rem;
}

.ta-list li.active {
  background: var(--accent-tint);
}

.ta-list li.empty {
  color: var(--muted);
  cursor: default;
  font-size: .9rem;
}

.ta-list li.empty:hover {
  background: transparent;
}

.ta-picked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1.5px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 12px;
  padding: .9rem 1.1rem;
}

.ta-picked b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.ta-picked small {
  color: var(--muted);
  font-size: .84rem;
}

.btn-link-sm {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
  padding: .25rem .4rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  flex-shrink: 0;
}

/* Lists (institutions / authors) */
.ilist {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: .6rem;
  counter-reset: auth;
}

.irow {
  display: flex;
  align-items: center;
  gap: .9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem .9rem;
  background: #fff;
}

.irow-n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.irow-main {
  flex: 1;
  min-width: 0;
}

.irow-main b {
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
}

.irow-main small {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.irow-actions {
  display: flex;
  gap: .15rem;
}

.pill-corr {
  display: inline-flex;
  align-items: center;
  margin-left: .45rem;
  font-size: .74rem;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-tint);
  border-radius: 999px;
  padding: .12rem .55rem;
  vertical-align: 2px;
}

.ilist-empty {
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 1rem;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.subform {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
}

.subform-h {
  font-weight: 600;
  font-size: .93rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.subform .field {
  margin-bottom: 1rem;
}

/* Actions */
.factions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
}

.factions .btn {
  padding: .78rem 1.5rem;
  font-weight: 600;
  font-size: .95rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-2);
  font-weight: 600;
}

.btn-ghost:hover {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-soft {
  background: #fff;
  border: 1px solid #cfd6e0;
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
}

.btn-soft:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn .spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
  vertical-align: -3px;
  margin-right: .5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Sidebar */
.sub-side {
  position: sticky;
  top: 88px;
}

.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem;
  margin-bottom: 1rem;
}

.side-card h2 {
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 600;
  margin-bottom: .9rem;
  color: var(--ink);
}

.side-dl {
  margin: 0;
}

.side-dl div {
  padding: .6rem 0;
  border-top: 1px solid var(--line);
}

.side-dl div:first-child {
  border-top: 0;
  padding-top: 0;
}

.side-dl dt {
  font-size: .8rem;
  font-weight: 400;
  color: var(--faint);
}

.side-dl dd {
  margin: 0;
  font-size: .92rem;
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.side-help p {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: .75rem;
}

.side-help a {
  font-weight: 600;
  font-size: .88rem;
  display: block;
  margin-bottom: .35rem;
}

.side-saved {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--muted);
}

.side-saved i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  display: inline-block;
}

/* Messages: banners */
.msgs:empty {
  display: none;
}

.msgs {
  margin-bottom: 1.25rem;
  display: grid;
  gap: .75rem;
}

.msg {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  border: 1px solid;
  background: #fff;
  animation: msgIn .25s ease both;
}

.msg:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 79, 209, .16);
}

.msg-ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.msg-body {
  flex: 1;
  min-width: 0;
}

.msg-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  margin: .15rem 0 0;
}

.msg-text {
  font-size: .9rem;
  color: var(--ink-2);
  margin: .25rem 0 0;
}

.msg-list {
  margin: .5rem 0 0;
  padding-left: 1.1rem;
  font-size: .9rem;
}

.msg-list li {
  margin-bottom: .15rem;
}

.msg-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.msg-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-x:hover {
  background: rgba(14, 27, 44, .06);
  color: var(--ink);
}

.msg.is-success {
  border-color: #b7e2cc;
  background: var(--ok-tint);
}

.msg.is-success .msg-ic {
  background: var(--ok);
}

.msg.is-error {
  border-color: #f0c0c0;
  background: var(--danger-tint);
}

.msg.is-error .msg-ic {
  background: var(--danger);
}

.msg.is-error .msg-list {
  color: #8f1f1f;
}

.msg.is-warning {
  border-color: #f0d9a6;
  background: var(--warn-tint);
}

.msg.is-warning .msg-ic {
  background: var(--warn);
}

.msg.is-info {
  border-color: #c6d5f7;
  background: var(--accent-tint);
}

.msg.is-info .msg-ic {
  background: var(--accent);
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Messages: toasts */
.toasts {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2000;
  display: grid;
  gap: .6rem;
  width: min(380px, calc(100vw - 2.5rem));
}

.toastx {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: .85rem 1rem;
  box-shadow: 0 16px 40px rgba(14, 27, 44, .3);
  font-size: .92rem;
  animation: toastIn .25s ease both;
}

.toastx .t-ic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toastx.is-success .t-ic {
  background: var(--ok);
}

.toastx.is-error .t-ic {
  background: var(--danger);
}

.toastx.is-info .t-ic {
  background: var(--accent);
}

.toastx .t-txt {
  flex: 1;
}

.toastx button {
  border: 0;
  background: transparent;
  color: #9db8ff;
  font-weight: 600;
  font-size: .88rem;
  padding: .2rem .35rem;
}

.toastx.out {
  animation: toastOut .2s ease both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Review page */
.rv-sec {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0;
}

.rv-sec:first-child {
  border-top: 0;
  padding-top: 0;
}

.rv-sec:last-child {
  padding-bottom: 0;
}

.rv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
}

.rv-head h2 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.rv-head a {
  font-size: .88rem;
  font-weight: 600;
}

.rv-dl {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: .55rem 1.25rem;
  margin: 0;
  font-size: .93rem;
}

.rv-dl dt {
  color: var(--muted);
  font-weight: 400;
}

.rv-dl dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.rv-abs {
  max-height: 7.5em;
  overflow: hidden;
  position: relative;
  line-height: 1.55;
}

.rv-abs.open {
  max-height: none;
}

.rv-abs:not(.open)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5em;
  background: linear-gradient(transparent, #fff);
}

.rv-more {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: .86rem;
  margin-top: .3rem;
}

.rv-missing {
  color: var(--danger);
  font-weight: 500;
}

.rv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.rv-tags span {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .12rem .6rem;
  font-size: .84rem;
}

/* Success page */
.done-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.done-hero {
  text-align: center;
  padding: 1rem 0 2rem;
}

.done-ic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 10px var(--ok-tint);
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}

@keyframes pop {
  from {
    transform: scale(.4);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.done-id {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55rem .9rem;
  font-size: .92rem;
  margin-top: .5rem;
}

.done-id b {
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.next-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.next-steps li {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.35rem;
}

.next-steps li:last-child {
  padding-bottom: 0;
}

.next-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.next-steps .ns-n {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .85rem;
  flex-shrink: 0;
  color: var(--ink-2);
}

.next-steps li.done .ns-n {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.next-steps b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.next-steps small {
  color: var(--muted);
  font-size: .88rem;
}

.sub-foot {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 1.25rem 0;
  font-size: .84rem;
  color: var(--muted);
}

.sub-foot .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}

.sub-foot a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 991.98px) {
  .sub-side {
    position: static;
  }

  .stepper li>a,
  .stepper li>span {
    padding: .85rem .7rem;
    font-size: .86rem;
    gap: .45rem;
  }
}

@media (max-width: 767.98px) {
  .sub-main {
    padding: 1.5rem 0 3rem;
  }

  .stepper {
    display: none;
  }

  .stepper-mobile {
    display: block;
  }

  .frow,
  .choices.cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .factions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .factions .btn {
    width: 100%;
  }

  .rv-dl {
    grid-template-columns: minmax(0, 1fr);
    gap: .1rem;
  }

  .rv-dl dd {
    margin-bottom: .6rem;
  }

  .dropzone {
    flex-direction: column;
    text-align: center;
  }

  .sub-top .save-exit-label {
    display: none;
  }

  .toasts {
    right: .75rem;
    left: .75rem;
    bottom: .75rem;
    width: auto;
  }

  .irow {
    flex-wrap: wrap;
  }

  .irow-actions {
    margin-left: auto;
  }
}

.sub .req {
  color: var(--danger);
  margin-left: .15rem;
}

.sub .opt {
  color: var(--faint);
  font-weight: 400;
  font-size: .85rem;
  margin-left: .3rem;
}

.sub legend {
  float: none;
  font-size: inherit;
  margin-bottom: .4rem;
}

.sub legend.fsec-h {
  font-size: 1.02rem;
  margin-bottom: .2rem;
}

/* =====================================================================
   v8 — Dashboards (author / reviewer / editor)
   ===================================================================== */
body.app {
  background: var(--paper);
}

.app .form-select,
.app .finput {
  width: 100%;
  border: 1px solid #cfd6e0;
  border-radius: 10px;
  background-color: #fff;
  color: var(--ink);
  font-size: .95rem;
  padding: .65rem .9rem;
}

.app .form-select:focus,
.app .finput:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 79, 209, .16);
}

.app .req {
  color: var(--danger);
  margin-left: .15rem;
}

.app .opt {
  color: var(--faint);
  font-weight: 400;
  font-size: .85rem;
  margin-left: .3rem;
}

.app legend {
  float: none;
  font-size: inherit;
  margin-bottom: .4rem;
}

/* Shell */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-side,
.app-side.offcanvas-lg {
  background: var(--ink) !important;
  color: #c3cbd6;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .app-side.offcanvas-lg {
    width: 256px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
}

@media (max-width: 991.98px) {
  .app-side.offcanvas-lg {
    --bs-offcanvas-width: 280px;
    background: var(--ink);
  }
}

.side-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: 1.1rem 1.25rem;
}

.side-brand a {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.08rem;
}

.side-brand .btn-close {
  filter: invert(1);
  opacity: .7;
}

.role-switch {
  margin: .25rem 1rem 1.25rem;
  padding: 4px;
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.role-switch a {
  text-align: center;
  font-size: .8rem;
  font-weight: 500;
  color: #aeb8c6;
  padding: .45rem .25rem;
  border-radius: 7px;
}

.role-switch a:hover {
  color: #fff;
}

.role-switch a.active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.side-label {
  font-size: .75rem;
  color: #7b8697;
  padding: 0 1.4rem;
  margin-bottom: .4rem;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 .75rem;
}

.side-nav button,
.side-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: #c3cbd6;
  font-size: .92rem;
  font-weight: 500;
  padding: .62rem .75rem;
  border-radius: 9px;
  text-align: left;
  position: relative;
}

.side-nav button:hover,
.side-nav a:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.side-nav button.active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.side-nav button.active::before {
  content: "";
  position: absolute;
  left: -.75rem;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #9db8ff;
}

.side-nav svg {
  flex-shrink: 0;
  opacity: .85;
}

.side-nav .cnt {
  margin-left: auto;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .05rem .5rem;
  min-width: 22px;
  text-align: center;
}

.side-nav .cnt.hot {
  background: var(--mark);
  color: var(--ink);
}

.side-extra {
  margin: 1.25rem 1rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}

.side-extra .sw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
}

.side-extra small {
  display: block;
  color: #8a94a3;
  font-size: .8rem;
  margin-top: .35rem;
}

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
  margin: 0;
  z-index: 1;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #3a4a60;
  border-radius: 99px;
  transition: background-color .2s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}

.switch input:checked+span {
  background: var(--ok);
}

.switch input:checked+span::after {
  transform: translateX(18px);
}

.switch input:focus-visible+span {
  box-shadow: 0 0 0 3px rgba(157, 184, 255, .6);
}

.side-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.side-user .avatar-circle {
  width: 36px;
  height: 36px;
  font-size: .8rem;
}

.side-user b {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.2;
}

.side-user small {
  color: #8a94a3;
  font-size: .78rem;
}

.side-user a {
  margin-left: auto;
  color: #8a94a3;
  padding: .35rem;
  border-radius: 8px;
}

.side-user a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 1010;
  background: rgba(245, 247, 250, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.app-top-in {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem clamp(1rem, 3vw, 2rem);
  max-width: 1240px;
}

.app-top .crumb {
  font-size: .88rem;
  color: var(--muted);
}

.app-top .crumb b {
  color: var(--ink);
  font-weight: 600;
}

.app-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.top-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-icon:hover {
  border-color: #b3bdca;
  color: var(--ink);
}

.top-icon .badge-n {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
}

.app-content {
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 1240px;
  width: 100%;
}

/* Page head */
.pg-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pg-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -.015em;
  line-height: 1.15;
  margin: 0 0 .25rem;
  color: var(--ink);
}

.pg-sub {
  color: var(--muted);
  margin: 0;
  font-size: .98rem;
}

.sec-h {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.sec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .9rem;
}

.sec-row a,
.link-btn {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
}

/* Stat strip */
/* "Your other roles" shortcuts on each workspace home */
.ws-shortcuts {
  margin: -0.75rem 0 1.75rem;
}

.ws-shortcuts-h {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .6rem;
}

.ws-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}

.ws-shortcut {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}

.ws-shortcut:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.ws-shortcut b {
  color: var(--ink);
  font-size: .95rem;
}

.ws-shortcut span {
  font-size: .85rem;
}

.ws-shortcut em {
  font-style: normal;
  font-weight: 600;
  font-size: .85rem;
  color: var(--accent);
  margin-top: .15rem;
}

.ws-shortcut.hot {
  border-color: var(--warn);
  background: var(--warn-tint);
}

.ws-shortcut.hot em {
  color: var(--warn);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 1.75rem;
}

.stats>div {
  padding: 1.1rem 1.3rem;
}

.stats>div+div {
  border-left: 1px solid var(--line);
}

.stats b {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}

.stats span {
  font-size: .84rem;
  color: var(--muted);
}

.stats .t-warn b {
  color: var(--warn);
}

.stats .t-ok b {
  color: var(--ok);
}

.stats .t-danger b {
  color: var(--danger);
}

.stats .t-accent b {
  color: var(--accent);
}

/* Panels */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem;
}

.panel+.panel {
  margin-top: 1.25rem;
}

.panel-flush {
  padding: 0;
  overflow: hidden;
}

/* Attention card */
.attn {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #f0c9a6;
  border-left: 4px solid var(--warn);
  border-radius: 14px;
  padding: 1.2rem 1.35rem;
  margin-bottom: 1.75rem;
}

.attn-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--warn-tint);
  color: var(--warn);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.attn h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 .2rem;
}

.attn p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 .85rem;
}

.attn .btns {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Status chips */
.st {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.st::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.st.info {
  background: var(--accent-tint);
  color: var(--accent-dark);
}

.st.ok {
  background: var(--ok-tint);
  color: var(--ok);
}

.st.warn {
  background: var(--warn-tint);
  color: #8a5a00;
}

.st.danger {
  background: var(--danger-tint);
  color: var(--danger);
}

.st.muted {
  background: var(--cream);
  color: var(--muted);
}

.st.violet {
  background: var(--info-tint);
  color: var(--info);
}

/* Submission status chip coloured by the badge colour set in Settings */
.st.st-dynamic {
  background: color-mix(in srgb, var(--st-color) 14%, #fff);
  color: color-mix(in srgb, var(--st-color) 85%, #000);
}

/* Submission cards with stage tracker */
.scard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}

.scard+.scard {
  margin-top: .9rem;
}

.scard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.scard-id {
  font-size: .8rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.scard h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin: .15rem 0 .25rem;
}

.scard h3 button {
  all: unset;
  cursor: pointer;
}

.scard h3 button:hover {
  color: var(--accent);
}

.scard h3 button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.scard-meta {
  font-size: .86rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1rem;
}

.scard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--muted);
}

.stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 1.1rem 0 0;
  padding: 0;
}

.stages li {
  position: relative;
  padding-top: 22px;
  font-size: .78rem;
  color: var(--faint);
}

.stages li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #c8d0db;
  z-index: 1;
}

.stages li::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 12px;
  right: 0;
  height: 2px;
  background: #dfe4eb;
}

.stages li:last-child::after {
  display: none;
}

.stages li.done {
  color: var(--ink-2);
}

.stages li.done::before {
  background: var(--accent);
  border-color: var(--accent);
}

.stages li.done::after {
  background: var(--accent);
}

.stages li.now {
  color: var(--ink);
  font-weight: 600;
}

.stages li.now::before {
  background: var(--mark);
  border-color: var(--mark);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, .22);
}

.stages li.stop {
  color: var(--danger);
  font-weight: 600;
}

.stages li.stop::before {
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(196, 43, 43, .15);
}

/* Row lists (responsive tables) */
.rtools {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.rsearch {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid #cfd6e0;
  border-radius: 10px;
  padding: 0 .75rem;
  background: #fff;
  color: var(--faint);
  min-width: 240px;
}

.rsearch input {
  border: 0;
  outline: 0;
  padding: .55rem 0;
  font-size: .92rem;
  flex: 1;
  min-width: 0;
  background: transparent;
  color: var(--ink);
}

.rsearch:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 79, 209, .16);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.chips button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: .84rem;
  font-weight: 500;
  padding: .38rem .8rem;
  border-radius: 999px;
}

.chips button:hover {
  border-color: #b3bdca;
}

.chips button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chips button .n {
  opacity: .65;
  margin-left: .25rem;
}

.rlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rhead,
.ritem {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: .9rem 1.25rem;
}

.rhead {
  font-size: .8rem;
  color: var(--muted);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.ritem {
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink-2);
}

.ritem:last-child {
  border-bottom: 0;
}

.ritem:hover {
  background: #fafbfd;
}

.ritem[hidden] {
  display: none;
}

.r-title b {
  display: block;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.r-title small {
  color: var(--faint);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.r-title button {
  all: unset;
  cursor: pointer;
}

.r-title button:hover b {
  color: var(--accent);
}

.r-title button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.r-lbl {
  display: none;
}

.rempty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}

.cols-author {
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.3fr) 110px 170px 90px;
}

.cols-review {
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.3fr) 120px 150px 110px;
}

.cols-editor {
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) 110px 130px 170px 90px;
}

.btn-sm-soft {
  border: 1px solid #cfd6e0;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: .84rem;
  padding: .38rem .8rem;
  border-radius: 8px;
  white-space: nowrap;
}

.btn-sm-soft:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Feed (activity / notifications) */
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed li {
  display: flex;
  gap: .9rem;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
}

.feed li:first-child {
  border-top: 0;
  padding-top: 0;
}

.feed li:last-child {
  padding-bottom: 0;
}

.feed-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feed-ic.info {
  background: var(--accent-tint);
  color: var(--accent);
}

.feed-ic.ok {
  background: var(--ok-tint);
  color: var(--ok);
}

.feed-ic.warn {
  background: var(--warn-tint);
  color: var(--warn);
}

.feed-ic.violet {
  background: var(--info-tint);
  color: var(--info);
}

.feed-ic.danger {
  background: var(--danger-tint);
  color: var(--danger);
}

.feed p {
  margin: 0;
  font-size: .92rem;
  color: var(--ink-2);
}

.feed p b {
  font-weight: 600;
  color: var(--ink);
}

.feed small {
  color: var(--faint);
  font-size: .8rem;
}

.nlist2 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nitem2 {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.nitem2:last-child {
  border-bottom: 0;
}

.nitem2.unread {
  background: #f7f9ff;
}

.nitem2.unread::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 1.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.nitem2 p {
  margin: 0 1.25rem 0 0;
  font-size: .93rem;
}

.nitem2.unread p {
  font-weight: 600;
  color: var(--ink);
}

.nitem2 small {
  color: var(--faint);
  font-size: .8rem;
}

/* Activity log */
.alog-day {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin: 1.4rem 0 .6rem;
}

.alog-day:first-child {
  margin-top: 0;
}

.alog {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.1rem;
  border-left: 2px solid var(--line);
}

.alog li {
  position: relative;
  padding: 0 0 1.1rem .9rem;
}

.alog li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  margin-left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c, var(--faint));
}

.alog li[hidden] {
  display: none;
}

.alog p {
  margin: 0;
  font-size: .92rem;
  color: var(--ink-2);
}

.alog p b {
  color: var(--ink);
  font-weight: 600;
}

.alog q {
  display: block;
  margin-top: .4rem;
  padding: .55rem .8rem;
  background: var(--paper);
  border-radius: 8px;
  font-size: .88rem;
  color: var(--muted);
  quotes: none;
}

.alog small {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  margin-top: .25rem;
  color: var(--faint);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.rtag {
  font-weight: 600;
}

/* Comments */
.cthread {
  padding: 1.1rem 1.25rem;
}

.cthread+.cthread {
  border-top: 1px solid var(--line);
}

.cmt {
  display: flex;
  gap: .8rem;
}

.cmt+.cmt {
  margin-top: 1rem;
}

.cmt .avatar-circle {
  width: 34px;
  height: 34px;
  font-size: .76rem;
}

.cmt-h {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  font-size: .88rem;
}

.cmt-h b {
  font-weight: 600;
  color: var(--ink);
}

.cmt-h small {
  color: var(--faint);
  font-size: .8rem;
}

.cmt p {
  margin: .25rem 0 0;
  font-size: .92rem;
  color: var(--ink-2);
}

.vis {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .76rem;
  font-weight: 600;
  border-radius: 6px;
  padding: .15rem .5rem;
}

.vis.pub {
  background: var(--ok-tint);
  color: var(--ok);
}

.vis.priv {
  background: var(--danger-tint);
  color: var(--danger);
}

.note-box {
  background: var(--paper);
  border-radius: 10px;
  padding: .85rem 1rem;
  font-size: .88rem;
  color: var(--muted);
}

/* Kanban */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  margin-bottom: 1.75rem;
}

.kcol {
  background: #eef1f6;
  border-radius: 14px;
  padding: .8rem;
  min-height: 180px;
}

.kcol-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .2rem .35rem .75rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}

.kcol-h span {
  background: #fff;
  border-radius: 99px;
  font-size: .76rem;
  padding: .05rem .55rem;
  color: var(--muted);
}

.kcard {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem .9rem;
  margin-bottom: .6rem;
}

.kcard:hover {
  border-color: #b3bdca;
}

.kcard b {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: .35rem;
}

.kcard small {
  display: block;
  font-size: .8rem;
  color: var(--muted);
}

.kcard .flag {
  color: var(--danger);
  font-weight: 600;
}

.kempty {
  font-size: .84rem;
  color: var(--faint);
  padding: .5rem .35rem;
}

/* Bars */
.bars {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  height: 150px;
}

.bars div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  height: 100%;
  justify-content: flex-end;
}

.bars i {
  width: 100%;
  max-width: 42px;
  background: #c9d6f5;
  border-radius: 6px 6px 2px 2px;
}

.bars div:last-child i {
  background: var(--accent);
}

.bars span {
  font-size: .76rem;
  color: var(--muted);
}

.bars em {
  font-style: normal;
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-2);
}

.split-bar {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  margin: .5rem 0 1rem;
}

.legend-rows div {
  display: flex;
  justify-content: space-between;
  padding: .45rem 0;
  font-size: .9rem;
  border-top: 1px solid var(--line);
}

.legend-rows div:first-child {
  border-top: 0;
}

.legend-rows i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: .5rem;
  vertical-align: -1px;
}

/* Invitations */
.invite {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}

.invite+.invite {
  margin-top: .9rem;
}

.invite h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: .2rem 0 .35rem;
  line-height: 1.3;
}

.invite .abs {
  color: var(--muted);
  font-size: .9rem;
  margin: .5rem 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.invite-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.invite-foot .btns {
  display: flex;
  gap: .5rem;
}

.invite.is-done {
  background: #fbfcfd;
}

.invite.is-done .abs {
  display: none;
}

/* Choice grid in review form */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
}

.rec-grid .choice {
  padding: .8rem .9rem;
}

/* Certificates */
.cert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.cert:last-child {
  border-bottom: 0;
}

.cert-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--warn-tint);
  color: var(--warn);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert.locked .cert-ic {
  background: var(--paper);
  color: var(--faint);
}

.cert.locked b {
  color: var(--muted);
}

.cert div {
  flex: 1;
  min-width: 0;
}

.cert b {
  display: block;
  font-weight: 600;
  font-size: .95rem;
}

.cert small {
  color: var(--muted);
  font-size: .84rem;
}

.meter {
  height: 8px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin: .75rem 0 .4rem;
}

.meter i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}

/* Reviewer directory */
.rv-person {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.rv-person:last-child {
  border-bottom: 0;
}

.rv-person .avatar-circle {
  width: 40px;
  height: 40px;
  font-size: .82rem;
}

.rv-person>div {
  flex: 1;
  min-width: 0;
}

.rv-person b {
  font-weight: 600;
  color: var(--ink);
}

.tagsm {
  display: inline-block;
  font-size: .76rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: .05rem .55rem;
  margin: .3rem .25rem 0 0;
  color: var(--ink-2);
}

.pick {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .75rem .9rem;
  cursor: pointer;
}

.pick+.pick {
  margin-top: .5rem;
}

.pick input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.pick .avatar-circle {
  width: 34px;
  height: 34px;
  font-size: .76rem;
}

.pick div {
  flex: 1;
  min-width: 0;
}

.pick b {
  display: block;
  font-size: .92rem;
  font-weight: 600;
}

.pick small {
  color: var(--muted);
  font-size: .8rem;
}

.pick:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.pick.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Drawer + modals */
.drawer.offcanvas-end {
  --bs-offcanvas-width: 580px;
  border-left: 0;
}

.drawer .offcanvas-header {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1.5rem;
  align-items: flex-start;
}

.drawer .offcanvas-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
}

.drawer .offcanvas-body {
  padding: 1.5rem;
}

.d-sec+.d-sec {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.d-sec h3 {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.d-dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: .45rem 1rem;
  font-size: .9rem;
  margin: 0;
}

.d-dl dt {
  color: var(--muted);
  font-weight: 400;
}

.d-dl dd {
  margin: 0;
  color: var(--ink);
}

.vtl {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vtl li {
  display: flex;
  gap: .8rem;
  position: relative;
  padding-bottom: 1rem;
}

.vtl li:last-child {
  padding-bottom: 0;
}

.vtl li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}

.vtl li.done:not(:last-child)::after {
  background: var(--accent);
}

.vtl i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #c8d0db;
  background: #fff;
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}

.vtl li.done i {
  background: var(--accent);
  border-color: var(--accent);
}

.vtl li.now i {
  background: var(--mark);
  border-color: var(--mark);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, .22);
}

.vtl li.stop i {
  background: var(--danger);
  border-color: var(--danger);
}

.vtl b {
  display: block;
  font-size: .9rem;
  font-weight: 600;
}

.vtl li:not(.done):not(.now):not(.stop) b {
  color: var(--faint);
  font-weight: 500;
}

.vtl small {
  color: var(--muted);
  font-size: .82rem;
}

.app .modal-content {
  border: 0;
  border-radius: 16px;
}

.app .modal-header {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1.5rem;
}

.app .modal-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
}

.app .modal-body {
  padding: 1.5rem;
}

.app .modal-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem;
  gap: .5rem;
}

.app .modal-footer>* {
  margin: 0;
}

.btn-danger-solid {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
  font-weight: 600;
}

.btn-danger-solid:hover {
  background: #a32222;
  border-color: #a32222;
  color: #fff;
}

.btn-danger-soft {
  background: #fff;
  border: 1px solid #efc2c2;
  color: var(--danger);
  font-weight: 600;
  font-size: .9rem;
}

.btn-danger-soft:hover {
  background: var(--danger-tint);
  color: var(--danger);
  border-color: var(--danger);
}

/* Responsive */
@media (max-width: 1199.98px) {
  .cols-editor {
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) 130px 170px 90px;
  }

  .cols-editor .c-date {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .rec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats>div:nth-child(3) {
    border-left: 0;
  }

  .stats>div:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .rhead {
    display: none;
  }

  .ritem {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: .5rem 1rem;
    padding: 1rem 1.1rem;
  }

  .ritem>* {
    grid-column: 1;
  }

  .ritem .r-title {
    grid-column: 1 / -1;
  }

  .ritem .r-act {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: end;
  }

  .ritem .c-date {
    display: block !important;
  }

  .r-lbl {
    display: inline;
    color: var(--faint);
    font-size: .8rem;
    margin-right: .35rem;
  }

  .rtools {
    flex-direction: column;
    align-items: stretch;
  }

  .rsearch {
    min-width: 0;
  }

  .stages li {
    font-size: 0;
    padding-top: 14px;
  }

  .board {
    grid-template-columns: repeat(4, 78vw);
    scroll-snap-type: x mandatory;
  }

  .kcol {
    scroll-snap-align: start;
  }

  .d-dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .d-dl dd {
    margin-bottom: .6rem;
  }

  .drawer.offcanvas-end {
    --bs-offcanvas-width: 100vw;
  }

  .scard-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-top .crumb .hide-sm {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .rec-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =====================================================================
   Laravel integration additions (pagination, rich content, server errors)
   ===================================================================== */
.pagination {
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0 0;
}

.pagination .page-link {
  border: 1px solid var(--line);
  border-radius: 8px !important;
  color: var(--ink-2);
  font-weight: 500;
  font-size: .9rem;
  padding: .45rem .8rem;
  background: #fff;
}

.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  color: var(--faint);
  background: var(--cream);
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.pager {
  margin-top: 2rem;
  text-align: center;
}

.pager .pagination {
  margin: 0;
}

.pager-info {
  margin: .6rem 0 0;
  font-size: .82rem;
  color: var(--faint);
}

.prose {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-2);
}

.prose h2,
.prose h3,
.prose h4 {
  margin: 2rem 0 .8rem;
}

.prose p {
  margin-bottom: 1.1rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
}

.prose a {
  text-decoration: underline;
}

.post-cover {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--cream);
}

.post-cover img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.side-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-links li {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}

.side-links li:last-child {
  border-bottom: 0;
}

.side-links a {
  color: var(--ink-2);
  font-weight: 500;
}

.side-links a:hover,
.side-links a.active {
  color: var(--accent);
}

.side-nav a {
  text-decoration: none;
}

.side-nav a.active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.side-nav a.active::before {
  content: "";
  position: absolute;
  left: -.75rem;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #9db8ff;
}

.site-msgs {
  padding-top: 1rem;
}

.inline-form {
  display: inline;
}

.nitem2 a {
  color: inherit;
}

.nitem2 form {
  margin-left: auto;
}

/* Logo */
.brand-logo {
  width: 36px;
  height: auto;
  flex-shrink: 0;
  display: inline-block;
  margin-bottom: 6px;
}

.side-brand .brand-logo,
.site-footer .brand-logo,
.auth-side .brand-logo {
  background: #fff;
  border-radius: 9px;
  padding: 3px;
}

.sub-top .brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

/* =====================================================================
   Manuscript feedback layout (author, editor and reviewer pages)
   ===================================================================== */
.fb-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  display: grid;
  gap: 1.6rem;
}

.fb-action {
  border-left: 4px solid var(--warn);
  padding-left: 1.1rem;
  display: grid;
  gap: .6rem;
}

.fb-action.is-info {
  border-left-color: var(--accent);
}

.fb-action.is-ok {
  border-left-color: var(--ok);
}

.fb-action.is-danger {
  border-left-color: var(--danger);
}

.fb-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--warn);
}

.fb-tag i {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--warn);
  color: #fff;
  font-style: normal;
  display: inline-grid;
  place-items: center;
  font-size: .75rem;
}

.fb-action.is-info .fb-tag {
  color: var(--accent);
}

.fb-action.is-info .fb-tag i {
  background: var(--accent);
}

.fb-action.is-ok .fb-tag {
  color: var(--ok);
}

.fb-action.is-ok .fb-tag i {
  background: var(--ok);
}

.fb-action.is-danger .fb-tag {
  color: var(--danger);
}

.fb-action.is-danger .fb-tag i {
  background: var(--danger);
}

.fb-action h2 {
  font-size: 1.3rem;
  margin: 0;
}

.fb-action p {
  margin: 0;
  color: var(--ink-2);
  font-size: .94rem;
}

.fb-section {
  display: grid;
  gap: .6rem;
}

.fb-section>h3 {
  font-size: 1.12rem;
  margin: 0;
}

details.fb-toggle>summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
}

details.fb-toggle>summary::-webkit-details-marker {
  display: none;
}

details.fb-toggle>summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s;
  margin-right: .15rem;
}

details.fb-toggle[open]>summary::before {
  transform: rotate(45deg);
}

details.fb-toggle>summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.fb-letter {
  background: var(--cream);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  margin-top: .75rem;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--ink-2);
  display: grid;
  gap: .9rem;
}

.fb-letter p {
  margin: 0;
}

.fb-letter .fb-sign {
  display: grid;
  gap: .1rem;
}

.fb-letter .fb-sign span {
  color: var(--muted);
}

.fb-letter hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: .2rem 0;
  opacity: 1;
}

.fb-letter .fb-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  align-items: center;
}

.fb-letter .fb-head b {
  color: var(--ink);
}

.fb-meta {
  font-size: .8rem;
  color: var(--muted);
}

.fb-help {
  display: grid;
  gap: .6rem;
  font-size: .92rem;
}

.fb-help h3 {
  font-size: 1.12rem;
  margin: 0;
}

.fb-help h4 {
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 700;
  margin: .4rem 0 0;
}

.fb-help p {
  margin: 0;
  color: var(--ink-2);
}

.fb-sidecard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
}

.fb-sidecard+.fb-sidecard {
  margin-top: 1rem;
}

.fb-sidecard h3 {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
}

.fb-sidecard .fb-side-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .8rem;
}

.fb-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
  font-size: .88rem;
}

.fb-steps li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink-2);
}

.fb-steps li i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  font-style: normal;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
}

.fb-steps li.done i {
  background: var(--teal);
  border-color: var(--teal);
}

.fb-steps li.now i {
  background: var(--accent);
  border-color: var(--accent);
}

.fb-steps li.stop i {
  background: var(--warn);
  border-color: var(--warn);
}

.fb-steps li.pending {
  color: var(--faint);
}

.fb-kv {
  display: grid;
  gap: .8rem;
  margin: 0;
  font-size: .88rem;
}

.fb-kv dt {
  font-weight: 500;
  color: var(--muted);
  font-size: .8rem;
}

.fb-kv dd {
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}

@media (max-width: 575px) {
  .fb-card {
    padding: 1.1rem;
  }
}