:root {
  color-scheme: light;
  --bg: #faf9f5;
  --panel: #ffffff;
  --panel-wash: #f3f1ea;
  --ink: #2c2925;
  --muted: #6a655e;
  --caption: #8d8881;
  --line: #e7e4e0;
  --line-strong: #d8d4cd;
  --accent: #1f9d55;
  --accent-strong: #177a42;
  --accent-soft: #eaf6ef;
  --accent-border: #bfe3cd;
  --dark: #1c2a22;
  --ok: #1f9d55;
  --warn: #b07d2e;
  --bad: #c0563f;
  --soft: #f3f1ea;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  font-family:
    Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  overflow: hidden;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
}

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

input,
select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.14);
  outline: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

[hidden] {
  display: none !important;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(28, 42, 34, 0.96), rgba(23, 122, 66, 0.9)),
    var(--dark);
}

.login-card {
  width: min(430px, 100%);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-brand img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.login-brand .eyebrow {
  margin-bottom: 4px;
}

.login-brand h1 {
  color: var(--ink);
  font-size: 30px;
}

.login-description {
  margin: 24px 0 20px;
  color: var(--muted);
  font-size: 15px;
}

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

.auth-login-form input {
  min-height: 48px;
  font-size: 16px;
}

.login-button {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
}

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

.login-error {
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid rgba(192, 86, 63, 0.25);
  border-radius: 10px;
  background: rgba(192, 86, 63, 0.08);
  color: var(--bad);
  font-size: 14px;
  font-weight: 700;
}

.app-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 10px;
  height: 100vh;
  padding: 16px 22px;
  background: linear-gradient(180deg, var(--dark) 0%, #203c2b 48%, var(--accent-strong) 100%);
  overflow-y: auto;
}

.brand {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 6px 0 10px;
}

.brand-mark {
  width: 76px;
  height: 76px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

h1 {
  color: #ffffff;
  font-size: 28px;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-subtitle {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(234, 246, 239, 0.32);
  border-radius: 999px;
  background: rgba(234, 246, 239, 0.16);
  color: #eaf6ef;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.sidebar-metrics {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.sidebar-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(234, 246, 239, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.sidebar-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.sidebar-metric strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.sidebar-metric #lastCollectedAt {
  font-size: 13px;
}

.sidebar-breakdown {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(234, 246, 239, 0.2);
  border-radius: 16px;
  background: rgba(250, 249, 245, 0.95);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
}

.sidebar-breakdown h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.breakdown-count {
  color: var(--accent-strong);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.sidebar-breakdown .eyebrow {
  margin-bottom: 2px;
  font-size: 11px;
}

.category-list {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-height: min(48vh, 460px);
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-color: rgba(13, 119, 62, 0.55) transparent;
  scrollbar-width: thin;
}

.category-list::-webkit-scrollbar {
  width: 6px;
}

.category-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(13, 119, 62, 0.55);
}

.category-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 7px;
  border-radius: 9px;
  background: #ffffff;
}

.category-list span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-list strong {
  color: var(--accent-strong);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.ok {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-pill.bad {
  border-color: #edc7bd;
  background: #fff4ef;
  color: var(--bad);
}

.workspace-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.workspace-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 62px;
  padding: 12px 24px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, 0.96);
  overflow-x: auto;
}

.workspace-tab {
  min-width: 92px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: transparent;
  color: var(--muted);
}

.workspace-tab:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.workspace-tab.active {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.03);
}

.workspace-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 0 10px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.auth-role-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
}

.logout-button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
}

.logout-button:hover {
  border-color: var(--accent-border);
  color: var(--accent-strong);
}

.workspace-scroll {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  padding: 22px 24px 28px;
}

.workspace-scroll.archive-active {
  display: block;
  overflow: hidden;
}

.workspace-scroll.archive-active #archiveView {
  display: block;
  min-height: 0;
  height: 100%;
}

.workspace-scroll.archive-active #archiveView > .panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}

.workspace-scroll.archive-active .archive-table-wrap {
  min-height: 0;
  height: auto;
}

.workspace-view {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.workspace-view[hidden] {
  display: none;
}

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

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

.panel-header h2 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.table-header {
  align-items: flex-start;
}

.control-panel {
  width: 100%;
}

.settings-panel {
  max-width: 1120px;
}

.settings-grid {
  display: grid;
  gap: 10px;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.settings-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.settings-row-head h3 {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.settings-row-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.settings-form {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(180px, 220px) 82px minmax(90px, 1fr);
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.settings-form input {
  min-height: 36px;
  border-radius: 9px;
}

.settings-form button {
  min-height: 36px;
  padding: 0 14px;
}

.automation-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 190px) auto;
  gap: 12px;
  align-items: end;
}

.automation-form .toggle-control {
  min-height: 40px;
}

.automation-time-field input {
  min-height: 40px;
}

.automation-form button {
  min-height: 40px;
}

.automation-disable-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #ebc1ba;
  background: #fff5f3;
  color: #a74434;
}

.automation-disable-button:hover {
  background: #fde7e2;
}

.automation-help {
  grid-column: 1 / -1;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.automation-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.automation-summary div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-wash);
}

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

.automation-summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-row-head #automationState {
  margin-top: 10px;
}

.login-status {
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 36px;
  white-space: nowrap;
}

.login-status.bad {
  color: var(--bad);
}

.form-grid {
  display: grid;
  gap: 12px;
  align-items: end;
}

.research-form-grid {
  grid-template-columns:
    minmax(150px, 180px)
    minmax(150px, 180px);
}

.control-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.control-group label,
.toggle-control {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  white-space: nowrap;
}

.toggle-control input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.panel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.primary-side-button,
.secondary-button,
.danger-button,
.search-bar button {
  min-height: 40px;
  padding: 0 15px;
}

.primary-side-button {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px -16px rgba(31, 157, 85, 0.8);
}

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

.secondary-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.danger-button {
  border: 1px solid #edc7bd;
  background: #fff4ef;
  color: var(--bad);
}

.danger-button:hover {
  background: var(--bad);
  color: #ffffff;
}

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

.run-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.run-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.run-item strong {
  width: fit-content;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.run-item p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-item .run-progress {
  color: var(--accent-strong);
  font-weight: 900;
}

.status-success,
.status-partial {
  background: var(--accent-soft) !important;
  color: var(--accent-strong) !important;
}

.status-running {
  background: #fff7e8 !important;
  color: var(--warn) !important;
}

.status-failed,
.status-cancelled {
  background: #fff4ef !important;
  color: var(--bad) !important;
}

.search-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) minmax(180px, 1.5fr) auto;
  gap: 8px;
  align-items: end;
  justify-content: start;
  margin-bottom: 12px;
}

.archive-query-field {
  min-width: 160px;
}

.archive-category-field {
  min-width: 120px;
}

.search-bar button {
  min-height: 38px;
  background: var(--accent);
  color: #ffffff;
}

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

.table-wrap {
  overflow: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.archive-table-wrap {
  height: max(340px, calc(100vh - 200px));
  overscroll-behavior: contain;
}

.archive-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: inset 0 -1px 0 var(--line);
}

table {
  width: 100%;
  min-width: 1870px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  background: var(--panel-wash);
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.report-sort-button {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
}

.report-sort-button:hover,
.report-sort-button.active {
  color: var(--accent-strong);
}

.sort-indicator {
  display: inline-flex;
  width: 14px;
  justify-content: center;
  color: var(--caption);
  font-size: 11px;
  line-height: 1;
}

.report-sort-button.active .sort-indicator {
  color: var(--accent-strong);
}

td {
  color: var(--ink);
}

th:nth-child(1),
td:nth-child(1) {
  width: 5.5%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 5.5%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 7%;
}

th:nth-child(4),
td:nth-child(4) {
  width: 12.5%;
}

th:nth-child(5),
td:nth-child(5) {
  width: 7.5%;
}

th:nth-child(6),
td:nth-child(6) {
  width: 16%;
}

th:nth-child(7),
td:nth-child(7) {
  width: 6%;
  text-align: center;
}

th:nth-child(8),
td:nth-child(8) {
  width: 7%;
  text-align: right;
}

th:nth-child(10) {
  text-align: right;
}

th:nth-child(9),
td:nth-child(9) {
  width: 12.5%;
}

th:nth-child(10),
td:nth-child(10) {
  width: 4%;
  text-align: right;
}

th:nth-child(11),
td:nth-child(11) {
  width: 16.5%;
}

td:nth-child(1),
td:nth-child(2),
td:nth-child(3),
td:nth-child(4),
td:nth-child(5),
td:nth-child(7),
td:nth-child(9) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

td:nth-child(10) {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

td strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: var(--accent-soft);
}

.report-title-link {
  display: inline-block;
  max-width: 100%;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.report-title-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.report-title-cell {
  min-width: 0;
}

.report-author-cell {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.report-title-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 246px;
}

.pdf-open-link {
  display: inline-flex;
  flex: 0 0 72px;
  align-items: center;
  justify-content: center;
  width: 72px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.pdf-open-link.download-link {
  flex-basis: 82px;
  width: 82px;
  white-space: nowrap;
}

.pdf-open-link.download-link.is-downloading {
  color: var(--muted);
  cursor: wait;
}

.pdf-open-link.email-link {
  flex-basis: 72px;
  width: 72px;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

button.pdf-open-link {
  cursor: pointer;
  font: inherit;
}

button.pdf-open-link:disabled {
  cursor: wait;
  opacity: 0.65;
}

.collection-report-list {
  display: grid;
  gap: 10px;
}

.collection-report-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.collection-report-path,
.collection-report-item p {
  margin: 0;
}

.collection-report-path {
  margin-bottom: 7px !important;
  color: var(--caption);
  font-size: 0.82rem;
}

.collection-report-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.collection-report-main > div {
  min-width: 0;
}

.collection-report-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.collection-report-main strong {
  display: block;
  margin-bottom: 5px;
}

.pdf-open-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pdf-open-link.disabled {
  border-color: var(--line);
  background: #f3f1ea;
  color: var(--caption);
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.email-dialog {
  width: min(440px, calc(100vw - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(38, 52, 44, 0.22);
  color: var(--ink);
}

.email-dialog::backdrop {
  background: rgba(31, 42, 36, 0.42);
}

.email-dialog form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.email-dialog h2 {
  color: var(--ink);
  font-size: 20px;
}

.email-report-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.email-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.email-dialog-actions button {
  min-height: 38px;
  padding: 0 14px;
}

.report-analysts {
  flex: 0 1 160px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-cell {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
}

.archive-load-more-cell {
  padding: 14px 12px;
  background: var(--panel-wash);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1180px) {
  .archive-search-bar {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .archive-search-bar .archive-query-field {
    grid-column: span 2;
  }

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

  .settings-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .settings-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) 82px minmax(90px, 1fr);
  }

  .automation-form {
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 190px);
  }

  .automation-form button {
    width: fit-content;
  }

  .toggle-control {
    justify-content: center;
  }

  .run-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .workspace-auth {
    margin-left: 0;
  }

  .workspace-tabs {
    flex-wrap: wrap;
    padding-bottom: 10px;
  }

  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .workspace-panel {
    position: static;
    height: auto;
    min-height: auto;
  }

  .sidebar {
    padding: 16px;
  }

  .workspace-panel {
    overflow: visible;
  }

  .workspace-scroll {
    overflow: visible;
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .login-screen {
    padding: 14px;
  }

  .login-card {
    padding: 26px 22px;
  }

  .login-brand img {
    width: 72px;
    height: 72px;
  }

  .login-brand h1 {
    font-size: 25px;
  }

  .workspace-auth {
    margin-left: 8px;
    padding-left: 8px;
  }

  .workspace-auth #authUserName,
  .auth-role-badge {
    display: none;
  }

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

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  h1 {
    font-size: 24px;
  }

  .research-form-grid,
  .search-bar,
  .settings-form,
  .automation-form {
    grid-template-columns: 1fr;
  }

  .automation-form button {
    width: 100%;
  }

  .automation-summary {
    grid-template-columns: 1fr;
  }

  .login-status {
    min-height: 18px;
    line-height: 1.35;
  }

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