:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #65758b;
  --line: #d8e0ea;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --danger: #b42318;
  --ok: #087443;
  --busy: #9a6700;
  --blue: #2357c6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

.public-shell,
.admin-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto;
  display: grid;
  gap: 16px;
}

.public-workspace {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto;
  display: grid;
  gap: 16px;
}

.workspace-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}

.public-shell {
  width: 100%;
  margin: 0;
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
}

.admin-layout {
  width: min(1600px, calc(100% - 32px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 18px;
  background: #101828;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(22, 32, 51, 0.12);
}

.sidebar-head {
  display: grid;
  gap: 14px;
}

.sidebar-head h1 {
  color: #fff;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background: transparent;
  color: #dbe6f4;
  border: 1px solid transparent;
}

.nav-item span {
  min-width: 22px;
  text-align: right;
  color: #98a2b3;
  font-size: 12px;
}

.nav-item:hover,
.nav-item.active {
  background: #1d2939;
  border-color: #344054;
}

.admin-content {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas: "pages rail";
  gap: 16px;
  align-items: start;
}

.admin-pages {
  grid-area: pages;
  min-width: 0;
}

.order-rail {
  grid-area: rail;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  min-height: 520px;
  padding: 16px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-self: start;
}

.order-rail-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.order-rail-head h2 {
  margin-bottom: 3px;
}

.rail-count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: #344054;
  font-size: 12px;
  font-weight: 700;
}

.order-search {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.order-search > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.order-rail-controls {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.order-rail-controls button {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 12px;
}

.order-select-all {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.order-select-all input,
.order-select-checkbox {
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.order-delete-selected {
  justify-self: stretch;
  background: var(--danger);
}

.order-sidebar-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 3px;
}

.order-sidebar-list.empty {
  display: block;
}

.order-pagination {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.order-pagination .page-size-control {
  grid-column: 1 / -1;
  justify-self: end;
}

.order-pagination button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.order-pagination > #orderPageNumber {
  min-width: 58px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.page-size-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.page-size-control select {
  width: 66px;
  min-height: 34px;
  padding: 5px 24px 5px 8px;
  font-size: 12px;
}

.internal-list-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.table-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-top: 10px;
}

.table-pagination button {
  min-width: 88px;
  min-height: 36px;
}

.table-pagination span {
  min-width: 64px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.order-list-item {
  width: 100%;
  min-width: 0;
  padding: 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.order-list-item.bulk-selected {
  border-color: #6f8fc8;
  background: #f3f7ff;
}

.order-select-checkbox {
  margin-top: 2px;
}

.order-list-open {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.order-list-open:hover {
  color: inherit;
  background: transparent;
}

.order-list-item:hover {
  border-color: #98a8bc;
  background: #f8fafc;
}

.order-list-item.selected {
  border-color: var(--accent);
  background: #eaf7f5;
  box-shadow: inset 3px 0 0 var(--accent);
}

.order-list-top,
.order-list-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-list-top strong,
.order-list-email,
.order-list-meta span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-list-top strong {
  font-size: 13px;
}

.order-list-email {
  color: #475467;
  font-size: 12px;
}

.order-list-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 11px;
}

.admin-page:not(.active) {
  display: none;
}

.admin-page.active {
  display: block;
}

.admin-page.active.result-panel {
  display: grid;
}

.admin-shell {
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
}

.admin-result {
  grid-column: 1 / -1;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(22, 32, 51, 0.06);
}

.primary,
.result-panel {
  padding: 18px;
}

.topbar,
.result-head,
.actions,
.mini-actions,
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar,
.result-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.toolbar {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar-actions {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar label {
  min-width: 140px;
}

.cdk-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.cdk-box textarea {
  min-height: 92px;
}

.internal-quota-mark {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #a7dcc7;
  border-radius: 6px;
  color: var(--ok);
  background: #ecfdf3;
  font-size: 12px;
  font-weight: 700;
}

.internal-submit-box {
  display: grid;
  gap: 12px;
}

.internal-file-import {
  display: grid;
  gap: 7px;
}

.internal-file-actions {
  display: grid;
  grid-template-columns: auto auto minmax(130px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.internal-file-actions button {
  justify-self: start;
}

#internalSessionJson {
  min-height: 270px;
}

.internal-list-head {
  margin-top: 24px;
}

.mailbox-list-head {
  align-items: flex-start;
}

.mailbox-status-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
}

.mailbox-status-band strong {
  color: #101828;
}

.mailbox-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mailbox-action-button {
  min-width: 56px;
  padding: 6px 9px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

button.success {
  background: #16794a;
}

button.success:hover {
  background: #11653e;
}

button.danger {
  background: #c53a3a;
}

button.danger:hover {
  background: #a52f2f;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 18px;
}

p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.pill {
  min-width: 92px;
  text-align: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.pill.ok {
  color: var(--ok);
  background: #ecfdf3;
  border-color: #b7ebc6;
}

.pill.err {
  color: var(--danger);
  background: #fff1f0;
  border-color: #ffd1cc;
}

.pill.busy {
  color: var(--busy);
  background: #fff8db;
  border-color: #f3d46b;
}

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

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

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

.proxy-library-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.proxy-library-row button {
  min-width: 72px;
}

.proxy-library-row-with-note {
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr) auto;
}

.proxy-check-results {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proxy-check-row {
  min-width: 0;
  min-height: 46px;
  display: grid;
  grid-template-columns: 84px minmax(120px, 0.55fr) minmax(0, 1.45fr);
  gap: 12px;
  align-items: center;
  padding: 9px 2px;
}

.proxy-check-row + .proxy-check-row {
  border-top: 1px solid #e8edf3;
}

.proxy-check-label {
  color: #38465a;
  font-size: 12px;
  font-weight: 700;
}

.proxy-check-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.proxy-check-meta {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 12px;
}

.proxy-check-row[data-state="ok"] strong {
  color: var(--ok);
}

.proxy-check-row[data-state="error"] strong,
.proxy-check-row[data-state="error"] .proxy-check-meta {
  color: var(--danger);
}

.proxy-check-row[data-state="busy"] strong {
  color: var(--busy);
}

.renewal-control {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 2px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.renewal-control-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.renewal-control-copy strong,
.renewal-control-copy span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.renewal-control button {
  min-width: 108px;
}

.admin-auto-run-control {
  min-width: 0;
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 2px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-auto-run-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-auto-run-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-auto-run-head strong[data-tone="running"] {
  color: var(--ok);
}

.admin-auto-run-head strong[data-tone="paused"] {
  color: var(--muted);
}

.admin-auto-run-head strong[data-tone="error"] {
  color: var(--danger);
}

.admin-auto-run-actions {
  flex: 0 0 auto;
  margin: 0;
}

.admin-auto-run-actions button {
  min-width: 132px;
}

.admin-auto-run-counts {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 12px;
}

.admin-auto-run-counts strong {
  color: #243146;
}

.task-auto-submit-control {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.task-auto-submit-control summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: #243146;
  font-size: 13px;
  font-weight: 700;
}

.task-auto-submit-control summary strong {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: right;
}

.task-auto-submit-control summary strong[data-tone="ok"] {
  color: var(--ok);
}

.task-auto-submit-control summary strong[data-tone="busy"] {
  color: var(--busy);
}

.task-auto-submit-control summary strong[data-tone="error"] {
  color: var(--danger);
}

.task-auto-submit-grid {
  padding: 0 0 16px;
}

.task-auto-submit-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
}

.task-auto-submit-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.task-auto-submit-record {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.hidden {
  display: none !important;
}

label {
  display: grid;
  gap: 6px;
}

label span,
.field-label,
.summary-row span {
  font-size: 12px;
  font-weight: 700;
  color: #38465a;
}

.folder-import {
  display: grid;
  gap: 7px;
}

.folder-import-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.cdk-query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.cdk-query-row button {
  min-width: 76px;
}

.folder-picker {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 9px 14px;
  color: #42526a;
  background: #eef2f7;
  font-weight: 700;
  cursor: pointer;
}

.folder-picker:hover {
  background: #e2e8f0;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.folder-hint {
  min-height: 18px;
  margin: 0;
}

.folder-hint.ok {
  color: var(--ok);
}

.folder-hint.err {
  color: var(--danger);
}

.folder-hint.busy {
  color: var(--busy);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 11px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 150px;
  resize: vertical;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.2);
  border-color: var(--accent);
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

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

button.secondary {
  background: #42526a;
}

button.secondary:hover {
  background: #2f3d50;
}

button.ghost {
  color: #42526a;
  background: #eef2f7;
}

button.ghost:hover {
  background: #e2e8f0;
}

.text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

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

.summary-row div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.summary-row strong {
  display: block;
  margin-top: 6px;
  word-break: break-all;
}

.result-panel {
  min-height: 520px;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.public-result {
  grid-template-rows: auto 1fr;
}

.public-result .records-list {
  align-content: start;
  margin-bottom: 0;
}

.mini-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.records-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.record-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(72px, 0.35fr) minmax(170px, 0.8fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.record-identity {
  min-width: 0;
}

.record-identity strong,
.record-identity span {
  overflow-wrap: anywhere;
}

.record-link {
  justify-self: end;
}

.payment-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.payment-link-button:hover {
  filter: brightness(0.94);
}

.portal-record-card > div:nth-child(3) span {
  max-width: 360px;
  overflow-wrap: anywhere;
}

.record-card strong,
.record-card b,
.record-card span {
  display: block;
}

.record-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.task-auto-submit-mapping {
  max-height: 320px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fc;
  color: #172033;
  font: 12px/1.55 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.empty {
  border: 1px dashed #bfccd9;
  border-radius: 8px;
  padding: 20px;
  color: var(--muted);
  background: #f8fafc;
  text-align: center;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  background: #f1f5f9;
  color: #344256;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover,
tbody tr.selected {
  background: #eaf7f5;
}

.status-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 700;
  background: #eef2f7;
}

.status-chip.succeeded {
  color: var(--ok);
  background: #ecfdf3;
}

.status-chip.failed {
  color: var(--danger);
  background: #fff1f0;
}

.status-chip.running,
.status-chip.plus_checking {
  color: var(--busy);
  background: #fff8db;
}

.output-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  margin-bottom: 14px;
}

.output-grid > div:first-child {
  display: grid;
  gap: 10px;
}

.qr-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: center;
  border: 1px solid #c9d7e8;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.qr-card.vertical {
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: start;
}

.qr-card.hidden {
  display: none;
}

.qr-status {
  width: 100%;
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.qr-status.hidden {
  display: none;
}

.qr-status[data-tone="ok"] {
  color: #16794a;
}

.qr-status[data-tone="expired"] {
  color: #c53a3a;
}

.qr-status[data-tone="unknown"] {
  color: #9a6700;
}

.qr-card p {
  width: 100%;
  margin: 0;
  word-break: break-all;
}

.qr-card img {
  width: 220px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px;
}

.config-run-log {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.config-run-log .result-head {
  margin-bottom: 10px;
}

.config-run-log h3 {
  margin: 0;
  font-size: 15px;
}

.run-log-box {
  margin: 0;
  min-height: 360px;
  max-height: calc(100vh - 150px);
  overflow: auto;
  border-radius: 8px;
  padding: 14px;
  background: #101828;
  color: #e6edf7;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

#configResultBox {
  min-height: 240px;
  max-height: 420px;
}

@media (max-width: 1040px) {
  .public-shell,
  .admin-shell,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .admin-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "rail"
      "pages";
  }

  .order-rail {
    position: static;
    height: min(480px, calc(100vh - 48px));
    min-height: 320px;
  }

  .side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    text-align: center;
  }

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

@media (max-width: 680px) {
  .public-workspace,
  .admin-shell,
  .admin-layout {
    width: min(100% - 20px, 1240px);
    margin: 10px auto;
  }

  .public-shell {
    width: 100%;
    margin: 0;
  }

  .form-grid,
  .summary-row,
  .record-card {
    grid-template-columns: 1fr;
  }

  .proxy-library-row,
  .proxy-library-row-with-note {
    grid-template-columns: 1fr;
  }

  .renewal-control {
    grid-template-columns: 1fr;
  }

  .renewal-control button {
    width: 100%;
  }

  .admin-auto-run-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-auto-run-actions {
    width: 100%;
  }

  .admin-auto-run-actions button {
    width: 100%;
  }

  .topbar,
  .result-head,
  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .proxy-check-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .proxy-check-meta {
    grid-column: 2;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .folder-import-row {
    grid-template-columns: 1fr;
  }

  .internal-file-actions {
    grid-template-columns: 1fr;
  }

  .internal-file-actions button {
    width: 100%;
  }

  .record-link {
    justify-self: start;
  }
}
