/* Shared member workspace and wallet */
:root {
  --ink:#251d24; --muted:#7c727a; --line:#eae3ee; --paper:#fcfafd; --rose:#b2597c;
  --serif:"DM Sans","PingFang SC","Microsoft YaHei",sans-serif;
  --accent:#bc7792; --pink:#f9e4ec; --card-shadow:0 15px 44px #5e476507;
}
body {
  background:radial-gradient(ellipse at 4% 0%,#f0e9fc 0,transparent 36rem),
    radial-gradient(ellipse at 98% 7%,#faedf4 0,transparent 34rem),#fbfaff;
}
body:has(dialog[open]) { overflow:hidden; }
.head { position:absolute; top:0; left:0; right:0; height:0; border:0; background:transparent; pointer-events:none; }
.bar { width:min(704px,calc(100% - 32px)); height:auto; margin:0 auto; justify-content:flex-end; padding:28px 8px 0; }
.head .brand { display:none; }
.menu-toggle { pointer-events:auto; width:clamp(44px,5vw,68px); height:clamp(44px,5vw,68px); border-radius:22px; background:#ffffffd9; }
.page { width:min(704px,calc(100% - 32px)); margin:28px auto 54px; }
.account-head { padding:4px 8px; margin:0 0 28px; }
.account-head h1 { font:780 clamp(34px,5vw,58px)/1.2 var(--serif); letter-spacing:-.04em; padding-right:76px; }
.account-head .lead { font-size:clamp(16px,2.3vw,24px); line-height:1.6; margin:15px 0 0; color:var(--muted); }
.sheet,.task-card,.home-tools>a,.template-grid>article,.quick {
  background:#ffffffed; border:1px solid var(--line); border-radius:24px; box-shadow:var(--card-shadow);
}
.sheet { padding:clamp(18px,3vw,27px); margin:18px 0; }
.sheet h2 { font-size:clamp(21px,2.5vw,29px); line-height:1.3; }
.btn { border-radius:999px; }
.btn.primary,.btn.rose { background:linear-gradient(110deg,#d597ad,#bd7993); color:#fff; font-weight:750; }
.btn.primary:hover,.btn.rose:hover { background:#aa637f; }
.btn.light { border-color:var(--line); background:white; }
.menu-drawer { width:min(230px,84vw); }
.menu-inner { padding-inline:12px; }
.menu-list a { font-size:16px; padding:12px; }
.menu-list a[aria-current=page] { color:#ad416c; background:#f8dce5; }
.home-shortcuts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:0 0 22px; }
.home-shortcuts>a:first-child { grid-column:auto; }
.home-shortcuts>a { border-radius:26px; padding:24px; color:var(--ink); }
.home-shortcuts .task-card { align-content:start; gap:12px; padding:clamp(16px,3vw,27px); min-height:clamp(185px,24vw,315px); }
.task-icon { display:inline-flex; align-items:center; justify-content:center; border-radius:20px; width:clamp(44px,6vw,68px); aspect-ratio:1; }
.create-icon { background:#ffeaf0; color:#d98ca5; font-size:45px; font-weight:500; line-height:1; }
.library-icon { background:#eeeaff; gap:5px; }
.library-icon i { display:block; width:6px; height:23px; border-radius:5px; background:#9a91e8; }
.library-icon i:nth-child(2) { height:34px; }.library-icon i:last-child { height:28px; }
.task-card strong { font-size:clamp(22px,3.2vw,34px); color:var(--ink); margin-top:10px; }
.task-card small { font-size:clamp(15px,2vw,21px); line-height:1.65; color:var(--muted); }
.home-shortcuts .quick { display:grid; place-content:center; min-height:62px; font-size:clamp(17px,2.1vw,24px); font-weight:720; padding:17px 8px; border-radius:21px; }
.home-shortcuts a:hover { background:#fff6fa; border-color:#e7b9cb; }
.activation-card { background:linear-gradient(120deg,#fff7f9,#fbf4ff); border-color:#efcfde; }
.activation-card h2 { font-size:22px; }
.activation-banner {
  display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:14px;
  margin:24px 0; padding:clamp(20px,3vw,28px) 24px; border:1px solid #efccdc;
  border-radius:28px; background:linear-gradient(115deg,#fff6f8,#faf3fc);
}
.activation-icon { width:44px; height:44px; border-radius:12px; background:#bf7d97; display:grid; place-items:center; }
.activation-icon i { grid-area:1/1; width:16px; height:11px; border:2px solid white; border-top:0; border-left:0; transform:translateY(4px) rotate(35deg) skew(-20deg); }
.activation-icon i:first-child { border:2px solid white; transform:translateY(-5px) rotate(35deg) skew(-20deg); }
.activation-icon i:nth-child(2) { transform:rotate(35deg) skew(-20deg); }
.activation-banner .activation-copy h2 { margin:0 0 6px; font-size:clamp(21px,2.2vw,26px); }
.activation-banner .activation-copy p { margin:0; color:#756573; font-size:clamp(16px,1.7vw,20px); line-height:1.6; }
.activation-copy p strong { color:#a04366; white-space:nowrap; }
.activation-banner .btn { min-height:52px; padding:12px 24px; white-space:nowrap; font-size:clamp(16px,1.7vw,21px); }
@media(max-width:600px) {
  .activation-banner { grid-template-columns:36px minmax(0,1fr); gap:12px; padding:20px 16px; align-items:start; }
  .activation-icon { width:36px; height:36px; border-radius:10px; }
  .activation-actions { min-width:0; }
  .activation-banner .activation-actions { grid-column:2; }
  .activation-banner .btn { min-height:44px; padding:9px 22px; }
}
.empty-card h2 { font-size:clamp(26px,3vw,38px); }.empty-card p { margin-top:12px; }
.shelf { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); gap:12px; }.shelf .sheet { margin:0; }
.shelf h2 { margin-top:14px; }.shelf .sample { margin:14px 0; }
.role-list { margin:0; }.active-label { color:#a54870; background:#fae6ee; }
.editor,.finance,.account-head,.history-tools { min-width:0; }
.editor label { font-weight:650; }.editor input,.editor textarea,.history-tools select,.finance-form input { border-radius:12px; }
.history-tools { flex-wrap:wrap; }.turns p { overflow-wrap:anywhere; }
.wallet-detail,.unit-rate,.checkout-help { color:var(--muted); }
.recharge-dialog,.activation-dialog {
  box-sizing:border-box; width:min(520px,calc(100% - 28px)); margin:auto; max-height:calc(100dvh - 36px);
  padding:20px; background:#fffdfe; color:var(--ink); border:0; border-radius:27px; overflow-y:auto; overscroll-behavior:contain;
  box-shadow:0 22px 70px #32233338;
}
.recharge-dialog::backdrop,.activation-dialog::backdrop { background:#342b3c72; }
.recharge-dialog .modal-bar { float:right; position:relative; top:auto; background:transparent; padding:0; }
.recharge-dialog .modal-bar .btn,.modal-close { border:0; color:#655c64; background:#f4f1f3; font-weight:650; }
.recharge-dialog .page,.recharge-dialog .account-head { width:auto; margin:0; padding:0; }
.recharge-dialog .account-head { margin-bottom:14px; }
.recharge-dialog h1 { font:750 25px/1.3 var(--serif); padding-right:76px; }
.recharge-dialog .lead { font-size:16px; margin:6px 0 0; }
.balance-strip { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:17px 15px; border:1px solid var(--line); border-radius:16px; background:linear-gradient(115deg,#fff,#fcf4f7); }
.balance-strip strong { font-size:24px; color:#b9567d; }.balance-strip small { font-size:15px; color:#826f7a; }
.pack-heading { margin:17px 0 10px; font-size:19px; }
.finance .pack-grid { display:grid; gap:10px; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; }
.pack-choice { display:flex; position:relative; flex-direction:column; align-items:stretch; justify-content:space-between; gap:12px;
  text-align:left; min-width:0; color:var(--ink); min-height:130px; padding:14px; background:white; border:2px solid #eee8f2; border-radius:16px; }
.pack-choice strong { font-size:19px; }.pack-choice span { font-size:15px; color:var(--muted); }
.pack-choice b { font-size:22px; color:#bf507d; }
.pack-choice[aria-pressed=true],.custom-choice[data-selected=true] { background:linear-gradient(135deg,#fff,#fcf1f5); border-color:#d484a3; }
.pack-choice[aria-pressed=true]::after,.custom-choice[data-selected=true]::after { content:"✓"; position:absolute; top:10px; right:10px; background:var(--accent); color:white; width:19px; line-height:19px; text-align:center; border-radius:50%; font-size:13px; }
.finance .custom-choice { display:flex; gap:6px; cursor:text; }.custom-choice input { background:#fff; }
.unit-rate,.checkout-help { display:block; margin:9px 0; font-size:13px; }
.finance .checkout { min-height:48px; font-size:20px; margin:6px 0 8px; }
.wallet-detail { border-top:1px solid var(--line); padding:12px 0; font-size:14px; }.wallet-detail summary { cursor:pointer; font-weight:650; }
.activation-dialog { width:min(400px,calc(100% - 32px)); padding:24px; text-align:center; }
.modal-close { position:absolute; right:12px; top:12px; width:34px; height:34px; border-radius:50%; font-size:21px; }
.gate-icon { display:grid; place-content:center; margin:6px auto 15px; width:52px; height:52px; border-radius:17px; background:var(--pink); color:var(--rose); font-size:30px; }
.activation-dialog .activation-card { display:grid; justify-content:stretch; padding:0; margin:0; border:0; box-shadow:none; background:none; }
.activation-dialog .activation-card h2 { margin-bottom:12px; }.activation-dialog .btn { width:100%; }
.activation-dialog .note { font-size:15px; }
[data-view=login] .login-bg { min-height:95vh; }
.login-card,.entry-panel { border-radius:22px; }.entry-bg { min-height:95vh; }
.account-head:has(>a:first-child) h1 { margin-top:8px; }
.invite-code { font-size:28px; font-weight:750; letter-spacing:.12em; color:var(--ink)!important; user-select:all; }
.invite-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.invite-stats>div { border:1px solid var(--line); padding:18px; background:white; border-radius:18px; color:var(--muted); }
.invite-stats strong { display:block; margin-top:6px; font-size:22px; color:var(--ink); }
.agent-hero { background:linear-gradient(125deg,#ae718b,#d792ac); text-align:center; color:white; padding:42px 20px; }
.agent-hero p { color:white; margin:auto; max-width:32em; }.agent-hero .sheet-actions { justify-content:center; margin-top:24px; }
[data-view=invite] { background:radial-gradient(at 4% 5%,#fff0f1,transparent 48%),radial-gradient(at 94% 2%,#fff5e6,transparent 45%),#fcfbfd; }
.profile-dialog { margin:auto auto 0; border-radius:24px 24px 0 0; }
.profile-summary { display:flex; align-items:center; gap:12px; margin:18px 0 10px; }.profile-summary small,.profile-summary b { display:block; }
.profile-summary a { margin-left:auto; text-align:right; color:var(--rose); }.profile-summary .account-face { width:54px; height:54px; }
.profile-dialog .wide { margin-top:14px; }.help-dialog .lead { font-size:16px; margin:8px 0 18px; }.help-dialog details p { margin:10px 0; line-height:1.65; }
@media(max-width:600px){
  .page { margin-top:21px; }.bar { padding:17px 2px 0; }.menu-toggle { border-radius:15px; }
  .home-shortcuts { gap:10px; }.home-shortcuts .task-card { gap:8px; }.task-card strong { margin-top:5px; }
  .recharge-dialog { padding:16px; }.pack-choice { min-height:118px; gap:8px; padding:11px; }.pack-choice strong { font-size:17px; }.pack-choice span { font-size:13px; }
  .account-head { padding:2px; }.recharge-dialog .page { padding:0; }.account-head h1 { padding-right:54px; }
}

