:root{
  --bg: #fff7fb;
  --bg-2: #fde6f2;
  --fg: #2d1f2c;
  --muted: #6b5b6a;
  --brand-1: #f472b6;
  --brand-2: #a78bfa;
  --brand-3: #fda4af;
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --card: #ffffffcc;
  --glass: rgba(255,255,255,0.6);
  --shadow: 0 10px 25px rgba(240, 113, 182, .25);
  --radius: 16px;
}
*{ box-sizing: border-box; }
html,body { margin:0; padding:0; height:100%; }
body{
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans';
  background: radial-gradient(circle at 10% 10%, #fff1f7, transparent 40%),
              radial-gradient(circle at 90% 20%, #fce7f3, transparent 30%),
              radial-gradient(circle at 50% 100%, #efe9ff, transparent 40%), var(--bg);
  color: var(--fg);
}
.header{
  position: sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, var(--bg), var(--bg-2));
  border-bottom: 1px solid #f5d0ea;
}
.nav{ max-width: 1100px; margin: 0 auto; padding: 14px 18px; display:flex; align-items:center; gap:14px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.5px; }
.brand .logo{ width:38px; height:38px; border-radius:12px; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); display:grid; place-items:center; color:white; box-shadow: var(--shadow); font-weight:800; }
.nav a{ text-decoration:none; color: var(--fg); opacity:.85; padding:8px 12px; border-radius: 999px; }
.nav .links{ margin-left:auto; display:flex; gap:4px; flex-wrap:wrap;}
.nav a.active, .nav a:hover{ background: linear-gradient(135deg, #fff, var(--glass)); box-shadow: var(--shadow); opacity:1; }
.container{ max-width: 1100px; margin: 22px auto; padding: 0 18px 48px; }
.grid{ display:grid; gap:18px; grid-template-columns: repeat(12, 1fr); }
.card{ grid-column: span 12; background: var(--glass); border: 1px solid #f8d7ec; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
@media(min-width: 880px){ .card.span-4{ grid-column: span 4; } .card.span-6{ grid-column: span 6; } .card.span-8{ grid-column: span 8; } }
.h1{ font-size: 28px; margin: 8px 0 2px; } .subtitle{ color: var(--muted); font-size: 14px; margin-top:0; }
.btn{ border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color:white; font-weight:600; box-shadow: var(--shadow); transition: transform .08s ease; }
.btn:active{ transform: translateY(1px); }
.btn.secondary{ background: #fff; color: var(--fg); border:1px solid #f2cde6; }
.btn.ghost{ background: transparent; border: 1px dashed #eab8d8; color: var(--fg); }
.btn.danger{ background: var(--danger); color:#fff; }
input, select, textarea{ width:100%; padding:10px 12px; border-radius: 12px; border:1px solid #f2cde6; background:white; font: inherit; }
.progress-wrap{ display:flex; align-items:center; gap:12px; }
.progress{ position:relative; height: 12px; width: 100%; background: #ffe5f2; border-radius: 999px; overflow:hidden; border:1px solid #f6c4de; }
.progress > i{ display:block; height:100%; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); width: 0%; }
.progress-text{ min-width: 160px; font-size: 13px; color: var(--muted); }
.kpis{ display:flex; gap:12px; flex-wrap:wrap; }
.kpi{ flex:1 1 160px; background:white; border-radius: 16px; padding: 14px; border:1px solid #f2cde6; box-shadow: var(--shadow); }
.kpi .big{ font-size: 28px; font-weight: 700; } .kpi .label{ color: var(--muted); font-size: 12px; }
.list{ display:flex; flex-direction:column; gap:10px; }
.item{ display:flex; gap:10px; align-items:flex-start; background:white; padding:10px; border:1px solid #f5d0ea; border-radius:14px; }
.item .dot{ width:10px; height:10px; border-radius:999px; margin-top:6px; }
.item .title{ font-weight:600; } .item .meta{ color: var(--muted); font-size: 12px; }
.badge{ font-size: 12px; padding:4px 8px; border-radius: 999px; background: #ffeaf5; border:1px solid #f5c5e0; }
.footer{ text-align:center; color: var(--muted); font-size: 12px; padding:24px; }

/* Calendar-specific */
#calgrid{ display: grid !important; grid-template-columns: repeat(7, minmax(110px, 1fr)); grid-auto-rows: minmax(110px, auto); gap: 12px; align-items: stretch; margin-top: 6px; }
.dow{ font-size:12px; color: var(--muted); text-transform: capitalize; padding:6px 4px; }
.calcell{ min-height:110px; padding:8px; border-radius: var(--radius); background: var(--glass); border:1px solid #f8d7ec; box-shadow: var(--shadow); display:flex; flex-direction: column; }
.daynum{ font-size:12px; color: var(--muted); }
.pills{ display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.pill{ display:inline-block; font-size:12px; padding:4px 6px; border-radius: 999px; background:#fff; border:1px solid #f5c5e0; width:max-content; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cell-actions{ margin-top:auto; }
.calbar{ display:flex; align-items:center; gap:10px; margin-bottom: 10px; }
