:root {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --ink: #182128;
  --muted: #5f6b73;
  --accent: #0b4f6c;
  --accent-soft: #d8ecf2;
  --border: #e2e5ea;
  --shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  --success: #2d6a4f;
  --danger: #b23a2f;
  --info: #2f6fb2;
  --auth-accent: #0b6fa4;
  --auth-accent-2: #0f8c6f;
  --auth-bg: #f6f8fb;
  --auth-card: #ffffff;
  --auth-border: #e2e8f0;
  --auth-text: #1f2937;
  --auth-muted: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(900px 380px at 10% -10%, #eef4ff 0%, transparent 60%),
    radial-gradient(760px 520px at 90% -20%, #f4efe7 0%, transparent 55%),
    linear-gradient(140deg, #f6f4ef 0%, #eff4f7 100%);
  min-height: 100vh;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  line-height: 0;
  height: auto;
  overflow: visible;
}

.brand-logo {
  height: 78px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-sub {
  color: var(--muted);
  margin-top: 4px;
}

.site-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1480px;
  margin: 30px auto 60px;
  padding: 0 24px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

h1, h2 {
  margin: 0 0 12px;
  font-family: "Source Serif 4", Georgia, serif;
}

p {
  margin: 0 0 12px;
}

label {
  display: block;
  margin-bottom: 16px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 6px;
  font-family: inherit;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(11, 79, 108, 0.45);
  box-shadow: 0 0 0 3px rgba(11, 79, 108, 0.12);
}

select:disabled,
input:disabled,
textarea:disabled {
  background: #f3f5f8;
  color: #7b8794;
  cursor: not-allowed;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(11, 79, 108, 0.12);
}

.button.primary:hover {
  background: #083d52;
}

.button:disabled,
.button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button:disabled:hover,
.button[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.button.small {
  padding: 6px 12px;
  font-size: 13px;
}

.button.linkish {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f4dd8;
  text-decoration: underline;
  font-weight: 500;
  box-shadow: none;
}

.button.linkish:hover {
  transform: none;
  box-shadow: none;
  color: #1437a7;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.table th {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  background: #f7f8fb;
}

.table.compact {
  table-layout: fixed;
}

.table.compact th,
.table.compact td {
  font-size: 12px;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
}

.alert.success {
  background: #e0f2e9;
  color: var(--success);
}

.alert.error {
  background: #fbe7e5;
  color: var(--danger);
}

.alert.info {
  background: #e5effb;
  color: var(--info);
}

.muted {
  color: var(--muted);
}

.inline-form {
  display: inline;
  margin: 0;
}

.link-button {
  border: none;
  background: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.link-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
}

.detail {
  margin-bottom: 12px;
}

.checkbox-list {
  display: grid;
  gap: 12px;
}

.checkbox-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 6px 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.checkbox-item input {
  margin-top: 3px;
}

.checkbox-name {
  font-weight: 600;
}

.checkbox-meta {
  grid-column: 2 / -1;
  font-size: 12px;
  color: var(--muted);
}

.review {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
}

.review-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}

.review-score {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  background: #e9f3f8;
  border: 1px solid #b8d6e3;
  border-radius: 999px;
  padding: 5px 12px;
  line-height: 1.2;
}

.table-wrap {
  overflow-x: auto;
}

.admin-submissions-root {
  min-width: 0;
}

.admin-submissions-toolbar {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f9fbfe;
}

.card-toggle > summary {
  list-style: none;
  cursor: pointer;
}

.card-toggle > summary::-webkit-details-marker {
  display: none;
}

.card-toggle > summary:after {
  content: "▾";
  color: var(--muted);
  font-size: 13px;
  margin-left: 10px;
}

.card-toggle:not([open]) > summary:after {
  content: "▸";
}

.admin-submissions-search {
  min-width: 0;
  margin: 0;
}

.admin-submissions-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}

.admin-submissions-label--muted {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.admin-submissions-controls {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-submissions-group {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  min-width: 0;
}

.admin-submissions-group-head {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0;
}

.admin-submissions-helper {
  display: none;
}

.admin-submissions-toggles {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.admin-toggle-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 26px;
  padding: 2px 8px;
  border: 1px solid #c8d3e2;
  border-radius: 999px;
  background: #fff;
  color: #2d3c4c;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-toggle-chip:hover {
  border-color: #9eb8d4;
  background: #f4f8fd;
}

.admin-toggle-chip input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}

.admin-toggle-chip input[type="checkbox"]:checked + span {
  color: var(--accent);
}

.admin-submissions-reset {
  height: 32px;
  white-space: nowrap;
}

.admin-submissions-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-top: 0;
}

.table-wrap--admin-submissions {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  scrollbar-gutter: stable;
  padding-bottom: 2px;
}

.table--admin-submissions {
  min-width: 100%;
  width: 100%;
  table-layout: auto;
}

.table--admin-submissions th,
.table--admin-submissions td {
  white-space: nowrap;
  padding: 8px 10px;
}

.table--admin-submissions th:last-child,
.table--admin-submissions td:last-child {
  text-align: right;
}

.table--admin-submissions tbody tr:hover {
  background: #f7fbff;
}

.admin-row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-row-action-btn {
  min-width: 72px;
  text-align: center;
}

.admin-mass-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  padding-top: 2px;
}

.admin-actions-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbff;
}

.admin-action-block {
  border: 1px solid #d8e4f0;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.admin-action-block h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 700;
}

.admin-action-block .muted {
  margin: 0 0 8px;
}

.admin-mass-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-mass-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.admin-mass-row label {
  margin: 0;
  min-width: 240px;
  display: grid;
  gap: 6px;
}

.admin-mass-row select {
  min-width: 220px;
}

.admin-select-col {
  width: 40px;
  text-align: center;
  vertical-align: middle;
}

.admin-select-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.admin-submissions-search input {
  margin-top: 0;
  height: 40px;
}

.admin-submissions-toggles label {
  font-weight: 600;
}

@media (max-width: 760px) {
  .admin-submissions-controls {
    gap: 10px;
  }

  .admin-submissions-group {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .admin-submissions-actions,
  .admin-submissions-reset {
    width: 100%;
  }

  .admin-mass-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-mass-row label,
  .admin-mass-row select,
  .admin-mass-row button {
    width: 100%;
  }

  .admin-mass-actions {
    grid-template-columns: 1fr;
  }
}

.settings-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.settings-sidebar {
  position: sticky;
  top: 18px;
}

.settings-nav-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 700;
}

.settings-nav {
  display: grid;
  gap: 6px;
}

.settings-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
}

.settings-nav-link:hover {
  background: #f7f8fb;
  border-color: var(--border);
}

.settings-nav-link.active {
  background: #e9f3f8;
  border-color: #c2ddea;
  color: var(--accent);
}

.settings-content {
  min-width: 0;
}

.export-grid {
  display: grid;
  gap: 18px;
}

.export-card {
  margin-bottom: 0;
}

.export-openconf-card {
  max-width: 980px;
}

.export-field-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.export-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbfe;
  max-height: 300px;
  overflow: auto;
}

.export-field {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.export-field input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.export-field--stacked {
  width: 100%;
}

.export-openconf-fields {
  display: grid;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbfe;
  padding: 12px;
}

.export-openconf-group {
  display: grid;
  gap: 6px;
}

.export-openconf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.export-openconf-actions label {
  display: grid;
  gap: 4px;
  font-weight: 600;
}

.export-openconf-limit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-weight: 500;
}

.export-scope-explainer {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(11, 79, 108, 0.18);
  background: #f7fbfd;
}

.export-scope-explainer p {
  margin-bottom: 10px;
}

.export-scope-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.export-scope-list li {
  margin-bottom: 8px;
  line-height: 1.45;
}

.settings-templates-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(560px, 1fr);
}

.settings-decision-templates {
  margin-bottom: 18px;
}

.settings-decision-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.settings-decision-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #fafbfd;
}

.settings-decision-card h3 {
  margin: 0 0 4px;
}

.settings-decision-history {
  margin-top: 12px;
}

.settings-decision-history summary {
  cursor: pointer;
  font-weight: 600;
}

.settings-decision-history-item {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.settings-decision-history-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.settings-decision-history pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.settings-templates-table {
  table-layout: auto;
}

.settings-templates-table th,
.settings-templates-table td {
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.settings-templates-table th {
  white-space: nowrap;
}

.settings-templates-table .table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  white-space: nowrap;
}

.settings-templates-table th:last-child,
.settings-templates-table td:last-child {
  min-width: 210px;
  width: 210px;
}

.settings-templates-table .table-actions .button {
  white-space: nowrap;
}

.settings-templates-table .table-actions .inline-form {
  display: inline-flex;
}

.settings-keywords-table th:last-child,
.settings-keywords-table td:last-child {
  width: 126px;
  white-space: nowrap;
}

.settings-keywords-table .table-actions {
  justify-content: flex-start;
  white-space: nowrap;
}

.settings-keywords-remove {
  min-width: 88px;
  white-space: nowrap;
  word-break: normal;
  line-height: 1.1;
}

.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

.form-footer {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.final-version-submit-actions {
  justify-content: center;
}

.button.button-final-submit {
  min-width: 190px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(11, 79, 108, 0.18);
}

.divider {
  color: var(--muted);
}

.kicker {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 700;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.flow-header,
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 6px;
}

.hero-sub {
  color: var(--muted);
  margin: 0;
}

.flow-actions,
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.flow-step {
  display: inline-flex;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: var(--muted);
}

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

.flow-step:hover {
  color: var(--accent);
  border-color: rgba(11, 79, 108, 0.4);
}

.flow-step.done {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(11, 79, 108, 0.2);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.metric-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  font-family: "Source Serif 4", Georgia, serif;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
}

.dashboard-main,
.dashboard-side {
  min-width: 0;
}

.dashboard-main {
  overflow: visible;
}

@media (max-width: 1240px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-side .card {
  overflow: hidden;
}

.submission-summary {
  position: relative;
}

.submission-comment-title {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.submission-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
}

.summary-panel {
  border-left: 1px solid var(--border);
  padding-left: 18px;
}

.summary-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.summary-status {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 24px;
}

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

.form-card h2 {
  margin-bottom: 8px;
}

.form-stack label {
  display: grid;
  gap: 6px;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.input-hint {
  font-size: 12px;
  color: var(--muted);
}

.label-text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.form-subtitle {
  margin: 0 0 6px;
  font-size: 16px;
  font-family: "Source Serif 4", Georgia, serif;
}

.form-side {
  background: #fbfaf7;
}

.bulk-help summary {
  cursor: pointer;
  font-weight: 700;
  font-family: "Source Serif 4", Georgia, serif;
  margin-bottom: 10px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.checklist li:before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-weight: 700;
}

.note-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 14px;
  background: #fff;
}

.note-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.file-field {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.file-field input[type="file"] {
  padding: 12px;
  background: #fff;
}

.required {
  color: #b23a2f;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}

.radio-row label {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.author-list {
  display: grid;
  gap: 16px;
}

.author-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.author-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.author-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.author-corresponding {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proceedings-details {
  display: none;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfbfb;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.upload-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.upload-card {
  border-left: 4px solid rgba(11, 79, 108, 0.2);
}

.submit-card {
  border-left: 4px solid rgba(45, 106, 79, 0.3);
}

.review-form {
  display: grid;
  gap: 20px;
}

.form-section {
  display: grid;
  gap: 16px;
}

.section-header {
  display: grid;
  gap: 6px;
}

.section-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.score-block {
  display: grid;
  gap: 10px;
}

.score-label {
  font-weight: 600;
}

.score-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
  gap: 8px;
}

.score-option {
  position: relative;
  cursor: pointer;
}

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

.score-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  color: var(--ink);
}

.score-option input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.score-option input:focus + span {
  box-shadow: 0 0 0 2px rgba(11, 79, 108, 0.2);
}

.option-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.option-card {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.option-card input {
  margin-top: 4px;
  accent-color: var(--accent);
}

.option-title {
  font-weight: 700;
}

.option-desc {
  grid-column: 2 / -1;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .option-grid {
    grid-template-columns: 1fr;
  }
}

.empty-state {
  text-align: center;
  padding: 32px;
}

.table tbody tr:hover {
  background: rgba(11, 79, 108, 0.04);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-title {
  margin: 0 0 6px;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(18, 24, 32, 0.05);
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--ink);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.subsection-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 700;
}

.version-switch-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 360px;
  margin-bottom: 12px;
}

.version-switch-form label {
  margin: 0;
  flex: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-draft {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.status-submitted {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

.status-under-review {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}

.status-review-submitted {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.status-revise-required {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.status-accepted {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.status-pending-final-version {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.status-submission-finalized {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.status-rejected {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.table-actions form {
  margin: 0;
}

.pending-email-table .pending-email-action {
  width: 112px;
  text-align: right;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.pending-email-table {
  table-layout: auto;
}

.pending-email-table th,
.pending-email-table td {
  padding: 12px 10px;
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
  word-break: normal;
  white-space: normal;
}

.pending-email-table .pending-email-name {
  width: 32%;
  min-width: 122px;
}

.pending-email-table .pending-email-email {
  width: 38%;
  min-width: 148px;
}

.pending-email-table td.pending-email-email {
  overflow-wrap: anywhere;
}

.pending-email-table .pending-email-role {
  width: 14%;
  min-width: 76px;
}

.pending-email-table td.pending-email-role {
  white-space: nowrap;
  font-weight: 600;
}

.pending-email-table td.pending-email-action {
  display: table-cell;
  text-align: right;
}

.pending-email-table td.pending-email-action form {
  display: inline-block;
  margin: 0;
}

.pending-email-action-btn {
  min-width: 86px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .site-header {
    padding: 6px 10px;
  }

  .brand {
    height: auto;
  }

  .brand-logo {
    height: 60px;
    max-width: 280px;
    margin: 0;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-header,
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid,
  .submission-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 14px;
  }
}

.auth-shell {
  max-width: 980px;
  margin: 28px auto 40px;
  padding: 0 16px;
}

.auth-shell--center {
  max-width: 520px;
  margin: 40px auto 60px;
  padding: 0 16px;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.auth-panel {
  background: linear-gradient(120deg, #f7fbff, #f4f7fb);
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.auth-panel--center {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
}

.auth-grid {
  display: grid;
  gap: 24px;
}

.auth-grid.two-col {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.auth-copy {
  color: var(--auth-text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 79, 108, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.auth-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--auth-text);
}

.auth-subtitle {
  font-size: 14px;
  color: var(--auth-muted);
  margin: 0 0 16px;
}

.auth-meta {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(11, 79, 108, 0.16);
  background: #fff;
  font-size: 13px;
}

.auth-meta-label {
  font-weight: 700;
  color: var(--auth-text);
}

.auth-meta-sub {
  color: var(--auth-muted);
}

.auth-list {
  margin: 0;
  padding-left: 18px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-steps {
  display: grid;
  gap: 10px;
}

.auth-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--auth-muted);
}

.auth-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(11, 79, 108, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

.auth-lines {
  display: grid;
  gap: 6px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-card {
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  border-top: 4px solid rgba(11, 79, 108, 0.4);
}

.auth-card--center {
  padding: 28px;
  text-align: center;
  width: 100%;
}

.auth-header {
  margin-bottom: 16px;
}

.auth-header .auth-subtitle {
  margin-bottom: 0;
}

.auth-card-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--auth-text);
}

.auth-card-note {
  color: var(--auth-muted);
  font-size: 12px;
  margin: 0 0 16px;
}

.auth-form label {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 600;
  color: var(--auth-text);
  margin-bottom: 14px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  border: 1px solid rgba(11, 79, 108, 0.35);
  border-radius: 8px;
  font-size: 14px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: #fff;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(11, 79, 108, 0.2);
}

.role-options {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.role-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--auth-border);
  background: #fff;
}

.role-option input {
  margin-top: 4px;
}

.role-title {
  font-weight: 700;
  color: var(--auth-text);
}

.role-desc {
  grid-column: 2 / -1;
  font-size: 12px;
  color: var(--auth-muted);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.auth-actions--center {
  justify-content: center;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  cursor: pointer;
  text-decoration: none;
}

.auth-btn.secondary {
  background: #1f3347;
  border-color: #1f3347;
}

.auth-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.auth-links--center {
  justify-content: center;
}

.auth-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-note {
  font-size: 12px;
  color: var(--auth-muted);
  margin-top: 4px;
}

.password-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.password-wrap input {
  padding-right: 44px;
}

.toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  line-height: 1;
}

.toggle-eye:hover {
  color: #111827;
}

.toggle-eye svg {
  width: 18px;
  height: 18px;
  display: block;
}

.password-rules {
  font-size: 12px;
  color: var(--auth-muted);
  margin: 6px 0 10px;
}

.password-rules .rule {
  display: block;
  padding-left: 18px;
  position: relative;
  margin: 3px 0;
}

.password-rules .rule:before {
  content: "*";
  position: absolute;
  left: 6px;
  color: #c2410c;
}

.password-rules .rule.ok {
  color: #0f766e;
}

.password-rules .rule.ok:before {
  content: "OK";
  left: 0;
  color: #0f766e;
  font-weight: 700;
}

.confirm-note {
  font-size: 12px;
  color: var(--auth-muted);
  margin: 4px 0 10px;
}

.confirm-note.ok {
  color: #0f766e;
}

.confirm-note.bad {
  color: #b91c1c;
}

.feedback-card {
  position: relative;
  overflow: hidden;
}

.feedback-invite {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.feedback-trigger {
  margin-left: 4px;
  font-weight: 700;
}

.feedback-success-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e5f4ec;
  color: var(--success);
  font-weight: 600;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.feedback-success-note.is-hiding {
  opacity: 0;
  transform: translateY(-4px);
}

.feedback-modal[hidden] {
  display: none;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.34);
}

.feedback-dialog {
  position: relative;
  width: min(480px, calc(100vw - 32px));
  margin: 10vh auto 0;
  padding: 20px;
}

.feedback-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.feedback-dialog-head h3 {
  margin: 4px 0 0;
}

.feedback-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

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

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .auth-grid.two-col {
    grid-template-columns: 1fr;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-sidebar {
    position: static;
  }

  .settings-templates-grid {
    grid-template-columns: 1fr;
  }
}
