:root {
  --forest-900: #0e2b1f;
  --forest-800: #154331;
  --forest-700: #1a5740;
  --forest-100: #e7f2ec;
  --soil-100: #f8f6f0;
  --text-strong: #0f2018;
  --text-muted: #547166;
  --white: #ffffff;
  --ring: rgba(22, 95, 66, 0.25);
  --shadow: 0 16px 48px rgba(10, 41, 29, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text-strong);
  background: linear-gradient(155deg, #eff8f3 0%, #f4f9f5 45%, #eef5f1 100%);
  min-height: 100vh;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(56, 136, 97, 0.12), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(20, 84, 61, 0.1), transparent 35%);
  z-index: -1;
}

.app-shell {
  width: min(1280px, 96vw);
  margin: 2vh auto;
  min-height: 94vh;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 320px 1fr;
}

.sidebar {
  background: linear-gradient(180deg, var(--forest-900), var(--forest-800));
  color: var(--forest-100);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.brand > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand h1 {
  margin: 0;
  font-size: 1.4rem;
}

.brand p {
  margin: 2px 0 0;
  color: rgba(231, 242, 236, 0.8);
  font-size: 0.92rem;
}

.brand-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 16px;
  object-fit: contain;
  background: #002745;
  border: 1px solid rgba(98, 190, 255, 0.72);
  box-shadow:
    0 0 0 3px rgba(0, 39, 69, 0.48),
    0 0 22px rgba(0, 39, 69, 0.38),
    0 10px 28px rgba(0, 0, 0, 0.24);
}

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

.mode-btn {
  width: 100%;
  border: 1px solid rgba(231, 242, 236, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: var(--forest-100);
  border-radius: 14px;
  padding: 12px 10px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 180ms ease;
  font-weight: 700;
  font-size: 1.04rem;
}

.mode-btn.active,
.mode-btn:hover {
  background: rgba(156, 224, 190, 0.2);
  border-color: rgba(156, 224, 190, 0.6);
}

.sidebar h2 {
  margin: 10px 0 6px;
  font-size: 0.98rem;
}

.menu-list {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.page-header,
.page-main,
.page-footer {
  width: min(1280px, 96vw);
  margin: 0 auto;
}
.page-header {
  padding: 18px 0 8px;
}
.page-header__inner {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(21, 67, 49, 0.12);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 14px 32px rgba(10, 41, 29, 0.08);
}

.page-header .brand {
  width: 100%;
  max-width: 320px;
}

.page-header .brand h1 {
  color: var(--forest-900);
}

.page-header .brand .eyebrow {
  color: #6b867b;
}

.page-header .brand p {
  color: #577467;
}

.page-header #brand-subtitle {
  color: var(--forest-800);
  font-weight: 400;
}
.eyebrow,
.section-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: #577467;
  font-weight: 800;
}
.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.top-nav a,
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 9999;
  background: var(--forest-900);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
}
.page-main {
  display: grid;
  gap: 18px;
  padding-bottom: 16px;
}
.hero-panel,
.content-section,
.page-footer {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(21, 67, 49, 0.12);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(10, 41, 29, 0.08);
}
.hero-panel {
  display: grid;
  grid-template-columns: 1.65fr 0.9fr;
  gap: 16px;
  padding: 18px;
}
.hero-copy h2,
.content-section h2,
.hero-aside h2 {
  margin-top: 0;
  color: var(--forest-900);
}
.hero-lead,
.section-intro,
.hero-note,
.hero-aside p,
.content-section p,
.content-section li,
.page-footer p {
  color: #325446;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.hero-badges span {
  border: 1px solid rgba(21, 67, 49, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  background: #f1f7f3;
  font-size: 0.88rem;
  font-weight: 700;
}
.hero-aside {
  background: linear-gradient(180deg, #f6fbf8, #edf6f1);
  border: 1px solid rgba(21, 67, 49, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
}
.hero-aside ul {
  margin: 0;
  padding-left: 18px;
}
.content-section {
  padding: 18px;
}
.how-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.how-grid article,
.faq-grid article {
  background: #f7fbf8;
  border: 1px solid rgba(21, 67, 49, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(21, 67, 49, 0.12);
  border-radius: 14px;
  background: #fff;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid rgba(21, 67, 49, 0.12);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}
.comparison-table thead th {
  background: #e7f2ec;
}
.comparison-table tbody th {
  background: #f2f8f4;
}
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(21, 67, 49, 0.12);
  box-shadow: 0 14px 34px rgba(10, 41, 29, 0.08);
}
.chat-layout .sidebar {
  border-radius: 0;
}
.chat-layout .chat-area {
  background: rgba(255, 255, 255, 0.92);
}
.page-footer {
  padding: 16px 18px 22px;
}
@media (max-width: 1080px) {
  .hero-panel,
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .page-header__inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .top-nav {
    gap: 8px 10px;
  }
}

.menu-item {
  border: 1px solid rgba(231, 242, 236, 0.2);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--forest-100);
  font-size: 1.04rem;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 180ms ease;
}

.menu-item:hover,
.menu-item:focus-visible {
  background: rgba(156, 224, 190, 0.18);
  border-color: rgba(156, 224, 190, 0.55);
  outline: none;
}

.menu-emoji {
  flex: 0 0 auto;
  font-size: 1.65rem;
  line-height: 1;
}

.chat-area {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  position: relative;
  isolation: isolate;
}

.chat-header {
  padding: 24px 26px 12px;
}

.chat-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--forest-900);
}

.chat-header p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.chat-log {
  padding: 12px 26px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: min(78ch, 85%);
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.4;
  white-space: normal;
  animation: appear 220ms ease;
}

.typing-msg {
  padding: 10px 12px;
}

.msg.bot.bot-writing::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 3px;
  border-right: 2px solid rgba(21, 67, 49, 0.7);
  vertical-align: -0.16em;
  animation: caretBlink 0.8s steps(1) infinite;
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}

.typing-bubble span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(21, 67, 49, 0.45);
  animation: typingPulse 1s ease-in-out infinite;
}

.typing-bubble span:nth-child(2) {
  animation-delay: 0.18s;
}

.typing-bubble span:nth-child(3) {
  animation-delay: 0.36s;
}

.msg strong {
  color: var(--forest-900);
  font-weight: 800;
}

.msg-heading {
  margin: 6px 0 9px;
  color: var(--forest-900);
  font-weight: 800;
  font-size: 1.12em;
}

.msg-paragraph {
  margin: 7px 0;
}

.msg-user-bullet {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  margin: 0;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(22, 95, 66, 0.18);
  border-radius: 10px;
  background: rgba(231, 242, 236, 0.72);
  color: var(--forest-900);
  font-weight: 700;
}

.attachment-chip span:last-child {
  overflow-wrap: anywhere;
}

.msg-break {
  display: block;
  content: "";
  margin-top: 8px;
}

.msg.user {
  align-self: flex-end;
  max-width: min(58ch, 78%);
  background: #dff2e8;
}

.media-preview-msg {
  padding: 7px;
}

.image-preview {
  display: block;
  width: min(320px, 72vw);
  max-height: 260px;
  object-fit: cover;
  border-radius: 11px;
}

.msg.bot {
  align-self: stretch;
  max-width: none;
  width: 100%;
  padding: 15px 17px;
  font-size: 1.08rem;
  line-height: 1.58;
  background: var(--white);
  border: 1px solid #dce8e1;
}

.msg-table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 10px 0 12px;
  overflow-x: auto;
  border: 1px solid rgba(43, 104, 64, 0.28);
  border-radius: 8px;
  background: #f9fcf7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  -webkit-overflow-scrolling: touch;
}

.msg-data-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.88rem;
  line-height: 1.28;
}

.msg-data-table th,
.msg-data-table td {
  padding: 8px 9px;
  border-right: 1px solid rgba(43, 104, 64, 0.18);
  border-bottom: 1px solid rgba(43, 104, 64, 0.16);
  color: #203b2c;
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: top;
}

.msg-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e6f1e4;
  color: #163f25;
  font-weight: 900;
  text-align: left;
}

.msg-data-table td {
  background: rgba(255, 255, 255, 0.72);
}

.msg-data-table tbody tr:nth-child(even) td {
  background: rgba(235, 245, 231, 0.78);
}

.msg-data-table th:last-child,
.msg-data-table td:last-child {
  border-right: 0;
}

.voice-reply-msg {
  display: grid;
  gap: 10px;
}

.voice-reply-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--forest-900);
  font-weight: 800;
}

.voice-reply-msg audio {
  display: none;
}

.voice-controls {
  display: grid;
  grid-template-columns: auto auto minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: center;
  max-width: min(620px, 100%);
}

.voice-play-btn,
.voice-stop-btn {
  width: fit-content;
  border: 1px solid rgba(18, 92, 194, 0.34);
  border-radius: 10px;
  background: #0c6ff2;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(12, 111, 242, 0.2);
}

.voice-stop-btn {
  border-color: rgba(176, 35, 35, 0.62);
  background: #d82020;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(176, 35, 35, 0.22);
}

.voice-play-btn:hover,
.voice-play-btn:focus-visible {
  background: #095dc9;
  outline: 2px solid rgba(18, 92, 194, 0.24);
}

.voice-stop-btn:hover,
.voice-stop-btn:focus-visible {
  background: #b81818;
  outline: 2px solid rgba(176, 35, 35, 0.22);
}

.voice-progress {
  width: 100%;
  min-width: 0;
  accent-color: #0c6ff2;
  cursor: pointer;
}

.voice-time {
  min-width: 82px;
  color: #315947;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}

.satellite-msg {
  padding: 15px 17px;
  overflow: hidden;
}

.satellite-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.satellite-copy {
  padding: 2px 0;
}

.satellite-meta {
  margin: 7px 0;
  color: #315947;
}

.satellite-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--forest-700);
  font-weight: 800;
  text-decoration: none;
}

.satellite-link:hover {
  text-decoration: underline;
}

.satellite-frame {
  position: relative;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(rgba(13, 32, 24, 0.12), rgba(13, 32, 24, 0.12)),
    repeating-linear-gradient(0deg, #1c3443 0 1px, #152936 1px 38px),
    repeating-linear-gradient(90deg, transparent 0 37px, rgba(255, 255, 255, 0.08) 37px 38px);
}

.satellite-frame img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.satellite-frame.image-failed img {
  opacity: 0;
}

.satellite-gps-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(3px);
  font-size: 0.96rem;
  line-height: 1.18;
  z-index: 2;
}

.satellite-gps-label strong,
.satellite-gps-label span {
  overflow-wrap: anywhere;
}

.satellite-gps-label strong {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.98), 0 0 10px rgba(0, 0, 0, 0.72);
}

.satellite-gps-label span {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.satellite-radius,
.satellite-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.satellite-radius {
  width: 28%;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 42, 42, 0.92);
  border-radius: 999px;
  box-shadow: 0 0 0 999px rgba(5, 12, 10, 0.08), 0 0 24px rgba(255, 42, 42, 0.34);
}

.satellite-crosshair::before,
.satellite-crosshair::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #ff2222;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.72);
  transform: translate(-50%, -50%);
}

.satellite-crosshair::before {
  width: 42px;
  height: 3px;
}

.satellite-crosshair::after {
  width: 3px;
  height: 42px;
}

.chat-controls {
  border-top: 1px solid #dce8e1;
  padding: 14px 18px 18px;
  background: rgba(248, 252, 250, 0.9);
}

.message-input-shell {
  position: relative;
  border-radius: 14px;
  isolation: isolate;
}

.chat-thinking-leaf {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(247, 252, 249, 0.9);
  box-shadow:
    0 0 0 1px rgba(31, 111, 77, 0.12),
    0 6px 16px rgba(21, 67, 49, 0.12);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 160ms ease, transform 160ms ease;
}

.chat-thinking-leaf::before {
  content: "";
  width: 15px;
  height: 20px;
  display: block;
  border-radius: 100% 0 100% 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), transparent 42%),
    linear-gradient(135deg, #74b889 0%, #2f7f58 58%, #1e5f43 100%);
  box-shadow:
    inset -2px -2px 3px rgba(12, 65, 42, 0.18),
    0 2px 5px rgba(21, 67, 49, 0.16);
  transform: rotate(16deg);
}

.chat-thinking-leaf::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 17px;
  border-radius: 999px;
  background: rgba(240, 255, 246, 0.78);
  transform: rotate(42deg);
}

.message-input-shell.is-loading .chat-thinking-leaf {
  opacity: 1;
  animation: chatLeafSpin 1.15s linear infinite;
}

#message-input {
  position: relative;
  z-index: 1;
  width: 100%;
  resize: vertical;
  border: 1px solid #c8ddd1;
  border-radius: 12px;
  padding: 12px 48px 12px 12px;
  font: inherit;
  color: var(--text-strong);
  background: #fff;
}

#message-input:focus {
  outline: 2px solid var(--ring);
  border-color: var(--forest-700);
}

.toolbar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-btn,
.send-btn {
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
}

.icon-btn {
  position: relative;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.75rem;
  line-height: 1;
  user-select: none;
  touch-action: none;
  isolation: isolate;
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.tool-btn {
  background: #ecf5ef;
  color: #214b37;
}

.tool-btn:hover {
  background: #e2f0e8;
}

.tool-btn.recording {
  background: #0c6ff2;
  color: #ffffff;
  box-shadow:
    0 0 0 8px rgba(64, 154, 255, 0.2),
    0 0 22px rgba(27, 129, 255, 0.62),
    0 0 42px rgba(39, 182, 255, 0.38);
  animation: micGlow 1.15s ease-in-out infinite;
}

.tool-btn.locked {
  border-color: rgba(153, 42, 42, 0.4);
  color: #8c2d2d;
  background: #fff3f3;
}

.tool-btn.recording::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 2px solid rgba(64, 174, 255, 0.42);
  box-shadow: 0 0 28px rgba(48, 159, 255, 0.45);
  animation: micHalo 1.15s ease-out infinite;
  z-index: -1;
}

.mic-recording-indicator {
  margin-top: 12px;
  min-height: 46px;
  border: 1px solid rgba(32, 139, 255, 0.26);
  border-radius: 999px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  color: #064a9d;
  background: linear-gradient(135deg, rgba(236, 247, 255, 0.95), rgba(214, 236, 255, 0.95));
  box-shadow:
    0 10px 24px rgba(20, 108, 210, 0.16),
    0 0 34px rgba(50, 154, 255, 0.2);
  font-weight: 700;
}

.mic-recording-indicator[hidden] {
  display: none;
}

.mic-recording-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #1487ff;
  box-shadow: 0 0 0 8px rgba(20, 135, 255, 0.16), 0 0 18px rgba(20, 135, 255, 0.85);
  animation: recordingDot 0.95s ease-in-out infinite;
}

.mic-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  margin-left: auto;
}

.mic-wave span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: #1177e8;
  animation: waveBar 0.8s ease-in-out infinite;
}

.mic-wave span:nth-child(2) {
  animation-delay: 0.1s;
}

.mic-wave span:nth-child(3) {
  animation-delay: 0.2s;
}

.mic-wave span:nth-child(4) {
  animation-delay: 0.3s;
}

.send-btn {
  margin-left: auto;
  background: var(--forest-700);
  color: white;
}

.send-btn:hover {
  background: #1b6146;
}

.status-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-row span {
  font-size: 0.82rem;
  color: #315947;
  background: #eaf4ee;
  padding: 4px 8px;
  border-radius: 999px;
}

.account-panel {
  margin-top: 10px;
}

.account-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(25, 84, 56, 0.22);
  border-radius: 12px;
  background: rgba(233, 245, 238, 0.9);
}

.account-card strong {
  color: #15392a;
}

.account-google-signin-btn {
  min-width: min(260px, 100%);
  min-height: 40px;
}

.account-card button {
  border: 1px solid rgba(25, 84, 56, 0.35);
  background: #ffffff;
  color: #17412f;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.account-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-act-notice {
  margin-top: 10px;
  border-left: 3px solid #1a6f4d;
  background: rgba(233, 245, 238, 0.82);
  color: #1b4734;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.legal-footer {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: #315947;
}

.legal-footer a {
  color: #1c5a41;
  font-weight: 700;
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

.footer-info-panel {
  margin-top: 14px;
  border-top: 1px solid rgba(21, 67, 49, 0.16);
  padding-top: 12px;
}

.footer-info-panel > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: #154331;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-info-panel > summary::-webkit-details-marker {
  display: none;
}

.footer-info-panel > summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(20, 67, 49, 0.1);
  color: #154331;
  font-weight: 900;
}

.footer-info-panel[open] > summary::after {
  content: "–";
}

.footer-info-content {
  margin-top: 12px;
  display: grid;
  gap: 18px;
}

.footer-info-section {
  padding: 14px 16px;
  border: 1px solid rgba(21, 67, 49, 0.12);
  border-radius: 14px;
  background: rgba(247, 251, 249, 0.9);
}

.footer-info-section h2 {
  margin-top: 0;
}

.footer-info-section .section-intro {
  margin-top: 8px;
}

.footer-info-section .how-grid,
.footer-info-section .faq-grid {
  margin-top: 12px;
}

.footer-info-section .table-wrap {
  margin-top: 12px;
}

.cookie-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(21, 67, 49, 0.25);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(9, 32, 23, 0.24);
  padding: 12px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.cookie-banner p {
  margin: 0;
  color: #1a4431;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-actions button {
  border: 1px solid rgba(22, 95, 66, 0.35);
  background: #f4fbf7;
  color: #154331;
  border-radius: 999px;
  padding: 7px 10px;
  font: inherit;
  cursor: pointer;
}

.cookie-banner.cookie-banner-dismissed {
  opacity: 0;
  transform: translateY(12px);
}
.modal-card {
  border: none;
  border-radius: 16px;
  max-width: 560px;
  width: calc(100vw - 24px);
  padding: 0;
}

.modal-card::backdrop {
  background: rgba(6, 23, 17, 0.58);
}

.modal-inner {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.modal-inner h3,
.modal-inner p {
  margin: 0;
}

.modal-inner label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: #204d38;
}

.google-signin-wrap {
  border: 1px solid rgba(22, 95, 66, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: #f1fbf6;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.google-signin-wrap p {
  margin: 0;
  color: #315f4b;
  font-size: 0.95rem;
  font-weight: 700;
}

.auth-status {
  min-height: 1.15rem;
  color: #315f4b;
  font-size: 0.88rem;
}

.auth-status.is-error {
  color: #9b2f24;
}

.auth-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-secondary-actions button {
  border: none;
  background: transparent;
  color: #176348;
  padding: 2px 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.modal-inner input {
  border: 1px solid rgba(26, 87, 64, 0.36);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

.freemium-modal .modal-inner h3 {
  margin-bottom: 4px;
}

.freemium-benefits {
  margin: 8px 0 4px;
  padding-left: 18px;
  color: var(--text-strong);
  display: grid;
  gap: 6px;
}
.consent-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-actions button,
.upgrade-grid button {
  border: 1px solid rgba(22, 95, 66, 0.3);
  border-radius: 10px;
  background: #f2faf6;
  color: #154331;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}

.upgrade-grid button.is-current-plan,
.upgrade-grid button:disabled {
  background: #dbece4;
  color: #315947;
  cursor: default;
  opacity: 0.78;
}

.upgrade-grid {
  display: grid;
  gap: 8px;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chatLeafSpin {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1) rotate(360deg);
  }
}

@keyframes micHalo {
  0% {
    opacity: 0.95;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes recordingDot {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes waveBar {
  0%,
  100% {
    height: 8px;
  }
  50% {
    height: 22px;
  }
}

.policy-page {
  max-width: 920px;
  margin: 28px auto;
  padding: 0 16px 40px;
  color: #173e2d;
}

.policy-page h1,
.policy-page h2 {
  color: #123727;
}

.policy-page a {
  color: #1e6146;
  font-weight: 700;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    align-items: flex-start;
    min-height: auto;
  }

  .sidebar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);

@keyframes typingPulse {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes caretBlink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}
  }

  .chat-log {
    min-height: 44vh;
  }

  .satellite-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .toolbar {
    align-items: center;
  }

  .icon-btn {
    width: 64px;
    height: 64px;
    font-size: 1.95rem;
  }

  .tool-btn.recording {
    transform: scale(1.04);
  }

  .mic-recording-indicator {
    width: calc(100vw - 28px);
    max-width: 100%;
    border-radius: 18px;
    padding: 12px 14px;
    font-size: 0.98rem;
  }

  .msg-table-scroll {
    margin-inline: -2px;
    border-radius: 7px;
  }

  .msg-data-table {
    min-width: 600px;
    font-size: 0.78rem;
  }

  .msg-data-table th,
  .msg-data-table td {
    padding: 7px 6px;
  }
}
