:root {
  --ink: #10211f;
  --ink-2: #344a47;
  --muted: #6d807d;
  --paper: #f4f7f4;
  --card: #ffffff;
  --line: #dce6e1;
  --deep: #0d2927;
  --deep-2: #163b37;
  --mint: #79efc0;
  --mint-dark: #13785d;
  --red: #d84b4b;
  --red-bg: #fff0ee;
  --amber: #b76b14;
  --shadow: 0 18px 55px rgba(14, 48, 43, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
code { font-family: "SFMono-Regular", Consolas, monospace; }

.topbar { height: 72px; padding: 0 clamp(22px, 4vw, 64px); display: flex; align-items: center; gap: 34px; border-bottom: 1px solid rgba(24, 64, 59, .11); background: rgba(250, 252, 250, .9); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 30px; height: 34px; background: var(--deep); clip-path: polygon(50% 0, 92% 18%, 88% 72%, 50% 100%, 12% 72%, 8% 18%); display: grid; place-items: center; }
.brand-mark span { width: 10px; height: 10px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 5px rgba(121, 239, 192, .15); }
.topnav { display: flex; align-self: stretch; align-items: center; gap: 28px; margin-left: 20px; }
.topnav a { color: var(--muted); font-size: 14px; font-weight: 650; height: 100%; display: flex; align-items: center; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a.active { color: var(--deep); border-bottom-color: var(--mint-dark); }
.account-menu, .guest-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.account-email { font-size: 13px; color: var(--muted); max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.link-button { padding: 0; border: 0; background: none; color: var(--muted); }
.link-button:hover { color: var(--red); }
.guest-nav > a:first-child { font-size: 14px; font-weight: 650; }

.button { border: 1px solid transparent; border-radius: 10px; min-height: 44px; padding: 0 19px; display: inline-flex; justify-content: center; align-items: center; font-weight: 750; font-size: 14px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--deep); color: #fff; box-shadow: 0 8px 24px rgba(13, 41, 39, .16); }
.button.primary:hover { background: #17443e; box-shadow: 0 10px 28px rgba(13, 41, 39, .23); }
.button.outline { border-color: #b9c9c4; background: #fff; color: var(--deep); }
.button.danger-outline { border-color: #efb8b2; color: var(--red); background: white; }
.button.small { min-height: 38px; padding: 0 16px; }
.button.full { width: 100%; }
.text-link { color: var(--mint-dark); font-weight: 750; font-size: 14px; }
.text-link span { display: inline-block; transition: transform .15s; }
.text-link:hover span { transform: translateX(3px); }
.text-link.centered { display: block; text-align: center; margin-top: 18px; }
.eyebrow, .section-kicker { color: var(--mint-dark); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.live-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #3dd899; box-shadow: 0 0 0 5px rgba(61, 216, 153, .13); margin-right: 8px; }
.muted { color: var(--muted); }

.hero { min-height: calc(100vh - 72px); padding: clamp(58px, 8vw, 112px) clamp(24px, 7vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 560px); gap: clamp(50px, 8vw, 130px); align-items: center; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(121, 239, 192, .18), transparent 67%); left: -280px; top: -180px; pointer-events: none; }
.hero-copy { max-width: 680px; position: relative; }
.hero h1 { font-size: clamp(50px, 6.2vw, 88px); line-height: .98; letter-spacing: -.065em; margin: 24px 0 28px; font-weight: 760; }
.hero h1 em { color: var(--mint-dark); font-style: normal; }
.hero-lead { max-width: 630px; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin: 36px 0 42px; }
.hero-actions .button { min-height: 52px; padding: 0 25px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 13px; }
.trust-row span::before { content: "✓"; color: var(--mint-dark); font-weight: 900; margin-right: 7px; }
.hero-panel { background: var(--deep); color: #eefcf7; border-radius: 24px; padding: 24px; box-shadow: 0 32px 80px rgba(10, 38, 35, .26); transform: rotate(1deg); position: relative; }
.hero-panel::after { content: ""; position: absolute; inset: 12px -16px -16px 16px; border: 1px solid rgba(19, 120, 93, .25); border-radius: 24px; z-index: -1; }
.panel-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; padding: 0 2px 18px; }
.status-orb { width: 7px; height: 7px; display: inline-block; background: var(--mint); border-radius: 50%; margin-right: 7px; box-shadow: 0 0 10px var(--mint); }
.address-preview { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; padding: 15px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; }
.address-preview strong { display: block; font-size: 13px; }
.address-preview code { color: #9eb5b0; font-size: 12px; }
.chain-badge { display: inline-flex; justify-content: center; align-items: center; min-width: 50px; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 10px; font-weight: 900; letter-spacing: .04em; background: #e8f6f1; color: var(--mint-dark); }
.chain-badge.eth { background: #eeeefe; color: #5555a8; }
.status { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 11px; font-weight: 850; padding: 5px 10px; white-space: nowrap; }
.status.safe { color: #18775d; background: #e5f8ef; }
.status.frozen { color: #b83d3d; background: #ffebe8; }
.status.unknown { color: #796c54; background: #f3eee4; }
.alert-preview { background: #fff; color: var(--ink); border-radius: 14px; margin: 18px 0; padding: 17px; display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: start; box-shadow: 0 15px 30px rgba(0,0,0,.18); }
.alert-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--red-bg); color: var(--red); display: grid; place-items: center; font-weight: 900; }
.alert-preview strong { display: block; font-size: 15px; margin: 2px 0; }
.alert-preview p { margin: 0; color: var(--muted); font-size: 12px; }
.alert-kicker { color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.alert-time { color: var(--muted); font-size: 10px; }
.timeline { padding: 3px 5px; }
.timeline > div { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start; position: relative; padding: 8px 0; }
.timeline > div > span { width: 8px; height: 8px; background: var(--mint); border-radius: 50%; margin-top: 6px; }
.timeline > div:not(:last-child)::after { content: ""; position: absolute; width: 1px; height: 27px; background: rgba(121,239,192,.23); top: 19px; left: 4px; }
.timeline p { margin: 0; }
.timeline b, .timeline small { display: block; font-size: 11px; }
.timeline small, .timeline time { color: #8da49f; font-size: 9px; }
.freeze-intel-wrap { padding: 0 clamp(24px, 7vw, 112px) 76px; position: relative; z-index: 2; }
.freeze-intel { max-width: 1180px; margin: -32px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 22px 55px rgba(14, 48, 43, .11); overflow: hidden; }
.freeze-intel-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px 17px; border-bottom: 1px solid #e8eeeb; }
.freeze-intel-head h2 { margin: 3px 0 0; font-size: 22px; letter-spacing: -.035em; }
.freeze-tabs { display: flex; align-items: center; gap: 5px; padding: 4px; border-radius: 10px; background: #eef4f1; }
.freeze-tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 7px; padding: 8px 13px; font-size: 11px; font-weight: 800; }
.freeze-tabs button[aria-selected="true"] { background: #fff; color: var(--deep); box-shadow: 0 2px 9px rgba(13, 41, 39, .08); }
.mini-live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #36cf8f; box-shadow: 0 0 0 3px rgba(54, 207, 143, .12); }
.freeze-viewport { width: 100%; overflow: hidden; }
.freeze-track { display: flex; transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.freeze-slide { min-width: 100%; padding: 17px 24px 13px; }
.freeze-slide-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.freeze-slide-label > span { color: var(--ink-2); font-size: 11px; font-weight: 850; }
.freeze-slide-label small { color: var(--muted); font-size: 10px; }
.freeze-feed { height: 160px; min-height: 160px; overflow: hidden; }
.freeze-feed-row { display: grid; grid-template-columns: 58px minmax(180px, 1fr) 112px 118px; align-items: center; gap: 14px; height: 40px; min-height: 40px; border-top: 1px solid #edf1ef; transition: margin-top .42s ease, opacity .42s ease; }
.freeze-feed-row.is-leaving { margin-top: -40px; opacity: 0; }
.freeze-feed-row:first-child { border-top: 0; }
.freeze-feed-row code { color: var(--ink-2); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-chain { display: inline-flex; align-items: center; justify-content: center; width: 47px; height: 21px; border-radius: 5px; background: #e8f6f1; color: var(--mint-dark); font-size: 9px; font-weight: 900; }
.feed-chain.eth, .feed-chain.ethereum { background: #eeeefe; color: #5555a8; }
.feed-status { color: #b83d3d; background: #fff0ee; border-radius: 999px; padding: 4px 8px; text-align: center; font-size: 9px; font-weight: 850; }
.feed-status.candidate { color: #95600b; background: #fff4d8; }
.freeze-feed-row time { color: var(--muted); text-align: right; font-size: 9px; }
.freeze-feed-empty { min-height: 154px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.freeze-feed-empty > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e7f7ef; color: var(--mint-dark); font-size: 20px; }
.freeze-feed-empty p, .freeze-feed-empty b, .freeze-feed-empty small { display: block; margin: 0; }
.freeze-feed-empty b { color: var(--ink-2); font-size: 12px; }
.freeze-feed-empty small { font-size: 9px; margin-top: 2px; }
.freeze-intel-foot { min-height: 42px; padding: 10px 24px; border-top: 1px solid #edf1ef; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.freeze-dots { display: flex; gap: 6px; }
.freeze-dots button { width: 16px; height: 4px; padding: 0; border: 0; border-radius: 999px; background: #cfdad6; }
.freeze-dots button.active { width: 26px; background: var(--mint-dark); }
.how { background: var(--deep); color: #edf8f4; padding: 90px clamp(24px, 7vw, 112px) 110px; }
.section-heading { text-align: center; margin-bottom: 45px; }
.section-heading span { color: var(--mint); font-size: 12px; font-weight: 850; letter-spacing: .15em; }
.section-heading h2 { font-size: clamp(30px, 4vw, 46px); margin: 12px 0; letter-spacing: -.04em; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1150px; margin: 0 auto; gap: 18px; }
.steps-grid article { border: 1px solid rgba(255,255,255,.11); border-radius: 16px; padding: 28px; background: rgba(255,255,255,.035); }
.steps-grid article > b { color: var(--mint); font-size: 12px; }
.steps-grid h3 { font-size: 20px; margin: 24px 0 8px; }
.steps-grid p { color: #a6bab5; font-size: 14px; margin: 0; line-height: 1.8; }

.auth-body { background: #edf3ef; }
.auth-shell { min-height: calc(100vh - 130px); display: grid; grid-template-columns: .9fr 1.1fr; max-width: 1180px; margin: 0 auto; align-items: center; padding: 60px 28px; gap: clamp(50px, 8vw, 120px); }
.auth-side h1 { font-size: clamp(42px, 5vw, 67px); line-height: 1.04; letter-spacing: -.055em; margin: 20px 0; }
.auth-side > p { color: var(--ink-2); font-size: 17px; line-height: 1.8; max-width: 460px; }
.auth-signal { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 24px; font-size: 13px; }
.check-list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 11px; }
.check-list li::before { content: "✓"; display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #d8f5e9; color: var(--mint-dark); font-weight: 900; margin-right: 10px; }
.auth-card { width: min(100%, 510px); margin-left: auto; background: white; padding: clamp(28px, 4vw, 48px); border-radius: 22px; box-shadow: var(--shadow); }
.auth-card.compact { margin: auto; max-width: 500px; }
.card-heading { margin-bottom: 28px; }
.card-heading h2 { font-size: 29px; letter-spacing: -.035em; margin: 0 0 7px; }
.card-heading p { color: var(--muted); margin: 0; font-size: 14px; }
.card-heading a, .form-between a { color: var(--mint-dark); font-weight: 700; }
.stack-form { display: grid; gap: 18px; }
.stack-form label, .address-form > label { font-size: 13px; font-weight: 750; color: var(--ink-2); }
input, textarea { width: 100%; border: 1px solid #cbd7d3; background: #fbfcfb; color: var(--ink); border-radius: 10px; padding: 12px 13px; outline: none; transition: border .15s, box-shadow .15s; }
input { height: 47px; }
textarea { resize: vertical; min-height: 82px; }
input:focus, textarea:focus { border-color: #54a98c; box-shadow: 0 0 0 3px rgba(84, 169, 140, .13); background: white; }
label input, label textarea { display: block; margin-top: 7px; }
label small, .form-note { display: block; color: var(--muted); font-size: 11px; font-weight: 450; margin-top: 6px; }
.form-between { display: flex; justify-content: space-between; font-size: 12px; margin-top: -5px; }
.form-note { text-align: center; line-height: 1.7; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.human-check { display: grid; gap: 8px; }
.human-check > span { color: var(--ink-2); font-size: 13px; font-weight: 750; }
.human-check .cf-turnstile { min-height: 65px; width: 100%; }
.compact-check { margin-top: 8px; }
.auth-centered { min-height: calc(100vh - 130px); display: grid; place-items: center; padding: 50px 22px; }
.back-link { color: var(--muted); display: inline-block; margin-bottom: 28px; font-size: 13px; }
.notice-card { text-align: center; }
.verify-card { text-align: center; }
.notice-mark { width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: #dff7ec; color: var(--mint-dark); font-size: 24px; font-weight: 900; }
.mail-mark { color: var(--mint-dark); background: #e4f8ef; }
.verification-code { text-align: center; font-size: 24px !important; font-weight: 850; letter-spacing: .28em; font-variant-numeric: tabular-nums; }
.dev-code { margin: 14px 0; padding: 10px 12px; border-radius: 9px; background: #fff6df; color: #8a5a0b; font-size: 12px; }
.dev-code code { font-size: 16px; font-weight: 850; letter-spacing: .18em; }
.resend-form { margin-top: 14px; }
.text-button { border: 0; background: transparent; color: var(--mint-dark); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.text-button:disabled { color: var(--muted); cursor: not-allowed; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; font-size: 13px; }
.flash.error { color: #9c3535; background: #fff0ee; border: 1px solid #f2c6c1; }
.flash.success { color: #12644f; background: #e8f8f1; border: 1px solid #bfe7d7; }
.flash.neutral { color: #31554e; background: #eef7f3; border: 1px solid #d0e8df; }

.app-body { background: #f3f6f3; }
.app-shell { max-width: 1420px; margin: 0 auto; padding: 42px clamp(20px, 4vw, 58px) 70px; }
.narrow-shell { max-width: 1220px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -.05em; line-height: 1.05; margin: 9px 0 7px; }
.page-head p { color: var(--muted); margin: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-height: 128px; display: flex; flex-direction: column; }
.metric > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric > strong { font-size: 34px; letter-spacing: -.04em; margin-top: 10px; line-height: 1; }
.metric > small { color: var(--muted); font-size: 11px; margin-top: auto; }
.metric.danger { border-color: #efb9b3; background: #fff9f8; }
.metric.danger > strong { color: var(--red); }
.metric-status { font-size: 15px !important; letter-spacing: 0 !important; display: flex; align-items: center; gap: 8px; text-transform: capitalize; }
.metric-status i { width: 9px; height: 9px; border-radius: 50%; background: #38ce91; box-shadow: 0 0 0 4px rgba(56,206,145,.13); }
.dashboard-grid { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(500px, 1.8fr); gap: 18px; align-items: stretch; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 28px rgba(14, 48, 43, .035); }
.card-title { padding: 23px 24px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8eeeb; }
.card-title h2, .setting-copy h2, .security-card h2 { font-size: 20px; letter-spacing: -.025em; margin: 4px 0 0; }
.address-form { padding: 22px 24px; display: grid; gap: 17px; }
.address-form label > span { color: var(--muted); font-size: 11px; font-weight: 500; }
.toggle-row { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle { width: 40px; height: 23px; background: #c8d2cf; border-radius: 999px; position: relative; flex: 0 0 auto; transition: background .2s; }
.toggle::after { content: ""; position: absolute; width: 17px; height: 17px; background: white; border-radius: 50%; left: 3px; top: 3px; transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.toggle-row input:checked + .toggle { background: var(--mint-dark); }
.toggle-row input:checked + .toggle::after { transform: translateX(17px); }
.toggle-row b, .toggle-row small { display: block; }
.toggle-row small { color: var(--muted); font-size: 10px; font-weight: 450; }
.privacy-note { margin: 0 24px 22px; background: #f2f7f4; border-radius: 10px; padding: 13px 15px; }
.privacy-note b { font-size: 11px; }
.privacy-note p { color: var(--muted); font-size: 11px; margin: 3px 0 0; }
.count-badge { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #edf4f1; color: var(--mint-dark); font-size: 12px; font-weight: 900; }
.watch-list { max-height: 550px; overflow-y: auto; }
.watch-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 24px; border-bottom: 1px solid #edf1ef; }
.watch-item:last-child { border-bottom: 0; }
.watch-main { min-width: 0; display: flex; align-items: center; gap: 13px; }
.watch-address { min-width: 0; }
.watch-address strong, .watch-address code, .watch-address small { display: block; }
.watch-address strong { font-size: 13px; }
.watch-address code { color: var(--ink-2); max-width: clamp(190px, 28vw, 470px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; margin: 2px 0; }
.watch-address small { color: var(--muted); font-size: 9px; }
.watch-actions { display: flex; gap: 7px; align-items: center; }
.icon-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink-2); display: grid; place-items: center; }
.icon-button:hover { background: #edf5f1; }
.icon-button.danger:hover { color: var(--red); background: var(--red-bg); border-color: #f2c5c0; }
.empty-state { min-height: 345px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 35px; }
.empty-state.spacious { min-height: 440px; }
.empty-state h3 { margin: 17px 0 4px; font-size: 17px; }
.empty-state p { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.empty-radar { width: 66px; height: 66px; border-radius: 50%; border: 1px solid #a8c9bd; position: relative; display: grid; place-items: center; background: radial-gradient(circle, #fff 25%, #e9f6f0 26%, #e9f6f0 28%, #fff 29%, #fff 53%, #e9f6f0 54%, #e9f6f0 57%, #fff 58%); }
.empty-radar::before { content: ""; position: absolute; height: 1px; width: 100%; background: #c5ded5; }
.empty-radar::after { content: ""; position: absolute; width: 1px; height: 100%; background: #c5ded5; }
.empty-radar span { width: 7px; height: 7px; background: var(--mint-dark); border-radius: 50%; z-index: 2; }
.recent-card { margin-top: 18px; overflow: hidden; }
.alert-table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { text-align: left; padding: 13px 24px; color: var(--muted); background: #f7f9f8; font-size: 10px; letter-spacing: .04em; }
.data-table td { padding: 15px 24px; border-top: 1px solid #edf1ef; vertical-align: middle; }
.data-table td code { color: var(--muted); font-size: 10px; display: block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.data-table td a { color: var(--mint-dark); font-weight: 750; white-space: nowrap; }
.event-type { font-size: 10px; font-weight: 850; border-radius: 6px; padding: 5px 8px; }
.event-type.freeze, .event-type.destroy { color: #b73f3f; background: var(--red-bg); }
.event-type.unfreeze { color: var(--mint-dark); background: #e5f8ef; }
.event-type.freeze_candidate, .status.pending_freeze { color: #95600b; background: #fff4d8; }
.delivery { text-transform: capitalize; color: var(--muted); }
.delivery.delivered { color: var(--mint-dark); }
.empty-inline { display: flex; align-items: center; justify-content: center; min-height: 130px; gap: 13px; }
.empty-inline > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e0f7ec; color: var(--mint-dark); font-weight: 900; }
.empty-inline b, .empty-inline small { display: block; }
.empty-inline small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.settings-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.setting-card { display: flex; gap: 20px; padding: 28px; }
.setting-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; font-weight: 900; font-size: 20px; }
.telegram-icon { background: #e4f3fb; color: #2586b9; transform: rotate(-20deg); }
.email-icon { background: #e5f8ef; color: var(--mint-dark); }
.setting-copy { flex: 1; min-width: 0; }
.setting-copy h2 { word-break: break-word; }
.setting-copy > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.connected-row { display: flex; justify-content: space-between; align-items: center; background: #eff8f4; padding: 11px 13px; border-radius: 9px; margin: 16px 0; font-size: 11px; }
.connected-row span { color: var(--mint-dark); font-weight: 800; }
.connected-row i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #38ce91; margin-right: 6px; }
.connected-row time { color: var(--muted); }
.verified-badge { display: inline-flex; color: var(--mint-dark); background: #e8f8f1; border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 800; }
.binding-code { background: var(--deep); border-radius: 10px; color: white; padding: 12px 12px 12px 15px; display: flex; align-items: center; justify-content: space-between; margin: 15px 0; }
.binding-code code { font-size: 14px; color: var(--mint); }
.binding-code button { border: 0; background: rgba(255,255,255,.12); color: white; border-radius: 6px; padding: 6px 10px; font-size: 10px; }
.security-card { margin-top: 18px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.never-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.never-grid span { border: 1px solid #efc9c4; color: #a74747; background: #fff7f6; padding: 7px 12px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.site-footer { min-height: 58px; border-top: 1px solid var(--line); padding: 18px clamp(22px, 4vw, 64px); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; background: #f8faf8; }

.mailbox-shell { max-width: 1240px; }
.mailbox-head { align-items: center; }
.mailbox-address { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid #c9d9d3; border-radius: 999px; background: white; color: var(--mint-dark); font-size: 12px; font-weight: 800; }
.mailbox-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.mailbox-stats article { min-height: 88px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: white; display: flex; align-items: flex-end; justify-content: space-between; }
.mailbox-stats span { color: var(--muted); font-size: 12px; font-weight: 700; }
.mailbox-stats strong { color: var(--deep); font-size: 28px; line-height: 1; }
.mailbox-card { overflow: hidden; }
.mailbox-tabs { min-height: 60px; padding: 0 22px; display: flex; align-items: stretch; gap: 25px; border-bottom: 1px solid #e8eeeb; }
.mailbox-tabs a { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; font-weight: 800; }
.mailbox-tabs a.active { color: var(--deep); border-bottom-color: var(--mint-dark); }
.mailbox-tabs span { min-width: 23px; padding: 2px 6px; border-radius: 999px; background: #edf4f1; color: var(--mint-dark); text-align: center; font-size: 10px; }
.mail-list { display: grid; }
.mail-row { min-height: 102px; padding: 18px 22px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: start; border-bottom: 1px solid #edf1ef; background: #fff; transition: background .15s; }
.mail-row:last-child { border-bottom: 0; }
.mail-row:hover { background: #f7faf8; }
.mail-row.unread { background: #f1f8f5; }
.mail-avatar { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; background: var(--deep); color: var(--mint); font-size: 14px; font-weight: 900; }
.mail-avatar.large { width: 43px; height: 43px; border-radius: 13px; }
.mail-summary { min-width: 0; display: grid; }
.mail-row-top { display: flex; justify-content: space-between; gap: 20px; }
.mail-row-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mail-row-top time { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.mail-subject { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 13px; font-weight: 750; }
.mail-preview { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.mail-flags { min-width: 58px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.mail-flags span { padding: 4px 7px; border-radius: 6px; background: #eef3f1; color: var(--muted); font-size: 9px; font-weight: 800; }
.mail-flags span.replied { background: #e4f7ee; color: var(--mint-dark); }
.mail-flags i { width: 8px; height: 8px; border-radius: 50%; background: #24b981; box-shadow: 0 0 0 4px rgba(36,185,129,.12); }
.mail-empty { min-height: 330px; padding: 50px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.mail-empty > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: #e5f7ef; color: var(--mint-dark); font-size: 23px; }
.mail-empty h2 { margin: 18px 0 5px; font-size: 20px; }
.mail-empty p { margin: 0; color: var(--muted); font-size: 12px; }
.mail-back { margin-bottom: 18px; }
.mail-detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); gap: 18px; align-items: start; }
.mail-reading-card { overflow: hidden; }
.mail-reading-head { padding: 25px 27px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e8eeeb; }
.mail-reading-head h1 { margin: 9px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.mail-state { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #e4f7ee; color: var(--mint-dark); font-size: 9px; font-weight: 900; }
.mail-state.archived { background: #eef1f0; color: var(--muted); }
.mail-meta { padding: 20px 27px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #edf1ef; }
.mail-meta div { min-width: 0; }
.mail-meta strong, .mail-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-meta strong { font-size: 13px; }
.mail-meta small { color: var(--muted); font-size: 10px; }
.mail-meta time { margin-left: auto; flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.mail-body { min-height: 260px; margin: 0; padding: 30px 28px 38px; border: 0; background: white; color: var(--ink-2); font: 13px/1.85 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.attachment-section { padding: 23px 27px 27px; border-top: 1px solid #edf1ef; background: #fafcfb; }
.attachment-section h2 { margin: 0 0 13px; font-size: 15px; }
.attachment-list { display: grid; gap: 8px; }
.attachment-list a { min-height: 55px; padding: 10px 12px; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; column-gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.attachment-list a > span { grid-row: 1 / span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #e7f7ef; color: var(--mint-dark); font-weight: 900; }
.attachment-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.attachment-list small { color: var(--muted); font-size: 9px; }
.attachment-warning { margin: 12px 0 0; color: #8d641d; font-size: 9px; }
.mail-action-column { display: grid; gap: 18px; }
.reply-form { padding: 20px 22px 22px; display: grid; gap: 15px; }
.reply-form label { color: var(--ink-2); font-size: 12px; font-weight: 750; }
.reply-form textarea { min-height: 185px; }
.reply-form > p { margin: -4px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.reply-history { overflow: hidden; }
.reply-item { padding: 17px 20px; border-bottom: 1px solid #edf1ef; }
.reply-item:last-child { border-bottom: 0; }
.reply-item > div { display: flex; justify-content: space-between; gap: 12px; }
.reply-item b { font-size: 11px; }
.reply-item time { color: var(--muted); font-size: 9px; }
.reply-item pre { max-height: 170px; margin: 9px 0; overflow: auto; color: var(--ink-2); font: 11px/1.7 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-item .delivery { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: #edf4f1; font-size: 8px; font-weight: 850; }
.reply-item .delivery.sent { color: var(--mint-dark); background: #e4f7ee; }
.reply-item .delivery.failed { color: #a64141; background: var(--red-bg); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 760px; }
  .hero-panel { width: min(100%, 600px); margin: 0 auto; transform: none; }
  .auth-shell { grid-template-columns: 1fr; max-width: 640px; gap: 30px; }
  .auth-side { text-align: center; }
  .auth-side > p { margin-left: auto; margin-right: auto; }
  .auth-card { margin: 0 auto; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .mail-detail-grid { grid-template-columns: 1fr; }
  .freeze-intel { margin-top: 0; }
}

@media (max-width: 720px) {
  .topbar { height: 64px; padding: 0 16px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 27px; height: 30px; }
  .topnav { position: fixed; bottom: 0; left: 0; right: 0; height: 58px; margin: 0; padding: 0 16px; background: white; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); gap: 0; z-index: 30; }
  .topnav.has-admin { grid-template-columns: repeat(4, 1fr); }
  .topnav a { justify-content: center; border-bottom: 0; border-top: 2px solid transparent; font-size: 11px; }
  .topnav a.active { border-top-color: var(--mint-dark); border-bottom: 0; }
  .account-email { display: none; }
  .hero { padding: 54px 20px 72px; gap: 45px; }
  .hero h1 { font-size: 49px; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .trust-row { display: grid; gap: 8px; }
  .hero-panel { padding: 16px; }
  .alert-time { display: none; }
  .freeze-intel-wrap { padding: 0 16px 54px; }
  .freeze-intel-head { align-items: flex-start; flex-direction: column; padding: 19px 17px 14px; }
  .freeze-tabs { width: 100%; }
  .freeze-tabs button { flex: 1; padding: 8px 7px; }
  .freeze-slide { padding: 14px 17px 10px; }
  .freeze-slide-label small { display: none; }
  .freeze-feed-row { grid-template-columns: 48px minmax(120px, 1fr) 70px; gap: 8px; }
  .freeze-feed-row time { display: none; }
  .freeze-intel-foot { padding: 10px 17px; }
  .steps-grid { grid-template-columns: 1fr; }
  .how { padding: 70px 20px; }
  .auth-shell { padding: 42px 18px 70px; }
  .auth-side h1 { font-size: 43px; }
  .auth-side > p, .auth-signal { display: none; }
  .auth-card { border-radius: 16px; padding: 26px 20px; }
  .app-shell { padding: 30px 14px 90px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head .button { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .metric { min-height: 115px; padding: 15px; }
  .metric > strong { font-size: 29px; }
  .watch-item { align-items: flex-start; padding: 16px; }
  .watch-main { align-items: flex-start; }
  .watch-main > .chain-badge { display: none; }
  .watch-address code { max-width: 48vw; }
  .watch-actions { flex-wrap: wrap; justify-content: flex-end; }
  .card-title { padding: 20px 18px 15px; }
  .address-form { padding: 18px; }
  .privacy-note { margin: 0 18px 18px; }
  .data-table th, .data-table td { padding: 12px 15px; }
  .setting-card { padding: 21px; }
  .security-card { flex-direction: column; align-items: flex-start; }
  .mailbox-head { align-items: flex-start; }
  .mailbox-address { max-width: 100%; }
  .mailbox-stats { gap: 8px; }
  .mailbox-stats article { min-height: 76px; padding: 13px; flex-direction: column; align-items: flex-start; }
  .mailbox-stats strong { font-size: 24px; }
  .mailbox-tabs { padding: 0 16px; }
  .mail-row { padding: 15px 16px; grid-template-columns: 34px minmax(0, 1fr); }
  .mail-avatar { width: 34px; height: 34px; }
  .mail-row-top time { display: none; }
  .mail-flags { grid-column: 2; justify-content: flex-start; }
  .mail-reading-head { padding: 21px 18px; flex-direction: column; }
  .mail-meta { padding: 17px 18px; align-items: flex-start; }
  .mail-meta time { display: none; }
  .mail-body { padding: 24px 19px 30px; }
  .attachment-section { padding: 20px 18px; }
  .site-footer { padding-bottom: 72px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
