:root {
  --canvas: #fbfaf7;
  --panel: #ffffff;
  --panel-soft: #fafaf8;
  --ink: #17211f;
  --muted: #687370;
  --muted-2: #929b98;
  --line: #e3e6e2;
  --line-strong: #d4d9d4;
  --teal: #075e57;
  --teal-2: #0b746a;
  --teal-soft: #e8f4f1;
  --mint: #dcefe9;
  --blue: #3b67cb;
  --blue-soft: #ebf0ff;
  --amber: #b86f14;
  --amber-soft: #fff3dc;
  --red: #b4453a;
  --red-soft: #fcebe8;
  --purple: #7155a8;
  --purple-soft: #f0ebf8;
  --shadow: 0 12px 36px rgba(27, 43, 38, 0.08);
  --shadow-small: 0 5px 18px rgba(27, 43, 38, 0.06);
  --radius: 18px;
  --radius-small: 12px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 252px;
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  background: #f0f0ef;
  border-right: 1px solid rgba(24, 44, 38, 0.08);
}

.window-chrome { height: 18px; display: flex; gap: 7px; padding: 1px 6px 0; }
.window-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.window-chrome i:nth-child(2) { background: #ffbd2e; }
.window-chrome i:nth-child(3) { background: #28c840; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 8px 14px;
  cursor: pointer;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: -1px;
  background: #00b96b;
  box-shadow: 0 8px 20px rgba(7, 94, 87, 0.22);
}

.brand-mark.small { width: 31px; height: 31px; border-radius: 10px; font-size: 13px; }
.brand strong { display: block; font-size: 17px; letter-spacing: 0.02em; }
.brand span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

.side-search { width: 100%; height: 39px; margin-bottom: 12px; padding: 0 11px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; color: #817b75; background: #e5e3e1; border: 1px solid #dddad7; border-radius: 11px; cursor: pointer; text-align: left; }
.side-search kbd { color: #9e9892; font: 9px inherit; }
.side-search svg { width: 17px; height: 17px; }

.primary-nav { display: grid; gap: 4px; }
.nav-item, .space-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.nav-item {
  grid-template-columns: 25px 1fr auto;
  gap: 10px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 11px;
  color: #48534f;
  font-weight: 650;
  font-size: 14px;
}

.nav-item:hover, .space-item:hover { background: rgba(255,255,255,0.58); }
.nav-item.active { background: var(--panel); color: var(--teal); box-shadow: var(--shadow-small); }
.nav-icon, [data-icon] { display: inline-grid; place-items: center; }
[data-icon] svg { width: 19px; height: 19px; stroke: currentColor; }
.nav-count { color: var(--teal); font-size: 11px; background: var(--teal-soft); padding: 2px 7px; border-radius: 99px; }

.nav-section { margin-top: 22px; }
.nav-label { padding: 0 8px 9px; color: #817b75; font-size: 11px; letter-spacing: 0.04em; display: flex; align-items: center; justify-content: space-between; }
.nav-label button { width: 24px; height: 24px; border: 0; border-radius: 7px; background: transparent; color: #77716b; cursor: pointer; font-size: 18px; }
.nav-label button:hover { background: #e3e2e0; }
.space-item {
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  color: #4d5754;
  font-size: 13px;
}
.space-item.active { color: var(--ink); background: rgba(255,255,255,0.58); font-weight: 650; }
.space-item.muted { color: #76817d; }
.space-dot { width: 7px; height: 7px; border-radius: 50%; }
.space-dot.life { background: #d48a2f; }
.space-dot.work { background: var(--blue); }
.space-dot.health { background: #b5586d; }
.topic-hash { width: 18px; height: 18px; display: grid; place-items: center; color: #c17517; background: #fff3dc; border-radius: 5px; font-size: 11px; font-weight: 800; }
.topic-hash.work { color: #3b67cb; background: #ebf0ff; }
.topic-hash.health { color: #a64f63; background: #f9e9ee; }
.topic-hash.child { color: #7155a8; background: #f0ebf8; }
.topic-hash.private { color: #7f7871; background: #e5e3e1; }
.topic-hash.private svg { width: 11px; height: 11px; }
.space-meta { color: var(--muted-2); font-size: 10px; }
.space-meta.danger { width: 18px; height: 18px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border-radius: 50%; }

.chat-section { min-height: 0; }
.chat-item { position: relative; width: 100%; min-height: 34px; padding: 0 9px; display: flex; align-items: center; border: 0; border-radius: 8px; background: transparent; color: #4f4a46; cursor: pointer; text-align: left; }
.chat-item:hover { background: rgba(255,255,255,.7); }
.chat-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.chat-item i { position: absolute; right: 9px; width: 6px; height: 6px; background: #ef5555; border-radius: 50%; }

.prototype-note {
  margin-top: auto;
  padding: 14px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.84);
  border-radius: 14px;
}
.prototype-kicker { display: block; color: var(--teal); font-size: 8px; letter-spacing: 0.12em; font-weight: 800; }
.prototype-note strong { display: block; margin-top: 7px; font-size: 12px; }
.prototype-note p { margin: 4px 0 9px; color: var(--muted); font-size: 10px; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--teal); font-size: 11px; cursor: pointer; }

.workspace {
  grid-column: 2;
  min-width: 0;
  min-height: 100vh;
  padding-bottom: 102px;
}

.topbar {
  height: 66px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 0 25px 0 34px;
  background: rgba(251,250,247,0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23,33,31,0.05);
}
.product-switch { display: flex; align-items: center; gap: 7px; min-width: 195px; }
.product-switch strong { font-size: 15px; }
.product-switch span { color: #77716b; }
.product-switch em { padding: 3px 7px; border: 1px solid #8c857e; border-radius: 7px; font-style: normal; font-size: 9px; }
.mobile-brand { display: none; align-items: center; gap: 9px; }
.breadcrumb { color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.crumb-sep { padding: 0 6px; color: #b1b7b4; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-button, .avatar {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  cursor: pointer;
}
.icon-button { position: relative; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #65706c; }
.icon-button:hover { color: var(--ink); background: #fff; }
.notification i { position: absolute; width: 6px; height: 6px; top: 7px; right: 7px; background: var(--red); border: 1px solid white; border-radius: 50%; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.avatar.me { color: #fff; background: #2f5651; border-color: #2f5651; }

.content-grid { display: grid; grid-template-columns: minmax(0, 860px) 310px; justify-content: center; gap: 28px; padding: 28px 28px 24px; }
.content-grid.chat-mode { grid-template-columns: minmax(0, 1040px); }
.main-content { min-width: 0; outline: none; }
.agent-rail { min-width: 0; }
.agent-rail.hidden { display: none; }

.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.page-kicker { margin: 0 0 7px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.page-header h1 { margin: 0; font-size: clamp(27px, 3vw, 37px); line-height: 1.18; letter-spacing: -0.035em; }
.page-subtitle { max-width: 650px; margin: 8px 0 0; color: var(--muted); line-height: 1.7; font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-small); }
.button.primary { color: #fff; background: var(--teal); border-color: var(--teal); }
.button.primary:hover { background: var(--teal-2); }
.button.soft { color: var(--teal); background: var(--teal-soft); border-color: transparent; }
.button.danger-soft { color: var(--red); background: var(--red-soft); border-color: transparent; }
.button.small { min-height: 31px; padding: 0 10px; border-radius: 8px; font-size: 11px; }
.button svg { width: 15px; height: 15px; }

.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 9px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.chip.teal { color: var(--teal); background: var(--teal-soft); }
.chip.amber { color: var(--amber); background: var(--amber-soft); }
.chip.red { color: var(--red); background: var(--red-soft); }
.chip.blue { color: var(--blue); background: var(--blue-soft); }
.chip.gray { color: #68726f; background: #eff1ee; }

.demo-path { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; margin: 0 0 24px; }
.demo-step { position: relative; min-height: 58px; padding: 10px 12px 10px 42px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,0.56); cursor: pointer; text-align: left; }
.demo-step b { display: block; font-size: 11px; }
.demo-step span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.step-index { position: absolute; left: 12px; top: 13px; width: 21px; height: 21px; display: grid !important; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted) !important; background: #fff; font-weight: 800; }
.demo-step.active { border-color: rgba(7,94,87,0.36); background: var(--teal-soft); }
.demo-step.active .step-index { color: #fff !important; background: var(--teal); border-color: var(--teal); }

.card { background: var(--panel); border: 1px solid rgba(34,52,46,0.08); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.hero-card { overflow: hidden; }
.hero-top { padding: 22px 23px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, #fbfcfa 0%, #eef6f2 100%); border-bottom: 1px solid var(--line); }
.hero-top h2 { margin: 8px 0 5px; font-size: 21px; letter-spacing: -0.02em; }
.hero-top p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.date-block { min-width: 61px; text-align: center; }
.date-block strong { display: block; font-size: 31px; line-height: 1; }
.date-block span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.focus-list { display: grid; }
.focus-item { position: relative; display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 14px; align-items: center; min-height: 82px; padding: 13px 20px; border-top: 1px solid var(--line); cursor: pointer; transition: background .18s ease; }
.focus-item:first-child { border-top: 0; }
.focus-item:hover { background: #fafbf9; }
.priority-bar { width: 5px; height: 34px; border-radius: 5px; background: var(--amber); }
.priority-bar.red { background: var(--red); }
.priority-bar.green { background: #3b9476; }
.focus-title { display: flex; align-items: center; gap: 8px; }
.focus-title b { font-size: 14px; }
.focus-context { color: var(--muted-2); font-size: 10px; }
.focus-copy { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.focus-item .arrow { color: #9ca5a1; }

.section-head { margin: 28px 2px 12px; display: flex; align-items: center; justify-content: space-between; }
.section-head h2 { margin: 0; font-size: 16px; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.link-button { border: 0; background: transparent; color: var(--teal); font-size: 11px; cursor: pointer; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.mini-card { min-height: 144px; padding: 17px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mini-card-top { display: flex; justify-content: space-between; align-items: center; }
.context-badge { font-size: 9px; color: var(--muted); }
.mini-card h3 { margin: 18px 0 7px; font-size: 15px; }
.mini-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.mini-meta { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted-2); font-size: 9px; }
.progress { height: 5px; flex: 1; overflow: hidden; border-radius: 99px; background: #edf0ed; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }

.rail-card { margin-bottom: 13px; padding: 17px; background: rgba(255,255,255,0.72); border: 1px solid rgba(34,52,46,0.08); border-radius: 16px; }
.rail-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rail-title strong { font-size: 12px; }
.rail-title span { color: var(--muted-2); font-size: 9px; }
.agent-status { display: flex; gap: 10px; align-items: flex-start; }
.agent-orb { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--teal); }
.agent-status b { display: block; font-size: 11px; }
.agent-status p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.rail-list { display: grid; gap: 12px; }
.rail-event { display: grid; grid-template-columns: 7px minmax(0,1fr); gap: 9px; }
.event-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.rail-event b { display: block; font-size: 10px; line-height: 1.4; }
.rail-event p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.rail-event time { display: block; margin-top: 4px; color: var(--muted-2); font-size: 8px; }
.source-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); }
.source-row:first-of-type { border-top: 0; }
.source-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: #f0f2ef; color: var(--muted); }
.source-row b { display: block; font-size: 10px; }
.source-row span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 8px; }

.thing-header { padding: 20px 21px; margin-bottom: 14px; }
.thing-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.thing-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.thing-header h1 { margin: 8px 0 5px; font-size: 27px; letter-spacing: -0.035em; }
.thing-header p { margin: 0; color: var(--muted); font-size: 11px; }
.member-stack { display: flex; align-items: center; }
.member-stack .avatar { margin-left: -7px; border: 2px solid #fff; width: 31px; height: 31px; font-size: 10px; }
.member-stack .avatar:first-child { margin-left: 0; }
.member-stack .add-member { color: var(--teal); background: var(--teal-soft); border-style: dashed; border-color: rgba(7,94,87,.3); }
.thing-progress { margin-top: 17px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px; align-items: center; }
.thing-progress span { color: var(--muted); font-size: 10px; }
.progress.large { height: 7px; }

.status-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.status-card { min-height: 158px; padding: 17px; }
.status-card.wide { grid-column: 1 / -1; }
.status-title { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.status-title > span:first-child { display: flex; align-items: center; gap: 7px; }
.status-card h3 { margin: 15px 0 8px; font-size: 16px; line-height: 1.45; }
.status-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.status-actions { display: flex; align-items: center; gap: 7px; margin-top: 15px; flex-wrap: wrap; }
.choice-button { min-height: 33px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; font-size: 11px; }
.choice-button.selected { color: #fff; border-color: var(--teal); background: var(--teal); }

.feed-card { margin-top: 14px; padding: 19px 20px; }
.feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.feed-head h2 { margin: 0; font-size: 15px; }
.tabs { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: #f0f2ef; }
.tab { border: 0; background: transparent; padding: 5px 9px; border-radius: 7px; color: var(--muted); font-size: 9px; cursor: pointer; }
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(20,30,26,.06); }
.feed-item { position: relative; display: grid; grid-template-columns: 33px minmax(0,1fr) auto; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.feed-item:first-of-type { border-top: 0; }
.feed-avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 11px; background: var(--teal-soft); color: var(--teal); font-size: 10px; font-weight: 800; }
.feed-avatar.user { color: #fff; background: #49625d; }
.feed-item b { display: block; font-size: 11px; }
.feed-item p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.feed-item time { color: var(--muted-2); font-size: 8px; }
.inline-artifact { margin-top: 9px; padding: 10px 11px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 9px; }
.inline-artifact strong { color: var(--teal); font-size: 10px; }

.task-list { display: grid; gap: 8px; margin-top: 12px; }
.task-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.check { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; cursor: pointer; }
.check.done { color: #fff; border-color: var(--teal); background: var(--teal); }
.task-row b { font-size: 10px; }
.task-row.done b { color: var(--muted-2); text-decoration: line-through; }
.task-row span { color: var(--muted); font-size: 9px; }

.work-brief { background: #202a38; color: #fff; border: 0; }
.work-brief .status-title, .work-brief p { color: #bac4d2; }
.work-brief h3 { max-width: 620px; font-size: 18px; }
.work-metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 15px; }
.work-metric { padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.06); }
.work-metric strong { display: block; font-size: 15px; }
.work-metric span { display: block; margin-top: 3px; color: #9eacbd; font-size: 8px; }
.decision-row { padding: 12px 0; border-top: 1px solid var(--line); }
.decision-row:first-of-type { border-top: 0; }
.decision-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.decision-row h4 { margin: 6px 0 4px; font-size: 11px; }
.decision-row p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.things-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.filter-row { display: flex; gap: 6px; }
.filter-button { padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 10px; cursor: pointer; }
.filter-button.active { color: var(--teal); border-color: rgba(7,94,87,.25); background: var(--teal-soft); }
.things-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.thing-tile { min-height: 192px; padding: 18px; cursor: pointer; }
.thing-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.thing-tile h3 { margin: 23px 0 6px; font-size: 17px; }
.thing-tile p { margin: 0; min-height: 34px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.thing-tile-bottom { margin-top: 19px; display: flex; align-items: center; justify-content: space-between; }

.yuanbao-hero { padding: 36px 26px; text-align: center; }
.yuanbao-orb { width: 60px; height: 60px; margin: 0 auto; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 21px; box-shadow: 0 16px 28px rgba(7,94,87,.2); }
.yuanbao-orb svg { width: 27px; height: 27px; }
.yuanbao-hero h1 { margin: 19px 0 8px; font-size: 27px; }
.yuanbao-hero p { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.prompt-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 24px; text-align: left; }
.prompt-card { min-height: 117px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-soft); cursor: pointer; }
.prompt-card:hover { background: var(--teal-soft); border-color: rgba(7,94,87,.2); }
.prompt-card span { color: var(--teal); font-size: 9px; font-weight: 800; }
.prompt-card b { display: block; margin-top: 10px; font-size: 11px; line-height: 1.6; }
.routing-card { margin-top: 14px; padding: 17px; }
.routing-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 9px; }
.route-node { padding: 12px; border-radius: 11px; background: #f3f5f2; text-align: center; }
.route-node b { display: block; font-size: 10px; }
.route-node span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.route-arrow { color: var(--muted-2); }

/* Thing-native topic discussion */
.topic-channel-header { margin-bottom: 13px; overflow: hidden; background: #fff; border: 1px solid rgba(34,52,46,.08); border-radius: 17px; box-shadow: var(--shadow-small); }
.channel-main { min-height: 82px; padding: 16px 18px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.channel-name { display: flex; align-items: center; gap: 9px; }
.channel-name .hash { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--teal); background: var(--teal-soft); font-size: 17px; font-weight: 800; }
.channel-name .hash.mom { color: #a64f63; background: #f9e9ee; }
.channel-name .hash.child { color: #7155a8; background: #f0ebf8; }
.channel-name h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.channel-name p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.channel-actions { display: flex; align-items: center; gap: 8px; }
.channel-tabs { height: 38px; display: flex; align-items: flex-end; gap: 17px; padding: 0 18px; border-top: 1px solid var(--line); }
.channel-tab { height: 38px; position: relative; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.channel-tab.active { color: var(--ink); font-weight: 700; }
.channel-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal); border-radius: 2px 2px 0 0; }
.channel-tab span { margin-left: 4px; padding: 1px 5px; border-radius: 99px; color: var(--muted); background: #f0f1ef; font-size: 8px; }

.topic-pinned { margin-bottom: 11px; padding: 12px 14px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid #d8e8e3; border-radius: 12px; background: #f3faf7; }
.pin-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--teal); background: #deefe9; }
.topic-pinned b { display: block; font-size: 10px; }
.topic-pinned p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

.discussion-card { padding: 0 18px 12px; background: #fff; border: 1px solid rgba(34,52,46,.08); border-radius: 17px; box-shadow: var(--shadow-small); }
.discussion-day { display: flex; align-items: center; gap: 9px; padding: 15px 0 7px; color: #9c9690; font-size: 8px; }
.discussion-day::before, .discussion-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.message-row { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 11px 0; }
.message-row + .message-row { border-top: 1px solid #f1f1ef; }
.message-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #52645f; font-size: 10px; font-weight: 800; }
.message-avatar.agent { color: #fff; background: #00a866; }
.message-avatar.dad { background: #557093; }
.message-avatar.mom { background: #b5677a; }
.message-avatar.pm { background: #765d9a; }
.message-avatar.alg { background: #3c72a6; }
.message-avatar.eng { background: #8d693c; }
.message-avatar.child { background: #8a6aa6; }
.message-head { display: flex; align-items: center; gap: 7px; }
.message-head b { font-size: 10px; }
.message-head span { color: var(--muted-2); font-size: 8px; }
.message-head .role { padding: 1px 5px; border-radius: 5px; color: var(--teal); background: var(--teal-soft); font-size: 7px; }
.message-copy { margin: 5px 0 0; color: #353c39; font-size: 10px; line-height: 1.68; }
.message-copy .mention { color: var(--blue); font-weight: 650; }
.source-pill { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; padding: 4px 7px; border-radius: 7px; color: #746e68; background: #f2f1ef; font-size: 8px; }
.message-actions { display: flex; align-items: center; gap: 11px; margin-top: 7px; }
.message-actions button { padding: 0; border: 0; background: transparent; color: #8c9692; cursor: pointer; font-size: 8px; }
.message-actions button:hover { color: var(--teal); }
.thread-link { display: inline-flex; align-items: center; gap: 5px; color: var(--blue) !important; font-weight: 650; }

.agent-extract { margin-top: 9px; overflow: hidden; border: 1px solid #d9e5e2; border-radius: 11px; background: #fbfdfc; }
.extract-head { padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; color: var(--teal); background: #eef8f4; font-size: 8px; font-weight: 750; }
.extract-body { padding: 10px; }
.extract-body strong { display: block; font-size: 10px; }
.extract-body p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.extract-fields { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.extract-field { padding: 4px 7px; border-radius: 6px; color: #5d6662; background: #f0f2f0; font-size: 8px; }
.extract-actions { display: flex; gap: 6px; margin-top: 9px; }
.state-written { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--teal); font-size: 8px; font-weight: 650; }
.topic-pinned.health { border-color: #efd9df; background: #fff7f9; }
.topic-pinned.health .pin-icon { color: #a64f63; background: #f9e9ee; }
.topic-pinned.child { border-color: #e4daf2; background: #faf7fd; }
.topic-pinned.child .pin-icon { color: #7155a8; background: #f0ebf8; }
.agent-extract.health { border-color: #efd9df; }
.agent-extract.health .extract-head { color: #8f4055; background: #fff0f4; }
.agent-extract.child { border-color: #e4daf2; }
.agent-extract.child .extract-head { color: #63468f; background: #f5f0fb; }
.source-pill.private { color: #765b64; background: #faf0f3; }

.topic-empty { min-height: 330px; display: grid; place-items: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 17px; }
.topic-empty svg { width: 28px; height: 28px; color: var(--muted); }
.topic-empty h3 { margin: 10px 0 4px; font-size: 14px; }
.topic-empty p { margin: 0; color: var(--muted); font-size: 9px; }

/* Yuanbao chat-to-Thing origin flow */
.yuanbao-start { min-height: calc(100vh - 205px); display: flex; flex-direction: column; justify-content: center; }
.yuanbao-home-head { text-align: center; margin-top: -20px; }
.yuanbao-home-head .yuanbao-orb { width: 51px; height: 51px; border-radius: 17px; }
.yuanbao-home-head h1 { margin: 18px 0 24px; font-family: Georgia, "Songti SC", serif; font-size: 34px; font-weight: 600; letter-spacing: -.03em; color: #291b14; }
.suggestion-pills { max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.suggestion-pill { min-height: 43px; padding: 0 18px; border: 1px solid #eeeae5; border-radius: 99px; background: #fff; color: #3f332c; cursor: pointer; box-shadow: 0 8px 24px rgba(50,35,25,.04); font-size: 11px; }
.suggestion-pill:hover { border-color: #cfded8; background: #f9fcfa; }

.app-start { min-height: auto; max-width: 980px; margin: 0 auto; padding: 18px 0 32px; justify-content: flex-start; }
.app-start .yuanbao-home-head { display: flex; align-items: center; gap: 17px; margin: 0 0 25px; text-align: left; }
.app-start .yuanbao-home-head .yuanbao-orb { flex: 0 0 auto; margin: 0; }
.app-start .yuanbao-home-head h1 { margin: 3px 0 5px; font-size: 31px; }
.app-start .yuanbao-home-head p { margin: 0; color: var(--muted); font-size: 11px; }
.home-eyebrow { color: var(--teal); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mobile-home-composer { display: none; }
.home-section-head { margin: 4px 0 10px; display: flex; align-items: flex-end; justify-content: space-between; }
.home-section-head div { display: flex; align-items: baseline; gap: 9px; }
.home-section-head b { font-size: 13px; }
.home-section-head span { color: var(--muted); font-size: 9px; }
.home-section-head button { border: 0; background: transparent; color: var(--teal); cursor: pointer; font-size: 9px; }
.prompt-head { margin-top: 23px; }
.app-thing-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.app-thing-card { min-width: 0; min-height: 91px; padding: 12px; display: grid; grid-template-columns: 34px minmax(0,1fr); grid-template-rows: 1fr auto; gap: 9px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; box-shadow: var(--shadow-small); }
.app-thing-card:hover { transform: translateY(-1px); border-color: #cddbd6; }
.app-card-icon { grid-row: 1 / span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--teal); background: var(--teal-soft); font-size: 10px; font-weight: 800; }
.app-thing-card.health .app-card-icon { color: #9c465c; background: #f9e9ee; }
.app-thing-card.child .app-card-icon { color: #63468f; background: #f0ebf8; }
.app-thing-card.travel .app-card-icon { color: #a46114; background: #fff3dc; }
.app-thing-card.work .app-card-icon { color: #3b67cb; background: #ebf0ff; }
.app-thing-card b, .app-thing-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-thing-card b { font-size: 10px; }
.app-thing-card small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.app-thing-card em { grid-column: 2; align-self: end; color: var(--muted-2); font-size: 8px; font-style: normal; }
.app-start .suggestion-pills { max-width: none; margin: 0; justify-content: flex-start; gap: 7px; }
.app-start .suggestion-pill { min-height: 38px; padding: 0 13px; font-size: 9px; }

.origin-thread { max-width: 760px; margin: 0 auto; padding: 4px 0 30px; }
.origin-thread-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.origin-thread-title h1 { margin: 0; font-size: 18px; }
.chat-turn { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; margin: 18px 0; }
.chat-turn.user { grid-template-columns: minmax(0,1fr) 34px; }
.chat-turn.user .chat-turn-body { grid-column: 1; grid-row: 1; justify-self: end; max-width: 78%; padding: 10px 13px; border-radius: 14px 14px 4px 14px; background: #eceae7; }
.chat-turn.user .message-avatar { grid-column: 2; }
.chat-turn-body > p { margin: 3px 0 0; color: #353c39; font-size: 11px; line-height: 1.7; }
.natural-thread { padding-top: 15px; }
.natural-thread .origin-thread-title { align-items: flex-end; }
.natural-answer { margin: 10px 0; padding: 11px 13px; border-left: 3px solid #b8d9cf; border-radius: 4px 11px 11px 4px; background: #f7faf8; }
.natural-answer b { font-size: 10px; }
.natural-answer ol { margin: 7px 0 0; padding-left: 18px; color: #404945; font-size: 10px; line-height: 1.85; }
.conversation-capture { margin-top: 16px; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #dce7e3; border-radius: 12px; background: #fbfdfc; }
.capture-copy { min-width: 0; display: flex; align-items: center; gap: 8px; }
.capture-copy > span { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); border-radius: 9px; }
.capture-copy b, .capture-copy span { display: block; }
.capture-copy b { font-size: 9px; }
.capture-copy div > span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.capture-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.capture-dismiss { padding: 5px 3px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 8px; }
.thing-suggestion { margin-top: 12px; overflow: hidden; border: 1px solid #d7e3df; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(25,50,41,.06); }
.suggestion-head { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; background: #eef8f4; }
.suggestion-head b { color: var(--teal); font-size: 10px; }
.suggestion-body { padding: 13px; }
.suggestion-topic { display: flex; align-items: center; gap: 8px; }
.suggestion-topic .hash { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--teal); background: var(--teal-soft); font-weight: 800; }
.suggestion-topic h3 { margin: 0; font-size: 13px; }
.suggestion-topic span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.suggestion-facts { margin-top: 12px; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.suggestion-fact { padding: 8px; border-radius: 9px; background: #f6f6f4; }
.suggestion-fact b { display: block; color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .06em; }
.suggestion-fact span { display: block; margin-top: 4px; font-size: 9px; line-height: 1.4; }
.suggestion-footer { display: flex; justify-content: flex-end; gap: 7px; padding: 10px 13px; border-top: 1px solid var(--line); }

.launch-source { margin-bottom: 14px; padding: 11px 12px; border-left: 3px solid #00a866; border-radius: 8px; background: #f4f7f5; }
.launch-source b { display: block; color: var(--muted); font-size: 8px; }
.launch-source p { margin: 5px 0 0; font-size: 10px; line-height: 1.55; }
.launch-field { margin-top: 12px; }
.launch-field > label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 650; }
.launch-input { width: 100%; height: 39px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; background: #fff; font-size: 11px; }
.launch-input:focus { border-color: rgba(7,94,87,.5); box-shadow: 0 0 0 3px var(--teal-soft); }
.launch-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.launch-option { padding: 10px; display: flex; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.launch-option.selected { border-color: rgba(7,94,87,.3); background: var(--teal-soft); }
.launch-option input { accent-color: var(--teal); }
.launch-option b { display: block; font-size: 9px; }
.launch-option span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }

.composer-wrap {
  position: fixed;
  z-index: 25;
  left: 252px;
  right: 0;
  bottom: 0;
  padding: 12px 28px 15px;
  background: linear-gradient(to top, rgba(251,250,247,1) 64%, rgba(251,250,247,0));
}
.composer-context { max-width: 860px; min-height: 18px; margin: 0 auto 5px; color: #716b65; font-size: 9px; }
.composer-context:empty { display: none; }
.composer { max-width: 860px; min-height: 70px; margin: 0 auto; display: block; padding: 6px 7px 5px; border: 1px solid #ddd9d5; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(40,28,20,.1); }
.composer-main { height: 41px; display: grid; grid-template-columns: 36px 1fr 36px 38px; align-items: center; gap: 6px; }
.composer input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.composer input::placeholder { color: #9ba4a1; }
.composer-plus, .composer-mic, .composer-send { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 11px; cursor: pointer; }
.composer-plus { color: var(--muted); background: #f3f5f2; }
.composer-mic { color: var(--teal); background: var(--teal-soft); }
.composer-mic svg { width: 17px; height: 17px; }
.composer-send { color: #fff; background: var(--teal); }
.composer-tools { height: 23px; display: flex; align-items: center; gap: 4px; padding: 0 7px; }
.composer-tools button { height: 23px; padding: 0 7px; border: 0; border-radius: 7px; background: transparent; color: #403a35; font-size: 9px; cursor: pointer; }
.composer-tools button:hover { background: #f3f1ef; }
.composer-tools span { margin-left: auto; color: #9a948e; font-size: 8px; }
.composer-hint { margin-top: 5px; text-align: center; color: var(--muted-2); font-size: 8px; }

.mobile-nav, .floating-chat, .mobile-today-home { display: none; }

/* Mobile-first personal home, Discover and Mine */
.discover-page, .mine-page { max-width: 980px; margin: 0 auto; padding-bottom: 32px; }
.app-page-head { margin-bottom: 21px; }
.app-page-head h1 { margin: 4px 0 6px; font-size: 31px; }
.app-page-head p { margin: 0; max-width: 620px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.discover-feature { min-height: 208px; padding: 24px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(200px,.8fr); gap: 22px; align-items: center; overflow: hidden; border-radius: 22px; color: #fff; background: radial-gradient(circle at 82% 10%, rgba(174,245,216,.27), transparent 31%), linear-gradient(135deg,#123f39,#087461); box-shadow: 0 22px 50px rgba(7,94,87,.18); }
.discover-feature h2 { margin: 13px 0 7px; font-size: 25px; }
.discover-feature p { max-width: 480px; margin: 0 0 17px; color: rgba(255,255,255,.76); font-size: 11px; line-height: 1.65; }
.discover-feature .button.primary { color: var(--teal); background: #fff; }
.discover-feature .button svg { width: 15px; height: 15px; }
.expense-preview { min-height: 135px; padding: 20px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.expense-preview span, .expense-preview small { color: rgba(255,255,255,.65); font-size: 9px; }
.expense-preview strong { margin: 8px 0 5px; font-size: 30px; letter-spacing: -.04em; }
.mobile-section-head { margin: 25px 1px 11px; display: flex; align-items: center; justify-content: space-between; }
.mobile-section-head > div { display: flex; align-items: baseline; gap: 8px; }
.mobile-section-head h2 { margin: 0; font-size: 14px; }
.mobile-section-head span { color: var(--muted); font-size: 9px; }
.mobile-section-head button { border: 0; background: transparent; color: var(--teal); font-size: 9px; cursor: pointer; }
.tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.tool-card { min-height: 142px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 17px; background: #fff; text-align: left; cursor: pointer; box-shadow: var(--shadow-small); }
.tool-card:hover { transform: translateY(-2px); border-color: #cdded8; }
.tool-card > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--teal); background: var(--teal-soft); }
.tool-card > span svg { width: 19px; height: 19px; }
.tool-card b { margin-top: auto; font-size: 12px; }
.tool-card small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.tool-card.ledger { background: linear-gradient(145deg,#f1fbf6,#fff); }
.recent-tool-list { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.recent-tool-list button { width: 100%; min-height: 65px; padding: 11px 14px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.recent-tool-list button:first-child { border-top: 0; }
.recent-tool-list button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--teal); background: var(--teal-soft); }
.recent-tool-list b, .recent-tool-list small { display: block; }
.recent-tool-list b { font-size: 10px; }
.recent-tool-list small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.recent-tool-list em { color: var(--muted); font-size: 8px; font-style: normal; }

.mine-page { max-width: 820px; }
.mine-profile { min-height: 124px; padding: 20px; display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 17px; border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(135deg,#fffaf5,#fff); box-shadow: var(--shadow-small); }
.mine-profile h1 { margin: 4px 0 5px; font-size: 25px; }
.mine-profile p { margin: 0; color: var(--muted); font-size: 9px; }
.mine-profile > button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); cursor: pointer; font-size: 9px; }
.mine-avatar { position: relative; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 24px; color: #fff; background: linear-gradient(145deg,#615149,#927d72); font-family: Georgia,serif; font-size: 25px; box-shadow: 0 12px 24px rgba(60,42,30,.16); }
.mine-avatar span { position: absolute; right: -4px; bottom: -4px; width: 23px; height: 23px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 9px; color: #fff; background: var(--teal); }
.mine-avatar svg { width: 12px; height: 12px; }
.profile-stat-grid { margin: 11px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.profile-stat-grid button { min-height: 98px; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; cursor: pointer; }
.profile-stat-grid span { font-size: 18px; font-weight: 760; }
.profile-stat-grid b { margin-top: auto; font-size: 10px; }
.profile-stat-grid small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.settings-card { margin-top: 11px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-small); }
.settings-card button { width: 100%; min-height: 69px; padding: 10px 15px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.settings-card button:first-child { border-top: 0; }
.settings-card button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #3d3732; background: #f5f2ee; }
.settings-card button > span svg { width: 18px; height: 18px; }
.settings-card b, .settings-card small { display: block; }
.settings-card b { font-size: 11px; }
.settings-card small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.settings-card em { color: var(--muted-2); font-size: 18px; font-style: normal; }

/* Voice Space and bookkeeping */
.voice-modal { width: min(560px,100%); overflow: hidden; background: #112b28; }
.voice-space-modal { min-height: 650px; display: flex; flex-direction: column; color: #fff; background: radial-gradient(circle at 50% 40%, rgba(33,183,145,.25), transparent 31%), linear-gradient(180deg,#112b28,#071d1b); }
.voice-space-head { padding: 22px; display: flex; align-items: flex-start; justify-content: space-between; }
.voice-space-head h2 { margin: 5px 0 0; font-size: 22px; }
.voice-space-head .voice-kicker { color: #70d7b9; }
.voice-space-head .close-button { color: rgba(255,255,255,.8); background: rgba(255,255,255,.1); }
.voice-stage { flex: 1; padding: 4px 28px 22px; display: flex; flex-direction: column; align-items: center; }
.voice-context { min-height: 28px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); font-size: 8px; }
.voice-context svg { width: 13px; height: 13px; }
.voice-listening-orb { position: relative; width: 104px; height: 104px; margin: 28px 0 14px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%,#4ad6ad,#058a70 53%,#065246); box-shadow: 0 0 0 14px rgba(70,218,175,.06),0 22px 60px rgba(0,0,0,.3); }
.voice-listening-orb > span svg { width: 34px; height: 34px; }
.voice-listening-orb i { position: absolute; inset: -1px; border: 1px solid rgba(106,234,198,.32); border-radius: 50%; animation: voicePulse 2.4s ease-out infinite; }
.voice-listening-orb i:nth-of-type(2) { animation-delay: .8s; }
.voice-listening-orb i:nth-of-type(3) { animation-delay: 1.6s; }
.voice-wave { height: 31px; display: flex; align-items: center; gap: 3px; }
.voice-wave i { width: 3px; height: calc(7px + (var(--n) % 6) * 3px); border-radius: 99px; background: #75d9bc; animation: voiceBar .9s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -55ms); }
.voice-state { margin: 5px 0 17px; color: rgba(255,255,255,.6); font-size: 9px; }
.voice-transcript { width: 100%; min-height: 92px; padding: 15px 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.075); }
.voice-transcript small { color: #76d9bc; font-size: 8px; }
.voice-transcript p { margin: 8px 0 0; font-size: 15px; line-height: 1.65; }
.voice-understanding { width: 100%; margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.voice-understanding span { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.065); }
.voice-understanding b, .voice-understanding small { display: block; }
.voice-understanding b { color: #79dcbf; font-size: 8px; }
.voice-understanding small { margin-top: 4px; color: rgba(255,255,255,.74); font-size: 9px; }
.voice-command-grid { width: 100%; margin-top: 13px; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.voice-command-grid button { min-height: 34px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; color: rgba(255,255,255,.75); background: transparent; cursor: pointer; font-size: 8px; }
.voice-space-footer { padding: 14px 20px 20px; display: flex; justify-content: center; gap: 8px; }
.voice-space-footer .button { border-color: rgba(255,255,255,.16); color: #fff; background: rgba(255,255,255,.08); }
.voice-space-footer .button.primary { color: #073b32; background: #77e0c2; }
.voice-profile-card { padding: 13px; display: grid; grid-template-columns: 43px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-soft); }
.voice-profile-orb { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--teal); }
.voice-profile-card b { font-size: 10px; }
.voice-profile-card p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.voice-setting-list { margin: 13px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.voice-setting-list label { min-height: 59px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.voice-setting-list label:first-child { border-top: 0; }
.voice-setting-list b, .voice-setting-list small { display: block; }
.voice-setting-list b { font-size: 10px; }
.voice-setting-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.voice-setting-list input { accent-color: var(--teal); }
.bookkeeping-voice { width: 100%; padding: 12px; display: flex; align-items: center; gap: 11px; border: 1px solid #cfe4dc; border-radius: 13px; color: var(--teal); background: var(--teal-soft); text-align: left; cursor: pointer; }
.bookkeeping-voice > span:first-child { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--teal); }
.bookkeeping-voice b, .bookkeeping-voice small { display: block; }
.bookkeeping-voice b { font-size: 10px; }
.bookkeeping-voice small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.bookkeeping-fields { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.bookkeeping-fields label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; }
.bookkeeping-fields .full { grid-column: 1 / -1; }
.bookkeeping-fields input, .bookkeeping-fields select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; background: #fff; font-size: 11px; }
.money-input { position: relative; }
.money-input b { position: absolute; left: 11px; top: 12px; font-size: 12px; }
.money-input input { padding-left: 28px; }

@keyframes voicePulse { 0% { opacity: .65; transform: scale(1); } 100% { opacity: 0; transform: scale(1.72); } }
@keyframes voiceBar { from { transform: scaleY(.5); opacity: .45; } to { transform: scaleY(1.25); opacity: 1; } }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 22px; display: grid; place-items: center; background: rgba(21,31,28,.42); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); animation: fadeIn .18s ease; }
.modal { width: min(640px, 100%); max-height: min(82vh, 760px); overflow: auto; background: #fff; border-radius: 21px; box-shadow: 0 28px 80px rgba(16,29,25,.24); animation: riseIn .22s ease; }
.modal.wide { width: min(760px,100%); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 21px 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.close-button { width: 31px; height: 31px; border: 0; border-radius: 9px; background: #f1f3f0; cursor: pointer; }
.modal-body { padding: 19px 21px 22px; }
.modal-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 13px 21px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
.share-people { display: flex; gap: 8px; margin-bottom: 18px; }
.person-choice { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.person-choice.selected { border-color: rgba(7,94,87,.35); background: var(--teal-soft); }
.person-choice .avatar { width: 29px; height: 29px; }
.person-choice b { font-size: 10px; }
.privacy-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.preview-group { padding: 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-soft); }
.preview-group.private { background: #fcf7f3; }
.preview-group h3 { margin: 0 0 10px; font-size: 11px; }
.preview-item { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(23,33,31,.06); font-size: 9px; line-height: 1.5; }
.preview-item:first-of-type { border-top: 0; }
.preview-item svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 1px; color: var(--teal); }
.preview-group.private .preview-item svg { color: var(--amber); }
.privacy-note { margin-top: 13px; padding: 10px 11px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); font-size: 9px; line-height: 1.55; }

.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 11px 9px; text-align: left; border-bottom: 1px solid var(--line); font-size: 10px; }
.compare-table th { color: var(--muted); font-weight: 600; }
.compare-table tr.recommended { background: var(--teal-soft); }
.compare-table strong { font-size: 11px; }
.artifact-sheet { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fbfbf9; }
.artifact-sheet h3 { margin: 0; font-size: 14px; }
.artifact-sheet .sheet-meta { margin: 5px 0 16px; color: var(--muted); font-size: 9px; }
.sheet-section { padding: 12px 0; border-top: 1px solid var(--line); }
.sheet-section b { display: block; color: var(--teal); font-size: 10px; }
.sheet-section p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

.search-modal { width: min(590px,100%); align-self: start; margin-top: 8vh; }
.search-box { height: 49px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.search-box input { flex: 1; border: 0; outline: 0; font-size: 13px; }
.search-results { padding: 9px; }
.search-result { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover { background: #f4f6f3; }
.result-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--teal); background: var(--teal-soft); }
.search-result b { display: block; font-size: 11px; }
.search-result span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.search-result kbd { color: var(--muted-2); font: 9px inherit; }

.toast-root { position: fixed; z-index: 200; right: 24px; bottom: 88px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 240px; max-width: 360px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 9px; color: #fff; background: #22312d; border-radius: 12px; box-shadow: var(--shadow); animation: toastIn .22s ease; font-size: 10px; line-height: 1.5; }
.toast svg { flex: 0 0 auto; width: 16px; height: 16px; color: #8dd4bf; }

.empty-state { padding: 55px 20px; text-align: center; }
.empty-state h3 { margin: 13px 0 6px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1120px) {
  .content-grid { grid-template-columns: minmax(0, 800px); }
  .agent-rail { display: none; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .workspace { padding-bottom: 132px; }
  .topbar { height: 58px; padding: 0 15px; }
  .mobile-brand { display: flex; }
  .breadcrumb { display: none; }
  .top-actions .icon-button:first-child { display: none; }
  .top-actions { gap: 6px; }
  .icon-button, .avatar.me { width: 33px; height: 33px; }
  .content-grid { display: block; padding: 18px 13px; }
  .app-home .workspace { padding-bottom: 72px; }
  .app-home .composer-wrap { display: none; }
  .today-home .workspace, .utility-page .workspace { padding-bottom: 72px; }
  .today-home .composer-wrap, .utility-page .composer-wrap { display: none; }
  .desktop-today { display: none; }
  .mobile-today-home { display: block; padding: 0 0 20px; }
  .mobile-today-head { margin: 2px 2px 17px; display: flex; align-items: flex-start; justify-content: space-between; }
  .mobile-today-head > div > span { color: var(--muted); font-size: 9px; }
  .mobile-today-head h1 { margin: 5px 0 4px; font-size: 26px; letter-spacing: -.04em; }
  .mobile-today-head p { margin: 0; color: var(--muted); font-size: 9px; }
  .today-avatar { width: 39px; height: 39px; border: 0; border-radius: 14px; color: #fff; background: #5b6e68; font-size: 11px; cursor: pointer; }
  .voice-os-card { position: relative; min-height: 224px; padding: 19px; overflow: hidden; border-radius: 22px; color: #fff; background: radial-gradient(circle at 88% 8%,rgba(137,241,207,.34),transparent 31%),linear-gradient(145deg,#0e3b35,#08705e); box-shadow: 0 18px 38px rgba(7,94,87,.19); }
  .voice-os-copy { max-width: 70%; }
  .voice-kicker { color: #85e1c5; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
  .voice-os-copy h2 { margin: 8px 0 7px; font-size: 20px; }
  .voice-os-copy p { margin: 0; color: rgba(255,255,255,.67); font-size: 8px; line-height: 1.55; }
  .voice-orb-button { position: absolute; top: 24px; right: 20px; width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #073d34; background: #8be4c8; box-shadow: 0 0 0 9px rgba(139,228,200,.08); cursor: pointer; }
  .voice-orb-button span svg { width: 25px; height: 25px; }
  .voice-orb-button i { position: absolute; inset: -1px; border: 1px solid rgba(139,228,200,.35); border-radius: 50%; animation: voicePulse 2.4s ease-out infinite; }
  .voice-orb-button i:nth-of-type(2) { animation-delay: .8s; }
  .voice-orb-button i:nth-of-type(3) { animation-delay: 1.6s; }
  .today-quick-form { position: absolute; left: 13px; right: 13px; bottom: 13px; height: 53px; padding: 0 7px 0 13px; display: grid; grid-template-columns: minmax(0,1fr) 34px 34px; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 10px 28px rgba(0,0,0,.15); }
  .today-quick-form input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
  .today-quick-form button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; color: var(--teal); background: var(--teal-soft); }
  .today-quick-form button:last-child { color: #fff; background: var(--teal); }
  .today-quick-form svg { width: 16px; height: 16px; }
  .mobile-section-head { margin-top: 22px; }
  .mobile-section-head h2 { font-size: 14px; }
  .today-action-list { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-small); }
  .today-action-list button { width: 100%; min-height: 68px; padding: 10px 12px; display: grid; grid-template-columns: 7px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
  .today-action-list button:first-child { border-top: 0; }
  .action-signal { width: 7px; height: 38px; border-radius: 99px; background: #8b72b1; }
  .action-signal.urgent { background: #d7655c; }
  .action-signal.calm { background: #d49b4e; }
  .today-action-list b, .today-action-list small { display: block; }
  .today-action-list b { font-size: 11px; }
  .today-action-list small { margin-top: 4px; color: var(--muted); font-size: 8px; }
  .today-action-list em { padding: 4px 7px; border-radius: 99px; color: var(--muted); background: #f2f2ef; font-size: 8px; font-style: normal; }
  .agent-head { margin-top: 21px; }
  .today-agent-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .today-agent-strip article { min-height: 93px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 15px; background: #f8f8f5; }
  .today-agent-strip article > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--teal); background: var(--teal-soft); }
  .today-agent-strip svg { width: 15px; height: 15px; }
  .today-agent-strip b, .today-agent-strip small { display: block; }
  .today-agent-strip b { font-size: 9px; }
  .today-agent-strip small { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.4; }
  .page-header { align-items: flex-start; margin-bottom: 18px; }
  .page-header h1 { font-size: 28px; }
  .page-subtitle { font-size: 11px; }
  .header-actions { align-self: flex-start; }
  .header-actions .button:not(.primary) { display: none; }
  .demo-path { gap: 5px; overflow-x: auto; scrollbar-width: none; }
  .demo-step { min-width: 124px; min-height: 51px; padding: 8px 9px 8px 34px; }
  .step-index { left: 8px; top: 10px; }
  .hero-top { padding: 18px; }
  .hero-top h2 { font-size: 18px; }
  .focus-item { grid-template-columns: 6px minmax(0,1fr) auto; gap: 11px; padding: 13px 15px; }
  .focus-context { display: none; }
  .mini-grid, .things-grid, .status-grid { grid-template-columns: 1fr; }
  .status-card.wide { grid-column: auto; }
  .thing-title-row { display: block; }
  .thing-title-row .header-actions { margin-top: 15px; }
  .member-stack { margin-top: 14px; }
  .thing-header h1 { font-size: 23px; }
  .work-metric-row { grid-template-columns: 1fr 1fr 1fr; }
  .work-metric { padding: 8px; }
  .work-metric strong { font-size: 13px; }
  .feed-item { grid-template-columns: 31px minmax(0,1fr); }
  .feed-item time { display: none; }
  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-card { min-height: 88px; }
  .routing-flow { grid-template-columns: 1fr; }
  .route-arrow { transform: rotate(90deg); justify-self: center; }
  .composer-wrap { left: 0; bottom: 59px; padding: 10px 12px 8px; }
  .composer { max-width: none; min-height: 61px; }
  .composer-main { height: 37px; }
  .composer-tools { height: 19px; }
  .composer-tools button { font-size: 8px; }
  .composer-context { display: none; }
  .composer-hint { display: none; }
  .mobile-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: 64px; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; padding: 4px 7px 7px; background: rgba(255,255,255,.95); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
  .mobile-nav button { height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
  .mobile-nav button.active { color: var(--teal); }
  .mobile-nav small { font-size: 8px; }
  .mobile-nav svg { width: 19px; height: 19px; }
  .floating-chat { position: fixed; z-index: 42; right: 14px; bottom: 154px; min-width: 91px; height: 43px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 3px solid rgba(255,255,255,.94); border-radius: 99px; color: #fff; background: #164f47; box-shadow: 0 12px 28px rgba(18,67,60,.3); cursor: pointer; }
  .today-home .floating-chat, .app-home .floating-chat, .utility-page .floating-chat { bottom: 77px; }
  .floating-chat svg { width: 17px; height: 17px; }
  .floating-chat b { font-size: 10px; }
  .privacy-preview { grid-template-columns: 1fr; }
  .product-switch { display: none; }
  .channel-main { display: block; }
  .channel-actions { margin-top: 12px; }
  .channel-name h1 { font-size: 18px; }
  .channel-tabs { gap: 12px; overflow-x: auto; }
  .discussion-card { padding: 0 13px 10px; }
  .topic-pinned { grid-template-columns: 26px minmax(0,1fr); }
  .topic-pinned .button { display: none; }
  .message-row { grid-template-columns: 31px minmax(0,1fr); }
  .message-avatar { width: 31px; height: 31px; }
  .suggestion-facts { grid-template-columns: 1fr; }
  .yuanbao-home-head h1 { font-size: 28px; }
  .suggestion-pills { display: grid; grid-template-columns: 1fr; }
  .suggestion-pill { min-height: 40px; }
  .origin-thread { padding-bottom: 10px; }
  .chat-turn.user .chat-turn-body { max-width: 90%; }
  .app-start { padding: 4px 0 20px; }
  .app-start .yuanbao-home-head { gap: 12px; margin: 0 2px 16px; }
  .app-start .yuanbao-home-head .yuanbao-orb { width: 43px; height: 43px; border-radius: 14px; }
  .app-start .yuanbao-home-head h1 { margin: 2px 0 3px; font-size: 24px; }
  .app-start .yuanbao-home-head p { max-width: 270px; font-size: 9px; line-height: 1.45; }
  .mobile-home-composer { min-height: 108px; margin: 0 0 21px; padding: 13px; display: block; border: 1px solid #dddeda; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(33,43,39,.09); }
  .mobile-home-composer input { width: 100%; height: 42px; padding: 0 2px; border: 0; outline: 0; background: transparent; font-size: 14px; }
  .mobile-home-tools { display: flex; align-items: center; gap: 9px; margin-top: 6px; }
  .mobile-home-tools > button:first-child { width: 30px; height: 30px; border: 0; border-radius: 9px; background: #f1f3f0; color: var(--muted); }
  .mobile-home-tools span { color: var(--muted); font-size: 9px; }
  .mobile-home-tools .home-mic { width: 32px; height: 32px; margin-left: auto; display: grid; place-items: center; border: 0; border-radius: 10px; color: var(--teal); background: var(--teal-soft); }
  .mobile-home-tools .home-mic svg { width: 16px; height: 16px; }
  .mobile-home-tools .home-send { width: 34px; height: 34px; margin-left: auto; display: grid; place-items: center; border: 0; border-radius: 11px; color: #fff; background: var(--teal); }
  .mobile-home-tools .home-mic + .home-send { margin-left: 0; }
  .mobile-home-tools .home-send svg { width: 18px; height: 18px; }
  .home-section-head { margin: 0 2px 9px; }
  .home-section-head b { font-size: 14px; }
  .home-section-head span { display: none; }
  .app-thing-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .app-thing-card { min-height: 108px; padding: 11px; display: flex; flex-direction: column; gap: 7px; }
  .app-card-icon { width: 32px; height: 32px; }
  .app-thing-card b { font-size: 11px; }
  .app-thing-card small { white-space: normal; font-size: 8px; line-height: 1.35; }
  .app-thing-card em { margin-top: auto; font-size: 8px; }
  .prompt-head { margin-top: 20px; }
  .app-start .suggestion-pills { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .app-start .suggestion-pill { min-height: 43px; padding: 0 13px; border-radius: 13px; text-align: left; font-size: 10px; }
  .natural-thread { padding-top: 0; }
  .natural-thread .origin-thread-title h1 { font-size: 17px; }
  .natural-thread .chat-turn { margin: 15px 0; }
  .natural-answer { padding: 10px 11px; }
  .conversation-capture { align-items: stretch; flex-direction: column; }
  .capture-actions { flex-wrap: wrap; }
  .capture-actions .button { flex: 1; }
  .capture-dismiss { min-height: 32px; padding: 0 8px; }
  .launch-options { grid-template-columns: 1fr; }
  .discover-page, .mine-page { padding-bottom: 5px; }
  .app-page-head { margin: 2px 2px 16px; }
  .app-page-head h1 { margin-top: 5px; font-size: 26px; }
  .app-page-head p { font-size: 9px; }
  .discover-feature { min-height: 202px; padding: 18px; grid-template-columns: minmax(0,1fr) 118px; gap: 12px; border-radius: 20px; }
  .discover-feature h2 { margin-top: 10px; font-size: 20px; }
  .discover-feature p { font-size: 8px; }
  .expense-preview { min-height: 112px; padding: 12px; border-radius: 15px; }
  .expense-preview strong { font-size: 21px; }
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tool-card { min-height: 123px; padding: 13px; border-radius: 15px; }
  .tool-card b { font-size: 11px; }
  .mine-profile { min-height: 104px; padding: 14px; grid-template-columns: 57px minmax(0,1fr) auto; gap: 12px; border-radius: 18px; }
  .mine-avatar { width: 57px; height: 57px; border-radius: 19px; font-size: 20px; }
  .mine-profile h1 { font-size: 21px; }
  .profile-stat-grid { gap: 7px; }
  .profile-stat-grid button { min-height: 90px; padding: 11px; }
  .profile-stat-grid span { font-size: 15px; }
  .profile-stat-grid small { line-height: 1.35; }
  .settings-card button { min-height: 64px; }
  .voice-space-modal { height: 100%; min-height: 0; }
  .voice-space-head { padding: 19px 18px 10px; }
  .voice-stage { min-height: 0; padding: 2px 18px 12px; overflow-y: auto; }
  .voice-listening-orb { width: 90px; height: 90px; margin-top: 24px; }
  .voice-transcript p { font-size: 14px; }
  .voice-space-footer { padding-bottom: max(19px,env(safe-area-inset-bottom)); }
  .bookkeeping-fields { grid-template-columns: 1fr; }
  .bookkeeping-fields .full { grid-column: auto; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; }
  .modal.voice-modal { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .search-modal { margin: 0; align-self: end; }
  .toast-root { left: 13px; right: 13px; bottom: 124px; }
  .toast { min-width: 0; max-width: none; }
}

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