:root {
  --primary: #00ffcc;
  --primary-deep: #008866;
  --bg: #f8faf9;
  --card: #fff;
  --ink: #111;
  --muted: #666;
  --line: #eef1f0;
  --shadow: 0 18px 50px rgba(15, 38, 34, .08);
  --radius: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.app-shell { min-height: 100vh; max-width: 1440px; margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 5vw; background: rgba(248,250,249,.9); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(17,17,17,.05); }
.brand { display:flex; align-items:center; gap:12px; border:0; padding:0; background:transparent; color:inherit; font:inherit; font-weight:800; letter-spacing:-.04em; text-align:left; }
.brand:hover { color:var(--primary-deep); }
.brand:focus-visible { outline:3px solid rgba(0,175,137,.35); outline-offset:5px; border-radius:12px; }
.brand-mark { display:grid; place-items:center; width: 36px; height:36px; border-radius: 13px; background: var(--primary); color:#0d332c; }
.brand-logo { width: 36px; height: 36px; object-fit: cover; border-radius: 13px; background: #effffb; }
.brand small { display:block; margin-top: 1px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.top-actions { display:flex; gap: 10px; align-items:center; }
.locale-switch { display:inline-flex; align-items:center; gap:5px; padding:0 4px; color:var(--muted); font-size:13px; white-space:nowrap; }
.locale-switch button { padding:5px 2px; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.locale-switch button.active { color:var(--primary-deep); font-weight:800; }
.locale-switch button:hover, .locale-switch button:focus-visible { color:var(--primary-deep); outline:none; }
.btn { border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; }
.btn-primary { background: var(--primary); color: #10372f; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.layout { display:grid; grid-template-columns: 230px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
.sidebar { padding: 30px 18px; border-right: 1px solid var(--line); min-height: calc(100vh - 72px); }
.nav-label { margin: 0 12px 12px; color: #9aa4a1; font-size: 11px; letter-spacing: .12em; }
.nav-item { display:flex; align-items:center; gap: 12px; width:100%; margin: 6px 0; padding: 13px 14px; border:0; border-radius: 16px; background: transparent; color: var(--muted); text-align:left; }
.nav-badge { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; margin-left:auto; padding:0 6px; border-radius:999px; background:#e65252; color:#fff; font-size:11px; font-weight:800; line-height:20px; box-shadow:0 2px 8px rgba(230,82,82,.24); }
.nav-item.active .nav-badge { background:#c63e3e; }
.nav-item.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-weight: 700; }
.nav-icon { width: 25px; text-align:center; font-size: 18px; }
.content { width: min(100%, 1080px); padding: clamp(24px, 4vw, 56px); }
.site-footer { max-width:1440px; margin:0 auto; padding:20px 5vw 32px 248px; color:var(--muted); font-size:12px; text-align:left; }
.site-footer a { color:inherit; text-decoration:none; }
.site-footer a:hover, .site-footer a:focus-visible { color:var(--primary-deep); text-decoration:underline; outline:none; }
.page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap: 20px; margin-bottom: 24px; }
.kicker { display:block; margin-bottom: 8px; color: var(--primary-deep); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.06em; line-height: 1.03; }
.subtitle { margin-top: 10px; color: var(--muted); }
.hero { display:grid; grid-template-columns: 1fr auto; gap: 25px; min-height:342px; padding: clamp(24px, 4vw, 42px); margin-bottom: 22px; overflow:hidden; background: linear-gradient(130deg, #fff 0%, #effff9 100%); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero h2 { max-width: 600px; font-size: clamp(26px, 4vw, 44px); line-height: 1.15; letter-spacing: -.06em; }
.hero-ai-input { display:flex; align-items:center; width:min(84%, 680px); margin-top:18px; padding:5px 6px 5px 17px; border:1px solid #ccefe5; border-radius:999px; background:rgba(255,255,255,.88); color:var(--muted); text-align:left; box-shadow:0 10px 22px rgba(20,50,45,.06); transition:border-color .2s, box-shadow .2s, transform .2s; }
.hero-ai-input:focus-within, .hero-ai-input:hover { border-color:var(--primary-deep); box-shadow:0 12px 26px rgba(0,136,102,.14); transform:translateY(-1px); }
.hero-ai-input input { min-width:0; flex:1; height:38px; border:0; outline:0; background:transparent; color:var(--ink); font:inherit; }
.hero-ai-input input::placeholder { color:var(--muted); opacity:1; }
.hero-ai-input button { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; padding:0; border:0; border-radius:50%; background:var(--primary); color:#10372f; cursor:pointer; }
.hero-ai-input b { font-size:19px; line-height:1; }
.hero-orbit { display:grid; place-items:center; width: 140px; height:140px; border-radius: 50%; background: var(--primary); color:#0b3a30; font-size: 46px; transform: rotate(8deg); box-shadow: 18px 18px 0 #d9fff5; }
.avatar-stack { display:inline-flex; align-items:center; gap:0; margin-top:28px; }
.avatar-stack-img { width:40px; height:40px; border-radius:50%; object-fit:cover; border:2.5px solid #fff; flex-shrink:0; margin-left:-10px; box-shadow:0 1px 4px rgba(10,30,27,.12); transition:transform .2s, z-index .2s; }
.avatar-stack-img:first-child { margin-left:0; }
.avatar-stack-img:hover { transform:translateY(-3px) scale(1.08); z-index:10 !important; }
.avatar-stack-count { margin-left:14px; font-size:15px; font-weight:600; color:var(--ink); white-space:nowrap; letter-spacing:.01em; }
.grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.card { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display:flex; align-items:flex-start; justify-content:space-between; gap: 12px; }
.card h3 { font-size: 20px; letter-spacing: -.03em; }
.tag { display:inline-flex; padding: 6px 10px; border-radius: 999px; background:#f2f7f5; color:var(--muted); font-size: 12px; }
.author { display:flex; align-items:center; gap: 10px; margin-bottom: 18px; }
.avatar { display:grid; place-items:center; width:38px; height:38px; overflow:hidden; border-radius: 50%; background:#e5faf4; }
.avatar img { width:100%; height:100%; object-fit:cover; }
.author small { display:block; color: var(--muted); }
.gender-icon { font-weight: 700; }
.gender-female { color: #F777B5; }
.gender-male { color: #4a90e2; }
.gender-unknown { color: #94a3b8; }
.invite-declaration { margin: 16px 0; padding: 12px 14px; border-left: 3px solid var(--primary); background: #f7fffc; color: #42635b; font-size: 14px; }
.meta { display:flex; flex-wrap:wrap; gap: 8px 14px; color: var(--muted); font-size: 13px; }
.card-actions { display:flex; justify-content:flex-end; gap: 9px; margin-top: 20px; }
.empty { padding: 50px 20px; text-align:center; color:var(--muted); }
.empty strong { display:block; margin-bottom:8px; color:var(--ink); font-size:20px; }
.feed-pager { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.pager-btn { padding: 9px 18px; border:1px solid var(--line); border-radius: 999px; background:#fff; color:var(--primary-deep); font-weight:700; transition: border-color .18s, transform .1s, opacity .18s; }
.pager-btn:hover:not(:disabled) { border-color:var(--primary-deep); transform:translateY(-1px); }
.pager-btn:disabled { cursor:not-allowed; opacity:.45; }
.pager-pages { display:inline-flex; gap:6px; }
.pager-page { min-width:38px; height:38px; padding:0 8px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--muted); font-weight:700; transition: border-color .18s, background .18s, color .18s; }
.pager-page:hover:not(:disabled) { border-color:var(--primary-deep); color:var(--primary-deep); }
.pager-page.active { background:var(--primary); border-color:var(--primary); color:#10372f; cursor:default; }
.pager-status { margin-left: 4px; color:var(--muted); font-size:13px; }
.plan-card { grid-column: span 2; }
.plan-overview { display:flex; align-items:center; justify-content:space-between; gap: 20px; padding: 20px; margin: 16px 0; background:#f4fffb; border-radius: 22px; }
.day-tabs { display:flex; gap: 8px; overflow:auto; margin: 18px 0; padding-bottom: 5px; }
.day-tab { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background:white; color:var(--muted); }
.day-tab.active { border-color:var(--primary); background:var(--primary); color:#10372f; font-weight:700; }
.day-detail-header { display:flex; align-items:center; gap:10px; margin: 20px 0 10px; }
.day-detail-badge { display:inline-flex; align-items:center; padding:6px 11px; border-radius:10px; background:var(--ink); color:#fff; font-weight:800; }
.day-detail-title { font-size:18px; color:var(--ink); }
.timeline { display:grid; gap: 0; }
.timeline-item { display:grid; grid-template-columns: 58px 34px 1fr; gap: 10px; min-height: 86px; }
.timeline-left { padding-top: 17px; text-align:right; }
.timeline-time { color:var(--primary-deep); font-weight:700; font-size:14px; }
.timeline-center { position:relative; display:flex; justify-content:center; }
.timeline-dot { z-index:1; width:30px; height:30px; margin-top:12px; display:grid; place-items:center; border-radius:50%; background:#e7fff7; border:1px solid #a7efdd; font-size:16px; }
.timeline-line { position:absolute; top:42px; bottom:0; width:2px; background:#c9eee5; }
.timeline-right { padding: 8px 0 14px; }
.timeline-card { padding:15px 16px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 6px 18px rgba(20,50,45,.05); }
.timeline-card-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.timeline-name { margin:0 0 6px; font-size:16px; }
.timeline-desc { margin:0; color:var(--muted); font-size:14px; line-height:1.6; }
.timeline-edit-hint { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; border:0; border-radius:10px; background:#f4fffb; color:var(--primary-deep); font-size:16px; transition:background .2s, transform .2s; }
.timeline-edit-hint:hover, .timeline-edit-hint:focus-visible { background:var(--primary); transform:translateY(-1px); outline:none; }
.timeline-item p { color:var(--muted); font-size:14px; }
@media (max-width: 640px) { .timeline-item { grid-template-columns: 50px 30px 1fr; gap: 7px; } .timeline-card { padding:13px; } }
.service-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.service { padding: 16px 10px; border:0; border-radius: 18px; background:#f8faf9; text-align:left; }
.service b { display:block; margin-top: 7px; }
.service small { color:var(--muted); }
.history-card { margin-top:18px; }
.history-tip { margin:8px 0 12px; color:var(--muted); font-size:13px; }
.history-list { display:grid; gap:10px; }
.history-item { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; width:100%; padding:10px; border:1px solid var(--line); border-radius:16px; background:#fff; text-align:left; }
.history-menu-wrap { position:relative; }
.history-menu-trigger { display:grid; place-items:center; width:34px; height:34px; border:0; border-radius:10px; background:#f5f8f7; color:#70817c; letter-spacing:2px; }
.history-menu-trigger:hover, .history-menu-trigger:focus-visible { background:#e8faf4; color:var(--primary-deep); outline:none; }
.history-menu { position:absolute; top:40px; right:0; z-index:3; min-width:110px; padding:5px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 12px 30px rgba(20,50,45,.14); }
.history-menu button { width:100%; padding:9px 10px; border:0; border-radius:8px; background:transparent; color:#dc2626; text-align:left; font-size:13px; }
.history-menu button:hover { background:#fff4f4; }
.action-sheet { display:grid; gap:8px; margin-top:18px; }
.action-sheet-item { display:flex; align-items:center; justify-content:space-between; width:100%; padding:15px 14px; border:1px solid var(--line); border-radius:14px; background:#fbfdfc; text-align:left; font-weight:700; }
.action-sheet-item:hover { border-color:var(--primary); background:#f4fffb; }
.action-sheet-danger { color:#dc2626; }
.history-summary { display:grid; grid-template-columns:1fr auto; gap:4px 12px; min-width:0; padding:4px 6px; border:0; background:transparent; text-align:left; cursor:pointer; }
.history-summary span, .history-summary small { color:var(--muted); }
.history-summary small { grid-column:1 / -1; font-size:12px; }
.history-item.active { border-color:var(--primary-deep); background:#f4fffb; }
.btn-danger { border:1px solid #fecaca; background:#fff7f7; color:#dc2626; }
.btn-danger:hover { background:#fee2e2; }
.chat-layout { display:grid; grid-template-columns: 1fr; min-height: 82vh; }
.chat-messages { display:flex; flex-direction:column; gap:12px; min-height: 68vh; max-height: 78vh; overflow:auto; padding: 10px 0 20px; }
.chat-message { max-width: min(760px, 92%); }
.chat-message.user { align-self:flex-end; }
.bubble { width:fit-content; max-width:100%; padding:15px 18px; border-radius:20px; background:#fff; border:1px solid var(--line); font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif; font-size:18px; line-height:1.8; white-space:normal; }
.ai-thinking { display:inline-flex; align-items:baseline; min-width:148px; color:var(--muted); }
.thinking-dots { display:inline-flex; align-items:center; gap:5px; margin-left:10px; vertical-align:middle; }
.thinking-dots b { display:block; width:7px; height:7px; border-radius:50%; background:#00FFCC; transform:scale(.62); opacity:.32; animation:thinking-dot-wave 1s ease-in-out infinite; }
.thinking-dots b:nth-child(2) { animation-delay:.16s; }
.thinking-dots b:nth-child(3) { animation-delay:.32s; }
@keyframes thinking-dot-wave { 0%, 100% { transform:scale(.62); opacity:.32; } 45% { transform:scale(1.22); opacity:1; } }
@media (prefers-reduced-motion: reduce) { .thinking-dots b { animation:none; transform:scale(1); opacity:1; } }
.message-bold { display:inline; margin:0; color:inherit; font:inherit; font-weight:700; }
.space-discussions .bubble .message-bold { display:inline; margin:0; font-size:inherit; line-height:inherit; }
.space-discussions .bubble { border-left:3px solid #d6e8e3; }
.space-discussions .bubble.own-message { margin-left:auto; background:#e8fff7; border-left-color:var(--primary-deep); }
.space-discussions .bubble.ai-message { border-color:#78d9be; border-left:3px solid #00b88e; background:#f0fff9; }
.space-discussions .bubble strong { display:block; margin-bottom:4px; color:var(--ink); font-size:13px; }
.system-member-tag { display:inline-block; margin-left:8px; padding:2px 6px; border-radius:999px; color:#075b4c; background:#bdf8e4; font-size:10px; font-weight:800; vertical-align:middle; }
.space-member-list { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.space-member { display:inline-flex; align-items:center; gap:5px; padding:7px 10px; border:1px solid var(--line); border-radius:999px; color:var(--muted); background:#fff; font-size:12px; font-weight:700; }
.space-member.ai-member { color:#075b4c; border-color:#63cfae; background:#e8fff7; }
.space-member small { padding:1px 5px; border-radius:999px; color:#075b4c; background:#bdf8e4; font-size:10px; }
.space-ai-hint { margin:0 0 16px; color:var(--muted); font-size:13px; line-height:1.65; }
.space-ai-hint strong { color:var(--primary-deep); }
.chat-identity { margin:8px 0 0; color:var(--muted); font-size:12px; }
.chat-message.user .bubble { margin-left:auto; background:var(--primary); color:#10372f; border-color:transparent; }
.weather-alert-chat { width:100%; max-width:760px; }
.weather-alert-message { display:flex; align-items:flex-start; gap:12px; width:100%; padding:14px 16px; border:1px solid #f7c45d; border-left:4px solid #e58b00; border-radius:16px; background:#fff8e7; color:#724500; font-size:15px; line-height:1.65; box-shadow:0 8px 20px rgba(178,105,0,.09); }
.weather-alert-icon { display:grid; flex:0 0 30px; place-items:center; width:30px; height:30px; border-radius:50%; background:#ffe1a1; font-size:17px; line-height:1; }
.weather-alert-body { min-width:0; overflow-wrap:anywhere; }
.weather-alert-body strong { display:block; margin-bottom:2px; color:#8a5000; font-size:15px; }
.space-discussions .weather-alert-message { margin:0; }
.ai-plan-card, .ai-services, .ai-bill-card { margin-top:12px; border:1px solid var(--line); border-radius:18px; background:#fff; overflow:hidden; box-shadow:0 8px 24px rgba(20,50,45,.06); }
.ai-plan-head, .ai-services-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px; background:#f5fffb; }
.ai-plan-head h3 { margin:5px 0 2px; font-size:21px; }
.ai-plan-head p { margin:0; color:var(--muted); }
.ai-plan-meta { display:flex; flex-wrap:wrap; gap:8px; padding:12px 18px; border-bottom:1px solid var(--line); }
.ai-plan-meta span { padding:5px 9px; border-radius:999px; background:#effaf6; color:var(--primary-deep); font-size:12px; }
.ai-day { padding:14px 18px 4px; }
.ai-day-title { display:flex; gap:10px; align-items:center; margin-bottom:8px; color:var(--text); }
.ai-day-title b { color:var(--primary-deep); }
.ai-day-entry { display:grid; grid-template-columns:60px 1fr; gap:12px; padding:10px 0; border-top:1px solid #edf3f1; }
.ai-day-entry time { color:var(--primary-deep); font-weight:700; }
.ai-day-entry strong { display:block; margin-bottom:3px; }
.ai-day-entry p { margin:0; color:var(--muted); font-size:13px; line-height:1.55; }
.ai-copy-plan { margin:12px 18px 18px; }
.ai-bill-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px; background:#f5fffb; }
.ai-bill-head h3 { margin:5px 0 0; font-size:21px; }
.ai-bill-metrics { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; padding:14px 18px; }
.ai-bill-metrics div { display:grid; gap:4px; }
.ai-bill-metrics span, .ai-bill-category { color:var(--muted); font-size:12px; }
.ai-bill-metrics strong { color:#087f69; font-size:18px; }
.ai-bill-category { margin:0; padding:0 18px 14px; }
.ai-bill-settlements { display:grid; gap:8px; margin:0; padding:14px 18px 18px; border-top:1px solid var(--line); list-style:none; }
.ai-bill-settlements li { display:flex; justify-content:space-between; gap:12px; font-size:13px; }
.ai-bill-settlements .receive { color:#15803d; }.ai-bill-settlements .pay { color:#c2410c; }
.ai-services-head { padding:14px 18px; background:#fff; align-items:center; }
.ai-services-head span { color:var(--muted); font-size:12px; }
.ai-service-list { display:grid; grid-template-columns:repeat(2, 1fr); gap:8px; padding:12px; }
.ai-service { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid var(--line); border-radius:14px; background:#fbfdfc; text-align:left; }
.ai-service-icon { font-size:22px; }
.ai-service b, .ai-service small { display:block; }
.ai-service small { margin-top:3px; color:var(--muted); font-size:11px; }
.ai-service em { margin-left:auto; font-style:normal; color:var(--muted); font-size:20px; }
.space-tools { display:flex; flex-wrap:wrap; gap:8px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.rich-bubble { min-width:min(360px, 100%); }
.rich-label { display:block; margin-top:6px; color:var(--primary-deep); font-size:12px; font-weight:800; }
.rich-bubble p { margin:8px 0 0; color:var(--ink); }
.rich-bubble small { display:block; margin-top:8px; color:var(--muted); }
.expense-chat-card { display:grid; gap:6px; margin-top:10px; padding:14px; border:1px solid #b7f4e4; border-radius:16px; background:#f4fffb; }
.expense-chat-card h3, .expense-chat-card p { margin:0; }
.expense-chat-card > strong { font-size:26px; color:#087f69; }
.expense-chat-kicker { color:#087f69; font-size:12px; font-weight:800; }
.expense-detail-link { justify-self:start; border:0; padding:4px 0; background:transparent; color:#087f69; font-weight:800; }
.expense-member-checklist { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; padding:12px; border:1px solid var(--line); border-radius:14px; }
.expense-member-option { display:flex; align-items:center; gap:7px; font-size:14px; }
.bill-overview { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; margin-bottom:18px; }
.bill-overview article { display:grid; gap:8px; padding:18px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.bill-overview span { color:var(--muted); font-size:13px; }.bill-overview strong { font-size:24px; color:#087f69; }
.bill-section { margin-top:18px; }.bill-settlement-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:10px; }
.bill-settlement { display:grid; gap:5px; padding:14px; border:1px solid var(--line); border-radius:15px; background:#fff; }.bill-settlement span { font-weight:800; }.bill-settlement small { color:var(--muted); font-size:12px; }
.bill-settlement.receive { border-color:#86efac; background:#f0fdf4; }.bill-settlement.receive span { color:#15803d; }.bill-settlement.pay { border-color:#fed7aa; background:#fff7ed; }.bill-settlement.pay span { color:#c2410c; }.bill-settlement.settled { background:#f8fafc; }.bill-settlement.settled span { color:#64748b; }
.bill-record-tip { margin:0 0 12px; color:var(--muted); font-size:13px; }.bill-record-list { display:grid; gap:10px; }.bill-record { display:flex; justify-content:space-between; gap:16px; padding:15px 0; border-bottom:1px solid var(--line); }.bill-record:last-child { border-bottom:0; }.bill-record h3, .bill-record p { margin:8px 0 0; }.bill-record p, .bill-record-amount small, .bill-record-time { color:var(--muted); font-size:13px; }.bill-record-note { color:var(--ink) !important; }.bill-record-time { display:block; margin-top:8px; }.bill-record-actions { display:flex; align-items:flex-start; gap:8px; flex:0 0 auto; }.bill-record-amount { display:grid; align-content:start; justify-items:end; gap:6px; padding-top:7px; white-space:nowrap; }.bill-record-menu { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; padding:0 0 5px; border:1px solid var(--line); border-radius:10px; background:#f5f8f7; color:#70817c; font-size:17px; font-weight:800; letter-spacing:1px; line-height:1; transition:background .2s, border-color .2s, color .2s, transform .2s; }.bill-record-menu:hover, .bill-record-menu:focus-visible { border-color:#9ee7d4; background:#e8faf4; color:var(--primary-deep); outline:none; transform:translateY(-1px); }.bill-record-menu:active { transform:translateY(0); }
.web-poll-options { display:grid; gap:8px; margin-top:12px; }
.web-poll-options .btn { width:100%; text-align:left; }
.chat-compose { display:flex; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.mention-compose { position:relative; flex:1; min-width:0; }
.chat-compose input { width:100%; min-width:0; padding: 14px 16px; border:1px solid var(--line); border-radius: 999px; outline:none; }
.chat-compose input:focus { border-color: var(--primary-deep); }
.chat-clear-row { display:flex; justify-content:center; padding-top: 10px; }
.chat-clear-row .btn-sm { font-size:13px; padding: 6px 14px; }
.mention-menu { position:absolute; z-index:20; left:0; right:0; bottom:calc(100% + 8px); max-height:220px; overflow:auto; padding:6px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 14px 32px rgba(18,48,42,.14); }
.mention-menu[hidden] { display:none; }
.mention-menu-item { display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:0; border-radius:10px; color:var(--ink); background:transparent; text-align:left; cursor:pointer; }
.mention-menu-item:hover, .mention-menu-item:focus { background:#e8fff7; outline:none; }
.mention-menu-item strong { font-size:13px; }
.mention-menu-item small { color:var(--muted); font-size:11px; }
.mention-menu-item.ai-member strong { color:#075b4c; }
.profile-hero { display:flex; align-items:center; gap: 18px; padding: 24px; margin-bottom:18px; background: #111; color:white; border-radius: var(--radius); }
.profile-hero .avatar { width:74px; height:74px; font-size:30px; background:#d8fff4; }
.profile-hero small { display:block; color:#a9b5b2; }
.profile-account-id { margin-top:4px; font-size:11px; letter-spacing:.02em; opacity:.9; }
.menu-list { display:grid; gap: 10px; }
.menu-row { display:flex; align-items:center; gap:14px; padding: 17px; border:1px solid var(--line); border-radius: 18px; background:white; }
.menu-copy { flex:1; }
.menu-copy small { display:block; margin-top:3px; color:var(--muted); }
.menu-arrow { color:#a4afac; font-size:24px; }
.modal-backdrop { position:fixed; inset:0; z-index:20; display:grid; place-items:center; padding:20px; background:rgba(10,30,27,.35); backdrop-filter: blur(8px); }
.modal { width:min(560px, 100%); max-height:90vh; overflow:auto; padding:24px; background:white; border-radius:28px; box-shadow: 0 30px 100px rgba(0,0,0,.2); }
.hero-ai-backdrop { position:fixed; inset:0; z-index:40; display:flex; align-items:flex-end; background:rgba(10,30,27,.38); backdrop-filter:blur(8px); animation:hero-ai-fade .2s ease-out; }
.hero-ai-drawer { display:grid; grid-template-rows:auto minmax(0, 1fr) auto; width:100%; height:clamp(540px, 80vh, 920px); min-height:540px; padding:20px clamp(18px, 5vw, 72px) max(20px, env(safe-area-inset-bottom)); background:#fff; border-radius:30px 30px 0 0; box-shadow:0 -20px 80px rgba(0,0,0,.18); animation:hero-ai-rise .24s ease-out; }
.hero-ai-drawer-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:0 0 16px; border-bottom:1px solid var(--line); }
.hero-ai-drawer-head .kicker { margin-bottom:5px; }
.hero-ai-drawer-head h2 { font-size:24px; letter-spacing:-.04em; }
.hero-ai-drawer-head p { margin-top:5px; color:var(--muted); font-size:14px; }
.hero-ai-close { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; border:1px solid var(--line); border-radius:50%; background:#fff; color:#465752; font-size:28px; line-height:1; transition:background .2s, border-color .2s; }
.hero-ai-close:hover, .hero-ai-close:focus-visible { border-color:var(--primary-deep); background:#effff9; outline:none; }
.hero-ai-drawer-body { display:flex; flex-direction:column; gap:12px; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:18px 4px; scrollbar-gutter:stable; }
.hero-ai-drawer-body::-webkit-scrollbar { width:8px; }
.hero-ai-drawer-body::-webkit-scrollbar-thumb { border:2px solid #fff; border-radius:999px; background:#c6d7d2; }
.hero-ai-empty { display:grid; align-content:center; justify-items:start; gap:7px; min-height:100%; color:var(--muted); }
.hero-ai-empty strong { color:var(--ink); font-size:20px; }
.hero-ai-empty span { max-width:500px; line-height:1.7; }
.hero-ai-compose { padding:16px 0 0; }
@keyframes hero-ai-fade { from { opacity:0; } to { opacity:1; } }
@keyframes hero-ai-rise { from { transform:translateY(24px); } to { transform:translateY(0); } }
.modal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.modal-head h3 { font-size:24px; }
.close { border:0; background:transparent; font-size:26px; color:var(--muted); }
.form-grid { display:grid; gap:12px; }
.form-grid input, .form-grid textarea, .form-grid select { width:100%; padding:13px 14px; border:1px solid var(--line); border-radius:14px; outline:none; }
.phone-group { display:flex; gap:8px; }
.phone-group .country-select { width:auto; min-width:130px; flex-shrink:0; }
.phone-group input { flex:1; min-width:0; }
[data-auth-method].active { background:var(--accent); color:white; }
.auth-tabs { display:flex; gap:8px; margin-bottom:12px; }
.auth-tabs button { flex:1; padding:10px 8px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--muted); font-size:14px; cursor:pointer; transition:.2s; }
.auth-tabs button.active { background:var(--accent); color:#fff; border-color:var(--accent); font-weight:600; }
.auth-method-toggle { display:flex; gap:8px; margin-bottom:12px; }
.auth-method-toggle button { flex:1; padding:8px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--muted); font-size:13px; cursor:pointer; transition:.2s; }
.auth-method-toggle button.active { background:#e8fff8; color:var(--accent); border-color:var(--accent); font-weight:600; }
.form-grid textarea { min-height:100px; resize:vertical; }
.form-hint { margin: -2px 0 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.toast { position:fixed; left:50%; bottom:28px; z-index:30; transform:translateX(-50%); padding:12px 18px; border-radius:999px; background:#111; color:white; animation:toast-in .35s ease; }
.toast.update-toast { background:linear-gradient(135deg,#00c99f,#00b38a); color:#fff; font-weight:600; letter-spacing:.02em; box-shadow:0 6px 28px rgba(0,180,130,.35); }
.toast.fade-out { opacity:0; transition:opacity .35s ease; }
@keyframes toast-in { from { opacity:0; transform:translateX(-50%) translateY(12px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
.boot-screen { min-height:100vh; display:grid; place-items:center; padding:24px; background:linear-gradient(145deg,#f7fffc 0%,#fff 52%,#f2fffb 100%); color:var(--ink); }
.boot-card { width:min(320px,100%); display:flex; flex-direction:column; align-items:center; gap:10px; padding:34px 28px; border:1px solid rgba(0,255,204,.28); border-radius:24px; background:rgba(255,255,255,.92); box-shadow:0 18px 48px rgba(18,48,42,.10); text-align:center; }
.boot-logo { width:58px; height:58px; object-fit:contain; }
.boot-card strong { font-size:21px; letter-spacing:.04em; }
.boot-card span { color:var(--muted); font-size:14px; }
.boot-card small { color:#9aa0a6; font-size:12px; }
.boot-loader { width:26px; height:26px; border:3px solid #d9fff5; border-top-color:#00c99f; border-radius:50%; animation:boot-spin .8s linear infinite; }
@keyframes boot-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boot-loader { animation:none; border-top-color:#00c99f; } }
.travel-workspace-shell { background:linear-gradient(135deg, #f8faf9 0%, #f4fffb 56%, #f8faf9 100%); }
.layout.no-sidebar { display:block; max-width:none; }
.travel-workspace-content { width:100%; max-width:none; padding:0; }
.travel-workspace { display:grid; grid-template-columns:minmax(300px, 30%) minmax(0, 70%); height:calc(100dvh - 72px); min-height:0; overflow:hidden; }
.workspace-chat-pane { display:flex; flex-direction:column; min-width:0; min-height:0; padding:clamp(24px, 3vw, 42px); overflow:hidden; background:rgba(255,255,255,.82); border-right:1px solid #dceee8; }
.workspace-pane-label { color:var(--primary-deep); font-size:11px; font-weight:800; letter-spacing:.15em; }
.workspace-chat-title { display:flex; align-items:center; gap:10px; margin-top:8px; }
.workspace-chat-title h1 { font-size:clamp(28px, 3.4vw, 42px); }
.workspace-live-dot { display:inline-flex; align-items:center; gap:5px; padding:5px 9px; border-radius:999px; background:#e8fff7; color:#087f69; font-size:12px; font-weight:700; }
.workspace-live-dot::before { width:7px; height:7px; border-radius:50%; background:var(--primary-deep); content:""; }
.workspace-chat-subtitle { margin-top:10px; color:var(--muted); font-size:14px; line-height:1.65; }
.workspace-chat-messages { display:flex; flex:1; flex-direction:column; gap:12px; min-height:260px; max-height:none; overflow:auto; margin:20px -8px 0 0; padding:4px 12px 20px 0; scrollbar-color:#b8d6cd transparent; }
.workspace-chat-messages .chat-message { max-width:100%; }
.workspace-chat-messages .bubble { font-size:15px; line-height:1.65; }
.workspace-chat-messages .ai-services, .workspace-chat-messages .ai-bill-card { margin-top:10px; }
.workspace-chat-compose { position:sticky; bottom:0; margin-top:14px; padding-top:16px; background:linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.98) 28%); }
.workspace-plan-pane { min-width:0; min-height:0; padding:clamp(24px, 4vw, 62px); overflow:auto; overscroll-behavior:contain; scrollbar-color:#b8d6cd transparent; }
.workspace-plan-hero { position:relative; display:flex; align-items:flex-end; justify-content:space-between; min-height:210px; padding:clamp(24px, 4vw, 46px); overflow:hidden; border:1px solid rgba(0,136,102,.2); border-radius:32px; background:radial-gradient(circle at 82% 20%, rgba(0,255,204,.76), transparent 24%), linear-gradient(118deg, #063b32 0%, #087f69 58%, #00ad89 100%); color:#fff; box-shadow:0 22px 48px rgba(0,86,65,.17); }
.workspace-plan-hero::before, .workspace-plan-hero::after { position:absolute; border:1px solid rgba(255,255,255,.18); border-radius:50%; content:""; }
.workspace-plan-hero::before { right:-58px; bottom:-102px; width:260px; height:260px; }
.workspace-plan-hero::after { right:66px; top:-93px; width:180px; height:180px; }
.workspace-hero-copy, .workspace-hero-shape { position:relative; z-index:1; }
.workspace-plan-hero .kicker { color:#b9ffed; }
.workspace-plan-hero h2 { max-width:680px; font-size:clamp(38px, 5.4vw, 72px); line-height:.96; letter-spacing:-.07em; }
.workspace-plan-hero p { margin-top:14px; color:#dcfff7; font-size:17px; }
.workspace-hero-shape { display:grid; place-items:center; width:76px; height:76px; border:1px solid rgba(255,255,255,.38); border-radius:26px; background:rgba(255,255,255,.14); font-size:34px; backdrop-filter:blur(8px); transform:rotate(8deg); }
.workspace-plan-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:34px 0 16px; }
.workspace-plan-heading h2 { font-size:clamp(25px, 3vw, 38px); letter-spacing:-.055em; }
.workspace-plan-heading .kicker { margin-bottom:6px; }
.workspace-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px; }
.workspace-meta span { max-width:100%; padding:9px 12px; overflow:hidden; border:1px solid #d9eee8; border-radius:999px; background:#fff; color:#42635b; font-size:13px; white-space:nowrap; text-overflow:ellipsis; }
.workspace-map { position:relative; min-height:210px; margin-bottom:28px; overflow:hidden; border:1px solid #d8ece6; border-radius:26px; background:linear-gradient(135deg, #effcf7 0%, #fafdff 54%, #e8fff7 100%); }
.workspace-tencent-map, .workspace-map-fallback { position:absolute; inset:0; width:100%; height:100%; }
.workspace-tencent-map { z-index:1; background:#effcf7; }
.workspace-map-fallback { z-index:2; pointer-events:none; }
.workspace-map.is-live .workspace-tencent-map { z-index:3; }
.workspace-map-popup { min-width:190px; max-width:260px; color:#1e293b; font-family:inherit; line-height:1.45; }
.workspace-map-popup strong { display:block; color:#b42318; font-size:14px; margin-bottom:2px; }
.popup-category { display:inline-block; margin-top:2px; color:#0891b2; font-size:11px; background:#ecfeff; padding:1px 6px; border-radius:4px; }
.popup-address { margin:5px 0 0; color:#475569; font-size:12px; word-break:break-all; }
.workspace-map-popup p { margin:6px 0 0; color:#334155; font-size:12px; }
.popup-map-link { display:inline-flex; align-items:center; margin-top:8px; padding:5px 10px; color:#fff; font-size:12px; font-weight:600; background:linear-gradient(135deg,#07c160,#06ae56); border-radius:6px; text-decoration:none; transition:opacity .18s, transform .1s; }
.popup-map-link:hover { opacity:.88; transform:translateY(-1px); }
.map-grid { position:absolute; inset:0; opacity:.58; background-image:linear-gradient(#cfe9df 1px, transparent 1px), linear-gradient(90deg, #cfe9df 1px, transparent 1px); background-size:28px 28px; mask-image:linear-gradient(to bottom, #000, transparent); }
.map-route { position:absolute; inset:0; }
.map-route::before { position:absolute; top:50%; right:16%; left:18%; height:3px; border-radius:99px; background:repeating-linear-gradient(90deg, var(--primary-deep) 0 12px, transparent 12px 20px); content:""; transform:rotate(-9deg); }
.map-route i { position:absolute; width:13px; height:13px; border:3px solid var(--primary-deep); border-radius:50%; background:#fff; box-shadow:0 0 0 5px rgba(0,255,204,.18); }
.map-route i:nth-child(1) { top:37%; left:20%; }.map-route i:nth-child(2) { top:53%; left:39%; }.map-route i:nth-child(3) { top:42%; left:61%; }.map-route i:nth-child(4) { top:59%; right:17%; }
.map-pin { position:absolute; display:grid; place-items:center; width:34px; height:34px; border-radius:14px 14px 14px 2px; background:var(--primary); color:#075b4c; font-size:20px; box-shadow:0 9px 18px rgba(0,136,102,.2); transform:rotate(-45deg); }.map-pin::first-letter { transform:rotate(45deg); }
.pin-a { top:29%; left:16%; }.pin-b { right:13%; bottom:21%; }
.map-label { position:absolute; top:16px; left:18px; color:#0c5d4d; font-size:16px; font-weight:800; }.workspace-map small { position:absolute; right:18px; bottom:15px; color:#64817a; font-size:11px; }
.workspace-days { display:grid; gap:18px; }
.workspace-day { display:grid; grid-template-columns:126px minmax(0, 1fr); gap:20px; }
.workspace-day-marker { display:flex; flex-direction:column; align-items:flex-start; gap:7px; padding-top:18px; }.workspace-day-marker span { padding:7px 10px; border-radius:10px; background:var(--ink); color:#fff; font-size:12px; font-weight:800; }.workspace-day-marker small { color:var(--muted); font-size:12px; line-height:1.5; }
.workspace-day-body { min-width:0; padding:22px; border:1px solid var(--line); border-radius:24px; background:#fff; box-shadow:0 10px 28px rgba(15,38,34,.05); }.workspace-day-body h3 { margin-bottom:16px; font-size:21px; letter-spacing:-.035em; }
.workspace-items { display:grid; gap:10px; }.workspace-item { display:grid; grid-template-columns:40px minmax(0, 1fr) 28px; gap:12px; align-items:start; padding:13px; border:1px solid #e6f0ed; border-radius:17px; background:#fbfefd; }.workspace-item-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:14px; background:#e9fff7; font-size:19px; }.workspace-item-top { display:flex; flex-wrap:wrap; align-items:baseline; gap:7px 10px; }.workspace-time { color:var(--primary-deep); font-size:12px; font-weight:800; }.workspace-item p { margin-top:5px; color:var(--muted); font-size:13px; line-height:1.6; }.workspace-item-arrow { display:grid; place-items:center; width:28px; height:28px; border:0; border-radius:10px; background:#f1faf7; color:var(--primary-deep); font-size:21px; line-height:1; }.workspace-mobile-switcher { display:none; }
@media (max-width: 980px) { .travel-workspace { grid-template-columns:minmax(270px, 36%) minmax(0, 64%); }.workspace-chat-pane { padding:24px; }.workspace-plan-pane { padding:32px 24px; }.workspace-day { grid-template-columns:98px minmax(0, 1fr); } }
@media (max-width: 760px) { .travel-workspace { display:block; height:auto; min-height:0; overflow:visible; padding-bottom:92px; }.workspace-chat-pane { min-height:auto; padding:26px 16px; overflow:visible; border-right:0; border-bottom:1px solid #dceee8; }.workspace-chat-messages { flex:none; max-height:calc(100dvh - 255px); min-height:190px; }.workspace-plan-pane { padding:30px 16px 40px; overflow:visible; }.workspace-plan-hero { min-height:184px; border-radius:25px; }.workspace-plan-heading { align-items:flex-start; flex-direction:column; margin-top:26px; }.workspace-day { grid-template-columns:1fr; gap:8px; }.workspace-day-marker { flex-direction:row; align-items:center; padding:0 2px; }.workspace-day-marker small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.workspace-day-body { padding:17px; border-radius:20px; }.workspace-map { min-height:180px; }.workspace-map small { left:14px; right:14px; }.workspace-plan-heading .btn { width:100%; }.workspace-item { grid-template-columns:38px minmax(0, 1fr) 24px; padding:11px; }.workspace-mobile-plan .workspace-chat-pane, .workspace-mobile-chat .workspace-plan-pane { display:none; }.workspace-mobile-switcher { position:fixed; z-index:30; bottom:max(18px, calc(env(safe-area-inset-bottom) + 10px)); left:50%; display:flex; gap:4px; padding:6px; border:1px solid rgba(4,64,52,.12); border-radius:999px; background:rgba(255,255,255,.94); box-shadow:0 15px 36px rgba(4,51,42,.2); transform:translateX(-50%); backdrop-filter:blur(14px); }.workspace-mobile-switcher button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-width:102px; padding:11px 16px; border:0; border-radius:999px; background:transparent; color:#54736b; font:inherit; font-size:13px; font-weight:800; }.workspace-mobile-switcher button.active { background:linear-gradient(135deg, #b8ffe7, #89ecd0); color:#075b4c; box-shadow:0 4px 13px rgba(0,136,102,.2); }.workspace-mobile-switcher button span { font-size:17px; line-height:1; } }
@media (max-width: 420px) { .workspace-plan-hero h2 { font-size:37px; }.workspace-hero-shape { width:56px; height:56px; border-radius:20px; font-size:26px; }.workspace-meta span { max-width:100%; }.workspace-item-top { display:block; }.workspace-time { display:block; margin-bottom:4px; }.workspace-mobile-switcher button { min-width:92px; padding:10px 13px; } }

@media (max-width: 800px) {
  .topbar { height:64px; padding:0 18px; }
  .top-actions .btn-ghost { display:none; }
  .layout { display:block; }
  .sidebar { position:fixed; bottom:0; left:0; right:0; z-index:15; display:flex; justify-content:space-around; min-height:0; padding:8px 10px calc(8px + env(safe-area-inset-bottom)); border:0; background:rgba(255,255,255,.95); box-shadow:0 -8px 30px rgba(0,0,0,.08); }
  .sidebar .nav-label { display:none; }
  .nav-item { flex:1; flex-direction:column; gap:3px; margin:0; padding:7px 4px; border-radius:12px; text-align:center; font-size:11px; }
  .nav-icon { font-size:17px; }
  .content { padding:26px 16px 100px; }
  .site-footer { padding:16px 16px calc(92px + env(safe-area-inset-bottom)); text-align:center; }
  .page-heading { align-items:flex-start; flex-direction:column; }
  .hero { grid-template-columns:1fr; min-height:342px; }
  .hero-orbit { width:86px; height:86px; font-size:28px; }
  .hero-ai-drawer { height:78vh; min-height:420px; padding:18px 16px max(16px, env(safe-area-inset-bottom)); border-radius:24px 24px 0 0; }
  .hero-ai-drawer-head h2 { font-size:21px; }
  .grid { grid-template-columns:1fr; }
  .plan-card { grid-column:span 1; }
  .service-grid { grid-template-columns:repeat(2,1fr); }
  .bill-overview { grid-template-columns:1fr; }
  .ai-bill-metrics { grid-template-columns:1fr; }
}
@media (max-width: 480px) {
  .expense-member-checklist { grid-template-columns:1fr; }
  .bill-record { align-items:flex-start; flex-direction:column; }
  .bill-record-actions { align-self:flex-end; margin-top:-8px; }
  .bill-record-amount { justify-items:end; }
}
@media (max-width: 480px) {
  .hero h2 { font-size:28px; }
  .avatar-stack-img { width:34px; height:34px; margin-left:-8px; border-width:2px; }
  .avatar-stack-count { font-size:13px; margin-left:10px; }
  .card { padding:18px; border-radius:22px; }
  .plan-overview { align-items:flex-start; flex-direction:column; }
}

/* AI 出行邀约匹配卡片 + 快捷选项 */
.match-cards { display:flex; flex-direction:column; gap:12px; margin-top:12px; max-width:100%; }
.match-cards .card { padding:18px 18px 16px; border-radius:20px; }
.match-cards .invite-declaration { margin:12px 0; }
.match-cards .card-actions { margin-top:4px; }
.chat-quick-replies { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.chat-quick-reply { padding:8px 14px; border:1px solid var(--primary-deep); background:#eafff8; color:var(--primary-deep); border-radius:999px; font-size:14px; line-height:1.2; transition:transform .12s ease, background .15s ease; }
.chat-quick-reply:hover { background:var(--primary); color:#10372f; transform:translateY(-1px); }
.chat-quick-reply:active { transform:translateY(0); }
.chat-quick-action { background:var(--primary); color:#10372f; border-color:transparent; font-weight:600; }
.chat-quick-action:hover { filter:brightness(1.05); background:var(--primary); color:#10372f; }
