:root {
  color-scheme:dark;
  --bg:#0b1017;
  --surface:#121923;
  --surface-2:#171f2b;
  --surface-3:#1d2836;
  --border:#253140;
  --border-soft:#202b38;
  --text:#edf2f8;
  --muted:#8e9daf;
  --subtle:#62748a;
  --accent:#ff715b;
  --accent-hover:#ff8b78;
  --green:#71dcb3;
  --amber:#f2c577;
  --red:#ff8b8b;
  --radius:18px;
  --font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:100px
}
body {
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  font-size:14px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased
}
button,input,select {
  font:inherit
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer
}
a {
  color:inherit;
  text-decoration:none
}
button {
  color:inherit
}
svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
h1,h2,h3,p {
  margin:0
}
button,input,select,a {
  outline-offset:4px
}
:focus-visible {
  outline:2px solid var(--accent)
}
[hidden] {
  display:none!important
}
::selection {
  background:#ff715b55;
  color:#fff
}
.muted {
  color:var(--muted)
}
.skip-link {
  position:fixed;
  left:16px;
  top:-80px;
  z-index:1000;
  background:var(--accent);
  color:#151515;
  padding:12px 18px;
  border-radius:8px;
  font-weight:700
}
.skip-link:focus {
  top:12px
}
.button,.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:1px solid transparent;
  border-radius:10px;
  min-height:42px;
  padding:10px 15px;
  font-size:13px;
  font-weight:650;
  line-height:1.3;
  transition:background .15s,border-color .15s,transform .15s;
  white-space:nowrap
}
.button:active,.icon-button:active {
  transform:translateY(1px)
}
.button-primary {
  background:var(--accent);
  color:#20120e;
  border-color:var(--accent)
}
.button-primary:hover {
  background:var(--accent-hover);
  border-color:var(--accent-hover)
}
.button-secondary {
  background:var(--surface-2);
  border-color:var(--border);
  color:#dce4ee
}
.button-secondary:hover {
  background:var(--surface-3);
  border-color:#3c4c60
}
.button-quiet {
  background:transparent;
  color:var(--muted)
}
.button-quiet:hover {
  background:var(--surface-2);
  color:var(--text)
}
.button-full {
  width:100%
}
.button-full span[aria-hidden] {
  margin-left:auto;
  font-size:20px;
  font-weight:400
}
.button-small {
  min-height:35px;
  padding:8px 11px;
  font-size:12px
}
.button-small svg {
  width:16px;
  height:16px
}
.icon-button {
  width:40px;
  min-height:40px;
  padding:9px;
  background:transparent;
  color:var(--muted);
  border-color:transparent
}
.icon-button:hover {
  background:var(--surface-2);
  color:var(--text)
}
button:disabled,.button:disabled {
  cursor:not-allowed;
  opacity:.42;
  transform:none
}
.text-button {
  border:0;
  background:transparent;
  padding:2px 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5
}
.text-button:hover {
  color:var(--text)
}
.text-danger {
  color:var(--red)
}
.text-danger:hover {
  color:#ffb5b5
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  font-weight:750;
  letter-spacing:-.5px;
  font-size:20px
}
.brand-light {
  color:#93a2b6;
  font-weight:450;
  margin-left:4px
}
.brand-mark {
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  background:var(--accent);
  border-radius:11px;
  color:#24120d;
  box-shadow:0 3px 20px #ff715b13
}
.brand-mark svg {
  width:23px;
  height:23px;
  stroke:none;
  fill:currentColor;
  margin-left:-3px
}
.eyebrow {
  font-size:10px;
  text-transform:uppercase;
  font-weight:750;
  letter-spacing:1.9px;
  color:var(--muted)
}
.app-header {
  height:80px;
  position:sticky;
  top:0;
  z-index:10;
  background:#0b1017ed;
  border-bottom:1px solid var(--border-soft);
  backdrop-filter:blur(14px)
}
.header-inner {
  max-width:1472px;
  height:100%;
  padding:0 40px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:44px
}
.header-nav {
  height:100%;
  display:flex;
  align-items:center
}
.header-nav a {
  height:100%;
  display:flex;
  align-items:center;
  font-size:13px;
  font-weight:650;
  color:var(--muted);
  padding:0 4px;
  position:relative
}
.header-nav .nav-current {
  color:var(--text)
}
.nav-current:after {
  content:"";
  position:absolute;
  bottom:-1px;
  left:0;
  right:0;
  height:2px;
  background:var(--accent);
  border-radius:2px
}
.header-actions {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:16px
}
.header-actions form {
  border-left:1px solid var(--border);
  padding-left:14px
}
.cookies-trigger {
  font-size:12px
}
.cookie-indicator {
  height:7px;
  width:7px;
  border-radius:50%;
  background:var(--amber);
  flex-shrink:0;
  box-shadow:0 0 0 4px #f2c5770c
}
.cookie-indicator.is-ready {
  background:var(--green);
  box-shadow:0 0 0 4px #71dcb30c
}
.mobile-add-link {
  display:none
}
.app-main {
  max-width:1472px;
  margin:auto;
  padding:42px 40px 22px
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:30px
}
.page-heading h1 {
  font-size:33px;
  letter-spacing:-1.15px;
  font-weight:730;
  line-height:1.25;
  margin:8px 0 10px
}
.heading-dot {
  color:var(--accent)
}
.page-heading p {
  color:var(--muted);
  font-size:13px
}
.page-heading>.button {
  margin-top:20px
}
.alert {
  padding:13px 16px;
  border:1px solid var(--border);
  border-radius:11px;
  margin-bottom:22px;
  font-size:13px;
  overflow-wrap:anywhere
}
.alert-error {
  color:#ffb4b4;
  background:#652f3429;
  border-color:#79404a70
}
.alert-success {
  color:#b4ecd6;
  background:#204e3c2b;
  border-color:#42765e65
}
.dismissible {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center
}
.dismissible button {
  border:0;
  background:transparent;
  font-size:23px;
  line-height:1;
  color:inherit;
  padding:0 2px
}
.overview-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-bottom:34px
}
.overview-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:linear-gradient(115deg,#151d29,#111923);
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
  padding:21px 25px;
  min-height:112px
}
.stat-label {
  display:block;
  font-size:11px;
  font-weight:550;
  color:var(--muted);
  margin-bottom:8px
}
.overview-card strong {
  font-size:29px;
  font-weight:700;
  line-height:1;
  letter-spacing:-1px;
  font-variant-numeric:tabular-nums
}
.stat-icon {
  display:grid;
  place-items:center;
  background:#222e3f66;
  color:#92a6c1;
  height:43px;
  width:43px;
  border-radius:13px
}
.stat-icon svg {
  width:21px;
  height:21px
}
.stat-icon-live {
  color:var(--green);
  background:#71dcb30c
}
.stat-icon-warning {
  color:var(--amber);
  background:#f2c5770c
}
.workspace-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:28px;
  align-items:start
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:17px;
  min-height:28px
}
.section-heading h2 {
  font-size:16px;
  letter-spacing:-.3px;
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:650
}
.count-pill {
  font-size:11px;
  font-weight:650;
  min-width:25px;
  padding:2px 7px;
  background:var(--surface-3);
  border-radius:7px;
  color:#b3c1d0;
  text-align:center
}
.connection-state {
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--subtle);
  font-size:10px;
  white-space:nowrap
}
.connection-state i {
  height:5px;
  width:5px;
  border-radius:50%;
  background:var(--green)
}
.connection-state.is-offline {
  color:var(--amber)
}
.connection-state.is-offline i {
  background:var(--amber)
}
.channels-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:17px
}
.channel-card {
  background:var(--surface);
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
  padding:20px 19px 15px;
  min-width:0;
  transition:border-color .2s
}
.channel-card:hover {
  border-color:#344356
}
.channel-card-heading {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:21px;
  min-width:0
}
.channel-avatar {
  height:35px;
  width:35px;
  border-radius:11px;
  background:#ff715b10;
  border:1px solid #ff715b18;
  color:#ff9988;
  display:grid;
  place-items:center;
  flex-shrink:0
}
.channel-avatar svg {
  width:20px;
  height:20px;
  fill:currentColor;
  stroke:none;
  margin-left:-2px
}
.channel-title-wrap {
  min-width:0;
  flex:1
}
.channel-title-wrap h3 {
  font-size:13px;
  font-weight:650;
  letter-spacing:-.1px;
  line-height:1.4;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden
}
.channel-id {
  font-size:9px;
  letter-spacing:.3px;
  color:var(--subtle);
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace
}
.status-badge {
  font-size:9px;
  font-weight:650;
  display:inline-flex;
  align-items:center;
  gap:5px;
  border-radius:6px;
  padding:4px 6px;
  background:#33415538;
  color:#98a7ba;
  flex-shrink:0;
  max-width:120px
}
.status-badge i {
  width:4px;
  height:4px;
  background:currentColor;
  border-radius:50%;
  flex-shrink:0
}
.channel-card[data-status="running"][data-enabled="true"] .status-badge,.channel-card[data-status="playing"][data-enabled="true"] .status-badge,.channel-card[data-status="live"][data-enabled="true"] .status-badge,.channel-card[data-status="streaming"][data-enabled="true"] .status-badge {
  color:var(--green);
  background:#71dcb310
}
.channel-card[data-status="starting"][data-enabled="true"] .status-badge,.channel-card[data-status="connecting"][data-enabled="true"] .status-badge,.channel-card[data-status="resolving"][data-enabled="true"] .status-badge,.channel-card[data-status="retrying"][data-enabled="true"] .status-badge,.channel-card[data-status="waiting"][data-enabled="true"] .status-badge,.channel-card[data-status="restarting"][data-enabled="true"] .status-badge {
  color:var(--amber);
  background:#f2c57710
}
.channel-card[data-status="error"][data-enabled="true"] .status-badge,.channel-card[data-status="failed"][data-enabled="true"] .status-badge,.channel-card[data-status="offline"][data-enabled="true"] .status-badge {
  color:var(--red);
  background:#ff8b8b10
}
.channel-facts {
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:15px;
  margin-bottom:19px
}
.channel-facts div>span {
  display:block;
  color:var(--subtle);
  font-size:10px;
  margin-bottom:5px
}
.channel-facts strong {
  font-size:11px;
  font-weight:600;
  line-height:1.5;
  display:block
}
.channel-traffic {
  margin:0 0 16px;
  padding:12px 0 11px;
  border-top:1px solid var(--border-soft);
  border-bottom:1px solid var(--border-soft)
}
.traffic-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:9px
}
.traffic-heading h4 {
  margin:0;
  color:var(--muted);
  font-size:10px;
  font-weight:600
}
.traffic-help {
  position:relative;
  flex-shrink:0
}
.traffic-help summary {
  display:grid;
  place-items:center;
  list-style:none;
  width:17px;
  height:17px;
  border:1px solid #38475b;
  border-radius:50%;
  color:#93a5bd;
  font-size:10px;
  line-height:1;
  font-weight:650;
  cursor:pointer
}
.traffic-help summary::-webkit-details-marker {
  display:none
}
.traffic-help summary:hover,.traffic-help[open] summary {
  color:var(--text);
  border-color:#6b7d96;
  background:var(--surface-3)
}
.traffic-help-content {
  position:absolute;
  right:0;
  top:25px;
  z-index:6;
  width:min(280px,calc(100vw - 76px));
  padding:12px 14px;
  border:1px solid #42516a;
  border-radius:10px;
  background:#1c2838;
  box-shadow:0 12px 35px #0006;
  color:#bdcadb;
  font-size:10px;
  line-height:1.8
}
.traffic-stats {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.traffic-stats div>span {
  display:block;
  color:var(--subtle);
  font-size:9px;
  line-height:1.5;
  margin-bottom:4px
}
.traffic-stats strong {
  display:block;
  color:#dce5f2;
  font-size:16px;
  font-weight:650;
  letter-spacing:-.3px;
  font-variant-numeric:tabular-nums;
  line-height:1.35
}
.traffic-since {
  margin-top:9px;
  color:var(--subtle);
  font-size:9px;
  line-height:1.6
}
.traffic-since time {
  color:#8e9fb5;
  font-variant-numeric:tabular-nums
}
.traffic-config-notice {
  margin-top:5px;
  color:var(--amber);
  font-size:9px;
  line-height:1.6
}
.feed-field label {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-bottom:7px
}
.copy-field {
  display:flex;
  background:#0c131d;
  border:1px solid #243041;
  border-radius:8px;
  overflow:hidden
}
.copy-field input {
  width:100%;
  min-width:0;
  box-shadow:none!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#96a7bd!important;
  font-size:10px!important;
  min-height:35px!important;
  padding:8px 10px!important;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace
}
.copy-button {
  display:grid;
  place-items:center;
  background:transparent;
  flex-shrink:0;
  border:0;
  border-left:1px solid #243041;
  width:36px;
  color:#8193aa
}
.copy-button:hover {
  background:#202d3c;
  color:var(--text)
}
.copy-button svg {
  width:15px;
  height:15px
}
.channel-error {
  font-size:11px;
  color:#ffb2b2;
  background:#ff8b8b08;
  border-left:2px solid #b66565;
  border-radius:0 5px 5px 0;
  padding:8px 10px;
  margin-top:12px;
  overflow-wrap:anywhere;
  max-height:150px;
  overflow:auto
}
.retry-note {
  font-size:10px;
  color:var(--amber);
  margin-top:7px
}
.channel-footer {
  margin-top:13px;
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center
}
.last-segment {
  font-size:9px;
  color:var(--subtle);
  min-width:0
}
.last-segment time {
  color:#90a0b4;
  font-variant-numeric:tabular-nums
}
.quality-tag {
  font-size:8px;
  font-weight:700;
  letter-spacing:.5px;
  color:#8f9db0;
  border:1px solid #334054;
  padding:0 4px;
  border-radius:3px
}
.channel-actions {
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid var(--border-soft)
}
.channel-actions form {
  display:flex
}
.channel-actions>.edit-trigger {
  margin-left:auto;
  padding-right:2px;
  padding-left:5px;
  font-size:11px;
  gap:2px
}
.edit-trigger svg {
  width:14px;
  height:14px;
  transition:transform .15s
}
.edit-trigger[aria-expanded="true"] svg {
  transform:rotate(180deg)
}
.channel-edit {
  margin-top:14px;
  padding-top:16px;
  border-top:1px solid var(--border)
}
.channel-edit-form {
  gap:12px!important
}
.channel-edit-form input,.channel-edit-form select {
  min-height:38px!important;
  font-size:12px!important
}
.channel-edit-form .field label {
  font-size:11px
}
.channel-edit-form>.button {
  justify-self:start
}
.channel-danger-actions {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:17px;
  padding-top:13px;
  border-top:1px solid var(--border-soft)
}
.setup-sidebar {
  padding-top:45px;
  position:sticky;
  top:100px
}
.setup-card {
  border:1px solid #384355;
  background:linear-gradient(140deg,#1b2431,#141c27);
  border-radius:var(--radius);
  padding:23px
}
.setup-card-heading {
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:25px
}
.add-icon {
  display:grid;
  place-items:center;
  width:37px;
  height:37px;
  border-radius:11px;
  background:var(--accent);
  color:#23120c;
  font-size:28px;
  font-weight:300;
  line-height:1;
  flex-shrink:0
}
.setup-card-heading h2 {
  font-size:16px;
  line-height:1.4;
  letter-spacing:-.35px;
  font-weight:650
}
.setup-card-heading p {
  color:var(--muted);
  font-size:10px;
  margin-top:3px
}
.stack-form {
  display:grid;
  gap:18px
}
.field {
  min-width:0
}
.field label {
  display:block;
  font-size:11px;
  color:#cad4e1;
  font-weight:550;
  margin-bottom:8px
}
.field input:not([type="hidden"]),.field select {
  width:100%;
  min-height:44px;
  border:1px solid #354153;
  background:#101824;
  border-radius:8px;
  color:var(--text);
  padding:11px 12px;
  font-size:12px;
  transition:border-color .15s,box-shadow .15s
}
.field input::placeholder {
  color:#63758c
}
.field input:hover,.field select:hover {
  border-color:#4a5a70
}
.field input:focus,.field select:focus {
  outline:none;
  border-color:#ff927b;
  box-shadow:0 0 0 3px #ff715b12
}
.field select {
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2393a4ba' stroke-width='1.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 11px center;
  padding-right:34px
}
.field select:disabled {
  color:var(--subtle);
  opacity:.75;
  cursor:not-allowed
}
.field-hint {
  color:var(--subtle);
  font-size:10px;
  line-height:1.6;
  margin-top:7px
}
.probe-button {
  font-size:11px;
  min-height:40px;
  padding:10px;
  gap:7px
}
.probe-button svg {
  width:15px;
  height:15px
}
.probe-button.is-loading svg {
  animation:probe-pulse 1s ease-in-out infinite
}
.probe-result {
  border-radius:8px;
  font-size:11px;
  padding:10px 11px;
  line-height:1.6;
  background:#71dcb30a;
  border:1px solid #71dcb330;
  color:#afddcd;
  overflow-wrap:anywhere
}
.probe-result.is-error {
  background:#ff8b8b0a;
  border-color:#ff8b8b35;
  color:#ffb4b4
}
.probe-result strong {
  display:block;
  margin-bottom:2px;
  color:var(--text);
  font-weight:600
}
.helper-card {
  margin-top:17px;
  padding:22px 23px;
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
  background:#121a2480
}
.helper-icon {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:8px;
  background:#728cb914;
  color:#9db2d2;
  margin-bottom:12px
}
.helper-icon svg {
  width:17px;
  height:17px
}
.helper-card h3 {
  font-size:12px;
  font-weight:600;
  margin-bottom:7px
}
.helper-card p {
  font-size:11px;
  line-height:1.8;
  color:var(--muted)
}
.helper-card .helper-footnote {
  font-size:9px;
  color:var(--subtle);
  border-top:1px solid var(--border-soft);
  margin-top:16px;
  padding-top:12px
}
.empty-state {
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  justify-content:center;
  min-height:410px;
  padding:45px 25px;
  border:1px dashed #344154;
  border-radius:var(--radius);
  background:radial-gradient(ellipse at 50% 0,#1b28383d,transparent 65%)
}
.empty-icon {
  width:68px;
  height:68px;
  border:1px solid #344154;
  background:#1a26364a;
  border-radius:21px;
  display:grid;
  place-items:center;
  color:#90a5c2;
  margin-bottom:23px
}
.empty-icon svg {
  width:30px;
  height:30px
}
.empty-state h3 {
  font-size:17px;
  font-weight:600;
  letter-spacing:-.4px;
  margin-bottom:10px
}
.empty-state p {
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
  margin-bottom:23px
}
.empty-state .button {
  font-size:11px
}
.app-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--subtle);
  font-size:10px;
  border-top:1px solid var(--border-soft);
  padding-top:21px;
  margin-top:44px
}
.version {
  opacity:.65;
  margin-left:5px
}
.settings-dialog {
  width:min(490px,calc(100vw - 32px));
  max-height:calc(100dvh - 60px);
  overflow:auto;
  border:1px solid #39485b;
  background:#151e2b;
  color:var(--text);
  border-radius:20px;
  padding:27px;
  box-shadow:0 30px 100px #0007
}
.settings-dialog::backdrop {
  background:#050912bb;
  backdrop-filter:blur(5px)
}
.dialog-heading {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  margin-bottom:23px
}
.dialog-heading h2 {
  font-size:23px;
  font-weight:650;
  letter-spacing:-.6px;
  margin-top:5px
}
.dialog-heading>.icon-button {
  margin-top:-8px;
  margin-right:-8px
}
.cookie-state-box {
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  background:#0b141f;
  border:1px solid var(--border);
  border-radius:9px;
  font-size:12px;
  color:#c5d1df;
  margin-bottom:17px
}
.dialog-description {
  font-size:12px;
  color:var(--muted);
  line-height:1.85;
  margin-bottom:21px
}
.dialog-description strong {
  font-weight:600;
  color:#cfdae7
}
.file-field {
  padding:15px;
  background:#101824;
  border:1px dashed #3f4e63;
  border-radius:11px
}
.file-field input[type="file"] {
  border:0;
  background:transparent;
  padding:4px 0;
  min-height:35px;
  font-size:11px;
  color:var(--muted)
}
.file-field input[type="file"]::file-selector-button {
  border:1px solid #3b4a60;
  background:#202d3e;
  color:#e4ebf4;
  border-radius:6px;
  padding:7px 10px;
  font:inherit;
  font-size:11px;
  margin-right:10px;
  cursor:pointer
}
.dialog-actions {
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:6px
}
.dialog-actions .button {
  font-size:12px
}
.toast {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  z-index:100;
  background:#23382f;
  border:1px solid #4c8068;
  color:#d4f7e5;
  padding:12px 18px;
  border-radius:11px;
  font-size:12px;
  box-shadow:0 10px 45px #0005;
  max-width:calc(100vw - 32px);
  text-align:center
}
.toast.is-error {
  background:#432a31;
  border-color:#88515d;
  color:#ffd6d6
}
.login-layout {
  min-height:100dvh;
  display:grid;
  grid-template-columns:1fr 1fr
}
.login-intro {
  padding:45px 60px;
  display:flex;
  flex-direction:column;
  min-height:100dvh;
  position:relative;
  overflow:hidden;
  border-right:1px solid var(--border-soft);
  background:radial-gradient(ellipse at 10% 45%,#ff715b07,transparent 60%),linear-gradient(150deg,#151d29,#0b111a)
}
.login-intro:after {
  content:"";
  position:absolute;
  width:440px;
  height:440px;
  border:1px solid #3c4c6415;
  border-radius:50%;
  right:-220px;
  bottom:-120px;
  box-shadow:0 0 0 70px #3c4c640a,0 0 0 140px #3c4c6405;
  pointer-events:none
}
.login-intro-copy {
  margin:auto 0;
  max-width:450px;
  padding:60px 0
}
.login-intro-copy .eyebrow {
  color:#d59386
}
.login-intro-copy h1 {
  font-size:48px;
  line-height:1.17;
  letter-spacing:-2px;
  font-weight:680;
  margin-top:19px;
  margin-bottom:22px
}
.login-intro-copy h1>span {
  color:#8291a7
}
.login-intro-copy>p {
  font-size:14px;
  color:var(--muted);
  max-width:365px;
  line-height:1.9
}
.login-footer {
  font-size:10px;
  color:var(--subtle)
}
.login-form-side {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:45px
}
.login-card {
  width:100%;
  max-width:360px
}
.login-icon {
  display:grid;
  place-items:center;
  width:45px;
  height:45px;
  background:#ff715b0d;
  color:#ed9e8d;
  border:1px solid #ff715b1a;
  border-radius:13px;
  margin-bottom:27px
}
.login-icon svg {
  width:22px;
  height:22px
}
.login-card h2 {
  font-size:29px;
  letter-spacing:-.8px;
  font-weight:650;
  margin:8px 0
}
.login-card>.muted {
  font-size:12px;
  margin-bottom:30px
}
.login-card .alert {
  font-size:12px
}
.login-card .stack-form {
  gap:23px
}
.login-card .field input {
  min-height:48px;
  font-size:13px;
  padding-right:66px
}
.login-card .button-primary {
  min-height:47px
}
.password-wrap {
  position:relative
}
.password-toggle {
  position:absolute;
  right:11px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#9baac0;
  font-size:10px;
  padding:5px
}
.password-toggle:hover {
  color:var(--text)
}
.signal-illustration {
  height:70px;
  max-width:325px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
  margin-top:44px
}
.signal-line {
  height:1px;
  left:20px;
  right:20px;
  position:absolute;
  background:linear-gradient(90deg,#ff715b60,#536a8550,#71dcb360)
}
.signal-source,.signal-node,.signal-output {
  position:relative;
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  background:#151f2d;
  border:1px solid #354356;
  border-radius:13px
}
.signal-source {
  color:#ff9988;
  background:#251e23;
  border-color:#ff715b30
}
.signal-source svg {
  fill:currentColor;
  stroke:none;
  margin-left:-3px
}
.signal-node {
  height:35px;
  width:35px;
  border-radius:50%;
  box-shadow:0 0 0 8px #3b4b6210
}
.signal-node i {
  width:8px;
  height:8px;
  background:var(--green);
  border-radius:50%;
  box-shadow:0 0 14px #71dcb350
}
.signal-output {
  color:#a3b6d0
}
@keyframes probe-pulse {
  50% {
    opacity:.3
  }
}
@media(min-width:1600px) {
  .header-inner,.app-main {
    max-width:1550px
  }
  .workspace-grid {
    grid-template-columns:minmax(0,1fr) 350px;
    gap:32px
  }
  .channel-card {
    padding:23px 22px 17px
  }
  .channels-grid {
    gap:20px
  }
  .channel-title-wrap h3 {
    font-size:14px
  }
}
@media(max-width:1190px) {
  .header-inner {
    padding:0 28px
  }
  .app-main {
    padding-left:28px;
    padding-right:28px
  }
  .workspace-grid {
    grid-template-columns:minmax(0,1fr) 310px;
    gap:22px
  }
  .channels-grid {
    grid-template-columns:1fr
  }
  .channel-card {
    padding:21px 23px 16px
  }
  .channel-title-wrap h3 {
    font-size:14px
  }
  .channel-facts {
    grid-template-columns:1fr 1fr
  }
  .channel-facts strong {
    font-size:12px
  }
  .status-badge {
    font-size:10px;
    padding:4px 8px
  }
  .copy-field input {
    font-size:11px!important
  }
  .channel-footer,.channel-actions {
    margin-top:15px
  }
  .setup-card {
    padding:21px
  }
  .login-intro {
    padding:40px
  }
  .login-intro-copy h1 {
    font-size:41px
  }
}
@media(max-width:800px) {
  .app-header {
    height:70px
  }
  .header-inner {
    padding:0 22px;
    gap:28px
  }
  .header-actions {
    gap:4px
  }
  .header-actions form {
    padding-left:5px
  }
  .cookies-trigger {
    padding-left:8px;
    padding-right:8px;
    font-size:11px
  }
  .app-main {
    padding:31px 22px 20px
  }
  .page-heading {
    margin-bottom:26px
  }
  .page-heading h1 {
    font-size:28px
  }
  .page-heading>.button {
    font-size:11px;
    padding:9px 11px;
    min-height:38px
  }
  .page-heading>.button svg {
    width:16px;
    height:16px
  }
  .overview-card {
    padding:18px 18px;
    min-height:99px
  }
  .overview-grid {
    gap:12px;
    margin-bottom:28px
  }
  .stat-label {
    font-size:10px
  }
  .stat-icon {
    width:34px;
    height:34px;
    border-radius:10px
  }
  .stat-icon svg {
    width:18px;
    height:18px
  }
  .overview-card strong {
    font-size:25px
  }
  .workspace-grid {
    grid-template-columns:minmax(0,1fr) 285px;
    gap:18px
  }
  .setup-card {
    padding:18px
  }
  .setup-card-heading {
    gap:10px
  }
  .add-icon {
    width:31px;
    height:31px
  }
  .setup-card-heading h2 {
    font-size:14px
  }
  .setup-card-heading p {
    font-size:9px
  }
  .channel-card {
    padding:18px 17px 14px
  }
  .channel-card-heading {
    gap:8px;
    flex-wrap:wrap
  }
  .channel-title-wrap h3 {
    font-size:13px
  }
  .status-badge {
    font-size:9px;
    padding:4px 6px
  }
  .channel-avatar {
    width:30px;
    height:30px;
    border-radius:9px
  }
  .channel-facts {
    gap:10px
  }
  .channel-facts strong {
    font-size:10px
  }
  .channel-facts div>span {
    font-size:9px
  }
  .channel-actions>.edit-trigger {
    font-size:10px
  }
  .channel-actions .button-small {
    font-size:10px;
    padding:7px 8px
  }
  .channel-actions .icon-button {
    width:31px;
    padding:6px
  }
  .channel-actions {
    gap:2px
  }
  .helper-card {
    padding:18px
  }
  .login-intro {
    padding:32px
  }
  .login-intro-copy h1 {
    font-size:35px;
    letter-spacing:-1.6px
  }
  .login-intro-copy>p {
    font-size:12px
  }
  .login-form-side {
    padding:35px
  }
  .login-card h2 {
    font-size:26px
  }
}
@media(max-width:660px) {
  .header-inner {
    padding:0 18px;
    gap:18px
  }
  .brand {
    font-size:17px;
    gap:8px
  }
  .brand-mark {
    width:30px;
    height:30px;
    border-radius:9px
  }
  .brand-mark svg {
    width:20px;
    height:20px
  }
  .header-nav {
    display:none
  }
  .cookies-trigger {
    font-size:10px;
    gap:7px
  }
  .header-actions form {
    border-left:0;
    padding-left:0
  }
  .header-actions .icon-button {
    width:33px
  }
  .app-main {
    padding:27px 18px 18px
  }
  .page-heading {
    align-items:flex-start;
    gap:15px
  }
  .page-heading h1 {
    font-size:26px;
    letter-spacing:-.9px;
    margin-top:7px;
    max-width:280px
  }
  .page-heading p {
    font-size:11px;
    max-width:290px;
    line-height:1.8
  }
  .page-heading>.button {
    margin-top:25px;
    font-size:0;
    padding:9px;
    min-height:37px;
    width:37px;
    flex-shrink:0;
    gap:0
  }
  .page-heading>.button svg {
    width:18px;
    height:18px
  }
  .overview-grid {
    gap:8px;
    margin-bottom:29px
  }
  .overview-card {
    padding:15px 12px;
    min-height:90px;
    border-radius:13px;
    position:relative;
    align-items:flex-start
  }
  .stat-icon {
    position:absolute;
    right:10px;
    bottom:15px;
    width:23px;
    height:23px;
    border-radius:7px
  }
  .stat-icon svg {
    width:13px;
    height:13px
  }
  .stat-label {
    font-size:9px;
    margin-bottom:10px;
    max-width:90px;
    line-height:1.45
  }
  .overview-card strong {
    font-size:24px
  }
  .workspace-grid {
    display:flex;
    flex-direction:column;
    gap:25px
  }
  .channel-section {
    width:100%;
    order:0
  }
  .setup-sidebar {
    width:100%;
    padding-top:0;
    position:static;
    order:1
  }
  .mobile-add-link {
    display:flex;
    margin-bottom:23px;
    justify-content:space-between
  }
  .setup-card {
    padding:21px
  }
  .setup-card-heading {
    margin-bottom:20px
  }
  .setup-card-heading h2 {
    font-size:16px
  }
  .setup-card-heading p {
    font-size:10px
  }
  .add-icon {
    width:35px;
    height:35px
  }
  .stack-form {
    gap:16px
  }
  .helper-card {
    display:none
  }
  .channels-grid {
    grid-template-columns:1fr;
    gap:15px
  }
  .channel-card {
    padding:21px 21px 16px
  }
  .channel-title-wrap h3 {
    font-size:14px
  }
  .channel-card-heading {
    flex-wrap:nowrap;
    gap:10px;
    margin-bottom:20px
  }
  .channel-avatar {
    width:34px;
    height:34px;
    border-radius:10px
  }
  .status-badge {
    font-size:9px;
    padding:4px 7px
  }
  .channel-facts div>span {
    font-size:10px
  }
  .channel-facts strong {
    font-size:12px
  }
  .feed-field label {
    font-size:10px
  }
  .copy-field input {
    min-height:38px!important;
    font-size:11px!important
  }
  .copy-button {
    width:39px
  }
  .channel-actions .button-small {
    font-size:12px;
    padding:8px 11px
  }
  .channel-actions>.edit-trigger {
    font-size:11px
  }
  .channel-actions .icon-button {
    width:37px
  }
  .channel-actions {
    gap:4px
  }
  .last-segment {
    font-size:10px
  }
  .section-heading h2 {
    font-size:16px
  }
  .connection-state {
    font-size:9px
  }
  .app-footer {
    margin-top:30px;
    gap:12px;
    font-size:9px
  }
  .app-footer>span:last-child {
    max-width:135px;
    text-align:right
  }
  .empty-state {
    min-height:330px;
    padding:35px 20px
  }
  .empty-state p {
    font-size:11px
  }
  .settings-dialog {
    padding:23px;
    max-height:calc(100dvh - 35px)
  }
  .dialog-heading h2 {
    font-size:22px
  }
  .dialog-actions .button {
    padding:10px 12px;
    font-size:11px
  }
  .login-layout {
    display:flex;
    flex-direction:column;
    min-height:100dvh
  }
  .login-intro {
    min-height:auto;
    padding:27px 25px;
    border-right:0;
    border-bottom:0;
    background:transparent;
    overflow:visible
  }
  .login-intro-copy,.login-footer,.login-intro:after {
    display:none
  }
  .login-form-side {
    flex:1;
    align-items:flex-start;
    padding:34px 25px 65px
  }
  .login-card {
    max-width:400px
  }
  .login-icon {
    margin-bottom:25px
  }
  .login-card h2 {
    font-size:30px
  }
  .login-card>.muted {
    font-size:12px
  }
  .login-card .field label {
    font-size:12px
  }
  .login-card .field input {
    min-height:49px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*:before,*:after {
    animation:none!important;
    transition:none!important
  }
}
