:root {
  color-scheme: light;
  --blue-950: #062158;
  --blue-900: #082d73;
  --blue-800: #0a439d;
  --blue-700: #0957d5;
  --blue-600: #2477ed;
  --blue-100: #eaf3ff;
  --cyan: #36bde8;
  --text: #102b57;
  --muted: #657b9b;
  --line: #dfe8f5;
  --surface: #ffffff;
  --soft: #f4f8fd;
  --success: #169b73;
  --warning: #e39121;
  --shadow: 0 18px 50px rgba(31, 72, 135, .12);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f4f7fb; }
body { margin: 0; min-height: 100vh; color: var(--text); background: #f4f7fb; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
[data-icon] { display: inline-grid; place-items: center; }
[data-icon] svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Entry */
.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 7%, rgba(255,255,255,.2) 0 1px, transparent 2px) 0 0 / 18px 18px,
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.16), transparent 18%),
    linear-gradient(155deg, #0844a7 0%, #146eea 43%, #4d97ff 75%, #d9eaff 100%);
}
.page-shell::before {
  content: "";
  position: absolute;
  inset: auto -16% -14% -16%;
  height: 44%;
  opacity: .42;
  background:
    linear-gradient(110deg, transparent 45%, rgba(255,255,255,.7) 45.4% 45.9%, transparent 46.3%),
    linear-gradient(70deg, transparent 48%, rgba(255,255,255,.36) 48.5% 49.1%, transparent 49.6%),
    repeating-linear-gradient(90deg, rgba(6,33,88,.2) 0 36px, rgba(255,255,255,.12) 36px 42px);
  clip-path: polygon(0 40%, 9% 34%, 17% 46%, 28% 20%, 39% 36%, 50% 18%, 62% 45%, 73% 27%, 84% 39%, 92% 22%, 100% 32%, 100% 100%, 0 100%);
  z-index: -1;
}
.page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, transparent 44%, rgba(255,255,255,.15) 44.2% 44.7%, transparent 45% 48%, rgba(255,255,255,.08) 48.2% 48.5%, transparent 49%);
  z-index: -1;
}
.auth-shell { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; padding: clamp(28px, 5vh, 56px) 24px 32px; display: flex; flex-direction: column; justify-content: center; }
.brand { color: white; text-align: center; margin-bottom: 22px; text-shadow: 0 4px 18px rgba(3,32,91,.28); }
.brand-mark { width: 74px; height: 74px; margin: 0 auto 9px; padding: 8px; border: 1px solid rgba(255,255,255,.6); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.36), rgba(255,255,255,.12)); box-shadow: inset 0 1px 0 rgba(255,255,255,.68), 0 18px 36px rgba(3,42,111,.2); backdrop-filter: blur(8px); }
.brand-mark svg { width: 100%; height: 100%; fill: white; filter: drop-shadow(0 6px 10px rgba(2,32,90,.2)); }
.brand-mark .brand-check { fill: none; stroke: #0c5ed7; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy { display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.brand h1 { margin: 0; font-size: clamp(1.9rem, 7vw, 2.65rem); line-height: 1.14; letter-spacing: .1em; }
.brand-kicker { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .18em; opacity: .88; }
.brand-note { margin: 8px 0 0; font-size: .92rem; letter-spacing: .12em; opacity: .84; }
.auth-card { padding: 21px; border: 1px solid rgba(255,255,255,.8); border-radius: 28px; background: linear-gradient(150deg, rgba(255,255,255,.82), rgba(220,235,255,.72)); box-shadow: 0 28px 70px rgba(4,31,86,.28), inset 0 1px 0 rgba(255,255,255,.86); backdrop-filter: blur(18px) saturate(120%); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 17px; border-radius: 16px; background: rgba(107,151,216,.16); }
.tab { border: 0; border-radius: 13px; padding: 12px; color: #55709c; background: transparent; font-size: 1rem; font-weight: 700; cursor: pointer; }
.tab.is-active { color: #0b438f; background: rgba(255,255,255,.75); box-shadow: 0 6px 16px rgba(20,78,160,.12); }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(11,91,216,.3); outline-offset: 2px; }
.field { margin: 0 0 10px; }
.field > label { display: block; margin: 0 0 6px 5px; font-size: .88rem; font-weight: 700; color: #345984; }
.input-wrap { min-height: 54px; display: flex; align-items: center; gap: 11px; padding: 0 15px; border: 1px solid rgba(255,255,255,.86); border-radius: 16px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(66,120,197,.08); transition: .2s; }
.input-wrap:focus-within { border-color: #4d91ee; background: rgba(255,255,255,.8); box-shadow: 0 0 0 4px rgba(33,118,237,.12); }
.field-icon { width: 22px; height: 22px; flex: none; color: #4385df; }
.input-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 1rem; }
.input-wrap input::placeholder { color: #8097b8; }
.reveal { border: 0; padding: 8px 0 8px 8px; color: #2c6fc9; background: transparent; font-size: .82rem; font-weight: 700; cursor: pointer; }
.error { min-height: 0; margin: 4px 5px 0; color: #ba2d3c; font-size: .8rem; }
.error:not(:empty) { min-height: 1.2em; }
.field.is-hidden { display: none; }
.primary-button { width: 100%; min-height: 54px; border: 0; border-radius: 17px; color: white; background: linear-gradient(180deg, #3589f6, #0755ca); box-shadow: 0 12px 24px rgba(2,80,197,.28), inset 0 1px 0 rgba(255,255,255,.4); font-size: 1.04rem; font-weight: 800; letter-spacing: .04em; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(2,80,197,.34), inset 0 1px 0 rgba(255,255,255,.4); }
.primary-button:active { transform: translateY(1px); }
.demo-button { width: 100%; margin-top: 10px; min-height: 45px; border: 1px solid rgba(9,87,213,.18); border-radius: 15px; color: #0b57bd; background: rgba(255,255,255,.38); font-size: .9rem; font-weight: 750; cursor: pointer; }
.demo-button:hover { background: rgba(255,255,255,.68); }
.secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; }
.secondary-actions button { min-height: 44px; border: 1px solid rgba(255,255,255,.82); border-radius: 15px; color: #0b4cae; background: rgba(255,255,255,.46); font-size: .9rem; font-weight: 800; cursor: pointer; }
.privacy-note { display: flex; align-items: flex-start; gap: 8px; margin: 13px 3px 0; color: #537197; font-size: .79rem; line-height: 1.5; }
.privacy-note [data-icon] { width: 17px; height: 17px; flex: none; margin-top: 1px; color: #3477ce; }

/* Product */
.workspace { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); background: #f4f7fb; }
.desktop-sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px 20px; display: flex; flex-direction: column; border-right: 1px solid #e5ecf6; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); z-index: 5; }
.side-brand { width: 100%; display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; border: 0; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.side-brand > span:last-child { display: grid; }
.side-brand strong { font-size: 1.16rem; letter-spacing: .1em; }
.side-brand small { margin-top: 2px; color: var(--muted); font-size: .74rem; letter-spacing: .12em; }
.mini-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(145deg, #2b82f2, #0754c7); box-shadow: 0 9px 20px rgba(9,87,213,.23); }
.mini-mark [data-icon] { width: 23px; height: 23px; }
.side-nav { display: grid; gap: 8px; }
.side-nav button { width: 100%; min-height: 49px; display: flex; align-items: center; gap: 13px; padding: 0 14px; border: 0; border-radius: 14px; color: #667d9f; background: transparent; font-size: .95rem; font-weight: 700; cursor: pointer; }
.side-nav button:hover { color: #165bb6; background: #f0f6ff; }
.side-nav button.is-active { color: #0a56c5; background: #eaf3ff; box-shadow: inset 3px 0 0 #146eea; }
.side-nav [data-icon] { width: 21px; height: 21px; }
.side-foot { margin-top: auto; display: flex; gap: 10px; padding: 15px; border-radius: 16px; color: #356594; background: #eff6ff; }
.side-foot [data-icon] { width: 20px; height: 20px; color: #1675dd; flex: none; }
.side-foot p { margin: 0; font-size: .85rem; line-height: 1.35; }
.side-foot small { color: #7084a3; }
.workspace-main { min-width: 0; }
.app-header { position: sticky; top: 0; z-index: 4; min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px clamp(24px, 4vw, 52px); border-bottom: 1px solid rgba(220,229,242,.8); background: rgba(244,247,251,.88); backdrop-filter: blur(18px); }
.page-eyebrow { margin: 0 0 3px; color: #6a82a5; font-size: .79rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.app-header h1 { margin: 0; color: #132f58; font-size: clamp(1.28rem, 2.6vw, 1.65rem); line-height: 1.25; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .avatar-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #e1e9f5; border-radius: 14px; color: #446585; background: white; cursor: pointer; }
.icon-button [data-icon] { width: 20px; height: 20px; }
.icon-button i { position: absolute; top: -3px; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border: 2px solid white; border-radius: 999px; color: white; background: #ef624c; font-size: .61rem; font-style: normal; font-weight: 800; }
.avatar-button { color: white; border: 0; background: linear-gradient(145deg, #2b82f2, #0754c7); font-weight: 800; }
.page-content { width: min(100%, 1240px); margin: 0 auto; padding: 30px clamp(24px, 4vw, 52px) 56px; outline: 0; }
.bottom-nav { display: none; }

.hero-panel { position: relative; overflow: hidden; min-height: 245px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; padding: clamp(26px, 4vw, 42px); border-radius: 28px; color: white; background: linear-gradient(125deg, #092a68 0%, #0a5bd5 56%, #36a7eb 100%); box-shadow: 0 24px 60px rgba(11,72,162,.2); isolation: isolate; }
.hero-panel::before { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -180px; border: 46px solid rgba(255,255,255,.09); border-radius: 50%; z-index: -1; }
.hero-panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 78%, rgba(124,224,255,.38), transparent 23%), linear-gradient(110deg, transparent 48%, rgba(255,255,255,.08) 48.3% 48.8%, transparent 49.1%); z-index: -1; }
.hero-copy { align-self: center; }
.hero-kicker { margin: 0 0 10px; color: #c5e3ff; font-size: .83rem; font-weight: 800; letter-spacing: .16em; }
.hero-panel h2 { max-width: 620px; margin: 0 0 12px; font-size: clamp(1.65rem, 4vw, 2.65rem); line-height: 1.18; }
.hero-panel p { max-width: 620px; margin: 0; color: rgba(255,255,255,.78); font-size: .96rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions button { min-height: 43px; padding: 0 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 13px; color: white; background: rgba(255,255,255,.12); font-weight: 800; cursor: pointer; backdrop-filter: blur(5px); }
.hero-actions button.is-primary { color: #0b4ea5; border-color: white; background: white; }
.hero-summary { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-stat { min-height: 88px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.11); backdrop-filter: blur(9px); }
.hero-stat span { color: #d6ebff; font-size: .78rem; }
.hero-stat strong { font-size: 1.38rem; line-height: 1; }
.hero-stat small { color: #c6e3ff; font-size: .7rem; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 20px; margin-top: 22px; }
.stack { display: grid; gap: 20px; align-content: start; }
.panel { padding: 23px; border: 1px solid #e4ebf5; border-radius: 22px; background: white; box-shadow: 0 12px 36px rgba(36,73,125,.07); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-head h2, .section-head h3 { margin: 0; color: #18385f; font-size: 1.12rem; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.text-button { border: 0; color: #1264cf; background: transparent; font-size: .84rem; font-weight: 800; cursor: pointer; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-action { min-height: 112px; padding: 15px 11px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; border: 1px solid #e6edf6; border-radius: 17px; color: #24486f; background: #fbfdff; text-align: left; cursor: pointer; transition: .18s; }
.quick-action:hover { transform: translateY(-2px); border-color: #bfd8fb; box-shadow: 0 12px 24px rgba(23,94,182,.1); }
.quick-icon, .service-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; color: #0e65d2; background: #e8f2ff; }
.quick-icon [data-icon], .service-icon [data-icon] { width: 21px; height: 21px; }
.quick-action strong { font-size: .91rem; }
.quick-action small { color: #7c8eaa; font-size: .72rem; }

.progress-card { padding: 20px; border-radius: 19px; color: #163960; background: linear-gradient(135deg, #edf6ff, #f8fbff); }
.progress-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.progress-top strong { font-size: 1rem; }
.status-pill { padding: 6px 10px; border-radius: 999px; color: #0d68cd; background: white; font-size: .72rem; font-weight: 800; }
.progress-bar { height: 9px; margin: 18px 0 12px; overflow: hidden; border-radius: 99px; background: #d9e9fa; }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0e65d2, #42bfe7); transition: width .4s ease; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; color: #6b82a1; font-size: .78rem; }
.timeline { display: grid; gap: 16px; }
.timeline-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.timeline-dot { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #dce7f5; border-radius: 10px; color: #8194ae; background: white; font-size: .74rem; font-weight: 800; }
.timeline-item.is-done .timeline-dot { color: white; border-color: #1985dd; background: #1985dd; }
.timeline-item strong { display: block; margin-top: 2px; font-size: .88rem; }
.timeline-item p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.announcement-list { display: grid; gap: 2px; }
.announcement { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 13px 2px; border: 0; border-bottom: 1px solid #edf1f6; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.announcement:last-child { border-bottom: 0; }
.announcement-badge { padding: 5px 8px; border-radius: 9px; color: #0b65cd; background: #eaf3ff; font-size: .68rem; font-weight: 800; }
.announcement strong { display: block; font-size: .87rem; }
.announcement small { display: block; margin-top: 3px; color: #8393aa; font-size: .72rem; }
.announcement > [data-icon] { width: 17px; height: 17px; color: #8a9ab0; }

.checkin-panel { position: relative; overflow: hidden; background: linear-gradient(150deg, #fff8eb, #fffdf9); }
.checkin-panel::after { content: ""; position: absolute; width: 130px; height: 130px; right: -55px; top: -55px; border-radius: 50%; background: rgba(255,195,82,.16); }
.checkin-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.checkin-top > span { color: #bd7620; font-size: .74rem; font-weight: 800; letter-spacing: .08em; }
.checkin-score { margin: 12px 0 16px; }
.checkin-score strong { font-size: 2rem; color: #8d5515; }
.checkin-score span { margin-left: 6px; color: #a77c48; font-size: .82rem; }
.checkin-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 16px; }
.day { display: grid; place-items: center; gap: 5px; color: #9b805d; font-size: .65rem; }
.day i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #ecd8b9; border-radius: 8px; background: white; font-style: normal; }
.day.is-done i { color: white; border-color: #ed9c35; background: #ed9c35; }
.compact-button { width: 100%; min-height: 43px; border: 0; border-radius: 13px; color: white; background: #e89026; font-weight: 800; cursor: pointer; }
.compact-button:disabled { color: #806a4d; background: #efe1cc; cursor: default; }

/* Services */
.intro-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px; margin-bottom: 20px; border-radius: 23px; color: white; background: linear-gradient(115deg, #102d62, #0a6bd5); box-shadow: 0 16px 40px rgba(18,77,150,.16); }
.intro-strip h2 { margin: 0 0 7px; font-size: 1.3rem; }
.intro-strip p { margin: 0; color: #cfe4ff; font-size: .87rem; line-height: 1.6; }
.intro-strip [data-icon] { width: 62px; height: 62px; padding: 14px; border-radius: 20px; color: white; background: rgba(255,255,255,.13); flex: none; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { min-height: 230px; padding: 21px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #e3eaf4; border-radius: 21px; background: white; box-shadow: 0 12px 34px rgba(35,72,121,.06); }
.service-icon { width: 46px; height: 46px; margin-bottom: 24px; }
.service-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.service-card p { margin: 0 0 18px; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.service-card footer { width: 100%; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.service-card footer span { color: #758aa6; font-size: .74rem; }
.service-card button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 11px; color: #0a60ca; background: #eaf3ff; font-size: .78rem; font-weight: 800; cursor: pointer; }

/* Team */
.team-hero { padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; border-radius: 25px; color: white; background: linear-gradient(125deg, #0c3b86, #1b78df 65%, #39b6e8); }
.team-hero h2 { margin: 0 0 8px; font-size: 1.5rem; }
.team-hero p { margin: 0; color: #d1e8ff; font-size: .87rem; line-height: 1.65; }
.invite-code { padding: 15px 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 17px; background: rgba(255,255,255,.12); text-align: center; }
.invite-code small { display: block; margin-bottom: 5px; color: #d2eaff; }
.invite-code strong { font-size: 1.35rem; letter-spacing: .13em; }
.team-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 18px 0; }
.stat-card { padding: 19px; border: 1px solid #e4ebf5; border-radius: 18px; background: white; }
.stat-card span { display: block; color: var(--muted); font-size: .78rem; }
.stat-card strong { display: block; margin-top: 9px; font-size: 1.42rem; }
.member-list { display: grid; }
.member { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #edf1f6; }
.member:last-child { border-bottom: 0; }
.member-avatar { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; color: #0c5fc5; background: #eaf3ff; font-weight: 800; }
.member strong { display: block; font-size: .88rem; }
.member small { color: #8394aa; font-size: .73rem; }
.member-status { color: var(--success); font-size: .74rem; font-weight: 800; }

/* Profile */
.profile-card { padding: 26px; display: flex; align-items: center; gap: 18px; border-radius: 24px; color: white; background: linear-gradient(125deg, #102f6b, #0b6bd8); }
.profile-avatar { width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.38); border-radius: 21px; background: rgba(255,255,255,.15); font-size: 1.5rem; font-weight: 800; }
.profile-card h2 { margin: 0 0 5px; font-size: 1.28rem; }
.profile-card p { margin: 0; color: #d2e7ff; font-size: .84rem; }
.profile-badge { margin-left: auto; padding: 7px 10px; border-radius: 10px; color: #e0f1ff; background: rgba(255,255,255,.13); font-size: .73rem; font-weight: 800; }
.settings-list { display: grid; }
.setting-row { width: 100%; min-height: 60px; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border: 0; border-bottom: 1px solid #edf1f6; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.setting-row:last-child { border-bottom: 0; }
.setting-row > [data-icon] { width: 37px; height: 37px; padding: 9px; border-radius: 12px; color: #0d65cb; background: #ecf4ff; }
.setting-row strong { display: block; font-size: .88rem; }
.setting-row small { color: #8292aa; font-size: .73rem; }
.setting-row > span:last-child { width: 17px; height: 17px; color: #90a0b4; }
.logout-button { width: 100%; min-height: 48px; margin-top: 18px; border: 1px solid #f0d9d9; border-radius: 14px; color: #be4f4f; background: #fffafa; font-weight: 800; cursor: pointer; }
.safety-box { display: flex; gap: 13px; align-items: flex-start; padding: 17px; border-radius: 16px; color: #346590; background: #eff7ff; }
.safety-box [data-icon] { width: 22px; height: 22px; color: #1570d8; flex: none; }
.safety-box strong { display: block; margin-bottom: 4px; font-size: .86rem; }
.safety-box p { margin: 0; font-size: .76rem; line-height: 1.55; }

/* Payment */
.payment-setup { display: grid; gap: 17px; text-align: left; }
.payment-amount-field > span, .payment-way-field legend { display: block; margin-bottom: 8px; color: #345678; font-size: .82rem; font-weight: 800; }
.payment-amount-field > div { display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid #cad9eb; border-radius: 13px; background: white; }
.payment-amount-field b { color: #d75735; font-size: 1.15rem; }
.payment-amount-field input { width: 100%; min-height: 48px; border: 0; outline: 0; color: #183957; background: transparent; font-size: 1rem; font-weight: 800; }
.payment-way-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.payment-way-field label { display: block; position: relative; margin-top: 9px; cursor: pointer; }
.payment-way-field input { position: absolute; opacity: 0; pointer-events: none; }
.pay-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 55px; padding: 10px 13px; border: 2px solid #e2eaf4; border-radius: 14px; background: #fbfdff; }
.pay-choice strong { color: #23466d; }
.pay-choice small { color: #7b8ca2; }
.payment-way-field input:checked + .pay-choice { border-color: #0b65cf; box-shadow: 0 0 0 3px rgba(11,101,207,.1); }
.payment-way-field input:focus-visible + .pay-choice { outline: 3px solid rgba(11,101,207,.22); outline-offset: 2px; }
.payment-way-field input:checked + .pay-choice-alipay { border-color: #1677ff; background: #f1f7ff; }
.payment-way-field input:checked + .pay-choice-wechat { border-color: #09b83e; background: #f1fff5; }
.payment-setup-note { margin: 0 !important; padding: 12px 13px; border-radius: 12px; color: #6f5a35; background: #fff8e9; font-size: .76rem; line-height: 1.6; }
.payment-form-error { min-height: 20px; margin: -7px 0 0 !important; color: #b64b43; font-size: .77rem; }
.payment-summary { display: grid; gap: 9px; margin: 3px 0 18px; text-align: left; }
.payment-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 13px; border-radius: 12px; background: #f5f8fc; }
.payment-summary span { color: #71849f; font-size: .78rem; }
.payment-summary strong { color: #23466d; font-size: .86rem; text-align: right; }
.payment-summary .payment-amount { color: #d75735; font-size: 1.12rem; }
.payment-summary .payment-adjustment { color: #98651f; }
.payment-status { padding: 4px 8px; border-radius: 99px; background: #eaf3ff; }
.payment-status-paid { color: #17845c !important; background: #e7f7f0; }
.payment-status-failed, .payment-status-closed, .payment-status-cancelled { color: #a9574a !important; background: #fff0ed; }
.payment-qr-wrap { padding: 17px; border: 1px solid #dfe9f6; border-radius: 18px; background: #fbfdff; }
.payment-qr { display: block; width: min(220px, 72vw); aspect-ratio: 1; object-fit: contain; margin: 0 auto; border-radius: 10px; background: white; }
.payment-qr-wrap p { margin: 11px 0 0; color: #58718f; font-size: .78rem; }
.payment-qr-wrap p strong { color: #d75735; font-size: .92rem; }
.payment-link { min-height: 48px; display: grid; place-items: center; border-radius: 14px; color: white; background: #0b5bd8; font-weight: 800; text-decoration: none; }
.demo-payment-box, .payment-wait { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 16px; text-align: left; }
.demo-payment-box { color: #356594; background: #eff7ff; }
.payment-wait { color: #7d6741; background: #fff8e9; }
.demo-payment-box [data-icon], .payment-wait [data-icon] { width: 22px; height: 22px; flex: none; }
.demo-payment-box strong { display: block; margin-bottom: 4px; color: #194f85; }
.demo-payment-box p, .payment-wait p { margin: 0; font-size: .79rem; line-height: 1.55; }
.payment-order-no { margin: 14px 0 0 !important; color: #8a99ad; font-size: .7rem; overflow-wrap: anywhere; }
.payment-loading { min-height: 120px; display: grid; place-items: center; align-content: center; gap: 12px; }
.payment-loading p { margin: 0; }
.spinner { width: 32px; height: 32px; border: 3px solid #dceafa; border-top-color: #0b5bd8; border-radius: 50%; animation: payment-spin .8s linear infinite; }
@keyframes payment-spin { to { transform: rotate(360deg); } }

/* Overlay */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,24,65,.54); backdrop-filter: blur(5px); }
.dialog { position: relative; width: min(100%, 420px); max-height: min(82vh, 680px); overflow: auto; padding: 30px 24px 24px; border-radius: 24px; background: white; box-shadow: 0 32px 90px rgba(1,20,56,.35); text-align: center; }
.dialog h2 { margin: 12px 0 8px; font-size: 1.3rem; }
.dialog-body { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.dialog-body p { margin: 0 0 12px; }
.dialog-body .detail-list { display: grid; gap: 10px; margin: 16px 0; text-align: left; }
.dialog-body .detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 12px; border-radius: 11px; background: var(--soft); }
.dialog-body .detail-row strong { color: #26496f; }
.dialog-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto; border-radius: 18px; color: white; background: #0b5bd8; }
.dialog-icon [data-icon] { width: 27px; height: 27px; }
.dialog-close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; color: #617897; background: transparent; font-size: 1.7rem; cursor: pointer; }
.dialog-actions { display: flex; gap: 10px; margin-top: 20px; }
.dialog-actions button { flex: 1; min-height: 45px; border: 1px solid #dce7f5; border-radius: 13px; color: #40617f; background: white; font-weight: 800; cursor: pointer; }
.dialog-actions button.is-primary { color: white; border-color: #0b5bd8; background: #0b5bd8; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 28px; max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 14px; color: white; background: rgba(6,27,66,.94); box-shadow: 0 12px 32px rgba(3,27,73,.3); font-size: .9rem; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: .24s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .hero-panel { grid-template-columns: 1fr; }
  .hero-summary { grid-template-columns: repeat(4, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .workspace { display: block; padding-bottom: 76px; }
  .desktop-sidebar { display: none; }
  .app-header { min-height: 76px; padding: 13px 18px; }
  .page-content { padding: 20px 16px 38px; }
  .bottom-nav { position: fixed; inset: auto 0 0; z-index: 8; height: calc(68px + env(safe-area-inset-bottom)); padding: 6px 12px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #dfe8f4; background: rgba(255,255,255,.96); backdrop-filter: blur(18px); }
  .bottom-nav button { display: grid; place-items: center; align-content: center; gap: 3px; border: 0; color: #8292a8; background: transparent; font-size: .7rem; font-weight: 700; cursor: pointer; }
  .bottom-nav button.is-active { color: #0b62cd; }
  .bottom-nav [data-icon] { width: 22px; height: 22px; }
  .toast { bottom: 88px; }
}

@media (max-width: 610px) {
  .auth-shell { justify-content: flex-start; padding: 24px 15px 24px; }
  .brand { margin-bottom: 16px; }
  .brand-mark { width: 64px; height: 64px; border-radius: 19px; }
  .brand-copy { display: block; }
  .brand-kicker { margin-bottom: 3px; }
  .brand h1 { font-size: 1.95rem; }
  .auth-card { padding: 16px; border-radius: 23px; }
  .hero-panel { min-height: 0; padding: 24px 20px; border-radius: 23px; }
  .hero-panel h2 { font-size: 1.65rem; }
  .hero-summary { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .panel { padding: 18px; border-radius: 19px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 198px; }
  .intro-strip { align-items: flex-start; padding: 21px; }
  .intro-strip [data-icon] { width: 52px; height: 52px; }
  .team-hero { grid-template-columns: 1fr; padding: 23px; }
  .invite-code { text-align: left; }
  .team-stats { grid-template-columns: 1fr 1fr; }
  .profile-card { padding: 20px; }
  .profile-badge { display: none; }
}

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