:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e1ec;
  --teal: #167c80;
  --blue: #2457a6;
  --amber: #b36b00;
  --red: #ad3434;
  --green: #2f7d4b;
  --shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

button {
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

select,
input {
  min-height: 36px;
  padding: 0 10px;
}

.app-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.brand-block {
  min-width: 220px;
}

.audience-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 8px;
  min-width: 280px;
}

.audience-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #245178;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  text-decoration: none;
  white-space: nowrap;
}

.audience-nav a:hover,
.audience-nav a:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  font-size: 16px;
  line-height: 1.25;
}

h3 {
  margin: 0;
  font-size: 14px;
}

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

.status-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 12px;
  white-space: nowrap;
}

.primary-button {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

.ghost-button {
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.ghost-button.active {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: inset 0 -3px 0 var(--blue);
}

.hidden {
  display: none !important;
}

.index-summary-panel,
.overview-card,
.admin-panel,
.table-area {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.index-summary-panel {
  width: min(420px, 100%);
  min-height: 116px;
  padding: 14px;
  margin-bottom: 14px;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.index-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.index-chip {
  display: grid;
  gap: 6px;
  min-height: 64px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  padding: 8px;
}

.index-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.index-chip strong {
  font-size: 24px;
  line-height: 1;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.overview-card {
  min-height: 0;
  padding: 11px 12px;
}

.overview-card h2 {
  font-size: 14px;
}

.overview-card ol {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.overview-card li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 27px;
  padding: 4px 0;
  border-bottom: 1px solid #eef2f6;
  font-size: 12px;
}

.overview-card li::before {
  content: var(--rank);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.overview-card li span,
.overview-card li > .journal-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-link {
  color: #174f86;
  font-weight: 650;
  text-decoration: none;
}

.journal-link:hover,
.journal-link:focus-visible {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.overview-card li small {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.overview-card .empty-list::before {
  content: "";
}

.overview-card .empty-list {
  display: block;
  color: var(--muted);
}

.q1 {
  background: var(--green);
}

.q2 {
  background: var(--blue);
}

.q3 {
  background: var(--amber);
}

.q4 {
  background: var(--red);
}

.badge.empty {
  background: #8b95a5;
}

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

.table-tabs {
  display: grid;
  gap: 8px;
}

.tab-item {
  position: relative;
  display: grid;
}

.tab-item > .info-popover {
  position: absolute;
  top: 12px;
  right: 10px;
}

.tab-button {
  width: 100%;
  min-height: 48px;
  padding: 8px 38px 8px 10px;
  text-align: left;
  background: #fff;
}

.tab-button.active {
  border-color: var(--teal);
  box-shadow: inset 4px 0 0 var(--teal);
  font-weight: 700;
}

.table-area {
  min-width: 0;
  overflow: hidden;
}

.table-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.table-header p {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--muted);
}

.table-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-with-info,
.label-with-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.label-with-info {
  width: 100%;
}

.label-with-info select {
  flex: 1;
  min-width: 0;
}

.info-popover {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8c6d8;
  border-radius: 50%;
  background: #f7fafc;
  color: #245178;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
  cursor: help;
}

.inline-info {
  margin-left: 5px;
  vertical-align: middle;
}

.info-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 30;
  width: min(280px, 75vw);
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 160ms ease 260ms, visibility 160ms ease 260ms;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #172033;
  color: #fff;
  box-shadow: var(--shadow);
  padding: 10px 11px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  pointer-events: auto;
}

.info-tooltip a {
  color: #9fe4e8;
  font-weight: 800;
}

.info-popover:hover .info-tooltip,
.info-popover:focus-visible .info-tooltip,
.info-popover:focus-within .info-tooltip {
  visibility: visible;
  opacity: 1;
}

#searchInput {
  width: 210px;
}

#fieldFilter {
  width: 260px;
}

#subjectFilter {
  width: 240px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  max-height: 68vh;
}

table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef3f8;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

th button {
  min-height: 0;
  width: auto;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  font-size: inherit;
  font-weight: inherit;
  text-transform: inherit;
}

th .info-popover {
  top: -1px;
}

tbody tr:hover {
  background: #f9fbfd;
}

td {
  max-width: 360px;
}

.num,
.percent {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 24px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.review-clean,
.review-needed {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.review-clean {
  background: #e9f6ee;
  color: var(--green);
}

.review-needed {
  background: #fff2d8;
  color: var(--amber);
}

.metric-cell {
  display: grid;
  min-width: 120px;
  gap: 4px;
}

.metric-cell span {
  font-variant-numeric: tabular-nums;
}

.mini-track {
  height: 5px;
  border-radius: 999px;
  background: #edf1f6;
}

.mini-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.risk .mini-fill {
  background: var(--red);
}

.longtext {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--muted);
}

.pager div {
  display: flex;
  gap: 8px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.7fr) minmax(0, 1.3fr);
  grid-template-areas:
    "requests requests"
    "queue index";
  gap: 14px;
}

.admin-requests-panel {
  grid-area: requests;
}

.admin-queue-panel {
  grid-area: queue;
}

.admin-index-panel {
  grid-area: index;
}

.admin-panel {
  min-width: 0;
  padding: 14px;
}

.admin-panel h2 {
  margin-bottom: 12px;
}

.admin-panel h3 {
  margin: 16px 0 8px;
  font-size: 14px;
}

.panel-heading,
.dialog-heading,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading p,
.dialog-copy {
  margin: 4px 0 0;
  color: var(--muted);
}

.admin-panel textarea {
  width: 100%;
  resize: vertical;
}

.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  width: 100%;
  margin-bottom: 8px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-table-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-table-tools input {
  margin: 0;
}

.admin-tab.active {
  border-color: var(--teal);
  background: #eaf7f7;
  color: var(--teal);
  font-weight: 800;
}

.admin-table-wrap {
  width: 100%;
  overflow: auto;
  max-height: 72vh;
}

.admin-table {
  min-width: 1900px;
}

.admin-table td {
  max-width: 260px;
}

.admin-table input,
.admin-table select {
  min-width: 130px;
  margin: 0;
}

.admin-table input[type="checkbox"] {
  min-width: 0;
  width: 18px;
  height: 18px;
}

.admin-option-cell {
  min-width: 340px;
}

.option-picks {
  display: flex;
  gap: 5px;
  max-width: 340px;
  margin-bottom: 6px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.option-chip {
  min-height: 26px;
  flex: 0 0 auto;
  border-color: #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: 0 8px;
  font-size: 12px;
}

.admin-name {
  min-width: 260px;
  font-weight: 700;
}

.scan-status {
  min-height: 32px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbfd;
  color: var(--muted);
  padding: 0 10px;
  margin: 8px 0;
  font-weight: 700;
}

.scan-status[data-state="running"] {
  color: var(--blue);
}

.scan-status[data-state="queued"],
.scan-table td[data-state="scan_queued"],
.scan-table td[data-state="analysis_queued"] {
  color: #9a6700;
}

.scan-status[data-state="completed"] {
  color: var(--green);
}

.scan-status[data-state="analysis_completed"],
.scan-table td[data-state="analysis_completed"] {
  color: var(--green);
}

.scan-status[data-state="quarter_ranked"],
.scan-table td[data-state="quarter_ranked"] {
  color: #0f766e;
}

.scan-status[data-state="failed"] {
  color: var(--red);
}

.scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.scan-table-wrap {
  width: 100%;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 8px 0;
}

.weekly-queue-wrap {
  max-height: 340px;
}

.scan-table {
  min-width: 820px;
}

.scan-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.scan-table a {
  color: var(--blue);
}

.scan-history {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.scan-list-item {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #f9fbfd;
}

.scan-list-item small,
.muted {
  color: var(--muted);
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
}

.inline-check input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.request-table-wrap {
  overflow: auto;
  max-height: 390px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
}

.request-table {
  min-width: 1220px;
}

.request-table td {
  max-width: 250px;
  vertical-align: top;
}

.request-table td > small,
.request-table td > a + small,
.request-status + small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.request-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}

.request-status[data-state="weekly_queued"],
.request-status[data-state="already_indexed"] {
  border-color: #9ec9af;
  color: var(--green);
}

.request-status[data-state="rejected"] {
  border-color: #e1aaaa;
  color: var(--red);
}

.request-actions {
  display: flex;
  min-width: 190px;
  flex-wrap: wrap;
  gap: 6px;
}

.request-actions button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.request-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(23, 32, 51, 0.28);
}

.request-dialog::backdrop {
  background: rgba(23, 32, 51, 0.52);
}

.request-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

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

.required-note span,
.required-mark {
  color: var(--red);
  font-weight: 900;
}

.optional-label {
  margin-left: 4px;
  color: #8791a3;
  font-size: 11px;
  font-weight: 500;
}

.public-request-ranking {
  margin-top: 16px;
}

.public-request-table-wrap {
  max-height: 210px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 8px;
}

.public-request-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.public-request-table th:nth-child(1) { width: 43%; }
.public-request-table th:nth-child(2) { width: 18%; }
.public-request-table th:nth-child(3) { width: 29%; }
.public-request-table th:nth-child(4) { width: 10%; }

.public-request-table th,
.public-request-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-request-table th:last-child,
.public-request-table td:last-child {
  width: 72px;
  text-align: right;
  font-weight: 800;
}

.public-request-table tbody tr {
  cursor: pointer;
}

.public-request-table tbody tr:hover,
.public-request-table tbody tr:focus-visible {
  background: #f2f7fb;
  outline: none;
}

.request-form-grid label {
  position: relative;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.request-form-grid input,
.request-form-grid select,
.request-form-grid textarea {
  width: 100%;
}

.request-form-grid input:user-invalid,
.request-form-grid select:user-invalid,
.request-form-grid textarea:user-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgb(190 49 54 / 10%);
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.request-form-grid textarea {
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
}

.wide-field {
  grid-column: 1 / -1;
}

.icon-button {
  width: 36px;
  padding: 0;
  font-size: 22px;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.form-message {
  min-height: 22px;
  margin-top: 12px;
  color: var(--muted);
}

.form-message[data-state="success"] {
  color: var(--green);
}

.form-message[data-state="error"] {
  color: var(--red);
}

.honeypot {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.suggestion-list {
  position: absolute;
  z-index: 10;
  top: calc(100% + 3px);
  right: 0;
  left: 0;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.suggestion-item {
  display: grid;
  width: 100%;
  min-height: 54px;
  justify-items: start;
  align-content: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item:hover,
.suggestion-item:focus-visible {
  background: #f2f7fb;
}

.suggestion-item span {
  color: var(--muted);
  font-size: 12px;
}

.info-page-body {
  background: #f5f7fb;
}

.info-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 46px;
}

.info-page-header,
.info-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.info-page-header {
  padding: 22px;
  margin-bottom: 14px;
}

.info-page-header h1 {
  margin: 4px 0 8px;
}

.info-page-header p,
.info-section p,
.info-section li {
  color: #445066;
  line-height: 1.55;
}

.info-section {
  padding: 20px 22px;
  margin: 12px 0;
}

.info-section h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.info-section h3 {
  margin-top: 16px;
  font-size: 15px;
}

.info-section ul,
.info-section ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.info-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.info-nav a,
.mail-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #245178;
  font-weight: 800;
  padding: 0 12px;
  text-decoration: none;
}

.mail-action {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

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

.topic-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  padding: 12px;
}

.seo-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 24px;
  margin: 22px 0 8px;
  padding: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.seo-intro h2 {
  margin: 4px 0 8px;
  font-size: 21px;
}

.seo-intro p {
  margin: 0;
  color: #445066;
  line-height: 1.55;
}

.seo-intro-links {
  display: grid;
  align-content: center;
  gap: 8px;
}

.seo-intro-links a {
  color: #245178;
  font-weight: 800;
}

.site-footer {
  display: flex;
  width: min(1500px, calc(100% - 32px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px auto 28px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: #334159;
}

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

.site-footer a {
  color: #245178;
  font-weight: 700;
  text-decoration: none;
}

.profile-footer {
  width: min(1240px, calc(100% - 32px));
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.comparison-table th,
.comparison-table td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: #eef4f8;
}

@media (max-width: 1100px) {
  .overview-grid,
  .workspace,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-areas:
      "requests"
      "queue"
      "index";
  }

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

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 1500px);
  }

  .topbar,
  .table-header,
  .pager {
    align-items: stretch;
    flex-direction: column;
  }

  .audience-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: 0;
  }

  .summary-grid,
  .overview-grid,
  .table-tabs {
    grid-template-columns: 1fr;
  }

  .table-tools {
    justify-content: stretch;
  }

  .table-tools > * {
    width: 100%;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .seo-intro {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  #searchInput {
    width: 100%;
  }

  .request-form-grid {
    grid-template-columns: 1fr;
  }

  .wide-field {
    grid-column: auto;
  }

  .admin-table-tools {
    grid-template-columns: 1fr 1fr;
  }
}

.ad-rail {
  position: fixed;
  top: 96px;
  z-index: 8;
  display: flex;
  width: 160px;
  justify-content: center;
  pointer-events: none;
}

.ad-rail-left {
  left: calc((100vw - 1500px) / 2 - 184px);
}

.ad-rail-right {
  right: calc((100vw - 1500px) / 2 - 184px);
}

.ad-slot {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #b9c7d9;
  border-radius: 8px;
  background: #f8fbff;
  color: #6a788d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: auto;
}

.ad-slot-rail {
  width: 160px;
  min-height: 600px;
}

.ad-slot-bottom {
  width: 100%;
  min-height: 90px;
}

.ad-slot-inline {
  width: 100%;
  min-height: 96px;
}

.dashboard-ad-row {
  margin: 14px 0 18px;
}

.profile-ad-row {
  margin: 0 0 20px;
}

.ad-slot.is-live {
  display: block;
  border: 0;
  background: transparent;
}

.ad-slot-placeholder span {
  padding: 8px;
  text-align: center;
}

.bottom-ad-shell {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 35;
  width: min(728px, calc(100% - 28px));
  transform: translateX(-50%);
  filter: drop-shadow(0 12px 28px rgba(23, 32, 51, 0.16));
}

.bottom-ad-shell.is-hidden {
  display: none;
}

.ad-bottom-close {
  position: absolute;
  top: -12px;
  right: -12px;
  display: inline-flex;
  width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-color: #c9d3e1;
  border-radius: 999px;
  background: #fff;
  color: #445066;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

body.has-bottom-ad {
  padding-bottom: 118px;
}

@media (max-width: 1880px) {
  .ad-rail {
    display: none;
  }
}

@media (max-width: 720px) {
  .bottom-ad-shell {
    bottom: 8px;
    width: calc(100% - 16px);
  }

  body.has-bottom-ad {
    padding-bottom: 108px;
  }
}
body.dergipark-intro-open {
  overflow: hidden;
}

.dergipark-intro[hidden] {
  display: none;
}

.dergipark-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 3rem);
  background: rgba(5, 12, 24, 0.68);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 240ms ease;
}

.dergipark-intro.is-visible {
  opacity: 1;
}

.dergipark-intro.is-closing {
  opacity: 0;
}

.dergipark-intro-card {
  position: relative;
  width: 50vw;
  height: 50vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  transform: translateY(12px) scale(0.985);
  transition: transform 240ms ease;
}

.dergipark-intro.is-visible .dergipark-intro-card {
  transform: translateY(0) scale(1);
}

.dergipark-intro-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dergipark-intro-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06) 40%, rgba(2, 6, 23, 0.92) 100%);
}

.dergipark-intro-message {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(0.9rem, 1.35vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.dergipark-intro-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  color: #fff;
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.86);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.dergipark-intro-close.is-close-ready {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.dergipark-intro-close:hover,
.dergipark-intro-close:focus-visible {
  background: rgba(15, 23, 42, 0.96);
}

@media (max-width: 760px) {
  .dergipark-intro-card {
    width: 90vw;
    height: 28vh;
  }

  .dergipark-intro-message {
    font-size: clamp(0.78rem, 3.2vw, 1rem);
    line-height: 1.35;
  }

  .dergipark-intro-close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dergipark-intro,
  .dergipark-intro-card,
  .dergipark-intro-close {
    transition: none;
  }
}
