/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.9_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.9_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --ink: #1a1c1a;
  --muted: #5f5b52;
  --panel: #fff7ec;
  --panel-strong: #fff2df;
  --line: #ead7be;
  --accent: #2b6f68;
  --accent-strong: #21544f;
  --accent-warm: #c67a2b;
  --accent-warm-strong: #9a5c1e;
  --danger: #b8452a;
  --font-sans: "Space Grotesk", "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(circle at top left, #f9efe1 0%, #f6f1ea 45%, #eef4f3 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 80px;
  background-image: radial-gradient(circle at 20% 20%, rgba(198, 122, 43, 0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(43, 111, 104, 0.18), transparent 40%);
}

.connector-panel {
  width: min(980px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px 36px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(40, 29, 16, 0.12);
  animation: rise 600ms ease both;
}

.connector-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(43, 111, 104, 0.12), transparent 55%);
  pointer-events: none;
}

.connector-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.connector-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  margin: 0;
  letter-spacing: -0.02em;
}

.connector-subtitle {
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 520px;
}

.connector-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.meta-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

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

.meta-value {
  font-weight: 600;
}

.status-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-pill.connected {
  background: rgba(37, 120, 84, 0.12);
  color: #1e5a43;
}

.status-pill.disconnected {
  background: rgba(198, 122, 43, 0.14);
  color: #7a3f0b;
}

.status-pill.error {
  background: rgba(184, 69, 42, 0.14);
  color: #7a2b17;
}

.connector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.queue-panel {
  padding-bottom: 28px;
}

.queue-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.queue-total {
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.8);
  padding: 12px 18px;
  border-radius: 16px;
  min-width: 120px;
  text-align: center;
}

.queue-total-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.queue-total-value {
  font-size: 26px;
  font-weight: 600;
  margin-top: 6px;
}

.queue-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 24px;
}

.queue-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.queue-row {
  display: grid;
  grid-template-columns: minmax(200px, 2.2fr) repeat(5, minmax(90px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.7);
  align-items: center;
}

.queue-row-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0 8px;
}

.queue-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.queue-title-main {
  font-weight: 600;
}

.queue-title-sub {
  font-size: 12px;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(43, 111, 104, 0.12);
  color: var(--accent-strong);
}

.chip-queued {
  background: rgba(43, 111, 104, 0.12);
  color: var(--accent-strong);
}

.chip-in_progress {
  background: rgba(198, 122, 43, 0.18);
  color: var(--accent-warm-strong);
}

.chip-blocked {
  background: rgba(184, 69, 42, 0.15);
  color: var(--danger);
}

.chip-review {
  background: rgba(42, 110, 184, 0.16);
  color: #1e4f85;
}

.chip-done {
  background: rgba(37, 120, 84, 0.12);
  color: #1e5a43;
}

.chip-archived {
  background: rgba(95, 91, 82, 0.12);
  color: #4a463d;
}

.chip-type {
  background: rgba(43, 111, 104, 0.12);
  color: var(--accent-strong);
}

.chip-low {
  background: rgba(95, 91, 82, 0.12);
  color: #4a463d;
}

.chip-medium {
  background: rgba(198, 122, 43, 0.18);
  color: var(--accent-warm-strong);
}

.chip-high {
  background: rgba(184, 69, 42, 0.15);
  color: var(--danger);
}

.chip-running {
  background: rgba(43, 111, 104, 0.16);
  color: var(--accent-strong);
}

.chip-succeeded {
  background: rgba(37, 120, 84, 0.12);
  color: #1e5a43;
}

.chip-failed {
  background: rgba(184, 69, 42, 0.15);
  color: var(--danger);
}

.chip-waiting_approval {
  background: rgba(42, 110, 184, 0.16);
  color: #1e4f85;
}

.chip-cancelled {
  background: rgba(95, 91, 82, 0.12);
  color: #4a463d;
}

.chip-pending {
  background: rgba(198, 122, 43, 0.18);
  color: var(--accent-warm-strong);
}

.chip-approved {
  background: rgba(37, 120, 84, 0.12);
  color: #1e5a43;
}

.chip-denied {
  background: rgba(184, 69, 42, 0.15);
  color: var(--danger);
}

.chip-expired {
  background: rgba(95, 91, 82, 0.12);
  color: #4a463d;
}

.chip-gmail {
  background: rgba(43, 111, 104, 0.16);
  color: var(--accent-strong);
}

.chip-protocol {
  background: rgba(42, 110, 184, 0.16);
  color: #1e4f85;
}

.chip-ui {
  background: rgba(198, 122, 43, 0.18);
  color: var(--accent-warm-strong);
}

.chip-system {
  background: rgba(95, 91, 82, 0.12);
  color: #4a463d;
}

.queue-empty {
  text-align: center;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.entity-panel {
  padding-bottom: 32px;
}

.entity-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.entity-total {
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.8);
  padding: 12px 18px;
  border-radius: 16px;
  min-width: 120px;
  text-align: center;
}

.entity-total-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.entity-total-value {
  font-size: 26px;
  font-weight: 600;
  margin-top: 6px;
}

.entity-search {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(160px, 1fr) auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: end;
}

.entity-search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.entity-search-field input,
.entity-search-field select {
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(234, 215, 190, 0.9);
  padding: 10px 12px;
  background: #fffdf8;
  color: var(--ink);
}

.entity-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entity-row {
  display: grid;
  grid-template-columns: minmax(200px, 2.2fr) minmax(130px, 1fr) minmax(90px, 0.8fr) minmax(140px, 1fr) minmax(200px, 1.4fr);
  grid-gap: 12px;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.7);
  align-items: center;
}

.entity-row-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0 8px;
}

.entity-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entity-label-main {
  font-weight: 600;
}

.entity-label-sub {
  font-size: 12px;
  color: var(--muted);
}

.entity-id {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.entity-detail {
  padding-bottom: 32px;
}

.entity-back {
  display: inline-flex;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
}

.entity-data {
  margin-top: 24px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.7);
  border-radius: 20px;
  padding: 18px;
}

.entity-score {
  margin-top: 24px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.7);
  border-radius: 20px;
  padding: 18px;
}

.entity-score-breakdown {
  margin-top: 16px;
}

.entity-score-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entity-score-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.4fr) minmax(120px, 1fr) auto;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(234, 215, 190, 0.6);
}

.entity-score-name {
  font-weight: 600;
}

.entity-score-meta {
  font-size: 12px;
  color: var(--muted);
}

.entity-score-value {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  text-align: right;
}

.entity-data-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

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

.entity-data-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(234, 215, 190, 0.6);
}

.entity-data-key {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.entity-data-value {
  font-size: 14px;
  word-break: break-word;
}

.entity-events {
  margin-top: 20px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.7);
  border-radius: 20px;
  padding: 18px;
}

.entity-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entity-events-row {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(234, 215, 190, 0.6);
}

.entity-events-type {
  font-weight: 600;
}

.entity-events-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.entity-events-id {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  word-break: break-all;
}

.runs-panel {
  padding-bottom: 30px;
}

.runs-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.runs-total {
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.8);
  padding: 12px 18px;
  border-radius: 16px;
  min-width: 120px;
  text-align: center;
}

.runs-total-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.runs-total-value {
  font-size: 26px;
  font-weight: 600;
  margin-top: 6px;
}

.runs-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.runs-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(130px, 1fr) minmax(120px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr);
  grid-gap: 12px;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.7);
  align-items: center;
}

.runs-row-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0 8px;
}

.runs-protocol {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.runs-protocol-main {
  font-weight: 600;
}

.runs-protocol-sub {
  font-size: 12px;
  color: var(--muted);
}

.runs-error {
  font-size: 12px;
  color: var(--muted);
}

.approvals-panel {
  padding-bottom: 30px;
}

.approvals-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.approvals-total {
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.8);
  padding: 12px 18px;
  border-radius: 16px;
  min-width: 120px;
  text-align: center;
}

.approvals-total-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.approvals-total-value {
  font-size: 26px;
  font-weight: 600;
  margin-top: 6px;
}

.approvals-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.approvals-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(140px, 1fr) minmax(120px, 0.8fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(180px, 1fr);
  grid-gap: 12px;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.7);
  align-items: center;
}

.approvals-row-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0 8px;
}

.approvals-capability {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.approvals-capability-main {
  font-weight: 600;
}

.approvals-capability-sub {
  font-size: 12px;
  color: var(--muted);
}

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

.approvals-actions form {
  margin: 0;
}

.approvals-actions .button {
  padding: 8px 14px;
  font-size: 13px;
}

.approvals-resolved {
  font-size: 12px;
  color: var(--muted);
}

.events-panel {
  padding-bottom: 30px;
}

.events-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.events-total {
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.8);
  padding: 12px 18px;
  border-radius: 16px;
  min-width: 120px;
  text-align: center;
}

.events-total-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.events-total-value {
  font-size: 26px;
  font-weight: 600;
  margin-top: 6px;
}

.events-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.events-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(120px, 0.8fr) minmax(140px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(140px, 0.8fr);
  grid-gap: 12px;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.7);
  align-items: center;
}

.events-row-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0 8px;
}

.events-type {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.events-type-main {
  font-weight: 600;
}

.events-type-sub {
  font-size: 12px;
  color: var(--muted);
}

.events-id {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.events-refs {
  font-size: 12px;
  color: var(--muted);
}

.artifacts-panel {
  padding-bottom: 30px;
}

.artifacts-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.artifacts-total {
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.8);
  padding: 12px 18px;
  border-radius: 16px;
  min-width: 120px;
  text-align: center;
}

.artifacts-total-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.artifacts-total-value {
  font-size: 26px;
  font-weight: 600;
  margin-top: 6px;
}

.artifacts-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.artifacts-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(120px, 1fr) minmax(90px, 0.8fr) minmax(140px, 1fr) minmax(120px, 1fr) minmax(140px, 1fr);
  grid-gap: 12px;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.7);
  align-items: center;
}

.artifacts-row-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0 8px;
}

.artifacts-kind {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.artifacts-kind-main {
  font-weight: 600;
}

.artifacts-kind-sub {
  font-size: 12px;
  color: var(--muted);
}

.artifacts-inline {
  font-size: 12px;
  color: var(--muted);
}

.views-panel {
  padding-bottom: 30px;
}

.views-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.views-total {
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.8);
  padding: 12px 18px;
  border-radius: 16px;
  min-width: 120px;
  text-align: center;
}

.views-total-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.views-total-value {
  font-size: 26px;
  font-weight: 600;
  margin-top: 6px;
}

.views-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.views-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(140px, 1fr) minmax(80px, 0.6fr) minmax(160px, 1fr) minmax(140px, 1fr) minmax(120px, 0.8fr);
  grid-gap: 12px;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.7);
  align-items: center;
}

.views-row-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0 8px;
}

.views-id,
.views-hash {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.view-detail {
  padding-bottom: 30px;
}

.view-definition {
  margin-top: 22px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.7);
  border-radius: 20px;
  padding: 18px;
}

.view-definition-json {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(234, 215, 190, 0.6);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.view-preview {
  margin-top: 22px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.7);
  border-radius: 20px;
  padding: 18px;
}

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

.view-component {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(234, 215, 190, 0.6);
}

.view-component-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
}

.view-component-text {
  font-size: 14px;
  color: var(--muted);
}

.view-component-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.view-component-type {
  font-size: 11px;
  font-weight: 600;
}

.view-component-value {
  margin-top: 6px;
  font-size: 14px;
}

.view-actions {
  margin-top: 18px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.7);
  border-radius: 20px;
  padding: 18px;
}

.view-actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.view-action {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(234, 215, 190, 0.6);
}

.view-action-label {
  font-weight: 600;
}

.view-action-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.view-action-runner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.view-action-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.view-action-field input,
.view-action-field select,
.view-action-field textarea {
  border: 1px solid rgba(234, 215, 190, 0.8);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  background: #fff;
}

.view-action-field textarea {
  min-height: 90px;
  resize: vertical;
}

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

.view-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.view-action-button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.view-action-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.view-action-status.error {
  color: #c0362c;
}

.view-action-result {
  white-space: pre-wrap;
  font-size: 12px;
  background: #1f1f1f;
  color: #f6f0e8;
  padding: 12px;
  border-radius: 12px;
  overflow: auto;
}

.view-artifact-section {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.view-artifact-section ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.thread-viewer {
  grid-column: 1 / -1;
}

.variant-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(234, 215, 190, 0.6);
  background: rgba(255, 255, 255, 0.8);
}

.variant-editor-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.variant-editor-title {
  font-weight: 600;
}

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

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

.variant-editor-status.error {
  color: #c0362c;
}

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

.variant-card {
  border-radius: 14px;
  border: 1px solid rgba(234, 215, 190, 0.7);
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variant-card.selected {
  border-color: rgba(120, 88, 48, 0.9);
  box-shadow: 0 10px 20px rgba(120, 88, 48, 0.12);
}

.variant-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.variant-card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.variant-card-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(120, 88, 48, 0.12);
  color: #6d4b22;
}

.variant-card-subject {
  font-weight: 600;
}

.variant-card-body {
  white-space: pre-wrap;
  font-size: 13px;
  background: rgba(245, 238, 225, 0.8);
  border-radius: 10px;
  padding: 8px;
}

.variant-card-button {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.thread-viewer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.thread-viewer-item {
  border-radius: 12px;
  border: 1px solid rgba(234, 215, 190, 0.6);
  background: #fff;
  padding: 12px;
}

.thread-viewer-meta {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.thread-viewer-body {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(245, 238, 225, 0.8);
  font-size: 13px;
  white-space: pre-wrap;
}

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

.button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(43, 111, 104, 0.25);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(43, 111, 104, 0.32);
}

.button.secondary {
  background: #fff8ed;
  color: var(--accent-strong);
  border: 1px solid rgba(43, 111, 104, 0.35);
}

.button.warn {
  background: rgba(184, 69, 42, 0.12);
  color: var(--danger);
  border: 1px solid rgba(184, 69, 42, 0.3);
}

.ops-panel {
  width: min(1100px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 36px 40px 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(40, 29, 16, 0.12);
  animation: rise 600ms ease both;
}

.ops-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(43, 111, 104, 0.16), transparent 45%);
  pointer-events: none;
}

.ops-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.ops-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-warm);
  margin: 0 0 8px;
}

.ops-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  margin: 0;
}

.ops-subtitle {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 520px;
}

.ops-filter {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  justify-items: end;
}

.ops-filter-label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.ops-filter-input {
  width: min(320px, 70vw);
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(234, 215, 190, 0.8);
  background: #fffdf8;
  font-family: var(--font-sans);
}

.ops-alert {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(184, 69, 42, 0.12);
  border: 1px solid rgba(184, 69, 42, 0.3);
  color: var(--danger);
  position: relative;
  z-index: 1;
}

.ops-alerts {
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.ops-alert-list {
  margin-top: 14px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.ops-alert-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.8);
}

.ops-alert-item.severity-info {
  background: rgba(43, 111, 104, 0.08);
  border-color: rgba(43, 111, 104, 0.2);
}

.ops-alert-item.severity-warning {
  background: rgba(193, 122, 16, 0.12);
  border-color: rgba(193, 122, 16, 0.3);
}

.ops-alert-item.severity-critical {
  background: rgba(184, 69, 42, 0.12);
  border-color: rgba(184, 69, 42, 0.3);
}

.ops-alert-count {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-strong);
}

.ops-quicklinks {
  margin-top: 24px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(234, 215, 190, 0.7);
}

.ops-section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.ops-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.ops-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.ops-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(40, 29, 16, 0.12);
}

.ops-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.ops-value {
  font-size: 28px;
  font-weight: 600;
  margin-top: 6px;
}

.ops-footnote {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.ops-split {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.ops-section {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(234, 215, 190, 0.7);
}

.ops-section-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}

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

.ops-list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fffdf8;
  border: 1px solid rgba(234, 215, 190, 0.8);
}

.ops-item-title {
  font-weight: 600;
}

.ops-item-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.ops-item-status {
  text-align: right;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  align-content: start;
}

.ops-item-error {
  font-size: 12px;
  color: var(--muted);
  max-width: 240px;
}

.ops-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 12px 0;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.button.is-disabled {
  pointer-events: none;
  opacity: 0.6;
  box-shadow: none;
}

.helper-text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.callout {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(184, 69, 42, 0.08);
  border: 1px solid rgba(184, 69, 42, 0.2);
  color: #7a2b17;
}

.callout.success {
  background: rgba(43, 111, 104, 0.12);
  border-color: rgba(43, 111, 104, 0.3);
  color: #1e5a43;
}

.settings-panel {
  padding-bottom: 40px;
}

.settings-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.settings-section {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(234, 215, 190, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.settings-section-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}

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

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

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

.settings-field input,
.settings-field select {
  border: 1px solid rgba(234, 215, 190, 0.8);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  background: #fff;
}

.settings-help {
  font-size: 12px;
  color: var(--muted);
}

.settings-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(234, 215, 190, 0.8);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}

.settings-checkbox input {
  accent-color: var(--accent);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.settings-note {
  font-size: 12px;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .connector-panel {
    padding: 24px;
  }

  .connector-meta {
    grid-template-columns: 1fr;
  }

  .connector-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .queue-row-header {
    display: none;
  }

  .queue-total {
    width: 100%;
  }

  .entity-search {
    grid-template-columns: 1fr;
  }

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

  .entity-row-header {
    display: none;
  }

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

  .runs-row-header {
    display: none;
  }

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

  .approvals-row-header {
    display: none;
  }

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

  .events-row-header {
    display: none;
  }

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

  .artifacts-row-header {
    display: none;
  }

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

  .views-row-header {
    display: none;
  }

  .settings-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

