/* [next]/internal/font/google/inter_ad8c3baf.module.css [app-client] (css) */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/46a9e2f250689b4a-s.0-dom-5bn10r2.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/76b70a1dbe058eb5-s.1y4-pdgsjb-pw.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/2fb76073e23fd9e4-s.3lvt2whj97whp.woff2") format("woff2");
  unicode-range: U+1F??;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/6131cbbf5549afa2-s.2uwcyprjm3xu3.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/45462fd7b7c12654-s.0k62hbripvv8p.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/ba63f6a0e436df8e-s.p.3-6t-g6q0vh0a.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/07c7676b89ed2778-s.p.2bn3s6zvc0dyp.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter Fallback;
  src: local(Arial);
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0.0%;
  size-adjust: 107.12%;
}

.inter_ad8c3baf-module__JnQPGW__className {
  font-family: Inter, Inter Fallback;
  font-style: normal;
}

.inter_ad8c3baf-module__JnQPGW__variable {
  --font-inter: "Inter", "Inter Fallback";
}

/* [next]/internal/font/google/plus_jakarta_sans_763393ae.module.css [app-client] (css) */
@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/12d4e8c1f08b4a66-s.0e__wj8580tc5.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/cabb10e1d7cbc7c1-s.10u7vx61f1ie7.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/9f5a2b9f13a4ecbb-s.p.35a5cae5tspm2.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/d8aeca813a9ab546-s.p.18rizl4rsrl42.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../media/12d4e8c1f08b4a66-s.0e__wj8580tc5.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../media/cabb10e1d7cbc7c1-s.10u7vx61f1ie7.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../media/9f5a2b9f13a4ecbb-s.p.35a5cae5tspm2.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../media/d8aeca813a9ab546-s.p.18rizl4rsrl42.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Plus Jakarta Sans Fallback;
  src: local(Arial);
  ascent-override: 98.88%;
  descent-override: 21.15%;
  line-gap-override: 0.0%;
  size-adjust: 104.98%;
}

.plus_jakarta_sans_763393ae-module__awh5jq__className {
  font-family: Plus Jakarta Sans, Plus Jakarta Sans Fallback;
  font-style: normal;
}

.plus_jakarta_sans_763393ae-module__awh5jq__variable {
  --font-jakarta: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback";
}

/* [next]/internal/font/google/jetbrains_mono_277cff1d.module.css [app-client] (css) */
@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/c64053b510252f55-s.1kd-r_s9smv5m.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/733da6bd8dac84c8-s.3hlisc-pwq13z.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/784318cea1dfcfa4-s.0-oo9_1x_xmvg.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/7e114457660b62ed-s.36fqqi66-3tjb.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/9fecbd3e5ea9bccb-s.p.3_z45zcoc-xoz.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/9a321a2c78eff0b5-s.p.1bkzbscqrt8rl.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../media/c64053b510252f55-s.1kd-r_s9smv5m.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../media/733da6bd8dac84c8-s.3hlisc-pwq13z.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../media/784318cea1dfcfa4-s.0-oo9_1x_xmvg.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../media/7e114457660b62ed-s.36fqqi66-3tjb.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../media/9fecbd3e5ea9bccb-s.p.3_z45zcoc-xoz.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../media/9a321a2c78eff0b5-s.p.1bkzbscqrt8rl.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: JetBrains Mono Fallback;
  src: local(Arial);
  ascent-override: 75.79%;
  descent-override: 22.29%;
  line-gap-override: 0.0%;
  size-adjust: 134.59%;
}

.jetbrains_mono_277cff1d-module__hpFLvG__className {
  font-family: JetBrains Mono, JetBrains Mono Fallback;
  font-style: normal;
}

.jetbrains_mono_277cff1d-module__hpFLvG__variable {
  --font-jetbrains: "JetBrains Mono", "JetBrains Mono Fallback";
}

/* [project]/packages/ui/src/tokens.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --brand-50: #f3f7ff;
  --brand-100: #e5edff;
  --brand-200: #cbdaff;
  --brand-300: #a8c1ff;
  --brand-400: #7da0ff;
  --brand-500: #537bff;
  --brand-600: #35f;
  --brand-700: #2742dc;
  --brand-800: #1d33b3;
  --brand-900: #152790;
  --brand-950: #0b1868;
  --highlight-50: #fff3f8;
  --highlight-100: #ffe4f0;
  --highlight-200: #ffc9e1;
  --highlight-300: #ffa0cd;
  --highlight-400: #fd64b5;
  --highlight-500: #e5309a;
  --highlight-600: #c60081;
  --highlight-700: #a5006a;
  --highlight-800: #840055;
  --highlight-900: #6a0043;
  --highlight-950: #4a002d;
  --neutral-0: #fff;
  --neutral-50: #f6f7f8;
  --neutral-100: #ebedf0;
  --neutral-200: #d7dbe1;
  --neutral-300: #bdc3cd;
  --neutral-400: #9ea5b2;
  --neutral-500: #808897;
  --neutral-600: #69707f;
  --neutral-700: #565c69;
  --neutral-800: #444954;
  --neutral-900: #353942;
  --neutral-950: #23262d;
  --ink: #141821;
  --success-50: #effaf1;
  --success-100: #def4e1;
  --success-400: #56be6f;
  --success-500: #14a249;
  --success-600: #008739;
  --success-700: #00702e;
  --success-950: #003010;
  --warning-50: #fef5eb;
  --warning-100: #fcead6;
  --warning-300: #f0b672;
  --warning-400: #dd9225;
  --warning-500: #ba7700;
  --warning-600: #9b6200;
  --warning-700: #805000;
  --warning-950: #382000;
  --danger-50: #fff4f3;
  --danger-100: #ffe6e3;
  --danger-400: #ff716a;
  --danger-500: #eb3f40;
  --danger-600: #ce1a27;
  --danger-700: #af0119;
  --danger-950: #4f0006;
  --info-50: #eff8ff;
  --info-100: #dbf0ff;
  --info-400: #45b0ec;
  --info-500: #0092cf;
  --info-600: #0079ad;
  --info-700: #00638f;
  --info-950: #002a40;
  --background: var(--lightningcss-light, #f5f7fb) var(--lightningcss-dark, #10131a);
  --foreground: var(--lightningcss-light, var(--ink)) var(--lightningcss-dark, #f2f4f8);
  --card: var(--lightningcss-light, #fff) var(--lightningcss-dark, #181c25);
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary: var(--lightningcss-light, #eef1f6) var(--lightningcss-dark, #1f2430);
  --secondary-foreground: var(--lightningcss-light, var(--neutral-900)) var(--lightningcss-dark, #f2f4f8);
  --muted: var(--lightningcss-light, #eef1f6) var(--lightningcss-dark, #1f2430);
  --muted-foreground: var(--lightningcss-light, var(--neutral-600)) var(--lightningcss-dark, #a3aab8);
  --border: var(--lightningcss-light, #e2e6ee) var(--lightningcss-dark, #2a303d);
  --input: var(--lightningcss-light, var(--neutral-500)) var(--lightningcss-dark, #6b7385);
  --destructive: var(--lightningcss-light, var(--danger-600)) var(--lightningcss-dark, var(--danger-400));
  --destructive-foreground: var(--lightningcss-light, #fff) var(--lightningcss-dark, var(--danger-950));
  --radius: .625rem;
  --primary: var(--lightningcss-light, var(--brand-600)) var(--lightningcss-dark, var(--brand-400));
  --primary-foreground: var(--lightningcss-light, #fff) var(--lightningcss-dark, var(--brand-950));
  --brand-text: var(--lightningcss-light, var(--brand-600)) var(--lightningcss-dark, var(--brand-300));
  --accent: var(--lightningcss-light, var(--brand-50)) var(--lightningcss-dark, color-mix(in oklab, var(--brand-400) 16%, #181c25));
  --accent-foreground: var(--lightningcss-light, var(--brand-800)) var(--lightningcss-dark, var(--brand-100));
  --ring: var(--lightningcss-light, var(--brand-600)) var(--lightningcss-dark, var(--brand-400));
  --highlight: var(--lightningcss-light, var(--highlight-600)) var(--lightningcss-dark, var(--highlight-400));
  --highlight-foreground: var(--lightningcss-light, #fff) var(--lightningcss-dark, var(--highlight-950));
  --highlight-soft: var(--lightningcss-light, var(--highlight-50)) var(--lightningcss-dark, color-mix(in oklab, var(--highlight-400) 14%, #181c25));
  --brand-gradient: linear-gradient(90deg, var(--brand-600), var(--highlight-500));
  --sidebar: var(--lightningcss-light, #fff) var(--lightningcss-dark, #141821);
  --sidebar-foreground: var(--lightningcss-light, var(--neutral-800)) var(--lightningcss-dark, #d9dde5);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--lightningcss-light, var(--brand-50)) var(--lightningcss-dark, color-mix(in oklab, var(--brand-400) 16%, #141821));
  --sidebar-accent-foreground: var(--lightningcss-light, var(--brand-700)) var(--lightningcss-dark, var(--brand-200));
  --sidebar-border: var(--border);
  --sidebar-ring: var(--ring);
  --chart-1: var(--lightningcss-light, var(--brand-600)) var(--lightningcss-dark, var(--brand-400));
  --chart-2: var(--lightningcss-light, var(--highlight-500)) var(--lightningcss-dark, var(--highlight-400));
  --chart-3: var(--lightningcss-light, #007f8a) var(--lightningcss-dark, #53b5c1);
  --chart-4: var(--lightningcss-light, #ba7700) var(--lightningcss-dark, #dd9225);
  --chart-5: var(--lightningcss-light, #8767ff) var(--lightningcss-dark, #a192ff);
  --status-online: var(--lightningcss-light, var(--success-600)) var(--lightningcss-dark, var(--success-400));
  --status-online-foreground: var(--lightningcss-light, #fff) var(--lightningcss-dark, var(--success-950));
  --status-online-soft: var(--lightningcss-light, var(--success-50)) var(--lightningcss-dark, color-mix(in oklab, var(--success-400) 14%, #181c25));
  --status-online-text: var(--lightningcss-light, var(--success-700)) var(--lightningcss-dark, var(--success-400));
  --status-partial: var(--lightningcss-light, var(--warning-400)) var(--lightningcss-dark, var(--warning-400));
  --status-partial-foreground: var(--warning-950);
  --status-partial-soft: var(--lightningcss-light, var(--warning-50)) var(--lightningcss-dark, color-mix(in oklab, var(--warning-400) 14%, #181c25));
  --status-partial-text: var(--lightningcss-light, var(--warning-700)) var(--lightningcss-dark, var(--warning-300));
  --status-offline: var(--lightningcss-light, var(--danger-600)) var(--lightningcss-dark, var(--danger-400));
  --status-offline-foreground: var(--lightningcss-light, #fff) var(--lightningcss-dark, var(--danger-950));
  --status-offline-soft: var(--lightningcss-light, var(--danger-50)) var(--lightningcss-dark, color-mix(in oklab, var(--danger-400) 14%, #181c25));
  --status-offline-text: var(--lightningcss-light, var(--danger-700)) var(--lightningcss-dark, var(--danger-400));
  --status-unbound: var(--lightningcss-light, var(--neutral-600)) var(--lightningcss-dark, var(--neutral-400));
  --status-unbound-foreground: var(--lightningcss-light, #fff) var(--lightningcss-dark, var(--neutral-950));
  --status-unbound-soft: var(--lightningcss-light, var(--neutral-100)) var(--lightningcss-dark, #1f2430);
  --status-unbound-text: var(--lightningcss-light, var(--neutral-700)) var(--lightningcss-dark, var(--neutral-300));
  --warning: var(--lightningcss-light, var(--warning-400)) var(--lightningcss-dark, var(--warning-400));
  --warning-foreground: var(--warning-950);
  --danger: var(--lightningcss-light, var(--danger-600)) var(--lightningcss-dark, var(--danger-400));
  --danger-foreground: var(--lightningcss-light, #fff) var(--lightningcss-dark, var(--danger-950));
  --success: var(--lightningcss-light, var(--success-600)) var(--lightningcss-dark, var(--success-400));
  --success-foreground: var(--lightningcss-light, #fff) var(--lightningcss-dark, var(--success-950));
  --info: var(--lightningcss-light, var(--info-600)) var(--lightningcss-dark, var(--info-400));
  --info-foreground: var(--lightningcss-light, #fff) var(--lightningcss-dark, var(--info-950));
  --tooltip: var(--lightningcss-light, var(--neutral-950)) var(--lightningcss-dark, var(--neutral-100));
  --tooltip-foreground: var(--lightningcss-light, var(--neutral-50)) var(--lightningcss-dark, var(--ink));
  --scrim: var(--lightningcss-light, #1418217a) var(--lightningcss-dark, #0000009e);
  --screen: var(--lightningcss-light, #e9edf4) var(--lightningcss-dark, #232834);
  --screen-foreground: var(--muted-foreground);
  --font-sans: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-jakarta, "Plus Jakarta Sans"), var(--font-sans);
  --font-mono: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "Cascadia Mono", "Roboto Mono", Menlo,
    monospace;
  --text-xs: .75rem;
  --text-sm: .8125rem;
  --text-base: .875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --tracking-display: -.02em;
  --tracking-code: .08em;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 10px);
  --radius-full: 9999px;
  --shadow-color: var(--lightningcss-light, #141821) var(--lightningcss-dark, #000);
  --shadow-xs: 0 1px 2px #1418210f;
  --shadow-sm: 0 1px 3px #14182114, 0 1px 2px -1px #1418210f;
  --shadow-md: 0 4px 12px -2px #14182114, 0 2px 4px -2px #1418210f;
  --shadow-lg: 0 16px 40px -12px #1418212e, 0 4px 8px -4px #1418210f;
  --shadow-brand: 0 6px 16px -6px color-mix(in oklab, var(--primary) 55%, transparent);
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;
  --duration-fast: .12s;
  --duration-base: .2s;
  --duration-slow: .32s;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --tv-background: var(--brand-50);
  --tv-background-end: var(--brand-100);
  --tv-surface: #fff;
  --tv-text: var(--ink);
  --tv-text-muted: var(--neutral-700);
  --tv-canvas: #000;
  --tv-canvas-ink-on-dark: var(--neutral-0);
  --tv-canvas-ink-on-light: var(--neutral-950);
}

:root.light {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
}

:root.dark {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}

:root.system {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root.system {
    --lightningcss-light: ;
    --lightningcss-dark: initial;
  }
}

[data-surface="tv"] {
  --tv-u: 2px;
  --tv-safe-x: calc(var(--tv-u) * 48);
  --tv-safe-y: calc(var(--tv-u) * 27);
  --tv-text-caption: calc(var(--tv-u) * 18);
  --tv-text-body: calc(var(--tv-u) * 21);
  --tv-text-title: calc(var(--tv-u) * 30);
  --tv-text-display: calc(var(--tv-u) * 40);
  --tv-text-code: calc(var(--tv-u) * 70);
  --tv-radius-sm: calc(var(--tv-u) * 8);
  --tv-radius-lg: calc(var(--tv-u) * 16);
  --tv-focus-width: calc(var(--tv-u) * 3);
}

/* [project]/packages/ui/src/styles.css [app-client] (css) */
*, :before, :after {
  box-sizing: border-box;
}

html {
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

@media (min-width: 48rem) {
  body {
    font-size: var(--text-base);
  }
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
}

:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: var(--focus-ring-offset);
}

::selection {
  background: var(--brand-200);
  color: var(--ink);
}

.rt-sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.rt-icon {
  flex: none;
}

.rt-brand-mark {
  flex: none;
  display: block;
}

.rt-button {
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.5rem;
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--text-base);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-fast) linear,
    border-color var(--duration-fast) linear,
    box-shadow var(--duration-fast) linear,
    transform var(--duration-fast) var(--ease-out);
  border: 1px solid #0000;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
}

@media (max-width: 47.99rem) {
  .rt-button {
    min-height: 2.75rem;
  }
}

.rt-button:disabled, .rt-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
}

.rt-button--sm {
  min-height: 2rem;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
}

.rt-button--lg {
  min-height: 3rem;
  padding: 0 var(--space-5);
  font-size: var(--text-md);
  border-radius: var(--radius-lg);
}

.rt-button--block {
  width: 100%;
}

.rt-button--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.rt-button--primary:hover:not(:disabled) {
  background: color-mix(in oklab, var(--primary) 88%, var(--ink));
}

.rt-button--secondary {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}

.rt-button--secondary:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--brand-200);
}

.rt-button--ghost {
  color: var(--muted-foreground);
  background: none;
}

.rt-button--ghost:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-foreground);
}

.rt-button--destructive {
  background: var(--destructive);
  color: var(--destructive-foreground);
}

.rt-button--destructive:hover:not(:disabled) {
  background: color-mix(in oklab, var(--destructive) 88%, var(--ink));
}

.rt-field {
  flex-direction: column;
  gap: .375rem;
  min-width: 0;
  display: flex;
}

.rt-label {
  font-size: var(--text-sm);
  color: var(--foreground);
  font-weight: 600;
}

.rt-label__required {
  color: var(--destructive);
  margin-inline-start: .125rem;
}

.rt-field__hint {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

.rt-field__label-row {
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  display: flex;
}

.rt-field__label-row a {
  font-size: var(--text-sm);
  color: var(--brand-text);
  font-weight: 500;
  text-decoration: none;
}

.rt-field__label-row a:hover {
  text-underline-offset: .2em;
  text-decoration: underline;
}

.rt-field__error {
  font-size: var(--text-sm);
  color: var(--status-offline-text);
  margin: 0;
  font-weight: 500;
}

.rt-input, .rt-select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  font-size: var(--text-md);
  transition: border-color var(--duration-fast) linear,
    box-shadow var(--duration-fast) linear;
}

@media (min-width: 48rem) {
  .rt-input, .rt-select {
    font-size: var(--text-base);
  }
}

.rt-input::placeholder {
  color: var(--muted-foreground);
}

.rt-input:focus-visible, .rt-select:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 var(--focus-ring-width) color-mix(in oklab, var(--ring) 22%, transparent);
  outline: none;
}

.rt-input:disabled, .rt-select:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.rt-input[aria-invalid="true"], .rt-select[aria-invalid="true"] {
  border-color: var(--destructive);
  border-width: 2px;
}

.rt-select {
  appearance: auto;
  padding-inline-end: var(--space-2);
}

.rt-card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.rt-card__header {
  padding: var(--space-5) var(--space-5) 0;
  gap: var(--space-1);
  flex-direction: column;
  display: flex;
}

.rt-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-display);
  margin: 0;
  font-weight: 800;
  line-height: 1.3;
}

.rt-card__description {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

.rt-card__content {
  padding: var(--space-5);
}

.rt-card__footer {
  padding: 0 var(--space-5) var(--space-5);
  gap: var(--space-2);
  display: flex;
}

.rt-spinner {
  border: .15em solid;
  vertical-align: -.125em;
  border-inline-end-color: #0000;
  border-radius: 50%;
  width: 1em;
  height: 1em;
  animation: .7s linear infinite rt-spin;
  display: inline-block;
}

.rt-spinner--lg {
  width: 2rem;
  height: 2rem;
}

@keyframes rt-spin {
  to {
    transform: rotate(360deg);
  }
}

.rt-alert {
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--card-foreground);
  font-size: var(--text-sm);
  flex-direction: column;
  line-height: 1.45;
  display: flex;
}

.rt-alert__title {
  font-size: var(--text-base);
  margin: 0;
  font-weight: 700;
}

.rt-alert--info {
  background: var(--accent);
  border-color: var(--brand-100);
  color: var(--accent-foreground);
}

.rt-alert--success {
  background: var(--status-online-soft);
  border-color: color-mix(in oklab, var(--status-online) 25%, transparent);
  color: var(--status-online-text);
}

.rt-alert--warning {
  background: var(--status-partial-soft);
  border-color: color-mix(in oklab, var(--status-partial) 40%, transparent);
  color: var(--status-partial-text);
}

.rt-alert--danger {
  background: var(--status-offline-soft);
  border-color: color-mix(in oklab, var(--status-offline) 25%, transparent);
  color: var(--status-offline-text);
}

.rt-alert--success .rt-alert__title, .rt-alert--warning .rt-alert__title, .rt-alert--danger .rt-alert__title {
  color: inherit;
}

.rt-code {
  max-width: 100%;
  display: inline-flex;
  position: relative;
}

.rt-code__cells {
  pointer-events: none;
  align-items: center;
  gap: 6px;
  display: flex;
}

.rt-code__group-wrap, .rt-code__group {
  align-items: center;
  gap: 6px;
  display: flex;
}

.rt-code__cell {
  border: 1.5px solid var(--input);
  border-radius: var(--radius-md);
  background: var(--card);
  width: 36px;
  height: 48px;
  color: var(--foreground);
  font-family: var(--font-mono);
  transition: border-color var(--duration-fast) linear,
    box-shadow var(--duration-fast) linear;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: grid;
}

.rt-code__cell[data-filled] {
  border-color: var(--brand-300);
  background: var(--accent);
}

.rt-code__dash {
  background: var(--neutral-400);
  border-radius: 2px;
  width: 12px;
  height: 3px;
}

.rt-code__input {
  border-radius: var(--radius-md);
  color: #0000;
  caret-color: #0000;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: text;
  appearance: none;
  background: none;
  border: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px;
  position: absolute;
  inset: 0;
}

.rt-code__input::placeholder {
  color: #0000;
}

.rt-code__input::selection {
  background: none;
}

.rt-code__input:focus-visible {
  outline: none;
}

.rt-code:focus-within .rt-code__cell[data-active] {
  border-color: var(--ring);
  box-shadow: 0 0 0 var(--focus-ring-width) color-mix(in oklab, var(--ring) 22%, transparent);
}

.rt-code:focus-within .rt-code__cell[data-active]:not([data-filled]):after {
  content: "";
  background: var(--ring);
  width: 2px;
  height: 55%;
  animation: 1s step-end infinite rt-caret;
}

.rt-code--invalid .rt-code__cell {
  border-color: var(--danger);
  background: var(--status-offline-soft);
}

@media (max-width: 29.99rem) {
  .rt-code__cells, .rt-code__group-wrap, .rt-code__group {
    gap: 4px;
  }

  .rt-code__cell {
    width: clamp(1.75rem, 7.6vw, 36px);
    height: 46px;
    font-size: clamp(18px, 5.4vw, 22px);
  }
}

@keyframes rt-caret {
  50% {
    opacity: 0;
  }
}

@media (min-width: 48rem) {
  .rt-code--lg .rt-code__cell {
    border-radius: var(--radius-lg);
    width: 52px;
    height: 64px;
    font-size: 30px;
  }

  .rt-code--lg .rt-code__cells, .rt-code--lg .rt-code__group-wrap, .rt-code--lg .rt-code__group {
    gap: 8px;
  }
}

.rt-status-badge {
  border-radius: var(--radius-full);
  min-height: 1.5rem;
  font-size: var(--text-sm);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 8px;
  font-weight: 600;
  line-height: 1.5;
  display: inline-flex;
}

.rt-status-badge__icon {
  background: currentColor;
  border-radius: 50%;
  flex: none;
  width: 8px;
  height: 8px;
}

.rt-status-badge__icon[data-shape="half"] {
  background: linear-gradient(90deg, currentColor 50%, #0000 0);
  border: 1.5px solid;
  width: 9px;
  height: 9px;
}

.rt-status-badge__icon[data-shape="ring"] {
  background: none;
  border: 2px solid;
}

.rt-status-badge__icon[data-shape="dashed"] {
  background: none;
  border: 1.5px dashed;
}

.rt-status-badge--online, .rt-status-badge--success {
  background: var(--status-online-soft);
  color: var(--status-online-text);
}

.rt-status-badge--partial, .rt-status-badge--progress {
  background: var(--status-partial-soft);
  color: var(--status-partial-text);
}

.rt-status-badge--offline, .rt-status-badge--danger {
  background: var(--status-offline-soft);
  color: var(--status-offline-text);
}

.rt-status-badge--unbound, .rt-status-badge--neutral {
  background: var(--status-unbound-soft);
  color: var(--status-unbound-text);
}

.rt-dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--popover);
  width: min(28rem, 100vw - 2rem);
  color: var(--popover-foreground);
  box-shadow: var(--shadow-lg);
  padding: 0;
}

.rt-dialog::backdrop {
  background: color-mix(in oklab, var(--ink) 45%, transparent);
}

.rt-dialog__body {
  gap: var(--space-3);
  padding: var(--space-5);
  flex-direction: column;
  display: flex;
}

.rt-dialog__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-display);
  margin: 0;
  font-weight: 800;
}

.rt-dialog__description {
  color: var(--muted-foreground);
  font-size: var(--text-base);
}

.rt-dialog__description p {
  margin: 0;
}

.rt-dialog__error {
  color: var(--status-offline-text);
  margin: 0;
  font-weight: 500;
}

.rt-dialog__actions {
  justify-content: flex-end;
  gap: var(--space-2);
  flex-wrap: wrap;
  display: flex;
}

.rt-spin {
  animation: 1s linear infinite rt-spin;
}

.rt-kbd {
  border: 1px solid var(--border);
  min-width: 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  border-bottom-width: 2px;
  border-radius: 4px;
  place-items: center;
  padding: 0 .3125rem;
  line-height: 1.4;
  display: inline-grid;
}

.rt-icon-button {
  border-radius: var(--radius-md);
  width: 2rem;
  height: 2rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color var(--duration-fast) linear,
    border-color var(--duration-fast) linear,
    color var(--duration-fast) linear;
  background: none;
  border: 1px solid #0000;
  flex: none;
  place-items: center;
  padding: 0;
  display: inline-grid;
}

.rt-icon-button:hover, .rt-icon-button[aria-expanded="true"] {
  background: var(--secondary);
  color: var(--foreground);
}

.rt-icon-button--bordered {
  border-color: var(--border);
  background: var(--card);
}

.rt-icon-button--emphasis {
  border-color: var(--brand-200);
  background: var(--accent);
  color: var(--brand-text);
}

.rt-icon-button--emphasis:hover {
  background: var(--brand-100);
  color: var(--brand-text);
}

.rt-icon-button[aria-disabled="true"] {
  cursor: not-allowed;
  color: var(--muted-foreground);
  background: none;
}

.rt-icon-button[aria-busy="true"] {
  cursor: progress;
  color: var(--info);
}

@media (pointer: coarse) {
  .rt-icon-button {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.rt-tooltip {
  z-index: 90;
  border-radius: var(--radius-md);
  background: var(--tooltip);
  max-width: 17.5rem;
  color: var(--tooltip-foreground);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
  pointer-events: none;
  padding: 7px 10px;
  font-weight: 400;
  line-height: 1.4;
  position: fixed;
}

.rt-tooltip__title {
  margin-bottom: 2px;
  font-weight: 600;
  display: block;
}

.rt-tooltip__kbd {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  opacity: .8;
  margin-inline-start: 6px;
}

.rt-tooltip__arrow {
  background: var(--tooltip);
  width: 8px;
  height: 8px;
  position: absolute;
  transform: translate(-50%, -50%) rotate(45deg);
}

.rt-tooltip[data-side="top"] .rt-tooltip__arrow {
  top: 100%;
}

.rt-tooltip[data-side="bottom"] .rt-tooltip__arrow {
  top: 0;
}

.rt-tooltip[data-side="left"] .rt-tooltip__arrow {
  left: 100%;
}

.rt-tooltip[data-side="right"] .rt-tooltip__arrow {
  left: 0;
}

.rt-popover, .rt-menu {
  z-index: 70;
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: fixed;
}

.rt-popover {
  width: 21.25rem;
}

.rt-popover:focus {
  outline: none;
}

.rt-menu {
  z-index: 75;
  min-width: 13.75rem;
  padding: 4px;
}

.rt-menu__item {
  border-radius: var(--radius-md);
  width: 100%;
  color: inherit;
  font: inherit;
  font-size: var(--text-base);
  text-align: start;
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  display: flex;
}

.rt-menu__item:hover, .rt-menu__item:focus-visible {
  background: var(--secondary);
  outline: none;
}

.rt-menu__item--danger {
  color: var(--status-offline-text);
}

.rt-menu__separator {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.rt-modal {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--popover);
  width: min(40rem, 100vw - 2rem);
  max-width: none;
  max-height: min(86vh, 47.5rem);
  color: var(--popover-foreground);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}

.rt-modal[open] {
  flex-direction: column;
  display: flex;
}

.rt-modal--lg {
  width: min(54rem, 100vw - 2rem);
}

.rt-modal::backdrop {
  background: var(--scrim);
}

.rt-modal__panel {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
}

.rt-modal__panel:focus {
  outline: none;
}

.rt-modal__head {
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-3);
  display: flex;
}

.rt-modal__icon {
  border-radius: var(--radius-lg);
  background: var(--accent);
  width: 2.25rem;
  height: 2.25rem;
  color: var(--brand-text);
  flex: none;
  place-items: center;
  display: grid;
}

.rt-modal__heading {
  min-width: 0;
}

.rt-modal__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin: 0;
  font-weight: 700;
}

.rt-modal__description {
  color: var(--muted-foreground);
  margin-top: 2px;
}

.rt-modal__close {
  margin-inline-start: auto;
}

.rt-modal__body {
  gap: var(--space-5);
  padding: var(--space-1) var(--space-5) var(--space-5);
  min-height: 0;
  display: grid;
  overflow-y: auto;
}

.rt-modal__foot {
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  display: flex;
}

.rt-modal--sheet-end, .rt-modal--sheet-start {
  border-block: 0;
  border-radius: 0;
  width: min(27.5rem, 100vw);
  height: 100dvh;
  max-height: none;
  margin: 0;
}

.rt-modal--sheet-end {
  border-inline-end: 0;
  margin-inline-start: auto;
}

.rt-modal--sheet-start {
  border-inline-start: 0;
  width: min(18.75rem, 86vw);
  margin-inline-end: auto;
}

.rt-popover-sheet .rt-modal__head {
  padding-bottom: 0;
}

.rt-popover-sheet .rt-modal__body {
  padding: 0 0 var(--space-3);
}

@media (max-width: 40rem) {
  .rt-modal--center {
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    width: 100%;
    max-height: 90dvh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-bottom: 0;
    margin: auto 0 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rt-modal[open] {
    animation: rt-fade-in var(--duration-fast) var(--ease-out);
  }
}

@keyframes rt-fade-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-spinner {
    animation-duration: 2s;
  }

  .rt-button, .rt-input, .rt-select, .rt-code__cell, .rt-icon-button {
    transition: none;
  }

  .rt-spin {
    animation-duration: 2s;
  }

  .rt-code:focus-within .rt-code__cell[data-active]:not([data-filled]):after {
    animation: none;
  }
}

/* [project]/apps/web/src/app/globals.css [app-client] (css) */
.skip-link {
  inset-inline-start: .5rem;
  z-index: 60;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  position: absolute;
  top: -4rem;
}

.skip-link:focus {
  top: .5rem;
}

.muted-text {
  color: var(--muted-foreground);
}

.chip {
  border-radius: var(--radius-full);
  background: var(--muted);
  min-height: 1.625rem;
  color: var(--secondary-foreground);
  font-size: var(--text-sm);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-weight: 600;
  display: inline-flex;
}

.chip--brand {
  background: var(--card);
  color: var(--accent-foreground);
  border: 1px solid var(--brand-200);
}

.chip--code {
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

.avatar {
  background: var(--muted);
  width: 2.125rem;
  height: 2.125rem;
  color: var(--secondary-foreground);
  font-size: var(--text-sm);
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-weight: 700;
  display: grid;
}

.segmented {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.segmented__legend {
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  padding: 0;
  font-weight: 600;
}

.segmented__options {
  border-radius: var(--radius-lg);
  background: var(--muted);
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  display: inline-flex;
}

.segmented__option, .segmented__button {
  min-height: 2.25rem;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: var(--lightningcss-light, var(--neutral-700)) var(--lightningcss-dark, var(--muted-foreground));
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  display: inline-flex;
  position: relative;
}

.segmented__option input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}

.segmented__button[aria-pressed="true"] {
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
}

.segmented__option:has(input:checked) {
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
}

.segmented__option:has(input:focus-visible) {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: 1px;
}

.segmented__option:hover, .segmented__button:hover {
  color: var(--foreground);
}

.progress {
  background: var(--brand-100);
  width: 100%;
  height: 8px;
  accent-color: var(--primary);
  appearance: none;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
}

.progress::-webkit-progress-bar {
  background: var(--brand-100);
}

.progress::-webkit-progress-value {
  background: var(--primary);
  border-radius: 4px;
}

.progress::-moz-progress-bar {
  background: var(--primary);
  border-radius: 4px;
}

.progress[data-full]::-webkit-progress-value {
  background: var(--warning);
}

.progress[data-full]::-moz-progress-bar {
  background: var(--warning);
}

.auth-layout {
  background: var(--background);
  flex-direction: column;
  min-height: 100dvh;
  display: flex;
}

.login {
  grid-template-rows: var(--space-12) auto 1fr auto;
  padding: 0 var(--space-4);
  flex: 1;
  justify-items: center;
  display: grid;
}

.login__column {
  grid-row: 2;
  width: 100%;
  max-width: 23rem;
}

.login__brand {
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-display);
  color: var(--foreground);
  font-weight: 700;
  line-height: 1;
  display: flex;
}

.login__title {
  margin: 0 0 var(--space-6);
  font-size: var(--text-2xl);
  font-weight: 700;
}

.login__note {
  gap: var(--space-3);
  margin: 0 0 var(--space-6);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  grid-template-columns: auto 1fr;
  line-height: 1.45;
  display: grid;
}

.login__note p {
  margin: 0;
}

.login__note .rt-icon {
  margin-top: .125rem;
}

.login__note-title {
  color: var(--foreground);
  font-size: var(--text-base);
  font-weight: 600;
  display: block;
}

.login__code {
  font-family: var(--font-mono);
  white-space: nowrap;
  font-weight: 700;
}

.auth-form {
  gap: var(--space-4);
  flex-direction: column;
  display: flex;
}

.login__submit {
  margin-top: var(--space-2);
  min-height: 2.75rem;
}

.login__foot {
  padding: var(--space-8) 0 var(--space-6);
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  text-align: center;
  grid-row: 4;
}

.login__foot a {
  color: inherit;
}

@media (min-width: 48rem) {
  .login {
    grid-template-rows: 1fr auto 1.4fr auto;
  }
}

.password-field {
  position: relative;
}

.password-field > .rt-input {
  padding-inline-end: 2.75rem;
}

.password-field__toggle {
  border-radius: var(--radius-md);
  width: 2.75rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color var(--duration-fast) linear;
  background: none;
  border: 0;
  place-items: center;
  padding: 0;
  display: grid;
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
}

.password-field__toggle:hover:not(:disabled) {
  color: var(--foreground);
}

.password-field__toggle:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.password-field__toggle:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: -.375rem;
}

.new-password {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.password-rules {
  flex-direction: column;
  gap: .5rem;
  margin-top: .625rem;
  display: flex;
}

.password-strength {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.password-strength__bar {
  flex: 1;
  grid-template-columns: repeat(4, 1fr);
  gap: .25rem;
  max-width: 12rem;
  display: grid;
}

.password-strength__segment {
  background: var(--border);
  height: .25rem;
  transition: background-color var(--duration-fast) linear;
  border-radius: .125rem;
}

.password-strength[data-level="weak"] .password-strength__segment[data-on] {
  background: var(--status-offline);
}

.password-strength[data-level="medium"] .password-strength__segment[data-on] {
  background: var(--status-partial);
}

.password-strength[data-level="good"] .password-strength__segment[data-on], .password-strength[data-level="strong"] .password-strength__segment[data-on] {
  background: var(--status-online);
}

.password-strength__label {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  white-space: nowrap;
  margin: 0;
}

.password-rules__list {
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.password-rules__item, .password-match {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  align-items: flex-start;
  gap: .5rem;
  margin: 0;
  line-height: 1.25rem;
  display: flex;
}

.password-rules__item > .rt-icon, .password-match > .rt-icon {
  margin-top: .125rem;
}

.password-rules__item[data-status="met"], .password-match[data-match="true"] {
  color: var(--status-online-text);
}

.password-rules__item[data-status="failed"] {
  color: var(--status-offline-text);
}

.password-match:not(:empty) {
  margin-top: .5rem;
}

.mini-tv {
  aspect-ratio: 16 / 9;
  border: 10px solid var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  border-radius: 14px;
  overflow: hidden;
}

.mini-tv__screen {
  background: linear-gradient(160deg, var(--tv-background), var(--tv-background-end));
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6%;
  height: 100%;
  padding: 0 7%;
  display: grid;
}

.mini-tv__code {
  align-items: center;
  gap: 3%;
  display: flex;
}

.mini-tv__group {
  align-items: center;
  gap: 4px;
  display: flex;
}

.mini-tv__cell {
  border: 2px solid var(--brand-200);
  background: var(--brand-50);
  width: 1.7em;
  height: 2.5em;
  color: var(--ink);
  font-family: var(--font-mono);
  border-radius: 6px;
  place-items: center;
  font-size: clamp(.625rem, 1.4vw, 1.125rem);
  font-weight: 800;
  display: grid;
}

.mini-tv__dash {
  background: var(--neutral-400);
  border-radius: 2px;
  width: .7em;
  height: 3px;
  margin-inline-end: 4px;
}

.mini-tv__qr {
  aspect-ratio: 1;
  border: 6px solid var(--neutral-0);
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--neutral-0) 0 50%) 0 0 / 14px 14px;
  outline: 3px solid var(--highlight-500);
  outline-offset: 4px;
  border-radius: 6px;
  width: 7em;
}

.mini-tv--help {
  border-width: 6px;
  border-radius: 12px;
}

.mini-tv--help .mini-tv__cell {
  border-width: 1.5px;
  font-size: .6875rem;
}

.mini-tv--help .mini-tv__screen {
  padding: 0 5%;
}

.mini-tv--help .mini-tv__qr {
  outline-offset: 2px;
  border-width: 4px;
  outline-width: 2px;
  width: 4em;
}

.app-shell {
  background: var(--background);
  grid-template: "topbar"
                 "sidebar"
                 "main" 1fr
                 / minmax(0, 1fr);
  min-height: 100dvh;
  display: grid;
}

.app-topbar {
  z-index: 30;
  align-items: center;
  gap: var(--space-3);
  min-height: 3.5rem;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  grid-area: topbar;
  display: flex;
  position: sticky;
  top: 0;
}

.app-topbar__end {
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: auto;
  display: flex;
}

.app-menu-toggle {
  padding: 0 var(--space-2);
  display: inline-flex;
}

.app-brand {
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  color: var(--foreground);
  font-family: var(--font-display);
  letter-spacing: var(--tracking-display);
  font-weight: 800;
  text-decoration: none;
  display: flex;
}

.app-brand__name {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.app-brand--topbar {
  font-size: var(--text-md);
}

.app-brand--sidebar {
  font-size: var(--text-lg);
  padding: var(--space-1) var(--space-2) var(--space-3);
  display: none;
}

.app-sidebar {
  gap: var(--space-3);
  padding: var(--space-4) var(--space-3);
  background: var(--sidebar);
  color: var(--sidebar-foreground);
  border-bottom: 1px solid var(--sidebar-border);
  flex-direction: column;
  grid-area: sidebar;
  display: none;
}

.app-sidebar[data-open="true"] {
  display: flex;
}

.app-tenant-switcher {
  gap: var(--space-1);
  min-width: 0;
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-direction: column;
  display: flex;
}

.app-tenant-switcher .rt-label {
  font-size: var(--text-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-weight: 700;
}

.app-tenant-switcher .rt-select {
  border-color: var(--border);
  min-height: 2.5rem;
  font-weight: 600;
}

.app-nav {
  gap: var(--space-2);
  flex-direction: column;
  display: flex;
}

.app-nav-label {
  margin: var(--space-2) var(--space-2) var(--space-1);
  font-size: var(--text-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-weight: 700;
}

.app-nav-list {
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.app-nav-link, .app-nav-soon {
  align-items: center;
  gap: var(--space-3);
  min-height: 2.75rem;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  position: relative;
}

.app-nav-icon {
  color: var(--muted-foreground);
}

.app-nav-text {
  flex: 1;
  min-width: 0;
}

.app-nav-link:hover {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
}

.app-nav-link[aria-current="page"] {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
  font-weight: 650;
}

.app-nav-link[aria-current="page"] .app-nav-icon {
  color: var(--brand-text);
}

.app-nav-link[aria-current="page"]:before {
  content: "";
  inset-inline-start: -.75rem;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
  width: 3px;
  position: absolute;
  top: 8px;
  bottom: 8px;
}

.app-nav-soon {
  color: var(--muted-foreground);
}

.app-nav-badge {
  font-size: var(--text-xs);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  padding: .0625rem .5rem;
  font-weight: 600;
}

.app-main {
  min-width: 0;
  padding: var(--space-6) var(--space-4) var(--space-12);
  grid-area: main;
}

.app-main:focus {
  outline: none;
}

.user-menu {
  position: relative;
}

.user-menu__toggle {
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0 var(--space-2) 0 var(--space-1);
  border-radius: var(--radius-full);
  color: var(--foreground);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  font-weight: 600;
  display: inline-flex;
}

.user-menu__toggle:hover {
  background: var(--accent);
}

.user-menu__name {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.user-menu__panel {
  inset-inline-end: 0;
  z-index: 45;
  width: min(18rem, 100vw - 2rem);
  padding: var(--space-4);
  gap: var(--space-4);
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  display: flex;
  position: absolute;
  top: calc(100% + .375rem);
}

.user-menu__who p {
  margin: 0;
}

.user-menu__user {
  font-weight: 700;
}

.user-menu__email, .user-menu__role {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  overflow-wrap: anywhere;
}

.user-menu__account {
  min-height: 2.75rem;
  margin-inline: calc(var(--space-2) * -1);
  width: calc(100% + var(--space-4));
  justify-content: flex-start;
  text-decoration: none;
}

.user-menu__panel .segmented__options {
  display: flex;
}

.user-menu__panel .segmented__option {
  padding: 0 var(--space-2);
  flex: 1;
}

@media (min-width: 48rem) {
  .user-menu__name {
    clip-path: none;
    text-overflow: ellipsis;
    vertical-align: middle;
    width: auto;
    max-width: 12rem;
    height: auto;
    display: inline-block;
    position: static;
  }

  .app-main {
    padding: var(--space-8) var(--space-8) var(--space-16);
  }
}

@media (min-width: 64rem) {
  .app-shell {
    grid-template: "sidebar topbar"
                   "sidebar main" 1fr
                   / 16rem minmax(0, 1fr);
  }

  .app-topbar {
    min-height: 3.75rem;
    padding: 0 var(--space-8);
  }

  .app-menu-toggle, .app-brand--topbar {
    display: none;
  }

  .app-sidebar, .app-sidebar[data-open="true"] {
    border-bottom: 0;
    border-inline-end: 1px solid var(--sidebar-border);
    height: 100dvh;
    display: flex;
    position: sticky;
    top: 0;
    overflow-y: auto;
  }

  .app-brand--sidebar {
    display: flex;
  }

  .app-nav-link, .app-nav-soon {
    min-height: 2.375rem;
  }
}

.page-title {
  margin: 0 0 var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-display);
  font-weight: 800;
  line-height: var(--leading-tight);
}

.page-title--flush {
  margin: 0;
}

.page-subtitle {
  max-width: 48rem;
  color: var(--muted-foreground);
  margin: 0;
}

@media (min-width: 48rem) {
  .page-title {
    font-size: var(--text-3xl);
  }
}

.page-stack {
  gap: var(--space-6);
  flex-direction: column;
  display: flex;
}

.page-narrow {
  max-width: 40rem;
}

.page-header {
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  flex-wrap: wrap;
  display: flex;
}

.page-header__title {
  gap: var(--space-1);
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.page-header__meta {
  align-items: center;
  gap: var(--space-2);
  color: var(--muted-foreground);
  flex-wrap: wrap;
  margin: 0;
  display: flex;
}

.page-header__actions, .form-actions {
  gap: var(--space-2);
  flex-wrap: wrap;
  display: flex;
}

.breadcrumb {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

.breadcrumb a, .data-table__link, .stat__link {
  color: var(--brand-text);
  text-underline-offset: .2em;
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb a:hover, .data-table__link:hover, .stat__link:hover {
  text-decoration: underline;
}

.section-head {
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
  display: flex;
}

.section-head p {
  margin: 0;
}

.section-title {
  font-size: var(--text-xl);
  margin: 0;
  font-weight: 800;
}

.form-stack {
  gap: var(--space-4);
  flex-direction: column;
  display: flex;
}

.form-grid {
  gap: var(--space-4) var(--space-5);
  grid-template-columns: 1fr;
  display: grid;
}

@media (min-width: 48rem) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.alert-text {
  margin: 0 0 var(--space-2);
}

.focus-target:focus {
  outline: none;
}

.focus-target:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: 2px;
}

.status-page {
  min-height: 60dvh;
  padding: var(--space-6) var(--space-4);
  place-items: center;
  display: grid;
}

.status-page .rt-card {
  width: 100%;
  max-width: 32rem;
}

.list-filters {
  gap: var(--space-3);
  grid-template-columns: 1fr;
  display: grid;
}

@media (min-width: 40rem) {
  .list-filters {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    max-width: 48rem;
  }

  .list-filters--3 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    max-width: 56rem;
  }
}

.input-with-spinner {
  position: relative;
}

.input-with-spinner__spinner {
  inset-inline-end: .75rem;
  color: var(--muted-foreground);
  margin-top: -.5em;
  position: absolute;
  top: 50%;
}

.filter-chip {
  min-height: 2.5rem;
  padding: 0 var(--space-3);
  border: 1px dashed var(--neutral-400);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--secondary-foreground);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  display: inline-flex;
}

.filter-chip:hover {
  border-color: var(--brand-300);
}

.filter-chip[data-active] {
  border-style: solid;
  border-color: var(--brand-200);
  background: var(--accent);
  color: var(--accent-foreground);
}

.data-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: var(--text-base);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.data-table th, .data-table td {
  padding: 12px var(--space-4);
  text-align: start;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.data-table thead th {
  font-size: var(--text-xs);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  background: color-mix(in oklab, var(--muted) 60%, var(--card));
  padding-block: 10px;
  font-weight: 700;
}

.data-table tbody th {
  font-weight: 600;
}

.data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.data-table tbody tr:hover > * {
  background: color-mix(in oklab, var(--accent) 60%, var(--card));
}

.data-table .num {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.data-table__link {
  overflow-wrap: anywhere;
}

@media (max-width: 47.99rem) {
  .data-table {
    box-shadow: none;
    background: none;
    border: 0;
    overflow: visible;
  }

  .data-table thead {
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
  }

  .data-table, .data-table tbody, .data-table tr, .data-table td, .data-table tbody th {
    display: block;
  }

  .data-table tr {
    margin-bottom: var(--space-3);
    padding: var(--space-2) 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-xs);
  }

  .data-table td, .data-table tbody th {
    gap: var(--space-2);
    padding: 6px var(--space-3);
    text-align: start;
    border-bottom: 0;
    grid-template-columns: 8rem 1fr;
    display: grid;
  }

  .data-table .num {
    text-align: start;
  }

  .data-table td:before, .data-table tbody th:before {
    content: attr(data-label);
    font-size: var(--text-sm);
    color: var(--muted-foreground);
    font-weight: 600;
  }

  .data-table tbody tr:hover > * {
    background: none;
  }
}

.table-card {
  position: relative;
}

.table-card[data-updating] .data-table {
  opacity: .7;
}

.table-card__status {
  inset-inline-end: var(--space-3);
  top: calc(-1 * var(--space-6));
  font-size: var(--text-sm);
  margin: 0;
  position: absolute;
}

.tag-list {
  gap: var(--space-1);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.tag-list li {
  padding: 0 var(--space-2);
  border-radius: var(--radius-full);
  background: var(--muted);
  font-size: var(--text-sm);
}

.empty-state {
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px dashed var(--neutral-300);
  border-radius: var(--radius-xl);
  background: var(--card);
  flex-direction: column;
  display: flex;
}

.empty-state p {
  margin: 0;
}

.pagination {
  align-items: center;
  gap: var(--space-3);
  display: flex;
}

.kpi-grid {
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

@media (min-width: 64rem) {
  .kpi-grid {
    gap: var(--space-4);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kpi {
  align-items: flex-start;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-4) var(--space-5);
  color: var(--foreground);
  transition: border-color var(--duration-fast) linear,
    box-shadow var(--duration-fast) linear;
  flex-direction: column;
  text-decoration: none;
  display: flex;
}

.kpi:hover {
  border-color: var(--ring);
  box-shadow: 0 0 0 1px var(--ring),
    var(--shadow-sm);
}

.kpi__value, .stat__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.1;
}

.summary-grid {
  gap: var(--space-4);
  grid-template-columns: 1fr;
  display: grid;
}

@media (min-width: 48rem) {
  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stat-grid {
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  display: grid;
}

@media (min-width: 64rem) {
  .stat-grid {
    gap: var(--space-4);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat {
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  flex-direction: column;
  display: flex;
}

.stat--wide {
  gap: var(--space-2);
}

.stat__label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  letter-spacing: 0;
  color: var(--muted-foreground);
  margin: 0;
  font-weight: 600;
}

.stat dd {
  margin: 0;
}

.stat__value {
  font-size: var(--text-2xl);
  margin: 0;
}

.stat--wide .stat__value {
  font-size: var(--text-xl);
}

.stat__hint {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

.stat__list {
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.stat__link {
  font-size: var(--text-sm);
  margin-top: auto;
}

.chart-card {
  gap: var(--space-4);
  padding: var(--space-5);
  display: grid;
}

.table-card__more {
  padding: var(--space-3);
  border-top: 1px solid var(--border);
  justify-content: center;
  display: flex;
}

.report-channels {
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  max-width: 16rem;
  display: inline-block;
  overflow: hidden;
}

.bar-chart {
  gap: var(--space-3);
  height: 14rem;
  padding-top: var(--space-2);
  grid-template-columns: auto 1fr;
  display: grid;
}

.bar-chart__axis {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  text-align: end;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 1.75rem;
  display: flex;
}

.bar-chart__tick {
  line-height: 0;
}

.bar-chart__plot {
  min-width: 0;
  position: relative;
}

.bar-chart__grid {
  pointer-events: none;
  flex-direction: column;
  justify-content: space-between;
  display: flex;
  position: absolute;
  inset: 0 0 1.75rem;
}

.bar-chart__grid span {
  border-top: 1px solid var(--border);
}

.bar-chart__grid span:last-child {
  border-top-color: var(--neutral-300);
}

.bar-chart__bars {
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 2px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  position: relative;
}

.bar-chart__item {
  border-radius: var(--radius-sm);
  cursor: default;
  flex-direction: column;
  align-items: center;
  display: flex;
  position: relative;
}

.bar-chart__item:hover, .bar-chart__item:focus-visible {
  background: color-mix(in oklab, var(--accent) 70%, transparent);
}

.bar-chart__track {
  flex: 1;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  display: flex;
  position: relative;
}

.bar-chart__bar {
  background: var(--chart-1);
  border-radius: 4px 4px 0 0;
  width: min(2.5rem, 60%);
  min-height: 2px;
}

.bar-chart__bar[data-zero] {
  background: var(--neutral-300);
}

.bar-chart__value {
  font-size: var(--text-xs);
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -4px);
}

.bar-chart__label {
  height: 1.75rem;
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  white-space: nowrap;
  align-items: center;
  display: flex;
}

.bar-chart__tooltip {
  z-index: 5;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  white-space: nowrap;
  pointer-events: none;
  padding: 6px 10px;
  display: none;
  position: absolute;
  bottom: calc(100% - 1rem);
  left: 50%;
  transform: translateX(-50%);
}

.bar-chart__item:hover .bar-chart__tooltip, .bar-chart__item:focus-visible .bar-chart__tooltip {
  display: block;
}

.report-filters {
  align-items: flex-start;
  gap: var(--space-5) var(--space-8);
  padding: var(--space-5);
  flex-wrap: wrap;
  display: flex;
}

.report-filters fieldset {
  gap: var(--space-2);
  border: 0;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
}

.report-filters__legend {
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  padding: 0;
  font-weight: 600;
}

.report-filters__dates {
  gap: var(--space-3);
  flex-wrap: wrap;
  display: flex;
}

.report-filters__dates .rt-field {
  width: 11rem;
}

.report-filters__entities {
  align-items: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
  display: flex;
}

.report-note {
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
  display: flex;
}

.report-notes {
  gap: var(--space-1);
  flex-direction: column;
  display: flex;
}

.report-filters__group .rt-field {
  min-width: 11rem;
}

.report-filters__clear {
  align-self: flex-end;
}

.report-figures {
  gap: var(--space-3) var(--space-8);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  flex-wrap: wrap;
  margin: 0;
  display: flex;
}

.report-figures__item {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.report-figures__item dt {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.report-figures__item dd {
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
  margin: 0;
  font-weight: 600;
}

.report-figures__skeleton {
  width: 7rem;
  height: 2.25rem;
}

.report-cell-hint {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  overflow-wrap: anywhere;
  margin-top: 2px;
  font-weight: 400;
  display: block;
}

.report-meter {
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-2);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
}

.report-meter__track {
  background: var(--secondary);
  border-radius: 3px;
  width: 4rem;
  height: 6px;
  overflow: hidden;
}

.report-meter__fill {
  background: var(--chart-1);
  height: 100%;
  display: block;
}

.data-table__actions {
  text-align: end;
  white-space: nowrap;
}

.export-menu {
  padding: var(--space-1);
  flex-direction: column;
  display: flex;
}

.export-menu__item {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
  background: none;
  border: 0;
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.export-menu__item:hover, .export-menu__item:focus-visible {
  background: var(--accent);
}

.export-menu__label {
  font-weight: 600;
}

.export-menu__hint {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.report-toast {
  align-items: center;
  gap: var(--space-2);
  padding-inline-end: 6px;
  display: flex;
}

.report-toast[data-tone="danger"] {
  outline: 1px solid var(--danger);
  border-inline-start: 0;
}

.report-toast .report-toast__action, .report-toast .report-toast__close {
  color: inherit;
}

.empty-state--flat {
  border-style: solid;
  border-color: var(--border);
}

.entity-filter {
  gap: var(--space-2);
  flex-direction: column;
  display: flex;
  position: relative;
}

.entity-filter__label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.entity-filter__panel {
  top: calc(100% + .375rem);
  z-index: 40;
  gap: var(--space-3);
  width: min(22rem, 100vw - 2rem);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  display: flex;
  position: absolute;
  inset-inline-start: 0;
}

.entity-filter__list {
  max-height: 16rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.entity-filter__option {
  align-items: center;
  gap: var(--space-3);
  min-height: 2.75rem;
  padding: 0 var(--space-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow-wrap: anywhere;
  display: flex;
}

.entity-filter__option:hover {
  background: var(--accent);
}

.entity-filter__option input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary);
  flex: none;
}

.entity-filter__empty {
  padding: var(--space-2);
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  margin: 0;
}

.entity-filter__actions {
  justify-content: space-between;
  gap: var(--space-2);
  display: flex;
}

.pair-grid {
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  display: grid;
}

@media (min-width: 64rem) {
  .pair-grid {
    grid-template-columns: minmax(0, 1fr) 22rem;
  }
}

.pairing-flow {
  gap: var(--space-4);
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.pair-card {
  gap: var(--space-5);
  padding: var(--space-5);
  flex-direction: column;
  display: flex;
}

@media (min-width: 48rem) {
  .pair-card {
    padding: var(--space-8) 1.75rem;
  }
}

.pair-divider {
  background: var(--border);
  height: 1px;
}

.step-head {
  align-items: center;
  gap: var(--space-3);
  display: flex;
}

.step-head__n {
  background: var(--primary);
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: var(--text-base);
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-weight: 800;
  display: grid;
}

.step-head__n[data-done] {
  background: var(--success);
  color: var(--success-foreground);
}

.step-head__title {
  font-size: var(--text-lg);
  margin: 0;
  font-weight: 800;
}

.pairing-code-field {
  gap: var(--space-1);
  flex-direction: column;
  display: flex;
}

.pairing-found {
  gap: var(--space-3) 14px;
  padding: 14px var(--space-4);
  border: 1px solid color-mix(in oklab, var(--status-online) 22%, transparent);
  border-radius: var(--radius-lg);
  background: var(--status-online-soft);
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  display: grid;
}

.pairing-found p {
  margin: 0;
}

.pairing-found__tile {
  background: var(--card);
  width: 3rem;
  height: 3rem;
  color: var(--status-online-text);
  border-radius: 12px;
  place-items: center;
  display: grid;
}

.pairing-found__label {
  font-size: var(--text-sm);
  color: var(--status-online-text);
  align-items: center;
  gap: 6px;
  font-weight: 700;
  display: inline-flex;
}

.pairing-found__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-display);
  font-weight: 800;
}

.pairing-found__details, .pairing-found__expiry {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.pairing-found__meta {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px dashed color-mix(in oklab, var(--status-online) 30%, transparent);
  flex-wrap: wrap;
  grid-column: 1 / -1;
  display: flex;
}

.pairing-found__expiry {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 47.99rem) {
  .pair-actions {
    z-index: 10;
    margin: 0 calc(-1 * var(--space-5)) calc(-1 * var(--space-5));
    padding: var(--space-3) var(--space-5) var(--space-5);
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    background: var(--card);
    flex-direction: column;
    position: sticky;
    bottom: 0;
  }

  .pair-actions > * {
    width: 100%;
  }
}

.pair-done {
  padding: var(--space-10) var(--space-5) var(--space-5);
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  display: flex;
}

.pair-done__title {
  margin: 18px 0 0;
  font-size: 1.75rem;
  font-weight: 800;
}

.pair-done__lead {
  color: var(--muted-foreground);
  margin: 0;
}

.pair-done .pair-actions {
  justify-content: center;
  width: 100%;
}

.success-badge {
  background: var(--success);
  width: 5.25rem;
  height: 5.25rem;
  color: var(--success-foreground);
  box-shadow: 0 0 0 12px var(--status-online-soft);
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.steps-done {
  margin: var(--space-2) 0 0;
  padding: var(--space-4);
  gap: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 24rem;
  font-size: var(--text-sm);
  text-align: start;
  list-style: none;
  display: grid;
}

.steps-done li {
  align-items: center;
  gap: var(--space-2);
  display: flex;
}

.steps-done li[data-state="ok"] {
  color: var(--status-online-text);
}

.steps-done li[data-state="wait"] {
  color: var(--brand-text);
}

.pair-help {
  gap: var(--space-4);
  flex-direction: column;
  padding: 22px;
  display: flex;
}

.pair-help__title {
  font-size: var(--text-md);
  margin: 0;
  font-weight: 800;
}

.pair-help__screen {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

.tips {
  gap: var(--space-4);
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.tip {
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  grid-template-columns: 2rem 1fr;
  display: grid;
}

.tip strong {
  color: var(--foreground);
  font-size: var(--text-base);
  display: block;
}

.tip__icon {
  background: var(--accent);
  width: 2rem;
  height: 2rem;
  color: var(--brand-text);
  border-radius: 10px;
  place-items: center;
  display: grid;
}

.detail-grid {
  gap: var(--space-4);
  grid-template-columns: 1fr;
  display: grid;
}

@media (min-width: 64rem) {
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid__wide {
    grid-column: 1 / -1;
  }
}

.definition-list {
  gap: var(--space-2) var(--space-4);
  grid-template-columns: max-content 1fr;
  margin: 0;
  display: grid;
}

.definition-list dt {
  color: var(--muted-foreground);
  font-weight: 600;
}

.definition-list dd {
  overflow-wrap: anywhere;
  margin: 0;
}

.definition-list__row {
  display: contents;
}

.plain-list {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.tech-pin__state {
  align-items: flex-start;
  gap: var(--space-2);
  flex-direction: column;
  display: flex;
}

.tech-pin__effect {
  max-width: 70ch;
  margin: 0;
}

.tech-pin__form {
  max-width: 28rem;
}

.tech-pin__input {
  font-family: var(--font-mono);
  letter-spacing: .2em;
}

.build-card {
  gap: var(--space-6);
  min-width: 0;
  display: grid;
}

.build-sync-block {
  gap: var(--space-2);
  display: grid;
}

.build-sync {
  align-items: center;
  gap: var(--space-2) var(--space-3);
  flex-wrap: wrap;
  display: flex;
}

.build-sync__hint {
  margin: 0;
}

.build-tech {
  font-size: var(--text-sm);
}

.build-tech__summary {
  align-items: center;
  gap: var(--space-1);
  border-radius: var(--radius-sm);
  min-height: 2rem;
  color: var(--muted-foreground);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
}

.build-tech__summary::-webkit-details-marker {
  display: none;
}

.build-tech__summary:hover {
  color: var(--foreground);
}

.build-tech__summary:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: 2px;
}

.build-tech__summary .rt-icon {
  transition: transform var(--duration-fast) linear;
}

.build-tech[open] .build-tech__summary .rt-icon {
  transform: rotate(90deg);
}

.build-tech__list {
  margin-top: var(--space-2);
}

.build-zone {
  gap: var(--space-3);
  min-width: 0;
  display: grid;
}

.build-zone__title {
  font-size: var(--text-base);
  margin: 0;
  font-weight: 700;
}

.build-facts {
  gap: var(--space-2) var(--space-6);
  flex-wrap: wrap;
  margin: 0;
  display: flex;
}

.build-facts > div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.build-facts dt {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-weight: 600;
}

.build-facts dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-weight: 500;
}

.build-facts__number {
  font-variant-numeric: tabular-nums;
}

.build-entries {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.build-entry {
  border-bottom: 1px solid var(--border);
  background: var(--card);
  grid-template-columns: 2rem 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 8px;
  display: grid;
}

.build-entry:last-child {
  border-bottom: 0;
}

.build-entry__position {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  text-align: end;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.build-entry__main {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.build-entry__name {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-weight: 600;
  overflow: hidden;
}

.build-entry__meta {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  display: flex;
}

.build-entry__duration {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.subject-thumb--static {
  cursor: default;
}

.subject-thumb--static:hover {
  border-color: var(--border);
}

.build-skeleton__badge {
  width: 6rem;
  height: 1.25rem;
}

.build-skeleton__text {
  width: 10rem;
}

.build-skeleton__thumb {
  aspect-ratio: 16 / 9;
  width: 80px;
  height: auto;
}

.build-skeleton__name {
  width: 50%;
}

.build-skeleton__duration {
  width: 2.5rem;
}

@media (max-width: 47.5rem) {
  .build-entry {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "thumb main"
                         "thumb duration";
    gap: 2px 10px;
    padding: 10px;
  }

  .build-entry__position {
    display: none;
  }

  .build-entry__thumb, .build-entry .subject-thumb, .build-skeleton__thumb {
    grid-area: thumb;
    align-self: start;
    width: 64px;
  }

  .build-entry__main {
    grid-area: main;
  }

  .build-entry__duration {
    text-align: start;
    grid-area: duration;
  }
}

.rotation-field {
  gap: var(--space-2);
  border: 0;
  flex-direction: column;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  display: flex;
}

.form-grid .rotation-field {
  grid-column: 1 / -1;
}

.rotation-field__legend {
  margin-bottom: var(--space-2);
  padding: 0;
}

.rotation-field__options {
  gap: var(--space-2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}

@media (min-width: 48rem) {
  .rotation-field__options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rotation-option {
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--muted-foreground);
  text-align: center;
  cursor: pointer;
  flex-direction: column;
  transition: border-color .15s, background-color .15s;
  display: flex;
  position: relative;
}

.rotation-option:hover {
  border-color: var(--input);
}

.rotation-option:has(.rotation-option__input:checked) {
  border: 2px solid var(--primary);
  padding: calc(var(--space-3) - 1px) calc(var(--space-2) - 1px);
  background: var(--accent);
  color: var(--brand-text);
}

.rotation-option:has(.rotation-option__input:focus-visible) {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: var(--focus-ring-offset);
}

.rotation-field:disabled .rotation-option {
  cursor: not-allowed;
  opacity: .6;
}

.rotation-field[aria-invalid="true"] .rotation-option {
  border-color: var(--destructive);
}

.rotation-option__check {
  top: var(--space-1);
  border-radius: var(--radius-full);
  background: var(--primary);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-foreground);
  place-items: center;
  display: none;
  position: absolute;
  inset-inline-end: var(--space-1);
}

.rotation-option:has(.rotation-option__input:checked) .rotation-option__check {
  display: grid;
}

.rotation-thumb {
  width: 3.5rem;
  height: 3.5rem;
}

.rotation-option__title {
  font-size: var(--text-sm);
  color: var(--foreground);
  font-weight: 700;
}

.rotation-option__detail {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.orientation-indicator {
  vertical-align: middle;
  color: var(--muted-foreground);
  margin-inline-start: var(--space-2);
  display: inline-flex;
}

.warning-text {
  color: var(--status-partial-text);
  font-weight: 600;
}

.hash {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--muted);
}

.checkbox-field {
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  min-height: 2.75rem;
  display: flex;
}

.checkbox-field input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary);
}

.inline-form {
  align-items: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
  display: flex;
}

.inline-form__field {
  flex: 16rem;
}

.media-library {
  position: relative;
}

.media-library[data-dragging] {
  outline: var(--focus-ring-width) dashed var(--ring);
  outline-offset: .5rem;
  border-radius: var(--radius-xl);
}

.media-drop-overlay {
  inset-inline-start: 50%;
  bottom: var(--space-6);
  z-index: 45;
  width: min(26rem, 100vw - 2rem);
  padding: var(--space-4);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: var(--shadow-lg);
  text-align: center;
  pointer-events: none;
  justify-items: center;
  gap: 2px;
  display: grid;
  position: fixed;
  transform: translateX(-50%);
}

.media-drop-overlay p {
  margin: 0;
}

.media-drop-overlay__title {
  font-weight: 600;
}

.media-drop-overlay__hint {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.media-browser {
  gap: var(--space-4);
  align-items: start;
  display: grid;
}

.media-browser[data-folders] {
  grid-template-columns: 15rem minmax(0, 1fr);
}

.media-browser__main {
  gap: var(--space-4);
  min-width: 0;
  display: grid;
}

.media-browser__folders {
  top: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  position: sticky;
}

.media-folders__head {
  gap: 2px;
  padding: 12px 14px 8px;
  display: grid;
}

.media-folders__title {
  font-size: var(--text-sm);
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 600;
  display: flex;
}

.media-folders__hint {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin: 0;
}

.media-folders__list {
  gap: 1px;
  margin: 0;
  padding: 4px 6px 8px;
  list-style: none;
  display: grid;
}

.media-folders__sep {
  background: var(--border);
  height: 1px;
  margin: 4px 8px;
}

.media-folders__note {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  padding: 8px;
}

.media-folders__button {
  border-radius: var(--radius-md);
  width: 100%;
  min-height: 2.25rem;
  color: var(--foreground);
  font: inherit;
  font-size: var(--text-sm);
  text-align: start;
  cursor: pointer;
  transition: background-color var(--duration-fast) linear;
  background: none;
  border: 0;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  display: flex;
}

.media-folders__button .rt-icon {
  color: var(--muted-foreground);
  flex: none;
}

.media-folders__button:hover {
  background: var(--secondary);
}

.media-folders__button:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: 1px;
}

.media-folders__button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
}

.media-folders__button[aria-pressed="true"] .rt-icon {
  color: inherit;
}

.media-folders__name {
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}

.media-folders__count {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.media-table__num {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.channel-table th.media-table__num {
  text-align: end;
}

.th-sort {
  border-radius: var(--radius-sm);
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: 4px;
  margin-inline-start: -4px;
  padding: 2px 4px;
  display: inline-flex;
}

.th-sort[data-active] {
  color: var(--foreground);
}

.th-sort:hover {
  background: var(--secondary);
}

.th-sort:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
}

.media-cell {
  align-items: center;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.media-cell__thumb {
  display: contents;
}

.media-cell .subject-thumb {
  flex: none;
  width: 96px;
}

.media-cell__name {
  font: inherit;
  text-align: start;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
}

.media-cell__name:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.media-cell__reason {
  font-size: var(--text-sm);
  color: var(--status-offline-text);
  align-items: flex-start;
  gap: 4px;
  display: flex;
}

.media-cell__reason .rt-icon {
  flex: none;
  margin-top: 2px;
}

.media-kind {
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.media-kind .rt-icon {
  color: var(--muted-foreground);
}

.media-status {
  width: 28px;
  height: 28px;
}

.media-status:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
}

.media-detail__meta {
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  display: inline-flex;
}

.media-detail__body {
  gap: var(--space-5);
  display: grid;
}

.media-detail__grid {
  gap: var(--space-5);
  align-items: start;
  display: grid;
}

.media-detail__preview {
  min-width: 0;
}

.media-detail__placeholder {
  padding: var(--space-5);
  text-align: center;
  gap: 8px;
}

.media-detail__placeholder p {
  margin: 0;
}

.media-detail__form {
  gap: var(--space-4);
  display: grid;
}

.media-detail__section {
  gap: var(--space-3);
  display: grid;
}

.media-detail__section-head {
  gap: 2px;
  display: grid;
}

.media-detail__section-head h3 {
  font-size: var(--text-sm);
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 600;
  display: flex;
}

.media-detail__section-head h3 .rt-icon {
  color: var(--muted-foreground);
}

.media-detail__section-head p, .media-detail__note {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

.media-detail__foot-start {
  gap: 6px;
  margin-inline-end: auto;
  display: inline-flex;
}

.media-facts {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin: 0;
  display: grid;
}

.media-facts > div {
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 12px;
  padding: 8px 12px;
  display: grid;
}

.media-facts > div + div {
  border-top: 1px solid var(--border);
}

.media-facts dt {
  color: var(--muted-foreground);
}

.media-facts dd {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  margin: 0;
}

.media-renditions {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.media-renditions li {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  display: grid;
}

.media-renditions li + li {
  border-top: 1px solid var(--border);
}

.media-renditions__text {
  min-width: 0;
  display: grid;
}

.media-renditions__name {
  font-weight: 500;
}

.media-renditions__sub {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
  gap: 4px 8px;
  display: flex;
}

.media-renditions__status {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

@media (min-width: 48rem) {
  .media-detail__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

@media (max-width: 63.99rem) {
  .media-browser[data-folders] {
    grid-template-columns: 13rem minmax(0, 1fr);
  }
}

@media (max-width: 47.5rem) {
  .media-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .media-cell .subject-thumb {
    width: 160px;
  }

  .channel-table td.media-table__num {
    text-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-status .rt-spin, .media-renditions .rt-spin {
    animation: none;
  }

  .media-folders__button {
    transition: none;
  }
}

.in-use {
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--muted);
  flex-direction: column;
  display: flex;
}

.in-use p {
  margin: 0;
}

.in-use__title {
  font-weight: 600;
}

.upload-tray {
  inset-inline: .5rem;
  z-index: 40;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--popover);
  max-height: 60dvh;
  color: var(--popover-foreground);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  display: flex;
  position: fixed;
  bottom: .5rem;
}

@media (min-width: 40rem) {
  .upload-tray {
    inset-inline: auto 1rem;
    width: 24rem;
    bottom: 1rem;
  }
}

.upload-tray__header {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  display: flex;
}

.upload-tray__title {
  font-size: var(--text-base);
  margin: 0;
  font-weight: 800;
}

.upload-tray__actions, .upload-tray__buttons {
  gap: var(--space-1);
  flex-wrap: wrap;
  display: flex;
}

.upload-tray__list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.upload-tray__item {
  padding: .625rem var(--space-3);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: .375rem;
  display: flex;
}

.upload-tray__row {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  display: flex;
}

.upload-tray__name {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
}

.upload-tray__size {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.upload-tray__progress {
  width: 100%;
  height: .5rem;
  accent-color: var(--primary);
}

.upload-tray__error {
  font-size: var(--text-sm);
  color: var(--status-offline-text);
  margin: 0;
}

.mirror-stage {
  width: 100%;
  max-width: 64rem;
}

.mirror-stage:fullscreen {
  background-color: var(--tv-canvas);
  justify-content: center;
  align-items: center;
  max-width: none;
  display: flex;
}

.mirror-stage:fullscreen .mirror-screen {
  width: min(100vw, 177.778vh);
}

.mirror-stage:fullscreen .mirror-screen--portrait {
  width: min(100vw, 56.25vh);
  max-width: none;
}

.mirror-screen {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--tv-canvas);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.mirror-stage:fullscreen .mirror-screen {
  border: 0;
  border-radius: 0;
}

.mirror-screen--portrait {
  aspect-ratio: 9 / 16;
  min-width: 10rem;
  max-width: min(24rem, 56.25dvh - 12.375rem);
  margin-inline: auto;
}

.mirror-screen--placeholder {
  background-color: var(--muted);
  justify-content: center;
  align-items: center;
  display: flex;
}

.mirror-screen__layer {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.mirror-screen__idle {
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  text-align: center;
  flex-direction: column;
  display: flex;
  position: absolute;
  inset: 0;
}

.mirror-screen__idle--on-dark {
  color: var(--tv-canvas-ink-on-dark);
}

.mirror-screen__idle--on-light {
  color: var(--tv-canvas-ink-on-light);
}

.mirror-screen__brand {
  font-weight: 600;
}

.mirror-screen__message {
  font-size: var(--text-sm);
}

.mirror-wall {
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.mirror-tile {
  gap: var(--space-2);
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.mirror-tile__link {
  border-radius: var(--radius-md);
  display: block;
}

.mirror-tile__link:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: 2px;
}

.mirror-tile .mirror-screen--portrait {
  max-width: 10rem;
}

.mirror-tile__meta {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  display: flex;
}

.mirror-tile__name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  overflow: hidden;
}

.mirror-tile__state {
  font-size: var(--text-sm);
  margin: 0;
}

.mirror-window {
  background-color: var(--tv-canvas);
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.mirror-window--center {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
}

.mirror-window__canvas {
  transform-origin: center;
  position: absolute;
  top: 50%;
  left: 50%;
}

.mirror-screen--fixed {
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  width: 100%;
  max-width: none;
  height: 100%;
}

.mirror-window__message {
  padding: var(--space-4);
  color: var(--tv-canvas-ink-on-dark);
  margin: 0;
}

.mirror-window__bar {
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--foreground);
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.mirror-window__bar[hidden] {
  display: none;
}

.mirror-window__name {
  font-weight: 600;
}

.mirror-window__bar .rt-button {
  margin-inline-start: auto;
}

.widget-type {
  align-items: center;
  gap: var(--space-2);
  display: inline-flex;
}

.widget-type .rt-icon {
  color: var(--muted-foreground);
  flex: none;
}

.widget-skeleton {
  border-radius: var(--radius-sm);
  background: var(--secondary);
  height: .75rem;
  display: block;
}

.widget-cell {
  align-items: center;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.widget-table__num {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.widget-row--off .cell-name__link {
  color: var(--muted-foreground);
}

.widget-thumb {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--screen);
  width: 120px;
  color: var(--screen-foreground);
  cursor: zoom-in;
  transition: border-color var(--duration-fast) linear;
  flex: none;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.widget-thumb:hover {
  border-color: var(--ring);
}

.widget-thumb:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: 2px;
}

.widget-thumb__stage, .widget-card__stage {
  aspect-ratio: 16 / 9;
  background: var(--screen);
  display: block;
  position: relative;
  overflow: hidden;
}

.widget-thumb__skeleton {
  background: var(--secondary);
  position: absolute;
  inset: 0;
}

.widget-thumb__fallback {
  color: var(--screen-foreground);
  place-items: center;
  display: grid;
  position: absolute;
  inset: 0;
}

.widget-frame--decorative, .widget-frame--decorative .widget-frame__iframe {
  pointer-events: none;
}

.hover-card--widget {
  width: 25rem;
}

.widget-card__stage {
  border-bottom: 1px solid var(--border);
}

.widget-card__stage .widget-thumb__fallback {
  color: var(--screen-foreground);
}

.widget-table-skeleton {
  display: grid;
}

.widget-table-skeleton__row {
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  display: flex;
}

.widget-table-skeleton__row + .widget-table-skeleton__row {
  border-top: 1px solid var(--border);
}

.widget-table-skeleton__thumb {
  aspect-ratio: 16 / 9;
  flex: none;
  width: 120px;
  height: auto;
}

.rt-icon-button.state-toggle.state-icon--success {
  color: var(--success);
}

.rt-icon-button.state-toggle.state-icon--neutral {
  color: var(--status-unbound);
}

.state-toggle--static {
  border-radius: var(--radius-md);
  place-items: center;
  width: 32px;
  height: 32px;
  display: inline-grid;
}

@media (max-width: 47.5rem) {
  .widget-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .widget-thumb {
    cursor: pointer;
    width: 160px;
  }
}

.widget-create__body {
  gap: 12px;
  display: grid;
}

.widget-create__categories {
  max-width: 100%;
  overflow-x: auto;
}

.widget-catalog {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.widget-catalog li + li {
  border-top: 1px solid var(--border);
}

.widget-catalog__item {
  align-items: center;
  gap: var(--space-3);
  color: inherit;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px 14px;
  text-decoration: none;
  display: grid;
}

a.widget-catalog__item {
  transition: background-color var(--duration-fast) var(--ease-out);
}

a.widget-catalog__item:hover {
  background: var(--secondary);
}

a.widget-catalog__item:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: -2px;
}

.widget-catalog__icon {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  width: 2.25rem;
  height: 2.25rem;
  color: var(--foreground);
  place-items: center;
  display: grid;
}

.widget-catalog__text {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.widget-catalog__name {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  display: flex;
}

.widget-catalog__description {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.widget-catalog__meta {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
  display: flex;
}

.widget-catalog__go {
  color: var(--muted-foreground);
  display: inline-grid;
}

.widget-catalog__lock {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.widget-catalog__item--locked .widget-catalog__icon, .widget-catalog__item--locked .widget-catalog__name {
  color: var(--muted-foreground);
}

.widget-catalog__skeleton {
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  display: grid;
}

.widget-catalog__skeleton-icon {
  border-radius: var(--radius-md);
  width: 2.25rem;
  height: 2.25rem;
}

.widget-catalog__skeleton-text {
  gap: 6px;
  display: grid;
}

@media (max-width: 47.5rem) {
  .widget-catalog__item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .widget-catalog__go {
    display: none;
  }

  .widget-catalog__lock {
    grid-column: 2;
  }
}

.widget-dialog-text {
  margin: 0;
}

.widget-editor {
  gap: var(--space-5);
  align-items: start;
  display: grid;
}

.widget-editor__fields {
  gap: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px;
  display: flex;
}

.widget-editor__fields > .section-title {
  margin: 0;
}

.widget-editor__preview {
  order: -1;
  min-width: 0;
}

@media (min-width: 64rem) {
  .widget-editor {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 34rem);
  }

  .widget-editor__preview {
    top: var(--space-4);
    order: 0;
    position: sticky;
  }
}

@media (max-width: 47.5rem) {
  .widget-editor__fields {
    padding: 16px;
  }
}

.seg-tabs__dirty--error {
  background: var(--danger);
}

.widget-duration {
  border: 0;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
}

.widget-duration > legend {
  margin-bottom: 6px;
  padding: 0;
}

.widget-duration__option {
  font-size: var(--text-sm);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  display: flex;
}

label.widget-duration__option, .widget-duration__custom {
  cursor: pointer;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.widget-duration input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  margin: 0;
}

.widget-duration__seconds {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.widget-duration__seconds .rt-input {
  font-variant-numeric: tabular-nums;
  width: 7rem;
}

.widget-duration .rt-field__hint, .widget-duration .rt-field__error {
  margin: 0;
}

.widget-fact {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  display: flex;
}

.widget-fact .rt-icon {
  flex: none;
  margin-top: 2px;
}

.widget-uses {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget-uses li {
  font-size: var(--text-sm);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  display: flex;
}

.widget-uses li + li {
  border-top: 1px solid var(--border);
}

.widget-uses .rt-icon {
  color: var(--muted-foreground);
  flex: none;
}

.widget-uses__link {
  overflow-wrap: anywhere;
  min-width: 0;
  color: var(--primary);
}

.widget-uses__count {
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-inline-start: auto;
}

@media (prefers-reduced-motion: reduce) {
  .widget-thumb, a.widget-catalog__item {
    transition: none !important;
  }
}

.widget-form__group, .widget-form__choices {
  padding: var(--space-3) var(--space-4) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  gap: var(--space-3);
  flex-direction: column;
  min-width: 0;
  margin: 0;
  display: flex;
}

.widget-form__choices {
  gap: 0;
}

.widget-form__legend {
  padding: 0 var(--space-1);
  font-weight: 600;
}

.widget-form__divider {
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.widget-form__divider p {
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm);
}

.widget-form__divider-title {
  font-size: var(--text-md);
  margin: 0;
  font-weight: 600;
}

.widget-form__textarea {
  min-height: 6rem;
  padding-block: var(--space-2);
  resize: vertical;
}

.widget-form__short {
  max-width: 14rem;
}

.widget-form__array-list {
  gap: var(--space-3);
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.widget-form__array-item {
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--muted);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  display: grid;
}

.widget-form__array-fieldset {
  gap: var(--space-3);
  border: 0;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
}

.widget-form__array-legend {
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  padding: 0;
  font-weight: 600;
}

.widget-form__array-actions {
  gap: var(--space-1);
  display: flex;
}

.color-field {
  align-items: center;
  gap: var(--space-2);
  display: flex;
}

.color-field__swatch {
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: var(--card);
  cursor: pointer;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 2px;
}

.color-field__swatch:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: 2px;
}

.color-field__hex {
  max-width: 9rem;
  font-family: var(--font-mono);
}

.location-field__control {
  position: relative;
}

.location-field__list {
  z-index: 20;
  inset-inline: 0;
  padding: var(--space-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--popover);
  max-height: 16rem;
  color: var(--popover-foreground);
  box-shadow: var(--shadow-md);
  margin: 0;
  list-style: none;
  position: absolute;
  top: calc(100% + 4px);
  overflow-y: auto;
}

.location-field__option {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.location-field__option:hover, .location-field__option.is-active {
  background: var(--accent);
  color: var(--accent-foreground);
}

.location-field__empty {
  font-size: var(--text-sm);
  margin: 0;
}

.location-field__details {
  gap: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  grid-template-columns: max-content 1fr;
  margin: 0;
  display: grid;
}

.location-field__details div {
  display: contents;
}

.location-field__details dt {
  color: var(--muted-foreground);
}

.location-field__details dd {
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.location-field__clear {
  align-self: flex-start;
}

.widget-preview {
  gap: var(--space-3);
  flex-direction: column;
  display: flex;
}

.widget-preview__head {
  align-items: center;
  gap: var(--space-2) var(--space-3);
  flex-wrap: wrap;
  display: flex;
}

.widget-preview__zone {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.widget-preview__rotate {
  margin-inline-start: auto;
}

.widget-preview__rotate[aria-pressed="true"] {
  border-color: var(--ring);
  color: var(--foreground);
}

.widget-preview__tv {
  border: 6px solid var(--neutral-900);
  border-radius: var(--radius-md);
  background-color: var(--tv-canvas);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.widget-preview__tv--portrait {
  width: min(100%, 17rem);
  margin-inline: auto;
}

.widget-preview__blank {
  width: 100%;
}

.widget-preview__badge {
  align-items: center;
  gap: var(--space-2);
  max-width: calc(100% - var(--space-4));
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--foreground);
  font-size: var(--text-sm);
  display: inline-flex;
  position: absolute;
  inset-block-end: var(--space-2);
  inset-inline-start: var(--space-2);
}

.widget-preview__badge--warning {
  color: var(--warning-700);
}

.widget-preview__hint {
  font-size: var(--text-sm);
  margin: 0;
}

.widget-frame {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.widget-frame__iframe {
  transform-origin: 0 0;
  background: none;
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.mirror-screen__widget .widget-frame {
  height: 100%;
}

.app-scrim {
  z-index: 45;
  background: var(--scrim);
  position: fixed;
  inset: 0;
}

@media (max-width: 63.99rem) {
  .app-sidebar[data-open="true"] {
    z-index: 50;
    border-bottom: 0;
    border-inline-end: 1px solid var(--sidebar-border);
    width: min(18.75rem, 86vw);
    box-shadow: var(--shadow-lg);
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
  }

  .app-sidebar[data-open="true"] .app-brand--sidebar {
    display: flex;
  }
}

@media (min-width: 64rem) {
  .app-scrim {
    display: none;
  }
}

.ph {
  gap: 6px;
  display: grid;
}

.ph__crumbs ol {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.ph__crumbs li {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.ph__crumbs li + li:before {
  content: "/";
  color: var(--muted-foreground);
}

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

.ph__crumbs a:hover {
  color: var(--foreground);
  text-underline-offset: .2em;
  text-decoration: underline;
}

.ph__crumbs [aria-current="page"] {
  color: var(--foreground);
}

.ph__row {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  flex-wrap: wrap;
  display: flex;
}

.ph__title {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.ph__icon {
  color: var(--brand-text);
  place-items: center;
  display: inline-grid;
}

.ph__heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-wrap: balance;
  margin: 0;
}

.ph__count {
  font-size: var(--text-base);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.page-header__help {
  border-radius: var(--radius-full);
  width: 1.75rem;
  height: 1.75rem;
}

.ph__actions {
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  display: flex;
}

.ph__desc {
  max-width: 70ch;
  color: var(--muted-foreground);
  margin: 0;
}

@media (min-width: 48rem) {
  .ph__heading {
    font-size: 1.75rem;
  }
}

.summary-strip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  display: grid;
  overflow: hidden;
}

.summary-strip__item {
  border: 0;
  border-inline-end: 1px solid var(--border);
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background-color var(--duration-fast) linear;
  background: none;
  gap: 2px;
  padding: 14px 18px;
  display: grid;
  position: relative;
}

.summary-strip__item:last-child {
  border-inline-end: 0;
}

.summary-strip__item:hover {
  background: var(--secondary);
}

.summary-strip__item:focus-visible {
  outline-offset: -3px;
}

.summary-strip__item[aria-pressed="true"] {
  background: var(--accent);
}

.summary-strip__item[aria-pressed="true"]:after {
  content: "";
  background: var(--primary);
  border-radius: 2px;
  height: 2px;
  position: absolute;
  inset: auto 12px 0;
}

.summary-strip__item--static {
  cursor: default;
}

.summary-strip__item--static:hover {
  background: none;
}

.summary-strip__label {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  align-items: center;
  gap: 6px;
  display: flex;
}

.summary-strip__value {
  font-size: var(--text-xl);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.summary-strip__of {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  font-weight: 500;
}

.summary-strip__dot {
  border-radius: var(--radius-full);
  flex: none;
  width: 8px;
  height: 8px;
}

.summary-strip__dot--live {
  background: var(--status-online);
}

.summary-strip__dot--attention {
  background: var(--status-partial);
}

.summary-strip__dot--offline {
  background: var(--status-offline);
}

@media (max-width: 68.75rem) {
  .summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-strip__item:nth-child(3) {
    border-inline-end: 0;
  }

  .summary-strip__item:nth-child(n+4) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 47.5rem) {
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-strip__item, .summary-strip__item:nth-child(3) {
    border-inline-end: 1px solid var(--border);
    border-top: 1px solid var(--border);
  }

  .summary-strip__item:nth-child(-n+2) {
    border-top: 0;
  }

  .summary-strip__item:nth-child(2n) {
    border-inline-end: 0;
  }
}

.channel-toolbar {
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  display: flex;
}

.search-field {
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: var(--card);
  width: min(22.5rem, 100%);
  min-height: 2.5rem;
  color: var(--muted-foreground);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  display: flex;
}

.search-field:focus-within {
  border-color: var(--ring);
  box-shadow: 0 0 0 var(--focus-ring-width) color-mix(in oklab, var(--ring) 22%, transparent);
}

.search-field input {
  min-width: 0;
  color: var(--foreground);
  font: inherit;
  font-size: var(--text-md);
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
}

@media (min-width: 48rem) {
  .search-field input {
    font-size: var(--text-base);
  }
}

.search-field--sm {
  width: 100%;
  min-height: 2rem;
}

.count-pill {
  border-radius: var(--radius-full);
  background: var(--primary);
  min-width: 1.125rem;
  height: 1.125rem;
  color: var(--primary-foreground);
  font-variant-numeric: tabular-nums;
  place-items: center;
  padding: 0 5px;
  font-size: .6875rem;
  display: inline-grid;
}

.filter-bar {
  font-size: var(--text-sm);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.filter-bar__count {
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.tag-chips {
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  display: flex;
}

.tag-chip {
  border-radius: var(--radius-sm);
  background: var(--secondary);
  min-height: 1.375rem;
  color: var(--status-unbound-text);
  font: inherit;
  font-size: var(--text-xs);
  white-space: nowrap;
  border: 1px solid #0000;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  font-weight: 500;
  display: inline-flex;
}

button.tag-chip {
  cursor: pointer;
  transition: border-color var(--duration-fast) linear;
}

button.tag-chip:hover {
  border-color: var(--neutral-300);
}

.tag-chip[aria-pressed="true"], .tag-chip--removable, .tag-chip--selected {
  border-color: var(--brand-200);
  background: var(--accent);
  color: var(--accent-foreground);
}

.tag-chip--removable {
  min-height: 1.75rem;
  font-size: var(--text-sm);
  padding: 0 8px;
}

.tag-chip__remove {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 3px;
  padding: 0;
  display: inline-grid;
}

.channel-table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.channel-table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--text-base);
}

.channel-table th {
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  text-align: start;
  white-space: nowrap;
  font-weight: 600;
}

.channel-table td {
  padding: 12px var(--space-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.channel-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-table tbody tr {
  transition: background-color var(--duration-fast) linear;
}

.channel-table tbody tr:hover {
  background: color-mix(in oklab, var(--secondary) 55%, transparent);
}

.channel-table .channel-table__actions {
  text-align: end;
  white-space: nowrap;
  width: 1%;
}

.cell-name {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.cell-name__link {
  color: var(--foreground);
  overflow-wrap: anywhere;
  font-weight: 600;
  text-decoration: none;
}

.cell-name__link:hover {
  color: var(--brand-text);
}

.cell-sub {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.cell-sub a {
  color: inherit;
  text-decoration: none;
}

.cell-sub a:hover {
  color: var(--brand-text);
  text-underline-offset: .2em;
  text-decoration: underline;
}

.badge {
  border-radius: var(--radius-full);
  min-height: 1.375rem;
  font-size: var(--text-xs);
  white-space: nowrap;
  align-items: center;
  padding: 0 8px;
  font-weight: 600;
  display: inline-flex;
}

.badge--warning {
  background: var(--status-partial-soft);
  color: var(--status-partial-text);
}

.badge--neutral {
  background: var(--status-unbound-soft);
  color: var(--status-unbound-text);
}

.cell-status {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.cell-time {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  white-space: nowrap;
}

.state-icon {
  border-radius: var(--radius-sm);
  place-items: center;
  display: inline-grid;
}

.state-icon--success {
  color: var(--success);
}

.state-icon--info {
  color: var(--info);
}

.state-icon--warning {
  color: var(--status-partial-text);
}

.state-icon--danger {
  color: var(--danger);
}

.state-icon--neutral {
  color: var(--status-unbound);
}

.row-actions {
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.tv-stack {
  border-radius: var(--radius-md);
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: 8px;
  padding: 4px;
  display: inline-flex;
}

.tv-stack:hover, .tv-stack[aria-expanded="true"] {
  background: var(--secondary);
}

.tv-stack__tvs {
  display: inline-flex;
}

.tv-stack__tv {
  border: 1.5px solid var(--card);
  background: var(--screen);
  width: 26px;
  height: 17px;
  box-shadow: 0 0 0 1px var(--neutral-200);
  color: var(--screen-foreground);
  border-radius: 3px;
  place-items: center;
  margin-inline-start: -6px;
  display: grid;
  position: relative;
}

.tv-stack__tv:first-child {
  margin-inline-start: 0;
}

.tv-stack__tv .conn-dot {
  box-shadow: 0 0 0 1.5px var(--card);
  position: absolute;
  inset: auto -3px -3px auto;
}

.tv-stack__tv--more {
  font-size: .625rem;
  font-weight: 700;
}

.tv-stack__count {
  font-variant-numeric: tabular-nums;
}

.tv-stack__none {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.conn-dot {
  border-radius: var(--radius-full);
  background: var(--status-online);
  flex: none;
  width: 8px;
  height: 8px;
}

.conn-dot--partial {
  background: linear-gradient(90deg, var(--status-partial) 50%, var(--card) 0);
  border: 1.5px solid var(--status-partial);
}

.conn-dot--offline {
  background: var(--card);
  border: 2px solid var(--status-offline);
}

.conn-dot--unbound {
  background: var(--card);
  border: 1.5px dashed var(--status-unbound);
}

@media (max-width: 47.5rem) {
  .channel-table thead {
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
  }

  .channel-table, .channel-table tbody, .channel-table tr, .channel-table td {
    width: 100%;
    display: block;
  }

  .channel-table tr {
    border-bottom: 1px solid var(--border);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 12px 14px;
    display: grid;
  }

  .channel-table tbody tr:last-child {
    border-bottom: 0;
  }

  .channel-table td {
    border: 0;
    padding: 0;
  }

  .channel-table td[data-label]:before {
    content: attr(data-label);
    font-size: var(--text-xs);
    color: var(--muted-foreground);
    margin-bottom: 2px;
    display: block;
  }

  .channel-table .channel-table__main {
    grid-column: 1 / 2;
  }

  .channel-table .channel-table__actions {
    grid-area: 1 / 2 / auto / 3;
    width: auto;
  }
}

.screens-pop__head {
  gap: 2px;
  padding: 12px 14px 8px;
  display: grid;
}

.screens-pop__title {
  margin: 0;
  font-weight: 600;
}

.screens-pop__meta {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin: 0;
}

.screens-pop__empty {
  color: var(--muted-foreground);
  margin: 0;
  padding: 4px 14px 14px;
}

.screens-pop__list {
  max-height: 16.25rem;
  margin: 0;
  padding: 4px 6px;
  list-style: none;
  overflow-y: auto;
}

.screens-pop__list li {
  border-radius: var(--radius-md);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  display: grid;
}

.screens-pop__list li:hover {
  background: var(--secondary);
}

.screens-pop__name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  overflow: hidden;
}

.screens-pop__state {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  text-align: end;
}

.screens-pop__foot {
  border-top: 1px solid var(--border);
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  display: flex;
}

.screens-pop__foot--end {
  justify-content: flex-end;
}

.tag-pop {
  width: 18.75rem;
}

.tag-pop__search {
  padding: 0 10px 6px;
}

.checklist {
  max-height: 16.25rem;
  margin: 0;
  padding: 4px 6px;
  list-style: none;
  overflow-y: auto;
}

.checklist label {
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  display: flex;
}

.checklist label:hover {
  background: var(--secondary);
}

.checklist input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  margin: 0;
}

.checklist__count {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  margin-inline-start: auto;
}

.checklist__empty {
  color: var(--muted-foreground);
  padding: 8px;
}

.tv-grid {
  grid-template-columns: repeat(auto-fill, minmax(10.625rem, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.tv-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
}

.tv-tile__screen {
  aspect-ratio: 16 / 9;
  background: var(--screen);
  color: var(--screen-foreground);
  place-items: center;
  display: grid;
  position: relative;
}

.tv-tile__badge {
  position: absolute;
  inset: 8px auto auto 8px;
}

.tv-tile__body {
  gap: 2px;
  padding: 8px 10px;
  display: grid;
}

.tv-tile__name {
  font-size: var(--text-sm);
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
}

.tv-tile__name:hover {
  color: var(--brand-text);
}

.tv-tile__meta {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.tv-tile__link {
  font-size: var(--text-xs);
  color: var(--brand-text);
  align-items: center;
  gap: 4px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
}

.tv-tile__link:hover {
  text-decoration: underline;
}

.help-section {
  gap: 8px;
  display: grid;
}

.help-section__title {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  letter-spacing: 0;
  margin: 0;
  font-weight: 600;
}

.help-section__text {
  max-width: 62ch;
  margin: 0;
}

.help-steps {
  counter-reset: help-step;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.help-steps li {
  counter-increment: help-step;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  display: grid;
}

.help-steps li:before {
  content: counter(help-step);
  border-radius: var(--radius-full);
  background: var(--secondary);
  width: 24px;
  height: 24px;
  font-size: var(--text-xs);
  place-items: center;
  font-weight: 700;
  display: grid;
}

.help-legend {
  gap: 10px;
  margin: 0;
  display: grid;
}

.help-legend__row {
  grid-template-columns: 13rem 1fr;
  align-items: start;
  gap: 12px;
  display: grid;
}

.help-legend dt {
  align-items: center;
  gap: 8px;
  font-weight: 600;
  display: flex;
}

.help-legend dd {
  color: var(--muted-foreground);
  margin: 0;
}

.help-tip {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background);
  gap: 10px;
  padding: 12px;
  display: flex;
}

.help-tip p {
  margin: 0;
}

@media (max-width: 47.5rem) {
  .help-legend__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.tour-block {
  z-index: 84;
  position: fixed;
  inset: 0;
}

.tour-hole {
  z-index: 85;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 9999px var(--scrim);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  pointer-events: none;
  position: fixed;
}

@media (prefers-reduced-motion: no-preference) {
  .tour-hole {
    transition: top var(--duration-base) ease,
      left var(--duration-base) ease,
      width var(--duration-base) ease,
      height var(--duration-base) ease;
  }
}

.tour-card {
  z-index: 86;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  width: 21.25rem;
  box-shadow: var(--shadow-lg);
  gap: 10px;
  padding: 16px;
  display: grid;
  position: fixed;
}

.tour-card--sheet {
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  width: auto;
  max-width: none;
  padding: 18px max(16px, env(safe-area-inset-left, 0px))
    calc(18px + env(safe-area-inset-bottom, 0px));
  inset: auto 0 0;
}

.tour-card__progress {
  gap: 4px;
  display: flex;
}

.tour-card__progress span {
  background: var(--secondary);
  border-radius: 2px;
  flex: 1;
  height: 4px;
}

.tour-card__progress span[data-on] {
  background: var(--primary);
}

.tour-card__count {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin: 0;
}

.tour-card__title {
  font-size: var(--text-md);
  margin: 0;
  font-weight: 700;
}

.tour-card__text {
  margin: 0;
}

.tour-card__foot {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.tour-card__nav {
  gap: 6px;
  display: flex;
}

.toast {
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  border-radius: var(--radius-lg);
  background: var(--tooltip);
  max-width: calc(100vw - 32px);
  color: var(--tooltip-foreground);
  box-shadow: var(--shadow-lg);
  padding: 10px 14px;
  position: fixed;
  transform: translateX(-50%);
}

.combo, .combo__field {
  position: relative;
}

.combo__input {
  padding-inline: 34px;
}

.combo__icon, .combo__chevron {
  color: var(--muted-foreground);
  pointer-events: none;
  display: inline-grid;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.combo__icon {
  inset-inline-start: 10px;
}

.combo__chevron {
  inset-inline-end: 10px;
}

.combo__prompt {
  font-size: var(--text-sm);
  color: var(--brand-text);
  margin: 4px 0 0;
}

.combo__prompt:empty {
  display: none;
}

.suggest {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--popover);
  max-height: 11.5rem;
  box-shadow: var(--shadow-md);
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  overflow-y: auto;
}

.suggest[hidden] {
  display: none;
}

.suggest__option {
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  display: flex;
}

.suggest__option:hover, .suggest__option[aria-selected="true"] {
  background: var(--secondary);
}

.suggest__label {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.suggest__meta {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin-inline-start: auto;
}

.suggest__check {
  color: var(--brand-text);
  display: inline-grid;
}

.suggest__option--create {
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--brand-text);
  margin-top: 4px;
  font-weight: 600;
}

.suggest__option--create:first-child {
  border-top: 0;
  margin-top: 0;
}

.suggest__empty {
  color: var(--muted-foreground);
  padding: 7px 10px;
}

.tag-input {
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: var(--card);
  cursor: text;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 2.75rem;
  padding: 4px 6px;
  display: flex;
}

.tag-input:focus-within {
  border-color: var(--ring);
  box-shadow: 0 0 0 var(--focus-ring-width) color-mix(in oklab, var(--ring) 22%, transparent);
}

.tag-input[data-invalid] {
  border-color: var(--destructive);
}

.tag-input input {
  min-width: 8.75rem;
  height: 1.75rem;
  color: var(--foreground);
  font: inherit;
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
  padding: 0 4px;
}

.tag-input .tag-chip {
  min-height: 1.5rem;
}

.rt-label__optional {
  color: var(--muted-foreground);
  font-weight: 400;
}

.note-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background);
  gap: 10px;
  padding: 12px;
  display: flex;
}

.note-box p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .summary-strip__item, .channel-table tbody tr, button.tag-chip {
    transition: none;
  }
}

.ph__back {
  width: fit-content;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  align-items: center;
  gap: 6px;
  text-decoration: none;
  display: inline-flex;
}

.ph__back:hover {
  color: var(--foreground);
}

.ph__title {
  flex-wrap: wrap;
}

.ph__state {
  width: 2rem;
  height: 2rem;
}

.ph__meta {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  display: flex;
}

.ph__meta > a, .ph__meta-item {
  font-variant-numeric: tabular-nums;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.ph__meta > a {
  color: var(--brand-text);
  font-weight: 500;
  text-decoration: none;
}

.ph__meta > a:hover {
  text-underline-offset: .2em;
  text-decoration: underline;
}

.ph__tags {
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.ph__more {
  border-color: var(--border);
  width: 2.5rem;
  height: 2.5rem;
}

.publish-button__label {
  white-space: nowrap;
}

@media (max-width: 47.5rem) {
  .publish-button--compact {
    width: 2.75rem;
    padding: 0;
  }

  .publish-button--compact .publish-button__label {
    clip-path: inset(50%);
    white-space: nowrap;
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
  }
}

.seg-tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--secondary);
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  padding: 3px;
  display: flex;
}

.seg-tabs__tab {
  border-radius: var(--radius-md);
  min-height: 2.25rem;
  color: var(--muted-foreground);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-fast) linear,
    color var(--duration-fast) linear;
  background: none;
  border: 0;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 500;
  display: inline-flex;
}

.seg-tabs__tab:hover {
  color: var(--foreground);
}

.seg-tabs__tab[aria-selected="true"] {
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.seg-tabs__tab[aria-selected="true"] .rt-icon {
  color: var(--brand-text);
}

.seg-tabs__dirty {
  border-radius: var(--radius-full);
  background: var(--warning);
  width: 7px;
  height: 7px;
}

@media (max-width: 47.5rem) {
  .seg-tabs {
    width: 100%;
  }

  .seg-tabs__tab {
    flex: 1;
    justify-content: center;
    min-height: 2.75rem;
  }
}

.detail-notice > div {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  flex-wrap: wrap;
  display: flex;
}

.attention > div {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  display: flex;
}

.attention__icon {
  padding-top: 1px;
  display: inline-grid;
}

.attention__body {
  flex: 16rem;
  gap: 2px;
  min-width: 0;
  display: grid;
}

.attention__title, .attention__text {
  margin: 0;
}

.attention__title {
  font-size: var(--text-base);
  font-weight: 600;
}

.attention .rt-button {
  align-self: center;
}

.channel-detail__panel {
  gap: var(--space-5);
  align-content: start;
  min-width: 0;
  display: grid;
}

.channel-detail__panel[hidden] {
  display: none;
}

.channel-detail__cols {
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  display: grid;
}

@media (min-width: 73.75rem) {
  .channel-detail__cols {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

.detail-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  min-width: 0;
  display: grid;
  overflow: hidden;
}

.detail-card__head {
  min-height: 3.25rem;
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.detail-card__title {
  font-size: var(--text-base);
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  display: flex;
}

.detail-card__title .rt-icon {
  color: var(--muted-foreground);
}

.detail-card__count {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.detail-card__spacer {
  flex: 1;
}

.detail-card__alert, .detail-card__note {
  padding: var(--space-3) var(--space-4) 0;
  margin: 0;
}

.detail-card__empty {
  padding: 28px var(--space-4);
  text-align: center;
  color: var(--muted-foreground);
  justify-items: center;
  gap: 10px;
  margin: 0;
  display: grid;
}

.detail-card__empty p {
  margin: 0;
}

.detail-card__foot {
  padding: 6px var(--space-4) 10px;
  border-top: 1px solid var(--border);
  justify-content: center;
  display: flex;
}

.screen-name {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.screen-thumb {
  background: var(--screen);
  width: 30px;
  height: 20px;
  box-shadow: 0 0 0 1px var(--neutral-200);
  border-radius: 3px;
  flex: none;
  position: relative;
}

.screen-thumb .conn-dot {
  box-shadow: 0 0 0 2px var(--card);
  position: absolute;
  inset: auto -3px -3px auto;
}

.screen-conn, .sync-state {
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.sync-state--ok {
  color: var(--status-online-text);
}

.sync-state--old {
  color: var(--status-partial-text);
}

.sync-state--none {
  color: var(--muted-foreground);
}

.screen-hash {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

@media (max-width: 47.5rem) {
  .screens-table tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .screens-table .channel-table__main {
    grid-column: 1 / 2;
  }

  .screens-table .channel-table__actions {
    text-align: end;
    grid-column: 2 / 3;
  }
}

.picker {
  gap: var(--space-3);
}

.picker__count {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  margin-inline-end: auto;
}

.picker__partial {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
}

.pick-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-height: 340px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.pick-list li + li {
  border-top: 1px solid var(--border);
}

.pick-list__option {
  cursor: pointer;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 2.75rem;
  padding: 8px 12px;
  display: grid;
}

.pick-list__option:hover {
  background: var(--secondary);
}

.pick-list__option input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  margin: 0;
}

.pick-list li[data-here] .pick-list__option {
  cursor: default;
}

.pick-list li[data-here] .pick-list__option:hover {
  background: none;
}

.pick-list__name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  overflow: hidden;
}

.pick-list__meta {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  white-space: nowrap;
}

.feed {
  margin: 0;
  padding: 4px 0;
  list-style: none;
}

.feed__item {
  padding: 10px var(--space-4);
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  display: grid;
  position: relative;
}

.feed__item:before {
  content: "";
  top: 38px;
  bottom: -6px;
  left: calc(var(--space-4) + 13px);
  background: var(--border);
  width: 1px;
  position: absolute;
}

.feed__item:last-child:before {
  display: none;
}

.feed__icon {
  z-index: 1;
  border-radius: var(--radius-full);
  background: var(--secondary);
  width: 28px;
  height: 28px;
  color: var(--muted-foreground);
  place-items: center;
  display: grid;
  position: relative;
}

.feed__icon--success {
  background: var(--status-online-soft);
  color: var(--status-online-text);
}

.feed__icon--danger {
  background: var(--status-offline-soft);
  color: var(--status-offline-text);
}

.feed__icon--warning {
  background: var(--status-partial-soft);
  color: var(--status-partial-text);
}

.feed__icon--info {
  background: color-mix(in oklab, var(--info) 14%, var(--card));
  color: var(--info);
}

.feed__body {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.feed__title, .feed__meta, .feed__error {
  margin: 0;
}

.feed__title {
  font-weight: 500;
}

.feed__meta {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.feed__error {
  font-size: var(--text-sm);
  color: var(--status-offline-text);
}

.settings {
  gap: var(--space-4);
  min-width: 0;
  display: grid;
}

.settings__alerts {
  gap: var(--space-3);
  display: grid;
}

.settings__card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.settings__section {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  display: grid;
}

.settings__section + .settings__section {
  border-top: 1px solid var(--border);
}

@media (min-width: 73.75rem) {
  .settings__section {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
  }
}

.settings__title {
  font-size: var(--text-base);
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-weight: 600;
  display: flex;
}

.settings__title .rt-icon {
  color: var(--muted-foreground);
}

.settings__text {
  max-width: 40ch;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

.settings__fields {
  gap: 18px;
  min-width: 0;
  max-width: 560px;
  display: grid;
}

.settings__link {
  width: fit-content;
  font-size: var(--text-sm);
  color: var(--brand-text);
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
}

.settings__link:hover {
  text-underline-offset: .2em;
  text-decoration: underline;
}

.settings__values {
  gap: 4px;
  margin: 0;
  display: grid;
}

.settings__values dt {
  font-size: var(--text-sm);
  font-weight: 600;
}

.settings__values dd {
  margin: 0 0 var(--space-2);
  overflow-wrap: anywhere;
}

.settings__values .tag-chips {
  margin: 0;
  padding: 0;
  list-style: none;
}

.radio-cards {
  border: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  display: grid;
}

@media (min-width: 47.5rem) {
  .radio-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.radio-card {
  border: 1px solid var(--input);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background-color var(--duration-fast) linear,
    border-color var(--duration-fast) linear;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  padding: 12px;
  display: grid;
}

.radio-card:hover {
  background: var(--secondary);
}

.radio-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--accent);
}

.radio-card:has(input:focus-visible) {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: var(--focus-ring-offset);
}

.radio-card input {
  accent-color: var(--primary);
  grid-row: span 2;
  margin: 2px 0 0;
}

.radio-card input:focus-visible {
  outline: none;
}

.radio-card__title {
  font-size: var(--text-sm);
  font-weight: 600;
}

.radio-card__text {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.radio-cards:disabled .radio-card {
  cursor: not-allowed;
  opacity: .7;
}

.switch-row {
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  display: flex;
}

.switch-row__text {
  gap: 2px;
  display: grid;
}

.switch-row__text label {
  font-size: var(--text-sm);
  cursor: pointer;
  font-weight: 600;
}

.switch-row__text p {
  max-width: 58ch;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

.switch {
  border-radius: var(--radius-full);
  background: var(--neutral-400);
  appearance: none;
  cursor: pointer;
  width: 38px;
  height: 22px;
  transition: background-color var(--duration-fast) linear;
  flex: none;
  margin: 0;
  position: relative;
}

.switch:after {
  content: "";
  border-radius: var(--radius-full);
  background: var(--card);
  width: 16px;
  height: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-out);
  position: absolute;
  top: 3px;
  left: 3px;
}

.switch:checked {
  background: var(--primary);
}

.switch:checked:after {
  transform: translateX(16px);
}

.switch:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.savebar {
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--popover);
  width: fit-content;
  max-width: 100%;
  color: var(--popover-foreground);
  box-shadow: var(--shadow-lg);
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 4px 4px 12px;
  display: flex;
  position: sticky;
}

.savebar__text {
  font-size: var(--text-sm);
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0 8px 0 0;
  display: flex;
}

.savebar__text:before {
  content: "";
  background: var(--warning);
  border-radius: 999px;
  flex: none;
  width: 8px;
  height: 8px;
}

.savebar__actions {
  gap: 4px;
  display: flex;
}

@media (max-width: 40rem) {
  .savebar {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: 100%;
  }

  .savebar__text {
    white-space: normal;
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seg-tabs__tab, .radio-card, .switch, .switch:after {
    transition: none;
  }
}

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

@media (max-width: 68.75rem) {
  .summary-strip--3 .summary-strip__item:nth-child(n+4) {
    border-top: 0;
  }
}

@media (max-width: 47.5rem) {
  .summary-strip--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-strip--3 .summary-strip__item, .summary-strip--3 .summary-strip__item:nth-child(-n+2) {
    border-top: 0;
    border-inline-end: 1px solid var(--border);
  }

  .summary-strip--3 .summary-strip__item:last-child {
    border-inline-end: 0;
  }

  .summary-strip--3 .summary-strip__item {
    padding: 12px 14px;
  }
}

.sort-field {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  display: inline-flex;
}

.sort-field__select {
  width: auto;
  min-height: 2.5rem;
  padding-inline-end: 28px;
}

@media (max-width: 47.5rem) {
  .sort-field {
    margin-inline-start: 0;
  }
}

.cell-desc {
  -webkit-line-clamp: 1;
  max-width: 60ch;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.playlist-table .playlist-table__num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.warning-cell {
  font-variant-numeric: tabular-nums;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  display: inline-flex;
}

.playlist-editor__panel {
  gap: var(--space-5);
  align-content: start;
  min-width: 0;
  display: grid;
}

.playlist-editor__panel[hidden] {
  display: none;
}

.editor-split {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 20px;
  display: grid;
}

.editor-split__library {
  top: var(--space-4);
  min-width: 0;
  position: sticky;
}

.only-narrow {
  display: none !important;
}

@media (max-width: 68.75rem) {
  .editor-split {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 60rem) {
  .editor-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .editor-split__library {
    display: none;
  }

  .only-narrow {
    display: inline-flex !important;
  }
}

.save-state {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.save-state:empty {
  display: none;
}

.save-state .rt-icon {
  color: var(--success);
}

.playlist-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.playlist-row {
  border-bottom: 1px solid var(--border);
  background: var(--card);
  grid-template-columns: 32px 2.5rem 80px minmax(0, 1fr) auto auto auto;
  grid-template-areas: "handle pos thumb main duration switch actions";
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 8px;
  display: grid;
  position: relative;
}

.playlist-row:last-child {
  border-bottom: 0;
}

.playlist-row[data-dragging] {
  z-index: 10;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  outline: 1px solid var(--ring);
}

.playlist-row[data-disabled] .playlist-row__main, .playlist-row[data-disabled] .playlist-row__thumb {
  opacity: .6;
}

.playlist-row[data-drop]:before {
  content: "";
  background: var(--primary);
  border-radius: 2px;
  height: 2px;
  position: absolute;
  inset-inline: 8px;
}

.playlist-row[data-drop="before"]:before {
  top: -1px;
}

.playlist-row[data-drop="after"]:before {
  bottom: -1px;
}

.playlist-row__handle {
  border-radius: var(--radius-md);
  width: 2rem;
  height: 2.75rem;
  color: var(--muted-foreground);
  cursor: grab;
  touch-action: none;
  transition: background-color var(--duration-fast) linear;
  background: none;
  border: 0;
  grid-area: handle;
  place-items: center;
  padding: 0;
  display: grid;
}

.playlist-row__handle:hover, .playlist-row__handle[aria-pressed="true"] {
  background: var(--secondary);
  color: var(--foreground);
}

.playlist-row[data-dragging] .playlist-row__handle {
  cursor: grabbing;
}

.playlist-row__handle-space {
  grid-area: handle;
}

.playlist-row__position {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  text-align: end;
  font-variant-numeric: tabular-nums;
  grid-area: pos;
  font-weight: 600;
}

.playlist-row__thumb {
  grid-area: thumb;
}

.playlist-row__main {
  grid-area: main;
  min-width: 0;
}

.playlist-row__name {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-weight: 600;
  overflow: hidden;
}

.playlist-row__name a {
  color: inherit;
  text-decoration: none;
}

.playlist-row__name a:hover {
  color: var(--brand-text);
  text-underline-offset: .2em;
  text-decoration: underline;
}

.playlist-row__meta {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 2px 0 0;
  display: flex;
}

.playlist-row__mode {
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.playlist-row__duration {
  grid-area: duration;
}

.playlist-row__switch {
  grid-area: switch;
}

.playlist-row__actions {
  grid-area: actions;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  min-width: 4.5rem;
  display: inline-flex;
}

.item-flag {
  align-items: center;
  gap: 4px;
  font-weight: 500;
  display: inline-flex;
}

.item-flag--warning {
  color: var(--status-partial-text);
}

.playlist-row__position--input {
  border-radius: var(--radius-md);
  width: 100%;
  height: 2rem;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--duration-fast) linear,
    border-color var(--duration-fast) linear;
  background: none;
  border: 1px solid #0000;
  padding: 0 4px;
  font-weight: 600;
}

.playlist-row__position--input:hover {
  border-color: var(--input);
}

.playlist-row__position--input:focus-visible {
  border-color: var(--ring);
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: 0;
  background: var(--card);
  color: var(--foreground);
}

.playlist-row__source {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 16rem;
  overflow: hidden;
}

.playlist-row[data-expired] .playlist-row__thumb {
  opacity: .6;
}

.rule-badges {
  align-items: center;
  gap: 2px;
  display: inline-flex;
}

.rule-badge {
  border-radius: var(--radius-md);
  width: 1.5rem;
  height: 1.5rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color var(--duration-fast) linear;
  background: none;
  border: 0;
  place-items: center;
  padding: 0;
  display: inline-grid;
}

span.rule-badge {
  cursor: default;
}

.rule-badge:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.rule-badge[data-warning] {
  color: var(--status-partial-text);
}

.rule-badge:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: 0;
}

.rt-modal--center.item-detail {
  max-height: min(90vh, 56rem);
}

.item-detail .rt-modal__head {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.item-detail .rt-modal__icon {
  border-radius: var(--radius-lg);
  width: 2.75rem;
  height: 2.75rem;
}

.item-detail .rt-modal__body {
  padding-top: var(--space-5);
}

.item-detail__meta {
  font-size: var(--text-sm);
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  display: flex;
}

.item-detail__meta-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 28ch;
  color: var(--foreground);
  font-weight: 500;
  overflow: hidden;
}

.item-detail__meta-sep {
  color: var(--muted-foreground);
}

.item-detail__state {
  margin-inline-start: 6px;
}

.item-detail__basics {
  gap: var(--space-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  display: grid;
}

.item-detail__basics-col {
  gap: var(--space-4);
  min-width: 0;
  display: grid;
}

.item-detail__form {
  gap: var(--space-5);
  display: grid;
}

.item-detail__source {
  gap: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--muted);
  grid-template-columns: 8rem minmax(0, 1fr);
  align-items: center;
  padding: 12px;
  display: grid;
}

.item-detail__thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--secondary);
  width: 8rem;
  color: var(--muted-foreground);
  place-items: center;
  display: grid;
  overflow: hidden;
}

.item-detail__thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.item-detail__facts {
  gap: var(--space-4);
  font-size: var(--text-sm);
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  margin: 0;
  display: grid;
}

.item-detail__facts div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.item-detail__facts dt {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.item-detail__facts dd {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  margin: 0;
}

.item-detail__section {
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: grid;
}

.item-detail__section-head {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.item-detail__section-icon {
  border-radius: var(--radius-md);
  background: var(--accent);
  width: 2rem;
  height: 2rem;
  color: var(--brand-text);
  flex: none;
  place-items: center;
  display: grid;
}

.item-detail__section-head h3, .item-detail__legend {
  font-size: var(--text-base);
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  display: flex;
}

.item-detail__section-head h3:focus {
  outline: none;
}

.item-detail__section-head p {
  max-width: 60ch;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 2px 0 0;
}

.item-detail__duration {
  border: 0;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
}

.item-detail__duration .rt-field__error {
  margin: 0;
}

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

.item-detail__clear {
  font: inherit;
  font-size: var(--text-sm);
  color: var(--brand-text);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.item-detail__clear:hover {
  text-underline-offset: .2em;
  text-decoration: underline;
}

.item-detail__clear:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.item-detail__unsaved {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin-inline-end: auto;
}

.item-rules {
  gap: 10px;
  display: grid;
}

.item-rules__list {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.item-rules__empty {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

.item-rules__add {
  font-size: var(--text-sm);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.item-rules .rt-field__error {
  margin: 0;
}

.window-row, .criterion-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  position: relative;
}

.window-row__set {
  border: 0;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
}

.window-row__legend {
  font-size: var(--text-sm);
  padding: 0;
  font-weight: 600;
}

.window-row__remove {
  top: 4px;
  position: absolute;
  inset-inline-end: 4px;
}

.window-row__days {
  gap: 6px;
  display: grid;
}

.day-chips {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.day-chip {
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: var(--card);
  min-width: 2.75rem;
  height: 2rem;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--foreground);
  cursor: pointer;
  transition: background-color var(--duration-fast) linear,
    border-color var(--duration-fast) linear;
  padding: 0 8px;
  font-weight: 500;
}

.day-chip:hover:not(:disabled) {
  background: var(--secondary);
}

.day-chip[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--accent);
  color: var(--brand-text);
}

.day-chip:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: 2px;
}

.day-chip:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.window-row__times {
  grid-template-columns: repeat(2, minmax(0, 9rem));
  gap: 12px;
  display: grid;
}

.window-row__note {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  align-items: center;
  gap: 6px;
  margin: 0;
  display: flex;
}

.criterion-row__set {
  border: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  grid-template-areas: "condition target remove"
                       "value value value";
  align-items: end;
  gap: 10px 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
}

.criterion-row__condition {
  grid-area: condition;
}

.criterion-row__target {
  grid-area: target;
}

.criterion-row__value {
  grid-area: value;
}

.criterion-row__remove {
  grid-area: remove;
}

.combo[data-removed] .combo__input {
  color: var(--status-partial-text);
}

@media (max-width: 40rem) {
  .item-detail__pair, .item-detail__basics, .item-detail__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .item-detail__source {
    grid-template-columns: 5rem minmax(0, 1fr);
  }

  .item-detail__thumb {
    width: 5rem;
  }
}

.playlist-items__empty {
  margin: var(--space-4);
  border: 1px dashed var(--input);
  border-radius: var(--radius-lg);
  transition: background-color var(--duration-fast) linear,
    border-color var(--duration-fast) linear;
}

.playlist-items__empty p {
  margin: 0;
}

.playlist-items__empty.is-drop-target {
  border-color: var(--primary);
  background: var(--accent);
}

.playlist-items__foot {
  padding: 10px var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
  gap: 4px 12px;
  display: flex;
}

@media (max-width: 47.5rem) {
  .playlist-row {
    grid-template-columns: 28px 64px minmax(0, 1fr) auto;
    grid-template-areas: "handle thumb main actions"
                         "handle thumb duration switch";
    gap: 6px 10px;
    padding: 10px 10px 10px 4px;
  }

  .playlist-row__position {
    display: none;
  }

  .playlist-row__thumb {
    align-self: start;
  }

  .playlist-row__duration {
    justify-self: start;
  }

  .playlist-row__switch {
    justify-self: end;
  }
}

.dur-value {
  font-variant-numeric: tabular-nums;
  justify-items: end;
  gap: 0;
  min-width: 4.5rem;
  display: grid;
}

.dur-value b {
  font-size: var(--text-sm);
  font-weight: 600;
}

.dur-value span {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.dur-value--button {
  border-radius: var(--radius-md);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background-color var(--duration-fast) linear,
    border-color var(--duration-fast) linear;
  background: none;
  border: 1px solid #0000;
  padding: 4px 8px;
}

.dur-value--button:hover, .dur-value--button[aria-expanded="true"] {
  border-color: var(--border);
  background: var(--secondary);
}

.dur-value--button[data-set] span {
  color: var(--brand-text);
}

@media (max-width: 47.5rem) {
  .dur-value {
    grid-auto-flow: column;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
  }
}

.duration-pop {
  width: 18.75rem;
}

.duration-form {
  gap: 12px;
  padding: 14px;
  display: grid;
}

.duration-form__options {
  border: 0;
  gap: 8px;
  margin: 0;
  padding: 0;
  display: grid;
}

.duration-form__title {
  margin-bottom: 4px;
  padding: 0;
  font-weight: 600;
}

.duration-option {
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--duration-fast) linear,
    border-color var(--duration-fast) linear;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 8px 10px;
  display: grid;
}

.duration-option:hover {
  background: var(--secondary);
}

.duration-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--accent);
}

.duration-option input {
  accent-color: var(--primary);
  margin: 2px 0 0;
}

.duration-option b {
  font-size: var(--text-sm);
  display: block;
}

.duration-option small {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  display: block;
}

.sort-mode .duration-option b {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.subplaylist-mode .duration-form__seconds label {
  color: var(--foreground);
  font-weight: 500;
}

.add-subplaylist__form {
  gap: var(--space-3);
  display: grid;
}

.duration-form__seconds {
  font-size: var(--text-sm);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.duration-form__seconds .rt-input {
  font-variant-numeric: tabular-nums;
  width: 7rem;
}

.duration-form .rt-field__error {
  margin: 0;
}

.duration-form__actions {
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.hover-card-anchor {
  display: contents;
}

.subject-thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--screen);
  width: 80px;
  color: var(--screen-foreground);
  cursor: zoom-in;
  transition: border-color var(--duration-fast) linear;
  place-items: center;
  padding: 0;
  display: grid;
  position: relative;
  overflow: hidden;
}

.subject-thumb:hover {
  border-color: var(--ring);
}

.subject-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.subject-thumb__badge {
  border-radius: var(--radius-sm);
  background: var(--card);
  width: 18px;
  height: 18px;
  color: var(--foreground);
  place-items: center;
  display: grid;
  position: absolute;
  inset: auto 3px 3px auto;
}

@media (max-width: 47.5rem) {
  .playlist-row .subject-thumb {
    width: 64px;
  }
}

.hover-card {
  z-index: 72;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--popover);
  width: 18rem;
  color: var(--popover-foreground);
  box-shadow: var(--shadow-lg);
  position: fixed;
  overflow: hidden;
}

.subject-card__media {
  border-bottom: 1px solid var(--border);
  background: var(--screen);
  min-height: 10rem;
  color: var(--screen-foreground);
  justify-content: center;
  align-items: center;
  display: flex;
  overflow: hidden;
}

.subject-card__media img {
  object-fit: contain;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 14rem;
  display: block;
}

.subject-card__body {
  gap: 8px;
  padding: 10px 12px 12px;
  display: grid;
}

.subject-card__name {
  overflow-wrap: anywhere;
  margin: 0;
  font-weight: 600;
}

.subject-card__facts {
  font-size: var(--text-sm);
  gap: 2px;
  margin: 0;
  display: grid;
}

.subject-card__facts > div {
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 8px;
  display: grid;
}

.subject-card__facts dt {
  color: var(--muted-foreground);
}

.subject-card__facts dd {
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.subject-card__warning {
  font-size: var(--text-sm);
  color: var(--status-partial-text);
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-weight: 500;
  display: flex;
}

.subject-card__warning .rt-icon {
  flex: none;
  margin-top: 2px;
}

.subject-card__hint {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin: 0;
}

.preview-meta {
  flex-wrap: wrap;
  gap: 4px 12px;
  display: inline-flex;
}

.preview-dialog__body {
  gap: var(--space-3);
  display: grid;
}

.preview-stage {
  border-radius: var(--radius-md);
  background: var(--screen);
  color: var(--screen-foreground);
  justify-content: center;
  align-items: center;
  display: flex;
  overflow: hidden;
}

.preview-stage__media {
  object-fit: contain;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70dvh, 40rem);
  display: block;
}

.child-preview {
  gap: var(--space-3);
  justify-items: start;
  display: grid;
}

.child-preview__list {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.child-preview__item {
  font-size: var(--text-sm);
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  display: grid;
}

.child-preview__item + .child-preview__item {
  border-top: 1px solid var(--border);
}

.child-preview__item[data-disabled] {
  color: var(--muted-foreground);
}

.child-preview__name {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.child-preview__meta {
  color: var(--muted-foreground);
}

.child-preview__duration {
  font-variant-numeric: tabular-nums;
}

.preview-stage--placeholder {
  aspect-ratio: 16 / 9;
  max-height: min(70dvh, 40rem);
  position: relative;
}

.preview-stage--placeholder img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.preview-stage__loading {
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--foreground);
  font-size: var(--text-sm);
  padding: 4px 8px;
  position: absolute;
  inset: auto 12px 12px auto;
}

.preview-figure {
  gap: 6px;
  margin: 0;
  display: grid;
}

.preview-figure figcaption {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.preview-dialog .rt-modal__foot {
  justify-content: space-between;
}

.preview-dialog__position {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.preview-dialog__nav {
  gap: 8px;
  display: inline-flex;
}

.library {
  max-height: calc(100vh - 2 * var(--space-4));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  display: grid;
  overflow: hidden;
}

.library-sheet .library {
  border: 0;
  border-radius: 0;
  max-height: none;
}

.library__head {
  min-height: 3.25rem;
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.library__title {
  font-size: var(--text-base);
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  display: flex;
}

.library__title .rt-icon {
  color: var(--muted-foreground);
}

.library__tools {
  border-bottom: 1px solid var(--border);
  gap: 8px;
  padding: 12px 12px 8px;
  display: grid;
}

.library__tools .seg-tabs {
  width: 100%;
}

.library__tools .seg-tabs__tab {
  flex: 1;
  justify-content: center;
}

.library__body {
  min-height: 0;
  overflow-y: auto;
}

.library__list {
  margin: 0;
  padding: 4px;
  list-style: none;
}

.library__item {
  border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) linear;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 8px;
  display: grid;
}

.library__item[data-draggable] {
  cursor: grab;
  touch-action: pan-y;
}

.library__item:hover {
  background: var(--secondary);
}

.library__item[data-dragging] {
  opacity: .5;
}

.library__item .subject-thumb {
  width: 64px;
}

.library__text {
  min-width: 0;
  display: grid;
}

.library__name {
  font-size: var(--text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  overflow: hidden;
}

.library__meta {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  flex-wrap: wrap;
  gap: 2px 8px;
  display: flex;
}

.library__in {
  color: var(--status-online-text);
  align-items: center;
  gap: 3px;
  display: inline-flex;
}

.library__empty {
  color: var(--muted-foreground);
  justify-items: start;
  gap: 10px;
  margin: 0;
  padding: 16px;
  display: grid;
}

.library__empty > p {
  margin: 0;
}

.library__hint {
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin: 0;
  padding: 10px 14px;
}

.drag-chip {
  border: 1px solid var(--ring);
  border-radius: var(--radius-md);
  background: var(--popover);
  max-width: 16rem;
  color: var(--popover-foreground);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: grabbing;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-weight: 500;
  display: inline-flex;
  overflow: hidden;
}

.playlist-form__textarea {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.5;
}

.settings__fact {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--secondary);
  font-size: var(--text-sm);
  gap: 2px;
  padding: 10px 12px;
  display: grid;
}

.settings__fact span {
  color: var(--muted-foreground);
}

.settings__danger {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.settings__danger p {
  max-width: 48ch;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .playlist-row, .playlist-row__handle, .dur-value--button, .duration-option, .subject-thumb, .library__item, .playlist-items__empty, .kpi {
    transition: none !important;
  }
}

.news-sources {
  gap: var(--space-4);
  min-width: 0;
  display: grid;
}

.news-sources__help {
  max-width: 70ch;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

.news-source-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.news-source-list--empty {
  padding: var(--space-4);
  color: var(--muted-foreground);
  margin: 0;
}

.news-source-list__summary {
  padding: 12px var(--space-4);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
  margin: 0;
}

.news-source-list__items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-source {
  align-items: center;
  gap: var(--space-4);
  padding: 12px var(--space-4);
  border-top: 1px solid var(--border);
  grid-template-columns: minmax(0, 1fr) 8rem 12rem;
  display: grid;
}

.news-source--head {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  padding-block: 8px;
  font-weight: 600;
}

.news-source__main {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.news-source__name {
  overflow-wrap: anywhere;
  font-weight: 500;
}

.news-source__note {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.news-source__badge {
  border-radius: var(--radius-full);
  display: inline-flex;
}

.news-source__badge:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.news-source__switch {
  text-align: end;
  justify-content: flex-end;
  display: flex;
}

.news-source__skeleton-name {
  width: 40%;
}

.news-source__skeleton-badge {
  width: 4.5rem;
}

.news-source__skeleton-switch {
  border-radius: var(--radius-full);
  justify-self: end;
  width: 38px;
  height: 22px;
}

@media (max-width: 40rem) {
  .news-source {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 6px;
  }

  .news-source--head {
    display: none;
  }

  .news-source__license {
    grid-row: 2;
  }

  .news-source__switch {
    grid-area: 1 / 2 / span 2;
  }
}

.news-source-list__items:first-child > .news-source:first-child {
  border-top: 0;
}

.radio-cards--stack {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 47.5rem) {
  .radio-cards--stack {
    grid-template-columns: minmax(0, 1fr);
  }
}

.radio-cards > legend {
  margin-bottom: 6px;
  padding: 0;
}

.platform-settings__limit {
  font-variant-numeric: tabular-nums;
  max-width: 12rem;
}

.platform-settings__footnote {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin: 0;
}

.platform-settings__skeleton-title {
  width: 9rem;
}

.platform-settings__skeleton-row {
  width: 70%;
  height: 1.25rem;
}

.group-conn {
  gap: 2px;
  display: grid;
}

.group-conn__summary {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.group-conn__dots {
  gap: 3px;
  display: inline-flex;
}

.group-channel {
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: inline-flex;
}

.group-channel svg {
  color: var(--muted-foreground);
  flex: none;
}

.group-table__priority {
  text-align: end;
  white-space: nowrap;
}

.group-priority {
  font-variant-numeric: tabular-nums;
}

.group-priority-input {
  max-width: 8rem;
}

.group-members__search {
  padding: var(--space-3) var(--space-4) 0;
}

.group-members__check {
  width: 2.5rem;
}

.group-members__check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  margin: 0;
}

.zone-list {
  padding: var(--space-3) var(--space-4);
  margin: 0;
}

.zone-list__row {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  flex-wrap: wrap;
  display: flex;
}

.zone-list__zone {
  gap: 2px;
  display: grid;
}

.zone-list__name {
  font-weight: 600;
}

.zone-list__value {
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin: 0;
  display: flex;
}

.zone-list__actions {
  gap: 6px;
  display: inline-flex;
}

.group-rule {
  margin: 0 var(--space-4) var(--space-4);
}

.group-rule svg {
  color: var(--muted-foreground);
  flex: none;
}

.group-rule__title {
  font-weight: 600;
}

.group-rule__list {
  color: var(--muted-foreground);
  margin: 4px 0 0;
  padding-inline-start: 1.25rem;
}

.pick-list-fieldset {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.danger-zone {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--danger-100);
  border-radius: var(--radius-xl);
  background: var(--card);
  flex-wrap: wrap;
  display: flex;
}

.danger-zone__text {
  gap: 2px;
  display: grid;
}

.danger-zone__text p {
  margin: 0;
}

.danger-zone__title {
  font-size: var(--text-sm);
  margin: 0;
  font-weight: 600;
}

.channel-groups {
  padding: var(--space-3) var(--space-4) 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.channel-groups__label {
  font-size: var(--text-sm);
  align-items: center;
  gap: 6px;
  font-weight: 600;
  display: inline-flex;
}

.channel-groups__list {
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.channel-groups__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  align-items: center;
  gap: 2px;
  padding-inline-start: 10px;
  display: inline-flex;
}

.channel-groups__item .rt-icon-button {
  width: 28px;
  height: 28px;
}

.device-groups-line {
  gap: 6px;
}

.summary-strip__badge {
  font-size: var(--text-sm);
}

.toolbar-updated {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  display: inline-flex;
}

.bulk-bar {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--accent);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  display: flex;
}

.bulk-bar__count {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  margin-inline-end: 4px;
}

.bulk-bar__spacer {
  flex: 1;
}

.device-table .col-check {
  width: 40px;
  padding-inline-end: 0;
}

.device-table .col-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.device-table tr.row-off .cell-name__link, .device-table tr.row-off .playing-cell {
  color: var(--muted-foreground);
}

.device-status-cell {
  justify-items: start;
  gap: 4px;
  display: grid;
}

.device-state {
  border-radius: var(--radius-sm);
  display: inline-flex;
}

.attention-line {
  max-width: 28ch;
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  line-height: 1.35;
}

.attention-line--danger {
  color: var(--status-offline-text);
}

.attention-line--warning {
  color: var(--status-partial-text);
}

.playing-cell {
  gap: 2px;
  min-width: 0;
  max-width: 26ch;
  display: grid;
}

.playing-cell__channel, .playing-cell__item {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.playing-cell__channel {
  font-size: var(--text-sm);
}

.playing-cell__item {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.cell-num {
  font-variant-numeric: tabular-nums;
}

.empty-state__icon {
  border-radius: var(--radius-lg);
  background: var(--secondary);
  width: 48px;
  height: 48px;
  color: var(--muted-foreground);
  place-items: center;
  display: inline-grid;
}

.skeleton-rows {
  display: grid;
}

.skeleton-row {
  border-bottom: 1px solid var(--border);
  gap: 8px;
  padding: 14px 16px;
  display: grid;
}

.skeleton-row:last-child {
  border-bottom: 0;
}

.skeleton {
  border-radius: var(--radius-sm);
  background: var(--secondary);
  height: 12px;
  display: block;
}

.skeleton--sm {
  width: 24%;
  height: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    animation: 1.4s ease-in-out infinite skeleton-pulse;
  }
}

@keyframes skeleton-pulse {
  50% {
    opacity: .55;
  }
}

.link-button {
  color: var(--primary);
  font: inherit;
  font-size: var(--text-sm);
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
}

.link-button:disabled {
  color: var(--muted-foreground);
  cursor: not-allowed;
}

.dialog-footer__start {
  margin-inline-end: auto;
}

.stepper {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.stepper li {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.stepper li[aria-current="step"] {
  color: var(--foreground);
  font-weight: 600;
}

.stepper__n {
  border: 1px solid var(--border);
  width: 22px;
  height: 22px;
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  place-items: center;
  display: inline-grid;
}

.stepper li[aria-current="step"] .stepper__n {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.stepper li[data-done] .stepper__n {
  border-color: var(--status-online);
  color: var(--status-online-text);
}

.pair-dialog__qr {
  font-size: var(--text-sm);
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  display: flex;
}

.steps-done li span small {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  display: block;
}

.device-detail__live {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.device-detail__seen {
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.device-detail__panel {
  min-width: 0;
}

.detail-cols {
  gap: var(--space-4);
  align-items: start;
  display: grid;
}

.detail-cols__col {
  gap: var(--space-4);
  min-width: 0;
  display: grid;
}

@media (min-width: 64rem) {
  .detail-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-cols--wide-left {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }
}

.card-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  min-width: 0;
}

.card-section__head {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 10px;
  display: flex;
}

.card-section__head--stack {
  gap: 2px;
  display: grid;
}

.card-section__title {
  font-size: var(--text-base);
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  display: inline-flex;
}

.card-section__desc {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

.card-section__spacer {
  flex: 1;
}

.card-section__count {
  background: var(--secondary);
  min-width: 22px;
  font-size: var(--text-xs);
  text-align: center;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  padding: 0 6px;
}

.card-section__body {
  gap: var(--space-3);
  margin: 0;
  padding: 0 16px 16px;
  display: grid;
}

.pill {
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  border-radius: 999px;
  align-items: center;
  padding: 1px 8px;
  display: inline-flex;
}

.seg-toggle {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--secondary);
  margin-inline-start: auto;
  padding: 2px;
  display: inline-flex;
}

.seg-toggle__btn {
  border-radius: calc(var(--radius-md) - 2px);
  color: var(--muted-foreground);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 3px 10px;
}

.seg-toggle__btn[aria-pressed="true"] {
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}

.timeline {
  gap: 8px;
  display: grid;
}

.timeline__summary {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  display: flex;
}

.timeline__bar {
  border-radius: var(--radius-md);
  background: var(--secondary);
  height: 28px;
  display: flex;
  overflow: hidden;
}

.timeline__seg {
  min-width: 1px;
  height: 100%;
  display: block;
}

.timeline__seg--online {
  background: var(--status-online);
}

.timeline__seg--partial {
  background: var(--status-partial);
}

.timeline__seg--offline {
  background: repeating-linear-gradient(135deg,
    var(--status-offline) 0 4px,
    var(--status-offline-soft) 4px 8px);
}

.timeline__seg--noData {
  background: none;
}

.timeline__axis {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  justify-content: space-between;
  display: flex;
}

.timeline__legend {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.timeline__legend li {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.timeline__swatch {
  border-radius: 3px;
  width: 12px;
  height: 12px;
  display: inline-block;
}

.event-log {
  margin: 0;
  padding: 0 16px 12px;
  list-style: none;
  display: grid;
}

.event-log__day {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  padding: 10px 0 4px;
  font-weight: 600;
  display: block;
}

.event-log__row {
  grid-template-columns: 3.25rem 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 6px 0;
  display: grid;
}

.event-log__time {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.event-log__text {
  font-size: var(--text-sm);
  gap: 2px;
  display: grid;
}

.event-log__detail {
  color: var(--muted-foreground);
}

.facts {
  margin: 0;
  padding: 0 16px 12px;
  display: grid;
}

.facts > div {
  border-top: 1px solid var(--border);
  grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  display: grid;
}

.facts > div:first-child {
  border-top: 0;
}

.facts dt {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.facts dd {
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
  margin: 0;
  display: grid;
}

.facts__sub {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.mirror-card__off {
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  text-align: center;
  align-content: center;
  place-items: center;
  gap: 8px;
  margin: 0 16px 16px;
  display: grid;
}

.mirror-stage--compact {
  justify-content: center;
  width: auto;
  margin: 0 16px 12px;
  display: flex;
}

.mirror-stage--compact .mirror-screen {
  width: min(100%, 426.667px);
}

.mirror-stage--compact .mirror-screen--portrait {
  width: min(100%, 180px);
  max-width: none;
  margin-inline: 0;
}

.mirror-stage--dialog {
  justify-content: center;
  max-width: none;
  display: flex;
}

.mirror-stage--dialog .mirror-screen {
  width: min(100%, 177.778dvh - 24.8889rem);
}

.mirror-stage--dialog .mirror-screen--portrait {
  width: min(100%, 56.25dvh - 7.875rem);
  max-width: none;
  margin-inline: 0;
}

.mirror-stage.is-stale {
  opacity: .6;
}

.mirror-card__now {
  font-size: var(--text-sm);
  gap: 2px;
  margin: 0;
  padding: 0 16px 16px;
  display: grid;
}

.signal-list, .error-list {
  margin: 0;
  padding: 0 16px 12px;
  list-style: none;
  display: grid;
}

.signal-list li {
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 8px 0;
  display: grid;
}

.signal-list li:first-child, .error-list li:first-child {
  border-top: 0;
}

.signal-list li[data-state="late"] time {
  color: var(--status-partial-text);
}

.signal-list__label {
  gap: 2px;
  display: grid;
}

.signal-list__label small, .error-list .muted-text {
  font-size: var(--text-xs);
}

.error-list li {
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  gap: 2px;
  padding: 8px 0;
  display: grid;
}

.error-list code {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.settings__section--danger .settings__title {
  color: var(--status-offline-text);
}

.danger-row {
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 0;
  display: flex;
}

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

.danger-row__text {
  min-width: 0;
  font-size: var(--text-sm);
  flex: 18rem;
  gap: 2px;
  display: grid;
}

.danger-row__text p {
  margin: 0;
}

.is-blocked {
  cursor: not-allowed;
  opacity: .6;
}

@media (max-width: 40rem) {
  .toolbar-updated {
    margin-inline-start: 0;
  }

  .attention-line, .playing-cell {
    max-width: none;
  }
}

.release-table__version {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.release-cell {
  justify-items: start;
  gap: 2px;
  display: grid;
}

.release-critical {
  border-color: var(--warning-300);
  color: var(--status-partial-text);
}

.release-paused {
  font-size: var(--text-xs);
  color: var(--status-partial-text);
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.release-progress {
  font-size: var(--text-xs);
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 2px 14px;
  margin: 0;
  display: grid;
}

.release-progress__item {
  gap: 6px;
  display: flex;
}

.release-progress__item dt {
  color: var(--muted-foreground);
}

.release-progress__item dd {
  margin: 0;
  font-weight: 600;
}

.release-progress__item[data-outcome="failed"] dd {
  color: var(--lightningcss-light, var(--danger-700)) var(--lightningcss-dark, var(--danger-400));
}

.release-note {
  font-size: var(--text-sm);
  margin: 0;
}

.release-form__row {
  gap: var(--space-4) var(--space-6);
  flex-wrap: wrap;
  display: flex;
}

.release-file {
  height: auto;
  padding-block: 6px;
}

.release-upload {
  gap: 6px;
  display: grid;
}

.release-upload__label, .release-upload__count {
  font-size: var(--text-sm);
  margin: 0;
}

.release-upload__count {
  color: var(--muted-foreground);
}

.release-panel {
  gap: var(--space-4);
  display: grid;
}

.release-steps {
  gap: var(--space-3);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.release-step {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  gap: 10px;
  padding: 12px;
  display: flex;
}

.release-step--current {
  border-color: var(--primary);
  background: var(--accent);
}

.release-step__marker {
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: 1.5rem;
  height: 1.5rem;
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
  flex: none;
  place-items: center;
  font-weight: 700;
  display: grid;
}

.release-step--current .release-step__marker {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.release-step--done .release-step__marker {
  border-color: var(--status-online);
  color: var(--status-online-text);
}

.release-step__text {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.release-step__title {
  font-size: var(--text-sm);
  font-weight: 600;
}

.release-step__desc {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.release-step__badge {
  font-size: var(--text-xs);
  color: var(--accent-foreground);
  font-weight: 600;
}

.release-actions {
  gap: 6px;
  display: grid;
}

.release-actions__buttons {
  gap: var(--space-2);
  flex-wrap: wrap;
  display: flex;
}

.release-actions__reason {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
}

.release-danger {
  border-color: var(--danger-100);
}

.release-withdraw__field {
  margin-top: var(--space-3);
}

.release-targets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.release-target {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  border-top: 1px solid var(--border);
  padding: 8px 0;
  display: flex;
}

.release-target:first-child {
  border-top: 0;
}

.release-target__label {
  min-width: 0;
  color: var(--muted-foreground);
  align-items: center;
  gap: 10px;
  display: flex;
}

.release-target__text {
  min-width: 0;
  color: var(--foreground);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
  display: grid;
}

.release-target__state {
  font-size: var(--text-sm);
  white-space: nowrap;
}

.release-target-search {
  gap: 6px;
  display: grid;
}

.release-error {
  font-size: var(--text-sm);
  color: var(--lightningcss-light, var(--danger-700)) var(--lightningcss-dark, var(--danger-400));
}

.release-mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.release-hash {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  display: flex;
}

.release-hash__value {
  overflow-wrap: anywhere;
  min-width: 0;
}

.release-hash__status {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.player-update {
  gap: 2px;
  margin-top: 4px;
  display: grid;
}

.player-update__state {
  font-size: var(--text-xs);
  align-items: flex-start;
  gap: 6px;
  font-weight: 600;
  display: inline-flex;
}

.player-update__state svg {
  flex: none;
  margin-top: 1px;
}

.player-update__state--info {
  color: var(--lightningcss-light, var(--info-700)) var(--lightningcss-dark, var(--info-400));
}

.player-update__state--success {
  color: var(--status-online-text);
}

.player-update__state--warning {
  color: var(--status-partial-text);
}

.player-update__state--danger {
  color: var(--lightningcss-light, var(--danger-700)) var(--lightningcss-dark, var(--danger-400));
}

.player-update__state--neutral {
  color: var(--muted-foreground);
}

@media (max-width: 900px) {
  .release-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .release-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .release-target {
    flex-wrap: wrap;
  }
}

/* [project]/apps/web/src/features/layouts/layouts.css [app-client] (css) */
.layout-shape {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--muted);
  flex: none;
  position: relative;
  overflow: hidden;
}

.layout-shape--landscape {
  aspect-ratio: 16 / 9;
}

.layout-shape--portrait {
  aspect-ratio: 9 / 16;
}

.layout-shape__zone {
  border: 1px solid color-mix(in oklab, var(--primary) 40%, var(--border));
  background: color-mix(in oklab, var(--primary) 12%, var(--card));
  align-content: start;
  display: grid;
  position: absolute;
  overflow: hidden;
}

.layout-shape__zone--muted {
  border-style: dashed;
  border-color: var(--border);
  background: var(--muted);
  opacity: .6;
}

.layout-shape--thumb.layout-shape--landscape {
  width: 96px;
}

.layout-shape--thumb.layout-shape--portrait {
  height: 54px;
}

.layout-shape--preset.layout-shape--landscape {
  width: 100%;
}

.layout-shape--preset.layout-shape--portrait {
  height: 72px;
  margin-inline: auto;
}

.layout-shape--preview.layout-shape--landscape {
  width: 100%;
  max-width: 30rem;
}

.layout-shape--preview.layout-shape--portrait {
  max-width: 100%;
  height: 20rem;
}

.layout-shape__label {
  min-width: 0;
  font-size: var(--text-xs);
  gap: 1px;
  padding: 4px 6px;
  line-height: 1.25;
  display: grid;
}

.layout-shape__name, .layout-shape__channel {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.layout-shape__name {
  color: var(--foreground);
  font-weight: 600;
}

.layout-shape__channel {
  color: var(--muted-foreground);
}

.layout-cell {
  align-items: center;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.layout-cell__thumb {
  flex: none;
  place-items: center;
  width: 96px;
  height: 54px;
  display: grid;
}

.layout-table__num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.layout-skeleton__thumb {
  aspect-ratio: 16 / 9;
  flex: none;
  width: 96px;
  height: auto;
}

.preset-grid {
  border: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  display: grid;
}

.preset-grid legend {
  margin-bottom: 6px;
}

@media (min-width: 40rem) {
  .preset-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.preset-card {
  border: 1px solid var(--input);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background-color var(--duration-fast) linear,
    border-color var(--duration-fast) linear;
  align-content: start;
  gap: 6px;
  padding: 10px;
  display: grid;
  position: relative;
}

.preset-card:hover {
  background: var(--secondary);
}

.preset-card--checked {
  border-color: var(--primary);
  background: var(--accent);
}

.preset-card:has(input:focus-visible) {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: var(--focus-ring-offset);
}

.preset-card input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.preset-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
}

.preset-card__meta {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.preset-grid:disabled .preset-card {
  cursor: not-allowed;
  opacity: .7;
}

.preset-strip {
  gap: 8px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  display: flex;
  overflow-x: auto;
}

.preset-strip__button {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  width: 7.5rem;
  color: var(--foreground);
  font: inherit;
  font-size: var(--text-xs);
  text-align: center;
  cursor: pointer;
  transition: background-color var(--duration-fast) linear;
  justify-items: center;
  gap: 4px;
  padding: 8px;
  display: grid;
}

.preset-strip__button:hover {
  background: var(--secondary);
}

.preset-strip__button:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: var(--focus-ring-offset);
}

.preset-strip__button .layout-shape--portrait {
  height: 54px;
}

.layout-editor {
  gap: var(--space-5);
  min-width: 0;
  padding-bottom: var(--space-4);
  display: grid;
}

.layout-section-title {
  font-size: var(--text-base);
  margin: 0;
  font-weight: 600;
}

.layout-toolbar {
  align-items: flex-end;
  gap: var(--space-3) var(--space-4);
  flex-wrap: wrap;
  display: flex;
}

.layout-toolbar__field {
  gap: 4px;
  min-width: 8rem;
  display: grid;
}

.layout-toolbar__field--name {
  flex: 16rem;
}

.layout-toolbar__switch {
  min-height: 2.5rem;
  font-size: var(--text-sm);
  align-items: center;
  gap: 8px;
  font-weight: 600;
  display: inline-flex;
}

.layout-toolbar__history {
  align-items: center;
  gap: 2px;
  min-height: 2.5rem;
  display: inline-flex;
}

.layout-presets {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.layout-presets__hint {
  font-size: var(--text-sm);
  margin: 0;
}

.layout-workspace {
  gap: var(--space-4);
  align-items: start;
  min-width: 0;
  display: grid;
}

@media (min-width: 64rem) {
  .layout-workspace {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}

.layout-workspace__canvas {
  gap: 8px;
  min-width: 0;
  display: grid;
}

.layout-workspace__bar {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.layout-workspace__count {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.layout-workspace__limit {
  font-size: var(--text-sm);
  margin: 0;
}

.layout-canvas-frame {
  gap: 8px;
  min-width: 0;
  display: grid;
}

.layout-canvas {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--muted);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.layout-canvas--landscape {
  aspect-ratio: 16 / 9;
  max-height: 70vh;
}

.layout-canvas--portrait {
  aspect-ratio: 9 / 16;
  width: min(100%, 39.375vh);
  margin-inline: auto;
}

.layout-canvas--static {
  touch-action: auto;
}

.layout-canvas__grid {
  pointer-events: none;
  background-image: linear-gradient(to right,
      color-mix(in oklab, var(--border) 70%, transparent) 1px,
      transparent 1px),
    linear-gradient(to bottom,
      color-mix(in oklab, var(--border) 70%, transparent) 1px,
      transparent 1px);
  position: absolute;
  inset: 0;
}

.layout-canvas__help {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin: 0;
}

.layout-zone {
  border: 1px solid color-mix(in oklab, var(--primary) 45%, var(--border));
  background: color-mix(in oklab, var(--primary) 12%, var(--card));
  min-width: 0;
  color: var(--foreground);
  cursor: grab;
  transition: background-color var(--duration-fast) linear;
  outline: none;
  align-content: start;
  display: grid;
  position: absolute;
}

.layout-canvas--static .layout-zone {
  cursor: default;
}

.layout-zone:hover {
  background: color-mix(in oklab, var(--primary) 18%, var(--card));
}

.layout-zone--selected {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.layout-zone:focus-visible {
  box-shadow: inset 0 0 0 1px var(--primary),
    0 0 0 var(--focus-ring-width) var(--ring);
}

.layout-zone--error {
  border-color: var(--danger);
  background: color-mix(in oklab, var(--danger) 10%, var(--card));
}

.layout-zone__label {
  pointer-events: none;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
  display: grid;
}

.layout-zone__name, .layout-zone__key, .layout-zone__channel {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.layout-zone__name {
  font-size: var(--text-sm);
  font-weight: 600;
}

.layout-zone__key {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  align-items: center;
  gap: 6px;
  display: flex;
}

.layout-zone__primary {
  font-family: var(--font-sans);
}

.layout-zone__channel {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.layout-zone__handle {
  z-index: 1;
  border: 1.5px solid var(--primary);
  background: var(--card);
  border-radius: 2px;
  width: 12px;
  height: 12px;
  position: absolute;
}

.layout-zone__handle--nw {
  cursor: nwse-resize;
  top: 2px;
  left: 2px;
}

.layout-zone__handle--n {
  cursor: ns-resize;
  top: 2px;
  left: calc(50% - 6px);
}

.layout-zone__handle--ne {
  cursor: nesw-resize;
  top: 2px;
  right: 2px;
}

.layout-zone__handle--e {
  cursor: ew-resize;
  top: calc(50% - 6px);
  right: 2px;
}

.layout-zone__handle--se {
  cursor: nwse-resize;
  bottom: 2px;
  right: 2px;
}

.layout-zone__handle--s {
  cursor: ns-resize;
  bottom: 2px;
  left: calc(50% - 6px);
}

.layout-zone__handle--sw {
  cursor: nesw-resize;
  bottom: 2px;
  left: 2px;
}

.layout-zone__handle--w {
  cursor: ew-resize;
  top: calc(50% - 6px);
  left: 2px;
}

.layout-inspector {
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  min-width: 0;
  display: grid;
}

.layout-inspector__head {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.layout-inspector__title {
  font-size: var(--text-base);
  margin: 0;
  font-weight: 600;
}

.layout-inspector__field {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.layout-inspector__mono {
  font-family: var(--font-mono);
}

.layout-inspector__rect {
  border: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
}

.layout-inspector__rect legend {
  margin-bottom: 4px;
}

.layout-inspector__rect-field {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.layout-inspector__rect-label {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-weight: 600;
}

.layout-inspector__px {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.layout-inspector__rect-hint {
  grid-column: 1 / -1;
  margin: 0;
}

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

.layout-inspector .rt-field__hint {
  margin: 0;
}

.layout-inspector__remove {
  color: var(--danger);
  justify-self: start;
}

.percent-input {
  min-width: 0;
  display: grid;
  position: relative;
}

.percent-input__control {
  font-variant-numeric: tabular-nums;
  text-align: end;
  padding-inline-end: 1.75rem;
}

.percent-input__unit {
  height: 2.5rem;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  pointer-events: none;
  place-items: center;
  display: grid;
  position: absolute;
  top: 0;
  right: 10px;
}

.percent-input__error {
  font-size: var(--text-xs);
  color: var(--danger);
  margin-top: 2px;
}

.layout-validation {
  gap: var(--space-3);
  outline: none;
  display: grid;
}

.layout-validation:focus-visible {
  outline: var(--focus-ring-width) solid var(--ring);
  outline-offset: var(--focus-ring-offset);
}

.layout-validation__ok {
  font-size: var(--text-sm);
  align-items: center;
  gap: 6px;
  margin: 0;
  display: inline-flex;
}

.layout-validation__ok .rt-icon {
  color: var(--success);
}

.layout-zones {
  gap: 8px;
  min-width: 0;
  display: grid;
}

.zone-table td {
  padding: 8px 10px;
}

.zone-table .rt-input {
  min-width: 0;
}

.zone-table td:first-child {
  min-width: 9rem;
}

.zone-table td:nth-child(2) {
  min-width: 7rem;
}

.zone-table td:nth-child(n+3):nth-child(-n+6) {
  width: 6.5rem;
}

.zone-table__z {
  width: 4.5rem;
}

.zone-table__row--selected td {
  background: color-mix(in oklab, var(--accent) 60%, transparent);
}

@media (max-width: 64rem) {
  .layout-zones .channel-table-card {
    overflow-x: auto;
  }
}

@media (max-width: 47.5rem) {
  .zone-table tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
  }

  .zone-table .channel-table__main, .zone-table td:nth-child(2), .zone-table td:nth-child(8) {
    grid-column: 1 / -1;
  }

  .zone-table .channel-table__main {
    padding-inline-end: 44px;
  }

  .zone-table .channel-table__actions {
    width: auto;
    position: absolute;
    top: 12px;
    right: 14px;
  }

  .zone-table td:nth-child(n+3):nth-child(-n+6) {
    width: auto;
  }

  .zone-table__z {
    width: 100%;
  }
}

.layout-savebar__affects {
  color: var(--muted-foreground);
}

.layout-usage {
  gap: var(--space-4);
  display: grid;
}

.layout-usage__block {
  gap: 6px;
  display: grid;
}

.layout-usage__title {
  font-size: var(--text-sm);
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  display: flex;
}

.layout-usage__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.layout-usage__item {
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  display: flex;
}

.layout-usage--compact .layout-usage__item {
  padding-inline: 0;
}

.layout-usage__item:last-child {
  border-bottom: 0;
}

.layout-usage__meta {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.layout-usage__warn {
  font-size: var(--text-sm);
  color: var(--status-partial-text);
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.layout-usage__more {
  padding: 8px var(--space-4);
  font-size: var(--text-sm);
  margin: 0;
}

.layout-dialog-text {
  margin: 0;
}

.layout-device__body {
  gap: var(--space-4);
  padding: var(--space-4);
  min-width: 0;
  display: grid;
}

.layout-device__body > p {
  margin: 0;
}

.layout-device__grid {
  gap: var(--space-4);
  align-items: start;
  display: grid;
}

@media (min-width: 56rem) {
  .layout-device__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.layout-device__facts {
  gap: var(--space-3);
  margin: 0;
  display: grid;
}

.layout-device__facts > div {
  gap: 4px;
  display: grid;
}

.layout-device__facts dt {
  font-size: var(--text-sm);
  font-weight: 600;
}

.layout-device__facts dd {
  gap: 2px;
  margin: 0;
  display: grid;
}

.layout-device__facts .rt-field__hint {
  margin: 0;
}

.layout-zone-row__name {
  font-weight: 600;
}

.layout-zone-table th[scope="row"] {
  padding: 12px var(--space-4);
  border-bottom: 1px solid var(--border);
  font-weight: inherit;
  text-align: start;
}

.layout-zone-table tbody tr:last-child th {
  border-bottom: 0;
}

.layout-zone-row--muted th, .layout-zone-row--muted td {
  color: var(--muted-foreground);
}

@media (max-width: 47.5rem) {
  .layout-zone-table tr {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-zone-table th[scope="row"] {
    border: 0;
    padding: 0;
    display: block;
  }
}

/*# sourceMappingURL=%5Broot-of-the-server%5D__1hqafesw1g1dc._.css.map*/