﻿/* Global: hide scrollbars, keep scrolling */
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

:root {
  --bg: #060a12;
  --bg-2: #0b1220;
  --panel: rgba(14, 22, 38, 0.92);
  --card: rgba(18, 28, 48, 0.88);
  --line: rgba(94, 234, 212, 0.14);
  --line-soft: rgba(139, 155, 184, 0.16);
  --primary: #5eead4;
  --primary-color: #5eead4;
  --primary-dim: rgba(94, 234, 212, 0.12);
  --accent: #38bdf8;
  --text: #e8eef9;
  --muted: #8b9bb8;
  --danger: #fb7185;
  --success: #34d399;
  --warn: #fbbf24;
  --neon: #5eead4;
  --sidebar-w: 270px;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

body.theme-neon-cyan {
  --primary: #22d3ee;
  --accent: #67e8f9;
  --neon: #22d3ee;
  --primary-dim: rgba(34, 211, 238, 0.14);
  --line: rgba(34, 211, 238, 0.22);
}

body.theme-neon-magenta {
  --primary: #f472b6;
  --accent: #c084fc;
  --neon: #e879f9;
  --primary-dim: rgba(244, 114, 182, 0.14);
  --line: rgba(232, 121, 249, 0.22);
}

body.theme-neon-lime {
  --primary: #a3e635;
  --accent: #34d399;
  --neon: #bef264;
  --primary-dim: rgba(163, 230, 53, 0.14);
  --line: rgba(163, 230, 53, 0.22);
}

body.theme-neon-amber {
  --primary: #fbbf24;
  --accent: #fb923c;
  --neon: #fcd34d;
  --primary-dim: rgba(251, 191, 36, 0.14);
  --line: rgba(251, 191, 36, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  height: 100%;
  height: 100dvh;
  max-width: 100vw;
  overflow-x: hidden;
  font-size: clamp(14px, 0.35vw + 13px, 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  min-height: 100%;
  min-height: 100dvh;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 50%),
    radial-gradient(ellipse 50% 35% at 100% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 45%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
}
h1 { font-size: clamp(1.15rem, 2.4vw + 0.7rem, 1.55rem); }
h2 { font-size: clamp(1rem, 1.6vw + 0.7rem, 1.2rem); }
h3 { font-size: clamp(0.9rem, 1.1vw + 0.7rem, 1.05rem); }
button, input, select, textarea { font: inherit; }
img, svg, video { max-width: 100%; height: auto; }
.screen { display: none; min-height: 100%; }
.screen.active { display: block; }

#login-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 90%, rgba(244, 114, 182, 0.2), transparent 50%),
    linear-gradient(160deg, #060a12 0%, #0b1220 45%, #12081a 100%);
}
#login-screen[hidden] { display: none !important; }
#login-screen.active { display: flex !important; }
#login-screen.active ~ #app-screen,
body:has(#login-screen.active) #app-screen {
  display: none !important;
}
#app-screen[hidden] { display: none !important; }
.login-card {
  width: 100%; max-width: 420px; padding: 2.1rem 1.7rem;
  background: rgba(18, 28, 48, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  position: relative; overflow: hidden;
}
.login-card.glass-login { background: rgba(18, 28, 48, 0.48); }
.login-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}
.login-brand { text-align: center; margin-bottom: 1.6rem; }
.login-brand .pulse {
  width: 12px; height: 12px; margin: 0 auto 0.9rem; border-radius: 50%;
  background: var(--primary); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 55%, transparent); }
  70% { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.login-brand h1 {
  font-size: 1.45rem; letter-spacing: 0.04em; margin-bottom: 0.35rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-brand p { color: var(--muted); font-size: 0.9rem; }
.form-group { margin-bottom: 1rem; }
.form-group label,
.modal-field label {
  display: block; font-size: 0.75rem; color: var(--muted);
  margin-bottom: 0.4rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.form-group input, .form-group select, .modal-field input, .modal-field textarea,
.composer input, .composer select, .sub-add input, .couple-composer input {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px;
  border: 1px solid var(--line-soft); background: rgba(6, 10, 18, 0.75);
  color: var(--text); outline: none; font: inherit;
}
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}
.form-group input:focus, .form-group select:focus, .modal-field input:focus, .modal-field textarea:focus,
.composer input:focus, .composer select:focus, .sub-add input:focus, .couple-composer input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim);
}
#login-form .form-group input.is-invalid,
#login-form .form-group select.is-invalid {
  border-color: #fb7185 !important;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.25) !important;
}
#login-form.is-shake {
  animation: login-shake 0.4s ease;
}
@keyframes login-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-7px); }
  80% { transform: translateX(7px); }
}
.btn-primary {
  width: 100%; margin-top: 0.35rem; padding: 0.9rem; border: none;
  border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer;
  color: #041018; background: linear-gradient(135deg, var(--primary), var(--accent));
}
.login-error {
  display: none; margin-bottom: 0.9rem; padding: 0.75rem 0.9rem;
  border-radius: 10px; text-align: center; font-size: 0.88rem;
  color: var(--danger); background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.3);
}
.login-error.show { display: block; }
.hp-trap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.login-hint { margin-top: 1rem; text-align: center; color: var(--muted); font-size: 0.78rem; }

#app-screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100vw;
  overflow-x: hidden;
}
#app-screen.active {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100vw;
  overflow-x: hidden;
}
body.app-shell-destroyed #app-screen {
  display: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.app-shell-destroyed #app-screen * {
  display: none !important;
}
#login-screen.active {
  display: flex !important;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 55;
}
.sidebar {
  width: min(var(--sidebar-w), 86vw);
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 1.25rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: fixed !important;
  left: 0;
  top: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 60;
  transform: translateX(-105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow);
}
body.sidebar-open .sidebar {
  transform: translateX(0) !important;
}
body.sidebar-open .sidebar-overlay {
  display: block !important;
  z-index: 55;
}
body.sidebar-open { overflow: hidden; }
.main, .content, .view {
  max-width: 100%;
  min-width: 0;
}
.main {
  width: 100%;
  max-width: 100%;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.4rem 0.55rem 1.1rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 0.85rem;
}
.sidebar-collapse-btn {
  margin-left: auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(6, 10, 18, 0.55);
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
}
.sidebar-collapse-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}
.sidebar-brand .orb {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 35%, transparent);
}
.sidebar-brand strong { display: block; font-size: 0.95rem; }
.sidebar-brand span { color: var(--muted); font-size: 0.72rem; }
.nav-btn {
  display: flex; align-items: center; gap: 0.7rem; width: 100%;
  text-align: left; padding: 0.78rem 0.85rem; border: 1px solid transparent;
  border-radius: 12px; background: transparent; color: var(--muted);
  font-size: 0.9rem; cursor: pointer;
}
.nav-btn:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-btn.active { color: var(--primary); background: var(--primary-dim); border-color: var(--line); }
.nav-btn .ico { width: 1.25rem; text-align: center; }
.sidebar-foot { margin-top: auto; padding-top: 0.8rem; border-top: 1px solid var(--line-soft); display: grid; gap: 0.45rem; }
.xp-mini {
  padding: 0.7rem 0.8rem; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(6,10,18,0.45);
}
.xp-mini .lvl { font-size: 0.78rem; color: var(--primary); font-weight: 700; margin-bottom: 0.3rem; }
.xp-mini .bar { height: 6px; border-radius: 999px; background: rgba(6,10,18,0.8); overflow: hidden; }
.xp-mini .fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.35s ease; }
.xp-mini .meta { margin-top: 0.35rem; font-size: 0.72rem; color: var(--muted); }
.logout-btn {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 10px;
  border: 1px solid var(--line-soft); background: transparent; color: var(--text); cursor: pointer;
}
.logout-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--line); background: rgba(6, 10, 18, 0.55);
  backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.menu-toggle {
  display: inline-grid !important;
  place-items: center;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  border-radius: 12px; border: 1px solid var(--line-soft);
  background: rgba(6, 10, 18, 0.55); color: var(--text); cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle:hover { border-color: var(--primary); background: var(--primary-dim); }
.burger {
  width: 18px; height: 14px; display: flex; flex-direction: column; justify-content: space-between;
}
.burger span {
  display: block; height: 2px; width: 100%; border-radius: 999px;
  background: currentColor; transition: transform 0.22s ease, opacity 0.22s ease;
}
body.sidebar-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.sidebar-open .burger span:nth-child(2) { opacity: 0; }
body.sidebar-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.page-title { font-size: 1.05rem; font-weight: 650; }
.page-sub { color: var(--muted); font-size: 0.78rem; margin-top: 0.1rem; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: rgba(6, 10, 18, 0.55);
}
.lang-switch button {
  border: none; background: transparent; color: var(--muted);
  padding: 0.42rem 0.7rem; font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.lang-switch button.active { background: var(--primary-dim); color: var(--primary); }
.shift-wrap { display: flex; align-items: center; gap: 0.55rem; }
.shift-wrap label { color: var(--muted); font-size: 0.78rem; }
.shift-select {
  appearance: none; -webkit-appearance: none;
  padding: 0.5rem 2rem 0.5rem 0.75rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9bb8' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
  color: var(--text); font-size: 0.84rem; outline: none; cursor: pointer;
}
.shift-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.75rem; border-radius: 999px; font-size: 0.78rem; font-weight: 650; border: 1px solid transparent;
}
.shift-badge.sabah { background: rgba(251,191,36,0.12); color: #fbbf24; border-color: rgba(251,191,36,0.3); }
.shift-badge.aksam { background: rgba(56,189,248,0.12); color: #38bdf8; border-color: rgba(56,189,248,0.3); }
.shift-badge.gece { background: rgba(167,139,250,0.14); color: #c4b5fd; border-color: rgba(167,139,250,0.35); }
.shift-badge.izin { background: rgba(52,211,153,0.12); color: #34d399; border-color: rgba(52,211,153,0.3); }
.user-chip {
  padding: 0.4rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--line-soft); color: var(--muted); font-size: 0.78rem;
}

.content { padding: 1.25rem 1.35rem 2rem; flex: 1; }
.view { display: none; animation: fadeIn 0.25s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card, .glass-card, .progress-panel, .composer-wrap {
  background: rgba(12, 18, 32, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.25s ease, background 0.25s ease;
}
.card:hover, .glass-card:hover {
  border-color: rgba(94, 234, 212, 0.28);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(56, 189, 248, 0.08),
    0 0 28px rgba(56, 189, 248, 0.1);
}

.welcome {
  margin-bottom: 1rem; padding: 1rem 1.15rem; border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--accent) 10%, transparent)),
    rgba(12, 18, 32, 0.45);
  border: 1px solid rgba(94, 234, 212, 0.18);
}
.welcome h2 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.25rem; }
.welcome p { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.guest-note { display: none; margin-top: 0.45rem; font-size: 0.78rem; color: var(--muted); }
body.is-guest .guest-note { display: block; }
body.is-guest .owner-only { display: none !important; }

.dash-quick-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem; margin-bottom: 1rem;
}
.quick-stat {
  padding: 0.95rem 1rem; position: relative; overflow: hidden;
}
.quick-stat::before {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 120px; height: 120px;
  border-radius: 50%; filter: blur(28px); opacity: 0.35; pointer-events: none;
}
.quick-stat.focus::before { background: #38bdf8; }
.quick-stat.tasks::before { background: #a78bfa; }
.quick-stat.cheat::before { background: #fb923c; }
.quick-stat-label {
  display: block; font-size: 0.74rem; color: var(--muted); font-weight: 650;
  letter-spacing: 0.02em; margin-bottom: 0.45rem; position: relative;
}
.quick-stat-value {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 850; color: var(--text);
  letter-spacing: -0.02em; position: relative;
}
.quick-stat.cheat .quick-stat-value { color: #fdba74; }
.quick-stat.cheat .quick-stat-value.zero { color: #fb7185; }

.dash-rings {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem; margin-bottom: 1rem; padding: 1.15rem 0.85rem 1.25rem;
  justify-items: center; align-items: start;
}
.ring-item { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; text-align: center; }
.ring {
  --p: 0; --c: #38bdf8;
  width: clamp(86px, 12vw, 112px); height: clamp(86px, 12vw, 112px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(8, 12, 22, 0.92) 58%, transparent 59%),
    conic-gradient(from -90deg, var(--c) calc(var(--p) * 1%), rgba(148, 163, 184, 0.12) 0);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 24px color-mix(in srgb, var(--c) 18%, transparent);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.ring:hover { transform: scale(1.04); }
.ring-value {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem); font-weight: 850;
  color: var(--text); letter-spacing: -0.02em;
}
.ring-label {
  font-size: 0.74rem; color: var(--muted); font-weight: 700; line-height: 1.25;
  max-width: 9.5rem;
}
.ring-item.overall .ring { --c: #34d399; }
.ring-item.dev .ring { --c: #38bdf8; }
.ring-item.content .ring { --c: #a78bfa; }
.ring-item.physical .ring { --c: #fb923c; }

.dash-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}
.bento-item > .glass-card,
.bento-item.glass-card,
.bento-water > .card,
.bento-nutrition > .card,
.bento-partner > .card {
  height: 100%;
}
.bento-water { grid-column: span 4; }
.bento-nutrition { grid-column: span 5; }
.bento-partner { grid-column: span 3; }
.bento-heatmap { grid-column: span 8; }
.bento-ai { grid-column: span 4; margin-bottom: 0; }
.bento-streak {
  grid-column: span 12;
  display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 0.9rem;
}

.streak-card { display: flex; align-items: center; gap: 1rem; }
.streak-flame {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.8rem; background: rgba(251, 146, 60, 0.12); border: 1px solid rgba(251, 146, 60, 0.28);
}
.streak-num {
  font-size: 2rem; font-weight: 800; line-height: 1;
  background: linear-gradient(90deg, #fb923c, #fbbf24);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.streak-sub { color: var(--muted); font-size: 0.82rem; margin-top: 0.25rem; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.stat-mini h4 { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.4rem; }
.stat-mini .val { font-size: 1.2rem; font-weight: 750; display: flex; gap: 0.3rem; align-items: baseline; }
.stat-mini .val small { font-size: 0.72rem; color: var(--warn); font-weight: 650; }

.ai-card {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--primary) 14%, transparent), rgba(56,189,248,0.06)),
    rgba(12, 18, 32, 0.5);
  border-color: rgba(56, 189, 248, 0.2);
}
.ai-card h3 { color: var(--primary); margin-bottom: 0.7rem; font-size: 0.98rem; }
.ai-card p { color: var(--text); line-height: 1.55; font-size: 0.92rem; }
.section-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.section-head strong { display: block; font-size: 0.95rem; }
.section-head span { color: var(--muted); font-size: 0.75rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, #f472b6, #38bdf8); color: #041018;
}
.couple-track {
  height: 8px; border-radius: 999px; background: rgba(6,10,18,0.7); overflow: hidden; margin-bottom: 1rem;
}

.partner-sync-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.7rem; min-height: 100%;
  background:
    linear-gradient(165deg, rgba(244,114,182,0.16), rgba(56,189,248,0.08)),
    rgba(12, 18, 32, 0.5);
  border-color: rgba(244, 114, 182, 0.28);
  padding: 1.1rem 0.9rem;
}
.partner-avatars {
  display: flex; align-items: center; justify-content: center;
  position: relative; height: 54px;
}
.partner-avatars .p-av {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 850; font-size: 1rem;
  border: 2px solid rgba(8, 12, 22, 0.9);
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.25);
}
.partner-avatars .p-av.b {
  background: linear-gradient(135deg, #38bdf8, #6366f1); color: #041018;
  z-index: 1; margin-right: -12px;
}
.partner-avatars .p-av.s {
  background: linear-gradient(135deg, #f472b6, #fb7185); color: #1f0a12;
  z-index: 2;
}
.partner-handles {
  font-size: 0.88rem; font-weight: 800; color: #fce7f3; letter-spacing: 0.01em;
}
.partner-sync-pct {
  font-size: 1.7rem; font-weight: 900; color: #f9a8d4; letter-spacing: -0.03em;
  text-shadow: 0 0 18px rgba(244, 114, 182, 0.35);
}
.partner-sync-bar {
  width: 100%; height: 7px; border-radius: 999px; overflow: hidden;
  background: rgba(6,10,18,0.65); border: 1px solid rgba(244,114,182,0.18);
}
.partner-sync-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #f472b6, #38bdf8);
  transition: width 0.45s ease;
}
.partner-sync-note {
  font-size: 0.78rem; color: rgba(252, 231, 243, 0.78);
  font-style: italic; line-height: 1.4; max-width: 16rem;
}

@media (max-width: 1200px) and (min-width: 993px) {
  .bento-water { grid-column: span 6; }
  .bento-nutrition { grid-column: span 6; }
  .bento-partner { grid-column: span 4; }
  .bento-heatmap { grid-column: span 8; }
  .bento-ai { grid-column: span 4; }
  .bento-streak { grid-column: span 12; grid-template-columns: 1fr 1.6fr; }
  .dash-rings { gap: 0.65rem; }
}

.heatmap-card h3 { margin-bottom: 0.85rem; color: var(--accent); font-size: 0.98rem; }
.heatmap-scroll {
  overflow-x: auto; padding-bottom: 0.35rem;
  scrollbar-width: thin; scrollbar-color: rgba(139,155,184,0.35) transparent;
}
.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  grid-auto-flow: column;
  grid-auto-columns: 11px;
  gap: 3px;
  width: max-content;
  min-height: 89px;
}
.heat-cell {
  width: 11px; height: 11px; border-radius: 2px;
  background: #0b1a2e;
  border: 1px solid rgba(15, 35, 60, 0.9);
}
.heat-cell.pad { visibility: hidden; border-color: transparent; background: transparent; }
.heat-cell.l1 { background: #14532d; border-color: rgba(20, 83, 45, 0.9); }
.heat-cell.l2 { background: #15803d; border-color: rgba(21, 128, 61, 0.95); }
.heat-cell.l3 {
  background: #4ade80;
  border-color: rgba(74, 222, 128, 0.95);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.45);
}
.heatmap-legend {
  display: flex; justify-content: flex-end; align-items: center; gap: 0.35rem;
  margin-top: 0.7rem; color: var(--muted); font-size: 0.72rem;
}
.heatmap-legend .heat-cell { width: 11px; height: 11px; flex-shrink: 0; }

.composer-wrap {
  margin-bottom: 1rem; padding: 1rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.composer {
  display: grid;
  grid-template-columns: 1.5fr 120px 120px auto auto auto;
  gap: 0.55rem; align-items: center;
}
.input-with-mic { position: relative; }
.input-with-mic input { padding-right: 2.6rem; }
.mic-btn {
  position: absolute; right: 0.45rem; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-soft);
  background: transparent; color: var(--muted); cursor: pointer;
}
.mic-btn.listening {
  color: var(--danger); border-color: rgba(251,113,133,0.45);
  background: rgba(251,113,133,0.1); animation: pulse 1.2s infinite;
}
.composer .btn-add {
  padding: 0.85rem 1.1rem; border: none; border-radius: 12px; cursor: pointer; font-weight: 700;
  color: #041018; background: linear-gradient(135deg, var(--primary), var(--accent)); white-space: nowrap;
}
.composer select { cursor: pointer; }
.recur-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 0.75rem; border-radius: 12px; border: 1px solid var(--line-soft);
  background: rgba(6, 10, 18, 0.55); color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap;
}
.recur-toggle.active { color: var(--primary); border-color: var(--line); background: var(--primary-dim); }
.recur-toggle input { display: none; }
.shift-warn {
  display: none; margin-top: 0.7rem; padding: 0.65rem 0.8rem; border-radius: 10px;
  font-size: 0.82rem; line-height: 1.4; color: #c4b5fd;
  background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.28);
}
.shift-warn.show { display: block; }

.task-board { display: flex; flex-direction: column; gap: 0.7rem; min-height: 20px; }
.task-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: opacity 0.15s, transform 0.15s, border-color 0.15s;
}
.task-card.dragging { opacity: 0.45; transform: scale(0.98); }
.task-card.drag-over { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.drag-handle { cursor: grab; color: var(--muted); padding: 0.15rem 0.2rem; user-select: none; }
.task-row { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.9rem 0.95rem; }
.task-pomo-lock {
  flex-shrink: 0; width: 64px; margin-top: 1px;
  display: flex; flex-direction: column; align-items: stretch; gap: 0.28rem;
  pointer-events: none; user-select: none;
}
.task-pomo-text {
  font-size: 0.72rem; font-weight: 800; text-align: center;
  color: #7dd3fc; letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
  line-height: 1.1; white-space: nowrap;
}
.task-pomo-track {
  display: block; height: 5px; border-radius: 999px; overflow: hidden;
  background: rgba(6, 10, 18, 0.75); border: 1px solid rgba(56, 189, 248, 0.2);
}
.task-pomo-fill {
  display: block; height: 100%; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #34d399);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
  transition: width 0.35s ease;
}
.task-main { flex: 1; min-width: 0; cursor: pointer; }
.task-title-line { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.task-title { font-size: 0.95rem; line-height: 1.35; word-break: break-word; }
.task-meta { color: var(--muted); font-size: 0.75rem; }
.task-actions { display: flex; gap: 0.3rem; flex-shrink: 0; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-soft);
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-dim); }
.icon-btn.danger:hover { color: var(--danger); border-color: rgba(251,113,133,0.45); background: rgba(251,113,133,0.1); }

.badge {
  display: inline-flex; align-items: center; padding: 0.15rem 0.5rem;
  border-radius: 999px; font-size: 0.7rem; font-weight: 700; border: 1px solid transparent;
}
.badge.d15, .badge.s1 { background: rgba(52,211,153,0.12); color: #34d399; border-color: rgba(52,211,153,0.3); }
.badge.d45, .badge.s2 { background: rgba(251,191,36,0.12); color: #fbbf24; border-color: rgba(251,191,36,0.3); }
.badge.d60, .badge.s3 { background: rgba(56,189,248,0.12); color: #38bdf8; border-color: rgba(56,189,248,0.3); }
.badge.d120, .badge.s4 { background: rgba(251,113,133,0.12); color: #fb7185; border-color: rgba(251,113,133,0.3); }
.badge.session-badge { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.badge.timer-btn { cursor: pointer; }
.badge.timer-btn.running {
  background: var(--primary-dim); color: var(--primary); border-color: var(--primary);
  animation: pulse 1.2s infinite;
}
.badge.assignee-berat { background: rgba(56,189,248,0.12); color: #7dd3fc; border-color: rgba(56,189,248,0.3); }
.badge.assignee-shruti { background: rgba(244,114,182,0.12); color: #f9a8d4; border-color: rgba(244,114,182,0.3); }
.badge.recur { background: rgba(167,139,250,0.12); color: #c4b5fd; border-color: rgba(167,139,250,0.3); }
.badge.tag-acil { background: rgba(251,113,133,0.14); color: #fb7185; border-color: rgba(251,113,133,0.35); }
.badge.tag-kurgu { background: rgba(167,139,250,0.14); color: #c4b5fd; border-color: rgba(167,139,250,0.35); }
.badge.tag-yayin { background: rgba(56,189,248,0.14); color: #7dd3fc; border-color: rgba(56,189,248,0.35); }
.badge.tag-spor { background: rgba(52,211,153,0.14); color: #34d399; border-color: rgba(52,211,153,0.35); }
.badge.tag-default { background: rgba(148,163,184,0.14); color: #cbd5e1; border-color: rgba(148,163,184,0.3); }

input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; min-width: 18px; margin-top: 3px;
  border-radius: 5px; border: 2px solid rgba(139,155,184,0.45); background: transparent; cursor: pointer; position: relative;
}
input[type="checkbox"]:checked { background: var(--success); border-color: var(--success); }
input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid #041018; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
input[type="checkbox"]:disabled { opacity: 0.4; cursor: not-allowed; }

.subpanel {
  display: none; border-top: 1px solid var(--line-soft);
  background: rgba(6, 10, 18, 0.35); padding: 0.8rem 0.95rem 0.95rem;
}
.task-card.open .subpanel { display: block; }
.task-card.open .chev { transform: rotate(90deg); }
.chev { display: inline-block; color: var(--muted); font-size: 0.7rem; transition: transform 0.2s; }
.sub-list { list-style: none; margin-bottom: 0.65rem; }
.sub-item {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.65rem;
  border-radius: 10px; margin-bottom: 0.4rem; background: rgba(6,10,18,0.45); border: 1px solid var(--line-soft);
}
.sub-item.done .sub-title { color: var(--muted); text-decoration: line-through; }
.sub-title { flex: 1; font-size: 0.86rem; }
.sub-add { display: flex; gap: 0.5rem; }
.sub-add button {
  padding: 0 0.9rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--primary-dim); color: var(--primary); cursor: pointer; font-weight: 650;
}

.archive {
  margin-top: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
}
.archive-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 0.95rem 1.05rem; background: transparent; border: none; color: var(--text);
  cursor: pointer; font-weight: 650;
}
.archive-toggle span { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
.archive-body { display: none; border-top: 1px solid var(--line-soft); padding: 0.8rem; }
.archive.open .archive-body { display: block; }
.archive-item {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start;
  padding: 0.7rem 0.75rem; border-radius: 10px; margin-bottom: 0.45rem;
  background: rgba(6,10,18,0.45); border: 1px solid var(--line-soft);
}
.archive-title { font-size: 0.88rem; color: var(--muted); text-decoration: line-through; }
.archive-date { font-size: 0.75rem; color: var(--primary); white-space: nowrap; }
.empty-state {
  text-align: center; color: var(--muted); padding: 1.4rem 1rem; font-size: 0.9rem;
  border: 1px dashed var(--line-soft); border-radius: 12px;
}

.dual-clocks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 1rem;
}
.clock-card {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease, color 0.4s ease;
}
.clock-card.is-day {
  background:
    linear-gradient(145deg, rgba(251, 191, 36, 0.22), rgba(56, 189, 248, 0.16) 48%, rgba(253, 224, 171, 0.18)),
    linear-gradient(180deg, #1c2a44, #152238);
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 10px 28px rgba(251, 191, 36, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.clock-card.is-night {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 44% 70%, rgba(186, 230, 253, 0.16) 0 1.5px, transparent 3px),
    linear-gradient(160deg, #060b1a 0%, #0b1633 48%, #121c3d 100%);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45), inset 0 0 24px rgba(56, 189, 248, 0.05);
}
.clock-flag { font-size: 1.6rem; }
.clock-card strong { display: block; font-size: 0.82rem; color: var(--accent); margin-bottom: 0.15rem; }
.clock-card.is-day strong { color: #fde68a; }
.clock-card.is-night strong { color: #a5b4fc; }
.clock-time {
  font-size: 1.55rem; font-weight: 800; letter-spacing: 0.04em;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.clock-card.is-day .clock-time { color: #fff7ed; text-shadow: 0 0 18px rgba(251, 191, 36, 0.25); }
.clock-card.is-night .clock-time { color: #e0e7ff; text-shadow: 0 0 16px rgba(129, 140, 248, 0.28); }
.clock-city { color: var(--muted); font-size: 0.75rem; }
.clock-card.is-day .clock-city { color: rgba(254, 243, 199, 0.75); }
.clock-card.is-night .clock-city { color: rgba(199, 210, 254, 0.7); }

.reward-lock {
  margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background:
    linear-gradient(135deg, rgba(251,191,36,0.14), rgba(244,114,182,0.1)),
    var(--card);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.12);
  animation: rewardPulse 2.2s ease-in-out infinite;
}
.reward-lock[hidden] { display: none !important; }
.reward-lock-inner { padding: 1.2rem 1.25rem; text-align: center; }
.reward-emoji { font-size: 1.8rem; margin-bottom: 0.4rem; animation: floatY 1.8s ease-in-out infinite; }
.reward-lock h3 {
  color: #fbbf24; font-size: 1.05rem; margin-bottom: 0.35rem;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.35);
}
.reward-lock p { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
@keyframes rewardPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(251, 191, 36, 0.1); }
  50% { box-shadow: 0 0 34px rgba(251, 191, 36, 0.28); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.couple-grid-wrap {
  position: relative; margin-bottom: 1rem;
}
.couple-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.couple-user { position: relative; transition: border-color 0.2s, transform 0.2s, box-shadow 0.3s ease; }
.couple-user:hover { border-color: rgba(244, 114, 182, 0.35); }
.couple-user-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.55rem;
}
.couple-user h3 { margin: 0; color: var(--accent); }
.couple-user .pct { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.45rem; color: var(--primary); }
.couple-sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.couple-fill-berat { height: 100%; width: 0%; background: linear-gradient(90deg, #38bdf8, #67e8f9); transition: width 0.35s ease; }
.couple-fill-shruti { height: 100%; width: 0%; background: linear-gradient(90deg, #f472b6, #c084fc); transition: width 0.35s ease; }

.couple-user.is-co-focus {
  border-color: rgba(251, 191, 36, 0.55) !important;
  animation: coFocusGlow 1.6s ease-in-out infinite;
}
@keyframes coFocusGlow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25), 0 0 18px rgba(250, 204, 21, 0.28), 0 0 34px rgba(245, 158, 11, 0.18);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(253, 224, 71, 0.55), 0 0 28px rgba(250, 204, 21, 0.55), 0 0 52px rgba(245, 158, 11, 0.35);
  }
}
.co-focus-badge {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4; pointer-events: none;
  padding: 0.4rem 0.75rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; white-space: nowrap;
  color: #422006;
  background: linear-gradient(135deg, #fde68a, #fbbf24 55%, #f59e0b);
  border: 1px solid rgba(253, 224, 71, 0.7);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35), 0 0 18px rgba(250, 204, 21, 0.35);
  animation: coFocusBadgePulse 1.6s ease-in-out infinite;
}
.co-focus-badge[hidden] { display: none !important; }
@keyframes coFocusBadgePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

.mood-row { display: flex; gap: 0.4rem; margin-bottom: 0.65rem; }
.mood-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-soft);
  background: rgba(6,10,18,0.45); cursor: pointer; font-size: 1.05rem;
  transition: 0.15s ease;
}
.mood-btn.active {
  border-color: var(--primary); background: var(--primary-dim);
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 25%, transparent);
  transform: scale(1.06);
}
.couple-note-input {
  width: 100%; padding: 0.7rem 0.8rem; border-radius: 10px;
  border: 1px solid var(--line-soft); background: rgba(6,10,18,0.55);
  color: var(--text); outline: none;
}
.couple-note-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }

.nudge-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-soft);
  background: rgba(244,114,182,0.08); color: #f9a8d4; cursor: pointer;
  transition: 0.15s ease;
}
.nudge-btn:hover {
  border-color: rgba(244,114,182,0.45); background: rgba(244,114,182,0.16); transform: scale(1.05);
}
.nudge-btn[hidden] { display: none !important; }
.motivation-btn {
  max-width: min(100%, 180px);
  padding: 0.4rem 0.65rem; border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.45);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.22), rgba(244, 114, 182, 0.2));
  color: #fdba74; font-size: 0.72rem; font-weight: 800; cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 14px rgba(251, 146, 60, 0.2);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}
.motivation-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.35);
  transform: translateY(-1px);
}
.motivation-btn:active { transform: scale(0.96); }
.motivation-btn[hidden] { display: none !important; }

.couple-showcase-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem;
}
.academy-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem; padding: 1.1rem 1.2rem;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(244, 114, 182, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(145deg, rgba(30, 12, 40, 0.72), rgba(12, 18, 34, 0.78));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.academy-hero-copy strong {
  display: block; font-size: 1.15rem; color: #fce7f3; margin-bottom: 0.25rem;
}
.academy-hero-copy p {
  margin: 0; color: rgba(252, 231, 243, 0.72); font-size: 0.88rem;
}
.academy-hero-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; flex-shrink: 0;
}
.academy-hero-badge {
  flex-shrink: 0; padding: 0.4rem 0.75rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800; color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(8, 47, 73, 0.45);
}
.academy-badges {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.3rem;
  max-width: 160px;
}
.academy-badge-chip {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; font-size: 1rem;
  border: 1px solid rgba(244, 114, 182, 0.3);
  background: rgba(88, 28, 135, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.academy-sentence-bar {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem; padding: 0.75rem 0.95rem;
  border: 1px solid rgba(244, 114, 182, 0.25);
  background: rgba(40, 12, 44, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.academy-sentence-label {
  flex-shrink: 0; font-size: 0.72rem; font-weight: 800; color: #f9a8d4;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.academy-sentence-text {
  flex: 1; min-width: 0; margin: 0;
  font-size: 0.95rem; font-weight: 700; color: #fce7f3; line-height: 1.35;
}
.academy-sentence-speak {
  width: 44px; height: 44px; min-width: 44px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(88, 28, 135, 0.35); color: #f9a8d4; font-size: 1.05rem;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.academy-sentence-speak:hover {
  border-color: rgba(251, 113, 133, 0.55);
  transform: scale(1.04);
}
.academy-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem;
}
.academy-quiz-card { grid-column: 1 / -1; position: relative; }
.academy-card {
  border: 1px solid rgba(244, 114, 182, 0.22);
  background:
    linear-gradient(160deg, rgba(36, 14, 48, 0.55), rgba(14, 18, 34, 0.62));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.academy-count {
  font-size: 0.8rem; font-weight: 800; color: #f9a8d4;
  font-variant-numeric: tabular-nums;
}
.academy-complete-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-bottom: 0.75rem; padding: 0.45rem 0.75rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 800; color: #064e3b;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  box-shadow: 0 8px 18px rgba(52, 211, 153, 0.25);
}
.academy-complete-badge[hidden] { display: none !important; }
.academy-word-list {
  list-style: none; margin: 0 0 0.85rem; padding: 0; display: grid; gap: 0.45rem;
  max-height: 240px; overflow: auto;
}
.academy-word-item {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.65rem 0.75rem; border-radius: 12px;
  border: 1px solid rgba(244, 114, 182, 0.2);
  background: rgba(18, 8, 28, 0.45);
}
.academy-word-main {
  display: flex; align-items: center; gap: 0.55rem; min-width: 0; flex: 1;
}
.academy-word-doodle-thumb {
  width: 36px; height: 36px; min-width: 36px; border-radius: 8px; object-fit: cover;
  border: 1px solid rgba(244, 114, 182, 0.3); background: #1a0b1f;
}
.academy-word-item strong { color: #fce7f3; font-size: 0.9rem; }
.academy-word-item .academy-word-tr { color: #f9a8d4; font-size: 0.84rem; font-weight: 650; }
.academy-word-actions {
  display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0;
}
.academy-word-tool,
.academy-word-del {
  width: 36px; height: 36px; min-width: 36px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid rgba(244, 114, 182, 0.3);
  background: rgba(88, 28, 135, 0.28); color: #f9a8d4; font-size: 0.95rem;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}
.academy-word-tool:hover {
  border-color: rgba(251, 113, 133, 0.5);
  transform: scale(1.05);
}
.academy-word-tool.is-listening {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(6, 78, 59, 0.4);
  animation: wordSpeakPulse 0.9s ease-in-out infinite;
}
.academy-word-tool.is-ok {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(6, 78, 59, 0.45);
  color: #6ee7b7;
}
.academy-word-ok {
  font-size: 1rem; line-height: 1;
}
.academy-word-del {
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.28); color: #fecaca;
}
.academy-word-form {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.5rem;
}
.academy-word-form input {
  min-height: 44px; padding: 0.65rem 0.8rem; border-radius: 12px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: rgba(10, 8, 20, 0.55); color: var(--text); outline: none;
}
.academy-word-form input:focus {
  border-color: rgba(244, 114, 182, 0.55);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.14);
}
.academy-word-form button {
  min-height: 44px; padding: 0.65rem 0.95rem; border: none; border-radius: 999px;
  cursor: pointer; font-weight: 800; color: #3b0764;
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
}
.academy-word-form.is-locked,
.academy-word-form:disabled {
  opacity: 0.45; pointer-events: none;
}
.academy-locked-note {
  margin: 0.65rem 0 0; font-size: 0.8rem; color: #6ee7b7; font-weight: 700;
}
.academy-locked-note[hidden] { display: none !important; }
.academy-checklist { display: grid; gap: 0.55rem; }
.academy-check {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.75rem 0.85rem; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.2);
  background: rgba(18, 8, 28, 0.4);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.academy-check:hover {
  border-color: rgba(244, 114, 182, 0.4);
  background: rgba(88, 28, 135, 0.18);
}
.academy-check input {
  width: 20px; height: 20px; min-width: 20px; margin-top: 0.1rem; accent-color: #f9a8d4;
}
.academy-check span {
  color: rgba(252, 231, 243, 0.9); font-size: 0.9rem; font-weight: 650; line-height: 1.4;
  transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
}
.academy-check:has(input:checked) {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(6, 78, 59, 0.22);
}
.academy-check:has(input:checked) span {
  text-decoration: line-through;
  text-decoration-color: rgba(110, 231, 183, 0.7);
  opacity: 0.62;
}
.academy-quiz-hint {
  margin: 0 0 0.85rem; color: var(--muted); font-size: 0.88rem; line-height: 1.45;
}
.academy-quiz-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
}
.academy-quiz-btn { width: auto; min-width: 180px; }
.academy-quiz-btn:disabled {
  opacity: 0.45; cursor: not-allowed; filter: grayscale(0.3);
}
.academy-vault-btn {
  margin-left: auto;
  min-height: 44px; padding: 0.65rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(8, 47, 73, 0.45);
  color: #7dd3fc; font-weight: 800; font-size: 0.84rem;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.academy-vault-btn:hover { filter: brightness(1.08); }
.academy-vault-btn:active { transform: scale(0.97); }
.academy-vault-modal,
.academy-doodle-modal {
  width: min(560px, 100%);
  display: flex; flex-direction: column; gap: 0.95rem;
  padding: 1.15rem 1.2rem 1.2rem; border-radius: 22px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background:
    radial-gradient(ellipse 80% 55% at 8% 0%, rgba(244, 114, 182, 0.2), transparent 55%),
    linear-gradient(160deg, rgba(28, 14, 48, 0.94), rgba(12, 18, 34, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  max-height: min(86vh, 720px);
}
.academy-vault-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem; overflow-y: auto; min-height: 0; max-height: 55vh;
}
.academy-vault-item {
  display: grid; gap: 0.35rem; padding: 0.7rem; border-radius: 14px; text-align: center;
  border: 1px solid rgba(244, 114, 182, 0.25);
  background: rgba(18, 8, 28, 0.45);
}
.academy-vault-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #1a0b1f;
}
.academy-vault-item strong { color: #fce7f3; font-size: 0.88rem; }
.academy-vault-item span { color: #f9a8d4; font-size: 0.8rem; font-weight: 650; }
.academy-vault-empty {
  text-align: center; padding: 2rem 1rem; color: rgba(252, 231, 243, 0.6); font-style: italic;
}
.academy-vault-empty[hidden] { display: none !important; }
#academy-doodle-canvas {
  width: 100%; max-height: min(42vh, 280px); border-radius: 16px; touch-action: none; cursor: crosshair;
  background: #1a0b1f; border: 1px solid rgba(244, 114, 182, 0.28);
}
.academy-doodle-actions {
  display: flex; justify-content: flex-end; gap: 0.5rem;
}
.academy-quiz-backdrop {
  z-index: 98;
  background: rgba(12, 4, 20, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.academy-quiz-backdrop[hidden] { display: none !important; }
.academy-quiz-backdrop.show { display: flex !important; }
.academy-quiz-modal {
  width: min(460px, 100%);
  display: flex; flex-direction: column; gap: 0.95rem;
  padding: 1.15rem 1.2rem 1.2rem; border-radius: 22px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background:
    radial-gradient(ellipse 80% 55% at 8% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(244, 114, 182, 0.2), transparent 50%),
    linear-gradient(160deg, rgba(28, 14, 48, 0.94), rgba(12, 18, 34, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.academy-quiz-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
.academy-quiz-head h3 { margin: 0 0 0.2rem; color: #e0f2fe; font-size: 1.05rem; }
.academy-quiz-progress {
  font-size: 0.78rem; font-weight: 800; color: #7dd3fc;
}
.academy-quiz-prompt {
  margin: 0; padding: 0.9rem 1rem; border-radius: 14px;
  font-size: 1.15rem; font-weight: 800; color: #fce7f3; text-align: center;
  border: 1px solid rgba(244, 114, 182, 0.25);
  background: rgba(18, 8, 28, 0.45);
}
.academy-quiz-options { display: grid; gap: 0.55rem; }
.academy-quiz-option {
  min-height: 48px; padding: 0.75rem 1rem; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: rgba(88, 28, 135, 0.22);
  color: #fce7f3; font-weight: 750; font-size: 0.95rem; text-align: left;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}
.academy-quiz-option:hover {
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(8, 47, 73, 0.35);
}
.academy-quiz-option:active { transform: scale(0.98); }
.academy-quiz-option.is-correct {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(6, 78, 59, 0.4); color: #a7f3d0;
}
.academy-quiz-option.is-wrong {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.35); color: #fecaca;
}
.academy-quiz-footer { display: flex; justify-content: flex-end; }
.academy-confetti {
  position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden;
}
.academy-confetti-piece {
  position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 2px;
  animation: academyConfettiFall linear forwards;
  opacity: 0.95;
}
@keyframes academyConfettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0.15; }
}
@media (max-width: 900px) {
  .academy-grid { grid-template-columns: 1fr; }
  .academy-word-form { grid-template-columns: 1fr; }
}

.word-card { margin-bottom: 0; }
.word-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 0.75rem;
}
.word-grid label,
.word-field { display: grid; gap: 0.35rem; }
.word-grid span,
.word-field > span {
  font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase;
}
.word-input-wrap {
  position: relative; display: flex; align-items: center; width: 100%;
}
.word-grid input {
  width: 100%; padding: 0.75rem 3.1rem 0.75rem 0.85rem; border-radius: 10px;
  border: 1px solid var(--line-soft); background: rgba(6,10,18,0.55); color: var(--text); outline: none;
}
.word-grid input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.word-speak-btn {
  position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; min-width: 44px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: rgba(88, 28, 135, 0.35);
  color: #f9a8d4; font-size: 1.05rem; line-height: 1;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.word-speak-btn:hover {
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(157, 23, 77, 0.32);
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.22);
}
.word-speak-btn:active { transform: translateY(-50%) scale(0.94); }
.word-speak-btn.is-speaking {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(6, 78, 59, 0.45);
  color: #6ee7b7;
  animation: wordSpeakPulse 0.9s ease-in-out infinite;
}
@keyframes wordSpeakPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(52, 211, 153, 0); }
  50% { box-shadow: 0 0 14px rgba(52, 211, 153, 0.35); }
}
#word-save.is-saved {
  background: linear-gradient(135deg, #6ee7b7, #34d399) !important;
  color: #064e3b !important;
  border-color: transparent !important;
}

.creation-card { margin-bottom: 0; }
.creation-preview-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: 16px; overflow: hidden; margin-bottom: 0.75rem;
  border: 1px solid var(--line-soft);
  background: rgba(6, 10, 18, 0.55);
}
.creation-preview {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.creation-preview[hidden] { display: none !important; }
.creation-preview-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: 0.88rem; font-style: italic; padding: 1rem; text-align: center;
}
.creation-preview-empty[hidden] { display: none !important; }
.creation-url-label {
  display: grid; gap: 0.35rem; margin-bottom: 0.75rem;
}
.creation-url-label span {
  font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase;
}
.creation-url-label input {
  width: 100%; padding: 0.75rem 0.85rem; border-radius: 10px;
  border: 1px solid var(--line-soft); background: rgba(6,10,18,0.55); color: var(--text); outline: none;
}
.creation-url-label input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }

.flight-fund {
  margin: 0 0 1rem;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(167, 139, 250, 0.1)),
    rgba(6, 10, 18, 0.45);
}
.flight-fund-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.flight-fund-top strong {
  font-size: 0.92rem; color: #7dd3fc; font-weight: 800;
}
.flight-fund-pct {
  font-size: 0.85rem; font-weight: 800; color: #fde68a;
  font-variant-numeric: tabular-nums;
}
.flight-fund-track {
  position: relative; height: 16px; border-radius: 999px; overflow: visible;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.flight-fund-fill {
  position: relative; height: 100%; width: 0%; min-width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #a78bfa 55%, #f472b6);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  transition: width 0.55s ease;
}
.flight-fund-plane {
  position: absolute; right: -0.15rem; top: 50%;
  transform: translate(40%, -50%) rotate(12deg);
  font-size: 1.15rem; line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  animation: flightPlaneBob 1.8s ease-in-out infinite;
}
@keyframes flightPlaneBob {
  0%, 100% { transform: translate(40%, -50%) rotate(12deg); }
  50% { transform: translate(40%, calc(-50% - 3px)) rotate(18deg); }
}

.couple-goals .goal-item {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.85rem;
  border-radius: 12px; background: rgba(6,10,18,0.45); border: 1px solid var(--line-soft); margin-bottom: 0.55rem;
}
.couple-goals .goal-item.done { border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); }
.couple-composer { display: flex; gap: 0.55rem; margin-top: 0.8rem; }
.couple-composer button {
  padding: 0.85rem 1rem; border: none; border-radius: 12px; cursor: pointer; font-weight: 700;
  color: #041018; background: linear-gradient(135deg, var(--primary), var(--accent));
}

.heart-layer {
  pointer-events: none; position: fixed; inset: 0; z-index: 96; overflow: hidden;
}
.rocket-layer {
  pointer-events: none; position: fixed; inset: 0; z-index: 97; overflow: hidden;
}
.rocket-particle {
  position: absolute; left: 50%; bottom: -8%;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  animation: rocketBlast 1.7s ease-out forwards;
  filter: drop-shadow(0 0 10px rgba(251, 146, 60, 0.45));
}
@keyframes rocketBlast {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.6) rotate(0deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -115vh) scale(1.15) rotate(var(--rot, 18deg)); }
}
.float-heart {
  position: absolute; font-size: 1.25rem; animation: heartFly 1.35s ease-out forwards;
  filter: drop-shadow(0 0 8px rgba(244, 114, 182, 0.55));
}
@keyframes heartFly {
  0% { opacity: 0; transform: translateY(0) scale(0.6) rotate(-10deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-140px) scale(1.25) rotate(18deg); }
}

.profile-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 920px;
}
.profile-hero-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1.1rem;
  align-items: start;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, color-mix(in srgb, var(--primary-color, var(--primary)) 18%, transparent), transparent 55%),
    var(--card);
}
.profile-avatar-btn {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--primary-color, var(--primary)) 55%, transparent);
  background: rgba(6, 10, 18, 0.55);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color, var(--primary)) 12%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-avatar-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px color-mix(in srgb, var(--primary-color, var(--primary)) 35%, transparent);
}
.profile-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
}
.profile-avatar-edit {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  background: rgba(6, 10, 18, 0.85);
  border: 1px solid var(--line);
}
.profile-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}
.profile-hero-meta > strong {
  font-size: 1.15rem;
  color: var(--primary-color, var(--primary));
}
.profile-xp { max-width: 260px; }
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--muted);
}
.profile-field select,
.profile-field input[type="text"],
.profile-field input[type="date"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(6, 10, 18, 0.55);
  color: var(--text);
  font: inherit;
}
.profile-meetup-card #profile-meetup-date,
.profile-meetup-card input[type="date"]#profile-meetup-date {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #94a3b8;
  color-scheme: light;
  caret-color: #000000;
}
.profile-meetup-card #profile-meetup-date:hover {
  border-color: var(--primary-color, #38bdf8);
}
.profile-meetup-card #profile-meetup-date:focus {
  outline: none;
  border-color: var(--primary-color, #38bdf8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  background: #ffffff !important;
  color: #000000 !important;
}
.profile-meetup-card #profile-meetup-date::-webkit-calendar-picker-indicator {
  opacity: 0.75;
  cursor: pointer;
  filter: none;
}
.profile-field select:focus,
.profile-field input:focus {
  outline: none;
  border-color: var(--primary-color, var(--primary));
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.profile-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.profile-crop-modal.show {
  display: flex;
}
.profile-crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.profile-crop-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 28, 48, 0.62);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  overflow: hidden;
}
.profile-crop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-crop-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}
.profile-crop-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 10, 18, 0.35);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.profile-crop-stage {
  height: min(58vh, 420px);
  background: rgba(0, 0, 0, 0.28);
}
.profile-crop-stage img {
  display: block;
  max-width: 100%;
}
.profile-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0.95rem 1.1rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-crop-cancel {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
}
.profile-crop-modal .cropper-container,
.profile-crop-modal .cropper-wrap-box,
.profile-crop-modal .cropper-canvas,
.profile-crop-modal .cropper-drag-box,
.profile-crop-modal .cropper-crop-box,
.profile-crop-modal .cropper-modal {
  z-index: auto;
}
.profile-crop-modal .cropper-view-box,
.profile-crop-modal .cropper-face {
  border-radius: 50%;
}
.profile-crop-modal .cropper-view-box {
  outline: 0;
  box-shadow: 0 0 0 1px #39f;
}
body.profile-crop-open {
  overflow: hidden;
}
.profile-meetup-card,
.profile-theme-card {
  min-height: 100%;
}
.profile-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.profile-cd-unit {
  text-align: center;
  padding: 0.75rem 0.4rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.45);
}
.profile-cd-unit strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--primary-color, var(--primary));
  font-variant-numeric: tabular-nums;
}
.profile-cd-unit span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile-swatches {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding-top: 0.35rem;
}
.profile-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 0 0 0 transparent;
}
.profile-swatch:hover { transform: scale(1.08); }
.profile-swatch.active {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, var(--primary)) 45%, transparent);
  border-color: #fff;
}
.profile-swatch.swatch-blue { background: radial-gradient(circle at 30% 30%, #7dd3fc, #2563eb); }
.profile-swatch.swatch-pink { background: radial-gradient(circle at 30% 30%, #fda4af, #ec4899); }
.profile-swatch.swatch-purple { background: radial-gradient(circle at 30% 30%, #d8b4fe, #8b5cf6); }
.profile-password-card {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}
.profile-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.profile-accordion-toggle strong { display: block; font-size: 0.95rem; }
.profile-accordion-toggle small { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.78rem; }
.profile-accordion-chevron {
  color: var(--muted);
  transition: transform 0.2s ease;
}
.profile-password-card.is-open .profile-accordion-chevron { transform: rotate(180deg); }
.profile-accordion-body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid var(--line-soft);
}
.profile-accordion-body .password-form { max-width: 360px; margin-top: 0.85rem; }

body.accent-blue {
  --primary-color: #38bdf8;
  --primary: #38bdf8;
  --accent: #7dd3fc;
  --neon: #38bdf8;
  --primary-dim: rgba(56, 189, 248, 0.14);
  --line: rgba(56, 189, 248, 0.22);
}
body.accent-pink {
  --primary-color: #f472b6;
  --primary: #f472b6;
  --accent: #fb7185;
  --neon: #f472b6;
  --primary-dim: rgba(244, 114, 182, 0.14);
  --line: rgba(244, 114, 182, 0.22);
}
body.accent-purple {
  --primary-color: #a78bfa;
  --primary: #a78bfa;
  --accent: #c084fc;
  --neon: #a78bfa;
  --primary-dim: rgba(167, 139, 250, 0.14);
  --line: rgba(167, 139, 250, 0.22);
}

@media (max-width: 760px) {
  .profile-shell { grid-template-columns: 1fr; }
  .profile-hero-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profile-hero-meta { align-items: center; width: 100%; }
  .profile-xp { max-width: none; width: 100%; }
  .profile-countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.modal-backdrop, .fatigue-overlay, .zen-overlay {
  display: none; position: fixed; inset: 0; z-index: 80;
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop { background: rgba(0,0,0,0.62); }
.modal-backdrop.show, .fatigue-overlay.show, .zen-overlay.show { display: flex; }
.modal {
  width: 100%; max-width: 460px; background: #121c30; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); padding: 1.25rem;
}
.modal h3 { margin-bottom: 1rem; color: var(--accent); }
.modal-field { margin-bottom: 0.85rem; }
.modal-field textarea { min-height: 100px; resize: vertical; }
.modal-actions { display: flex; gap: 0.55rem; justify-content: flex-end; margin-top: 0.5rem; }
.modal-actions button {
  padding: 0.65rem 1rem; border-radius: 10px; border: 1px solid var(--line-soft);
  background: transparent; color: var(--text); cursor: pointer;
}
.modal-actions .save {
  border: none; font-weight: 700; color: #041018;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.link-preview { display: inline-block; margin-top: 0.35rem; color: var(--accent); font-size: 0.82rem; word-break: break-all; }

.zen-overlay {
  z-index: 95; background: radial-gradient(circle at center, #0a1220 0%, #02040a 70%);
  flex-direction: column; gap: 1.5rem; text-align: center;
}
.zen-title { font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--muted); max-width: 720px; padding: 0 1rem; }
.zen-timer {
  font-size: clamp(4rem, 16vw, 8rem); font-weight: 800; letter-spacing: 0.04em;
  color: var(--neon); text-shadow: 0 0 40px color-mix(in srgb, var(--neon) 45%, transparent);
  font-variant-numeric: tabular-nums;
}
.zen-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }
.zen-actions button {
  padding: 0.8rem 1.2rem; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); color: var(--text); cursor: pointer;
}
.zen-actions .danger { border-color: rgba(251,113,133,0.4); color: var(--danger); }

.fatigue-overlay {
  z-index: 92; background: rgba(2,4,10,0.72); backdrop-filter: blur(6px);
}
.fatigue-card {
  max-width: 420px; text-align: center; padding: 1.6rem 1.4rem;
  border-radius: 18px; border: 1px solid rgba(251,191,36,0.35);
  background: rgba(18, 28, 48, 0.95); box-shadow: 0 0 40px rgba(251,191,36,0.15);
  animation: fatigueIn 0.45s ease;
}
@keyframes fatigueIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.fatigue-card .emoji { font-size: 2.2rem; margin-bottom: 0.6rem; animation: pulse 1.5s infinite; }
.fatigue-card h3 { color: var(--warn); margin-bottom: 0.45rem; }
.fatigue-card p { color: var(--muted); margin-bottom: 1rem; line-height: 1.45; }
.fatigue-card button {
  padding: 0.7rem 1.1rem; border: none; border-radius: 10px; cursor: pointer; font-weight: 700;
  color: #041018; background: linear-gradient(135deg, #fbbf24, #fb923c);
}

.lofi-dock {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 9999;
}
.lofi-dock.is-chat-embedded {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 9999 !important;
  overflow: visible;
}
.lofi-dock.is-chat-embedded .lofi-toggle {
  width: 40px; height: 40px; min-width: 40px; border-radius: 12px;
  font-size: 1rem;
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(88, 28, 135, 0.42);
  color: #f9a8d4;
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.18);
}
.lofi-dock.is-chat-embedded .lofi-toggle.playing {
  border-color: rgba(244, 114, 182, 0.65);
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.35);
}
.lofi-dock.is-chat-embedded .lofi-panel {
  position: absolute;
  right: 0; bottom: auto; top: calc(100% + 8px);
  width: min(300px, calc(100vw - 2rem));
  z-index: 9999 !important;
  border-color: rgba(244, 114, 182, 0.28);
  background: rgba(28, 10, 32, 0.97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.lofi-toggle {
  width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(14,22,38,0.95); color: var(--primary); cursor: pointer;
  box-shadow: var(--shadow); font-size: 1.2rem;
}
.lofi-toggle.playing {
  border-color: var(--primary);
  box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 35%, transparent);
}
.lofi-panel {
  display: none; position: absolute; right: 0; bottom: 62px; width: 280px;
  padding: 1rem; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(14,22,38,0.97); box-shadow: var(--shadow);
  z-index: 9999 !important;
}
.lofi-panel.open { display: block; }
.lofi-panel h4 { font-size: 0.88rem; margin-bottom: 0.75rem; color: var(--accent); }
.radio-now-wrap {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem; min-width: 0;
}
.radio-live-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: #64748b;
}
.lofi-toggle.playing ~ .lofi-panel .radio-live-dot,
.radio-dock.is-playing .radio-live-dot {
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.65);
  animation: pulse 1.6s infinite;
}
.lofi-now {
  flex: 1; min-width: 0; font-size: 0.86rem; color: var(--text); font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.lofi-now.is-error {
  color: #fb7185; font-weight: 700;
}
.radio-select {
  display: none;
}
.radio-station-list {
  width: 100%; max-height: min(42vh, 220px); overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  margin-bottom: 0.85rem; padding: 0.35rem;
  border-radius: 12px; border: 1px solid var(--line-soft);
  background: rgba(6,10,18,0.75); scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--primary) 45%, transparent) transparent;
}
.radio-station-list::-webkit-scrollbar { width: 6px; }
.radio-station-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 40%, transparent); border-radius: 999px;
}
.radio-station-item {
  width: 100%; text-align: left; display: block;
  padding: 0.7rem 0.8rem; margin-bottom: 0.25rem;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--text); cursor: pointer;
  font-size: 0.86rem; font-weight: 600; line-height: 1.3;
}
.radio-station-item:last-child { margin-bottom: 0; }
.radio-station-item:hover {
  background: var(--primary-dim); border-color: var(--line-soft); color: var(--primary);
}
.radio-station-item.active {
  background: var(--primary-dim); border-color: var(--primary); color: var(--primary);
}
.lofi-panel.radio-panel {
  width: min(300px, calc(100vw - 1.4rem));
  max-height: min(78vh, 560px); overflow: visible;
}
.radio-controls {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.radio-icon-btn, .radio-play-btn {
  border: 1px solid var(--line-soft); background: rgba(6,10,18,0.65);
  color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: 0.15s ease;
}
.radio-icon-btn {
  width: 42px; height: 42px; border-radius: 12px; font-size: 0.95rem;
}
.radio-play-btn {
  width: 52px; height: 52px; border-radius: 16px; font-size: 1.05rem;
  border-color: var(--line); color: #041018;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 25%, transparent);
}
.radio-icon-btn:hover {
  border-color: var(--primary); color: var(--primary); background: var(--primary-dim);
}
.radio-play-btn:hover { filter: brightness(1.06); }
.lofi-volume-row {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--muted); font-size: 0.75rem;
}
.lofi-volume-row input[type="range"] { flex: 1; accent-color: var(--primary); }

.toast {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 90;
  min-width: 240px; max-width: 360px; padding: 0.9rem 1rem;
  border-radius: 12px; border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(14, 22, 38, 0.96); box-shadow: var(--shadow);
  color: var(--text); transform: translateY(20px); opacity: 0;
  pointer-events: none; transition: 0.25s ease;
}
.toast.show { transform: none; opacity: 1; }
.toast strong { display: block; color: var(--success); margin-bottom: 0.2rem; }
.toast span { color: var(--muted); font-size: 0.85rem; }
.toast.success {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(10, 28, 24, 0.96);
}
.toast.success strong { color: var(--success); }
.toast.error {
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(36, 14, 22, 0.96);
}
.toast.error strong { color: var(--danger); }

.password-form {
  display: grid; gap: 0.75rem; max-width: 360px;
}
.password-form .form-group { margin-bottom: 0; }
.password-form .btn-primary {
  width: auto; min-width: 160px; margin-top: 0.1rem;
}
.password-form .btn-primary:disabled {
  opacity: 0.55; cursor: not-allowed;
}

/* sidebar-overlay base rules defined near .sidebar */
body.zen-active .sidebar,
body.zen-active .topbar,
body.zen-active .lofi-dock,
body.zen-active .toast,
body.zen-active .chat-toast { display: none !important; }

body.focus-room-active .sidebar,
body.focus-room-active .topbar {
  opacity: 0.06; filter: blur(2px); pointer-events: none; transition: opacity 0.45s ease, filter 0.45s ease;
}
body.focus-room-active .content { position: relative; z-index: 20; }
body.focus-room-active .lofi-dock { opacity: 0.35; }
body.focus-room-active .lofi-dock:hover { opacity: 1; }

body.zen-mode-active .sidebar,
body.zen-mode-active .topbar { display: none !important; }

/* ===== Odak Odası: yıldızlı çerçevede kusursuz ortalama ===== */
body:has(#view-focus.active) #app-screen.active {
  display: flex !important;
  flex-direction: row;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
body:has(#view-focus.active) .main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
body:has(#view-focus.active) .content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  padding: 0.75rem 1rem 1rem;
  overflow: hidden;
}
#view-focus.active {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
#odak-modu-container {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  z-index: auto;
}
#odak-modu-container .focus-room {
  position: relative !important;
  flex: 1 1 auto;
  width: 100%;
  height: 100% !important;
  min-height: calc(100dvh - 8.5rem) !important;
  display: block !important;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}
#odak-modu-container .focus-room > :not(.focus-stack) {
  position: absolute !important;
}
#odak-modu-container .focus-room > .focus-ambient,
#odak-modu-container .focus-room > .focus-glow,
#odak-modu-container .focus-room > .focus-theme-fx {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  pointer-events: none !important;
}
#odak-modu-container .focus-room > .focus-partner-badge {
  position: absolute !important;
  top: 0.4rem !important;
  right: 0.45rem !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  width: max-content !important;
  max-width: 42vw !important;
  z-index: 40 !important;
  pointer-events: none !important;
}
#odak-modu-container .focus-stack {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  flex: none !important;
  width: min(560px, calc(100% - 2.5rem)) !important;
  max-width: min(560px, calc(100% - 2.5rem)) !important;
  height: auto !important;
  max-height: calc(100% - 2rem) !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 1.35rem !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
}
#odak-modu-container .focus-stack > * {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  float: none !important;
  clear: both !important;
  grid-area: unset !important;
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
}
#odak-modu-container .focus-label {
  display: block !important;
  margin: 0 !important;
}
#odak-modu-container .focus-task-select {
  width: min(420px, 100%) !important;
  margin: 0 auto !important;
}
#odak-modu-container .focus-phase-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.85rem !important;
  margin: 0 !important;
}
#odak-modu-container .focus-clock {
  display: flex !important;
  width: 100% !important;
  justify-content: center !important;
  align-items: baseline !important;
  margin: 0.2rem 0 !important;
}
#odak-modu-container .focus-strict-toggle {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 auto !important;
  float: none !important;
}
#odak-modu-container .focus-cycle-wrap,
#odak-modu-container .focus-task-name,
#odak-modu-container .focus-progress-wrap,
#odak-modu-container .focus-actions {
  width: min(420px, 100%) !important;
  margin: 0 auto !important;
}
#odak-modu-container .focus-menu-btn {
  display: none;
}
body.focus-overlay-open .main,
body.focus-overlay-open .content,
body.focus-overlay-open #view-focus {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  contain: none !important;
  clip-path: none !important;
  overflow: visible !important;
}
#odak-modu-container.fullscreen-focus-active,
#odak-modu-container:fullscreen,
#odak-modu-container:-webkit-full-screen {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  min-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  z-index: 99999 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  background:
    radial-gradient(ellipse 70% 55% at 20% 15%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(167, 139, 250, 0.12), transparent 50%),
    linear-gradient(145deg, #07101d 0%, #0b1526 45%, #0a1220 100%) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
#odak-modu-container.fullscreen-focus-active .focus-room,
#odak-modu-container:fullscreen .focus-room,
#odak-modu-container:-webkit-full-screen .focus-room,
.focus-room:fullscreen,
.focus-room:-webkit-full-screen {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
#odak-modu-container.fullscreen-focus-active .focus-room > :not(.focus-stack) {
  position: absolute !important;
  z-index: 1;
  pointer-events: none;
}
#odak-modu-container.fullscreen-focus-active .focus-ambient,
#odak-modu-container.fullscreen-focus-active .focus-glow,
#odak-modu-container.fullscreen-focus-active .focus-theme-fx {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
#odak-modu-container.fullscreen-focus-active .focus-partner-badge {
  top: max(0.85rem, env(safe-area-inset-top, 0px)) !important;
  right: max(0.85rem, env(safe-area-inset-right, 0px)) !important;
  left: auto !important;
  bottom: auto !important;
  inset: auto !important;
  margin: 0 !important;
  pointer-events: auto !important;
  z-index: 5 !important;
}
#odak-modu-container.fullscreen-focus-active .focus-stack,
#odak-modu-container:fullscreen .focus-stack,
#odak-modu-container:-webkit-full-screen .focus-stack,
.focus-room:fullscreen .focus-stack,
.focus-room:-webkit-full-screen .focus-stack {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  width: min(560px, 90vw) !important;
  max-width: min(560px, 90vw) !important;
  height: auto !important;
  max-height: calc(100dvh - 2.5rem) !important;
  min-height: 0 !important;
  flex: none !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(1rem, 2.6vh, 1.6rem) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
}
#odak-modu-container.fullscreen-focus-active .focus-stack > * {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
  justify-self: center !important;
  grid-area: unset !important;
  width: 100%;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
}
#odak-modu-container.fullscreen-focus-active .focus-label {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}
#odak-modu-container.fullscreen-focus-active .focus-task-select {
  width: min(420px, 100%) !important;
  margin: 0 auto !important;
}
#odak-modu-container.fullscreen-focus-active .focus-phase-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.85rem !important;
  width: 100% !important;
  margin: 0 !important;
}
#odak-modu-container.fullscreen-focus-active .focus-clock {
  display: flex !important;
  width: 100% !important;
  justify-content: center !important;
  align-items: baseline !important;
  margin: 0.15rem 0 !important;
  font-size: clamp(3.6rem, 12vw, 7.5rem) !important;
}
#odak-modu-container.fullscreen-focus-active .focus-strict-toggle {
  display: inline-flex !important;
  margin: 0 auto !important;
  align-self: center !important;
}
#odak-modu-container.fullscreen-focus-active .focus-cycle-wrap,
#odak-modu-container.fullscreen-focus-active .focus-task-name,
#odak-modu-container.fullscreen-focus-active .focus-progress-wrap {
  width: min(420px, 100%) !important;
  margin: 0 auto !important;
}
#odak-modu-container.fullscreen-focus-active .focus-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: min(420px, 100%) !important;
  margin: 0.15rem auto 0 !important;
  gap: 0.75rem !important;
}
#odak-modu-container.fullscreen-focus-active .focus-menu-btn,
#odak-modu-container:fullscreen .focus-menu-btn,
#odak-modu-container:-webkit-full-screen .focus-menu-btn {
  display: inline-grid !important;
  place-items: center !important;
  position: absolute !important;
  top: max(0.55rem, env(safe-area-inset-top, 0px)) !important;
  left: max(0.55rem, env(safe-area-inset-left, 0px)) !important;
  right: auto !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(94, 234, 212, 0.35) !important;
  background: rgba(6, 10, 18, 0.88) !important;
  color: var(--text) !important;
  z-index: 10040 !important;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
#odak-modu-container.fullscreen-focus-active .focus-menu-btn:hover,
#odak-modu-container:fullscreen .focus-menu-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}
.focus-close-x {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 400;
}
body.focus-overlay-open {
  overflow: hidden !important;
}
body.focus-overlay-open .lofi-dock {
  z-index: 10050 !important;
  pointer-events: auto !important;
}
body.focus-overlay-open .toast,
body.focus-overlay-open .chat-toast,
body.focus-overlay-open .modal-backdrop,
body.focus-overlay-open .focus-theme-backdrop {
  z-index: 10060 !important;
  pointer-events: auto !important;
}

/* Odak Odası = tüm sayfa sayaç (sidebar/topbar yok; menü hamburger) */
body.focus-immersive,
body.focus-immersive.zen-mode-active {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
body.focus-immersive #app-screen,
body.focus-immersive.zen-mode-active #app-screen {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  overflow: hidden !important;
  z-index: 40 !important;
}
body.focus-immersive .main,
body.focus-immersive .content,
body.focus-immersive #view-focus,
body.focus-immersive .focus-room,
body.focus-immersive .odak-modu-container {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
body.focus-immersive .content {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
}
body.focus-immersive #view-focus {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
}
body.focus-immersive .view:not(#view-focus) { display: none !important; }

/* Sol menü: tamamen kapalı, sadece hamburger ile açılır */
body.focus-immersive .sidebar,
body.focus-immersive.zen-mode-active .sidebar {
  display: flex !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: min(var(--sidebar-w), 86vw) !important;
  height: 100dvh !important;
  transform: translateX(-105%) !important;
  z-index: 200 !important;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
  box-shadow: var(--shadow);
  overflow-y: auto !important;
}
body.focus-immersive.sidebar-open .sidebar,
body.focus-immersive.zen-mode-active.sidebar-open .sidebar {
  transform: translateX(0) !important;
}
body.focus-immersive.sidebar-open .sidebar-overlay {
  display: block !important;
  z-index: 190 !important;
}

/* Üst bar: sadece kare menü; Odak Odası / TR / EN / Sabah / @berat YOK */
body.focus-immersive .topbar,
body.focus-immersive.zen-mode-active .topbar {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: 210 !important;
  padding: max(0.5rem, env(safe-area-inset-top, 0px)) 0 0 max(0.5rem, env(safe-area-inset-left, 0px)) !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  pointer-events: none !important;
}
body.focus-immersive .topbar-right,
body.focus-immersive .page-title,
body.focus-immersive .page-sub,
body.focus-immersive .lang-switch,
body.focus-immersive .shift-wrap,
body.focus-immersive .topbar-left > div:not(:has(#menu-toggle)) {
  display: none !important;
}
body.focus-immersive .topbar-left {
  display: flex !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.focus-immersive .menu-toggle,
body.focus-immersive.zen-mode-active .menu-toggle {
  display: inline-grid !important;
  place-items: center !important;
  pointer-events: auto !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(94, 234, 212, 0.4) !important;
  background: rgba(6, 10, 18, 0.88) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  color: var(--text) !important;
}

body.focus-immersive .focus-room {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding:
    max(1rem, env(safe-area-inset-top, 0px))
    1rem
    max(1rem, env(safe-area-inset-bottom, 0px)) !important;
  gap: 0 !important;
  box-sizing: border-box !important;
}
body.focus-immersive .focus-stack {
  width: 100% !important;
  height: auto !important;
  max-width: min(640px, 100%) !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
  margin: auto !important;
  overflow: hidden !important;
}
body.focus-immersive .focus-clock {
  font-size: clamp(3rem, 12vw, 7rem) !important;
  margin: 0 !important;
  line-height: 0.95 !important;
}
body.focus-immersive .lofi-dock,
body.focus-immersive.zen-mode-active .lofi-dock {
  display: block !important;
  position: fixed !important;
  right: 1rem !important;
  bottom: 1rem !important;
  left: auto !important;
  z-index: 180 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.zen-mode-active #app-screen {
  display: block !important;
  width: 100%; max-width: 100vw;
  min-height: 100vh; min-height: 100dvh;
  height: 100vh; height: 100dvh;
  overflow-x: hidden; overflow-y: auto;
}
body.zen-mode-active .main {
  width: 100%; max-width: 100vw;
  min-height: 100vh; min-height: 100dvh;
  height: 100%; overflow-x: hidden;
}
body.zen-mode-active .content {
  padding: 0 !important;
  min-height: 100vh; min-height: 100dvh;
  height: 100%;
  display: flex; align-items: stretch; justify-content: center;
  overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.zen-mode-active .view:not(#view-focus) { display: none !important; }
body.zen-mode-active #view-focus {
  display: flex !important;
  width: 100%; max-width: 100vw;
  min-height: 100vh; min-height: 100dvh;
  height: 100%;
  align-items: stretch; justify-content: center;
  overflow-x: hidden;
}
body.zen-mode-active .focus-room {
  width: 100%; max-width: 100vw;
  min-height: 100vh; min-height: 100dvh;
  height: 100%;
  max-height: 100dvh;
  padding: clamp(0.75rem, 3vh, 2rem) clamp(0.5rem, 3vw, 1.5rem);
  gap: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation-duration: 28s;
  border-radius: 0;
}
body.zen-mode-active .focus-stack {
  width: 100%;
  height: auto;
  max-width: min(640px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.15rem;
  flex: 0 0 auto;
}
body.zen-mode-active .focus-task-select {
  width: 100%; max-width: min(520px, 100%);
  font-size: clamp(0.9rem, 2.6vw, 1.1rem);
  padding: 0.85rem 2.4rem 0.85rem 1rem;
}
body.zen-mode-active .focus-phase {
  font-size: clamp(0.75rem, 2.2vw, 1rem); letter-spacing: 0.14em; margin-top: 0;
}
body.zen-mode-active .focus-clock {
  font-size: clamp(3.2rem, 16vw, 8.5rem);
  margin: 0;
  font-weight: 900;
  max-width: 100%;
  overflow: hidden;
}
body.zen-mode-active.focus-room-active .focus-room,
body.focus-room-active.zen-mode-active .focus-room {
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(37, 99, 235, 0.28), transparent 60%),
    radial-gradient(ellipse 70% 55% at 75% 80%, rgba(124, 58, 237, 0.26), transparent 58%),
    linear-gradient(160deg, #030712 0%, #0b122e 45%, #160824 100%);
}
body.zen-mode-active .focus-cycle-label { font-size: clamp(0.85rem, 2.4vw, 1.05rem); }
body.zen-mode-active .focus-dot { width: 12px; height: 12px; }
body.zen-mode-active .focus-task-name {
  font-size: clamp(0.9rem, 2.8vw, 1.15rem);
  max-width: 100%;
  padding: 0 0.25rem;
  overflow-wrap: anywhere;
}
body.zen-mode-active .focus-progress-wrap { width: 100%; max-width: min(420px, 100%); }
body.zen-mode-active .focus-actions {
  width: 100%;
  max-width: min(420px, 100%);
}
body.zen-mode-active .focus-start-btn,
body.zen-mode-active .focus-ctrl-btn {
  min-height: clamp(44px, 6vh, 52px);
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  padding: 0.75rem 1.25rem;
}
body.zen-mode-active .lofi-dock,
body.focus-room-active.zen-mode-active .lofi-dock {
  display: block !important;
  position: fixed !important;
  right: 1rem; bottom: 1rem; left: auto;
  width: max-content !important;
  height: max-content !important;
  z-index: 60 !important;
  opacity: 1 !important; pointer-events: none !important;
  filter: none !important;
  background: transparent !important;
}
body.zen-mode-active .lofi-panel {
  z-index: 70;
}
body.zen-mode-active .focus-fs-btn.is-active {
  border-color: var(--primary); color: var(--primary); background: var(--primary-dim);
}

.focus-phase-row {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 0.85rem;
  flex-wrap: wrap; width: min(520px, 100%);
  max-width: 100%;
  margin: 0;
}
.focus-fs-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 36px; padding: 0.4rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--line-soft); background: rgba(6,10,18,0.55);
  color: var(--muted); cursor: pointer; font-size: 0.78rem; font-weight: 650;
}
.focus-fs-btn:hover {
  border-color: var(--primary); color: var(--primary); background: var(--primary-dim);
}
.focus-fs-icon { font-size: 0.95rem; line-height: 1; }

.focus-stack {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
  min-height: 0;
  margin: auto;
  padding: 0;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.focus-room {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  gap: 0;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 55% at 20% 15%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(167, 139, 250, 0.12), transparent 50%),
    linear-gradient(145deg, #07101d 0%, #0b1526 45%, #0a1220 100%);
  background-size: 160% 160%, 160% 160%, 100% 100%;
  animation: focusGradientDrift 22s ease-in-out infinite alternate;
  transition: background 1.1s ease, filter 0.8s ease;
}
@keyframes focusGradientDrift {
  0% { background-position: 0% 40%, 100% 60%, 0 0; }
  50% { background-position: 40% 20%, 60% 80%, 0 0; }
  100% { background-position: 80% 70%, 20% 30%, 0 0; }
}
.focus-room.is-running,
body.focus-room-active .focus-room {
  background:
    radial-gradient(ellipse 75% 55% at 25% 20%, rgba(37, 99, 235, 0.22), transparent 58%),
    radial-gradient(ellipse 65% 50% at 80% 75%, rgba(124, 58, 237, 0.2), transparent 55%),
    linear-gradient(155deg, #050816 0%, #0a1028 42%, #12081f 100%);
  animation-duration: 34s;
}
.focus-ambient {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.focus-orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.35;
  animation: focusOrbFloat 18s ease-in-out infinite;
}
.focus-orb-a {
  width: 220px; height: 220px; left: -40px; top: 12%;
  background: rgba(56, 189, 248, 0.45); animation-duration: 20s;
}
.focus-orb-b {
  width: 280px; height: 280px; right: -60px; bottom: 8%;
  background: rgba(167, 139, 250, 0.38); animation-duration: 26s; animation-delay: -6s;
}
.focus-orb-c {
  width: 160px; height: 160px; left: 42%; top: 58%;
  background: rgba(94, 234, 212, 0.28); animation-duration: 16s; animation-delay: -3s;
}
.focus-room.is-running .focus-orb-a { background: rgba(59, 130, 246, 0.4); }
.focus-room.is-running .focus-orb-b { background: rgba(139, 92, 246, 0.42); }
.focus-room.is-running .focus-orb-c { background: rgba(99, 102, 241, 0.28); }
@keyframes focusOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -22px, 0) scale(1.08); }
}
.focus-particle {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(226, 232, 240, 0.55);
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.35);
  animation: focusParticleDrift 14s linear infinite;
}
.focus-particle.p1 { left: 12%; top: 70%; animation-duration: 16s; }
.focus-particle.p2 { left: 28%; top: 25%; animation-duration: 19s; animation-delay: -4s; }
.focus-particle.p3 { left: 55%; top: 18%; animation-duration: 13s; animation-delay: -2s; }
.focus-particle.p4 { left: 72%; top: 48%; animation-duration: 21s; animation-delay: -7s; }
.focus-particle.p5 { left: 84%; top: 78%; animation-duration: 17s; animation-delay: -1s; }
.focus-particle.p6 { left: 40%; top: 82%; animation-duration: 15s; animation-delay: -9s; }
@keyframes focusParticleDrift {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  15% { opacity: 0.7; }
  85% { opacity: 0.45; }
  100% { transform: translateY(-120px) scale(1.15); opacity: 0; }
}
.focus-room.phase-work .focus-glow {
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--primary) 24%, transparent), transparent 70%);
}
.focus-room.phase-short .focus-glow,
.focus-room.phase-long .focus-glow {
  background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.28), transparent 70%);
}
.focus-glow {
  position: absolute; inset: 14% 18% auto; height: 46%; z-index: 0;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%);
  pointer-events: none; filter: blur(8px); transition: background 0.8s ease;
}
.focus-label {
  position: relative; z-index: 1; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(148, 163, 184, 0.85); font-weight: 700;
  margin: 0;
}
.focus-task-select {
  position: relative; z-index: 1; width: min(420px, 100%);
  appearance: none; -webkit-appearance: none;
  padding: 0.95rem 2.6rem 0.95rem 1.1rem; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(6,10,18,0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9bb8' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 1rem center;
  color: var(--text); font-size: 1rem; outline: none; cursor: pointer; font-weight: 650;
}
.focus-task-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim);
}
.focus-phase {
  position: relative; z-index: 1;
  margin: 0; font-size: 0.88rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); font-weight: 800;
  transition: color 0.35s ease;
}
.focus-room.phase-idle .focus-phase,
.focus-room.phase-work .focus-phase { color: var(--primary); }
.focus-room.phase-short .focus-phase,
.focus-room.phase-long .focus-phase { color: #34d399; }
.focus-clock {
  position: relative; z-index: 1;
  display: inline-flex; align-items: baseline; justify-content: center; gap: 0.02em;
  font-size: clamp(3.4rem, 14vw, 8rem); font-weight: 900; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums; line-height: 1;
  color: var(--text);
  text-shadow: 0 0 40px color-mix(in srgb, var(--primary) 28%, transparent);
  margin: 0.35rem 0;
  max-width: 100%;
  transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.8s ease;
}
.focus-clock-mins, .focus-clock-secs, .focus-clock-colon { display: inline-block; }
.focus-clock-colon {
  width: 0.45em; text-align: center; opacity: 1;
  transition: opacity 0.15s ease;
}
.focus-clock-colon.blink-off { opacity: 0.15; }
.focus-clock.is-pulsing {
  animation: focusBreath 3.2s ease-in-out infinite;
}
@keyframes focusBreath {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 28px color-mix(in srgb, var(--primary) 25%, transparent);
  }
  50% {
    transform: scale(1.035);
    text-shadow:
      0 0 28px color-mix(in srgb, var(--primary) 55%, transparent),
      0 0 60px color-mix(in srgb, var(--accent) 35%, transparent);
  }
}
.focus-room.phase-work .focus-clock,
body.focus-room-active .focus-room.phase-work .focus-clock {
  color: var(--primary);
}
.focus-room.phase-short .focus-clock,
.focus-room.phase-long .focus-clock,
body.focus-room-active .focus-room.phase-short .focus-clock,
body.focus-room-active .focus-room.phase-long .focus-clock {
  color: #34d399;
}
.focus-cycle-wrap {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
}
.focus-cycle-label {
  font-size: 0.85rem; color: var(--muted); font-weight: 700; letter-spacing: 0.04em;
}
.focus-dots {
  display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; justify-content: center;
  max-width: min(420px, 100%);
}
.focus-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(94, 234, 212, 0.35);
  background: transparent;
  box-shadow: inset 0 0 0 0 transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}
.focus-dot.filled {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 45%, transparent);
  transform: scale(1.08);
}
.focus-task-name {
  position: relative; z-index: 1; max-width: 520px;
  font-size: clamp(0.95rem, 2.2vw, 1.12rem); line-height: 1.45;
  min-height: 1.5em; transition: color 0.25s ease, opacity 0.25s ease;
}
.focus-task-name.is-hint {
  color: rgba(148, 163, 184, 0.72); font-style: italic; font-weight: 500;
}
.focus-task-name.is-task {
  color: var(--text); font-style: normal; font-weight: 800;
}
.focus-progress-wrap {
  position: relative; z-index: 1; width: min(360px, 100%);
  margin: 0;
}
.focus-progress-top {
  display: flex; justify-content: space-between; gap: 0.5rem;
  font-size: 0.78rem; color: var(--muted); margin-bottom: 0.4rem;
}
.focus-progress-top strong { color: var(--text); font-weight: 800; }
.focus-progress-track {
  height: 10px; border-radius: 999px; overflow: hidden;
  background: rgba(6,10,18,0.75); border: 1px solid var(--line-soft);
}
.focus-progress-fill {
  height: 100%; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.45s ease;
}
.focus-actions {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center; align-items: center;
  margin: 0;
  width: 100%;
  max-width: min(420px, 100%);
}
.focus-start-btn {
  min-height: 52px; padding: 0.9rem 1.8rem; border: none; border-radius: 999px;
  cursor: pointer; font-weight: 800; font-size: 1rem;
  color: #041018; background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 28%, transparent);
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.focus-start-btn:hover { filter: brightness(1.05); }
.focus-start-btn:active,
.focus-start-btn.is-pressed {
  transform: scale(0.92); filter: brightness(0.95);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 22%, transparent);
}
.focus-start-btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; box-shadow: none; }
.focus-ctrl-btn {
  min-height: 48px; padding: 0.75rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(6,10,18,0.65);
  color: var(--text); cursor: pointer; font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.focus-ctrl-btn:active { transform: scale(0.96); }
.focus-working-btn {
  border-color: rgba(99, 102, 241, 0.45); color: #a5b4fc;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(124, 58, 237, 0.18));
  animation: focusWorkingGlow 2.8s ease-in-out infinite;
}
@keyframes focusWorkingGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(99, 102, 241, 0); }
  50% { box-shadow: 0 0 22px rgba(99, 102, 241, 0.28); }
}
.focus-ctrl-btn.danger { border-color: rgba(251,113,133,0.4); color: var(--danger); }
.focus-ctrl-btn[hidden], .focus-start-btn[hidden] { display: none !important; }

.focus-partner-badge {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.4rem;
  max-width: min(280px, calc(100% - 1.5rem));
  padding: 0.38rem 0.7rem; border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 12, 22, 0.42);
  backdrop-filter: blur(10px);
  color: rgba(203, 213, 225, 0.72);
  font-size: 0.72rem; font-weight: 600;
  opacity: 0.72; transition: opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}
.focus-partner-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: rgba(148, 163, 184, 0.55);
  box-shadow: none; transition: background 0.3s ease, box-shadow 0.3s ease;
}
.focus-partner-handle { font-weight: 800; letter-spacing: 0.02em; }
.focus-partner-status {
  font-style: italic; font-weight: 500; opacity: 0.85;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.focus-partner-badge.is-active {
  opacity: 1; color: #fce7f3;
  border-color: rgba(244, 114, 182, 0.45);
  box-shadow: 0 0 18px rgba(244, 114, 182, 0.28), inset 0 0 12px rgba(244, 114, 182, 0.08);
  animation: focusPartnerPulse 2.4s ease-in-out infinite;
}
.focus-partner-badge.is-active .focus-partner-dot {
  background: #fb7185;
  box-shadow: 0 0 10px rgba(251, 113, 133, 0.85);
}
@keyframes focusPartnerPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(244, 114, 182, 0.2); }
  50% { box-shadow: 0 0 22px rgba(244, 114, 182, 0.42); }
}

.focus-strict-toggle {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0; cursor: pointer; user-select: none;
  font-size: 0.82rem; font-weight: 700; color: rgba(248, 250, 252, 0.82);
}
.focus-strict-toggle input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.focus-strict-ui {
  width: 38px; height: 22px; border-radius: 999px; flex-shrink: 0;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  position: relative; transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.focus-strict-ui::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #e2e8f0;
  transition: transform 0.25s ease, background 0.25s ease;
}
.focus-strict-toggle input:checked + .focus-strict-ui {
  background: linear-gradient(135deg, #ea580c, #e11d48);
  border-color: transparent;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.35);
}
.focus-strict-toggle input:checked + .focus-strict-ui::after {
  transform: translateX(16px); background: #fff7ed;
}
.focus-strict-label { letter-spacing: 0.01em; }

.focus-clock.is-distracted {
  color: #fb7185 !important;
  text-shadow:
    0 0 24px rgba(251, 113, 133, 0.55),
    0 0 48px rgba(225, 29, 72, 0.35) !important;
  animation: focusDistractPulse 1.1s ease-in-out infinite;
}
@keyframes focusDistractPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.focus-rest-tip {
  position: relative; z-index: 1;
  margin: 0.15rem 0 0.35rem; max-width: 420px;
  padding: 0.55rem 0.9rem; border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(6, 78, 59, 0.18);
  color: rgba(167, 243, 208, 0.92);
  font-size: 0.92rem; font-style: italic; font-weight: 500;
  line-height: 1.4; text-align: center;
  animation: focusRestIn 0.45s ease;
}
.focus-rest-tip[hidden] { display: none !important; }
@keyframes focusRestIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.focus-note-modal { max-width: 420px; width: min(420px, 92vw); }
.focus-note-sub {
  margin: -0.35rem 0 0.9rem; color: var(--muted);
  font-size: 0.88rem; font-style: italic; line-height: 1.4;
}
.focus-note-modal .modal-field input {
  width: 100%; min-height: 46px; font-size: 0.95rem;
}

.focus-burned-overlay {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
.focus-burned-overlay[hidden] { display: none !important; }
.focus-burned-card {
  width: min(380px, 92vw); text-align: center;
  padding: 1.6rem 1.35rem; border-radius: 20px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: linear-gradient(160deg, rgba(40, 10, 18, 0.96), rgba(12, 10, 18, 0.96));
  box-shadow: 0 20px 50px rgba(225, 29, 72, 0.22);
  animation: focusRestIn 0.35s ease;
}
.focus-burned-flame { font-size: 2.4rem; margin-bottom: 0.35rem; filter: drop-shadow(0 0 12px rgba(251,113,133,0.55)); }
.focus-burned-card strong {
  display: block; font-size: 1.35rem; font-weight: 900;
  color: #fda4af; letter-spacing: 0.02em; margin-bottom: 0.45rem;
}
.focus-burned-card p {
  color: rgba(254, 226, 226, 0.78); font-size: 0.9rem;
  font-style: italic; line-height: 1.45; margin-bottom: 1.1rem;
}
.focus-burned-card button {
  min-height: 44px; padding: 0.65rem 1.35rem; border-radius: 999px;
  border: none; cursor: pointer; font-weight: 800;
  color: #1f0a0d; background: linear-gradient(135deg, #fb7185, #f97316);
}

@media (max-width: 1024px) {
  .focus-room {
    min-height: 0;
    height: 100%;
    padding: 1.15rem 0.85rem;
    gap: 0;
    justify-content: center !important;
    align-items: center !important;
  }
  .focus-stack {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    flex: 0 0 auto !important;
    gap: 1rem;
    justify-content: center !important;
    align-items: center !important;
    margin: auto;
  }
  .focus-phase-row {
    flex-direction: column;
    width: 100%;
    gap: 0.45rem;
  }
  .focus-phase-actions {
    width: 100%;
    justify-content: center;
  }
  .focus-task-select,
  .focus-progress-wrap,
  .focus-task-name,
  .focus-actions {
    width: 100%;
    max-width: 100%;
  }
  .focus-clock {
    font-size: clamp(3rem, 12vw, 6.2rem);
  }
  body.zen-mode-active .focus-room {
    justify-content: center !important;
    padding: 0.85rem 0.75rem;
  }
  body.zen-mode-active .focus-clock {
    font-size: clamp(3rem, 13vw, 6.5rem);
  }
  .planner-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
  }
  .planner-toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .planner-kanban,
  .planner-kanban-full {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .planner-kanban .kanban-col,
  .planner-kanban-full .kanban-col {
    width: 100%;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  html { font-size: clamp(13px, 3.2vw, 15px); }
  body:has(#view-focus.active) .content {
    padding: 0.55rem 0.55rem 0.75rem;
  }
  #view-focus,
  .focus-room,
  .odak-modu-container,
  body.zen-mode-active .focus-room,
  body.zen-mode-active #view-focus,
  body.zen-mode-active .content {
    overflow: hidden !important;
    max-width: 100%;
  }
  .focus-room {
    min-height: 0;
    height: 100%;
    padding: 1rem 0.65rem;
    gap: 0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center !important;
  }
  .focus-stack {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    flex: 0 0 auto !important;
    gap: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center !important;
    margin: auto;
  }
  .focus-label { font-size: 0.62rem; }
  .focus-task-select {
    width: 100%;
    padding: 0.55rem 2rem 0.55rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 12px;
  }
  .focus-phase-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.28rem;
    margin: 0;
  }
  .focus-phase {
    font-size: clamp(0.62rem, 2.8vw, 0.72rem);
    letter-spacing: 0.08em;
    margin-top: 0;
  }
  .focus-phase-actions {
    width: 100%;
    justify-content: center;
    gap: 0.28rem;
  }
  .focus-fs-btn {
    min-height: 30px;
    padding: 0.22rem 0.5rem;
    font-size: 0.66rem;
    gap: 0.25rem;
  }
  .focus-fs-icon { font-size: 0.78rem; }
  .focus-clock {
    font-size: clamp(2rem, 14vw, 3.25rem) !important;
    margin: 0 !important;
    line-height: 0.95;
    max-width: 100%;
  }
  .focus-cycle-wrap {
    gap: 0.28rem;
    width: 100%;
    align-items: center;
  }
  .focus-cycle-label { font-size: 0.68rem; }
  .focus-dot { width: 9px; height: 9px; }
  .focus-task-name {
    font-size: clamp(0.78rem, 3.2vw, 0.92rem);
    min-height: 0;
    max-width: 100%;
  }
  .focus-progress-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .focus-progress-top { font-size: 0.65rem; margin-bottom: 0.25rem; }
  .focus-progress-track { height: 8px; }
  .focus-actions {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    gap: 0.35rem;
    width: 100%;
  }
  .focus-start-btn,
  .focus-ctrl-btn {
    min-height: 42px;
    width: 100%;
    max-width: 100%;
    font-size: 0.88rem;
    padding: 0.55rem 0.85rem;
  }
  .focus-orb-a, .focus-orb-b { opacity: 0.22; }
  .focus-partner-badge {
    position: absolute !important;
    top: 0.55rem !important;
    right: 0.45rem !important;
    left: auto !important;
    margin: 0 !important;
    align-self: auto;
    font-size: 0.62rem;
    padding: 0.22rem 0.45rem;
    max-width: min(220px, calc(100% - 1rem));
  }
  .focus-partner-status { max-width: 140px; }
  body.zen-mode-active .focus-room {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    padding: 0.45rem 0.55rem 0.65rem;
    gap: 0;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
  }
  body.zen-mode-active .focus-stack {
    height: 100%;
    gap: 0.18rem;
    justify-content: center !important;
    align-items: center !important;
  }
  body.zen-mode-active .focus-clock,
  body.focus-mobile-immersive .focus-clock {
    font-size: min(18vh, 22vw, 3.5rem) !important;
  }
  body.zen-mode-active .focus-start-btn,
  body.zen-mode-active .focus-ctrl-btn,
  body.focus-mobile-immersive .focus-start-btn,
  body.focus-mobile-immersive .focus-ctrl-btn {
    width: 100%;
    min-height: 42px;
    font-size: 0.88rem;
    padding: 0.55rem 0.85rem;
  }
  body.zen-mode-active .focus-actions,
  body.focus-mobile-immersive .focus-actions {
    flex-direction: column;
  }

  .lofi-dock:not(.is-chat-embedded) .lofi-panel,
  .lofi-dock:not(.is-chat-embedded) .lofi-panel.radio-panel,
  body.zen-mode-active .lofi-panel,
  body.focus-room-active .lofi-panel {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: 0 !important;
    bottom: calc(100% + 10px) !important;
    transform: none !important;
    width: min(280px, calc(100vw - 1.25rem)) !important;
    max-width: min(280px, calc(100vw - 1.25rem)) !important;
    max-height: calc(100dvh - 5.5rem) !important;
    padding: 0.65rem 0.7rem !important;
    margin: 0 !important;
    z-index: 70 !important;
  }
  .lofi-dock:not(.is-chat-embedded) {
    right: 0.65rem;
    bottom: 0.65rem;
    left: auto;
  }
  body.zen-mode-active .lofi-dock:not(.is-chat-embedded) {
    right: 0.65rem;
    bottom: 0.65rem;
    left: auto;
  }
  .radio-station-list { max-height: min(32vh, 160px); margin-bottom: 0.55rem; }
  .radio-controls { margin-bottom: 0.55rem; gap: 0.4rem; }
  .radio-icon-btn { width: 38px; height: 38px; }
  .radio-play-btn { width: 46px; height: 46px; }

  .toast,
  .toast.show {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    max-width: 90vw !important;
    min-width: 0 !important;
    padding: 0.65rem 0.75rem !important;
    margin: 0 !important;
    z-index: 2147483010 !important;
  }
  .toast:not(.show) {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .toast.show { opacity: 1 !important; }

  .chat-toast,
  .chat-toast.show {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    max-width: 90vw !important;
    min-width: 0 !important;
    padding: 0.6rem 0.7rem !important;
    margin: 0 !important;
    z-index: 2147483011 !important;
  }
  .chat-toast:not(.show) {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .chat-toast.show {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .chat-toast-ico { font-size: 1.1rem; }
  .chat-toast-copy strong { font-size: 0.82rem; }
  .chat-toast-copy span { font-size: 0.72rem; white-space: normal; }

  .planner-shell { gap: 0.55rem; }
  .planner-toolbar-copy h2 { font-size: 1rem; }
  .planner-toolbar-copy p { font-size: 0.7rem; }
  .week-strip-grid {
    grid-template-columns: 1fr;
  }
  .week-day { min-height: 56px; width: 100%; }
}

/* placeholder: phone landscape handled in final block below */

/* ===== Physical Fitness Modules ===== */
.split-bar {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem;
}
.split-day-btn {
  flex: 1 1 auto; min-width: 64px; padding: 0.55rem 0.45rem;
  border-radius: 12px; border: 1px solid var(--line-soft);
  background: rgba(6,10,18,0.55); color: var(--muted); cursor: pointer;
  text-align: center; transition: 0.15s ease;
}
.split-day-btn strong { display: block; font-size: 0.82rem; color: var(--text); }
.split-day-btn span { display: block; font-size: 0.68rem; margin-top: 0.15rem; }
.split-day-btn.active {
  border-color: var(--primary); background: var(--primary-dim); color: var(--primary);
  box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 20%, transparent);
}
.split-day-btn.active strong { color: var(--primary); }

.fitness-badges h3 {
  margin-bottom: 0.75rem; color: var(--accent); font-size: 0.95rem;
}

.dash-water-card h3, .dash-nutrition-card h3 {
  margin-bottom: 0.85rem; color: var(--accent); font-size: 0.95rem;
}
.dash-water-card, .dash-nutrition-card { height: 100%; }
.water-drops {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.45rem;
}
.water-drop-btn {
  appearance: none; border: none; background: transparent; cursor: pointer;
  padding: 0.25rem; display: grid; place-items: center;
}
.water-drop-btn:disabled { cursor: not-allowed; opacity: 0.55; }
.water-drop {
  width: 34px; height: 42px; position: relative;
  display: block;
}
.water-drop svg { width: 100%; height: 100%; display: block; overflow: visible; }
.water-drop .drop-outline {
  fill: rgba(6, 10, 18, 0.65);
  stroke: rgba(56, 189, 248, 0.35);
  stroke-width: 1.5;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
  transition: stroke 0.25s ease;
}
.water-drop .drop-fill {
  fill: #38bdf8;
  transform-origin: 16px 38px;
  transform: scaleY(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), fill 0.25s ease;
}
.water-drop-btn.filled .drop-fill { fill: #7dd3fc; }
.water-drop-btn.filled .drop-outline {
  stroke: rgba(56, 189, 248, 0.85);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35));
}
.water-drop-btn.filled .drop-fill { transform: scaleY(1); }
.water-drop-btn:hover .drop-outline { stroke: rgba(125, 211, 252, 0.8); }
.water-meta { margin-top: 0.7rem; color: var(--muted); font-size: 0.8rem; }

.dash-macro-row { margin-bottom: 0.85rem; }
.dash-macro-row:last-child { margin-bottom: 0; }
.dash-macro-top {
  display: flex; justify-content: space-between; gap: 0.5rem;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 0.35rem;
}
.dash-macro-top strong { color: var(--text); font-weight: 650; }
.dash-macro-track {
  height: 9px; border-radius: 999px; overflow: hidden;
  background: rgba(6,10,18,0.85); border: 1px solid var(--line-soft);
}
.dash-macro-fill {
  height: 100%; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #4ade80);
  transition: width 0.4s ease;
}
.dash-macro-fill.protein {
  background: linear-gradient(90deg, #f472b6, #c084fc);
}

.week-cal-chart {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.55rem; align-items: end;
  min-height: 140px;
}
.week-cal-col {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem; height: 100%;
}
.week-cal-bar-wrap {
  flex: 1; width: 100%; min-height: 90px; display: flex; align-items: flex-end;
  background: rgba(6,10,18,0.45); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 0.35rem; overflow: hidden;
}
.week-cal-bar {
  width: 100%; border-radius: 7px 7px 4px 4px; min-height: 4px;
  background: linear-gradient(180deg, #7dd3fc, #22c55e);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
  transition: height 0.35s ease;
}
.week-cal-bar.over {
  background: linear-gradient(180deg, #fb7185, #f43f5e);
  box-shadow: 0 0 12px rgba(251, 113, 133, 0.25);
}
.week-cal-col .day { font-size: 0.72rem; color: var(--muted); font-weight: 650; }
.week-cal-col .val {
  font-size: 0.68rem; color: var(--text);
  display: inline-flex; align-items: center; gap: 0.22rem;
}
.week-cal-col .val .energy-emoji {
  font-size: 0.72rem; line-height: 1; filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.25));
}
.week-cal-col.active .day { color: var(--primary); }

.nutrition-form {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.85fr 0.85fr auto;
  gap: 0.55rem; position: relative; align-items: stretch;
}
.food-search-wrap { position: relative; grid-column: 1 / -1; z-index: 5; }
.food-search-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.55rem; align-items: stretch;
}
.nutrition-form input[type="number"],
.nutrition-form input[type="text"],
.nutrition-select {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px;
  border: 1px solid var(--line-soft); background: rgba(6,10,18,0.75); color: var(--text); outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.nutrition-select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem;
}
.nutrition-form input:focus,
.nutrition-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.food-db-add-btn {
  padding: 0.85rem 1rem; border-radius: 12px; cursor: pointer; font-weight: 800; font-size: 0.86rem;
  white-space: nowrap; border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.28), rgba(67, 56, 202, 0.22));
  box-shadow: 0 0 0 rgba(56, 189, 248, 0);
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, color 0.2s ease;
}
.food-db-add-btn:hover {
  border-color: rgba(94, 234, 212, 0.55); color: #a5f3fc; filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.18);
}
.food-db-add-btn:active { transform: scale(0.96); }
.cheat-check {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 0.75rem; border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  background: rgba(124, 45, 18, 0.18);
  color: #fdba74; font-size: 0.82rem; font-weight: 700; cursor: pointer; user-select: none;
  grid-column: 1 / 3;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cheat-check:hover { border-color: rgba(251, 146, 60, 0.5); background: rgba(154, 52, 18, 0.28); }
.cheat-check input {
  width: 16px; height: 16px; accent-color: #f97316; cursor: pointer; flex-shrink: 0;
}
.nutrition-form button[type="submit"] {
  padding: 0.85rem 1.1rem; border: none; border-radius: 12px; cursor: pointer; font-weight: 700;
  color: #041018; background: linear-gradient(135deg, var(--primary), var(--accent)); white-space: nowrap;
  grid-column: 3 / -1;
  transition: transform 0.18s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.nutrition-form button[type="submit"]:hover { filter: brightness(1.06); box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 28%, transparent); }
.nutrition-form button[type="submit"]:active { transform: scale(0.97); }
.food-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  max-height: 260px; overflow-y: auto; border-radius: 14px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: linear-gradient(160deg, rgba(10, 16, 28, 0.98), rgba(12, 18, 34, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.06) inset;
  backdrop-filter: blur(10px);
  animation: foodSuggestIn 0.18s ease;
}
@keyframes foodSuggestIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.food-suggest[hidden] { display: none !important; }
.food-suggest-item {
  width: 100%; text-align: left; padding: 0.78rem 0.95rem;
  border: none; border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: transparent; color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
.food-suggest-item:last-child { border-bottom: none; }
.food-suggest-item:hover,
.food-suggest-item.is-active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.14), rgba(124, 58, 237, 0.1));
  color: #7dd3fc; padding-left: 1.1rem;
}
.food-suggest-item .food-suggest-name {
  font-weight: 700; font-size: 0.92rem;
}
.food-suggest-item small,
.food-suggest-item .food-suggest-cal {
  color: rgba(148, 163, 184, 0.9); font-size: 0.78rem; font-weight: 650;
  padding: 0.2rem 0.55rem; border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(6, 10, 18, 0.55); white-space: nowrap;
}
.food-db-modal { max-width: 420px; width: min(420px, 92vw); }
.food-db-sub {
  margin: -0.35rem 0 1rem; color: var(--muted);
  font-size: 0.88rem; font-style: italic; line-height: 1.4;
}
.food-db-modal .modal-actions .save {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #041018; border: none;
  transition: filter 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}
.food-db-modal .modal-actions .save:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 28%, transparent);
}
.food-db-modal .modal-actions button {
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}
.food-db-modal .modal-actions button:hover {
  border-color: var(--primary); color: var(--primary);
}
.food-db-modal .modal-actions button:active,
.food-db-modal .modal-actions .save:active { transform: scale(0.97); }

.quick-meals {
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem;
}
.quick-meal-btn {
  padding: 0.45rem 0.75rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(6,10,18,0.55); color: var(--text); cursor: pointer; font-size: 0.82rem;
  transition: 0.15s ease;
}
.quick-meal-btn:hover {
  border-color: var(--primary); color: var(--primary); background: var(--primary-dim);
}

.meals-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
}
.meals-title-wrap { min-width: 0; }
.meals-title-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem 0.65rem; margin-bottom: 0.15rem;
}
.meals-title-row strong { display: inline; }
.clean-eat-badge {
  display: inline-flex; align-items: center; gap: 0.28rem;
  padding: 0.28rem 0.65rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.01em;
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.4);
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.45), rgba(6, 78, 59, 0.35));
  box-shadow: 0 0 0 rgba(74, 222, 128, 0);
  animation: cleanBadgeGlow 2.4s ease-in-out infinite;
}
.clean-eat-badge[hidden] { display: none !important; }
@keyframes cleanBadgeGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(74, 222, 128, 0.18); }
  50% { box-shadow: 0 0 18px rgba(74, 222, 128, 0.42); }
}
.date-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.date-nav-btn {
  padding: 0.45rem 0.7rem; border-radius: 999px; border: 1px solid var(--line-soft);
  background: rgba(6,10,18,0.55); color: var(--muted); cursor: pointer; font-size: 0.8rem;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}
.date-nav-btn:hover, .date-nav-btn.today {
  border-color: var(--primary); color: var(--primary); background: var(--primary-dim);
}
.date-nav-btn.copy-yesterday {
  border-color: rgba(56, 189, 248, 0.35); color: #7dd3fc;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.25), rgba(67, 56, 202, 0.18));
  font-weight: 750;
}
.date-nav-btn.copy-yesterday:hover {
  border-color: rgba(94, 234, 212, 0.55); color: #a5f3fc;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.16);
}
.date-nav-btn.copy-yesterday:active { transform: scale(0.96); }

.meals-scroll {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain; padding-bottom: 0.15rem;
}
.meal-cards { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
.meal-card {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem 0.95rem; border-radius: 12px;
  background: rgba(6,10,18,0.55); border: 1px solid var(--line-soft);
}
.meal-card-main { min-width: 0; flex: 1; }
.meal-card-name {
  display: block; font-size: 0.95rem; color: var(--text);
  word-break: break-word; margin-bottom: 0.3rem;
}
.meal-card-macros {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.75rem;
  color: var(--muted); font-size: 0.8rem;
}
.meal-card-macros span {
  padding: 0.15rem 0.5rem; border-radius: 999px;
  border: 1px solid var(--line-soft); background: rgba(6,10,18,0.45);
}
.meal-card-macros .tag-cheat {
  border-color: rgba(249, 115, 22, 0.4); color: #fdba74; background: rgba(154, 52, 18, 0.25);
}
.meal-card-macros .tag-energy-energetic { border-color: rgba(250, 204, 21, 0.35); color: #fde68a; }
.meal-card-macros .tag-energy-balanced { border-color: rgba(74, 222, 128, 0.35); color: #86efac; }
.meal-card-macros .tag-energy-heavy { border-color: rgba(147, 197, 253, 0.35); color: #93c5fd; }
.nutrition-total-card.lifestyle strong.fasting-clock {
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
.nutrition-total-card .lifestyle-meta {
  display: block; margin-top: 0.55rem; color: var(--muted); font-size: 0.8rem; font-weight: 650;
}
.nutrition-total-card .cheat-left {
  color: #fdba74; font-weight: 800;
}
.nutrition-total-card .cheat-left.zero { color: #fb7185; }
.meal-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.meal-table th, .meal-table td {
  text-align: left; padding: 0.75rem 0.55rem; border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.meal-table th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 650; }
.meal-table td { color: var(--text); }
.meal-table .meal-actions { text-align: right; }
.nutrition-totals {
  margin-top: 1rem; display: grid; grid-template-columns: 1.05fr 1.15fr 0.9fr; gap: 0.75rem;
}
.nutrition-total-card {
  padding: 0.9rem 1rem; border-radius: 12px;
  background: rgba(6,10,18,0.55); border: 1px solid var(--line);
}
.nutrition-total-card span { display: block; color: var(--muted); font-size: 0.75rem; margin-bottom: 0.25rem; }
.nutrition-total-card strong { font-size: 1.25rem; color: var(--primary); }
.nutrition-total-card.over strong { color: #fb7185; }
.nutrition-partner-card {
  display: flex; flex-direction: column; justify-content: center; gap: 0.65rem;
  background:
    linear-gradient(160deg, rgba(244, 114, 182, 0.14), rgba(56, 189, 248, 0.06)),
    rgba(6, 10, 18, 0.55);
  border-color: rgba(244, 114, 182, 0.28);
}
.nutrition-partner-head {
  display: flex; align-items: center; gap: 0.5rem;
}
.nutrition-partner-av {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 850;
  background: linear-gradient(135deg, #f472b6, #fb7185); color: #1f0a12;
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.3);
}
.nutrition-partner-head strong {
  font-size: 0.86rem; color: #fce7f3; margin: 0; font-weight: 800;
}
.nutrition-partner-status {
  font-size: 0.82rem; color: rgba(252, 231, 243, 0.78); font-style: italic; margin: 0;
}
.nudge-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-height: 38px; padding: 0.45rem 0.75rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(244, 114, 182, 0.12); color: #f9a8d4;
  font-size: 0.8rem; font-weight: 750;
  transition: transform 0.15s ease, border-color 0.18s ease, box-shadow 0.2s ease, background 0.18s ease;
}
.nudge-btn:hover {
  border-color: rgba(251, 113, 133, 0.55); background: rgba(244, 114, 182, 0.2);
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.22);
}
.nudge-btn:active { transform: scale(0.96); }
.nudge-btn.is-sent {
  color: #86efac; border-color: rgba(74, 222, 128, 0.4); background: rgba(22, 101, 52, 0.25);
}
.nutrition-goal-track {
  margin-top: 0.65rem; height: 10px; border-radius: 999px; overflow: hidden;
  background: rgba(6,10,18,0.85); border: 1px solid var(--line-soft);
}
.nutrition-goal-fill {
  height: 100%; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #4ade80);
  transition: width 0.35s ease, background 0.25s ease;
}
.nutrition-goal-fill.over {
  background: linear-gradient(90deg, #fb7185, #ef4444);
  box-shadow: 0 0 12px rgba(251, 113, 133, 0.35);
}

.composer.physical-composer {
  grid-template-columns: 1.3fr 110px 110px 120px auto auto auto;
}
.prog-toggle.active {
  color: #fb923c; border-color: rgba(251,146,60,0.45); background: rgba(251,146,60,0.12);
}

.task-card { position: relative; }
.task-card.has-night-warn { border-color: rgba(251, 113, 133, 0.35); }
.night-warn-layer {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0.85rem; border-radius: 14px;
  background: rgba(80, 10, 24, 0.55); backdrop-filter: blur(1.5px);
  color: #fecdd3; font-size: 0.84rem; line-height: 1.4; pointer-events: none;
}
.badge.prog { background: rgba(251,146,60,0.12); color: #fb923c; border-color: rgba(251,146,60,0.35); }
.badge.split { background: rgba(56,189,248,0.12); color: #7dd3fc; border-color: rgba(56,189,248,0.3); }

.fitness-badges {
  margin-top: 1.1rem; padding: 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.badge-strip {
  display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem;
}
.achieve-badge {
  flex: 0 0 140px; padding: 0.9rem 0.75rem; border-radius: 14px; text-align: center;
  border: 1px solid var(--line-soft); background: rgba(6,10,18,0.55);
  color: var(--muted); opacity: 0.55; filter: grayscale(0.8);
  transition: 0.35s ease;
}
.achieve-badge .icon { font-size: 1.6rem; margin-bottom: 0.35rem; }
.achieve-badge strong { display: block; font-size: 0.82rem; color: var(--text); margin-bottom: 0.2rem; }
.achieve-badge span { font-size: 0.72rem; }
.achieve-badge.unlocked {
  opacity: 1; filter: none;
  border-color: rgba(74, 222, 128, 0.45);
  background: linear-gradient(160deg, rgba(74,222,128,0.12), rgba(56,189,248,0.06));
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.18);
  animation: badgeUnlock 0.7s ease;
}
@keyframes badgeUnlock {
  0% { transform: scale(0.92); filter: grayscale(1); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); filter: none; }
}

@media (max-width: 1100px) {
  .composer { grid-template-columns: 1fr 1fr; }
  .composer .btn-add, .composer.physical-composer .btn-add { grid-column: 1 / -1; }
  .composer.physical-composer { grid-template-columns: 1fr 1fr; }
  .nutrition-form { grid-template-columns: 1fr 1fr; }
  .nutrition-form .food-search-wrap,
  .cheat-check,
  .nutrition-form button[type="submit"] { grid-column: 1 / -1; }
  .food-search-row { grid-template-columns: 1fr; }
  .food-db-add-btn { width: 100%; min-height: 44px; }
}

/* Tablet + mobile: off-canvas sidebar */
@media (max-width: 992px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .sidebar {
    position: fixed; left: 0; top: 0; width: min(var(--sidebar-w), 86vw);
    height: 100vh; height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: var(--shadow);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-overlay {
    display: block; backdrop-filter: blur(2px);
  }
  body.sidebar-open { overflow: hidden; }
  .main { width: 100%; max-width: 100%; }
  .dash-quick-stats { grid-template-columns: 1fr; }
  .dash-rings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.75rem; }
  .dash-bento { grid-template-columns: 1fr; }
  .bento-water, .bento-nutrition, .bento-partner,
  .bento-heatmap, .bento-ai, .bento-streak { grid-column: 1 / -1; }
  .bento-streak { grid-template-columns: 1fr; }
  .couple-grid,
  .dual-clocks,
  .couple-showcase-grid,
  .word-grid,
  .nutrition-totals { grid-template-columns: 1fr 1fr; }
  .nutrition-totals .nutrition-partner-card { grid-column: 1 / -1; }
  .settings-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .week-cal-chart { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
  .content { padding: 1rem 1rem 1.8rem; }
  .topbar { padding: 0.85rem 1rem; }
}

/* Phone: full stack, touch targets, fluid space */
@media (max-width: 768px) {
  html { font-size: clamp(13px, 3.2vw, 15px); }
  body { background-attachment: scroll; }

  .login-card { padding: 1.45rem 1.1rem; }
  .login-brand h1 { font-size: clamp(1.05rem, 5vw, 1.35rem); letter-spacing: 0.02em; }
  .login-brand p { font-size: 0.82rem; }

  .topbar {
    padding: 0.7rem 0.75rem; gap: 0.65rem;
  }
  .topbar-right {
    width: 100%; justify-content: flex-start; gap: 0.45rem;
  }
  .page-title { font-size: clamp(0.95rem, 3.5vw, 1.05rem); }
  .page-sub { font-size: 0.72rem; }
  .shift-wrap label { display: none; }
  .user-chip, .shift-badge { font-size: 0.72rem; padding: 0.45rem 0.65rem; min-height: 44px; display: inline-flex; align-items: center; }
  .lang-switch button {
    min-width: 44px; min-height: 44px; padding: 0.55rem 0.75rem;
  }
  .shift-select {
    min-height: 44px; padding: 0.55rem 2rem 0.55rem 0.75rem; font-size: 0.84rem;
  }

  .content { padding: 0.75rem 0.7rem 5.5rem; }
  .progress-panel, .card, .glass-card, .composer-wrap {
    padding: 0.85rem 0.8rem; border-radius: 14px;
  }
  .welcome { padding: 0.85rem 0.9rem; margin-bottom: 0.85rem; }
  .welcome h2 { font-size: clamp(0.95rem, 4vw, 1.05rem); }
  .welcome p { font-size: 0.84rem; }

  .dash-rings { padding: 1rem 0.65rem; }
  .stats-row,
  .couple-grid,
  .dual-clocks,
  .couple-showcase-grid,
  .word-grid,
  .nutrition-form,
  .nutrition-totals,
  .settings-grid,
  .composer,
  .composer.physical-composer { grid-template-columns: 1fr; }
  .co-focus-badge {
    top: auto; bottom: -0.55rem;
    transform: translate(-50%, 0);
  }
  @keyframes coFocusBadgePulse {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    50% { transform: translate(-50%, 0) scale(1.05); }
  }
  .nutrition-totals .nutrition-partner-card { grid-column: auto; }

  .composer .btn-add,
  .composer.physical-composer .btn-add,
  .nutrition-form button[type="submit"] { grid-column: 1 / -1; width: 100%; min-height: 44px; }

  .water-drops { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; }
  .water-drop-btn { min-width: 44px; min-height: 44px; padding: 0.35rem; }
  .water-drop { width: 36px; height: 44px; }

  .week-cal-chart {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-height: 120px; gap: 0.28rem;
  }
  .week-cal-bar-wrap { min-height: 72px; padding: 0.25rem; }
  .week-cal-col .day { font-size: 0.65rem; }
  .week-cal-col .val { font-size: 0.62rem; }

  .date-nav { width: 100%; }
  .date-nav-btn {
    flex: 1 1 auto; min-height: 44px; padding: 0.55rem 0.65rem;
  }
  .quick-meal-btn { min-height: 44px; padding: 0.55rem 0.9rem; }
  .split-day-btn { min-height: 44px; min-width: 44px; padding: 0.65rem 0.4rem; }
  .nav-btn { min-height: 44px; padding: 0.85rem 0.9rem; }
  .logout-btn { min-height: 44px; }
  .btn-primary, .archive-toggle, .couple-composer button, .sub-add button {
    min-height: 44px;
  }

  button, .icon-btn, .mic-btn, .recur-toggle {
    min-height: 44px;
  }
  .icon-btn, .mic-btn {
    width: 44px; min-width: 44px; height: 44px;
  }
  input[type="checkbox"] {
    width: 22px; height: 22px; min-width: 22px; min-height: 22px;
  }
  input[type="checkbox"]:checked::after { left: 6px; top: 2px; }
  .form-group input, .modal-field input, .modal-field textarea,
  .composer input, .composer select, .sub-add input, .couple-composer input,
  .nutrition-form input {
    min-height: 44px; padding: 0.75rem 0.9rem;
  }

  .task-board { gap: 0.6rem; }
  .task-row {
    flex-wrap: wrap; padding: 0.8rem 0.75rem; gap: 0.55rem;
  }
  .task-actions {
    width: 100%; justify-content: flex-end; flex-wrap: wrap; gap: 0.35rem;
    padding-top: 0.15rem; border-top: 1px solid var(--line-soft);
  }
  .task-title { font-size: 0.92rem; }
  .drag-handle { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
  .badge { padding: 0.35rem 0.55rem; font-size: 0.72rem; min-height: 28px; }

  .physical-board-scroll,
  .board-scroll,
  .meals-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0 -0.15rem; padding: 0.1rem 0.15rem 0.35rem;
    max-width: 100%;
  }
  .physical-board-scroll .task-board,
  .board-scroll .task-board {
    min-width: min(100%, 320px);
  }
  .meal-card { min-width: 0; padding: 0.8rem 0.85rem; }
  .meal-card .icon-btn { flex-shrink: 0; }

  .heatmap-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0 -0.2rem; padding-bottom: 0.35rem;
  }
  .heatmap-grid {
    grid-template-rows: repeat(7, 9px);
    grid-auto-columns: 9px;
    gap: 2px;
  }

  .badge-strip { gap: 0.55rem; }
  .achieve-badge { flex: 0 0 128px; }

  .lofi-dock:not(.is-chat-embedded) {
    right: 0.65rem; bottom: 0.65rem; left: auto; width: auto;
  }

  .modal {
    width: calc(100% - 1.2rem); max-width: none; margin: 0.6rem;
    max-height: calc(100vh - 1.2rem); overflow-y: auto;
  }
  .modal-actions button { min-height: 44px; flex: 1; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .topbar-right .shift-wrap { flex: 1 1 auto; }
  .shift-select { width: 100%; }
  .week-cal-col .val { font-size: 0.58rem; }
  .partner-sync-pct { font-size: 1.45rem; }
  .dash-rings { grid-template-columns: 1fr 1fr; }
}

/* ===== Couple Chat (Romantic) ===== */
body.chat-view-active {
  overflow: hidden;
}
body.chat-view-active #app-screen.active {
  height: 100vh; height: 100dvh;
  max-height: 100vh; max-height: 100dvh;
  overflow: hidden;
}
body.chat-view-active .main {
  min-height: 0; overflow: hidden;
}
body.chat-view-active .content {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  padding-bottom: 1rem;
}
#view-chat.active {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0;
  height: 100%;
  max-height: calc(100vh - 7.5rem);
  max-height: calc(100dvh - 7.5rem);
  overflow: hidden;
}
.chat-shell.romantic-chat {
  position: relative;
  flex: 1; display: flex; flex-direction: column;
  min-height: 0; height: 100%; max-height: 100%;
  padding: 0; overflow: hidden;
  border-color: rgba(244, 114, 182, 0.28) !important;
  background:
    radial-gradient(ellipse 80% 55% at 15% 10%, rgba(244, 114, 182, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 85%, rgba(168, 85, 247, 0.26), transparent 52%),
    linear-gradient(160deg, #1a0b1f 0%, #2a1035 42%, #18081f 100%) !important;
  box-shadow: 0 16px 40px rgba(157, 23, 77, 0.2), inset 0 0 0 1px rgba(244, 114, 182, 0.08);
}
.chat-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 4, 14, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.chat-lock-overlay.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.chat-lock-card {
  width: min(100%, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.45rem 1.35rem 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(28, 14, 36, 0.55);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  text-align: center;
}
.chat-lock-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  background: rgba(244, 114, 182, 0.14);
  border: 1px solid rgba(244, 114, 182, 0.35);
  box-shadow: 0 0 24px rgba(244, 114, 182, 0.2);
}
.chat-lock-title {
  font-size: 1.05rem;
  color: #fce7f3;
}
.chat-lock-sub {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(252, 231, 243, 0.62);
  line-height: 1.4;
}
.chat-lock-card input[type="password"] {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  font: inherit;
  text-align: center;
  letter-spacing: 0.18em;
}
.chat-lock-card input[type="password"]:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.28);
}
.chat-lock-btn {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 750;
  color: #1a0b1f;
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
  box-shadow: 0 10px 24px rgba(192, 132, 252, 0.28);
}
.chat-lock-btn:active { transform: scale(0.98); }
.chat-lock-error {
  min-height: 1.1em;
  font-size: 0.8rem;
  color: #fb7185;
  font-weight: 650;
}
.chat-lock-card.is-shake {
  animation: chat-lock-shake 0.38s ease;
}
@keyframes chat-lock-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-5px); }
}
.chat-shell.romantic-chat.weather-rain::before,
.chat-shell.romantic-chat.weather-rain::after {
  content: none;
  display: none;
}
.chat-pinned-note {
  position: relative; z-index: 2; flex-shrink: 0;
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-bottom: 1px solid rgba(244, 114, 182, 0.18);
  background: rgba(40, 12, 36, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.chat-pinned-label {
  flex-shrink: 0; font-size: 0.72rem; font-weight: 800; color: #f9a8d4;
}
.chat-pinned-text {
  flex: 1; min-width: 0;
  font-size: 0.8rem; font-weight: 650; color: rgba(252, 231, 243, 0.9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-pinned-edit {
  width: 32px; height: 32px; min-width: 32px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: rgba(88, 28, 135, 0.28); color: #f9a8d4; font-size: 0.85rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.chat-pinned-edit:hover {
  border-color: rgba(251, 113, 133, 0.5);
  transform: scale(1.05);
}
.chat-pinned-note[hidden] { display: none !important; }
.chat-pinned-restore {
  position: relative; z-index: 2; flex-shrink: 0; align-self: flex-end;
  width: 36px; height: 36px; min-width: 36px; margin: 0.35rem 0.85rem 0.35rem auto;
  border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: rgba(88, 28, 135, 0.28); color: #f9a8d4; font-size: 0.85rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.chat-pinned-restore:hover {
  border-color: rgba(251, 113, 133, 0.5);
  transform: scale(1.05);
}
.chat-pinned-restore[hidden] { display: none !important; }
.chat-pin-backdrop {
  z-index: 98;
  background: rgba(18, 4, 22, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.chat-pin-backdrop[hidden] { display: none !important; }
.chat-pin-backdrop.show { display: flex !important; }
.chat-pin-modal {
  width: min(420px, 100%);
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(244, 114, 182, 0.38);
  background:
    radial-gradient(ellipse 80% 55% at 12% 0%, rgba(244, 114, 182, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(168, 85, 247, 0.22), transparent 50%),
    linear-gradient(160deg, rgba(42, 12, 48, 0.92), rgba(24, 8, 34, 0.94));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(252, 231, 243, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.chat-pin-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.chat-pin-head h3 {
  margin: 0; color: #fce7f3; font-size: 1.05rem; font-weight: 800;
}
.chat-pin-field {
  display: grid; gap: 0.4rem;
  color: rgba(252, 231, 243, 0.78); font-size: 0.78rem; font-weight: 700;
}
.chat-pin-field input {
  width: 100%; min-height: 48px; border-radius: 14px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(18, 6, 24, 0.55);
  color: #fce7f3; font-size: 0.95rem; font-weight: 650;
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-pin-field input::placeholder { color: rgba(252, 231, 243, 0.35); }
.chat-pin-field input:focus {
  border-color: rgba(251, 113, 133, 0.55);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.18);
}
.chat-pin-actions {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.chat-pin-btn {
  min-height: 42px; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 800; font-size: 0.84rem; padding: 0.55rem 1.05rem;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}
.chat-pin-btn:active { transform: scale(0.97); }
.chat-pin-btn.cancel {
  color: rgba(252, 231, 243, 0.85);
  background: rgba(88, 28, 135, 0.35);
  border: 1px solid rgba(216, 180, 254, 0.28);
}
.chat-pin-btn.cancel:hover { filter: brightness(1.08); }
.chat-pin-btn.delete {
  margin-left: auto;
  color: #fecaca;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.55), rgba(127, 29, 29, 0.65));
  border: 1px solid rgba(248, 113, 113, 0.4);
  box-shadow: 0 8px 18px rgba(127, 29, 29, 0.25);
}
.chat-pin-btn.delete:hover { filter: brightness(1.08); }
.chat-pin-btn.save {
  color: #3b0764;
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
  box-shadow: 0 8px 20px rgba(192, 132, 252, 0.28);
}
.chat-pin-btn.save:hover { filter: brightness(1.05); }
.chat-react-burst {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: visible;
  perspective: 700px;
}
.chat-react-heart {
  position: absolute; left: 50%; top: 50%;
  font-size: clamp(0.95rem, 3vw, 1.45rem);
  transform: translate(-50%, -50%) scale(0.35) rotateX(55deg) rotateY(-20deg);
  transform-style: preserve-3d;
  animation: chatReactHeart 0.95s ease-out forwards;
  filter: drop-shadow(0 6px 12px rgba(244, 114, 182, 0.55));
  text-shadow: 0 0 14px rgba(251, 113, 133, 0.65), 2px 3px 0 rgba(157, 23, 77, 0.35);
}
@keyframes chatReactHeart {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotateX(70deg) rotateY(-35deg) rotateZ(0deg);
  }
  18% { opacity: 1; }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -40px)))
      scale(1.35)
      rotateX(12deg)
      rotateY(28deg)
      rotateZ(var(--rot, 18deg));
  }
}
.chat-task-card {
  display: grid; gap: 0.55rem; min-width: 180px; margin-bottom: 0.2rem;
  padding: 0.55rem 0.6rem 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.18), rgba(88, 28, 135, 0.28));
}
.chat-task-card strong {
  font-size: 0.78rem; color: #6ee7b7; letter-spacing: 0.03em; text-transform: uppercase;
}
.chat-task-card p {
  margin: 0; font-size: 0.9rem; line-height: 1.35; color: #fce7f3; font-weight: 650;
}
.chat-task-complete {
  min-height: 36px; border: none; border-radius: 999px; cursor: pointer;
  font-weight: 800; font-size: 0.8rem; color: #064e3b;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  box-shadow: 0 6px 16px rgba(52, 211, 153, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.chat-task-complete:hover { filter: brightness(1.05); }
.chat-task-complete:active { transform: scale(0.96); }
.chat-task-complete.is-done,
.chat-task-complete:disabled {
  cursor: default; color: rgba(252, 231, 243, 0.75);
  background: rgba(52, 211, 153, 0.2);
  box-shadow: none;
}
.chat-voice-transcript {
  display: block; margin: 0.15rem 0 0.2rem;
  font-size: 10px; font-style: italic; opacity: 0.7;
  color: rgba(252, 231, 243, 0.85); line-height: 1.3;
}
.chat-hearts {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.chat-heart {
  position: absolute; bottom: -10%; color: rgba(251, 113, 133, 0.22);
  font-size: 1.1rem; animation: chatHeartFloat linear infinite;
  filter: drop-shadow(0 0 8px rgba(244, 114, 182, 0.15));
}
.chat-heart.h1 { left: 8%; animation-duration: 18s; font-size: 0.9rem; }
.chat-heart.h2 { left: 22%; animation-duration: 22s; animation-delay: -4s; color: rgba(216, 180, 254, 0.2); }
.chat-heart.h3 { left: 38%; animation-duration: 16s; animation-delay: -8s; font-size: 1.35rem; }
.chat-heart.h4 { left: 52%; animation-duration: 24s; animation-delay: -2s; color: rgba(244, 114, 182, 0.18); }
.chat-heart.h5 { left: 66%; animation-duration: 19s; animation-delay: -11s; font-size: 0.85rem; }
.chat-heart.h6 { left: 78%; animation-duration: 21s; animation-delay: -6s; color: rgba(192, 132, 252, 0.22); }
.chat-heart.h7 { left: 88%; animation-duration: 17s; animation-delay: -9s; }
.chat-heart.h8 { left: 30%; animation-duration: 26s; animation-delay: -14s; font-size: 1.5rem; color: rgba(251, 113, 133, 0.14); }
@keyframes chatHeartFloat {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.55; }
  50% { transform: translateY(-55vh) translateX(12px) rotate(18deg); opacity: 0.35; }
  100% { transform: translateY(-110vh) translateX(-8px) rotate(-12deg); opacity: 0; }
}
.chat-header {
  position: relative; z-index: 80; flex-shrink: 0;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem 0.55rem;
  border-bottom: none;
  background: rgba(40, 12, 36, 0.42);
  backdrop-filter: blur(14px);
  overflow: visible;
}
.chat-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
  position: relative;
  z-index: 9999;
  overflow: visible;
}
.chat-header-radio {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  position: relative;
  z-index: 9999;
  overflow: visible;
}
.chat-gallery-btn {
  width: 40px; height: 40px; min-width: 40px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(88, 28, 135, 0.42);
  color: #f9a8d4; font-size: 1.05rem; line-height: 1;
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.chat-gallery-btn:hover {
  border-color: rgba(251, 113, 133, 0.55);
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.28);
  background: rgba(157, 23, 77, 0.35);
}
.chat-gallery-btn:active { transform: scale(0.94); }
.chat-gallery-backdrop {
  z-index: 96;
  background: rgba(18, 4, 22, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
}
.chat-gallery-backdrop[hidden] { display: none !important; }
.chat-gallery-backdrop.show { display: flex !important; }
.chat-gallery-modal {
  width: min(920px, 100%);
  max-height: min(86vh, 860px);
  display: flex; flex-direction: column; min-height: 0;
  border-radius: 22px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background:
    radial-gradient(ellipse 80% 50% at 12% 0%, rgba(244, 114, 182, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 100%, rgba(168, 85, 247, 0.3), transparent 50%),
    linear-gradient(160deg, rgba(36, 10, 40, 0.92), rgba(24, 8, 32, 0.94));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(157, 23, 77, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  animation: chatGalleryIn 0.28s ease;
}
@keyframes chatGalleryIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.chat-gallery-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid rgba(244, 114, 182, 0.22);
  background: rgba(40, 12, 36, 0.35);
  flex-shrink: 0;
}
.chat-gallery-head h3 {
  margin: 0; font-size: 1.08rem; font-weight: 800;
  color: #fce7f3; letter-spacing: 0.01em;
}
.chat-gallery-close {
  width: 40px; height: 40px; min-width: 40px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.3);
  background: rgba(88, 28, 135, 0.35);
  color: #f9a8d4; font-size: 1.45rem; line-height: 1; font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.chat-gallery-close:hover {
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(157, 23, 77, 0.4);
}
.chat-gallery-close:active { transform: scale(0.94); }
.chat-gallery-body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 114, 182, 0.55) transparent;
}
.chat-gallery-body::-webkit-scrollbar { width: 6px; }
.chat-gallery-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.45), rgba(168, 85, 247, 0.5));
}
.chat-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.chat-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.chat-gallery-item.is-image {
  cursor: zoom-in;
}
.chat-gallery-item.is-image:hover {
  border-color: rgba(251, 113, 133, 0.55);
  box-shadow: 0 12px 28px rgba(244, 114, 182, 0.28);
}
.chat-gallery-item img,
.chat-gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  background: #120814;
}
.chat-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 2, 10, 0.88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  animation: chatLightboxIn 0.22s ease;
}
.chat-lightbox.show,
.chat-lightbox:not([hidden]) {
  display: flex;
}
.chat-lightbox[hidden] {
  display: none !important;
}
@keyframes chatLightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.chat-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(252, 231, 243, 0.12);
  user-select: none;
  pointer-events: none;
}
.chat-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100000;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.4);
  background: rgba(40, 12, 36, 0.75);
  color: #fce7f3;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}
.chat-lightbox-close:hover {
  border-color: rgba(251, 113, 133, 0.65);
  background: rgba(157, 23, 77, 0.55);
}
.chat-lightbox-close:active { transform: scale(0.94); }
.chat-gallery-item.is-video video {
  object-fit: cover;
}
.chat-gallery-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(249, 168, 212, 0.92), rgba(192, 132, 252, 0.92));
  color: #3b0764; font-size: 0.85rem; font-weight: 800;
  box-shadow: 0 8px 20px rgba(244, 114, 182, 0.35);
}
.chat-gallery-item.is-video:hover .chat-gallery-play { opacity: 0.35; }
.chat-gallery-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.68rem; font-weight: 650;
  color: rgba(252, 231, 243, 0.9);
  background: linear-gradient(transparent, rgba(24, 6, 28, 0.82));
  pointer-events: none;
}
.chat-gallery-empty {
  text-align: center; padding: 3rem 1rem;
  color: rgba(252, 231, 243, 0.62);
  font-style: italic; font-size: 0.95rem;
}
.chat-gallery-empty[hidden] { display: none !important; }
@media (max-width: 640px) {
  .chat-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
  .chat-gallery-modal { max-height: 90vh; border-radius: 18px; }
}
.chat-peer-av {
  width: 48px; height: 48px; min-width: 48px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 850; font-size: 1rem;
  background: linear-gradient(135deg, #f472b6, #c084fc); color: #1f0a12;
  box-shadow: 0 0 18px rgba(244, 114, 182, 0.45);
}
.chat-peer-av.is-berat {
  background: linear-gradient(135deg, #e879f9, #a78bfa); color: #1e1030;
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.45);
}
.chat-peer-meta { flex: 1; min-width: 0; }
.chat-peer-name-row {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
}
.chat-peer-meta strong {
  display: block; font-size: 1rem; color: #fce7f3; letter-spacing: 0.01em;
}
.chat-india-clock {
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.15rem 0.45rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 750; font-variant-numeric: tabular-nums;
  color: #fde68a;
  background: rgba(88, 28, 135, 0.4);
  border: 1px solid rgba(251, 191, 36, 0.28);
}
.chat-peer-status {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem;
  font-size: 0.78rem; color: #86efac; font-weight: 650;
}
.chat-online-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}
.chat-listen-badge {
  display: inline-flex; align-items: center; margin-top: 0.35rem;
  padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; color: rgba(252, 231, 243, 0.82);
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.22);
  backdrop-filter: blur(8px);
  animation: chatListenPulse 2.2s ease-in-out infinite;
  white-space: nowrap; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
}
@keyframes chatListenPulse {
  0%, 100% { opacity: 0.72; box-shadow: 0 0 0 rgba(244, 114, 182, 0); }
  50% { opacity: 1; box-shadow: 0 0 14px rgba(244, 114, 182, 0.22); }
}
.chat-countdown {
  position: relative; z-index: 2; flex-shrink: 0;
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 0.85rem 0.7rem 1rem;
  border-bottom: 1px solid rgba(244, 114, 182, 0.2);
  background: linear-gradient(90deg, rgba(157, 23, 77, 0.22), rgba(88, 28, 135, 0.18));
  font-size: 0.78rem; color: rgba(252, 231, 243, 0.82);
}
.chat-countdown-label { flex: 1; min-width: 0; }
.chat-countdown strong {
  font-size: 0.82rem; color: #f9a8d4; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chat-countdown-edit {
  position: relative; width: 44px; height: 44px; min-width: 44px;
  display: grid; place-items: center; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.3);
  background: rgba(88, 28, 135, 0.28); color: #f9a8d4; font-size: 1.05rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-countdown-edit:hover {
  border-color: rgba(251, 113, 133, 0.5);
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.22);
}
.chat-countdown-edit input[type="date"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%; border: none; background: transparent;
}
.chat-miss-burst {
  position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden;
}
.chat-miss-burst .burst-heart {
  position: absolute; bottom: 8%; left: 50%;
  font-size: clamp(2rem, 8vw, 3.6rem); color: #fb7185;
  text-shadow: 0 0 20px rgba(244, 114, 182, 0.65);
  animation: chatMissBurst 1.6s ease-out forwards;
}
@keyframes chatMissBurst {
  0% { opacity: 0; transform: translate(-50%, 40px) scale(0.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -110vh) scale(1.15) rotate(var(--rot, 12deg)); }
}
.chat-rec-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #fb7185; flex-shrink: 0;
  box-shadow: 0 0 10px rgba(251, 113, 133, 0.8);
  animation: chatRecPulse 1s ease-in-out infinite;
}
@keyframes chatRecPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.chat-messages {
  position: relative; z-index: 1;
  flex: 1 1 auto; min-height: 0;
  overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1rem 1.05rem 1.15rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent; margin: 0.4rem 0;
}
.chat-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.45), rgba(168, 85, 247, 0.5));
  border: 1px solid rgba(252, 231, 243, 0.12);
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.25);
}
.chat-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.7), rgba(192, 132, 252, 0.75));
}
.chat-messages {
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 114, 182, 0.55) transparent;
}
.chat-empty {
  margin: auto; text-align: center; color: rgba(252, 231, 243, 0.62);
  font-style: italic; font-size: 0.9rem; padding: 2rem 1rem;
}
.chat-bubble-row {
  display: flex; width: 100%;
}
.chat-bubble-row.mine { justify-content: flex-end; }
.chat-bubble-row.theirs { justify-content: flex-start; }
.chat-bubble {
  padding: 0.65rem 0.85rem 0.45rem;
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  animation: chatBubbleIn 0.22s ease;
}
@keyframes chatBubbleIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.chat-bubble.mine {
  border-radius: 18px 18px 4px 18px;
  border: 1px solid rgba(244, 114, 182, 0.42);
  background: linear-gradient(145deg, rgba(219, 39, 119, 0.42), rgba(147, 51, 234, 0.38));
  color: #fdf2f8;
  box-shadow: 0 10px 26px rgba(219, 39, 119, 0.16), 0 0 20px rgba(244, 114, 182, 0.12);
}
.chat-bubble.theirs {
  border-radius: 18px 18px 18px 4px;
  border: 1px solid rgba(192, 132, 252, 0.28);
  background: linear-gradient(145deg, rgba(88, 28, 135, 0.35), rgba(30, 16, 48, 0.55));
  color: #f3e8ff;
}
.chat-bubble-wrap {
  display: flex; flex-direction: column; max-width: min(78%, 420px); gap: 0.2rem;
}
.chat-bubble-row.mine .chat-bubble-wrap { align-items: flex-end; }
.chat-bubble-row.theirs .chat-bubble-wrap { align-items: flex-start; }
.chat-bubble { position: relative; max-width: 100%; }
.chat-bubble-text {
  display: block; font-size: 0.92rem; line-height: 1.45;
  word-break: break-word; white-space: pre-wrap;
  transition: filter 0.18s ease, transform 0.2s ease, opacity 0.2s ease;
}
.chat-bubble.is-secret .chat-bubble-text {
  filter: blur(8px); user-select: none;
}
.chat-bubble.is-secret.is-revealed .chat-bubble-text {
  filter: none; user-select: text;
}
.chat-bubble-text.is-translating {
  animation: chatTranslatePop 0.45s ease;
}
@keyframes chatTranslatePop {
  0% { opacity: 0.2; transform: translateY(4px); filter: blur(2px); }
  100% { opacity: 1; transform: none; filter: none; }
}
.chat-translate-link {
  appearance: none; border: none; background: transparent; cursor: pointer;
  padding: 0.2rem 0.35rem; min-height: 32px;
  font-size: 0.72rem; font-weight: 700; color: rgba(252, 231, 243, 0.55);
  text-decoration: underline; text-underline-offset: 2px;
  transition: color 0.18s ease;
}
.chat-translate-link:hover { color: #f9a8d4; }
.chat-bubble-media {
  display: block; width: 100%; max-width: 280px; max-height: 240px;
  border-radius: 14px; object-fit: cover; margin-bottom: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}
.chat-bubble-media.video {
  max-height: 220px; background: #0f0614;
}
.chat-bubble audio { display: none !important; }
.chat-voice-player {
  display: flex; align-items: center; gap: 0.55rem;
  width: min(248px, 100%); min-width: 180px; margin-bottom: 0.35rem;
  padding: 0.35rem 0.4rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.chat-bubble.mine .chat-voice-player {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}
.chat-voice-play {
  width: 36px; height: 36px; min-width: 36px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: none; font-size: 0.72rem; font-weight: 800; line-height: 1;
  color: #3b0764;
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.chat-voice-play:hover { filter: brightness(1.06); }
.chat-voice-play:active { transform: scale(0.94); }
.chat-bubble.theirs .chat-voice-play {
  color: #1e1030;
  background: linear-gradient(135deg, #e9d5ff, #c4b5fd);
}
.chat-voice-wave {
  position: relative; flex: 1; min-width: 0; height: 28px;
  display: flex; align-items: center; gap: 2px; overflow: hidden;
}
.chat-voice-wave > span {
  flex: 1; min-width: 2px; max-width: 4px; border-radius: 99px;
  background: rgba(252, 231, 243, 0.35);
  height: var(--h, 40%);
  transition: background 0.2s ease;
}
.chat-voice-wave > span:nth-child(1) { --h: 34%; }
.chat-voice-wave > span:nth-child(2) { --h: 58%; }
.chat-voice-wave > span:nth-child(3) { --h: 42%; }
.chat-voice-wave > span:nth-child(4) { --h: 76%; }
.chat-voice-wave > span:nth-child(5) { --h: 48%; }
.chat-voice-wave > span:nth-child(6) { --h: 88%; }
.chat-voice-wave > span:nth-child(7) { --h: 56%; }
.chat-voice-wave > span:nth-child(8) { --h: 70%; }
.chat-voice-wave > span:nth-child(9) { --h: 38%; }
.chat-voice-wave > span:nth-child(10) { --h: 82%; }
.chat-voice-wave > span:nth-child(11) { --h: 46%; }
.chat-voice-wave > span:nth-child(12) { --h: 64%; }
.chat-voice-wave > span:nth-child(13) { --h: 52%; }
.chat-voice-wave > span:nth-child(14) { --h: 74%; }
.chat-voice-wave > span:nth-child(15) { --h: 40%; }
.chat-voice-player.is-playing .chat-voice-wave > span {
  background: rgba(249, 168, 212, 0.85);
  animation: chatWavePulse 0.9s ease-in-out infinite;
}
.chat-voice-player.is-playing .chat-voice-wave > span:nth-child(odd) { animation-delay: 0.12s; }
.chat-voice-player.is-playing .chat-voice-wave > span:nth-child(3n) { animation-delay: 0.24s; }
@keyframes chatWavePulse {
  0%, 100% { transform: scaleY(0.7); opacity: 0.65; }
  50% { transform: scaleY(1.15); opacity: 1; }
}
.chat-voice-progress {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center;
}
.chat-voice-progress i {
  display: block; height: 2px; width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(249, 168, 212, 0.15), #f9a8d4);
  transition: width 0.1s linear;
}
.chat-voice-dur {
  flex-shrink: 0; min-width: 2.4rem; text-align: right;
  font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: rgba(252, 231, 243, 0.72);
}
.chat-bubble-time {
  display: flex; align-items: center; justify-content: flex-end; gap: 0.3rem;
  margin-top: 0.35rem;
  font-size: 0.68rem; color: rgba(252, 231, 243, 0.55); font-variant-numeric: tabular-nums;
}
.chat-bubble.mine .chat-bubble-time { color: rgba(251, 207, 232, 0.7); }
.chat-ticks {
  color: #60a5fa; font-weight: 800; letter-spacing: -0.08em;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.45);
}
.chat-bubble.is-capsule-locked {
  min-width: min(260px, 78vw);
  min-height: 110px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(30, 10, 40, 0.88), rgba(70, 24, 88, 0.62)) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.12), 0 10px 28px rgba(0, 0, 0, 0.25);
}
.chat-bubble.is-capsule-locked .chat-bubble-text,
.chat-bubble.is-capsule-locked .chat-bubble-media,
.chat-bubble.is-capsule-locked .chat-voice-player,
.chat-bubble.is-capsule-locked .chat-task-card {
  filter: blur(12px); user-select: none; pointer-events: none;
  opacity: 0.35; transform: scale(1.02);
}
.chat-bubble.is-capsule-locked .chat-bubble-time { opacity: 0.35; }
.chat-capsule-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem; text-align: center; padding: 0.85rem 0.75rem;
  background: rgba(16, 4, 24, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: inherit;
  pointer-events: none;
}
.chat-capsule-lock-ico {
  font-size: 2rem; line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(251, 191, 36, 0.35));
}
.chat-capsule-overlay strong {
  font-size: 0.82rem; font-weight: 800; color: #fde68a;
  max-width: 100%; line-height: 1.35;
}
.chat-capsule-opened {
  display: inline-flex; align-items: center; gap: 0.2rem;
  margin-bottom: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem; font-weight: 800;
  color: #fde68a;
  background: rgba(113, 63, 18, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.35);
  letter-spacing: 0.01em;
}
.chat-typing {
  position: relative; z-index: 2; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 1rem 0.45rem;
  font-size: 0.78rem; font-weight: 650; color: rgba(252, 231, 243, 0.7);
}
.chat-typing[hidden] { display: none !important; }
.chat-typing-name { color: #f9a8d4; }
.chat-typing-dots { display: inline-flex; gap: 3px; margin-left: 0.15rem; }
.chat-typing-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #f9a8d4;
  animation: chatTypingDot 1.1s ease-in-out infinite;
}
.chat-typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingDot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.chat-icon-btn.capsule.is-active {
  border-color: rgba(251, 191, 36, 0.55); color: #fde68a;
  background: rgba(113, 63, 18, 0.4);
}
.chat-capsule-backdrop {
  z-index: 98;
  background: rgba(18, 4, 22, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.chat-capsule-backdrop[hidden] { display: none !important; }
.chat-capsule-backdrop.show { display: flex !important; }
.chat-capsule-modal {
  width: min(460px, 100%);
  display: flex; flex-direction: column; gap: 0.95rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  background:
    radial-gradient(ellipse 80% 55% at 10% 0%, rgba(251, 191, 36, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(244, 114, 182, 0.22), transparent 50%),
    linear-gradient(160deg, rgba(42, 12, 48, 0.92), rgba(24, 8, 34, 0.94));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(252, 231, 243, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.chat-capsule-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.chat-capsule-head h3 {
  margin: 0; color: #fde68a; font-size: 1.02rem; font-weight: 800; line-height: 1.3;
}
.chat-capsule-field {
  display: grid; gap: 0.4rem;
  color: rgba(252, 231, 243, 0.78); font-size: 0.78rem; font-weight: 700;
}
.chat-capsule-field textarea,
.chat-capsule-field input[type="datetime-local"] {
  width: 100%; border-radius: 14px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(18, 6, 24, 0.55);
  color: #fce7f3; font-size: 0.92rem; font-weight: 650;
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.chat-capsule-field textarea {
  min-height: 110px; resize: vertical; line-height: 1.45;
}
.chat-capsule-field textarea::placeholder { color: rgba(252, 231, 243, 0.35); }
.chat-capsule-field textarea:focus,
.chat-capsule-field input[type="datetime-local"]:focus {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.14);
}
.chat-capsule-field input[type="datetime-local"] {
  min-height: 48px; color-scheme: dark;
}
.chat-capsule-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap;
}
.chat-capsule-btn {
  min-height: 42px; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 800; font-size: 0.84rem; padding: 0.55rem 1.1rem;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}
.chat-capsule-btn:active { transform: scale(0.97); }
.chat-capsule-btn.cancel {
  color: rgba(252, 231, 243, 0.85);
  background: rgba(88, 28, 135, 0.35);
  border: 1px solid rgba(216, 180, 254, 0.28);
}
.chat-capsule-btn.cancel:hover { filter: brightness(1.08); }
.chat-capsule-btn.send {
  color: #422006;
  background: linear-gradient(135deg, #fde68a, #f9a8d4);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.22);
}
.chat-capsule-btn.send:hover { filter: brightness(1.05); }
.chat-composer {
  position: relative; z-index: 2; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border-top: 1px solid rgba(244, 114, 182, 0.2);
  background: rgba(36, 10, 32, 0.55);
  backdrop-filter: blur(14px);
}
.chat-doodle-backdrop {
  z-index: 97;
  background: rgba(18, 4, 22, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chat-doodle-backdrop[hidden] { display: none !important; }
.chat-doodle-backdrop.show { display: flex !important; }
.chat-doodle-modal {
  width: min(720px, 100%);
  max-height: min(90vh, 780px);
  display: flex; flex-direction: column; gap: 0.75rem; min-height: 0;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(244, 114, 182, 0.24), transparent 55%),
    linear-gradient(160deg, rgba(36, 10, 40, 0.95), rgba(24, 8, 32, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.chat-doodle-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.chat-doodle-head h3 { margin: 0; color: #fce7f3; font-size: 1.05rem; }
.chat-doodle-tools {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
}
.chat-doodle-color {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(252, 231, 243, 0.75); font-size: 0.78rem; font-weight: 700;
}
.chat-doodle-color input[type="color"] {
  width: 42px; height: 34px; border: none; background: transparent; cursor: pointer;
}
.chat-doodle-send {
  margin-left: auto;
  background: linear-gradient(135deg, #f9a8d4, #c084fc) !important;
  color: #3b0764 !important; border: none !important; font-weight: 800;
}
#chat-doodle-canvas {
  width: 100%; max-height: min(52vh, 420px);
  border-radius: 16px; touch-action: none; cursor: crosshair;
  background: #1a0b1f;
  border: 1px solid rgba(244, 114, 182, 0.28);
}
.chat-compose-row {
  display: flex; gap: 0.4rem; align-items: center; width: 100%;
  position: relative;
}
.chat-attach-wrap {
  position: relative; flex-shrink: 0; z-index: 6;
}
.chat-icon-btn.attach-toggle {
  border-color: rgba(244, 114, 182, 0.38);
  background: rgba(88, 28, 135, 0.34);
  transition: transform 0.22s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.chat-icon-btn.attach-toggle.is-open {
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(157, 23, 77, 0.32);
  transform: rotate(180deg);
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.28);
}
.chat-attach-menu {
  position: absolute;
  left: 0; bottom: calc(100% + 0.55rem);
  width: min(292px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.65rem;
  border-radius: 18px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(244, 114, 182, 0.2), transparent 55%),
    linear-gradient(160deg, rgba(40, 12, 44, 0.92), rgba(22, 8, 30, 0.94));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(252, 231, 243, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-origin: bottom left;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.22s ease;
}
.chat-attach-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}
.chat-attach-menu[hidden] { display: none !important; }
.chat-attach-menu:not([hidden]) { display: grid; }
.chat-attach-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.28rem; min-height: 72px; padding: 0.45rem 0.3rem;
  border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.22);
  background: rgba(88, 28, 135, 0.22);
  color: rgba(252, 231, 243, 0.88);
  font-size: 0.68rem; font-weight: 750; letter-spacing: 0.01em;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.chat-attach-item:hover {
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(157, 23, 77, 0.28);
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.2);
}
.chat-attach-item:active { transform: scale(0.96); }
.chat-attach-ico { font-size: 1.2rem; line-height: 1; }
.chat-attach-item.lock.is-active,
.chat-attach-item.capsule.is-active {
  border-color: rgba(251, 191, 36, 0.5);
  color: #fde68a;
  background: rgba(113, 63, 18, 0.38);
}
.chat-composer input[type="text"] {
  flex: 1; min-width: 0; min-height: 46px; padding: 0.75rem 1rem; border-radius: 999px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: rgba(24, 8, 28, 0.72); color: #fce7f3; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-composer input[type="text"]:focus {
  border-color: rgba(244, 114, 182, 0.65);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.15);
}
.chat-icon-btn {
  width: 44px; height: 44px; min-width: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.3);
  background: rgba(88, 28, 135, 0.28); color: #f9a8d4; font-size: 1.05rem;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.chat-icon-btn:hover {
  border-color: rgba(251, 113, 133, 0.55);
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.25);
  background: rgba(157, 23, 77, 0.28);
}
.chat-icon-btn:active { transform: scale(0.94); }
.chat-icon-btn.lock.is-active {
  border-color: rgba(250, 204, 21, 0.55); color: #fde68a;
  background: rgba(113, 63, 18, 0.4);
}
.chat-icon-btn.stop {
  border-color: rgba(251, 113, 133, 0.55); color: #fecaca;
  background: rgba(127, 29, 29, 0.45);
}
.chat-icon-btn.danger {
  border-color: rgba(251, 113, 133, 0.45); color: #fda4af;
}
#chat-send, .chat-preview-send {
  min-height: 46px; min-width: 44px; padding: 0.7rem 1.05rem; border: none; border-radius: 999px;
  cursor: pointer; font-weight: 800; white-space: nowrap;
  color: #3b0764;
  background: linear-gradient(135deg, #f9a8d4, #c084fc);
  box-shadow: 0 8px 20px rgba(244, 114, 182, 0.28);
  transition: transform 0.15s ease, filter 0.2s ease;
}
#chat-send:hover, .chat-preview-send:hover { filter: brightness(1.06); }
#chat-send:active, .chat-preview-send:active { transform: scale(0.96); }

.chat-voice-rec, .chat-voice-preview {
  display: flex; align-items: center; gap: 0.55rem; width: 100%;
  min-height: 52px; padding: 0.35rem 0.25rem;
}
.chat-voice-rec[hidden], .chat-voice-preview[hidden],
.chat-compose-row[hidden] { display: none !important; }
.chat-voice-rec strong {
  font-variant-numeric: tabular-nums; color: #fecaca; min-width: 3.2rem;
}
.chat-rec-label { color: rgba(254, 202, 202, 0.85); font-size: 0.82rem; font-weight: 700; flex: 1; }
.chat-preview-meta {
  flex: 1; color: #f9a8d4; font-size: 0.82rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
#chat-preview-audio { display: none; }

.chat-composer[data-mode="recording"] .chat-compose-row,
.chat-composer[data-mode="preview"] .chat-compose-row { display: none !important; }
.chat-composer[data-mode="compose"] .chat-voice-rec,
.chat-composer[data-mode="compose"] .chat-voice-preview { display: none !important; }
.chat-composer[data-mode="recording"] .chat-voice-rec { display: flex !important; }
.chat-composer[data-mode="preview"] .chat-voice-preview { display: flex !important; }

.chat-toast {
  position: fixed; top: 1rem; right: 1rem; z-index: 95;
  display: flex; align-items: center; gap: 0.7rem; text-align: left;
  min-width: 260px; max-width: min(360px, calc(100vw - 1.5rem));
  padding: 0.85rem 1rem; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(244, 114, 182, 0.4);
  background: linear-gradient(145deg, rgba(40, 12, 28, 0.96), rgba(14, 18, 34, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(244, 114, 182, 0.18);
  backdrop-filter: blur(12px);
  color: var(--text);
  transform: translateY(-12px); opacity: 0;
  pointer-events: none; transition: transform 0.28s ease, opacity 0.28s ease;
}
.chat-toast.show {
  transform: none; opacity: 1; pointer-events: auto;
}
.chat-toast[hidden] { display: none !important; }
.chat-toast-ico { font-size: 1.35rem; flex-shrink: 0; }
.chat-toast-copy { min-width: 0; }
.chat-toast-copy strong {
  display: block; font-size: 0.9rem; color: #f9a8d4; margin-bottom: 0.15rem;
}
.chat-toast-copy span {
  display: block; font-size: 0.8rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-toast:hover {
  border-color: rgba(251, 113, 133, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 28px rgba(244, 114, 182, 0.28);
}

@media (max-width: 992px) {
  body.chat-view-active .content { padding: 0.75rem 0.7rem 0.85rem; }
  #view-chat.active {
    max-height: calc(100dvh - 6.5rem);
  }
}
@media (max-width: 768px) {
  body.chat-view-active .content { padding: 0.55rem 0.55rem 0.7rem; }
  #view-chat.active {
    max-height: calc(100dvh - 5.75rem);
  }
  .chat-bubble { max-width: 88%; }
  .chat-compose-row { flex-wrap: wrap; }
  .chat-compose-row input[type="text"] { order: 10; flex: 1 1 100%; }
  .chat-countdown { flex-wrap: wrap; gap: 0.35rem; }
  .chat-translate-link { min-height: 44px; padding: 0.45rem 0.5rem; }
  .chat-messages { padding: 0.85rem 0.75rem 1rem; }
}

/* ===== Master Calendar ===== */
#view-calendar.active { display: block; }
.master-cal {
  padding: 1.15rem 1.2rem 1.35rem;
  min-height: min(78vh, 820px);
}
.master-cal-head {
  display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.master-cal-title-wrap { flex: 1; min-width: 140px; text-align: center; }
.master-cal-title {
  margin: 0; font-size: 1.35rem; font-weight: 750; letter-spacing: 0.02em;
  color: var(--text);
}
.master-cal-sub {
  margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--muted);
}
.master-cal-nav, .master-cal-today {
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(14, 28, 48, 0.55); color: #e2e8f0;
  font-size: 1.35rem; line-height: 1; display: grid; place-items: center;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.master-cal-today {
  width: auto; padding: 0 0.9rem; font-size: 0.82rem; font-weight: 650;
}
.master-cal-nav:hover, .master-cal-today:hover {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
}
.master-cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.45rem;
  margin-bottom: 0.45rem;
}
.master-cal-weekdays span {
  text-align: center; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  padding: 0.25rem 0;
}
.master-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0.45rem;
  min-height: 520px;
}
.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  min-height: 92px;
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(14,28,48,0.35));
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.15s ease, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.cal-day:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.07);
}
.cal-day.is-out {
  opacity: 0.38;
  background: rgba(8, 14, 24, 0.35);
}
.cal-day.is-today {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(160deg, rgba(56,189,248,0.14), rgba(14,28,48,0.4));
}
.cal-day.is-drop-target {
  border-color: rgba(167, 139, 250, 0.75) !important;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.35), 0 12px 30px rgba(0,0,0,0.28);
}
.cal-day-num {
  align-self: flex-start;
  font-size: 0.92rem; font-weight: 700; color: var(--text);
  line-height: 1.2;
}
.cal-day-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin-top: 4px;
}
.cal-day-name,
.cal-day-more {
  display: block;
  max-width: 100%;
  font-size: 0.62rem;
  line-height: 1.25;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-day-name.is-done {
  color: #6ee7b7;
  text-decoration: line-through;
}
.cal-day-more { color: var(--muted); font-weight: 700; }
.cal-day.is-today .cal-day-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 999px;
  background: rgba(56, 189, 248, 0.25); color: #7dd3fc;
}
.cal-day-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
  margin-top: auto;
}
.cal-day-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  margin-bottom: 2px;
  max-width: calc(100% - 48px);
  min-height: 10px;
}
.cal-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.cal-dot.cat-dev { background: #38bdf8; }
.cal-dot.cat-content { background: #c084fc; }
.cal-dot.cat-general,
.cal-dot.cat-physical { background: #34d399; }
.cal-dot.is-done { opacity: 0.4; }
.cal-dot[draggable="true"] { cursor: grab; }
.cal-dot.dragging { opacity: 0.35; transform: scale(1.2); }
.cal-day-progress {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-left: auto;
}
.cal-day-progress.is-empty { width: 0; height: 0; overflow: hidden; }
.cal-day-ring {
  width: 40px;
  height: 40px;
  display: block;
  transform: rotate(-90deg);
  pointer-events: none;
}
.cal-day-ring circle {
  fill: none;
  stroke-width: 10;
}
.cal-day-ring .ring-track { stroke: rgba(148, 163, 184, 0.22); }
.cal-day-ring .ring-fill {
  stroke: url(#calRingGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.35s ease;
}
.cal-day-count {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: bold;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.master-cal-legend {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.95rem;
  font-size: 0.78rem; color: var(--muted); align-items: center;
}
.master-cal-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }

.day-modal-backdrop[hidden] { display: none !important; }
.day-modal-backdrop.show { display: flex !important; z-index: 10050; }
.day-modal {
  width: min(720px, 96vw);
  max-width: min(720px, 96vw);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 1.15rem 1.2rem 1.25rem;
  background: linear-gradient(165deg, rgba(18, 28, 48, 0.92), rgba(10, 16, 28, 0.95));
  border: 1px solid rgba(125, 211, 252, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
body.cal-dragging .day-modal-backdrop {
  pointer-events: none;
  background: transparent;
}
body.cal-dragging .day-modal { opacity: 0.25; transform: scale(0.98); }
body.cal-dragging #cal-grid,
body.cal-dragging .cal-day { pointer-events: auto; }
.day-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.day-modal-head h3 { margin: 0; font-size: 1.15rem; }
.day-modal-sub { margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--muted); }
.day-composer-wrap { margin-bottom: 0.85rem; }
.day-composer {
  grid-template-columns: 1.4fr 100px 110px 110px auto auto;
}
.day-modal-board { display: flex; flex-direction: column; gap: 0.65rem; min-height: 40px; }
.day-modal-archive { margin-top: 0.9rem; }
.day-task-cat {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 650; padding: 0.15rem 0.45rem;
  border-radius: 999px; border: 1px solid transparent;
}
.day-task-cat.cat-dev { color: #7dd3fc; background: rgba(56,189,248,0.12); border-color: rgba(56,189,248,0.28); }
.day-task-cat.cat-content { color: #e9d5ff; background: rgba(192,132,252,0.12); border-color: rgba(192,132,252,0.28); }
.day-task-cat.cat-physical { color: #6ee7b7; background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.28); }

@media (max-width: 900px) {
  .master-cal-grid { gap: 0.3rem; min-height: 420px; }
  .cal-day { min-height: 72px; border-radius: 12px; padding: 8px; }
  .cal-day-num { font-size: 0.8rem; }
  .cal-day-progress, .cal-day-ring { width: 34px; height: 34px; }
  .cal-day-count { font-size: 10px; }
  .day-composer {
    grid-template-columns: 1fr 1fr;
  }
  .day-composer .input-with-mic { grid-column: 1 / -1; }
  .day-composer .btn-add { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .master-cal-weekdays span { font-size: 0.62rem; }
  .cal-day { min-height: 58px; }
  .cal-day-dots { gap: 3px; margin-left: 2px; }
  .cal-dot { width: 7px; height: 7px; }
  .cal-day-progress, .cal-day-ring { width: 30px; height: 30px; }
  .cal-day-count { font-size: 9px; }
}

/* ===== Master Planner ===== */
.planner-shell { display: flex; flex-direction: column; gap: 0.9rem; }
.planner-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.85rem;
  padding: 0.95rem 1.1rem; flex-wrap: wrap;
}
.planner-toolbar-copy h2 { margin: 0; font-size: 1.2rem; }
.planner-toolbar-copy p { margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--muted); }
.victory-btn {
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(56,189,248,0.12));
  color: #a7f3d0; font-weight: 700; border-radius: 12px; padding: 0.7rem 1rem;
  cursor: pointer; transition: transform 0.15s, border-color 0.2s;
}
.victory-btn:hover { transform: translateY(-1px); border-color: rgba(52,211,153,0.6); }
.planner-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.35fr);
  gap: 0.9rem; align-items: start;
}
.planner-cal-panel { padding: 0.95rem 1rem 1.1rem; position: sticky; top: 0.5rem; }
.planner-kanban {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem;
  min-height: 620px;
}
.kanban-col {
  display: flex; flex-direction: column; min-height: 560px;
  padding: 0.85rem 0.8rem 0.75rem;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(10,16,28,0.45));
}
.kanban-col-head {
  display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.7rem;
}
.kanban-col-ico {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(148,163,184,0.18);
}
.kanban-col-head strong { display: block; font-size: 0.95rem; }
.kanban-col-count {
  display: inline-flex; margin-top: 0.15rem; font-size: 0.72rem; color: var(--muted);
  padding: 0.1rem 0.4rem; border-radius: 999px; border: 1px solid rgba(148,163,184,0.2);
}
.kanban-add {
  display: grid; grid-template-columns: 1fr 72px auto; gap: 0.35rem; margin-bottom: 0.65rem;
}
.kanban-add input, .kanban-add select, .kanban-add button {
  min-height: 38px; border-radius: 10px; border: 1px solid var(--line-soft);
  background: rgba(6,10,18,0.55); color: var(--text); font-size: 0.8rem;
}
.kanban-add button {
  border: none; font-weight: 700; cursor: pointer; padding: 0 0.7rem;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #041018;
}
.kanban-list {
  flex: 1; display: flex; flex-direction: column; gap: 0.5rem;
  overflow: auto; min-height: 220px; padding-right: 0.15rem;
}
.kanban-card {
  position: relative;
  border-radius: 12px; padding: 0.65rem 0.7rem;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(12, 20, 36, 0.72);
  cursor: grab; transition: transform 0.15s, border-color 0.2s, opacity 0.2s, background 0.25s;
}
.kanban-card:hover { border-color: rgba(125,211,252,0.4); transform: translateY(-1px); }
.kanban-card.dragging { opacity: 0.4; }
.kanban-card.is-done {
  border-color: rgba(52,211,153,0.45);
  background: rgba(6, 48, 32, 0.42);
}
.kanban-card.is-done .kanban-card-title {
  text-decoration: line-through; color: #6ee7b7; opacity: 0.9;
}
.kanban-card-actions {
  position: absolute; top: 0.4rem; right: 0.4rem;
  display: flex; align-items: center; gap: 0.2rem;
  opacity: 0.55; transition: opacity 0.15s;
  z-index: 2;
}
.kanban-card:hover .kanban-card-actions { opacity: 1; }
.kanban-icon-btn {
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(8, 14, 24, 0.65); color: #cbd5e1;
  font-size: 0.78rem; line-height: 1; padding: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.kanban-icon-btn:hover {
  border-color: rgba(125,211,252,0.45); color: #e0f2fe;
  background: rgba(14, 28, 48, 0.9);
}
.kanban-icon-btn.danger:hover {
  border-color: rgba(251,113,133,0.5); color: #fda4af;
  background: rgba(76, 20, 30, 0.55);
}
.kanban-card-top {
  display: flex; align-items: flex-start; gap: 0.45rem;
  padding-right: 3.1rem;
}
.kanban-card-title { font-size: 0.86rem; line-height: 1.35; font-weight: 650; }
.kanban-check {
  position: relative; width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.1rem;
}
.kanban-check.is-locked { cursor: not-allowed; }
.kanban-check input {
  position: absolute; inset: 0; opacity: 0; cursor: not-allowed; pointer-events: none;
}
.kanban-check span {
  display: block; width: 18px; height: 18px; border-radius: 6px;
  border: 1.5px solid rgba(148,163,184,0.45); background: rgba(0,0,0,0.2);
}
.kanban-check input:checked + span,
.kanban-check.is-done span {
  background: #34d399; border-color: #34d399;
  box-shadow: inset 0 0 0 2px rgba(4,16,12,0.35);
  position: relative;
}
.kanban-check.is-done span::after {
  content: "✓";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #042f1a; font-size: 0.7rem; font-weight: 800;
}
.kanban-chip.done-chip {
  color: #6ee7b7; border-color: rgba(52,211,153,0.4);
  background: rgba(52,211,153,0.12);
}
.kanban-card-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.kanban-chip {
  font-size: 0.68rem; font-weight: 650; padding: 0.12rem 0.4rem; border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.22); color: var(--muted);
}
.kanban-chip.date.is-today { color: #7dd3fc; border-color: rgba(56,189,248,0.4); }
.kanban-col-foot {
  display: flex; align-items: center; gap: 0.65rem;
  margin-top: 0.75rem; padding-top: 0.7rem;
  border-top: 1px solid rgba(148,163,184,0.14);
}
.kanban-ring { width: 56px; height: 56px; transform: rotate(-90deg); flex-shrink: 0; }
.kanban-ring circle { fill: none; stroke-width: 6; }
.kanban-ring .ring-track { stroke: rgba(148,163,184,0.18); }
.kanban-ring .ring-fill { stroke-linecap: round; transition: stroke-dashoffset 0.35s ease; }
.kanban-ring .ring-fill.cat-content { stroke: #c084fc; }
.kanban-ring .ring-fill.cat-dev { stroke: #38bdf8; }
.kanban-ring .ring-fill.cat-general { stroke: #34d399; }
.kanban-ring-meta strong { display: block; font-size: 1rem; }
.kanban-ring-meta span { font-size: 0.72rem; color: var(--muted); }

.cal-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 0.35rem; border-radius: 999px;
  border: 1px solid transparent; font-size: 0.72rem; line-height: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}
.cal-pill.cat-content { background: rgba(192,132,252,0.22); border-color: rgba(192,132,252,0.45); color: #e9d5ff; }
.cal-pill.cat-dev { background: rgba(56,189,248,0.2); border-color: rgba(56,189,248,0.45); color: #bae6fd; }
.cal-pill.cat-general { background: rgba(52,211,153,0.18); border-color: rgba(52,211,153,0.45); color: #a7f3d0; }
.cal-pill-ico { font-size: 0.72rem; }
.day-task-cat.cat-general { color: #6ee7b7; background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.28); }

.victory-backdrop[hidden] { display: none !important; }
.victory-backdrop.show { display: flex !important; z-index: 10060; }
.victory-modal {
  width: min(560px, 94vw); max-height: min(82vh, 760px); overflow: auto;
  max-width: min(560px, 94vw);
  background: linear-gradient(165deg, rgba(18,28,48,0.95), rgba(8,16,24,0.96));
  border: 1px solid rgba(52,211,153,0.28);
}
.victory-list { display: flex; flex-direction: column; gap: 0.55rem; }
.victory-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.75rem; border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(8,16,28,0.55);
}
.victory-item-copy strong { display: block; font-size: 0.9rem; }
.victory-item-copy span { font-size: 0.75rem; color: var(--muted); }
.victory-empty { text-align: center; color: var(--muted); padding: 1.5rem 0.5rem; }

@media (max-width: 1200px) {
  .planner-layout { grid-template-columns: 1fr; }
  .planner-cal-panel { position: static; }
  .planner-kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .planner-kanban { grid-template-columns: 1fr; min-height: 0; }
  .kanban-col { min-height: 0; }
  .kanban-add { grid-template-columns: 1fr 1fr; }
  .kanban-add button { grid-column: 1 / -1; }
}

/* ===== Hidden scrollbar + New Task Modal ===== */
.hide-scrollbar,
.kanban-list,
.day-modal-board,
.victory-list {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar,
.kanban-list::-webkit-scrollbar,
.day-modal-board::-webkit-scrollbar,
.victory-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.planner-toolbar-actions {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
}
.new-task-btn {
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(56,189,248,0.22), rgba(167,139,250,0.16));
  color: #e0f2fe; font-weight: 750; border-radius: 12px;
  padding: 0.72rem 1.15rem; cursor: pointer; font-size: 0.9rem;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.12);
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
.new-task-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.7);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.2);
}
.day-add-btn {
  width: 100%; margin-bottom: 0.85rem;
  border: 1px dashed rgba(125, 211, 252, 0.35);
  background: rgba(14, 28, 48, 0.45); color: #bae6fd;
  border-radius: 12px; padding: 0.75rem 1rem; cursor: pointer; font-weight: 700;
}
.day-add-btn:hover { border-style: solid; border-color: rgba(125,211,252,0.55); }

.new-task-backdrop[hidden] { display: none !important; }
.new-task-backdrop.show { display: flex !important; z-index: 10070; }
.new-task-modal {
  width: min(520px, 94vw); max-width: min(520px, 94vw);
  max-height: min(88vh, 820px); overflow: auto;
  padding: 1.2rem 1.25rem 1.3rem;
  background: linear-gradient(165deg, rgba(22, 34, 56, 0.82), rgba(8, 14, 26, 0.92));
  border: 1px solid rgba(125, 211, 252, 0.28);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
.new-task-form { display: flex; flex-direction: column; gap: 0.85rem; }
.new-task-field { display: flex; flex-direction: column; gap: 0.35rem; }
.new-task-field > span {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.new-task-field input[type="text"],
.new-task-field select {
  width: 100%; min-height: 44px; border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(6,10,18,0.55); color: var(--text); padding: 0.65rem 0.8rem;
}
#new-task-date,
.new-task-date-input,
.new-task-field input#new-task-date.flatpickr-input {
  width: 100%; min-height: 44px; border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.35);
  background: #ffffff !important;
  color: #111827 !important;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}
#new-task-date::placeholder,
.new-task-date-input::placeholder {
  color: #6b7280;
}

/* Flatpickr — cyan theme */
.flatpickr-calendar {
  background: #00b4d8 !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(0, 120, 160, 0.45) !important;
  overflow: hidden;
}
.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after,
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
  border-bottom-color: #00b4d8 !important;
  border-top-color: #00b4d8 !important;
}
.flatpickr-months,
.flatpickr-weekdays,
.flatpickr-days {
  background: #00b4d8 !important;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year,
.flatpickr-weekday,
.flatpickr-day,
span.flatpickr-weekday {
  color: #ffffff !important;
  fill: #ffffff !important;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: #ffffff !important;
  fill: #ffffff !important;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: #e0f7ff !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: #0077a8 !important;
  border-radius: 8px;
}
.flatpickr-day {
  border-radius: 9px !important;
  font-weight: 600;
}
.flatpickr-day:hover,
.flatpickr-day:focus {
  background: #023e8a !important;
  border-color: #023e8a !important;
  color: #ffffff !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: #03045e !important;
  border-color: #03045e !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}
.flatpickr-day.today {
  border-color: rgba(255,255,255,0.75) !important;
}
.flatpickr-day.today:hover,
.flatpickr-day.today.selected {
  background: #023e8a !important;
  border-color: #023e8a !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: rgba(255, 255, 255, 0.45) !important;
}
.numInputWrapper span {
  border-color: rgba(255,255,255,0.35) !important;
}
.numInputWrapper span:hover {
  background: rgba(2, 62, 138, 0.55) !important;
}
.numInputWrapper span:after {
  border-bottom-color: #ffffff !important;
  border-top-color: #ffffff !important;
}
.new-task-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.new-task-recur { width: fit-content; }
.new-task-actions {
  display: flex; justify-content: flex-end; gap: 0.55rem; margin-top: 0.25rem;
}
.new-task-cancel, .new-task-submit {
  min-height: 44px; padding: 0.7rem 1.1rem; border-radius: 12px; cursor: pointer; font-weight: 700;
}
.new-task-cancel {
  border: 1px solid rgba(148,163,184,0.28);
  background: transparent; color: var(--text);
}
.new-task-submit {
  border: none; color: #041018;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
@media (max-width: 560px) {
  .new-task-grid { grid-template-columns: 1fr; }
  .planner-toolbar-actions { width: 100%; }
  .new-task-btn, .victory-btn { flex: 1; }
}

/* ===== Split Monthly Calendar + Master Plan ===== */
.monthly-shell { width: 100%; }
.monthly-cal-full {
  width: 100%;
  min-height: min(82vh, 900px);
  padding: 1.15rem 1.2rem 1.35rem;
}
.monthly-cal-grid {
  min-height: min(68vh, 740px);
}
.monthly-cal-grid .cal-day {
  min-height: 110px;
}

.planner-shell { display: flex; flex-direction: column; gap: 0.85rem; }
.planner-kanban-full {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  min-height: min(62vh, 680px);
}
.planner-kanban-full .kanban-col {
  min-height: min(58vh, 640px);
}

.week-strip {
  padding: 0.8rem 0.95rem 0.95rem;
}
.week-strip-head {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.week-strip-title-wrap {
  flex: 1; min-width: 140px; text-align: center;
}
.week-strip-title-wrap strong {
  display: block; font-size: 0.95rem;
}
.week-strip-title-wrap span {
  font-size: 0.74rem; color: var(--muted);
}
.week-strip-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}
.week-day {
  min-height: 78px;
  border-radius: 14px;
  padding: 0.55rem 0.55rem 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(14,28,48,0.35));
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.week-day:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.4);
}
.week-day.is-today {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(160deg, rgba(56,189,248,0.14), rgba(14,28,48,0.4));
}
.week-day.is-drop-target {
  border-color: rgba(167, 139, 250, 0.75) !important;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.35);
}
.week-day-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.35rem;
}
.week-day-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.week-day-num { font-size: 0.95rem; }
.week-day-dots {
  display: flex; flex-wrap: wrap; gap: 4px; min-height: 10px;
}
.week-day-count {
  font-size: 0.7rem; color: var(--muted); font-weight: 650;
}

body.cal-dragging .week-day { pointer-events: auto; }

@media (max-width: 900px) {
  .planner-kanban-full { grid-template-columns: 1fr; min-height: 0; }
  .planner-kanban-full .kanban-col { min-height: 0; }
  .week-strip-grid { gap: 0.3rem; }
  .week-day { min-height: 68px; padding: 0.4rem; }
  .monthly-cal-grid .cal-day { min-height: 78px; }
}


/* ===== Focus Theme System (10 unique animations) ===== */
.focus-phase-actions { display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.focus-theme-fx {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.ftx-item {
  position: absolute;
  left: var(--ftx-left, 50%);
  top: var(--ftx-top, 0%);
  width: var(--ftx-size, 8px);
  height: var(--ftx-size, 8px);
  opacity: 0;
  animation-delay: var(--ftx-delay, 0s);
  animation-duration: var(--ftx-dur, 6s);
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  will-change: transform, opacity;
}

.focus-theme-backdrop[hidden] { display: none !important; }
.focus-theme-backdrop.show { display: flex !important; z-index: 10080; }
.focus-theme-modal {
  width: min(720px, 94vw); max-width: min(720px, 94vw);
  max-height: min(86vh, 860px); overflow: auto;
  background: linear-gradient(165deg, rgba(18,28,48,0.88), rgba(8,14,26,0.94));
  border: 1px solid rgba(125,211,252,0.28);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.focus-theme-cats { display: flex; flex-direction: column; gap: 1rem; }
.focus-theme-cat h4 {
  margin: 0 0 0.55rem; font-size: 0.82rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.focus-theme-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.65rem;
}
.focus-theme-card {
  position: relative; border-radius: 14px; padding: 0.55rem;
  border: 1px solid rgba(148,163,184,0.2);
  background: rgba(8,14,24,0.55); color: var(--text); cursor: pointer;
  text-align: left; overflow: hidden;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
.focus-theme-card:hover { transform: translateY(-2px); border-color: rgba(125,211,252,0.45); }
.focus-theme-card.is-active {
  border-color: rgba(56,189,248,0.7);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.35), 0 10px 24px rgba(0,0,0,0.25);
}
.focus-theme-card-preview {
  display: block; height: 64px; border-radius: 10px; margin-bottom: 0.45rem;
  position: relative; overflow: hidden;
}
.focus-theme-card-ico { font-size: 1rem; margin-right: 0.25rem; }
.focus-theme-card-name { font-size: 0.78rem; font-weight: 700; }

.focus-theme-preview-shooting-stars .focus-theme-card-preview { background: linear-gradient(160deg,#030712,#0b1b3a); }
.focus-theme-preview-rotating-nebula .focus-theme-card-preview { background: radial-gradient(circle,#4c1d95,#0b0420 70%); }
.focus-theme-preview-aurora .focus-theme-card-preview { background: linear-gradient(135deg,#022c22,#0f172a,#1e3a8a); }
.focus-theme-preview-hyperdrive .focus-theme-card-preview { background: radial-gradient(circle,#1e293b,#020617 70%); }
.focus-theme-preview-stardust .focus-theme-card-preview { background: linear-gradient(160deg,#0b1224,#1e1b4b); }
.focus-theme-preview-floating-hearts .focus-theme-card-preview { background: linear-gradient(145deg,#3b0764,#9d174d); }
.focus-theme-preview-rose-petals .focus-theme-card-preview { background: linear-gradient(145deg,#3f0a1a,#e11d48); }
.focus-theme-preview-heartbeat-pulse .focus-theme-card-preview { background: radial-gradient(circle,#7f1d1d,#2a0a24 70%); }
.focus-theme-preview-fireflies .focus-theme-card-preview { background: linear-gradient(160deg,#0c0a09,#1c1917); }
.focus-theme-preview-love-twinkle .focus-theme-card-preview { background: linear-gradient(145deg,#0b0520,#6b21a8); }

.focus-room[class*="focus-theme-"] {
  animation: none !important;
}
.focus-room[class*="focus-theme-"] .focus-ambient { opacity: 0.25; }
.focus-room[class*="focus-theme-"] .focus-glow { opacity: 0.55; }

/* 1) Shooting Stars */
.focus-room.focus-theme-shooting-stars {
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(56,189,248,0.12), transparent 55%),
    linear-gradient(165deg, #020617 0%, #0b1224 55%, #030712 100%) !important;
}
.ftx-shooting-stars {
  height: 2px !important; width: var(--ftx-size) !important;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fff, #7dd3fc);
  box-shadow: 0 0 12px rgba(125,211,252,0.85);
  animation-name: ftxShootDiag;
  transform: rotate(var(--ftx-angle, 28deg));
}
@keyframes ftxShootDiag {
  0% { transform: translate3d(-15vw, -8vh, 0) rotate(var(--ftx-angle, 28deg)); opacity: 0; }
  6% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate3d(95vw, 70vh, 0) rotate(var(--ftx-angle, 28deg)); opacity: 0; }
}

/* 2) Rotating Nebula */
.focus-room.focus-theme-rotating-nebula {
  background: radial-gradient(circle at center, #1e1033 0%, #0b0420 55%, #020617 100%) !important;
}
.ftx-nebula-disk {
  position: absolute; left: 50%; top: 50%;
  width: min(140vw, 920px); height: min(140vw, 920px);
  transform: translate(-50%, -50%);
  animation: ftxNebulaDiskSpin 48s linear infinite;
}
.ftx-nebula-arm {
  position: absolute; inset: 12%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 35%, rgba(168,85,247,0.35) 45%, transparent 55%, rgba(14,165,233,0.3) 70%, transparent 80%);
  filter: blur(18px);
}
.ftx-nebula-arm.a2 { inset: 22%; animation: ftxNebulaArmSpin 36s linear infinite reverse; opacity: 0.85; }
.ftx-nebula-arm.a3 { inset: 32%; background: conic-gradient(from 90deg, transparent, rgba(236,72,153,0.28), transparent 40%, rgba(56,189,248,0.22), transparent); filter: blur(22px); animation: ftxNebulaArmSpin 28s linear infinite; }
.ftx-nebula-core {
  position: absolute; left: 50%; top: 50%; width: 18%; height: 18%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.55), rgba(167,139,250,0.35) 40%, transparent 70%);
  box-shadow: 0 0 60px rgba(168,85,247,0.45);
  animation: ftxNebulaPulseCore 5s ease-in-out infinite;
}
@keyframes ftxNebulaDiskSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes ftxNebulaArmSpin { to { transform: rotate(360deg); } }
@keyframes ftxNebulaPulseCore {
  0%, 100% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.75; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}
.ftx-rotating-nebula {
  border-radius: 50%; background: #e2e8f0;
  box-shadow: 0 0 8px #fff;
  animation-name: ftxOrbitTwinkle;
}
@keyframes ftxOrbitTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* 3) Aurora */
.focus-room.focus-theme-aurora {
  background: linear-gradient(180deg, #020617 0%, #0b1224 40%, #022c22 100%) !important;
}
.ftx-aurora-band {
  position: absolute; left: -20%; width: 140%; height: 18%;
  border-radius: 40%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(52,211,153,0.0) 10%,
    rgba(52,211,153,0.35) 30%,
    rgba(56,189,248,0.3) 50%,
    rgba(167,139,250,0.28) 70%,
    transparent 100%);
  filter: blur(16px);
  mix-blend-mode: screen;
  animation-name: ftxAuroraWave;
  animation-duration: var(--ftx-dur, 12s);
  animation-delay: var(--ftx-delay, 0s);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
@keyframes ftxAuroraWave {
  0%, 100% { transform: translateX(-12%) skewX(-10deg) scaleY(0.85); opacity: 0.45; }
  50% { transform: translateX(14%) skewX(12deg) scaleY(1.25); opacity: 0.9; }
}
.ftx-aurora {
  border-radius: 50%; background: rgba(167,243,208,0.8);
  box-shadow: 0 0 10px rgba(52,211,153,0.7);
  animation-name: ftxAuroraSpark;
}
@keyframes ftxAuroraSpark {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 0.95; transform: scale(1.4); }
}

/* 4) Hyperdrive */
.focus-room.focus-theme-hyperdrive {
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 35%, #020617 75%) !important;
}
.ftx-hyperdrive {
  left: 50% !important; top: 50% !important;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, #7dd3fc);
  box-shadow: 0 0 8px rgba(125,211,252,0.9);
  transform-origin: center center;
  animation-name: ftxWarpZoom;
  width: 2px !important; height: var(--ftx-size) !important;
}
@keyframes ftxWarpZoom {
  0% { transform: translate(-50%, -50%) scale(0.05); opacity: 0; }
  15% { opacity: 1; }
  100% {
    transform: translate(calc(-50% + var(--ftx-tx, 40vw)), calc(-50% + var(--ftx-ty, 30vh))) scale(1.8);
    opacity: 0;
  }
}

/* 5) Stardust */
.focus-room.focus-theme-stardust {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(99,102,241,0.18), transparent 50%),
    linear-gradient(160deg, #050816, #0f172a 55%, #1e1b4b) !important;
}
.ftx-stardust {
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 0 6px rgba(255,255,255,0.7);
  animation-name: ftxStardustDrift;
}
@keyframes ftxStardustDrift {
  0% { transform: translate3d(0, 20px, 0) scale(0.5); opacity: 0; }
  20% { opacity: 0.85; }
  50% { opacity: 1; transform: translate3d(var(--ftx-x, 20px), -30px, 0) scale(1.1); }
  80% { opacity: 0.4; }
  100% { transform: translate3d(calc(var(--ftx-x, 20px) * -1), -70px, 0) scale(0.4); opacity: 0; }
}

/* 6) Floating Hearts */
.focus-room.focus-theme-floating-hearts {
  background:
    radial-gradient(ellipse at 25% 80%, rgba(244,114,182,0.22), transparent 50%),
    linear-gradient(165deg, #2a0a24, #4a1340 50%, #1a0820) !important;
}
.ftx-floating-hearts {
  background: transparent !important;
  width: var(--ftx-size) !important; height: var(--ftx-size) !important;
  animation-name: ftxHeartRise;
}
.ftx-floating-hearts::before,
.ftx-floating-hearts::after {
  content: ""; position: absolute; top: 0;
  width: 52%; height: 80%;
  background: #fb7185;
  border-radius: 50px 50px 0 0;
  box-shadow: 0 0 14px rgba(251,113,133,0.75);
}
.ftx-floating-hearts::before { left: 50%; transform: rotate(-45deg); transform-origin: 0 100%; }
.ftx-floating-hearts::after { left: 0; transform: rotate(45deg); transform-origin: 100% 100%; }
@keyframes ftxHeartRise {
  0% { top: 110%; opacity: 0; transform: translateX(0) scale(var(--ftx-scale, 1)) rotate(0deg); }
  12% { opacity: 0.95; }
  100% { top: -18%; opacity: 0; transform: translateX(var(--ftx-x, 24px)) scale(calc(var(--ftx-scale, 1) * 1.15)) rotate(22deg); }
}

/* 7) Rose Petals */
.focus-room.focus-theme-rose-petals {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(244,63,94,0.18), transparent 55%),
    linear-gradient(170deg, #2a0814, #4c0519 55%, #1c0a12) !important;
}
.ftx-rose-petals {
  border-radius: 60% 40% 60% 40%;
  background: linear-gradient(145deg, #fda4af, #e11d48 55%, #9f1239);
  box-shadow: 0 4px 12px rgba(225,29,72,0.35);
  animation-name: ftxPetalSway;
}
@keyframes ftxPetalSway {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  25% { transform: translate3d(var(--ftx-x, 20px), 15vh, 0) rotate(50deg); }
  50% { transform: translate3d(calc(var(--ftx-x, 20px) * -1), 45vh, 0) rotate(140deg); }
  75% { transform: translate3d(var(--ftx-x, 20px), 75vh, 0) rotate(230deg); }
  100% { transform: translate3d(calc(var(--ftx-x, 20px) * -0.5), 115vh, 0) rotate(320deg); opacity: 0; }
}

/* 8) Heartbeat Pulse */
.focus-room.focus-theme-heartbeat-pulse {
  background: linear-gradient(160deg, #1a0610, #3b0a2a 45%, #1a0610) !important;
}
.ftx-heartbeat-halo {
  position: absolute; left: 50%; top: 55%;
  width: min(70vw, 520px); height: min(70vw, 520px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190,24,93,0.45) 0%, rgba(127,29,29,0.28) 38%, transparent 68%);
  box-shadow: 0 0 80px rgba(190,24,93,0.35);
  animation: ftxHeartbeat 1.05s cubic-bezier(0.2, 0.8, 0.3, 1) infinite;
}
@keyframes ftxHeartbeat {
  0%, 100% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.55; }
  14% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.95; }
  28% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.65; }
  42% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
}
.ftx-heartbeat-pulse {
  border-radius: 50%;
  background: rgba(251,113,133,0.7);
  box-shadow: 0 0 12px rgba(251,113,133,0.6);
  animation-name: ftxHeartSpark;
}
@keyframes ftxHeartSpark {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  40% { opacity: 0.9; transform: scale(1.3); }
}

/* 9) Fireflies (JS-driven positions) */
.focus-room.focus-theme-fireflies {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(120,53,15,0.25), transparent 55%),
    linear-gradient(180deg, #0c0a09, #1c1917 60%, #292524) !important;
}
.ftx-fireflies {
  border-radius: 50%;
  background: radial-gradient(circle, #fde68a 0%, #f59e0b 45%, transparent 70%);
  box-shadow: 0 0 10px rgba(251,191,36,0.85), 0 0 20px rgba(245,158,11,0.45);
  animation: ftxFireflyGlow 1.8s ease-in-out infinite;
  transition: left 0.08s linear, top 0.08s linear, opacity 0.08s linear;
  opacity: 0.8 !important;
}
@keyframes ftxFireflyGlow {
  0%, 100% { filter: brightness(0.75); transform: scale(0.85); }
  50% { filter: brightness(1.35); transform: scale(1.2); }
}

/* 10) Love Twinkle */
.focus-room.focus-theme-love-twinkle {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(244,114,182,0.16), transparent 45%),
    linear-gradient(155deg, #0b0520, #2e1065 50%, #1a0a2e) !important;
}
.ftx-love-twinkle {
  background: transparent !important;
  animation-name: ftxLoveBurst;
}
.ftx-love-twinkle.is-star::before {
  content: "✦";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #f9a8d4;
  font-size: calc(var(--ftx-size) * 1.1);
  text-shadow: 0 0 12px rgba(249,168,212,0.95), 0 0 22px rgba(192,132,252,0.55);
}
.ftx-love-twinkle.is-heart::before,
.ftx-love-twinkle.is-heart::after {
  content: ""; position: absolute; top: 10%;
  width: 50%; height: 75%;
  background: #f472b6;
  border-radius: 50px 50px 0 0;
  box-shadow: 0 0 12px rgba(244,114,182,0.8);
}
.ftx-love-twinkle.is-heart::before { left: 50%; transform: rotate(-45deg); transform-origin: 0 100%; }
.ftx-love-twinkle.is-heart::after { left: 0; transform: rotate(45deg); transform-origin: 100% 100%; }
.ftx-love-twinkle.burst { animation-iteration-count: 1; }
@keyframes ftxLoveBurst {
  0% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  25% { opacity: 1; transform: scale(1.25) rotate(8deg); }
  60% { opacity: 0.85; transform: scale(1) rotate(-4deg); }
  100% { opacity: 0; transform: scale(0.4) rotate(12deg); }
}

@media (max-width: 560px) {
  .focus-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Universal Responsive Hardening ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}
#app-screen, .main, .content, .view {
  max-width: 100%;
  min-width: 0;
}

.modal,
.day-modal,
.victory-modal,
.new-task-modal,
.focus-theme-modal,
.profile-crop-dialog,
.chat-lock-card,
.chat-pin-modal,
.chat-doodle-modal,
.chat-capsule-modal,
.fatigue-card,
.academy-quiz-modal,
.academy-vault-modal,
.zen-overlay .zen-card {
  max-width: 90vw !important;
  max-height: 90vh !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cal-dot[draggable="true"],
.kanban-card[draggable="true"],
.task-card[draggable="true"] {
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
body.cal-dragging {
  cursor: grabbing;
  touch-action: none;
}
.touch-drag-ghost {
  position: fixed;
  z-index: 12000;
  pointer-events: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #7dd3fc, var(--primary-color, var(--primary)));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.25);
  opacity: 0.92;
}
.touch-drag-ghost.is-card {
  width: auto;
  height: auto;
  max-width: 220px;
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #041018;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

@media (max-width: 768px) {
  .menu-toggle { display: inline-grid !important; place-items: center; }
  .sidebar {
    position: fixed !important;
    left: 0;
    top: 0;
    width: min(var(--sidebar-w), 86vw);
    height: 100vh;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: var(--shadow);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 60;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-overlay {
    display: block !important;
    backdrop-filter: blur(2px);
    z-index: 55;
  }

  .planner-kanban,
  .planner-kanban-full {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 0.85rem;
    min-height: 0;
    width: 100%;
  }
  .planner-kanban .kanban-col,
  .planner-kanban-full .kanban-col {
    width: 100% !important;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
  }
  .kanban-list { max-height: 360px; }

  .master-cal,
  .monthly-cal-full {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.85rem 0.7rem 1rem;
    min-height: 0;
  }
  .master-cal-weekdays,
  .master-cal-grid,
  .monthly-cal-grid {
    min-width: 0;
    width: 100%;
    gap: 0.22rem;
  }
  .master-cal-weekdays span {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
    padding: 0.15rem 0;
  }
  .master-cal-grid { min-height: 0; }
  .cal-day,
  .monthly-cal-grid .cal-day {
    min-height: 52px;
    padding: 4px;
    border-radius: 10px;
  }
  .cal-day-num { font-size: 0.68rem; }
  .cal-dot { width: 6px; height: 6px; }
  .cal-day-dots { gap: 2px; margin-left: 1px; }
  .cal-day-progress,
  .cal-day-ring {
    width: 24px !important;
    height: 24px !important;
  }
  .cal-day-count { font-size: 8px; }
  .master-cal-title { font-size: 1.05rem; }
  .master-cal-nav { width: 40px; height: 40px; }

  .week-strip { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .week-strip-grid {
    min-width: 520px;
    gap: 0.28rem;
  }
  .week-day { min-height: 64px; padding: 0.35rem; }
  .week-day-num { font-size: 0.82rem; }
  .week-day-label { font-size: 0.58rem; }

  .profile-shell { grid-template-columns: 1fr; max-width: 100%; }
  .profile-countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .chat-shell.romantic-chat,
  #view-chat.active {
    max-width: 100%;
  }
  .chat-composer,
  .chat-compose-row {
    max-width: 100%;
  }
  .chat-lock-overlay { padding: 0.85rem; }
}

/* Phone Focus Mode — true fullscreen + hamburger drawer */
@media (max-width: 768px) {
  /* Ultimate Scroll Lock — rubber-band yok */
  html.focus-scroll-lock,
  html:has(body.focus-immersive),
  html:has(body.focus-mobile-immersive),
  html:has(body.zen-mode-active) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
  }
  html.focus-scroll-lock body,
  body.focus-immersive,
  body.focus-mobile-immersive,
  body.zen-mode-active,
  body.focus-room-active,
  body:has(#view-focus.active) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
  }

  /* Mobil zen: sidebar gizleme — drawer olarak kalsın */
  body.zen-mode-active .sidebar,
  body.focus-mobile-immersive .sidebar {
    display: flex !important;
    position: fixed !important;
    left: 0;
    top: 0;
    width: min(var(--sidebar-w), 86vw) !important;
    height: 100dvh !important;
    transform: translateX(-105%);
    z-index: 120 !important;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.zen-mode-active.sidebar-open .sidebar,
  body.focus-mobile-immersive.sidebar-open .sidebar {
    transform: translateX(0) !important;
  }
  body.zen-mode-active.sidebar-open .sidebar-overlay,
  body.focus-mobile-immersive.sidebar-open .sidebar-overlay {
    display: block !important;
    z-index: 110 !important;
  }

  /* Üst bar: sadece kare menü kutusu — TR/EN/Sabah/@berat yok */
  body.zen-mode-active .topbar,
  body.focus-mobile-immersive .topbar {
    display: flex !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: auto;
    width: auto;
    z-index: 130 !important;
    padding: max(0.45rem, env(safe-area-inset-top, 0px)) 0 0 max(0.45rem, env(safe-area-inset-left, 0px)) !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    pointer-events: none;
  }
  body.zen-mode-active .topbar-right,
  body.focus-mobile-immersive .topbar-right,
  body.zen-mode-active .page-title,
  body.focus-mobile-immersive .page-title,
  body.zen-mode-active .page-sub,
  body.focus-mobile-immersive .page-sub,
  body.zen-mode-active .topbar-left > div:not(:has(#menu-toggle)),
  body.focus-mobile-immersive .topbar-left > div:not(:has(#menu-toggle)) {
    display: none !important;
  }
  body.zen-mode-active .topbar-left,
  body.focus-mobile-immersive .topbar-left {
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
  }
  body.zen-mode-active .menu-toggle,
  body.focus-mobile-immersive .menu-toggle {
    display: inline-grid !important;
    place-items: center !important;
    pointer-events: auto !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(94, 234, 212, 0.35) !important;
    background: rgba(6, 10, 18, 0.82) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  }

  body.zen-mode-active #app-screen,
  body.focus-mobile-immersive #app-screen {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    z-index: 50;
  }
  body.zen-mode-active .main,
  body.focus-mobile-immersive .main {
    width: 100% !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    margin: 0 !important;
  }

  #odak-modu-container,
  .odak-modu-container,
  #focus-room,
  #view-focus,
  #view-focus.active,
  body.zen-mode-active #app-screen,
  body.focus-mobile-immersive #app-screen,
  body.zen-mode-active .main,
  body.focus-mobile-immersive .main,
  body.zen-mode-active .content,
  body.focus-mobile-immersive .content,
  body.zen-mode-active #view-focus,
  body.focus-mobile-immersive #view-focus,
  body.zen-mode-active .focus-room,
  body.focus-mobile-immersive .focus-room,
  body.focus-room-active .focus-room,
  body:has(#view-focus.active) #view-focus,
  body:has(#view-focus.active) .focus-room {
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  body.zen-mode-active .content,
  body.focus-mobile-immersive .content,
  body:has(#view-focus.active) .content {
    padding: 0 !important;
  }

  #focus-room,
  .focus-room,
  body.zen-mode-active .focus-room,
  body.focus-mobile-immersive .focus-room {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    padding:
      max(1rem, env(safe-area-inset-top, 0px))
      0.75rem
      max(0.85rem, env(safe-area-inset-bottom, 0px)) !important;
    gap: 0 !important;
    box-sizing: border-box !important;
  }

  .focus-stack {
    flex: 0 0 auto !important;
    min-height: 0;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .focus-label {
    font-size: 0.58rem !important;
    margin: 0 !important;
  }
  .focus-task-select {
    width: 100% !important;
    margin: 0 !important;
    padding: 0.45rem 1.9rem 0.45rem 0.65rem !important;
    font-size: 0.8rem !important;
  }
  .focus-phase-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.18rem !important;
    margin: 0 !important;
    width: 100%;
  }
  .focus-phase {
    font-size: 0.6rem !important;
    letter-spacing: 0.06em !important;
    margin: 0 !important;
  }
  .focus-fs-btn {
    min-height: 28px !important;
    padding: 0.18rem 0.45rem !important;
    font-size: 0.62rem !important;
  }
  .focus-clock,
  body.zen-mode-active .focus-clock,
  body.focus-mobile-immersive .focus-clock {
    font-size: min(18vh, 22vw, 3.5rem) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0.92 !important;
    max-width: 100% !important;
  }
  .focus-strict-toggle {
    margin: 0 !important;
    transform: scale(0.92);
    transform-origin: center;
  }
  .focus-cycle-wrap {
    gap: 0.18rem !important;
    margin: 0 !important;
    width: 100%;
    align-items: center;
  }
  .focus-cycle-label { font-size: 0.62rem !important; margin: 0 !important; }
  .focus-dot { width: 8px !important; height: 8px !important; }
  .focus-task-name {
    font-size: 0.78rem !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 0.15rem !important;
  }
  .focus-rest-tip { margin: 0 !important; padding: 0.2rem 0.4rem !important; font-size: 0.7rem !important; }
  .focus-progress-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .focus-progress-top {
    font-size: 0.6rem !important;
    margin-bottom: 0.15rem !important;
  }
  .focus-progress-track { height: 6px !important; }
  .focus-actions {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0.28rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .focus-start-btn,
  .focus-ctrl-btn {
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.84rem !important;
  }
  .focus-partner-badge {
    position: absolute !important;
    top: 0.55rem !important;
    right: 0.45rem !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0.18rem 0.4rem !important;
    font-size: 0.58rem !important;
    flex-shrink: 0;
    z-index: 5;
  }

  .toast,
  .toast.show,
  .chat-toast,
  .chat-toast.show {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    max-width: 90vw !important;
    min-width: 0 !important;
    padding: 0.55rem 0.65rem !important;
    margin: 0 !important;
  }
  .toast:not(.show),
  .chat-toast:not(.show) {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .toast.show,
  .chat-toast.show { opacity: 1 !important; }
  .chat-toast.show { pointer-events: auto !important; }

  .lofi-dock:not(.is-chat-embedded) .lofi-panel,
  .lofi-dock:not(.is-chat-embedded) .lofi-panel.open,
  .lofi-dock:not(.is-chat-embedded) .lofi-panel.radio-panel,
  body.zen-mode-active .lofi-panel,
  body.focus-room-active .lofi-panel {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: 0 !important;
    bottom: calc(100% + 10px) !important;
    transform: none !important;
    width: min(280px, calc(100vw - 1.25rem)) !important;
    max-width: min(280px, calc(100vw - 1.25rem)) !important;
    max-height: calc(100dvh - 5.5rem) !important;
    padding: 0.55rem 0.6rem !important;
  }
}

/* Phone LANDSCAPE: width often >768px — use max-height instead */
@media (orientation: landscape) and (max-height: 560px) {
  html.focus-scroll-lock,
  html:has(body.focus-immersive),
  html:has(body.focus-mobile-immersive),
  html:has(body.zen-mode-active) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
  }
  html.focus-scroll-lock body,
  body.zen-mode-active,
  body.focus-immersive,
  body.focus-mobile-immersive,
  body.focus-room-active,
  body:has(#view-focus.active) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
  }

  .menu-toggle { display: inline-grid !important; place-items: center; }
  body.zen-mode-active .sidebar,
  body.focus-mobile-immersive .sidebar,
  .sidebar {
    display: flex !important;
    position: fixed !important;
    left: 0; top: 0;
    width: min(var(--sidebar-w), 70vw) !important;
    height: 100dvh !important;
    transform: translateX(-105%) !important;
    z-index: 120 !important;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.sidebar-open .sidebar,
  body.zen-mode-active.sidebar-open .sidebar,
  body.focus-mobile-immersive.sidebar-open .sidebar {
    transform: translateX(0) !important;
  }
  body.sidebar-open .sidebar-overlay,
  body.zen-mode-active.sidebar-open .sidebar-overlay,
  body.focus-mobile-immersive.sidebar-open .sidebar-overlay {
    display: block !important;
    z-index: 110 !important;
  }

  body.zen-mode-active .topbar,
  body.focus-mobile-immersive .topbar {
    display: flex !important;
    position: fixed !important;
    top: 0; left: 0; right: auto;
    width: auto;
    z-index: 130 !important;
    padding: 0.35rem 0 0 0.35rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none;
  }
  body.zen-mode-active .topbar-right,
  body.focus-mobile-immersive .topbar-right,
  body.zen-mode-active .page-title,
  body.focus-mobile-immersive .page-title,
  body.zen-mode-active .page-sub,
  body.focus-mobile-immersive .page-sub {
    display: none !important;
  }
  body.zen-mode-active .menu-toggle,
  body.focus-mobile-immersive .menu-toggle {
    display: inline-grid !important;
    pointer-events: auto !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
    background: rgba(6, 10, 18, 0.85) !important;
  }

  body.zen-mode-active #app-screen,
  body.focus-mobile-immersive #app-screen {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 50;
  }
  body.zen-mode-active .main,
  body.focus-mobile-immersive .main,
  body.zen-mode-active .content,
  body.focus-mobile-immersive .content {
    width: 100% !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  #odak-modu-container,
  .odak-modu-container,
  #focus-room,
  #view-focus,
  body.zen-mode-active #view-focus,
  body.focus-mobile-immersive #view-focus,
  body.zen-mode-active .focus-room,
  body.focus-mobile-immersive .focus-room,
  body:has(#view-focus.active) .focus-room {
    height: 100dvh !important;
    max-height: 100dvh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    border-radius: 0 !important;
  }

  /* Telefon landscape: sayaç TAM ORTA + büyük; sol grid/padding YOK */
  #odak-modu-container .focus-room,
  #odak-modu-container.fullscreen-focus-active .focus-room,
  body.zen-mode-active .focus-room,
  body.focus-mobile-immersive .focus-room,
  .focus-room {
    display: block !important;
    position: relative !important;
    flex-direction: unset !important;
    align-items: unset !important;
    justify-content: unset !important;
    gap: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .focus-partner-badge {
    position: absolute !important;
    top: 0.35rem !important;
    right: 0.5rem !important;
    left: auto !important;
    margin: 0 !important;
    font-size: 0.55rem !important;
    padding: 0.15rem 0.4rem !important;
    z-index: 5;
  }

  #odak-modu-container .focus-stack,
  #odak-modu-container.fullscreen-focus-active .focus-stack,
  .focus-stack {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.55rem !important;
    width: min(820px, 94vw) !important;
    max-width: 94vw !important;
    height: auto !important;
    max-height: 96dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0.35rem 0.5rem !important;
    overflow: hidden !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    box-sizing: border-box !important;
  }

  #odak-modu-container .focus-stack > *,
  .focus-stack > * {
    grid-area: unset !important;
    float: none !important;
    align-self: center !important;
    justify-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .focus-label {
    display: block !important;
    font-size: 0.58rem !important;
    margin: 0 !important;
  }

  .focus-task-select {
    grid-area: unset !important;
    width: min(520px, 100%) !important;
    max-width: 100% !important;
    padding: 0.35rem 1.6rem 0.35rem 0.65rem !important;
    font-size: 0.78rem !important;
    margin: 0 auto !important;
  }

  .focus-phase-row {
    grid-area: unset !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 0.4rem !important;
    margin: 0 !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .focus-phase {
    font-size: 0.62rem !important;
    margin: 0 !important;
    letter-spacing: 0.08em !important;
  }
  .focus-fs-btn {
    min-height: 28px !important;
    padding: 0.18rem 0.5rem !important;
    font-size: 0.62rem !important;
  }

  #odak-modu-container .focus-clock,
  .focus-clock,
  body.zen-mode-active .focus-clock,
  body.focus-mobile-immersive .focus-clock {
    grid-area: unset !important;
    display: flex !important;
    width: auto !important;
    max-width: 100% !important;
    align-self: center !important;
    justify-content: center !important;
    align-items: baseline !important;
    font-size: clamp(1.7rem, 18vh, 3.1rem) !important;
    margin: 0 !important;
    line-height: 0.9 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }

  .focus-strict-toggle {
    grid-area: unset !important;
    display: inline-flex !important;
    justify-content: center !important;
    transform: none !important;
    margin: 0 auto !important;
  }

  .focus-cycle-wrap {
    grid-area: unset !important;
    width: min(420px, 100%) !important;
    gap: 0.2rem !important;
    margin: 0 auto !important;
    align-items: center !important;
  }
  .focus-cycle-label { font-size: 0.62rem !important; }
  .focus-dot { width: 8px !important; height: 8px !important; }

  .focus-task-name {
    grid-area: unset !important;
    font-size: 0.72rem !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    max-width: min(520px, 100%) !important;
    text-align: center !important;
    align-self: center !important;
  }

  .focus-rest-tip {
    grid-area: unset !important;
    font-size: 0.65rem !important;
    margin: 0 auto !important;
    padding: 0.15rem 0.35rem !important;
    text-align: center !important;
  }

  .focus-progress-wrap {
    grid-area: unset !important;
    width: min(480px, 100%) !important;
    margin: 0 auto !important;
  }
  .focus-progress-top { font-size: 0.58rem !important; margin-bottom: 0.12rem !important; }
  .focus-progress-track { height: 6px !important; }

  .focus-actions {
    grid-area: unset !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: min(560px, 100%) !important;
    gap: 0.4rem !important;
    margin: 0 auto !important;
    align-items: stretch !important;
  }
  .focus-start-btn,
  .focus-ctrl-btn {
    flex: 1 1 auto !important;
    min-height: 36px !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.78rem !important;
    width: auto !important;
    max-width: none !important;
  }

  .lofi-dock:not(.is-chat-embedded) {
    right: 0.45rem !important;
    bottom: 0.35rem !important;
  }
  .lofi-dock:not(.is-chat-embedded) .lofi-panel,
  body.zen-mode-active .lofi-panel,
  body.focus-mobile-immersive .lofi-panel {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: 0 !important;
    bottom: calc(100% + 10px) !important;
    transform: none !important;
    width: min(280px, calc(100vw - 1.25rem)) !important;
    max-width: min(280px, calc(100vw - 1.25rem)) !important;
    max-height: calc(100dvh - 4.5rem) !important;
    padding: 0.45rem 0.55rem !important;
  }
  .radio-station-list { max-height: min(36vh, 120px) !important; }

  .toast,
  .toast.show,
  .chat-toast,
  .chat-toast.show {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(420px, 88vw) !important;
    max-width: 88vw !important;
    padding: 0.5rem 0.65rem !important;
  }
}

/* ===== FINAL: Odak — absolute center (flex/grid savaşlarını ezer) ===== */
#odak-modu-container .focus-room {
  display: block !important;
  position: relative !important;
  height: 100% !important;
  min-height: calc(100dvh - 8.5rem) !important;
}
#odak-modu-container .focus-room > :not(.focus-stack) {
  position: absolute !important;
}
#odak-modu-container .focus-stack {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.35rem !important;
  width: min(560px, calc(100% - 2.5rem)) !important;
  height: auto !important;
  margin: 0 !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
}
#odak-modu-container .focus-stack > * {
  grid-area: unset !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#odak-modu-container .focus-clock {
  display: flex !important;
  width: 100% !important;
  justify-content: center !important;
}
#odak-modu-container .focus-strict-toggle {
  display: inline-flex !important;
  float: none !important;
  clear: both !important;
  margin: 0 auto !important;
}
#odak-modu-container .focus-label {
  display: block !important;
}

#odak-modu-container.fullscreen-focus-active .focus-room,
#odak-modu-container:fullscreen .focus-room,
#odak-modu-container:-webkit-full-screen .focus-room {
  display: block !important;
  inset: 0 !important;
  height: 100% !important;
  min-height: 100% !important;
  padding: 0 !important;
}
#odak-modu-container.fullscreen-focus-active .focus-stack,
#odak-modu-container:fullscreen .focus-stack,
#odak-modu-container:-webkit-full-screen .focus-stack {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  gap: clamp(1rem, 2.6vh, 1.6rem) !important;
  width: min(560px, 90vw) !important;
}

@media (orientation: landscape) and (max-height: 560px) {
  #odak-modu-container.fullscreen-focus-active,
  #odak-modu-container:fullscreen,
  #odak-modu-container:-webkit-full-screen {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
  }
  #odak-modu-container.fullscreen-focus-active .focus-room,
  #odak-modu-container:fullscreen .focus-room,
  #odak-modu-container:-webkit-full-screen .focus-room {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    padding: 0 !important;
  }
  #odak-modu-container .focus-stack,
  #odak-modu-container.fullscreen-focus-active .focus-stack,
  #odak-modu-container:fullscreen .focus-stack,
  #odak-modu-container:-webkit-full-screen .focus-stack {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    width: min(440px, 88vw) !important;
    max-width: 88vw !important;
    max-height: calc(100% - 0.4rem) !important;
    height: auto !important;
    gap: 0.28rem !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    overflow: hidden !important;
  }
  #odak-modu-container .focus-stack > *,
  #odak-modu-container.fullscreen-focus-active .focus-stack > * {
    grid-area: auto !important;
    width: min(420px, 100%) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    justify-self: center !important;
    align-self: center !important;
  }
  #odak-modu-container .focus-phase-row,
  #odak-modu-container.fullscreen-focus-active .focus-phase-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }
  #odak-modu-container .focus-phase-actions {
    width: auto !important;
    flex: 0 0 auto !important;
    justify-content: center !important;
  }
  #odak-modu-container .focus-clock,
  #odak-modu-container.fullscreen-focus-active .focus-clock,
  #odak-modu-container:fullscreen .focus-clock {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: baseline !important;
    font-size: clamp(2.4rem, 24vh, 4.2rem) !important;
    line-height: 0.9 !important;
    margin: 0.05rem 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
  #odak-modu-container .focus-strict-toggle,
  #odak-modu-container .focus-actions,
  #odak-modu-container.fullscreen-focus-active .focus-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  #odak-modu-container .focus-start-btn,
  #odak-modu-container .focus-ctrl-btn {
    min-height: 32px !important;
    width: auto !important;
    flex: 0 1 auto !important;
    font-size: 0.74rem !important;
  }
}

/* Tam ekran odak: kare menü + kayan çekmece + sağ alt müzik */
body.focus-overlay-open .topbar {
  display: none !important;
}
#odak-modu-container.fullscreen-focus-active .sidebar,
#odak-modu-container:fullscreen .sidebar,
#odak-modu-container:-webkit-full-screen .sidebar {
  display: flex !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: min(280px, 82vw) !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  transform: translateX(calc(-100% - 16px)) !important;
  border-right: none !important;
  box-shadow: none !important;
  z-index: 10035 !important;
  visibility: visible !important;
}
body.sidebar-open #odak-modu-container.fullscreen-focus-active .sidebar,
body.sidebar-open #odak-modu-container:fullscreen .sidebar,
body.sidebar-open #odak-modu-container:-webkit-full-screen .sidebar {
  transform: translateX(0) !important;
  border-right: 1px solid var(--line) !important;
  box-shadow: 16px 0 36px rgba(0, 0, 0, 0.45) !important;
}
#odak-modu-container.fullscreen-focus-active .sidebar-overlay,
#odak-modu-container:fullscreen .sidebar-overlay,
#odak-modu-container:-webkit-full-screen .sidebar-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 10028 !important;
}
body.sidebar-open #odak-modu-container.fullscreen-focus-active .sidebar-overlay,
body.sidebar-open #odak-modu-container:fullscreen .sidebar-overlay,
body.sidebar-open #odak-modu-container:-webkit-full-screen .sidebar-overlay {
  display: block !important;
}
#odak-modu-container.fullscreen-focus-active .lofi-dock,
#odak-modu-container:fullscreen .lofi-dock,
#odak-modu-container:-webkit-full-screen .lofi-dock,
body.focus-overlay-open .lofi-dock:not(.is-chat-embedded) {
  display: block !important;
  position: absolute !important;
  right: max(0.55rem, env(safe-area-inset-right, 0px)) !important;
  bottom: max(0.55rem, env(safe-area-inset-bottom, 0px)) !important;
  left: auto !important;
  top: auto !important;
  width: max-content !important;
  max-width: max-content !important;
  height: max-content !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 60 !important;
  opacity: 1 !important;
  pointer-events: none !important;
  transform: none !important;
  align-self: end !important;
  justify-self: end !important;
}
#odak-modu-container.fullscreen-focus-active .lofi-toggle,
#odak-modu-container:fullscreen .lofi-toggle,
body.focus-overlay-open .lofi-dock:not(.is-chat-embedded) .lofi-toggle {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  border-radius: 14px !important;
  font-size: 1.15rem !important;
}
@media (max-width: 768px), ((orientation: landscape) and (max-height: 560px)) {
  #odak-modu-container.fullscreen-focus-active .focus-menu-btn,
  #odak-modu-container:fullscreen .focus-menu-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }
  #odak-modu-container.fullscreen-focus-active .lofi-toggle,
  #odak-modu-container:fullscreen .lofi-toggle,
  body.focus-overlay-open .lofi-dock:not(.is-chat-embedded) .lofi-toggle {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 12px !important;
    font-size: 1.05rem !important;
  }
  body.focus-overlay-open .lofi-dock:not(.is-chat-embedded) .lofi-panel,
  #odak-modu-container.fullscreen-focus-active .lofi-panel {
    width: min(300px, calc(100vw - 1rem)) !important;
    max-width: calc(100vw - 1rem) !important;
    max-height: none !important;
  }
}

/* Radyo: yalnızca düğme kadar kutu. Kapalı panel ve geniş şerit yok. */
.lofi-dock:not(.is-chat-embedded) {
  overflow: visible !important;
  width: max-content !important;
  max-width: max-content !important;
  height: max-content !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}
.lofi-dock:not(.is-chat-embedded) .lofi-toggle {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 2 !important;
}
.lofi-dock:not(.is-chat-embedded) .lofi-panel,
.lofi-dock:not(.is-chat-embedded) .lofi-panel.open,
.lofi-dock:not(.is-chat-embedded) .lofi-panel.radio-panel,
body.focus-overlay-open .lofi-dock:not(.is-chat-embedded) .lofi-panel,
body.zen-mode-active .lofi-dock:not(.is-chat-embedded) .lofi-panel,
body.focus-room-active .lofi-dock:not(.is-chat-embedded) .lofi-panel,
#odak-modu-container.fullscreen-focus-active .lofi-panel,
#odak-modu-container:fullscreen .lofi-panel {
  position: absolute !important;
  top: auto !important;
  left: auto !important;
  right: 0 !important;
  bottom: calc(100% + 10px) !important;
  transform: none !important;
  width: min(280px, calc(100vw - 1.25rem)) !important;
  max-width: min(280px, calc(100vw - 1.25rem)) !important;
  max-height: calc(100dvh - 5.5rem) !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.7rem 0.75rem 0.75rem !important;
  overflow: hidden !important;
  display: none !important;
  flex-direction: column !important;
  gap: 0.45rem !important;
  box-sizing: border-box !important;
  z-index: 70 !important;
  pointer-events: none !important;
}
.lofi-dock:not(.is-chat-embedded) .lofi-panel.open,
body.focus-overlay-open .lofi-dock:not(.is-chat-embedded) .lofi-panel.open,
#odak-modu-container.fullscreen-focus-active .lofi-panel.open {
  display: flex !important;
  pointer-events: auto !important;
}
.lofi-dock:not(.is-chat-embedded) .lofi-panel h4,
.lofi-dock:not(.is-chat-embedded) .radio-now-wrap {
  margin: 0 !important;
  flex: 0 0 auto !important;
}
.lofi-dock:not(.is-chat-embedded) .radio-station-list {
  flex: 0 0 92px !important;
  height: 92px !important;
  max-height: 92px !important;
  min-height: 92px !important;
  margin: 0 !important;
  padding: 4px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
}
.lofi-dock:not(.is-chat-embedded) .radio-station-item {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 0.7rem !important;
  display: flex !important;
  align-items: center !important;
  flex: 0 0 40px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.lofi-dock:not(.is-chat-embedded) .radio-controls,
.lofi-dock:not(.is-chat-embedded) .lofi-volume-row {
  flex: 0 0 auto !important;
  margin: 0 !important;
  position: relative !important;
  width: 100% !important;
}
#odak-modu-container .focus-room > .focus-partner-badge,
#odak-modu-container.fullscreen-focus-active .focus-partner-badge,
#odak-modu-container:fullscreen .focus-partner-badge,
#odak-modu-container:-webkit-full-screen .focus-partner-badge,
body.focus-overlay-open .focus-partner-badge,
.focus-partner-badge {
  position: absolute !important;
  top: 0.4rem !important;
  right: 0.45rem !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  width: max-content !important;
  max-width: min(150px, 40vw) !important;
  z-index: 40 !important;
  text-align: left !important;
  pointer-events: none !important;
}

/* Duraklat / Oturumu Bitir: yarı saydam zemin yıldızların altında silik kalıyordu */
#odak-modu-container .focus-actions .focus-ctrl-btn:not(.focus-working-btn) {
  opacity: 1 !important;
  background: #172033 !important;
  background-image: none !important;
  border: 1.5px solid rgba(226, 232, 240, 0.78) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45) !important;
  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#odak-modu-container.fullscreen-focus-active:has(.focus-room[class*="focus-theme-"]),
#odak-modu-container:fullscreen:has(.focus-room[class*="focus-theme-"]),
#odak-modu-container:-webkit-full-screen:has(.focus-room[class*="focus-theme-"]) {
  background: transparent !important;
}

#odak-modu-container .focus-actions .focus-ctrl-btn.danger {
  background: #be123c !important;
  border-color: #ffe4e6 !important;
  color: #fff1f2 !important;
  -webkit-text-fill-color: #fff1f2 !important;
}
#odak-modu-container.fullscreen-focus-active .focus-stack,
#odak-modu-container:fullscreen .focus-stack {
  max-height: none !important;
  overflow: visible !important;
}

/* Odak: acımasız mod, seans ve görev adı yok. Sayaç büyük, alt satır kesilmesin. */
#odak-modu-container .focus-strict-toggle,
#odak-modu-container .focus-cycle-wrap,
#odak-modu-container .focus-task-name,
#odak-modu-container .focus-rest-tip,
#odak-modu-container.fullscreen-focus-active .focus-strict-toggle,
#odak-modu-container.fullscreen-focus-active .focus-cycle-wrap,
#odak-modu-container.fullscreen-focus-active .focus-task-name,
.focus-room .focus-strict-toggle,
.focus-room .focus-cycle-wrap,
.focus-room .focus-task-name,
.focus-room .focus-rest-tip {
  display: none !important;
}
#odak-modu-container .focus-stack,
#odak-modu-container.fullscreen-focus-active .focus-stack,
#odak-modu-container:fullscreen .focus-stack,
#odak-modu-container:-webkit-full-screen .focus-stack {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  gap: 0.45rem !important;
  z-index: 5 !important;
}
#odak-modu-container .focus-progress-wrap,
#odak-modu-container .focus-actions,
#odak-modu-container.fullscreen-focus-active .focus-progress-wrap,
#odak-modu-container.fullscreen-focus-active .focus-actions {
  display: flex !important;
  position: relative !important;
  z-index: 6 !important;
  overflow: visible !important;
}
#odak-modu-container .focus-progress-wrap,
#odak-modu-container.fullscreen-focus-active .focus-progress-wrap {
  flex-direction: column !important;
}
#odak-modu-container .focus-clock,
#odak-modu-container.fullscreen-focus-active .focus-clock,
#odak-modu-container:fullscreen .focus-clock,
#odak-modu-container:-webkit-full-screen .focus-clock {
  font-size: clamp(4.8rem, 32vh, 9rem) !important;
  line-height: 0.92 !important;
  position: relative !important;
  z-index: 1 !important;
  overflow: visible !important;
  max-width: 100% !important;
  pointer-events: none !important;
}
#odak-modu-container .focus-clock * {
  pointer-events: none !important;
}
#odak-modu-container .focus-phase-row,
#odak-modu-container .focus-phase-actions,
#odak-modu-container .focus-fs-btn,
#odak-modu-container .focus-task-select,
#odak-modu-container .focus-actions,
#odak-modu-container .focus-actions button {
  position: relative !important;
  z-index: 8 !important;
  pointer-events: auto !important;
}
