:root{
  color-scheme:light;
  --bg:#f3f6fb;
  --bg2:#eef4ff;
  --surface:#ffffff;
  --surface-soft:#f8fafc;
  --surface-tint:#f0f7ff;
  --text:#0f172a;
  --muted:#64748b;
  --soft:#94a3b8;
  --line:#dbe4f0;
  --brand:#2563eb;
  --brand-2:#7c3aed;
  --brand-3:#0891b2;
  --accent:#f59e0b;
  --good:#059669;
  --danger:#dc2626;
  --claim:#0ea5e9;
  --ref:#7c3aed;
  --shadow-sm:0 6px 18px rgba(15,23,42,.06);
  --shadow:0 18px 48px rgba(15,23,42,.09);
  --shadow-lg:0 30px 80px rgba(37,99,235,.13);
  --radius-sm:12px;
  --radius:20px;
  --radius-lg:28px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 8% 0%,rgba(124,58,237,.13),transparent 30rem),
    radial-gradient(circle at 92% 4%,rgba(14,165,233,.16),transparent 30rem),
    linear-gradient(180deg,var(--bg2),var(--bg) 34%,#f8fafc);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.62;
  text-rendering:optimizeLegibility;
}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:none;color:#1d4ed8}
::selection{background:#bfdbfe;color:#0f172a}

/* App frame */
.topbar{
  position:sticky;top:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  min-height:64px;padding:12px 26px;
  background:rgba(255,255,255,.82);
  border-bottom:1px solid rgba(219,228,240,.9);
  backdrop-filter:blur(18px);
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}
.brand{
  display:flex;align-items:center;gap:12px;
  font-size:18px;font-weight:900;letter-spacing:-.02em;color:var(--text);
}
.brand:hover{color:var(--text)}
.brand:before{
  content:"ज्ञान";
  display:inline-grid;place-items:center;width:42px;height:42px;border-radius:15px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;font-size:13px;font-weight:900;box-shadow:0 12px 24px rgba(37,99,235,.25);
}
.topnav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.topnav a{
  padding:9px 13px;border-radius:999px;color:#334155;font-weight:750;font-size:14px;
  transition:background .16s ease, color .16s ease, transform .16s ease;
}
.topnav a:hover{background:#eef2ff;color:var(--brand);transform:translateY(-1px)}
.shell{width:min(var(--max),calc(100% - 34px));margin:0 auto;padding:34px 0 48px}
.footer{
  display:flex;justify-content:center;gap:14px;flex-wrap:wrap;
  padding:28px 20px;color:var(--muted);font-size:14px;
  border-top:1px solid rgba(219,228,240,.9);background:rgba(255,255,255,.66);backdrop-filter:blur(10px)
}
.footer span{display:inline-flex;align-items:center;gap:14px}.footer span+span:before{content:"•";color:#94a3b8}

/* Hero and layout cards */
.hero{
  position:relative;overflow:hidden;
  padding:38px;border:1px solid rgba(219,228,240,.9);border-radius:var(--radius-lg);
  background:
    radial-gradient(circle at 86% 4%,rgba(37,99,235,.16),transparent 18rem),
    radial-gradient(circle at 8% 95%,rgba(245,158,11,.12),transparent 16rem),
    linear-gradient(180deg,#fff,#fbfdff);
  box-shadow:var(--shadow-lg);margin-bottom:24px;
}
.hero:after{
  content:"";position:absolute;right:-80px;top:-100px;width:280px;height:280px;border-radius:50%;
  background:conic-gradient(from 90deg,rgba(37,99,235,.15),rgba(124,58,237,.12),rgba(14,165,233,.12),rgba(37,99,235,.15));
  filter:blur(1px);opacity:.9;pointer-events:none;
}
.hero>*{position:relative;z-index:1}.hero h1{font-size:clamp(34px,5vw,64px);line-height:1.02;margin:8px 0 15px;letter-spacing:-.055em}.hero p{max-width:780px;color:#475569;font-size:18px}.eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:8px;color:#1d4ed8;font-size:12px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.eyebrow:before{content:"";width:9px;height:9px;border-radius:999px;background:linear-gradient(135deg,var(--brand),var(--brand-2));box-shadow:0 0 0 5px rgba(37,99,235,.1)}
.card{
  background:rgba(255,255,255,.92);border:1px solid rgba(219,228,240,.94);border-radius:var(--radius);
  padding:24px;box-shadow:var(--shadow);margin:20px 0;
}
.card h2{margin:0 0 14px;font-size:clamp(22px,2.5vw,30px);letter-spacing:-.03em}.card h3{letter-spacing:-.02em}.soft-card{background:linear-gradient(180deg,#fff,#f8fbff)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}.muted{color:var(--muted)}

/* Search and controls */
.search{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px;align-items:center}.search input,input[type="text"],input[name="page"]{min-width:min(460px,100%);padding:13px 15px;border:1px solid #cbd5e1;border-radius:14px;background:#fff;font:inherit;box-shadow:inset 0 1px 2px rgba(15,23,42,.04);outline:none;transition:border .16s ease, box-shadow .16s ease}.search input:focus,input[type="text"]:focus,input[name="page"]:focus{border-color:#60a5fa;box-shadow:0 0 0 4px rgba(96,165,250,.18)}.search button,.btn,button{border:0;border-radius:14px;padding:13px 17px;background:linear-gradient(135deg,var(--brand),#1d4ed8);color:#fff;font:inherit;font-weight:850;cursor:pointer;box-shadow:0 12px 22px rgba(37,99,235,.22);transition:transform .16s ease, box-shadow .16s ease, filter .16s ease}.search button:hover,.btn:hover,button:hover{transform:translateY(-1px);filter:saturate(1.08);box-shadow:0 16px 26px rgba(37,99,235,.28);color:#fff}.btn.secondary{background:#fff;color:#1d4ed8;border:1px solid #bfdbfe;box-shadow:none}.btn.secondary:hover{background:#eff6ff;color:#1d4ed8}

/* Tables */
.table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:16px;background:#fff}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:12px;color:#475569;background:linear-gradient(180deg,#f8fafc,#f1f5f9);font-weight:900;letter-spacing:.05em;text-transform:uppercase}tr:last-child td{border-bottom:0}tbody tr{transition:background .14s ease}tbody tr:hover{background:#f8fbff}td:first-child a{font-weight:850}

/* Reading page */
.page-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px;
  padding:26px;border:1px solid rgba(219,228,240,.9);border-radius:var(--radius-lg);
  background:linear-gradient(135deg,#fff,#f4f8ff);box-shadow:var(--shadow-sm)
}
.page-head h1{font-size:clamp(30px,4vw,54px);line-height:1.05;margin:4px 0 8px;letter-spacing:-.055em}.prose{font-size:17px}.prose h1,.prose h2,.prose h3{line-height:1.18;letter-spacing:-.035em}.prose h1{font-size:clamp(30px,4vw,48px)}.prose h2{font-size:clamp(24px,2.8vw,34px);margin-top:10px}.prose p{color:#1f2937}.prose code,code{background:#f1f5f9;border:1px solid #e2e8f0;padding:.13em .4em;border-radius:7px;color:#0f172a}.prose hr{border:0;border-top:1px solid var(--line);margin:26px 0}.reading-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.side-panel{position:sticky;top:86px;align-self:start}.badge-row{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.pill,.status-pill{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;padding:5px 10px;background:#f8fafc;color:#334155;font-size:13px;font-weight:750}.status-pill.active{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.status-pill.draft{background:#fffbeb;color:#92400e;border-color:#fde68a}.status-pill.needs_review{background:#fef2f2;color:#b91c1c;border-color:#fecaca}

/* Node cards */
.node-card{
  position:relative;margin:18px 0;padding:20px 20px 20px 22px;border:1px solid #bfdbfe;border-left:6px solid var(--brand);border-radius:18px;
  background:linear-gradient(135deg,#eff6ff,#ffffff 70%);box-shadow:0 12px 28px rgba(37,99,235,.08)
}
.node-card h3{margin:0 0 6px;font-size:22px}.node-card .node-id{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#1e40af;font-size:13px}.node-meta{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.node-card .btn{display:inline-flex;margin-top:8px}

/* Gyaan v2 syntax blocks */
.gyaan-section{position:relative;margin:24px 0;padding:20px 22px;border:1px solid #dbeafe;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 10px 24px rgba(15,23,42,.04)}.gyaan-section:before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:4px;border-radius:999px;background:linear-gradient(180deg,var(--brand),var(--brand-3))}.gyaan-section h2{margin-top:0}.gyaan-p{font-size:17px;margin:8px 0}.sid{display:inline-flex;align-items:center;margin-right:7px;padding:2px 8px;border-radius:999px;background:#e0f2fe;color:#0369a1;font-size:12px;font-weight:900}.refmark{color:var(--ref);font-weight:900;background:#f5f3ff;border:1px solid #ddd6fe;border-radius:999px;padding:1px 6px}.node-link{font-weight:850;border-bottom:1px dashed #93c5fd}.node-link:hover{border-bottom-color:#1d4ed8}.claim-card{position:relative;margin:18px 0;padding:18px 20px;border:1px solid #bae6fd;border-left:6px solid var(--claim);border-radius:18px;background:linear-gradient(135deg,#f0f9ff,#fff 72%);box-shadow:0 10px 24px rgba(14,165,233,.08)}.claim-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#0369a1;font-weight:900;margin-bottom:9px}.claim-meta span{background:#e0f2fe;border:1px solid #bae6fd;border-radius:999px;padding:3px 8px}.claim-text{font-size:17px;color:#172554}.ref-list{padding-left:0;list-style:none}.ref-list li{margin:12px 0;padding:12px 14px;border:1px solid #e9d5ff;border-radius:14px;background:#faf5ff}.ref-id{display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:2px 8px;border-radius:999px;background:linear-gradient(135deg,var(--ref),#6d28d9);color:#fff;font-size:12px;font-weight:900;margin-right:8px}.notice.warning{padding:13px 15px;border-radius:14px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}

/* Admin/start cards */
.admin-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.admin-menu a{display:block;padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm);font-weight:850}.admin-menu a:hover{background:#f8fbff;transform:translateY(-1px)}

@media(max-width:900px){.reading-layout{grid-template-columns:1fr}.side-panel{position:static}.page-head{display:block}}
@media(max-width:640px){.topbar{align-items:flex-start;flex-direction:column;padding:14px 16px}.topnav a{padding:7px 10px}.shell{width:min(100% - 22px,var(--max));padding-top:20px}.hero{padding:26px}.card{padding:18px}.search input{min-width:100%}.search button{width:100%}.footer{display:block;text-align:center}.footer span{display:block;margin:6px 0}.footer span+span:before{content:"";margin:0}}

/* v2B generator admin */
.admin-hero h1{max-width:900px}.tool-form{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0}.inline-form input[type="text"]{flex:1}.small-input{max-width:110px;min-width:90px!important}.action-row{padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:#f8fafc}.action-row label{display:inline-flex;align-items:center;gap:7px;color:#475569;font-weight:750}.notice{margin:14px 0;padding:13px 15px;border-radius:14px;border:1px solid var(--line);background:#fff;color:#334155}.notice.success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}.meta-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:14px 0}.meta-grid>div{padding:13px;border:1px solid var(--line);border-radius:14px;background:#fff}.code-preview{max-height:480px;overflow:auto;padding:18px;border:1px solid #cbd5e1;border-radius:16px;background:#0f172a;color:#e2e8f0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.55;white-space:pre-wrap}.btn.mini{padding:7px 11px;border-radius:999px;font-size:13px}.checklist{padding-left:0;list-style:none}.checklist li{margin:8px 0;padding-left:26px;position:relative}.checklist li:before{content:"✓";position:absolute;left:0;top:0;color:var(--good);font-weight:900}

/* v2B-1 Page Analyzer */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:14px;
  margin:22px 0;
}
.stat-card{
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border:1px solid var(--border, #d8e2f1);
  border-radius:18px;
  padding:18px;
  box-shadow:0 14px 36px rgba(15,23,42,.06);
}
.stat-number{
  font-size:2rem;
  line-height:1;
  font-weight:900;
  color:var(--brand, #2457e8);
}
.stat-label{
  margin-top:8px;
  color:var(--muted, #58708e);
  font-size:.92rem;
  font-weight:700;
}
.tabbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0;
}
.tabbar .tab{
  text-decoration:none;
  border:1px solid var(--border, #d8e2f1);
  background:#fff;
  color:var(--text, #0f172a);
  border-radius:999px;
  padding:10px 14px;
  font-weight:800;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}
.tabbar .tab.active{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,#2457e8,#7c3aed);
  box-shadow:0 12px 24px rgba(36,87,232,.22);
}
.filter-grid{
  display:grid;
  grid-template-columns: minmax(220px,2fr) repeat(4,minmax(120px,1fr));
  align-items:center;
  gap:10px;
}
.filter-grid input,
.filter-grid select{
  min-height:40px;
}
.warning-card{
  border-color:#f8d58a;
  background:linear-gradient(180deg,#fffdf7,#ffffff);
}
.danger-button{
  background:linear-gradient(135deg,#dc2626,#f97316)!important;
  color:#fff!important;
  border:none!important;
}
.mini-link{
  display:inline-block;
  margin-top:6px;
  font-size:.82rem;
  font-weight:800;
  text-decoration:none;
}
.pill.danger,
.status-pill.danger{
  color:#991b1b;
  border-color:#fecaca;
  background:#fff1f2;
}
.pill.warning,
.status-pill.warning{
  color:#92400e;
  border-color:#fde68a;
  background:#fffbeb;
}
@media (max-width: 900px){
  .filter-grid{grid-template-columns:1fr;}
}

/* v2B2 admin auth */
.auth-shell{max-width:560px;margin:clamp(30px,6vw,80px) auto}.auth-card{background:rgba(255,255,255,.94);border:1px solid rgba(148,163,184,.28);border-radius:28px;padding:clamp(28px,4vw,46px);box-shadow:0 30px 90px rgba(15,23,42,.12)}.auth-card h1{margin:.35rem 0 1rem}.auth-form{display:grid;gap:18px;margin-top:22px}.auth-form label{display:grid;gap:8px;font-weight:800;color:#0f172a}.auth-form input{width:100%;box-sizing:border-box;border:1px solid rgba(148,163,184,.55);border-radius:16px;padding:14px 16px;font:inherit;background:#fff;outline:none}.auth-form input:focus{border-color:#4f46e5;box-shadow:0 0 0 4px rgba(79,70,229,.12)}.small{font-size:.875rem}.notice.danger{border-color:#fecaca;background:#fff1f2;color:#991b1b}.topnav a{white-space:nowrap}.topbar{overflow-x:auto}.topbar::-webkit-scrollbar{height:6px}.topbar::-webkit-scrollbar-thumb{background:rgba(148,163,184,.35);border-radius:99px}

/* v2C-0 compiler readiness */
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.grid-compact{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.mini-card{border:1px solid var(--border);background:rgba(255,255,255,.78);border-radius:18px;padding:16px}.mini-card strong{display:block;font-size:1.4rem;color:var(--ink);margin-bottom:4px}.mini-card span{font-size:.84rem;color:var(--muted);word-break:break-word}.metric strong{display:block;font-size:1.8rem;margin:8px 0 6px}.metric-ok{border-color:rgba(16,185,129,.26)}.metric-warn{border-color:rgba(245,158,11,.32)}.metric-bad{border-color:rgba(239,68,68,.32)}.note-list{margin:0;padding-left:20px}.note-list li{margin:8px 0;color:var(--muted)}.muted{color:var(--muted)}.alert{border-radius:16px;padding:16px 18px;margin-top:18px}.alert-warning{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}

/* v2C-0a page maintenance */
.maintenance-filter{grid-template-columns:minmax(220px,2fr) minmax(110px,.7fr) minmax(240px,1.4fr) minmax(90px,.5fr) auto}
.danger-zone{margin-top:22px;padding:18px;border:1px dashed rgba(239,68,68,.35);border-radius:18px;background:linear-gradient(180deg,#fff7ed,#fff)}
.danger-zone label{display:grid;gap:8px;font-weight:800;color:#7f1d1d;margin-bottom:12px}.danger-zone input{max-width:320px;border:1px solid rgba(248,113,113,.45);border-radius:14px;padding:12px 14px;font:inherit}.alert-success{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}.alert strong{font-weight:900}
@media (max-width: 900px){.maintenance-filter{grid-template-columns:1fr}}

/* v2C-1 parser preview */
.parser-form{display:grid;gap:16px}.parser-form label{display:grid;gap:8px}.parser-form select,.parser-form textarea{width:100%;box-sizing:border-box;border:1px solid rgba(148,163,184,.55);border-radius:16px;padding:12px 14px;font:inherit;background:#fff;outline:none}.parser-form textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.55;min-height:320px;resize:vertical}.parser-form select:focus,.parser-form textarea:focus{border-color:#4f46e5;box-shadow:0 0 0 4px rgba(79,70,229,.12)}

/* v2C-2 dry-run compiler */
.field-chip{display:inline-flex;align-items:center;gap:4px;margin:3px 4px 3px 0;padding:4px 8px;border:1px solid rgba(148,163,184,.32);border-radius:999px;background:#f8fafc;color:#334155;font-size:.82rem;vertical-align:middle}.field-chip code{padding:.05em .32em}.pill.status-active{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.pill.status-draft{background:#fffbeb;color:#92400e;border-color:#fde68a}.pill.status-needs_review{background:#fef2f2;color:#b91c1c;border-color:#fecaca}.pill.status-neutral{background:#f8fafc;color:#475569;border-color:#cbd5e1}

/* v2C-4: DB-backed evidence viewer */
.view-switch{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px}
.view-switch a,.mode-banner a{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border:1px solid var(--border,#d7e2f1);border-radius:14px;text-decoration:none;font-weight:800;color:#26364f;background:#fff}
.view-switch a.active,.mode-banner span:first-child{background:#2563eb;color:#fff;border-color:#2563eb;box-shadow:0 10px 24px rgba(37,99,235,.18)}
.mode-banner{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0;padding:12px 14px;border:1px solid #d7e2f1;border-radius:18px;background:rgba(255,255,255,.72)}
.mode-banner span:first-child{display:inline-flex;border-radius:999px;padding:8px 12px;text-transform:uppercase;letter-spacing:.08em;font-size:.78rem}
.evidence-db-view{display:block}
.evidence-section{position:relative;margin:24px 0;padding:24px;border:1px solid #d7e2f1;border-left:5px solid #2563eb;border-radius:22px;background:linear-gradient(180deg,#fff,rgba(248,251,255,.94));box-shadow:0 14px 34px rgba(15,23,42,.06)}
.section-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.section-heading h2{margin:0;font-size:clamp(1.45rem,2.4vw,2.1rem)}
.evidence-paragraph{margin:16px 0;padding:16px 18px;border:1px solid #e1eaf6;border-radius:18px;background:#fff}
.local-code{display:inline-flex;margin-bottom:8px;padding:4px 9px;border-radius:999px;background:#f1f6ff;color:#1d4ed8;font-size:.76rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.sentence-line{font-size:1.04rem;line-height:1.75;margin:.25rem 0;color:#14213d}
.db-claim{background:#f8fdff;border-color:#98dbff}
.claim-meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px;color:#0369a1;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.claim-meta span{display:inline-flex;padding:4px 8px;border-radius:999px;background:#e8f7ff;border:1px solid #b7e8ff}
.reference-list{display:grid;gap:12px}.reference-item{padding:14px;border:1px solid #dbe7f5;border-radius:16px;background:#fff}.small{font-size:.88rem}
.triple-list{display:grid;gap:10px;margin-top:10px}.triple-list.mini{display:flex;flex-wrap:wrap}.triple-chip{display:inline-flex;gap:6px;align-items:center;padding:8px 10px;border:1px solid #dbe7f5;border-radius:999px;background:#f8fbff;color:#183153;font-size:.9rem}
.admin-debug{margin:16px 0;padding:18px;border:1px dashed #93c5fd;border-radius:18px;background:#eff6ff}.admin-debug h3{margin-top:0}
.compact-card{margin-top:18px}

/* v2C-4a: Node card layout compatibility for NodeCardRenderer (.nodecard) */
.nodecard{
  position:relative;
  margin:18px 0 24px;
  padding:22px;
  border:1px solid #bfdbfe;
  border-left:6px solid var(--brand,#2563eb);
  border-radius:22px;
  background:
    radial-gradient(circle at 92% 10%,rgba(37,99,235,.10),transparent 16rem),
    linear-gradient(135deg,#eff6ff,#ffffff 72%);
  box-shadow:0 14px 34px rgba(37,99,235,.08);
}
.nodecard-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.nodecard .eyebrow{
  margin-bottom:4px;
}
.nodecard h2{
  margin:0;
  font-size:clamp(1.55rem,2.6vw,2.25rem);
  line-height:1.1;
  letter-spacing:-.04em;
}
.nodecard .button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 15px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--brand,#2563eb),#1d4ed8);
  color:#fff;
  font-weight:850;
  box-shadow:0 12px 22px rgba(37,99,235,.20);
  text-decoration:none;
}
.nodecard .button:hover{
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 16px 26px rgba(37,99,235,.26);
}
.nodecard-meta-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:14px 0 0;
}
.nodecard-meta-item{
  min-width:0;
  padding:14px 15px;
  border:1px solid #dbeafe;
  border-radius:18px;
  background:rgba(255,255,255,.78);
  box-shadow:0 8px 20px rgba(15,23,42,.035);
}
.nodecard-meta-item span{
  display:block;
  margin-bottom:7px;
  color:#64748b;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.nodecard-meta-item strong{
  display:block;
  color:#0f172a;
  font-size:.98rem;
  font-weight:850;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.nodecard p{
  margin:16px 0 0;
  color:#334155;
}
@media(max-width:640px){
  .nodecard{padding:18px;border-radius:18px}
  .nodecard-meta-grid{grid-template-columns:1fr}
}

/* v2C5a: evidence utility rendering */
.locator-list,
.ref-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.locator-list li{
  list-style:none;
  border:1px solid rgba(148,163,184,.35);
  border-radius:18px;
  padding:14px 16px;
  background:rgba(255,255,255,.72);
}
.locator-id,.triple-id{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 10px;
  background:#eef6ff;
  color:#0369a1;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.locator-key{
  font-size:.76rem;
  color:#64748b;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.locator-text{margin-top:8px;color:#334155;line-height:1.65}
.triple-card{
  margin:14px 0;
  border:1px solid rgba(59,130,246,.22);
  border-left:6px solid #60a5fa;
  border-radius:18px;
  padding:14px 16px;
  background:linear-gradient(135deg,#fff,#f8fbff);
}
.triple-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.triple-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:center;overflow:auto}
.triple-row span{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:8px 10px;white-space:nowrap}
.triple-row b{color:#0f766e;white-space:nowrap}
@media (max-width:720px){.triple-row{grid-template-columns:1fr}.triple-row b::before{content:'→ ';}.triple-row b::after{content:' →';}}

/* v2C-5b resources/references separation */
.resource-list{display:grid;gap:14px;margin:0;padding:0;list-style:none}.resource-list.cards{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.resource-list li,.resource-item{border:1px solid var(--line,#dbe7f6);border-radius:18px;background:rgba(255,255,255,.78);padding:16px 18px;box-shadow:0 10px 30px rgba(15,23,42,.05)}.resource-head{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:8px}.resource-target{margin-top:8px;word-break:break-word}.resource-note{margin-top:8px;color:var(--muted,#64748b)}.small{font-size:.875rem}.resource-item h3{margin:8px 0 10px;font-size:1.1rem}

/* v2C-5d exam marker badges */
.exam-badges{display:inline-flex;flex-wrap:wrap;gap:.35rem;margin-left:.35rem;vertical-align:middle}.exam-marker{display:inline-flex;align-items:center;gap:.25rem;border:1px solid rgba(245,158,11,.35);background:linear-gradient(135deg,rgba(255,247,237,.98),rgba(254,243,199,.82));color:#92400e;border-radius:999px;padding:.16rem .55rem;font-size:.78rem;font-weight:800;letter-spacing:.02em;box-shadow:0 10px 24px rgba(245,158,11,.10)}.exam-marker strong{color:#78350f}.exam-marker-row{margin:.45rem 0 .15rem}

/* v2C-5e syntax render + DB evidence polish */
.admin-debug{
  margin:18px 0;
  padding:0;
  border:1px dashed rgba(59,130,246,.45);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(239,246,255,.96),rgba(255,255,255,.78));
  overflow:hidden;
}
.admin-debug summary{
  cursor:pointer;
  padding:14px 18px;
  font-weight:900;
  color:#1e3a8a;
  list-style:none;
}
.admin-debug summary::-webkit-details-marker{display:none}
.admin-debug summary::after{content:'show';float:right;color:#64748b;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}
.admin-debug[open] summary::after{content:'hide'}
.debug-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
  padding:0 18px 18px;
}
.debug-item{
  padding:10px 12px;
  border:1px solid rgba(147,197,253,.45);
  border-radius:14px;
  background:rgba(255,255,255,.82);
}
.debug-item span{
  display:block;
  color:#64748b;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:5px;
}
.debug-item strong{
  display:block;
  color:#0f172a;
  font-size:.92rem;
  overflow-wrap:anywhere;
}
.evidence-section{overflow:hidden}
.evidence-paragraph{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:10px 12px;
  align-items:start;
}
.evidence-paragraph .local-code{grid-row:1 / span 20;margin-top:2px;margin-bottom:0}
.evidence-paragraph .sentence-line{margin:0 0 .65rem}
.evidence-paragraph .sentence-line:last-child{margin-bottom:0}
.db-claim{
  margin:16px 0 0;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid #bae6fd;
  border-left:6px solid #0ea5e9;
  background:linear-gradient(135deg,#f0f9ff,#fff 75%);
  box-shadow:0 10px 24px rgba(14,165,233,.07);
}
.db-claim p{margin:.65rem 0;color:#172554;line-height:1.7}
.db-claim .muted.small{font-size:.86rem;color:#64748b}
.db-claim .triple-list.mini{margin-top:12px}
.db-claim .triple-chip{
  max-width:100%;
  white-space:normal;
  border-radius:14px;
  background:#f8fafc;
}
.gyaan-section.references > h2,
.gyaan-section.resources > h2,
.gyaan-section.locators > h2{font-size:1.45rem}
.gyaan-section .exam-marker{vertical-align:middle;margin:.2rem .25rem}
@media(max-width:720px){
  .evidence-paragraph{grid-template-columns:1fr}
  .evidence-paragraph .local-code{grid-row:auto;width:max-content}
}

/* v2C-5g typed link grammar */
.page-link,
.node-link,
.graph-link,
.resource-link,
.source-link,
.claim-link,
.section-link,
.locator-link {
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.35);
}
.graph-link::after { content: " ↗"; font-weight: 700; }
.resource-link { color: #7c3aed; }
.source-link,
.locator-link { color: #0891b2; }
.claim-link { color: #0f766e; }
.broken-link { color: #b91c1c; font-weight: 800; }

/* v2D-1 node generator filters + long path safety */
.filter-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:14px;
  align-items:end;
}
.filter-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-weight:800;
  color:#334155;
}
.filter-grid label.check{
  flex-direction:row;
  align-items:center;
  gap:8px;
  padding:12px 14px;
  border:1px solid rgba(148,163,184,.35);
  border-radius:14px;
  background:rgba(248,250,252,.9);
}
.path-code,
.generator-meta code,
.table-wrap td code{
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
  white-space:normal;
}
.generator-meta > div{
  overflow:hidden;
}
.node-select-form .table-wrap{
  margin-top:16px;
}
.node-select-form td:first-child,
.node-select-form th:first-child{
  text-align:center;
  width:70px;
}

/* v2D-2 help pages */
.help-head{align-items:flex-start}
.help-layout{
  display:grid;
  grid-template-columns:minmax(220px,280px) minmax(0,1fr);
  gap:22px;
  align-items:start;
}
.help-sidebar{
  position:sticky;
  top:90px;
}
.help-sidebar-inner{
  border:1px solid rgba(148,163,184,.35);
  border-radius:22px;
  background:rgba(255,255,255,.86);
  box-shadow:0 18px 50px rgba(15,23,42,.07);
  padding:18px;
}
.help-sidebar h2{font-size:1rem;margin:0 0 10px;color:#0f172a}
.help-sidebar ol{margin:0;padding-left:20px;display:grid;gap:8px}
.help-sidebar a{font-weight:800;text-decoration:none;color:#334155}
.help-sidebar a:hover{color:#2563eb}
.help-content{max-width:100%;overflow:hidden}
.help-content section{scroll-margin-top:100px;margin:0 0 34px;padding-bottom:22px;border-bottom:1px solid rgba(148,163,184,.22)}
.help-content section:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.help-content pre{
  max-width:100%;
  overflow:auto;
  border-radius:18px;
  border:1px solid rgba(148,163,184,.32);
  background:#0f172a;
  color:#e2e8f0;
  padding:16px 18px;
  line-height:1.55;
}
.help-content pre code{color:inherit;background:transparent;border:0;padding:0}
.help-content table code,
.help-content p code,
.help-content li code{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.help-content table{font-size:.95rem}
.help-content th{white-space:nowrap}
@media(max-width:900px){
  .help-layout{grid-template-columns:1fr}
  .help-sidebar{position:relative;top:auto}
  .help-sidebar ol{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));padding-left:0;list-style:none}
}

/* v2D-3 evidence page section TOC */
.evidence-layout{
  display:grid;
  grid-template-columns:minmax(210px,280px) minmax(0,1fr);
  gap:22px;
  align-items:start;
}
.evidence-main{min-width:0;}
.evidence-toc{
  position:sticky;
  top:92px;
  align-self:start;
  z-index:2;
}
.evidence-toc-inner{
  border:1px solid rgba(148,163,184,.34);
  border-radius:22px;
  background:rgba(255,255,255,.88);
  box-shadow:0 18px 50px rgba(15,23,42,.08);
  padding:16px 16px 18px;
  backdrop-filter:blur(12px);
}
.evidence-toc h2{
  margin:0 0 10px;
  font-size:.95rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#2563eb;
}
.evidence-toc ol{
  margin:0;
  padding-left:0;
  list-style:none;
  display:grid;
  gap:4px;
}
.evidence-toc li{margin:0;}
.evidence-toc a{
  display:block;
  padding:8px 10px;
  border-radius:12px;
  color:#334155;
  text-decoration:none;
  font-weight:800;
  line-height:1.25;
}
.evidence-toc a:hover{
  color:#1d4ed8;
  background:rgba(37,99,235,.08);
}
.evidence-toc .toc-support a{
  color:#0f766e;
  background:rgba(20,184,166,.06);
}
.gyaan-section,
.evidence-section,
.compact-card{
  scroll-margin-top:105px;
}
.evidence-db-view > .evidence-toc{
  margin:18px 0 22px;
  position:relative;
  top:auto;
}
.evidence-db-view > .evidence-toc .evidence-toc-inner{
  padding:14px 16px;
}
.evidence-db-view > .evidence-toc ol{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.evidence-db-view > .evidence-toc a{
  border:1px solid rgba(148,163,184,.28);
  background:rgba(248,250,252,.82);
}
@media(max-width:980px){
  .evidence-layout{grid-template-columns:1fr;}
  .evidence-toc{position:relative;top:auto;}
  .evidence-toc ol{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));}
}

/* v2D-3a: section TOC + seed placeholder clarity */
.seed-placeholder{
  position:relative;
  border:1px dashed #f59e0b !important;
  background:linear-gradient(135deg,#fffbeb,#fff 72%) !important;
  color:#78350f !important;
  border-radius:14px;
  padding:10px 12px;
}
.gyaan-p.seed-placeholder,
.sentence-line.seed-placeholder{
  margin:10px 0;
}
.seed-badge{
  display:inline-flex;
  align-items:center;
  margin-right:.45rem;
  padding:2px 8px;
  border-radius:999px;
  background:#fef3c7;
  border:1px solid #fcd34d;
  color:#92400e;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  vertical-align:middle;
}
.evidence-toc-note{
  margin:.25rem 0 0;
  color:#64748b;
  font-size:.84rem;
}

/* v2D-3c: stronger seed placeholder + draft section styling */
.gyaan-section.draft-section,
.evidence-section.draft-section{
  border-color:rgba(245,158,11,.42) !important;
  background:linear-gradient(135deg,rgba(255,251,235,.72),rgba(255,255,255,.96) 55%,rgba(255,247,237,.55)) !important;
}
.gyaan-section.draft-section > .section-heading,
.evidence-section.draft-section > .section-heading{
  align-items:center;
  gap:10px;
}
.seed-section-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid #fcd34d;
  background:#fffbeb;
  color:#92400e;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.gyaan-p.seed-placeholder,
.sentence-line.seed-placeholder{
  display:block;
  border-left:4px solid #f59e0b !important;
  box-shadow:none;
}
.gyaan-p.seed-placeholder .sid,
.sentence-line.seed-placeholder .sid{
  background:#fff7ed;
  color:#92400e;
}

/* v2D-3d: page status banner + breadcrumb trace */
.page-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  padding:0 4px;
  color:#64748b;
  font-size:.94rem;
  font-weight:750;
}
.page-breadcrumb a{
  color:#2563eb;
  text-decoration:none;
}
.page-breadcrumb a:hover{text-decoration:underline;}
.page-breadcrumb .crumb-sep{color:#94a3b8;font-weight:900;}

.page-status-banner{
  display:grid;
  grid-template-columns:minmax(240px,1.2fr) minmax(0,2fr);
  gap:16px;
  align-items:center;
  margin:0 0 18px;
  padding:14px 16px;
  border:1px solid #dbeafe;
  border-left:5px solid #2563eb;
  border-radius:18px;
  background:linear-gradient(135deg,#eff6ff,#ffffff 70%);
  box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.page-status-banner.is-seed{
  border-color:#fde68a;
  border-left-color:#f59e0b;
  background:linear-gradient(135deg,#fffbeb,#ffffff 70%);
}
.page-status-banner.status-active{
  border-left-color:#10b981;
}
.page-status-banner.status-stale,
.page-status-banner.status-needs_review{
  border-left-color:#ef4444;
  background:linear-gradient(135deg,#fff1f2,#ffffff 70%);
}
.status-main{display:grid;gap:3px;}
.status-main strong{
  color:#0f172a;
  font-size:1rem;
  font-weight:950;
  letter-spacing:-.01em;
}
.status-main span{color:#475569;line-height:1.35;}
.status-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.status-meta span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 9px;
  border:1px solid rgba(148,163,184,.32);
  border-radius:999px;
  background:rgba(255,255,255,.74);
  color:#334155;
  font-size:.82rem;
  font-weight:800;
}
.status-meta b{
  color:#64748b;
  text-transform:uppercase;
  font-size:.68rem;
  letter-spacing:.05em;
}
.page-trace{
  margin:0 0 18px;
  border:1px dashed #93c5fd;
  border-radius:16px;
  background:rgba(239,246,255,.72);
  padding:12px 14px;
}
.page-trace summary{
  cursor:pointer;
  font-weight:900;
  color:#1d4ed8;
}
.trace-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
  margin-top:12px;
}
.trace-grid div{
  padding:10px;
  border:1px solid rgba(191,219,254,.8);
  border-radius:12px;
  background:#fff;
  min-width:0;
}
.trace-grid span{
  display:block;
  margin-bottom:4px;
  color:#64748b;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.trace-grid code{
  display:block;
  overflow-wrap:anywhere;
  word-break:break-word;
}
@media(max-width:760px){
  .page-status-banner{grid-template-columns:1fr;}
  .status-meta{justify-content:flex-start;}
}

/* v2D-4 Unified page + node search */
.search-hero .search-wide,
.search-wide {
  margin-top: 1rem;
  max-width: 900px;
}
.search-summary .mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .75rem;
}
.search-summary .mini-stats span {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  border: 1px solid var(--border, #e5e7eb);
  background: rgba(255,255,255,.75);
  border-radius: 999px;
  padding: .45rem .7rem;
}
.search-section { margin-top: 1rem; }
.result-list {
  display: grid;
  gap: .8rem;
}
.search-result {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
}
.search-result h3 { margin: 0 0 .25rem; }
.search-result .muted { margin: .2rem 0 .55rem; }
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.pill.ok {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}
.pill.muted-pill {
  background: #f8fafc;
  color: #64748b;
}
.result-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}
.exact-match {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}
@media (max-width: 760px) {
  .search-result { flex-direction: column; }
  .result-actions, .action-row { justify-content: flex-start; }
}

/* v2D-4a: search result metadata pill spacing */
.meta-pill{gap:.35rem;}
.meta-pill-key{font-weight:800;color:#334155;}
.meta-pill-key::after{content:":";}
.meta-pill-value{font-weight:750;color:#0f172a;}

/* v2D-5 Lotus Knowledge Landing Page */
body{
  background:
    radial-gradient(circle at 12% -10%,rgba(255,237,213,.65),transparent 28rem),
    radial-gradient(circle at 88% 0%,rgba(196,181,253,.38),transparent 34rem),
    linear-gradient(180deg,#f8fbff 0%,#edf6ff 36%,#f8fafc 100%);
}
.topbar{
  width:min(92rem,calc(100% - 2.4rem));
  margin:18px auto 0;
  border:1px solid rgba(255,255,255,.72);
  border-radius:26px;
  background:rgba(255,255,255,.78);
  box-shadow:0 18px 48px rgba(60,43,120,.12);
}
.brand{
  font-size:22px;
}
.brand:before{
  content:"";
  width:46px;height:46px;border-radius:14px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.72),rgba(255,255,255,.20)),
    url('/assets/images/lotus-knowledge.svg') center/36px 34px no-repeat,
    url('../images/lotus-knowledge.svg') center/36px 34px no-repeat;
  color:transparent;
  box-shadow:0 14px 28px rgba(124,58,237,.12);
  border:1px solid rgba(245,158,11,.28);
}
.topnav a{
  font-weight:800;
}
.topnav a:first-child{
  color:#5b21b6;
  background:rgba(124,58,237,.08);
}
.shell{
  width:min(92rem,calc(100% - 2.2rem));
  padding-top:26px;
}
.lotus-landing{
  position:relative;
  min-height:610px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:32px;
  margin:-4px 0 22px;
  padding:68px 28px 58px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.10),rgba(241,245,249,.40)),
    radial-gradient(circle at 50% 48%,rgba(255,255,255,.10),rgba(255,255,255,.36) 56%,rgba(219,234,254,.24)),
    url('/assets/images/lotus-knowledge-bg.jpg') center/cover no-repeat,
    url('../images/lotus-knowledge-bg.jpg') center/cover no-repeat;
  box-shadow:0 36px 90px rgba(37,99,235,.14);
  isolation:isolate;
}
.lotus-landing:before{
  content:"";
  position:absolute;inset:0;
  background:
    radial-gradient(circle at 50% 48%,rgba(255,255,255,.22),transparent 26rem),
    linear-gradient(180deg,rgba(255,255,255,.12),rgba(248,250,252,.48) 82%);
  z-index:-1;
}
.lotus-landing:after{
  content:"";
  position:absolute;inset:auto 0 0;height:42%;
  background:linear-gradient(180deg,transparent,rgba(248,250,252,.95));
  z-index:-1;
}
.lotus-hero-card{
  width:min(930px,100%);
  text-align:center;
  margin:0 auto;
  color:#111827;
}
.lotus-ornament{
  width:94px;height:24px;margin:0 auto 8px;
  color:#d97706;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;
}
.lotus-ornament:before,.lotus-ornament:after{
  content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,#d97706);opacity:.72;margin-right:10px;
}
.lotus-ornament:after{background:linear-gradient(90deg,#d97706,transparent);margin:0 0 0 10px}
.lotus-kicker{
  margin:0 auto 8px;
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 12px;border-radius:999px;
  background:rgba(255,255,255,.58);
  border:1px solid rgba(255,255,255,.72);
  color:#5b21b6;
  font-size:12px;font-weight:950;letter-spacing:.14em;text-transform:uppercase;
}
.lotus-hero-card h1{
  margin:8px 0 10px;
  font-size:clamp(42px,7vw,82px);
  line-height:.98;
  letter-spacing:-.065em;
  color:#111936;
  text-wrap:balance;
  text-shadow:0 10px 36px rgba(255,255,255,.72);
}
.lotus-hero-card h1 span{color:#6d3fb5}
.lotus-subtitle{
  width:min(720px,100%);
  margin:0 auto 18px;
  color:#334155;
  font-size:clamp(17px,2.1vw,22px);
  line-height:1.45;
}
.gita-quote{
  display:grid;gap:4px;
  margin:10px auto 28px;
  color:#334155;
}
.gita-quote span{
  font-family:"Noto Serif Devanagari","Nirmala UI","Kohinoor Devanagari",serif;
  font-size:clamp(26px,4vw,43px);
  line-height:1.35;
  color:#3f3c50;
  text-shadow:0 8px 28px rgba(255,255,255,.74);
}
.gita-quote small{
  color:#64748b;
  font-weight:750;
}
.landing-search{
  width:min(820px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:25px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.76);
  box-shadow:0 20px 54px rgba(31,41,55,.14);
  backdrop-filter:blur(18px);
}
.landing-search .search-mark{
  width:40px;height:40px;border-radius:16px;
  display:grid;place-items:center;
  color:#334155;font-size:28px;
}
.landing-search input{
  min-width:0!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:13px 4px!important;
}
.landing-search select{
  border:1px solid rgba(203,213,225,.8);
  background:rgba(255,255,255,.75);
  border-radius:16px;
  padding:12px 14px;
  font:inherit;font-weight:800;color:#334155;
}
.landing-search button{
  border-radius:18px;
  padding:13px 24px;
  background:linear-gradient(135deg,#7c3aed,#5b21b6);
  box-shadow:0 16px 34px rgba(91,33,182,.25);
}
.landing-feature-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin:22px 0 16px;
}
.landing-feature-card{
  display:flex;gap:16px;align-items:flex-start;
  padding:20px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:24px;
  background:rgba(255,255,255,.82);
  box-shadow:0 18px 44px rgba(15,23,42,.08);
  backdrop-filter:blur(12px);
}
.feature-icon{
  flex:0 0 auto;
  width:58px;height:58px;border-radius:18px;
  display:grid;place-items:center;
  font-size:27px;
  background:linear-gradient(135deg,rgba(124,58,237,.14),rgba(245,158,11,.12));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7);
}
.landing-feature-card h2{
  margin:0 0 5px;
  font-size:18px;
  letter-spacing:-.025em;
}
.landing-feature-card p{
  margin:0 0 10px;
  color:#475569;
  font-size:14px;
  line-height:1.5;
}
.landing-feature-card a{font-weight:900;color:#6d28d9}
.landing-lower-grid{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(280px,.75fr);
  gap:16px;
  margin-top:16px;
}
.journey-card,.wisdom-card,.landing-stats{
  border:1px solid rgba(219,228,240,.92);
  border-radius:24px;
  background:rgba(255,255,255,.84);
  box-shadow:0 18px 44px rgba(15,23,42,.07);
  backdrop-filter:blur(12px);
}
.journey-card{padding:22px}.wisdom-card{padding:24px;text-align:center}
.section-label{
  color:#6d28d9;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
}
.journey-card h2,.wisdom-card h2{margin:5px 0 14px;letter-spacing:-.03em}
.recent-mini-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.recent-mini-item{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px;border:1px solid rgba(219,228,240,.92);border-radius:16px;background:rgba(248,250,252,.8);
}
.recent-mini-item strong{display:block;color:#172554;line-height:1.25}.recent-mini-item small{display:block;color:#64748b;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;margin-top:4px}.recent-mini-item em{font-style:normal;border:1px solid #dbeafe;border-radius:999px;padding:4px 8px;color:#1d4ed8;background:#eff6ff;font-size:12px;font-weight:900}
.lotus-mini{width:50px;height:50px;margin:0 auto 8px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#fff7ed,#ede9fe);color:#d97706;font-size:24px;font-weight:900}
.wisdom-card p{color:#475569;margin:0 0 18px}
.landing-stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:16px 0 0;overflow:hidden;
}
.landing-stats div{padding:20px;text-align:center;border-right:1px solid rgba(219,228,240,.9)}.landing-stats div:last-child{border-right:0}.landing-stats strong{display:block;font-size:24px;color:#5b21b6;line-height:1.1}.landing-stats span{display:block;color:#64748b;font-size:13px;font-weight:800;margin-top:4px}
@media(max-width:1050px){.landing-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lotus-landing{min-height:560px}.recent-mini-list{grid-template-columns:1fr}}
@media(max-width:760px){.topbar{width:calc(100% - 1rem);margin:8px auto 0;border-radius:20px}.brand{font-size:18px}.brand:before{width:40px;height:40px}.lotus-landing{border-radius:24px;min-height:unset;padding:42px 16px;background-position:center top}.landing-search{grid-template-columns:auto minmax(0,1fr);border-radius:21px}.landing-search select,.landing-search button{grid-column:1 / -1;width:100%}.landing-feature-grid,.landing-lower-grid,.landing-stats{grid-template-columns:1fr}.landing-stats div{border-right:0;border-bottom:1px solid rgba(219,228,240,.9)}.landing-stats div:last-child{border-bottom:0}.gita-quote span{font-size:25px}.lotus-hero-card h1{font-size:42px}}

/* =========================================================
   v2E-0 — Subscription access + daily quota UI
   ========================================================= */
.access-locked{
  text-align:left;
  max-width:880px;
  margin:28px auto;
  background:linear-gradient(135deg,#fff,#f8fbff 72%);
  border-color:#dbeafe;
}
.access-locked .lock-icon{
  width:54px;height:54px;border-radius:18px;
  display:inline-grid;place-items:center;
  background:linear-gradient(135deg,#eef2ff,#f5f3ff);
  border:1px solid #ddd6fe;
  font-size:1.6rem;
  margin-bottom:12px;
}
.access-locked h1{margin:.15rem 0 .55rem;font-size:clamp(1.8rem,3vw,2.7rem);letter-spacing:-.04em}
.access-meter{
  display:flex;gap:10px;flex-wrap:wrap;margin:18px 0;
}
.access-meter span{
  display:inline-flex;align-items:center;
  border:1px solid var(--line,#dbe4f0);
  border-radius:999px;
  padding:7px 11px;
  background:#f8fafc;
  color:#334155;
  font-size:.88rem;
  font-weight:800;
}
.btn.ghost,button.ghost{
  background:#fff;
  color:var(--brand,#2563eb);
  border:1px solid #bfdbfe;
  box-shadow:none;
}
.btn.ghost:hover,button.ghost:hover{background:#eff6ff;color:var(--brand,#2563eb)}
.topnav a[href*="subscriptions"],
.topnav a[href*="login"]{
  font-weight:850;
}

/* =========================================================
   v2E-1 — File-only study page renderer
   ========================================================= */
.study-page .study-head{background:linear-gradient(135deg,#ffffff,#f6f9ff)}
.study-content{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}
.study-content h1,.study-content h2,.study-content h3,.study-content h4{scroll-margin-top:90px}
.study-content h1{margin-top:0;font-size:clamp(30px,4vw,46px);letter-spacing:-.045em}
.study-content h2{margin-top:28px;padding-top:4px;border-top:1px solid #eef2f7}
.study-content h2:first-child{border-top:0;margin-top:0}
.study-content ul,.study-content ol{padding-left:1.35rem}
.study-content li{margin:.45rem 0;color:#1f2937}
.study-content .study-list{margin:12px 0 18px}
.study-table{margin:18px 0}
.study-table td,.study-table th{vertical-align:top}
.study-link{font-weight:850;border-bottom:1px dashed #a78bfa;color:#6d28d9}
.study-link:hover{color:#5b21b6;border-bottom-color:#5b21b6}
.study-toc .toc-h3{margin-left:14px;font-size:.92rem}
.study-code{margin:16px 0;max-height:360px}
.access-locked .lock-icon{font-size:2.3rem;margin-bottom:8px}
.access-meter{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}
.access-meter span{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;background:#f8fafc;color:#334155;padding:6px 11px;font-weight:800;font-size:.88rem}
.btn.ghost{background:#fff;color:var(--brand);border:1px solid #bfdbfe;box-shadow:none}
.btn.ghost:hover{background:#eff6ff;color:var(--brand)}
@media(max-width:720px){.study-content{padding:18px}.study-content table{font-size:.92rem}}

/* =========================================================
   v2E-1a — Study tables, hierarchy lists, cards and columns
   ========================================================= */
.study-table .node-link,
.study-table .page-link,
.study-table .graph-link,
.study-table .study-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:100%;
  font-weight:850;
  line-height:1.35;
}
.study-table td{overflow-wrap:anywhere}
.study-table code{white-space:normal}
.study-hlist{
  margin:.65rem 0 1rem;
  padding-left:1.15rem;
}
.study-hlist .study-hlist{
  margin:.45rem 0 .35rem;
  padding-left:1.35rem;
}
.study-hlist li{
  margin:.38rem 0;
  padding-left:.18rem;
}
.study-hlist li::marker{
  color:var(--brand,#2563eb);
  font-weight:900;
}
.study-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:16px;
  margin:20px 0;
}
.study-info-card{
  position:relative;
  overflow:hidden;
  border:1px solid var(--line,#dbe4f0);
  border-radius:22px;
  padding:18px 18px 16px;
  background:linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}
.study-info-card:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:var(--card-tone,#2563eb);
}
.study-info-card h3{
  margin:0 0 10px;
  font-size:1.08rem;
  letter-spacing:-.02em;
}
.study-info-card p:first-child,
.study-info-card ul:first-child,
.study-info-card ol:first-child{margin-top:0}
.study-info-card p:last-child,
.study-info-card ul:last-child,
.study-info-card ol:last-child{margin-bottom:0}
.study-info-card.tone-blue{--card-tone:#2563eb;background:linear-gradient(135deg,#eff6ff,#fff 75%)}
.study-info-card.tone-purple{--card-tone:#7c3aed;background:linear-gradient(135deg,#f5f3ff,#fff 75%)}
.study-info-card.tone-green{--card-tone:#059669;background:linear-gradient(135deg,#ecfdf5,#fff 75%)}
.study-info-card.tone-amber{--card-tone:#f59e0b;background:linear-gradient(135deg,#fffbeb,#fff 75%)}
.study-info-card.tone-rose{--card-tone:#e11d48;background:linear-gradient(135deg,#fff1f2,#fff 75%)}
.study-info-card.tone-slate{--card-tone:#475569;background:linear-gradient(135deg,#f8fafc,#fff 75%)}
.study-columns{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
  margin:20px 0;
}
.study-column{
  border:1px solid var(--line,#dbe4f0);
  border-radius:20px;
  padding:18px;
  background:rgba(255,255,255,.82);
  box-shadow:var(--shadow-sm,0 6px 18px rgba(15,23,42,.06));
}
.study-column h3{margin:0 0 10px;font-size:1.05rem}
.study-column p:first-child,
.study-column ul:first-child,
.study-column ol:first-child{margin-top:0}
@media(max-width:720px){
  .study-card-grid,.study-columns{grid-template-columns:1fr}
}

/* v2E-2 Bulk node page fresh regenerator */
.bulk-regenerator .stacked-form{
  display:grid;
  gap:12px;
}
.bulk-regenerator .stacked-form label,
.bulk-regenerator .bulk-action-grid label{
  display:grid;
  gap:7px;
  font-weight:850;
  color:var(--text,#0f172a);
}
.bulk-regenerator input,
.bulk-regenerator select{
  width:100%;
  min-height:44px;
  padding:10px 13px;
  border:1px solid #cbd5e1;
  border-radius:14px;
  background:#fff;
  color:var(--text,#0f172a);
  font:inherit;
  outline:none;
}
.bulk-regenerator input:focus,
.bulk-regenerator select:focus{
  border-color:#60a5fa;
  box-shadow:0 0 0 4px rgba(96,165,250,.18);
}
.bulk-regenerator label.check{
  display:flex;
  align-items:center;
  gap:9px;
}
.bulk-regenerator label.check input{
  width:auto;
  min-height:auto;
}
.bulk-regenerator .batch-key{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:14px 0;
  padding:12px 14px;
  border:1px solid var(--line,#dbe4f0);
  border-radius:16px;
  background:#f8fafc;
}
.bulk-regenerator .batch-key span{
  color:var(--muted,#64748b);
  font-size:.82rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.bulk-regenerator .progress-wrap{
  margin:18px 0;
  padding:16px;
  border:1px solid var(--line,#dbe4f0);
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:var(--shadow-sm,0 6px 18px rgba(15,23,42,.06));
}
.bulk-regenerator .progress-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.bulk-regenerator .progress-head strong{
  font-size:1.4rem;
  letter-spacing:-.04em;
}
.bulk-regenerator .progress-head span{
  color:var(--muted,#64748b);
  font-weight:750;
}
.bulk-regenerator .progress-bar{
  height:13px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
}
.bulk-regenerator .progress-bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--brand,#2563eb),var(--brand-2,#7c3aed));
}
.bulk-regenerator .compact-stats .stat-card{
  padding:14px 16px;
}
.bulk-regenerator .compact-stats .stat-card strong{
  font-size:1.35rem;
}
.bulk-regenerator .bulk-action-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
  margin-top:18px;
}
.bulk-regenerator .bulk-action-grid .card{
  margin:0;
}
.bulk-regenerator .danger-button{
  background:linear-gradient(135deg,#dc2626,#f97316)!important;
  color:#fff!important;
  border:0!important;
}
.bulk-regenerator .meta-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border:1px solid var(--line,#dbe4f0);
  border-radius:999px;
  background:#f8fafc;
  color:#334155;
  font-size:.78rem;
  font-weight:850;
  white-space:nowrap;
}
.bulk-regenerator .meta-pill.ok{
  background:#ecfdf5;
  color:#047857;
  border-color:#a7f3d0;
}
.bulk-regenerator .meta-pill.danger{
  background:#fff1f2;
  color:#be123c;
  border-color:#fecdd3;
}
.bulk-regenerator .path-code{
  display:block;
  max-width:100%;
  overflow-wrap:anywhere;
  white-space:normal;
}
.bulk-regenerator .section-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  align-items:end;
}
.bulk-regenerator .inline-filter{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.bulk-regenerator .inline-filter select{
  min-width:min(360px,100%);
}
@media(max-width:720px){
  .bulk-regenerator .section-head{display:block}
  .bulk-regenerator .inline-filter{margin-top:12px}
  .bulk-regenerator .inline-filter select,
  .bulk-regenerator .inline-filter .btn{width:100%}
}

/* =========================================================
   v2E-3 — Storybook Study Renderer + Analogy Books
   ========================================================= */
.study-layout-storybook .study-head,
.study-type-study_book .study-head{
  background:
    radial-gradient(circle at 88% 8%,rgba(124,58,237,.16),transparent 18rem),
    linear-gradient(135deg,#fff,#f7f3ff 58%,#eff6ff);
}
.study-layout-storybook .study-content,
.study-type-study_book .study-content{
  background:linear-gradient(180deg,#fff,#fffaf5 52%,#f8fbff);
  border-color:#e7d8ff;
}
.story-cover{
  position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,34%);gap:24px;align-items:center;
  margin:4px 0 28px;padding:32px;border:1px solid #ddd6fe;border-radius:30px;
  background:radial-gradient(circle at 90% 10%,rgba(124,58,237,.18),transparent 18rem),linear-gradient(135deg,#fff,#f5f3ff 62%,#eff6ff);
  box-shadow:0 26px 70px rgba(79,70,229,.13);
}
.story-cover:before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:linear-gradient(180deg,#7c3aed,#2563eb,#0891b2)}
.story-cover h2{font-size:clamp(2rem,4vw,4rem);line-height:1.02;margin:.2rem 0 .75rem;letter-spacing:-.06em}
.story-cover p{font-size:1.08rem;color:#475569;max-width:720px}.story-cover-image img{width:100%;height:auto;border-radius:24px;box-shadow:0 24px 60px rgba(15,23,42,.14);border:1px solid rgba(255,255,255,.72)}
.story-cover.tone-blue{border-color:#bfdbfe;background:radial-gradient(circle at 90% 10%,rgba(37,99,235,.18),transparent 18rem),linear-gradient(135deg,#fff,#eff6ff)}
.story-cover.tone-green{border-color:#bbf7d0;background:radial-gradient(circle at 90% 10%,rgba(5,150,105,.16),transparent 18rem),linear-gradient(135deg,#fff,#ecfdf5)}
.story-cover.tone-amber{border-color:#fde68a;background:radial-gradient(circle at 90% 10%,rgba(245,158,11,.18),transparent 18rem),linear-gradient(135deg,#fff,#fffbeb)}
.study-figure{margin:22px 0;border-radius:22px;overflow:hidden}.study-figure img{display:block;width:100%;height:auto}.study-figure.frame-soft{padding:10px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-sm)}.study-figure.frame-border{border:1px solid var(--line);background:#fff}.study-figure.frame-none{box-shadow:none;border:0;background:transparent}.study-figure figcaption{display:grid;gap:4px;padding:10px 4px 2px;color:#64748b;font-size:.9rem}.study-figure figcaption strong{color:#0f172a}.study-figure.size-small{max-width:260px}.study-figure.size-medium{max-width:420px}.study-figure.size-large{max-width:680px}.study-figure.size-full{max-width:100%}.study-figure.align-left{float:left;margin:6px 22px 18px 0}.study-figure.align-right{float:right;margin:6px 0 18px 22px}.study-figure.align-center{margin-left:auto;margin-right:auto}.study-figure.align-full{max-width:100%;clear:both}
.story-scene{position:relative;clear:both;margin:28px 0;padding:26px 28px;border:1px solid #dbeafe;border-radius:28px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 18px 44px rgba(15,23,42,.07)}
.story-scene:before{content:"";position:absolute;left:0;top:22px;bottom:22px;width:6px;border-radius:999px;background:linear-gradient(180deg,#2563eb,#7c3aed)}
.story-scene-ribbon{display:inline-flex;margin-bottom:8px;padding:4px 10px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:.75rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.story-scene h2{margin:0 0 12px;border:0!important;padding:0!important}.story-scene.tone-green:before{background:#059669}.story-scene.tone-amber:before{background:#f59e0b}.story-scene.tone-rose:before{background:#e11d48}.story-scene.tone-purple:before{background:#7c3aed}
.analogy-map{clear:both;margin:26px 0;padding:24px;border:1px solid #ddd6fe;border-radius:28px;background:radial-gradient(circle at 100% 0%,rgba(124,58,237,.10),transparent 18rem),linear-gradient(180deg,#fff,#f8f7ff);box-shadow:0 16px 42px rgba(79,70,229,.09)}.analogy-map.book-analogy{border-color:#bfdbfe;background:radial-gradient(circle at 100% 0%,rgba(37,99,235,.12),transparent 18rem),linear-gradient(180deg,#fff,#f5f9ff)}.analogy-map-head h2{margin:0 0 16px;border:0!important;padding:0!important}.analogy-pairs{display:grid;gap:10px}.analogy-pair{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);gap:10px;align-items:center}.analogy-left,.analogy-right{padding:12px 14px;border-radius:16px;border:1px solid #e2e8f0;background:#fff;font-weight:850}.analogy-left{color:#4c1d95;background:#faf5ff;border-color:#e9d5ff}.analogy-right{color:#075985;background:#f0f9ff;border-color:#bae6fd}.analogy-arrow{display:grid;place-items:center;width:38px;height:38px;border-radius:999px;background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff;font-weight:900}
.story-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin:22px 0}.story-info-card{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:24px;padding:20px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 16px 38px rgba(15,23,42,.07)}.story-info-card:before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:var(--card-tone,#2563eb)}.story-info-card h3{margin:0 0 10px}.story-card-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:15px;background:#eef2ff;margin-bottom:12px;font-weight:900}.story-info-card.tone-blue{--card-tone:#2563eb;background:linear-gradient(135deg,#eff6ff,#fff 76%)}.story-info-card.tone-purple{--card-tone:#7c3aed;background:linear-gradient(135deg,#f5f3ff,#fff 76%)}.story-info-card.tone-green{--card-tone:#059669;background:linear-gradient(135deg,#ecfdf5,#fff 76%)}.story-info-card.tone-amber{--card-tone:#f59e0b;background:linear-gradient(135deg,#fffbeb,#fff 76%)}.story-info-card.tone-rose{--card-tone:#e11d48;background:linear-gradient(135deg,#fff1f2,#fff 76%)}.story-info-card.tone-slate{--card-tone:#475569;background:linear-gradient(135deg,#f8fafc,#fff 76%)}
.story-journey{clear:both;margin:28px 0;padding:24px;border:1px solid #c7d2fe;border-radius:26px;background:linear-gradient(180deg,#fff,#f8faff)}.story-journey h2{margin-top:0;border:0!important;padding:0!important}.story-journey ol{display:flex;gap:12px;flex-wrap:wrap;counter-reset:journey;list-style:none!important;padding:0!important;margin:14px 0 0!important}.story-journey li{counter-increment:journey;display:flex;align-items:center;gap:8px;margin:0!important}.story-journey li:before{content:counter(journey);display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:#2563eb;color:#fff;font-weight:900}.story-journey li span{padding:9px 12px;border:1px solid #dbeafe;border-radius:999px;background:#fff;font-weight:800}.story-journey li:not(:last-child):after{content:"→";color:#64748b;font-weight:900}
.concept-portal{clear:both;margin:28px 0;padding:24px;border:1px solid #dbeafe;border-radius:26px;background:linear-gradient(180deg,#fff,#f8fbff)}.concept-portal h2{margin-top:0;border:0!important;padding:0!important}.portal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.portal-card{padding:14px 16px;border:1px solid #dbeafe;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04);font-weight:850}.portal-card a{display:inline-flex;max-width:100%;overflow-wrap:anywhere}.story-side-note{clear:both;margin:22px 0;padding:18px 20px;border:1px solid #fde68a;border-left:6px solid #f59e0b;border-radius:22px;background:#fffbeb;color:#78350f}.story-side-note h3{margin:0 0 8px;color:#78350f}.story-side-note.tone-blue{border-color:#bfdbfe;border-left-color:#2563eb;background:#eff6ff;color:#1e3a8a}.story-side-note.tone-purple{border-color:#ddd6fe;border-left-color:#7c3aed;background:#f5f3ff;color:#4c1d95}.story-side-note.tone-green{border-color:#bbf7d0;border-left-color:#059669;background:#ecfdf5;color:#064e3b}.story-side-note.tone-rose{border-color:#fecdd3;border-left-color:#e11d48;background:#fff1f2;color:#881337}.study-glossary{clear:both;margin:28px 0;padding:24px;border:1px solid var(--line);border-radius:26px;background:#fff}.study-glossary h2{margin-top:0;border:0!important;padding:0!important}.study-glossary dl{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);gap:10px 14px;margin:0}.study-glossary dt{font-weight:900;color:#0f172a;padding:10px 12px;border-radius:14px;background:#f8fafc}.study-glossary dd{margin:0;padding:10px 12px;border-radius:14px;background:#fff;border:1px solid #eef2f7}
@media(max-width:900px){.story-cover{grid-template-columns:1fr}.study-figure.align-left,.study-figure.align-right{float:none;margin:18px auto}.analogy-pair{grid-template-columns:1fr}.analogy-arrow{margin:auto;transform:rotate(90deg)}.story-journey ol{display:grid}.story-journey li:not(:last-child):after{display:none}.study-glossary dl{grid-template-columns:1fr}}
@media(max-width:640px){.story-cover,.story-scene,.analogy-map,.story-journey,.concept-portal,.study-glossary{padding:18px;border-radius:20px}.portal-grid,.story-card-grid{grid-template-columns:1fr}}

/* =========================================================
   v2E-3a — Study Asset Resolver + Icon/Media Support
   ========================================================= */
.study-icon{
  display:inline-grid;
  place-items:center;
  vertical-align:middle;
  flex:0 0 auto;
  overflow:hidden;
  color:inherit;
}
.study-icon img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.study-icon-inline{
  width:1.35em;
  height:1.35em;
  margin:0 .28em .12em;
  border-radius:.35em;
}
.study-icon-large{
  width:72px;
  height:72px;
  border-radius:24px;
  background:#eef2ff;
  border:1px solid #ddd6fe;
  box-shadow:0 12px 26px rgba(79,70,229,.10);
}
.study-icon-block{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin:14px 0;
  padding:12px 14px;
  border:1px solid var(--line,#dbe4f0);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow-sm,0 6px 18px rgba(15,23,42,.06));
  font-weight:850;
}
.story-cover-icon{
  width:64px;
  height:64px;
  margin-bottom:12px;
  border-radius:22px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(221,214,254,.9);
  box-shadow:0 18px 34px rgba(79,70,229,.14);
}
.story-scene-heading{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}
.story-scene-icon{
  width:52px;
  height:52px;
  border-radius:18px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  box-shadow:0 10px 22px rgba(37,99,235,.10);
}
.story-card-icon{
  width:46px;
  height:46px;
  border-radius:16px;
  background:#eef2ff;
  border:1px solid #ddd6fe;
  margin-bottom:12px;
  font-weight:900;
  color:#4338ca;
}
.story-info-card.tone-blue .story-card-icon,.story-scene.tone-blue .story-scene-icon{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.story-info-card.tone-purple .story-card-icon,.story-scene.tone-purple .story-scene-icon{background:#f5f3ff;border-color:#ddd6fe;color:#7c3aed}
.story-info-card.tone-green .story-card-icon,.story-scene.tone-green .story-scene-icon{background:#ecfdf5;border-color:#bbf7d0;color:#059669}
.story-info-card.tone-amber .story-card-icon,.story-scene.tone-amber .story-scene-icon{background:#fffbeb;border-color:#fde68a;color:#b45309}
.story-info-card.tone-rose .story-card-icon,.story-scene.tone-rose .story-scene-icon{background:#fff1f2;border-color:#fecdd3;color:#e11d48}
.story-info-card.tone-slate .story-card-icon,.story-scene.tone-slate .story-scene-icon{background:#f8fafc;border-color:#cbd5e1;color:#475569}
.study-media-file{
  display:grid;
  place-items:center;
  min-height:120px;
  padding:22px;
  border:1px dashed var(--line,#dbe4f0);
  border-radius:18px;
  background:#f8fafc;
}
.study-figure img[loading="lazy"],
.story-cover-image img[loading="lazy"]{
  background:#f8fafc;
}
@media(max-width:640px){
  .story-scene-heading{gap:10px}
  .story-scene-icon{width:44px;height:44px;border-radius:15px}
  .story-cover-icon{width:54px;height:54px;border-radius:18px}
}

/* =========================================================
   v2E-3c — Study hierarchy block rendering
   Supports <hierarchy>, legacy typo <heirarchy>, and <tree>
   ========================================================= */
.study-hierarchy-block{
  margin:24px 0;
  padding:22px;
  border:1px solid var(--line,#dbe4f0);
  border-radius:24px;
  background:
    radial-gradient(circle at 92% 0%,rgba(37,99,235,.10),transparent 18rem),
    linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:var(--shadow-sm,0 6px 18px rgba(15,23,42,.06));
}
.study-hierarchy-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
}
.study-hierarchy-head h2{margin:0;}
.study-hierarchy-icon{width:44px;height:44px;}
.study-hierarchy-tree{
  overflow:auto;
  padding:4px 0;
}
.study-hierarchy-tree ul,
.study-hierarchy-tree ol{
  list-style:none;
  margin:0;
  padding-left:0;
}
.study-hierarchy-tree li{
  position:relative;
  margin:0;
  padding:8px 0 8px 34px;
}
.study-hierarchy-tree li::before{
  content:"";
  position:absolute;
  left:10px;
  top:0;
  bottom:0;
  width:2px;
  background:#dbeafe;
}
.study-hierarchy-tree li::after{
  content:"";
  position:absolute;
  left:10px;
  top:23px;
  width:18px;
  height:2px;
  background:#dbeafe;
}
.study-hierarchy-tree li:last-child::before{height:24px;bottom:auto;}
.study-hierarchy-tree li > span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 12px;
  border:1px solid #bfdbfe;
  border-radius:999px;
  background:#fff;
  color:#0f172a;
  font-weight:850;
  box-shadow:0 8px 18px rgba(37,99,235,.06);
}
.study-hierarchy-tree li li > span{background:#f8fbff;}
.study-hierarchy-tree li li li > span{background:#f5f3ff;border-color:#ddd6fe;}
.study-hierarchy-tree li li li li > span{background:#ecfdf5;border-color:#a7f3d0;}
.study-hierarchy-tree li li li li li > span{background:#fffbeb;border-color:#fde68a;}
.study-hierarchy-tree li li li li li li > span{background:#fff1f2;border-color:#fecdd3;}
@media(max-width:720px){
  .study-hierarchy-block{padding:18px;}
  .study-hierarchy-tree li{padding-left:26px;}
  .study-hierarchy-tree li > span{white-space:normal;border-radius:14px;}
}


/* v2E-3m — Study table inline link line-break polish */
.study-table td .page-link,
.study-table td .node-link,
.study-table td .study-link,
.study-table td .graph-link {
  display:inline-block;
  margin:2px 0;
}
.study-table td br {
  display:block;
  content:"";
  margin:.16rem 0;
}

/* =========================================================
   v2E-3p — Landing layout stack + daily shloka renderer
   ========================================================= */
.landing-recent-stack{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  margin-top:18px;
}
.landing-recent-stack .recent-panel{
  width:100%;
}
.landing-recent-stack .recent-mini-list{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
.landing-recent-stack .study-recent-item{
  align-items:flex-start;
  min-height:116px;
}
.study-recent-item em{display:none}
.study-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}
.study-card-meta b{
  display:inline-flex;
  align-items:center;
  border:1px solid #dbeafe;
  border-radius:999px;
  padding:3px 8px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:11px;
  line-height:1.3;
  font-weight:900;
}
.wisdom-shloka-card{
  text-align:left;
  overflow:hidden;
  position:relative;
}
.wisdom-shloka-card .lotus-mini{
  margin-left:0;
}
.daily-shloka{
  position:relative;
}
.shloka-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.shloka-top span{
  color:#6d28d9;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
}
.shloka-top em{
  font-style:normal;
  border:1px solid #e9d5ff;
  border-radius:999px;
  padding:4px 9px;
  background:#faf5ff;
  color:#6d28d9;
  font-size:12px;
  font-weight:900;
}
.daily-shloka blockquote{
  margin:0;
  color:#312e81;
  font-family:"Noto Serif Devanagari","Noto Sans Devanagari",Georgia,serif;
  font-size:clamp(30px,4.2vw,58px);
  line-height:1.2;
  letter-spacing:-.03em;
  overflow-wrap:anywhere;
}
.daily-shloka cite{
  display:block;
  margin-top:10px;
  color:#475569;
  font-style:normal;
  font-weight:900;
}
.shloka-translit{
  margin:12px 0 0;
  color:#64748b;
  font-size:15px;
  font-style:italic;
}
.shloka-english{
  margin:12px 0 18px;
  color:#334155;
  font-size:18px;
  line-height:1.55;
  font-weight:650;
}
.daily-shloka-compact{
  margin:18px auto 0;
  max-width:860px;
  padding:16px 18px;
  border:1px solid rgba(255,255,255,.62);
  border-radius:22px;
  background:rgba(255,255,255,.62);
  box-shadow:0 16px 34px rgba(15,23,42,.06);
  backdrop-filter:blur(10px);
  text-align:center;
}
.daily-shloka-compact blockquote{
  font-size:clamp(24px,3.2vw,42px);
  color:#3b3560;
}
.daily-shloka-compact cite{
  margin-top:7px;
}
.daily-shloka-compact .shloka-english{
  margin:6px 0 0;
  font-size:15px;
  color:#58677d;
}
@media(max-width:1050px){
  .landing-recent-stack .recent-mini-list{grid-template-columns:1fr}
}
@media(max-width:760px){
  .daily-shloka blockquote{font-size:30px}
  .daily-shloka-compact blockquote{font-size:25px}
  .study-card-meta b{font-size:10px}
}

/* v2E-3q: Study icon table + icon grid blocks */
.study-icon-table-block,
.study-icon-grid-block{
  margin:28px 0;
  padding:22px;
  border:1px solid rgba(219,228,240,.94);
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:var(--shadow-sm,0 6px 18px rgba(15,23,42,.06));
}
.study-icon-table-head,
.study-icon-grid-head{margin-bottom:16px}
.study-icon-table-head h2,
.study-icon-grid-head h2{margin:.2rem 0 0;letter-spacing:-.035em}
.study-icon-table td{vertical-align:middle}
.icon-table-icon{min-width:150px}
.icon-table-icon code{display:block;margin-top:8px;max-width:190px;white-space:normal;overflow-wrap:anywhere;font-size:.76rem;color:#475569;background:#f8fafc}
.study-icon.study-icon-table-img{width:56px;height:56px;border-radius:18px;background:#eef6ff;border:1px solid #dbeafe;box-shadow:0 10px 24px rgba(37,99,235,.08)}
.study-icon.study-icon-table-img img{width:34px;height:34px;object-fit:contain}
.icon-table-concept{font-weight:850;color:#172554}
.icon-table-analogy{color:#334155}
.study-icon-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
.study-icon-grid-link{text-decoration:none;color:inherit;display:block}
.study-icon-grid-link:hover{text-decoration:none;color:inherit}
.study-icon-grid-item{height:100%;padding:18px;border:1px solid #dbeafe;border-radius:20px;background:#fff;box-shadow:0 10px 26px rgba(15,23,42,.055);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.study-icon-grid-link:hover .study-icon-grid-item{transform:translateY(-2px);box-shadow:0 18px 36px rgba(37,99,235,.12);border-color:#bfdbfe}
.study-icon-grid-item h3{margin:10px 0 8px;font-size:1.08rem;line-height:1.25}
.study-icon-grid-text p{margin:.35rem 0 0;color:#475569;font-size:.94rem;line-height:1.55}
.study-icon.study-icon-grid-img{width:64px;height:64px;border-radius:22px;background:linear-gradient(135deg,#eff6ff,#fff);border:1px solid #dbeafe;box-shadow:0 14px 30px rgba(37,99,235,.10)}
.study-icon.study-icon-grid-img img{width:40px;height:40px;object-fit:contain}
.study-icon-grid-item.tone-purple .study-icon-grid-img,.study-icon-table-block.tone-purple .study-icon-table-img{background:#f5f3ff;border-color:#ddd6fe}
.study-icon-grid-item.tone-green .study-icon-grid-img,.study-icon-table-block.tone-green .study-icon-table-img{background:#ecfdf5;border-color:#a7f3d0}
.study-icon-grid-item.tone-amber .study-icon-grid-img,.study-icon-table-block.tone-amber .study-icon-table-img{background:#fffbeb;border-color:#fde68a}
.study-icon-grid-item.tone-rose .study-icon-grid-img,.study-icon-table-block.tone-rose .study-icon-table-img{background:#fff1f2;border-color:#fecdd3}
.study-icon-grid-item.tone-slate .study-icon-grid-img,.study-icon-table-block.tone-slate .study-icon-table-img{background:#f8fafc;border-color:#cbd5e1}
@media(max-width:720px){
  .study-icon-table-block,.study-icon-grid-block{padding:16px;border-radius:18px}
  .study-icon-grid{grid-template-columns:1fr}
  .icon-table-icon{min-width:120px}
}

/* v2E-3r: Study book table-of-contents sidebar */
.study-reading-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:22px;
  align-items:start;
}
.study-reading-layout.has-book-toc{
  grid-template-columns:260px minmax(0,1fr);
}
.study-reading-layout.has-book-toc.has-page-toc{
  grid-template-columns:250px minmax(0,1fr) 280px;
}
.study-main-column{min-width:0}
.study-book-sidebar,
.study-page-sidebar{position:sticky;top:86px;align-self:start}
.study-book-toc-inner{
  border:1px solid rgba(219,228,240,.94);
  border-radius:22px;
  background:rgba(255,255,255,.92);
  box-shadow:var(--shadow-sm,0 6px 18px rgba(15,23,42,.06));
  padding:18px;
}
.study-book-toc h2{margin:4px 0 8px;font-size:1.08rem;letter-spacing:-.025em}
.study-book-toc-summary{margin:0 0 12px;color:var(--muted,#64748b);font-size:.9rem;line-height:1.5}
.study-book-toc-section{
  margin:16px 0 7px;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#475569;
}
.study-book-toc-list,
.study-book-toc-list ul{list-style:none;margin:0;padding-left:0}
.study-book-toc-list ul{margin:5px 0 5px 12px;padding-left:10px;border-left:1px solid #e2e8f0}
.study-book-toc-list li{margin:3px 0;padding:0}
.study-book-toc-list a,
.study-book-toc-list span{
  display:block;
  padding:7px 9px;
  border-radius:12px;
  color:#334155;
  font-weight:750;
  font-size:.9rem;
  line-height:1.35;
  text-decoration:none;
}
.study-book-toc-list a:hover{background:#eff6ff;color:var(--brand,#2563eb)}
.study-book-toc-list li.active>a{
  background:linear-gradient(135deg,var(--brand,#2563eb),#1d4ed8);
  color:#fff;
  box-shadow:0 10px 22px rgba(37,99,235,.18);
}
@media(max-width:1180px){
  .study-reading-layout.has-book-toc.has-page-toc{grid-template-columns:240px minmax(0,1fr)}
  .study-reading-layout.has-book-toc.has-page-toc .study-page-sidebar{grid-column:1 / -1;position:static}
}
@media(max-width:900px){
  .study-reading-layout,
  .study-reading-layout.has-book-toc,
  .study-reading-layout.has-book-toc.has-page-toc{grid-template-columns:1fr}
  .study-book-sidebar,.study-page-sidebar{position:static}
}

/* v2E-3s: linked SVG map block */
.study-svg-map{margin:28px 0;padding:22px;border:1px solid var(--line,#dbe4f0);border-radius:24px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:var(--shadow-sm,0 6px 18px rgba(15,23,42,.06))}
.study-svg-map-head{margin-bottom:14px}.study-svg-map-head h2{margin:.15rem 0 0;font-size:clamp(1.4rem,2.3vw,2rem);letter-spacing:-.035em}.study-svg-map-frame{width:100%;height:var(--svg-map-height,520px);border:1px solid #dbeafe;border-radius:20px;overflow:hidden;background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.study-svg-map-frame object,.study-svg-map-frame iframe,.study-svg-map-frame img{display:block;width:100%;height:100%;border:0;object-fit:contain;background:#fff}.study-svg-map-caption{margin-top:12px;color:#334155}.study-svg-map-caption p{margin:.35rem 0}.study-svg-map-note{padding:10px 12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:14px;color:#9a3412}.study-svg-map-actions{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}.study-svg-map.size-medium{max-width:820px}.study-svg-map.size-large{max-width:1080px}.study-svg-map.size-full{width:100%}
@media(max-width:720px){.study-svg-map{padding:16px;border-radius:18px}.study-svg-map-frame{height:min(var(--svg-map-height,520px),70vh)}}

/* v2E-3t: automatic study folder link blocks */
.study-folder-links {
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
  padding: 1.35rem;
  margin: 1.35rem 0;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}
.study-folder-links-head { margin-bottom: 1rem; }
.study-folder-links-head h2 { margin: .15rem 0 0; }
.study-folder-links-summary,
.study-folder-links-note { color: #475569; margin: .35rem 0 1rem; }
.study-folder-auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .8rem;
}
.study-folder-auto-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-height: 92px;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.study-folder-auto-card:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, .42);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}
.study-folder-auto-card strong {
  color: #5b21b6;
  font-size: 1.02rem;
  line-height: 1.25;
}
.study-folder-auto-card small {
  color: #64748b;
  line-height: 1.35;
}
.study-folder-auto-kind {
  width: fit-content;
  border-radius: 999px;
  padding: .18rem .48rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #1d4ed8;
  background: #eff6ff;
}
.study-folder-auto-card.kind-folder .study-folder-auto-kind { color: #6d28d9; background: #f5f3ff; }
.study-folder-auto-card.level-1 { margin-left: .35rem; }
.study-folder-auto-card.level-2 { margin-left: .7rem; }
.study-folder-links.mode-compact .study-folder-auto-card { min-height: auto; padding: .85rem 1rem; }
.study-folder-auto-list {
  list-style: none;
  padding: 0;
  margin: .25rem 0 0;
  display: grid;
  gap: .45rem;
}
.study-folder-auto-list li {
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  padding: .68rem .8rem;
}
.study-folder-auto-list li.level-1 { margin-left: 1rem; }
.study-folder-auto-list li.level-2 { margin-left: 2rem; }
.study-folder-auto-list a {
  color: #5b21b6;
  font-weight: 800;
  text-decoration: none;
}
.study-folder-auto-list span {
  display: block;
  color: #64748b;
  margin-top: .15rem;
  font-size: .9rem;
}
@media (max-width: 760px) {
  .study-folder-links { padding: 1rem; border-radius: 18px; }
  .study-folder-auto-grid { grid-template-columns: 1fr; }
  .study-folder-auto-card.level-1,
  .study-folder-auto-card.level-2,
  .study-folder-auto-list li.level-1,
  .study-folder-auto-list li.level-2 { margin-left: 0; }
}

/* v2E-3t2: study-folder icon / image browsing cards */
.study-folder-auto-card.has-visual {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: .85rem;
  min-height: 104px;
}
.study-folder-auto-card-body,
.study-folder-auto-list-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.study-folder-auto-visual {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid rgba(37, 99, 235, .16);
  color: #5b21b6;
  font-weight: 950;
  font-size: 1.35rem;
}
.study-folder-auto-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.study-folder-auto-visual.visual-image img {
  object-fit: cover;
}
.study-folder-auto-visual.visual-icon img {
  width: 68%;
  height: 68%;
}
.study-folder-auto-visual.visual-glyph.kind-folder {
  background: linear-gradient(135deg, #faf5ff, #eff6ff);
  color: #7c3aed;
}
.study-folder-auto-visual.visual-glyph.kind-page {
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  color: #2563eb;
}
.study-folder-links.mode-compact .study-folder-auto-card.has-visual {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: auto;
}
.study-folder-links.mode-compact .study-folder-auto-visual {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 1rem;
}
.study-folder-auto-list li.has-visual {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
}
.study-folder-auto-visual.is-small {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 1rem;
}
.study-folder-auto-visual.is-small.visual-icon img {
  width: 68%;
  height: 68%;
}
@media (max-width: 760px) {
  .study-folder-auto-card.has-visual {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 88px;
  }
  .study-folder-auto-visual {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
}

/* v2E-3u — Inline image/icon syntax for study tables and text */
.study-inline-asset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}
.study-inline-asset img {
  display: block;
  object-fit: contain;
}
.study-inline-icon img {
  width: 52px;
  height: 52px;
  max-width: 5rem;
  max-height: 5rem;
}
.study-inline-image img,
.study-inline-media img {
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 110px;
  border-radius: 12px;
}
.study-table td .study-inline-icon,
.study-table th .study-inline-icon {
  display: flex;
  margin: .2rem auto .35rem;
}
.study-table td .study-inline-icon img,
.study-table th .study-inline-icon img {
  width: 64px;
  height: 64px;
  max-width: 72px;
  max-height: 72px;
}
.study-table td .study-inline-image,
.study-table td .study-inline-media,
.study-table th .study-inline-image,
.study-table th .study-inline-media {
  display: flex;
  margin: .25rem auto .4rem;
}
.study-table td .study-inline-image img,
.study-table td .study-inline-media img,
.study-table th .study-inline-image img,
.study-table th .study-inline-media img {
  max-width: 140px;
  max-height: 96px;
}
.study-inline-asset-missing {
  display: inline-block;
  padding: .15rem .4rem;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, .7);
  color: #64748b;
  font-size: .78em;
  background: rgba(248, 250, 252, .85);
}
@media (max-width: 720px) {
  .study-inline-icon img,
  .study-table td .study-inline-icon img,
  .study-table th .study-inline-icon img {
    width: 48px;
    height: 48px;
  }
  .study-inline-image img,
  .study-inline-media img,
  .study-table td .study-inline-image img,
  .study-table td .study-inline-media img {
    max-width: 110px;
    max-height: 82px;
  }
}
