:root{
  --bg:#0c0f14;
  --card:#121826;
  --card2:#0f1420;
  --text:#e8eefc;
  --muted:#a8b3cf;
  --line:#26314b;
  --accent:#7dd3fc;
  --ok:#86efac;
  --warn:#fbbf24;
  --bad:#fb7185;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --r:16px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, rgba(125,211,252,.08), transparent 60%),
              radial-gradient(1000px 700px at 100% 10%, rgba(134,239,172,.06), transparent 55%),
              var(--bg);
  color:var(--text);
}
.topbar{
  position: sticky;
  top:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background: rgba(10,12,18,.78);
  backdrop-filter: blur(10px);
}
.brand{display:flex; gap:12px; align-items:center}
.logo{width:44px; height:44px; display:grid; place-items:center; background:rgba(125,211,252,.12); border:1px solid rgba(125,211,252,.25); border-radius:14px; box-shadow: var(--shadow)}
.title{font-weight:800; letter-spacing:.08em}
.subtitle{color:var(--muted); font-size:12px}
.container{max-width:1100px; margin:22px auto; padding:0 16px}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:start; margin-bottom:14px}
@media (max-width: 980px){.grid2{grid-template-columns:1fr}}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 70%), var(--card);
  border:1px solid rgba(255,255,255,.06);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding:16px;
}
.cardHead{display:flex; justify-content:space-between; align-items:center; gap:10px}
h2{margin:0 0 10px 0; font-size:18px}
.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.right{display:flex; gap:10px; align-items:center}
.pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-size:12px;
}
.pill.ok{border-color:rgba(134,239,172,.35); background:rgba(134,239,172,.08)}
.pill.bad{border-color:rgba(251,113,133,.35); background:rgba(251,113,133,.08)}
.pill.warn{border-color:rgba(251,191,36,.35); background:rgba(251,191,36,.08)}
.muted{color:var(--muted)}
.small{font-size:12px; line-height:1.4}
.btn{
  cursor:pointer;
  border:none;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(125,211,252,.15);
  border:1px solid rgba(125,211,252,.35);
  color: var(--text);
  font-weight:700;
}
.btn:hover{filter:brightness(1.06)}
.btn.ghost{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
}
.btn.file{position:relative; overflow:hidden}
.btn.file input{position:absolute; inset:0; opacity:0; cursor:pointer}
.hidden{display:none!important}
.error{color:var(--bad); margin-top:10px}
.notice{
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding:12px;
  color: var(--muted);
  margin:10px 0 14px 0;
}
.notice strong{color:var(--text)}
.notice.warn{border-color:rgba(251,191,36,.25); background:rgba(251,191,36,.06)}
.form{display:flex; flex-direction:column; gap:10px}
.formRow{display:flex; flex-direction:column; gap:6px}
.formRow.two{display:grid; grid-template-columns:1fr 1fr; gap:10px}
@media(max-width:560px){.formRow.two{grid-template-columns:1fr}}
label{font-size:12px; color:var(--muted)}
input, select, textarea{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
textarea{resize:vertical}
.hint{font-size:12px; margin-top:6px}
.miniGrid{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px}
@media(max-width:560px){.miniGrid{grid-template-columns:1fr}}
.kpi{padding:12px; border-radius:14px; background: var(--card2); border:1px solid rgba(255,255,255,.06)}
.kpiLabel{font-size:12px; color:var(--muted)}
.kpiValue{font-size:28px; font-weight:900; margin-top:4px}
.kpiSub{font-size:12px}
.calendar{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:6px;
  margin-top:12px;
}
.calDay{
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  cursor:pointer;
  min-height:54px;
}
.calDay:hover{filter:brightness(1.06)}
.calDay .n{font-weight:800}
.calDay .d{font-size:11px; color:var(--muted); margin-top:4px}
.calDay.d0{border-color:rgba(255,255,255,.10)}
.calDay.d1{border-color:rgba(251,113,133,.35); background:rgba(251,113,133,.06)}
.calDay.d2{border-color:rgba(251,191,36,.35); background:rgba(251,191,36,.06)}
.calDay.d3{border-color:rgba(134,239,172,.35); background:rgba(134,239,172,.06)}
.legend{display:flex; gap:10px; align-items:center; margin-top:10px; font-size:12px; flex-wrap:wrap}
.dot{width:10px; height:10px; border-radius:99px; display:inline-block; border:1px solid rgba(255,255,255,.14)}
.dot.d0{background:rgba(255,255,255,.05)}
.dot.d1{background:rgba(251,113,133,.20); border-color:rgba(251,113,133,.35)}
.dot.d2{background:rgba(251,191,36,.20); border-color:rgba(251,191,36,.35)}
.dot.d3{background:rgba(134,239,172,.20); border-color:rgba(134,239,172,.35)}
.tasks{display:flex; flex-direction:column; gap:10px; margin-top:10px}
.task{display:flex; justify-content:space-between; gap:10px; align-items:center; padding:12px; border-radius:14px; background:rgba(0,0,0,.16); border:1px solid rgba(255,255,255,.08)}
.task .t{font-weight:700}
.task .s{font-size:12px; color:var(--muted); margin-top:4px}
.footer{padding:18px; text-align:center; font-size:12px}
.spacer{height:14px}
.toggleRow{display:flex; justify-content:space-between; align-items:center}
.toggle{position:relative; width:52px; height:30px}
.toggle input{opacity:0; width:0; height:0}
.toggle span{
  position:absolute; inset:0;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  transition:.2s;
}
.toggle span:before{
  content:"";
  position:absolute; left:3px; top:3px;
  width:24px; height:24px;
  border-radius:999px;
  background: rgba(255,255,255,.20);
  border:1px solid rgba(255,255,255,.16);
  transition:.2s;
}
.toggle input:checked + span{
  background: rgba(134,239,172,.14);
  border-color: rgba(134,239,172,.35);
}
.toggle input:checked + span:before{
  transform: translateX(22px);
  background: rgba(134,239,172,.22);
  border-color: rgba(134,239,172,.25);
}
