:root {
  --bg: #06070b;
  --line: rgba(84, 132, 255, 0.16);
  --glow: rgba(105, 165, 255, 0.45);
  --text: #dfe7ff;
  --muted: #8da1cc;
  --ok: #6ae8b8;
  --accent: #ff4a1a;
  --accent-soft: rgba(255, 74, 26, 0.32);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safeB: env(safe-area-inset-bottom, 0px);
  --navH: 86px;
  --navBottom: calc(var(--safeB) + 12px);
  --navItemW: clamp(84px, 22vw, 104px);
  --hudPadX: 12px;
  --sectionPadX: 10px;
  --panelBorder: 1px;
  --dotSize: 8px;
  --dotGap: 10px;
  --pagerNudgeX: 9px;
  --panelLeft: calc(var(--hudPadX) + var(--sectionPadX) + var(--panelBorder));
  --hudPadTop: calc(12px + var(--safe-top));
  --topBarH: 44px;
  --hudGap: 8px;
  --sectionPadTop: 10px;
  --titleLineH: 18px;
  --titleToPanelGap: 8px;
  --panelTopAnchor: calc(
    var(--hudPadTop) + var(--topBarH) + var(--hudGap) + var(--sectionPadTop) + var(--titleLineH) + var(--titleToPanelGap)
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  touch-action: manipulation;
  user-select: none;
}

.app {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #10172c 0%, #06070b 60%);
}

.layer-starfield,
.layer-dim,
.hud {
  position: absolute;
  inset: 0;
}

.layer-starfield {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.layer-dim {
  z-index: 1;
  background: rgba(0, 0, 0, 0.66);
  transition: background 280ms ease, opacity 280ms ease;
}

.hud {
  z-index: 2;
  padding: calc(12px + var(--safe-top)) 12px calc(var(--navH) + var(--safeB) + 24px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 300ms ease, transform 300ms ease;
}

.hud::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 97%, rgba(95, 143, 255, 0.08) 100%) 0 0 / 100% 4px,
    radial-gradient(circle at center, rgba(109, 169, 255, 0.08), transparent 58%);
  pointer-events: none;
}

.hud-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -14%;
  height: 16%;
  background: linear-gradient(to bottom, transparent, rgba(122, 181, 255, 0.2), transparent);
  filter: blur(2px);
  animation: scan 4.2s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  to {
    transform: translateY(720%);
  }
}

.hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  min-height: 44px;
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff8a69;
  text-shadow: 0 0 16px rgba(255, 74, 26, 0.45);
}

.lock-btn {
  position: relative;
  border: 1px solid rgba(118, 170, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(14, 23, 41, 0.88), rgba(8, 14, 26, 0.82)),
    rgba(11, 16, 28, 0.72);
  color: #dbe7ff;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 12px rgba(82, 130, 212, 0.08);
}

.lock-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 145, 108, 0.06), transparent 46%);
  pointer-events: none;
}

.lock-btn-glyph {
  position: relative;
  width: 16px;
  height: 18px;
}

.lock-btn-shackle,
.lock-btn-body {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.lock-btn-shackle {
  top: 0;
  width: 10px;
  height: 8px;
  border: 1.6px solid rgba(255, 197, 180, 0.9);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 0 8px rgba(255, 136, 97, 0.12);
}

.lock-btn-body {
  top: 6px;
  width: 16px;
  height: 12px;
  border-radius: 4px;
  border: 1.6px solid rgba(255, 197, 180, 0.9);
  background: linear-gradient(180deg, rgba(255, 150, 115, 0.16), rgba(91, 141, 223, 0.06));
  box-shadow: inset 0 0 10px rgba(255, 129, 88, 0.08);
}

.lock-btn-body::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 215, 205, 0.92);
  transform: translate(-50%, -50%);
}

.settings-btn {
  border: 1px solid rgba(255, 149, 115, 0.42);
  background: rgba(21, 15, 15, 0.74);
  color: #ffbeaa;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 18px;
}

.settings-panel {
  position: absolute;
  top: calc(54px + var(--safe-top));
  right: 12px;
  width: min(270px, 76vw);
  border-radius: 12px;
  border: 1px solid rgba(255, 145, 108, 0.38);
  background: linear-gradient(to bottom, rgba(11, 16, 28, 0.92), rgba(16, 11, 11, 0.92));
  padding: 10px;
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 150ms ease, transform 150ms ease;
}

.settings-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.settings-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #ffd3c5;
}

.settings-user,
.settings-version {
  margin-top: 6px;
  color: #f0b9a8;
  font-size: 11px;
}

.settings-version {
  margin-bottom: 8px;
}

.settings-subtitle {
  margin-top: 6px;
  margin-bottom: 6px;
  color: #ffd3c5;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.settings-input {
  width: 100%;
  height: 34px;
  margin-bottom: 6px;
  border-radius: 9px;
  border: 1px solid rgba(129, 173, 255, 0.24);
  background: rgba(7, 14, 26, 0.84);
  color: #eef5ff;
  padding: 0 10px;
  font-size: 12px;
}

.settings-action {
  width: 100%;
  height: 32px;
  margin-bottom: 6px;
  border-radius: 9px;
  border: 1px solid rgba(129, 173, 255, 0.35);
  background: rgba(14, 23, 41, 0.8);
  color: var(--text);
  font-size: 12px;
  text-align: center;
}

.settings-danger {
  border-color: rgba(255, 130, 99, 0.45);
  color: #ffd5c8;
}

.settings-ghost {
  border-color: rgba(160, 184, 231, 0.28);
}

.settings-status {
  margin-top: 4px;
  font-size: 11px;
  color: #f3bead;
}

.section-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(104, 150, 230, 0.2);
  background: rgba(9, 15, 27, 0.4);
  touch-action: none;
}

.section-viewport.is-transitioning {
  filter: saturate(1.05);
}

.section-track {
  height: 100%;
  display: flex;
  will-change: transform;
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.section-page {
  width: 100%;
  flex: 0 0 100%;
  min-height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.section-home {
  position: relative;
  justify-content: flex-start;
  gap: 6px;
}

.home-weather-card {
  appearance: none;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(128, 161, 223, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 134, 96, 0.13), rgba(77, 130, 214, 0.08)),
    rgba(9, 15, 27, 0.72);
  box-shadow: inset 0 0 16px rgba(82, 130, 212, 0.12);
  z-index: 1;
  flex-shrink: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.home-control-card {
  appearance: none;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(107, 198, 170, 0.28);
  background:
    linear-gradient(135deg, rgba(68, 182, 150, 0.18), rgba(61, 107, 170, 0.1)),
    rgba(8, 16, 26, 0.76);
  box-shadow: inset 0 0 16px rgba(73, 191, 156, 0.12);
  z-index: 1;
  flex-shrink: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.home-weather-head,
.home-weather-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-control-head,
.home-control-main,
.home-light-head,
.home-light-row,
.home-light-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-weather-head {
  margin-bottom: 6px;
}

.home-control-head {
  margin-bottom: 6px;
}

.home-weather-label,
.home-weather-updated {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.home-control-label,
.home-control-meta,
.home-control-panel-kicker,
.home-control-panel-status,
.home-light-kicker,
.home-light-meta {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.home-weather-label {
  color: #ffb79f;
  font-weight: 700;
}

.home-control-label {
  color: #9ff0d1;
  font-weight: 700;
}

.home-weather-updated {
  color: rgba(191, 206, 236, 0.62);
  text-align: right;
}

.home-control-meta,
.home-control-panel-status,
.home-light-meta {
  color: rgba(191, 222, 216, 0.68);
  text-align: right;
}

.home-weather-reading {
  min-width: 0;
}

.home-control-main {
  align-items: flex-end;
}

.home-weather-temp {
  font-size: clamp(28px, 8vw, 42px);
  line-height: 0.9;
  color: #fff3ed;
  text-shadow: 0 0 16px rgba(255, 132, 86, 0.2);
}

.home-control-title {
  color: #ecfff8;
  font-size: 20px;
  letter-spacing: 0.03em;
}

.home-weather-summary,
.home-weather-city {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.home-control-summary {
  max-width: 50%;
  color: rgba(226, 245, 240, 0.82);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

.home-weather-summary {
  margin-top: 5px;
  color: rgba(224, 232, 249, 0.82);
  text-transform: uppercase;
}

.home-weather-city {
  max-width: 42%;
  color: #ffd4c7;
  text-align: right;
  text-transform: uppercase;
}

.home-weather-modal {
  position: absolute;
  inset: 0;
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.home-weather-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.home-weather-modal-bg {
  position: absolute;
  inset: -2px;
  background: rgba(2, 6, 14, 0.82);
  backdrop-filter: blur(8px);
}

.home-weather-panel {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 128, 92, 0.3);
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 138, 98, 0.14), transparent 42%),
    linear-gradient(to bottom, rgba(8, 14, 26, 0.97), rgba(6, 10, 20, 0.98));
  box-shadow: inset 0 0 28px rgba(95, 145, 225, 0.12);
  padding: 10px;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 8px;
  transform: translateY(-20px);
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.25, 1);
  overflow: hidden;
}

.home-weather-modal.is-open .home-weather-panel {
  transform: translateY(0);
}

.home-control-modal {
  position: absolute;
  inset: 0;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.home-control-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.home-control-modal-bg {
  position: absolute;
  inset: -2px;
  background: rgba(3, 9, 14, 0.78);
  backdrop-filter: blur(8px);
}

.home-control-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 52%;
  max-height: 86%;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(105, 202, 172, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(73, 191, 156, 0.14), transparent 38%),
    linear-gradient(to bottom, rgba(9, 18, 26, 0.97), rgba(6, 12, 18, 0.99));
  box-shadow: inset 0 0 28px rgba(84, 180, 160, 0.12);
  padding: 12px 10px calc(18px + var(--safe-bottom));
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.25, 1);
  overflow: hidden;
}

.home-control-modal.is-open .home-control-panel {
  transform: translateY(0);
}

.home-control-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.home-control-panel-kicker {
  color: #99f2d0;
}

.home-control-close {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(111, 211, 178, 0.42);
  background: rgba(11, 20, 20, 0.78);
  color: #dffdf3;
  font-size: 22px;
  line-height: 1;
}

.home-control-grid {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 2px;
}

.home-light-card,
.home-control-empty {
  border: 1px solid rgba(113, 184, 167, 0.24);
  background: rgba(8, 17, 25, 0.76);
  border-radius: 14px;
}

.home-light-card {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.home-light-card.is-offline {
  border-color: rgba(204, 120, 100, 0.26);
  background: rgba(20, 11, 11, 0.7);
}

.home-light-kicker {
  color: rgba(165, 235, 212, 0.75);
}

.home-light-name {
  color: #effff9;
  font-size: 18px;
}

.home-light-state {
  color: #9ff0d1;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.home-light-card.is-offline .home-light-state {
  color: #ffb39c;
}

.home-light-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.home-light-btn {
  min-width: 80px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(113, 184, 167, 0.3);
  background: rgba(9, 15, 27, 0.7);
  color: #e8fff7;
  font-size: 12px;
}

.home-light-btn.is-primary {
  border-color: rgba(109, 226, 186, 0.5);
  box-shadow: inset 0 0 0 1px rgba(109, 226, 186, 0.18);
  color: #b9ffe7;
}

.home-light-btn:disabled {
  opacity: 0.5;
}

.home-control-empty {
  padding: 14px 12px;
  color: rgba(226, 245, 240, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.home-weather-panel-top,
.home-weather-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.home-weather-panel-kicker {
  color: #ff9a7a;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.home-weather-close {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 143, 108, 0.45);
  background: rgba(19, 13, 13, 0.72);
  color: #ffd8cd;
  font-size: 22px;
  line-height: 1;
}

.home-weather-hero-main,
.home-weather-hero-side {
  display: grid;
  gap: 4px;
}

.home-weather-panel-temp {
  font-size: clamp(38px, 13vw, 66px);
  line-height: 0.88;
  color: #fff3ed;
  text-shadow: 0 0 20px rgba(255, 128, 92, 0.16);
}

.home-weather-panel-summary {
  color: #eef5ff;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.home-weather-panel-city,
.home-weather-panel-meta {
  text-align: right;
}

.home-weather-panel-city {
  color: #ffd4c7;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-weather-panel-meta {
  color: rgba(215, 227, 250, 0.66);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.home-weather-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.home-weather-metric-card,
.home-weather-hour-card,
.home-weather-day-row {
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.62);
  border-radius: 12px;
}

.home-weather-metric-card {
  padding: 8px;
  display: grid;
  gap: 3px;
}

.home-weather-metric-card span,
.home-weather-detail-head,
.home-weather-hour-time,
.home-weather-day-name {
  color: rgba(188, 204, 236, 0.72);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.home-weather-metric-card strong {
  color: #eef4ff;
  font-size: 14px;
  font-weight: 600;
}

.home-weather-detail-section {
  min-height: 0;
  display: grid;
  gap: 6px;
}

.home-weather-hourly {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.home-weather-hour-card {
  padding: 8px 6px;
  display: grid;
  justify-items: center;
  gap: 5px;
}

.home-weather-hour-temp {
  color: #fff1ea;
  font-size: 15px;
}

.home-weather-hour-label {
  color: rgba(227, 236, 252, 0.78);
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
}

.home-weather-days {
  display: grid;
  gap: 6px;
}

.home-weather-day-row {
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 8px;
}

.home-weather-day-label {
  color: #eaf1ff;
  font-size: 12px;
}

.home-weather-day-range {
  color: #ffd4c7;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.hud-rings {
  position: relative;
  width: min(44vw, 164px);
  aspect-ratio: 1;
  margin: 2px auto 0;
  flex-shrink: 0;
}

.ring,
.ring-core {
  position: absolute;
  border-radius: 50%;
  inset: 0;
}

.ring {
  border: 1px solid var(--line);
  box-shadow: 0 0 12px var(--glow) inset;
}

.ring-a {
  animation: spin 12s linear infinite;
}

.ring-b {
  inset: 11%;
  animation: spin-rev 9s linear infinite;
}

.ring-c {
  inset: 23%;
  animation: spin 7s linear infinite;
}

.ring-core {
  inset: 40%;
  background: radial-gradient(circle, rgba(140, 193, 255, 0.8), rgba(140, 193, 255, 0.1) 70%, transparent 75%);
}

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

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

.status-grid {
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  z-index: 1;
  flex-shrink: 0;
}

.home-clock {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 4px 2px 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  z-index: 1;
  flex-shrink: 0;
}

.home-clock-label {
  color: rgba(188, 204, 236, 0.66);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.home-clock-value {
  color: #f5fbff;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(105, 165, 255, 0.18);
}

.calendar-widget {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid rgba(128, 161, 223, 0.24);
  background:
    radial-gradient(circle at 50% -30%, rgba(255, 130, 94, 0.09), transparent 56%),
    rgba(9, 15, 27, 0.68);
  border-radius: 14px;
  padding: 8px 10px 7px;
  min-height: 152px;
  box-shadow: inset 0 0 14px rgba(82, 130, 212, 0.1);
  flex-shrink: 0;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.calendar-month {
  color: #ff9a7a;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

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

.calendar-weekdays {
  margin-bottom: 4px;
}

.calendar-days-wrap {
  position: relative;
  overflow: hidden;
  min-height: 118px;
}

.calendar-days-layer {
  position: absolute;
  inset: 0;
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.25, 1);
  will-change: transform;
}

.calendar-weekday {
  color: rgba(189, 204, 236, 0.62);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.calendar-day {
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5ecff;
  font-size: 10px;
  border-radius: 999px;
}

.calendar-day.is-weekend {
  color: rgba(213, 223, 244, 0.76);
}

.calendar-day.is-empty {
  color: transparent;
}

.calendar-day.is-today {
  color: #fff;
  background: linear-gradient(to bottom, #ff7a55, #ff4a1a);
  box-shadow: 0 0 10px rgba(255, 90, 47, 0.62);
}

.status-card,
.widget,
.news-list li,
.tv-status,
.program-status {
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.65);
  border-radius: 12px;
}

.status-card {
  padding: 8px 10px;
  min-height: 52px;
}

.status-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.status-value {
  font-size: 15px;
  margin-top: 5px;
}

.status-value.ok {
  color: var(--ok);
}

.panel-title {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #ffc5b5;
  margin-top: 2px;
}

.home-workspace {
  flex: 1;
  min-height: 0;
  display: block;
}

.home-subpage-viewport {
  overflow: hidden;
  border-radius: 12px;
  min-height: 0;
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.34);
  height: 100%;
}

.home-subpage-track {
  height: 100%;
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.25, 1), opacity 220ms ease;
  will-change: transform;
}

.home-subpage {
  height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-dashboard {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 360px) {
  .home-weather-main {
    align-items: flex-end;
  }

  .home-weather-city {
    max-width: 46%;
    font-size: 11px;
  }
}

.voice-panel {
  height: 100%;
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.65);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 8px;
}

.voice-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #ffd3c5;
}

.voice-viz-wrap {
  position: relative;
  border: 1px solid rgba(118, 170, 255, 0.3);
  border-radius: 10px;
  background: rgba(3, 8, 16, 0.65);
  overflow: hidden;
  min-height: 140px;
}

.voice-viz {
  width: 100%;
  height: 100%;
  display: block;
}

.voice-thinking {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 19, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.voice-thinking.is-active {
  opacity: 1;
}

.voice-overlay-core {
  min-width: 170px;
  border: 1px solid rgba(132, 179, 255, 0.28);
  border-radius: 14px;
  background: rgba(7, 15, 28, 0.72);
  padding: 12px 14px 10px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.voice-ring {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(124, 184, 255, 0.42);
}

.voice-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(124, 184, 255, 0.22);
}

.voice-ring-sweep {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(255, 121, 79, 0.92);
  border-right-color: rgba(255, 121, 79, 0.38);
  animation: spin 1.6s linear infinite;
}

.voice-overlay-label {
  color: #ffd3c5;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.voice-thinking-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.voice-thinking-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6f45;
  box-shadow: 0 0 8px rgba(255, 111, 69, 0.7);
  animation: voice-dot 900ms ease-in-out infinite;
}

.voice-thinking-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.voice-thinking-dots span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes voice-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.voice-status {
  color: #ffb39c;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.voice-error {
  color: #ff9d7e;
  font-size: 11px;
}

.voice-retry-btn {
  justify-self: start;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 113, 68, 0.65);
  background: rgba(47, 16, 11, 0.72);
  color: #ffd3c5;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.voice-output {
  display: grid;
  gap: 8px;
}

.voice-output-card {
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.62);
  border-radius: 10px;
  padding: 8px;
}

.voice-output-head {
  color: #ffb39c;
  font-size: 10px;
  letter-spacing: 0.11em;
  margin-bottom: 4px;
}

.voice-output-body {
  color: #e4ecff;
  font-size: 11px;
  line-height: 1.35;
  min-height: 30px;
  max-height: 74px;
  overflow: hidden;
}

.voice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.voice-btn {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(118, 170, 255, 0.3);
  background: rgba(9, 15, 27, 0.65);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.voice-btn:disabled {
  opacity: 0.45;
}

.voice-btn-primary {
  border-color: rgba(255, 113, 68, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 113, 68, 0.35);
  color: #ffd3c5;
}

.voice-btn-primary.is-listening {
  background: rgba(61, 23, 15, 0.72);
}

.voice-btn-ghost {
  border-color: rgba(160, 184, 231, 0.32);
}

.news-workspace {
  flex: 1;
  min-height: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.news-subpage-viewport {
  overflow: hidden;
  border-radius: 12px;
  min-height: 0;
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.34);
}

.news-subpage-track {
  height: 100%;
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.25, 1);
  will-change: transform;
}

.news-subpage {
  height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 80px;
}

.news-price-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 4px;
}

.price-tile {
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.68);
  border-radius: 10px;
  padding: 6px;
  min-height: 54px;
  display: grid;
  gap: 3px;
  cursor: pointer;
}

.price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(223, 236, 255, 0.78);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.price-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 129, 93, 0.85);
  box-shadow: 0 0 8px rgba(255, 111, 69, 0.6);
}

.price-value {
  color: #eaf2ff;
  font-size: 12px;
  font-weight: 600;
}

.price-change {
  font-size: 10px;
}

.price-change.is-up {
  color: #84e8bf;
}

.price-change.is-down {
  color: #ff9a7a;
}

.news-action-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 7;
  height: 60px;
  border-radius: 15px;
  border: 1px solid rgba(128, 161, 223, 0.24);
  background:
    linear-gradient(to bottom, rgba(18, 31, 52, 0.36), rgba(8, 15, 28, 0.88)),
    rgba(7, 12, 24, 0.8);
  box-shadow: inset 0 0 14px rgba(95, 145, 225, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 8px;
  transition: opacity 180ms ease, transform 220ms ease;
}

.news-action-btn {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(128, 161, 223, 0.24);
  background: rgba(10, 17, 31, 0.72);
  color: #e5eefe;
  font-size: 10px;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 120ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.news-action-btn--accent {
  border-color: rgba(255, 143, 108, 0.46);
  box-shadow: inset 0 0 0 1px rgba(255, 111, 69, 0.24);
}

.news-action-btn:disabled {
  opacity: 0.55;
}

.news-action-btn:active {
  transform: translateY(1px);
}

.news-action-icon {
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.news-action-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: rgba(255, 126, 87, 0.9);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(255, 111, 69, 0.28));
}

.news-action-btn.is-loading .news-action-icon-svg {
  opacity: 0;
}

.news-action-spinner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(130, 186, 255, 0.22);
  border-top-color: rgba(255, 124, 86, 0.86);
  opacity: 0;
  animation: spin 0.95s linear infinite;
}

.news-action-btn.is-loading .news-action-spinner {
  opacity: 1;
}

.news-action-label {
  color: rgba(234, 244, 255, 0.9);
}

.news-workspace.market-open .news-action-bar {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.news-ctl-chip {
  min-width: 72px;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(211, 226, 255, 0.76);
  font-size: 9px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  position: absolute;
  right: 10px;
  top: -28px;
  transform: translateY(3px);
  pointer-events: none;
  z-index: 1;
}

.news-ctl-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  background: rgba(200, 214, 238, 0.5);
}

.news-ctl-chip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.news-ctl-chip.is-loading {
  border-color: rgba(129, 176, 255, 0.32);
  background: rgba(9, 17, 31, 0.7);
  color: #d7e8ff;
}

.news-ctl-chip.is-updated {
  border-color: rgba(120, 229, 189, 0.38);
  background: rgba(11, 29, 23, 0.72);
  color: #90efca;
}

.news-ctl-chip.is-updated::before {
  background: #8ce8c2;
  box-shadow: 0 0 8px rgba(140, 232, 194, 0.55);
}

.news-ctl-chip.is-failed {
  border-color: rgba(255, 146, 115, 0.34);
  background: rgba(35, 16, 12, 0.66);
  color: #ffb09a;
}

.news-ctl-chip.is-failed::before {
  background: #ff9c7d;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  padding-bottom: 2px;
}

.news-list.is-loading {
  opacity: 0.56;
}

.news-item {
  padding: 8px;
  font-size: 12px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.66);
  border-radius: 11px;
}

.news-item-main {
  min-width: 0;
  flex: 1;
}

.news-item-title {
  color: #e5edff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-meta {
  color: rgba(203, 219, 249, 0.62);
  font-size: 10px;
  margin-top: 3px;
}

.news-source-pill {
  border: 1px solid rgba(255, 143, 108, 0.32);
  background: rgba(35, 16, 12, 0.6);
  color: #ffcdbd;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 9px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.news-list .time {
  color: #ff9e84;
  min-width: 28px;
  text-align: right;
  font-size: 10px;
}

.news-chevron {
  color: rgba(214, 227, 251, 0.4);
  font-size: 14px;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .news-action-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(255, 143, 108, 0.44);
    box-shadow: 0 0 10px rgba(255, 111, 69, 0.16), inset 0 0 0 1px rgba(255, 111, 69, 0.22);
  }
}

.news-detail-modal {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  transition: opacity 220ms ease;
}

.news-detail-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.news-detail-panel {
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 128, 92, 0.3);
  background: linear-gradient(to bottom, rgba(8, 14, 26, 0.95), rgba(6, 10, 20, 0.96));
  box-shadow: inset 0 0 24px rgba(95, 145, 225, 0.1);
  padding: 8px;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 8px;
  transform: translateY(14px);
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.news-detail-modal.is-open .news-detail-panel {
  transform: translateY(0);
}

.news-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-detail-kicker {
  color: #ff9a7a;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.news-detail-close {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  border: 1px solid rgba(255, 143, 108, 0.45);
  background: rgba(19, 13, 13, 0.72);
  color: #ffd8cd;
  font-size: 21px;
  line-height: 1;
}

.news-detail-title {
  margin: 0;
  font-size: 17px;
  color: #eef5ff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-detail-time {
  color: rgba(223, 236, 255, 0.65);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.news-detail-image-wrap {
  border: 1px solid rgba(128, 161, 223, 0.22);
  border-radius: 10px;
  background: rgba(9, 15, 27, 0.62);
  min-height: 90px;
  overflow: hidden;
  position: relative;
}

.news-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.news-detail-image.is-visible {
  display: block;
}

.news-detail-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(233, 241, 255, 0.55);
  letter-spacing: 0.08em;
  font-size: 11px;
  background:
    radial-gradient(circle at 50% 30%, rgba(120, 171, 255, 0.18), transparent 62%),
    linear-gradient(to bottom, rgba(11, 18, 31, 0.95), rgba(7, 11, 20, 0.95));
}

.news-detail-summary {
  margin: 0;
  color: #dfe9ff;
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-detail-open {
  justify-self: start;
  border: 1px solid rgba(255, 143, 108, 0.45);
  background: rgba(27, 14, 12, 0.66);
  color: #ffd4c7;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.news-market-modal {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 9;
  transition: opacity 220ms ease;
}

.news-market-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.news-market-panel {
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 128, 92, 0.3);
  background: linear-gradient(to bottom, rgba(8, 14, 26, 0.95), rgba(6, 10, 20, 0.96));
  box-shadow: inset 0 0 24px rgba(95, 145, 225, 0.1);
  padding: 8px;
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr;
  gap: 8px;
  transform: translateY(14px);
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.news-market-modal.is-open .news-market-panel {
  transform: translateY(0);
}

.news-market-price {
  color: #edf4ff;
  font-size: 20px;
  font-weight: 700;
}

.news-market-delta {
  color: rgba(198, 216, 252, 0.74);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.news-market-delta.is-up {
  color: #88e9c3;
}

.news-market-delta.is-down {
  color: #ffad95;
}

.news-market-tabs {
  display: flex;
  gap: 6px;
}

.news-market-tab {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(128, 161, 223, 0.24);
  background: rgba(9, 15, 27, 0.62);
  color: rgba(225, 236, 255, 0.75);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.news-market-tab.is-active {
  border-color: rgba(255, 143, 108, 0.44);
  color: #ffd3c5;
}

.news-market-loading {
  display: none;
  align-items: center;
  gap: 8px;
  color: rgba(220, 233, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.news-market-loading.is-visible {
  display: flex;
}

.news-market-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(130, 186, 255, 0.25);
  border-top-color: rgba(255, 124, 86, 0.82);
  animation: spin 0.95s linear infinite;
}

.news-market-canvas-wrap {
  border: 1px solid rgba(128, 161, 223, 0.22);
  border-radius: 10px;
  background: rgba(9, 15, 27, 0.66);
  overflow: hidden;
}

.news-market-canvas {
  width: 100%;
  height: 100%;
  min-height: 168px;
  display: block;
}

.v-pager-overlay {
  position: fixed;
  right: calc(var(--panelLeft) - (var(--dotSize) + var(--dotGap)) + var(--pagerNudgeX));
  top: 40%;
  transform: translateY(-40%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 11;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.v-pager-overlay.is-visible {
  opacity: 1;
}

.v-dot {
  width: var(--dotSize);
  height: var(--dotSize);
  border-radius: 50%;
  background: rgba(255, 146, 115, 0.25);
}

.v-dot.is-active {
  background: #ff6f45;
  box-shadow: 0 0 10px rgba(255, 111, 69, 0.7);
}

.tasks-workspace {
  flex: 1;
  min-height: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.tasks-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tasks-clear-btn {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 146, 115, 0.34);
  background: rgba(28, 15, 13, 0.58);
  color: #ffd6c9;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.tasks-subpage-viewport {
  overflow: hidden;
  border-radius: 12px;
  min-height: 0;
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.34);
  height: 100%;
}

.tasks-subpage-track {
  height: 100%;
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.25, 1);
  will-change: transform;
}

.tasks-subpage {
  height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.tasks-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.task-item {
  min-height: 48px;
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.65);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.task-item.is-highlight {
  box-shadow: inset 2px 0 0 rgba(255, 111, 69, 0.92);
}

.task-time {
  color: #ff9e84;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.task-title {
  color: #e7efff;
  line-height: 1.2;
}

.task-meta {
  color: rgba(223, 236, 255, 0.66);
  font-size: 11px;
}

.task-meta.done {
  color: #7fe8be;
}

.task-modal {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease;
}

.task-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.task-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
}

.task-modal-panel {
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 128, 92, 0.3);
  background: linear-gradient(to bottom, rgba(8, 14, 26, 0.95), rgba(6, 10, 20, 0.96));
  box-shadow: inset 0 0 24px rgba(95, 145, 225, 0.1);
  padding: 8px;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto 1fr auto;
  gap: 8px;
  transform: translateY(18px);
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.25, 1);
  overflow: hidden;
}

.task-modal.is-open .task-modal-panel {
  transform: translateY(0);
}

.task-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task-modal-kicker {
  color: #ff9a7a;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.task-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 143, 108, 0.45);
  background: rgba(19, 13, 13, 0.72);
  color: #ffd8cd;
  font-size: 22px;
  line-height: 1;
}

.task-modal-title {
  margin: 0;
  font-size: 18px;
  color: #eef5ff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.task-meta-item {
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.62);
  border-radius: 10px;
  padding: 6px;
  display: grid;
  gap: 2px;
}

.task-meta-item span {
  color: rgba(179, 197, 234, 0.74);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.task-meta-item strong {
  color: #e7efff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-detail-card {
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.62);
  border-radius: 11px;
  padding: 8px;
  min-height: 56px;
}

.task-detail-head {
  color: #ffb39c;
  font-size: 10px;
  letter-spacing: 0.11em;
  margin-bottom: 5px;
}

.task-detail-text {
  margin: 0;
  color: #dfe9ff;
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.task-checklist li {
  color: #deebff;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-checklist li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 120, 80, 0.85);
  flex: 0 0 auto;
}

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

.task-chip {
  border: 1px solid rgba(255, 146, 115, 0.34);
  background: rgba(30, 15, 13, 0.58);
  color: #ffd6c9;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-output-card {
  min-height: 84px;
}

.task-audio-player {
  width: 100%;
  height: 34px;
  filter: saturate(0.9) brightness(0.92);
}

.task-output {
  margin: 0;
  color: #a5ffd4;
  background: rgba(1, 7, 12, 0.68);
  border: 1px solid rgba(105, 156, 232, 0.2);
  border-radius: 8px;
  padding: 6px;
  font-size: 10px;
  line-height: 1.3;
  max-height: 86px;
  overflow: hidden;
  white-space: pre-wrap;
}

.task-result {
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.66);
  border-radius: 11px;
  padding: 10px;
  color: #f7c3b2;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.task-result.is-success {
  color: #89ebc4;
}

@media (max-width: 520px) {
  .home-weather-panel {
    padding: 8px;
  }

  .home-weather-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-weather-hourly {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.graphics-workspace {
  flex: 1;
  min-height: 0;
  display: block;
}

.graphics-subpage-viewport {
  overflow: hidden;
  border-radius: 12px;
  min-height: 0;
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.34);
  height: 100%;
}

.graphics-subpage-track {
  height: 100%;
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.25, 1);
  will-change: transform;
}

.graphics-subpage {
  height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.graphics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.widget {
  min-height: 94px;
  padding: 8px;
}

.radar-widget {
  position: relative;
  grid-row: span 2;
  min-height: 196px;
  overflow: hidden;
}

.radar-large {
  min-height: 100%;
}

.radar-widget::before,
.radar-widget::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(119, 183, 255, 0.4);
}

.radar-widget::after {
  inset: 24px;
}

.radar-sweep {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(125, 215, 255, 0.42), transparent 18%);
  animation: spin 3.2s linear infinite;
}

.radar-blip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(144, 220, 255, 0.9);
  box-shadow: 0 0 8px rgba(144, 220, 255, 0.7);
  animation: pulse-blip 2.4s ease-in-out infinite;
}

.blip-a {
  left: 32%;
  top: 41%;
}

.blip-b {
  left: 61%;
  top: 56%;
  animation-delay: 0.6s;
}

.blip-c {
  left: 46%;
  top: 24%;
  animation-delay: 1.2s;
}

@keyframes pulse-blip {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.bars-widget {
  display: flex;
  align-items: end;
  gap: 6px;
}

.bars-large {
  height: 100%;
}

.bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(255, 96, 58, 0.95), rgba(255, 163, 129, 0.3));
}

.wave-widget {
  padding: 0;
}

.wave-large {
  height: 100%;
}

.wave-svg {
  width: 100%;
  height: 100%;
}

.wave-svg path {
  fill: none;
  stroke: rgba(134, 195, 255, 0.86);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 8px rgba(134, 195, 255, 0.4));
}

.wave-anim path {
  animation: wave-flow 3.6s ease-in-out infinite;
}

@keyframes wave-flow {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

.orbit-widget {
  position: relative;
  height: 100%;
  min-height: 220px;
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.65);
  border-radius: 12px;
}

.orbit-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  border: 1px solid rgba(125, 182, 255, 0.45);
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 64%;
  height: 64%;
  animation: spin 9s linear infinite;
}

.ring-2 {
  width: 44%;
  height: 44%;
  animation: spin-rev 7s linear infinite;
}

.ring-3 {
  width: 26%;
  height: 26%;
  animation: spin 5.4s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff8a69;
  box-shadow: 0 0 10px rgba(255, 116, 77, 0.7);
  left: 50%;
  top: -4px;
  transform: translateX(-50%);
}

.orbit-legend {
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.65);
  border-radius: 12px;
  padding: 10px;
  font-size: 12px;
  color: #ffb39c;
}

.tv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tv-workspace {
  flex: 1;
  min-height: 0;
  display: block;
}

.tv-subpage-viewport {
  overflow: hidden;
  border-radius: 12px;
  min-height: 0;
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.34);
  height: 100%;
}

.tv-subpage-track {
  height: 100%;
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.25, 1);
  will-change: transform;
}

.tv-subpage {
  height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tv-tile {
  min-height: 58px;
  border-radius: 12px;
  border: 1px solid rgba(118, 170, 255, 0.3);
  background: rgba(9, 15, 27, 0.65);
  color: var(--text);
  font-size: 13px;
}

.tv-tile.is-active {
  border-color: rgba(255, 113, 68, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 113, 68, 0.4);
  color: #ffd3c5;
}

.tv-status,
.program-status {
  margin-top: auto;
  padding: 10px;
  font-size: 12px;
  color: #ffb39c;
}

.tv-control-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tv-control-btn {
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(118, 170, 255, 0.3);
  background: rgba(9, 15, 27, 0.65);
  color: var(--text);
  font-size: 13px;
}

.tv-control-btn.is-on {
  border-color: rgba(255, 113, 68, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 113, 68, 0.4);
  color: #ffd3c5;
}

.tv-volume-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.tv-volume-row {
  border: 1px solid rgba(128, 161, 223, 0.22);
  background: rgba(9, 15, 27, 0.65);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  grid-template-columns: 68px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.tv-volume-label {
  color: #e3c0b4;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.tv-volume-track {
  position: relative;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 156, 129, 0.35);
  background: linear-gradient(to right, rgba(54, 23, 15, 0.66), rgba(34, 17, 13, 0.48));
  overflow: hidden;
  touch-action: none;
}

.tv-volume-fill {
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(255, 109, 67, 0.62), rgba(255, 166, 129, 0.42));
}

.tv-volume-knob {
  position: absolute;
  top: 2px;
  left: calc(50% - 12px);
  width: 24px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(to right, #ff865f 0%, #ff5c2b 70%, #ff4315 100%);
  border: 1px solid rgba(255, 210, 196, 0.4);
  box-shadow: 0 0 10px rgba(255, 74, 26, 0.38);
}

.tv-volume-value {
  color: #ffb39c;
  font-size: 12px;
  text-align: right;
}

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

.program-item {
  border: 1px solid rgba(118, 170, 255, 0.3);
  background: rgba(9, 15, 27, 0.65);
  color: var(--text);
  min-height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 13px;
}

.toggle-pill {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: rgba(120, 136, 168, 0.5);
  position: relative;
  transition: background 200ms ease;
}

.toggle-pill::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e8f1ff;
  top: 3px;
  left: 3px;
  transition: transform 200ms ease;
}

.program-item.is-on .toggle-pill {
  background: rgba(255, 94, 52, 0.78);
}

.program-item.is-on .toggle-pill::before {
  transform: translateX(20px);
}

.swipe-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: var(--navBottom);
  height: var(--navH);
  z-index: 12;
  border-radius: 34px 34px 22px 22px;
  border: 1px solid rgba(255, 126, 84, 0.35);
  background: linear-gradient(to top, rgba(2, 4, 8, 0.95), rgba(10, 13, 22, 0.8));
  padding: 7px 10px 8px;
  touch-action: none;
  transition: transform 180ms ease, border-color 180ms ease;
  overflow: hidden;
}

.swipe-nav::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 132, 95, 0.2), rgba(255, 132, 95, 0.85), rgba(255, 132, 95, 0.2));
}

.swipe-nav.is-dragging {
  border-color: rgba(255, 148, 116, 0.62);
}

.swipe-nav.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.page-indicators {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 7px;
  z-index: 1;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 146, 115, 0.25);
}

.dot.is-active {
  background: #ff6f45;
  box-shadow: 0 0 10px rgba(255, 111, 69, 0.7);
}

.nav-carousel {
  position: relative;
  overflow: hidden;
  height: 28px;
}

.nav-track {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  gap: 0;
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.25, 1);
  will-change: transform;
}

.nav-item {
  width: var(--navItemW);
  height: 28px;
  border: 0;
  background: transparent;
  color: rgba(237, 201, 188, 0.55);
  font-size: 10px;
  letter-spacing: 0.08em;
  transform: scale(0.92);
  opacity: 0.45;
  transition: transform 220ms ease, opacity 220ms ease, color 220ms ease;
}

.nav-item.is-active {
  color: #ffd4c7;
  font-weight: 700;
  transform: scale(1.08);
  opacity: 1;
}

.unlock-panel {
  position: absolute;
  z-index: 3;
  left: 10px;
  right: 10px;
  bottom: calc(var(--safe-bottom) + 48px);
  height: 132px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(3, 4, 8, 0.83));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(165%);
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.auth-panel {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-panel[hidden] {
  display: none;
}

.auth-shell {
  width: min(100%, 420px);
  border-radius: 20px;
  border: 1px solid rgba(255, 141, 103, 0.22);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 129, 88, 0.13), transparent 44%),
    linear-gradient(to bottom, rgba(7, 12, 23, 0.95), rgba(4, 8, 16, 0.98));
  box-shadow: inset 0 0 28px rgba(95, 145, 225, 0.08);
  padding: 20px 18px 18px;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-label {
  color: #ffd2c4;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.auth-input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(129, 173, 255, 0.26);
  background: rgba(8, 14, 26, 0.86);
  color: #eef5ff;
  padding: 0 12px;
  font-size: 14px;
}

.auth-submit {
  margin-top: 8px;
  min-height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(255, 113, 68, 0.72);
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 233, 225, 0.32), rgba(255, 233, 225, 0) 32%),
    linear-gradient(to right, rgba(255, 134, 95, 0.9), rgba(255, 79, 31, 0.92));
  color: #fff2ec;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.auth-error {
  margin-top: 12px;
  color: #ffaf96;
  font-size: 12px;
  line-height: 1.35;
}

.unlock-title {
  text-align: center;
  color: #ffc5b5;
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.slider-track {
  position: relative;
  height: 60px;
  border-radius: 999px;
  border: 1px solid rgba(255, 156, 129, 0.38);
  background: linear-gradient(to right, rgba(54, 23, 15, 0.74), rgba(34, 17, 13, 0.55));
  overflow: hidden;
  touch-action: none;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 86px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 214, 193, 0.52), rgba(255, 214, 193, 0) 46%),
    linear-gradient(to right, rgba(255, 109, 67, 0.58), rgba(255, 166, 129, 0.42));
  filter: blur(0.2px);
  clip-path: inset(0 round 999px);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 1) 14px, rgba(0, 0, 0, 1) 100%);
  transition: width 120ms linear;
}

.slider-knob {
  position: absolute;
  left: 2px;
  top: 2px;
  width: clamp(76px, 22vw, 84px);
  height: 56px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 233, 225, 0.92), rgba(255, 233, 225, 0.18) 34%),
    linear-gradient(to right, #ff865f 0%, #ff5c2b 45%, #ff4315 100%);
  border: 1px solid rgba(255, 210, 196, 0.42);
  box-shadow: 0 0 18px rgba(255, 74, 26, 0.56), inset 0 -5px 10px rgba(140, 35, 10, 0.32);
  will-change: transform;
}

.slider-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 225, 215, 0.94);
  pointer-events: none;
}

.state-locked-hidden .layer-dim {
  background: rgba(0, 0, 0, 0.76);
}

.state-locked-hidden .unlock-panel {
  transform: translateY(165%);
}

.state-locked-visible .layer-dim {
  background: rgba(0, 0, 0, 0.68);
}

.state-locked-visible .unlock-panel {
  transform: translateY(0);
}

.state-unlocked .layer-dim {
  background: rgba(0, 0, 0, 0.34);
}

.state-unlocked .hud {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.state-unlocked .unlock-panel {
  transform: translateY(165%);
}

.voice-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 12, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 260ms ease;
}

.voice-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.voice-drawer {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(var(--safeB) + 6px);
  height: min(78dvh, 620px);
  border-radius: 32px 32px 20px 20px;
  border: 1px solid rgba(255, 124, 86, 0.42);
  background: linear-gradient(to top, rgba(4, 8, 16, 0.95), rgba(9, 13, 24, 0.88));
  z-index: 11;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  visibility: hidden;
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.25, 1);
  padding: 10px 10px calc(12px + var(--safeB));
  display: grid;
  grid-template-rows: auto 1fr;
  pointer-events: none;
}

.voice-drawer.is-open {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.voice-drawer::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 132, 95, 0.2), rgba(255, 132, 95, 0.85), rgba(255, 132, 95, 0.2));
}

.voice-drawer-handle {
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 186, 164, 0.5);
  justify-self: center;
  margin-top: 2px;
}

.voice-drawer-body {
  min-height: 0;
  margin-top: 8px;
  height: 100%;
}
