:root {
  color-scheme: dark;
  --canvas: #080d0c;
  --sidebar: #0b1210;
  --surface: #101815;
  --surface-raised: #131e1a;
  --surface-soft: #16231e;
  --surface-hover: #1a2a24;
  --ink: #eef8f3;
  --muted: #8da29a;
  --subtle: #63776f;
  --line: #22332d;
  --line-strong: #31493f;
  --green: #73e6b3;
  --green-strong: #91f3c7;
  --green-dark: #08261a;
  --green-soft: #15372a;
  --amber: #e8bd72;
  --amber-soft: #352c19;
  --blue: #8ab8f5;
  --blue-soft: #1a2a3e;
  --red: #f09595;
  --red-soft: #3a2022;
  --shadow: 0 14px 36px rgba(0, 0, 0, .18);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, tr:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .5; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.icon { flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 10px; line-height: 1.2; font-weight: 750; letter-spacing: .14em; }
.button { min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.button svg { width: 16px; height: 16px; }
.button:active { transform: translateY(1px); }
.button--primary { color: #062016; background: var(--green); border-color: var(--green); box-shadow: 0 5px 20px rgba(80, 221, 162, .1); }
.button--primary:hover { color: #031810; background: var(--green-strong); border-color: var(--green-strong); }
.button--secondary { color: #c6d7d0; background: var(--surface-raised); border-color: var(--line-strong); }
.button--secondary:hover { color: var(--ink); background: var(--surface-hover); border-color: #446354; }
.button--danger { color: var(--red); background: var(--surface-raised); border-color: #563034; }
.button--danger:hover { background: var(--red-soft); border-color: #764047; }
.button--full { width: 100%; min-height: 47px; }
.icon-button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; color: var(--muted); background: var(--surface-soft); }
.icon-button svg { width: 17px; height: 17px; }
.icon-button:hover { color: var(--ink); background: var(--surface-hover); border-color: var(--line-strong); }

/* Application shell and navigation */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 10; height: 100vh; min-height: 620px; display: flex; flex-direction: column; padding: 24px 15px 17px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--sidebar); }
.sidebar-top { padding: 0 8px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 14px; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; display: block; flex: 0 0 auto; border-radius: 11px; object-fit: contain; box-shadow: 0 5px 16px rgba(49, 184, 124, .12); }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy small { color: var(--subtle); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.workspace-chip { min-width: 0; display: flex; align-items: center; gap: 9px; margin: 24px -1px 21px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 10px; background: #0f1915; }
.workspace-chip img { width: 22px; height: 22px; flex: 0 0 auto; }
.workspace-chip > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.workspace-chip span:not(.workspace-live) { color: var(--muted); font-size: 9px; }
.workspace-chip strong { overflow: hidden; color: #d1e3da; font-size: 10px; font-weight: 600; text-overflow: ellipsis; }
.workspace-live { width: 6px; height: 6px; flex: 0 0 auto; margin-left: auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(115, 230, 179, .08); }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { margin: 0 12px 9px; color: #536b60; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.main-nav a, .mobile-nav-settings, .system-nav > button { min-height: 43px; padding: 10px 12px; border: 1px solid transparent; border-radius: 9px; display: flex; align-items: center; gap: 11px; color: #8fa59b; background: transparent; font-size: 12px; font-weight: 600; text-align: left; transition: color .15s, background .15s, border-color .15s; }
.main-nav a > svg:first-child, .mobile-nav-settings > svg, .system-nav > button > svg { width: 18px; height: 18px; }
.main-nav a:hover, .mobile-nav-settings:hover, .system-nav > button:hover { color: #d7e9df; background: #111d18; }
.main-nav a[aria-current="page"] { color: var(--green); border-color: #254737; background: linear-gradient(90deg, #173528, #14281f); box-shadow: inset 3px 0 0 var(--green); }
.nav-arrow { width: 13px !important; height: 13px !important; margin-left: auto; color: #50675b; }
.main-nav a[aria-current="page"] .nav-arrow { color: var(--green); }
.mobile-nav-settings { display: none; width: 100%; }
.system-nav { margin-top: auto; padding-top: 24px; }
.system-nav > button { width: 100%; border: 0; }
.secure-https { display: flex; align-items: center; gap: 10px; margin: 14px 9px 0; padding: 14px 3px 0; border-top: 1px solid var(--line); }
.secure-https img { width: 18px; height: 18px; opacity: .85; }
.secure-https > div { display: flex; flex-direction: column; gap: 3px; }
.secure-https strong { color: #aec2b8; font-size: 10px; font-weight: 650; }
.secure-https span { color: var(--subtle); font-size: 9px; }
.sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 20px; padding: 14px 6px 0; border-top: 1px solid var(--line); }
.connection { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 600; }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.connection.is-live .connection-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.connection.is-offline .connection-dot { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
#logout-button { min-height: 31px; padding: 6px 7px; border: 0; border-radius: 7px; display: inline-flex; align-items: center; gap: 6px; color: var(--subtle); background: transparent; font-size: 10px; }
#logout-button svg { width: 15px; height: 15px; }
#logout-button:hover { color: var(--red); background: var(--red-soft); }
.app-stage { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 8; border-bottom: 1px solid var(--line); background: rgba(8, 13, 12, .88); backdrop-filter: blur(16px); }
.topbar-inner { min-height: 68px; max-width: 1480px; margin: auto; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-page { display: flex; flex-direction: column; gap: 4px; }
.topbar-page > span { color: var(--subtle); font-size: 8px; font-weight: 750; letter-spacing: .13em; }
.topbar-page > strong { color: #d8e7df; font-size: 13px; font-weight: 650; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.environment-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid #274638; border-radius: 999px; color: #a6d9c1; background: #11261d; font-size: 9px; font-weight: 650; }
.environment-badge > span { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.topbar-domain { color: var(--subtle); font-size: 10px; }
.panel-main { width: 100%; max-width: 1480px; margin: auto; padding: 35px 34px 30px; }

/* Page headings and shared surfaces */
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--ink); font-size: clamp(27px, 3vw, 34px); line-height: 1.1; letter-spacing: -.04em; }
.heading-emoji { width: 28px; height: 28px; }
.page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.page-heading .button.is-loading svg { animation: spin .8s linear infinite; }
h2 { margin: 0; color: var(--ink); font-size: 16px; letter-spacing: -.02em; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading p, .history-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.section-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface-soft); }
.section-icon svg { width: 15px; height: 15px; }

/* Dashboard */
.webhook-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 18px; padding: 20px 22px; border: 1px solid #2b4b3c; border-radius: 13px; background: radial-gradient(circle at 0 0, rgba(70, 153, 111, .13), transparent 44%), linear-gradient(120deg, #12221b, #101815 70%); box-shadow: var(--shadow); }
.webhook-main { display: flex; align-items: center; gap: 15px; min-width: 0; }
.webhook-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #2b5743; border-radius: 12px; color: var(--green); background: #183629; }
.webhook-copy { min-width: 0; }
.webhook-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.inline-label { margin: 0 8px 0 0; color: var(--muted); font-size: 10px; }
.compact-select { max-width: 250px; height: 30px; margin: 7px 0; padding: 3px 28px 3px 8px; border: 1px solid var(--line-strong); border-radius: 7px; color: #c4d6cd; background: #101c17; font-size: 10px; }
.webhook-copy code { display: block; max-width: 680px; color: #a5cbbb; font-size: 11px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.config-badge { padding: 3px 7px; border-radius: 999px; color: var(--amber); background: var(--amber-soft); font-size: 9px; font-weight: 750; }
.config-badge.is-ready { color: var(--green); background: var(--green-soft); }
.webhook-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.stat-card { position: relative; min-width: 0; overflow: hidden; padding: 18px 19px 17px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, var(--surface-raised), var(--surface)); box-shadow: var(--shadow); }
.stat-card::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--accent, var(--green)); opacity: .75; }
.stat-card--received { --accent: #8ba49a; }
.stat-card--queued { --accent: var(--amber); }
.stat-card--processing { --accent: var(--blue); }
.stat-card--completed { --accent: var(--green); }
.stat-card--failed { --accent: var(--red); }
.stat-label { display: flex; align-items: center; gap: 8px; color: #a7b9b0; font-size: 11px; font-weight: 650; }
.stat-icon { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 6px; color: var(--accent); background: #17211d; }
.stat-icon svg { width: 13px; height: 13px; }
.stat-card strong { display: block; margin: 12px 0 5px; color: var(--ink); font-size: 29px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-caption { display: block; overflow: hidden; color: var(--subtle); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-card, .history-card { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.pipeline-card { margin-bottom: 18px; padding: 21px 23px 23px; }
.durable-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #294537; border-radius: 7px; color: #a1c8b4; background: #13271e; font-size: 10px; font-weight: 650; white-space: nowrap; }
.durable-badge svg { width: 13px; height: 13px; }
.pipeline-legend { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; padding: 0; margin: 23px 0 0; }
.pipeline-legend li { position: relative; isolation: isolate; display: flex; align-items: center; gap: 8px; color: #9eb1a7; font-size: 10px; font-weight: 600; white-space: nowrap; }
.pipeline-legend li:not(:last-child)::after { content: ""; position: absolute; z-index: -1; top: 11px; left: 29px; right: 7px; height: 1px; background: #2a4035; }
.pipeline-legend li span { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #355b47; border-radius: 50%; color: var(--green); background: #14271e; font-size: 9px; }
.history-card { overflow: hidden; }
.history-heading { padding: 20px 23px 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.toolbar { padding: 0 23px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.search-wrap { position: relative; flex: 1; max-width: 480px; }
.search-wrap > svg { position: absolute; top: 12px; left: 12px; width: 16px; height: 16px; color: var(--subtle); pointer-events: none; }
.search-wrap input { width: 100%; height: 40px; padding: 8px 12px 8px 37px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #0d1512; font-size: 12px; }
.search-wrap input:focus { border-color: #3a6650; }
.filter-wrap { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 600; }
.filter-wrap select { height: 40px; min-width: 135px; padding: 0 32px 0 11px; border: 1px solid var(--line); border-radius: 8px; color: #c1d3ca; background: #0d1512; font-size: 12px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 14px; border-bottom: 1px solid var(--line); color: #728b7e; background: #0d1512; font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 23px; }
th:last-child, td:last-child { padding-right: 23px; }
td { padding: 15px 14px; border-bottom: 1px solid #1b2923; font-size: 11px; vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: #14221c; }
.subscriber-cell { max-width: 235px; }
.subscriber-email { display: block; overflow: hidden; color: #dcebe3; font-size: 12px; font-weight: 650; text-overflow: ellipsis; }
.request-id { display: block; margin-top: 4px; color: #657e72; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; }
.webhook-cell { max-width: 130px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; color: #a4b5ad; background: #202c27; font-size: 9px; font-weight: 750; text-transform: capitalize; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge--queued { color: var(--amber); background: var(--amber-soft); }
.status-badge--processing { color: var(--blue); background: var(--blue-soft); }
.status-badge--completed { color: var(--green); background: var(--green-soft); }
.status-badge--failed { color: var(--red); background: var(--red-soft); }
.stage-cell { min-width: 145px; }
.stage-name { display: block; margin-bottom: 6px; color: #a3b8ac; font-size: 10px; font-weight: 650; }
.mini-progress { display: flex; width: 105px; gap: 3px; }
.mini-progress span { height: 3px; flex: 1; border-radius: 2px; background: #26372f; }
.mini-progress span.is-done { background: #58ba90; }
.mini-progress.is-failed span.is-current { background: var(--red); }
.contact-id { color: #9eb5a9; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.date-cell { color: #829b8e; font-size: 10px; white-space: nowrap; }
.row-action { padding: 6px; border: 0; border-radius: 6px; color: var(--green); background: transparent; font-size: 10px; font-weight: 700; }
.row-action:hover { background: var(--green-soft); }
.table-state { min-height: 210px; padding: 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.table-state p { margin: 8px 0 0; font-size: 12px; }
.table-state strong { color: var(--ink); font-size: 14px; }
.table-state--error { color: var(--red); }
.table-state--error .button { margin-top: 16px; }
.empty-emoji { width: 43px; height: 43px; margin-bottom: 13px; }
.spinner { width: 24px; height: 24px; display: block; border: 2px solid #2b4236; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.footer-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 20px 0 0; color: #667f72; font-size: 10px; text-align: center; }
.footer-note svg { width: 13px; height: 13px; flex: 0 0 auto; }

/* Connection onboarding and resource cards */
.connection-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(230px, 1fr) auto; align-items: center; gap: 20px; margin-bottom: 24px; padding: 25px 26px; border: 1px solid #2b4c3c; border-radius: 14px; background: radial-gradient(circle at 90% 20%, rgba(93, 202, 150, .09), transparent 40%), linear-gradient(120deg, #152a20, #101b17 60%, #101714); box-shadow: var(--shadow); }
.connection-hero::after { content: ""; position: absolute; z-index: -1; width: 170px; height: 170px; right: -55px; bottom: -100px; border: 1px solid #31523f; border-radius: 50%; box-shadow: 0 0 0 28px rgba(66, 125, 93, .04), 0 0 0 56px rgba(66, 125, 93, .025); }
.connection-hero-icon { width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid #345743; border-radius: 16px; background: rgba(24, 54, 40, .8); }
.connection-hero-icon img { width: 34px; height: 34px; }
.connection-hero-copy .eyebrow { margin-bottom: 7px; }
.connection-hero-copy h2 { font-size: 18px; line-height: 1.3; }
.connection-hero-copy > p:not(.eyebrow) { margin: 7px 0 0; color: #92ab9e; font-size: 11px; line-height: 1.55; }
.connection-steps { display: flex; list-style: none; padding: 0; margin: 0; }
.connection-steps li { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 18px; }
.connection-steps li:first-child { padding-left: 0; }
.connection-steps li:last-child { padding-right: 0; }
.connection-steps li:not(:last-child)::after { content: ""; position: absolute; top: 12px; right: -4px; width: 8px; height: 1px; background: #426250; }
.connection-steps li > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #3c654f; border-radius: 50%; color: var(--green); background: #173425; font-size: 10px; font-weight: 700; }
.connection-steps li > div { display: flex; flex-direction: column; gap: 3px; }
.connection-steps strong { color: #d4e7dc; font-size: 10px; font-weight: 700; }
.connection-steps small { color: #748f80; font-size: 9px; white-space: nowrap; }
.resource-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 27px 1px 13px; }
.resource-section-heading h2 { font-size: 14px; }
.resource-section-heading > span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 9px; font-weight: 650; }
.resource-list { display: grid; gap: 14px; }
.resource-card { padding: 21px 23px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, var(--surface-raised), var(--surface)); box-shadow: var(--shadow); transition: border-color .15s; }
.resource-card:hover { border-color: #324a3e; }
.resource-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.resource-identity { min-width: 0; }
.resource-identity--with-icon { display: flex; align-items: flex-start; gap: 13px; }
.resource-avatar { width: 41px; height: 41px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #31533f; border-radius: 11px; color: var(--green); background: #193528; }
.resource-avatar--webhook { color: #9cc4f2; border-color: #32495f; background: #1a2b3a; }
.resource-avatar svg { width: 19px; height: 19px; }
.resource-detail { min-width: 0; }
.resource-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-height: 21px; }
.resource-title h2 { font-size: 15px; }
.resource-identity > p, .resource-detail > p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.resource-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; color: var(--muted); background: #24302b; font-size: 9px; font-weight: 750; text-transform: capitalize; }
.resource-status svg { width: 11px; height: 11px; }
.resource-status--connected { color: var(--green); background: var(--green-soft); }
.resource-status--error { color: var(--red); background: var(--red-soft); }
.resource-status--untested { color: var(--amber); background: var(--amber-soft); }
.resource-status--disabled { color: #8b9e95; background: #25322c; }
.resource-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.resource-actions .button { min-height: 34px; padding: 7px 10px; font-size: 10px; }
.resource-actions .button svg { width: 14px; height: 14px; }
.resource-endpoint { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 10px 12px; border: 1px solid #2b4638; border-radius: 9px; background: #0d1b14; }
.resource-endpoint code { flex: 1; min-width: 0; color: #a2cbb7; font-size: 10px; overflow-wrap: anywhere; }
.resource-endpoint .button { min-height: 31px; padding: 5px 10px; font-size: 10px; }
.resource-meta { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #213128; }
.resource-meta > div { min-width: 90px; }
.resource-meta span { display: flex; align-items: center; gap: 5px; color: #748c7f; font-size: 9px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.resource-meta span svg { width: 11px; height: 11px; }
.resource-meta strong { display: block; margin-top: 6px; color: #b4c9bd; font-size: 10px; font-weight: 650; }
.resource-error { margin: 15px 0 0; padding: 9px 11px; border: 1px solid #4c2b30; border-radius: 7px; color: var(--red); background: var(--red-soft); font-size: 11px; }
.empty-resource { padding: 60px 24px; border: 1px dashed #30483b; border-radius: 13px; color: var(--muted); background: rgba(16, 24, 21, .65); text-align: center; }
.empty-resource img { width: 43px; height: 43px; margin-bottom: 10px; }
.empty-resource p { color: var(--muted); font-size: 12px; }

/* Forms and guided setup */
.editor-card { margin-bottom: 22px; overflow: hidden; scroll-margin-top: 86px; border: 1px solid #314e3f; border-radius: 14px; background: var(--surface); box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
.editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 24px; border-bottom: 1px solid var(--line); background: #111d18; }
.editor-heading .eyebrow { margin-bottom: 6px; }
.editor-body { padding: 23px 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 21px; }
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label:not(.check-label):not(.toggle-label), .label-row > label, .settings-section > label { display: block; margin-bottom: 7px; color: #c8dacf; font-size: 11px; font-weight: 700; }
.field input:not([type="checkbox"]), .field select, .settings-section > input { width: 100%; height: 42px; padding: 9px 11px; border: 1px solid #2c4237; border-radius: 8px; color: var(--ink); background: #0c1511; font-size: 12px; transition: border-color .15s, box-shadow .15s; }
.field input:not([type="checkbox"]):focus, .field select:focus, .settings-section > input:focus, #pin:focus { border-color: #4a8768; box-shadow: 0 0 0 3px rgba(115, 230, 179, .07); outline: 0; }
.field input::placeholder, .settings-section input::placeholder, .search-wrap input::placeholder, #pin::placeholder { color: #586f63; opacity: 1; }
.field select:disabled { color: #6b8276; background: #111b17; cursor: not-allowed; opacity: 1; }
select option { color: var(--ink); background: #111b17; }
.field small, .toggle-label small { display: block; margin-top: 6px; color: #7c9588; font-size: 10px; line-height: 1.5; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.saved-status { margin-bottom: 7px; color: var(--green); font-size: 9px; font-weight: 650; }
.check-label { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--muted); font-size: 10px; cursor: pointer; }
.check-label input, .toggle-label input { accent-color: var(--green); }
.toggle-label { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #111d18; cursor: pointer; }
.toggle-label input { width: 16px; height: 16px; margin: 1px 0 0; }
.toggle-label strong { color: #c9dbd1; font-size: 12px; }
.toggle-label small { margin-top: 3px; }
.inline-status { display: flex; align-items: center; gap: 7px; margin: 16px 0 0; color: #85a292; font-size: 10px; line-height: 1.5; }
.inline-status svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--green); }
.editor-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 16px 24px; border-top: 1px solid var(--line); background: #0e1713; }
.editor-security { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; color: #789786; font-size: 10px; }
.editor-security svg { width: 14px; height: 14px; color: var(--green); }
.setup-section { padding-bottom: 23px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.setup-section--last { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.setup-section-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; }
.step-number { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #376149; border-radius: 8px; color: var(--green); background: #183526; font-size: 11px; font-weight: 750; }
.setup-section-heading > div { flex: 1; }
.setup-section-heading h3 { margin: 1px 0 5px; color: #d8e8df; font-size: 13px; }
.setup-section-heading p { margin: 0; color: #7f998b; font-size: 10px; line-height: 1.5; }
.setup-section-heading > svg { width: 18px; height: 18px; margin: 4px 2px 0 10px; color: #618575; }
.token-input-wrap, .input-with-icon { position: relative; }
.token-input-wrap input { padding-right: 43px !important; }
.token-input-wrap > button { position: absolute; top: 4px; right: 4px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px; display: grid; place-items: center; color: #7f9a8a; background: transparent; }
.token-input-wrap > button:hover { color: var(--green); background: #172b20; }
.token-input-wrap > button svg { width: 16px; height: 16px; }
.input-with-icon > svg { position: absolute; z-index: 1; top: 13px; left: 12px; width: 16px; height: 16px; color: #708a7b; pointer-events: none; }
.input-with-icon > input { padding-left: 37px !important; }
.endpoint-preview { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 14px; border: 1px solid #2b4638; border-radius: 9px; background: #0d1b14; }
.endpoint-preview > span { color: var(--muted); font-size: 10px; font-weight: 650; }
.endpoint-preview code { color: #a2cbb7; font-size: 10px; overflow-wrap: anywhere; }
.form-error { margin: 0 0 17px; padding: 10px 12px; border: 1px solid #573036; border-radius: 7px; color: var(--red); background: var(--red-soft); font-size: 12px; line-height: 1.5; }

/* Login */
.login-shell { position: relative; min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 30px 24px; overflow: hidden; background: radial-gradient(circle at 25% 10%, rgba(45, 119, 80, .14), transparent 34%), radial-gradient(circle at 85% 80%, rgba(35, 85, 63, .12), transparent 35%), #080d0c; }
.login-shell::before { content: ""; position: fixed; inset: 0; opacity: .12; pointer-events: none; background-image: linear-gradient(#345441 1px, transparent 1px), linear-gradient(90deg, #345441 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.login-card { position: relative; width: min(100%, 420px); padding: 27px 35px 28px; border: 1px solid #293d33; border-radius: 19px; background: rgba(16, 25, 21, .97); box-shadow: 0 28px 90px rgba(0, 0, 0, .42); text-align: center; }
.brand--login { justify-content: center; margin-bottom: 25px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.login-art { position: relative; width: 73px; height: 73px; display: grid; place-items: center; margin: 0 auto 20px; border: 1px solid #315440; border-radius: 22px; background: linear-gradient(145deg, #193d2b, #11241b); }
.login-art img { position: relative; z-index: 1; width: 40px; height: 40px; }
.login-orbit { position: absolute; inset: -8px; border: 1px solid rgba(115, 230, 179, .09); border-radius: 27px; transform: rotate(10deg); }
.login-card h1 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.04em; }
.login-copy { max-width: 300px; margin: 0 auto 24px; color: var(--muted); font-size: 12px; line-height: 1.65; }
#login-form { text-align: left; }
#login-form label { display: block; margin-bottom: 7px; color: #c4d8cc; font-size: 11px; font-weight: 650; }
#pin { width: 100%; height: 45px; padding: 10px 13px 10px 38px; border: 1px solid #2e4639; border-radius: 8px; color: var(--ink); background: #0b1410; letter-spacing: .08em; }
#login-button { justify-content: space-between; margin-top: 16px; padding-inline: 18px; }
.login-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 21px 0 0; color: #6f8b7b; font-size: 9px; }
.login-footnote svg { width: 12px; height: 12px; }
.login-credits { position: relative; margin: 0; color: #4e6759; font-size: 9px; }

/* Dialogs and activity details */
dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; overflow-y: auto; border: 1px solid #344b3e; border-radius: 15px; color: var(--ink); background: var(--surface); box-shadow: 0 25px 100px rgba(0, 0, 0, .55); }
dialog::backdrop { background: rgba(1, 7, 4, .74); backdrop-filter: blur(5px); }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 25px; border-bottom: 1px solid var(--line); background: #111d18; }
.dialog-header .eyebrow { margin-bottom: 5px; }
#details-content { padding: 24px 25px 28px; }
#details-content h3 { margin: 24px 0 13px; font-size: 13px; }
.detail-identity { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.detail-identity strong { display: block; font-size: 17px; overflow-wrap: anywhere; }
.detail-identity code { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px 12px; margin: 22px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #0e1813; }
.detail-grid dt { color: var(--muted); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.detail-grid dd { margin: 6px 0 0; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.detail-error { margin-top: 15px; padding: 12px 14px; border-left: 3px solid var(--red); border-radius: 4px; color: var(--red); background: var(--red-soft); font-size: 12px; }
.detail-error p { margin: 5px 0 0; line-height: 1.5; }
.detail-pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; list-style: none; padding: 0; margin: 0; }
.detail-pipeline li { padding-top: 10px; border-top: 3px solid #2b3b33; color: #657e70; font-size: 9px; font-weight: 650; }
.detail-pipeline li.is-done { border-color: #58ba90; color: var(--green); }
.detail-pipeline li.is-current { color: var(--ink); }
.detail-pipeline li.is-failed { border-color: var(--red); color: var(--red); }
.event-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 24px; }
.event-heading h3 { margin: 0; }
.event-heading .button { min-height: 34px; padding: 6px 11px; font-size: 11px; }
.event-list { list-style: none; padding: 0; margin: 12px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.event-list li { position: relative; padding: 12px 14px 12px 31px; border-bottom: 1px solid #203028; }
.event-list li:last-child { border: 0; }
.event-list li::before { content: ""; position: absolute; top: 17px; left: 14px; width: 6px; height: 6px; border-radius: 50%; background: #58ba90; }
.event-list li.event--failed::before { background: var(--red); }
.event-top { display: flex; justify-content: space-between; gap: 10px; }
.event-stage { color: #c2d7ca; font-size: 10px; font-weight: 750; letter-spacing: .03em; }
.event-time { color: #708a7b; font-size: 9px; white-space: nowrap; }
.event-list p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
#settings-dialog { width: min(700px, calc(100% - 32px)); }
#settings-form { margin: 0; }
.settings-body { padding: 22px 25px 0; }
.settings-section { padding: 0 0 21px; margin-bottom: 21px; border-bottom: 1px solid var(--line); }
.settings-section h3 { margin: 0 0 6px; font-size: 14px; }
.settings-section > p { margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.settings-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 -25px; padding: 16px 25px; border-top: 1px solid var(--line); background: #0e1713; }
.settings-footer > span { max-width: 300px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.settings-footer > div { display: flex; gap: 9px; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: min(400px, calc(100% - 48px)); padding: 13px 17px; border: 1px solid #3c6b52; border-radius: 10px; color: #dcf4e7; background: #153a28; box-shadow: 0 10px 35px rgba(0, 0, 0, .4); font-size: 12px; animation: toast-in .2s ease-out; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px #0c1511 inset; transition: background-color 5000s ease-in-out 0s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Per-webhook monitoring and indexed history pagination */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--muted); font-size: 11px; font-weight: 650; }
.back-link:hover { color: var(--green); }
.back-link svg { transform: rotate(180deg); }
.monitor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.monitor-grid .stat-card strong { font-size: 25px; }
.period-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.period-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.period-card .eyebrow { margin-bottom: 10px; }
.period-card > strong { margin-right: 7px; color: var(--ink); font-size: 24px; letter-spacing: -.03em; }
.period-card > span { color: var(--muted); font-size: 11px; }
.period-card > p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.monitor-insights { display: grid; grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr); gap: 16px; margin-bottom: 16px; padding: 15px 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.monitor-insights > div { min-width: 0; }
.monitor-insights span { display: block; margin-bottom: 6px; color: var(--subtle); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.monitor-insights strong { display: block; color: #b6cdc0; font-size: 10px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.monitor-columns { display: grid; grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.activity-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.activity-list { max-height: 610px; padding: 0; margin: 0; overflow-y: auto; list-style: none; border-top: 1px solid var(--line); }
.activity-list li { padding: 14px 17px; border-bottom: 1px solid #1d2c25; cursor: pointer; }
.activity-list li:hover { background: var(--surface-soft); }
.activity-list li.activity--failed { box-shadow: inset 2px 0 0 var(--red); }
.activity-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.activity-top > strong { color: #cfe1d6; font-size: 10px; }
.activity-list li > p { margin: 7px 0; color: var(--muted); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.activity-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--subtle); font-size: 8px; }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); background: #0e1713; }
.pagination-bar > span { color: var(--subtle); font-size: 9px; }
.pagination-bar > div { display: flex; gap: 7px; }
.pagination-bar .button { min-height: 30px; padding: 5px 9px; font-size: 9px; }
.payload-details { margin-top: 22px; border: 1px solid var(--line); border-radius: 9px; background: #0d1612; }
.payload-details summary { padding: 11px 13px; color: var(--muted); font-size: 11px; cursor: pointer; }
.payload-details pre { max-height: 260px; margin: 0; padding: 13px; overflow: auto; border-top: 1px solid var(--line); color: #a9cbb9; font-size: 10px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .monitor-columns { grid-template-columns: 1fr; }
  .activity-list { max-height: 360px; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipeline-legend { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .pipeline-legend li:nth-child(3)::after { display: none; }
  .connection-hero { grid-template-columns: auto minmax(0, 1fr); }
  .connection-steps { grid-column: 1 / -1; justify-content: center; padding-top: 18px; border-top: 1px solid #294235; }
  .connection-steps li { padding-inline: 28px; }
  .resource-meta { gap: 18px; }
  .webhook-card { align-items: flex-start; flex-direction: column; }
  .webhook-actions { align-self: flex-end; }
}
@media (max-width: 850px) {
  .app-shell { display: block; }
  .sidebar { position: relative; height: auto; min-height: 0; padding: 13px 16px 0; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-top { padding: 0; }
  .workspace-chip, .system-nav, .nav-label { display: none; }
  .main-nav { flex-direction: row; gap: 4px; margin: 13px -16px 0; padding: 0 12px; overflow-x: hidden; border-top: 1px solid var(--line); scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a, .mobile-nav-settings { min-width: 0; min-height: 47px; flex: 1 1 0; justify-content: center; gap: clamp(3px, 1.5vw, 7px); padding: 10px clamp(2px, 1vw, 12px); border: 0; border-radius: 0; font-size: clamp(9px, 2.8vw, 11px); white-space: nowrap; }
  .main-nav a > svg:first-child, .mobile-nav-settings > svg { width: 16px; height: 16px; }
  .main-nav a[aria-current="page"] { border: 0; background: transparent; box-shadow: inset 0 -2px 0 var(--green); }
  .nav-arrow { display: none; }
  .mobile-nav-settings { display: flex; }
  .sidebar-footer { position: absolute; top: 15px; right: 16px; margin: 0; padding: 0; border: 0; }
  #logout-button span, .sidebar-footer .connection { display: none; }
  #logout-button { width: 36px; height: 36px; justify-content: center; }
  .topbar { position: relative; }
  .topbar-inner { min-height: 55px; padding: 0 20px; }
  .panel-main { padding: 27px 20px 24px; }
  .topbar-domain { display: none; }
  .editor-card { scroll-margin-top: 18px; }
}
@media (max-width: 680px) {
  .topbar-inner { padding-inline: 16px; }
  .panel-main { padding: 24px 16px 22px; }
  .page-heading { margin-bottom: 21px; }
  .page-heading p:not(.eyebrow) { max-width: 390px; font-size: 12px; }
  .page-heading .button { padding: 9px 11px; }
  .webhook-card { align-items: stretch; gap: 16px; padding: 18px; }
  .webhook-copy code { font-size: 10px; }
  .webhook-actions { align-self: stretch; justify-content: flex-end; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card:first-child { grid-column: span 2; }
  .stat-card strong { font-size: 27px; }
  .stat-caption { font-size: 10px; }
  .pipeline-card { padding: 18px; }
  .pipeline-legend { grid-template-columns: repeat(2, 1fr); gap: 15px 8px; }
  .pipeline-legend li:nth-child(3)::after { display: block; }
  .pipeline-legend li:nth-child(even)::after { display: none; }
  .durable-badge { font-size: 0; padding: 7px; }
  .durable-badge svg { width: 15px; height: 15px; }
  .history-heading { padding-inline: 18px; }
  .toolbar { padding: 0 18px 16px; flex-direction: column; align-items: stretch; gap: 10px; }
  .search-wrap { max-width: none; }
  .filter-wrap select { flex: 1; }
  .monitor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .period-grid { gap: 8px; }
  .period-card { padding: 14px 12px; }
  .period-card > strong { font-size: 20px; }
  .monitor-insights { grid-template-columns: 1fr; }
  .pagination-bar { padding-inline: 14px; }
  .table-wrap { overflow: visible; }
  table, tbody { display: block; }
  thead { display: none; }
  tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 16px 18px; border-bottom: 1px solid var(--line); gap: 10px 12px; }
  td { display: block; padding: 0 !important; border: 0 !important; }
  .subscriber-cell { max-width: 100%; grid-column: 1; }
  .status-cell { grid-column: 2; grid-row: 1; align-self: start; }
  .webhook-cell { grid-column: 1 / -1; font-size: 10px; }
  .webhook-cell::before { content: "Webhook: "; color: #748d7f; }
  .stage-cell { grid-column: 1 / -1; min-width: 0; }
  .stage-name { display: inline-block; margin: 0 8px 0 0; }
  .mini-progress { display: inline-flex; vertical-align: middle; }
  .contact-cell, .attempts-cell { display: inline-block; font-size: 11px; }
  .contact-cell::before { content: "Contact "; color: #748d7f; }
  .attempts-cell::before { content: " · Attempts "; color: #748d7f; }
  .date-cell { grid-column: 1; }
  .actions-cell { grid-column: 2; }
  .connection-hero { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 20px; }
  .connection-hero-icon { width: 48px; height: 48px; border-radius: 13px; }
  .connection-hero-icon img { width: 28px; height: 28px; }
  .connection-hero-copy h2 { font-size: 15px; }
  .connection-steps { justify-content: space-between; }
  .connection-steps li { padding-inline: 8px; }
  .connection-steps li > div { display: none; }
  .connection-steps li > span { width: 29px; height: 29px; }
  .connection-steps li:not(:last-child)::after { top: 14px; left: calc(100% - 4px); right: auto; width: calc(100% - 25px); }
  .form-grid, .form-grid--three { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .form-grid--three { margin-top: 18px; }
  .editor-heading, .editor-body { padding-inline: 18px; }
  .editor-footer { flex-wrap: wrap; padding-inline: 18px; }
  .editor-security { width: 100%; margin: 0 0 4px; }
  .endpoint-preview { grid-template-columns: minmax(0, 1fr) auto; }
  .endpoint-preview > span { grid-column: 1 / -1; }
  .resource-card { padding: 18px; }
  .resource-top { flex-direction: column; }
  .resource-actions { justify-content: flex-start; }
  .resource-endpoint { align-items: stretch; flex-direction: column; gap: 10px; }
  .resource-endpoint .button { align-self: flex-start; }
  .resource-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-pipeline { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .dialog-header, #details-content { padding-inline: 18px; }
  .settings-body { padding: 20px 18px 0; }
  .settings-footer { align-items: stretch; flex-direction: column; margin-inline: -18px; padding-inline: 18px; }
  .settings-footer > span { max-width: none; }
  .settings-footer > div { justify-content: flex-end; }
}
@media (max-width: 420px) {
  .login-shell { padding: 18px 14px; }
  .login-card { padding: 24px 22px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 34px; height: 34px; }
  .sidebar { padding-inline: 14px; }
  .main-nav { margin-inline: -14px; padding-inline: 5px; }
  .main-nav a, .mobile-nav-settings { gap: 4px; padding-inline: 2px; font-size: 10px; }
  .main-nav a > svg:first-child, .mobile-nav-settings > svg { width: 14px; height: 14px; }
  .sidebar-footer { right: 12px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 27px; }
  .page-heading .button { font-size: 10px; }
  .webhook-icon { display: none; }
  .webhook-actions .button { flex: 1; padding-inline: 9px; }
  .compact-select { max-width: 180px; }
  .pipeline-legend li { font-size: 9px; }
  .detail-identity { flex-direction: column; }
  .event-top { flex-direction: column; gap: 4px; }
  .editor-footer .button { flex: 1; }
  .resource-actions .button { flex: 1; }
  .resource-avatar { width: 36px; height: 36px; }
  .toast { right: 16px; bottom: 16px; max-width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
