:root {
  color-scheme: light;
  --bg: #eef3fd;
  --bg-2: #f8fbff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-2: #edf3fe;
  --panel-3: #ffffff;
  --stroke: #d7e2f1;
  --stroke-strong: #c1d0e8;
  --text: #202124;
  --muted: #5f6368;
  --link: #1a73e8;
  --accent: #1a73e8;
  --accent-2: #ea4335;
  --danger: #d93025;
  --soft: rgba(26, 115, 232, 0.08);
  --soft-strong: rgba(26, 115, 232, 0.14);
  --body-glow-1: rgba(26, 115, 232, 0.18);
  --body-glow-2: rgba(52, 168, 83, 0.12);
  --body-glow-3: rgba(251, 188, 4, 0.18);
  --sidebar-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 255, 0.96));
  --brand-mark-bg: linear-gradient(145deg, #ffffff, #e8f0fe);
  --brand-mark-shadow: 0 16px 34px rgba(60, 64, 67, 0.14);
  --brand-filter: none;
  --nav-active: rgba(26, 115, 232, 0.1);
  --nav-hover: rgba(26, 115, 232, 0.06);
  --card-shadow: 0 24px 60px rgba(60, 64, 67, 0.12);
  --card-shadow-soft: 0 14px 28px rgba(60, 64, 67, 0.1);
  --tooltip-bg: #1f1f1f;
  --tooltip-text: #f8fbff;
  --overlay: rgba(32, 33, 36, 0.34);
  --demo-bg: #f8fbff;
  --demo-text: #5f6368;
  --demo-control-bg: rgba(26, 115, 232, 0.08);
  --demo-control-border: rgba(26, 115, 232, 0.14);
  --demo-placeholder: #71839b;
  --status-bg: #e8f0fe;
  --icon-bg: #d2e3fc;
  --toggle-bg: #d2e3fc;
  --toggle-thumb-bg: #ffffff;
  --obscured-bg: #ffffff;
  --obscured-header-bg: rgba(255, 255, 255, 0.92);
  --carousel-bg: rgba(26, 115, 232, 0.06);
  --orientation-bg: rgba(26, 115, 232, 0.08);
  --focus-subtle: #c6d4eb;
  --theme-track-bg: linear-gradient(135deg, #d2e3fc, #e8f0fe);
  --theme-track-border: #bfd2fb;
  --theme-thumb-bg: #ffffff;
  --theme-thumb-shadow: 0 4px 12px rgba(26, 115, 232, 0.24);
  --pour-perceivable: #1a73e8;
  --pour-perceivable-soft: rgba(26, 115, 232, 0.12);
  --pour-perceivable-stroke: rgba(26, 115, 232, 0.22);
  --pour-operable: #f29900;
  --pour-operable-soft: rgba(242, 153, 0, 0.14);
  --pour-operable-stroke: rgba(242, 153, 0, 0.26);
  --pour-understandable: #9334e6;
  --pour-understandable-soft: rgba(147, 52, 230, 0.12);
  --pour-understandable-stroke: rgba(147, 52, 230, 0.24);
  --pour-robust: #188038;
  --pour-robust-soft: rgba(24, 128, 56, 0.12);
  --pour-robust-stroke: rgba(24, 128, 56, 0.22);
  --sc-tag-bg: rgba(234, 67, 53, 0.12);
  --sc-tag-stroke: rgba(234, 67, 53, 0.2);
  --sc-tag-text: #c5221f;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0b0f;
  --bg-2: #10121a;
  --panel: #151821;
  --panel-2: #1c202c;
  --panel-3: #0f172a;
  --stroke: #2a2f3c;
  --stroke-strong: #3a4151;
  --text: #f2f5ff;
  --muted: #c4cbe0;
  --link: #a9b6ff;
  --accent: #6ee7ff;
  --accent-2: #ff7b54;
  --danger: #ff4d5a;
  --soft: rgba(255, 255, 255, 0.04);
  --soft-strong: rgba(255, 255, 255, 0.08);
  --body-glow-1: rgba(58, 78, 140, 0.35);
  --body-glow-2: rgba(41, 68, 128, 0.35);
  --body-glow-3: rgba(255, 123, 84, 0.14);
  --sidebar-bg: linear-gradient(180deg, rgba(16, 18, 26, 0.96), rgba(12, 13, 18, 0.95));
  --brand-mark-bg: #0f1118;
  --brand-mark-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  --brand-filter: brightness(0) invert(1);
  --nav-active: rgba(255, 255, 255, 0.06);
  --nav-hover: rgba(255, 255, 255, 0.04);
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --card-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.24);
  --tooltip-bg: #0a0f1f;
  --tooltip-text: #f2f5ff;
  --overlay: rgba(4, 8, 16, 0.7);
  --demo-bg: #0f1118;
  --demo-text: #9aa3b9;
  --demo-control-bg: rgba(255, 255, 255, 0.08);
  --demo-control-border: rgba(255, 255, 255, 0.1);
  --demo-placeholder: #7a8397;
  --status-bg: #1a2236;
  --icon-bg: #2f3f77;
  --toggle-bg: #343e75;
  --toggle-thumb-bg: #ffffff;
  --obscured-bg: #0f1118;
  --obscured-header-bg: rgba(15, 17, 24, 0.95);
  --carousel-bg: rgba(0, 0, 0, 0.2);
  --orientation-bg: rgba(255, 255, 255, 0.06);
  --focus-subtle: #1b1f2c;
  --theme-track-bg: linear-gradient(135deg, #163257, #243762);
  --theme-track-border: #36507d;
  --theme-thumb-bg: #f2f5ff;
  --theme-thumb-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  --pour-perceivable: #6ee7ff;
  --pour-perceivable-soft: rgba(110, 231, 255, 0.14);
  --pour-perceivable-stroke: rgba(110, 231, 255, 0.3);
  --pour-operable: #ffb454;
  --pour-operable-soft: rgba(255, 180, 84, 0.14);
  --pour-operable-stroke: rgba(255, 180, 84, 0.3);
  --pour-understandable: #b38bff;
  --pour-understandable-soft: rgba(179, 139, 255, 0.14);
  --pour-understandable-stroke: rgba(179, 139, 255, 0.3);
  --pour-robust: #4ee59f;
  --pour-robust-soft: rgba(78, 229, 159, 0.14);
  --pour-robust-stroke: rgba(78, 229, 159, 0.3);
  --sc-tag-bg: rgba(255, 123, 84, 0.15);
  --sc-tag-stroke: rgba(255, 123, 84, 0.2);
  --sc-tag-text: #ffc3b1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Space Grotesk", "Helvetica", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1400px 960px at 5% -10%, var(--body-glow-1), transparent 60%),
    radial-gradient(1100px 760px at 100% -5%, var(--body-glow-2), transparent 58%),
    radial-gradient(900px 640px at 50% 100%, var(--body-glow-3), transparent 62%),
    linear-gradient(140deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 180ms ease, color 180ms ease;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 270px;
  padding: 28px 22px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  height: 100vh;
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-mark-bg);
  box-shadow: var(--brand-mark-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  width: 28px;
  height: 28px;
  display: block;
  filter: var(--brand-filter);
}

.brand h2 {
  margin: 0;
  font-size: 18px;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav-section {
  margin-bottom: 18px;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-link:hover {
  background: var(--nav-hover);
  border-color: var(--stroke);
  text-decoration: none;
  transform: translateX(2px);
}

.nav-link.active {
  background: var(--nav-active);
  border-color: var(--stroke);
}

.nav-link span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--panel-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.nav-link.pour-perceivable span {
  background: var(--pour-perceivable-soft);
  color: var(--pour-perceivable);
  border: 1px solid var(--pour-perceivable-stroke);
}

.nav-link.pour-operable span {
  background: var(--pour-operable-soft);
  color: var(--pour-operable);
  border: 1px solid var(--pour-operable-stroke);
}

.nav-link.pour-understandable span {
  background: var(--pour-understandable-soft);
  color: var(--pour-understandable);
  border: 1px solid var(--pour-understandable-stroke);
}

.nav-link.pour-robust span {
  background: var(--pour-robust-soft);
  color: var(--pour-robust);
  border: 1px solid var(--pour-robust-stroke);
}

.main {
  flex: 1;
  padding: 28px 40px 60px;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--card-shadow-soft);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 18px;
  z-index: 12;
}

.topbar-copy {
  max-width: 560px;
}

.topbar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--stroke);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.topbar-copy h2 {
  margin: 12px 0 6px;
  font-size: 24px;
  line-height: 1.1;
}

.topbar-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 230px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--panel-3);
  color: var(--text);
  box-shadow: var(--card-shadow-soft);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--stroke-strong);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--soft-strong);
  outline-offset: 2px;
}

.theme-toggle-track {
  position: relative;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--theme-track-bg);
  border: 1px solid var(--theme-track-border);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--theme-thumb-bg);
  box-shadow: var(--theme-thumb-shadow);
  transition: transform 180ms ease;
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(22px);
}

.theme-toggle-copy {
  display: grid;
  text-align: left;
  line-height: 1.2;
}

.theme-toggle-copy strong {
  font-size: 13px;
}

.theme-toggle-copy span {
  color: var(--muted);
  font-size: 12px;
}

.search {
  flex: 1;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px 14px;
}

.search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
}

.search input::placeholder {
  color: var(--demo-placeholder);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--stroke);
}

.small-title {
  font-size: 13px;
  color: var(--muted);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: url("https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?auto=format&fit=crop&w=64&q=80") center/cover;
}

.hero {
  margin-top: 22px;
  padding: 26px 30px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 280px;
  height: 280px;
  right: -120px;
  bottom: -140px;
  background: radial-gradient(circle at center, var(--body-glow-1), transparent 68%);
}

.hero::after {
  width: 240px;
  height: 240px;
  left: -100px;
  top: -120px;
  background: radial-gradient(circle at center, var(--body-glow-3), transparent 68%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 720px;
  font-size: 15px;
  line-height: 1.6;
}

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

.hero-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--soft);
  backdrop-filter: blur(10px);
}

.hero-card strong {
  display: block;
  margin-bottom: 6px;
}

.hero-card span {
  color: var(--muted);
  font-size: 12px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}

.section-header h2 {
  margin: 0;
  font-size: 18px;
}

.count-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--muted);
}

.cards {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.special-section {
  margin-top: 22px;
}

body:not(.show-special) .special-section {
  display: none;
}

body.show-special .special-section {
  display: block;
}

body.show-special .main > .hero,
body.show-special .main > .section-header,
body.show-special .main > #bug-grid,
body.show-special .main > .page-footer {
  display: none;
}

.special-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.special-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--card-shadow-soft);
}

.special-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.special-card h3 {
  margin: 0;
  font-size: 14px;
}

.form-errors {
  margin-top: 8px;
  color: var(--accent-2);
  font-size: 12px;
}

.info-icon {
  border: 1px solid var(--stroke);
  background: var(--panel-2);
  color: var(--text);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  position: relative;
  cursor: default;
}

.info-icon .tooltip {
  position: absolute;
  right: 0;
  top: 120%;
  min-width: 220px;
  background: var(--tooltip-bg);
  border: 1px solid var(--stroke);
  color: var(--tooltip-text);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  display: none;
  z-index: 5;
  text-align: left;
  box-shadow: var(--card-shadow-soft);
}

.info-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.info-icon:hover .tooltip,
.info-icon:focus .tooltip,
.info-icon:focus-visible .tooltip {
  display: block;
}

.fake-tabs {
  display: flex;
  gap: 8px;
}

.fake-tabs .tab {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  cursor: pointer;
}

.fake-tabs .tab.is-active {
  border-color: var(--pour-perceivable-stroke);
  color: var(--pour-perceivable);
  background: var(--pour-perceivable-soft);
}

.tab-panels {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.tab-panels .panel {
  display: none;
}

.tab-panels .panel.is-active {
  display: block;
}

.fake-slider {
  height: 10px;
  border-radius: 999px;
  background: #2f3f77;
  position: relative;
}

.fake-thumb {
  position: absolute;
  top: -6px;
  left: 40%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff7b54;
  cursor: grab;
}

.fake-combobox {
  position: relative;
}

.combo-trigger {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  cursor: pointer;
  font-size: 12px;
}

.combo-list {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: var(--panel-3);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  overflow: hidden;
  z-index: 5;
  box-shadow: var(--card-shadow-soft);
}

.combo-list .combo-option {
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
}

.combo-list .combo-option:hover {
  background: var(--soft);
}

.fake-combobox.open .combo-list {
  display: block;
}

.fake-datepicker input {
  width: 100%;
  margin-bottom: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.date-cell {
  padding: 6px;
  border-radius: 8px;
  background: var(--panel-2);
  text-align: center;
  font-size: 12px;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal {
  width: 260px;
  padding: 16px;
  border-radius: 14px;
  background: var(--panel-3);
  border: 1px solid var(--stroke);
  box-shadow: var(--card-shadow);
}

.toast {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--status-bg);
  border: 1px solid var(--stroke);
  font-size: 12px;
}

.drag-list {
  display: grid;
  gap: 6px;
}

.drag-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  cursor: grab;
  font-size: 12px;
}

.drag-item.is-dragging {
  opacity: 0.6;
}

.infinite-list {
  max-height: 110px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding-right: 4px;
}

.list-item {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--panel-2);
  font-size: 12px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fake-toggle {
  cursor: pointer;
}

.fake-toggle.active {
  background: #2a6f55;
}

.fake-toggle.active::after {
  left: 23px;
}

.page-footer {
  margin-top: 32px;
  padding: 18px 0 6px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.group-title {
  grid-column: 1 / -1;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text);
}

.card {
  padding: 16px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--card-shadow);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.2;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.bug {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--soft);
}

.bug + .bug {
  margin-top: 14px;
}

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

.bug-desc {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--stroke);
  color: var(--muted);
}

.color-only-chart {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.pass {
  background: #39d98a;
}

.status-dot.fail {
  background: #ff4d5a;
}

.pill.pour-perceivable {
  background: var(--pour-perceivable-soft);
  border-color: var(--pour-perceivable-stroke);
  color: var(--pour-perceivable);
}

.pill.pour-operable {
  background: var(--pour-operable-soft);
  border-color: var(--pour-operable-stroke);
  color: var(--pour-operable);
}

.pill.pour-understandable {
  background: var(--pour-understandable-soft);
  border-color: var(--pour-understandable-stroke);
  color: var(--pour-understandable);
}

.pill.pour-robust {
  background: var(--pour-robust-soft);
  border-color: var(--pour-robust-stroke);
  color: var(--pour-robust);
}

.sc-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--sc-tag-bg);
  color: var(--sc-tag-text);
  border: 1px solid var(--sc-tag-stroke);
}

.demo {
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed var(--stroke);
  background: var(--demo-bg);
  color: var(--demo-text);
  font-size: 12px;
  overflow-x: auto;
}

.demo img,
.demo video {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.demo audio {
  width: 100%;
}

.demo input,
.demo select,
.demo button,
.demo textarea {
  background: var(--demo-control-bg);
  border: 1px solid var(--demo-control-border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
}

.demo input::placeholder {
  color: var(--demo-placeholder);
}

.low-contrast {
  color: #6f7688;
}

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

.low-contrast-bg {
  background: #dfe3f0;
  color: #c6cad8;
  border-color: #e9edf7;
}

.clipped {
  height: 34px;
  overflow: hidden;
  background: var(--soft);
  padding: 6px 8px;
  border-radius: 10px;
}

.fixed-width {
  min-width: 900px;
  background: var(--soft);
  padding: 8px;
  border-radius: 8px;
}

.fake-button {
  padding: 10px 16px;
  background: linear-gradient(120deg, #ff7b54, #ffb85c);
  color: #0a0a0a;
  border-radius: 12px;
  display: inline-block;
  cursor: pointer;
}

.tiny-target {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #ff2e2e;
  border-radius: 50%;
}

.flash,
.flash-intense {
  width: 100%;
  height: 50px;
  background: #ff0000;
}

.flash {
  animation: flash 0.2s infinite;
}

.flash-intense {
  animation: flash 0.1s infinite;
}

.flash-alt {
  width: 100%;
  height: 40px;
  background: #ff2e2e;
  animation: flash 0.18s infinite;
}

@keyframes flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 2.4s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-30%);
  }
}

.sequence {
  display: flex;
  gap: 8px;
}

.sequence .first {
  order: 3;
}

.sequence .second {
  order: 1;
}

.sequence .third {
  order: 2;
}

.hover-reveal {
  position: relative;
}

.hover-reveal .tooltip {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  border-radius: 8px;
  border: 1px solid var(--stroke);
  display: none;
  white-space: nowrap;
  box-shadow: var(--card-shadow-soft);
}

.hover-reveal:hover .tooltip {
  display: block;
}

.text-spacing-break {
  line-height: 1;
  max-height: 2.4em;
  overflow: hidden;
}

.visual-presentation {
  max-width: 200px;
  text-align: justify;
  line-height: 1.05;
  word-spacing: -0.1em;
}

.motion-block {
  background: linear-gradient(120deg, var(--soft-strong), transparent);
  animation: drift 2.2s ease-in-out infinite;
  padding: 12px;
  border-radius: 12px;
  animation-play-state: paused;
}

.motion-block:hover {
  animation-play-state: running;
}

@keyframes drift {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(14px);
  }
  100% {
    transform: translateX(0);
  }
}

.status-banner {
  background: var(--status-bg);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
}

.icon-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-row span {
  width: 28px;
  height: 28px;
  background: var(--icon-bg);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.fake-toggle {
  width: 44px;
  height: 24px;
  background: var(--toggle-bg);
  border-radius: 999px;
  position: relative;
}

.fake-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--toggle-thumb-bg);
  border-radius: 50%;
}

.obscured-wrap {
  position: relative;
  height: 120px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--obscured-bg);
}

.obscured-header {
  position: sticky;
  top: 0;
  background: var(--obscured-header-bg);
  padding: 6px 8px;
  border-bottom: 1px solid var(--stroke);
  z-index: 2;
}

.obscured-body {
  padding: 10px;
  display: grid;
  gap: 6px;
}

.obscured-wrap.enhanced .obscured-header {
  height: 38px;
}

.focus-appearance:focus {
  outline: 1px solid #1b1f2c;
  outline-offset: 1px;
}

.thin-focus:focus {
  outline: 1px solid #1b1f2c;
  outline-offset: 0;
}

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

.carousel {
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--carousel-bg);
}

.carousel-track {
  display: flex;
  transition: transform 600ms ease;
}

.carousel-slide {
  min-width: 100%;
  padding: 16px;
  text-align: center;
}

.orientation-lock {
  padding: 8px;
  background: var(--orientation-bg);
  border-radius: 10px;
}

@media (orientation: portrait) {
  .orientation-lock {
    display: none;
  }
}

@media (max-width: 980px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 20px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    top: 12px;
  }

  .theme-toggle {
    width: 100%;
  }
}
