/* Pllan Tech Light / Dark Mode */
html[data-theme="light"]{
  --bg:#f8fafc !important;
  --bg2:#eef5ff !important;
  --card:#ffffff !important;
  --muted:#475569 !important;
  --text:#0f172a !important;
  --line:rgba(15,23,42,.13) !important;
  --shadow:0 18px 48px rgba(15,23,42,.10) !important;
  color-scheme:light;
}
html[data-theme="dark"]{color-scheme:dark;}
html[data-theme="light"] body{
  background:radial-gradient(circle at top left,rgba(52,211,255,.14),transparent 30%),radial-gradient(circle at 80% 20%,rgba(124,92,255,.12),transparent 28%),var(--bg) !important;
  color:var(--text) !important;
}
html[data-theme="light"] .nav{background:rgba(255,255,255,.84) !important;border-bottom-color:var(--line) !important;}
html[data-theme="light"] .hero-card,
html[data-theme="light"] .card,
html[data-theme="light"] .tool-box{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,250,252,.92)) !important;}
html[data-theme="light"] .tool-card,
html[data-theme="light"] .stat{background:rgba(255,255,255,.82) !important;}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .result{background:#ffffff !important;color:var(--text) !important;}
html[data-theme="light"] label{color:#0f172a !important;}
html[data-theme="light"] .note{color:#075985 !important;background:rgba(14,165,233,.10) !important;}
html[data-theme="light"] .footer{background:rgba(241,245,249,.78) !important;}
html[data-theme="light"] p,
html[data-theme="light"] .muted{color:var(--muted) !important;}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--text);font:inherit;font-weight:900;cursor:pointer;box-shadow:none;white-space:nowrap;transition:transform .18s ease,background .18s ease,border-color .18s ease;z-index:50;}
.theme-toggle:hover{transform:translateY(-1px);border-color:rgba(52,211,255,.45);background:rgba(52,211,255,.10);}
.theme-toggle-icon{font-size:1rem;line-height:1}.theme-toggle-text{font-size:.88rem}
html[data-theme="light"] .theme-toggle{background:#ffffff;color:#0f172a;}
@media(max-width:860px){.nav-inner{height:auto !important;min-height:76px;padding:12px 0;flex-wrap:wrap}.theme-toggle{margin-inline-start:auto}.theme-toggle-text{display:inline}.nav-links{display:none}}