/* =========================================================================
 * 侯喵事务所 · 样式
 * 设计关键词：奶油纸、猕猴桃绿、猫爪、编辑部小报
 * ========================================================================= */

/* ------------------------------ 变量 ------------------------------ */
:root {
  --kiwi: #abcf53;
  --kiwi-deep: #5c7a22;
  --kiwi-soft: #eef5d8;
  --kiwi-glow: rgba(171, 207, 83, 0.35);
  --peach: #f7cba9;
  --peach-soft: #fdf0e4;
  --coral: #e58a63;
  --ink: #1a2820;
  --ink-2: #43554b;
  --muted: #7d8d83;
  --paper: #fbf9f1;
  --card: #ffffff;
  --line: #e6e5d8;
  --line-soft: #efece1;
  --shadow-sm: 0 2px 8px rgba(26, 40, 32, 0.04);
  --shadow: 0 12px 32px rgba(26, 40, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(26, 40, 32, 0.14);
  --radius: 18px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --kiwi: #b9db6b;
  --kiwi-deep: #cfe89b;
  --kiwi-soft: #27331f;
  --kiwi-glow: rgba(185, 219, 107, 0.22);
  --peach: #6a4a38;
  --peach-soft: #2c2720;
  --coral: #f0a17f;
  --ink: #eaf0e6;
  --ink-2: #b9c6ba;
  --muted: #8b9b90;
  --paper: #101713;
  --card: #18211b;
  --line: #2b392f;
  --line-soft: #233028;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ------------------------------ 基础 ------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(171, 207, 83, 0.22), transparent 62%),
    radial-gradient(900px 520px at -12% 104%, rgba(247, 203, 169, 0.3), transparent 62%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[data-theme="dark"] body {
  background:
    radial-gradient(1000px 520px at 88% -8%, rgba(185, 219, 107, 0.1), transparent 62%),
    radial-gradient(800px 480px at -12% 104%, rgba(240, 161, 127, 0.07), transparent 62%),
    var(--paper);
}

h1,
h2,
h3,
h4,
h5,
p,
figure,
ul,
ol,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

a {
  color: var(--kiwi-deep);
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

::selection {
  background: var(--kiwi-glow);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--kiwi-deep);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  overflow: hidden;
}

.ico {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}

.ico-14 {
  width: 14px;
  height: 14px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* 滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

/* ------------------------------ 布局 ------------------------------ */
.app {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ------------------------------ 侧栏 ------------------------------ */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 18px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 62%, transparent);
  backdrop-filter: blur(14px);
  overflow-y: auto;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--kiwi), #d7eaa4);
  border: 1px solid rgba(26, 40, 32, 0.12);
  box-shadow: 0 8px 18px var(--kiwi-glow);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}

.brand-cat {
  width: 48px;
  height: 48px;
  transform: translateY(3px);
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-weight: 600;
}

.brand-desc {
  margin: 16px 0 20px;
  padding-left: 2px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 14px;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.nav-item:hover {
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border-color: var(--line-soft);
}

.nav-item.is-active {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.nav-ico {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  background: var(--kiwi-soft);
  color: var(--kiwi-deep);
  transition: background 0.18s, color 0.18s;
}

.nav-item.is-active .nav-ico {
  background: var(--kiwi);
  color: #1d2a13;
}

.nav-label {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.nav-label small {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
}

.nav-label small b {
  font-weight: 600;
  color: var(--kiwi-deep);
}

.side-card {
  margin-top: auto;
  padding: 14px 14px 13px;
  border: 1px dashed color-mix(in srgb, var(--kiwi) 60%, var(--line));
  border-radius: 16px;
  background: linear-gradient(160deg, var(--kiwi-soft), color-mix(in srgb, var(--kiwi-soft) 30%, var(--card)));
}

.side-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--kiwi-deep);
  margin-bottom: 6px;
}

.side-card p {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.side-card p b {
  color: var(--ink);
}

.side-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font-size: 10.5px;
  color: var(--muted);
}

.side-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6dbb4a;
  box-shadow: 0 0 0 3px rgba(109, 187, 74, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

.side-foot {
  margin-top: 14px;
  padding: 0 2px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}

.side-foot p + p {
  margin-top: 3px;
}

/* ------------------------------ 主区 ------------------------------ */
.main {
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  flex: none;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(18px, 3.4vw, 34px);
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--paper) 74%, transparent);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.crumbs i {
  font-style: normal;
  opacity: 0.5;
}

.crumbs strong {
  color: var(--ink);
  font-weight: 600;
}

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

.updated {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  transition: border-color 0.18s, color 0.18s, transform 0.18s;
  flex: none;
}

.icon-btn:hover {
  border-color: var(--kiwi);
  color: var(--kiwi-deep);
  transform: rotate(-8deg);
}

#theme-btn .ico-sun {
  display: none;
}

[data-theme="dark"] #theme-btn .ico-sun {
  display: block;
}

[data-theme="dark"] #theme-btn .ico-moon {
  display: none;
}

.view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 26px clamp(18px, 3.4vw, 40px) 40px;
}

.view[hidden] {
  display: none !important;
}

.view-chat {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ------------------------------ 对话 ------------------------------ */
.messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 30px clamp(16px, 3.4vw, 44px) 12px;
  overscroll-behavior: contain;
}

.messages:not(.has-chat) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.messages:not(.has-chat) .welcome {
  margin: 0 auto;
  width: 100%;
}

.welcome {
  max-width: 720px;
  margin: 8px auto 30px;
  text-align: center;
  animation: fade-up 0.6s ease both;
}

.messages.has-chat .welcome {
  display: none;
}

.welcome-mascot {
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
  border-radius: 36px;
  background: linear-gradient(145deg, var(--kiwi), #dcecaa);
  box-shadow: 0 18px 40px var(--kiwi-glow);
  display: grid;
  place-items: center;
  animation: bob 6s ease-in-out infinite;
}

.mascot {
  width: 100px;
  height: 100px;
  transform: translateY(4px);
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--kiwi-deep);
  text-transform: uppercase;
}

.welcome h1 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.welcome-sub {
  max-width: 520px;
  margin: 0 auto;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.welcome-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 11.5px;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s, color 0.16s, background 0.16s, transform 0.16s;
}

.chip:hover {
  border-color: var(--kiwi);
  color: var(--ink);
  background: var(--kiwi-soft);
  transform: translateY(-1px);
}

.chip.is-active {
  background: var(--kiwi);
  border-color: var(--kiwi);
  color: #1d2a13;
  font-weight: 600;
}

.chip-sm {
  padding: 5px 10px;
  font-size: 11.5px;
  box-shadow: none;
}

/* 消息 */
.msg {
  max-width: 840px;
  margin: 0 auto 20px;
  display: flex;
  gap: 11px;
  animation: fade-up 0.34s ease both;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: var(--kiwi-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  flex: none;
}

.msg-avatar .mascot {
  width: 34px;
  height: 34px;
  transform: translateY(2px);
}

.msg-body {
  flex: 1;
  min-width: 0;
}

.msg-bot .bubble {
  max-width: 760px;
}

.msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--muted);
}

.msg-head b {
  color: var(--ink-2);
  font-size: 12px;
}

.bubble {
  position: relative;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 4px 18px 18px 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.msg-user {
  justify-content: flex-end;
  padding-left: 12%;
}

.msg-user .msg-body {
  flex: 0 1 auto;
  max-width: min(78%, 620px);
}

.msg-user .bubble {
  flex: none;
  max-width: 100%;
  border: 0;
  border-radius: 18px 4px 18px 18px;
  background: linear-gradient(145deg, var(--kiwi), #d6e99f);
  color: #1b2a12;
  font-size: 13.5px;
  line-height: 1.65;
  box-shadow: 0 8px 22px var(--kiwi-glow);
}

.msg-user .msg-head {
  justify-content: flex-end;
}

.typing .bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 16px 18px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kiwi-deep);
  opacity: 0.55;
  animation: typing 1.1s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.16s;
}

.dot:nth-child(3) {
  animation-delay: 0.32s;
}

/* 回答排版 */
.ans-intro {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.ans-block {
  margin-top: 14px;
}

.ans-block > h5 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--kiwi-deep);
}

.ans-block > h5::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--kiwi);
  flex: none;
}

.lead {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.ans-list {
  list-style: none;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

.ans-list > li {
  position: relative;
  padding: 4px 0 4px 15px;
}

.ans-list > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--kiwi);
}

.ans-list b {
  color: var(--ink);
  font-weight: 600;
}

.ans-list li.row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.ans-list li.row::before {
  display: none;
}

.ans-list li.row:last-child {
  border-bottom: 0;
}

.row-left {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.row-main {
  min-width: 0;
}

.row-main b {
  font-size: 13px;
  color: var(--ink);
}

.row-main em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
}

.row-right {
  justify-self: end;
}

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--kiwi-soft);
  color: var(--kiwi-deep);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

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

.kv {
  background: var(--card);
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.kv-grid > .kv:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.kv span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.kv strong {
  display: block;
  margin-top: 1px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ans-details {
  margin-top: 8px;
}

.ans-details > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--kiwi-deep);
  padding: 4px 0;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ans-details > summary::-webkit-details-marker {
  display: none;
}

.ans-details > summary::before {
  content: "+";
  font-weight: 700;
  width: 14px;
}

.ans-details[open] > summary::before {
  content: "−";
}

.ans-details[open] > summary {
  margin-bottom: 4px;
}

.muted {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.inline-link {
  color: var(--kiwi-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--ink);
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c, var(--kiwi));
  border: 1px solid rgba(26, 40, 32, 0.18);
  margin-right: 5px;
  vertical-align: -1px;
}

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

.pet-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--peach-soft);
}

.pet-emoji {
  font-size: 20px;
  line-height: 1;
}

.pet-card b {
  font-size: 13px;
}

.pet-card span:last-child {
  font-size: 10.5px;
  color: var(--muted);
}

.brand-grid-ans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  list-style: none;
}

.brand-item {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.brand-item b {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.brand-item span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}

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

.org-card {
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--kiwi-soft);
}

.org-card.org-peach {
  background: var(--peach-soft);
}

.org-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.org-top b {
  font-size: 12px;
}

.org-top span {
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
}

.org-handle {
  margin-top: 2px;
  font-size: 10px;
  color: var(--kiwi-deep);
  overflow-wrap: anywhere;
}

.org-card.org-peach .org-handle {
  color: var(--coral);
}

.org-duty {
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

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

.slang-item {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.slang-item b {
  display: block;
  font-size: 12px;
}

.slang-item span {
  display: block;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

.hit-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

.hit-text mark {
  background: linear-gradient(transparent 58%, rgba(171, 207, 83, 0.6) 58%);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

[data-theme="dark"] .hit-text mark {
  background: linear-gradient(transparent 58%, rgba(185, 219, 107, 0.32) 58%);
}

.hit-meta {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--muted);
}

.ans-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}

.conf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

.conf i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6dbb4a;
}

.conf-mid i {
  background: #d9a53c;
}

.conf-low i {
  background: #b9b9ae;
}

.src-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.src-chip {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9.5px;
  color: var(--muted);
  background: var(--paper);
  white-space: nowrap;
}

.followups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
}

.followups > span {
  font-size: 10.5px;
  color: var(--muted);
}

.copy-btn {
  margin-top: 5px;
  padding: 2px 0;
  border: 0;
  background: none;
  font-size: 10px;
  color: var(--muted);
  transition: color 0.16s;
}

.copy-btn:hover {
  color: var(--kiwi-deep);
}

/* 输入区 */
.composer {
  flex: none;
  padding: 8px clamp(16px, 3.4vw, 44px) 16px;
  background: linear-gradient(to top, var(--paper) 55%, transparent);
}

.composer-box {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(26, 40, 32, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.composer-box:focus-within {
  border-color: var(--kiwi);
  box-shadow: 0 0 0 3px var(--kiwi-glow), 0 12px 34px rgba(26, 40, 32, 0.08);
}

#chat-input {
  flex: 1;
  min-height: 26px;
  max-height: 132px;
  padding: 7px 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  font-size: 13.5px;
  line-height: 1.6;
}

#chat-input::placeholder {
  color: var(--muted);
}

.send-btn {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: var(--kiwi);
  color: #1d2a13;
  transition: transform 0.16s, box-shadow 0.16s, opacity 0.16s;
}

.send-btn:hover {
  transform: translateY(-1px) rotate(-4deg);
  box-shadow: 0 8px 18px var(--kiwi-glow);
}

.send-btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.composer-foot {
  max-width: 860px;
  margin: 6px auto 0;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}

.link-btn {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--kiwi-deep);
}

/* ------------------------------ 档案 ------------------------------ */
.profile-hero {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(420px 220px at 8% 0%, var(--kiwi-soft), transparent 70%),
    linear-gradient(150deg, var(--card), color-mix(in srgb, var(--peach-soft) 55%, var(--card)));
  box-shadow: var(--shadow-sm);
}

.hero-mascot {
  width: 108px;
  height: 108px;
  border-radius: 34px;
  background: linear-gradient(145deg, var(--kiwi), #dcecaa);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px var(--kiwi-glow);
}

.hero-mascot .mascot {
  width: 96px;
  height: 96px;
  transform: translateY(4px);
}

.hero-info h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.hero-info h2 small {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-left: 8px;
}

.hero-line {
  margin-top: 8px;
  max-width: 620px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--ink-2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(74px, 1fr));
  gap: 6px;
}

.stat {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--card) 84%, transparent);
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
}

.stat span {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 12px;
}

.section-head h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-head p {
  font-size: 11px;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.field {
  padding: 10px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.field span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.field strong {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.brand-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.brand-pill {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
}

.brand-pill b {
  display: block;
  font-size: 11.5px;
  line-height: 1.4;
}

.brand-pill span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.4;
}

.account-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.account-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line-soft);
}

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

.account-platform {
  font-size: 10.5px;
  color: var(--muted);
}

.account-handle {
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.account-handle em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  color: var(--muted);
}

.copy-mini {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 10px;
  color: var(--muted);
  transition: color 0.16s, border-color 0.16s;
}

.copy-mini:hover {
  color: var(--kiwi-deep);
  border-color: var(--kiwi);
}

/* ------------------------------ 年表 ------------------------------ */
.toolbar {
  position: sticky;
  top: -26px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 10px;
  background: linear-gradient(to bottom, var(--paper) 70%, transparent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tl-count {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.timeline {
  max-width: 940px;
  padding-bottom: 30px;
}

.year-group {
  margin-top: 16px;
}

.year-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  color: var(--kiwi-deep);
  line-height: 1;
}

.year-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--line), transparent);
}

.year-label small {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.tl-list {
  position: relative;
  list-style: none;
  margin: 12px 0 0 5px;
  padding-left: 22px;
  border-left: 1px dashed var(--line);
}

.tl-item {
  position: relative;
  margin-bottom: 8px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--kiwi);
  box-sizing: content-box;
}

.tl-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--card);
  text-align: left;
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}

.tl-btn:hover {
  border-color: var(--kiwi);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.tl-date {
  padding-top: 1px;
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tl-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.tl-title em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}

.tl-note {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

.tl-btn > .badge {
  margin-top: 1px;
}

/* ------------------------------ 知识库 ------------------------------ */
.lib-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.search-box {
  flex: 1;
  min-width: 240px;
  max-width: 540px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.search-box:focus-within {
  border-color: var(--kiwi);
  box-shadow: 0 0 0 3px var(--kiwi-glow);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--ink);
}

.search-box input::placeholder {
  color: var(--muted);
}

.lib-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 16px;
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.lib-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: var(--card);
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}

.lib-card:hover {
  border-color: var(--kiwi);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.lib-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lib-src {
  font-size: 9.5px;
  color: var(--muted);
}

.lib-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}

.lib-text {
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lib-card.is-open .lib-text {
  display: block;
  -webkit-line-clamp: unset;
}

.lib-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 3px;
}

.lib-tags {
  font-size: 9.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}

.lib-ask {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--kiwi-deep);
  font-size: 10.5px;
  white-space: nowrap;
}

.lib-ask:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.empty b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

/* ------------------------------ 指南 ------------------------------ */
.guide-hero {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(480px 200px at 100% 0%, var(--peach-soft), transparent 70%),
    linear-gradient(150deg, var(--card), color-mix(in srgb, var(--kiwi-soft) 55%, var(--card)));
}

.guide-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  margin: 8px 0 8px;
}

.guide-hero p {
  max-width: 640px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.step-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
}

.step-day {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--kiwi);
  color: #1d2a13;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.step-card h4 {
  margin: 9px 0 7px;
  font-size: 14px;
  font-weight: 700;
}

.step-card ul {
  list-style: none;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.step-card li {
  position: relative;
  padding-left: 13px;
  margin-bottom: 4px;
}

.step-card li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--kiwi);
}

.step-card .muted {
  margin-top: 7px;
}

.checklist {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  overflow: hidden;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--kiwi-soft);
}

.progress {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--kiwi-deep) 16%, transparent);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--kiwi);
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 10.5px;
  color: var(--kiwi-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}

.check-item:last-child {
  border-bottom: 0;
}

.check-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.16s, border-color 0.16s;
}

.check-box .ico {
  width: 12px;
  height: 12px;
  color: #1d2a13;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.16s, transform 0.16s;
}

.check-item input:checked + .check-box {
  background: var(--kiwi);
  border-color: var(--kiwi);
}

.check-item input:checked + .check-box .ico {
  opacity: 1;
  transform: scale(1);
}

.check-item input:checked ~ .check-text {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.check-text {
  font-size: 12.5px;
  line-height: 1.6;
}

.slang-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  padding: 4px 16px;
}

.slang-table .slang-item {
  border-bottom: 1px dashed var(--line-soft);
}

.etiquette-list {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  padding: 6px 16px;
}

.etiquette-list li {
  padding: 9px 0 9px 16px;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
}

.etiquette-list li:last-child {
  border-bottom: 0;
}

.source-list {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  overflow: hidden;
}

.source-row {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line-soft);
}

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

.source-row b {
  font-size: 12.5px;
}

.source-row span {
  margin-left: 6px;
  font-size: 9.5px;
  color: var(--muted);
}

.source-row p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.source-row a {
  display: inline-block;
  margin-top: 2px;
  font-size: 10.5px;
  overflow-wrap: anywhere;
}

/* ------------------------------ 弹窗 ------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 19, 0.5);
  backdrop-filter: blur(3px);
  animation: fade 0.2s ease both;
}

.modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: 84vh;
  max-height: 84dvh;
  overflow-y: auto;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  animation: pop 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
}

.modal-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--kiwi-deep);
}

.modal-title {
  margin: 7px 0 4px;
  padding-right: 34px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.35;
}

.modal-sub {
  font-size: 11.5px;
  color: var(--muted);
}

.modal-body {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

.modal-body p + p {
  margin-top: 8px;
}

.modal-body .kv-grid {
  margin-top: 10px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

/* ------------------------------ 动画 ------------------------------ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-3px);
    opacity: 0.9;
  }
}

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1120px) {
  .app {
    grid-template-columns: 252px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 16px 16px;
  }
  .profile-hero {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .hero-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    padding: 10px 14px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .brand-cat {
    width: 36px;
    height: 36px;
  }

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

  .brand-text small {
    display: none;
  }

  .brand-desc,
  .side-card,
  .side-foot {
    display: none;
  }

  .nav {
    order: 3;
    width: 100%;
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    padding: 6px 10px 6px 7px;
    gap: 7px;
    border-radius: 11px;
  }

  .nav-ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 11px;
  }

  .nav-label {
    font-size: 12px;
  }

  .nav-label small {
    display: none;
  }

  .topbar {
    height: 44px;
    padding: 0 14px;
  }

  .updated {
    display: none;
  }

  .main {
    height: calc(100vh - 112px);
    height: calc(100dvh - 112px);
  }

  .view {
    padding: 18px 14px 30px;
  }

  .view-chat {
    padding: 0;
  }

  .messages {
    padding: 18px 14px 8px;
  }

  .messages:not(.has-chat) {
    justify-content: flex-start;
  }

  .welcome {
    margin-top: 4px;
    margin-bottom: 20px;
  }

  .welcome-mascot {
    width: 88px;
    height: 88px;
    border-radius: 28px;
  }

  .mascot {
    width: 78px;
    height: 78px;
  }

  .welcome h1 {
    font-size: 28px;
  }

  .welcome-sub {
    font-size: 12.5px;
  }

  .msg {
    gap: 9px;
    margin-bottom: 16px;
  }

  .msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .msg-avatar .mascot {
    width: 28px;
    height: 28px;
  }

  .bubble {
    padding: 12px 14px;
  }

  .msg-user {
    padding-left: 8%;
  }

  .composer {
    padding: 6px 12px 10px;
  }

  .composer-foot span {
    display: none;
  }

  .composer-foot {
    justify-content: flex-end;
  }

  .profile-hero {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
  }

  .hero-mascot {
    width: 76px;
    height: 76px;
    border-radius: 24px;
  }

  .hero-mascot .mascot {
    width: 68px;
    height: 68px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    top: -18px;
  }

  .org-grid,
  .slang-grid {
    grid-template-columns: 1fr;
  }

  .kv-grid {
    grid-template-columns: 1fr;
  }

  .ans-list li.row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .ans-list li.row .row-right {
    grid-column: 2;
    justify-self: start;
  }

  .lib-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 22px 18px;
  }
}

@media (max-width: 520px) {
  .msg-user {
    padding-left: 0;
  }

  .welcome h1 {
    font-size: 25px;
  }

  .quick {
    gap: 6px;
  }

  .chip {
    padding: 6px 10px;
    font-size: 11px;
  }

  .tl-btn {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 7px;
    padding: 9px 11px;
  }

  .tl-btn > .badge {
    grid-column: 2;
    justify-self: start;
    margin-top: 0;
  }

  .tl-date {
    font-size: 9.5px;
  }

  .section-head {
    margin-top: 24px;
  }

  .section-head p {
    display: none;
  }

  .hero-info h2 small {
    display: block;
    margin-left: 0;
  }

  .account-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .account-row .copy-mini {
    grid-column: 2;
    justify-self: start;
  }

  .pet-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
