:root {
  --bg: #05070d;
  --panel: #0b1220;
  --panel-2: #111827;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fbff;
  --muted: #aab7ca;
  --cyan: #24d4ff;
  --cyan-2: #47f0ff;
  --blue: #2563eb;
  --white: #ffffff;
  --good: #22c55e;
  --warn: #f8c14a;
  --bad: #ef4444;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(36, 212, 255, 0.22), transparent 36rem),
    linear-gradient(180deg, #05070d 0%, #060913 45%, #090d14 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

.app-shell {
  min-height: 100svh;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.screen {
  min-height: 100svh;
  width: 100%;
  display: none;
  padding: calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 22px);
}

.screen-active {
  display: flex;
  flex-direction: column;
}

.brand-logo {
  width: min(86vw, 390px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(36, 212, 255, 0.18));
}

.cover-hero {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6px 0 12px;
}

.cover-hero h1 {
  max-width: 10ch;
  margin: 2px auto 12px;
}

.cover-hero p:last-child {
  max-width: 31ch;
  margin: 0 auto;
}

.cover-actions {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
}

.cover-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.cover-section + .cover-section {
  margin-top: 12px;
}

.cover-section.compact {
  padding: 12px;
  gap: 8px;
}

.cover-section-head h2 {
  margin-bottom: 0;
  font-size: 1.22rem;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--cyan-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.4rem, 11vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.45;
}

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

.primary-btn,
.ghost-btn,
.soft-btn,
.send-btn,
.icon-btn,
.talk-btn,
.module-tile,
.avatar-btn,
.route-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border-radius: 18px;
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.primary-btn {
  width: 100%;
  min-height: 58px;
  background: linear-gradient(135deg, #1ebcf6, #2657ff);
  box-shadow: 0 18px 40px rgba(36, 212, 255, 0.22);
  font-weight: 850;
}

.ghost-btn {
  width: 100%;
  min-height: 54px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-weight: 760;
}

.feature-list {
  display: grid;
  gap: 9px;
}

.feature-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(5, 7, 13, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-row > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--cyan-2);
  background: rgba(36, 212, 255, 0.12);
}

.feature-row strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 0.92rem;
}

.feature-row p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.32;
}

.step-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.step-row span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(36, 212, 255, 0.14);
  color: var(--cyan-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.step-row p {
  margin: 0;
  font-size: 0.88rem;
}

.topbar,
.home-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar {
  min-height: 44px;
}

.topbar-spacer {
  width: 44px;
}

.icon-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.register-head {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  margin: 28px 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(36, 212, 255, 0.12), rgba(255, 255, 255, 0.05));
}

.register-head img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
  filter: drop-shadow(0 12px 24px rgba(36, 212, 255, 0.22));
}

.register-head h2 {
  margin: 0;
}

.form-stack label {
  display: grid;
  gap: 7px;
  color: #e9f2ff;
  font-size: 0.9rem;
  font-weight: 780;
}

.optional-text {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 52px;
  border-radius: 17px;
  border: 1px solid var(--line);
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0 15px;
}

input::placeholder {
  color: rgba(248, 251, 255, 0.48);
}

input:focus {
  border-color: rgba(36, 212, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(36, 212, 255, 0.12);
}

.split-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
}

.home-header {
  min-height: 58px;
}

.home-header div {
  min-width: 0;
  flex: 1;
  display: grid;
}

.home-header span {
  color: var(--muted);
  font-size: 0.86rem;
}

.home-header strong {
  font-size: 1.02rem;
}

.avatar-btn {
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  background: #07111d;
  border: 1px solid rgba(36, 212, 255, 0.24);
}

.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.assistant-card {
  margin: 18px 0 14px;
  min-height: 170px;
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(36, 212, 255, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(36, 212, 255, 0.13), rgba(37, 99, 235, 0.08)),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.assistant-orb {
  width: 124px;
  height: 138px;
  display: grid;
  place-items: end center;
  border-radius: 26px;
  background: radial-gradient(circle, rgba(36, 212, 255, 0.16), transparent 72%);
  overflow: hidden;
}

.assistant-orb img {
  width: 170px;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 16px 26px rgba(36, 212, 255, 0.2));
}

.assistant-orb.chat-robot img {
  width: 126px;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
}

.assistant-text {
  min-width: 0;
}

.assistant-text p:last-child {
  margin-bottom: 0;
}

.chat-feed {
  display: grid;
  gap: 8px;
  margin: -2px 0 12px;
}

.chat-feed[hidden] {
  display: none !important;
}

.chat-bubble {
  max-width: 92%;
  padding: 11px 13px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.35;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-bubble.user {
  justify-self: end;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.chat-bubble.abi {
  justify-self: start;
  background: rgba(36, 212, 255, 0.14);
  border-color: rgba(36, 212, 255, 0.26);
  color: var(--text);
}

.quick-command {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-bottom: 16px;
}

.talk-btn {
  width: 74px;
  height: 74px;
  min-height: 74px;
  flex-direction: column;
  gap: 2px;
  border-radius: 25px;
  background: linear-gradient(135deg, #10c8ff, #2454ff);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(36, 212, 255, 0.24);
}

.talk-btn svg {
  width: 26px;
  height: 26px;
}

.talk-btn small {
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}

.talk-btn.listening {
  background: linear-gradient(135deg, #24f2ff, #22c55e);
  animation: pulse 900ms ease-in-out infinite alternate;
}

.talk-btn.speech-disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  box-shadow: none;
}

@keyframes pulse {
  from {
    box-shadow: 0 0 0 0 rgba(36, 212, 255, 0.28);
  }
  to {
    box-shadow: 0 0 0 12px rgba(36, 212, 255, 0);
  }
}

.command-box {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
  padding: 7px 7px 7px 12px;
  border-radius: 23px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.command-box input {
  min-height: 48px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.send-btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  border-radius: 18px;
  background: rgba(36, 212, 255, 0.16);
  color: var(--cyan-2);
}

.voice-note {
  margin: -8px 0 14px 86px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hint-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 11px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

.hint-list {
  display: grid;
  gap: 7px;
}

.hint-list button {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 14px;
  color: #eaf8ff;
  background: rgba(36, 212, 255, 0.1);
  border: 1px solid rgba(36, 212, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 760;
  text-align: left;
}

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

.module-tile {
  min-height: 86px;
  flex-direction: column;
  padding: 10px 8px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: #eef7ff;
  font-size: 0.78rem;
  font-weight: 820;
  text-align: center;
}

.module-tile svg {
  width: 23px;
  height: 23px;
}

.module-tile.active {
  border-color: rgba(36, 212, 255, 0.65);
  background: rgba(36, 212, 255, 0.14);
}

.panel {
  margin-top: 16px;
  padding: 15px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
}

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

.soft-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #dceaff;
  font-size: 0.82rem;
  font-weight: 750;
}

.panel-content {
  display: grid;
  gap: 10px;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.list-row,
.summary-row,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(5, 7, 13, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.list-row strong,
.summary-row strong {
  color: var(--text);
}

.list-row span,
.summary-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.action-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.action-main span {
  color: var(--text);
  font-weight: 800;
}

.action-main small {
  color: var(--muted);
  line-height: 1.25;
}

.summary-row.total {
  border-color: rgba(36, 212, 255, 0.35);
  background: rgba(36, 212, 255, 0.12);
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  min-height: 38px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0 13px;
  color: #eaf8ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

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

.service-btn {
  min-height: 44px;
  border-radius: 15px;
  padding: 0 10px;
  color: #eef7ff;
  background: rgba(36, 212, 255, 0.1);
  border: 1px solid rgba(36, 212, 255, 0.2);
  font-weight: 820;
}

.weather-card,
.ordered-card,
.location-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(5, 7, 13, 0.44);
  border: 1px solid rgba(36, 212, 255, 0.18);
}

.weather-card p,
.ordered-card p,
.location-card p {
  margin: 0;
  font-size: 0.9rem;
}

.compact-btn {
  min-height: 46px;
  border-radius: 14px;
}

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

.ordered-list a,
.ordered-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 15px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ordered-list a > span,
.ordered-item > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(36, 212, 255, 0.14);
  color: var(--cyan-2);
  font-weight: 900;
}

.ordered-list small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.25;
}

.route-btn {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
}

.route-btn.waze {
  background: #24d4ff;
  color: #03121b;
}

.route-btn.maps {
  background: #ffffff;
  color: #0d1726;
}

.modal[hidden],
[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
}

.modal-sheet {
  width: min(100%, 560px);
  max-height: 86svh;
  overflow: auto;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #0a0f19;
  box-shadow: var(--shadow);
}

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

.modal-head h2 {
  margin: 0;
}

.report {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text);
}

.report h3 {
  margin: 8px 0 0;
}

.report p {
  margin: 0;
}

.report-cover {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(36, 212, 255, 0.1);
  border: 1px solid rgba(36, 212, 255, 0.2);
}

.report-cover img {
  width: 52px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

.report-cover strong {
  display: block;
  margin-bottom: 3px;
}

.report-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(36, 212, 255, 0.18), rgba(37, 99, 235, 0.12));
  border: 1px solid rgba(36, 212, 255, 0.3);
}

.report-total span,
.report-row span,
.report-empty p {
  color: var(--muted);
}

.report-total strong {
  font-size: 1.25rem;
}

.report-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.report-empty {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.status-good {
  color: var(--good);
}

.status-warn {
  color: var(--warn);
}

.status-bad {
  color: var(--bad);
}

@media (min-width: 760px) {
  body {
    display: grid;
    place-items: center;
    padding: 28px;
  }

  .app-shell {
    width: 430px;
    min-height: 860px;
    max-height: 92svh;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 42px;
    background: rgba(5, 7, 13, 0.86);
    box-shadow: var(--shadow);
  }

  .screen {
    min-height: 860px;
  }
}

@media (max-width: 374px) {
  .assistant-card {
    grid-template-columns: 104px 1fr;
    padding: 14px;
  }

  .assistant-orb {
    width: 104px;
  }

  .assistant-orb img {
    width: 142px;
  }

  .module-grid {
    gap: 8px;
  }

  .module-tile {
    font-size: 0.72rem;
    min-height: 78px;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .screen,
  .modal-head,
  .primary-btn {
    display: none !important;
  }

  .modal,
  .modal-sheet {
    position: static;
    display: block;
    padding: 0;
    background: white;
    color: black;
    box-shadow: none;
    border: 0;
  }

  .report,
  .report p,
  .report strong {
    color: black;
  }
}
