/* Sydney · 仿 2023 年 2 月新必应聊天界面（浅色 / 深色两套主题） */

:root {
  --c-creative: #8b257e;
  --c-balanced: #1b4aef;
  --c-precise: #005366;
  --g-creative: linear-gradient(90deg, #904887 10.14%, #8b257e 59.3%, #8b257e 88.07%);
  --g-balanced: linear-gradient(90deg, #2870ea 10.79%, #1b4aef 87.08%);
  --g-precise: linear-gradient(90deg, #006880 10.79%, #005366 87.08%);

  --bg: #f4f4f7;
  --blob-1: rgba(96, 156, 255, .30);
  --blob-2: rgba(214, 122, 222, .22);
  --blob-3: rgba(255, 190, 140, .22);
  --text: #16161a;
  --text-2: #4b4b55;
  --text-3: #75757f;
  --card: #fff;
  --card-2: #f6f6f9;
  --glass: rgba(255, 255, 255, .72);
  --line: rgba(0, 0, 0, .07);
  --line-2: rgba(0, 0, 0, .14);
  --shadow: 0 .3px .9px rgba(0, 0, 0, .10), 0 1.6px 3.6px rgba(0, 0, 0, .12);
  --shadow-lg: 0 10px 30px rgba(24, 24, 64, .12), 0 1px 3px rgba(0, 0, 0, .08);
  --code-bg: #f2f2f5;
  --cite-bg: #dfe7fb;
  --cite-text: #1a3fae;
  --link: #174ae4;
  --ok: #13a10e;
  --warn: #d38200;
  --danger: #c4314b;
  --overlay: rgba(20, 20, 30, .38);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-creative: #e08ad4;
    --c-balanced: #7fa2ff;
    --c-precise: #4fc3d9;
    --bg: #141418;
    --blob-1: rgba(64, 110, 230, .20);
    --blob-2: rgba(160, 70, 170, .18);
    --blob-3: rgba(200, 120, 70, .10);
    --text: #ececf1;
    --text-2: #b9b9c4;
    --text-3: #8a8a96;
    --card: #24242b;
    --card-2: #1c1c22;
    --glass: rgba(36, 36, 43, .72);
    --line: rgba(255, 255, 255, .07);
    --line-2: rgba(255, 255, 255, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .28);
    --shadow-lg: 0 12px 34px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4);
    --code-bg: #1a1a20;
    --cite-bg: rgba(127, 162, 255, .16);
    --cite-text: #a9c0ff;
    --link: #8fb0ff;
    --ok: #54c45e;
    --warn: #f0a93b;
    --danger: #ff6b81;
    --overlay: rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --c-creative: #e08ad4;
  --c-balanced: #7fa2ff;
  --c-precise: #4fc3d9;
  --bg: #141418;
  --blob-1: rgba(64, 110, 230, .20);
  --blob-2: rgba(160, 70, 170, .18);
  --blob-3: rgba(200, 120, 70, .10);
  --text: #ececf1;
  --text-2: #b9b9c4;
  --text-3: #8a8a96;
  --card: #24242b;
  --card-2: #1c1c22;
  --glass: rgba(36, 36, 43, .72);
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .28);
  --shadow-lg: 0 12px 34px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4);
  --code-bg: #1a1a20;
  --cite-bg: rgba(127, 162, 255, .16);
  --cite-text: #a9c0ff;
  --link: #8fb0ff;
  --ok: #54c45e;
  --warn: #f0a93b;
  --danger: #ff6b81;
  --overlay: rgba(0, 0, 0, .55);
  color-scheme: dark;
}

body[data-style="creative"] { --accent: var(--c-creative); --grad: var(--g-creative); }
body[data-style="balanced"] { --accent: var(--c-balanced); --grad: var(--g-balanced); }
body[data-style="precise"]  { --accent: var(--c-precise);  --grad: var(--g-precise); }
body { --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent); }

/* ---------------------------------------------------------------- 基础布局 */

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC",
    system-ui, sans-serif, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji";
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, select, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 55% at 6% 0%, var(--blob-1), transparent 72%),
    radial-gradient(38% 50% at 100% 14%, var(--blob-2), transparent 72%),
    radial-gradient(55% 45% at 55% 110%, var(--blob-3), transparent 72%),
    var(--bg);
}

.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- 顶栏 */

.top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-orb { width: 30px; height: 30px; flex: none; }
.brand-text { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.brand-text b { font-size: 18px; font-weight: 600; letter-spacing: .2px; }
.brand-text span { font-size: 12px; color: var(--text-3); }

.model-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 46vw;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-2);
  font-size: 13px;
  transition: border-color .2s, color .2s;
}
.model-pill:hover { color: var(--text); border-color: var(--accent); }
.model-pill svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.model-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#scroller {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

/* ---------------------------------------------------------------- 欢迎页 */

#welcome { padding: 26px 0 30px; text-align: center; animation: fadeUp .5s ease both; }
.hero-orb {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 10px 22px rgba(92, 80, 230, .35));
  animation: breathe 4.5s ease-in-out infinite;
}
#welcome h1 { margin: 14px 0 4px; font-size: 34px; font-weight: 600; letter-spacing: .5px; }
.hero-sub { max-width: 540px; margin: 0 auto 28px; color: var(--text-2); }

.examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
  text-align: left;
}
.ex-col h3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.ex-col h3 span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 20px;
}
button.ex {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  transition: transform .15s, box-shadow .15s;
}
button.ex:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.secrets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 22px;
}
.secrets > span { margin-right: 2px; color: var(--text-3); font-size: 13px; }
.secrets button.chip {
  display: inline-block;
  width: auto;
  padding: 4px 14px;
  border: 1px dashed var(--accent);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: none;
  color: var(--accent);
  font-size: 13.5px;
}
.secrets button.chip:hover { transform: none; box-shadow: none; background: var(--accent-soft); }

.disclaimer { max-width: 620px; margin: 0 auto 26px; color: var(--text-2); font-size: 13px; line-height: 1.7; }
.disclaimer em { color: var(--accent); }
.disclaimer .fan-note { display: inline-block; margin-top: 4px; font-size: 12px; opacity: .75; }

.tone-title { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.tone-btns {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.tone-btns button {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 112px;
  padding: 7px 14px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .2s, color .2s;
}
.tone-btns button small { margin-bottom: 2px; font-size: 11px; font-weight: 400; opacity: .85; }
.tone-btns button:hover { background: var(--card-2); color: var(--text); }
.tone-btns button[aria-checked="true"] { background: var(--grad); color: #fff; }

/* ---------------------------------------------------------------- 对话 */

#thread { padding: 6px 0 10px; }
.tone-pill { display: flex; justify-content: center; margin: 4px 0 18px; }
.tone-pill span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text-3);
  font-size: 12px;
}
.tone-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

.turn { margin-bottom: 22px; }

.msg-user { display: flex; justify-content: flex-end; margin-bottom: 14px; animation: fadeUp .25s ease both; }
.msg-user .bubble {
  max-width: min(80%, 640px);
  padding: 9px 16px;
  border-radius: 16px 16px 4px 16px;
  background: var(--grad);
  box-shadow: var(--shadow);
  color: #fff;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-bot { animation: fadeUp .3s ease both; }
.steps { display: flex; flex-direction: column; gap: 3px; margin: 0 0 8px 2px; color: var(--text-2); font-size: 13px; }
.steps:empty { display: none; }
.step { display: flex; align-items: center; gap: 7px; }
.step b { color: var(--text); font-weight: 600; }
.step .ico { width: 14px; height: 14px; flex: none; }
.step svg.ico { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.step .spin { border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }

.card {
  width: fit-content;
  min-width: 90px;
  max-width: 100%;
  padding: 12px 18px;
  border-radius: 16px 16px 16px 4px;
  background: var(--card);
  box-shadow: var(--shadow);
  word-break: break-word;
}
.card.error { border-left: 3px solid var(--danger); }

.peek {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
  padding: 1px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  transition: color .15s, border-color .15s, background .15s;
}
.peek:hover, .peek[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.peek[aria-expanded="true"] { background: var(--accent-soft); }
.inner {
  margin: 0 0 10px;
  padding: 7px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
  color: var(--text-2);
  font-size: 13.5px;
  font-style: italic;
}
.inner p { margin: 0; }
.inner p + p { margin-top: 6px; }

.typing { display: inline-flex; align-items: center; gap: 5px; height: 24px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .3; animation: blink 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.typing em { margin-left: 6px; color: var(--text-3); font-size: 13px; font-style: normal; }

.err { color: var(--danger); font-size: 14px; white-space: pre-wrap; }
.retry {
  margin-top: 10px;
  padding: 4px 14px;
  border: 1px solid var(--danger);
  border-radius: 999px;
  background: transparent;
  color: var(--danger);
  font-size: 13px;
}
.retry:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }

.retracted { margin: 0; color: var(--text-2); }
.retract-toggle {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 12.5px;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.retract-orig {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  background: var(--card-2);
  opacity: .85;
}
.card.retracting .body { animation: retract 1.1s ease forwards; }

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12.5px;
}
.foot:empty { display: none; }
.learn { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.learn > span { color: var(--text-2); font-weight: 600; }
a.src {
  max-width: 230px;
  padding: 1px 9px;
  border-radius: 6px;
  background: var(--cite-bg);
  color: var(--cite-text);
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.src:hover { text-decoration: underline; }
.counter { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; white-space: nowrap; }
.counter i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.counter.warn i { background: var(--warn); }
.counter.full i { background: var(--danger); }
.stopped-tag { font-style: italic; }

.notice { display: flex; justify-content: center; margin: 2px 0 22px; animation: fadeUp .3s ease both; }
.notice span {
  max-width: 560px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text-2);
  font-size: 13.5px;
  text-align: center;
}

/* ---------------------------------------------------------------- Markdown */

.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 .75em; }
.md h3, .md h4, .md h5, .md h6 { margin: 1em 0 .45em; line-height: 1.35; }
.md h3 { font-size: 1.2em; }
.md h4 { font-size: 1.08em; }
.md h5, .md h6 { font-size: 1em; }
.md ul, .md ol { margin: 0 0 .75em; padding-left: 1.5em; }
.md li { margin: .2em 0; }
.md li > ul, .md li > ol { margin: .2em 0; }
.md a { color: var(--link); text-decoration: none; }
.md a:hover { text-decoration: underline; }
.md code {
  padding: .1em .38em;
  border-radius: 4px;
  background: var(--code-bg);
  font: .9em/1.5 "Cascadia Code", Consolas, "Courier New", monospace;
}
.md pre {
  margin: 0 0 .8em;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code-bg);
  overflow-x: auto;
}
.md pre code { padding: 0; background: none; font-size: 13px; white-space: pre; }
.md blockquote { margin: 0 0 .75em; padding: 2px 0 2px 12px; border-left: 3px solid var(--line-2); color: var(--text-2); }
.md hr { margin: 1em 0; border: 0; border-top: 1px solid var(--line-2); }
.md .table { margin: 0 0 .8em; overflow-x: auto; }
.md table { border-collapse: collapse; font-size: 14px; }
.md th, .md td { padding: 6px 12px; border: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.md th { background: var(--card-2); font-weight: 600; }
.md del { opacity: .7; }
sup.cite { font-size: inherit; line-height: 0; vertical-align: baseline; }
sup.cite a, sup.cite span {
  position: relative;
  top: -.45em;
  display: inline-block;
  min-width: 16px;
  margin: 0 1px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--cite-bg);
  color: var(--cite-text);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  text-decoration: none;
}

/* ---------------------------------------------------------------- 底部输入区 */

.dock { flex: none; padding: 6px 0 max(16px, env(safe-area-inset-bottom)); }
#stopWrap { display: flex; justify-content: center; margin-bottom: 10px; }
#btnStop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: fadeUp .2s ease both;
}
#btnStop:hover { box-shadow: var(--shadow-lg); }
#btnStop i { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }

#suggestions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
#suggestions:empty { display: none; }
.sug {
  padding: 4px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--card);
  color: var(--accent);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  animation: fadeUp .25s ease both;
  transition: background .15s;
}
.sug:hover { background: var(--accent-soft); }

.composer { display: flex; align-items: flex-end; gap: 10px; }
.broom {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 24px;
  background: var(--grad);
  box-shadow: var(--shadow);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  transition: width .22s ease;
}
.broom svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.broom span { font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .15s; }
.broom:focus-visible { width: 112px; }
.broom:focus-visible span { opacity: 1; }
@media (hover: hover) {
  .broom:hover { width: 112px; }
  .broom:hover span { opacity: 1; }
}
.broom.pulse { animation: pulse 1.6s ease-in-out infinite; }

.inputbox {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  transition: border-color .2s, opacity .2s;
}
.inputbox:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.composer.locked .inputbox { opacity: .55; }
#input {
  display: block;
  width: 100%;
  min-height: 46px;
  max-height: 200px;
  padding: 12px 18px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
}
#input::placeholder { color: var(--text-3); }
.input-meta { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 8px 6px 18px; }
#count { color: var(--text-3); font-size: 12px; }
#btnSend {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
}
#btnSend svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#btnSend:hover:not(:disabled) { background: var(--accent-soft); }
#btnSend:disabled { color: var(--text-3); opacity: .5; cursor: default; }

/* ---------------------------------------------------------------- 设置 */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade .15s ease both;
}
.sheet-card {
  width: min(460px, 100%);
  max-height: 100%;
  padding: 22px 22px 18px;
  overflow-y: auto;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  animation: fadeUp .2s ease both;
}
.sheet-card h2 { margin: 0 0 16px; font-size: 19px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { color: var(--text-2); font-size: 13px; font-weight: 600; }
.field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--card-2);
}
.field.check { flex-direction: row; align-items: center; gap: 10px; }
.field.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.field.check span { color: var(--text); font-size: 14px; font-weight: 400; }
.field.check input:disabled + span { color: var(--text-3); }
.sheet-note { margin: 4px 0 16px; color: var(--text-3); font-size: 12.5px; }
.sheet-note code { padding: 1px 5px; border-radius: 4px; background: var(--code-bg); }
.primary {
  display: block;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
}

/* ---------------------------------------------------------------- 动画 */

@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes retract { to { opacity: .12; filter: blur(3px); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
  50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- 手机 */

@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .top { padding: 8px 16px; }
  .brand-text span { display: none; }
  #welcome { padding-top: 12px; }
  #welcome h1 { font-size: 27px; }
  .hero-orb { width: 60px; height: 60px; }
  .hero-sub { margin-bottom: 20px; }
  .examples { grid-template-columns: 1fr; gap: 12px; }
  .ex-col h3 { flex-direction: row; justify-content: flex-start; margin-bottom: 6px; font-size: 14px; }
  .ex-col h3 span { width: 30px; height: 30px; font-size: 16px; }
  .tone-btns button { min-width: 0; padding: 6px 14px 7px; font-size: 15px; }
  .msg-user .bubble { max-width: 88%; }
  .card { padding: 11px 14px; }
  .broom { width: 44px; height: 44px; padding: 0 10px; border-radius: 22px; }
  .broom:focus-visible { width: 44px; }
  .broom:focus-visible span { opacity: 0; }
  #input { min-height: 42px; padding: 10px 14px 0; }
  .input-meta { padding-left: 14px; }
}
