:root {
  --aster-mint: #9adfcb;
  --aster-ice: #d8fff5;
  --aster-amber: #ffc35a;
  --aster-ink: #071411;
  --aster-panel: rgba(7, 18, 20, 0.97);
  --aster-line: rgba(170, 242, 220, 0.18);
}

.aster-root {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1200;
  font-family: var(--ui);
  pointer-events: none;
}

.aster-root.hidden {
  display: none;
}

.aster-orb-button,
.aster-panel,
.aster-nudge {
  pointer-events: auto;
}

.aster-orb-button {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  margin-left: auto;
  padding: 0;
  place-items: center;
  color: var(--aster-ice);
  border: 1px solid rgba(216, 255, 245, 0.48);
  border-radius: 24px;
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 66% 69%, rgba(255, 195, 90, 0.9) 0 2px, transparent 3px),
    conic-gradient(from 210deg, #0f4e47, #0e2328 38%, #8e6230 70%, #0f4e47);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.45),
    0 0 0 7px rgba(154, 223, 203, 0.08),
    inset 0 0 24px rgba(216, 255, 245, 0.18);
  cursor: pointer;
  overflow: visible;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.aster-orb-button:hover,
.aster-orb-button:focus-visible {
  transform: translateY(-4px) rotate(-2deg);
  border-color: var(--aster-ice);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 9px rgba(154, 223, 203, 0.12), inset 0 0 28px rgba(216, 255, 245, 0.24);
  outline: none;
}

.aster-orb-button.is-thinking {
  animation: aster-breathe 1.3s ease-in-out infinite;
}

.aster-orb-button.has-alert {
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(255, 195, 90, 0.15), 0 0 34px rgba(255, 195, 90, 0.35);
}

.aster-orbit {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(154, 223, 203, 0.3);
  border-radius: 28px;
  transform: rotate(18deg);
  animation: aster-orbit 8s linear infinite;
}

.aster-orbit::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aster-amber);
  box-shadow: 0 0 10px rgba(255, 195, 90, 0.9);
}

.aster-glyph {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 18px rgba(216, 255, 245, 0.6);
}

.aster-count {
  position: absolute;
  top: -9px;
  right: -9px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 2px solid #091316;
  border-radius: 999px;
  color: #241400;
  background: var(--aster-amber);
  font-size: 11px;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
}

.aster-count:empty {
  display: none;
}

.aster-nudge {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: min(360px, calc(100vw - 36px));
  padding: 15px 44px 15px 16px;
  color: #eafff8;
  border: 1px solid var(--aster-line);
  border-radius: 18px 18px 7px 18px;
  background: linear-gradient(145deg, rgba(14, 43, 40, 0.98), rgba(7, 18, 20, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  transform-origin: bottom right;
  animation: aster-nudge-in 420ms cubic-bezier(.2, .9, .2, 1.12) both;
  cursor: pointer;
}

.aster-nudge.hidden {
  display: none;
}

.aster-nudge.warn {
  border-color: rgba(255, 195, 90, 0.5);
  background: linear-gradient(145deg, rgba(68, 45, 16, 0.98), rgba(18, 18, 16, 0.98));
}

.aster-nudge strong {
  display: block;
  margin-bottom: 5px;
  color: var(--aster-mint);
  font-family: var(--display);
  font-size: 17px;
}

.aster-nudge.warn strong {
  color: var(--aster-amber);
}

.aster-nudge p {
  margin: 0;
  color: #d7e7e3;
  font-size: 13px;
  line-height: 1.45;
}

.aster-nudge-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  color: #c9d9d4;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.aster-panel {
  position: absolute;
  right: 0;
  bottom: 82px;
  display: grid;
  width: min(430px, calc(100vw - 36px));
  height: min(700px, calc(100vh - 126px));
  grid-template-rows: auto auto 1fr;
  color: #eefbf7;
  border: 1px solid var(--aster-line);
  border-radius: 28px 28px 10px 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 195, 90, 0.12), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(154, 223, 203, 0.12), transparent 34%),
    var(--aster-panel);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
  overflow: hidden;
  transform-origin: bottom right;
  animation: aster-panel-in 260ms cubic-bezier(.2, .85, .2, 1) both;
}

.aster-panel.hidden {
  display: none;
}

.aster-panel-header {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 18px 18px 12px;
}

.aster-mini-orb {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216, 255, 245, 0.34);
  border-radius: 16px;
  background: conic-gradient(from 210deg, #1d6a60, #10272b 42%, #9b6830, #1d6a60);
  box-shadow: inset 0 0 16px rgba(216, 255, 245, 0.18), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.aster-mini-orb::before,
.aster-mini-orb::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aster-ice);
  box-shadow: 0 0 9px rgba(216, 255, 245, 0.75);
}

.aster-mini-orb::before { top: 12px; left: 12px; }
.aster-mini-orb::after { right: 10px; bottom: 11px; background: var(--aster-amber); }

.aster-title {
  min-width: 0;
  flex: 1;
}

.aster-title small {
  display: block;
  margin-bottom: 2px;
  color: var(--aster-mint);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.aster-title strong {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}

.aster-title span {
  display: block;
  margin-top: 5px;
  color: #9fb6b0;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aster-header-actions {
  display: flex;
  gap: 6px;
}

.aster-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: #d9ebe6;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.aster-icon-button:hover,
.aster-icon-button:focus-visible {
  color: #fff;
  border-color: rgba(154, 223, 203, 0.45);
  outline: none;
}

.aster-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(50px, 1fr));
  gap: 5px;
  padding: 0 14px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.aster-tabs::-webkit-scrollbar { display: none; }
.aster-admin-only.hidden { display: none; }

.aster-tools-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
  color: #a9bbb6;
  font-size: 11px;
}

.aster-tools-summary strong,
.aster-tools-summary span {
  padding: 6px 9px;
  border: 1px solid rgba(154, 223, 203, 0.12);
  border-radius: 999px;
  background: rgba(154, 223, 203, 0.06);
}

.aster-tools-summary strong { color: var(--aster-ice); }
.aster-tools-summary .attention { color: #ffd08a; border-color: rgba(255, 195, 90, 0.24); }

.aster-tool-search {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #8fa7a1;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.aster-tool-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: #edf7f4;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
}

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

.aster-tool-card {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.aster-tool-card.failed,
.aster-tool-card.warn,
.aster-tool-card.stopped { border-color: rgba(255, 195, 90, 0.22); }

.aster-tool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.aster-tool-head div { display: grid; gap: 3px; min-width: 0; }
.aster-tool-head small { color: #78918a; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.aster-tool-head strong { color: #f2f8f6; font-size: 14px; }
.aster-tool-card > p { margin: 8px 0; color: #a9bbb6; font-size: 11px; line-height: 1.45; }

.aster-tool-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(154, 223, 203, 0.1);
  color: var(--aster-ice);
  font-size: 9px;
  font-weight: 900;
}

.aster-tool-status.failed,
.aster-tool-status.warn,
.aster-tool-status.stopped { background: rgba(255, 195, 90, 0.12); color: #ffd08a; }
.aster-tool-schedule { display: block; margin: -2px 0 9px; color: #78918a; font-size: 10px; }
.aster-tool-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.aster-tool-actions a,
.aster-tool-actions button {
  padding: 7px 9px;
  border: 1px solid rgba(154, 223, 203, 0.16);
  border-radius: 9px;
  background: rgba(154, 223, 203, 0.07);
  color: var(--aster-ice);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.aster-control-lock-card,
.aster-control-section,
.aster-control-unlock {
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid rgba(154, 223, 203, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.aster-control-lock-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: rgba(255, 195, 90, 0.2);
  background: linear-gradient(135deg, rgba(255, 195, 90, 0.08), rgba(154, 223, 203, 0.035));
}

.aster-control-lock-card > div { display: grid; gap: 3px; }
.aster-control-lock-card small,
.aster-control-section-head small { color: var(--aster-amber); font-size: 9px; font-weight: 900; letter-spacing: 0.12em; }
.aster-control-lock-card strong { color: #fff2d8; font-size: 14px; }
.aster-control-lock-card p,
.aster-control-note { margin: 0; color: #8fa7a1; font-size: 10px; line-height: 1.45; }

.aster-control-unlock { display: grid; gap: 10px; }
.aster-control-unlock.hidden { display: none; }
.aster-control-unlock label { display: grid; gap: 5px; color: #9db0ab; font-size: 10px; font-weight: 800; }
.aster-control-unlock input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.2);
  color: #f2f8f6;
  font: inherit;
}

.aster-control-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.aster-control-section-head h4 { margin: 2px 0 0; color: #f2f8f6; font-size: 15px; }
.aster-control-section-head button {
  padding: 7px 9px;
  border: 1px solid rgba(154, 223, 203, 0.16);
  border-radius: 9px;
  background: rgba(154, 223, 203, 0.07);
  color: var(--aster-ice);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.aster-control-section-head button:disabled { opacity: 0.35; cursor: not-allowed; }

.aster-control-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.aster-control-metrics > div { display: grid; gap: 2px; padding: 9px; border-radius: 11px; background: rgba(0, 0, 0, 0.16); }
.aster-control-metrics small { color: #78918a; font-size: 9px; text-transform: uppercase; }
.aster-control-metrics strong { color: var(--aster-ice); font-size: 14px; }
.aster-control-metrics > p { grid-column: 1 / -1; margin: 2px 0 0; color: #8fa7a1; font-size: 10px; line-height: 1.45; }

.aster-control-prompts { display: grid; gap: 9px; margin-top: 10px; }
.aster-prompt-layer { display: grid; gap: 7px; }
.aster-prompt-layer > span { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 7px; }
.aster-prompt-layer > span b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(154, 223, 203, 0.1); color: var(--aster-mint); font-size: 10px; }
.aster-prompt-layer > span strong { color: #dce9e5; font-size: 11px; }
.aster-prompt-layer > span small { color: #78918a; font-size: 9px; }
.aster-prompt-layer textarea {
  min-height: 88px;
  width: 100%;
  resize: vertical;
  padding: 10px;
  border: 1px solid rgba(154, 223, 203, 0.14);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.2);
  color: #dce9e5;
  font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.aster-prompt-layer textarea:disabled { opacity: 0.62; cursor: not-allowed; }
.aster-prompt-layer.editable textarea:not(:disabled) { border-color: rgba(255, 195, 90, 0.36); box-shadow: 0 0 0 2px rgba(255, 195, 90, 0.05); }

.aster-connection-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.aster-connection-flow span { padding: 6px 8px; border-radius: 999px; background: rgba(154, 223, 203, 0.08); color: var(--aster-ice); font-size: 9px; font-weight: 800; }
.aster-connection-flow b { color: var(--aster-amber); font-size: 11px; }
.aster-control-list { display: grid; gap: 5px; max-height: 230px; overflow-y: auto; }
.aster-control-list > div { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 9px; background: rgba(0, 0, 0, 0.13); }
.aster-control-list strong { color: #dce9e5; font-size: 10px; }
.aster-control-list small { color: #78918a; font-size: 9px; text-align: right; }

.aster-control-details { display: grid; gap: 7px; }
.aster-control-details details { border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 11px; background: rgba(0, 0, 0, 0.13); overflow: hidden; }
.aster-control-details summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; cursor: pointer; list-style: none; }
.aster-control-details summary::-webkit-details-marker { display: none; }
.aster-control-details summary span { display: grid; gap: 3px; min-width: 0; }
.aster-control-details summary strong { color: #dce9e5; font-size: 11px; }
.aster-control-details summary small { color: #78918a; font-size: 9px; overflow-wrap: anywhere; }
.aster-control-details summary > b { color: var(--aster-mint); font-size: 14px; transition: transform 160ms ease; }
.aster-control-details details[open] summary > b { transform: rotate(45deg); }
.aster-control-details details > p { margin: 0; padding: 0 10px 8px; color: #9db0ab; font-size: 10px; line-height: 1.5; }
.aster-control-details ol { margin: 0; padding: 0 12px 12px 28px; color: #b9c9c4; font-size: 10px; line-height: 1.55; }
.aster-control-details details > small { display: block; padding: 0 10px 10px; color: #78918a; font-size: 9px; }

.aster-tab {
  padding: 9px 5px;
  color: #8fa7a1;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.aster-tab:hover,
.aster-tab.active {
  color: var(--aster-ice);
  border-color: rgba(154, 223, 203, 0.18);
  background: rgba(154, 223, 203, 0.08);
}

.aster-view {
  min-height: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.aster-view.hidden {
  display: none;
}

.aster-chat-view {
  display: grid;
  height: 100%;
  grid-template-rows: 1fr auto auto;
}

.aster-messages {
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.aster-message {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 10px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px 16px 16px 5px;
  background: rgba(255, 255, 255, 0.045);
  color: #dfebe7;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.aster-message.user {
  margin-left: auto;
  border-color: rgba(255, 195, 90, 0.22);
  border-radius: 16px 16px 5px 16px;
  background: rgba(255, 195, 90, 0.1);
  color: #fff4dd;
}

.aster-message.thinking {
  display: inline-flex;
  min-width: 58px;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.aster-message.thinking span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aster-mint);
  animation: aster-thinking-dot 1s ease-in-out infinite;
}

.aster-message.thinking span:nth-child(2) {
  animation-delay: 140ms;
}

.aster-message.thinking span:nth-child(3) {
  animation-delay: 280ms;
}

.aster-message strong {
  color: var(--aster-ice);
}

.aster-empty {
  display: grid;
  min-height: 100%;
  padding: 22px;
  place-content: center;
  text-align: center;
}

.aster-empty strong {
  color: var(--aster-ice);
  font-family: var(--display);
  font-size: 21px;
}

.aster-empty p {
  max-width: 280px;
  margin: 8px auto 0;
  color: #90a7a1;
  line-height: 1.45;
}

.aster-quick-actions {
  display: flex;
  gap: 7px;
  padding: 8px 12px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.aster-quick-actions::-webkit-scrollbar { display: none; }

.aster-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #bcd1cb;
  border: 1px solid rgba(154, 223, 203, 0.16);
  border-radius: 999px;
  background: rgba(154, 223, 203, 0.05);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.aster-chip:hover {
  color: var(--aster-ice);
  background: rgba(154, 223, 203, 0.12);
}

.aster-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 14px;
}

.aster-chat-form input {
  min-width: 0;
  flex: 1;
  padding: 12px 13px;
  color: #effaf7;
  border: 1px solid rgba(154, 223, 203, 0.18);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.24);
}

.aster-chat-form input:focus {
  border-color: rgba(154, 223, 203, 0.62);
  box-shadow: 0 0 0 3px rgba(154, 223, 203, 0.09);
  outline: none;
}

.aster-send {
  width: 43px;
  color: var(--aster-ink);
  border: 0;
  border-radius: 13px;
  background: var(--aster-mint);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.aster-send:disabled {
  opacity: 0.45;
  cursor: wait;
}

.aster-scroll-view {
  height: 100%;
  padding: 15px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.aster-section-head {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.aster-section-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
}

.aster-section-head p {
  margin: 4px 0 0;
  color: #8fa7a1;
  font-size: 11px;
}

.aster-form-card,
.aster-settings-card,
.aster-event,
.aster-reminder {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.aster-form-card,
.aster-settings-card {
  margin-bottom: 13px;
  padding: 13px;
  border-radius: 17px;
}

.aster-form-grid {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 9px;
}

.aster-form-grid .wide {
  grid-column: 1 / -1;
}

.aster-form-card label,
.aster-settings-card label {
  display: grid;
  gap: 5px;
  color: #9eb4ae;
  font-size: 10px;
  font-weight: 800;
}

.aster-form-card input,
.aster-form-card select,
.aster-settings-card input,
.aster-settings-card select {
  width: 100%;
  padding: 10px;
  color: #edf9f5;
  border: 1px solid rgba(154, 223, 203, 0.15);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.22);
}

.aster-primary-button,
.aster-secondary-button {
  padding: 10px 12px;
  border-radius: 11px;
  font-weight: 900;
  cursor: pointer;
}

.aster-primary-button {
  color: var(--aster-ink);
  border: 0;
  background: var(--aster-mint);
}

.aster-secondary-button {
  color: #cde0da;
  border: 1px solid rgba(154, 223, 203, 0.18);
  background: rgba(154, 223, 203, 0.06);
}

.aster-reminder-list,
.aster-event-list {
  display: grid;
  gap: 9px;
}

.aster-reminder,
.aster-event {
  padding: 12px;
  border-radius: 15px;
}

.aster-reminder-head,
.aster-event-head {
  display: flex;
  gap: 9px;
  align-items: start;
  justify-content: space-between;
}

.aster-reminder strong,
.aster-event strong {
  color: #edf9f5;
}

.aster-reminder time,
.aster-event time,
.aster-reminder p,
.aster-event p {
  display: block;
  margin: 5px 0 0;
  color: #91a9a3;
  font-size: 11px;
  line-height: 1.4;
}

.aster-reminder-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.aster-reminder-actions button {
  padding: 6px 8px;
  color: #bad0ca;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.aster-event.unread {
  border-color: rgba(154, 223, 203, 0.28);
  background: rgba(154, 223, 203, 0.07);
}

.aster-event.warn,
.aster-event.critical {
  border-color: rgba(255, 195, 90, 0.3);
}

.aster-severity {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--aster-mint);
  box-shadow: 0 0 10px rgba(154, 223, 203, 0.55);
}

.aster-severity.warn,
.aster-severity.critical {
  background: var(--aster-amber);
  box-shadow: 0 0 10px rgba(255, 195, 90, 0.65);
}

.aster-setting-row {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 14px !important;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.aster-setting-row:last-child {
  border-bottom: 0;
}

.aster-setting-row span {
  display: block;
  color: #e3efeb;
  font-size: 12px;
}

.aster-setting-row small {
  display: block;
  margin-top: 3px;
  color: #849c96;
  font-size: 10px;
  font-weight: 500;
}

.aster-setting-row input[type='checkbox'] {
  width: 19px;
  height: 19px;
  accent-color: var(--aster-mint);
}

.aster-quiet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 11px;
}

.aster-mobile-card {
  padding: 14px;
  border: 1px solid rgba(255, 195, 90, 0.2);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255, 195, 90, 0.1), rgba(154, 223, 203, 0.05));
}

.aster-mobile-card strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
}

.aster-mobile-card p {
  margin: 6px 0 12px;
  color: #a4b8b2;
  font-size: 11px;
  line-height: 1.45;
}

.aster-status-line {
  min-height: 18px;
  margin: 7px 0 0;
  color: #91aaa3;
  font-size: 10px;
}

.aster-status-line.error {
  color: #ff9cab;
}

@keyframes aster-orbit {
  to { transform: rotate(378deg); }
}

@keyframes aster-thinking-dot {
  0%, 70%, 100% { opacity: 0.35; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-4px); }
}

@keyframes aster-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.055); }
}

@keyframes aster-nudge-in {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes aster-panel-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .aster-root {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .aster-orb-button {
    width: 60px;
    height: 60px;
    border-radius: 21px;
  }

  .aster-panel {
    position: fixed;
    inset: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    border-radius: 24px;
    transform-origin: bottom right;
  }

  .aster-panel-header {
    padding-top: 15px;
  }

  .aster-nudge {
    bottom: 72px;
    width: min(350px, calc(100vw - 24px));
  }

  .aster-form-grid {
    grid-template-columns: 1fr;
  }

  .aster-form-grid .wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aster-orbit,
  .aster-orb-button.is-thinking,
  .aster-message.thinking span,
  .aster-panel,
  .aster-nudge {
    animation: none !important;
  }
}
