/* ================================================================
   HEILDARKERFI THEME v2 — nákvæmt útlit
   ================================================================ */

/* ── 1. BODY / PAGE ── */
body.nfli-app-page {
  background: #0d1117 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}
* { box-sizing: border-box; }

/* ── 2. APP ROOT ── */
.hk-app,
#nfli-app.hk-app {
  display: flex !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  background: #0d1117 !important;
  color: #e6edf3 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  position: relative !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  /* Override nfli-wrap padding */
  --nfli-wrap-h-pad: 0px;
  --nfli-wrap-v-pad: 0px;
  --nfli-mobile-h-pad: 0px;
  --nfli-mobile-v-pad: 0px;
}

/* ── 3. OVERLAY ── */
.hk-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 200;
}
.hk-overlay.is-open { display: block; }

/* ── 4. DRAWER ── */
.hk-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: #161b22;
  border-right: 1px solid #21262d;
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  overflow-x: hidden;
}
.hk-drawer.is-open { transform: translateX(0); }

.hk-drawer-head {
  padding: 24px 18px 16px;
  border-bottom: 1px solid #21262d;
  flex-shrink: 0;
}
.hk-drawer-brand {
  font-size: 22px;
  font-weight: 900;
  color: #e6edf3;
  letter-spacing: -.3px;
}
.hk-drawer-brand span { color: #3b82f6; }
.hk-drawer-sub {
  font-size: 13px;
  color: #8b949e;
  margin-top: 3px;
}

.hk-drawer-body { flex: 1; padding: 8px 0; }

.hk-drawer-group-label {
  font-size: 11px;
  font-weight: 700;
  color: #484f58;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 18px 4px;
}

.hk-drawer-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  text-align: left !important;
  background: transparent !important;
  border: none !important;
  border-left: 3px solid transparent !important;
  border-radius: 0 !important;
  padding: 12px 18px !important;
  color: #8b949e !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background .12s, color .12s !important;
}
.hk-drawer-item:hover {
  background: #1c2128 !important;
  color: #e6edf3 !important;
}
.hk-drawer-item.is-active {
  background: #1c2128 !important;
  border-left-color: #3b82f6 !important;
  color: #e6edf3 !important;
  font-weight: 700 !important;
}
.hk-di-icon {
  font-size: 20px;
  flex: 0 0 26px;
  text-align: center;
}
.hk-di-label { flex: 1; }
.hk-di-badge {
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px; height: 20px;
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 0 5px;
}

.hk-drawer-footer {
  padding: 14px 18px;
  border-top: 1px solid #21262d;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.hk-drawer-avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 40px;
}
.hk-drawer-foot-name { font-size: 14px; font-weight: 700; color: #e6edf3; }
.hk-drawer-foot-role { font-size: 12px; color: #8b949e; margin-top: 1px; }

/* ── 5. MAIN ── */
.hk-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: #0d1117;
  min-width: 0;
  width: 100%;
}

/* ── 6. TOPBAR ── */
.hk-topbar {
  position: sticky;
  top: 0; z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(13,17,23,.96);
  border-bottom: 1px solid #21262d;
  backdrop-filter: blur(12px);
  min-height: 54px;
  flex-shrink: 0;
}
.hk-menu-btn {
  background: none !important;
  border: none !important;
  color: #e6edf3 !important;
  cursor: pointer !important;
  padding: 6px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  box-shadow: none !important;
}
.hk-menu-btn:hover { background: #21262d !important; }
.hk-topbar-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: #e6edf3;
}
.hk-topbar-right {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
}
.hk-topbar-notif {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  border-radius: 12px !important;
  color: #e6edf3 !important;
  width: 40px; height: 40px;
  cursor: pointer;
  font-size: 18px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hk-notif-dot {
  position: absolute;
  top: -3px; right: -3px;
  width: 10px; height: 10px;
  background: #ef4444;
  border-radius: 999px;
  border: 2px solid #0d1117;
}
.hk-topbar-avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex: 0 0 38px;
  user-select: none;
}

/* ── 7. PANELS ── */
.hk-panel { display: none !important; }
.hk-panel.is-active { display: block !important; }

/* ── 8. DASHBOARD ── */
.hk-dash-greeting {
  padding: 22px 16px 8px;
}
.hk-dash-hello {
  font-size: 24px;
  font-weight: 800;
  color: #e6edf3;
  line-height: 1.2;
}
.hk-dash-date {
  font-size: 14px;
  color: #8b949e;
  margin-top: 4px;
}

.hk-dash-cards {
  padding: 12px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hk-dash-card {
  background: #1c2128;
  border: 1px solid #21262d;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  text-decoration: none;
}
.hk-dash-card:hover {
  background: #21262d;
  border-color: #30363d;
}
.hk-dash-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex: 0 0 56px;
}
.hk-dash-card-info { flex: 1; min-width: 0; }
.hk-dash-card-label {
  font-size: 13px;
  color: #8b949e;
  font-weight: 500;
  margin-bottom: 3px;
}
.hk-dash-card-num {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: #e6edf3;
}
.hk-dash-card-num.blue  { color: #3b82f6; }
.hk-dash-card-num.orange{ color: #f97316; }
.hk-dash-card-num.green { color: #22c55e; }
.hk-dash-card-sub {
  font-size: 13px;
  color: #8b949e;
  margin-top: 3px;
}

/* Today list */
.hk-dash-section { padding: 12px 12px 32px; }
.hk-dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: #e6edf3;
  padding: 8px 0 10px;
}
.hk-section-badge {
  background: #3b82f6;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  min-width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
}
.hk-overdue-label {
  font-size: 11px;
  font-weight: 700;
  color: #f97316;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hk-today-item {
  background: #1c2128;
  border: 1px solid #21262d;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background .1s;
}
.hk-today-item:hover { background: #21262d; }
.hk-today-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: #8b949e;
  flex: 0 0 10px;
  margin-top: 5px;
}
.hk-today-dot.od { background: #f97316; }
.hk-today-body { flex: 1; min-width: 0; }
.hk-today-title { font-size: 15px; font-weight: 700; color: #e6edf3; }
.hk-today-meta { font-size: 13px; color: #8b949e; margin-top: 3px; }
.hk-today-date { color: #8b949e; }
.hk-today-date.od { color: #f97316; }
.hk-today-empty { color: #8b949e; font-size: 14px; padding: 16px 0; text-align: center; }

/* ── 9. STILLINGAR ── */
.hk-settings-page { padding: 16px 14px 40px; }
.hk-settings-title {
  font-size: 22px; font-weight: 800; color: #e6edf3;
  margin: 0 0 16px;
}
.hk-settings-card {
  background: #1c2128;
  border: 1px solid #21262d;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}
.hk-settings-card-head {
  font-size: 16px; font-weight: 700; color: #e6edf3; margin-bottom: 16px;
}
.hk-field-label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: #8b949e;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hk-field-label input:not([type=color]),
.hk-field-label select {
  display: block !important;
  width: 100% !important;
  margin-top: 6px !important;
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  border-radius: 12px !important;
  color: #e6edf3 !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  color-scheme: dark !important;
}
.hk-field-label input[type=color] {
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  margin-top: 6px !important;
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  border-radius: 12px !important;
  padding: 4px 8px !important;
  cursor: pointer !important;
}
.hk-save-btn {
  background: #3b82f6 !important;
  border: none !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 11px 24px !important;
  cursor: pointer !important;
  margin-top: 4px !important;
}
.hk-save-btn:hover { background: #2563eb !important; }
.hk-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid #21262d;
  font-size: 15px;
  color: #e6edf3;
}
.hk-toggle { position: relative; display: inline-block; width: 50px; height: 28px; flex: 0 0 50px; }
.hk-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.hk-toggle-slider {
  position: absolute; inset: 0;
  background: #30363d;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.hk-toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 999px;
  transition: transform .2s;
}
.hk-toggle input:checked + .hk-toggle-slider { background: #22c55e; }
.hk-toggle input:checked + .hk-toggle-slider::before { transform: translateX(22px); }

/* ── 10. NFLI PANELS WRAPPER ── */
.hk-nfli-panels { flex: 1; }
.hk-panel.nfli-panel {
  padding: 14px 14px 40px !important;
}

/* ── 11. HIDE OLD NFLI CHROME ── */
/* Hide old tabs completely */
#nfli-app .nfli-tabs,
.nfli-tabs { display: none !important; }

/* Hide old shell/wrap decorations */
#nfli-app.nfli-wrap {
  padding: 0 !important;
  max-width: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ── 12. NFLI DARK THEME ── */
#nfli-app {
  --nfli-bg: #0d1117;
  --nfli-card: #1c2128;
  --nfli-ink: #e6edf3;
  --nfli-text: #e6edf3;
  --nfli-muted: #8b949e;
  --nfli-header-user: #8b949e;
  --nfli-border: #21262d;
  --nfli-accent: #3b82f6;
  --nfli-accent-soft: rgba(59,130,246,.18);
  --nfli-header-bg: #161b22;
  --nfli-button-bg: #21262d;
  --nfli-button-text: #e6edf3;
  --nfli-button-ghost-text: #e6edf3;
  --nfli-button-ghost-border: #30363d;
  --nfli-button-danger-text: #f85149;
}
#nfli-app .nfli-panel-head h2 { color: #e6edf3 !important; font-size: 22px !important; font-weight: 800 !important; }
#nfli-app label { color: #8b949e !important; }
#nfli-app .nfli-muted { color: #8b949e !important; }
#nfli-app .nfli-subhead { color: #e6edf3 !important; }
#nfli-app h3 { color: #e6edf3 !important; }
#nfli-app a { color: #3b82f6 !important; }
#nfli-app a:hover { color: #60a5fa !important; }

/* Buttons */
#nfli-app .nfli-btn {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  border-radius: 14px !important;
  color: #e6edf3 !important;
  font-weight: 600 !important;
}
#nfli-app .nfli-btn:hover { background: #30363d !important; }
#nfli-app .nfli-btn-main {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #fff !important;
  border-radius: 16px !important;
  padding: 14px 20px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  width: 100% !important;
  display: block !important;
  text-align: center !important;
}
#nfli-app .nfli-btn-main:hover { background: #2563eb !important; border-color: #2563eb !important; }
#nfli-app .nfli-btn-ghost { background: transparent !important; border-color: #30363d !important; color: #e6edf3 !important; }
#nfli-app .nfli-btn-danger { background: transparent !important; border-color: #f85149 !important; color: #f85149 !important; }
#nfli-app .nfli-iconbtn { background: #21262d !important; border: 1px solid #30363d !important; color: #e6edf3 !important; border-radius: 14px !important; }
#nfli-app .nfli-badge { background: #ef4444 !important; color: #fff !important; }
#nfli-app .nfli-link { background: #21262d !important; border-color: #30363d !important; color: #e6edf3 !important; }

/* Inputs */
#nfli-app input:not([type=color]):not([type=checkbox]):not([type=radio]),
#nfli-app select,
#nfli-app textarea {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  border-radius: 14px !important;
  color: #e6edf3 !important;
  color-scheme: dark !important;
}
#nfli-app input::placeholder, #nfli-app textarea::placeholder { color: #484f58 !important; }
#nfli-app input:focus, #nfli-app select:focus, #nfli-app textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.18) !important;
  outline: none !important;
}

/* Lists */
#nfli-app .nfli-list {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 10px !important;
}
#nfli-app .nfli-item {
  background: #1c2128 !important;
  border: 1px solid #21262d !important;
  border-top: 1px solid #21262d !important;
  border-radius: 14px !important;
  color: #e6edf3 !important;
  transition: background .1s !important;
}
#nfli-app .nfli-item:hover { background: #21262d !important; }
#nfli-app .nfli-item .title { color: #e6edf3 !important; font-weight: 700 !important; }
#nfli-app .nfli-item .meta { color: #8b949e !important; }
#nfli-app .nfli-item select {
  background: #21262d !important;
  border-color: #30363d !important;
  border-radius: 999px !important;
  color: #e6edf3 !important;
  padding: 5px 10px !important;
  font-size: 13px !important;
  width: auto !important;
}

/* Status bar */
#nfli-app .nfli-status-bar[data-status*="ókl"],
#nfli-app .nfli-status-bar[data-status*="op"]  { background: #f59e0b !important; }
#nfli-app .nfli-status-bar[data-status*="vinn"] { background: #3b82f6 !important; }
#nfli-app .nfli-status-bar[data-status*="loki"] { background: #22c55e !important; }
#nfli-app .nfli-status-bar[data-status*="hætt"] { background: #ef4444 !important; }

/* Pills */
#nfli-app .nfli-pill { background: #21262d !important; border-color: #30363d !important; color: #c9d1d9 !important; }
#nfli-app .nfli-pill-status[data-status*="ókl"],
#nfli-app .nfli-pill-status[data-status*="op"]  { background: rgba(245,158,11,.15) !important; border-color: #f59e0b !important; color: #fbbf24 !important; }
#nfli-app .nfli-pill-status[data-status*="vinn"] { background: rgba(59,130,246,.15) !important; border-color: #3b82f6 !important; color: #60a5fa !important; }
#nfli-app .nfli-pill-status[data-status*="loki"] { background: rgba(34,197,94,.15) !important; border-color: #22c55e !important; color: #4ade80 !important; }
#nfli-app .nfli-pill-status[data-status*="hætt"] { background: rgba(239,68,68,.15) !important; border-color: #ef4444 !important; color: #f87171 !important; }
#nfli-app .nfli-pill-discharge { background: rgba(16,185,129,.15) !important; border-color: #10b981 !important; color: #34d399 !important; }

/* Cards + boxes */
#nfli-app .nfli-card { background: #1c2128 !important; border-color: #21262d !important; }
#nfli-app .nfli-box { background: #1c2128 !important; border-color: #21262d !important; color: #e6edf3 !important; }
#nfli-app .nfli-alert { background: #1c2128 !important; border-color: #21262d !important; border-left-color: #3b82f6 !important; color: #e6edf3 !important; }
#nfli-app .nfli-list-line { background: #1c2128 !important; border-color: #21262d !important; }
#nfli-app .nfli-list-line .name, #nfli-app .nfli-list-line .qty { color: #e6edf3 !important; }
#nfli-app .nfli-font-preview { background: #1c2128 !important; border-color: #30363d !important; color: #e6edf3 !important; }
#nfli-app .nfli-days-badge { background: #f59e0b !important; color: #0d1117 !important; border-radius: 999px !important; font-weight: 800 !important; }
#nfli-app .nfli-photo-item { background: #1c2128 !important; border-color: #21262d !important; }
#nfli-app .nfli-thumb--empty { background: #1c2128 !important; border-color: #30363d !important; }
#nfli-app .nfli-asset-results { background: #1c2128 !important; border-color: #21262d !important; }
#nfli-app .nfli-asset-row { border-top-color: #21262d !important; color: #e6edf3 !important; }
#nfli-app .nfli-inline-check { color: #e6edf3 !important; }
#nfli-app .nfli-profile-name { color: #e6edf3 !important; }

/* Inline suggestions */
.nfli-shop-inline-suggestions,
.nfli-inv-inline-suggestions { background: #1c2128 !important; border-color: #30363d !important; }
.nfli-shop-inline-item,
.nfli-inv-inline-item { color: #e6edf3 !important; border-top-color: #21262d !important; }
.nfli-shop-inline-item:hover, .nfli-inv-inline-item:hover { background: #21262d !important; }
.nfli-shop-pick-btn { background: #21262d !important; border-color: #30363d !important; color: #e6edf3 !important; }
.nfli-shop-picker-item { background: #1c2128 !important; border-color: #30363d !important; color: #e6edf3 !important; }

/* Modal */
.nfli-modal { background: rgba(0,0,0,.78) !important; }
.nfli-modal .nfli-modal-sheet { background: #161b22 !important; border: 1px solid #30363d !important; }
.nfli-modal .nfli-modal-head { background: #161b22 !important; border-bottom-color: #21262d !important; }
.nfli-modal .nfli-modal-title { color: #e6edf3 !important; }
.nfli-modal .nfli-modal-user { color: #8b949e !important; }
.nfli-modal .nfli-modal-body { background: #0d1117 !important; color: #e6edf3 !important; }
.nfli-modal .nfli-modal-foot { background: #161b22 !important; border-top-color: #21262d !important; }
.nfli-modal label { color: #8b949e !important; }
.nfli-modal input:not([type=color]):not([type=checkbox]),
.nfli-modal select, .nfli-modal textarea {
  background: #161b22 !important; border-color: #30363d !important;
  color: #e6edf3 !important; color-scheme: dark !important;
}
.nfli-modal .nfli-btn { background: #21262d !important; border-color: #30363d !important; color: #e6edf3 !important; }
.nfli-modal .nfli-btn-main { background: #3b82f6 !important; border-color: #3b82f6 !important; color: #fff !important; }
.nfli-modal .nfli-btn-ghost { background: transparent !important; border-color: #30363d !important; color: #e6edf3 !important; }
.nfli-modal .nfli-btn-danger { background: transparent !important; border-color: #f85149 !important; color: #f85149 !important; }
.nfli-modal .nfli-list { background: transparent !important; border: none !important; }
.nfli-modal .nfli-item { background: #1c2128 !important; border-color: #21262d !important; color: #e6edf3 !important; border-radius: 12px !important; }
.nfli-modal .nfli-card, .nfli-modal .nfli-box { background: #1c2128 !important; border-color: #30363d !important; color: #e6edf3 !important; }
.nfli-modal .nfli-muted { color: #8b949e !important; }
.nfli-modal .nfli-pill { background: #21262d !important; border-color: #30363d !important; color: #c9d1d9 !important; }
.nfli-modal .nfli-shop-inline-suggestions { background: #1c2128 !important; border-color: #30363d !important; }
.nfli-modal .nfli-shop-inline-item { color: #e6edf3 !important; }
.nfli-modal .nfli-shop-inline-item:hover { background: #21262d !important; }

/* Loading */
.nfli-loading-overlay { background: rgba(0,0,0,.65) !important; }
.nfli-loading-box { background: #1c2128 !important; border-color: #30363d !important; }
.nfli-loading-text { color: #e6edf3 !important; }
.nfli-loading-spinner { border-color: #30363d !important; border-top-color: #3b82f6 !important; }

/* Login */
.nfli-login { background: rgba(0,0,0,.78) !important; }
.nfli-login-card { background: #1c2128 !important; border: 1px solid #30363d !important; }
.nfli-login-title { color: #e6edf3 !important; }

/* Scrollbars */
#nfli-app ::-webkit-scrollbar { width: 5px; height: 5px; }
#nfli-app ::-webkit-scrollbar-track { background: #0d1117; }
#nfli-app ::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
#nfli-app ::-webkit-scrollbar-thumb:hover { background: #484f58; }


/* ── LOGOUT BUTTON IN DRAWER ── */
.hk-drawer-logout {
  background: transparent !important;
  border: 1px solid #30363d !important;
  border-radius: 10px !important;
  color: #8b949e !important;
  font-size: 16px !important;
  width: 34px; height: 34px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  flex: 0 0 34px;
  transition: background .12s, color .12s !important;
}
.hk-drawer-logout:hover {
  background: #21262d !important;
  color: #e6edf3 !important;
}

/* ── DM SANS FONT ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800;900&display=swap');

.hk-app,
.hk-drawer,
.hk-topbar,
.hk-dash-greeting,
.hk-dash-card,
.hk-today-item,
.hk-settings-page {
  font-family: 'DM Sans', Arial, Helvetica, sans-serif !important;
}

/* ── MOBILE SAFE AREA ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .hk-drawer-footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .hk-nfli-panels,
  .hk-dash-section {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }
}

/* ── RESPONSIVE ── */
@media (min-width: 768px) {
  .hk-drawer {
    position: relative;
    transform: none;
    flex: 0 0 260px;
    min-height: 100vh;
  }
  .hk-overlay { display: none !important; }
  .hk-main { flex: 1; }
}


/* ── PERMISSION HIDING ── */
.hk-panel.nfli-hidden-by-perm { display: none !important; }

/* ── ALERT (top of main) ── */
#nfli-alert {
  background: #1c2128 !important;
  border-color: #21262d !important;
  border-left-color: #3b82f6 !important;
  color: #e6edf3 !important;
  margin: 8px 14px !important;
  border-radius: 14px !important;
}

/* ── NFLI PANEL HEAD inside hk panels ── */
.hk-panel .nfli-panel-head {
  margin-top: 0 !important;
  padding-bottom: 12px !important;
}
.hk-panel .nfli-panel-head h2 {
  color: #e6edf3 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
}

/* ── SUBTOOLS / SEARCH inside hk panels ── */
.hk-panel .nfli-subtools { margin: 0 0 10px !important; }
.hk-panel .nfli-search-input {
  background: #0d1117 !important;
  border-color: #30363d !important;
  color: #e6edf3 !important;
  border-radius: 14px !important;
}

/* ── FIX: nfli-wrap padding leaks through ── */
#nfli-app.nfli-wrap,
#nfli-app.nfli-wrap.nfli-shell,
#nfli-app.nfli-wrap.nfli-card {
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Mobile edge class overrides */
#nfli-app.nfli-mobile-edge {
  padding: 0 !important;
  max-width: none !important;
}
#nfli-app.nfli-mobile-edge .hk-topbar,
#nfli-app.nfli-mobile-edge .hk-nfli-panels {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

