:root {
  color-scheme: dark;
  --night: #030817;
  --navy: #07142f;
  --blue: #258dff;
  --orange: #ff9a19;
  --violet: #9c55ff;
  --cyan: #00d9fa;
  --text: #f4f6ff;
  --muted: #aab8df;
  --glass: rgba(11, 24, 55, 0.78);
  --edge: rgba(139, 173, 255, 0.24);
  --font: system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 360px;
  min-height: 100%;
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #020615;
}

body {
  min-height: 100vh;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid #ffc45b;
  outline-offset: 3px;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  padding: 8px 26px 8px 48px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 74% 69%, rgba(76, 35, 155, 0.2), transparent 30%),
    radial-gradient(ellipse at 86% 34%, rgba(0, 111, 255, 0.2), transparent 30%),
    #020615;
}

.sidebar {
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 20px 11px 14px;
  border: 1px solid rgba(105, 156, 255, 0.26);
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(0, 101, 218, 0.17), transparent 45%),
    linear-gradient(160deg, rgba(4, 17, 43, 0.97), rgba(7, 10, 34, 0.96));
  box-shadow: 0 15px 44px rgba(0, 0, 0, 0.44), inset 0 1px rgba(255, 255, 255, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 88px;
  padding: 2px 8px 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #ffb13b;
  font-family: system-ui, sans-serif;
  font-size: 51px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 10px #ff8a17, 0 0 25px rgba(255, 135, 14, 0.8);
  transform: skew(-9deg);
}

.brand-copy,
.profile-copy,
.summary-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand-copy strong {
  font-family: system-ui, sans-serif;
  font-size: 25px;
  letter-spacing: -0.06em;
}

.brand-copy small {
  margin-top: 2px;
  color: #d3dcf8;
  font-size: 9px;
  white-space: nowrap;
}

.nav {
  display: grid;
  gap: 5px;
  margin-top: 24px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  gap: 15px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #bec9ec;
  text-align: left;
  font-size: 13px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.nav-item:hover {
  color: #fff;
  background: rgba(63, 107, 201, 0.14);
}

.nav-item.active {
  border-color: rgba(255, 153, 34, 0.25);
  background: linear-gradient(100deg, rgba(255, 139, 20, 0.24), rgba(255, 139, 20, 0.055));
  color: #fff;
  box-shadow: inset 3px 0 #ff9e22, 0 0 20px rgba(255, 132, 19, 0.09);
}

.nav-item.active .nav-icon {
  color: #ffad37;
  text-shadow: 0 0 13px rgba(255, 147, 24, 0.75);
}

.nav-icon {
  display: grid;
  width: 21px;
  flex: 0 0 21px;
  place-items: center;
  color: #8ca4e5;
  font-size: 21px;
  line-height: 1;
}

.profile-card {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 10px;
  padding: 11px 9px;
  border: 1px solid rgba(104, 151, 248, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(5, 28, 73, 0.9), rgba(16, 23, 55, 0.92));
  text-align: left;
  cursor: pointer;
}

.profile-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid #338eff;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #72bdff, #174a99 65%, #101a42);
  box-shadow: 0 0 14px rgba(42, 136, 255, 0.5);
  font-weight: 700;
}

.profile-copy {
  gap: 5px;
}

.profile-copy strong {
  font-size: 11px;
}

.profile-copy small {
  color: #ffbd62;
  font-size: 9px;
  white-space: nowrap;
}

.profile-copy small span {
  color: #ffbc37;
}

.profile-more {
  margin-left: auto;
  color: #9caedc;
  font-size: 18px;
}

.main-panel {
  position: relative;
  min-width: 0;
  height: 100%;
  padding: 8px 0 0 30px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 75% 23%, rgba(17, 71, 163, 0.25), transparent 38%),
    radial-gradient(ellipse at 64% 85%, rgba(88, 34, 157, 0.2), transparent 40%),
    radial-gradient(circle at 32% 25%, rgba(0, 108, 255, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 73% 10%, rgba(162, 200, 255, 0.7) 0 1px, transparent 2px),
    #030919;
  background-size: auto, auto, 93px 83px, 131px 117px, auto;
}

.main-panel::before {
  position: absolute;
  z-index: -1;
  inset: 20px 0 0;
  background-image:
    radial-gradient(1px 1px at 10% 12%, rgba(177, 204, 255, 0.9), transparent 2px),
    radial-gradient(1px 1px at 34% 4%, rgba(255, 255, 255, 0.85), transparent 2px),
    radial-gradient(1px 1px at 59% 22%, rgba(127, 180, 255, 0.9), transparent 2px),
    radial-gradient(1px 1px at 90% 15%, rgba(255, 255, 255, 0.9), transparent 2px),
    radial-gradient(1.5px 1.5px at 76% 34%, rgba(255, 177, 219, 0.9), transparent 3px);
  background-size: 190px 160px, 240px 180px, 230px 190px, 210px 175px, 280px 210px;
  content: "";
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  gap: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  width: min(580px, 58%);
  height: 42px;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(116, 153, 232, 0.28);
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(10, 18, 42, 0.88), rgba(21, 28, 55, 0.8));
  box-shadow: 0 5px 24px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.04);
}

.search-box > span {
  color: #a7b9f1;
  font-size: 27px;
  line-height: 1;
  transform: rotate(-20deg);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
}

.search-box input::placeholder {
  color: #8794b6;
}

.search-box kbd {
  color: #8492b9;
  font-size: 10px;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.theme-toggle {
  display: flex;
  width: 82px;
  height: 34px;
  align-items: center;
  justify-content: space-around;
  padding: 3px;
  border: 1px solid rgba(103, 133, 216, 0.35);
  border-radius: 999px;
  background: #07112c;
  cursor: pointer;
}

.theme-toggle .sun {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 163, 37, 0.22);
  color: #ffc044;
  font-size: 18px;
  box-shadow: 0 0 14px rgba(255, 151, 18, 0.38);
}

.theme-toggle .moon {
  color: #aeb9e9;
  font-size: 21px;
}

.icon-button,
.window-button {
  position: relative;
  display: grid;
  width: 26px;
  height: 30px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #aebde4;
  font-size: 19px;
  cursor: pointer;
}

.notification-count {
  position: absolute;
  top: 0;
  right: -3px;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  background: #ff3151;
  color: #fff;
  font-size: 9px;
}

.top-divider {
  width: 1px;
  height: 25px;
  background: rgba(151, 168, 218, 0.22);
}

.window-button {
  color: #bcc7e4;
  font-family: Arial, sans-serif;
  font-size: 21px;
}

.window-button.square::before {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  content: "";
}

.window-button.close {
  font-size: 25px;
}

.hero {
  position: relative;
  height: 267px;
  margin: 0 -18px 0 -30px;
  overflow: hidden;
}

.cosmos-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 79% 50%, rgba(255, 140, 191, 0.22), transparent 14%),
    radial-gradient(ellipse at 81% 48%, rgba(89, 46, 191, 0.45), transparent 34%),
    radial-gradient(ellipse at 58% 66%, rgba(4, 100, 255, 0.25), transparent 40%),
    linear-gradient(180deg, transparent 60%, rgba(14, 33, 99, 0.42));
}

.cosmos-art::before {
  position: absolute;
  top: 7px;
  right: -10%;
  width: 58%;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 50%, #fff8f1 0 2%, #ffc0e8 3% 5%, #be81ff 9%, #424eff 18%, rgba(43, 67, 224, 0.36) 32%, transparent 68%);
  filter: blur(1px);
  opacity: 0.9;
  transform: rotate(-15deg);
  content: "";
}

.cosmos-art::after {
  position: absolute;
  right: -5%;
  bottom: -180px;
  left: -7%;
  height: 240px;
  border: 2px solid rgba(73, 158, 255, 0.88);
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 60% 0%, rgba(51, 135, 255, 0.55), transparent 52%),
    linear-gradient(180deg, rgba(16, 47, 127, 0.9), rgba(5, 12, 45, 0.96));
  box-shadow: 0 -7px 25px rgba(43, 135, 255, 0.74), inset 0 12px 30px rgba(21, 127, 255, 0.42);
  content: "";
}

.planet {
  position: absolute;
  right: 3%;
  bottom: -52px;
  z-index: 1;
  width: 30%;
  height: 215px;
  border: 1px solid rgba(125, 179, 255, 0.8);
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 55% 0%, rgba(211, 227, 255, 0.95), transparent 2%),
    linear-gradient(170deg, transparent 16%, rgba(15, 98, 198, 0.7) 30%, #091d56 62%, #080c24 90%);
  box-shadow: 0 -8px 20px rgba(63, 166, 255, 0.75), inset 0 18px 28px rgba(100, 179, 255, 0.25);
  transform: rotate(-9deg);
}

.planet-glow {
  position: absolute;
  right: 0;
  bottom: 60px;
  z-index: 1;
  width: 42%;
  height: 20px;
  background: #a3ddff;
  filter: blur(14px);
  opacity: 0.9;
  transform: rotate(-9deg);
}

.horizon {
  position: absolute;
  right: 1%;
  bottom: 41px;
  z-index: 1;
  width: 67%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #70c4ff, #fff, #9f75ff, transparent);
  box-shadow: 0 0 16px 4px rgba(42, 135, 255, 0.7);
  transform: rotate(-2deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 25px;
  padding: 12px 0 20px 37px;
}

.hero-orbit {
  position: relative;
  display: grid;
  width: 138px;
  height: 138px;
  flex: 0 0 138px;
  place-items: center;
  border: 1px solid rgba(80, 148, 255, 0.65);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 64, 164, 0.68), rgba(5, 12, 36, 0.46) 70%);
  box-shadow: inset 0 0 24px rgba(0, 102, 255, 0.7), 0 0 24px rgba(11, 111, 255, 0.5);
}

.orbit-ring {
  position: absolute;
  inset: 28px -17px;
  border: 2px solid #ff9d22;
  border-right-color: transparent;
  border-left-color: rgba(99, 178, 255, 0.75);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.hero-emblem {
  color: #ffad31;
  font-family: system-ui, sans-serif;
  font-size: 85px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 9px #ff930f, 0 0 24px rgba(255, 134, 0, 0.76);
  transform: skew(-10deg);
}

.orbit-spark {
  position: absolute;
  top: 5px;
  right: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e7f2ff;
  box-shadow: 0 0 14px 4px #398bff;
}

.welcome-copy h1 {
  margin: 0 0 8px;
  font-family: system-ui, sans-serif;
  font-size: clamp(24px, 2.4vw, 36px);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.wave {
  display: inline-block;
  margin-left: 5px;
  font-style: normal;
  font-size: 0.88em;
}

.welcome-copy > p {
  margin: 0 0 7px;
  font-size: 17px;
  text-shadow: 0 2px 9px #000;
}

.welcome-copy blockquote {
  margin: 0;
  color: #aeb8d7;
  font-size: 14px;
  font-style: italic;
}

.summary-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin: -20px 25px 0 0;
}

.summary-card {
  display: flex;
  min-width: 0;
  min-height: 99px;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px 12px;
  border: 1px solid rgba(93, 152, 255, 0.4);
  border-radius: 19px;
  background:
    linear-gradient(135deg, rgba(14, 38, 84, 0.91), rgba(10, 19, 50, 0.86)),
    var(--glass);
  box-shadow: 0 11px 26px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.08);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.summary-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 188, 255, 0.8);
}

.summary-card.blue {
  border-color: rgba(39, 158, 255, 0.62);
}

.summary-card.green {
  border-color: rgba(81, 220, 199, 0.45);
}

.summary-card.orange {
  border-color: rgba(255, 158, 47, 0.44);
}

.summary-card.purple {
  border-color: rgba(174, 120, 255, 0.56);
}

.summary-icon {
  display: grid;
  width: 30px;
  height: 31px;
  flex: 0 0 30px;
  place-items: center;
  color: #38aaff;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 14px currentColor;
}

.green .summary-icon {
  color: #0fe0b0;
}

.orange .summary-icon {
  color: #ffad38;
}

.purple .summary-icon {
  color: #c372ff;
}

.summary-copy {
  gap: 5px;
  padding-top: 2px;
  font-size: 12px;
}

.summary-copy > span {
  color: #e1e8fa;
}

.summary-copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-copy small {
  margin-top: auto;
  padding-top: 4px;
  color: #a9b5d9;
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}

.summary-copy small b {
  font-size: 13px;
}

.dashboard-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin: 21px 14px 0 0;
}

.glass-panel {
  min-width: 0;
  min-height: 183px;
  padding: 15px 18px;
  border: 1px solid rgba(108, 155, 255, 0.35);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 95% 100%, rgba(183, 68, 87, 0.23), transparent 37%),
    linear-gradient(135deg, rgba(8, 24, 60, 0.91), rgba(13, 18, 46, 0.86));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.06);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  gap: 12px;
}

.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.advice-panel .panel-heading h2 {
  color: #ffc06a;
}

.heading-icon {
  font-size: 19px;
}

.heading-icon.star {
  color: #ffad32;
  text-shadow: 0 0 12px rgba(255, 166, 38, 0.55);
}

.heading-icon.calendar {
  color: #c775ff;
  text-shadow: 0 0 12px rgba(179, 78, 255, 0.48);
}

.advice-content {
  display: grid;
  grid-template-columns: minmax(100px, 0.72fr) 1.28fr;
  align-items: center;
  gap: 13px;
  margin-top: 13px;
}

.galaxy-thumb {
  position: relative;
  height: 95px;
  overflow: hidden;
  border: 1px solid rgba(125, 151, 255, 0.45);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 55% 49%, #fff 0 2%, #ffd1ef 3% 5%, #a67dff 10%, #1e68ff 21%, transparent 54%),
    radial-gradient(ellipse at 50% 50%, rgba(8, 102, 255, 0.82), transparent 60%),
    radial-gradient(circle at 22% 26%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 78% 72%, #d2e6ff 0 1px, transparent 2px),
    #030a28;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.45);
}

.galaxy-thumb::before {
  position: absolute;
  top: 44%;
  left: 17%;
  width: 75%;
  height: 18px;
  border: 1px solid rgba(179, 166, 255, 0.68);
  border-radius: 50%;
  content: "";
  transform: rotate(-24deg);
}

.galaxy-thumb span {
  position: absolute;
  top: 48%;
  left: 54%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 12px 6px #b397ff;
}

.advice-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.advice-copy p {
  margin: 3px 0 9px;
  color: #d8dff5;
  font-size: 12px;
  line-height: 1.48;
}

.confirm-button {
  align-self: flex-end;
  padding: 6px 13px;
  border: 1px solid rgba(156, 180, 255, 0.7);
  border-radius: 999px;
  background: rgba(9, 20, 52, 0.72);
  color: #e7edff;
  font-size: 11px;
  cursor: pointer;
}

.confirm-button:hover {
  border-color: #69e2c1;
  color: #76f2ca;
}

.text-button {
  border: 0;
  background: transparent;
  color: #aab6dd;
  font-size: 10px;
  cursor: pointer;
}

.text-button span {
  padding-left: 4px;
  font-size: 14px;
}

.agenda-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 9px 0 0 8px;
  padding: 0 0 0 0;
  list-style: none;
}

.agenda-list::before {
  position: absolute;
  top: 11px;
  bottom: 12px;
  left: 4px;
  width: 2px;
  background: linear-gradient(#ff941c, #f8b51e 50%, #00d8eb);
  content: "";
}

.agenda-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(94px, 0.7fr) 1.3fr;
  align-items: center;
  min-height: 37px;
  gap: 12px;
  padding: 0 10px 0 22px;
  border-bottom: 1px solid rgba(164, 180, 225, 0.1);
  color: #dce3f9;
  font-size: 12px;
}

.agenda-item:last-child {
  border-bottom: 0;
}

.agenda-item::before {
  position: absolute;
  left: -1px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: #ff941c;
  box-shadow: 0 0 10px rgba(255, 144, 24, 0.7);
  content: "";
}

.agenda-item.yellow-line::before {
  background: #ffc01e;
  box-shadow: 0 0 10px rgba(255, 192, 30, 0.65);
}

.agenda-item.cyan-line::before {
  background: #04d9df;
  box-shadow: 0 0 10px rgba(4, 217, 223, 0.65);
}

.agenda-item time {
  color: #b7c3e3;
  white-space: nowrap;
}

.assistant-composer {
  position: absolute;
  z-index: 5;
  right: 26%;
  bottom: 34px;
  left: 16.5%;
  display: flex;
  height: 61px;
  align-items: center;
  gap: 11px;
  padding: 6px 7px 6px 12px;
  border: 1px solid #388bff;
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(8, 31, 82, 0.97), rgba(24, 15, 65, 0.96) 67%, rgba(40, 20, 64, 0.96));
  box-shadow: 0 0 0 2px rgba(24, 93, 255, 0.16), 0 0 24px rgba(44, 104, 255, 0.5), 0 0 40px rgba(135, 54, 255, 0.24);
}

.assistant-composer input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.assistant-composer input::placeholder {
  color: #a8b2d2;
}

.send-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(106, 127, 199, 0.27);
  color: #dce8ff;
  font-size: 17px;
  cursor: pointer;
}

.composer-submit {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #91a0cf;
  cursor: pointer;
  transform: rotate(-35deg);
}

.voice-button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 2px solid #ffc35c;
  border-radius: 50%;
  background: radial-gradient(circle, #ffae33, #ff6a1a);
  box-shadow: 0 0 14px rgba(255, 139, 27, 0.86);
  color: white;
  font-size: 25px;
  cursor: pointer;
}

.assistant-decoration {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: -83px;
  width: 240px;
  height: 182px;
  pointer-events: none;
}

.robot {
  position: absolute;
  bottom: -35px;
  left: 54px;
  width: 132px;
  height: 176px;
  filter: drop-shadow(0 0 15px rgba(29, 134, 255, 0.7));
}

.robot-face {
  position: absolute;
  top: 15px;
  left: 21px;
  z-index: 2;
  width: 94px;
  height: 82px;
  border: 4px solid #93d4ff;
  border-radius: 45% 45% 39% 39%;
  background: linear-gradient(145deg, #f4fbff, #8daec5 61%, #f6fdff);
  box-shadow: inset 0 -8px 10px rgba(9, 34, 79, 0.42), 0 0 14px #1688ff;
  transform: rotate(-8deg);
}

.robot-face i {
  position: absolute;
  top: 31px;
  left: 21px;
  width: 8px;
  height: 14px;
  border-radius: 50%;
  background: #00bfff;
  box-shadow: 0 0 11px 3px #008dff;
}

.robot-face i:nth-child(2) {
  right: 21px;
  left: auto;
}

.robot-face b {
  position: absolute;
  right: 34px;
  bottom: 13px;
  left: 34px;
  height: 3px;
  border-radius: 4px;
  background: #315d8b;
}

.robot-body {
  position: absolute;
  top: 96px;
  left: 38px;
  width: 77px;
  height: 93px;
  border: 3px solid #83caff;
  border-radius: 40% 40% 25% 25%;
  background: linear-gradient(110deg, #eaf8ff, #8aa8bd 45%, #e8f7ff);
  box-shadow: inset 0 -10px 15px rgba(9, 37, 81, 0.45), 0 0 12px #087eff;
  transform: rotate(-7deg);
}

.robot-body::before {
  position: absolute;
  top: 18px;
  left: 27px;
  width: 17px;
  height: 9px;
  border-radius: 50%;
  background: #248bff;
  box-shadow: 0 0 10px #009dff;
  content: "";
}

.robot-antenna {
  position: absolute;
  top: 0;
  left: 65px;
  z-index: 3;
  width: 3px;
  height: 23px;
  background: #72caff;
  transform: rotate(-8deg);
}

.robot-antenna::before {
  position: absolute;
  top: -4px;
  left: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff9d27;
  box-shadow: 0 0 9px #ff971d;
  content: "";
}

.robot-ear {
  position: absolute;
  top: 40px;
  z-index: 3;
  width: 12px;
  height: 26px;
  border: 2px solid #5ebaff;
  border-radius: 8px;
  background: #273f62;
}

.robot-ear.left {
  left: 15px;
}

.robot-ear.right {
  right: 6px;
}

.robot-spark {
  position: absolute;
  color: #ffae32;
  text-shadow: 0 0 10px #ff9918;
}

.spark-one {
  top: 6px;
  left: 44px;
  font-size: 21px;
}

.spark-two {
  top: 60px;
  right: 14px;
  color: #85d7ff;
  font-size: 19px;
}

.signature {
  position: absolute;
  right: 8px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #f7bd78;
  text-align: right;
  text-shadow: 0 0 12px rgba(255, 137, 52, 0.5);
  pointer-events: none;
}

.signature span {
  font-family: Georgia, serif;
  font-size: 28px;
  font-style: italic;
}

.signature small {
  color: #e8c9a7;
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
  line-height: 1.3;
}

.signature b {
  margin-top: -6px;
  color: #ff9c27;
  font-size: 32px;
  font-weight: 400;
}

.chat-popover,
.tasks-popover {
  position: absolute;
  z-index: 8;
  right: 25%;
  bottom: 108px;
  display: flex;
  width: min(440px, 72%);
  max-height: min(430px, calc(100vh - 220px));
  flex-direction: column;
  padding: 15px;
  border: 1px solid rgba(91, 150, 255, 0.6);
  border-radius: 19px;
  background: rgba(6, 14, 38, 0.97);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55), 0 0 22px rgba(39, 101, 255, 0.22);
}

.chat-popover[hidden],
.tasks-popover[hidden] {
  display: none;
}

.chat-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.chat-popover-header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.chat-popover-header strong {
  font-size: 13px;
}

.chat-help {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.mini-brand-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #2d9dff, #6948ff);
  color: white;
  font-weight: 800;
}

.chat-action {
  padding: 5px 8px;
  border: 1px solid rgba(122, 159, 239, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #bdc9eb;
  font-size: 11px;
  cursor: pointer;
}

.chat-action.close-chat {
  border: 0;
  background: transparent;
  font-size: 21px;
}

.chat-window {
  display: flex;
  min-height: 90px;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 5px 2px;
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.message.user {
  justify-content: flex-end;
}

.avatar {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #309eff, #7d58ff);
  font-size: 11px;
  font-weight: 700;
}

.bubble {
  max-width: 85%;
  padding: 9px 12px;
  border: 1px solid rgba(141, 171, 238, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #e9edfc;
  font-size: 12px;
  line-height: 1.45;
}

.message.user .bubble {
  background: linear-gradient(130deg, rgba(39, 122, 255, 0.34), rgba(125, 70, 255, 0.24));
}

.tasks-popover {
  right: 14px;
  width: min(390px, 80%);
}

.task-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.task-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(137, 164, 226, 0.17);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.task-list li.completed {
  opacity: 0.6;
}

.task-list li.completed label span {
  text-decoration: line-through;
}

.task-list label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.task-list input {
  accent-color: #46dbb2;
}

.task-list small {
  color: #9eaccf;
  white-space: nowrap;
}

.task-form {
  display: flex;
  gap: 8px;
}

.task-form input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(137, 164, 226, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.primary-btn {
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, #258dff, #694eff);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.toast {
  position: absolute;
  z-index: 10;
  top: 70px;
  right: 10px;
  max-width: 320px;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid rgba(111, 157, 255, 0.45);
  border-radius: 12px;
  background: rgba(8, 19, 47, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #e8efff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.light-theme {
  --text: #f7f8ff;
  --muted: #c9d1e8;
}

.light-theme .main-panel {
  filter: brightness(1.2) saturate(0.82);
}

@media (min-width: 1500px) {
  .app-shell {
    grid-template-columns: 256px minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 218px minmax(0, 1fr);
    padding-right: 18px;
    padding-left: 18px;
  }

  .main-panel {
    padding-left: 20px;
  }

  .hero {
    margin-left: -20px;
  }

  .summary-grid {
    gap: 9px;
    margin-right: 0;
  }

  .summary-card {
    gap: 8px;
    padding-right: 9px;
    padding-left: 10px;
  }

  .summary-copy {
    font-size: 11px;
  }

  .summary-copy strong {
    font-size: 12px;
  }

  .dashboard-grid {
    gap: 12px;
    margin-right: 0;
  }

  .assistant-composer {
    right: 20%;
    left: 17%;
  }
}

@media (max-width: 780px) {
  body {
    overflow: auto;
  }

  .app-shell {
    display: block;
    height: auto;
    min-height: 100vh;
    padding: 10px;
    overflow: visible;
  }

  .sidebar {
    min-height: 0;
    padding: 10px;
  }

  .brand {
    height: auto;
    padding: 0 8px 8px;
  }

  .brand-mark {
    width: 43px;
    height: 43px;
    font-size: 40px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .nav {
    display: flex;
    gap: 7px;
    margin: 5px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    width: auto;
    min-width: max-content;
    height: 38px;
    gap: 7px;
    padding: 0 10px;
    font-size: 11px;
  }

  .nav-icon {
    width: auto;
    flex-basis: auto;
    font-size: 16px;
  }

  .profile-card {
    display: none;
  }

  .main-panel {
    height: auto;
    min-height: 860px;
    padding: 12px 0 110px;
    overflow: visible;
  }

  .topbar {
    height: 44px;
  }

  .search-box {
    width: 70%;
  }

  .search-box kbd,
  .window-button,
  .top-divider {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .theme-toggle {
    width: 67px;
  }

  .hero {
    height: 210px;
    margin: 0 -10px 0 -10px;
  }

  .hero-content {
    gap: 15px;
    padding-left: 18px;
  }

  .hero-orbit {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }

  .hero-emblem {
    font-size: 51px;
  }

  .orbit-ring {
    inset: 20px -10px;
  }

  .welcome-copy h1 {
    font-size: 23px;
  }

  .welcome-copy > p {
    font-size: 13px;
  }

  .welcome-copy blockquote {
    font-size: 11px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: -12px 0 0;
  }

  .summary-card {
    min-height: 85px;
    padding: 12px 9px;
  }

  .summary-icon {
    width: 25px;
    flex-basis: 25px;
    font-size: 24px;
  }

  .summary-copy {
    font-size: 10px;
  }

  .summary-copy strong {
    font-size: 11px;
  }

  .summary-copy small {
    font-size: 9px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 14px 0 0;
  }

  .glass-panel {
    min-height: 166px;
    padding: 13px;
  }

  .agenda-panel {
    min-height: 171px;
  }

  .assistant-composer {
    position: fixed;
    right: 16px;
    bottom: 17px;
    left: 16px;
    height: 56px;
  }

  .assistant-decoration,
  .signature {
    display: none;
  }

  .chat-popover,
  .tasks-popover {
    position: fixed;
    right: 14px;
    bottom: 86px;
    width: calc(100% - 28px);
    max-height: 55vh;
  }

  .toast {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 83px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  color-scheme: light;
  --page-bg: #f3f4f6;
  --surface: #ffffff;
  --surface-muted: #f8f9fa;
  --text: #202833;
  --muted: #687382;
  --border: #e1e5e9;
  --accent: #315b82;
  --accent-soft: #edf2f7;
  --shadow: 0 2px 8px rgba(28, 39, 51, 0.045);
  font-family: system-ui, sans-serif;
}

.dark-theme {
  color-scheme: dark;
  --page-bg: #15191e;
  --surface: #1d232a;
  --surface-muted: #242b33;
  --text: #edf0f3;
  --muted: #a4aeb9;
  --border: #343d47;
  --accent: #9ab5d0;
  --accent-soft: #2a3540;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body,
.app-shell {
  background: var(--page-bg);
  color: var(--text);
}

.app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
}

.sidebar {
  padding: 20px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand {
  height: 66px;
  padding: 0 10px 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid #d5e0eb;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 25px;
  text-shadow: none;
  transform: none;
}

.brand-copy strong {
  color: var(--text);
  font-family: system-ui, sans-serif;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
}

.nav {
  gap: 3px;
  margin-top: 16px;
}

.nav-item {
  height: 40px;
  gap: 11px;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
}

.nav-item:hover,
.nav-item.active {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
}

.nav-item.active {
  font-weight: 600;
}

.nav-item.active .nav-icon,
.nav-icon {
  color: var(--muted);
  text-shadow: none;
  font-size: 18px;
}

.nav-item.active .nav-icon {
  color: var(--accent);
}

.profile-card {
  min-height: 62px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-muted);
}

.profile-avatar {
  border: 0;
  background: var(--accent-soft);
  box-shadow: none;
  color: var(--accent);
}

.profile-copy strong {
  color: var(--text);
}

.profile-copy small {
  color: var(--muted);
}

.main-panel {
  padding: 8px 0 0 8px;
  background: var(--page-bg);
}

.main-panel::before {
  display: none;
}

.topbar {
  position: relative;
  z-index: 12;
  height: 46px;
  margin-bottom: 15px;
}

.search-box {
  width: min(460px, 60%);
  height: 38px;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.search-box > span {
  color: var(--muted);
  font-size: 21px;
}

.search-box input,
.search-box input::placeholder {
  color: var(--muted);
}

.search-box kbd {
  color: var(--muted);
}

.top-actions {
  gap: 10px;
}

.theme-toggle {
  width: 62px;
  height: 32px;
  border-color: var(--border);
  background: var(--surface);
}

.theme-toggle .sun {
  width: 24px;
  height: 24px;
  background: var(--accent-soft);
  box-shadow: none;
  color: var(--accent);
  font-size: 15px;
}

.theme-toggle .moon,
.icon-button {
  color: var(--muted);
  font-size: 17px;
}

.notification-count {
  background: var(--accent);
}

.hero {
  height: 148px;
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.hero-content {
  padding: 20px 26px;
}

.page-eyebrow {
  margin: 0 0 8px !important;
  color: var(--muted);
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: none !important;
}

.welcome-copy h1 {
  margin-bottom: 5px;
  color: var(--text);
  font-family: system-ui, sans-serif;
  font-size: 26px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-shadow: none;
}

.welcome-copy > p:not(.page-eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-shadow: none;
}

.summary-grid {
  gap: 12px;
  margin: 0;
}

.summary-card,
.summary-card.blue,
.summary-card.green,
.summary-card.orange,
.summary-card.purple {
  min-height: 92px;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card:hover {
  transform: translateY(-1px);
  border-color: #b7c5d3;
}

.summary-icon,
.green .summary-icon,
.orange .summary-icon,
.purple .summary-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 19px;
  text-shadow: none;
}

.summary-copy {
  gap: 5px;
  font-size: 11px;
}

.summary-copy > span {
  color: var(--muted);
}

.summary-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.summary-copy small {
  color: var(--muted);
  font-size: 10px;
  text-align: left;
}

.dashboard-grid {
  gap: 12px;
  margin: 14px 0 0;
}

.glass-panel {
  min-height: 177px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading h2 {
  gap: 8px;
  color: var(--text) !important;
  font-family: system-ui, sans-serif;
  font-size: 13px;
}

.heading-icon,
.heading-icon.star,
.heading-icon.calendar {
  color: var(--accent);
  font-size: 16px;
  text-shadow: none;
}

.advice-content {
  grid-template-columns: 1fr;
  margin-top: 10px;
}

.galaxy-thumb {
  display: none;
}

.advice-copy {
  min-height: 105px;
}

.advice-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.confirm-button {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 11px;
}

.confirm-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.text-button {
  color: var(--accent);
  font-size: 11px;
}

.agenda-list {
  margin-top: 10px;
}

.agenda-list::before {
  background: var(--border);
}

.agenda-item {
  min-height: 36px;
  border-color: var(--border);
  color: var(--text);
  font-size: 12px;
}

.agenda-item::before,
.agenda-item.yellow-line::before,
.agenda-item.cyan-line::before {
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.agenda-item time {
  color: var(--muted);
}

.assistant-composer {
  right: 12%;
  bottom: 20px;
  left: 12%;
  height: 52px;
  gap: 8px;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.assistant-composer input {
  color: var(--text);
  font-size: 12px;
}

.assistant-composer input::placeholder {
  color: var(--muted);
}

.send-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
}

.composer-submit {
  color: var(--accent);
}

.voice-button {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border: 0;
  border-radius: 7px;
  background: var(--accent-soft);
  box-shadow: none;
  color: var(--accent);
  font-size: 17px;
}

.voice-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.chat-popover,
.tasks-popover {
  border-color: var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(20, 30, 40, 0.14);
  color: var(--text);
}

.mini-brand-mark {
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
}

.chat-action {
  border-color: var(--border);
  background: var(--surface-muted);
  color: var(--muted);
}

.bubble {
  border-color: var(--border);
  background: var(--surface-muted);
  color: var(--text);
}

.message.user .bubble {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--text);
}

.task-list li {
  border-color: var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
}

.task-list input {
  accent-color: var(--accent);
}

.task-list small {
  color: var(--muted);
}

.task-form input {
  border-color: var(--border);
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--text);
}

.primary-btn {
  border-radius: 7px;
  background: var(--accent);
}

.toast {
  border-color: var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
}

.dark-theme .sidebar,
.dark-theme .hero,
.dark-theme .summary-card,
.dark-theme .glass-panel,
.dark-theme .search-box,
.dark-theme .assistant-composer,
.dark-theme .chat-popover,
.dark-theme .tasks-popover {
  border-color: var(--border);
  background: var(--surface);
}

.dark-theme .summary-card:hover {
  border-color: #586574;
}

.dark-theme .profile-card,
.dark-theme .task-list li,
.dark-theme .task-form input,
.dark-theme .confirm-button,
.dark-theme .send-icon,
.dark-theme .voice-button,
.dark-theme .mini-brand-mark,
.dark-theme .chat-action,
.dark-theme .bubble,
.dark-theme .message.user .bubble {
  border-color: var(--border);
  background: var(--surface-muted);
}

.dark-theme .profile-avatar {
  background: var(--accent-soft);
}

.dark-theme .task-form input,
.dark-theme .assistant-composer input {
  color: var(--text);
}

.dark-theme .main-panel {
  filter: none;
}

@media (min-width: 1500px) {
  .app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .main-panel {
    padding-left: 4px;
  }

  .summary-grid {
    gap: 8px;
  }

  .summary-card,
  .summary-card.blue,
  .summary-card.green,
  .summary-card.orange,
  .summary-card.purple {
    gap: 8px;
    padding: 11px 9px;
  }
}

@media (max-width: 780px) {
  .app-shell {
    padding: 10px;
  }

  .sidebar {
    padding: 10px;
  }

  .main-panel {
    min-height: 760px;
    padding: 12px 0 100px;
  }

  .hero {
    height: 125px;
    margin: 0 0 14px;
  }

  .hero-content {
    padding: 16px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .summary-card,
  .summary-card.blue,
  .summary-card.green,
  .summary-card.orange,
  .summary-card.purple {
    min-height: 80px;
    padding: 10px;
  }

  .summary-copy strong {
    white-space: normal;
  }

  .summary-copy small {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .assistant-composer {
    right: 16px;
    bottom: 14px;
    left: 16px;
  }
}

.tasks-popover {
  width: min(460px, 84%);
}

.task-list {
  gap: 7px;
  padding-right: 2px;
}

.task-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  padding: 10px 11px;
}

.task-list label {
  min-width: 0;
  gap: 9px;
  color: var(--text);
}

.task-list label span {
  overflow-wrap: anywhere;
}

.task-list input {
  flex: 0 0 auto;
}

.task-item-details {
  grid-column: 1;
  padding-left: 25px;
  color: var(--muted);
}

.task-item-details small {
  font-size: 11px;
}

.task-item-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  gap: 5px;
}

.task-action {
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.task-action:hover,
.task-action:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.task-form {
  display: grid;
  gap: 9px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.task-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.task-field input {
  min-height: 36px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
}

.task-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.task-form-actions .primary-btn,
.task-form-actions .chat-action {
  min-height: 34px;
}

.task-form-actions .chat-action[hidden] {
  display: none;
}

.dark-theme .task-action {
  border-color: var(--border);
  background: var(--surface);
  color: var(--muted);
}

@media (max-width: 780px) {
  .tasks-popover {
    width: calc(100% - 28px);
  }
}

.agenda-popover {
  position: absolute;
  z-index: 8;
  right: 14px;
  bottom: 108px;
  display: flex;
  width: min(460px, 84%);
  max-height: min(560px, calc(100vh - 220px));
  flex-direction: column;
  padding: 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(20, 30, 40, 0.14);
  color: var(--text);
}

.agenda-popover[hidden] {
  display: none;
}

.agenda-help {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.agenda-management-list {
  display: grid;
  gap: 7px;
  overflow-y: auto;
  margin: 0;
  padding: 0 2px 8px 0;
  list-style: none;
}

.agenda-management-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

.appointment-details {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.appointment-details strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.appointment-details small,
.agenda-management-empty {
  color: var(--muted);
  font-size: 11px;
}

.agenda-management-empty {
  padding: 9px 2px;
  line-height: 1.5;
}

.appointment-datetime {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.agenda-popover .task-form {
  flex: 0 0 auto;
}

.agenda-empty {
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.agenda-list.is-empty::before {
  display: none;
}

.dark-theme .agenda-popover,
.dark-theme .agenda-management-item {
  border-color: var(--border);
  background: var(--surface);
}

.dark-theme .agenda-management-item {
  background: var(--surface-muted);
}

@media (max-width: 780px) {
  .agenda-popover {
    position: fixed;
    right: 14px;
    bottom: 86px;
    width: calc(100% - 28px);
    max-height: 65vh;
  }
}

.workspace-popover {
  position: absolute;
  z-index: 8;
  right: 14px;
  bottom: 108px;
  display: flex;
  width: min(480px, 84%);
  max-height: min(590px, calc(100vh - 220px));
  flex-direction: column;
  padding: 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(20, 30, 40, 0.14);
  color: var(--text);
}

.settings-popover {
  width: min(460px, 84%);
}

.workspace-popover[hidden] {
  display: none;
}

.workspace-list {
  display: grid;
  gap: 7px;
  overflow-y: auto;
  margin: 0;
  padding: 0 2px 8px 0;
  list-style: none;
}

.workspace-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

.workspace-item-details {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.workspace-item-details strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.workspace-item-details small,
.workspace-empty {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.workspace-empty {
  padding: 9px 2px;
}

.project-status {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
}

.workspace-popover select {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.workspace-popover textarea {
  min-height: 74px;
  padding: 8px 10px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.workspace-popover textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.analytics-popover {
  width: min(520px, 84%);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.analytics-card {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

.analytics-card > span {
  color: var(--muted);
  font-size: 10px;
}

.analytics-card strong {
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
}

.analytics-card small,
.analytics-updated {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.analytics-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--border);
}

.analytics-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.analytics-updated {
  margin: 11px 0 0;
}

.voice-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.voice-button.is-listening {
  outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent);
  animation: voice-pulse 1.2s ease-in-out infinite;
}

@keyframes voice-pulse {
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent);
  }
}

.document-add-button {
  min-height: 36px;
  align-self: flex-start;
  margin: 0 0 10px;
}

.document-list {
  min-height: 60px;
}

.settings-notice {
  margin: 0 0 14px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-actions button {
  min-height: 36px;
}

.search-results {
  position: absolute;
  z-index: 12;
  top: 50px;
  left: 0;
  display: grid;
  width: min(580px, 58%);
  max-height: min(420px, 60vh);
  gap: 4px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(20, 30, 40, 0.18);
}

.search-results[hidden] {
  display: none;
}

.search-result {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--surface-muted);
}

.search-result strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
}

.search-result small,
.search-results-empty {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.search-results-empty {
  padding: 8px 10px;
}

.search-highlight {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dark-theme .workspace-popover {
  border-color: var(--border);
  background: var(--surface);
}

.dark-theme .workspace-item,
.dark-theme .workspace-popover select,
.dark-theme .workspace-popover textarea,
.dark-theme .analytics-card {
  border-color: var(--border);
  background: var(--surface-muted);
  color: var(--text);
}

@media (max-width: 780px) {
  .workspace-popover {
    position: fixed;
    right: 14px;
    bottom: 86px;
    width: calc(100% - 28px);
    max-height: 65vh;
  }

  .settings-popover {
    width: calc(100% - 28px);
  }

  .analytics-popover {
    width: calc(100% - 28px);
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .search-results {
    top: 46px;
    width: 70%;
  }

  .workspace-item {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-button.is-listening {
    animation: none;
  }

  .analytics-progress span {
    transition: none;
  }
}

.pilot-banner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
}

.pilot-banner > div:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pilot-banner strong {
  font-size: 11px;
}

.pilot-banner span {
  color: var(--muted);
  font-size: 10px;
}

.pilot-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.pilot-link {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.pilot-dialog {
  position: fixed;
  width: min(520px, calc(100% - 28px));
  max-width: none;
  max-height: min(780px, calc(100dvh - 28px));
  padding: 22px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.pilot-dialog::backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(2px);
}

.pilot-dialog-close {
  display: flex;
  justify-content: flex-end;
  margin: -10px -10px 8px;
}

.pilot-dialog h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 21px;
  letter-spacing: -0.03em;
}

.pilot-dialog > p:not(.page-eyebrow),
.pilot-steps {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.pilot-steps {
  display: grid;
  gap: 6px;
  padding-left: 22px;
}

.pilot-privacy {
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

.pilot-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.pilot-dialog-actions .primary-btn,
.pilot-dialog-actions .chat-action {
  min-height: 36px;
}

.feedback-dialog {
  width: min(560px, calc(100% - 28px));
}

.feedback-form {
  display: grid;
  gap: 15px;
  margin-top: 16px;
}

.feedback-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.feedback-form legend {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.feedback-form fieldset > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.rating-options,
.language-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-options label,
.language-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-size: 11px;
}

.rating-options label span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-muted);
  cursor: pointer;
}

.rating-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rating-options input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.rating-options input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.feedback-form textarea {
  width: 100%;
  min-height: 82px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.feedback-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.feedback-consent input {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--accent);
}

.feedback-status {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.5;
}

.dark-theme .pilot-banner,
.dark-theme .pilot-link,
.dark-theme .pilot-dialog {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.dark-theme .pilot-privacy,
.dark-theme .rating-options label span,
.dark-theme .feedback-form textarea {
  border-color: var(--border);
  background: var(--surface-muted);
  color: var(--text);
}

@media (max-width: 780px) {
  .pilot-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .pilot-actions {
    width: 100%;
  }

  .pilot-link {
    min-height: 34px;
  }

  .pilot-dialog {
    padding: 17px;
  }

  .pilot-dialog-actions {
    justify-content: stretch;
  }

  .pilot-dialog-actions button {
    flex: 1 1 150px;
  }
}
