:root {
  --bg: #030714;
  --bg-2: #071126;
  --panel: rgba(10, 20, 42, 0.88);
  --panel-strong: rgba(6, 15, 32, 0.96);
  --line: rgba(118, 157, 255, 0.16);
  --line-strong: rgba(88, 145, 255, 0.38);
  --text: #eef5ff;
  --muted: #90a6cf;
  --cyan: #2fb7ff;
  --cyan-soft: rgba(47, 183, 255, 0.22);
  --green: #2ef2a3;
  --orange: #ff9f2a;
  --pink: #d050ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --dock-clearance: 132px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 120%, rgba(0, 198, 255, 0.14), transparent 34%),
    radial-gradient(circle at top left, rgba(30, 112, 255, 0.24), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(0, 255, 193, 0.12), transparent 18%),
    linear-gradient(180deg, #050a16 0%, #02050d 100%);
}

button, input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 10px;
  height: 100vh;
  height: 100dvh;
  padding: 8px;
  overflow: hidden;
}

.panel {
  background: linear-gradient(180deg, rgba(12, 22, 44, 0.96), rgba(7, 15, 32, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 18%, transparent 72%, rgba(86, 132, 255, 0.04));
}

.inset {
  background: linear-gradient(180deg, rgba(10, 18, 37, 0.92), rgba(7, 14, 28, 0.92));
  box-shadow: inset 0 0 0 1px rgba(111, 163, 255, 0.09);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 12px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 4px 10px;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 164, 76, 0.9), rgba(47, 183, 255, 0.9) 60%, rgba(49, 255, 183, 0.7));
  box-shadow: 0 0 24px rgba(47, 183, 255, 0.4);
  clip-path: polygon(50% 0%, 92% 24%, 92% 76%, 50% 100%, 8% 76%, 8% 24%);
}

.brand-mark span {
  position: absolute;
  inset: 7px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(11, 26, 60, 0.95), rgba(4, 10, 24, 0.98));
  clip-path: inherit;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.14em;
}

.brand-copy strong {
  font-size: 1.55rem;
}

.brand-copy span {
  color: var(--cyan);
  font-size: 0.95rem;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: #c8d8ff;
  transition: 180ms ease;
}

.nav-item span {
  width: 28px;
  color: #dfe7ff;
  text-align: center;
}

.nav-item.active,
.nav-item:hover {
  background: linear-gradient(180deg, rgba(20, 92, 221, 0.34), rgba(16, 51, 126, 0.45));
  box-shadow: inset 0 0 0 1px rgba(81, 153, 255, 0.32), 0 0 20px rgba(24, 103, 246, 0.2);
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 14px;
}

.sidebar-footer strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
}

.sidebar-footer p {
  margin: 3px 0 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.footer-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(145, 255, 255, 0.9), transparent 24%),
    radial-gradient(circle at center, rgba(0, 125, 255, 0.55), rgba(0, 0, 0, 0));
  box-shadow: 0 0 20px rgba(47, 183, 255, 0.45);
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  height: 100%;
  padding-bottom: calc(var(--dock-clearance) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.main-content::after {
  content: "";
  display: block;
  flex: 0 0 calc(var(--dock-clearance) + 72px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto auto;
  gap: 10px;
  align-items: center;
}

.search {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
}

.search input {
  flex: 1;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.search kbd {
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid rgba(149, 179, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.status-strip,
.topbar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.status-card,
.weather,
.clock,
.profile,
.icon-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
}

.status-card strong,
.weather strong,
.clock strong,
.profile strong {
  font-size: 0.96rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.live {
  background: var(--green);
  box-shadow: 0 0 12px rgba(46, 242, 163, 0.7);
}

.servers {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 42%, rgba(0, 0, 0, 0.35) 42% 58%, transparent 58%),
    linear-gradient(transparent 42%, rgba(0, 0, 0, 0.35) 42% 58%, transparent 58%),
    var(--green);
  box-shadow: 0 0 14px rgba(46, 242, 163, 0.45);
}

.weather p,
.clock p,
.profile p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.icon-btn {
  justify-content: center;
  width: 54px;
  padding: 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  color: #07111e;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px minmax(420px, 1fr) 320px;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  align-items: start;
  padding-bottom: calc(var(--dock-clearance) + env(safe-area-inset-bottom, 0px));
}

.dashboard-grid::after {
  content: "";
  grid-column: 1 / -1;
  height: calc(var(--dock-clearance) + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  min-width: 0;
}

.dashboard-column::after {
  content: "";
  display: block;
  flex: 0 0 calc(var(--dock-clearance) + env(safe-area-inset-bottom, 0px));
}

.dashboard-card {
  padding: 12px;
  min-height: 0;
  position: relative;
  user-select: none;
}

.dashboard-card.dragging {
  opacity: 0.55;
  transform: scale(0.985);
}

.dashboard-card__handle {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(116, 167, 255, 0.14);
  background: rgba(6, 14, 30, 0.62);
  color: #8fb8ff;
  cursor: grab;
  font-size: 0;
}

.dashboard-card__handle::before {
  content: "⋮⋮";
  letter-spacing: 1px;
  font-size: 0.86rem;
}

.dashboard-card__handle:active {
  cursor: grabbing;
}

.dashboard-card__resize {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  z-index: 4;
  height: 28px;
  cursor: ns-resize;
  touch-action: none;
}

.dashboard-card__resize::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 112px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(222, 241, 255, 0.76) 0 8px, transparent 8px 14px),
    linear-gradient(90deg, rgba(47, 183, 255, 0.12), rgba(47, 183, 255, 0.48), rgba(47, 183, 255, 0.12));
  box-shadow: 0 0 14px rgba(47, 183, 255, 0.24);
}

.dashboard-card__resize:hover::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 8px, transparent 8px 14px),
    linear-gradient(90deg, rgba(47, 183, 255, 0.2), rgba(47, 183, 255, 0.7), rgba(47, 183, 255, 0.2));
}

.dashboard-column--drop {
  outline: 1px dashed rgba(111, 179, 255, 0.42);
  outline-offset: 6px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 0.58fr);
  gap: 12px;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 40%, rgba(30, 122, 255, 0.18), transparent 28%),
    linear-gradient(120deg, rgba(255, 122, 89, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  margin: 0 0 6px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #78deff;
}

.eyebrow {
  margin: 6px 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 2.15rem;
  color: #dce8ff;
  line-height: 1.02;
}

.hero-summary {
  max-width: 320px;
  margin: 0 0 14px;
  color: #a9bfeb;
  line-height: 1.5;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-chip-row span {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(101, 156, 255, 0.16);
  background: rgba(11, 22, 44, 0.72);
  color: #d9ebff;
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.quote-card {
  max-width: 290px;
  padding: 14px;
  border-radius: var(--radius-lg);
}

.quote-card p {
  margin: 0 0 20px;
  color: #dbe5ff;
  line-height: 1.42;
}

.quote-card strong {
  display: block;
  text-align: right;
}

.hero-stage {
  position: relative;
  min-height: 0;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(17, 41, 95, 0.9), rgba(5, 10, 23, 0.22) 52%, transparent 74%),
    linear-gradient(180deg, rgba(8, 18, 42, 0.82), rgba(4, 8, 20, 0.94)),
    linear-gradient(120deg, rgba(255, 118, 89, 0.25), transparent 24%, rgba(59, 126, 255, 0.1) 72%);
  border: 1px solid rgba(145, 182, 255, 0.12);
  transform-style: preserve-3d;
  perspective: 1200px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 12px 18px auto;
  height: 55%;
  border-radius: 20px 20px 40px 40px;
  border: 2px solid rgba(163, 193, 255, 0.18);
  box-shadow: inset 0 0 30px rgba(37, 80, 177, 0.24);
}

#hero-hologram {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  mix-blend-mode: screen;
}

.stage-hud {
  position: absolute;
  z-index: 2;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(112, 160, 255, 0.18);
  background: rgba(7, 15, 34, 0.58);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.stage-hud span {
  display: block;
  color: #84b9ff;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.stage-hud strong {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
}

.hud-left {
  left: 22px;
  bottom: 44px;
}

.hud-right {
  right: 22px;
  top: 22px;
}

.stage-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(63, 177, 255, 0.5);
  box-shadow: 0 0 36px rgba(41, 160, 255, 0.28);
}

.ring-a {
  inset: 10px 70px auto;
  height: 160px;
}

.ring-b {
  inset: -8px 90px auto;
  height: 190px;
  opacity: 0.5;
}

.halo-core {
  position: absolute;
  inset: 26px 0 auto;
  margin: auto;
  width: 165px;
  height: 165px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.12), transparent 25%),
    radial-gradient(circle at center, rgba(30, 117, 255, 0.2), rgba(3, 8, 24, 0.8) 70%),
    linear-gradient(180deg, rgba(20, 38, 84, 0.85), rgba(7, 12, 26, 0.95));
  border: 2px solid rgba(91, 162, 255, 0.72);
  box-shadow:
    0 0 36px rgba(47, 183, 255, 0.38),
    inset 0 0 34px rgba(47, 183, 255, 0.18);
  animation: pulse-core 4.2s ease-in-out infinite;
}

.core-grid {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, rgba(65, 108, 193, 0.18), rgba(65, 108, 193, 0.18) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(90deg, rgba(65, 108, 193, 0.18), rgba(65, 108, 193, 0.18) 1px, transparent 1px, transparent 18px);
  mask: radial-gradient(circle at center, black 60%, transparent 78%);
}

.halo-core span {
  position: relative;
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  letter-spacing: 0.08em;
  color: #dff4ff;
  text-shadow: 0 0 18px rgba(47, 183, 255, 0.7);
}

.stage-floor {
  position: absolute;
  inset: auto 26px 10px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(71, 203, 255, 0.8), rgba(39, 120, 255, 0.1) 50%, transparent 70%),
    linear-gradient(90deg, transparent, rgba(63, 211, 255, 0.6), transparent);
  filter: blur(1px);
  box-shadow: 0 0 28px rgba(45, 183, 255, 0.5);
}

.stage-pillars {
  position: absolute;
  inset: auto 38px 26px;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.stage-pillars span {
  width: 10px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(125, 179, 255, 0.04), rgba(55, 161, 255, 0.7), rgba(125, 179, 255, 0.04));
  box-shadow: 0 0 24px rgba(47, 183, 255, 0.18);
}

.overview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.02rem;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.ghost-btn,
.wide-btn,
.chip-row button,
.assistant-input button,
.action-grid button {
  border: 1px solid rgba(116, 167, 255, 0.14);
  background: linear-gradient(180deg, rgba(23, 38, 77, 0.95), rgba(13, 23, 48, 0.95));
  border-radius: 12px;
  transition: 180ms ease;
}

.ghost-btn {
  min-height: 34px;
  padding: 0 14px;
  color: #d8e8ff;
}

.ghost-btn:hover,
.wide-btn:hover,
.chip-row button:hover,
.assistant-input button:hover,
.action-grid button:hover {
  box-shadow: 0 0 20px rgba(47, 183, 255, 0.16);
  border-color: rgba(87, 157, 255, 0.28);
}

.overview-meters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.meter {
  position: relative;
  display: grid;
  place-items: center;
}

.meter svg {
  width: 68px;
  height: 68px;
  transform: rotate(-90deg);
}

.meter circle {
  fill: none;
  stroke: rgba(127, 160, 221, 0.18);
  stroke-width: 8;
}

.meter .value {
  stroke: var(--meter-color);
  stroke-linecap: round;
  stroke-dasharray: 251;
  stroke-dashoffset: calc(251 - (251 * var(--progress)) / 100);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--meter-color) 60%, transparent));
}

.meter div {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.meter strong {
  font-size: 0.8rem;
}

.meter span {
  font-weight: 700;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.overview-stats strong {
  display: block;
  color: #6edcff;
  font-size: 1.05rem;
}

.overview-stats span {
  color: var(--muted);
  font-size: 0.76rem;
}

.assistant {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7df8be;
}

.assistant-portrait {
  position: relative;
  min-height: 188px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(47, 232, 255, 0.18), transparent 32%),
    radial-gradient(circle at 18% 24%, rgba(52, 255, 178, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(6, 20, 48, 0.9), rgba(3, 9, 24, 0.96));
  border: 1px solid rgba(101, 218, 255, 0.22);
  box-shadow:
    inset 0 0 34px rgba(47, 232, 255, 0.08),
    0 0 28px rgba(47, 232, 255, 0.08);
}

.assistant-portrait::before,
.assistant-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.assistant-portrait::before {
  background:
    linear-gradient(rgba(95, 224, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 224, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black 0 48%, transparent 78%);
  animation: assistant-grid-flow 10s linear infinite;
}

.assistant-portrait::after {
  background: linear-gradient(110deg, transparent, rgba(137, 242, 255, 0.16), transparent);
  transform: translateX(-120%);
  animation: assistant-scan 4.8s ease-in-out infinite;
}

.assistant-core {
  position: relative;
  width: 148px;
  height: 148px;
  transform-style: preserve-3d;
  animation: assistant-float 4.6s ease-in-out infinite;
}

.assistant-core__sphere {
  position: absolute;
  inset: 31px;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.95), transparent 10%),
    radial-gradient(circle at 48% 46%, rgba(111, 250, 255, 0.98), rgba(26, 122, 255, 0.4) 44%, rgba(2, 8, 24, 0.96) 72%),
    conic-gradient(from 180deg, rgba(47, 232, 255, 0.24), rgba(52, 255, 178, 0.32), rgba(91, 80, 255, 0.24), rgba(47, 232, 255, 0.24));
  box-shadow:
    0 0 36px rgba(47, 232, 255, 0.52),
    0 0 72px rgba(47, 232, 255, 0.2),
    inset 0 0 24px rgba(255, 255, 255, 0.16),
    inset 0 -20px 28px rgba(0, 0, 0, 0.34);
}

.assistant-core__sphere i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid rgba(219, 251, 255, 0.8);
  transform: rotate(45deg);
  box-shadow: 0 0 22px rgba(47, 232, 255, 0.8);
}

.assistant-core__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(115, 233, 255, 0.38);
  box-shadow: 0 0 18px rgba(47, 232, 255, 0.12);
}

.assistant-core__ring.ring-a {
  inset: 8px;
  border-left-color: transparent;
  border-bottom-color: transparent;
  animation: assistant-spin 6.4s linear infinite;
}

.assistant-core__ring.ring-b {
  inset: 21px -2px;
  transform: rotateX(64deg);
  border-top-color: rgba(52, 255, 178, 0.54);
  animation: assistant-spin-reverse 7.8s linear infinite;
}

.assistant-core__ring.ring-c {
  inset: -4px 24px;
  transform: rotateY(58deg);
  border-right-color: transparent;
  animation: assistant-spin 9s linear infinite;
}

.assistant-core__beam {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128px;
  height: 2px;
  border-radius: 999px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(47, 232, 255, 0), rgba(47, 232, 255, 0.78), rgba(52, 255, 178, 0));
  filter: drop-shadow(0 0 8px rgba(47, 232, 255, 0.58));
  animation: assistant-beam-pulse 2.4s ease-in-out infinite;
}

.assistant-core__beam.beam-a { transform: rotate(20deg); }
.assistant-core__beam.beam-b { transform: rotate(145deg); animation-delay: -0.8s; }
.assistant-core__beam.beam-c { transform: rotate(265deg); animation-delay: -1.6s; }

.assistant-portrait__hud {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(101, 218, 255, 0.16);
  background: rgba(3, 11, 28, 0.64);
  backdrop-filter: blur(10px);
}

.assistant-portrait__hud span {
  color: #83f2ff;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.assistant-portrait__hud strong {
  color: #e8fbff;
  font-size: 0.78rem;
  font-weight: 600;
}

.assistant-prompt {
  margin: 0;
  color: #e4f0ff;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row button {
  padding: 8px 10px;
  color: #d9e8ff;
  font-size: 0.8rem;
}

.assistant-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(9, 18, 36, 0.86);
  border: 1px solid rgba(109, 150, 255, 0.13);
}

.assistant-input input {
  flex: 1;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.assistant-input button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #f2f8ff;
}

.project-list,
.activity-list,
.job-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(117, 156, 255, 0.08);
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-row:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 160, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.project-row strong,
.activity-list strong,
.job-list strong,
.app-card strong {
  display: block;
}

.project-row p,
.activity-list span,
.app-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.project-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.project-icon.cyan { background: radial-gradient(circle at 30% 30%, #59e6ff, #0736a9); }
.project-icon.amber { background: radial-gradient(circle at 30% 30%, #ffe86e, #7a4600); }
.project-icon.green { background: radial-gradient(circle at 30% 30%, #69ff8b, #03595a); }
.project-icon.violet { background: radial-gradient(circle at 30% 30%, #f498ff, #2911ae); }

.wide-btn {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
}

.app-spectrum {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}

.app-spectrum__beam {
  height: 6px;
  flex: 1;
  border-radius: 999px;
  opacity: 0.92;
  box-shadow: 0 0 20px currentColor;
}

.app-spectrum__beam.cyan { color: #2fb7ff; background: linear-gradient(90deg, rgba(47,183,255,0.08), #2fb7ff, rgba(47,183,255,0.08)); }
.app-spectrum__beam.green { color: #37ff6f; background: linear-gradient(90deg, rgba(55,255,111,0.08), #37ff6f, rgba(55,255,111,0.08)); }
.app-spectrum__beam.magenta { color: #d050ff; background: linear-gradient(90deg, rgba(208,80,255,0.08), #d050ff, rgba(208,80,255,0.08)); }
.app-spectrum__beam.amber { color: #ff9f2a; background: linear-gradient(90deg, rgba(255,159,42,0.08), #ff9f2a, rgba(255,159,42,0.08)); }

.app-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  grid-template-areas:
    "prev viewport next"
    "dots dots dots";
  align-items: center;
  gap: 12px;
}

.app-carousel__viewport {
  grid-area: viewport;
  overflow: hidden;
  border-radius: 22px;
}

.app-carousel__track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.app-carousel__nav {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(116, 167, 255, 0.16);
  background: linear-gradient(180deg, rgba(24, 43, 86, 0.82), rgba(8, 18, 40, 0.92));
  color: #dff4ff;
  font-size: 2rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 20px rgba(47, 183, 255, 0.08);
}

.app-carousel__nav:hover {
  border-color: rgba(93, 181, 255, 0.44);
  box-shadow: 0 0 24px rgba(47, 183, 255, 0.18);
}

.app-carousel__nav.prev {
  grid-area: prev;
}

.app-carousel__nav.next {
  grid-area: next;
}

.app-carousel__dots {
  grid-area: dots;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.app-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(135, 171, 236, 0.28);
  transition: 180ms ease;
}

.app-carousel__dot.active {
  width: 24px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(47, 183, 255, 0.65);
}

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  flex: 0 0 100%;
  width: 100%;
  min-height: 214px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 24%, color-mix(in srgb, var(--card-accent) 22%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(18, 31, 62, 0.94), rgba(8, 18, 39, 0.98));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
  transform-style: preserve-3d;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 34%, transparent);
  filter: blur(30px);
}

.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,0.14), transparent 20%, transparent 65%, rgba(255,255,255,0.05));
  pointer-events: none;
}

.app-card:hover,
.app-card.selected {
  transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px);
  border-color: color-mix(in srgb, var(--card-accent) 55%, white 6%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34), 0 0 24px color-mix(in srgb, var(--card-accent) 22%, transparent);
}

.app-card.cyan { --card-accent: #2fb7ff; }
.app-card.green { --card-accent: #37ff6f; }
.app-card.magenta { --card-accent: #d050ff; }
.app-card.purple { --card-accent: #9d54ff; }
.app-card.amber { --card-accent: #ff9f2a; }
.app-card.blue { --card-accent: #3e7dff; }
.app-card.teal { --card-accent: #2af2cf; }
.app-card.slate { --card-accent: #7ba9ff; }
.app-card.indigo { --card-accent: #5868ff; }
.app-card.orange { --card-accent: #ff6a3d; }
.app-card.pink { --card-accent: #c445ff; }

.app-card--halo-chat {
  --card-accent: #2fe8ff;
  isolation: isolate;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 246px;
  border-color: rgba(89, 218, 255, 0.3);
  background:
    radial-gradient(circle at 20% 50%, rgba(47, 232, 255, 0.26), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(52, 255, 178, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(6, 24, 55, 0.98), rgba(2, 9, 25, 0.98) 54%, rgba(3, 22, 42, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(138, 231, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(47, 232, 255, 0.16);
}

.app-card--halo-chat::before {
  inset: -38% auto auto -18%;
  width: 68%;
  background:
    conic-gradient(from 120deg, transparent, rgba(47, 232, 255, 0.42), transparent 42%, rgba(52, 255, 178, 0.22), transparent 72%);
  filter: blur(18px);
  animation: halo-card-aurora 9s linear infinite;
}

.app-card--halo-chat::after {
  background:
    linear-gradient(90deg, transparent, rgba(117, 235, 255, 0.12), transparent),
    repeating-linear-gradient(0deg, rgba(125, 224, 255, 0.09) 0 1px, transparent 1px 14px),
    linear-gradient(130deg, rgba(255,255,255,0.18), transparent 18%, transparent 68%, rgba(47, 232, 255, 0.08));
  opacity: 0.76;
}

.halo-card-grid {
  position: absolute;
  inset: 10px;
  z-index: -1;
  border-radius: 18px;
  background:
    linear-gradient(rgba(94, 211, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 211, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 30% 50%, black 0 28%, transparent 68%);
  opacity: 0.58;
}

.halo-card__orb {
  width: 132px;
  height: 132px;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.98), transparent 9%),
    radial-gradient(circle at 48% 46%, rgba(127, 246, 255, 0.95), rgba(28, 137, 255, 0.36) 38%, rgba(2, 10, 28, 0.95) 68%),
    conic-gradient(from 180deg, rgba(47, 232, 255, 0.22), rgba(61, 255, 176, 0.28), rgba(95, 90, 255, 0.18), rgba(47, 232, 255, 0.22));
  box-shadow:
    0 0 44px rgba(47, 232, 255, 0.42),
    0 0 82px rgba(47, 232, 255, 0.18),
    inset 0 0 26px rgba(255, 255, 255, 0.18),
    inset 0 -24px 34px rgba(0, 0, 0, 0.38);
}

.halo-card__orb span {
  font-size: 1.75rem;
}

.halo-card__ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(128, 233, 255, 0.34);
  border-left-color: transparent;
  border-bottom-color: transparent;
  animation: orb-spin 5.8s linear infinite;
}

.halo-card__ring.ring-two {
  inset: -30px;
  border-color: rgba(69, 255, 186, 0.2);
  border-top-color: transparent;
  animation-duration: 9s;
  animation-direction: reverse;
}

.halo-card__body strong {
  display: block;
  margin-top: 10px;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(47, 232, 255, 0.38);
}

.halo-card__status,
.halo-card__chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.halo-card__status {
  color: #bcf7ff;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.halo-card__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #30ffb7;
  box-shadow: 0 0 16px rgba(48, 255, 183, 0.8);
  animation: pulse-dot 1.45s ease-in-out infinite;
}

.halo-card__latency {
  padding: 3px 8px;
  border-radius: 999px;
  color: #79ffe0;
  background: rgba(37, 255, 183, 0.09);
  border: 1px solid rgba(72, 255, 205, 0.14);
  letter-spacing: 0.08em;
}

.halo-card__chips {
  margin-top: 14px;
}

.halo-card__chips span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #d8fbff;
  font-size: 0.76rem;
  background: rgba(47, 232, 255, 0.08);
  border: 1px solid rgba(93, 220, 255, 0.16);
}

.halo-card__launch {
  min-height: 40px;
  padding: 0 22px;
  background:
    linear-gradient(180deg, rgba(57, 230, 255, 0.32), rgba(13, 67, 144, 0.86)),
    linear-gradient(90deg, rgba(47, 232, 255, 0.1), rgba(52, 255, 178, 0.14));
  border-color: rgba(126, 235, 255, 0.42);
  box-shadow:
    0 0 22px rgba(47, 232, 255, 0.28),
    inset 0 0 18px rgba(255, 255, 255, 0.06);
}

.app-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.95), transparent 10%),
    radial-gradient(circle at 42% 38%, color-mix(in srgb, var(--card-accent) 92%, white 8%), color-mix(in srgb, var(--card-accent) 25%, transparent) 46%, rgba(3, 8, 22, 0.94) 68%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  box-shadow:
    0 0 34px color-mix(in srgb, var(--card-accent) 42%, transparent),
    inset 0 0 24px rgba(255, 255, 255, 0.1),
    inset 0 -18px 28px rgba(0, 0, 0, 0.34);
}

.app-orb::before,
.app-orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.app-orb::before {
  inset: -10px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 52%, transparent);
  border-left-color: transparent;
  border-bottom-color: transparent;
  animation: orb-spin 7s linear infinite;
}

.app-orb::after {
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.16) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.12) 49% 51%, transparent 52%);
  mix-blend-mode: screen;
}

.app-orb span {
  position: relative;
  z-index: 1;
  font-family: "Orbitron", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: #f2fbff;
  text-shadow: 0 0 14px color-mix(in srgb, var(--card-accent) 74%, transparent);
}

.app-card--halo-chat .halo-card__orb {
  width: 132px;
  height: 132px;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.98), transparent 9%),
    radial-gradient(circle at 48% 46%, rgba(127, 246, 255, 0.95), rgba(28, 137, 255, 0.36) 38%, rgba(2, 10, 28, 0.95) 68%),
    conic-gradient(from 180deg, rgba(47, 232, 255, 0.22), rgba(61, 255, 176, 0.28), rgba(95, 90, 255, 0.18), rgba(47, 232, 255, 0.22));
  box-shadow:
    0 0 44px rgba(47, 232, 255, 0.42),
    0 0 82px rgba(47, 232, 255, 0.18),
    inset 0 0 26px rgba(255, 255, 255, 0.18),
    inset 0 -24px 34px rgba(0, 0, 0, 0.38);
}

.app-card--halo-chat .halo-card__orb span {
  font-size: 1.75rem;
}

.app-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.app-card strong {
  margin-top: 12px;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
}

.app-card__description {
  max-width: 54ch;
  line-height: 1.55;
}

.app-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.app-launch-btn {
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 42%, rgba(255, 255, 255, 0.12));
  background: linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 23%, rgba(17, 29, 58, 0.9)), rgba(8, 18, 38, 0.96));
  color: #eff9ff;
  box-shadow: 0 0 18px color-mix(in srgb, var(--card-accent) 16%, transparent);
  transition: 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.app-launch-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--card-accent) 68%, white 6%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--card-accent) 26%, transparent);
}

.app-launch-btn--secondary {
  border-color: rgba(116, 167, 255, 0.18);
  background: rgba(7, 16, 34, 0.76);
  color: #cfe5ff;
  box-shadow: none;
}

.app-launch-btn--secondary:hover {
  border-color: rgba(116, 167, 255, 0.34);
  box-shadow: 0 0 20px rgba(47, 183, 255, 0.12);
}

.app-card--voice-template {
  background:
    radial-gradient(circle at 18% 16%, rgba(95, 214, 255, 0.18), transparent 22%),
    radial-gradient(circle at 84% 20%, rgba(46, 242, 163, 0.16), transparent 20%),
    linear-gradient(160deg, rgba(8, 18, 38, 0.96), rgba(6, 14, 30, 0.92));
  grid-template-columns: 132px minmax(0, 1fr);
  position: relative;
  overflow: hidden;
}

.voice-template-card__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(120, 196, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 196, 255, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.75), transparent 78%);
  pointer-events: none;
}

.voice-template-card__orb {
  width: 132px;
  height: 132px;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.98), transparent 9%),
    radial-gradient(circle at 48% 46%, rgba(102, 248, 255, 0.95), rgba(16, 155, 214, 0.35) 38%, rgba(2, 10, 28, 0.95) 68%),
    conic-gradient(from 180deg, rgba(47, 232, 255, 0.22), rgba(61, 255, 176, 0.28), rgba(80, 129, 255, 0.2), rgba(47, 232, 255, 0.22));
  box-shadow:
    0 0 0 1px rgba(95, 214, 255, 0.18),
    0 0 42px rgba(46, 242, 163, 0.22),
    0 0 82px rgba(47, 232, 255, 0.14),
    inset 0 0 30px rgba(95, 214, 255, 0.14);
}

.voice-template-card__ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(111, 227, 255, 0.2);
  pointer-events: none;
}

.voice-template-card__ring.ring-one {
  inset: -10px;
  border-left-color: transparent;
  border-bottom-color: transparent;
  animation: orb-spin 8s linear infinite;
}

.voice-template-card__ring.ring-two {
  inset: 12px;
  border-color: rgba(84, 255, 195, 0.16);
  border-right-color: transparent;
  border-top-color: transparent;
  animation: orb-spin 10s linear infinite reverse;
}

.voice-template-card__body {
  position: relative;
  z-index: 1;
}

.voice-template-card__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #c7f8ff;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-template-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.voice-template-card__badge,
.voice-template-card__size {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.voice-template-card__badge {
  color: #ecfbff;
  background: rgba(95, 214, 255, 0.14);
  border: 1px solid rgba(95, 214, 255, 0.22);
}

.voice-template-card__size {
  color: #c9f7e8;
  background: rgba(46, 242, 163, 0.1);
  border: 1px solid rgba(46, 242, 163, 0.18);
}

.voice-template-card__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #63e8ff;
  box-shadow: 0 0 16px rgba(99, 232, 255, 0.72);
  animation: pulse-dot 1.45s ease-in-out infinite;
}

.voice-template-card__latency {
  padding: 3px 8px;
  border-radius: 999px;
  color: #79ffe0;
  background: rgba(37, 255, 183, 0.09);
  border: 1px solid rgba(72, 255, 205, 0.14);
}

.voice-template-card__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.voice-template-card__chips span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #d8fbff;
  font-size: 0.76rem;
  background: rgba(47, 232, 255, 0.08);
  border: 1px solid rgba(93, 220, 255, 0.16);
}

.app-card--voice-template .app-orb {
  box-shadow:
    0 0 0 1px rgba(95, 214, 255, 0.18),
    0 0 34px rgba(46, 242, 163, 0.22),
    inset 0 0 30px rgba(95, 214, 255, 0.14);
}

.app-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(122, 168, 255, 0.14);
  background: color-mix(in srgb, var(--card-accent) 12%, rgba(8, 18, 34, 0.82));
  color: #d4e7ff;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

@keyframes halo-card-aurora {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-dot {
  50% {
    transform: scale(1.4);
    opacity: 0.62;
  }
}

@keyframes assistant-grid-flow {
  from { background-position: 0 0, 0 0; }
  to { background-position: 52px 52px, 52px 0; }
}

@keyframes assistant-scan {
  0%, 50% { transform: translateX(-120%); opacity: 0; }
  62% { opacity: 0.78; }
  86%, 100% { transform: translateX(120%); opacity: 0; }
}

@keyframes assistant-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.035); }
}

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

@keyframes assistant-spin-reverse {
  to { transform: rotateX(64deg) rotate(-360deg); }
}

@keyframes assistant-beam-pulse {
  0%, 100% { opacity: 0.24; width: 92px; }
  50% { opacity: 0.9; width: 138px; }
}

.app-art::before,
.app-art::after {
  content: "";
  position: absolute;
}

.orb::before {
  inset: 7px auto auto 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(174, 248, 255, 0.9), rgba(35, 112, 255, 0.12) 58%, transparent 62%);
}

.cube::before {
  inset: 10px auto auto 50%;
  width: 40px;
  height: 40px;
  transform: translateX(-50%) rotate(45deg);
  border: 2px solid #51ff8b;
}

.wave::before {
  inset: 20px 10px auto;
  height: 14px;
  background: linear-gradient(90deg, transparent, #e255ff 15%, #2fb7ff 50%, #ff6fd0 85%, transparent);
  clip-path: polygon(0 56%, 8% 44%, 16% 74%, 24% 26%, 32% 64%, 40% 46%, 48% 72%, 56% 36%, 64% 64%, 72% 30%, 80% 70%, 88% 44%, 100% 58%, 100% 100%, 0 100%);
}

.clap::before {
  inset: 10px auto auto 50%;
  width: 48px;
  height: 30px;
  transform: translateX(-50%);
  border: 2px solid #d663ff;
  border-top-width: 8px;
}

.scene::before {
  inset: 12px 14px;
  background:
    radial-gradient(circle at 22% 22%, #fff5b1, transparent 10%),
    linear-gradient(180deg, #58bfff, #605aff 52%, #f16b3d),
    linear-gradient(135deg, transparent 40%, #1c2450 40% 55%, transparent 55%),
    linear-gradient(35deg, transparent 42%, #2d5c2f 42% 62%, transparent 62%);
}

.agent::before {
  inset: 8px auto auto 50%;
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 40% 40%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #d7e9ff, #7caef2);
}

.drone::before {
  inset: 21px auto auto 50%;
  width: 72px;
  height: 2px;
  transform: translateX(-50%);
  background: #70efff;
  box-shadow: 0 0 0 10px transparent;
}

.drone::after {
  inset: 12px auto auto calc(50% - 36px);
  width: 72px;
  height: 20px;
  border-top: 2px solid #70efff;
  border-bottom: 2px solid #70efff;
}

.code::before {
  inset: 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(180deg, transparent, transparent 7px, rgba(95, 197, 255, 0.35) 7px, rgba(95, 197, 255, 0.35) 8px);
}

.brain::before {
  inset: 8px auto auto 50%;
  width: 62px;
  height: 40px;
  transform: translateX(-50%);
  border-radius: 60% 60% 52% 52%;
  background: radial-gradient(circle at 40% 40%, #ff9cff, #5e1eff 70%);
}

.voice::before {
  inset: 14px 10px auto;
  height: 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 12px 50%, #c250ff 0 4px, transparent 4px),
    radial-gradient(circle at 36px 50%, #c250ff 0 7px, transparent 7px),
    radial-gradient(circle at 64px 50%, #72a7ff 0 10px, transparent 10px),
    radial-gradient(circle at 92px 50%, #c250ff 0 7px, transparent 7px);
}

.resources canvas {
  width: 100%;
  height: 150px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(9, 17, 34, 0.9), rgba(6, 13, 26, 0.9));
}

.resource-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
}

.resource-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.resource-legend .cpu::before { background: #49e96e; }
.resource-legend .gpu::before { background: #35b8ff; }
.resource-legend .ram::before { background: #d050ff; }
.resource-legend .vram::before { background: #ff496d; }

.weather-card {
  display: grid;
  gap: 10px;
}

.weather-scene {
  min-height: 74px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 216, 124, 0.8), transparent 12%),
    linear-gradient(180deg, rgba(255, 153, 110, 0.65), rgba(81, 121, 255, 0.35) 46%, rgba(9, 20, 46, 0.95)),
    linear-gradient(160deg, transparent 42%, rgba(11, 23, 58, 0.92) 42% 60%, transparent 60%),
    linear-gradient(20deg, transparent 40%, rgba(38, 82, 51, 0.94) 40% 56%, transparent 56%);
}

.weather-info strong {
  font-size: 1.18rem;
}

.weather-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.weather-location-row small {
  margin-top: 0;
  text-align: right;
}

.weather-location-btn {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(122, 168, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #d7e7ff;
  transition: 180ms ease;
}

.weather-location-btn:hover {
  border-color: rgba(122, 168, 255, 0.32);
  background: rgba(53, 101, 198, 0.22);
}

.weather-info span,
.weather-info p,
.weather-info small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.weather-info h3 {
  margin: 6px 0 0;
  font-size: 1.35rem;
}

.activity-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(117, 156, 255, 0.1);
  transition: transform 180ms ease, color 180ms ease;
}

.activity-list article:last-child {
  border-bottom: 0;
}

.activity-list article:hover {
  transform: translateX(4px);
}

.activity-list time {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 0.8rem;
}

.media-scene {
  position: relative;
  min-height: 118px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 65% 30%, rgba(255, 207, 105, 0.45), transparent 10%),
    linear-gradient(180deg, rgba(104, 183, 255, 0.42), rgba(16, 34, 71, 0.14) 45%, rgba(7, 16, 34, 0.94)),
    linear-gradient(150deg, transparent 38%, rgba(22, 39, 69, 0.92) 38% 58%, transparent 58%),
    linear-gradient(24deg, transparent 45%, rgba(48, 90, 54, 0.94) 45% 64%, transparent 64%);
}

.media-scene--camera {
  min-height: 220px;
  overflow: hidden;
  background:
    radial-gradient(circle at 65% 30%, rgba(255, 207, 105, 0.2), transparent 10%),
    linear-gradient(180deg, rgba(17, 29, 56, 0.96), rgba(6, 13, 27, 0.98));
  border: 1px solid rgba(130, 162, 255, 0.12);
}

.media-camera-frame {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  background: #09111f;
}

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 18, 38, 0.82);
  border: 1px solid rgba(130, 162, 255, 0.24);
  box-shadow: 0 0 20px rgba(47, 183, 255, 0.18);
}

.media-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}

.media-controls--camera {
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.media-controls--camera strong {
  font-size: 0.95rem;
}

.music-player {
  display: grid;
  gap: 14px;
}

.music-player.is-playing {
  border-color: rgba(46, 242, 163, 0.26);
  box-shadow: var(--shadow), 0 0 34px rgba(46, 242, 163, 0.12);
}

.music-player.is-playing .music-cover {
  animation: player-float 2.4s ease-in-out infinite;
}

.music-player.is-playing .vinyl-disc {
  animation-duration: 1.8s;
}

.music-player.is-playing .music-deck::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: conic-gradient(from 180deg, transparent, rgba(47, 183, 255, 0.16), rgba(208, 80, 255, 0.14), transparent 42%);
  animation: orb-spin 5s linear infinite;
  opacity: 0.8;
}

.music-player.is-playing .music-eq span {
  animation-duration: 0.72s;
}

.music-deck {
  position: relative;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) 70px;
  gap: 18px;
  align-items: center;
  min-height: 178px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(104, 178, 255, 0.14);
  background:
    radial-gradient(circle at 18% 22%, rgba(47, 183, 255, 0.22), transparent 28%),
    radial-gradient(circle at 76% 16%, rgba(208, 80, 255, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(10, 25, 55, 0.92), rgba(4, 11, 28, 0.96));
  overflow: hidden;
}

.music-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 28%),
    radial-gradient(circle at 26% 24%, rgba(255, 190, 90, 0.88), transparent 13%),
    linear-gradient(145deg, rgba(37, 184, 255, 0.82), rgba(196, 69, 255, 0.55) 54%, rgba(5, 12, 32, 0.98));
  box-shadow: 0 0 34px rgba(47, 183, 255, 0.22);
}

.vinyl-disc {
  position: absolute;
  right: -18px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #aeefff 0 7px, #071226 8px 16px, transparent 17px),
    repeating-radial-gradient(circle, rgba(255,255,255,0.12) 0 2px, transparent 2px 7px),
    radial-gradient(circle at 35% 30%, rgba(47, 183, 255, 0.62), #050914 70%);
  animation: orb-spin 8s linear infinite;
  box-shadow: 0 0 20px rgba(47, 183, 255, 0.22);
}

.vinyl-disc span {
  position: absolute;
  inset: 35px;
  border-radius: 50%;
  background: #dff8ff;
}

.music-now {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.music-now strong {
  display: block;
  margin-top: 10px;
  font-size: 1.24rem;
}

.music-now p {
  margin: 8px 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

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

.music-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2fb7ff, #d050ff, #2ef2a3);
  box-shadow: 0 0 16px rgba(47, 183, 255, 0.42);
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.music-controls button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(116, 167, 255, 0.18);
  background: rgba(7, 16, 36, 0.76);
  color: #eaf7ff;
}

.music-controls .music-play {
  width: 48px;
  height: 48px;
  background: linear-gradient(180deg, rgba(47, 183, 255, 0.55), rgba(49, 77, 255, 0.46));
  box-shadow: 0 0 24px rgba(47, 183, 255, 0.3);
}

.media-select {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: #c6d9ff;
  font-size: 0.78rem;
}

.media-select select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(116, 167, 255, 0.16);
  border-radius: 12px;
  background: rgba(3, 9, 24, 0.82);
  color: var(--text);
  padding: 0 10px;
}

#media-play-all {
  width: auto;
  padding: 0 14px;
  border-radius: 999px;
}

#media-play-all.active {
  border-color: rgba(46, 242, 163, 0.5);
  color: #a8ffd5;
  box-shadow: 0 0 20px rgba(46, 242, 163, 0.2);
}

.music-eq {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  height: 112px;
}

.music-eq span {
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2ef2a3, #2fb7ff 50%, #d050ff);
  box-shadow: 0 0 14px rgba(47, 183, 255, 0.22);
  animation: wave 1.1s ease-in-out infinite;
}

.music-eq span:nth-child(1) { height: 34px; animation-delay: -0.2s; }
.music-eq span:nth-child(2) { height: 68px; animation-delay: -0.5s; }
.music-eq span:nth-child(3) { height: 48px; animation-delay: -0.1s; }
.music-eq span:nth-child(4) { height: 92px; animation-delay: -0.4s; }
.music-eq span:nth-child(5) { height: 58px; animation-delay: -0.7s; }
.music-eq span:nth-child(6) { height: 76px; animation-delay: -0.25s; }

.video-artifact {
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: 22px;
  pointer-events: none;
}

.video-artifact.hidden {
  display: none;
}

.video-artifact__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.24);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.video-artifact__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(980px, 100%);
  min-width: 320px;
  min-height: 240px;
  padding: 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  background: linear-gradient(180deg, rgba(12, 22, 44, 0.68), rgba(7, 15, 32, 0.54));
  border-color: rgba(160, 210, 255, 0.24);
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48), 0 0 38px rgba(47, 183, 255, 0.18);
  pointer-events: auto;
  resize: both;
}

.video-artifact video {
  width: 100%;
  height: 100%;
  max-height: min(68vh, 680px);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(116, 167, 255, 0.16);
}

.video-artifact__handle {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.video-artifact__handle:active {
  cursor: grabbing;
}

.video-artifact__resize {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 26px;
  height: 26px;
  cursor: nwse-resize;
  touch-action: none;
}

.video-artifact__resize::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-right: 2px solid rgba(194, 234, 255, 0.78);
  border-bottom: 2px solid rgba(194, 234, 255, 0.78);
  border-radius: 0 0 5px 0;
}

@keyframes player-float {
  50% {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 0 46px rgba(47, 183, 255, 0.34);
  }
}

.timeline {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.timeline span {
  display: block;
  width: 26%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2fb7ff, #5d76ff);
}

.job-list article {
  padding: 3px 0;
}

.job-list article > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2fb7ff, #2ef2a3);
}

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

.action-grid button {
  min-height: 54px;
  padding: 10px;
  text-align: left;
}

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

.admin-form,
.admin-lists section {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(116, 167, 255, 0.12);
  background: rgba(7, 15, 32, 0.72);
}

.admin-form h3,
.admin-lists h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.admin-form label,
.auth-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: #c7d8ff;
  font-size: 0.82rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.auth-card input {
  width: 100%;
  border: 1px solid rgba(116, 167, 255, 0.16);
  border-radius: 12px;
  outline: 0;
  padding: 10px 12px;
  background: rgba(2, 8, 20, 0.78);
  color: var(--text);
}

.admin-form textarea {
  min-height: 88px;
  resize: vertical;
}

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

.privilege-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.privilege-grid input {
  width: auto;
}

.admin-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: none;
}

.admin-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.admin-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(116, 167, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.admin-list__row strong,
.admin-list__row span {
  display: block;
}

.admin-list__row span,
.admin-error {
  color: var(--muted);
  font-size: 0.78rem;
  word-break: break-word;
}

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}

.admin-drawer[hidden] {
  display: none;
}

.admin-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0);
  backdrop-filter: blur(0);
  transition: 240ms ease;
}

.admin-drawer__panel {
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: min(760px, calc(100vw - 16px));
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, auto) minmax(0, 1fr);
  gap: 18px;
  overflow-y: auto;
  scrollbar-width: none;
  transform: translateX(calc(100% + 20px));
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.admin-drawer__panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.admin-drawer.open {
  pointer-events: auto;
}

.admin-drawer.open .admin-drawer__backdrop {
  background: rgba(2, 6, 18, 0.56);
  backdrop-filter: blur(8px);
}

.admin-drawer.open .admin-drawer__panel {
  transform: translateX(0);
}

.admin-drawer__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.admin-open {
  overflow: hidden;
}

.bottom-dock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px));
  position: fixed;
  left: 238px;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  z-index: 12;
}

.app-launcher {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.app-launcher.hidden {
  display: none;
}

.app-launcher__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.78);
  backdrop-filter: blur(10px);
}

.app-launcher__panel {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  height: min(88vh, 920px);
  padding: 14px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.app-launcher__head,
.app-launcher__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-launcher__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.app-launcher iframe {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(116, 167, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(9, 17, 34, 0.9), rgba(6, 13, 26, 0.9));
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(47, 183, 255, 0.2), transparent 26%),
    radial-gradient(circle at 20% 80%, rgba(46, 242, 163, 0.14), transparent 24%),
    rgba(1, 5, 14, 0.92);
  backdrop-filter: blur(18px);
}

.auth-screen.hidden {
  display: none;
}

.auth-card {
  width: min(480px, 100%);
  padding: 26px;
}

.auth-brand {
  padding: 0;
}

.auth-card h1 {
  margin: 22px 0 8px;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
}

.auth-card p,
.auth-card small {
  color: var(--muted);
}

.auth-card form {
  margin-top: 20px;
}

body.auth-locked .app-shell {
  filter: blur(3px);
  pointer-events: none;
}

@keyframes pulse-core {
  50% {
    transform: scale(1.035);
    box-shadow:
      0 0 56px rgba(47, 183, 255, 0.5),
      inset 0 0 44px rgba(47, 183, 255, 0.24);
  }
}

.dock-status,
.dock-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.dock-links {
  justify-content: flex-end;
}

.dock-voice {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(33, 132, 255, 0.45), rgba(15, 54, 146, 0.55));
  box-shadow: 0 0 24px rgba(47, 183, 255, 0.28);
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 34px;
}

.voice-wave span {
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #63e8ff, #2b56ff);
  animation: wave 1.2s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { height: 12px; animation-delay: -0.2s; }
.voice-wave span:nth-child(2) { height: 24px; animation-delay: -0.45s; }
.voice-wave span:nth-child(3) { height: 18px; animation-delay: -0.3s; }
.voice-wave span:nth-child(4) { height: 28px; animation-delay: -0.6s; }
.voice-wave span:nth-child(5) { height: 14px; animation-delay: -0.15s; }
.voice-wave span:nth-child(6) { height: 30px; animation-delay: -0.4s; }
.voice-wave span:nth-child(7) { height: 18px; animation-delay: -0.1s; }
.voice-wave span:nth-child(8) { height: 22px; animation-delay: -0.5s; }

@keyframes wave {
  50% { transform: scaleY(0.45); opacity: 0.65; }
}

@media (max-width: 1440px) {
  .dashboard-grid {
    grid-template-columns: 240px minmax(360px, 1fr) 300px;
  }

  .assistant {
    min-height: 100%;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .sidebar {
    display: none;
  }

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

  .topbar-right,
  .status-strip {
    flex-wrap: wrap;
  }

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

  .dashboard-column {
    width: 100%;
  }

  .music-deck {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .music-eq {
    display: none;
  }

  .app-card {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 200px;
    padding: 18px;
  }

  .app-card--halo-chat {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 230px;
  }

  .app-card--halo-chat .halo-card__orb {
    width: 108px;
    height: 108px;
  }

  .admin-grid,
  .admin-lists {
    grid-template-columns: 1fr;
  }

  .app-orb {
    width: 96px;
    height: 96px;
  }

  .assistant-portrait {
    min-height: 210px;
  }

  .bottom-dock {
    left: 8px;
    right: 8px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 10px;
  }

  .app-launcher__panel {
    width: 100%;
    height: min(92vh, 100%);
  }

  .app-launcher__head,
  .app-launcher__actions {
    flex-wrap: wrap;
  }

  .dock-status,
  .dock-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .main-content {
    --dock-clearance: 148px;
    padding-bottom: calc(var(--dock-clearance) + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar-right {
    justify-content: flex-end;
  }

  .status-strip {
    grid-column: 1 / -1;
  }

  .dashboard-grid {
    gap: 14px;
  }

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

  .hero-stage {
    min-height: 340px;
  }

  .bottom-dock {
    min-height: 64px;
  }
}

@media (max-width: 720px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell {
    padding: 6px;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .main-content {
    --dock-clearance: 0px;
    height: auto;
    min-height: 100dvh;
    gap: 8px;
    padding-bottom: 0;
    overflow: visible;
  }

  .main-content::after,
  .dashboard-grid::after,
  .dashboard-column::after {
    display: none;
    content: none;
  }

  .dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 0;
  }

  .dashboard-column {
    display: contents;
  }

  .dashboard-card {
    width: 100%;
    max-width: none;
    align-self: stretch;
    height: auto !important;
    min-height: auto;
    overflow: hidden;
  }

  .dashboard-grid > section,
  .dashboard-column > section {
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .hero { order: 1; }
  .apps { order: 2; }
  .overview { order: 3; }
  .assistant { order: 4; }
  .music-player { order: 5; }
  .projects { order: 6; }
  .resources { order: 7; }
  .weather-card { order: 8; }
  .activity { order: 9; }
  .media { order: 10; }
  .jobs { order: 11; }
  .quick-actions { order: 12; }

  .assistant-portrait {
    min-height: 220px;
  }

  .assistant-core {
    width: 132px;
    height: 132px;
  }

  .assistant-portrait__hud {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .topbar {
    gap: 8px;
  }

  .search {
    min-height: 46px;
  }

  .status-card,
  .weather,
  .clock,
  .profile,
  .icon-btn {
    min-height: 42px;
    padding: 0 10px;
  }

  .dashboard-card,
  .search,
  .status-card,
  .weather,
  .clock,
  .profile {
    border-radius: 18px;
  }

  .eyebrow,
  .hero h1 {
    font-size: 1.6rem;
  }

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

  .hero-stage {
    min-height: 260px;
  }

  .overview-meters,
  .overview-stats,
  .action-grid,
  .resource-legend {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .section-head > div {
    min-width: 0;
    flex: 1 1 180px;
  }

  .overview-meters,
  .overview-stats {
    gap: 10px;
  }

  .meter {
    width: 100%;
    min-height: 108px;
    padding: 10px 6px;
    border-radius: 16px;
    background: rgba(8, 18, 38, 0.42);
  }

  .overview-stats > div {
    min-width: 0;
    padding: 10px;
    border-radius: 16px;
    background: rgba(8, 18, 38, 0.42);
  }

  .app-carousel {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "viewport viewport"
      "prev next"
      "dots dots";
  }

  .app-carousel__nav {
    width: 100%;
    height: 44px;
  }

  .app-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-items: stretch;
    text-align: center;
    min-height: 320px;
  }

  .app-card--halo-chat {
    justify-items: center;
    min-height: 360px;
  }

  .app-card__body {
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
  }

  .halo-card__status,
  .halo-card__chips {
    justify-content: center;
  }

  .app-orb {
    justify-self: center;
  }

  .app-card--halo-chat .halo-card__orb {
    width: 126px;
    height: 126px;
  }

  .app-card__description {
    max-width: none;
  }

  .app-launch-btn {
    width: 100%;
    margin-top: auto;
  }

  .music-deck {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 0;
    padding: 14px;
  }

  .music-cover {
    width: 118px;
    height: 118px;
  }

  .music-controls {
    justify-content: center;
    flex-wrap: wrap;
  }

  .project-row,
  .activity-list article {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .video-artifact {
    padding: 8px;
  }

  .video-artifact__panel {
    width: calc(100vw - 16px);
    min-width: 0;
    left: 8px !important;
    top: 8px !important;
    transform: none !important;
    padding: 10px;
    border-radius: 18px;
  }

  .video-artifact video {
    max-height: 68vh;
    min-height: 220px;
  }

  .admin-form__row,
  .privilege-grid {
    grid-template-columns: 1fr;
  }

  .admin-drawer__panel {
    inset: 6px;
    width: auto;
    padding: 14px;
    border-radius: 20px;
  }

  .bottom-dock {
    position: static;
    order: 3;
    margin-top: 0;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "voice voice"
      "status links";
    align-items: center;
    min-height: 108px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .dock-status {
    grid-area: status;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.72rem;
    gap: 6px;
  }

  .dock-status span:not(:first-child) {
    display: none;
  }

  .dock-voice {
    grid-area: voice;
    justify-content: center;
  }

  .dock-voice p {
    margin: 0;
    font-size: 0.86rem;
  }

  .dock-links {
    grid-area: links;
    justify-content: flex-end;
    font-size: 0.72rem;
    gap: 8px;
  }

  .dock-links span:nth-child(2),
  .dock-links span:nth-child(3),
  .dock-links span:nth-child(4) {
    display: none;
  }
}
