@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@600;700&family=Inter:wght@400;500;600;700;800&display=swap');
/* app.css — Debnath Electronic portal shell.
   Phones (≤ 900px): Android / Material-style app — coloured top app bar,
   left navigation drawer, bottom navigation bar, ripples, installable (PWA).
   Computers (> 900px): WordPress-style — dark admin bar ("Howdy, …") and
   dark left sidebar for logged-in users; a classic theme header for visitors.
   Everything is namespaced "dn-" so page styles aren't disturbed. */

:root {
  --dn-primary: #1a73e8;        /* Android app bar / accents */
  --dn-primary-dark: #1557b0;
  --dn-on-primary: #ffffff;
  --dn-surface: #ffffff;
  --dn-ink: #1f2937;
  --dn-muted: #6b7280;
  --dn-indicator: #d3e3fd;      /* Material 3 active pill */
  --dn-appbar-h: 56px;
  --dn-bottom-h: 64px;
  --dn-wp-bar: #1d2327;         /* WordPress admin colours */
  --dn-wp-bar-h: 32px;
  --dn-wp-side: #1d2327;
  --dn-wp-side-w: 180px;
  --dn-wp-side-w-collapsed: 44px;
  --dn-wp-hover: #2c3338;
  --dn-wp-text: #f0f0f1;
  --dn-wp-muted: #a7aaad;
  --dn-wp-blue: #2271b1;
  --dn-wp-blue-light: #72aee6;
  --dn-safe-top: env(safe-area-inset-top, 0px);
  --dn-safe-bottom: env(safe-area-inset-bottom, 0px);
  --dn-top-offset: 0px;         /* height of fixed top chrome — set per layout below */
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--dn-top-offset) + 60px); }
img, video, canvas { max-width: 100%; }
.site-nav { display: none !important; }
.dn-hide { display: none !important; }
body { -webkit-tap-highlight-color: transparent; }

/* ═══════════════ Shared pieces ═══════════════ */
.dn-avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--dn-primary); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.dn-role { font-size: 0.6rem; font-weight: 800; padding: 2px 7px; border-radius: 20px; background: #e5e7eb; color: #374151; text-transform: uppercase; letter-spacing: .04em; }
.dn-role.admin { background: #fde68a; color: #78350f; }
.dn-bubble { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d63638; color: #fff; font-size: 0.66rem; font-weight: 700; align-items: center; justify-content: center; line-height: 1; }
.dn-banner { font-size: 0.8rem; font-weight: 700; text-align: center; padding: 8px 14px; }
.dn-banner.warn { background: #fef3c7; color: #92400e; }
.dn-banner a { color: inherit; }

/* Ripple (Android touch feedback) */
.dn-ripple-host { position: relative; overflow: hidden; }
.dn-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .18; pointer-events: none; animation: dn-ripple .5s ease-out forwards; }
@keyframes dn-ripple { to { transform: scale(2.6); opacity: 0; } }

/* ═══════════════ PHONES — Android app ═══════════════ */
@media (max-width: 900px) {
  :root { --dn-top-offset: calc(var(--dn-appbar-h) + var(--dn-safe-top)); }
  body.dn-shell { padding-top: var(--dn-top-offset); }
  body.dn-shell.dn-has-bottom:not(.dn-no-tabbar) { padding-bottom: calc(var(--dn-bottom-h) + var(--dn-safe-bottom)); }
  .dn-wpbar, .dn-wpside, .dn-wphead, .dn-wpbanner-desktop { display: none !important; }
  body.dn-shell.dn-banner-on { padding-top: calc(var(--dn-top-offset) + 34px); }

  /* Top app bar */
  .dn-appbar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; padding-top: var(--dn-safe-top);
    background: var(--dn-primary); color: var(--dn-on-primary); box-shadow: 0 2px 6px rgba(0, 0, 0, .22); }
  .dn-appbar-inner { height: var(--dn-appbar-h); display: flex; align-items: center; gap: 4px; padding: 0 4px; }
  .dn-icon-btn { width: 48px; height: 48px; border-radius: 50%; border: none; background: transparent; color: inherit; font-size: 1.35rem;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; text-decoration: none; }
  .dn-appbar-title { flex: 1; min-width: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
  .dn-appbar-sub { display: block; font-size: 0.7rem; font-weight: 500; opacity: .85; }
  .dn-appbar .dn-avatar { width: 32px; height: 32px; font-size: 0.85rem; }
  .dn-appbar-login { color: #fff; text-decoration: none; font-weight: 700; font-size: 0.85rem; padding: 8px 14px; border-radius: 20px; background: rgba(255, 255, 255, .16); margin-right: 8px; }
  .dn-appbar .dn-banner { position: relative; }

  /* Navigation drawer (from the left, Material 3) */
  .dn-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 94; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .dn-drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(304px, 84vw); background: var(--dn-surface); z-index: 95;
    transform: translateX(-105%); transition: transform .25s cubic-bezier(.2, 0, 0, 1); display: flex; flex-direction: column;
    border-radius: 0 16px 16px 0; box-shadow: 4px 0 24px rgba(0, 0, 0, .25); padding-bottom: var(--dn-safe-bottom); }
  body.dn-menu-open { overflow: hidden; }
  body.dn-menu-open .dn-scrim { opacity: 1; pointer-events: auto; }
  body.dn-menu-open .dn-drawer { transform: none; }
  .dn-drawer-head { background: var(--dn-primary); color: #fff; padding: calc(20px + var(--dn-safe-top)) 18px 16px; border-radius: 0 16px 0 0; }
  .dn-drawer-head .dn-avatar { width: 52px; height: 52px; font-size: 1.3rem; margin-bottom: 10px; }
  .dn-drawer-name { font-weight: 700; font-size: 1rem; }
  .dn-drawer-meta { font-size: 0.78rem; opacity: .9; display: flex; gap: 6px; align-items: center; margin-top: 2px; }
  .dn-drawer-list { flex: 1; overflow-y: auto; padding: 8px 12px; }
  .dn-drawer-section { font-size: 0.72rem; font-weight: 700; color: var(--dn-muted); margin: 14px 16px 6px; }
  .dn-drawer-link { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 16px; border-radius: 26px; color: var(--dn-ink);
    text-decoration: none; font-weight: 600; font-size: 0.92rem; border: none; background: none; width: 100%; font-family: inherit; cursor: pointer; text-align: left; }
  .dn-drawer-link.active { background: var(--dn-indicator); color: #041e49; }
  .dn-drawer-link .dn-ico { width: 24px; text-align: center; font-size: 1.15rem; }
  .dn-drawer-link .dn-bubble { margin-left: auto; }
  .dn-drawer-foot { padding: 8px 12px 12px; border-top: 1px solid #e5e7eb; }
  .dn-drawer-link.danger { color: #b3261e; }

  /* Bottom navigation (Material 3) */
  .dn-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #f3f6fc; border-top: 1px solid #e3e8ef;
    padding-bottom: var(--dn-safe-bottom); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  body.dn-no-tabbar .dn-bottom { display: none; }
  .dn-tab { height: var(--dn-bottom-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: #44474e; text-decoration: none; font-size: 0.7rem; font-weight: 600; background: none; border: none; cursor: pointer; font-family: inherit; }
  .dn-tab-ico { width: 56px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; transition: background .2s; position: relative; }
  .dn-tab.active { color: #041e49; font-weight: 800; }
  .dn-tab.active .dn-tab-ico { background: var(--dn-indicator); }
  .dn-tab .dn-bubble { position: absolute; top: -2px; right: 8px; }
  body.dn-has-bottom:not(.dn-no-tabbar) #toast { bottom: calc(var(--dn-bottom-h) + var(--dn-safe-bottom) + 12px) !important; }

  /* Page headers duplicate the app bar once logged in */

  /* App-like page entrance + form polish */
  .app-shell, .wrap, #auth-screen, .hero { animation: dn-fade .22s ease-out; }
  input, select, textarea { font-size: 16px !important; }
  table { font-size: 0.74rem; }
  #toast { left: 12px !important; right: 12px !important; text-align: center; border-radius: 8px !important; }
}
@keyframes dn-fade { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════ COMPUTERS — WordPress style ═══════════════ */
@media (min-width: 901px) {
  .dn-appbar, .dn-drawer, .dn-scrim, .dn-bottom { display: none !important; }
  body.dn-logged { --dn-top-offset: var(--dn-wp-bar-h); padding-top: var(--dn-wp-bar-h); }
  body.dn-dash { padding-left: var(--dn-wp-side-w); }
  body.dn-dash.dn-collapsed { padding-left: var(--dn-wp-side-w-collapsed); }

  /* Admin bar */
  .dn-wpbar { position: fixed; top: 0; left: 0; right: 0; height: var(--dn-wp-bar-h); z-index: 99; background: var(--dn-wp-bar); color: var(--dn-wp-text);
    display: flex; align-items: stretch; font: 400 13px/32px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif; }
  .dn-wpbar a, .dn-wpbar button { color: var(--dn-wp-text); text-decoration: none; padding: 0 10px; display: flex; align-items: center; gap: 6px;
    background: none; border: none; font: inherit; cursor: pointer; white-space: nowrap; }
  .dn-wpbar a:hover, .dn-wpbar button:hover { background: var(--dn-wp-hover); color: var(--dn-wp-blue-light); }
  .dn-wpbar-right { margin-left: auto; display: flex; align-items: stretch; position: relative; }
  .dn-wpbar .dn-howdy b { font-weight: 600; }
  .dn-wpbar .dn-howdy .dn-avatar { width: 18px; height: 18px; font-size: 0.62rem; border-radius: 3px; background: #50575e; color: #fff; }
  .dn-wpbar-menu { display: none; position: absolute; top: 32px; right: 0; background: var(--dn-wp-hover); min-width: 190px; padding: 6px 0; box-shadow: 0 3px 5px rgba(0, 0, 0, .2); }
  .dn-wpbar-right:hover .dn-wpbar-menu, .dn-wpbar-right:focus-within .dn-wpbar-menu { display: block; }
  .dn-wpbar-menu a, .dn-wpbar-menu button { width: 100%; line-height: 26px; padding: 0 14px; }
  .dn-wpbar-menu .dn-wp-meta { padding: 6px 14px; color: var(--dn-wp-muted); line-height: 1.5; font-size: 12px; }

  /* Left admin menu */
  .dn-wpside { position: fixed; top: var(--dn-wp-bar-h); bottom: 0; left: 0; width: var(--dn-wp-side-w); z-index: 98; background: var(--dn-wp-side);
    overflow-y: auto; overflow-x: hidden; font: 400 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; padding: 12px 0 40px; }
  .dn-wpside a, .dn-wpside button { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--dn-wp-text); text-decoration: none;
    background: none; border: none; width: 100%; font: inherit; cursor: pointer; text-align: left; white-space: nowrap; position: relative; }
  .dn-wpside a:hover { background: var(--dn-wp-hover); color: var(--dn-wp-blue-light); }
  .dn-wpside a.active { background: var(--dn-wp-blue); color: #fff; }
  .dn-wpside a.active::after { content: ""; position: absolute; right: 0; top: 50%; margin-top: -8px; border: 8px solid transparent; border-right-color: #f0f0f1; }
  .dn-wpside .dn-ico { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; filter: grayscale(.35); }
  .dn-wpside a.active .dn-ico, .dn-wpside a:hover .dn-ico { filter: none; }
  .dn-wpside .dn-bubble { margin-left: auto; }
  .dn-wpside-sep { height: 1px; background: #3c434a; margin: 10px 0; }
  .dn-wpside-label { color: var(--dn-wp-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px 4px; }
  .dn-wpside .dn-collapse { color: var(--dn-wp-muted); font-size: 13px; margin-top: 8px; }
  body.dn-collapsed .dn-wpside { width: var(--dn-wp-side-w-collapsed); }
  body.dn-collapsed .dn-wpside .dn-lbl, body.dn-collapsed .dn-wpside .dn-wpside-label, body.dn-collapsed .dn-wpside .dn-bubble { display: none; }
  body.dn-collapsed .dn-wpside a.active::after { display: none; }

  /* Visitor / front-end: classic WordPress theme header */
  body.dn-dash .dn-wphead { display: none; }
  .dn-wphead { background: #fff; border-bottom: 1px solid #e5e7eb; }
  .dn-wphead-inner { max-width: 1140px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
  .dn-site-title { font: 700 1.5rem/1.2 Georgia, "Times New Roman", serif; color: #111827; text-decoration: none; display: flex; align-items: center; gap: 8px; }
  .dn-site-desc { font-size: 0.85rem; color: #6b7280; margin-top: 2px; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
  .dn-theme-menu { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
  .dn-theme-menu a { color: #1f2937; text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 8px 12px; border-bottom: 2px solid transparent; }
  .dn-theme-menu a:hover, .dn-theme-menu a.active { border-bottom-color: var(--dn-wp-blue); color: var(--dn-wp-blue); }
  .dn-theme-menu a.dn-cta { background: var(--dn-wp-blue); color: #fff; border-radius: 3px; border-bottom: none; margin-left: 6px; }
  .dn-theme-menu a.dn-cta:hover { background: #135e96; color: #fff; }

  /* WordPress-like content area: light grey canvas, content starts at the left */
  body.dn-dash { background: #f0f0f1; }
  body.dn-dash .app-shell, body.dn-dash .wrap { width: auto; max-width: 1100px; margin-left: 20px; margin-right: 20px; }   /* auto (not 100%) so the side margins never push it off screen on laptops */
  body.dn-dash #auth-screen { margin-left: 20px; }
  body.dn-logged .app-header .user-chip { display: none; } /* name + Log Out live in the admin bar */
  body.dn-logged .app-header { border-bottom: none; padding-top: 20px; }
}

/* ── Admin section chips (admin.html) ── */
.dn-subnav { position: sticky; top: var(--dn-top-offset); z-index: 80; background: rgba(244, 246, 250, .96); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); padding: 8px 12px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dn-subnav::-webkit-scrollbar { display: none; }
.dn-chip { flex-shrink: 0; background: #fff; border: 1px solid #e2e8f0; color: #334155; text-decoration: none; font-size: 0.74rem; font-weight: 700; padding: 7px 12px; border-radius: 20px; white-space: nowrap; }
.dn-chip:hover { border-color: var(--dn-primary); color: var(--dn-primary); }
.card[id] { scroll-margin-top: calc(var(--dn-top-offset) + 60px); }

/* ── Form helpers (Website Settings card) ── */
.dn-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.dn-field label { display: block; font-size: 0.72rem; font-weight: 700; color: #475569; margin-bottom: 4px; }
.dn-cat-row { display: grid; grid-template-columns: 56px 1fr 1.6fr 36px; gap: 6px; margin-bottom: 6px; align-items: center; }
@media (max-width: 600px) { .dn-cat-row { grid-template-columns: 48px 1fr 36px; } .dn-cat-row .dn-cat-text { grid-column: 1 / -1; order: 4; } }

/* Installed app (opened from the home-screen icon): no browser chrome, so
   tighten the top a little and stop the page from "bouncing". */
@media (display-mode: standalone) { body { overscroll-behavior-y: none; } }

@media (prefers-reduced-motion: reduce) { .dn-drawer, .dn-scrim { transition: none; } .app-shell, .wrap, #auth-screen, .hero { animation: none; } .dn-ripple { display: none; } }

/* ═══════════════ Professional polish (v3.4) — shared look for every page ═══════════════ */
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important; color: #111827; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3 { letter-spacing: -0.01em; } /* colour is left to each page (hero headings are white) */
.card h1, .card h2, .card h3 { color: #0f172a; }
.card { border: 1px solid #e5e7eb !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06) !important; border-radius: 16px !important; }
.card h2 { font-size: 1.02rem !important; }
.input-field { border: 1px solid #d0d5dd !important; background: #fff !important; border-radius: 10px !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: border-color .15s, box-shadow .15s; }
.input-field:focus { border-color: #1a73e8 !important; box-shadow: 0 0 0 4px rgba(26, 115, 232, .14) !important; outline: none; }
.btn-primary { background: #1a73e8; border-radius: 10px !important; font-weight: 600 !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); transition: background .15s, transform .05s; }
.btn-primary:hover:not(:disabled) { filter: brightness(.95); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
table { border-collapse: collapse; }
th { font-size: 0.7rem !important; text-transform: uppercase; letter-spacing: .04em; color: #475467 !important; background: #f9fafb !important; font-weight: 700 !important; }
td { color: #1f2937; }
tbody tr:hover td { background: #f9fbff; }
.auth-card { border: 1px solid #e5e7eb; box-shadow: 0 12px 32px rgba(16, 24, 40, .08) !important; }
.header-title { letter-spacing: -0.01em; }
#toast { box-shadow: 0 10px 25px rgba(0, 0, 0, .2); font-size: 0.88rem; }
::selection { background: #d3e3fd; }
:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }

/* Floating contact button (homepage) */
.dn-fab { position: fixed; right: 16px; bottom: calc(16px + var(--dn-safe-bottom)); z-index: 85; display: flex; flex-direction: column; gap: 10px; }
.dn-fab a { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; text-decoration: none;
  color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .15s; }
.dn-fab a:hover { transform: scale(1.06); }
.dn-fab .wa { background: #25d366; }
.dn-fab .call { background: #1a73e8; }
@media (max-width: 900px) { body.dn-has-bottom:not(.dn-no-tabbar) .dn-fab { bottom: calc(var(--dn-bottom-h) + var(--dn-safe-bottom) + 14px); } }

@media print {
  #app-nav, .dn-fab, #toast, .dn-bottom, .dn-appbar, .dn-wpbar, .dn-wpside { display: none !important; }
  body { padding: 0 !important; background: #fff !important; }
}

/* ═════════ Accessibility & usability (v4.0) ═════════ */
.dn-skip { position: absolute; left: 8px; top: -60px; z-index: 10000; background: #1a73e8; color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.dn-skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1.header-title { margin: 0; line-height: 1.2; }
main#main-content:focus { outline: none; }
/* Comfortable touch targets (≈ 36–44 px) */
.dn-chip { min-height: 36px; display: inline-flex; align-items: center; }
.icon-btn { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.staff-row-btn, .logout-btn { min-height: 36px; }
button, [role="button"], select { touch-action: manipulation; }
@media (prefers-contrast: more) { body { color: #000; } .input-field { border-color: #475467 !important; } }
/* v4.0 contrast fixes for the Android app bar */
@media (max-width: 900px) {
  .dn-appbar-sub { opacity: 1 !important; color: #fff; font-weight: 600; }
  .dn-appbar-login { background: #fff !important; color: #1a56db !important; }
  /* Logged in, the page header is replaced by the app bar — keep its <h1> for screen readers
     and search engines, but hide it visually (and hide its now-duplicate buttons). */
  body.dn-logged .app-header { display: block !important; position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.dn-logged .app-header .user-chip, body.dn-logged .app-header button, body.dn-logged .app-header .sp-sub, body.dn-logged .app-header .muted { display: none !important; }
}

/* v4.1 — uploaded logo & profile photos in the menu */
.dn-logo-img { height: 28px; width: auto; max-width: 140px; object-fit: contain; border-radius: 6px; vertical-align: middle; }
.dn-wpbar .dn-logo-img { height: 20px; }
.dn-wphead .dn-logo-img { height: 40px; max-width: 180px; }
.dn-avatar-img { object-fit: cover; padding: 0; background: #e5e7eb; }
.dn-wpbar .dn-howdy .dn-avatar-img { width: 20px; height: 20px; border-radius: 3px; }
.dn-drawer-me { color: inherit; text-decoration: none; display: block; }
.dn-drawer-me u { text-underline-offset: 2px; }


/* ═══════════════ v4.11 theme — "workbench" ═══════════════
   Switchboard navy ink, live-blue actions, panel-grey ground. One signature:
   the multimeter read-out for results (.el-meter); a thin R-Y-B three-phase
   stripe under the site header. Visual properties only — page layouts untouched. */
:root {
  --dn-primary: #1f5fcf; --dn-primary-dark: #184ca8;
  --t-ink: #14213d; --t-ink-2: #34425c; --t-muted: #56627a; --t-line: #dbe2ec; --t-bg: #eef2f7;
  --t-blue: #1f5fcf; --t-blue-soft: #e9f0fd; --t-red: #d7263d; --t-yel: #f2b705; --t-grn: #0f7a55;
  --t-meter: #0f1f38; --t-meter-ink: #eef8ff; --t-meter-dim: #b7c6dc;
  --t-head: 'Barlow Semi Condensed', 'Arial Narrow', 'Inter', system-ui, sans-serif;
  --t-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t-ryb: linear-gradient(90deg, var(--t-red) 0 33.34%, var(--t-yel) 33.34% 66.67%, var(--t-blue) 66.67% 100%);
}
body { font-family: var(--t-body); color: var(--t-ink); background-color: var(--t-bg); }
h1, h2, h3, .dn-site-title, .dn-appbar-title { font-family: var(--t-head); }
h1 { font-weight: 700; letter-spacing: -0.005em; }
h2, h3 { font-weight: 700; letter-spacing: 0; }
::selection { background: #cfe0fb; }
:focus-visible { outline: 3px solid #8fb3f0; outline-offset: 2px; }

/* R-Y-B three-phase stripe under the header */
.dn-appbar::after, .dn-wphead::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--t-ryb); border-top: 1px solid #fff; box-sizing: content-box; pointer-events: none; }
.dn-wphead { position: relative; }

/* Buttons */
.btn, .btn-primary, .back, .chip, .dn-chip { font-family: var(--t-body); border-radius: 10px; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-primary, .btn.primary { background: var(--t-blue); border-color: var(--t-blue); color: #fff; box-shadow: 0 1px 0 rgba(15, 31, 56, .18); }
.btn-primary:hover:not(:disabled), .btn.primary:hover:not(:disabled) { background: var(--dn-primary-dark); border-color: var(--dn-primary-dark); color: #fff; }
.btn, .back { border-color: #cbd4e1; color: var(--t-ink-2); }
.btn:hover:not(:disabled), .back:hover { border-color: var(--t-blue); color: var(--t-blue); background: #fff; }
.btn:active:not(:disabled), .btn-primary:active:not(:disabled) { transform: translateY(1px); }

/* Form fields */
.input-field, .field input, .field select, .field textarea, .opt input:not([type=checkbox]):not([type=range]), .opt select, .opt textarea, .search-row input, .appl-row input, .appl-row select {
  border: 1px solid #c9d2df; border-radius: 10px; background-color: #fff; color: var(--t-ink); font-family: var(--t-body); transition: border-color .15s, box-shadow .15s; }
.input-field:focus, .field input:focus, .field select:focus, .field textarea:focus, .opt input:focus, .opt select:focus, .opt textarea:focus, .search-row input:focus, .appl-row input:focus, .appl-row select:focus {
  border-color: var(--t-blue); box-shadow: 0 0 0 3px rgba(31, 95, 207, .18); outline: none; }
.field label { color: var(--t-ink-2); letter-spacing: .005em; }
input[type=number] { font-variant-numeric: tabular-nums; }

/* Surfaces */
.card, .panel, .seo-info, .auth-card, .tool-card, .faq details, .how div { border-color: var(--t-line); }
.panel, .seo-info { box-shadow: 0 1px 2px rgba(15, 31, 56, .04); }
.lead, .muted { color: var(--t-muted); }
.status.ok { background: #eaf7f1; color: #075c3f; border-color: #a8e0c6; }
.status.info { background: var(--t-blue-soft); color: #173f86; }

/* Result tables */
.calc-table td { border-bottom-color: #e6ebf2; }
.calc-table td:last-child { font-variant-numeric: tabular-nums; color: var(--t-ink); }
.calc-table tr:last-child td { border-bottom: 0; }

/* Signature: multimeter read-out for the main result */
.status.el-meter { background: var(--t-meter); color: var(--t-meter-dim); border: 0; border-radius: 14px; padding: 14px 16px 13px;
  box-shadow: inset 0 0 0 1px #243a5e, inset 0 -3px 0 0 var(--t-state, #2fc27f); font-size: 0.86rem; line-height: 1.5; }
.status.el-meter.err { --t-state: #ff6b6b; }
.status.el-meter.info { --t-state: var(--t-yel); }
.status.el-meter .el-big { font-family: var(--t-head); font-weight: 700; font-size: clamp(1.75rem, 6.5vw, 2.4rem); line-height: 1.08; color: var(--t-meter-ink);
  font-variant-numeric: tabular-nums; letter-spacing: .01em; margin-bottom: 4px; }
.status.el-meter a { color: #a9cbff; }
.status.el-meter .el-bad { color: #ffb4b4; } .status.el-meter .el-ok { color: #9ef0c8; }

/* Tools hub */
#home .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 640px) { #home .grid { grid-template-columns: 1fr 1fr; } }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.05; color: var(--t-ink); }
.cat h2 { font-size: 1.3rem; color: var(--t-ink); }
.tool-card { box-shadow: none; }
.tool-card:hover, .tool-card:focus-visible { border-color: var(--t-blue); box-shadow: 0 6px 18px rgba(15, 31, 56, .08); }
.tool-card h3 { font-family: var(--t-head); font-size: 1.12rem; font-weight: 700; }
.panel-head h1 { font-size: 1.55rem; }

/* ─── easier use: tools (ux.js) ─── */
.ux-jump { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 0 6px; scrollbar-width: thin; }
.ux-jump a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; background: #fff; border: 1px solid var(--t-line); color: var(--t-ink-2); font-weight: 700; font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.ux-jump a:hover { border-color: var(--t-blue); color: var(--t-blue); }
.ux-favs .grid { margin-top: 4px; }
.ux-headbar { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.ux-headbar button { min-height: 40px; }
.ux-fav[aria-pressed="true"] { background: #fff8e1; border-color: #e0b100; color: #7a5600; }
.ux-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ux-actions .btn { min-height: 42px; padding: 8px 13px; font-size: 0.84rem; }
.ux-actions .ux-wa { background: #0f7a55; border-color: #0f7a55; color: #fff; }
.ux-actions .ux-wa:hover:not(:disabled) { background: #0b6043; border-color: #0b6043; color: #fff; }
.ux-peek { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--dn-safe-bottom)); z-index: 80; max-width: calc(100vw - 28px);
  display: flex; align-items: center; gap: 10px; background: var(--t-meter); color: var(--t-meter-ink); border: 0; border-radius: 26px; padding: 10px 18px; min-height: 46px;
  font: 700 0.95rem var(--t-body); box-shadow: 0 8px 24px rgba(15, 31, 56, .28); cursor: pointer; }
.ux-peek span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.dn-has-bottom:not(.dn-no-tabbar) .ux-peek { bottom: calc(var(--dn-bottom-h) + var(--dn-safe-bottom) + 12px); }
.ux-peek[hidden] { display: none; }
@media (min-width: 901px) { .ux-peek { display: none !important; } }
@media (max-width: 560px) {
  .panel .opt { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .panel .opt > .field.ux-wide, .panel .opt > .field:has(textarea) { grid-column: 1 / -1; }
  .panel .opt .field select { width: 100%; }
}
.panel .opt .field select { width: 100%; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Print a calculator result (tool pages only) */
@media print {
  body[data-tool] { background: #fff; padding: 0 !important; }
  body[data-tool] .dn-appbar, body[data-tool] .dn-bottom, body[data-tool] .dn-drawer, body[data-tool] .dn-scrim, body[data-tool] .dn-wpbar, body[data-tool] .dn-wpside, body[data-tool] .dn-wphead,
  body[data-tool] #home, body[data-tool] .seo-info, body[data-tool] .seo-extra, body[data-tool] .ux-actions, body[data-tool] .ux-headbar, body[data-tool] .ux-peek, body[data-tool] .back,
  body[data-tool] footer, body[data-tool] #app-nav, body[data-tool] .row .btn { display: none !important; }
  body[data-tool] .panel { border: 0; box-shadow: none; padding: 0; }
  body[data-tool] .panel::after { content: 'Debnath Electronic · debnathelectronic.com'; display: block; margin-top: 18px; padding-top: 8px; border-top: 1px solid #ccc; color: #555; font-size: 11px; }
  body[data-tool] .status.el-meter { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Reserve the header's space before nav.js draws it, so pages don't jump down on load (layout shift) */
@media (max-width: 900px) { body:not(.dn-shell):has(> #app-nav) { padding-top: calc(var(--dn-appbar-h) + var(--dn-safe-top)); } }
@media (min-width: 901px) { body:not(.dn-shell) > #app-nav:empty { display: block; min-height: 94px; } }

/* 🔔 notification bell (v4.15) */
.dn-bell { position: relative; text-decoration: none; }
.dn-bell-n { position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d7263d; color: #fff;
  font: 800 0.68rem/18px var(--t-body, system-ui); text-align: center; box-shadow: 0 0 0 2px var(--dn-primary, #1f5fcf); }
