﻿:root {
  --bg: #090d14;
  --panel: #111821;
  --panel-soft: #17202b;
  --ink: #f7f3e8;
  --muted: #aab3bf;
  --gold: #f4c95d;
  --gold-soft: #6f5520;
  --line: rgba(244, 201, 93, 0.22);
  --danger: #f26464;
  --ok: #5ee0a0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 15%, rgba(244, 201, 93, 0.12), transparent 28%),
    linear-gradient(135deg, #070a10 0%, #111827 52%, #0b0f17 100%);
}

button {
  font: inherit;
}

.login-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 20%, rgba(244, 201, 93, 0.16), transparent 34%),
    rgba(5, 7, 11, 0.96);
  overflow-y: auto;
  z-index: 50;
}

.login-screen.hidden {
  display: none;
}

.login-card {
  width: min(500px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 33, 0.94);
  padding: 20px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.login-card::-webkit-scrollbar {
  display: none;
}

.login-card h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.05;
}

.signup-card h1 {
  margin-bottom: 4px;
}

.login-face {
  width: 118px;
  height: 118px;
  margin: 0 auto 14px;
}

.login-cloudix-video {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 201, 93, 0.62);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, #11100d, #030407 72%);
  box-shadow: 0 0 34px rgba(244, 201, 93, 0.22), inset 0 0 20px rgba(244, 201, 93, 0.08);
}

.login-cloudix-video::before,
.login-cloudix-video::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(244, 201, 93, 0.28);
  pointer-events: none;
}

.login-cloudix-video::before {
  inset: 8px;
}

.login-cloudix-video::after {
  inset: -7px;
  opacity: 0.38;
}

.login-cloudix-video video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}

.login-cloudix-video video::-webkit-media-controls,
.login-cloudix-video video::-webkit-media-controls-panel,
.login-cloudix-video video::-webkit-media-controls-overlay-play-button,
.login-cloudix-video video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
}

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  text-align: left;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-form input,
.login-form select {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.26);
  padding: 0 12px;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(244, 201, 93, 0.38);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(244, 201, 93, 0.08);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle .eye-icon,
.password-eye .eye-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.password-toggle .eye-icon path,
.password-toggle .eye-icon circle,
.password-eye .eye-icon path,
.password-eye .eye-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle.is-visible .eye-icon {
  filter: drop-shadow(0 0 6px rgba(244, 201, 93, 0.55));
}

.password-toggle:hover,
.password-toggle.is-visible {
  background: rgba(244, 201, 93, 0.18);
  box-shadow: 0 0 16px rgba(244, 201, 93, 0.18);
}

.login-button {
  justify-content: center;
  margin-top: 8px;
}

.signup-actions {
  margin-top: 8px;
}

.signup-message {
  margin: 14px auto 18px;
  max-width: 420px;
}

.login-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

body.auth-locked .app-shell,
body.auth-locked .floating-assistant,
body.auth-locked .ask-panel {
  display: none !important;
}

body.auth-locked .assistant-bubble {
  z-index: 70;
}

.sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 18, 0.72);
  padding: 28px 20px;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 34px;
}

.brand-orb {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: #05070b;
  box-shadow: 0 0 22px rgba(244, 201, 93, 0.18);
}

.brand-orb img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.eyebrow,
.brief-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(244, 201, 93, 0.08);
}

.main-panel {
  padding: 34px;
}

.topbar,
.section-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow.gold {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 2.1rem);
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.status-pill,
.primary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  background: rgba(244, 201, 93, 0.09);
  padding: 0 16px;
  white-space: nowrap;
}

.primary-button {
  cursor: pointer;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 22px;
}

.assistant-stage,
.daily-brief,
.content-section,
.device-plan article,
.data-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(17, 24, 33, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.assistant-stage {
  display: grid;
  grid-template-columns: minmax(270px, 0.85fr) minmax(280px, 1fr);
  gap: 26px;
  align-items: center;
  min-height: 520px;
  padding: 28px;
}

.device-preview {
  display: grid;
  min-height: 430px;
  place-items: center;
  border: 1px solid rgba(244, 201, 93, 0.16);
  border-radius: 32px;
  background: #05070b;
  box-shadow: inset 0 0 0 10px #11151d, inset 0 0 0 14px #05070b;
  position: relative;
}

.device-time {
  position: absolute;
  top: 26px;
  left: 28px;
}

.device-time strong,
.device-time span {
  display: block;
}

.device-time strong {
  color: var(--gold);
  font-size: 1.75rem;
}

.device-time span {
  color: var(--muted);
  font-size: 0.82rem;
}

.robot-face {
  position: relative;
  display: block;
  border: 2px solid rgba(244, 201, 93, 0.7);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(244, 201, 93, 0.18), transparent 36%),
    #030405;
  box-shadow: inset 0 0 22px rgba(244, 201, 93, 0.15), 0 0 38px rgba(244, 201, 93, 0.18);
}

.robot-face.large {
  width: min(78vw, 260px);
  height: min(78vw, 260px);
}

.robot-face.small {
  width: 74px;
  height: 74px;
}

.eye {
  position: absolute;
  top: 35%;
  width: 15%;
  height: 26%;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(244, 201, 93, 0.85);
  animation: blink 5.5s infinite;
}

.eye-left {
  left: 30%;
}

.eye-right {
  right: 30%;
}

.mouth {
  position: absolute;
  left: 50%;
  bottom: 30%;
  width: 18%;
  height: 9%;
  border-bottom: 5px solid var(--gold);
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.robot-face.small .mouth {
  border-bottom-width: 3px;
}

.robot-face[data-mood="cold"] {
  animation: shiver 0.16s infinite;
}

.robot-face[data-mood="cold"] .weather-mark::after {
  content: "*";
  position: absolute;
  right: 17%;
  top: 19%;
  color: #a9d8ff;
  font-weight: 700;
}

.robot-face[data-mood="hot"] .weather-mark::after {
  content: "";
  position: absolute;
  right: 20%;
  top: 22%;
  width: 7px;
  height: 12px;
  border-radius: 999px;
  background: #7ccfff;
  animation: sweat 1.2s infinite;
}

.robot-face[data-mood="storm"] {
  border-color: #b4c8ff;
  box-shadow: inset 0 0 22px rgba(180, 200, 255, 0.22), 0 0 38px rgba(180, 200, 255, 0.24);
}

.robot-face[data-mood="storm"] .weather-mark::after {
  content: "!";
  position: absolute;
  right: 18%;
  top: 16%;
  color: #b4c8ff;
  font-weight: 800;
  animation: flash 1s infinite;
}

.robot-face[data-mood="sleepy"] .eye {
  height: 7%;
  top: 42%;
}

.robot-face[data-mood="sleepy"] .mouth {
  width: 14%;
  height: 14%;
  border: 4px solid var(--gold);
  border-radius: 50%;
}

.robot-face[data-mood="curious"] .eye-left {
  height: 18%;
  top: 39%;
}

.robot-face[data-mood="curious"] .eye-right {
  height: 30%;
  top: 33%;
}

.robot-face[data-mood="thinking"] .eye {
  height: 10%;
  top: 42%;
}

.robot-face[data-mood="thinking"] .mouth {
  width: 14%;
  border-bottom-width: 3px;
}

.robot-face[data-mood="alert"] {
  border-color: var(--danger);
  box-shadow: inset 0 0 22px rgba(242, 100, 100, 0.18), 0 0 38px rgba(242, 100, 100, 0.18);
  animation: alertPulse 0.9s infinite alternate;
}

.robot-face[data-mood="alert"] .eye {
  background: var(--danger);
  box-shadow: 0 0 18px rgba(242, 100, 100, 0.85);
}

.robot-face[data-mood="care"] {
  border-color: #5ee0a0;
  box-shadow: inset 0 0 22px rgba(94, 224, 160, 0.16), 0 0 38px rgba(94, 224, 160, 0.14);
}

.robot-face[data-mood="care"] .eye,
.robot-face[data-mood="care"] .mouth {
  filter: hue-rotate(65deg);
}

.robot-face[data-mood="proud"] {
  animation: proudFloat 1.5s infinite alternate;
}

.robot-face[data-mood="proud"] .mouth {
  width: 24%;
}

.robot-face[data-emotion="hungry"] .mouth,
.robot-face[data-emotion="pet-hungry"] .mouth {
  width: 11%;
  height: 11%;
  border: 3px solid var(--gold);
  border-radius: 50%;
}

.robot-face[data-emotion="in-love"] .eye,
.robot-face[data-emotion="pet-love"] .eye {
  border-radius: 50% 50% 45% 45%;
  transform: rotate(45deg);
}

.robot-face[data-emotion="laughing"] .mouth {
  width: 26%;
  height: 14%;
  border: 0;
  border-bottom: 8px solid var(--gold);
}

.robot-face[data-emotion="bored"] .eye {
  height: 7%;
  top: 42%;
}

.robot-face[data-emotion="scared"],
.robot-face[data-emotion="startled"],
.robot-face[data-emotion="panic-cute"] {
  animation: scaredShake 0.11s infinite;
}

.robot-face[data-emotion="scared"] .eye,
.robot-face[data-emotion="startled"] .eye,
.robot-face[data-emotion="panic-cute"] .eye {
  width: 18%;
  height: 30%;
  background: #ff8b8b;
  box-shadow: 0 0 18px rgba(255, 139, 139, 0.9);
}

.robot-face[data-emotion="wink"] .eye-left {
  height: 6%;
  top: 43%;
}

.robot-face[data-emotion="tiny-dance"],
.robot-face[data-emotion="bounce"],
.robot-face[data-emotion="spin-happy"] {
  animation: happyBounce 0.45s infinite alternate;
}

.robot-face[data-emotion="tilt-left"] {
  transform: rotate(-9deg);
}

.robot-face[data-emotion="tilt-right"] {
  transform: rotate(9deg);
}

.robot-face[data-emotion="look-up"] .eye {
  top: 28%;
}

.robot-face[data-emotion="look-down"] .eye {
  top: 46%;
}

.robot-face[data-emotion="look-left"] .eye-left,
.robot-face[data-emotion="look-left"] .eye-right {
  transform: translateX(-6px);
}

.robot-face[data-emotion="look-right"] .eye-left,
.robot-face[data-emotion="look-right"] .eye-right {
  transform: translateX(6px);
}

.robot-face[data-emotion="meditation"],
.robot-face[data-emotion="breathing"],
.robot-face[data-emotion="zen"] {
  animation: calmBreath 2.4s infinite ease-in-out;
}

.robot-face[data-emotion="mj-wig"]::before,
.robot-face[data-emotion="mj-wig-glasses"]::before {
  content: "";
  position: absolute;
  left: 16%;
  top: -9%;
  width: 68%;
  height: 36%;
  border-radius: 50% 50% 38% 38%;
  background: radial-gradient(circle at 18% 60%, #111 0 16%, transparent 17%),
    radial-gradient(circle at 34% 42%, #050505 0 22%, transparent 23%),
    radial-gradient(circle at 56% 44%, #111 0 20%, transparent 21%),
    radial-gradient(circle at 76% 58%, #050505 0 18%, transparent 19%);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55));
  z-index: 2;
}

.robot-face[data-emotion="mj-glasses"]::after,
.robot-face[data-emotion="mj-wig-glasses"]::after {
  content: "";
  position: absolute;
  left: 26%;
  top: 37%;
  width: 48%;
  height: 15%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #050505 0 42%, #f4c95d 43% 57%, #050505 58% 100%);
  box-shadow: 0 0 12px rgba(244, 201, 93, 0.38);
  z-index: 3;
}

.robot-face[data-emotion="moonwalk"],
.robot-face[data-emotion="stage-star"],
.robot-face[data-emotion="disco-lights"],
.robot-face[data-emotion="pop-idol"] {
  animation: stageMove 0.65s infinite alternate;
  box-shadow: inset 0 0 22px rgba(244, 201, 93, 0.15), 0 0 28px rgba(244, 201, 93, 0.35), 0 0 42px rgba(94, 224, 160, 0.25);
}

.robot-face[data-mood="excited"] {
  animation: excited 0.55s infinite alternate;
}

.mood-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.mood-controls button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(244, 201, 93, 0.08);
  padding: 0 12px;
  cursor: pointer;
}

.assistant-copy {
  max-width: 540px;
}

.weather-widget {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 230, 135, 0.45), transparent 28%),
    linear-gradient(165deg, #3c86f6 0%, #1e5fc0 48%, #112645 100%);
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 24px 70px rgba(0, 0, 0, 0.28);
}

.weather-scene {
  position: absolute;
  inset: 0;
}

.weather-sun {
  position: absolute;
  top: 42px;
  left: 40px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #ffd96b;
  box-shadow: 0 0 48px rgba(255, 217, 107, 0.8);
  animation: sunGlow 3.2s infinite alternate;
}

.weather-cloud {
  position: absolute;
  display: block;
  width: 150px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  filter: drop-shadow(0 18px 26px rgba(16, 32, 54, 0.22));
}

.weather-cloud::before,
.weather-cloud::after {
  content: "";
  position: absolute;
  bottom: 18px;
  border-radius: 50%;
  background: inherit;
}

.weather-cloud::before {
  left: 26px;
  width: 64px;
  height: 64px;
}

.weather-cloud::after {
  right: 22px;
  width: 78px;
  height: 78px;
}

.cloud-one {
  top: 116px;
  right: 28px;
  animation: drift 7s infinite alternate ease-in-out;
}

.cloud-two {
  top: 188px;
  left: 26px;
  opacity: 0.74;
  transform: scale(0.72);
  animation: drift 9s infinite alternate-reverse ease-in-out;
}

.weather-rain {
  position: absolute;
  top: 240px;
  width: 4px;
  height: 58px;
  border-radius: 999px;
  background: rgba(171, 218, 255, 0.9);
  opacity: 0;
  animation: none;
}

.rain-one {
  left: 42%;
}

.rain-two {
  left: 57%;
  animation-delay: 0.22s;
}

.weather-lightning {
  position: absolute;
  top: 214px;
  left: 50%;
  width: 34px;
  height: 72px;
  opacity: 0;
  background: #ffe66d;
  clip-path: polygon(46% 0, 100% 0, 62% 38%, 100% 38%, 28% 100%, 43% 52%, 0 52%);
  filter: drop-shadow(0 0 16px rgba(255, 230, 109, 0.8));
  animation: none;
}

.weather-wind {
  position: absolute;
  left: 32px;
  right: 32px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  opacity: 0;
  animation: none;
}

.wind-one {
  top: 238px;
}

.wind-two {
  top: 280px;
  width: 62%;
  animation-delay: 0.35s;
}

.weather-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.weather-info span,
.weather-info strong,
.weather-info p {
  display: block;
  color: white;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.weather-info span {
  font-size: 1rem;
}

.weather-info strong {
  margin: 4px 0 8px;
  font-size: 4rem;
  line-height: 0.95;
}

.weather-info p {
  max-width: 360px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.weather-location-button {
  margin-top: 16px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  padding: 0 14px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.weather-widget[data-weather="windy"] {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(165deg, #6f8aa9 0%, #3b607f 50%, #152538 100%);
}

.weather-widget[data-weather="cloudy"] {
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(165deg, #5f7691 0%, #34536f 52%, #142236 100%);
}

.weather-widget[data-weather="rainy"] {
  background:
    radial-gradient(circle at 25% 15%, rgba(190, 210, 230, 0.24), transparent 28%),
    linear-gradient(165deg, #445c72 0%, #23384d 50%, #111b28 100%);
}

.weather-widget[data-weather="storm"] {
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 235, 140, 0.16), transparent 24%),
    linear-gradient(165deg, #30384a 0%, #171c2a 55%, #080b12 100%);
}

.weather-widget[data-weather="night"] {
  background:
    radial-gradient(circle at 24% 18%, rgba(225, 235, 255, 0.28), transparent 18%),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.18), transparent 3%),
    radial-gradient(circle at 62% 26%, rgba(255, 255, 255, 0.16), transparent 2%),
    linear-gradient(165deg, #1d2d56 0%, #0b1630 55%, #050711 100%);
}

.weather-widget .weather-cloud,
.weather-widget .weather-rain,
.weather-widget .weather-lightning,
.weather-widget .weather-wind {
  opacity: 0;
  animation: none;
}

.weather-widget[data-weather="cloudy"] .weather-cloud,
.weather-widget[data-weather="windy"] .weather-cloud,
.weather-widget[data-weather="rainy"] .weather-cloud,
.weather-widget[data-weather="storm"] .weather-cloud {
  opacity: 0.88;
}

.weather-widget[data-weather="cloudy"] .cloud-one,
.weather-widget[data-weather="windy"] .cloud-one,
.weather-widget[data-weather="rainy"] .cloud-one,
.weather-widget[data-weather="storm"] .cloud-one {
  animation: drift 7s infinite alternate ease-in-out;
}

.weather-widget[data-weather="cloudy"] .cloud-two,
.weather-widget[data-weather="windy"] .cloud-two,
.weather-widget[data-weather="rainy"] .cloud-two,
.weather-widget[data-weather="storm"] .cloud-two {
  opacity: 0.72;
  animation: drift 9s infinite alternate-reverse ease-in-out;
}

.weather-widget[data-weather="rainy"] .weather-rain,
.weather-widget[data-weather="storm"] .weather-rain {
  opacity: 1;
  animation: rainDrop 0.9s infinite linear;
}

.weather-widget[data-weather="storm"] .weather-lightning {
  opacity: 1;
  animation: lightningFlash 2.4s infinite;
}

.weather-widget[data-weather="windy"] .weather-wind {
  opacity: 1;
  animation: windMove 2.4s infinite ease-in-out;
}

.weather-widget[data-weather="cloudy"] .weather-sun,
.weather-widget[data-weather="windy"] .weather-sun,
.weather-widget[data-weather="rainy"] .weather-sun,
.weather-widget[data-weather="storm"] .weather-sun,
.weather-widget[data-weather="night"] .weather-sun {
  opacity: 0.24;
}

.weather-widget[data-weather="cloudy"] .weather-sun {
  opacity: 0;
}

.weather-widget[data-weather="rainy"] .weather-sun,
.weather-widget[data-weather="storm"] .weather-sun {
  opacity: 0;
}

.weather-widget[data-weather="night"] .weather-sun {
  background: #e6eefc;
  box-shadow: 0 0 42px rgba(230, 238, 252, 0.62);
  opacity: 0.95;
}

.daily-brief,
.content-section {
  padding: 24px;
}

.brief-list,
.cards-grid,
.device-plan {
  display: grid;
  gap: 14px;
}

.brief-list article,
.data-card,
.device-plan article {
  padding: 18px;
}

.brief-list article,
.data-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.brief-list strong,
.data-card strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
}

.data-card {
  min-height: 135px;
}

.game-link-card {
  color: inherit;
  text-decoration: none;
}

.game-link-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.clickable-card {
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.clickable-card:hover {
  border-color: var(--line);
  background: rgba(244, 201, 93, 0.07);
  transform: translateY(-2px);
}

.data-card .tag {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  padding: 5px 9px;
  font-size: 0.78rem;
}

.avatar-card {
  min-height: 190px;
}

.choose-avatar-button {
  margin-top: 14px;
  width: fit-content;
}

.avatar-card input[type="file"] {
  margin-top: 12px;
  width: 100%;
  color: var(--muted);
}

.upgrade-note {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 201, 93, 0.07);
  padding: 16px;
}

.upgrade-note p {
  margin-bottom: 0;
}

.cloudix-story-stage {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 20px;
  align-items: center;
}

.cloudix-detail-stage {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.cloudix-detail-stage .cloudix-story {
  max-width: 760px;
}

.cloudix-story-stage .robot-face {
  margin: 0 auto;
}

.cloudix-video-avatar {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(244, 201, 93, 0.7);
  border-radius: 50%;
  background: #020409;
  box-shadow: inset 0 0 24px rgba(244, 201, 93, 0.12), 0 0 50px rgba(244, 201, 93, 0.18);
}

.cloudix-video-avatar-large {
  width: min(78vw, 260px);
  height: min(78vw, 260px);
  margin: 0 auto;
}

.cloudix-video-avatar-floating {
  width: 74px;
  height: 74px;
}

.cloudix-action-avatar {
  width: 74px;
  height: 74px;
}

.cloudix-avatar-video,
.cloudix-video-avatar video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
}

.cloudix-story h3 {
  margin: 0 0 12px;
  color: var(--gold);
}

.cloudix-story p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.cloudix-story p:last-child {
  margin-bottom: 0;
}

.family-panel {
  border-color: rgba(244, 201, 93, 0.24);
}

.simple-medicine-rows {
  display: grid;
  gap: 10px;
}

.medicine-inline-head {
  margin-top: 18px;
}

.profile-medicine-rows {
  margin-top: 12px;
}

.important-date-rows {
  display: grid;
  gap: 10px;
}

.important-date-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.7fr) 42px;
  gap: 10px;
  align-items: end;
}

.simple-medicine-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 42px;
  gap: 10px;
  align-items: center;
}

.children-rows {
  display: grid;
  gap: 14px;
}

.child-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 760px) {
  .important-date-row,
  .simple-medicine-row {
    grid-template-columns: 1fr;
  }
}

.pet-demo {
  position: relative;
  width: 92px;
  height: 78px;
  margin-bottom: 14px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 46% 46% 42% 42%;
  background:
    radial-gradient(circle at 34% 44%, #101318 0 7%, transparent 8%),
    radial-gradient(circle at 66% 44%, #101318 0 7%, transparent 8%),
    radial-gradient(ellipse at 50% 66%, #101318 0 7%, transparent 8%),
    linear-gradient(145deg, #ffd479, #f2a94b);
  box-shadow: inset 0 -12px 22px rgba(0, 0, 0, 0.16), 0 0 24px rgba(244, 201, 93, 0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.avatar-card:hover .pet-demo {
  transform: translateY(-2px) scale(1.04);
  box-shadow: inset 0 -12px 22px rgba(0, 0, 0, 0.16), 0 0 32px rgba(244, 201, 93, 0.24);
}

.pet-demo::before,
.pet-demo::after {
  content: "";
  position: absolute;
  background: inherit;
  border: 2px solid rgba(255, 255, 255, 0.16);
}

.pet-demo::before {
  left: 20%;
}

.pet-demo::after {
  right: 20%;
}

.pet-demo .pet-mouth,
.pet-demo::marker {
  display: none;
}

.pet-demo {
  --pet-mouth: radial-gradient(circle at 50% 66%, transparent 0 7%, var(--gold) 8% 10%, transparent 11%);
}

.pet-gato::before,
.pet-gato::after {
  top: -19px;
  width: 28px;
  height: 28px;
  transform: rotate(45deg);
  border-radius: 4px 14px 4px 14px;
}

.pet-gato {
  width: 104px;
  height: 104px;
  overflow: visible;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background:
    radial-gradient(circle at 41% 44%, #f4c95d 0 4%, #11151d 4.5% 7%, transparent 7.5%),
    radial-gradient(circle at 64% 44%, #f4c95d 0 4%, #11151d 4.5% 7%, transparent 7.5%),
    radial-gradient(circle at 56% 60%, #d99a83 0 3%, transparent 3.5%),
    radial-gradient(ellipse at 56% 68%, #f5eee2 0 24%, transparent 25%),
    linear-gradient(118deg, #10131a 0 48%, #f5eee2 49% 63%, #10131a 64% 100%),
    radial-gradient(circle at 50% 50%, #4b463f 0 61%, #0a0b0d 62% 100%);
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.2), 0 0 30px rgba(244, 201, 93, 0.12);
  animation: catBreath 3.8s ease-in-out infinite;
}

.pet-gato::before,
.pet-gato::after {
  top: 8px;
  z-index: 1;
  width: 26px;
  height: 38px;
  border: 2px solid rgba(15, 17, 23, 0.9);
  border-radius: 70% 20% 60% 20%;
  background:
    radial-gradient(ellipse at 54% 56%, #e8b8a8 0 38%, transparent 40%),
    linear-gradient(145deg, #181b24, #07080b);
  transform-origin: 50% 100%;
  animation: catEarTwitch 5.5s ease-in-out infinite;
}

.pet-gato::before {
  left: 22px;
  transform: rotate(-27deg);
}

.pet-gato::after {
  right: 13px;
  transform: rotate(28deg);
  animation-delay: 1.4s;
}

.pet-gato .pet-mouth,
.pet-gato::marker {
  display: none;
}

.pet-gato {
  --cat-whiskers:
    linear-gradient(12deg, transparent 0 47%, rgba(245, 238, 226, 0.9) 48% 50%, transparent 51% 100%),
    linear-gradient(-10deg, transparent 0 48%, rgba(245, 238, 226, 0.8) 49% 51%, transparent 52% 100%);
}

.pet-gato::selection {
  background: transparent;
}

.pet-gato::after {
  box-shadow: -42px 39px 0 -11px #f5eee2;
}

.pet-gato.pet-detail-avatar {
  width: min(64vw, 300px);
  height: min(64vw, 300px);
  transform: none;
}

.pet-gato.pet-detail-avatar::before,
.pet-gato.pet-detail-avatar::after {
  width: 58px;
  height: 82px;
  top: 28px;
}

.pet-gato.pet-detail-avatar::before {
  left: 72px;
}

.pet-gato.pet-detail-avatar::after {
  right: 48px;
  box-shadow: -112px 106px 0 -26px #f5eee2;
}

.michu-avatar,
.michu-mini {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 44%, rgba(236, 220, 184, 0.08), #090b10 64%);
  border: 2px solid rgba(244, 201, 93, 0.72);
  box-shadow: 0 0 32px rgba(244, 201, 93, 0.1);
  animation: michuFloat 3.8s ease-in-out infinite;
}

.michu-avatar::before,
.michu-avatar::after,
.michu-mini::before,
.michu-mini::after {
  content: none;
  display: none;
}

.michu-avatar.cat-curious,
.michu-avatar.cat-sequence,
.michu-avatar.cat-wave,
.michu-avatar.cat-sleepy,
.michu-avatar.cat-look,
.michu-avatar.cat-night,
.michu-avatar.cat-glasses,
.michu-mini.cat-curious,
.michu-mini.cat-sequence,
.michu-mini.cat-wave,
.michu-mini.cat-sleepy,
.michu-mini.cat-look,
.michu-mini.cat-night,
.michu-mini.cat-glasses {
  background: #0a0b0d;
}

.michu-avatar {
  width: min(58vw, 300px);
  height: min(58vw, 300px);
  margin: 0 auto;
}

.cloudix-cat-avatar,
.cloudix-cat-mini,
.cloudix-dog-avatar,
.cloudix-dog-mini,
.cloudix-pet-avatar,
.cloudix-pet-mini {
  display: block;
  position: relative;
  overflow: visible;
  border-radius: 50%;
  animation: cloudixCatFloat 3.8s ease-in-out infinite;
}

.cloudix-cat-avatar,
.cloudix-cat-mini {
  background: transparent;
}

.cloudix-dog-avatar,
.cloudix-dog-mini,
.cloudix-pet-avatar,
.cloudix-pet-mini {
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 201, 93, 0.16), transparent 54%),
    radial-gradient(circle at 50% 50%, #101216 0 62%, #05070b 63% 100%);
  box-shadow: inset 0 0 28px rgba(244, 201, 93, 0.08), 0 0 26px rgba(244, 201, 93, 0.16);
}

.cloudix-cat-avatar,
.cloudix-dog-avatar,
.cloudix-pet-avatar {
  width: min(60vw, 320px);
  height: min(60vw, 320px);
}

.cloudix-cat-mini,
.cloudix-dog-mini,
.cloudix-pet-mini {
  width: 74px;
  height: 74px;
  margin-bottom: 0;
}

.avatar-card > .cloudix-cat-mini,
.avatar-card > .cloudix-dog-mini,
.avatar-card > .cloudix-pet-mini {
  width: 108px;
  height: 108px;
  margin-bottom: 14px;
}

.cloudix-image-pet-avatar,
.cloudix-image-pet-mini {
  display: block;
  position: relative;
  overflow: visible;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  animation: cloudixCatFloat 3.8s ease-in-out infinite;
}

.pet-detail-avatar.cloudix-image-pet-avatar {
  width: min(60vw, 320px);
  height: min(60vw, 320px);
  transform: none;
}

.cloudix-image-pet-mini {
  width: 74px;
  height: 74px;
  margin-bottom: 0;
}

.avatar-card > .cloudix-image-pet-mini {
  width: 108px;
  height: 108px;
  margin-bottom: 14px;
}

.cloudix-image-pet-avatar::before,
.cloudix-image-pet-mini::before {
  display: none;
}

.cloudix-pet-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform-origin: 50% 70%;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.5));
}

.cloudix-pet-video {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  clip-path: circle(50% at 50% 50%);
  background: #020409;
  object-fit: cover;
  pointer-events: none;
  transform: none !important;
  animation: none !important;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.5));
}

.cloudix-image-pet-avatar:has(.cloudix-pet-video),
.cloudix-image-pet-mini:has(.cloudix-pet-video) {
  animation: none !important;
  transform: none !important;
}

.cloudix-image-pet-avatar:has(.cloudix-pet-video) .cloudix-pet-image,
.cloudix-image-pet-mini:has(.cloudix-pet-video) .cloudix-pet-image {
  animation: none !important;
  transform: none !important;
}

.cloudix-video-pet-holder,
.cloudix-video-pet-holder.cloudix-image-pet-avatar,
.cloudix-video-pet-holder.cloudix-image-pet-mini,
.cloudix-video-pet-holder .cloudix-pet-image {
  animation: none !important;
  transform: none !important;
}

.cat-sequence .cloudix-pet-image,
.dog-sequence .cloudix-pet-image,
.pet-sequence .cloudix-pet-image {
  animation: petImageSequence 5.4s ease-in-out infinite;
}

.cat-curious .cloudix-pet-image,
.dog-alert .cloudix-pet-image,
.pet-alert .cloudix-pet-image {
  animation: petImageCurious 3.2s ease-in-out infinite;
}

.dog-happy .cloudix-pet-image,
.pet-happy .cloudix-pet-image {
  animation: happyBounce 1.15s ease-in-out infinite alternate;
}

.cat-wave .cloudix-pet-image,
.dog-wave .cloudix-pet-image,
.pet-wave .cloudix-pet-image {
  animation: petImageWave 1.1s ease-in-out infinite alternate;
}

.cat-sleepy .cloudix-pet-image,
.dog-sleepy .cloudix-pet-image,
.pet-sleepy .cloudix-pet-image {
  animation: calmBreath 3.4s ease-in-out infinite;
  filter: brightness(0.72) saturate(0.84) drop-shadow(0 16px 28px rgba(0, 0, 0, 0.5));
}

.cat-night .cloudix-pet-image,
.dog-night .cloudix-pet-image,
.pet-night .cloudix-pet-image {
  filter: brightness(0.58) saturate(0.78) hue-rotate(150deg) drop-shadow(0 0 18px rgba(159, 243, 255, 0.2));
}

.cat-glasses .cloudix-pet-image {
  filter: contrast(1.08) saturate(1.06) drop-shadow(0 16px 28px rgba(0, 0, 0, 0.5));
}

.cat-bounce .cloudix-pet-image,
.dog-bounce .cloudix-pet-image,
.pet-bounce .cloudix-pet-image {
  animation: happyBounce 0.82s ease-in-out infinite alternate;
}

.cat-dance .cloudix-pet-image,
.dog-dance .cloudix-pet-image,
.pet-dance .cloudix-pet-image {
  animation: stageMove 0.68s ease-in-out infinite alternate;
}

.cat-tilt-left .cloudix-pet-image,
.dog-tilt-left .cloudix-pet-image,
.pet-tilt-left .cloudix-pet-image {
  transform: rotate(-8deg);
}

.cat-tilt-right .cloudix-pet-image,
.dog-tilt-right .cloudix-pet-image,
.pet-tilt-right .cloudix-pet-image {
  transform: rotate(8deg);
}

.cat-look .cloudix-pet-image,
.cat-look-up .cloudix-pet-image,
.dog-look-up .cloudix-pet-image,
.pet-look-up .cloudix-pet-image {
  transform: translateY(-7px) scale(1.02);
}

.cat-look-down .cloudix-pet-image,
.dog-look-down .cloudix-pet-image,
.pet-look-down .cloudix-pet-image {
  transform: translateY(7px) scale(0.99);
}

.cat-scared .cloudix-pet-image,
.dog-scared .cloudix-pet-image,
.pet-scared .cloudix-pet-image {
  animation: scaredShake 0.16s infinite alternate;
}

.cat-zen .cloudix-pet-image,
.dog-zen .cloudix-pet-image,
.pet-zen .cloudix-pet-image {
  animation: calmBreath 3.4s ease-in-out infinite;
  filter: brightness(0.82) saturate(0.9) drop-shadow(0 16px 28px rgba(0, 0, 0, 0.5));
}

.pet-fly .cloudix-pet-image {
  animation: petImageFly 0.9s ease-in-out infinite alternate;
}

.cloudix-cat-svg,
.cloudix-dog-svg,
.cloudix-pet-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.42));
}

.cloudix-cat-outer-ring,
.cloudix-cat-mid-ring {
  fill: none;
  stroke: rgba(244, 201, 93, 0.28);
  stroke-width: 2;
}

.cloudix-cat-mid-ring {
  stroke: rgba(244, 201, 93, 0.18);
}

.cloudix-cat-glow {
  fill: url(#cloudixCatGlow);
  opacity: 0.48;
  animation: cloudixCatGlowPulse 3s ease-in-out infinite;
}

.cloudix-cat-face {
  fill: url(#cloudixCatFace);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 3;
}

.cloudix-cat-ear {
  fill: #08090d;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 4;
  stroke-linejoin: round;
  transform-origin: 150px 150px;
  animation: cloudixCatEar 5.2s ease-in-out infinite;
}

.cloudix-cat-ear-right {
  animation-delay: 1.2s;
}

.cloudix-cat-inner-ear {
  fill: #ee9c87;
  opacity: 0.94;
}

.cloudix-cat-eye {
  fill: #ffd769;
  filter: drop-shadow(0 0 10px rgba(255, 215, 105, 0.9));
  transform-box: fill-box;
  transform-origin: center;
  animation: cloudixCatBlink 5.4s ease-in-out infinite;
}

.cloudix-cat-eye-right {
  animation-delay: 0.08s;
}

.cloudix-cat-nose {
  fill: #ee9c87;
}

.cloudix-cat-mouth,
.cloudix-cat-whiskers {
  fill: none;
  stroke: rgba(223, 213, 202, 0.58);
  stroke-width: 4;
  stroke-linecap: round;
}

.cloudix-cat-mouth {
  stroke: rgba(223, 213, 202, 0.72);
}

.cat-sleepy .cloudix-cat-eye {
  animation: none;
  transform: scaleY(0.18);
}

.cat-night .cloudix-cat-face {
  fill: #030407;
}

.cat-night .cloudix-cat-eye {
  fill: #9ff3ff;
  filter: drop-shadow(0 0 12px rgba(159, 243, 255, 0.9));
}

.cat-glasses .cloudix-cat-eye {
  opacity: 0.34;
}

.cat-glasses .cloudix-cat-svg {
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.42)) contrast(1.05);
}

.cat-look .cloudix-cat-eye,
.cat-curious .cloudix-cat-eye,
.cat-sequence .cloudix-cat-eye {
  animation: cloudixCatBlink 5.4s ease-in-out infinite, cloudixCatLook 4.2s ease-in-out infinite;
}

.cat-bounce .cloudix-cat-svg,
.dog-bounce .cloudix-dog-svg {
  animation: happyBounce 0.82s ease-in-out infinite alternate;
}

.cat-dance .cloudix-cat-svg,
.dog-dance .cloudix-dog-svg {
  animation: stageMove 0.68s ease-in-out infinite alternate;
}

.cat-tilt-left .cloudix-cat-svg,
.dog-tilt-left .cloudix-dog-svg {
  transform: rotate(-8deg);
}

.cat-tilt-right .cloudix-cat-svg,
.dog-tilt-right .cloudix-dog-svg {
  transform: rotate(8deg);
}

.cat-look-up .cloudix-cat-eye,
.dog-look-up .cloudix-dog-eye {
  transform: translateY(-6px);
}

.cat-look-down .cloudix-cat-eye,
.dog-look-down .cloudix-dog-eye {
  transform: translateY(6px);
}

.cat-scared .cloudix-cat-svg,
.dog-scared .cloudix-dog-svg {
  animation: scaredShake 0.16s infinite alternate;
}

.cat-scared .cloudix-cat-eye,
.dog-scared .cloudix-dog-eye {
  transform: scaleY(1.18) scaleX(0.9);
}

.cat-zen .cloudix-cat-svg,
.dog-zen .cloudix-dog-svg {
  animation: calmBreath 3.4s ease-in-out infinite;
}

.cat-zen .cloudix-cat-eye,
.dog-zen .cloudix-dog-eye {
  animation: none;
  transform: scaleY(0.22);
}

.cloudix-dog-outer-ring,
.cloudix-dog-mid-ring {
  fill: none;
  stroke: rgba(244, 201, 93, 0.28);
  stroke-width: 2;
}

.cloudix-dog-backdrop {
  fill: #040609;
  stroke: rgba(244, 201, 93, 0.16);
  stroke-width: 2;
}

.cloudix-dog-mid-ring {
  stroke: rgba(244, 201, 93, 0.18);
}

.cloudix-dog-glow {
  fill: rgba(244, 201, 93, 0.22);
  opacity: 0.55;
  animation: cloudixCatGlowPulse 3s ease-in-out infinite;
}

.cloudix-dog-head,
.cloudix-dog-ear,
.cloudix-dog-forehead {
  fill: #d28a2e;
  stroke: rgba(88, 46, 10, 0.72);
  stroke-width: 3;
  stroke-linejoin: round;
}

.cloudix-dog-ear {
  fill: #bd7629;
}

.cloudix-dog-forehead {
  fill: #e2a23d;
}

.cloudix-dog-ear {
  transform-origin: 150px 145px;
  animation: cloudixDogEar 4.8s ease-in-out infinite;
}

.cloudix-dog-ear-right {
  animation-delay: 1s;
}

.cloudix-dog-muzzle {
  fill: #f3c77e;
  opacity: 1;
}

.cloudix-dog-eye {
  fill: #ffdc70;
  filter: drop-shadow(0 0 10px rgba(255, 220, 112, 0.95));
  transform-box: fill-box;
  transform-origin: center;
  animation: cloudixCatBlink 5.4s ease-in-out infinite;
}

.cloudix-dog-brow {
  fill: none;
  stroke: rgba(255, 231, 184, 0.72);
  stroke-width: 6;
  stroke-linecap: round;
}

.cloudix-dog-nose {
  fill: #07080b;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.38));
}

.cloudix-dog-mouth,
.cloudix-dog-paw {
  fill: none;
  stroke: #07080b;
  stroke-width: 6;
  stroke-linecap: round;
}

.cloudix-dog-collar {
  fill: #08090d;
}

.cloudix-dog-medal {
  fill: #332719;
  stroke: rgba(244, 201, 93, 0.5);
  stroke-width: 3;
}

.cloudix-dog-paw {
  stroke: #ffd869;
  stroke-width: 4;
}

.dog-happy .cloudix-dog-mouth,
.dog-sequence .cloudix-dog-mouth {
  animation: cloudixDogSmile 4.4s ease-in-out infinite;
}

.dog-sleepy .cloudix-dog-eye {
  animation: none;
  transform: scaleY(0.16);
}

.dog-alert .cloudix-dog-ear {
  animation: cloudixDogAlertEar 1.2s ease-in-out infinite;
}

.dog-night .cloudix-dog-eye {
  fill: #9ff3ff;
  filter: drop-shadow(0 0 12px rgba(159, 243, 255, 0.95));
}

.dog-night .cloudix-dog-head {
  filter: brightness(0.82);
}

.dog-sequence .cloudix-dog-svg,
.dog-wave .cloudix-dog-svg {
  animation: cloudixDogBounce 3.6s ease-in-out infinite;
}

.dog-wave .cloudix-dog-ear-left,
.dog-wave .cloudix-dog-ear-right {
  animation: cloudixDogAlertEar 0.72s ease-in-out infinite;
}

.dog-look-up .cloudix-dog-brow {
  transform: translateY(-4px);
}

.dog-look-down .cloudix-dog-brow {
  transform: translateY(4px);
}

.cloudix-pet-backdrop {
  fill: #040609;
  stroke: rgba(244, 201, 93, 0.16);
  stroke-width: 2;
}

.cloudix-pet-outer-ring,
.cloudix-pet-mid-ring {
  fill: none;
  stroke: rgba(244, 201, 93, 0.42);
  stroke-width: 2;
}

.cloudix-pet-mid-ring {
  stroke: rgba(244, 201, 93, 0.24);
}

.cloudix-pet-glow {
  opacity: 0.56;
  animation: cloudixCatGlowPulse 3s ease-in-out infinite;
}

.cloudix-pet-ear,
.cloudix-pet-head,
.cloudix-pet-body {
  stroke: rgba(6, 7, 10, 0.64);
  stroke-width: 3;
  stroke-linejoin: round;
}

.cloudix-pet-ear {
  transform-origin: 150px 150px;
  animation: cloudixDogEar 5s ease-in-out infinite;
}

.cloudix-pet-ear-right {
  animation-delay: 1.1s;
}

.cloudix-pet-inner-ear {
  opacity: 0.92;
  stroke: rgba(6, 7, 10, 0.2);
  stroke-width: 2;
}

.cloudix-pet-muzzle {
  opacity: 0.55;
}

.cloudix-pet-eye {
  fill: #ffdc70;
  filter: drop-shadow(0 0 10px rgba(255, 220, 112, 0.95));
  transform-box: fill-box;
  transform-origin: center;
  animation: cloudixCatBlink 5.4s ease-in-out infinite;
}

.cloudix-pet-brow,
.cloudix-pet-mouth,
.cloudix-pet-whiskers,
.cloudix-pet-hair {
  fill: none;
  stroke: rgba(255, 231, 184, 0.62);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cloudix-pet-mouth,
.cloudix-pet-whiskers {
  stroke: rgba(20, 17, 15, 0.72);
}

.cloudix-pet-whiskers {
  stroke-width: 3;
}

.cloudix-pet-nose {
  fill: #f19b86;
  stroke: rgba(20, 17, 15, 0.32);
  stroke-width: 2;
}

.cloudix-pet-collar {
  fill: #08090d;
}

.cloudix-pet-medal {
  fill: #332719;
  stroke: rgba(244, 201, 93, 0.52);
  stroke-width: 3;
}

.cloudix-pet-paw {
  fill: none;
  stroke: #ffd869;
  stroke-width: 4;
  stroke-linecap: round;
}

.cloudix-pet-wing {
  fill: #242426;
  stroke: rgba(6, 7, 10, 0.7);
  stroke-width: 3;
  stroke-linejoin: round;
  transform-origin: 150px 205px;
}

.cloudix-pet-fangs {
  fill: none;
  stroke: #f4e2c5;
  stroke-width: 4;
  stroke-linecap: round;
}

.pet-sequence .cloudix-pet-svg,
.pet-happy .cloudix-pet-svg,
.pet-wave .cloudix-pet-svg {
  animation: cloudixDogBounce 3.6s ease-in-out infinite;
}

.pet-alert .cloudix-pet-ear {
  animation: cloudixDogAlertEar 1.2s ease-in-out infinite;
}

.pet-curious .cloudix-pet-eye,
.pet-sequence .cloudix-pet-eye {
  animation: cloudixCatBlink 5.4s ease-in-out infinite, cloudixCatLook 4.2s ease-in-out infinite;
}

.pet-sleepy .cloudix-pet-eye {
  animation: none;
  transform: scaleY(0.16);
}

.pet-night .cloudix-pet-eye {
  fill: #9ff3ff;
  filter: drop-shadow(0 0 12px rgba(159, 243, 255, 0.95));
}

.pet-night .cloudix-pet-head,
.pet-night .cloudix-pet-body {
  filter: brightness(0.78);
}

.pet-fast .cloudix-pet-svg,
.pet-bounce .cloudix-pet-svg {
  animation: happyBounce 0.82s ease-in-out infinite alternate;
}

.pet-dance .cloudix-pet-svg {
  animation: stageMove 0.68s ease-in-out infinite alternate;
}

.pet-tilt-left .cloudix-pet-svg {
  transform: rotate(-8deg);
}

.pet-tilt-right .cloudix-pet-svg {
  transform: rotate(8deg);
}

.pet-look-up .cloudix-pet-eye,
.pet-look-up .cloudix-pet-brow {
  transform: translateY(-6px);
}

.pet-look-down .cloudix-pet-eye,
.pet-look-down .cloudix-pet-brow {
  transform: translateY(6px);
}

.pet-scared .cloudix-pet-svg {
  animation: scaredShake 0.16s infinite alternate;
}

.pet-scared .cloudix-pet-eye {
  transform: scaleY(1.18) scaleX(0.9);
}

.pet-zen .cloudix-pet-svg {
  animation: calmBreath 3.4s ease-in-out infinite;
}

.pet-zen .cloudix-pet-eye {
  animation: none;
  transform: scaleY(0.22);
}

.pet-fly .cloudix-pet-svg {
  animation: cloudixCatFloat 1.4s ease-in-out infinite alternate;
}

.pet-fly .cloudix-pet-wing-left {
  animation: batWingLeft 0.62s ease-in-out infinite alternate;
}

.pet-fly .cloudix-pet-wing-right {
  animation: batWingRight 0.62s ease-in-out infinite alternate;
}

.michu-mini {
  width: 74px;
  height: 74px;
}

.michu-bg,
.michu-head,
.michu-mask,
.michu-ear,
.michu-eye,
.michu-nose,
.michu-mouth,
.michu-whisker,
.michu-glasses,
.michu-paw {
  position: absolute;
  display: block;
}

.michu-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.michu-outer {
  fill: #080a0f;
  stroke: rgba(244, 201, 93, 0.75);
  stroke-width: 2.2;
}

.michu-backdrop {
  fill: url(#michuBackdrop);
}

.michu-body {
  transform-origin: 150px 160px;
  animation: michuBodyBreath 4s ease-in-out infinite;
}

.michu-neck,
.michu-face-black,
.michu-ear-shape,
.michu-forehead {
  fill: url(#michuFur);
}

.michu-face-black {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 2;
}

.michu-muzzle-white,
.michu-cheek-white {
  fill: url(#michuWhite);
}

.michu-ear-shape {
  stroke: #050608;
  stroke-width: 4;
  stroke-linejoin: round;
  transform-origin: 150px 150px;
  animation: michuSvgEar 5.2s ease-in-out infinite;
}

.michu-ear-right {
  animation-delay: 1.2s;
}

.michu-ear-inner {
  fill: #eab4a5;
  opacity: 0.96;
}

.michu-fur-strokes {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 3;
  stroke-linecap: round;
}

.michu-eye-shape {
  fill: #d8a337;
  stroke: #0a0b0f;
  stroke-width: 3.4;
  transform-origin: center;
  animation: michuSvgBlink 5.6s infinite;
}

.michu-pupil {
  fill: #07080b;
}

.michu-nose-svg {
  fill: #d89078;
}

.michu-mouth-svg {
  fill: none;
  stroke: #17110e;
  stroke-width: 3;
  stroke-linecap: round;
}

.michu-whiskers-svg {
  fill: none;
  stroke: rgba(246, 239, 222, 0.62);
  stroke-width: 2;
  stroke-linecap: round;
}

.michu-glasses-svg {
  opacity: 0;
  fill: rgba(4, 5, 9, 0.78);
  stroke: #f4c95d;
  stroke-width: 5;
  stroke-linecap: round;
}

.michu-paw-svg {
  opacity: 0;
  fill: #f1e4d0;
  transform-origin: 75px 220px;
}

.cat-glasses .michu-glasses-svg {
  opacity: 1;
}

.cat-glasses .michu-eye-shape {
  opacity: 0.35;
}

.cat-wave .michu-paw-svg {
  opacity: 1;
  animation: michuSvgWave 0.72s ease-in-out infinite alternate;
}

.cat-bounce .michu-svg {
  animation: happyBounce 0.82s ease-in-out infinite alternate;
}

.cat-dance .michu-svg {
  animation: stageMove 0.68s ease-in-out infinite alternate;
}

.cat-tilt-left .michu-svg {
  transform: rotate(-8deg);
}

.cat-tilt-right .michu-svg {
  transform: rotate(8deg);
}

.cat-look-up .michu-pupil {
  transform: translateY(-5px);
}

.cat-look-down .michu-pupil {
  transform: translateY(5px);
}

.cat-scared .michu-svg {
  animation: scaredShake 0.16s infinite alternate;
}

.cat-scared .michu-eye-shape {
  transform: scaleY(1.2) scaleX(0.9);
}

.cat-zen .michu-svg {
  animation: calmBreath 3.4s ease-in-out infinite;
}

.cat-zen .michu-eye-shape {
  animation: none;
  transform: scaleY(0.2);
}

.cat-sleepy .michu-eye-shape {
  transform: scaleY(0.16);
  animation: none;
}

.cat-sleepy .michu-body {
  animation: michuSvgSleep 4.8s ease-in-out infinite;
}

.cat-look .michu-pupil,
.cat-curious .michu-pupil {
  animation: michuLookAround 3.4s ease-in-out infinite;
}

.cat-sequence .michu-body {
  animation: michuSequencePose 5.4s steps(6, end) infinite;
}

.cat-sequence .michu-eye-shape {
  animation: michuSequenceBlink 5.4s steps(6, end) infinite;
}

.cat-sequence .michu-pupil {
  animation: michuSequenceLook 5.4s steps(6, end) infinite;
}

.cat-sequence .michu-mouth-svg {
  animation: michuSequenceMouth 5.4s steps(6, end) infinite;
}

.cat-night .michu-backdrop {
  fill: #161a20;
}

.cat-night .michu-eye-shape {
  fill: #f8d875;
  filter: drop-shadow(0 0 7px rgba(248, 216, 117, 0.9));
}

.michu-bg {
  inset: 11%;
  border-radius: 50%;
  background: #e3a838;
  display: none;
}

.michu-head {
  left: 33%;
  top: 24%;
  width: 42%;
  height: 54%;
  border-radius: 48% 48% 42% 42%;
  background: #070a10;
  display: none;
}

.michu-mask {
  left: 48%;
  top: 38%;
  width: 24%;
  height: 38%;
  border-radius: 48%;
  background: #f5ecdb;
  display: none;
}

.michu-ear {
  z-index: 3;
  top: 20%;
  width: 16%;
  height: 25%;
  border-radius: 70% 22% 65% 22%;
  background: radial-gradient(ellipse at center, #efb9aa 0 35%, #10131c 37% 100%);
  transform-origin: 50% 100%;
  animation: michuEar 4.8s ease-in-out infinite;
  display: none;
}

.michu-ear-left {
  left: 35%;
  transform: rotate(-23deg);
}

.michu-ear-right {
  right: 27%;
  transform: rotate(27deg);
  animation-delay: 1.4s;
}

.michu-eye {
  z-index: 4;
  top: 43%;
  width: 7%;
  height: 10%;
  border-radius: 50%;
  background: #f4c95d;
  box-shadow: 0 0 10px rgba(244, 201, 93, 0.8);
  animation: michuBlink 5.2s infinite;
  display: none;
}

.michu-eye-left {
  left: 47%;
}

.michu-eye-right {
  right: 33%;
}

.michu-nose {
  z-index: 4;
  left: 57%;
  top: 56%;
  width: 4%;
  height: 3%;
  border-radius: 50%;
  background: #e1a26d;
  display: none;
}

.michu-mouth {
  z-index: 4;
  left: 55%;
  top: 61%;
  width: 9%;
  height: 5%;
  border-bottom: 3px solid #0a0b0d;
  border-radius: 0 0 50% 50%;
  display: none;
}

.michu-whisker {
  z-index: 4;
  top: 57%;
  width: 28%;
  height: 1px;
  background: rgba(245, 236, 219, 0.85);
  box-shadow: 0 9px 0 rgba(245, 236, 219, 0.7), 0 -9px 0 rgba(245, 236, 219, 0.7);
  display: none;
}

.michu-whisker-left {
  left: 20%;
  transform: rotate(-7deg);
}

.michu-whisker-right {
  right: 12%;
  transform: rotate(7deg);
}

.michu-glasses {
  z-index: 5;
  left: 44%;
  top: 39%;
  width: 34%;
  height: 15%;
  border-left: 5px solid #f4c95d;
  border-right: 5px solid #f4c95d;
  border-radius: 999px;
  opacity: 0;
  display: none;
}

.michu-glasses::before,
.michu-glasses::after {
  content: "";
  position: absolute;
  top: 0;
  width: 43%;
  height: 100%;
  border: 4px solid #f4c95d;
  border-radius: 50%;
  background: rgba(2, 4, 8, 0.82);
}

.michu-glasses::before {
  left: -9%;
}

.michu-glasses::after {
  right: -9%;
}

.michu-paw {
  z-index: 6;
  left: 18%;
  bottom: 25%;
  width: 14%;
  height: 18%;
  border-radius: 46%;
  background: #f5ecdb;
  opacity: 0;
  display: none;
}

.cat-wave .michu-paw {
  opacity: 1;
  animation: michuWave 0.8s ease-in-out infinite alternate;
}

.cat-sleepy .michu-eye {
  height: 2%;
  top: 48%;
  border-radius: 999px;
  animation: none;
}

.cat-sleepy {
  animation: michuSleep 4.8s ease-in-out infinite;
}

.cat-look .michu-eye {
  transform: translateX(8px);
}

.cat-night .michu-bg {
  background: #10131c;
}

.cat-night .michu-eye {
  background: #f9d775;
  box-shadow: 0 0 18px rgba(249, 215, 117, 0.9);
}

.cat-glasses .michu-glasses {
  opacity: 1;
}

.cat-glasses {
  animation: michuCool 1.2s ease-in-out infinite alternate;
}

.michu-mini .michu-whisker {
  width: 24%;
  box-shadow: 0 5px 0 rgba(245, 236, 219, 0.7), 0 -5px 0 rgba(245, 236, 219, 0.7);
}

.michu-mini .michu-mouth {
  border-bottom-width: 2px;
}

.michu-story {
  max-width: 620px;
  margin: -8px auto 0;
  text-align: center;
}

.michu-story h3 {
  margin: 0 0 8px;
  color: var(--gold);
}

.michu-story p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pet-gato.cat-serious {
  background:
    linear-gradient(0deg, transparent 0 38%, rgba(10, 11, 13, 0.8) 39% 45%, transparent 46% 100%),
    radial-gradient(ellipse at 62% 61%, #e9dfce 0 18%, transparent 19%),
    radial-gradient(ellipse at 68% 42%, #f4c95d 0 4%, #11151d 4.5% 7%, transparent 7.5%),
    radial-gradient(ellipse at 46% 42%, #f4c95d 0 4%, #11151d 4.5% 7%, transparent 7.5%),
    linear-gradient(145deg, #15171d 0 46%, #f2eadc 47% 62%, #0c0d11 63% 100%);
}

.pet-gato.cat-side {
  background:
    radial-gradient(circle at 54% 42%, #f4c95d 0 5%, #11151d 5.5% 7%, transparent 7.5%),
    radial-gradient(ellipse at 64% 58%, #f3eadc 0 16%, transparent 17%),
    radial-gradient(ellipse at 48% 52%, #090a0d 0 31%, transparent 32%),
    radial-gradient(circle at 50% 50%, #dca03e 0 45%, #f5ead2 46% 62%, #0a0b0d 63% 100%);
}

.pet-gato.cat-sleepy {
  background:
    linear-gradient(8deg, transparent 0 45%, #f4c95d 46% 48%, transparent 49% 100%),
    linear-gradient(-8deg, transparent 0 45%, #f4c95d 46% 48%, transparent 49% 100%),
    radial-gradient(ellipse at 62% 64%, #f5eee2 0 20%, transparent 21%),
    radial-gradient(ellipse at 56% 56%, #11151d 0 36%, transparent 37%),
    radial-gradient(circle at 50% 50%, #4b463f 0 61%, #0a0b0d 62% 100%);
  animation: catSleep 4.6s ease-in-out infinite;
}

.pet-gato.cat-night {
  background:
    radial-gradient(circle at 66% 46%, #f4c95d 0 5%, #11151d 5.5% 8%, transparent 8.5%),
    radial-gradient(circle at 34% 46%, #f4c95d 0 5%, #11151d 5.5% 8%, transparent 8.5%),
    radial-gradient(ellipse at 50% 72%, #0c0d11 0 24%, transparent 25%),
    radial-gradient(circle at 50% 50%, #1d1a16 0 52%, #050607 53% 100%);
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.35), 0 0 28px rgba(244, 201, 93, 0.18);
}

.pet-gato.cat-glasses {
  background:
    radial-gradient(circle at 68% 42%, rgba(6, 8, 13, 0.92) 0 10%, #f4c95d 10.5% 12%, transparent 12.5%),
    radial-gradient(circle at 46% 42%, rgba(6, 8, 13, 0.92) 0 10%, #f4c95d 10.5% 12%, transparent 12.5%),
    linear-gradient(90deg, transparent 0 51%, #11151d 52% 56%, transparent 57% 100%),
    radial-gradient(ellipse at 62% 62%, #f5eee2 0 22%, transparent 23%),
    radial-gradient(ellipse at 56% 56%, #11151d 0 35%, transparent 36%),
    radial-gradient(circle at 50% 50%, #dca03e 0 61%, #0a0b0d 62% 100%);
}

.pet-perro {
  border-radius: 42% 42% 48% 48%;
  background:
    radial-gradient(circle at 34% 44%, #101318 0 7%, transparent 8%),
    radial-gradient(circle at 66% 44%, #101318 0 7%, transparent 8%),
    radial-gradient(ellipse at 50% 66%, #101318 0 7%, transparent 8%),
    linear-gradient(145deg, #c58b5a, #7d4f31);
}

.pet-perro::before,
.pet-perro::after {
  top: 8px;
  width: 22px;
  height: 42px;
  border-radius: 50%;
}

.pet-perro::before {
  left: -12px;
  transform: rotate(20deg);
}

.pet-perro::after {
  right: -12px;
  transform: rotate(-20deg);
}

.pet-raton {
  width: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 44%, #101318 0 7%, transparent 8%),
    radial-gradient(circle at 66% 44%, #101318 0 7%, transparent 8%),
    radial-gradient(ellipse at 50% 66%, #101318 0 7%, transparent 8%),
    linear-gradient(145deg, #d8dce8, #8f96a8);
}

.pet-raton::before,
.pet-raton::after {
  top: -13px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.pet-raton::before {
  left: -8px;
}

.pet-raton::after {
  right: -8px;
}

.pet-conejo::before,
.pet-conejo::after {
  top: -42px;
  width: 20px;
  height: 52px;
  border-radius: 999px;
}

.pet-conejo {
  background:
    radial-gradient(circle at 34% 44%, #101318 0 7%, transparent 8%),
    radial-gradient(circle at 66% 44%, #101318 0 7%, transparent 8%),
    radial-gradient(ellipse at 50% 66%, #101318 0 7%, transparent 8%),
    linear-gradient(145deg, #fff3f8, #f1b9ca);
}

.pet-conejo::before {
  left: 26px;
  transform: rotate(-8deg);
}

.pet-conejo::after {
  right: 26px;
  transform: rotate(8deg);
}

.pet-murcielago {
  width: 96px;
  height: 72px;
  overflow: visible;
  border-color: rgba(126, 232, 255, 0.22);
  border-radius: 52% 52% 42% 42%;
  background:
    radial-gradient(circle at 38% 43%, #7ee8ff 0 7%, #08101a 7.8% 10%, transparent 10.8%),
    radial-gradient(circle at 62% 43%, #7ee8ff 0 7%, #08101a 7.8% 10%, transparent 10.8%),
    radial-gradient(circle at 50% 63%, #7ee8ff 0 4%, transparent 4.8%),
    radial-gradient(ellipse at 50% 52%, #1d2438 0 48%, #070912 49% 100%);
  box-shadow: inset 0 -12px 20px rgba(0, 0, 0, 0.32), 0 0 28px rgba(126, 232, 255, 0.12);
  clip-path: none;
}

.pet-murcielago::before,
.pet-murcielago::after {
  top: 16px;
  z-index: -1;
  width: 74px;
  height: 52px;
  border: 1px solid rgba(126, 232, 255, 0.2);
  background: linear-gradient(145deg, #161c2f, #05070d);
  clip-path: polygon(100% 8%, 65% 30%, 76% 53%, 48% 45%, 35% 82%, 16% 58%, 0 86%, 6% 28%);
}

.pet-murcielago::before {
  left: -62px;
  transform: rotate(-8deg);
}

.pet-murcielago::after {
  right: -62px;
  transform: scaleX(-1) rotate(-8deg);
}

.pet-murcielago .bat-ear,
.pet-murcielago::marker {
  display: none;
}

.pet-murcielago {
  --bat-ears:
    conic-gradient(from 315deg at 37% 10%, transparent 0 35deg, #151b2c 36deg 95deg, transparent 96deg),
    conic-gradient(from 310deg at 63% 10%, transparent 0 35deg, #151b2c 36deg 95deg, transparent 96deg);
  background:
    var(--bat-ears),
    radial-gradient(circle at 38% 43%, #7ee8ff 0 7%, #08101a 7.8% 10%, transparent 10.8%),
    radial-gradient(circle at 62% 43%, #7ee8ff 0 7%, #08101a 7.8% 10%, transparent 10.8%),
    radial-gradient(circle at 50% 63%, #7ee8ff 0 4%, transparent 4.8%),
    radial-gradient(ellipse at 50% 52%, #1d2438 0 48%, #070912 49% 100%);
}

.pet-detail-stage {
  display: grid;
  min-height: 360px;
  gap: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(244, 201, 93, 0.12), rgba(5, 7, 11, 0.78) 58%);
  padding: 24px;
}

.pet-detail-avatar {
  width: min(52vw, 260px);
  height: min(44vw, 220px);
  transform: scale(1.1);
}

.professional-detail-avatar {
  width: min(52vw, 260px);
  height: min(52vw, 260px);
  margin: 0;
  transform: scale(1.04);
}

.cat-actions-grid {
  display: grid;
  width: min(100%, 720px);
  grid-template-columns: repeat(6, minmax(84px, 1fr));
  gap: 12px;
}

.cat-action-button {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  padding: 10px 8px;
}

.cat-action-button .pet-demo {
  width: 74px;
  height: 74px;
  margin-bottom: 0;
}

.cat-action-button .professional-action-avatar {
  width: 74px;
  height: 74px;
  margin: 0;
}

.cat-action-button .pet-demo::before,
.cat-action-button .pet-demo::after {
  width: 19px;
  height: 27px;
  top: 7px;
}

.cat-action-button .pet-demo::before {
  left: 16px;
}

.cat-action-button .pet-demo::after {
  right: 9px;
  box-shadow: -30px 28px 0 -8px #f5eee2;
}

.cat-action-button.active,
.cat-action-button:hover {
  border-color: rgba(244, 201, 93, 0.62);
  color: var(--ink);
  background: rgba(244, 201, 93, 0.08);
}

.professional-avatar {
  display: block;
  width: 104px;
  height: 104px;
  margin-bottom: 14px;
  border: 2px solid rgba(244, 201, 93, 0.46);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 37%, #f3d2b5 0 20%, transparent 21%),
    radial-gradient(ellipse at 50% 76%, #26324b 0 25%, transparent 26%),
    radial-gradient(circle at 42% 37%, #12161e 0 3%, transparent 3.5%),
    radial-gradient(circle at 58% 37%, #12161e 0 3%, transparent 3.5%),
    radial-gradient(circle at 50% 53%, #a76a54 0 3%, transparent 3.5%),
    linear-gradient(145deg, #151a23, #07090f);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.28), 0 0 28px rgba(244, 201, 93, 0.12);
}

.professional-video-holder {
  overflow: hidden;
  background: #020409;
}

.professional-avatar-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45));
}

.floating-assistant .professional-video-holder {
  position: relative;
}

.floating-assistant .professional-video-holder .professional-avatar-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease;
}

.floating-assistant .professional-video-holder .professional-avatar-video.is-playing {
  opacity: 1;
  visibility: visible;
}

.floating-assistant .professional-video-holder .professional-avatar-video.is-retiring {
  opacity: 0;
  visibility: visible;
}

.professional-secretary {
  background:
    radial-gradient(circle at 50% 38%, #f1ccb0 0 21%, transparent 22%),
    radial-gradient(ellipse at 50% 22%, #35251f 0 20%, transparent 21%),
    radial-gradient(ellipse at 50% 78%, #7d4c68 0 25%, transparent 26%),
    radial-gradient(circle at 42% 38%, #11151d 0 3%, transparent 3.5%),
    radial-gradient(circle at 58% 38%, #11151d 0 3%, transparent 3.5%),
    linear-gradient(145deg, #151a23, #07090f);
}

.professional-assistant {
  background:
    radial-gradient(circle at 50% 38%, #d9a981 0 21%, transparent 22%),
    radial-gradient(ellipse at 50% 23%, #1b1715 0 19%, transparent 20%),
    radial-gradient(ellipse at 50% 79%, #1b3756 0 26%, transparent 27%),
    radial-gradient(circle at 42% 38%, #11151d 0 3%, transparent 3.5%),
    radial-gradient(circle at 58% 38%, #11151d 0 3%, transparent 3.5%),
    linear-gradient(145deg, #151a23, #07090f);
}

.professional-photo {
  background:
    linear-gradient(135deg, transparent 42%, rgba(244, 201, 93, 0.32) 43% 48%, transparent 49%),
    radial-gradient(circle at 50% 42%, rgba(244, 201, 93, 0.34) 0 20%, transparent 21%),
    radial-gradient(ellipse at 50% 80%, #2d2f3d 0 27%, transparent 28%),
    linear-gradient(145deg, #151a23, #07090f);
}

.bottom-right-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  gap: 12px;
}

.medicine-saved-panel {
  margin-top: 18px;
}

.medicine-saved-panel h3 {
  margin-bottom: 12px;
  color: var(--ink);
}

.medicine-saved-list {
  display: grid;
  gap: 12px;
}

.medicine-saved-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.medicine-saved-card strong,
.medicine-saved-card span {
  display: block;
}

.medicine-saved-card p,
.muted-note {
  margin: 4px 0 0;
  color: var(--muted);
}

.history-panel {
  margin-top: 20px;
}

.section-actions,
.panel-title-row,
.family-list-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.family-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.family-step-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.family-step-card h3,
.family-step-card p {
  margin: 0;
}

.family-step-card p {
  color: var(--muted);
  line-height: 1.5;
}

.family-step-card .share-code-panel {
  width: 100%;
}

.panel-title-row {
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-title-row .muted-note {
  margin-top: 0;
}

.family-list-tools {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.family-list-tools input {
  width: min(280px, 100%);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #0b1018;
  padding: 0 12px;
}

.family-list-tools .secondary-button {
  min-height: 42px;
  padding: 0 14px;
}

.family-list-tools .active-filter {
  border-color: rgba(244, 201, 93, 0.72);
  color: var(--gold);
  background: rgba(244, 201, 93, 0.12);
}

.history-panel h3 {
  margin: 0;
  color: var(--ink);
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.history-card > div:first-child strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.history-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.history-fields span {
  min-width: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 10px;
  color: var(--muted);
}

.history-fields strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.78rem;
}

.history-actions {
  justify-content: flex-end;
}

.text-delete-button {
  width: auto;
  min-width: 92px;
  border-radius: 8px;
  padding: 0 14px;
}

.saved-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shopping-list-compact {
  display: grid;
  gap: 10px;
}

.shopping-list-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.shopping-item-main {
  display: grid;
  gap: 3px;
}

.shopping-item-main strong {
  color: var(--ink);
  font-size: 1.04rem;
}

.shopping-item-main span,
.shopping-item-meta {
  color: var(--muted);
}

.shopping-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.shopping-item-meta span {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  padding: 7px 10px;
}

.shopping-item-meta b {
  color: var(--gold);
}

.shopping-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.start-trip-button {
  min-height: 54px;
  border: 1px solid rgba(94, 224, 160, 0.72);
  border-radius: 999px;
  color: #07110c;
  background: linear-gradient(135deg, #5ee0a0, #f4c95d);
  font-weight: 900;
  letter-spacing: 0;
  padding: 0 28px;
  cursor: pointer;
  box-shadow: 0 0 32px rgba(94, 224, 160, 0.28), 0 14px 28px rgba(0, 0, 0, 0.24);
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.gallery-preview-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(244, 201, 93, 0.24);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 20%, rgba(244, 201, 93, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.035);
  padding: 18px;
}

.gallery-random-frame {
  position: relative;
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #05070b;
  color: var(--muted);
}

.gallery-random-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(244, 201, 93, 0.2);
  border-radius: 8px;
  pointer-events: none;
}

.gallery-random-frame img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  padding: 22px;
  animation: galleryImageFloat 8s ease-in-out infinite;
}

.gallery-random-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.78);
  padding: 12px;
  backdrop-filter: blur(12px);
}

.gallery-random-caption strong {
  color: var(--ink);
}

.gallery-random-caption span {
  color: var(--gold);
  font-size: 0.86rem;
}

.gallery-list {
  display: grid;
  gap: 12px;
}

.gallery-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.gallery-card img {
  width: 120px;
  height: 86px;
  border-radius: 8px;
  background: #05070b;
  object-fit: contain;
}

.gallery-card strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
}

.gallery-card p,
.gallery-card small {
  color: var(--muted);
}

@keyframes galleryImageFloat {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.96;
  }
  50% {
    transform: scale(1.025);
    opacity: 1;
  }
}

.sync-link-panel {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  margin-bottom: 18px;
  padding: 18px;
}

.sync-code-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(244, 201, 93, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  margin-bottom: 18px;
  padding: 16px;
}

.sync-code-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.sync-code-form input,
.sync-code-form select {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
  padding: 0 12px;
  text-transform: uppercase;
}

.sync-code-form select {
  text-transform: none;
}

.news-settings-form {
  grid-template-columns: minmax(180px, 0.75fr) minmax(260px, 1fr) auto auto;
}

.sync-code-form p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.qr-image {
  width: 148px;
  height: 148px;
  border: 10px solid #fff;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.qr-code {
  display: grid;
  width: 148px;
  height: 148px;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  border: 10px solid #fff;
  background: #fff;
}

.qr-code span {
  background: #111821;
}

.qr-code span:nth-child(2),
.qr-code span:nth-child(5),
.qr-code span:nth-child(8),
.qr-code span:nth-child(11),
.qr-code span:nth-child(13),
.qr-code span:nth-child(18),
.qr-code span:nth-child(20),
.qr-code span:nth-child(23) {
  background: #fff;
}

.visualizer-screen {
  min-height: calc(100vh - 104px);
  border-radius: 8px;
  background: radial-gradient(circle at 18% 20%, rgba(244, 201, 93, 0.12), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(94, 224, 160, 0.12), transparent 24%),
    #05070b;
  padding: 28px;
}

.visualizer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.visualizer-top h2 {
  margin: 2px 0;
  color: var(--ink);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
}

.visualizer-top span {
  color: var(--muted);
  font-size: 1.1rem;
}

.visualizer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  gap: 18px;
}

.visualizer-card {
  min-height: 210px;
  border: 1px solid rgba(244, 201, 93, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.visualizer-card h3 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 2rem;
}

.visualizer-card p {
  color: var(--muted);
}

.visualizer-qr-card {
  display: grid;
  place-items: center;
  text-align: center;
}

.large-qr {
  width: min(260px, 100%);
  height: min(260px, 100%);
  margin: 18px auto;
}

.visualizer-qr-card strong {
  display: block;
  color: var(--gold);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
}

.visualizer-gallery-card {
  grid-row: span 2;
}

.visualizer-gallery-frame {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #020306;
  color: var(--muted);
}

.visualizer-gallery-frame img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  padding: 22px;
  animation: galleryImageFloat 8s ease-in-out infinite;
}

.visualizer-gallery-frame strong {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.76);
  color: var(--ink);
  padding: 10px 14px;
}

.visualizer-task-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.visualizer-task-list p {
  margin: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--ink);
  padding: 12px;
}

.cards-grid,
.device-plan {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-form {
  display: grid;
  gap: 18px;
}

.form-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 18px;
}

.compact-health-form {
  gap: 12px;
}

.compact-health-form .form-panel {
  padding: 12px;
}

.compact-health-form .form-grid {
  gap: 10px;
}

.form-panel legend {
  padding: 0 8px;
  color: var(--gold);
  font-weight: 700;
}

.important-panel {
  border-color: rgba(242, 100, 100, 0.26);
}

.emergency-panel {
  border-color: rgba(242, 100, 100, 0.36);
  background: rgba(242, 100, 100, 0.055);
}

.form-grid,
.profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
  padding: 0 12px;
}

.login-form select,
.profile-form select,
.sync-code-form select {
  color-scheme: dark;
  background-color: #070b12;
}

.login-form select option,
.profile-form select option,
.sync-code-form select option {
  color: var(--ink);
  background: #070b12;
}

.login-form select option:checked,
.profile-form select option:checked,
.sync-code-form select option:checked {
  color: #070b12;
  background: var(--gold);
}

.secondary-button,
.icon-button,
.delete-row-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--gold);
  background: rgba(244, 201, 93, 0.07);
  cursor: pointer;
}

.secondary-button {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
}

.delete-row-button {
  width: 38px;
  height: 38px;
  border-color: rgba(242, 100, 100, 0.42);
  border-radius: 50%;
  color: #ff8b8b;
}

.simple-medicine-row > .delete-row-button,
.important-date-row > .delete-row-button,
.condition-rows > .delete-row-button,
.contact-row > .delete-row-button {
  justify-self: center;
  align-self: center;
}

.profile-form textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.wide-label {
  margin-top: 14px;
}

.repeatable-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.repeatable-head > .icon-button {
  flex: 0 0 38px;
  margin-left: auto;
  align-self: center;
}

.repeatable-head p {
  max-width: 680px;
  margin-bottom: 0;
}

.medicine-table {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 46px;
  gap: 10px;
}

.medicine-table input {
  min-width: 0;
}

.table-head {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-rows {
  display: grid;
  gap: 12px;
}

.contact-row,
.condition-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 42px;
  gap: 10px;
  align-items: end;
}

.condition-rows {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 10px;
  margin-top: 12px;
}

.repeatable-list,
.time-rows,
.sync-grid,
.check-grid,
.choice-row {
  display: grid;
  gap: 12px;
}

.repeatable-list {
  grid-template-columns: 1fr;
}

.time-rows {
  grid-template-columns: 1fr 42px;
}

.medicine-time-row {
  display: grid;
  grid-template-columns: 72px auto 72px 76px;
  align-items: center;
  gap: 8px;
  max-width: 270px;
}

.medicine-time-row select {
  min-width: 0;
}

.check-grid,
.sync-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.check-grid label,
.sync-grid label,
.choice-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  padding: 12px;
}

.compact-check-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.compact-check-grid label {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.compact-check-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: 0 0 18px;
  padding: 0;
  accent-color: var(--gold);
}

.compact-history-list {
  max-height: 320px;
  overflow: auto;
}

.choice-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
}

.preview-sound {
  width: fit-content;
  margin-top: 10px;
}

.preview-task-sound {
  width: fit-content;
  margin-top: 10px;
}

.share-code-panel {
  display: grid;
  gap: 6px;
  width: fit-content;
  border: 1px solid rgba(244, 201, 93, 0.38);
  border-radius: 8px;
  background: rgba(244, 201, 93, 0.08);
  padding: 14px 16px;
}

.share-code-panel span {
  color: var(--muted);
  font-size: 0.88rem;
}

.share-code-panel strong {
  color: var(--gold);
  letter-spacing: 0.08em;
}

.family-share-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.family-qr-card {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px solid rgba(244, 201, 93, 0.32);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  padding: 10px;
}

.family-qr-card img {
  width: 128px;
  height: 128px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.family-share-details {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.family-link-title {
  color: var(--gold);
  font-size: 1rem;
}

.family-link-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.family-link-field input,
.family-link-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--ink);
  padding: 12px 14px;
}

.family-link-field textarea {
  min-height: 78px;
  resize: none;
  line-height: 1.55;
  overflow: hidden;
  font-size: 1rem;
  word-break: break-all;
}

.downloader-link-panel {
  grid-template-columns: 1fr;
}

.downloader-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.96rem;
}

.downloader-code strong {
  color: var(--gold);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.downloader-helper {
  max-width: 920px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.downloader-address-field textarea {
  min-height: 56px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  white-space: nowrap;
  overflow-x: auto;
}
.downloader-visible-url {
  display: block;
  margin: 10px 0 14px;
  border: 1px solid rgba(244, 201, 93, 0.28);
  border-radius: 8px;
  background: rgba(244, 201, 93, 0.08);
  color: var(--gold);
  padding: 12px 14px;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.condition-row {
  grid-template-columns: 1fr 42px;
}

.health-insight {
  margin-top: 14px;
  border: 1px solid rgba(94, 224, 160, 0.24);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(94, 224, 160, 0.06);
  padding: 12px;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.avatar-picker {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.avatar-picker p {
  margin-bottom: 0;
}

.hidden {
  display: none;
}

.floating-assistant {
  position: fixed;
  right: 26px;
  bottom: 24px;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #05070b;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 10;
}

.floating-assistant.floating-pet .cloudix-cat-mini,
.floating-assistant.floating-pet .cloudix-dog-mini,
.floating-assistant.floating-pet .cloudix-pet-mini,
.floating-assistant.floating-pet .cloudix-image-pet-mini,
.floating-assistant .cloudix-video-avatar-floating,
.floating-assistant.floating-professional .professional-avatar {
  width: 76px;
  height: 76px;
  margin: 0;
}

.floating-assistant .cloudix-video-avatar-floating {
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #020409;
}

.floating-assistant .cloudix-avatar-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
}

.floating-assistant.floating-pet .cloudix-dog-mini {
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 201, 93, 0.18), transparent 54%),
    radial-gradient(circle at 50% 50%, #101216 0 62%, #05070b 63% 100%);
}

.pulse-ring {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(244, 201, 93, 0.48);
  border-radius: 50%;
  animation: pulse 2.4s infinite;
}

.assistant-bubble {
  position: fixed;
  right: 130px;
  bottom: 38px;
  display: grid;
  width: min(320px, calc(100vw - 156px));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 33, 0.96);
  padding: 14px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  z-index: 11;
}

.assistant-bubble.hidden {
  display: none;
}

.assistant-bubble span {
  color: var(--muted);
  font-size: 0.9rem;
}

.ask-panel {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 5, 8, 0.64);
  backdrop-filter: blur(10px);
  z-index: 30;
}

.ask-panel.hidden {
  display: none;
}

.ask-card {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 33, 0.98);
  padding: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

.ask-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ask-card textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
  padding: 12px;
  resize: vertical;
}

@keyframes pulse {
  0% {
    opacity: 0.65;
    transform: scale(0.96);
  }
  70% {
    opacity: 0;
    transform: scale(1.18);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes blink {
  0%, 92%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.08);
  }
}

@keyframes shiver {
  0% {
    transform: translateX(-1px);
  }
  100% {
    transform: translateX(1px);
  }
}

@keyframes sweat {
  0% {
    opacity: 0;
    transform: translateY(-3px);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes flash {
  0%, 100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

@keyframes excited {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.04);
  }
}

@keyframes alertPulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.025);
  }
}

@keyframes proudFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-4px);
  }
}

@keyframes sunGlow {
  0% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1.04);
  }
}

@keyframes drift {
  0% {
    transform: translateX(-8px);
  }
  100% {
    transform: translateX(12px);
  }
}

@keyframes rainDrop {
  0% {
    transform: translateY(-20px) rotate(12deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(80px) rotate(12deg);
    opacity: 0;
  }
}

@keyframes lightningFlash {
  0%, 78%, 100% {
    opacity: 0;
  }
  80%, 84% {
    opacity: 1;
  }
}

@keyframes windMove {
  0% {
    transform: translateX(-18px);
    opacity: 0;
  }
  30%, 70% {
    opacity: 1;
  }
  100% {
    transform: translateX(24px);
    opacity: 0;
  }
}

@keyframes scaredShake {
  0% {
    transform: translateX(-2px) rotate(-1deg);
  }
  100% {
    transform: translateX(2px) rotate(1deg);
  }
}

@keyframes happyBounce {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-6px) scale(1.03);
  }
}

@keyframes calmBreath {
  0%, 100% {
    transform: scale(0.98);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes stageMove {
  0% {
    transform: translateX(-4px) rotate(-3deg);
  }
  100% {
    transform: translateX(4px) rotate(3deg);
  }
}

@keyframes petImageSequence {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  24% {
    transform: translateY(-7px) rotate(-2deg) scale(1.02);
  }
  48% {
    transform: translateY(0) rotate(2deg) scale(1.01);
  }
  72% {
    transform: translateY(-4px) rotate(-1deg) scale(1.03);
  }
}

@keyframes petImageCurious {
  0%, 100% {
    transform: rotate(0deg) translateY(0);
  }
  42% {
    transform: rotate(-4deg) translateY(-4px);
  }
  70% {
    transform: rotate(4deg) translateY(-2px);
  }
}

@keyframes petImageWave {
  0% {
    transform: rotate(-4deg) translateY(0);
  }
  100% {
    transform: rotate(6deg) translateY(-5px);
  }
}

@keyframes petImageFly {
  0% {
    transform: translateY(8px) rotate(-3deg) scale(0.99);
  }
  100% {
    transform: translateY(-10px) rotate(4deg) scale(1.04);
  }
}

@keyframes catBreath {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
  45% {
    transform: translateY(-2px) scale(1.025);
    filter: saturate(1.08);
  }
  52% {
    transform: translateY(-2px) scale(1.025, 0.97);
  }
}

@keyframes catEarTwitch {
  0%, 78%, 100% {
    filter: brightness(1);
  }
  82% {
    filter: brightness(1.18);
  }
  86% {
    filter: brightness(0.95);
  }
}

@keyframes catSleep {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.96;
  }
  50% {
    transform: translateY(2px) scale(0.98);
    opacity: 0.82;
  }
}

@keyframes michuFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.02);
  }
}

@keyframes cloudixCatFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.018);
  }
}

@keyframes cloudixCatGlowPulse {
  0%, 100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.72;
  }
}

@keyframes cloudixCatBlink {
  0%, 84%, 90%, 100% {
    transform: scaleY(1);
  }
  86%, 88% {
    transform: scaleY(0.08);
  }
}

@keyframes cloudixCatLook {
  0%, 100% {
    translate: 0 0;
  }
  35% {
    translate: 4px 0;
  }
  70% {
    translate: -3px 0;
  }
}

@keyframes cloudixCatEar {
  0%, 78%, 100% {
    filter: brightness(1);
  }
  82% {
    filter: brightness(1.28);
  }
}

@keyframes cloudixDogEar {
  0%, 76%, 100% {
    filter: brightness(1);
  }
  82% {
    filter: brightness(1.18);
  }
}

@keyframes cloudixDogAlertEar {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes cloudixDogBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  35% {
    transform: translateY(-5px) rotate(-1deg);
  }
  70% {
    transform: translateY(2px) rotate(1deg);
  }
}

@keyframes cloudixDogSmile {
  0%, 100% {
    stroke-width: 6;
  }
  50% {
    stroke-width: 7.5;
  }
}

@keyframes batWingLeft {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  100% {
    transform: rotate(8deg) translateY(-5px);
  }
}

@keyframes batWingRight {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  100% {
    transform: rotate(-8deg) translateY(-5px);
  }
}

@keyframes michuBlink {
  0%, 88%, 100% {
    transform: scaleY(1);
  }
  92%, 95% {
    transform: scaleY(0.12);
  }
}

@keyframes michuEar {
  0%, 78%, 100% {
    filter: brightness(1);
  }
  84% {
    filter: brightness(1.2);
  }
}

@keyframes michuWave {
  0% {
    transform: rotate(-18deg) translateY(4px);
  }
  100% {
    transform: rotate(24deg) translateY(-6px);
  }
}

@keyframes michuSleep {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(5px) scale(0.985);
  }
}

@keyframes michuCool {
  0% {
    transform: rotate(-1deg) scale(1);
  }
  100% {
    transform: rotate(1deg) scale(1.025);
  }
}

@keyframes michuBodyBreath {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.012);
  }
}

@keyframes michuSvgBlink {
  0%, 88%, 100% {
    transform: scaleY(1);
  }
  92%, 95% {
    transform: scaleY(0.12);
  }
}

@keyframes michuSvgEar {
  0%, 78%, 100% {
    filter: brightness(1);
  }
  84% {
    filter: brightness(1.25);
  }
}

@keyframes michuSvgWave {
  0% {
    transform: rotate(-16deg) translateY(8px);
  }
  100% {
    transform: rotate(20deg) translateY(-8px);
  }
}

@keyframes michuSvgSleep {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(7px) scale(0.985);
  }
}

@keyframes michuLookAround {
  0%, 100% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(5px);
  }
  72% {
    transform: translateX(-3px);
  }
}

@keyframes michuSequencePose {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  16% {
    transform: translate(2px, 0) scale(1.01);
  }
  32% {
    transform: translate(4px, 1px) scale(0.995);
  }
  48% {
    transform: translate(-5px, 2px) scale(0.99);
  }
  64% {
    transform: translate(0, 5px) scale(0.985);
  }
  80% {
    transform: translate(3px, 1px) scale(1.005);
  }
}

@keyframes michuSequenceBlink {
  0%, 16%, 32%, 48%, 80%, 100% {
    transform: scaleY(1);
  }
  64% {
    transform: scaleY(0.08);
  }
}

@keyframes michuSequenceLook {
  0%, 100% {
    transform: translateX(0);
  }
  16%, 32% {
    transform: translateX(5px);
  }
  48% {
    transform: translateX(-5px);
  }
  64% {
    transform: translateX(0);
  }
  80% {
    transform: translateX(3px);
  }
}

@keyframes michuSequenceMouth {
  0%, 48%, 80%, 100% {
    opacity: 1;
  }
  64% {
    opacity: 0.35;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 14px;
  }

  .brand {
    margin-bottom: 12px;
  }

  .nav-list {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    overflow-x: auto;
  }

  .hero-grid,
  .assistant-stage,
  .cards-grid,
  .device-plan,
  .sync-link-panel,
  .form-grid,
  .profile-columns,
  .shopping-list-row {
    grid-template-columns: 1fr;
  }

  .main-panel {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .section-head {
    display: grid;
  }

  .assistant-stage {
    min-height: auto;
    padding: 18px;
  }

  .device-preview {
    min-height: 330px;
    border-radius: 24px;
  }

  .floating-assistant {
    right: 18px;
    bottom: 18px;
  }

  .assistant-bubble {
    right: 18px;
    bottom: 122px;
    width: calc(100vw - 36px);
  }

  .medicine-table {
    grid-template-columns: 1fr;
  }

  .contact-row,
  .condition-row,
  .condition-rows,
  .time-rows,
  .check-grid,
  .choice-row,
  .sync-grid {
    grid-template-columns: 1fr;
  }

  .medicine-time-row {
    max-width: none;
    grid-template-columns: 1fr auto 1fr 1fr;
  }

  .repeatable-head,
  .form-actions,
  .medicine-saved-card,
  .avatar-picker {
    align-items: stretch;
    flex-direction: column;
  }

  .cloudix-story-stage,
  .family-share-panel,
  .history-fields {
    grid-template-columns: 1fr;
  }

  .cat-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .saved-card-actions {
    justify-content: flex-end;
  }

  .shopping-item-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .table-head {
    display: none;
  }
}


.family-current-panel {
  border: 1px solid rgba(244, 201, 93, 0.22);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  padding: 18px;
}

.family-current-title-row {
  align-items: flex-start;
  gap: 18px;
}

.family-current-list {
  margin-top: 14px;
}

.family-current-empty {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.14);
}

.family-current-item-card {
  border-color: rgba(244, 201, 93, 0.14);
  background: rgba(8, 13, 21, 0.76);
}

.family-current-item-actions {
  justify-content: flex-end;
  padding-top: 2px;
}

.family-current-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.clear-family-list-button {
  min-width: 150px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(166, 59, 59, 0.14);
}

.clear-family-list-button[hidden] {
  display: none;
}

.received-compact-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.received-compact-head,
.received-compact-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1.2fr) minmax(100px, 0.65fr) minmax(120px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
}

.received-compact-head {
  padding: 0 10px 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.received-compact-list {
  display: grid;
  gap: 8px;
}

.received-compact-row {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 10px;
  color: var(--muted);
}

.received-user,
.received-detail {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.received-user strong,
.received-detail strong {
  color: var(--ink);
}

.received-user small,
.received-detail small {
  color: var(--muted);
}

.received-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 820px) {
  .received-compact-head {
    display: none;
  }

  .received-compact-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .received-row-actions {
    justify-content: flex-start;
  }
}



.family-current-compact-card {
  border-color: rgba(244, 201, 93, 0.18);
  background: rgba(8, 13, 21, 0.78);
}

.family-compact-head,
.family-compact-row {
  grid-template-columns: minmax(180px, 1.3fr) minmax(95px, 0.55fr) minmax(130px, 0.8fr) minmax(130px, 0.75fr) minmax(190px, auto);
}

.family-row-actions {
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 820px) {
  .family-compact-head {
    display: none;
  }

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

  .family-row-actions {
    justify-content: flex-start;
  }
}



/* Keep narrow layouts within the viewport without clipping information. */
@media (max-width: 980px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .app-shell * { min-width: 0; }
  .main-panel { overflow-wrap: anywhere; }
  .main-panel img, .main-panel video, .main-panel canvas { max-width: 100%; }
}
@media (max-width: 980px) {
  .gallery-layout, .visualizer-grid, .news-settings-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .gallery-card, .sync-code-form, .family-flow-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-card img { width: 100%; height: auto; max-height: 240px; object-fit: contain; }
  .panel-title-row, .family-current-footer { flex-wrap: wrap; }
}
