:root {
  color-scheme: light; --ink:#17243a; --muted:#53627b; --blue:#244fce;
  --blue-tint:#e8eeff; --line:#e4e9f2; --canvas:#f3f5fa; --white:#fff;
  font-family: "PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;
  color:var(--ink); background:var(--canvas);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-width:280px}
button,input,select{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,.switch input:focus-visible+span{outline:3px solid #637ffc;outline-offset:3px}
h1,h2,h3,p,dl,dd,fieldset{margin:0}
.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.app{max-width:1000px;margin:auto;padding:20px 22px 120px}
.top,.brand{display:flex;align-items:center}
.top{justify-content:space-between;gap:10px;margin-bottom:22px}
.brand{gap:12px}
.mark{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#182b64;color:#fff;font-size:23px;font-weight:800}
.eyebrow,.currency{font-size:13px;color:var(--muted)}
h1{font-size:26px;line-height:1.18;letter-spacing:.015em}
.currency{border:1px solid #d9e1f0;padding:6px 9px;border-radius:6px;white-space:nowrap}
.switch{border:0;background:#e8edf6;padding:4px;border-radius:12px;display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:18px;max-width:390px}
.switch label{position:relative;cursor:pointer;text-align:center}
.switch input{position:absolute;opacity:0}
.switch label>span{display:block;padding:9px 4px;font-size:17px;font-weight:760;border-radius:9px;color:var(--muted)}
.switch small{font-size:14px;font-weight:500}
.switch input:checked+span{background:var(--white);color:#1b3fa6;box-shadow:0 1px 4px #1a36641a}
.hero{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(116deg,#132656 12%,#203d99 78%,#284ac1);color:white;border-radius:21px;padding:20px 21px 17px;margin-bottom:17px;display:grid;gap:17px}
.rings{position:absolute;z-index:-1;right:-54px;top:-108px;width:295px;height:295px;border:1px solid #93a8ff80;border-radius:50%;box-shadow:0 0 0 23px #9aafff1a,0 0 0 47px #9aafff13,0 0 0 71px #9aafff0d}
.rings:after{content:"";position:absolute;left:19px;bottom:50px;width:10px;height:10px;background:#c4f598;border-radius:50%;box-shadow:0 0 16px #c4f59870}
.hero-main p{color:#e0e8ff;font-size:14px}
.total{font-variant-numeric:tabular-nums;display:flex;align-items:baseline;gap:5px;margin:4px 0}
.total span{color:#cffaac;font-size:24px;font-weight:650}
.total strong{font-size:clamp(34px,10vw,51px);font-weight:780;line-height:1.08;overflow-wrap:anywhere}
.hero-detail{border-top:1px solid #aabbff65;padding-top:13px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hero-detail div{display:grid;gap:3px}
.hero-detail span{font-size:14px;color:#dbe5ff}
.hero-detail strong{font-size:18px}
.quote-grid{display:grid;gap:14px}
.card{border:1px solid var(--line);border-radius:17px;background:var(--white);min-width:0}
.section-head{padding:16px 16px 10px;display:flex;align-items:center;justify-content:space-between;gap:7px}
.section-head h2{font-size:19px}
.section-head>span{font-size:13px;color:#3b5486;background:#edf2fb;border-radius:6px;padding:4px 8px}
.field{min-height:56px;margin:0 16px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);font-size:15px}
.field>span:first-child{flex:none}
.input-wrap{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
.input-wrap small{font-size:13px;flex:none;color:var(--muted)}
.field input,.field select{color:#2148af;background:transparent;border:0;text-align:right;padding:8px 1px;min-height:40px;min-width:0}
.field input{width:min(33vw,154px);appearance:textfield}
.field input::-webkit-inner-spin-button,.field input::-webkit-outer-spin-button{appearance:none;margin:0}
.field input::placeholder{color:#64718b;opacity:1}
.field select{appearance:none;padding-right:21px;max-width:58%;background:linear-gradient(45deg,transparent 50%,#4064bc 50%) calc(100% - 8px) 52%/5px 5px no-repeat,linear-gradient(135deg,#4064bc 50%,transparent 50%) calc(100% - 3px) 52%/5px 5px no-repeat}
.primary{margin:12px 16px 16px;width:calc(100% - 32px);min-height:50px;border:0;border-radius:11px;background:var(--blue);color:white;font-weight:750;font-size:17px}
.primary:hover{background:#1b43b7}
.form-error{color:#a31c35;padding:8px 16px 0;font-size:14px}
.details{padding:0 16px 14px}
.details>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--line);font-size:15px}
.details dd{font-weight:720;text-align:right;overflow-wrap:anywhere}
.details .detail-total{color:#173ba6}
.details small{display:block;color:var(--muted);font-size:13px;margin-top:3px}
.footnote,.empty{color:var(--muted);padding:0 16px 15px;font-size:14px;line-height:1.6}
.page-intro{padding:6px 0 14px}
.page-intro h2{font-size:27px;margin-bottom:6px}
.page-intro p,.notice{font-size:15px;line-height:1.55;color:var(--muted)}
.notice{margin-bottom:13px}
.case-list{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.case-card{min-width:0;background:var(--white);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.case-caption{padding:11px 11px 7px}
.case-caption h3{font-size:16px}
.case-caption p{font-size:13px;color:var(--muted);min-height:38px;margin-top:3px;line-height:1.35}
.image-button{display:block;border:0;background:#eff2f8;width:100%;height:158px;padding:6px}
.image-button img{width:100%;height:100%;object-fit:contain;display:block}
.case-actions{display:flex;flex-wrap:wrap;gap:4px;padding:6px 8px}
.secondary{padding:7px 10px;min-height:38px;border:0;border-radius:7px;background:#e9efff;color:#203f9c;font-weight:680;font-size:14px}
.case-actions .secondary{flex:1;padding:4px}
.bottom{position:fixed;z-index:3;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,1000px);background:#fffffff5;backdrop-filter:blur(14px);border-top:1px solid #dce4f2;display:grid;grid-template-columns:repeat(2,1fr);padding:5px 10px max(5px,env(safe-area-inset-bottom))}
.bottom button{border:0;border-radius:8px;background:transparent;color:#53617a;padding:7px 0 5px;font-size:13px;display:grid;justify-items:center;gap:5px;min-height:54px}
.bottom button[aria-current=page]{color:#2149bb;background:#edf2ff;font-weight:750}
.nav-icon{display:block;width:18px;height:18px;border:1.7px solid currentColor;border-radius:4px;position:relative}
.calculator:before{content:"";position:absolute;top:4px;left:3px;right:3px;border-top:2px solid currentColor}
.calculator:after{content:"";position:absolute;top:8px;left:3px;width:2px;height:2px;background:currentColor;box-shadow:5px 0 currentColor,0 4px currentColor,5px 4px currentColor}
.photo:before{content:"";position:absolute;bottom:2px;left:4px;width:7px;height:7px;transform:rotate(45deg);border-left:1.5px solid currentColor;border-top:1.5px solid currentColor}
.photo:after{content:"";position:absolute;top:2px;right:2px;width:3px;height:3px;background:currentColor;border-radius:50%}
.ledger:before{content:"";position:absolute;left:4px;right:3px;top:4px;border-top:1.5px solid currentColor;box-shadow:0 4px currentColor,0 8px currentColor}
dialog{width:min(95vw,950px);max-height:92vh;padding:12px;border:0;border-radius:14px;box-shadow:0 15px 70px #111d4770;color:var(--ink)}
dialog::backdrop{background:#111b32c9}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}
.dialog-head h2{font-size:20px}
.dialog-body{max-height:69vh;overflow:auto;background:#eef1f7}
.dialog-body img{display:block;max-width:100%;height:auto;margin:auto}
#full-image{color:#1b43ab;display:inline-block;margin:10px 4px 2px;padding:6px}
@media(min-width:720px){
  .app{padding-top:34px}
  .hero{grid-template-columns:1.4fr 1fr;align-items:center;padding:24px 26px}
  .hero-detail{border-top:0;border-left:1px solid #aabbff65;padding:8px 0 8px 23px;max-width:350px}
  .quote-grid{grid-template-columns:1.12fr 1fr;align-items:start}
  .case-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .image-button{height:229px}
}
@media(max-width:380px){.app{padding-inline:13px}.field{margin-inline:13px}.switch{margin-bottom:13px}.case-list{gap:8px}.hero{padding-inline:15px}}
.toolbar{display:flex;align-items:flex-start;gap:10px}
.toolbar .switch{flex:1}
.chart-shortcut{min-height:44px;padding-inline:16px}
.case-tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.case-tabs button{padding:9px 14px;background:white;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:15px;font-weight:680}
.case-tabs button[aria-pressed=true]{background:#e8eeff;border-color:#adbef4;color:#1b43ab}
.bar-list{padding:0 16px 15px}
.bar-row{margin-top:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.bar-row:last-child{border-bottom:0}
.bar-row small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.bar-label{display:flex;justify-content:space-between;gap:12px;font-size:15px;line-height:1.5}
.bar-label strong:last-child{white-space:nowrap}
.bar-row progress{appearance:none;border:0;border-radius:6px;width:100%;height:10px;background:#edf1f8}
.bar-row progress::-webkit-progress-bar{background:#edf1f8;border-radius:6px}
.bar-row progress::-webkit-progress-value{background:#7896ef;border-radius:6px}
.bar-row progress::-moz-progress-bar{background:#7896ef;border-radius:6px}
.own-bar progress::-webkit-progress-value{background:#244fce}
.own-bar progress::-moz-progress-bar{background:#244fce}
.own-bar .bar-label{color:#2149bb}
.table-scroll{overflow:auto;max-width:100%;padding:0 0 10px}
.catalog-table{border-collapse:collapse;font-size:14px;min-width:100%;text-align:left}
.catalog-table th,.catalog-table td{border-bottom:1px solid var(--line);padding:11px 12px;text-align:left;vertical-align:top;min-width:120px;line-height:1.55}
.catalog-table th{background:#edf2fb;color:#233e73;white-space:nowrap}
.catalog-table td:nth-child(n+4){min-width:135px;max-width:240px;white-space:pre-wrap;overflow-wrap:anywhere}
.catalog-table td:last-child .secondary{margin:0 0 4px 4px}
.manager{margin-top:14px}
.manager summary{padding:15px 16px;font-weight:750;font-size:18px;cursor:pointer}
.admin-actions{display:flex;flex-wrap:wrap;gap:9px;padding:0 16px 12px}
#admin-status{padding-inline:16px}
#plan-dialog{max-width:700px}
.plan-fields{max-height:62vh;overflow:auto;display:grid;gap:9px;padding:4px}
.plan-field{display:grid;gap:3px;font-size:15px}
.plan-field input,.plan-field select,.plan-field textarea{width:100%;border:1px solid #cbd6ed;border-radius:8px;padding:8px;color:var(--ink);background:white}
.plan-total{font-weight:700;color:var(--blue)}
.screenshot-empty{padding-top:20px}
.danger{color:#982d40}
button:disabled{opacity:.55;cursor:default}
@media(max-width:719px){
  #case-table{padding:0 12px 12px}
  #case-table .catalog-table,#case-table tbody{display:block}
  #case-table thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  #case-table tbody tr{display:block;margin-bottom:9px;padding:8px 11px;border:1px solid var(--line);border-radius:11px;background:#f8faff}
  #case-table .catalog-table td{display:grid;grid-template-columns:106px 1fr;gap:8px;min-width:0;max-width:none;padding:7px 0;white-space:pre-line;overflow-wrap:anywhere}
  #case-table .catalog-table td::before{content:attr(data-label);color:var(--muted)}
  #case-table .catalog-table td:nth-child(-n+2){display:block;border:0;padding:2px 0}
  #case-table .catalog-table td:nth-child(-n+2)::before{display:none}
  #case-table .catalog-table td:first-child{font-weight:750;color:var(--blue)}
  #case-table .catalog-table td:last-child{border:0;font-weight:750}
}
.staff-entry{text-align:center;margin:22px 0 0;font-size:13px}
.staff-entry a{color:#7b879d;text-decoration:none;border-bottom:1px solid #d7dfec;padding-bottom:2px}
.staff-entry a:hover{color:#2149bb;border-color:#9fb2df}
