/* Vazhi — Personal Dashboard styles. Reuses the site palette. */
:root{
  --bg:#FAF8F3; --surface:#FFFFFF; --surface2:#F2EFE8; --border:#E0DBD0;
  --text:#1C1A14; --text2:#4A4640; --text3:#6F6A5F;
  --brand:#D4580A; --brand-dk:#A83E00; --brand-bg:#FFF3E8;
  --accent:#0A7B72; --accent-dk:#065750;
  --amber:#855100; --amber-bg:#FFF5E0;
  --r:10px; --r-lg:16px;
  --shadow-sm:0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
}
*{box-sizing:border-box;margin:0;padding:0;touch-action:manipulation}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:4px}
body{font-family:'Plus Jakarta Sans',system-ui,sans-serif;background:var(--bg);color:var(--text);line-height:1.55;-webkit-font-smoothing:antialiased}
.serif{font-family:'Fraunces',Georgia,serif}

/* Header (matches site) */
.dash-header{background:linear-gradient(135deg,#1A1F4D 0%,#2C3580 100%);position:sticky;top:0;z-index:40}
.dash-header-inner{max-width:820px;margin:0 auto;padding:0 20px;height:62px;display:flex;align-items:center;gap:12px}
.dash-logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.dash-logo-icon{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#F07020,#D4580A);color:#fff;display:flex;align-items:center;justify-content:center;font-family:'Noto Sans Tamil',sans-serif;font-size:14px;font-weight:700;flex-shrink:0}
.dash-logo-en{font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:20px;color:#fff;line-height:1}
.dash-logo-ta{font-family:'Noto Sans Tamil',sans-serif;color:#FFD9A8;font-size:11px;font-weight:600}
.dash-home-link{margin-left:auto;color:rgba(255,255,255,.85);font-size:.9rem;font-weight:600;text-decoration:none;padding:8px 14px;border-radius:999px}
.dash-home-link:hover{background:rgba(255,255,255,.12);color:#fff}

main{max-width:820px;margin:0 auto;padding:28px 20px 60px}
.dash-greeting{font-family:'Fraunces',Georgia,serif;font-size:1.5rem;font-weight:600;margin-bottom:22px}
.dash-loading{color:var(--text3);font-size:.95rem}

/* Sections */
.dash-section{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--r-lg);padding:18px 20px;margin-bottom:16px;box-shadow:var(--shadow-sm)}
.dash-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.dash-section-head h2{font-family:'Fraunces',Georgia,serif;font-size:1.15rem;font-weight:600}
.dash-count{display:inline-block;background:var(--brand-bg);color:var(--brand-dk);font-family:'Plus Jakarta Sans',sans-serif;font-size:.8rem;font-weight:700;border-radius:999px;padding:1px 9px;margin-left:4px;vertical-align:2px}
.dash-more{font-size:.85rem;font-weight:600;color:var(--brand-dk);text-decoration:none;white-space:nowrap}
.dash-more:hover{text-decoration:underline}

/* Cards */
.dash-list{display:flex;flex-direction:column;gap:8px}
.dash-card{display:flex;align-items:center;gap:12px;background:var(--surface2);border:1px solid var(--border);border-radius:var(--r);padding:12px 14px}
.dash-card-main{flex:1;min-width:0}
.dash-card-name{font-weight:700;font-size:.95rem;line-height:1.25}
.dash-card-meta{font-size:.83rem;color:var(--text3);margin-top:2px}
.dash-card-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.dash-tag{font-size:.75rem;font-weight:600;color:var(--text2);background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:2px 9px;text-decoration:none}
.dash-tag-dl{color:var(--amber);background:var(--amber-bg);border-color:#F2D89A}
.dash-tag-link{color:var(--accent-dk)}
.dash-remove{flex-shrink:0;width:28px;height:28px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text3);font-size:14px;cursor:pointer;transition:all .15s}
.dash-remove:hover{border-color:#ef4444;color:#b91c1c;background:#fee2e2}
.dash-remove:disabled{opacity:.5;cursor:default}

/* Deadlines */
.dash-dl{display:flex;flex-direction:column;gap:6px}
.dash-dl-row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:9px 12px;border:1px solid var(--border);border-radius:var(--r);background:var(--surface2)}
.dash-dl-row.soon{border-color:#F2D89A;background:var(--amber-bg)}
.dash-dl-row.past{opacity:.55}
.dash-dl-date{font-weight:700;font-size:.85rem;white-space:nowrap}
.dash-dl-name{font-size:.88rem;color:var(--text2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-dl-when{font-size:.78rem;font-weight:600;color:var(--text3);white-space:nowrap}
.dash-dl-row.soon .dash-dl-when{color:var(--amber)}

/* Report */
.dash-report-types{font-family:'Fraunces',Georgia,serif;font-size:1.1rem;font-weight:600;color:var(--brand-dk);margin-bottom:4px}

/* Empty states */
.dash-empty{text-align:center;padding:14px 10px}
.dash-empty-ico{font-size:1.8rem;margin-bottom:6px}
.dash-empty-title{font-weight:700;font-size:1rem;margin-bottom:4px}
.dash-empty-sub{font-size:.88rem;color:var(--text3);max-width:40ch;margin:0 auto 12px}
.dash-empty-cta{display:inline-block;background:var(--text);color:#fff;font-size:.85rem;font-weight:600;text-decoration:none;padding:9px 18px;border-radius:999px}
.dash-empty-cta:hover{background:var(--brand-dk)}

/* Gated (signed-out) */
.dash-gate{max-width:440px;margin:60px auto;text-align:center;padding:0 20px}
.dash-gate-ico{font-size:2.4rem;margin-bottom:10px}
.dash-gate-title{font-family:'Fraunces',Georgia,serif;font-size:1.7rem;font-weight:600;margin-bottom:10px}
.dash-gate-sub{color:var(--text2);margin-bottom:22px}
.dash-gate-btn{background:var(--text);color:#fff;font:600 .95rem 'Plus Jakarta Sans',sans-serif;border:none;padding:12px 24px;border-radius:999px;cursor:pointer}
.dash-gate-btn:hover{background:var(--brand-dk)}
.dash-gate-back{display:block;margin-top:18px;color:var(--brand-dk);font-weight:600;font-size:.9rem;text-decoration:none}

/* ── Nav drawer (hamburger menu) — self-contained, dark-header styling.
   Labelled "Menu" (not just an icon) and styled as a bold pill so it's
   easy to spot on first visit. ── */
.hamburger-btn{background:rgba(255,255,255,.16);color:#fff;border:1.5px solid rgba(255,255,255,.55);border-radius:999px;display:inline-flex;align-items:center;gap:6px;padding:7px 14px;font:700 13px 'Plus Jakarta Sans',sans-serif;cursor:pointer;flex-shrink:0;transition:background .15s;white-space:nowrap}
.hamburger-btn .hamburger-icon{font-size:15px;line-height:1}
.hamburger-btn:hover{background:rgba(255,255,255,.3)}
.hamburger-btn.active{background:rgba(255,255,255,.3)}
.nav-drawer-overlay{position:fixed;inset:0;background:rgba(20,20,40,.45);opacity:0;visibility:hidden;transition:opacity .2s;z-index:300}
.nav-drawer-overlay.open{opacity:1;visibility:visible}
.nav-drawer{position:fixed;top:0;right:0;bottom:0;width:260px;max-width:80vw;background:#fff;z-index:301;box-shadow:-2px 0 16px rgba(0,0,0,.15);transform:translateX(100%);transition:transform .25s ease;display:flex;flex-direction:column;padding:8px 0;overflow-y:auto}
.nav-drawer.open{transform:translateX(0)}
.nav-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px 10px;border-bottom:1px solid #e2e8f0;margin-bottom:6px}
.nav-drawer-title{font-weight:700;font-size:12px;color:#718096;text-transform:uppercase;letter-spacing:.04em}
.nav-drawer-close{background:none;border:none;font-size:18px;color:#718096;cursor:pointer;padding:4px}
.nav-drawer-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:none;padding:12px 18px;font-size:14px;color:#2d3748;cursor:pointer;transition:background .15s;text-decoration:none}
.nav-drawer-item:hover{background:#f7f5ef}
.nav-drawer-item.active{background:#FFF3E8;color:#A83E00;font-weight:600}
.nav-drawer-sep{border-top:1px solid #e2e8f0;margin:6px 0}
