:root {
  --bg: #edf1ea;
  --bg-soft: #f7f8f4;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-ink: #10231f;
  --line: rgba(16, 35, 31, 0.14);
  --line-strong: rgba(16, 35, 31, 0.26);
  --accent: #0f7b6c;
  --accent-deep: #0a5d52;
  --accent-soft: #d9f0ea;
  --warn: #c47a16;
  --danger: #af3b3b;
  --safe: #1f8d55;
  --text: #17312d;
  --ink: #17312d;
  --muted: #61726d;
  --shadow: 0 18px 50px rgba(27, 40, 37, 0.12);
  --shadow-soft: 0 10px 26px rgba(27, 40, 37, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  background: #edf1ea;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(15, 123, 108, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(196, 122, 22, 0.16), transparent 24%),
    linear-gradient(180deg, #f8faf6 0%, #edf1ea 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1.3px solid rgba(15, 123, 108, 0.26);
  border-radius: 3px;
  background: #ffffff;
  vertical-align: middle;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 9px;
  transform: scale(0);
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 18%, 84% 5%, 38% 68%);
  background: #0b7fd3;
  transition: transform 0.12s ease;
}

input[type="checkbox"]:checked {
  border-color: rgba(11, 127, 211, 0.58);
  background: #eef7ff;
  box-shadow: 0 0 0 1px rgba(11, 127, 211, 0.06);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

input[type="checkbox"]:disabled {
  opacity: 1;
  cursor: not-allowed;
  border-color: rgba(15, 123, 108, 0.18);
  background: #ffffff;
}

input[type="checkbox"]:disabled:checked {
  border-color: rgba(11, 127, 211, 0.48);
  background: #f4faff;
  box-shadow: none;
}

.hidden {
  display: none !important;
}

[data-portal-host="true"] #authGate,
[data-portal-host="true"] #appRoot {
  display: none !important;
}

.page-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 18px auto 28px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.brand-copy h1 {
  margin: 6px 0 10px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.brand-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 820px;
  font-size: 1rem;
  line-height: 1.6;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.user-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--surface-ink);
  min-width: 180px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: opacity 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-logout {
  padding: 10px 14px;
  white-space: nowrap;
}

.site-footer {
  margin: 24px 0 4px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer strong {
  color: var(--surface-ink);
}

.user-chip.is-loading {
  color: var(--muted);
  border-color: rgba(15, 123, 108, 0.2);
  opacity: 0.88;
}

.flash {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff7de;
  box-shadow: var(--shadow);
}

.flash.success {
  background: #e6f6ef;
  border-color: rgba(31, 141, 85, 0.22);
}

.flash.error {
  background: #fde9e7;
  border-color: rgba(175, 59, 59, 0.22);
}

.portal-gate {
  display: grid;
  place-items: center;
  min-height: 58vh;
  padding: 24px 0 40px;
}

.portal-gate-card {
  width: min(720px, 100%);
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(15, 123, 108, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.portal-gate-card h2 {
  margin: 10px 0 12px;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.portal-gate-card p {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.portal-gate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 480px);
  gap: 20px;
  align-items: stretch;
}

.hero-card,
.auth-panel,
.sidebar,
.panel-card,
.stat-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card,
.auth-panel {
  border-radius: var(--radius-xl);
  padding: 30px;
}

.hero-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(15, 123, 108, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(217, 240, 234, 0.42));
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  margin: 10px 0 12px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.05;
  max-width: 14ch;
}

.hero-card p,
.auth-note,
.muted-copy {
  color: var(--muted);
}

.hero-card p {
  max-width: 760px;
  line-height: 1.68;
}

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

.hero-proof-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 35, 31, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.hero-proof-card small,
.hero-proof-card span {
  color: var(--muted);
}

.hero-proof-card strong {
  font-size: 1.02rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-tile {
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  background: linear-gradient(180deg, rgba(15, 123, 108, 0.12), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(15, 123, 108, 0.16);
}

.metric-tile strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.metric-tile span {
  color: var(--muted);
}

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

.card-head h2,
.card-head h3,
.hero-strip h2 {
  margin: 4px 0 0;
  font-size: 1.4rem;
}

.hero-strip h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}

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

.form-grid + .field {
  margin-top: 14px;
}

.auth-panel-intro {
  margin: -2px 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 249, 246, 0.9);
}

.auth-mode-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.auth-mode-btn.active {
  background: #ffffff;
  color: var(--accent-deep);
  box-shadow: 0 8px 18px rgba(16, 35, 31, 0.08);
}

.auth-submit-row {
  margin-top: 18px;
}

.auth-note {
  margin: 14px 0 0;
  line-height: 1.6;
}

.tight-grid {
  align-items: end;
}

.field {
  display: block;
}

.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}


input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 14px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(15, 123, 108, 0.4);
  box-shadow: 0 0 0 4px rgba(15, 123, 108, 0.08);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 76px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 1px solid rgba(15, 123, 108, 0.16);
  border-radius: 999px;
  background: rgba(217, 240, 234, 0.72);
  color: var(--accent-deep);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.password-toggle:hover,
.password-toggle.is-pressed {
  background: rgba(15, 123, 108, 0.12);
  border-color: rgba(15, 123, 108, 0.3);
}

textarea {
  resize: vertical;
}

.button-row,
.toolbar-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.button-row:has(> button:nth-child(2):last-child) {
  gap: 18px;
}

.field + .button-row {
  margin-top: 6px;
}

.primary-btn,
.ghost-btn,
.tab-link {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 16px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), #149180);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 123, 108, 0.22);
}

.ghost-btn,
.tab-link {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border-color: var(--line);
}

.primary-btn.is-saving,
.ghost-btn.is-saving,
.tiny-btn.is-saving {
  color: var(--accent-deep);
  border-color: rgba(15, 123, 108, 0.3);
  background: rgba(217, 240, 234, 0.72);
  box-shadow: 0 0 0 4px rgba(15, 123, 108, 0.08);
}

.primary-btn.is-saved,
.ghost-btn.is-saved,
.tiny-btn.is-saved {
  color: var(--safe);
  border-color: rgba(31, 141, 85, 0.26);
  background: rgba(230, 246, 239, 0.86);
  box-shadow: 0 0 0 4px rgba(31, 141, 85, 0.08);
}

.primary-btn.is-pressed,
.ghost-btn.is-pressed,
.tab-link.is-pressed,
.tiny-btn.is-pressed,
button:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
  border-color: rgba(15, 123, 108, 0.36);
  box-shadow: 0 0 0 5px rgba(15, 123, 108, 0.1);
}

.primary-btn:hover,
.ghost-btn:hover,
.tab-link:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.danger-btn {
  color: var(--danger);
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.sidebar {
  border-radius: var(--radius-xl);
  padding: 20px;
  position: sticky;
  top: 18px;
  height: fit-content;
}

.sidebar-block + .sidebar-block {
  margin-top: 18px;
}

.brand-mini strong {
  display: block;
  font-size: 1.2rem;
  margin-top: 4px;
}

.sync-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(15, 123, 108, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  line-height: 1.2;
}

.sync-status.syncing {
  color: var(--accent-deep);
  border-color: rgba(15, 123, 108, 0.28);
  background: rgba(217, 240, 234, 0.74);
}

.sync-status.synced {
  color: var(--safe);
  border-color: rgba(31, 141, 85, 0.22);
  background: rgba(230, 246, 239, 0.78);
}

.sync-status.error {
  color: var(--warn);
  border-color: rgba(196, 122, 22, 0.26);
  background: rgba(255, 242, 223, 0.82);
}

.tab-nav {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.tab-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.tab-link.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.tab-link.active {
  background: linear-gradient(135deg, rgba(15, 123, 108, 0.18), rgba(15, 123, 108, 0.08));
  border-color: rgba(15, 123, 108, 0.24);
  color: var(--accent-deep);
  font-weight: 700;
}

.tab-link.has-admin-requests {
  border-color: rgba(175, 59, 59, 0.34);
  box-shadow: 0 0 0 4px rgba(175, 59, 59, 0.08);
}

.tab-link-label {
  min-width: 0;
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(175, 59, 59, 0.12);
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-request-count {
  background: rgba(175, 59, 59, 0.16);
  color: var(--danger);
  box-shadow: 0 0 0 4px rgba(175, 59, 59, 0.06);
}

.module-checklist {
  display: grid;
  gap: 10px;
}

.module-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.module-item small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.module-item.module-offline {
  opacity: 0.68;
}

.mini-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mini-stat:last-child {
  border-bottom: 0;
}

.content-shell {
  display: grid;
  gap: 18px;
}

.panel {
  display: none;
  gap: 18px;
}

.panel.active {
  display: grid;
}

.hero-strip,
.panel-card,
.stat-card {
  border-radius: var(--radius-xl);
}

.hero-strip,
.panel-card {
  padding: 24px;
}

.hero-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(231, 241, 238, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(15, 123, 108, 0.14), transparent 26%),
    radial-gradient(circle at bottom left, rgba(196, 122, 22, 0.08), transparent 24%);
}

.hero-strip > * {
  position: relative;
  z-index: 1;
}

.hero-strip p {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 900px;
  line-height: 1.6;
}

.overview-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.overview-command-hero h2 {
  max-width: 720px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stats-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.stat-card-operations {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 249, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    var(--shadow-soft);
}

.stat-card-operations::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(15, 123, 108, 0.86), rgba(31, 141, 85, 0.38));
}

.compact-alert-summary {
  padding: 20px 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 245, 241, 0.9));
}

.stat-card span,
.stat-card small {
  display: block;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  font-size: 1.44rem;
  margin: 10px 0 8px;
  line-height: 1.08;
}

.stat-card small {
  line-height: 1.5;
}

.source-grid,
.notes-grid,
.meta-grid {
  display: grid;
  gap: 14px;
}

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

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

.settings-identity-card .meta-grid {
  margin-top: 14px;
}

.settings-profile-card {
  display: grid;
  gap: 20px;
}

.settings-profile-card .card-head,
.settings-profile-card .field,
.settings-profile-card .settings-profile-actions,
.settings-profile-card .meta-grid {
  margin: 0;
}

.settings-profile-card .card-head {
  margin-bottom: 0;
}

.settings-profile-card .meta-grid {
  margin-top: 14px;
}

.quick-search-actions {
  margin-top: 16px;
}

.monitor-entry-actions {
  margin-top: 16px;
}

.auto-run-status {
  margin-top: 8px;
}

.monitor-run-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.monitor-run-strip > div {
  border: 1px solid rgba(15, 123, 108, 0.14);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 248, 0.86));
}

.monitor-run-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monitor-run-strip strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

.settings-profile-actions {
  margin: 12px 0 4px;
}

.setting-footnote {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.source-card,
.meta-item,
.note-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 247, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.source-card .status-line {
  margin-top: 10px;
}

.source-card h4,
.note-card strong {
  margin: 6px 0 8px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.source-card p,
.source-card small,
.note-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.pending-approval-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(217, 240, 234, 0.78), rgba(255, 255, 255, 0.88));
}

.approval-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.approval-steps span {
  border: 1px solid rgba(15, 123, 108, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent-deep);
  padding: 8px 11px;
  font-size: 0.86rem;
  font-weight: 700;
}

.status-line {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill.safe {
  background: rgba(31, 141, 85, 0.14);
  color: var(--safe);
}

.pill.warn {
  background: rgba(196, 122, 22, 0.16);
  color: var(--warn);
}

.pill.danger {
  background: rgba(175, 59, 59, 0.14);
  color: var(--danger);
}

.pill.info {
  background: rgba(15, 123, 108, 0.14);
  color: var(--accent-deep);
}

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

.panel-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-layout,
.settings-column {
  display: grid;
  gap: 18px;
}

.settings-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.settings-column {
  height: 100%;
}

.settings-column:first-child {
  grid-template-rows: auto 1fr;
}

.settings-column:first-child > .panel-card:last-child {
  height: 100%;
}

.field-button-stack .button-row {
  margin-top: 0;
}

.split-head {
  align-items: center;
}

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

.inline-input {
  flex: 1 1 280px;
  min-width: 220px;
}

.batch-toolbar {
  position: relative;
  isolation: isolate;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 123, 108, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(217, 240, 234, 0.5), rgba(255, 255, 255, 0.82));
}

.batch-toolbar-search {
  flex: 1 1 360px;
  min-width: 240px;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.batch-toolbar-search .inline-input {
  min-width: 100%;
}

.batch-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.monitoring-stats {
  margin-bottom: 2px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.monitor-setup-card {
  position: relative;
  overflow: hidden;
}

.monitor-setup-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, rgba(15, 123, 108, 0.9), rgba(15, 123, 108, 0.18));
}

.monitor-table-card {
  display: grid;
  gap: 14px;
}

.monitoring-scope-note {
  margin: -4px 0 2px;
}

.monitor-toolbar {
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(15, 123, 108, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(217, 240, 234, 0.4), rgba(255, 255, 255, 0.82));
}

.bulk-frequency-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bulk-frequency-control span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.monitor-table-shell {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(250, 252, 249, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.monitor-table {
  min-width: 980px;
}

.monitor-history-table {
  table-layout: fixed;
  min-width: 880px;
}

.monitor-history-shell {
  max-height: 560px;
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-color: rgba(15, 123, 108, 0.42) rgba(15, 123, 108, 0.08);
  scrollbar-width: thin;
}

.monitor-history-shell::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.monitor-history-shell::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(15, 123, 108, 0.08);
}

.monitor-history-shell::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 123, 108, 0.42);
}

.monitor-history-shell .monitor-history-table th {
  top: 0;
  z-index: 3;
}

.monitor-history-meta {
  align-items: center;
}

.history-usage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 35, 31, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.history-usage-pill.ok {
  color: #0f6d46;
  background: rgba(31, 141, 85, 0.12);
  border-color: rgba(31, 141, 85, 0.22);
}

.history-usage-pill.warn {
  color: #8a5a0a;
  background: rgba(196, 122, 22, 0.14);
  border-color: rgba(196, 122, 22, 0.24);
}

.history-usage-pill.danger {
  color: #9f2f2f;
  background: rgba(175, 59, 59, 0.13);
  border-color: rgba(175, 59, 59, 0.24);
}

.monitor-history-table th:nth-child(1),
.monitor-history-table td:nth-child(1) {
  width: 44px;
}

.monitor-history-table th:nth-child(2),
.monitor-history-table td:nth-child(2) {
  width: 31%;
}

.monitor-history-table th:nth-child(3),
.monitor-history-table td:nth-child(3) {
  width: 17%;
}

.monitor-history-table th:nth-child(4),
.monitor-history-table td:nth-child(4) {
  width: 19%;
}

.monitor-history-table th:nth-child(5),
.monitor-history-table td:nth-child(5) {
  width: 12%;
}

.monitor-history-table th:nth-child(6),
.monitor-history-table td:nth-child(6) {
  width: 17%;
}

.monitor-table th {
  padding: 11px 10px;
  background: rgba(246, 249, 246, 0.98);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monitor-table td {
  padding: 11px 10px;
}

.monitor-row td {
  background: rgba(255, 255, 255, 0.72);
}

.monitor-row:nth-child(even) td {
  background: rgba(249, 251, 249, 0.92);
}

.monitor-row:hover td {
  background: rgba(233, 244, 240, 0.76);
}

.monitor-name-cell {
  display: grid;
  gap: 4px;
}

.monitor-name-cell strong {
  font-size: 0.94rem;
}

.monitor-name-cell span {
  color: var(--muted);
  font-size: 0.8rem;
}

.monitor-frequency {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 123, 108, 0.08);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.monitor-frequency-select {
  min-width: 150px;
  width: auto;
  border-radius: 999px;
  padding: 8px 36px 8px 12px;
  background: rgba(15, 123, 108, 0.08);
  border-color: rgba(15, 123, 108, 0.12);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.monitor-mode-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(16, 35, 31, 0.06);
  color: var(--text);
  font-size: 0.8rem;
  text-transform: capitalize;
}

.monitor-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.monitor-actions .action-danger {
  grid-column: 1 / -1;
}

.history-actions {
  grid-template-columns: 1fr;
  max-width: 132px;
}

.report-centre-card {
  display: grid;
  gap: 14px;
}

.report-command-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(16, 35, 31, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 243, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.report-command-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.report-status-mix {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.report-mix-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
}

.report-mix-pill.safe {
  background: rgba(31, 141, 85, 0.12);
  color: var(--safe);
}

.report-mix-pill.flagged {
  background: rgba(175, 59, 59, 0.1);
  color: var(--danger);
}

.report-mix-pill.selected {
  background: rgba(15, 123, 108, 0.1);
  color: var(--accent-deep);
}

.report-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 123, 108, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(217, 240, 234, 0.5), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.report-filter-select {
  width: auto;
  min-width: 180px;
  flex: 0 0 auto;
}

.report-date-input {
  width: 150px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
}

.report-table-shell {
  border-radius: 22px;
  border: 1px solid rgba(16, 35, 31, 0.08);
  background: linear-gradient(180deg, rgba(250, 252, 249, 0.98), rgba(255, 255, 255, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.report-table {
  min-width: 1040px;
  table-layout: fixed;
}

.report-table th {
  padding: 11px 10px;
  background: rgba(246, 249, 246, 0.98);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-table td {
  padding: 11px 10px;
}

.report-table th,
.report-table td,
.monitor-history-table th,
.monitor-history-table td {
  min-width: 0;
}

.report-table th:nth-child(1),
.report-table td:nth-child(1) {
  width: 44px;
}

.report-table th:nth-child(2),
.report-table td:nth-child(2) {
  width: 20%;
}

.report-table th:nth-child(3),
.report-table td:nth-child(3) {
  width: 16%;
}

.report-table th:nth-child(4),
.report-table td:nth-child(4) {
  width: 12%;
}

.report-table th:nth-child(5),
.report-table td:nth-child(5) {
  width: 12%;
}

.report-table th:nth-child(6),
.report-table td:nth-child(6) {
  width: 14%;
}

.report-table th:nth-child(7),
.report-table td:nth-child(7) {
  width: 14%;
}

.report-table th:nth-child(8),
.report-table td:nth-child(8) {
  width: 12%;
}

.report-table .status-meta-inline,
.monitor-history-table .status-meta-inline {
  display: -webkit-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  line-height: 1.35;
  max-height: calc(1.35em * 2);
  word-break: break-word;
}

.admin-access-card {
  display: grid;
  gap: 16px;
}

.admin-head {
  align-items: center;
}

.admin-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-count.pending {
  background: rgba(196, 122, 22, 0.12);
  color: #a46610;
}

.admin-count.approved {
  background: rgba(31, 141, 85, 0.12);
  color: var(--safe);
}

.admin-count.disabled {
  background: rgba(16, 35, 31, 0.08);
  color: var(--surface-ink);
}

.admin-toolbar {
  padding: 14px;
  border: 1px solid rgba(15, 123, 108, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(217, 240, 234, 0.42), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.admin-health-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 123, 108, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(248, 251, 249, 0.96), rgba(235, 245, 241, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

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

.admin-health-jobs {
  display: grid;
  gap: 10px;
}

.admin-health-job.tone-danger {
  border-color: rgba(175, 59, 59, 0.22);
  background: linear-gradient(135deg, rgba(251, 234, 234, 0.68), rgba(255, 255, 255, 0.92));
}

.admin-health-job.tone-info,
.overview-activity-item.tone-info {
  border-color: rgba(15, 123, 108, 0.2);
  background: linear-gradient(135deg, rgba(217, 240, 234, 0.62), rgba(255, 255, 255, 0.92));
}

.admin-health-job.tone-warn,
.overview-activity-item.tone-warn {
  border-color: rgba(196, 122, 22, 0.24);
  background: linear-gradient(135deg, rgba(255, 242, 223, 0.72), rgba(255, 255, 255, 0.92));
}

.overview-activity-item.tone-danger {
  border-color: rgba(175, 59, 59, 0.22);
  background: linear-gradient(135deg, rgba(251, 234, 234, 0.62), rgba(255, 255, 255, 0.92));
}

.admin-user-list {
  display: grid;
  gap: 14px;
}

.admin-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 18px 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 246, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    var(--shadow-soft);
}

.admin-user-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(15, 123, 108, 0.9), rgba(15, 123, 108, 0.2));
}

.admin-user-main,
.admin-user-side {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-user-main strong {
  font-size: 1.02rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.admin-user-main span {
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-user-side {
  justify-items: end;
}

.admin-user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-action-btn {
  min-width: 110px;
}

.admin-workspace-viewer {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(15, 123, 108, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(217, 240, 234, 0.48), rgba(255, 255, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.admin-workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-workspace-head h3 {
  margin: 4px 0 0;
}

.admin-workspace-loading {
  color: var(--muted);
  font-weight: 700;
}

.admin-workspace-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-workspace-metrics div,
.admin-workspace-grid section {
  border: 1px solid rgba(16, 35, 31, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.admin-workspace-metrics span,
.admin-workspace-row span {
  color: var(--muted);
}

.admin-workspace-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
}

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

.admin-workspace-grid h4 {
  margin: 0 0 10px;
}

.admin-workspace-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(16, 35, 31, 0.08);
}

.admin-workspace-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.admin-workspace-row strong {
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.admin-workspace-row span {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.admin-danger-btn {
  color: var(--danger);
}

.admin-static-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-empty {
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-audit-section {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(16, 35, 31, 0.08);
}

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

.admin-audit-item .overview-activity-side {
  min-width: 168px;
}

.alert-list {
  display: grid;
  gap: 14px;
}

.alert-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.alert-card.is-unread {
  border-color: rgba(15, 123, 108, 0.24);
  box-shadow: 0 14px 30px rgba(15, 123, 108, 0.08);
}

.alert-card.is-read {
  opacity: 0.86;
}

.alert-card.tone-danger {
  background: linear-gradient(135deg, rgba(251, 234, 234, 0.78), rgba(255, 255, 255, 0.92));
}

.alert-card.tone-warn {
  background: linear-gradient(135deg, rgba(255, 242, 223, 0.72), rgba(255, 255, 255, 0.92));
}

.alert-card.tone-info,
.alert-card.tone-safe {
  background: linear-gradient(135deg, rgba(233, 244, 240, 0.66), rgba(255, 255, 255, 0.92));
}

.alert-main,
.alert-actions {
  display: grid;
  gap: 10px;
}

.alert-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.alert-heading h4 {
  margin: 4px 0 0;
}

.alert-status-pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.alert-arrow {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.alert-copy {
  margin: 0;
  color: var(--muted);
}

.alert-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.alert-actions {
  justify-items: stretch;
  min-width: 144px;
}

.alert-empty {
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.overview-panels {
  align-items: stretch;
}

.overview-focus-card {
  display: grid;
  gap: 14px;
  align-content: start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 243, 0.9));
}

.overview-focus-card .card-head {
  margin-bottom: 8px;
}

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

.overview-focus-item {
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 249, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.overview-focus-item span,
.overview-focus-item small {
  display: block;
}

.overview-focus-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.overview-focus-item strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 1.18rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.overview-focus-item.tone-danger {
  background: rgba(175, 59, 59, 0.08);
  border-color: rgba(175, 59, 59, 0.2);
}

.overview-focus-item.tone-warn {
  background: rgba(196, 122, 22, 0.1);
  border-color: rgba(196, 122, 22, 0.2);
}

.overview-focus-item.tone-safe {
  background: rgba(31, 141, 85, 0.08);
  border-color: rgba(31, 141, 85, 0.18);
}

.overview-focus-item.tone-accent {
  background: rgba(15, 123, 108, 0.08);
  border-color: rgba(15, 123, 108, 0.18);
}

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

.overview-activity-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  max-height: 520px;
}

.overview-activity-card .overview-activity-list {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-color: rgba(15, 123, 108, 0.38) rgba(15, 123, 108, 0.08);
  scrollbar-width: thin;
}

.overview-activity-card .overview-activity-list::-webkit-scrollbar {
  width: 8px;
}

.overview-activity-card .overview-activity-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(15, 123, 108, 0.08);
}

.overview-activity-card .overview-activity-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 123, 108, 0.38);
}

.overview-activity-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 249, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.overview-activity-main,
.overview-activity-side {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.overview-activity-main span,
.overview-activity-side small {
  color: var(--muted);
  font-size: 0.82rem;
}

.overview-activity-main strong {
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.overview-activity-main span {
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.overview-activity-side {
  justify-items: end;
}

.report-table .monitor-name-cell strong,
.report-table .monitor-name-cell span,
.monitor-table .monitor-name-cell strong,
.monitor-table .monitor-name-cell span {
  overflow-wrap: anywhere;
}

.report-table .monitor-name-cell span,
.monitor-table .monitor-name-cell span {
  line-height: 1.45;
}

.overview-empty {
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.inline-status {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--surface-ink);
  font-size: 0.9rem;
}

.inline-status.info {
  background: rgba(15, 123, 108, 0.08);
  border-color: rgba(15, 123, 108, 0.18);
  color: var(--accent-deep);
}

.inline-status.success {
  background: rgba(31, 141, 85, 0.1);
  border-color: rgba(31, 141, 85, 0.2);
  color: var(--safe);
}

.inline-status.error {
  background: rgba(175, 59, 59, 0.1);
  border-color: rgba(175, 59, 59, 0.2);
  color: var(--danger);
}

.access-notice {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(196, 122, 22, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 247, 222, 0.78);
}

.access-notice strong {
  display: block;
  margin-bottom: 4px;
}

.access-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.batch-table-shell {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(250, 252, 249, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

.data-table th,
.data-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(16, 35, 31, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 0.94rem;
}

.data-table th {
  position: sticky;
  top: 0;
  background: #f8fbf8;
  z-index: 1;
}

.batch-table {
  min-width: 1180px;
  table-layout: fixed;
}

.batch-table th {
  padding: 11px 10px;
  background: rgba(246, 249, 246, 0.98);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.batch-table td {
  padding: 10px;
}

.batch-table .col-name {
  width: 17%;
}

.batch-table .col-code {
  width: 9%;
}

.batch-table .col-client {
  width: 14%;
}

.batch-table .col-role {
  width: 14%;
}

.batch-table .col-status {
  width: 15%;
}

.batch-table .col-last-checked {
  width: 12%;
}

.batch-table .col-action {
  width: 14%;
}

.batch-row td {
  background: rgba(255, 255, 255, 0.68);
  transition: background 0.18s ease;
}

.batch-row:nth-child(even) td {
  background: rgba(249, 251, 249, 0.9);
}

.batch-row:hover td {
  background: rgba(233, 244, 240, 0.7);
}

.batch-row.tone-danger td {
  background: rgba(175, 59, 59, 0.035);
}

.batch-row.tone-warn td {
  background: rgba(196, 122, 22, 0.05);
}

.batch-row.tone-info td {
  background: rgba(15, 123, 108, 0.04);
}

.check-col {
  width: 44px;
}

.cell-input {
  min-width: 120px;
  padding: 8px 10px;
}

.editable-cell {
  min-width: 0;
}

.batch-input {
  min-width: 0;
  width: 100%;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(16, 35, 31, 0.1);
  font-size: 0.9rem;
}

.batch-input-name {
  font-weight: 600;
}

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

.status-meta {
  color: var(--muted);
  font-size: 0.82rem;
  display: block;
  max-width: 118px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.status-meta-inline {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.batch-table .status-stack {
  gap: 7px;
}

.batch-table .status-meta {
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
  font-size: 0.76rem;
}

.time-stack {
  display: grid;
  gap: 4px;
}

.time-stack strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.time-stack span {
  color: var(--muted);
  font-size: 0.78rem;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.tiny-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  padding: 7px 10px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.action-btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 10px;
  font-size: 0.82rem;
  text-align: center;
}

.action-danger {
  grid-column: 1 / -1;
  color: var(--danger);
}

.compact-actions .action-danger {
  grid-column: auto;
}

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

.details-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(920px, calc(100vw - 24px));
  width: 100%;
}

.details-dialog::backdrop {
  background: rgba(6, 19, 16, 0.38);
  backdrop-filter: blur(3px);
}

.details-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #f9fbf8;
  padding: 24px;
  box-shadow: var(--shadow);
}

.details-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

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

.details-content {
  display: grid;
  gap: 16px;
  max-height: 70vh;
  overflow: auto;
}

.details-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

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

.detail-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
}

.detail-card h4 {
  margin: 0 0 10px;
}

.detail-comment-card {
  display: grid;
  gap: 14px;
}

.detail-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.detail-comment-head h4 {
  margin-bottom: 0;
}

.detail-comment-hint {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.details-comment-input {
  min-height: 120px;
  line-height: 1.5;
}

.detail-hit {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.detail-hit:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.detail-hit strong,
.meta-item strong {
  display: block;
}

.detail-hit small,
.meta-item span {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .app-shell,
  .auth-shell,
  .settings-layout,
  .panel-grid.two-up,
  .stats-grid,
  .stats-grid.compact,
  .notes-grid,
  .meta-grid,
  .detail-grid,
  .overview-command-hero {
    grid-template-columns: 1fr;
  }

  .monitor-run-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 16px, 100%);
    margin: 8px auto 20px;
  }

  .site-header,
  .hero-strip,
  .details-head,
  .detail-comment-head,
  .alert-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .report-command-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .report-status-mix {
    justify-content: flex-start;
  }

  .hero-metrics,
  .form-grid,
  .hero-proof-grid,
  .monitor-run-strip {
    grid-template-columns: 1fr;
  }

  .alert-card {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .auth-panel,
  .sidebar,
  .panel-card,
  .hero-strip {
    padding: 20px;
  }

  .batch-toolbar {
    align-items: stretch;
  }

  .batch-toolbar-search,
  .batch-toolbar-actions {
    width: 100%;
  }

  .batch-toolbar-actions {
    justify-content: stretch;
  }

  .batch-toolbar-actions > button {
    flex: 1 1 calc(50% - 10px);
  }

  .overview-focus-grid {
    grid-template-columns: 1fr;
  }

  .admin-workspace-metrics,
  .admin-workspace-grid,
  .admin-health-grid {
    grid-template-columns: 1fr;
  }

  .overview-activity-item {
    flex-direction: column;
  }

  .overview-activity-side {
    justify-items: start;
  }

  .admin-user-card,
  .admin-user-side {
    align-items: stretch;
  }

  .admin-user-card {
    grid-template-columns: 1fr;
  }

  .admin-user-side,
  .admin-user-actions {
    justify-items: start;
    justify-content: flex-start;
  }
}
