/* Copyright (C) 2026 Snor LTD. All rights reserved. */
@font-face {
  font-family: Roboto;
  src: url('./assets/Roboto.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url('./assets/Outfit-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
:root {
  font-family: Roboto, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: #232724;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: transparent;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #91c6a4;
  outline-offset: 3px;
}
button:active {
  opacity: 0.75;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.demo {
  padding: 26px 32px 24px;
  background: #f2f2ef;
  border: 1px solid #e6e6e0;
  border-radius: 24px;
}
.demo-heading {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 26px;
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d5ddce;
  border-radius: 30px;
  background: #e9ede3;
  padding: 5px 9px;
  color: #526147;
  font-size: 11px;
  font-weight: 600;
}
.demo-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #748862;
}
.devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 56px;
  justify-content: center;
  align-items: center;
}
.device {
  min-width: 0;
}
.phone-shell {
  width: 100%;
  padding: 6px;
  border-radius: 39px;
  background: #292b2c;
  box-shadow:
    0 0 0 1px #a8a9a6,
    inset 0 0 0 2px #47494a,
    0 16px 28px -17px #24292066;
}
.phone-screen {
  position: relative;
  height: 712px;
  overflow: hidden;
  border-radius: 33px;
  background: #1d1e1e;
  color: #fafafa;
  color-scheme: dark;
  display: flex;
  flex-direction: column;
}
.android-status {
  height: 32px;
  min-height: 32px;
  padding: 9px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  user-select: none;
}
.camera {
  position: absolute;
  left: calc(50% - 5px);
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #090909;
  box-shadow: inset 0 0 0 2px #111;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 3px;
}
.status-icons svg {
  width: 12px;
  height: 12px;
}
.home-indicator {
  min-height: 19px;
  position: relative;
  background: inherit;
}
.home-indicator::after {
  content: '';
  position: absolute;
  width: 92px;
  height: 3px;
  background: #d9dada;
  bottom: 7px;
  left: calc(50% - 46px);
  border-radius: 10px;
}
/* ShortBlocker phone. Sub-pages use --dp (the screen as a 412dp-wide phone); Home uses HomeScreen.kt's
   width / 400 unit, capped by the height so the six tiles always fit. */
.blocker-app {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  container-type: size;
  background: #1d1e1e;
}
.blocker-app > * {
  --dp: calc(100cqw / 412);
}
.brand {
  --size: 40px;
  width: var(--size);
  height: var(--size);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: calc(var(--size) * 0.27);
  overflow: hidden;
}
.brand img {
  width: 100%;
  height: 100%;
}
.brand.tiktok {
  background: #000;
  padding: calc(var(--size) * 0.14);
}
.brand.instagram {
  padding: calc(var(--size) * 0.14);
  background:
    radial-gradient(circle at 0 100%, #ffdd55, #ffa22e 24%, #ff543e00 90%),
    linear-gradient(135deg, #5948e9, #d900c9 50%, #ff0069);
}
.brand.facebook {
  background: #0084ff;
}
.brand.snapchat {
  background: #fffc00;
  padding: calc(var(--size) * 0.15);
}
.switch-track {
  --sw: calc(52 * var(--dp));
  --sh: calc(32 * var(--dp));
  width: var(--sw);
  height: var(--sh);
  flex-shrink: 0;
  position: relative;
  border-radius: 999px;
  background: #3a3b3b;
  box-shadow: inset 0 1px 0 #ffffff38;
  transition: background 160ms ease-out;
}
.switch-track::after {
  content: '';
  position: absolute;
  top: calc(var(--sh) * 0.12);
  left: calc(var(--sh) * 0.12);
  width: calc(var(--sh) * 0.76);
  height: calc(var(--sh) * 0.76);
  border-radius: 50%;
  background: linear-gradient(#c4c5c5, #b4b5b5);
  box-shadow: 0 1px 1px #0000001f;
  transition: transform 160ms ease-out;
}
[aria-checked='true'] > .switch-track {
  background: #4f956a;
}
[aria-checked='true'] > .switch-track::after {
  transform: translateX(calc(var(--sw) - var(--sh)));
  background: linear-gradient(#fff, #e8ebe9);
}

/* Home */
.home-page {
  --w: 0.25cqw;
  --u: min(0.25cqw, calc((100cqh - 64px) / 744));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 0 calc(var(--w) * 20);
  background: linear-gradient(#202121, #1b1c1c);
}
.home-space-top {
  flex: 20 0 calc(var(--u) * 16);
}
.home-space-mid {
  flex: 5 0 calc(var(--u) * 18);
}
.home-space-low {
  flex: 8 0 calc(var(--u) * 28);
}
.home-space-bottom {
  flex: 12 0 calc(var(--u) * 22);
}
#home-settings {
  position: absolute;
  top: 4px;
  right: calc(var(--w) * 18);
  min-width: 48px;
  min-height: 48px;
  color: #bcbfbf;
}
#home-settings svg {
  width: 27px;
  height: 27px;
}
.icon-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
  border-radius: 50%;
}
.icon-button:hover {
  background: #ffffff0a;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  height: calc(var(--u) * 58);
  flex-shrink: 0;
}
.wordmark img {
  width: calc(var(--u) * 48);
  height: calc(var(--u) * 48);
  border-radius: calc(var(--u) * 12);
}
.wordmark h1 {
  font-family: Outfit, Roboto, sans-serif;
  font-size: calc(var(--u) * 35);
  font-weight: 600;
  line-height: calc(var(--u) * 39.2);
  letter-spacing: calc(var(--u) * -1.2);
  white-space: nowrap;
}
.stats-chip {
  margin-top: calc(var(--u) * 6);
  min-height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  border-radius: 24px;
}
.chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 14px;
  border-radius: 999px;
  background: #242525;
  border: 1px solid #3d404099;
  font-size: 13px;
  line-height: 1.4;
}
.chip-pill b {
  font-weight: 700;
}
.chip-pill svg {
  width: 17px;
  height: 17px;
  color: #bcbfbf;
}
.chip-pill svg:first-child {
  color: #4f956a;
}
.chip-pill.quiet > span {
  opacity: 0.7;
}
.chip-pill.quiet svg:first-child {
  opacity: 0.6;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--u) * 16);
  width: 100%;
  flex-shrink: 0;
}
.feed-tile {
  --size: calc(var(--u) * 64);
  position: relative;
  height: calc(var(--u) * 136);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--u) * 6) calc(var(--u) * 8) calc(var(--u) * 20);
  border-radius: calc(var(--u) * 30);
  background: linear-gradient(135deg, #282929, #252626);
  box-shadow: inset 0 1px 0 #ffffff17;
}
.tile-open {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.tile-open:hover {
  background: #ffffff05;
}
.feed-tile .brand,
.tile-chevron {
  position: relative;
  pointer-events: none;
}
.tile-switch {
  position: relative;
  width: calc(var(--u) * 52 + 12px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
}
.tile-switch .switch-track {
  --sw: calc(var(--u) * 52);
  --sh: calc(var(--u) * 32);
}
.tile-chevron {
  position: absolute;
  right: calc(var(--u) * 7);
  bottom: calc(var(--u) * 9);
  color: #bcbfbf9e;
}
.tile-chevron svg {
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
}
.pause-button {
  width: 100%;
  height: calc(var(--u) * 80);
  flex-shrink: 0;
  border-radius: calc(var(--u) * 40);
  background: linear-gradient(135deg, #353636, #303131);
  box-shadow: inset 0 1px 0 #ffffff17;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pause-button svg {
  width: calc(var(--u) * 29);
  height: calc(var(--u) * 29);
}
.pause-button svg path {
  stroke-width: 4.4;
}
.pause-button small {
  font-size: 12px;
  color: #bcbfbf;
  font-variant-numeric: tabular-nums;
}

/* Sub-pages: Settings, Stats and an app's settings */
.sub-page {
  min-height: 100%;
  font-size: calc(16 * var(--dp));
}
.page-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(80 * var(--dp));
  padding: 0 calc(56 * var(--dp));
  background: #1d1e1e;
}
.page-header > .icon-button {
  position: absolute;
  left: calc(4 * var(--dp));
  color: #fafafa;
}
.page-header h1 {
  font-size: calc(40 * var(--dp));
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: calc(-1 * var(--dp));
  white-space: nowrap;
}
.page-header h1.app-title {
  --size: calc(40 * var(--dp));
  display: flex;
  align-items: center;
  gap: calc(10 * var(--dp));
  font-size: calc(32 * var(--dp));
  letter-spacing: calc(-0.5 * var(--dp));
}
.page-body {
  padding: 0 calc(20 * var(--dp)) calc(32 * var(--dp));
}
.section-label {
  padding-left: calc(4 * var(--dp));
  margin: calc(28 * var(--dp)) 0 calc(12 * var(--dp));
  font-size: calc(12 * var(--dp));
  font-weight: 600;
  letter-spacing: calc(1.6 * var(--dp));
  text-transform: uppercase;
  color: #bcbfbf;
}
.row-group {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--dp));
}
.row-icon {
  width: calc(60 * var(--dp));
  height: calc(60 * var(--dp));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: calc(16 * var(--dp));
  background: #343535;
  color: #bcbfbf;
}
.row-icon svg {
  width: calc(32 * var(--dp));
  height: calc(32 * var(--dp));
}
.settings-row {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--dp));
  width: 100%;
  min-height: calc(84 * var(--dp));
  padding: calc(12 * var(--dp));
  border-radius: calc(24 * var(--dp));
  background: #282929;
  text-align: left;
}
.settings-row > svg {
  width: calc(28 * var(--dp));
  height: calc(28 * var(--dp));
  margin-right: calc(4 * var(--dp));
  color: #bcbfbf;
}
.row-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--dp));
  font-weight: 500;
}
.row-copy small {
  font-size: calc(14 * var(--dp));
  font-weight: 400;
  line-height: 1.4;
  color: #bcbfbf;
}
/* Material 3 switch, as the Settings rows use. */
.small-switch {
  position: relative;
  width: calc(52 * var(--dp));
  height: calc(32 * var(--dp));
  margin-right: calc(4 * var(--dp));
  flex-shrink: 0;
  border-radius: 999px;
  border: 2px solid #8c9191;
  background: #343535;
}
.small-switch::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(6 * var(--dp));
  width: calc(16 * var(--dp));
  height: calc(16 * var(--dp));
  border-radius: 50%;
  background: #8c9191;
  transform: translateY(-50%);
}
[aria-checked='true'] > .small-switch {
  border-color: #4f956a;
  background: #4f956a;
}
[aria-checked='true'] > .small-switch::after {
  left: auto;
  right: calc(2 * var(--dp));
  width: calc(24 * var(--dp));
  height: calc(24 * var(--dp));
  background: #fff;
}
.summary-card {
  border-radius: calc(24 * var(--dp));
  background: #282929;
}
.summary-card .settings-row {
  background: none;
}
.summary-days {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(2 * var(--dp));
  padding: 0 calc(12 * var(--dp)) calc(12 * var(--dp));
}
.summary-days button {
  width: calc(44 * var(--dp));
  height: calc(44 * var(--dp));
  margin: calc(2 * var(--dp));
  border-radius: calc(14 * var(--dp));
  background: #343535;
  font-weight: 700;
}
.summary-days [aria-checked='true'] {
  background: #4f956a;
  color: #fff;
}
.summary-days span {
  margin-left: calc(6 * var(--dp));
  font-size: calc(14 * var(--dp));
  color: #bcbfbf;
}
.settings-footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: calc(8 * var(--dp));
  padding: calc(72 * var(--dp)) 0 calc(20 * var(--dp));
  font-size: calc(14 * var(--dp));
  color: #bcbfbf;
}
.settings-footer svg {
  width: calc(32 * var(--dp));
  height: calc(32 * var(--dp));
}
.settings-footer .version {
  font-weight: 500;
}

/* One app's settings page */
.app-page .page-body {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--dp));
  padding-top: calc(4 * var(--dp));
}
.app-page .section-label {
  margin: calc(8 * var(--dp)) 0 0;
}
.blocking-card {
  --size: calc(56 * var(--dp));
  display: flex;
  align-items: center;
  gap: calc(16 * var(--dp));
  width: 100%;
  min-height: calc(84 * var(--dp));
  padding: calc(14 * var(--dp));
  border-radius: calc(24 * var(--dp));
  background: #282929;
  font-weight: 500;
  text-align: left;
}
.blocking-card > span:nth-child(2) {
  flex: 1;
}
.option-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(12 * var(--dp));
}
.option-card {
  min-height: calc(148 * var(--dp));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: calc(8 * var(--dp));
  padding: calc(14 * var(--dp)) calc(8 * var(--dp));
  border-radius: calc(24 * var(--dp));
  border: 1px solid #3d4040;
  background: #212222;
  color: #c5c7c7;
  font-weight: 500;
}
.option-card[aria-checked='true'] {
  border: calc(1.5 * var(--dp)) solid #4f956a;
  background: #1f3527;
  color: #fafafa;
}
.option-picture {
  width: calc(104 * var(--dp));
  height: calc(72 * var(--dp));
  color: #bcbfbf;
}
.always-line {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--dp));
  padding-left: calc(4 * var(--dp));
  font-size: calc(14 * var(--dp));
  color: #bcbfbf;
}
.always-line svg {
  width: calc(18 * var(--dp));
  height: calc(18 * var(--dp));
}
.more-row {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--dp));
  width: 100%;
  min-height: calc(76 * var(--dp));
  padding: calc(12 * var(--dp));
  border-radius: calc(24 * var(--dp));
  background: #282929;
  text-align: left;
}
.more-row .row-icon {
  width: calc(56 * var(--dp));
  height: calc(56 * var(--dp));
}
.more-row .row-icon svg {
  width: calc(28 * var(--dp));
  height: calc(28 * var(--dp));
}
.row-title {
  flex: 1;
  font-weight: 500;
}
.row-value {
  font-size: calc(14 * var(--dp));
  color: #bcbfbf;
}
.more-row > svg {
  width: calc(24 * var(--dp));
  height: calc(24 * var(--dp));
  color: #bcbfbf;
}

/* Stats */
.stats-page .page-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(8 * var(--dp));
}
.stats-tabs {
  width: 100%;
  display: flex;
  gap: calc(4 * var(--dp));
  padding: calc(4 * var(--dp));
  border-radius: calc(28 * var(--dp));
  background: #282929;
}
.stats-tabs button {
  flex: 1;
  min-height: calc(48 * var(--dp));
  border-radius: calc(24 * var(--dp));
  font-weight: 500;
  color: #bcbfbf;
}
.stats-tabs [aria-selected='true'] {
  background: #4f956a;
  color: #fff;
}
.big-number {
  margin-top: calc(24 * var(--dp));
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #bcbfbf;
}
.big-number strong {
  font-size: calc(80 * var(--dp));
  line-height: calc(88 * var(--dp));
  letter-spacing: calc(-2 * var(--dp));
  font-weight: 700;
  color: #fafafa;
}
.big-number strong.long {
  font-size: calc(56 * var(--dp));
  line-height: calc(64 * var(--dp));
}
.week-chart {
  width: 100%;
  margin-top: calc(16 * var(--dp));
  display: flex;
  gap: calc(4 * var(--dp));
  padding: calc(16 * var(--dp)) calc(12 * var(--dp));
  border-radius: calc(28 * var(--dp));
  background: #282929;
}
.week-chart .day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bar-area {
  width: 100%;
  height: calc(96 * var(--dp));
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bar-area i {
  display: block;
  width: 62%;
  max-width: calc(40 * var(--dp));
  border-radius: calc(2 * var(--dp));
  background: #343535;
}
.day.some .bar-area i {
  border-radius: calc(8 * var(--dp));
  background: #304a39;
}
.day.today .bar-area i {
  background: #4f956a;
}
.week-chart b {
  margin-top: calc(8 * var(--dp));
  font-size: calc(14 * var(--dp));
  font-weight: 400;
  color: #bcbfbf;
}
.week-chart .today b {
  font-weight: 700;
  color: #fafafa;
}
.stat-cards {
  width: 100%;
  margin-top: calc(16 * var(--dp));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(12 * var(--dp));
}
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--dp));
  padding: calc(16 * var(--dp));
  border-radius: calc(24 * var(--dp));
  background: #282929;
  font-size: calc(14 * var(--dp));
  color: #bcbfbf;
}
.stat-card > svg {
  width: calc(24 * var(--dp));
  height: calc(24 * var(--dp));
  margin-bottom: calc(10 * var(--dp));
  color: #4f956a;
}
.stat-card strong {
  font-size: calc(26 * var(--dp));
  line-height: calc(32 * var(--dp));
  color: #fafafa;
}
.stat-card .icon-button {
  position: absolute;
  top: 0;
  right: 0;
  color: #8c9191;
}
.stat-card .icon-button svg {
  width: 18px;
  height: 18px;
}
.by-app {
  width: 100%;
  margin-top: calc(28 * var(--dp));
}
.by-app .section-label {
  margin-top: 0;
}
.app-count {
  --size: calc(40 * var(--dp));
  display: flex;
  align-items: center;
  gap: calc(14 * var(--dp));
  min-height: calc(52 * var(--dp));
}
.count-bar {
  flex: 1;
  height: calc(12 * var(--dp));
  border-radius: calc(6 * var(--dp));
  background: #343535;
  overflow: hidden;
}
.count-bar i {
  display: block;
  height: 100%;
  background: #4f956a;
}
.app-count b {
  min-width: calc(40 * var(--dp));
  text-align: right;
  font-weight: 700;
}

/* How blocking works */
.how-feeds {
  list-style: none;
  margin: 0 0 13px;
  padding: 4px 0;
  border-radius: 16px;
  background: #2c2d2d;
}
.how-feeds li {
  --size: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  color: #f5f5f5;
}
.how-feeds small {
  display: block;
  color: #bcbfbf;
  font-size: 11px;
}
.how-pause {
  padding: 2px 14px 1px;
  margin-bottom: 13px;
  border-radius: 16px;
  background: #2c2d2d;
}
.how-footnote {
  font-size: 11px;
}
.notice {
  position: absolute;
  z-index: 4;
  bottom: 30px;
  left: 14px;
  right: 14px;
  border-radius: 16px;
  padding: 15px 18px;
  background: #e1e7e1;
  color: #1d2920;
  box-shadow: 0 4px 20px #0005;
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 160ms ease-out,
    transform 160ms ease-out;
}
.notice.visible {
  opacity: 1;
  transform: none;
}
.video-screen {
  background: #101010;
}
.video-app,
.video-view {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.video-topbar {
  height: 54px;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 15px;
  gap: 7px;
}
.video-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.simulation-label {
  font-size: 9px;
  padding: 3px 5px;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: #b2b2b2;
  letter-spacing: 0.2px;
}
.video-topbar .spacer {
  flex: 1;
}
.video-topbar .icon-button {
  min-width: 40px;
  padding: 8px;
}
.video-search {
  min-width: 0;
  width: 100%;
  height: 38px;
  background: #272727;
  color: #f1f1f1;
  border: 1px solid #484848;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
}
.feed {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  flex: 1;
  min-height: 0;
  padding-bottom: 16px;
}
.filter-row {
  display: flex;
  gap: 7px;
  padding: 3px 14px 14px;
  overflow: auto;
  scrollbar-width: none;
}
.filter-row button {
  background: #282828;
  border-radius: 8px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.filter-row [aria-pressed='true'] {
  background: #f1f1f1;
  color: #111;
}
.video-card {
  margin-bottom: 7px;
}
.thumbnail-button {
  display: block;
  width: 100%;
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #262626;
}
.thumbnail-button img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.duration {
  position: absolute;
  bottom: 7px;
  right: 8px;
  border-radius: 4px;
  background: #000c;
  padding: 2px 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.video-details {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 13px 15px;
  text-align: left;
  width: 100%;
}
.avatar {
  width: 31px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #647863;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
.avatar.slate {
  background: #5a6f80;
}
.video-details h2 {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}
.video-details p {
  color: #ababab;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 3px;
}
.shorts-shelf {
  padding: 8px 13px 17px;
}
.shorts-shelf h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 13px;
}
.shorts-shelf h2 svg {
  width: 21px;
  height: 21px;
  color: #ef5b53;
}
.shorts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.short-card {
  border-radius: 11px;
  position: relative;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 9/14;
  background: #272727;
  text-align: left;
}
.short-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.short-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 42%, #000c);
  pointer-events: none;
}
.short-card .short-copy {
  position: absolute;
  bottom: 11px;
  left: 10px;
  right: 10px;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 3px #0008;
}
.short-copy small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 5px;
  color: #ddd;
}
.bottom-nav {
  display: flex;
  justify-content: space-around;
  min-height: 57px;
  border-top: 1px solid #292929;
  padding-top: 3px;
  background: #101010;
}
.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 51px;
  gap: 4px;
  color: #b1b1b1;
  font-size: 9px;
}
.bottom-nav button[aria-current='page'] {
  color: #fff;
}
.bottom-nav button[aria-current='page'] svg {
  stroke-width: 2.4;
}
.bottom-nav svg {
  width: 22px;
  height: 22px;
}
.video-notification,
.empty-state {
  margin: 12px 16px;
  color: #c5c5c5;
  font-size: 13px;
  line-height: 1.6;
}
.empty-state {
  padding: 32px 5px;
  text-align: center;
}
.empty-state h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fafafa;
}
.empty-state button {
  margin-top: 18px;
}
.watch-page {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}
.watch-header {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 6px;
  gap: 8px;
  color: #ccc;
  font-size: 12px;
}
.watch-header .spacer {
  flex: 1;
}
.film-player {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  background: #000;
}
.watch-copy {
  padding: 15px 14px 10px;
}
.watch-copy h2 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}
.watch-meta {
  color: #a9a9a9;
  font-size: 11px;
  margin: 8px 0 17px;
}
.channel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 17px;
}
.channel-row > span:nth-child(2) {
  flex: 1;
}
.pill {
  border-radius: 30px;
  background: #2b2b2b;
  min-height: 38px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.pill svg {
  width: 17px;
  height: 17px;
}
.pill.light {
  background: #f1f1f1;
  color: #111;
}
.pill[aria-pressed='true'] {
  background: #424d43;
}
.watch-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 15px;
}
.description {
  background: #242424;
  padding: 12px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: #c9c9c9;
}
.description button {
  text-decoration: underline;
  display: block;
  font-size: 11px;
  padding: 8px 0 0;
  min-height: 34px;
  color: #fff;
}
.up-next {
  font-size: 14px;
  font-weight: 600;
  margin: 12px 14px;
}
.short-player {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #000;
  touch-action: pan-x;
}
.short-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.short-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#0007, transparent 22%, transparent 54%, #000c);
}
.short-top {
  position: absolute;
  top: 0;
  left: 3px;
  right: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 1px 4px #000;
}
.short-top .icon-button {
  background: #0003;
  margin: 3px;
}
.short-top strong {
  margin-right: auto;
  font-size: 15px;
}
.short-controls {
  position: absolute;
  right: 4px;
  top: 42%;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.short-controls button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0005;
}
.short-controls button[aria-pressed='true'] {
  background: #4f956a;
}
.short-description {
  position: absolute;
  left: 14px;
  right: 52px;
  bottom: 19px;
  text-shadow: 0 1px 4px #000;
}
.short-description h2 {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 9px;
  font-weight: 500;
}
.short-description > p {
  font-size: 11px;
  line-height: 1.5;
}
.short-description button {
  color: #eee;
  padding: 8px 0;
  text-decoration: underline;
  font-size: 10px;
}
.short-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  accent-color: #e35550;
}
.overlay {
  position: absolute;
  z-index: 6;
  inset: 32px 0 19px;
  background: #0005;
  display: flex;
  align-items: flex-end;
}
.sheet {
  width: 100%;
  max-height: 95%;
  overflow: auto;
  padding: 0 22px 22px;
  border-radius: 32px 32px 0 0;
  background: #202121;
  box-shadow: 0 -8px 40px #0004;
  animation: sheet-in 190ms ease-out;
}
.sheet-handle {
  width: 30px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  margin: 16px auto 6px;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 10px;
}
.sheet-header h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.sheet-header button {
  margin-right: -11px;
}
.sheet-content {
  font-size: 12px;
  line-height: 1.7;
  color: #c4c8c5;
}
.sheet-content p {
  margin-bottom: 13px;
}
.sheet-content h3 {
  color: #f5f5f5;
  font-size: 14px;
  margin: 20px 0 8px;
}
.sheet-content a {
  color: #bbdbc7;
  overflow-wrap: anywhere;
}
.presets {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.presets button {
  min-height: 46px;
  border-radius: 18px;
  background: #2c2d2d;
  color: #c5c7c7;
  font-size: 17px;
  font-weight: 600;
  flex: 1;
}
.presets button[aria-checked='true'] {
  background: #4f956a;
  color: #fff;
}
.duration-input {
  position: relative;
}
.duration-input input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid #484a49;
  color: #f5f5f5;
  background: transparent;
  padding: 14px 52px 14px 16px;
  font-size: 18px;
  min-height: 56px;
}
.duration-input span {
  position: absolute;
  right: 17px;
  top: 20px;
  font-size: 14px;
  color: #c5c7c7;
}
.validation {
  font-size: 12px;
  color: #ffd1c9;
  margin-top: 8px;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4f956a;
  color: white;
  min-height: 52px;
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
}
.pause-confirm {
  width: 100%;
  margin-top: 18px;
}
.sheet-helper {
  font-size: 11px;
  text-align: center;
  color: #bcbfbf;
  margin-top: 14px;
  line-height: 1.5;
}
.demo-footer {
  text-align: center;
  margin-top: 27px;
  font-size: 12px;
  line-height: 1.7;
  color: #525a52;
}
.credits-link {
  color: #626e5f;
  font-size: 10px;
  min-height: 34px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.screen-picker {
  display: none;
}
.screen-picker img {
  border-radius: 6px;
}
@keyframes sheet-in {
  from {
    opacity: 0.4;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 780px) {
  .demo {
    padding: 22px 18px;
  }
  .devices {
    grid-template-columns: repeat(2, minmax(0, 326px));
    gap: 28px;
  }
}
@media (max-width: 640px) {
  .demo {
    border-radius: 18px;
    padding: 20px 12px 14px;
  }
  .demo-heading {
    margin-bottom: 18px;
  }
  .devices {
    display: block;
    max-width: 340px;
    margin: auto;
  }
  .screen-picker {
    display: flex;
    gap: 4px;
    background: #e4e6df;
    border-radius: 12px;
    padding: 4px;
    margin: 0 auto 14px;
    max-width: 340px;
  }
  .screen-picker button {
    flex: 1;
    min-height: 44px;
    border-radius: 9px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #6b7467;
  }
  .screen-picker [aria-selected='true'] {
    background: #fafbf8;
    color: #253323;
    box-shadow: 0 1px 3px #25332312;
  }
  .devices[data-active-screen='blocker'] #video-device,
  .devices[data-active-screen='video'] #blocker-device {
    display: none;
  }
  .phone-screen {
    height: 700px;
  }
  .demo-footer {
    margin-top: 23px;
  }
}
@media (max-width: 350px) {
  .demo {
    padding-inline: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
