:root {
  color-scheme: light;
  font: 15px/1.55 "Inter", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #21271e;
  background: #f7f6f1;
  --ink: #21271e;
  --muted: #5f695b;
  --green: #527e30;
  --green-dark: #3c6421;
  --sage: #eaf0df;
  --line: #e8ebe1;
  --card: #fffefb;
  --shadow: 0 8px 25px #2531170a;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #779e50; outline-offset: 3px; }
button:disabled { opacity: .55; cursor: default; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(27px, 3.3vw, 40px); line-height: 1.18; letter-spacing: -.035em; }
h2 { font-size: 20px; line-height: 1.3; }
h3 { font-size: 16px; }
small, .muted { color: var(--muted); }
img { display: block; max-width: 100%; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.shell { max-width: 1600px; margin: auto; min-height: 100svh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 36px; padding: 30px 19px; background: #fffefa; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; }
.brand img { width: 43px; height: 43px; }
.brand strong { display: block; font-size: 24px; line-height: 1.2; letter-spacing: .04em; }
.brand small { font-size: 11px; }
.sidenav { display: grid; gap: 7px; }
.sidenav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 13px; border-radius: 12px; color: var(--muted); }
.sidenav a:hover, .sidenav a[aria-current] { background: var(--sage); color: var(--green-dark); }
.sidenav a[aria-current] { font-weight: 700; }
.sidebar .device { margin-top: auto; padding: 10px 12px; font-size: 12px; }
.workspace { min-width: 0; padding: 0 clamp(20px, 4vw, 56px) 44px; }
.topbar { display: flex; align-items: center; justify-content: space-between; max-width: 1160px; margin: auto; min-height: 80px; gap: 12px; }
.topbar .brand, .mobile-back { display: none; }
.top-title { font-weight: 700; font-size: 17px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 30px; background: var(--sage); color: var(--green-dark); padding: 5px 11px; font-size: 12px; white-space: nowrap; }
.pill .icon { width: 15px; height: 15px; }
main { max-width: 1160px; margin: auto; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(275px, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 16px; min-width: 0; }
.hero { border-radius: 24px; min-height: 266px; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: start; padding: 30px; background: #edf1df; }
.hero::before { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg, #f0f2e4 6%, #f1f3e6ee 29%, transparent 67%), var(--hero-image) right center/cover; }
.hero p { font-size: 14px; color: #394737; margin-top: 10px; max-width: 55%; }
.hero .eyebrow { color: var(--green-dark); font-weight: 600; margin: 0 0 10px; }
.home-hero { --hero-image: url("assets/hero.webp"); }
.handoff-hero { --hero-image: url("assets/handoff.webp"); min-height: 268px; }
.card, .panel { border: 1px solid #fff; border-radius: 19px; background: var(--card); box-shadow: var(--shadow); }
.panel { padding: 20px; }
.accent { background: linear-gradient(130deg, #f0f3e6, #e7eed9); }
.row, .section-title { display: flex; align-items: center; gap: 12px; }
.section-title { justify-content: space-between; margin-bottom: 11px; }
.section-title a, .text-button { color: var(--green-dark); font-size: 13px; font-weight: 600; }
.text-button { min-height: 44px; border: 0; background: transparent; padding: 0 4px; }
.card-link { display: flex; gap: 14px; align-items: center; min-height: 84px; padding: 12px 16px; }
.card-link:hover, .shortcut:hover, .prompt:hover { border-color: #bacda8; }
.card-link .arrow, .task .task-time, .row .push { margin-left: auto; }
.arrow { width: 17px; height: 17px; color: var(--muted); }
.avatar, .robot-thumb { width: 57px; height: 57px; border-radius: 16px; object-fit: cover; flex: none; background: #ecefdf; }
.robot-thumb { border-radius: 50%; }
.card-link small, .avatar-info small { display: block; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.shortcut { min-height: 78px; display: grid; align-content: center; justify-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.shortcut .icon, .icon-badge { color: var(--green); }
.icon-badge { width: 43px; height: 43px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--sage); }
.task-list { display: grid; }
.task { display: flex; width: 100%; min-height: 50px; gap: 12px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; padding: 8px 0; }
.task:last-child { border-bottom: 0; }
.task-time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.check { display: grid; place-items: center; border: 1.5px solid #a6afa4; border-radius: 50%; width: 22px; height: 22px; flex: none; }
.task[aria-pressed="true"] .check { background: var(--green); color: white; border-color: var(--green); }
.check .icon { width: 15px; height: 15px; stroke-width: 2.5; }
.progress { height: 9px; border-radius: 99px; background: #e5eada; overflow: hidden; margin: 8px 0 12px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #a4bd7a, #638f3a); border-radius: inherit; }
.narrow { max-width: 740px; margin: auto; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 8px 0 5px; }
.page-head h1 { font-size: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 45px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); padding: 9px 17px; font-weight: 650; text-align: center; }
.button.primary { color: #fff; border: 0; background: linear-gradient(165deg, #789f51, #4b7827); }
.button:hover { filter: brightness(.96); }
.button .icon { width: 18px; height: 18px; }
.segment { display: flex; gap: 5px; padding: 4px; border-radius: 99px; background: #eeefe7; }
.segment button { min-height: 40px; border: 0; flex: 1; border-radius: 99px; background: transparent; white-space: nowrap; }
.segment button[aria-pressed="true"] { background: #5b8438; color: white; font-weight: 650; }
.profile { padding: 20px; display: flex; gap: 17px; align-items: center; }
.profile .avatar { width: 83px; height: 83px; border-radius: 21px; }
.profile h2 { font-size: 23px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metrics { display: grid; gap: 5px; }
.metrics strong { font-size: 20px; }
.soft { background: var(--sage); }
.blank { min-height: 92px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.date { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.icon-button { display: inline-grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; background: #eef0e8; border-radius: 50%; }
.bot-intro { text-align: center; padding: 19px 18px 23px; background: linear-gradient(155deg, #edf2e1, #faf9f4); border-radius: 35px 35px 20px 20px; }
.bot-intro img { width: 124px; height: 112px; object-fit: cover; border-radius: 40%; margin: 0 auto 11px; mix-blend-mode: multiply; }
.bot-intro p { max-width: 420px; margin: 7px auto 0; color: var(--muted); }
.prompts { display: grid; gap: 8px; }
.prompt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 47px; text-align: left; padding: 9px 13px; }
.prompt .icon:first-child { color: var(--green); }
.prompt .arrow { margin-left: auto; }
.chat { display: grid; gap: 9px; }
.bubble { max-width: 92%; justify-self: start; padding: 11px 15px; border-radius: 17px; overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble.mine { justify-self: end; background: var(--sage); }
.composer { display: flex; gap: 8px; padding: 6px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); }
.composer input { border: 0; background: transparent; padding: 7px 10px; min-width: 0; flex: 1; border-radius: 99px; }
.composer button { width: 44px; height: 44px; padding: 0; }
.list-item { border-bottom: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere; }
.list-item:last-child { border-bottom: 0; }
.breakable { overflow-wrap: anywhere; min-width: 0; }
.tabbar { display: none; }
dialog { position: fixed; max-width: min(460px, calc(100% - 26px)); width: 100%; max-height: calc(100dvh - 28px); overflow: auto; padding: 23px; border: 0; border-radius: 23px; background: var(--card); box-shadow: 0 16px 70px #22341344; }
dialog::backdrop { background: #1e291f66; }
dialog form { display: grid; gap: 13px; }
label { display: grid; gap: 5px; font-weight: 600; }
input, textarea, select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #dce3d4; border-radius: 11px; background: white; font-weight: 400; }
textarea { resize: vertical; min-height: 84px; }
#toast { position: fixed; bottom: max(95px, 8vh); left: 50%; z-index: 5; transform: translateX(-50%); width: max-content; max-width: 90%; border-radius: 14px; background: #34472d; color: white; padding: 10px 16px; }
#toast:empty { display: none; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 180px minmax(0, 1fr); }
  .workspace { padding-inline: 24px; }
  .sidebar { padding-inline: 13px; }
}
@media (max-width: 850px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .workspace { padding: 0 13px calc(88px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 67px; padding: 6px 3px; }
  .topbar .brand, .mobile-back { display: flex; }
  .mobile-back { width: 44px; height: 44px; margin-left: -7px; align-items: center; justify-content: center; }
  .top-title { flex: 1; text-align: center; }
  .topbar .brand img { width: 38px; height: 38px; }
  .topbar .brand strong { font-size: 21px; }
  .topbar .brand small { font-size: 10px; }
  .topbar .pill { padding-inline: 8px; }
  .hero { min-height: 183px; padding: 16px; border-radius: 20px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 13px; }
  .hero .eyebrow { display: none; }
  .hero::before { background-size: auto, auto 100%; background-repeat: no-repeat; background-position: left, right center; }
  .hero.handoff-hero { min-height: 206px; }
  .stack { gap: 12px; }
  .panel { padding: 15px; }
  .card-link { min-height: 72px; padding: 9px 12px; }
  .avatar, .robot-thumb { width: 51px; height: 51px; }
  .shortcut { min-height: 63px; font-size: 11px; }
  h2 { font-size: 17px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 3; inset: auto 0 0; padding: 3px 7px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fffefbef; backdrop-filter: blur(14px); }
  .tabbar a { display: grid; min-height: 54px; align-content: center; justify-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
  .tabbar a[aria-current] { color: var(--green-dark); font-weight: 750; }
}
@media (max-width: 350px) {
  .topbar .pill .icon { display: none; }
  .quick-grid { gap: 5px; }
}
.profile .push { margin-left: auto; }
.row > .push { margin-left: auto; flex: none; }
main:focus { outline: none; }
@media (max-width: 640px) { .topbar .desktop-only { display: none; } }
@media (max-width: 640px) {
  .hero::before {
    inset: 0 0 0 auto;
    width: 74%;
    background: var(--hero-image) right center / cover no-repeat;
    mask-image: linear-gradient(90deg, transparent, black 53%);
  }
}
@media (min-width: 641px) {
  .home-hero::before { background-position: left center, right 15%; }
  .handoff-hero::before { background-position: left center, right 22%; }
}
