:root{
  --bg:#f5f7f3;
  --paper:#ffffff;
  --ink:#10243a;
  --muted:#5c6d7d;
  --line:#dbe5e6;
  --teal:#118c94;
  --teal2:#0b6675;
  --sand:#f6efe2;
  --gold:#c9922e;
  --red:#c8324b;
  --shadow:0 18px 45px rgba(15,35,55,.10);
}
*{box-sizing:border-box}
body{
  margin:0;
  background:linear-gradient(120deg,#f7f3e9,#eef8f6 45%,#f8fafc);
  color:var(--ink);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
button,input,select,textarea{font:inherit}
button{
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  border-radius:14px;
  padding:11px 15px;
  cursor:pointer;
  font-weight:800;
}
button:hover{transform:translateY(-1px)}
.primary{
  background:linear-gradient(135deg,#0b8993,#12a0a3);
  color:white;
  border:0;
}
.secondary{background:#fff}
.danger{color:var(--red)}
.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:292px;
  padding:26px;
  background:rgba(255,253,247,.86);
  backdrop-filter:blur(18px);
  border-right:1px solid var(--line);
  overflow:auto;
}
.brand{display:flex;gap:14px;align-items:center;margin-bottom:24px}
.logo{
  width:48px;height:48px;border-radius:18px;
  background:linear-gradient(135deg,#087b92,#19b3a6);
  color:white;display:grid;place-items:center;font-weight:950;font-size:22px;
  box-shadow:var(--shadow);
}
.brand strong{display:block;font-size:18px}
.brand span{display:block;color:var(--muted);font-size:13px}
.sidebar button{width:100%;margin:8px 0}
nav{margin-top:24px}
.cat{
  display:flex;justify-content:space-between;gap:10px;
  padding:12px 8px;border-radius:14px;color:#244057;
  cursor:pointer;font-size:15px;
}
.cat:hover,.cat.active{background:#eaf8f7;color:#075f68}
.cat b{font-weight:900}
.hint{
  margin-top:22px;padding:18px;border:1px solid #d9eeee;border-radius:20px;
  background:linear-gradient(160deg,#fff,#ecfbfb);
}
.hint b{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#087b92}
.hint p{font-size:14px;line-height:1.35;color:#345;margin-bottom:0}
.main{margin-left:292px;padding:34px;max-width:1700px}
.hero{
  border-radius:34px;padding:44px 34px;display:flex;justify-content:space-between;gap:30px;align-items:center;
  color:white;overflow:hidden;position:relative;
  background:
    radial-gradient(circle at right top,rgba(255,255,255,.25),transparent 25%),
    linear-gradient(135deg,#0c4f72 0%,#128d95 58%,#25b0a2 100%);
  box-shadow:var(--shadow);
}
.hero:after{
  content:"";position:absolute;right:-80px;top:-90px;width:300px;height:300px;border-radius:50%;
  background:rgba(255,255,255,.12);
}
.eyebrow{letter-spacing:.12em;text-transform:uppercase;font-weight:900;font-size:12px;margin:0 0 8px}
.hero h1{font-size:clamp(34px,5vw,64px);line-height:.94;margin:0 0 18px}
.hero p{max-width:750px;font-size:18px;line-height:1.45;margin:0;color:#e8ffff}
.stats{display:flex;gap:12px;z-index:1}
.stats div{
  min-width:104px;padding:20px 18px;text-align:center;border-radius:22px;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22)
}
.stats strong{display:block;font-size:30px}
.stats span{font-size:12px;color:#eaffff}
.toolbar{
  display:grid;grid-template-columns:1fr 220px 180px;gap:14px;margin:24px 0 18px;
}
.toolbar input,.toolbar select,.modal input,.modal select,.modal textarea{
  width:100%;padding:15px 16px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);
}
.quick{
  background:rgba(255,255,255,.82);border:1px solid var(--line);border-radius:24px;
  display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px 20px;margin-bottom:18px;
}
.quick h2{margin:0 0 12px}
.tags{display:flex;flex-wrap:wrap;gap:8px}
.tag{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 9px;border-radius:999px;background:#effafa;color:#087180;font-size:12px;font-weight:850;border:1px solid #d9eeee;
}
.actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;
}
.card{
  background:rgba(255,255,255,.88);border:1px solid var(--line);border-radius:24px;
  padding:18px;box-shadow:0 10px 30px rgba(16,36,58,.06);
  display:flex;flex-direction:column;min-height:245px;
}
.card-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.badge{
  display:inline-flex;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:900;
  background:#fff6da;color:#9a6512;
}
.dot{width:18px;height:18px;border-radius:50%;background:#e7f8f8;display:inline-block}
.card h3{font-size:20px;line-height:1.12;margin:12px 0 8px}
.meta{color:var(--muted);font-size:13px;line-height:1.35}
.note{color:#3a5064;line-height:1.45;margin:10px 0 12px}
.card .tags{margin-top:auto;padding-top:8px}
.card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.card-actions a{text-decoration:none}
.empty{
  grid-column:1/-1;text-align:center;padding:60px;border:1px dashed var(--line);
  border-radius:26px;color:var(--muted);background:#fff;
}
dialog{border:0;border-radius:24px;padding:0;box-shadow:0 35px 90px rgba(0,0,0,.25);max-width:760px;width:min(94vw,760px)}
dialog::backdrop{background:rgba(5,20,30,.45);backdrop-filter:blur(4px)}
.modal{padding:26px;display:grid;gap:14px}
.modal h2{margin:0}
.modal p{margin:0;color:var(--muted);line-height:1.4}
.modal label{display:grid;gap:6px;font-weight:850;color:#284458}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}
@media(max-width:1100px){
  .sidebar{position:relative;width:auto;inset:auto;display:block;border-right:0;border-bottom:1px solid var(--line)}
  .main{margin-left:0;padding:18px}
  .hero{display:block}
  .stats{margin-top:22px;flex-wrap:wrap}
  .toolbar{grid-template-columns:1fr}
  .quick{display:block}
  .actions{justify-content:flex-start;margin-top:14px}
  .grid{grid-template-columns:1fr}
}
@media(min-width:1101px) and (max-width:1400px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
