:root {
  --shadow: var(--surface-shadow);
}

* {
  box-sizing: border-box;
}

html,
:root {
  color-scheme: light;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--page-bg);
}

body {
  padding: 24px;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.app-shell {
  max-width: 1380px;
  margin: 0 auto;
  min-height: calc(100vh - 48px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--shell-gradient);
  box-shadow: var(--surface-shadow);
  border-radius: 34px;
  overflow: clip;
  backdrop-filter: blur(18px);
}

.topbar {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: rgba(6, 13, 24, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  overflow: visible;
  isolation: isolate;
}

body[data-theme="light"] .topbar {
  background: linear-gradient(180deg, rgba(253, 253, 250, 0.96), rgba(245, 248, 243, 0.92));
  border-bottom-color: rgba(103, 120, 144, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(96, 199, 255, 0.22);
  overflow: hidden;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  display: block;
}

.brand small,
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
}

.brand strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.top-rhythm {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
  min-width: 0;
  width: min(100%, 400px);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top, rgba(96, 199, 255, 0.08), transparent 68%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  justify-self: center;
}

body[data-theme="light"] .top-rhythm {
  border-color: rgba(103, 120, 144, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(244, 248, 242, 0.95)),
    radial-gradient(circle at top, rgba(103, 120, 144, 0.06), transparent 68%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.top-rhythm-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 7px 8px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(111, 140, 255, 0.16), transparent 52%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

body[data-theme="light"] .top-rhythm-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(245, 248, 242, 0.95)),
    radial-gradient(circle at top right, rgba(103, 120, 144, 0.08), transparent 52%);
  border-color: rgba(103, 120, 144, 0.12);
}

.top-rhythm-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-rhythm-label {
  display: none;
}

.top-rhythm-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 3px rgba(111, 140, 255, 0.08);
}

.top-rhythm-card strong {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.top-rhythm-card::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  opacity: 0.9;
}

.top-rhythm-card-start::after {
  background: linear-gradient(90deg, rgba(119, 242, 199, 0.96), rgba(49, 191, 240, 0.3));
}

.top-rhythm-card-end::after {
  background: linear-gradient(90deg, rgba(246, 198, 107, 0.96), rgba(255, 143, 116, 0.3));
}

.top-rhythm-card-clock::after {
  background: linear-gradient(90deg, rgba(111, 140, 255, 0.96), rgba(96, 199, 255, 0.3));
}

.top-rhythm-input {
  width: 108px;
  min-width: 108px;
  min-height: 30px;
  padding: 0 6px;
  padding-right: 26px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 17, 31, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  text-align: center;
  flex: 0 0 auto;
  color-scheme: dark;
}

.top-rhythm-input::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.top-rhythm-input::-webkit-datetime-edit {
  padding: 0;
  color: var(--text);
}

.top-rhythm-input::-webkit-datetime-edit-hour-field,
.top-rhythm-input::-webkit-datetime-edit-minute-field,
.top-rhythm-input::-webkit-datetime-edit-ampm-field,
.top-rhythm-input::-webkit-datetime-edit-text {
  padding: 0;
  color: var(--text);
}

.top-rhythm-input::-webkit-datetime-edit-ampm-field {
  margin-left: 2px;
  text-transform: uppercase;
}

.top-rhythm-input::-webkit-calendar-picker-indicator {
  opacity: 0.84;
  margin: 0;
}

.top-rhythm-clock .badge-time {
  width: auto;
  min-width: 72px;
  justify-content: center;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(7, 17, 31, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}

.top-rhythm-clock strong {
  font-size: 11px;
}

body[data-theme="light"] .top-rhythm-input,
body[data-theme="light"] .top-rhythm-clock .badge-time {
  border-color: rgba(103, 120, 144, 0.12);
  background: rgba(243, 246, 240, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .top-rhythm-input {
  color-scheme: light;
}

body[data-theme="light"] .top-rhythm-label::before {
  box-shadow: 0 0 0 3px rgba(96, 122, 170, 0.08);
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn,
.chip-btn,
.action-dot {
  border-radius: 14px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.btn {
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

body[data-theme="light"] .btn {
  border-color: rgba(103, 120, 144, 0.14);
  background: rgba(253, 253, 250, 0.92);
  box-shadow: 0 8px 18px rgba(79, 95, 121, 0.07);
}

.btn:hover,
.chip-btn:hover,
.action-dot:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn.primary,
.chip-btn.primary {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 14px 28px rgba(111, 140, 255, 0.28);
}

body[data-theme="light"] .btn.primary,
body[data-theme="light"] .chip-btn.primary {
  border: 1px solid var(--button-border);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--button-shadow);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.btn.subtle {
  background: rgba(255, 255, 255, 0.03);
}

.btn:disabled,
.chip-btn:disabled,
.action-dot:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

body[data-theme="light"] .btn:disabled,
body[data-theme="light"] .chip-btn:disabled,
body[data-theme="light"] .action-dot:disabled {
  border-color: rgba(96, 122, 170, 0.16);
  background: rgba(234, 241, 252, 0.96);
  color: rgba(18, 36, 72, 0.68);
}

body[data-theme="light"] .btn.primary:disabled,
body[data-theme="light"] .chip-btn.primary:disabled {
  opacity: 1;
  border: 1px solid rgba(78, 105, 233, 0.22);
  background: linear-gradient(135deg, rgba(198, 216, 255, 0.98), rgba(221, 236, 255, 1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: #3450a5;
  -webkit-text-fill-color: #3450a5;
}

.auth-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-menu {
  position: relative;
  z-index: 3;
}

.profile-trigger {
  position: relative;
  overflow: hidden;
  border-color: rgba(111, 140, 255, 0.14);
  background:
    radial-gradient(circle at 30% 24%, rgba(111, 140, 255, 0.18), transparent 52%),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 22px rgba(6, 12, 24, 0.16);
}

.profile-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 12%, rgba(255, 255, 255, 0.14) 42%, transparent 68%);
  transform: translateX(-140%);
  transition: transform 0.4s ease;
}

.profile-trigger:hover::after {
  transform: translateX(140%);
}

.profile-trigger[aria-expanded="true"] {
  border-color: rgba(111, 140, 255, 0.28);
  background:
    radial-gradient(circle at 30% 24%, rgba(111, 140, 255, 0.24), transparent 52%),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 30px rgba(68, 123, 233, 0.22);
}

body[data-theme="light"] .profile-trigger {
  border-color: rgba(103, 120, 144, 0.14);
  background:
    radial-gradient(circle at 30% 24%, rgba(96, 123, 196, 0.08), transparent 52%),
    rgba(253, 253, 250, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 22px rgba(79, 95, 121, 0.09);
}

body[data-theme="light"] .profile-trigger[aria-expanded="true"] {
  border-color: rgba(96, 123, 196, 0.18);
  background:
    radial-gradient(circle at 30% 24%, rgba(96, 123, 196, 0.1), transparent 52%),
    rgba(255, 255, 252, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 14px 28px rgba(96, 123, 196, 0.12);
}

.profile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: min(260px, calc(100vw - 48px));
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(20, 31, 54, 0.98), rgba(11, 19, 35, 0.98)),
    radial-gradient(circle at top right, rgba(111, 140, 255, 0.16), transparent 38%);
  box-shadow:
    0 22px 44px rgba(3, 8, 18, 0.34),
    0 0 0 1px rgba(111, 140, 255, 0.06);
  display: grid;
  gap: 12px;
  backdrop-filter: blur(20px);
}

.profile-menu-panel::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(18, 28, 48, 0.98);
  transform: rotate(45deg);
}

body[data-theme="light"] .profile-menu-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 247, 255, 0.97)),
    radial-gradient(circle at top right, rgba(96, 122, 170, 0.1), transparent 38%);
  box-shadow:
    0 22px 38px rgba(77, 102, 150, 0.18),
    0 0 0 1px rgba(96, 122, 170, 0.08);
}

body[data-theme="light"] .profile-menu-panel::before {
  background: rgba(255, 255, 255, 0.98);
}

.auth-actions,
.auth-user-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-menu-list {
  display: grid;
  gap: 8px;
  width: 100%;
}

.auth-user-panel[hidden],
.auth-actions[hidden] {
  display: none !important;
}

.profile-menu .auth-user-panel {
  width: 100%;
  display: grid;
  gap: 12px;
  align-items: stretch;
}

.auth-user-meta {
  display: grid;
  gap: 4px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .auth-user-meta {
  border-bottom-color: rgba(96, 122, 170, 0.12);
}

.auth-user-meta strong {
  font-size: 15px;
}

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

.profile-menu-item {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-menu-item:hover {
  background:
    linear-gradient(135deg, rgba(111, 140, 255, 0.16), rgba(96, 199, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
  border-color: rgba(111, 140, 255, 0.18);
}

body[data-theme="light"] .profile-menu-item {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(96, 122, 170, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body[data-theme="light"] .profile-menu-item:hover {
  background:
    linear-gradient(135deg, rgba(210, 224, 255, 0.92), rgba(235, 242, 255, 0.98)),
    rgba(255, 255, 255, 0.98);
  border-color: rgba(78, 105, 233, 0.16);
}

.icon-btn {
  width: 44px;
  min-width: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.icon-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.alert-icon-btn {
  position: relative;
  color: var(--muted);
}

.alert-icon-btn .icon-alarm-on,
.alert-icon-btn .icon-alarm-off {
  display: none;
}

.alert-icon-btn.is-enabled {
  background: rgba(119, 242, 199, 0.12);
  border-color: rgba(119, 242, 199, 0.18);
  color: #b6ffe7;
}

.alert-icon-btn.is-enabled .icon-alarm-on {
  display: block;
}

.alert-icon-btn.is-disabled,
.alert-icon-btn.is-unavailable {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.alert-icon-btn.is-disabled .icon-alarm-off,
.alert-icon-btn.is-blocked .icon-alarm-off,
.alert-icon-btn.is-unavailable .icon-alarm-off {
  display: block;
}

.alert-icon-btn.is-blocked {
  background: var(--danger-soft);
  border-color: rgba(255, 143, 151, 0.18);
  color: #ffd1d5;
}

body[data-theme="light"] .alert-icon-btn.is-enabled {
  color: #107b5e;
}

body[data-theme="light"] .alert-icon-btn.is-disabled,
body[data-theme="light"] .alert-icon-btn.is-unavailable {
  background: rgba(234, 241, 252, 0.92);
  border-color: rgba(96, 122, 170, 0.14);
  color: rgba(18, 36, 72, 0.72);
}

body[data-theme="light"] .alert-icon-btn.is-blocked {
  color: #a34a56;
}

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 320px;
  gap: 20px;
  padding: 20px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar {
  padding: 18px;
  display: grid;
  gap: 18px;
  align-content: start;
  position: sticky;
  top: 20px;
  align-self: start;
}

.right-sidebar {
  padding: 18px;
  display: grid;
  gap: 18px;
  align-content: start;
  position: sticky;
  top: 20px;
  align-self: start;
}

.sidebar-title {
  margin-top: 8px;
  max-width: 11ch;
  font-size: 22px;
  line-height: 1.05;
}

.nav-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nav-item {
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 8px;
  min-height: 88px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.nav-item.active {
  color: white;
  border-color: rgba(111, 140, 255, 0.28);
  background: linear-gradient(135deg, rgba(111, 140, 255, 0.18), rgba(96, 199, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-theme="light"] .nav-item.active {
  color: var(--text);
}

body[data-theme="light"] .nav-item {
  background: rgba(96, 122, 170, 0.04);
  border-color: rgba(96, 122, 170, 0.08);
}

.nav-item span:first-child {
  line-height: 1.2;
}

.nav-item span:last-child {
  color: var(--muted-2);
  font-size: 12px;
}

.focus-score {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(111, 140, 255, 0.22), rgba(119, 242, 199, 0.08));
  border: 1px solid rgba(111, 140, 255, 0.24);
}

.focus-score h3,
.section-title,
.hero-title,
.big-number,
.block-name,
.day-title {
  margin: 0;
  letter-spacing: -0.04em;
}

.focus-score h3,
.section-title,
.hero-title,
.block-name,
.day-title {
  font-family: var(--font-display);
  font-weight: 650;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

.focus-score h3 {
  max-width: 16ch;
  font-size: 16px;
  line-height: 1.22;
}

.score-ring {
  margin-top: 18px;
  height: 180px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(8, 17, 31, 1) 0 44%, transparent 45%),
    conic-gradient(from 220deg, var(--accent) 0 32%, rgba(255, 255, 255, 0.08) 32% 100%);
  position: relative;
  overflow: hidden;
}

body[data-theme="light"] .score-ring {
  background:
    radial-gradient(circle at center, rgba(243, 247, 255, 1) 0 44%, transparent 45%),
    conic-gradient(from 220deg, var(--accent) 0 32%, rgba(96, 122, 170, 0.14) 32% 100%);
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.05), rgba(7, 16, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body[data-theme="light"] .score-ring::after {
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.88), rgba(236, 242, 255, 0.98));
  border-color: rgba(96, 122, 170, 0.1);
}

.score-center {
  position: relative;
  z-index: 1;
  text-align: center;
}

.score-center strong {
  font-size: 34px;
  display: block;
}

.score-center span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.mini-card,
.kpi,
.metric-row,
.schedule-item,
.recent-item,
.quick-action,
.break-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-theme="light"] .mini-card,
body[data-theme="light"] .kpi,
body[data-theme="light"] .metric-row,
body[data-theme="light"] .schedule-item,
body[data-theme="light"] .recent-item,
body[data-theme="light"] .quick-action,
body[data-theme="light"] .break-chip,
body[data-theme="light"] .task-time,
body[data-theme="light"] .timeline-card,
body[data-theme="light"] .subpanel {
  background: rgba(253, 253, 250, 0.9);
  border-color: rgba(103, 120, 144, 0.12);
}

.mini-card {
  padding: 14px;
  border-radius: 18px;
}

.mini-card strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.rhythm-panel {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.metric-row,
.schedule-item,
.recent-item,
.quick-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  min-width: 0;
}

.metric-row strong,
.schedule-item strong,
.recent-item strong {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.metric-row span,
.schedule-item span,
.recent-item span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.time-row {
  cursor: text;
}

.time-input {
  width: 96px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: right;
  outline: none;
}

.time-input::-webkit-calendar-picker-indicator {
  opacity: 0.8;
}

.inline-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(119, 242, 199, 0.12);
  border: 1px solid rgba(119, 242, 199, 0.18);
  color: #b6ffe7;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.inline-alert[data-state="warning"] {
  background: rgba(246, 198, 107, 0.14);
  border-color: rgba(246, 198, 107, 0.22);
  color: #ffe2ad;
}

body[data-theme="light"] .inline-alert {
  color: #116f59;
}

body[data-theme="light"] .inline-alert[data-state="warning"] {
  color: #8a6208;
}

.badge {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(111, 140, 255, 0.18), rgba(96, 199, 255, 0.12));
  color: white;
  font-weight: 800;
}

body[data-theme="light"] .badge {
  border: 1px solid rgba(96, 123, 196, 0.16);
  background: linear-gradient(135deg, rgba(220, 229, 242, 0.98), rgba(205, 220, 235, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 6px 16px rgba(96, 123, 196, 0.08);
  color: #395487;
  -webkit-text-fill-color: #395487;
}

.badge-time {
  min-width: 72px;
  line-height: 1.05;
}

body[data-theme="light"] .schedule-item .badge,
body[data-theme="light"] .recent-item .badge,
body[data-theme="light"] .metric-row .badge {
  background: linear-gradient(135deg, rgba(216, 227, 241, 0.99), rgba(203, 218, 234, 0.99));
  color: #35507f;
  -webkit-text-fill-color: #35507f;
}

.main {
  display: grid;
  gap: 20px;
  align-content: start;
  min-width: 0;
}

.hero {
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 199, 255, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(16, 30, 52, 0.96), rgba(11, 21, 38, 0.96));
}

body[data-theme="light"] .hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 164, 194, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(245, 248, 242, 0.96));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.hero-card,
.subpanel,
.timeline,
.right-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.hero-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  min-height: 330px;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(111, 140, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(16, 28, 50, 0.96), rgba(12, 21, 38, 0.96));
}

body[data-theme="light"] .hero-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 123, 196, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(247, 249, 244, 0.96));
}

.hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.hero-heading {
  min-width: 0;
  flex: 1 1 auto;
}

.hero-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-title {
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin-top: 10px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.hero-title-track {
  --hero-marquee-distance: 0px;
  --hero-marquee-duration: 12s;
  display: flex;
  align-items: center;
  gap: 72px;
  width: 100%;
  min-width: 0;
}

.hero-title-track:not(.is-marquee) .hero-title-clone {
  display: none;
}

.hero-title-track.is-marquee {
  width: max-content;
  animation: hero-title-marquee var(--hero-marquee-duration) linear infinite;
}

.hero-title-text {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(176, 204, 255, 0.92));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 28px rgba(6, 12, 24, 0.18);
}

body[data-theme="light"] .hero-title-text {
  background: linear-gradient(135deg, #23324a, #5d76af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero-title-track.is-marquee .hero-title-text {
  overflow: visible;
  text-overflow: clip;
}

.hero-title-track.is-receiving .hero-title-text {
  animation: hero-title-receive 0.96s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-title-meta {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.hero-next-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero-next-line strong {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--text);
}

.hero-next-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  white-space: nowrap;
  margin-left: auto;
}

@keyframes hero-title-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--hero-marquee-distance)));
  }
}

@keyframes hero-title-receive {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(111, 140, 255, 0));
  }

  34% {
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0 10px 22px rgba(111, 140, 255, 0.22));
  }

  62% {
    transform: translateY(2px) scale(0.995);
    filter: drop-shadow(0 8px 18px rgba(111, 140, 255, 0.16));
  }

  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(111, 140, 255, 0));
  }
}

@keyframes timeline-card-launch {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(111, 140, 255, 0);
  }

  32% {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 26px rgba(111, 140, 255, 0.16);
  }

  66% {
    transform: translateY(1px) scale(0.995);
    box-shadow: 0 12px 18px rgba(111, 140, 255, 0.1);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(111, 140, 255, 0);
  }
}

.status-pill,
.session-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(119, 242, 199, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.status-pill {
  background: rgba(119, 242, 199, 0.12);
  color: #b6ffe7;
  cursor: pointer;
  white-space: nowrap;
}

.status-pill.is-disabled {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.status-pill.is-blocked {
  background: var(--danger-soft);
  border-color: rgba(255, 143, 151, 0.18);
  color: #ffd1d5;
}

.status-pill.is-unavailable {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
}

body[data-theme="light"] .status-pill {
  color: #107b5e;
}

body[data-theme="light"] .status-pill.is-disabled,
body[data-theme="light"] .status-pill.is-unavailable {
  background: rgba(234, 241, 252, 0.92);
  border-color: rgba(96, 122, 170, 0.14);
  color: rgba(18, 36, 72, 0.72);
}

body[data-theme="light"] .status-pill.is-blocked {
  color: #a34a56;
}

.session-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero-body {
  display: grid;
  gap: 20px;
  margin-top: 22px;
  justify-items: center;
}

.hero-live-layout {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  justify-items: center;
  width: 100%;
}

.hero-live-layout::before,
.hero-live-layout::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.hero-live-layout::before {
  width: min(100%, 720px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 12% 42%, rgba(111, 140, 255, 0.62) 0 3px, transparent 4px),
    radial-gradient(circle at 20% 68%, rgba(119, 242, 199, 0.56) 0 3px, transparent 4px),
    radial-gradient(circle at 31% 20%, rgba(96, 199, 255, 0.54) 0 2px, transparent 3px),
    radial-gradient(circle at 79% 18%, rgba(111, 140, 255, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 46%, rgba(96, 199, 255, 0.54) 0 3px, transparent 4px),
    radial-gradient(circle at 76% 76%, rgba(119, 242, 199, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 48% 8%, rgba(246, 198, 107, 0.34) 0 4px, transparent 6px),
    radial-gradient(circle at 52% 92%, rgba(111, 140, 255, 0.28) 0 5px, transparent 8px),
    radial-gradient(circle at 16% 52%, rgba(111, 140, 255, 0.12) 0 12px, transparent 22px),
    radial-gradient(circle at 86% 58%, rgba(96, 199, 255, 0.12) 0 12px, transparent 22px);
  filter: blur(0.2px);
  opacity: 0.7;
  animation: orbit-particle-drift 42s linear infinite;
}

.hero-live-layout::after {
  width: min(100%, 678px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(
      from 24deg,
      transparent 0deg 40deg,
      rgba(111, 140, 255, 0.22) 40deg 88deg,
      transparent 88deg 154deg,
      rgba(96, 199, 255, 0.18) 154deg 212deg,
      transparent 212deg 276deg,
      rgba(119, 242, 199, 0.16) 276deg 324deg,
      transparent 324deg 1turn
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 92px), #000 calc(100% - 88px), #000 calc(100% - 66px), transparent calc(100% - 60px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 92px), #000 calc(100% - 88px), #000 calc(100% - 66px), transparent calc(100% - 60px));
  opacity: 0.28;
  animation: orbit-focus-sweep 22s linear infinite reverse;
}

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

body[data-theme="light"] .hero-live-layout::before {
  background:
    radial-gradient(circle at 12% 42%, rgba(96, 123, 196, 0.58) 0 3px, transparent 4px),
    radial-gradient(circle at 20% 68%, rgba(93, 155, 133, 0.52) 0 3px, transparent 4px),
    radial-gradient(circle at 31% 20%, rgba(122, 164, 194, 0.52) 0 2px, transparent 3px),
    radial-gradient(circle at 79% 18%, rgba(96, 123, 196, 0.48) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 46%, rgba(122, 164, 194, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 76% 76%, rgba(93, 155, 133, 0.48) 0 3px, transparent 4px),
    radial-gradient(circle at 48% 8%, rgba(180, 143, 90, 0.3) 0 4px, transparent 6px),
    radial-gradient(circle at 52% 92%, rgba(96, 123, 196, 0.24) 0 5px, transparent 8px),
    radial-gradient(circle at 16% 52%, rgba(96, 123, 196, 0.12) 0 12px, transparent 22px),
    radial-gradient(circle at 86% 58%, rgba(122, 164, 194, 0.12) 0 12px, transparent 22px);
  opacity: 0.92;
}

body[data-theme="light"] .hero-live-layout::after {
  background:
    conic-gradient(
      from 24deg,
      transparent 0deg 40deg,
      rgba(96, 123, 196, 0.26) 40deg 88deg,
      transparent 88deg 154deg,
      rgba(122, 164, 194, 0.22) 154deg 212deg,
      transparent 212deg 276deg,
      rgba(93, 155, 133, 0.22) 276deg 324deg,
      transparent 324deg 1turn
    );
  opacity: 0.5;
}

.hero-orbit-shell {
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: grid;
  gap: 14px;
  width: min(100%, 620px);
  min-width: 0;
  margin: 0 auto;
  justify-items: center;
}

.hero-orbit-shell::before,
.hero-orbit-shell::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

.hero-orbit-shell::before {
  width: min(100%, 600px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 18%, rgba(111, 140, 255, 0.24), transparent 40%),
    radial-gradient(circle at 18% 62%, rgba(119, 242, 199, 0.18), transparent 34%),
    radial-gradient(circle at 82% 64%, rgba(96, 199, 255, 0.18), transparent 30%);
  filter: blur(42px);
  opacity: 0.86;
  box-shadow: 0 0 80px rgba(96, 199, 255, 0.08);
  animation: orbit-aura-drift 18s ease-in-out infinite;
}

.hero-orbit-shell::after {
  width: min(100%, 588px);
  aspect-ratio: 1;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.1) 0deg 11deg,
    transparent 11deg 24deg
  );
  opacity: 0.36;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 34px), #000 calc(100% - 30px), transparent calc(100% - 8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 34px), #000 calc(100% - 30px), transparent calc(100% - 8px));
  animation: orbit-aura-rotate 34s linear infinite;
}

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

body[data-theme="light"] .hero-orbit-shell::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(96, 123, 196, 0.18), transparent 40%),
    radial-gradient(circle at 18% 62%, rgba(93, 155, 133, 0.14), transparent 34%),
    radial-gradient(circle at 82% 64%, rgba(122, 164, 194, 0.14), transparent 30%);
  opacity: 0.66;
}

body[data-theme="light"] .hero-orbit-shell::after {
  background: repeating-conic-gradient(
    from 0deg,
    rgba(103, 120, 144, 0.16) 0deg 11deg,
    transparent 11deg 24deg
  );
  opacity: 0.28;
}

.hero-overflow-alert {
  width: min(100%, 1060px);
}

.hero-sound-shell {
  min-width: 0;
  width: 100%;
  display: grid;
  gap: 14px;
  align-self: start;
  margin-top: 0;
}

.hero-sound-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sound-type-btn {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.01em;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}

.sound-type-btn.is-active {
  border: none;
  background: linear-gradient(135deg, rgba(111, 140, 255, 0.92), rgba(49, 191, 240, 0.92));
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 16px 28px rgba(68, 123, 233, 0.22);
}

body[data-theme="light"] .sound-type-btn {
  border-color: rgba(103, 120, 144, 0.12);
  background: rgba(253, 253, 250, 0.92);
  color: #2d3f61;
  -webkit-text-fill-color: #2d3f61;
}

body[data-theme="light"] .sound-type-btn.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow:
    0 16px 28px color-mix(in srgb, var(--primary) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero-meditation-stage {
  position: relative;
  min-height: 214px;
  padding: 20px 20px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at top, rgba(111, 140, 255, 0.16), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-meditation-stage::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 0;
}

.meditation-aura {
  position: absolute;
  inset: 28px 34px 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(111, 140, 255, 0.26), rgba(111, 140, 255, 0.08) 54%, transparent 72%);
  filter: blur(3px);
  opacity: 0.72;
  z-index: 0;
}

.meditation-pulse {
  position: absolute;
  inset: 26px 38px 44px;
  border: 1px solid rgba(111, 140, 255, 0.16);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.88);
  animation: meditation-pulse 3.8s ease-out infinite paused;
}

.meditation-pulse-2 {
  animation-delay: 1.2s;
}

.hero-meditation-figure {
  position: relative;
  width: 162px;
  height: 158px;
  margin: 14px auto 0;
  z-index: 1;
  animation: meditation-breathe 6.4s ease-in-out infinite;
}

.meditation-head {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f4c8ab, #dfa687);
  transform: translateX(-50%);
  box-shadow: inset 0 -2px 0 rgba(138, 78, 48, 0.1);
}

.meditation-hair {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 56px;
  height: 30px;
  border-radius: 28px 28px 18px 18px;
  background: linear-gradient(180deg, #1f2637, #131a28);
  transform: translateX(-50%);
}

.meditation-headband {
  position: absolute;
  left: 50%;
  top: -2px;
  width: 72px;
  height: 36px;
  border: 4px solid rgba(221, 232, 255, 0.78);
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
  transform: translateX(-50%);
}

.meditation-earcup {
  position: absolute;
  top: 22px;
  width: 16px;
  height: 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ebf1ff, #b8c8e9);
  box-shadow: inset 0 0 0 1px rgba(19, 26, 40, 0.16);
}

.meditation-earcup-left {
  left: 43px;
}

.meditation-earcup-right {
  right: 43px;
}

.meditation-neck {
  position: absolute;
  left: 50%;
  top: 50px;
  width: 16px;
  height: 16px;
  border-radius: 10px;
  background: #e5b190;
  transform: translateX(-50%);
}

.meditation-torso {
  position: absolute;
  left: 50%;
  top: 60px;
  width: 72px;
  height: 58px;
  border-radius: 28px 28px 22px 22px;
  background: linear-gradient(180deg, var(--hero-figure-start), var(--hero-figure-end));
  transform: translateX(-50%);
  box-shadow:
    0 16px 28px color-mix(in srgb, var(--primary) 28%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.meditation-arm,
.meditation-leg {
  position: absolute;
  background: linear-gradient(180deg, #f1c1a0, #ddaa89);
  box-shadow: inset 0 -1px 0 rgba(138, 78, 48, 0.08);
}

.meditation-arm {
  top: 84px;
  width: 52px;
  height: 16px;
  border-radius: 999px;
}

.meditation-arm-left {
  left: 24px;
  transform: rotate(28deg);
}

.meditation-arm-right {
  right: 24px;
  transform: rotate(-28deg);
}

.meditation-hand {
  position: absolute;
  top: 102px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #efbea0;
}

.meditation-hand-left {
  left: 48px;
}

.meditation-hand-right {
  right: 48px;
}

.meditation-leg {
  bottom: 28px;
  width: 88px;
  height: 24px;
  border-radius: 999px;
}

.meditation-leg-left {
  left: 18px;
  transform: rotate(17deg);
}

.meditation-leg-right {
  right: 18px;
  transform: rotate(-17deg);
}

.meditation-seat {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 126px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(111, 140, 255, 0.24));
  transform: translateX(-50%);
  box-shadow: 0 16px 28px rgba(7, 14, 28, 0.18);
}

.hero-player-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(111, 140, 255, 0.18), transparent 36%);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 36px rgba(7, 14, 28, 0.18);
}

.hero-player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.1) 34%, transparent 56%);
  transform: translateX(-140%);
  pointer-events: none;
}

.hero-sound-shell.is-playing .hero-player-card::before {
  animation: player-sheen 3.4s ease-in-out infinite;
}

.hero-player-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-player-head strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.3;
}

.player-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-player-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
}

.hero-player-eq {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 34px;
}

.eq-bar {
  flex: 1;
  height: 28%;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(111, 140, 255, 0.9), rgba(49, 191, 240, 0.72));
  opacity: 0.42;
  transform-origin: center bottom;
}

.hero-sound-shell.is-playing .eq-bar {
  opacity: 0.96;
  animation: eq-bounce 0.92s ease-in-out infinite;
}

.eq-bar-2 {
  animation-duration: 0.76s;
  animation-delay: -0.18s;
}

.eq-bar-3 {
  animation-duration: 1.04s;
  animation-delay: -0.32s;
}

.eq-bar-4 {
  animation-duration: 0.84s;
  animation-delay: -0.12s;
}

.eq-bar-5 {
  animation-duration: 1.12s;
  animation-delay: -0.26s;
}

.hero-player-progress {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#heroMusicProgressFill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(111, 140, 255, 0.96), rgba(49, 191, 240, 0.96));
  box-shadow: 0 0 18px rgba(111, 140, 255, 0.26);
  transition: width 0.3s linear;
}

.hero-player-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.player-btn {
  position: relative;
  min-width: 0;
  padding: 0 10px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(7, 14, 28, 0.08);
}

.player-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.16) 42%, transparent 66%);
  transform: translateX(-140%);
  transition: transform 0.44s ease;
}

.player-btn:hover::after {
  transform: translateX(140%);
}

.player-btn:hover {
  box-shadow: 0 16px 26px rgba(7, 14, 28, 0.14);
}

.player-btn-main {
  min-width: 0;
}

.player-btn-mini {
  padding: 0;
}

.hero-player-volume {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.hero-volume-meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#heroMusicVolumeFill {
  display: block;
  height: 100%;
  width: 55%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(119, 242, 199, 0.96), rgba(49, 191, 240, 0.9));
  box-shadow: 0 0 18px rgba(119, 242, 199, 0.24);
  transition: width 0.22s ease, opacity 0.22s ease;
}

.hero-youtube-player {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-sound-shell.is-playing .meditation-pulse {
  animation-play-state: running;
  opacity: 1;
}

.hero-sound-shell.is-playing .meditation-aura {
  opacity: 0.92;
}

.hero-sound-shell.is-playing .hero-meditation-figure {
  animation-duration: 4.8s;
}

.hero-sound-shell.is-muted .meditation-aura,
.hero-sound-shell.is-muted .eq-bar {
  opacity: 0.26;
}

body[data-theme="light"] .hero-meditation-stage,
body[data-theme="light"] .hero-player-card {
  border-color: rgba(103, 120, 144, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.96), rgba(242, 246, 240, 0.93)),
    radial-gradient(circle at top right, rgba(103, 120, 144, 0.08), transparent 38%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 32px rgba(79, 95, 121, 0.1);
}

body[data-theme="light"] .hero-meditation-stage::after,
body[data-theme="light"] .hero-player-progress,
body[data-theme="light"] .hero-volume-meter,
body[data-theme="light"] .player-type-pill {
  background: rgba(241, 245, 239, 0.94);
  border-color: rgba(103, 120, 144, 0.12);
}

body[data-theme="light"] .hero-player-head strong,
body[data-theme="light"] .hero-player-status {
  color: #21324b;
}

body[data-theme="light"] .player-type-pill {
  color: #3d5987;
  -webkit-text-fill-color: #3d5987;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body[data-theme="light"] .meditation-headband,
body[data-theme="light"] .meditation-earcup {
  box-shadow: inset 0 0 0 1px rgba(77, 102, 150, 0.12);
}

@keyframes meditation-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.01);
  }
}

@keyframes meditation-pulse {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }

  28% {
    opacity: 0.56;
  }

  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

@keyframes eq-bounce {
  0%,
  100% {
    transform: scaleY(0.4);
  }

  50% {
    transform: scaleY(1);
  }
}

@keyframes player-sheen {
  from {
    transform: translateX(-140%);
  }

  to {
    transform: translateX(140%);
  }
}

@keyframes orbit-aura-drift {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.96);
  }

  50% {
    transform: translate(calc(-50% + 10px), calc(-50% - 14px)) rotate(12deg) scale(1.04);
  }

  100% {
    transform: translate(calc(-50% - 8px), calc(-50% + 10px)) rotate(-10deg) scale(0.98);
  }
}

@keyframes orbit-aura-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}

@keyframes orbit-particle-drift {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.98);
    opacity: 0.48;
  }

  50% {
    transform: translate(-50%, -50%) rotate(12deg) scale(1.03);
    opacity: 0.82;
  }

  100% {
    transform: translate(-50%, -50%) rotate(1turn) scale(0.99);
    opacity: 0.56;
  }
}

@keyframes orbit-focus-sweep {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.98);
    opacity: 0.18;
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.02);
    opacity: 0.38;
  }

  100% {
    transform: translate(-50%, -50%) rotate(1turn) scale(0.98);
    opacity: 0.18;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-meditation-figure,
  .meditation-pulse,
  .eq-bar,
  .hero-player-card::before,
  .hero-live-layout::before,
  .hero-live-layout::after,
  .hero-orbit-shell::before,
  .hero-orbit-shell::after {
    animation: none !important;
  }
}

.hero-orbit {
  --orbit-progress: 0deg;
  --orbit-day-progress: 0deg;
  --orbit-accent: var(--primary);
  --orbit-core-size: clamp(228px, 25vw, 296px);
  --orbit-progress-size: clamp(292px, 33vw, 388px);
  --orbit-day-size: clamp(322px, 37vw, 418px);
  position: relative;
  width: min(100%, 560px);
  min-height: calc(var(--orbit-day-size) + 10px);
  margin: 0 auto;
  overflow: visible;
  box-sizing: border-box;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-orbit::before {
  width: var(--orbit-progress-size);
  aspect-ratio: 1;
  background: conic-gradient(
    from 220deg,
    var(--orbit-accent) 0 var(--orbit-progress),
    rgba(255, 255, 255, 0.08) var(--orbit-progress) 1turn
  );
  opacity: 0.95;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 17px), #000 calc(100% - 15px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 17px), #000 calc(100% - 15px));
}

.hero-orbit::after {
  width: var(--orbit-day-size);
  aspect-ratio: 1;
  background: conic-gradient(
    from 220deg,
    rgba(111, 140, 255, 0.48) 0 var(--orbit-day-progress),
    rgba(255, 255, 255, 0.05) var(--orbit-day-progress) 1turn
  );
  opacity: 0.82;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 11px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 11px));
}

body[data-theme="light"] .hero-orbit::before {
  background: conic-gradient(
    from 220deg,
    var(--orbit-accent) 0 var(--orbit-progress),
    rgba(96, 122, 170, 0.16) var(--orbit-progress) 1turn
  );
}

body[data-theme="light"] .hero-orbit::after {
  background: conic-gradient(
    from 220deg,
    rgba(103, 120, 144, 0.28) 0 var(--orbit-day-progress),
    rgba(103, 120, 144, 0.08) var(--orbit-day-progress) 1turn
  );
}

.hero-clock {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: var(--orbit-core-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  padding: 14px;
  background:
    radial-gradient(circle at 20% 20%, rgba(111, 140, 255, 0.16), transparent 44%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 50px rgba(6, 12, 24, 0.22);
  overflow: hidden;
}

body[data-theme="light"] .hero-clock {
  background:
    radial-gradient(circle at 20% 20%, rgba(96, 123, 196, 0.08), transparent 44%),
    rgba(253, 253, 250, 0.92);
  border-color: rgba(103, 120, 144, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 36px rgba(79, 95, 121, 0.1);
}

.hero-clock-inner {
  width: 100%;
  height: 100%;
  min-width: 0;
  border-radius: 50%;
  padding: 30px 24px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06), rgba(8, 17, 31, 0.98)),
    linear-gradient(180deg, rgba(12, 22, 41, 0.92), rgba(8, 16, 31, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

body[data-theme="light"] .hero-clock-inner {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 252, 0.94), rgba(240, 245, 239, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(243, 247, 241, 0.98));
  border-color: rgba(103, 120, 144, 0.1);
}

.big-number {
  margin-top: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: 0.08em;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

.progress {
  margin-top: 16px;
}

.bar {
  height: 12px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

body[data-theme="light"] .bar {
  background: rgba(103, 120, 144, 0.08);
}

.bar > span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hero-note {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.hero-note-centered {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.hero-progress {
  width: 100%;
  max-width: 440px;
  min-width: 0;
  margin: 0 auto;
}

.hero-center-btn {
  min-width: 0;
  min-height: 50px;
  width: 100%;
  padding-inline: 14px;
  border-radius: 16px;
  justify-content: center;
  box-shadow:
    0 16px 28px rgba(7, 14, 28, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body[data-theme="light"] .hero-center-btn {
  box-shadow:
    0 14px 24px rgba(96, 123, 196, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.chip-btn {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

body[data-theme="light"] .chip-btn {
  border-color: rgba(103, 120, 144, 0.12);
  background: rgba(253, 253, 250, 0.88);
}

.hero-center-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 268px);
}

.hero-center-controls .chip-btn {
  width: 100%;
}

.orbit-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 50px;
  width: 100%;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  transform: none;
  border-color: rgba(111, 140, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(10, 18, 33, 0.78);
  box-shadow:
    0 12px 24px rgba(5, 10, 22, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.orbit-button:disabled {
  transform: none;
}

body[data-theme="light"] .orbit-button {
  border-color: rgba(103, 120, 144, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(243, 247, 241, 0.96)),
    rgba(255, 255, 252, 0.92);
  box-shadow:
    0 10px 22px rgba(79, 95, 121, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.orbit-button:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 140, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(111, 140, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(12, 22, 41, 0.9);
}

body[data-theme="light"] .orbit-button:hover {
  border-color: rgba(96, 123, 196, 0.18);
  background:
    linear-gradient(180deg, rgba(234, 240, 246, 0.98), rgba(248, 250, 246, 0.98)),
    rgba(255, 255, 252, 0.96);
}

.orbit-button:active {
  transform: none;
}

.hero-meta {
  display: grid;
  gap: 6px;
}

.hero-meta strong {
  color: var(--text);
}

.hero-clock-meta {
  width: 100%;
  max-width: 210px;
  min-width: 0;
  justify-items: center;
}

.hero-clock-meta span {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-secondary-actions {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-secondary-btn {
  min-width: 108px;
  justify-content: center;
}

.hero-rhythm-panel {
  padding: 18px;
  min-width: 0;
  align-self: stretch;
  background:
    radial-gradient(circle at 100% 0%, rgba(119, 242, 199, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.03);
}

body[data-theme="light"] .hero-rhythm-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(119, 242, 199, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.82);
}

.hero-rhythm-stack {
  gap: 10px;
}

.hero-rhythm-panel .metric-row {
  background: rgba(255, 255, 255, 0.03);
}

body[data-theme="light"] .hero-rhythm-panel .metric-row {
  background: rgba(96, 122, 170, 0.05);
}

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.subpanel,
.right-card {
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}

.bottom-wide {
  grid-column: 1 / -1;
}

.subpanel {
  min-height: 156px;
}

.subpanel-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.subpanel-title {
  margin-top: 8px;
  font-size: 19px;
}

.sidebar-planner {
  min-height: 0;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 140, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

body[data-theme="light"] .sidebar-planner {
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 140, 255, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.82);
}

.sidebar-planner .subpanel-top {
  align-items: flex-start;
}

.sidebar-planner .btn {
  min-width: 0;
  white-space: nowrap;
}

.sidebar-planner .kpi-grid {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.sidebar-planner .kpi {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
}

body[data-theme="light"] .sidebar-planner .kpi {
  background: rgba(96, 122, 170, 0.05);
}

.sidebar-planner .kpi strong {
  margin-top: 6px;
}

.kpi-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  padding: 14px;
  border-radius: 18px;
}

.kpi strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

.action-card {
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.timeline {
  padding: 26px;
  border-color: rgba(122, 148, 198, 0.16);
  background:
    radial-gradient(circle at top right, rgba(90, 124, 216, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 26, 46, 0.98), rgba(10, 19, 34, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 28px 60px rgba(2, 8, 19, 0.26);
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.timeline-shell {
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(122, 148, 198, 0.12);
  background:
    radial-gradient(circle at top right, rgba(72, 103, 182, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(30, 44, 69, 0.96), rgba(18, 29, 48, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 48px rgba(4, 9, 19, 0.22);
}

.timeline-shell-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(40, 55, 82, 0.78), rgba(34, 48, 74, 0.5));
}

.timeline-shell-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  opacity: 0.95;
}

.timeline-shell-dot-red {
  background: #f18a90;
}

.timeline-shell-dot-amber {
  background: #e4bb6c;
}

.timeline-shell-dot-teal {
  background: #65d1bc;
}

.timeline-shell-body {
  display: grid;
  gap: 18px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(20, 31, 52, 0.8), rgba(16, 26, 44, 0.92)),
    radial-gradient(circle at right center, rgba(85, 127, 255, 0.08), transparent 38%);
}

.timeline-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 18px;
  border-radius: 16px;
  box-shadow:
    0 16px 32px rgba(111, 140, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.timeline-add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 18px;
  font-weight: 700;
}

.timeline-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.timeline-toggle-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.timeline-toggle-btn:hover {
  color: var(--text);
}

.timeline-toggle-btn.is-active {
  background: rgba(111, 140, 255, 0.18);
  color: #eef3ff;
  box-shadow: inset 0 0 0 1px rgba(111, 140, 255, 0.22);
}

.timeline-sort-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-sort-select {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
}

body[data-theme="light"] .timeline-toolbar-group,
body[data-theme="light"] .timeline-sort-field {
  border-color: rgba(96, 122, 170, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

body[data-theme="light"] .timeline-toggle-btn.is-active {
  color: #3456d7;
  background: rgba(96, 123, 196, 0.14);
}

body[data-theme="light"] .timeline-sort-select {
  background: rgba(239, 244, 255, 0.96);
}

.day-title {
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 16ch;
}

.current-block-panel {
  padding: 18px 20px;
  border-radius: 28px;
  border: 1px solid rgba(111, 140, 255, 0.16);
  background:
    radial-gradient(circle at top right, rgba(111, 140, 255, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(45, 63, 102, 0.7), rgba(27, 40, 64, 0.88));
  box-shadow: 0 22px 40px rgba(111, 140, 255, 0.12);
}

.current-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.current-block-title {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.02;
}

.current-block-note {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(111, 140, 255, 0.14);
  color: #dce5ff;
  font-size: 12px;
  font-weight: 700;
}

.current-block-card-host .timeline-item {
  position: static;
}

.current-block-card-host .timeline-card {
  box-shadow: 0 18px 30px rgba(111, 140, 255, 0.14);
}

body[data-theme="light"] .current-block-panel {
  border-color: rgba(96, 122, 170, 0.14);
  background:
    radial-gradient(circle at top right, rgba(96, 123, 196, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.94));
  box-shadow: 0 18px 34px rgba(96, 123, 196, 0.12);
}

body[data-theme="light"] .current-block-note {
  color: #3456d7;
  background: rgba(96, 123, 196, 0.12);
}

.break-panel {
  padding: 18px 20px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(32, 46, 71, 0.72), rgba(23, 35, 55, 0.82));
}

.break-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.break-quote {
  max-width: 62%;
  color: var(--muted);
  line-height: 1.6;
  text-align: right;
}

.break-stack {
  display: grid;
  gap: 10px;
}

.break-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border-radius: 18px;
}

.break-chip strong {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.break-chip-time {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(246, 198, 107, 0.14);
  color: #ffe2ad;
  font-size: 12px;
  font-weight: 700;
}

body[data-theme="light"] .break-chip-time {
  color: #996d0d;
}

.break-chip-text {
  color: var(--muted);
  line-height: 1.5;
}

.timeline-list {
  display: grid;
  gap: 18px;
}

.timeline-list[data-view="grid"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-item {
  position: relative;
}

.timeline-item.is-dragging {
  opacity: 0.42;
}

.timeline-item.drag-target .timeline-card {
  border-color: rgba(111, 140, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(111, 140, 255, 0.24);
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at right center, rgba(106, 144, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(36, 50, 76, 0.92), rgba(28, 41, 64, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(4, 9, 19, 0.16);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.timeline-card:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 150, 221, 0.22);
}

.timeline-card.is-active {
  box-shadow:
    0 18px 34px rgba(111, 140, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(circle at right center, rgba(106, 144, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(54, 72, 110, 0.96), rgba(33, 47, 73, 0.96));
}

.timeline-card.is-launching {
  animation: timeline-card-launch 0.96s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-card.is-complete {
  opacity: 0.85;
}

.timeline-list[data-view="grid"] .timeline-card {
  grid-template-columns: 1fr;
}

.timeline-list[data-view="grid"] .task-time {
  text-align: left;
}

.timeline-list[data-view="grid"] .task-actions {
  justify-content: flex-start;
}

.task-time {
  display: grid;
  gap: 4px;
  align-content: center;
  text-align: left;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.task-time strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.task-time span {
  font-size: 12px;
}

.task-time span,
.muted {
  color: var(--muted);
}

.task-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.task-info small {
  display: inline-block;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9cb2d3;
  font-size: 12px;
  font-weight: 700;
}

.block-name {
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.task-meta {
  margin-top: 4px;
  color: #dbe6fb;
  font-weight: 600;
  font-size: 13px;
  max-width: 30ch;
}

.task-flight-ghost {
  --task-flight-accent: var(--primary);
  position: fixed;
  z-index: 160;
  pointer-events: none;
  display: grid;
  gap: 6px;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--task-flight-accent) 36%, rgba(255, 255, 255, 0.14));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--task-flight-accent) 22%, transparent), transparent 56%),
    linear-gradient(180deg, rgba(12, 22, 39, 0.96), rgba(10, 18, 33, 0.88));
  box-shadow:
    0 18px 42px rgba(3, 9, 20, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 36px color-mix(in srgb, var(--task-flight-accent) 24%, transparent);
  backdrop-filter: blur(16px);
  transform-origin: top left;
}

.task-flight-ghost small {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 700;
  color: color-mix(in srgb, var(--task-flight-accent) 70%, white);
}

.task-flight-ghost strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #f2f7ff;
}

body[data-theme="light"] .task-flight-ghost {
  border-color: color-mix(in srgb, var(--task-flight-accent) 24%, rgba(96, 122, 170, 0.18));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--task-flight-accent) 18%, transparent), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.94));
  box-shadow:
    0 20px 42px rgba(63, 89, 137, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.52),
    0 0 32px color-mix(in srgb, var(--task-flight-accent) 14%, transparent);
}

body[data-theme="light"] .task-flight-ghost strong {
  color: #17284b;
}

.timeline-description {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  overflow: hidden;
}

.timeline-description > :first-child {
  margin-top: 0;
}

.timeline-description > :last-child {
  margin-bottom: 0;
}

.timeline-description p,
.timeline-description ul,
.timeline-description ol,
.timeline-description blockquote,
.timeline-description h3,
.timeline-description h4 {
  margin: 0 0 10px;
}

.timeline-description ul,
.timeline-description ol {
  padding-left: 18px;
}

.timeline-description blockquote {
  padding-left: 12px;
  border-left: 2px solid rgba(111, 140, 255, 0.34);
  color: var(--muted);
}

.timeline-description h3,
.timeline-description h4 {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.timeline-description code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(111, 140, 255, 0.14);
  font-size: 12px;
}

body[data-theme="light"] .timeline-description {
  border-color: rgba(96, 122, 170, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.task-actions .view-btn {
  color: #9ddcff;
  border-color: rgba(96, 199, 255, 0.2);
  background: rgba(96, 199, 255, 0.1);
}

.task-actions .edit-btn {
  color: #9fc0ff;
  border-color: rgba(111, 140, 255, 0.2);
  background: rgba(111, 140, 255, 0.1);
}

.task-actions .duplicate-btn {
  color: #b5f1d5;
  border-color: rgba(119, 242, 199, 0.18);
  background: rgba(119, 242, 199, 0.1);
}

.task-actions .drag-btn {
  color: #ffe2ad;
  border-color: rgba(246, 198, 107, 0.18);
  background: rgba(246, 198, 107, 0.1);
  cursor: grab;
}

.task-actions .drag-btn:active {
  cursor: grabbing;
}

.task-actions .delete-btn {
  color: #ffb0ba;
  border-color: rgba(255, 107, 107, 0.2);
  background: rgba(255, 107, 107, 0.1);
}

.task-actions .view-btn.is-active {
  box-shadow: 0 0 0 1px rgba(96, 199, 255, 0.24);
}

body[data-theme="light"] .task-actions .edit-btn {
  color: #3f5ec3;
  border-color: rgba(78, 105, 233, 0.18);
  background: rgba(214, 226, 255, 0.96);
}

body[data-theme="light"] .task-actions .view-btn {
  color: #15638b;
  border-color: rgba(96, 199, 255, 0.18);
  background: rgba(217, 243, 255, 0.96);
}

body[data-theme="light"] .task-actions .duplicate-btn {
  color: #117b5f;
  border-color: rgba(119, 242, 199, 0.18);
  background: rgba(220, 251, 239, 0.96);
}

body[data-theme="light"] .task-actions .drag-btn {
  color: #996d0d;
  border-color: rgba(246, 198, 107, 0.2);
  background: rgba(255, 243, 214, 0.98);
}

body[data-theme="light"] .task-actions .delete-btn {
  color: #b23548;
  border-color: rgba(255, 107, 107, 0.18);
  background: rgba(255, 232, 236, 0.98);
}

.tag {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #afc0da;
}

.timeline-status {
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.tag.is-done {
  background: rgba(119, 242, 199, 0.12);
  border-color: rgba(119, 242, 199, 0.18);
  color: #b6ffe7;
}

.tag.is-skipped {
  background: rgba(246, 198, 107, 0.12);
  border-color: rgba(246, 198, 107, 0.18);
  color: #ffe2ad;
}

.tag.is-active {
  background: rgba(111, 140, 255, 0.16);
  border-color: rgba(111, 140, 255, 0.22);
  color: #d9e3ff;
}

.tag.is-passed {
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme="light"] .tag.is-done {
  color: #117b5f;
}

body[data-theme="light"] .tag.is-skipped {
  color: #996d0d;
}

body[data-theme="light"] .tag.is-active {
  color: #3456d7;
}

.action-dot {
  min-width: 64px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  color: #a3b6d3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.action-label {
  line-height: 1;
}

.action-dot svg {
  display: none;
}

body[data-theme="light"] .timeline {
  border-color: rgba(96, 122, 170, 0.16);
  background:
    radial-gradient(circle at top right, rgba(96, 123, 196, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 24px 48px rgba(96, 123, 196, 0.12);
}

body[data-theme="light"] .timeline-shell {
  border-color: rgba(96, 122, 170, 0.12);
  background:
    radial-gradient(circle at top right, rgba(96, 123, 196, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(245, 248, 255, 0.98), rgba(236, 242, 252, 0.98));
}

body[data-theme="light"] .timeline-shell-top {
  border-bottom-color: rgba(96, 122, 170, 0.12);
  background: linear-gradient(180deg, rgba(237, 243, 253, 0.98), rgba(231, 238, 249, 0.88));
}

body[data-theme="light"] .timeline-shell-body {
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(239, 244, 252, 0.98)),
    radial-gradient(circle at right center, rgba(96, 123, 196, 0.08), transparent 38%);
}

body[data-theme="light"] .timeline-card,
body[data-theme="light"] .task-time {
  background: transparent;
}

body[data-theme="light"] .timeline-card {
  border-color: rgba(96, 122, 170, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 14px 30px rgba(96, 123, 196, 0.12);
}

body[data-theme="light"] .task-info small {
  color: #58709b;
}

body[data-theme="light"] .task-meta {
  color: #385170;
}

body[data-theme="light"] .tag {
  color: #5a708f;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(96, 122, 170, 0.12);
}

.section-title {
  font-size: 17px;
  line-height: 1.08;
  margin-top: 8px;
}

.review-progress strong {
  display: block;
  font-size: 15px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 364px;
}

.insight-card .stack {
  margin-top: 0;
}

.review-stack {
  flex: 1 1 auto;
  align-content: start;
}

.history-stack {
  flex: 1 1 auto;
  align-content: start;
  min-height: 0;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}

.history-stack::-webkit-scrollbar {
  width: 6px;
}

.history-stack::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

body[data-theme="light"] .history-stack::-webkit-scrollbar-thumb {
  background: rgba(96, 122, 170, 0.24);
}

.review-score-inline {
  margin-left: 6px;
  color: var(--text);
}

.progress-note {
  margin-top: 10px;
  font-size: 13px;
}

.history-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  line-height: 1.6;
}

.history-stack .recent-item,
.history-stack .history-item {
  min-height: 78px;
}

.quick-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.quick-action {
  width: 100%;
  justify-content: flex-start;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.quick-action i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary-2);
  font-style: normal;
  font-weight: 900;
  flex: 0 0 auto;
}

.overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 6, 16, 0.64);
  backdrop-filter: blur(10px);
}

.composer-dialog,
.auth-dialog,
.task-editor-dialog {
  width: min(680px, 100%);
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
}

.auth-dialog {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(var(--surface-rgb), 0.98), rgba(var(--surface-rgb), 0.94)),
    linear-gradient(180deg, var(--panel-3), var(--panel-2));
  box-shadow: var(--surface-shadow);
}

.task-editor-dialog {
  width: min(860px, 100%);
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.composer-form {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.task-editor-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

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

.form-field-wide {
  grid-column: span 3;
  position: relative;
}

.composer-form input,
.composer-form select,
.task-editor-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
}

.auth-dialog .composer-form input,
.auth-dialog .composer-form select {
  background: rgba(var(--surface-rgb), 0.88);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.auth-dialog .dialog-head,
.auth-dialog .auth-status {
  color: var(--text);
}

.composer-form input:focus,
.composer-form select:focus,
.task-editor-form input:focus,
.time-input:focus {
  box-shadow: 0 0 0 3px rgba(111, 140, 255, 0.18);
}

.task-suggestion-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(7, 16, 29, 0.94);
  overflow: hidden;
  box-shadow: 0 24px 40px rgba(4, 10, 18, 0.26);
}

.task-suggestion-head {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-suggestion-list {
  display: grid;
  max-height: 240px;
  overflow: auto;
}

.task-suggestion-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.task-suggestion-item:last-child {
  border-bottom: 0;
}

.task-suggestion-item:hover {
  background: rgba(111, 140, 255, 0.12);
}

.task-suggestion-item strong {
  color: #eef3ff;
}

.task-suggestion-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.task-suggestion-copy strong,
.task-suggestion-copy small,
.task-suggestion-tag {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-suggestion-copy small {
  color: var(--muted);
}

.task-suggestion-tag {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(96, 199, 255, 0.12);
  color: #b9ebff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.composer-actions {
  grid-column: span 3;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.composer-actions .btn,
.auth-actions-row .btn {
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.composer-actions .btn.primary,
.auth-actions-row .btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  -webkit-text-fill-color: #fff;
}

body[data-theme="light"] .composer-actions .btn.primary,
body[data-theme="light"] .auth-actions-row .btn.primary {
  border: 1px solid var(--button-border);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--button-shadow);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

body[data-theme="light"] .task-suggestion-panel {
  border-color: rgba(96, 122, 170, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 36px rgba(96, 123, 196, 0.14);
}

body[data-theme="light"] .task-suggestion-head {
  border-bottom-color: rgba(96, 122, 170, 0.12);
}

body[data-theme="light"] .task-suggestion-item {
  border-bottom-color: rgba(96, 122, 170, 0.08);
  color: #24324a;
}

body[data-theme="light"] .task-suggestion-item strong {
  color: #1d2a40;
}

body[data-theme="light"] .task-suggestion-item:hover {
  background: rgba(96, 123, 196, 0.08);
}

body[data-theme="light"] .task-suggestion-tag {
  background: rgba(96, 199, 255, 0.12);
  color: #15638b;
}

.preset-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-status {
  grid-column: span 3;
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.6;
}

.auth-status.is-success {
  background: rgba(119, 242, 199, 0.12);
  border-color: rgba(119, 242, 199, 0.18);
  color: #b6ffe7;
}

.auth-status.is-error {
  background: var(--danger-soft);
  border-color: rgba(255, 143, 151, 0.18);
  color: #ffd1d5;
}

.task-editor-sheet {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(111, 140, 255, 0.16), transparent 44%);
}

.task-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-tool {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.task-editor-surface {
  min-height: 280px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 17, 31, 0.42);
  color: var(--text);
  line-height: 1.75;
  outline: none;
  overflow: auto;
}

.task-editor-surface:empty::before {
  content: attr(data-placeholder);
  color: var(--muted-2);
}

.task-editor-surface > :first-child {
  margin-top: 0;
}

.task-editor-surface > :last-child {
  margin-bottom: 0;
}

.task-editor-surface p,
.task-editor-surface ul,
.task-editor-surface ol,
.task-editor-surface blockquote,
.task-editor-surface h3,
.task-editor-surface h4,
.task-editor-surface .todo-list {
  margin: 0 0 12px;
}

.task-editor-surface ul,
.task-editor-surface ol {
  padding-left: 20px;
}

.task-editor-surface .todo-list,
.timeline-description .todo-list {
  list-style: none;
  padding-left: 0;
}

.task-editor-surface .todo-list li,
.timeline-description .todo-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 36px;
}

.task-editor-surface .todo-list li::before,
.timeline-description .todo-list li::before {
  content: "○";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.1;
}

.task-editor-surface .todo-list li[data-checked="true"]::before,
.timeline-description .todo-list li[data-checked="true"]::before {
  content: "✓";
  font-weight: 800;
  color: var(--success, var(--primary));
}

.task-editor-surface .todo-list li[data-checked="true"],
.timeline-description .todo-list li[data-checked="true"] {
  color: var(--muted);
  text-decoration: line-through;
}

.task-editor-surface .todo-list li[data-checked="true"]::after,
.timeline-description .todo-list li[data-checked="true"]::after {
  content: "Completed";
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success, var(--primary)) 14%, transparent);
  color: var(--success, var(--primary));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.task-editor-surface blockquote {
  margin-left: 0;
  padding-left: 14px;
  border-left: 2px solid rgba(111, 140, 255, 0.38);
  color: var(--muted);
}

.task-editor-surface h3,
.task-editor-surface h4 {
  letter-spacing: -0.03em;
}

.task-editor-surface code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(111, 140, 255, 0.14);
  font-size: 12px;
}

.task-editor-note {
  margin: 0;
}

body[data-theme="light"] .task-editor-sheet {
  border-color: rgba(103, 120, 144, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(245, 248, 242, 0.96)),
    radial-gradient(circle at top right, rgba(103, 120, 144, 0.08), transparent 44%);
}

body[data-theme="light"] .task-editor-surface {
  border-color: rgba(103, 120, 144, 0.12);
  background: rgba(253, 253, 250, 0.94);
}

.auth-actions-row {
  justify-content: space-between;
}

.composer-dialog,
.auth-dialog,
.task-editor-dialog {
  max-height: min(90vh, 920px);
  overflow: auto;
}

@media (max-width: 1320px) {
  .layout {
    grid-template-columns: 250px minmax(0, 1fr) 290px;
  }
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .right-sidebar {
    position: static;
    top: auto;
    grid-column: 2;
  }
}

@media (max-width: 1080px) {
  body {
    padding: 18px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .main {
    order: 1;
  }

  .sidebar,
  .right-sidebar {
    position: static;
    top: auto;
    width: 100%;
    grid-column: auto;
  }

  .sidebar {
    order: 2;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .top-rhythm {
    min-height: 0;
  }

  .top-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .top-actions > .btn,
  .top-actions > .auth-bar {
    width: auto;
  }

  .profile-menu {
    width: auto;
  }

  .profile-menu-panel {
    width: 240px;
  }

  .hero-orbit {
    width: min(100%, 660px);
    min-height: calc(var(--orbit-day-size) + 28px);
  }

  .hero-live-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .right-sidebar {
    order: 3;
  }

  .hero-sound-shell {
    width: min(100%, 460px);
    margin-top: 0;
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "rhythm rhythm";
    align-items: center;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .top-actions {
    grid-area: actions;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .top-rhythm {
    grid-area: rhythm;
    grid-template-columns: 1fr;
    width: 100%;
    justify-self: stretch;
  }

  .top-rhythm-card {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .top-rhythm-meta {
    width: 100%;
  }

  .hero-orbit {
    --orbit-core-size: min(100%, 296px);
    --orbit-progress-size: min(100%, 372px);
    --orbit-day-size: min(100%, 402px);
    width: min(100%, 560px);
    min-height: calc(var(--orbit-day-size) + 24px);
  }

  .hero-orbit-shell::before {
    filter: blur(28px);
    opacity: 0.52;
  }

  .hero-orbit-shell::after {
    opacity: 0.16;
  }

  .hero-live-layout::before {
    opacity: 0.54;
  }

  .hero-live-layout::after {
    opacity: 0.22;
  }

  .hero-clock {
    width: var(--orbit-core-size);
  }

  .hero-center-controls {
    width: min(100%, 252px);
  }

  .hero-progress {
    width: 100%;
  }

  .hero-sound-shell {
    width: min(100%, 100%);
    margin-top: 0;
  }

  .hero-meditation-stage {
    min-height: 204px;
  }

  .metric-row,
  .schedule-item,
  .recent-item {
    align-items: flex-start;
  }

  .time-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .time-input {
    width: 100%;
    min-height: 42px;
    text-align: left;
  }

  .top-rhythm-input,
  .top-rhythm-clock .badge-time {
    width: 100%;
    min-width: 0;
    text-align: left;
    justify-content: flex-start;
  }

  .timeline-card,
  .task-row {
    grid-template-columns: 1fr;
  }

  .timeline-shell-body {
    padding: 24px;
  }

  .task-time {
    display: grid;
    gap: 4px;
    text-align: left;
  }

  .task-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, max-content));
    justify-content: start;
  }

  .break-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .break-quote {
    max-width: none;
    text-align: left;
  }

  .timeline {
    padding: 18px;
  }

  .hero-head,
  .hero-kicker,
  .subpanel-top,
  .timeline-head,
  .timeline-toolbar,
  .dialog-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-head-actions .btn,
  .timeline-head .btn,
  .timeline-toolbar .timeline-add-btn,
  .subpanel-top .btn {
    width: 100%;
  }

  .timeline-toolbar-group,
  .timeline-sort-field,
  .current-block-note {
    width: 100%;
  }

  .timeline-sort-field {
    justify-content: space-between;
  }

  .timeline-sort-select {
    flex: 1 1 auto;
  }

  .current-block-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-list[data-view="grid"] {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 0;
    gap: 20px;
    padding: 18px;
  }

  .hero-body {
    margin-top: 20px;
    gap: 18px;
  }

  .hero-orbit-shell,
  .hero-progress,
  .hero-overflow-alert,
  .hero-note-centered {
    width: 100%;
    max-width: none;
  }

  .insight-card,
  .subpanel {
    min-height: 0;
  }

  .nav-group,
  .kpi-grid,
  .mini-stats,
  .composer-form {
    grid-template-columns: 1fr;
  }

  .form-field-wide,
  .composer-actions,
  .auth-status {
    grid-column: span 1;
  }

  .composer-actions,
  .auth-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-actions .btn,
  .auth-actions-row .btn {
    width: 100%;
    min-width: 0;
  }

  .history-stack {
    max-height: none;
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  body {
    padding: 10px;
  }

  .app-shell {
    min-height: calc(100vh - 20px);
    border-radius: 20px;
  }

  .layout,
  .topbar {
    padding: 12px;
  }

  .sidebar,
  .hero,
  .timeline,
  .subpanel,
  .right-card,
  .rhythm-panel,
  .composer-dialog,
  .auth-dialog,
  .task-editor-dialog {
    padding: 16px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "rhythm rhythm";
    align-items: center;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .top-actions {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }

  .top-actions > .btn,
  .top-actions > .auth-bar {
    width: auto;
  }

  .auth-bar.profile-menu {
    flex-direction: row;
    align-items: center;
  }

  .auth-bar.profile-menu .profile-trigger,
  .top-actions > .btn.icon-btn {
    width: 44px;
  }

  .profile-menu-panel {
    width: min(240px, calc(100vw - 32px));
  }

  .top-rhythm {
    grid-area: rhythm;
    grid-template-columns: 1fr;
    padding: 12px;
    width: 100%;
    justify-self: stretch;
  }

  .top-rhythm-card {
    padding: 12px 14px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .top-rhythm-meta {
    width: 100%;
  }

  .top-rhythm-clock {
    grid-column: auto;
  }

  .top-rhythm-input,
  .top-rhythm-clock .badge-time {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    text-align: left;
  }

  .hero-sound-shell {
    width: min(100%, 100%);
    margin-top: 0;
  }

  .hero-meditation-stage {
    min-height: 192px;
  }

  .hero-player-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar {
    gap: 14px;
  }

  .nav-group {
    grid-template-columns: 1fr;
  }

  .nav-item {
    min-height: 74px;
  }

  .focus-score {
    padding: 16px;
  }

  .score-ring {
    height: 150px;
  }

  .hero-card {
    min-height: 0;
    gap: 20px;
    padding: 18px;
  }

  .hero-body {
    margin-top: 20px;
    gap: 18px;
  }

  .hero-orbit-shell,
  .hero-progress,
  .hero-overflow-alert,
  .hero-note-centered {
    width: 100%;
    max-width: none;
  }

  .task-row,
  .timeline-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .task-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, max-content));
    justify-content: start;
  }

  .kpi-grid,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .break-panel-head,
  .dialog-head {
    align-items: flex-start;
  }

  .hero-head,
  .hero-kicker,
  .break-panel-head,
  .subpanel-top,
  .timeline-head,
  .timeline-toolbar,
  .dialog-head {
    flex-direction: column;
  }

  .hero-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-head-actions .btn,
  .timeline-head .btn,
  .timeline-toolbar .timeline-add-btn,
  .subpanel-top .btn {
    width: 100%;
  }

  .hero-title {
    font-size: clamp(24px, 7vw, 34px);
  }

  .big-number {
    font-size: clamp(42px, 16vw, 72px);
    white-space: nowrap;
  }

  .task-time {
    display: grid;
    gap: 2px;
    text-align: left;
  }

  .task-time strong {
    font-size: 16px;
  }

  .block-name {
    font-size: 18px;
  }

  .break-quote {
    max-width: none;
    text-align: left;
  }

  .composer-form {
    grid-template-columns: 1fr;
  }

  .form-field-wide,
  .composer-actions,
  .auth-status {
    grid-column: span 1;
  }

  .composer-actions,
  .auth-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-actions .btn,
  .auth-actions-row .btn {
    width: 100%;
    min-width: 0;
  }

  .preset-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overlay-modal {
    padding: 12px;
    align-items: end;
  }

  .composer-dialog,
  .auth-dialog,
  .task-editor-dialog {
    width: 100%;
    max-height: min(88vh, 900px);
    border-radius: 24px 24px 18px 18px;
    padding: 18px;
  }

  .task-editor-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-editor-surface {
    min-height: 200px;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 15px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .hero-orbit {
    --orbit-core-size: min(100%, 248px);
    --orbit-progress-size: min(100%, 304px);
    --orbit-day-size: min(100%, 328px);
    min-height: calc(var(--orbit-day-size) + 16px);
  }

  .hero-clock {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
  }

  .hero-clock-inner {
    padding-inline: 18px;
  }

  .hero-center-controls {
    width: 100%;
    max-width: none;
    gap: 8px;
  }

  .hero-center-btn,
  .orbit-button {
    min-height: 44px;
  }

  .orbit-button {
    font-size: 22px;
  }

  .orbit-button:disabled {
    transform: none;
  }

  .orbit-button:hover {
    transform: translateY(-2px);
  }

  .orbit-button:active {
    transform: none;
  }

  .hero-secondary-actions {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-secondary-btn {
    width: 100%;
    min-width: 0;
  }

  .day-title {
    font-size: 22px;
  }

  .hero-title {
    font-size: clamp(22px, 8vw, 30px);
  }

  .big-number {
    font-size: clamp(38px, 18vw, 62px);
  }

  .badge,
  .badge-time {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .action-dot {
    width: 36px;
    height: 36px;
  }

  .preset-row {
    grid-template-columns: 1fr;
  }

  .sound-type-btn {
    min-height: 38px;
    padding: 8px 6px;
    font-size: 11px;
  }

  .hero-player-controls {
    grid-template-columns: 1fr;
  }

  .hero-player-volume {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .timeline-head,
  .subpanel-top {
    gap: 10px;
  }

  .timeline-description {
    padding: 10px 12px;
    font-size: 12px;
  }

  .task-editor-surface {
    min-height: 180px;
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .topbar,
  .layout {
    padding: 10px;
  }

  .top-actions {
    gap: 8px;
  }

  .profile-menu-panel {
    width: min(220px, calc(100vw - 24px));
  }

  .top-rhythm-card {
    padding: 10px 12px;
  }

  .hero-title {
    font-size: 24px;
  }

  .big-number {
    font-size: clamp(34px, 16vw, 54px);
  }

  .hero-clock-inner {
    padding: 22px 14px;
    gap: 10px;
  }

  .hero-center-controls {
    gap: 6px;
  }

  .hero-player-card,
  .hero-meditation-stage,
  .right-sidebar,
  .sidebar,
  .timeline,
  .hero-card {
    border-radius: 20px;
  }

  .task-actions {
    grid-template-columns: repeat(3, minmax(0, max-content));
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr !important;
    gap: 14px;
    padding: 14px;
  }

  .layout > * {
    grid-column: 1 / -1 !important;
    justify-self: stretch;
  }

  .main {
    order: 1;
  }

  .sidebar,
  .right-sidebar {
    position: static !important;
    top: auto !important;
    width: 100%;
  }

  .sidebar {
    order: 2;
    gap: 14px;
  }

  .right-sidebar {
    order: 3;
    grid-column: auto !important;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "brand actions"
      "rhythm rhythm";
    gap: 12px;
    padding: 14px;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .top-actions {
    grid-area: actions;
    justify-content: flex-end;
    gap: 8px;
  }

  .top-rhythm {
    grid-area: rhythm;
    grid-template-columns: 1fr !important;
    width: 100%;
    justify-self: stretch;
    padding: 10px;
  }

  .top-rhythm-card {
    padding: 10px 12px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .top-rhythm-meta {
    width: 100%;
  }

  .top-rhythm-input,
  .top-rhythm-clock .badge-time {
    width: 100%;
    min-width: 0;
    text-align: left;
    justify-content: flex-start;
  }

  .nav-group {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .nav-item {
    min-height: 72px;
  }

  .focus-score,
  .sidebar-planner,
  .hero,
  .timeline,
  .right-sidebar,
  .hero-card,
  .subpanel,
  .right-card {
    border-radius: 20px;
  }

  .focus-score {
    padding: 16px;
  }

  .score-ring {
    height: 140px;
    margin-top: 14px;
  }

  .mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sidebar-planner .kpi-grid,
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .hero-head,
  .hero-kicker,
  .hero-head-actions,
  .timeline-head,
  .timeline-toolbar,
  .subpanel-top,
  .dialog-head,
  .break-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-head-actions .btn,
  .timeline-head .btn,
  .subpanel-top .btn,
  .hero-add-btn,
  .timeline-toolbar .timeline-add-btn {
    width: 100%;
  }

  .hero-card {
    min-height: 0;
    padding: 18px;
    gap: 18px;
  }

  .hero-body {
    margin-top: 16px;
    gap: 16px;
  }

  .hero-title {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.02;
  }

  .hero-orbit-shell,
  .hero-progress,
  .hero-overflow-alert,
  .hero-note-centered,
  .hero-sound-shell {
    width: 100%;
    max-width: none;
  }

  .hero-orbit {
    width: 100%;
    min-height: calc(var(--orbit-day-size) + 18px);
  }

  .hero-player-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .timeline-card,
  .task-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 14px;
  }

  .timeline-shell-top {
    padding: 18px 22px;
  }

  .timeline-shell-body {
    padding: 20px;
  }

  .task-time {
    text-align: left;
  }

  .task-actions {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .action-dot {
    min-width: 68px;
    height: 42px;
    padding: 0 14px;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .insight-card,
  .subpanel {
    min-height: 0;
  }

  .history-stack {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .composer-dialog,
  .auth-dialog,
  .task-editor-dialog {
    width: 100%;
    max-height: 88vh;
    overflow: auto;
  }

  .composer-form {
    grid-template-columns: 1fr !important;
  }

  .form-field-wide,
  .composer-actions,
  .auth-status {
    grid-column: span 1;
  }

  .composer-actions,
  .auth-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-actions .btn,
  .auth-actions-row .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .nav-group,
  .mini-stats,
  .sidebar-planner .kpi-grid,
  .kpi-grid,
  .preset-row {
    grid-template-columns: 1fr !important;
  }

  .hero-orbit {
    --orbit-core-size: min(100%, 236px);
    --orbit-progress-size: min(100%, 294px);
    --orbit-day-size: min(100%, 318px);
  }

  .hero-center-controls {
    width: 100%;
    max-width: none;
  }

  .hero-center-btn,
  .orbit-button {
    min-height: 42px;
  }

  .hero-secondary-actions,
  .hero-player-controls {
    display: grid;
    grid-template-columns: 1fr !important;
  }

  .task-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, max-content));
  }
}
