:root{--paper:#f6f7f0;--ink:#24483d;--green:#245440;--muted:#82907c;--line:#dee5d7;--white:#fffefa;--soft:#eaf0df;--warm:#ab763b;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:14px}*{box-sizing:border-box}body{margin:0;padding:env(safe-area-inset-top) 0 calc(86px + env(safe-area-inset-bottom));line-height:1.65}button,input,select{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h2{font-size:17px}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #abc388;outline-offset:3px}input,select{min-height:44px;max-width:100%;border:1px solid var(--line);border-radius:9px;background:var(--white);padding:10px 13px}input:focus{outline:2px solid #9bb58a;outline-offset:1px}input{min-width:0;font-size:16px}main,.topbar{max-width:700px;margin:auto;padding-inline:22px}.topbar{height:94px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:700;letter-spacing:2px}.brand img{width:42px;height:49px;object-fit:contain}.brand small{display:block;font-size:9px;letter-spacing:2px;font-weight:400;color:var(--muted);margin-top:-3px}.mobile-mark{font-size:10px;color:#94a087;letter-spacing:1px}.eyebrow{font-size:9px;letter-spacing:1.8px;color:#81916a;display:block}.login-hero{position:relative;padding:30px 0 35px;min-height:245px}.login-hero h1{font-size:33px;line-height:1.5;letter-spacing:-1px;margin-top:15px;font-weight:600}.login-hero p{font-size:12px;color:var(--muted);max-width:260px;margin-top:15px;padding-right:40px}.login-cat{position:absolute;width:82px;height:115px;object-fit:contain;right:0;bottom:35px;filter:drop-shadow(0 12px 15px #24483d17)}.panel{background:var(--white);border:1px solid var(--line);border-radius:14px}.login-form{padding:25px}.login-form>p{color:var(--muted);font-size:12px;margin-top:5px}.login-form>label:not(.consent){display:block;margin-top:20px;font-size:12px}.login-form input:not([type=checkbox]){display:block;width:100%;margin-top:7px}.consent{display:flex;align-items:flex-start;gap:9px;margin-block:21px;font-size:10px;color:var(--muted)}.consent input{min-height:18px;width:18px;flex-shrink:0;margin:2px 0;accent-color:var(--green)}.button{border:1px solid var(--line);border-radius:9px;padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;min-height:44px;background:var(--white)}.button.primary{background:var(--green);border-color:var(--green);color:#fbfdef}.button.quiet{background:#f1f5e9;color:#486541}.button.full{width:100%}.text-button{border:0;background:none;padding:10px 0;color:#5e7952;font-size:12px;min-height:40px}.login-note{text-align:center;font-size:10px;color:var(--muted);margin:20px 0}.error{color:#a45240!important}.account-line{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:-6px;margin-bottom:12px}.watch-card{position:relative;display:flex;align-items:center;justify-content:space-between;background:var(--soft);border:1px solid #dce5ce;border-radius:14px;padding:26px 23px;min-height:184px;overflow:hidden}.watch-card h1{font-size:18px;font-weight:400;margin:11px 0 7px;line-height:1.3}.watch-card strong{font-size:47px;font-family:Georgia,serif;font-weight:400;letter-spacing:-2px;margin-right:5px}.watch-card h1>span{display:block;font-size:20px;margin-top:5px;font-weight:500}.watch-card p{font-size:10px;color:#879479;max-width:210px;margin-top:9px}.watch-card img{width:86px;height:123px;object-fit:contain;margin-left:10px;filter:drop-shadow(0 12px 15px #24483d17)}.sync-line{display:flex;gap:15px;align-items:center;justify-content:space-between;margin:8px 1px 18px;font-size:10px;color:var(--muted)}.sync-line>span{flex:1}.sync-line button{white-space:nowrap}.lead-panel{padding:17px 18px}.lead-panel>span{font-size:11px;color:#7c8d6c}.lead-controls{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:9px}.lead-controls label{font-size:10px;color:#8b977f}.lead-controls select{width:100%;display:block;margin-top:5px;font-size:13px}.list-heading{display:flex;align-items:center;justify-content:space-between;margin:26px 0 13px}.list-heading select{min-height:36px;padding:5px 10px;font-size:11px;border:0;background:#edf2e4}.list-heading h2{font-size:19px;font-weight:500}input[type=search]{width:100%;font-size:12px;min-height:46px;background:#fffefb}.type-chips{display:flex;gap:7px;overflow:auto;scrollbar-width:none;margin:15px 0 8px}.type-chips button{white-space:nowrap;border:1px solid var(--line);border-radius:20px;background:transparent;padding:8px 14px;font-size:11px;color:#8b987e}.type-chips button.selected{background:#e4edd8;color:#49663c;border-color:#ceddba}.list-count{font-size:10px;color:#98a08e;padding:3px 1px 12px}.contract-list{display:grid;gap:12px}.contract-card{display:block;text-align:left;width:100%;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:18px 19px;box-shadow:0 3px 10px #24483d03}.card-top{display:flex;align-items:center;justify-content:space-between;gap:9px}.card-top h3{font-size:16px;font-weight:500;overflow-wrap:anywhere}.tag{font-size:9px;background:#eff2e9;color:#7e8e71;padding:4px 8px;border-radius:5px;white-space:nowrap}.tag.warm{background:#fcf0de;color:#a6793d}.tag.red{background:#f8e9e3;color:#ae6950}.card-meta{font-size:11px;color:#84917c;margin-top:7px;overflow-wrap:anywhere}.card-footer{display:flex;align-items:flex-end;justify-content:space-between;margin-top:18px;padding-top:12px;border-top:1px solid #edf0e7;font-size:10px;color:#9aa38f}.card-footer b{display:block;font-size:13px;font-weight:400;color:#647e54;line-height:1.8}.card-footer strong{font-size:20px;font-weight:400;color:var(--warm);font-family:Georgia,serif}.card-footer strong small{font:10px system-ui;margin-left:4px}.empty{text-align:center;padding:30px 10px;color:var(--muted)}.empty img{width:60px;height:80px;object-fit:contain;opacity:.8;margin:0 auto 15px;display:block}.empty h3{font-size:14px;font-weight:500}.empty p{font-size:11px;margin-top:8px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#fffefaef;border-top:1px solid #dce4d4;display:flex;justify-content:center;gap:5px;padding:9px 15px calc(9px + env(safe-area-inset-bottom));z-index:5;backdrop-filter:blur(15px)}.bottom-nav button{border:0;background:none;color:#a0aa94;min-width:95px;width:25%;max-width:160px;font-size:10px;padding:2px 5px}.bottom-nav button span{display:block;font-size:23px;line-height:1.4}.bottom-nav button.active{color:var(--green)}.page-intro{padding:16px 0 27px}.page-intro h1{font-size:31px;font-weight:500;line-height:1.5;margin-top:13px}.settings-group{padding:23px;margin-bottom:16px}.settings-group h2{font-weight:500}.settings-group p{font-size:11px;color:var(--muted);margin-top:11px;line-height:1.9}.settings-group .button{margin-top:17px}.settings-group details{margin-top:18px;font-size:11px;color:#6b805b}.version{text-align:center;font-size:10px;color:#9ca590;margin:23px 0}dialog{position:fixed;inset:0;border:0;background:var(--paper);width:min(100%,700px);height:100dvh;max-width:100%;max-height:100dvh;margin:0 auto;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);color:var(--ink);overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#193d3477}.dialog-header{height:60px;position:sticky;top:0;background:#f6f7f0f5;backdrop-filter:blur(15px);border-bottom:1px solid var(--line);padding-inline:22px;display:flex;align-items:center;justify-content:space-between;gap:10px;z-index:2;font-size:12px;color:#8a987b}#detail-content{padding:22px}.detail-intro h1{font-size:25px;font-weight:500;line-height:1.5;margin-top:9px;overflow-wrap:anywhere}.detail-intro>p{color:var(--muted);font-size:11px;margin-top:8px}.original-card{padding:20px;background:#eaf0df;border:1px solid #d8e3c7;border-radius:12px;margin-top:20px}.original-card h2{font-size:16px}.original-card>p{font-size:11px;color:#7b8b6b;margin-top:7px}.original-card>.button{margin-top:14px;width:100%}.file-list{display:grid;gap:8px;margin-top:13px}.file-list a{background:#fffefb;border:1px solid #d8e1cf;padding:12px;border-radius:8px;font-size:12px;overflow-wrap:anywhere}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.detail-grid dt{font-size:10px;color:#97a087;margin-bottom:5px}.detail-grid dd{font-size:12px;overflow-wrap:anywhere;margin:0}.detail-group{margin-top:25px;border-top:1px solid var(--line);padding-top:22px}.detail-group>p{font-size:11px;color:var(--muted);margin:8px 0 16px}.fee-period{background:var(--white);border:1px solid var(--line);border-radius:10px;padding:18px;margin:13px 0}.fee-period h3{font-size:12px;font-weight:500;margin-bottom:14px;color:#879478}.fee-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.fee-grid dt{font-size:10px;color:#8f9d82}.fee-grid dd{font-family:Georgia,serif;font-size:18px;margin:5px 0 0;overflow-wrap:anywhere}.fee-grid dd small{font:9px system-ui;color:#98a68b;margin-left:4px}.fee-period h4{font-size:12px;font-weight:500;margin:22px 0 12px;border-top:1px solid var(--line);padding-top:17px}.subtle{font-size:10px;color:#96a28a}.renewal-note{padding:14px;background:#eaf0df;border-left:3px solid #a3bc84;font-size:11px;color:#778a69;margin-top:18px;border-radius:0 8px 8px 0}.actions{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 24px}.actions .danger{color:#a7644f;background:#fcf0e7}.raw-fields{display:grid;gap:11px;margin-top:12px;font-size:11px}.raw-fields dt{color:#8c9b7d;font-size:10px}.raw-fields dd{margin:2px 0 0;overflow-wrap:anywhere}.raw-details{margin-top:17px;font-size:11px;color:#738568}#file-dialog{background:#fff}#file-frame{width:100%;height:calc(100% - 60px);border:0;display:block}#toast{position:fixed;bottom:calc(85px + env(safe-area-inset-bottom));left:20px;right:20px;max-width:620px;margin:auto;background:#234e3f;color:#f8fbed;border-radius:11px;padding:14px 18px;font-size:12px;z-index:100;box-shadow:0 8px 30px #193d3430}#toast.error{background:#975545}[hidden]{display:none!important}@media(min-width:760px){body{padding-bottom:110px}.login-hero{padding-top:48px;min-height:295px}.login-hero h1{font-size:42px}.login-cat{width:150px;height:195px;bottom:30px;right:40px}.login-hero p{max-width:390px;font-size:14px}.login-form{padding:30px}.watch-card{min-height:210px;padding:30px}.watch-card img{width:120px;height:150px}.watch-card h1>span{display:inline;margin-left:15px}.watch-card p{max-width:none}.contract-list{grid-template-columns:1fr 1fr}.bottom-nav{max-width:700px;margin:auto;border:1px solid var(--line);border-bottom:0;border-radius:15px 15px 0 0}dialog{border-inline:1px solid var(--line)}}@media(max-width:360px){main,.topbar{padding-inline:16px}.watch-card{padding:20px 17px}.watch-card img{width:65px}.watch-card strong{font-size:42px}.lead-panel{padding:15px}.lead-controls{gap:10px}.type-chips button{padding:8px 10px}.mobile-mark{font-size:9px}}@media(prefers-reduced-motion:no-preference){.contract-card{animation:arrive .25s ease both}.contract-card:active{transform:scale(.99)}@keyframes arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}

@media(max-width:759px){.topbar{height:80px}.account-line{margin-bottom:8px}.account-line .text-button{min-height:32px}.watch-card{min-height:156px;padding:20px}.watch-card img{height:100px;width:75px}.watch-card h1>span{font-size:18px}.sync-line{margin-bottom:12px}.lead-panel{padding:14px 16px}.lead-controls{margin-top:5px}.list-heading{margin-top:20px}.list-count{padding-bottom:8px}input,select{font-size:16px}}

.file-hint{height:42px;padding:10px 20px;font-size:10px;color:#87967a;background:#f4f6ee;margin:0}#file-frame{height:calc(100% - 102px)}

.withdrawal-card {
  margin-top: 18px;
  padding: 17px;
  background: #f8f2e6;
  border: 1px solid #e4d8bd;
  border-radius: 12px;
}
.withdrawal-card.marked { background: #edf2e7; border-color: #d4e0cb; }
.withdrawal-card h2 { font-size: 15px; }
.withdrawal-card p { margin-top: 7px; color: #586a54; font-size: 12px; }
.withdrawal-card .actions { margin: 12px 0 0; }
.withdrawal-card .saved-note { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.withdrawal-card .marked-time { font-size: 11px; }
.contract-card .note-preview {
  margin-top: 9px;
  font-size: 12px;
  color: #586a54;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#withdraw-dialog, #custom-lead-dialog {
  inset: 0;
  margin: auto;
  width: min(480px, calc(100% - 32px));
  height: fit-content;
  max-height: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 21px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 45px #193d3433;
}
#withdraw-dialog::backdrop, #custom-lead-dialog::backdrop { background: #193d3466; }
#withdraw-title, #custom-lead-title { font-size: 20px; }
#custom-lead-days { display: block; width: 100%; margin: 6px 0 10px; }
#custom-lead-hint, #custom-lead-error { font-size: 12px; }
#custom-lead-hint { color: #586a54; }
.withdraw-contract, .withdraw-hint { color: #586a54; font-size: 12px; overflow-wrap: anywhere; }
.withdraw-contract { margin: 6px 0 17px; }
#withdraw-form label { display: block; margin-bottom: 6px; }
#withdraw-type { width: 100%; margin-bottom: 12px; }
#withdraw-form label small { color: #586a54; margin-left: 6px; }
#withdraw-note {
  display: block;
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  border: 1px solid #c9d5c0;
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  resize: vertical;
}
#withdraw-note:focus-visible { outline: 2px solid #769969; outline-offset: 1px; }
.withdraw-hint, #withdraw-error { margin-top: 10px; }
.withdraw-buttons { display: flex; gap: 9px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
