:root{
  --ink:#172033;--sub:#687287;--bg:#f2f4f7;--card:#fff;--line:#e6e9ef;
  --blue:#255bc2;--blue2:#4f83df;--soft:#edf3ff;--teal:#0f927e;--orange:#e98224;
  --purple:#7554c7;--red:#df4d54;--amber:#ec922e;--green:#20936d;--safe:env(safe-area-inset-bottom,0px)
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font:15px/1.55 "Avenir Next","PingFang SC","Hiragino Sans GB",sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}.page{width:100%;max-width:720px;min-height:100dvh;margin:auto;padding:16px 14px calc(86px + var(--safe));background:radial-gradient(circle at 90% -4%,rgba(73,130,223,.13),transparent 32%),var(--bg)}.page.no-tabs{padding-bottom:32px}.page.with-actions{padding-bottom:calc(96px + var(--safe))}.boot{padding:42px;text-align:center;color:var(--sub)}
.topbar{height:48px;display:flex;align-items:center;position:sticky;top:0;z-index:20;margin:-16px -14px 14px;padding:0 14px;background:rgba(242,244,247,.94);backdrop-filter:blur(16px);border-bottom:1px solid rgba(222,226,234,.8)}.back{width:38px;height:38px;border:0;background:transparent;font-size:32px;line-height:1;margin-right:4px}.page-title{font-size:18px;font-weight:750;letter-spacing:.02em}
.hero{position:relative;overflow:hidden;border-radius:22px;padding:22px 18px 17px;margin-bottom:14px;color:#fff;background:linear-gradient(135deg,#17366f 0%,#2d62bd 60%,#5687dd 100%);box-shadow:0 12px 28px rgba(28,66,139,.2)}.hero:after{content:"";position:absolute;right:-30px;top:-58px;width:170px;height:170px;border:1px solid rgba(255,255,255,.2);border-radius:50%}.hero-orb{position:absolute;right:42px;top:20px;width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.28),rgba(255,255,255,.05));transform:rotate(18deg)}.hero-kicker{font-size:13px;letter-spacing:.12em;opacity:.72;margin-bottom:12px}.hero-title{font:700 24px/1.25 "Songti SC","STSong",serif;letter-spacing:.02em}.hero-sub{font-size:13px;opacity:.83;margin-top:4px}.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:17px}.kpi{display:grid;text-align:center;padding:10px 4px;border-radius:13px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.09)}.kpi-num{font-size:23px;line-height:1.1}.kpi-label{font-size:13px;margin-top:4px;opacity:.88}
.card{background:var(--card);border:1px solid rgba(225,228,235,.75);border-radius:18px;padding:15px;margin-bottom:12px;box-shadow:0 6px 18px rgba(33,46,75,.045)}.title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:11px}.title{font-size:17px;font-weight:750;line-height:1.35}.name{font-size:15px;font-weight:680}.sub,.meta{font-size:13px;color:var(--sub)}.strong{font-weight:700}.brand{color:var(--blue)}.amber-text{color:var(--amber)}
.item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.item:last-child{border-bottom:0}.item-main{flex:1;min-width:0}.reminder-overdue_followup{border-left:3px solid var(--red);padding-left:10px}.reminder-filing_expiry{border-left:3px solid var(--amber);padding-left:10px}
.tag{display:inline-flex;align-items:center;border-radius:7px;padding:3px 7px;background:#f0f2f5;color:#667085;font-size:12px;font-weight:650;white-space:nowrap}.tag.red{background:#fff0f0;color:var(--red)}.tag.amber{background:#fff5e8;color:#c56e12}.tag.green{background:#eaf8f1;color:var(--green)}.tag.blue{background:#eaf1ff;color:var(--blue)}.tag.gray{background:#f0f2f5;color:#667085}.reminder-dot{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 7px;border-radius:20px;background:var(--red);color:#fff;font-size:12px}
.grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px 7px}.grid-item{border:0;background:transparent;padding:0;display:grid;place-items:center;gap:7px;font-size:13px;line-height:1.2;text-align:center}.grid-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;color:var(--blue);background:linear-gradient(145deg,#f2f6ff,#e4edff);box-shadow:inset 0 0 0 1px rgba(37,91,194,.08),0 5px 12px rgba(37,91,194,.1)}.tone-teal .grid-icon{color:var(--teal);background:linear-gradient(145deg,#effbf8,#dff4ee)}.tone-orange .grid-icon{color:var(--orange);background:linear-gradient(145deg,#fff8ed,#ffecd4)}.tone-purple .grid-icon{color:var(--purple);background:linear-gradient(145deg,#f8f3ff,#ece4fb)}.icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.grid-icon .icon{width:25px;height:25px}
.tabbar{position:fixed;z-index:30;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:720px;display:grid;grid-template-columns:repeat(5,1fr);padding:7px 4px calc(7px + var(--safe));background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-top:1px solid var(--line)}.tab{display:grid;place-items:center;gap:2px;color:#7a8497;font-size:12px;text-decoration:none}.tab .icon{width:24px;height:24px}.tab.on{color:var(--blue);font-weight:700}.tab.on .icon{fill:rgba(37,91,194,.14);stroke-width:2.2}
.input,.textarea,.search{width:100%;border:1px solid #dfe3eb;border-radius:13px;background:#fbfcfe;padding:12px 13px;outline:0;font-size:15px;transition:.18s}.input:focus,.textarea:focus,.search:focus{border-color:#7ca0e6;box-shadow:0 0 0 3px rgba(37,91,194,.1);background:#fff}.textarea{min-height:112px;resize:vertical}.brief-profile{min-height:150px}.search{margin-bottom:12px}.field{display:block;margin-bottom:14px}.label{display:block;font-size:14px;font-weight:650;margin-bottom:7px}.required{color:var(--red)}.chips{display:flex;flex-wrap:wrap;gap:7px}.chip{border:1px solid #dfe3eb;border-radius:999px;background:#fff;padding:7px 12px;font-size:13px}.chip.on{border-color:#6e97e3;background:#edf3ff;color:var(--blue);font-weight:650}.segments{display:flex;gap:7px;overflow:auto;margin-bottom:12px;padding-bottom:2px}.segment{white-space:nowrap;border-radius:999px;background:#fff;padding:7px 11px;color:var(--sub);font-size:13px}.segment.on{background:var(--blue);color:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:0;border-radius:13px;padding:10px 16px;background:linear-gradient(135deg,var(--blue),#376fd0);color:#fff;font-weight:700;text-decoration:none;box-shadow:0 6px 14px rgba(37,91,194,.16)}.btn.outline{background:#fff;color:var(--blue);border:1px solid #8ba9e2;box-shadow:none}.btn.gray{background:#eef1f5;color:#536075;box-shadow:none}.btn.amber{background:var(--amber)}.btn.danger{background:var(--red)}.btn.full,.full{width:100%}.bottom-actions{position:fixed;z-index:25;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:720px;display:flex;gap:9px;background:#fff;border-top:1px solid var(--line);padding:11px 14px calc(11px + var(--safe))}.bottom-actions .btn{flex:1}.split{display:flex;gap:9px}.split>*{flex:1}.fab{position:fixed;right:18px;bottom:86px;border:0;border-radius:999px;padding:12px 18px;background:var(--orange);color:#fff;font-weight:700;box-shadow:0 8px 20px rgba(233,130,36,.3)}
.warn{background:#fff6ea;border:1px solid #f4d4a6;border-radius:13px;padding:12px 13px;margin-bottom:12px;font-size:14px}.warn.red{background:#fff0f0;border-color:#f4c7c9}.ai{border:1px dashed #87a8e3;background:#f4f7fe;border-radius:16px;padding:15px;margin-bottom:12px}.ai-title{font-size:16px;font-weight:750;color:var(--blue)}.result-text{white-space:pre-wrap;font-size:15px;line-height:1.75}.empty{text-align:center;color:var(--sub);padding:34px 12px}.center{text-align:center}.right{text-align:right}
.stage{display:flex;justify-content:space-between;margin:14px 0}.stage-item{flex:1;text-align:center;color:#98a0af;font-size:12px}.stage-dot{display:block;width:14px;height:14px;border-radius:50%;background:#d7dbe3;margin:0 auto 5px}.stage-item.done{color:var(--blue)}.stage-item.done .stage-dot{background:var(--blue)}.stage-item.current{color:#b8650e;font-weight:650}.stage-item.current .stage-dot{background:var(--amber);box-shadow:0 0 0 4px #ffe6c7}.timeline{border-left:2px solid var(--line);margin-left:7px;padding-left:17px}.timeline-item{position:relative;margin-bottom:14px}.timeline-item:before{content:"";position:absolute;left:-23px;top:5px;width:9px;height:9px;border-radius:50%;background:var(--blue)}
.calendar-week{display:flex;justify-content:space-between;text-align:center;color:var(--sub)}.calendar-day{flex:1;padding:6px 0;border-radius:13px}.calendar-day.on{background:var(--blue);color:#fff}.calendar-num{display:block;font-size:19px;font-weight:700;color:var(--ink)}.calendar-day.on .calendar-num{color:#fff}.table{overflow:auto;background:#fff;border-radius:16px;margin-bottom:12px}.tr{display:grid;grid-template-columns:1.2fr .8fr .8fr .8fr;gap:6px;padding:11px 12px;border-bottom:1px solid var(--line);font-size:13px;min-width:360px}.tr.head{color:var(--sub)}
.paper{background:#fff;border-radius:18px;box-shadow:0 8px 28px rgba(25,42,77,.08);padding:16px;font-size:15px;line-height:1.7;margin-bottom:12px}.paper-cover{position:relative;overflow:hidden;background:linear-gradient(135deg,#18376f,#3b71ce);color:#fff;border-radius:14px;padding:22px 17px;margin-bottom:15px}.paper-cover:after{content:"";position:absolute;width:110px;height:110px;border:1px solid rgba(255,255,255,.18);border-radius:50%;right:-28px;top:-35px}.paper-title{font:700 21px "Songti SC","STSong",serif}.bring-row{display:grid;grid-template-columns:1fr auto;gap:8px}.project-picks{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:260px;overflow:auto;margin-bottom:10px}.project-pick{display:grid;text-align:left;border:1px solid var(--line);background:#fafbfc;border-radius:12px;padding:10px;font-weight:650}.project-pick small{display:block;color:var(--sub);font-weight:400;margin-top:3px}.project-pick.on{border-color:#789ce0;background:#edf3ff;color:var(--blue)}
.stepper{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:2px 0 14px}.stepper span{border-radius:99px;background:#e7eaf0;color:#8a92a0;padding:7px 5px;text-align:center;font-size:12px}.stepper span.on{background:#e7efff;color:var(--blue);font-weight:700}.purpose-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.purpose-card{display:grid;grid-template-columns:38px 1fr;text-align:left;column-gap:9px;border:1px solid var(--line);border-radius:15px;background:#fafbfc;padding:12px}.purpose-card>span{grid-row:1/3;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;color:var(--purple);background:#f0eafb}.purpose-card b{font-size:15px}.purpose-card small{font-size:12px;color:var(--sub)}.purpose-card.on{border-color:#947bd1;background:#f7f3ff}.purpose-card:last-child{grid-column:1/-1}
.range-head{display:flex;justify-content:space-between;align-items:center}.range-head b{font-size:19px;color:var(--blue)}.dual-range{position:relative;height:48px;margin:5px 0 7px}.dual-range input{position:absolute;left:0;top:11px;width:100%;accent-color:var(--blue);background:transparent}.result-head{display:flex;justify-content:space-between;align-items:end;margin:18px 2px 10px}.result-head b{font-size:17px}.result-head span{font-size:12px;color:var(--sub)}.match-card{display:grid;grid-template-columns:86px 1fr;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:18px;margin-bottom:12px;box-shadow:0 6px 18px rgba(33,46,75,.05)}.project-cover{display:flex;flex-direction:column;justify-content:space-between;padding:14px 11px;color:#fff;background:#60708a}.project-cover span{font-size:12px;opacity:.85}.project-cover b{font:700 28px "Songti SC",serif;writing-mode:vertical-rl;letter-spacing:.12em}.cover-blue{background:linear-gradient(165deg,#2d65c2,#18376f)}.cover-teal{background:linear-gradient(165deg,#28a891,#096757)}.cover-gold{background:linear-gradient(165deg,#d39a37,#8f5b15)}.cover-coral{background:linear-gradient(165deg,#e87961,#9d3c35)}.match-body{min-width:0;padding:14px}.fact-row{display:flex;gap:18px;margin:11px 0}.fact-row span{display:grid}.fact-row b{font-size:16px}.fact-row small{font-size:12px;color:var(--sub)}.project-line{display:flex;gap:7px;align-items:center;font-size:13px;color:#3f536f;margin:7px 0}.project-line .icon{width:18px;height:18px;color:var(--teal)}.intel-line{display:grid;gap:3px;background:#fff8ed;border-radius:10px;padding:9px 10px;font-size:13px;color:#6d4b1c}.intel-line b{color:#b66b19}.as-of{font-size:12px;color:#8b93a2;margin-top:8px}.compare-btn{width:100%;margin-top:10px}.compare-btn.on{background:#edf3ff}.compare-dock{position:sticky;bottom:10px;z-index:5;display:flex;justify-content:space-between;align-items:center;background:#172a4f;color:#fff;border-radius:16px;padding:10px 12px;margin:14px 0;box-shadow:0 8px 25px rgba(18,37,72,.25)}.compare-table{display:grid;grid-template-columns:82px repeat(3,minmax(110px,1fr));overflow:auto;font-size:13px}.compare-table>*{padding:9px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-style:normal}.compare-table span{color:var(--sub);background:#fafbfc}.compare-table b{color:var(--blue)}
.embed-note{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#e6f8f3,#f7fffc);border:1px solid #cbece3;border-radius:16px;padding:12px;margin-bottom:10px;color:var(--teal)}.embed-note>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#fff}.embed-note div{display:grid}.embed-note small{color:#607a75}.metro-frame{display:block;width:100%;height:calc(100dvh - 190px);min-height:590px;border:1px solid var(--line);border-radius:16px;background:#fff}.external-link{width:100%;margin-top:9px}
.role-bar{background:#242d3f;color:#fff;border-radius:12px;padding:10px 13px;display:flex;justify-content:space-between;margin-bottom:12px;font-size:13px}.photo{min-height:310px;border-radius:14px;background:linear-gradient(160deg,#9fb4cc,#5e7896 55%,#3d5068);position:relative;overflow:hidden;margin-bottom:12px;display:grid;place-items:center;color:#fff}.preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.preview-grid img,.share-image{width:100%;border-radius:10px}.toast{position:fixed;z-index:100;left:50%;bottom:100px;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#18233a;color:#fff;border-radius:12px;padding:11px 16px;transition:.2s;max-width:84%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
.login-screen{min-height:100dvh;padding:24px 18px;display:grid;place-items:center;background:radial-gradient(circle at 75% 15%,rgba(255,255,255,.17),transparent 25%),linear-gradient(155deg,#172f5d,#356bc3)}.login-card{width:min(100%,390px);background:#fff;border-radius:24px;padding:29px 23px;box-shadow:0 25px 70px rgba(0,0,0,.24)}.login-brand{color:var(--blue);font-weight:750;letter-spacing:.08em}.login-card h1{font:700 25px "Songti SC","STSong",serif;margin:8px 0 4px}.login-card p{color:var(--sub);margin:0 0 22px}.login-card .btn{width:100%;margin-top:5px}.login-note{margin-top:14px;color:var(--sub);font-size:13px}.error{min-height:20px;color:var(--red);font-size:13px;margin-top:8px}
@media(max-width:380px){.page{padding-left:12px;padding-right:12px}.topbar{margin-left:-12px;margin-right:-12px}.grid{gap:14px 3px}.grid-icon{width:44px;height:44px}.grid-item{font-size:12px}.purpose-grid{grid-template-columns:1fr}.purpose-card:last-child{grid-column:auto}.match-card{grid-template-columns:74px 1fr}.project-picks{grid-template-columns:1fr}.bring-row{grid-template-columns:1fr}.bring-row .btn{width:100%}}
@media(min-width:760px){body{background:#e6e9ef}.page,.tabbar,.bottom-actions{box-shadow:0 0 32px rgba(31,59,115,.08)}.fab{right:calc((100vw - 680px)/2)}}
@media(prefers-reduced-motion:no-preference){.card,.hero,.match-card{animation:rise .35s ease both}.card:nth-of-type(2){animation-delay:.05s}.card:nth-of-type(3){animation-delay:.1s}@keyframes rise{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}}
