:root {
  --bg: #0b1017;
  --panel: rgba(18, 25, 35, 0.9);
  --panel-soft: rgba(15, 21, 31, 0.9);
  --line: rgba(164, 180, 196, 0.16);
  --text: #edf3fb;
  --muted: #91a2b7;
  --accent: #22d3ee;
  --accent-2: #54d17a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 28%),
    linear-gradient(180deg, #0b1017 0%, #0d131c 100%);
}

body.editor-open {
  overflow: hidden;
}

.ambient-logo {
  position: fixed;
  left: clamp(6px, 1.1vw, 18px);
  top: clamp(8px, 1.2vw, 18px);
  z-index: 0;
  width: clamp(76px, 7vw, 116px);
  height: clamp(76px, 7vw, 116px);
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
}

.ambient-logo::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 24%, rgba(84, 209, 122, 0.18), transparent 34%),
    radial-gradient(circle at 72% 72%, rgba(34, 211, 238, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(16, 25, 35, 0.7), rgba(6, 11, 18, 0.28));
  border: 1px solid rgba(164, 180, 196, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 60px rgba(34, 211, 238, 0.08);
  transform: rotate(-9deg);
}

.ambient-logo-mark {
  position: relative;
  z-index: 1;
  color: transparent;
  font-family: "Noto Sans SC", serif;
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, rgba(237, 243, 251, 0.95), rgba(34, 211, 238, 0.92) 48%, rgba(84, 209, 122, 0.88));
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 18px 48px rgba(34, 211, 238, 0.16);
}

button, input, select, textarea {
  font: inherit;
  border: 0;
  outline: 0;
}

.layout {
  position: relative;
  z-index: 1;
  height: 100vh;
  max-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  overflow: hidden;
}

.mobile-topbar,
.mobile-settings-backdrop,
.mobile-close-settings {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sidebar,
.chat-shell,
.drawer,
.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.sidebar {
  min-height: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(15, 22, 32, 0.94) 0%, rgba(11, 17, 25, 0.96) 100%);
}

.sidebar-brand {
  min-height: 86px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(84, 209, 122, 0.2), transparent 38%),
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.2), transparent 36%),
    linear-gradient(145deg, rgba(16, 25, 35, 0.86), rgba(6, 11, 18, 0.54));
  border: 1px solid rgba(164, 180, 196, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 40px rgba(0, 0, 0, 0.18);
}

.sidebar-brand-mark {
  flex: 0 0 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: transparent;
  font-family: "Noto Sans SC", serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  background:
    linear-gradient(135deg, rgba(237, 243, 251, 0.95), rgba(34, 211, 238, 0.92) 52%, rgba(84, 209, 122, 0.88));
  background-clip: text;
  -webkit-background-clip: text;
  box-shadow: inset 0 0 0 1px rgba(237, 243, 251, 0.08);
}

.sidebar-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-brand-copy strong {
  font-size: 17px;
}

.sidebar-brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.service-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-radius: 20px;
  color: #effdff;
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(29, 115, 132, 0.5), rgba(29, 155, 109, 0.32));
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(34, 211, 238, 0.1);
}

.service-card strong {
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.service-card span {
  padding: 7px 9px;
  border-radius: 12px;
  color: #dbfbff;
  font-family: "Barlow", "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 800;
  background: rgba(5, 12, 18, 0.36);
  border: 1px solid rgba(237, 243, 251, 0.09);
  overflow-wrap: anywhere;
}

.chat-shell {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 24, 34, 0.96) 0%, rgba(12, 18, 27, 0.98) 100%);
}

.editor-overlay {
  --drawer-strip-width: 48px;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: clamp(124px, 11vw, 168px);
  z-index: 40;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 10px 10px 10px 0;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.09), transparent 24%),
    linear-gradient(90deg, rgba(4, 8, 14, 0), rgba(4, 8, 14, 0.72) 18%, rgba(4, 8, 14, 0.78));
  backdrop-filter: blur(22px);
  animation: overlay-fade-in 180ms ease-out both;
  overflow: hidden;
  transition: background 180ms ease, backdrop-filter 180ms ease;
}

.editor-overlay.is-collapsed {
  pointer-events: none;
  background: transparent;
  backdrop-filter: none;
}

.editor-overlay[hidden] {
  display: none !important;
}

.drawer {
  position: relative;
  width: 100%;
  height: calc(100vh - 20px);
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(14, 20, 30, 0.98) 0%, rgba(8, 12, 19, 0.98) 100%);
  animation: drawer-slide-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease;
  will-change: transform;
}

.drawer::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 8px;
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.55;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
  pointer-events: none;
}

.editor-overlay.is-collapsed .drawer {
  animation: none;
  transform: translateX(calc(100% - var(--drawer-strip-width)));
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.editor-overlay.is-collapsed .drawer > * {
  opacity: 0;
  pointer-events: none;
}

.drawer-toggle {
  position: absolute;
  top: 50%;
  left: 2px;
  z-index: 3;
  padding: 13px 8px;
  border-radius: 999px;
  color: #ecfbff;
  background:
    linear-gradient(180deg, rgba(25, 87, 101, 0.96), rgba(13, 41, 56, 0.98));
  border: 1px solid rgba(34, 211, 238, 0.34);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: left 220ms ease, right 220ms ease, transform 180ms ease, background 180ms ease;
  writing-mode: vertical-rl;
}

.drawer-toggle:hover {
  transform: translateY(-50%) translateX(-1px);
}

.drawer-toggle span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.editor-overlay.is-collapsed .drawer-toggle {
  left: auto;
  right: 11px;
}

.drawer-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Barlow", "Noto Sans SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, strong, button {
  font-family: "Barlow", "Noto Sans SC", sans-serif;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.subtle,
.status,
.reference-meta,
.helper-row,
.message p {
  color: var(--muted);
}

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

.side-note {
  margin-top: auto;
}

.field-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.field-hint.warning {
  padding: 8px 10px;
  border-radius: 12px;
  color: #ffe9b5;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.custom-size-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.section-count {
  padding: 4px 8px;
  border-radius: 999px;
  color: #c9f7ff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.16);
}

.prompt-board {
  background:
    radial-gradient(circle at 18% 12%, rgba(84, 209, 122, 0.14), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(34, 211, 238, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(13, 22, 32, 0.96), rgba(8, 14, 22, 0.96));
}

.prompt-board-inline {
  margin-top: 12px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(164, 180, 196, 0.1);
  background:
    radial-gradient(circle at 12% 8%, rgba(84, 209, 122, 0.13), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(34, 211, 238, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(9, 15, 23, 0.9), rgba(6, 10, 16, 0.72));
}

.prompt-board-kicker {
  padding: 4px 8px;
  border-radius: 999px;
  color: #c9f7ff;
  font-size: 11px;
  font-weight: 800;
  background: rgba(34, 211, 238, 0.11);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.prompt-board-intro {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.prompt-sample-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.prompt-board-inline .prompt-sample-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.prompt-sample-card {
  width: 100%;
  min-height: 92px;
  padding: 8px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 18px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(164, 180, 196, 0.11);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.prompt-sample-card:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.32);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.09), rgba(255, 255, 255, 0.035));
}

.prompt-board-inline .prompt-sample-card {
  min-height: 0;
  padding: 7px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}

.prompt-visual {
  position: relative;
  height: 76px;
  border-radius: 16px;
  overflow: hidden;
  background: #111b27;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 22px rgba(0, 0, 0, 0.18);
}

.prompt-board-inline .prompt-visual {
  height: 76px;
  width: 100%;
}

.prompt-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prompt-visual::before,
.prompt-visual::after,
.prompt-visual i {
  content: "";
  position: absolute;
  display: block;
}

.prompt-visual.medical {
  background:
    radial-gradient(circle at 64% 36%, rgba(34, 211, 238, 0.58), transparent 22%),
    linear-gradient(135deg, #102837, #071018);
}

.prompt-visual.medical::before {
  left: 23px;
  top: 10px;
  width: 10px;
  height: 36px;
  border-radius: 999px;
  background: rgba(237, 243, 251, 0.88);
}

.prompt-visual.medical::after {
  left: 10px;
  top: 23px;
  width: 36px;
  height: 10px;
  border-radius: 999px;
  background: rgba(237, 243, 251, 0.88);
}

.prompt-visual.biology {
  background:
    radial-gradient(circle at 70% 70%, rgba(84, 209, 122, 0.5), transparent 22%),
    linear-gradient(135deg, #0d2a24, #071018);
}

.prompt-visual.biology::before {
  left: 9px;
  top: 12px;
  width: 38px;
  height: 32px;
  border: 2px solid rgba(194, 255, 216, 0.72);
  border-left: 0;
  border-right: 0;
  border-radius: 50%;
  transform: rotate(-28deg);
}

.prompt-visual.biology::after {
  left: 15px;
  top: 9px;
  width: 26px;
  height: 38px;
  border: 2px solid rgba(84, 209, 122, 0.7);
  border-left: 0;
  border-right: 0;
  border-radius: 50%;
  transform: rotate(28deg);
}

.prompt-visual.paper {
  background:
    linear-gradient(180deg, rgba(237, 243, 251, 0.13), transparent),
    #101925;
}

.prompt-visual.paper::before {
  left: 11px;
  top: 12px;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.75);
  box-shadow:
    0 12px 0 rgba(164, 180, 196, 0.55),
    0 24px 0 rgba(84, 209, 122, 0.58);
}

.prompt-visual.paper::after {
  right: 10px;
  bottom: 9px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(237, 243, 251, 0.45);
}

.prompt-visual.ppt {
  background:
    radial-gradient(circle at 80% 26%, rgba(34, 211, 238, 0.5), transparent 24%),
    linear-gradient(135deg, #16213a, #071018);
}

.prompt-visual.ppt::before {
  left: 10px;
  top: 12px;
  width: 36px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid rgba(237, 243, 251, 0.5);
}

.prompt-visual.ppt::after {
  left: 17px;
  bottom: 11px;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: rgba(84, 209, 122, 0.72);
}

.prompt-visual.product {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(135deg, #26303c, #0b1017);
}

.prompt-visual.product::before {
  left: 17px;
  top: 11px;
  width: 22px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(237, 243, 251, 0.82), rgba(164, 180, 196, 0.3));
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

.prompt-visual.product::after {
  left: 22px;
  bottom: 13px;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: rgba(11, 16, 23, 0.52);
}

.prompt-visual.space {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.22), transparent 45%),
    linear-gradient(180deg, #182331, #071018);
}

.prompt-visual.space::before {
  left: 10px;
  top: 13px;
  width: 36px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid rgba(237, 243, 251, 0.46);
  transform: skewY(-9deg);
}

.prompt-visual.space::after {
  right: 9px;
  bottom: 10px;
  width: 28px;
  height: 20px;
  border-radius: 5px;
  background: rgba(84, 209, 122, 0.18);
  border: 1px solid rgba(84, 209, 122, 0.38);
}

.prompt-visual.course {
  background:
    radial-gradient(circle at 72% 24%, rgba(84, 209, 122, 0.45), transparent 25%),
    linear-gradient(135deg, #1a2434, #071018);
}

.prompt-visual.course::before {
  left: 11px;
  top: 12px;
  width: 34px;
  height: 22px;
  border-radius: 7px;
  background: rgba(237, 243, 251, 0.12);
  border: 2px solid rgba(34, 211, 238, 0.45);
}

.prompt-visual.course::after {
  left: 16px;
  bottom: 12px;
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: rgba(237, 243, 251, 0.62);
  box-shadow: 0 -9px 0 rgba(84, 209, 122, 0.56);
}

.prompt-visual.poster {
  background:
    radial-gradient(circle at 62% 22%, rgba(84, 209, 122, 0.5), transparent 24%),
    radial-gradient(circle at 22% 72%, rgba(34, 211, 238, 0.38), transparent 24%),
    linear-gradient(145deg, #102033, #071018);
}

.prompt-visual.poster::before {
  left: 12px;
  top: 10px;
  width: 32px;
  height: 38px;
  border-radius: 8px;
  border: 2px solid rgba(237, 243, 251, 0.36);
}

.prompt-visual.poster::after {
  left: 18px;
  bottom: 16px;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.7);
}

.prompt-sample-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.prompt-sample-content b {
  color: #f2fbff;
  font-size: 13px;
}

.prompt-sample-content small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.feedback-dock {
  margin: 10px 0 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(12, 21, 31, 0.86), rgba(7, 13, 21, 0.7));
  border: 1px solid rgba(164, 180, 196, 0.1);
  overflow: hidden;
}

.feedback-toggle {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.feedback-toggle > span:first-child {
  font-weight: 800;
}

.feedback-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(164, 180, 196, 0.1);
}

.feedback-dock.is-collapsed .feedback-body {
  display: none;
}

.feedback-compose-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.feedback-compose-row textarea {
  min-height: 44px;
  height: 44px;
  resize: none;
  padding: 8px 10px;
  background: #0d141d;
  border: 1px solid var(--line);
}

.feedback-compose-row .ghost-button {
  flex: 0 0 auto;
}

.feedback-status {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.compact-feedback-list {
  flex: 1;
  min-width: 0;
  max-height: 86px;
}

.feedback-empty,
.feedback-item {
  border-radius: 14px;
  border: 1px solid rgba(164, 180, 196, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.feedback-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.feedback-item {
  padding: 9px 10px;
}

.feedback-item p {
  margin: 0;
  color: #d8e8f5;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.feedback-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.side-note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-note-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(164, 180, 196, 0.1);
}

.side-note-item span {
  flex: 0 0 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #d8f7ff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(34, 211, 238, 0.16);
}

.side-note-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section-head,
.drawer-head,
.chat-head,
.composer-actions,
.helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-head {
  min-height: 60px;
  padding: 8px;
  border: 1px solid rgba(164, 180, 196, 0.12);
  border-radius: 22px;
  background: rgba(9, 14, 22, 0.9);
  justify-content: space-between;
  align-items: center;
}

.close-button {
  margin-right: 8px;
}

.editor-tool-list {
  flex: 1;
  justify-content: center;
}

.drawer-head-left,
.drawer-head-right {
  display: flex;
  align-items: center;
}

.drawer-head-left {
  min-width: 280px;
}

.drawer-head-right {
  min-width: 160px;
  justify-content: flex-end;
}

.head-badge {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  border: 1px solid rgba(164, 180, 196, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.drawer-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 12px;
}

.mode-switch,
.tool-list,
.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mode-chip,
.tool-chip,
.ghost-button,
.image-actions a,
.image-actions button {
  padding: 9px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.mode-chip,
.tool-chip,
.ghost-button,
.image-actions a,
.image-actions button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(164, 180, 196, 0.14);
}

.mode-chip.active,
.tool-chip.active {
  color: #f4fbff;
  border-color: rgba(53, 217, 238, 0.42);
  background:
    linear-gradient(180deg, rgba(26, 87, 101, 0.96), rgba(18, 56, 73, 0.96)),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 0 1px rgba(122, 237, 255, 0.12);
}

.mode-chip:hover,
.tool-chip:hover,
.ghost-button:hover,
#submitButton:hover,
#applyToolButton:hover,
.image-actions a:hover,
.image-actions button:hover {
  transform: translateY(-1px);
}

.ghost-button:disabled,
.mode-chip:disabled,
.tool-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.field,
.upload-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span,
.upload-field span {
  font-size: 13px;
  font-weight: 700;
  color: #d7e3f0;
}

textarea,
input[type="text"],
select,
input[type="number"],
input[type="range"],
input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  background: #0d141d;
  border: 1px solid var(--line);
}

textarea {
  resize: vertical;
  min-height: 86px;
  line-height: 1.6;
}

.chat-head {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(164, 180, 196, 0.12);
  background:
    linear-gradient(180deg, rgba(19, 26, 37, 0.94) 0%, rgba(13, 18, 27, 0.72) 100%);
}

.chat-head-main strong {
  display: block;
  font-size: 20px;
}

.chat-head-main .eyebrow {
  margin-bottom: 6px;
}

.chat-head-status {
  display: flex;
  align-items: center;
}

.status {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(164, 180, 196, 0.12);
}

.messages {
  padding: 18px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(8, 13, 20, 0.18), rgba(8, 13, 20, 0));
}

.message {
  display: flex;
  position: relative;
}

.message.user {
  justify-content: flex-end;
}

.message.assistant {
  justify-content: flex-start;
}

.bubble {
  max-width: min(760px, 88%);
  padding: 14px 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(20, 27, 38, 0.96) 0%, rgba(14, 19, 29, 0.98) 100%);
  border: 1px solid rgba(164, 180, 196, 0.12);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.14);
}

.message.user .bubble {
  background: linear-gradient(135deg, rgba(20, 66, 78, 0.98), rgba(26, 94, 83, 0.98));
  border-color: rgba(84, 209, 122, 0.22);
}

.message.user .bubble p,
.message.user .bubble .meta {
  color: rgba(255, 255, 255, 0.78);
}

.message.pending .bubble {
  width: min(520px, 88%);
  padding: 12px;
}

.pending-frame {
  position: relative;
  height: clamp(190px, 32vh, 300px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background:
    radial-gradient(circle at 35% 30%, rgba(84, 209, 122, 0.18), transparent 28%),
    radial-gradient(circle at 68% 62%, rgba(34, 211, 238, 0.2), transparent 26%),
    linear-gradient(145deg, rgba(9, 16, 25, 0.98), rgba(15, 24, 34, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 38px rgba(0, 0, 0, 0.18);
  animation: pending-breathe 1.9s ease-in-out infinite;
}

.pending-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.06) 38%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.06) 62%, transparent 100%);
  transform: translateX(-100%);
  animation: pending-sweep 2.2s ease-in-out infinite;
}

.pending-frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  border: 1px solid rgba(237, 243, 251, 0.12);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.8;
}

.pending-timer {
  width: max-content;
  margin: 10px 2px 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #d9fbff;
  font-family: "Barlow", "Noto Sans SC", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.pending-notice {
  margin: 8px 2px 0;
  padding: 8px 10px;
  border-radius: 14px;
  color: #ffe9b5;
  font-size: 12px;
  line-height: 1.5;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.message-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.bubble > .message-gallery:first-child {
  margin-top: 0;
}

.image-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(8, 12, 18, 0.92);
  border: 1px solid rgba(164, 180, 196, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.message.assistant:not(.pending) .image-card:only-child {
  padding: 0;
}

.image-card > button {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}

.image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.floating-download {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 11px;
  border-radius: 999px;
  color: #f4fbff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(29, 115, 132, 0.94), rgba(29, 155, 109, 0.94));
  border: 1px solid rgba(237, 243, 251, 0.2);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.image-card:hover .floating-download,
.image-card:focus-within .floating-download {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .floating-download {
    opacity: 1;
    transform: none;
  }
}

.composer {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(164, 180, 196, 0.12);
  background: rgba(9, 14, 21, 0.86);
}

.composer-shell {
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(164, 180, 196, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 24, 34, 0.96) 0%, rgba(11, 16, 24, 0.98) 100%);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.composer-shell > textarea {
  border: 0;
  background: transparent;
  min-height: 72px;
  padding: 8px 10px 0;
}

.composer-meta-group {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.token-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 380px);
  padding: 6px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(20, 29, 41, 0.92), rgba(10, 16, 24, 0.92));
  border: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.token-panel input {
  width: min(220px, 42vw);
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 12px;
  font-family: "Barlow", "Noto Sans SC", sans-serif;
}

.token-remaining {
  white-space: nowrap;
  color: #c9f7ff;
  font-size: 12px;
  font-weight: 800;
}

.editor-token-panel {
  margin-left: auto;
}

#submitButton,
#applyToolButton {
  padding: 11px 16px;
  border-radius: 14px;
  color: #f4fbff;
  background: linear-gradient(135deg, #1d7384, #1d9b6d);
  cursor: pointer;
}

#submitButton:disabled,
#applyToolButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.drawer-preview {
  min-height: 0;
}

.canvas-shell {
  position: relative;
  height: 100%;
  min-height: 0;
  padding: 50px 10px 10px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.08), transparent 28%),
    linear-gradient(180deg, #121926 0%, #090d14 100%);
  overflow: hidden;
}

.canvas-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  pointer-events: none;
}

.canvas-status-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 18px;
  border: 1px solid rgba(164, 180, 196, 0.12);
  background: rgba(8, 13, 20, 0.7);
  backdrop-filter: blur(14px);
}

.canvas-status-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #d6f9ff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.24);
}

.canvas-status-text {
  color: var(--muted);
  font-size: 12px;
}

.canvas-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(164, 180, 196, 0.08) 25%, transparent 25%, transparent 75%, rgba(164, 180, 196, 0.08) 75%),
    linear-gradient(45deg, rgba(164, 180, 196, 0.08) 25%, transparent 25%, transparent 75%, rgba(164, 180, 196, 0.08) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
  box-shadow: inset 0 0 0 1px rgba(164, 180, 196, 0.08);
}

.canvas-stage img,
.canvas-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.canvas-stage img {
  object-fit: contain;
  background: #090d14;
}

.canvas-stage canvas {
  touch-action: none;
  cursor: crosshair;
}

.tool-panel {
  padding: 14px;
}

.thumb-rail {
  padding: 10px 6px 10px 2px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.thumb-rail-head {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.08em;
}

.thumb-rail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding-right: 2px;
}

.thumb-item {
  padding: 0;
  border: 1px solid rgba(164, 180, 196, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10, 15, 22, 0.94);
  cursor: pointer;
  aspect-ratio: 3 / 4;
}

.thumb-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-item.active {
  transform: translateX(-2px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow:
    0 0 0 2px rgba(34, 211, 238, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.22);
}

.thumb-empty {
  display: grid;
  place-items: center;
  min-height: 88px;
  border-radius: 18px;
  color: var(--muted);
  font-size: 12px;
  border: 1px dashed rgba(164, 180, 196, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.drawer-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(164, 180, 196, 0.12);
  border-radius: 22px;
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(18px);
}

.mini-toolbar-block {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 7px 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(164, 180, 196, 0.08);
}

.inline-field {
  min-width: 150px;
}

.inline-field select,
.inline-field input[type="range"] {
  min-width: 150px;
}

.slim-field span {
  font-size: 12px;
}

.prompt-block {
  min-width: 0;
  flex: 1;
}

.prompt-field {
  min-width: 0;
  width: 100%;
}

.prompt-field textarea {
  min-height: 46px;
  height: 46px;
  resize: none;
}

.intro .bubble {
  max-width: min(1040px, 96%);
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.12), transparent 34%),
    linear-gradient(180deg, #121c27 0%, #0d141d 100%);
}

@keyframes pending-breathe {
  0%, 100% {
    transform: scale(1);
    border-color: rgba(34, 211, 238, 0.18);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.04),
      0 18px 38px rgba(0, 0, 0, 0.18);
  }
  50% {
    transform: scale(0.985);
    border-color: rgba(84, 209, 122, 0.34);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 22px 48px rgba(34, 211, 238, 0.12);
  }
}

@keyframes pending-sweep {
  0% {
    transform: translateX(-110%);
  }
  58%, 100% {
    transform: translateX(110%);
  }
}

@keyframes overlay-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes drawer-slide-in {
  from {
    transform: translateX(34px);
    opacity: 0.88;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 1400px) {
  .layout {
    max-width: 1280px;
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .ambient-logo {
    opacity: 0.26;
    transform: scale(0.82);
    transform-origin: top left;
  }

  .layout {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .sidebar,
  .drawer,
  .chat-shell {
    min-height: auto;
  }

  .chat-shell {
    min-height: 70vh;
  }

  .feedback-compose-row {
    flex-direction: column;
    align-items: stretch;
  }

  .compact-feedback-list {
    max-height: 140px;
  }

  .prompt-board-inline .prompt-sample-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-board-inline .prompt-sample-card {
    min-height: 0;
  }

  .prompt-board-inline .prompt-visual {
    height: 78px;
  }

  .editor-overlay {
    left: 0;
    padding: 10px;
    background:
      radial-gradient(circle at top right, rgba(34, 211, 238, 0.09), transparent 24%),
      rgba(4, 8, 14, 0.72);
  }

  .drawer {
    width: 100%;
    height: calc(100vh - 20px);
    min-height: 0;
  }

  .editor-tool-list {
    width: 100%;
    justify-content: flex-start;
  }

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

  .drawer-head-left,
  .drawer-head-right {
    min-width: auto;
  }

  .drawer-body {
    grid-template-columns: 1fr;
  }

  .thumb-rail {
    padding: 0;
  }

  .thumb-rail-list {
    flex-direction: row;
  }

  .thumb-item {
    width: 64px;
    flex: 0 0 64px;
  }

  .drawer-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .canvas-shell {
    min-height: 52vh;
  }

  .chat-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    background:
      radial-gradient(circle at 50% -10%, rgba(34, 211, 238, 0.15), transparent 30%),
      linear-gradient(180deg, #0b111a 0%, #070b11 100%);
  }

  .ambient-logo {
    display: none;
  }

  .layout {
    height: 100dvh;
    max-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 31;
    min-height: 54px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 68px;
    align-items: center;
    gap: 8px;
    background: rgba(7, 11, 17, 0.92);
    border-bottom: 1px solid rgba(164, 180, 196, 0.12);
    backdrop-filter: blur(20px);
  }

  .mobile-brand {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, auto) auto;
    justify-content: center;
    align-items: center;
    gap: 7px;
    color: #f4fbff;
  }

  .mobile-brand span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #ecfbff;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(84, 209, 122, 0.18));
    border: 1px solid rgba(237, 243, 251, 0.1);
  }

  .mobile-brand strong {
    overflow: hidden;
    font-size: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-brand small {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
  }

  .mobile-icon-button,
  .mobile-close-settings {
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 999px;
    color: #e9fbff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(164, 180, 196, 0.14);
  }

  .mobile-icon-button:last-child {
    justify-self: end;
  }

  .mobile-close-settings {
    display: block;
    margin-bottom: 2px;
  }

  .mobile-settings-backdrop {
    position: fixed;
    inset: 0;
    z-index: 32;
    display: block;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 180ms ease;
  }

  body.mobile-settings-open .mobile-settings-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 33;
    width: min(86vw, 340px);
    max-height: 100dvh;
    padding: calc(12px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom));
    border-radius: 0 24px 24px 0;
    transform: translateX(-104%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 28px 0 60px rgba(0, 0, 0, 0.34);
  }

  body.mobile-settings-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-brand {
    min-height: 64px;
    border-radius: 20px;
  }

  .sidebar-brand-mark {
    flex-basis: 44px;
    height: 44px;
    font-size: 28px;
  }

  .service-card,
  .side-note {
    display: none;
  }

  .chat-shell {
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    grid-template-rows: minmax(0, 1fr) auto;
    background: transparent;
  }

  .messages {
    padding: 14px 12px 18px;
    gap: 14px;
    background: transparent;
  }

  .bubble,
  .intro .bubble {
    max-width: 100%;
    padding: 12px 13px;
    border-radius: 18px;
  }

  .message.user .bubble {
    max-width: 86%;
    border-radius: 18px 18px 6px 18px;
  }

  .message.assistant .bubble {
    border-radius: 18px 18px 18px 6px;
  }

  .prompt-board-inline {
    margin-top: 10px;
    padding: 8px;
  }

  .prompt-board-inline .prompt-sample-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .prompt-board-inline .prompt-sample-card {
    padding: 7px;
    border-radius: 16px;
  }

  .prompt-board-inline .prompt-visual {
    height: 92px;
  }

  .prompt-sample-content small {
    display: none;
  }

  .message-gallery {
    grid-template-columns: 1fr;
  }

  .composer {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 0;
    background: linear-gradient(180deg, rgba(7, 11, 17, 0), rgba(7, 11, 17, 0.96) 18%);
  }

  .composer-shell {
    padding: 8px;
    border-radius: 24px;
    background: rgba(15, 21, 30, 0.96);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
  }

  .composer-shell > textarea {
    min-height: 52px;
    max-height: 150px;
    padding: 8px 10px 4px;
    font-size: 15px;
  }

  .composer-actions {
    align-items: flex-end;
    gap: 8px;
  }

  .composer-meta-group {
    flex: 1;
    gap: 6px;
  }

  .reference-meta {
    max-width: 48vw;
    overflow: hidden;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  #submitButton {
    min-width: 74px;
    padding: 10px 12px;
    border-radius: 999px;
  }

  .token-panel {
    width: 100%;
    flex-wrap: wrap;
  }

  .token-panel input {
    width: 100%;
  }

  .feedback-dock {
    margin-top: 8px;
  }

  .feedback-toggle {
    min-height: 34px;
    grid-template-columns: auto auto;
  }

  .feedback-toggle small {
    display: none;
  }

  .feedback-compose-row {
    gap: 8px;
  }

  .editor-overlay {
    padding: 0;
    background: rgba(4, 8, 14, 0.88);
  }

  .drawer {
    height: 100dvh;
    border-radius: 0;
  }

  .drawer-head {
    border-radius: 18px;
  }

  .drawer-title-block,
  .drawer-head-right {
    display: none;
  }

  .editor-tool-list {
    justify-content: flex-start;
  }

  .tool-chip,
  .ghost-button {
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 13px;
  }

  .canvas-shell {
    min-height: 46vh;
    padding: 44px 8px 8px;
  }

  .canvas-status-text {
    display: none;
  }

  .drawer-toolbar {
    gap: 8px;
    padding: 8px;
  }

  .mini-toolbar-block {
    flex-wrap: wrap;
  }

  .inline-field,
  .inline-field select,
  .inline-field input[type="range"] {
    min-width: 0;
    width: 100%;
  }

  .prompt-field textarea {
    height: 58px;
  }

  #applyToolButton {
    width: 100%;
    border-radius: 999px;
  }
}
