
:root{
  --navy:#0b1f3a;
  --navy2:#102a4c;
  --blue:#1677ff;
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#172033;
  --muted:#6b768a;
  --line:#e5eaf2;
  --green:#1f9d66;
  --amber:#d78a00;
  --red:#d83a52;
  --radius:16px;
  --shadow:0 8px 24px rgba(14,30,55,.08);
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.shell{min-height:100dvh;padding-bottom:92px}
.topbar{
  position:sticky;top:0;z-index:20;
  background:linear-gradient(180deg,var(--navy),var(--navy2));
  color:#fff;padding:calc(12px + env(safe-area-inset-top)) 16px 14px;
  box-shadow:0 4px 16px rgba(5,20,45,.18)
}
.toprow{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{font-weight:800;letter-spacing:.2px}
.work-pill{margin-top:8px;display:flex;align-items:center;gap:8px;font-size:13px;color:#dce8ff}
.avatar{width:38px;height:38px;border-radius:50%;background:#fff2;display:grid;place-items:center;font-weight:700}
.main{padding:16px;max-width:760px;margin:0 auto}
.hero{
  background:linear-gradient(145deg,#0f3f78,#1677ff);
  color:white;border-radius:22px;padding:18px;box-shadow:var(--shadow);margin-bottom:14px
}
.hero h1{font-size:22px;margin:0 0 6px}
.hero p{margin:0;color:#eaf2ff;font-size:14px}
.progress{height:8px;background:#ffffff2d;border-radius:999px;margin-top:14px;overflow:hidden}
.progress>span{display:block;height:100%;background:white;border-radius:999px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:15px;
  box-shadow:0 4px 14px rgba(20,38,70,.05)
}
.card h3{font-size:14px;margin:0 0 8px}
.metric{font-size:26px;font-weight:800}
.muted{color:var(--muted);font-size:13px}
.section-title{display:flex;align-items:center;justify-content:space-between;margin:20px 2px 10px}
.section-title h2{font-size:17px;margin:0}
.linkbtn{border:0;background:none;color:var(--blue);font-weight:700;padding:4px}
.list{display:flex;flex-direction:column;gap:10px}
.row{
  background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px;
  display:flex;align-items:center;gap:12px
}
.iconbox{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#eef5ff;font-size:20px}
.row-main{min-width:0;flex:1}
.row-title{font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row-sub{font-size:12.5px;color:var(--muted);margin-top:3px}
.badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:750}
.badge.blue{background:#eaf3ff;color:#1260bf}
.badge.green{background:#e8f7ef;color:#187a50}
.badge.amber{background:#fff4dc;color:#9a6500}
.badge.red{background:#ffe9ed;color:#b42139}
.primary{border:0;background:var(--blue);color:#fff;border-radius:12px;padding:12px 14px;font-weight:800}
.secondary{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:12px;padding:11px 14px;font-weight:700}
.full{width:100%}
.form{display:flex;flex-direction:column;gap:12px}
label{font-size:12px;color:var(--muted);font-weight:700}
input,select,textarea{
  width:100%;border:1px solid #dce3ef;background:#fff;border-radius:12px;padding:12px 13px;outline:none
}
input:focus,select:focus,textarea:focus{border-color:#8abaff;box-shadow:0 0 0 3px #1677ff18}
textarea{min-height:90px;resize:vertical}
.bottom{
  position:fixed;z-index:30;left:0;right:0;bottom:0;background:#fff;
  padding:8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);align-items:end
}
.navbtn{border:0;background:none;color:#7a8496;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:5px}
.navbtn .ico{font-size:20px}.navbtn.active{color:var(--blue);font-weight:800}
.plus{
  width:54px;height:54px;border-radius:50%;border:5px solid #fff;background:var(--blue);color:#fff;
  display:grid;place-items:center;font-size:30px;line-height:1;margin:-26px auto 0;box-shadow:0 8px 18px #1677ff55
}
.sheet-backdrop{position:fixed;inset:0;background:#06152a88;z-index:40}
.sheet{
  position:fixed;z-index:41;left:0;right:0;bottom:0;background:#fff;border-radius:22px 22px 0 0;
  padding:16px 16px calc(18px + env(safe-area-inset-bottom));max-height:78dvh;overflow:auto
}
.sheet-handle{width:44px;height:5px;background:#d8dee8;border-radius:99px;margin:0 auto 14px}
.action-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.action{border:1px solid var(--line);background:#fff;border-radius:14px;padding:15px;text-align:left;font-weight:750}
.login{min-height:100dvh;background:linear-gradient(180deg,#081c35,#0f3564);display:grid;place-items:center;padding:24px}
.login-card{width:min(430px,100%);background:#fff;border-radius:24px;padding:24px;box-shadow:0 22px 54px #0004}
.logo-mark{width:54px;height:54px;border-radius:16px;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:28px;font-weight:900}
.login h1{margin:14px 0 4px;font-size:26px}.login p{margin:0 0 20px;color:var(--muted)}
.error{background:#ffecef;color:#a42437;border:1px solid #ffcbd3;padding:10px;border-radius:10px;font-size:13px}
.toast{position:fixed;z-index:80;top:18px;left:50%;transform:translateX(-50%);max-width:92vw;background:#10233f;color:#fff;padding:11px 14px;border-radius:12px;box-shadow:var(--shadow);font-size:13px}
.empty{text-align:center;padding:30px 15px;color:var(--muted)}
.kicker{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#8a95a7;font-weight:800}
@media(min-width:700px){
  .main{padding:22px}
  .bottom{max-width:760px;left:50%;transform:translateX(-50%);border-left:1px solid var(--line);border-right:1px solid var(--line);border-radius:18px 18px 0 0}
}
.actions{display:flex;gap:8px;flex-wrap:wrap}
