:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
  color: #26312b;
  background: #fff;
  --green: #118657;
  --green-dark: #0d6c47;
  --muted: #6e7c72;
  --line: #e1e7e2;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.preview-banner { min-height: 31px; display: grid; place-items: center; text-align: center; background: #20342a; color: #fff; padding: 6px 10px; font-size:calc((11px) * var(--app-text-scale, 1)); font-weight: 650; }
.desktop-sidebar, .desktop-header { display: none; }
.app-shell { min-height: calc(100vh - 31px); }
.mobile-header { height: 58px; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; position: sticky; top: 0; z-index: 4; }
.mobile-header strong { font-size:calc((19px) * var(--app-text-scale, 1)); }
.icon-button { border: 0; background: transparent; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: #26312b; position: relative; }
.icon-button:hover { background: #f0f5f1; }
.dot { position: absolute; width: 7px; height: 7px; border: 1px solid #fff; background: #eb6e4a; border-radius: 50%; top: 9px; right: 9px; }
main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.page { max-width: 1100px; margin: auto; padding: 14px 18px 32px; }
.account-row { width: 100%; border: 0; background: #fff; display: flex; align-items: center; gap: 12px; text-align: left; color: inherit; padding: 7px 0 14px; }
.account-avatar { width: 56px; height: 56px; border-radius: 50%; background: #e4f2e7; color: var(--green); font-size:calc((23px) * var(--app-text-scale, 1)); font-weight: 750; display: grid; place-items: center; flex: none; }
.account-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.account-copy strong { font-size:calc((20px) * var(--app-text-scale, 1)); line-height: 1.25; }
.account-copy small { color: var(--muted); font-size:calc((12px) * var(--app-text-scale, 1)); line-height: 1.3; }
.account-row > svg { margin-left: auto; width: 17px; height: 17px; color: #a0aca2; }
.overview { display: grid; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 2px 0 14px; }
.overview button { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 5px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: #3b4940; text-align: left; }
.overview button:last-child { border-bottom: 0; }
.overview button span { font-size:calc((14px) * var(--app-text-scale, 1)); }
.overview button strong { font-size:calc((19px) * var(--app-text-scale, 1)); font-weight: 700; margin-left: auto; }
.overview button svg { width: 16px; height: 16px; color: #9eaaa0; }
.broadcast { width: 100%; min-height: 52px; background: var(--green); border: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-size:calc((17px) * var(--app-text-scale, 1)); font-weight: 750; }
.broadcast:hover { background: var(--green-dark); }
.broadcast-note { color: var(--muted); text-align: center; font-size:calc((12px) * var(--app-text-scale, 1)); margin: 7px 0 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin: 17px 0 9px; }
.section-head h2, .section-head h3 { font-size:calc((18px) * var(--app-text-scale, 1)); margin: 0; }
.section-head span { color: #8b998e; font-size:calc((11px) * var(--app-text-scale, 1)); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px 5px; }
.feature-grid button { border: 0; background: transparent; color: #36443a; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; padding: 5px 1px; font-size:calc((12px) * var(--app-text-scale, 1)); line-height: 1.3; font-weight: 650; text-align: center; }
.feature-grid button span { width: 40px; height: 40px; border-radius: 50%; background: #f0f5f1; display: grid; place-items: center; color: #26362b; }
.feature-grid button:hover span { background: #e0f2e4; color: var(--green); }
.feature-grid svg { width: 25px; height: 25px; }
.home-footnote { color: #8b988d; font-size:calc((12px) * var(--app-text-scale, 1)); line-height: 1.55; border-top: 1px solid var(--line); margin: 18px 0 0; padding-top: 12px; }
.page-heading { padding: 7px 0 12px; }
.page-heading small { color: var(--green); font-weight: 750; font-size:calc((12px) * var(--app-text-scale, 1)); }
.page-heading h2 { font-size:calc((27px) * var(--app-text-scale, 1)); margin: 4px 0 0; }
.subtabs { display: grid; grid-template-columns: repeat(2,1fr); border-bottom: 1px solid var(--line); margin-bottom: 15px; }
.subtabs.three { grid-template-columns: repeat(3,1fr); }
.subtabs button { min-height: 45px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #7c897e; font-size:calc((14px) * var(--app-text-scale, 1)); font-weight: 650; }
.subtabs button[aria-pressed="true"] { color: var(--green); border-bottom-color: var(--green); font-weight: 800; }
.search { display: flex; align-items: center; gap: 9px; height: 48px; border: 1px solid #d8e3da; border-radius: 10px; padding: 0 13px; color: #84938a; }
.search svg { width: 18px; height: 18px; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #26312b; font-size:calc((16px) * var(--app-text-scale, 1)); background: transparent; }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #16865724; }
.item-list { border-top: 1px solid var(--line); }
.item-row { width: 100%; min-height: 91px; padding: 9px 0; display: flex; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; color: #2c3b30; }
.item-row.compact { min-height: 72px; }
.item-row > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.item-row strong { font-size:calc((15px) * var(--app-text-scale, 1)); line-height: 1.35; }
.item-row small { color: #829085; font-size:calc((12px) * var(--app-text-scale, 1)); line-height: 1.4; }
.item-row > svg { color: #a0aea2; width: 16px; height: 16px; }
.item-row time { color: #a0aaa1; font-size:calc((11px) * var(--app-text-scale, 1)); align-self: flex-start; margin-top: 9px; }
.poster { width: 70px; height: 70px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size:calc((24px) * var(--app-text-scale, 1)); font-weight: 750; }
.poster svg { width: 23px; height: 23px; }
.poster-green { background: #e5f1e7; color: #4b845a; }
.poster-blue { background: #e4eff2; color: #5b8290; }
.poster-peach { background: #f8e9dd; color: #a56f54; }
.round-avatar { width: 49px; height: 49px; border-radius: 50%; }
.safety { display: flex; gap: 9px; align-items: flex-start; background: #f1f8f2; color: #3a684b; border-radius: 10px; padding: 12px; font-size:calc((13px) * var(--app-text-scale, 1)); line-height: 1.5; }
.safety svg { width: 18px; height: 18px; }
.text-link { display: flex; align-items: center; gap: 4px; background: transparent; border: 0; color: var(--green); padding: 17px 0; font-size:calc((13px) * var(--app-text-scale, 1)); font-weight: 700; }
.text-link svg { width: 15px; height: 15px; }
.minor-note, .empty { color: var(--muted); font-size:calc((12px) * var(--app-text-scale, 1)); line-height: 1.5; }
.empty { padding: 30px 0; text-align: center; }
.bottom-nav { position: fixed; z-index: 4; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4,1fr); height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fdfefd; box-shadow: 0 -4px 16px #1f3b2610; }
.bottom-nav button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #7a867d; font-size:calc((10px) * var(--app-text-scale, 1)); white-space: nowrap; padding: 4px 0; }
.bottom-nav button[aria-current="page"] { color: var(--green); font-weight: 800; }
.bottom-nav svg { width: 22px; height: 22px; }
.sheet { width: 100%; max-width: none; max-height: min(80vh,730px); border: 0; border-radius: 19px 19px 0 0; margin: auto 0 0; background: #fff; color: #29352d; box-shadow: 0 -12px 35px #14251932; padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); overflow: auto; }
.sheet::backdrop { background: #151f18ad; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size:calc((20px) * var(--app-text-scale, 1)); margin: 0; }
.sheet > p { color: var(--muted); font-size:calc((14px) * var(--app-text-scale, 1)); line-height: 1.55; }
.identity-options { border-top: 1px solid var(--line); margin-top: 17px; }
.identity-options button { width: 100%; min-height: 71px; border: 0; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; gap: 12px; text-align: left; color: #29372d; }
.identity-options button > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.identity-options strong { font-size:calc((14px) * var(--app-text-scale, 1)); }
.identity-options small { color: #8b988d; font-size:calc((12px) * var(--app-text-scale, 1)); }
.identity-options button > svg { width: 17px; height: 17px; color: var(--green); }
.sheet-actions { margin-top: 18px; display: grid; gap: 9px; }
.sheet-actions button, .sheet-options button { min-height: 49px; width: 100%; background: #fff; border: 1px solid #dce7df; border-radius: 9px; color: #236c46; text-align: left; padding: 0 13px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sheet-options { margin-top: 18px; display: grid; gap: 9px; }
.sheet-options button > svg:last-child { margin-left: auto; width: 16px; height: 16px; }
.message-types { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 18px; }
.message-types button { min-height: 76px; border: 1px solid #e1e9e2; border-radius: 10px; background: #fff; color: #334238; display: flex; align-items: center; gap: 10px; padding: 13px; text-align: left; font-size:calc((14px) * var(--app-text-scale, 1)); }
.message-types svg { color: #277e51; }
.safe-note { margin-top: 18px; border-radius: 10px; background: #eef8f0; color: #3c704e; padding: 12px; line-height: 1.55; font-size:calc((12px) * var(--app-text-scale, 1)); }
.steps { padding-left: 24px; line-height: 2.3; color: #34493a; font-size:calc((14px) * var(--app-text-scale, 1)); }
button:focus-visible, summary:focus-visible { outline: 3px solid #84d3a3; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 850px) {
  :root { background: #f7f9f7; }
  .app-shell { display: grid; grid-template-columns: 245px minmax(0,1fr); }
  .desktop-sidebar { position: sticky; top: 0; align-self: start; height: 100vh; background: #fff; border-right: 1px solid var(--line); padding: 28px 17px; display: flex; flex-direction: column; }
  .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
  .brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #0e3028; color: white; position: relative; font-size:calc((25px) * var(--app-text-scale, 1)); }
  .brand-mark i { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; background: #e5ac3e; color: #143229; font-size:calc((10px) * var(--app-text-scale, 1)); font-style: normal; }
  .brand strong, .brand small { display: block; }
  .brand strong { color: #17392a; font-size:calc((21px) * var(--app-text-scale, 1)); }
  .brand small { color: #87948a; font-size:calc((10px) * var(--app-text-scale, 1)); letter-spacing: .12em; }
  .side-caption { color: #a0aaa2; font-size:calc((11px) * var(--app-text-scale, 1)); padding: 0 14px; margin: 54px 0 12px; }
  .desktop-nav { display: grid; gap: 7px; }
  .desktop-nav button { display: flex; align-items: center; gap: 12px; width: 100%; height: 49px; border: 0; border-radius: 10px; background: transparent; color: #5c6b5f; text-align: left; padding: 0 14px; font-size:calc((14px) * var(--app-text-scale, 1)); font-weight: 650; }
  .desktop-nav button[aria-current="page"] { color: var(--green); background: #e9f6ec; font-weight: 800; }
  .desktop-nav button:hover { background: #f2f8f3; }
  .side-bottom { margin-top: auto; padding: 14px; border-radius: 11px; background: #eff8f1; color: #4d7456; font-size:calc((12px) * var(--app-text-scale, 1)); line-height: 1.5; }
  .mobile-header, .bottom-nav { display: none; }
  .desktop-header { height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: #fff; border-bottom: 1px solid var(--line); }
  .desktop-header small { color: var(--green); font-size:calc((11px) * var(--app-text-scale, 1)); font-weight: 700; letter-spacing: .09em; }
  .desktop-header h1 { margin: 4px 0 0; font-size:calc((25px) * var(--app-text-scale, 1)); }
  .identity-header { border: 1px solid var(--line); border-radius: 21px; background: #fff; color: #496c52; padding: 5px 9px 5px 5px; display: flex; align-items: center; gap: 8px; font-size:calc((13px) * var(--app-text-scale, 1)); font-weight: 700; }
  .identity-header svg { width: 14px; height: 14px; }
  .tiny-avatar { height: 27px; width: 27px; border-radius: 50%; display: grid; place-items: center; background: #e4f2e7; color: var(--green); }
  .page { padding: 28px 34px 48px; }
  #section-home { max-width: 920px; }
  .account-row { max-width: 800px; }
  .overview { max-width: 800px; grid-template-columns: repeat(2,1fr); }
  .overview button { border-bottom: 0; padding: 0 15px; }
  .overview button:first-child { border-right: 1px solid var(--line); }
  .broadcast { max-width: 800px; }
  .broadcast-note { max-width: 800px; }
  .feature-grid { max-width: 800px; row-gap: 16px; }
  .feature-grid button { min-height: 83px; font-size:calc((13px) * var(--app-text-scale, 1)); }
  .feature-grid button span { width: 44px; height: 44px; }
  .home-footnote { max-width: 800px; }
  .page-heading h2 { font-size:calc((31px) * var(--app-text-scale, 1)); }
  .subtabs, .subpanel { max-width: 810px; }
  .item-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 18px; }
  .item-row { border-bottom: 1px solid var(--line); }
  .sheet { width: min(520px,calc(100vw - 40px)); max-height: 82vh; margin: auto; border-radius: 18px; }
}
@media (max-width: 390px) {
  .page { padding-left: 15px; padding-right: 15px; }
  .feature-grid { gap: 10px 2px; }
  .feature-grid button { font-size:calc((11px) * var(--app-text-scale, 1)); }
  .poster { width: 67px; height: 67px; }
  .round-avatar { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
