:root {
    --bg: #f6f6f6;
    --surface-soft: #f3f3f3;
    --ink: #242424;
    --muted: #8a8a8a;
    --line: #ededed;
    --teal: #18a184;
    --teal-dark: #147c69;
    --coral: #ff5f4a;
    --amber: #f2a93b;
    --shadow: 0 5px 18px rgba(38, 38, 38, 0.06);
}

body { background: #ececec; }
.app-shell { background: var(--bg); }
.app-main { background: var(--bg); }
.page-content { padding-left: 14px; padding-right: 14px; }
.topbar { min-height: 66px; padding-left: 16px; padding-right: 16px; background: #fff; }
.home-topbar { padding-bottom: 9px; }
.mobile-brand { gap: 0; }
.mobile-brand .brand-mark { display: none; }
.mobile-brand h1 { font-size: 21px; font-weight: 750; }
.mobile-brand p { margin-top: 3px; color: #a0a0a0; font-size: 10px; }

.energy-chip { height: 38px; padding: 3px 7px 3px 4px; border: 0; background: #fff6e8; box-shadow: none; }
.energy-chip .energy-symbol { width: 30px; height: 30px; background: transparent; }
.energy-chip small { display: none; }
.energy-chip strong { font-size: 15px; color: #5b3b14; }
.energy-chip > svg { color: #e89825; }

.home-content { padding-top: 10px; }
.banner { height: 168px; border-radius: 8px; box-shadow: none; background: #242424; }
.banner-slide > img { object-position: 68% 35%; }
.banner-shade { background: rgba(13, 13, 13, 0.23); }
.banner-copy { left: 17px; top: 18px; }
.banner-copy > span { display: inline-block; margin-bottom: 7px; color: #fff; font-size: 10px; font-weight: 600; }
.banner-copy h2 { margin-bottom: 13px; max-width: 165px; font-size: 23px; line-height: 1.25; }
.banner-copy button { padding: 7px 10px; border-radius: 6px; font-size: 10px; }
.banner-split, .before-label, .after-label { display: none; }
.banner-dots { right: 12px; top: auto; bottom: 10px; }

.new-user-strip { width: 100%; min-height: 56px; margin-top: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: #fff7e9; display: flex; align-items: center; gap: 9px; text-align: left; cursor: pointer; }
.gift-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 8px; color: #e78e20; background: #ffe5b5; }
.gift-icon svg { width: 18px; height: 18px; }
.new-user-strip > span:nth-child(2) { flex: 1; min-width: 0; }
.new-user-strip strong, .new-user-strip small { display: block; }
.new-user-strip strong { color: #5b3d19; font-size: 12px; }
.new-user-strip small { margin-top: 3px; color: #a47840; font-size: 9px; }
.new-user-strip em { color: #e9871a; font-style: normal; font-size: 10px; font-weight: 700; }
.new-user-strip > svg { width: 14px; height: 14px; color: #c69253; }

.section-block { margin-top: 21px; }
.section-heading { align-items: center; margin-bottom: 12px; }
.section-heading p { display: none; }
.section-heading h2 { font-size: 17px; font-weight: 750; }
.text-button { color: #999; font-size: 10px; }

.tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px 6px; padding: 14px 4px 10px; border-radius: 8px; background: #fff; }
.tool-card { overflow: visible; border: 0; border-radius: 0; background: transparent; text-align: center; }
.tool-card:hover { transform: none; border-color: transparent; box-shadow: none; }
.tool-thumb { width: 48px; height: 48px; margin: 0 auto; overflow: visible; border-radius: 14px; background: transparent; }
.tool-thumb > img, .tool-thumb::after { display: none; }
.tool-icon { position: static; width: 48px; height: 48px; border-radius: 14px; box-shadow: none; }
.tool-icon svg { width: 22px; height: 22px; }
.tool-icon.tool-icon-image { padding: 0; }
.tool-icon.tool-icon-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tone-coral { color: #ea614f; background: #ffe2dc; }
.tone-teal { color: #19977d; background: #dff5ef; }
.tone-amber { color: #d98c19; background: #fff0cf; }
.tone-blue { color: #4c78a8; background: #e3eef9; }
.tone-violet { color: #8063a5; background: #eee7f8; }
.tone-rose { color: #c65b78; background: #f9e2e9; }
.tool-badge { top: -5px; right: -13px; max-width: none; padding: 2px 4px; border-radius: 5px; color: #fff; background: var(--coral); font-size: 7px; line-height: 1.2; box-shadow: 0 2px 5px rgba(255, 95, 74, .2); }
.tool-info { padding: 8px 0 0; }
.tool-info strong { font-size: 11px; font-weight: 600; white-space: nowrap; }
.tool-info small, .tool-info em { display: none; }

.recommend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.recommend-card { position: relative; height: 116px; overflow: hidden; padding: 14px 9px 12px 12px; border: 0; border-radius: 8px; text-align: left; cursor: pointer; }
.recommend-card.restore-card { background: #fff0e8; }
.recommend-card.clear-card { background: #e8f5f2; }
.recommend-card span { position: relative; z-index: 2; display: block; }
.recommend-card strong, .recommend-card small, .recommend-card em { display: block; }
.recommend-card strong { font-size: 13px; }
.recommend-card small { margin-top: 4px; color: #8a756a; font-size: 9px; }
.recommend-card em { width: fit-content; margin-top: 16px; padding: 4px 7px; border-radius: 5px; color: #fff; background: var(--coral); font-style: normal; font-size: 8px; }
.clear-card em { background: var(--teal); }
.recommend-card img { position: absolute; right: -3px; bottom: 0; width: 70px; height: 92px; object-fit: cover; object-position: center 28%; border-radius: 36px 0 0 0; }

.recent-row { min-height: 66px; border: 0; box-shadow: none; }
.recent-row > img { width: 46px; height: 46px; }
.recent-row strong { font-size: 12px; }
.recent-row small { color: #999; }

.bottom-nav { height: calc(66px + var(--safe-bottom)); padding-top: 5px; background: rgba(255,255,255,.98); }
.nav-item { gap: 3px; }
.nav-item span { font-size: 10px; }
.nav-item.is-active { color: var(--coral); }
.nav-dot { background: var(--coral); }

.detail-topbar { background: rgba(255,255,255,.96); }
.tool-page { padding-top: 10px; }
.compare-stage { box-shadow: none; }
.upload-panel, .settings-panel { border: 0; box-shadow: none; }
.upload-icon { color: var(--coral); background: #fff0ed; }
.panel-title span { color: var(--coral); }
.segmented button.is-selected { color: var(--coral); }
.switch-row input:checked + .switch { background: var(--coral); }
.privacy-note svg { color: #7da99e; }
.action-footer { background: rgba(255,255,255,.98); }
.primary-button { border-color: var(--coral); background: var(--coral); }
.primary-button:hover { background: #ef523f; }

.records-page { padding-top: 8px; }
.record-tabs { gap: 0; padding: 0; border-radius: 0; background: #fff; border-bottom: 1px solid var(--line); }
.record-tabs button { position: relative; height: 44px; border-radius: 0; }
.record-tabs button.is-active { color: var(--ink); background: transparent; box-shadow: none; }
.record-tabs button.is-active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 24px; height: 3px; border-radius: 3px; background: var(--coral); transform: translateX(-50%); }
.record-card { border: 0; box-shadow: none; }

.profile-topbar { background: var(--bg); }
.profile-identity { padding-top: 2px; }
.avatar { background: var(--coral); box-shadow: 0 4px 14px rgba(255, 95, 74, .2); }
.membership-band { color: #5c3b15; background: #fff2d8; box-shadow: none; }
.member-main { min-height: 68px; }
.member-icon { color: #d68a24; background: #ffe1aa; }
.member-main small { color: #b37a34; }
.member-main button { color: #fff; background: #e59a31; }
.member-benefits { border-top-color: #f0d7a8; }
.member-benefits span { border-right-color: #f0d7a8; }
.member-benefits strong { color: #b16a13; }
.member-benefits small { color: #a88861; }
.wallet-strip button, .menu-group { border: 0; box-shadow: none; }
.menu-group button > span svg { color: var(--coral); }
.wallet-strip em { color: var(--coral); }

.bottom-sheet header p { display: block; margin: 4px 0 0; color: #999; font-size: 9px; font-weight: 400; }
.current-balance { background: #fff7ed; }
.package-grid button:hover, .package-grid button.is-recommended { border-color: var(--coral); background: #fff8f6; }
.package-grid button > b { color: var(--coral); }
.plan-row.is-selected { border-color: var(--coral); background: #fff8f6; }
.auth-tabs button.is-selected { color: var(--coral); }
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(239,106,86,.12); }
.record-dialog { border-radius: 8px; }

@media (min-width: 680px) {
    .page-content { padding-left: 14px; padding-right: 14px; }
    .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bottom-sheet { width: 410px; }
}

@media (min-width: 960px) {
    body { background: #e9e9e9; }
    .app-shell { width: 430px; min-height: calc(100dvh - 24px); margin: 12px auto; display: block; border: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 16px 45px rgba(0,0,0,.11); }
    .desktop-rail { display: none; }
    .app-main { min-height: calc(100dvh - 24px); max-height: none; overflow: visible; padding-bottom: calc(66px + var(--safe-bottom)); }
    .bottom-nav { left: 50%; right: auto; width: 430px; display: grid; transform: translateX(-50%); }
    .topbar { width: 100%; padding: 14px 16px 10px; }
    .page-content { width: 100%; padding-left: 14px; padding-right: 14px; }
    .mobile-brand .brand-mark { display: none; }
    .mobile-brand h1 { font-size: 21px; }
    .banner { height: 168px; }
    .banner-copy { left: 17px; top: 18px; }
    .banner-copy h2 { font-size: 23px; }
    .tool-thumb { height: 48px; }
    .tool-page { padding-bottom: 118px; }
    .compare-before img { width: 402px; }
    .action-footer { position: fixed; left: 50%; right: auto; bottom: 0; width: 430px; padding-left: 16px; padding-right: 16px; transform: translateX(-50%); }
    .records-page .record-list { grid-template-columns: 1fr; }
    .profile-page { max-width: none; }
    .toast { bottom: 84px; }
}
