:root {
  color-scheme: light;
  --bg: #f7f9f8;
  --surface: #fff;
  --glass: rgba(255, 255, 255, 0.72);
  --ink: #20312d;
  --muted: #78847f;
  --line: rgba(46, 76, 64, 0.09);
  --accent: #14846a;
  --mint: #e8f5ee;
  --blue: #3689ee;
  --bubble: #edf0ef;
  --shadow: 0 18px 65px #1d47320b, 0 2px 6px #17392b04;
  --drawer: 278px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}
body {
  height: 100dvh;
  overflow: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #2caa9570;
  outline-offset: 4px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button {
  transition:
    background 0.18s,
    transform 0.18s;
}
button:not(:disabled):active {
  transform: scale(0.97);
}
[hidden] {
  display: none !important;
}
.ambient {
  position: fixed;
  pointer-events: none;
  inset: 0;
  background: radial-gradient(ellipse at 70% -15%, #b5e5ce24, transparent 60%);
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid #ffffffb3;
  box-shadow: var(--shadow);
}
.drawer {
  position: fixed;
  inset: 18px 18px 18px auto;
  width: var(--drawer);
  border-radius: 30px;
  padding: 26px 18px 14px;
  display: flex;
  flex-direction: column;
  z-index: 12;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: var(--glass);
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 27px;
  direction: ltr;
  justify-content: flex-end;
}
.drawer-brand img {
  width: 35px;
  height: 35px;
  border-radius: 11px;
}
.drawer-brand strong {
  font-size: 26px;
  letter-spacing: -1px;
  order: -1;
}
.new-chat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--mint);
  border: 1px solid #b7d9ca60;
  border-radius: 17px;
  padding: 14px;
  font-weight: 600;
  font-size: 14px;
  text-align: start;
}
.plus {
  font-size: 24px;
  line-height: 17px;
  color: var(--accent);
}
.shortcut {
  font-size: 11px;
  color: var(--muted);
  margin-inline-start: auto;
  font-weight: 400;
  direction: ltr;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  padding: 18px 8px 10px;
}
.search-box span {
  font-size: 25px;
}
.search-box input {
  border: 0;
  background: none;
  outline: 0;
  min-width: 0;
  width: 100%;
  color: inherit;
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.8px;
  color: var(--muted);
  font-weight: 600;
  margin: 22px 10px 10px;
}
.drawer nav {
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
}
.session {
  display: block;
  width: 100%;
  text-align: start;
  padding: 12px 13px;
  margin: 3px 0;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.session span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.session.active {
  background: var(--surface);
  box-shadow: 0 2px 6px #00000004;
}
.session:hover {
  background: var(--mint);
}
.drawer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 14px;
}
.drawer-bottom > button {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 13px;
  text-align: start;
  font-size: 13px;
  border-radius: 14px;
}
.drawer-bottom > button:hover {
  background: var(--mint);
}
.drawer-bottom > button span {
  font-size: 19px;
  color: var(--accent);
}
.drawer-foot {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 15px 8px 3px;
  font-size: 10px;
  color: var(--muted);
}
.drawer-foot a {
  color: var(--muted);
}
.chat {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 1160px;
  margin-right: calc(var(--drawer) + 36px);
  padding: 0 38px;
  transition: margin 0.3s;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 19px;
  flex-shrink: 0;
  gap: 15px;
}
.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 26px;
}
.icon:hover {
  background: var(--mint);
}
.conversation-heading {
  min-width: 0;
  text-align: center;
}
.conversation-heading h1 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(46vw, 480px);
  margin: 0;
}
.conversation-heading p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: #9ba7a1;
  border-radius: 50%;
}
.online .status-dot {
  background: #28a27a;
  box-shadow: 0 0 0 3px #28a27a12;
}
.messages {
  overflow: auto;
  flex: 1;
  padding: 28px max(0px, calc((100% - 760px) / 2)) 24px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
}
.day {
  align-self: center;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 6px;
}
.message {
  max-width: 82%;
  padding: 14px 19px;
  border-radius: 23px;
  line-height: 1.65;
  font-size: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  position: relative;
}
.message.user {
  align-self: flex-start;
  background: var(--blue);
  color: white;
  border-bottom-right-radius: 7px;
}
.message.assistant {
  align-self: flex-end;
  background: var(--bubble);
  border-bottom-left-radius: 7px;
}
.message small {
  display: block;
  font-size: 9px;
  opacity: 0.6;
  text-align: end;
  margin-top: 5px;
}
.message.live {
  color: var(--muted);
  background: var(--mint);
  border: 1px dashed #90baa480;
}
.welcome {
  margin: auto;
  text-align: center;
  padding: 25px 10px 50px;
  align-self: center;
}
.welcome .welcome-mark {
  width: 65px;
  height: 65px;
  border-radius: 21px;
  box-shadow: 0 15px 30px #40725b20;
}
.welcome h2 {
  font-size: 30px;
  letter-spacing: -0.7px;
  margin: 25px 0 9px;
  font-weight: 600;
}
.welcome p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 320px;
  margin: 0 auto;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.suggestions button {
  font-size: 12px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 14px;
}
.turn-status {
  max-width: 760px;
  width: 100%;
  margin: 0 auto 10px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.typing {
  display: inline-flex;
  gap: 3px;
}
.typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.2s;
}
.typing i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes pulse {
  50% {
    opacity: 0.2;
    transform: translateY(-2px);
  }
}
.device-badge {
  align-self: center;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 11px;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.device-badge.on {
  color: var(--accent);
}
.composer-area {
  padding: 12px 0 max(18px, env(safe-area-inset-bottom));
  width: min(100%, 800px);
  align-self: center;
  flex-shrink: 0;
}
.composer {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  border-radius: 30px;
  padding: 9px 11px 9px 9px;
  box-shadow:
    0 7px 35px #24463509,
    inset 0 1px 0 #fff8;
  direction: rtl;
}
.composer textarea {
  background: none;
  border: 0;
  resize: none;
  outline: 0;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  max-height: 140px;
  min-height: 42px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 22px;
}
.composer textarea::placeholder {
  color: #89938f;
}
.composer .icon {
  color: var(--muted);
}
.send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 26px;
  flex-shrink: 0;
}
.send:disabled {
  opacity: 0.35;
}
.composer-note {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  padding: 10px 15px 0;
  opacity: 0.8;
}
.floating-pip {
  position: fixed;
  width: 112px;
  height: 126px;
  bottom: 123px;
  right: calc(var(--drawer) + 47px);
  padding: 0;
  touch-action: none;
  z-index: 4;
  isolation: isolate;
}
.floating-pip canvas {
  width: 112px;
  height: 112px;
  image-rendering: pixelated;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.pet-shadow {
  position: absolute;
  width: 62px;
  height: 9px;
  bottom: 7px;
  left: 25px;
  background: #214b3822;
  border-radius: 100%;
  filter: blur(5px);
}
.floating-pip.dragging {
  cursor: grabbing;
  filter: drop-shadow(0 8px 10px #214b3820);
}
.pet-menu {
  position: fixed;
  z-index: 22;
  padding: 7px;
  border-radius: 19px;
  min-width: 200px;
}
.pet-menu button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  text-align: start;
  font-size: 13px;
  border-radius: 12px;
}
.pet-menu button:hover {
  background: var(--mint);
}
.pet-menu span {
  display: block;
  font-size: 10px;
  padding: 7px;
  color: var(--muted);
}
.panel {
  color: var(--ink);
  padding: 0;
  border-radius: 32px;
  max-height: 88dvh;
  width: min(590px, calc(100vw - 28px));
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 35px 100px #0002;
}
.panel::backdrop {
  background: #182f2829;
  backdrop-filter: blur(6px);
}
.panel-header {
  padding: 22px 25px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.panel-header .eyebrow {
  margin: 0 0 6px;
  font-size: 9px;
}
.panel-header h2 {
  font-size: 23px;
  margin: 0;
  letter-spacing: -0.5px;
}
.panel-header .icon {
  background: var(--bubble);
  width: 32px;
  height: 32px;
  font-size: 23px;
  color: var(--muted);
}
#panel-body {
  padding: 22px 25px 28px;
}
.section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 25px 4px 10px;
}
.setting-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px;
  font-size: 13px;
}
.setting-row + .setting-row {
  border-top: 1px solid var(--line);
}
.setting-row input[type="checkbox"] {
  appearance: none;
  width: 43px;
  height: 26px;
  background: #adbab3;
  border: 0;
  border-radius: 20px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}
.setting-row input[type="checkbox"]:after {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.18s;
  box-shadow: 0 1px 3px #0002;
}
.setting-row input:checked {
  background: var(--accent);
}
.setting-row input:checked:after {
  transform: translateX(17px);
}
select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px;
  color: var(--ink);
  max-width: 58%;
  font-size: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0;
}
.field input,
.field textarea,
.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 14px;
  min-width: 0;
}
.field textarea {
  resize: vertical;
  min-height: 85px;
}
.hint {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 5px;
}
.primary,
.secondary,
.danger {
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 13px;
}
.primary {
  background: var(--accent);
  color: white;
}
.secondary {
  background: var(--mint);
  color: var(--accent);
}
.danger {
  color: #bf4949;
  background: #bf49490b;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.device-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 17px 19px;
}
.device-summary h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.device-summary p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 11px;
}
.device-metrics {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
}
.battery {
  width: 30px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
  background: linear-gradient(
    to right,
    #94bfa855 var(--charge, 0%),
    transparent 0
  );
}
.battery:after {
  content: "";
  position: absolute;
  left: -4px;
  width: 2px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
}
.device-mini {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid #bec6c7;
  background: #020d10;
  box-shadow:
    inset 0 0 0 2px #545f62,
    3px 5px 0 #788384,
    6px 8px 15px #0002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: perspective(300px) rotateY(-20deg) rotateX(8deg);
  position: relative;
}
.device-mini.rect {
  border-radius: 18px;
  height: 103px;
  width: 82px;
}
.device-mini.square {
  border-radius: 22px;
}
.device-mini img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.device-mini span {
  font-size: 10px;
  color: #e2fff4;
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.pip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.pip-tile {
  position: relative;
  border-radius: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 11px 7px;
  text-align: center;
}
.pip-tile.selected {
  border-color: var(--accent);
  background: var(--mint);
}
.pip-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  max-height: 125px;
}
.pip-tile h3 {
  font-size: 14px;
  margin: 4px 0;
}
.pip-tile small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.pip-tile button {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 9px;
  background: var(--surface);
  margin: 2px;
}
.pip-preview {
  width: 190px;
  height: 190px;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
  margin: 5px auto 12px;
}
.job {
  padding: 14px;
  border-radius: 18px;
  background: var(--bg);
  margin: 10px 0;
}
.job h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.job p {
  color: var(--muted);
  font-size: 11px;
}
.job progress {
  width: 100%;
  height: 5px;
  accent-color: var(--accent);
}
.expression-stage {
  display: block;
  width: 200px;
  height: 200px;
  margin: auto;
  image-rendering: pixelated;
}
.expression-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.expression-list button {
  background: var(--mint);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.expression-list button.selected {
  background: var(--accent);
  color: white;
}
.voice-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.voice-row label {
  flex: 1;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
}
.voice-row small {
  color: var(--muted);
  font-size: 10px;
  display: block;
}
.voice-row .icon {
  width: 32px;
  height: 32px;
  font-size: 16px;
  background: var(--surface);
}
input[type="range"] {
  accent-color: var(--accent);
  width: 50%;
}
.notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  max-width: min(560px, 90vw);
  padding: 13px 20px;
  border-radius: 18px;
  font-size: 13px;
  text-align: center;
}
.login {
  height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px;
}
.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 23px;
  box-shadow: 0 15px 35px #22433119;
}
.wordmark {
  font-size: 24px;
  letter-spacing: -0.8px;
  font-weight: 600;
  margin: 16px 0 25px;
}
.login h1 {
  font-size: 31px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.8px;
}
.login > p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 26px;
}
.login-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-radius: 25px;
  padding: 25px;
  width: min(360px, 100%);
}
.login-card label {
  font-size: 12px;
  color: var(--muted);
}
.login-card input {
  font-size: 25px;
  letter-spacing: 9px;
  text-align: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 10px;
  width: 100%;
  border-radius: 0;
}
.login-card .hint {
  margin: 0;
}
.login-card a {
  font-size: 11px;
}
.mobile-only {
  display: none;
}
.drawer-closed .drawer {
  transform: translateX(calc(100% + 35px));
}
.drawer-closed .chat {
  margin-right: 0;
  margin-left: auto;
  margin-right: auto;
}
.drawer-closed .floating-pip:not(.positioned) {
  right: max(26px, calc((100vw - 1160px) / 2 + 38px));
}
.scrim {
  position: fixed;
  inset: 0;
  background: #172a2433;
  z-index: 11;
  backdrop-filter: blur(4px);
}
#mic.recording {
  color: #d44a57;
  background: #fce5e7;
  box-shadow: 0 0 0 4px #fce5e777;
}
.loading {
  padding: 35px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101917;
  --surface: #1b2925;
  --glass: rgba(29, 43, 37, 0.78);
  --ink: #e3eee8;
  --muted: #8b9f93;
  --line: #b0d6c113;
  --accent: #8dddbb;
  --mint: #243d32;
  --blue: #307dd3;
  --bubble: #25332e;
  --shadow: 0 18px 65px #0002;
}
body[data-theme="dark"] .glass {
  border-color: #adc5b51c;
}
body[data-theme="dark"] .primary {
  color: #142c20;
}
body[data-theme="dark"] .composer {
  box-shadow:
    0 7px 35px #0001,
    inset 0 1px 0 #ffffff0a;
}
body[data-theme="dark"] .ambient {
  opacity: 0.25;
}
body[data-theme="dark"] .message.user {
  color: white;
}
@media (min-width: 1500px) {
  .chat {
    margin-left: auto;
    margin-right: calc(var(--drawer) + 65px);
    max-width: 1200px;
  }
}
@media (max-width: 760px) {
  :root {
    --drawer: 285px;
  }
  .drawer {
    inset: 10px 10px 10px auto;
    border-radius: 28px;
  }
  .chat {
    margin: 0;
    padding: 0 17px;
  }
  .chat-header {
    padding: calc(16px + env(safe-area-inset-top)) 0 15px;
  }
  .conversation-heading h1 {
    max-width: 58vw;
    font-size: 14px;
  }
  .icon {
    width: 38px;
    height: 38px;
  }
  .mobile-only {
    display: grid;
  }
  .drawer-brand {
    padding-bottom: 20px;
  }
  .drawer-brand .mobile-only {
    margin-inline-start: auto;
  }
  .drawer-brand strong {
    order: 0;
  }
  .messages {
    padding: 14px 0 23px;
    gap: 16px;
  }
  .message {
    max-width: 85%;
    font-size: 14px;
    padding: 12px 15px;
  }
  .composer-area {
    padding-top: 8px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  .composer {
    gap: 7px;
    padding: 7px;
  }
  .composer textarea {
    font-size: 16px;
    line-height: 22px;
  }
  .composer .icon,
  .send {
    height: 40px;
    width: 40px;
  }
  .composer-note {
    font-size: 8px;
  }
  .floating-pip {
    right: 16px;
    width: 94px;
    height: 106px;
    bottom: 117px;
  }
  .floating-pip canvas {
    width: 94px;
    height: 94px;
  }
  .pet-shadow {
    left: 20px;
    width: 54px;
  }
  .drawer-closed .floating-pip:not(.positioned) {
    right: 16px;
  }
  .welcome h2 {
    font-size: 27px;
  }
  .welcome {
    padding-bottom: 65px;
  }
  .panel {
    max-height: 92dvh;
    border-radius: 28px;
  }
  #panel-body {
    padding: 18px;
  }
  .panel-header {
    padding: 20px 20px 15px;
  }
  .panel-header h2 {
    font-size: 21px;
  }
  .setting-row {
    padding: 15px 13px;
    font-size: 12px;
  }
  .device-summary {
    gap: 18px;
    padding: 18px 13px;
  }
  .pip-grid {
    gap: 7px;
  }
  .pip-tile button {
    font-size: 10px;
  }
  .notice {
    bottom: 15px;
  }
  .floating-pip {
    z-index: 5;
  }
  .drawer-closed .chat {
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-height: 560px) {
  .floating-pip {
    display: none;
  }
  .welcome {
    padding: 10px;
  }
  .welcome h2 {
    margin-top: 10px;
  }
  .login {
    justify-content: flex-start;
  }
  .brand-mark {
    width: 45px;
    height: 45px;
  }
  .wordmark {
    margin: 10px;
  }
  .login h1 {
    font-size: 24px;
  }
}
.pip-tile canvas {
  width: 100%;
  height: auto;
  max-height: 145px;
  aspect-ratio: 1;
  image-rendering: pixelated;
}
.pip-tile strong {
  display: block;
  margin: 5px;
}
.pip-grid + #create-pip {
  margin-top: 18px;
  width: 100%;
}
.expression-stage canvas {
  width: 200px;
  height: 200px;
}
.voice-row > div {
  flex: 1;
  min-width: 0;
}
.voice-row {
  flex-wrap: wrap;
}
.voice-row button {
  padding: 9px 12px;
}
.live-transcript {
  opacity: 0.65;
  font-style: italic;
}
.field select {
  max-width: 100%;
}
.welcome .eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  margin: 22px auto 0;
}
.welcome-orbit {
  margin: auto;
}
.device-summary {
  overflow-wrap: anywhere;
}
.pet-menu {
  max-width: 220px;
}
.message .bubble {
  white-space: pre-wrap;
}
#stop-turn {
  color: var(--accent);
  font-size: 11px;
  padding: 0;
}
.device-metrics bdi {
  direction: ltr;
}

.notice.dialog-notice {
  position: sticky;
  bottom: 12px;
  left: auto;
  transform: none;
  margin: 0 auto 15px;
  max-width: calc(100% - 30px);
  background: var(--surface);
}

.session-row {display:flex;align-items:center;gap:4px}
.session-row .session {flex:1;min-width:0}
.session-delete {flex-shrink:0;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:14px;background:transparent;color:var(--muted)}
.session-delete:hover {background:rgba(220,60,60,.1);color:#db4242}
.session-delete svg {width:18px;height:18px}

.pip-drafts {display:contents}
.pip-tile.job {min-width:0;display:flex;flex-direction:column;gap:10px;text-align:center}
.pip-tile.job .pip-preview {height:160px;width:100%;object-fit:contain;margin:0}
.pip-tile.job .actions {justify-content:center}
/* Wappai pixel identity; transparent master with a legible monochrome dark variant. */
.brand-wordmark{object-fit:contain;image-rendering:pixelated}
.login .login-wordmark{width:min(270px,75vw);height:auto;margin:0 0 32px}
.drawer-brand img.brand-wordmark{width:176px;height:auto;border-radius:0}
body[data-theme="dark"] .brand-wordmark{filter:brightness(0) invert(1);opacity:.94}
