:root{--bg:#f3f5f8;--ink:#182945;--sub:#778397;--blue:#2563db;--line:#e1e7ef;--paper:#fff;--pale:#eaf1fc;--green:#167b55;--danger:#b23843}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.shell{max-width:850px;padding:0 18px 100px;margin:0 auto}.topbar{height:83px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px}.brand .logo{width:43px;height:43px;border-radius:14px;background:#2563db;color:#fff;display:grid;place-items:center;font-weight:900;font-size:24px}.brand strong{font-size:19px;letter-spacing:2px}.brand small{display:block;color:var(--sub);font-size:11px;margin-top:2px}.userchip{font-size:12px;color:var(--sub);max-width:38%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.welcome{border-radius:25px;background:linear-gradient(130deg,#182945,#1d3e70 80%,#2b62ac);padding:28px 26px;color:white;min-height:180px;position:relative;overflow:hidden;display:flex;justify-content:space-between;gap:10px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:800;color:#7fb0ff}.welcome h1{font-size:35px;letter-spacing:-1px;margin:10px 0}.welcome h1 span{color:#64b5ff}.welcome p{font-size:13px;color:#cddcee;margin:0}.welcome-symbol{font-size:100px;opacity:.18;transform:rotate(-15deg);line-height:1}
.panel-line{display:flex;justify-content:space-between;gap:10px;align-items:end;margin:23px 0 18px}.panel-line .field{min-width:0;flex:1;max-width:400px}.primary{border:0;border-radius:13px;background:var(--blue);color:#fff;font-weight:750;padding:14px 18px;min-height:48px}.primary:disabled{opacity:.55;cursor:not-allowed}.primary.full{width:100%}.tabs{display:flex;gap:6px;overflow:auto;padding:0 0 12px;margin-bottom:10px}.tabs button{border:1px solid var(--line);border-radius:10px;padding:10px 13px;background:var(--paper);font-size:12px;color:#596a83;white-space:nowrap;font-weight:650}.tabs button.active{background:var(--pale);border-color:#b8d1fa;color:#174da4}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:20px 0 15px}h2{font-size:21px;letter-spacing:-.3px;margin:0}h3{font-size:16px;margin-top:24px}.muted{color:var(--sub);font-size:12px}.hint{font-size:13px;line-height:1.55;color:var(--sub);margin:6px 0 15px}.hint code{color:#1e51a3}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:15px}.stat{background:#fff;border:1px solid var(--line);border-radius:17px;padding:15px;display:flex;flex-direction:column;gap:8px}.stat small{font-size:11px;color:var(--sub)}.stat strong{font-size:25px}.stack{display:flex;flex-direction:column;gap:10px}.item{background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:16px}.item.disabled{opacity:.6}.item-title{font-size:15px;font-weight:780;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4}.item-line{display:flex;justify-content:space-between;gap:12px;align-items:start}.item-meta{margin:9px 0;color:var(--sub);font-size:12px;line-height:1.5}.tags{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0}.tag{background:#f0f3f8;color:#58708f;border-radius:8px;font-size:11px;padding:5px 8px}.tag.green{background:#e7f6ee;color:#087346}.tag.amber{background:#fff3df;color:#a16b16}.actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid #eff2f6}.secondary,.danger,.positive{border:1px solid var(--line);border-radius:10px;padding:9px 11px;background:#fff;color:#315b93;font-weight:700;font-size:12px}.danger{color:var(--danger)}.positive{color:var(--green)}.empty{padding:30px 18px;border:1px dashed #cbd5e4;background:#fff;border-radius:17px;color:var(--sub);text-align:center;font-size:13px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:740;color:#56677f}.field select,.field input,.field textarea{background:#fff;border:1px solid #dce4f0;padding:12px 13px;border-radius:12px;color:var(--ink);font-size:14px;font-weight:500;min-width:0;width:100%;min-height:46px;outline:none}.field select:focus,.field input:focus,.field textarea:focus{border-color:#7eaaf3;box-shadow:0 0 0 3px #2563db12}.field textarea{resize:vertical;min-height:85px}.cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:700px;z-index:15;max-height:93dvh;overflow-y:auto;background:#f8faff;padding:12px 20px calc(20px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;box-shadow:0 -10px 50px #0923403b}.backdrop{position:fixed;inset:0;background:#09172d99;z-index:14}.drag{background:#c8d0dd;height:5px;width:42px;border-radius:20px;margin:0 auto 18px}.modalhead{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:19px}.modalhead h2{font-size:22px;margin-top:5px}.iconbutton{border:0;background:#e8edf5;border-radius:10px;padding:11px 13px;color:#57657d}.form{display:flex;flex-direction:column;gap:16px}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.chips button{border-radius:10px;border:1px solid #d3deec;background:#fff;color:#536983;font-size:12px;font-weight:730;padding:10px 11px}.chips button.selected{background:#1d5bc6;border-color:#1d5bc6;color:#fff}.micro{font-size:11px;color:var(--sub);line-height:1.5;margin:5px 0 0}.switchrow{display:flex;align-items:center;gap:12px;background:#fff;padding:13px;border:1px solid var(--line);border-radius:13px}.switchrow input{width:20px;height:20px}.switchrow strong{display:block;font-size:13px}.switchrow small{display:block;color:var(--sub);font-size:11px;margin-top:5px}.peoplelist{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.person{display:flex;gap:7px;align-items:center;border:1px solid var(--line);background:#fff;border-radius:11px;padding:10px;font-size:12px}.person input{width:16px;height:16px}.toast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,15px);opacity:0;z-index:25;background:#1c304d;color:white;border-radius:12px;max-width:92%;min-width:180px;text-align:center;padding:12px 16px;pointer-events:none;transition:.2s;font-size:13px}.toast.show{opacity:1;transform:translate(-50%,0)}.error{border-radius:18px;padding:30px;background:#fff;text-align:center;margin-top:35px}.error p{color:var(--sub);font-size:14px;line-height:1.5}
@media(max-width:520px){.shell{padding:0 12px 80px}.welcome{padding:24px 20px;min-height:155px}.welcome h1{font-size:30px}.welcome-symbol{font-size:65px}.stat{padding:12px}.stat strong{font-size:22px}.tabs button{padding:10px}.modal{padding:12px 14px calc(18px + env(safe-area-inset-bottom))}.cols{grid-template-columns:1fr}.peoplelist{grid-template-columns:1fr}}
