:root{--ink:#1d1d1f;--muted:#6e6e73;--soft:#86868b;--line:#d2d2d7;--bg2:#f5f5f7;--red:#FF3131;--red2:#d42a2a;--ok:#1e8e3e;
--display:"League Spartan",system-ui,sans-serif;--text:"Albert Sans",system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0;font-family:var(--text);color:var(--ink);background:#fff;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit}
:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:4px}
.wrap{max-width:1180px;margin:0 auto;padding:0 clamp(1rem,3.5vw,2rem)}
h1,h2,h3{font-family:var(--display);margin:0;letter-spacing:-.02em;line-height:1.05;font-weight:700}
h1{font-size:clamp(2rem,4.5vw,3.2rem)}h2{font-size:clamp(1.4rem,2.6vw,1.9rem)}h3{font-size:1.15rem;font-weight:600;letter-spacing:-.01em}
.muted{color:var(--muted)}.small{font-size:13.5px}
/* top */
.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid rgba(0,0,0,.07)}
.row{display:flex;align-items:center;gap:1.25rem;min-height:58px}
.mark{display:flex;align-items:center;gap:.55rem;text-decoration:none;line-height:1}
.mark img{border-radius:7px}.mark .wm{display:flex;flex-direction:column}
.mark b{font-family:var(--display);font-weight:800;font-size:15.5px}.mark .wm span{font-size:7px;letter-spacing:.42em;color:var(--red);margin-top:3px}
.topnav{margin-left:auto;display:flex;gap:1.2rem;font-size:14px;align-items:center}
.topnav a,.topnav button{background:none;border:0;font:inherit;color:#333;text-decoration:none;cursor:pointer;padding:.3rem 0}
.topnav a:hover,.topnav button:hover{color:var(--red)}
.lang{background:none;border:0;font:inherit;font-size:13px;color:var(--muted);cursor:pointer}
@media (max-width:700px){.mark .wm{display:none}.topnav{gap:.9rem;font-size:13px}}
main{padding:clamp(1.75rem,4vw,3rem) 0 4rem}
/* forms */
label.f{display:block;font-size:13.5px;color:var(--muted);margin:0 0 .3rem}
input,textarea,select{font:inherit;font-size:15px;width:100%;padding:.65rem .8rem;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)}
textarea{min-height:96px;resize:vertical}
input:focus,textarea:focus,select:focus{outline:2px solid var(--red);outline-offset:0;border-color:transparent}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.full{grid-column:1/-1}
@media (max-width:700px){.grid2{grid-template-columns:1fr}}
.btn{font:inherit;font-size:14.5px;border:1px solid var(--ink);background:#fff;color:var(--ink);border-radius:999px;padding:.6rem 1.2rem;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:.4rem;white-space:nowrap}
.btn:hover{background:var(--ink);color:#fff}
.btn.dark{background:var(--ink);color:#fff}.btn.dark:hover{background:#000}
.btn.red{background:var(--red);border-color:var(--red);color:#fff}.btn.red:hover{background:var(--red2);border-color:var(--red2)}
.btn.ghost{border-color:var(--line)}.btn.ghost:hover{border-color:var(--ink)}
.btn.sm{font-size:13px;padding:.4rem .85rem}
.btn:disabled{opacity:.5;cursor:default}
.bar{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.err{color:var(--red2);font-size:14px;min-height:1.3em;margin-top:.5rem}
/* cards */
.panel{background:var(--bg2);border-radius:22px;padding:clamp(1.1rem,2.5vw,1.75rem)}
.panel+.panel,.sec+.sec{margin-top:1.25rem}
.sec{margin-top:2.5rem}.sec>h2{margin-bottom:1rem}
.head{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end;justify-content:space-between;margin-bottom:1.75rem}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:1rem}
.pcard{display:flex;gap:1rem;align-items:center;background:var(--bg2);border-radius:20px;padding:1.1rem 1.2rem;text-decoration:none;transition:transform .25s,background .25s}
.pcard:hover{transform:translateY(-2px);background:#ececf0}
.pcard h3{margin-bottom:.15rem}.pcard p{margin:0;font-size:13.5px;color:var(--muted)}
.empty{background:var(--bg2);border-radius:20px;padding:2rem;text-align:center;color:var(--muted)}
/* login */
.auth{max-width:420px;margin:clamp(2rem,8vh,5rem) auto 0;text-align:center}
.auth .logo{width:84px;height:84px;border-radius:18px;margin:0 auto 1.25rem;display:block}
.auth form{text-align:left;margin-top:1.75rem;display:grid;gap:1rem}
/* donut */
.donut{display:block}
.donut .dpct{font-family:var(--display);font-weight:700;font-size:38px;fill:var(--ink);letter-spacing:-1px}
.donut .dlbl{font-size:11px;fill:var(--muted);letter-spacing:.06em}
.donut .dseg{animation:grow 1.2s cubic-bezier(.2,.7,.2,1) both}
@keyframes grow{from{stroke-dasharray:0 1000}}
.mini .dpct{font-size:44px}
@media (prefers-reduced-motion:reduce){.donut .dseg{animation:none}}
.overview{display:grid;grid-template-columns:auto 1fr;gap:clamp(1.25rem,4vw,3rem);align-items:center}
@media (max-width:700px){.overview{grid-template-columns:1fr;justify-items:center}}
.legend{list-style:none;padding:0;margin:0;width:100%}
.legend li{display:grid;grid-template-columns:1fr auto;gap:.3rem 1rem;padding:.7rem 0;border-bottom:1px solid var(--line)}
.legend li:last-child{border-bottom:0}
.legend .pb{grid-column:1/-1;height:6px;background:#e3e3e8;border-radius:9px;overflow:hidden}
.legend .pb i{display:block;height:100%;background:var(--red);border-radius:9px;transition:width .8s cubic-bezier(.2,.7,.2,1)}
.legend b{font-weight:600}.legend span{font-size:13.5px;color:var(--muted)}
/* tasks */
.phase{background:#fff;border-radius:16px;padding:1rem 1.1rem;margin-top:.8rem}
.phase-h{display:grid;grid-template-columns:1fr 90px auto;gap:.6rem;align-items:center}
.phase-h .w{display:flex;align-items:center;gap:.3rem}.phase-h .w input{text-align:right}
.tasks{list-style:none;padding:0;margin:.6rem 0 0}
.tasks li{display:flex;gap:.6rem;align-items:center;padding:.35rem 0;border-top:1px solid #eee}
.tasks li:first-child{border-top:0}
.tasks input[type=checkbox]{width:20px;height:20px;accent-color:var(--red);flex:none;margin:0}
.tasks .tt{border:1px solid transparent;background:transparent;padding:.35rem .5rem;border-radius:8px}
.tasks .tt:hover{border-color:var(--line)}.tasks .done .tt{color:var(--soft);text-decoration:line-through}
.x{border:0;background:none;color:var(--soft);font-size:19px;line-height:1;cursor:pointer;padding:.3rem .5rem;border-radius:8px}.x:hover{color:var(--red);background:var(--bg2)}
.addrow{display:flex;gap:.5rem;margin-top:.6rem}
.warn{color:var(--red2);font-size:13.5px;margin-top:.6rem}
/* folders */
.folder{background:#fff;border-radius:16px;padding:1rem 1.1rem;margin-top:.8rem}
.folder-h{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between}
.switch{display:inline-flex;align-items:center;gap:.5rem;font-size:13.5px;color:var(--muted);cursor:pointer}
.switch input{appearance:none;width:40px;height:24px;border-radius:99px;background:#d2d2d7;position:relative;cursor:pointer;transition:background .2s;padding:0;border:0;margin:0;flex:none}
.switch input::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.switch input:checked{background:var(--red)}.switch input:checked::after{transform:translateX(16px)}
.files{list-style:none;padding:0;margin:.6rem 0 0}
.files li{display:flex;gap:.75rem;align-items:center;padding:.55rem 0;border-top:1px solid #eee;font-size:14.5px}
.files li .n{flex:1;min-width:0;overflow-wrap:anywhere}.files .meta{font-size:12.5px;color:var(--soft);white-space:nowrap}
.files li.old{opacity:.55}
.tag{font-size:11.5px;background:var(--bg2);border-radius:99px;padding:.1rem .5rem;color:var(--muted)}
.upl{margin-top:.7rem;display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.upl input[type=file]{width:auto;font-size:13.5px;padding:.4rem;border-style:dashed}
/* tables */
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:left;padding:.55rem .5rem;border-bottom:1px solid var(--line);vertical-align:top}
th{font-weight:600;color:var(--muted);font-size:12.5px}
.tablewrap{overflow-x:auto}
/* client view */
.hero-c{display:grid;grid-template-columns:auto 1fr;gap:clamp(1.5rem,5vw,4rem);align-items:center;background:var(--bg2);border-radius:28px;padding:clamp(1.5rem,4vw,3rem)}
.hero-c .status{background:#fff;border-radius:18px;padding:1.1rem 1.25rem;margin-top:1.25rem}
.hero-c .status b{display:block;font-size:13px;color:var(--red);margin-bottom:.25rem;font-weight:600}
@media (max-width:760px){.hero-c{grid-template-columns:1fr;justify-items:center;text-align:center}}
.ctasks{list-style:none;padding:0;margin:.5rem 0 0}
.ctasks li{display:flex;gap:.65rem;align-items:center;padding:.45rem 0;font-size:15px}
.ck{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;flex:none}
.ck.on{background:var(--red);border-color:var(--red)}
.ck.on::after{content:"";width:6px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px)}
.cphase{background:var(--bg2);border-radius:20px;padding:1.2rem 1.3rem}
.cphases{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}
.cphase .top2{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}
.cphase .pb{height:6px;background:#e3e3e8;border-radius:9px;overflow:hidden;margin:.6rem 0 .3rem}.cphase .pb i{display:block;height:100%;background:var(--red)}
/* toast & confirm */
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:var(--ink);color:#fff;padding:.7rem 1.2rem;border-radius:999px;font-size:14px;opacity:0;pointer-events:none;transition:all .3s;z-index:50}
.toast.on{opacity:1;transform:translate(-50%,0)}
.toast.bad{background:var(--red2)}
.danger{border:1px solid #f3c2c2;background:#fff6f6}
.loading{color:var(--muted);padding:3rem 0;text-align:center}
