/* ═══════════════════════════════════════════════════════
   DOKO — Design System (Light Mode)
   Font: Nunito (body) + Fraunces (display)
═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,300&display=swap');

/* ── Variables ── */
:root {
  /* Palette */
  --white:      #ffffff;
  --bg:         #f5f4f0;
  --bg2:        #eceae4;
  --surface:    #ffffff;
  --surface2:   #f9f8f5;
  --border:     #e2e0d8;
  --border2:    #d0cdc4;

  --ink1:       #1a1a22;
  --ink2:       #4a4a58;
  --ink3:       #8a8a9a;
  --ink4:       #b8b8c8;

  --accent:     #5c6bc0;
  --accent-lt:  #7986cb;
  --accent-bg:  rgba(92,107,192,0.10);
  --accent-br:  rgba(92,107,192,0.28);

  --personal:   #2196f3;
  --personal-bg:rgba(33,150,243,0.09);
  --work:       #f59e0b;
  --work-bg:    rgba(245,158,11,0.09);

  --green:      #22c55e;
  --green-bg:   rgba(34,197,94,0.10);
  --red:        #ef4444;
  --red-bg:     rgba(239,68,68,0.10);

  /* Shadows */
  --sh-xs: 0 1px 4px rgba(0,0,0,0.07);
  --sh-sm: 0 2px 10px rgba(0,0,0,0.09);
  --sh-md: 0 4px 24px rgba(0,0,0,0.11);
  --sh-lg: 0 8px 40px rgba(0,0,0,0.14);
  --sh-acc:0 4px 20px rgba(92,107,192,0.28);

  /* Radii */
  --r4:4px; --r8:8px; --r10:10px; --r12:12px;
  --r16:16px; --r20:20px; --r24:24px; --r99:999px;

  /* Fonts */
  --font:  'Nunito', sans-serif;
  --fontD: 'Fraunces', serif;

  /* Layout */
  --nav-h: 68px;
  --phone-w: 390px;
  --phone-h: 844px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  width: 100%; height: 100%;
  font-family: var(--font);
  background: #e8e5de;
  color: var(--ink1);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
/* Fill safe area zones with app bg so no browser chrome shows through */
@supports (padding: env(safe-area-inset-bottom)) {
  html { background: var(--bg); }
}

/* ── Outer wrapper (desktop bg) ── */
body {
  display: flex;
  align-items: center;
  justify-content: center;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(92,107,192,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 85% 75%, rgba(245,158,11,0.05) 0%, transparent 60%),
    #e0ddd6;
  z-index: -1;
}

/* ══════════════════════════════════════
   PHONE SHELL
══════════════════════════════════════ */
#phone-shell {
  width: var(--phone-w);
  height: var(--phone-h);
  background: var(--bg);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.12),
    0 0 0 9px #c8c4bb,
    0 0 0 10px rgba(0,0,0,0.09),
    var(--sh-lg);
  flex-shrink: 0;
}

/* On mobile (real phone) — go full screen */
@media (max-width: 430px) {
  html { height: 100%; overflow: hidden; }
  body {
    background: var(--bg);
    /* position:fixed prevents iOS Safari from scrolling the page when keyboard opens */
    position: fixed; width: 100%; height: 100%; overflow: hidden;
  }
  body::before { display: none; }
  #phone-shell {
    width: 100%;
    /* svh = small viewport height, stays constant when keyboard appears */
    height: 100svh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Scale down on laptop so it fits without zooming out.
   Uses zoom instead of transform:scale — transform causes the browser to
   scroll the document when an input inside the shell is focused, because
   the browser calculates scroll-into-view before applying the transform.
   zoom is applied before layout so the browser never miscalculates. */
@media (min-width: 431px) and (max-height: 900px) {
  #phone-shell {
    zoom: calc((100vh - 40px) / var(--phone-h));
  }
}

/* ══════════════════════════════════════
   PAGES
══════════════════════════════════════ */
.page {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  animation: pgIn 0.22s ease;
}
.page.active { display: flex; }
@keyframes pgIn { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:none} }

.page-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 8px);
}
.page-scroll::-webkit-scrollbar { display: none; }

/* Page title */
.pg-title {
  padding: 16px 20px 6px;
  font-family: var(--fontD);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink1);
  letter-spacing: -0.3px;
}
.pg-subtitle {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink3);
  padding: 12px 20px 4px;
}

/* ══════════════════════════════════════
   WELCOME HEADER
══════════════════════════════════════ */
.welcome-bar {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 18px 6px;
}
/* Doko logo — slightly smaller/refined per new request */
.welcome-logo {
  font-family: var(--fontD);
  font-size: 24px;
  font-weight: 600;
  font-style: italic;
  color: var(--ink1);
  letter-spacing: -0.3px;
  line-height: 1;
}
.welcome-right { display: flex; align-items: center; gap: 9px; }
/* Running clock between logo and welcome-right */
.welcome-clock {
  flex: 1; text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--ink4); /* very light color — subtle */
  line-height: 1; user-select: none; pointer-events: none;
}
.welcome-text { font-size: 13px; color: var(--ink2); line-height: 1.3; text-align: right; }
.welcome-text strong { color: var(--ink1); font-weight: 700; }
/* Mini avatar in welcome bar */
.welcome-av {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-bg); border: 2px solid var(--accent-br);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--sh-xs);
}
.welcome-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ════════════════ Quotes ══════════════════════ */

.qotd-card {
      display: flex; align-items: center; gap: 10px;
      margin: 4px 14px 0;
      padding: 11px 14px;
      border-radius: var(--r12);
      border: 1.5px solid transparent;
      transition: background 0.4s ease;
    }
    .qotd-icon { font-size: 14px; flex-shrink: 0; line-height: 1; }
    .qotd-text { font-size: 12px; font-weight: 600; line-height: 1.5; font-style: italic; flex: 1; }

/* ══════════════════════════════════════
   CALENDAR
══════════════════════════════════════ */
.cal-card {
  margin: 6px 14px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r20);
  box-shadow: var(--sh-sm);
  overflow: visible;
  position: relative;
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px;
}
.cal-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface2);
  color: var(--ink2); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s; flex-shrink: 0; user-select: none;
}
.cal-arrow:hover { background: var(--accent-bg); border-color: var(--accent-br); color: var(--accent); }

.cal-month-btn {
  font-family: var(--fontD); font-size: 17px; font-weight: 600;
  color: var(--ink1); background: none; border: none; cursor: pointer;
  padding: 4px 8px; border-radius: var(--r8); transition: background 0.15s;
  display: flex; align-items: center; gap: 5px;
}
.cal-month-btn:hover { background: var(--bg2); }
.cal-month-btn .dd-arrow {
  font-size: 10px; color: var(--ink3); font-family: var(--font);
}

/* Month/year dropdown */
.month-dd {
  position: absolute; top: 60px; left: 50%;
  transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--r16); z-index: 300;
  box-shadow: var(--sh-lg); min-width: 210px;
  display: none; overflow: hidden;
  animation: ddIn 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.month-dd.open { display: block; }
@keyframes ddIn { from{opacity:0;transform:translateX(-50%) scale(0.9)} to{opacity:1;transform:translateX(-50%) scale(1)} }

.dd-yr-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 8px; border-bottom: 1px solid var(--border);
}
.dd-yr-label { font-weight: 700; font-size: 14px; color: var(--ink1); }
.dd-yr-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface2);
  color: var(--ink2); font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.dd-yr-btn:hover { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-br); }

.dd-months {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; padding: 8px;
}
.dd-mon {
  padding: 8px 4px; text-align: center; border-radius: var(--r8);
  font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--ink2); transition: all 0.15s;
}
.dd-mon:hover { background: var(--bg2); color: var(--ink1); }
.dd-mon.active { background: var(--accent-bg); color: var(--accent); }

/* Day names */
.cal-daynames {
  display: grid; grid-template-columns: repeat(7,1fr);
  padding: 0 10px 2px;
}
.cal-dn {
  text-align: center; font-size: 10px; font-weight: 700;
  color: var(--ink4); letter-spacing: 0.4px; padding: 2px 0;
}

/* Grid */
/* Wrapper inside padding area gets the outer border via a pseudo approach —
   cells use right+bottom only (border-collapse pattern) so every internal
   line is exactly 1px. The grid container gets outline for the outer edges. */
.cal-grid-wrap {
  margin: 0 10px 12px;
  border: 1px solid rgba(0,0,0,0.07);
  display: grid; grid-template-columns: repeat(7,1fr);
}
.cal-cell {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 0; cursor: pointer; position: relative;
  font-size: 13.5px; font-weight: 600; color: var(--ink2);
  transition: all 0.15s; user-select: none;
  border-right: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
/* Last column: no right border (outer border covers it) */
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover:not(.cal-other) { color: var(--ink1); }
.cal-cell:hover:not(.cal-other)::before { opacity: 1; background: var(--bg2); }
.cal-cell.cal-other { color: var(--ink4); cursor: default; font-weight: 400; }

/* Shared pseudo-element for the circle indicator (today + selected + hover) */
.cal-cell::before {
  content: ''; position: absolute;
  width: 90%; height: 90%;
  border-radius: 50%; opacity: 0;
  transition: all 0.15s; z-index: 0;
}
/* Today: subtle gray circle */
.cal-cell.cal-today::before {
  background: rgba(0,0,0,0.07); opacity: 1;
}
.cal-cell.cal-today { color: var(--ink1); font-weight: 800; }

/* Selected: blue circle */
.cal-cell.cal-selected::before {
  background: var(--accent);
  box-shadow: var(--sh-acc); opacity: 1;
}
.cal-cell.cal-selected { color: #fff; font-weight: 700; }

/* Date number and dots sit above the pseudo circle */
.cal-cell-num {
  position: relative; z-index: 1;
  line-height: 1;
}
.cal-cell.cal-selected .cal-cell-num { color: #fff; }
.cal-cell .cal-dots { z-index: 1; }

/* Dot row — one or two dots per date */
.cal-dots {
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 3px;
  pointer-events: none;
}
.cal-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.cal-dot--act     { background: var(--accent); }
.cal-dot--holiday { background: #ef4444; }

/* When selected, both dots go white so they stay visible on the blue bg */
.cal-cell.cal-selected .cal-dot { background: rgba(255,255,255,0.85); }

/* ══════════════════════════════════════
   SECTION DIVIDER
══════════════════════════════════════ */
.section-line {
  height: 1px; background: var(--border);
  margin: 12px 14px 0;
}

/* ══════════════════════════════════════
   ACTIVITY LIST (home + full page)
══════════════════════════════════════ */
.act-section { padding: 10px 14px 0; }
.act-sec-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.act-sec-label {
  font-family: var(--fontD); font-size: 15px; font-weight: 600; color: var(--ink1);
}
.act-count-pill {
  font-size: 10px; font-weight: 700; color: var(--ink3);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r99); padding: 2px 10px;
}

.act-list { display: flex; flex-direction: column; gap: 4px; }

/* ── Calendar page layout: fixed top, scrollable list only ── */
#pg-calendar {
  overflow: hidden;
}
.cal-fixed-top {
  flex-shrink: 0;
}
.cal-act-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 6px 14px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
}
.cal-act-scroll::-webkit-scrollbar { display: none; }

/* ══════════════════════════════════════
   HOLIDAY CARDS (calendar page only)
   Non-clickable — info only. Shown above
   user activities for the selected date.
══════════════════════════════════════ */
.holiday-card {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 13px; border-radius: var(--r12);
  border: 1.5px solid; animation: itemIn 0.22s ease both;
  cursor: default; user-select: none;
  /* no hover/active transform — intentionally inert */
}
.holiday-card-emoji {
  font-size: 20px; flex-shrink: 0; line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.10));
}
.holiday-card-body { flex: 1; min-width: 0; }
.holiday-card-name {
  font-size: 13px; font-weight: 700; color: var(--ink1);
  line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.holiday-card-type {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.7px;
  text-transform: uppercase; margin-top: 2px;
}

/* Per-type colour variants */
.holiday-card--national {
  background: rgba(239,68,68,0.06);
  border-color: rgba(239,68,68,0.20);
}
.holiday-card--national .holiday-card-type { color: #dc2626; }

.holiday-card--festival {
  background: rgba(245,158,11,0.07);
  border-color: rgba(245,158,11,0.22);
}
.holiday-card--festival .holiday-card-type { color: #d97706; }

.holiday-card--observance {
  background: rgba(92,107,192,0.07);
  border-color: rgba(92,107,192,0.20);
}
.holiday-card--observance .holiday-card-type { color: var(--accent); }

.holiday-card--cultural {
  background: rgba(20,184,166,0.07);
  border-color: rgba(20,184,166,0.20);
}
.holiday-card--cultural .holiday-card-type { color: #0d9488; }

.act-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r12); padding: 10px 13px;
  cursor: pointer; transition: all 0.18s;
  animation: itemIn 0.22s ease both;
}
.act-item:hover { border-color: var(--border2); box-shadow: var(--sh-xs); transform: translateX(2px); }
@keyframes itemIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

.act-meta {
  display: flex; align-items: center; gap: 7px; margin-bottom: 3px; flex-wrap: wrap;
}
.act-time-lbl { font-size: 11px; color: var(--ink3); font-weight: 600; }

/* Activity item two-column layout: title+time left, tags right */
.act-item-row  { display: flex; align-items: center; gap: 10px; width: 100%; }
.act-item-left { flex: 1; min-width: 0; }
.act-time-row  { margin-top: 2px; }
.act-tags-col  {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 3px; flex-shrink: 0; max-width: 160px;
}
.act-tags-col .tag { white-space: nowrap; }

.tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 2px 7px; border-radius: var(--r99);
}
.tag-personal { background: var(--personal-bg); color: var(--personal); }
.tag-work     { background: var(--work-bg);     color: var(--work); }
.tag-done     { background: var(--green-bg);     color: var(--green); }
.tag-open     { background: rgba(100,116,139,0.10); color: #64748b; }
.tag-cat      { background: rgba(139,92,246,0.10); color: #7c3aed; }

.act-name { font-size: 14px; font-weight: 600; color: var(--ink1); line-height: 1.35; }
.act-item.done .act-name { color: var(--ink3); }

.act-empty {
  text-align: center; padding: 28px 20px;
  color: var(--ink3); font-size: 13.5px; line-height: 1.7;
}
.act-empty-icon { font-size: 28px; margin-bottom: 6px; opacity: 0.45; }

/* ══════════════════════════════════════
   FAB (floating action button)
══════════════════════════════════════ */
.fab {
  position: absolute;
  bottom: calc(var(--nav-h) + 14px);
  right: 18px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  border: none; font-size: 26px; line-height: 1;
  cursor: pointer; 
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-acc), var(--sh-md);
  transition: bottom 0.3s cubic-bezier(0.34,1.56,0.64,1),
              transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              background 0.18s;
}
.fab:hover { transform: scale(1.1) rotate(45deg); background: var(--accent-lt); }

/* ══════════════════════════════════════
   BOTTOM NAV
══════════════════════════════════════ */
#nav-root {
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  z-index: 90;
  pointer-events: none;
}
/* Fill the safe-area zone below nav with nav's own background color */
#nav-root::after {
  content: '';
  display: block;
  position: absolute;
  bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  left: 0; right: 0;
  height: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,0.96);
  pointer-events: none;
}
.more-tray {
  display: flex; justify-content: space-around;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 8px 4px max(6px, calc(env(safe-area-inset-bottom, 0px) - 8px));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: auto;
}
.more-tray.open { transform: translateY(0); }
.bottom-nav {
  display: flex; 
  justify-content: space-around;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  min-height: var(--nav-h);
  /* Expand into home-indicator zone on notched phones */
  padding: 6px 0 max(14px, env(safe-area-inset-bottom, 14px));
  pointer-events: auto;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 4px 10px; border-radius: var(--r12);
  cursor: pointer; transition: all 0.2s; min-width: 50px;
  user-select: none; -webkit-user-select: none;
}
.nav-item:hover { background: var(--bg2); }
.nav-item.nav-active { background: var(--accent-bg); }
.nav-icon { font-size: 20px; line-height: 1; transition: transform 0.2s; }
.nav-item.nav-active .nav-icon { transform: translateY(-1px); }
.nav-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.3px; color: var(--ink3);
}
.nav-item.nav-active .nav-label { color: var(--accent); }

/* Timer running */
.nav-item.timer-on .nav-icon { animation: timerTick 1s ease-in-out infinite; }
@keyframes timerTick { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2) rotate(10deg)} }

/* ══════════════════════════════════════
   ACTIVITY PAGE TOOLBAR
══════════════════════════════════════ */
.act-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 8px; position: relative;
}
.tool-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r99);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink2); font-family: var(--font); font-size: 12px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.3px; transition: all 0.18s; box-shadow: var(--sh-xs);
  flex-shrink: 0; min-width: 110px; justify-content: center;
}
.tool-btn:hover { border-color: var(--border2); color: var(--ink1); box-shadow: var(--sh-sm); }
.tool-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Search field */
.act-search-wrap { flex: 1; position: relative; min-width: 0; }
.act-search-inp {
  width: 100%; padding: 8px 32px 8px 12px;
  border-radius: var(--r99); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink1);
  font-family: var(--font); font-size: 12px; font-weight: 500;
  outline: none; transition: all 0.18s; box-shadow: var(--sh-xs);
}
.act-search-inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.act-search-inp::placeholder { color: var(--ink4); }
.act-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink4); color: #fff; border: none;
  font-size: 10px; cursor: pointer; display: none;
  align-items: center; justify-content: center; font-weight: 700;
  transition: background 0.15s; line-height: 1;
}
.act-search-clear.visible { display: flex; }
.act-search-clear:hover { background: var(--ink3); }

/* Sort inside filter - reuse sort-pop for filter panel */
.sort-pop {
  position: absolute; top: 46px; right: 16px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--r12); padding: 8px; z-index: 200;
  box-shadow: var(--sh-lg); min-width: 155px; display: none;
  animation: ddIn2 0.2s ease;
}
.sort-pop.open { display: block; }
@keyframes ddIn2 { from{opacity:0;transform:translateY(-5px)} to{opacity:1;transform:none} }
.sort-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--r8);
  font-size: 12px; color: var(--ink2); cursor: pointer; transition: background 0.14s;
  user-select: none;
}
.sort-opt:hover { background: var(--bg2); }
.sort-opt.active { color: var(--accent); font-weight: 700; }
.sort-opt input { accent-color: var(--accent); }

/* Delete (trash) FAB — C12: same size as + FAB, positioned above it */
.fab-delete {
  position: absolute;
  bottom: calc(var(--nav-h) + 14px);
  right: 76px;
  width: 50px; height: 50px; /* same as .fab */
  border-radius: 50%;
  background: var(--red-bg); color: var(--red);
  border: 1.5px solid rgba(239,68,68,0.3); font-size: 22px;
  cursor: pointer; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-sm);
  transition: bottom 0.3s cubic-bezier(0.34,1.56,0.64,1),
              transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              background 0.18s;
}
.fab-delete:hover { background: rgba(239,68,68,0.18); transform: scale(1.1); }

/* Bulk delete bottom bar */
.bulk-bar {
  position: absolute; bottom: var(--nav-h); left: 0; right: 0;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 10px 14px; gap: 8px; z-index: 95;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  display: none; /* hidden until bulk mode */
}
.bulk-bar.open { display: flex; }

/* Checkbox on act-item */
.act-item-check {
  display: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border2); background: var(--surface2);
  cursor: pointer; flex-shrink: 0; align-items: center; justify-content: center;
  transition: all 0.15s; margin-right: 8px; font-size: 11px;
}
.bulk-mode .act-item { display: flex; align-items: flex-start; cursor: default; }
.bulk-mode .act-item-check { display: flex; margin-top: 2px; }
.bulk-mode .act-item-content { flex: 1; min-width: 0; }
.act-item.bulk-checked .act-item-check {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* Confirm modal */
.confirm-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.22s;  
}
.confirm-modal-overlay.open {
   opacity: 1; pointer-events: all;
   transform: translateZ(0); -webkit-transform: translateZ(0);
}
@media (min-width: 431px) {
  .confirm-modal-overlay { position: absolute; }
}
.confirm-modal {
  width: 82%; background: var(--surface);
  border-radius: var(--r20); padding: 24px 20px 20px;
  box-shadow: var(--sh-lg); text-align: center;
  animation: boxIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.confirm-modal-icon { font-size: 32px; margin-bottom: 10px; }
.confirm-modal-title { font-family: var(--fontD); font-size: 17px; font-weight: 600; color: var(--ink1); margin-bottom: 8px; }
.confirm-modal-msg { font-size: 13px; color: var(--ink2); line-height: 1.55; margin-bottom: 20px; }
.confirm-modal-btns { display: flex; gap: 10px; }



/* Full list */
.full-list {
  flex: 1; overflow-y: auto;
  padding: 0 14px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
  display: flex; flex-direction: column; gap: 4px;
}
.full-list::-webkit-scrollbar { display: none; }
.bulk-mode .full-list { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 70px); }

.act-pagination {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 16px; padding: 12px 0 8px;
  flex-shrink: 0;
}
.pag-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink1); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.pag-btn:disabled { opacity: 0.35; cursor: default; }
.pag-btn:not(:disabled):active { background: var(--accent-bg); border-color: var(--accent-br); }
.pag-info { font-size: 13px; color: var(--ink2); font-weight: 600; }

/* ══════════════════════════════════════
   FILTER PANEL
══════════════════════════════════════ */
.filter-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3); z-index: 120;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.filter-overlay.open { opacity: 1; pointer-events: all; }

.filter-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: 80%;
  background: var(--surface); border-right: 1px solid var(--border2);
  z-index: 130; display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--sh-lg);
}
.filter-panel.open { transform: translateX(0); }
.fp-head { padding: 16px 16px 12px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--ink1); }
.fp-body { display: flex; flex: 1; overflow: hidden; }
.fp-sidebar {
  width: 90px; background: var(--surface2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow-y: auto;
}
.fp-sidebar::-webkit-scrollbar { display: none; }
.fp-cat {
  padding: 14px 12px; font-size: 11px; font-weight: 700;
  color: var(--ink3); cursor: pointer; border-left: 2px solid transparent; transition: all 0.15s;
}
.fp-cat.active { color: var(--accent); background: var(--accent-bg); border-left-color: var(--accent); }
.fp-content { flex: 1; padding: 10px; overflow-y: auto; }
.fp-content::-webkit-scrollbar { display: none; }
.fp-group { display: none; }
.fp-group.active { display: block; }
.fp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.fp-chip {
  padding: 6px 12px; border-radius: var(--r99);
  border: 1px solid var(--border); background: var(--surface2);
  color: var(--ink2); font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.fp-chip:hover { border-color: var(--border2); color: var(--ink1); }
.fp-chip.active { background: var(--accent-bg); border-color: var(--accent-br); color: var(--accent); }
.fp-foot { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }

/* ══════════════════════════════════════
   MODAL / SHEET
══════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(3px);
  z-index: 200; display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  overscroll-behavior: contain;  
}
.overlay.open {
   opacity: 1; pointer-events: all;
   transform: translateZ(0); -webkit-transform: translateZ(0);
}
@media (min-width: 431px) {
  .overlay { position: absolute; }
}

/* C22: 80% height so top 20% is tappable to close */
.sheet {
  width: 100%; background: var(--surface);
  border-radius: 22px 22px 0 0; border-top: 1px solid var(--border);
  max-height: 80%;
  display: flex; flex-direction: column; /* flex for sticky footer */
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.12);
}
.overlay.open .sheet { transform: translateY(0); }

.sheet-handle {
  width: 36px; height: 4px; background: var(--border2);
  border-radius: 2px; margin: 12px auto 0; flex-shrink: 0;
}
.sheet-title {
  padding: 12px 20px 10px; font-family: var(--fontD);
  font-size: 18px; font-weight: 600; color: var(--ink1); letter-spacing: -0.2px;
  flex-shrink: 0;
}
.sheet-line { height: 1px; background: var(--border); flex-shrink: 0; }
/* C22: sheet-body scrolls, sheet-footer is sticky */
.sheet-body { padding: 16px 20px; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-footer {
  display: flex; gap: 8px; padding: 10px 20px 22px;
  border-top: 1px solid var(--border);
  flex-shrink: 0; background: var(--surface);
}
.sheet-footer .btn { flex: 1; }

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-group { margin-bottom: 13px; position: relative; }
.form-label {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.9px; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 5px;
}

.inp {
  width: 100%; background: var(--surface2);
  border: 1.5px solid var(--border); border-radius: var(--r10);
  padding: 10px 13px; color: var(--ink1);
  font-family: var(--font); font-size: 14px; font-weight: 500;
  outline: none; transition: all 0.18s; appearance: none;
}
.inp:focus { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px var(--accent-bg); }
.inp::placeholder { color: var(--ink4); font-weight: 400; }
.inp:disabled, .inp[readonly] { background: var(--bg2); color: var(--ink2); cursor: default; }
.inp[readonly]:not([data-clickable]) { pointer-events: none; }
/* readonly + data-clickable = picker input: looks normal, clickable, no keyboard */
.inp[readonly][data-clickable] {
  background: var(--surface2);
  color: var(--ink1);
  cursor: pointer;
  pointer-events: auto;
}
.inp[readonly][data-clickable][data-locked="true"] {
  background: var(--bg2);
  color: var(--ink2);
  cursor: default;
  opacity: 0.65;
}
.inp[data-clickable] { cursor: pointer; }
.inp[data-clickable]:focus { box-shadow: 0 0 0 3px var(--accent-bg); }

textarea.inp { resize: none; }
select.inp {
  width: 100%; 
  background: var(--surface2);
  border: 1.5px solid var(--border); 
  border-radius: var(--r10);
  padding: 10px 13px;
  font-family: var(--font); /* Nunito */
  font-size: 14px;
}

.seg {
  display: flex; background: var(--surface2);
  border: 1.5px solid var(--border); border-radius: var(--r10); padding: 3px; gap: 2px;
}
.seg-btn {
  flex: 1; padding: 7px; border-radius: 7px; border: none;
  background: transparent; color: var(--ink3);
  font-family: var(--font); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.18s;
}
.seg-btn.active {
  background: var(--white); color: var(--ink1);
  box-shadow: var(--sh-xs);
}
.seg-btn:disabled { cursor: not-allowed; }
.seg-btn.active:disabled { background: var(--bg2); }

/* ══════════════════════════════════════
   PICKERS (date / time)
══════════════════════════════════════ */
.picker-pop {
  position: absolute; z-index: 500; left: 0;
  background: var(--surface); border: 1.5px solid var(--border2);
  border-radius: var(--r16); box-shadow: var(--sh-lg);
  display: none; overflow: hidden; min-width: 220px; top: 72px;
  width: fit-content;
}
.picker-pop.open { display: block; animation: ddIn2 0.2s ease; }
/* Picker portal: sits at phone-shell level, visible above all scrollable containers */
.picker-portal {
  position: absolute; z-index: 800;
  background: var(--surface); border: 1.5px solid var(--border2);
  border-radius: var(--r16); box-shadow: var(--sh-lg);
  display: none; overflow: hidden; min-width: 220px;
}
.picker-portal.open { display: block; animation: ddIn2 0.2s ease; }

/* Mini-cal in picker */
.mc-wrap { padding: 10px; }
.mc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.mc-title { font-size: 12px; font-weight: 700; color: var(--ink1); }
.mc-arr {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface2);
  color: var(--ink2); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.mc-arr:hover { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-br); }
.mc-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 1px; }
.mc-dn { text-align: center; font-size: 9px; font-weight: 700; color: var(--ink4); padding: 3px 0; }
.mc-day {
  text-align: center; padding: 5px 2px; font-size: 11px; font-weight: 600;
  color: var(--ink2); cursor: pointer; border-radius: 50%; transition: all 0.13s;
}
.mc-day:hover { background: var(--bg2); color: var(--ink1); }
.mc-day.mc-today { color: var(--accent); font-weight: 800; }
.mc-day.mc-sel { background: var(--accent); color: #fff; }

/* Time picker */
/* Compact 3-item drum-roll time picker */
.tp-wrap { padding: 8px 12px 10px; }
.tp-row  { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 8px; }
.tp-col  { display: flex; flex-direction: column; align-items: center; }
.tp-sc   { overflow: hidden; touch-action: pan-y; cursor: ns-resize; }
.tp-item {
  width: 52px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; border-radius: var(--r8);
  font-variant-numeric: tabular-nums;
  user-select: none; -webkit-user-select: none;
  transition: background 0.1s, color 0.1s;
}
/* Use .tp-cur/.tp-adj (not .cur/.adj) to avoid collision with other components */
.tp-cur {
  background: var(--accent-bg); color: var(--accent); font-size: 22px;
  border: 1.5px solid var(--accent-br); border-radius: var(--r8);
}
.tp-adj { color: var(--ink4); font-size: 13px; cursor: pointer; }
.tp-adj:hover { color: var(--ink2); background: var(--bg2); }
.tp-colon { font-size: 22px; font-weight: 800; color: var(--ink3); padding-bottom: 2px; }
.ampm-col { display: flex; flex-direction: column; gap: 4px; margin-left: 4px; }
.ampm-btn {
  padding: 6px 9px; border-radius: var(--r8);
  border: 1.5px solid var(--border); background: var(--surface2);
  color: var(--ink3); font-family: var(--font); font-size: 11px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.ampm-btn.active { background: var(--accent-bg); border-color: var(--accent-br); color: var(--accent); }

/* ══════════════════════════════════════
   MORE INFO SECTION
══════════════════════════════════════ */
.more-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--accent); font-size: 12px; font-weight: 700;
  background: none; border: none; cursor: pointer; padding: 4px 0;
  font-family: var(--font); transition: opacity 0.15s;
}
.more-toggle:hover { opacity: 0.75; }
.more-section {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height 0.35s ease, opacity 0.28s ease;
}
.more-section.open { max-height: 700px; opacity: 1; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 10px; }

/* Watchlist */
.wl-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.wl-del-btn {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--r8);
  border: 1px solid rgba(239,68,68,0.25); background: rgba(239,68,68,0.08);
  color: var(--red,#ef4444); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s; line-height: 1;
}
.wl-del-btn:hover { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.45); }
.perm-sel {
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--r10); color: var(--ink1);
  font-family: var(--font); font-size: 11px; font-weight: 600;
  padding: 10px 8px; outline: none; min-width: 66px; cursor: pointer;
}
.perm-sel:disabled { background: var(--bg2); cursor: not-allowed; }

/* Autocomplete */
.ac-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 600;
  background: var(--surface); border: 1.5px solid var(--border2);
  border-radius: var(--r12); overflow: hidden; box-shadow: var(--sh-lg); display: none;
}
.ac-item {
  padding: 9px 12px; font-size: 12px; cursor: pointer; color: var(--ink1);
  transition: background 0.13s; display: flex; align-items: center; gap: 8px;
  font-weight: 600;
}
.ac-item:hover { background: var(--bg2); }
.ac-av {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-bg); border: 1px solid var(--accent-br);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: var(--accent);
}

/* ══════════════════════════════════════
   TIMER MODAL
══════════════════════════════════════ */
.timer-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  z-index: 300; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.timer-overlay.open { opacity: 1; pointer-events: all; }

.timer-box {
  width: 84%; background: var(--surface);
  border: 1px solid var(--border); border-radius: 22px;
  position: relative; overflow: visible;
  box-shadow: var(--sh-lg);
  animation: boxIn 0.32s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes boxIn { from{transform:scale(0.82);opacity:0} to{transform:scale(1);opacity:1} }

.timer-x {
  position: absolute; top: -13px; right: -13px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--border2);
  color: var(--ink2); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 10;
  transition: all 0.18s; box-shadow: var(--sh-sm);
}
.timer-x:hover { background: var(--red-bg); color: var(--red); border-color: rgba(239,68,68,0.3); }

.timer-head {
  padding: 16px 20px 12px; font-size: 10px; font-weight: 800;
  color: var(--ink3); letter-spacing: 1.8px; text-transform: uppercase;
  text-align: center; border-bottom: 1px solid var(--border);
}
.timer-body { padding: 20px 12px 22px; }

/* Roller */
.roller-wrap { display: flex; align-items: flex-start; justify-content: center; gap: 2px; }
.r-unit { display: flex; flex-direction: column; align-items: center; }
.r-scroll {
  display: flex; flex-direction: column; align-items: center;
  gap: 0; overflow: hidden; height: 138px; position: relative;
  cursor: ns-resize;
}
.r-item {
  width: 56px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; border-radius: var(--r8);
  transition: background 0.13s, color 0.13s;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.r-item.cur {
  background: var(--accent-bg); color: var(--accent);
  font-size: 22px; border: 1.5px solid var(--accent-br);
  height: 36px;
}
.r-item.adj1 { color: var(--ink2); font-size: 16px; }
.r-item.adj2 { color: var(--ink4); font-size: 13px; }
.r-colon {
  font-size: 24px; font-weight: 800; color: var(--ink3);
  align-self: center; margin: 0 1px; padding-bottom: 16px;
}
.r-label { font-size: 8px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink4); margin-top: 4px; }

/* Circle timer */
.circle-view { text-align: center; padding: 4px 0; }
.svg-ring { position: relative; width: 170px; height: 170px; margin: 0 auto 14px; }
.svg-ring svg { width: 170px; height: 170px; }
.ring-track { fill: none; stroke: var(--accent); stroke-width: 10; opacity: 0.2; }
.ring-prog {
  fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round;
  /* transition: stroke-dashoffset 0.25s linear; */
}
.ring-dot {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--accent); border-radius: 50%;
  border: 2.5px solid var(--surface);
  box-shadow: 0 0 8px rgba(92,107,192,0.5);
  pointer-events: none;
}
.ring-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fontD); font-size: 26px; font-weight: 600;
  color: var(--ink1); font-variant-numeric: tabular-nums; letter-spacing: 1px;
}

.t-controls { display: flex; justify-content: center; gap: 16px; margin-top: 4px; }
.t-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: none; background: var(--accent);
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; box-shadow: var(--sh-acc);
}
.t-btn:hover { transform: scale(1.08); background: var(--accent-lt); }
.t-btn.play {
  background: var(--accent); border-color: var(--accent);
  color: #fff; width: 58px; height: 58px; font-size: 20px;
  box-shadow: var(--sh-acc);
}
.t-btn.play:hover { background: var(--accent-lt); }

/* Stop button: square icon; Pause: two vertical bars */
.t-btn-stop-icon {
  width: 18px; height: 18px; background: #fff; border-radius: 3px;
}
.t-btn-pause-icon {
  display: flex; gap: 4px; align-items: center;
}
.t-btn-pause-icon span {
  width: 5px; height: 20px; background: #fff; border-radius: 2px;
}

/* ══════════════════════════════════════
   ACCOUNT PAGE
══════════════════════════════════════ */
.av-section { display: flex; flex-direction: column; align-items: center; padding: 16px 0 8px; }
/* C19: Increase avatar ring size proportionally */
.av-ring {
  width: 90px; height: 90px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fontD); font-size: 30px; color: #fff;
  position: relative; box-shadow: var(--sh-md); cursor: pointer;
  overflow: visible;
}
.av-inner {
  width: 90px; height: 90px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fontD); font-size: 34px; color: #fff;
}
/* C18: Smaller, cleaner avatar edit button */
.av-edit-btn {
  position: absolute; bottom: -1px; right: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface);
  color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.2s;
  z-index: 2; box-shadow: var(--sh-sm);
}
.av-edit-btn:hover { transform: scale(1.15); background: var(--accent-lt); }

/* Account page — fixed top + scrollable body */
#pg-account.active {
  display: flex; flex-direction: column; overflow: hidden;
}
.acc-fixed-top {
  flex-shrink: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.acc-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 8px);
}
.acc-scroll::-webkit-scrollbar { display: none; }

/* Image avatar correct sizing - change19 */
.av-opt.img-av img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: var(--r10);
  background: var(--surface2);
}
.av-inner img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.av-name { font-family: var(--fontD); font-size: 20px; margin-top: 12px; letter-spacing: -0.3px; color: var(--ink1); }
.av-uid {
  font-size: 10px; color: var(--ink3); letter-spacing: 1.2px; margin-top: 3px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r99); padding: 2px 12px; font-weight: 700;
}
/* C28: Larger, more prominent ID display */
.av-uid-lg {
  font-size: 12px; color: var(--ink2); letter-spacing: 1.4px; margin-top: 5px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--r99); padding: 4px 16px; font-weight: 800;
}

/* Avatar picker grid */
.av-picker { display: none; margin: 4px 14px 0; }
.av-picker.open { display: block; }
.av-picker-inner {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r16); overflow: hidden;
}
.av-picker-title { padding: 10px 14px 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.9px; text-transform: uppercase; color: var(--ink3); border-bottom: 1px solid var(--border); }
.av-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 10px; }
.av-opt {
  aspect-ratio: 1; border-radius: var(--r12); border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; cursor: pointer; transition: all 0.18s; overflow: hidden;
}
.av-opt img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r10); }
.av-opt:hover, .av-opt.sel { border-color: var(--accent); }

/* Profile card */
.acc-card {
  margin: 6px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r16); overflow: hidden;
  box-shadow: var(--sh-xs);
}
.acc-field {
  display: flex; align-items: center; padding: 11px 14px;
  border-bottom: 1px solid var(--border); gap: 10px;
}
.acc-field:last-child { border-bottom: none; }
.afl { font-size: 10px; font-weight: 800; color: var(--ink3); letter-spacing: 0.7px; text-transform: uppercase; min-width: 52px; }
.afi { flex: 1; background: transparent; border: none; outline: none; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink1); cursor: default; }
.afi:enabled { cursor: text; border-bottom: 1.5px solid var(--accent); }

.fe-btn, .fs-btn, .fc-btn {
  width: 28px; height: 28px; border-radius: 50%; font-size: 11px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s; border: 1.5px solid var(--border);
}
.fe-btn { background: var(--surface2); color: var(--ink3); }
.fe-btn:hover { border-color: var(--accent-br); color: var(--accent); background: var(--accent-bg); }
.fs-btn { background: var(--green-bg); color: var(--green); border-color: rgba(34,197,94,0.3); }
.fc-btn { background: var(--red-bg); color: var(--red); border-color: rgba(239,68,68,0.3); margin-left: 3px; }

.acc-expand-btn {
  width: calc(100% - 28px); margin: 4px 14px;
  padding: 13px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r16);
  color: var(--ink1); font-family: var(--font); font-size: 14px; font-weight: 700;
  text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.18s; box-shadow: var(--sh-xs);
}
.acc-expand-btn:hover { border-color: var(--border2); background: var(--surface2); }
.aeb-chev { color: var(--ink3); font-size: 14px; transition: transform 0.22s; }
.acc-expand-btn.open .aeb-chev { transform: rotate(90deg); }

.acc-expand-body {
  margin: 0 14px 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r16); overflow: hidden; display: none;
  box-shadow: var(--sh-xs);
}
.acc-expand-body.open { display: block; animation: pgIn 0.2s ease; }
.aeb-head { padding: 11px 14px 9px; font-size: 10px; font-weight: 800; color: var(--ink3); letter-spacing: 0.9px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.aeb-inner { padding: 14px; }

.pw-match { font-size: 11px; margin-top: 4px; font-weight: 600; }
.pw-match.ok { color: var(--green); }
.pw-match.no { color: var(--red); }

/* Notification row */
.notif-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 4px 0 10px;
}
.notif-row-left { flex: 1; min-width: 0; }
.notif-row-title { font-size: 14px; font-weight: 600; color: var(--ink1); }
.notif-row-sub { font-size: 12px; color: var(--ink3); margin-top: 2px; }
.notif-note {
  font-size: 12px; color: var(--ink3); line-height: 1.5;
  background: var(--bg2); border-radius: var(--r8);
  padding: 10px 12px; margin-top: 4px;
}

/* iOS-style toggle */
.tog-wrap { position: relative; display: inline-block; cursor: pointer; flex-shrink: 0; }
.tog-inp { position: absolute; opacity: 0; width: 0; height: 0; }
.tog-track {
  display: block; width: 44px; height: 26px;
  background: var(--border2); border-radius: 13px;
  transition: background 0.2s;
  position: relative;
}
.tog-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.tog-inp:checked + .tog-track { background: var(--accent); }
.tog-inp:checked + .tog-track .tog-thumb { transform: translateX(18px); }

.logout-btn {
  width: calc(100% - 28px); margin: 6px 14px 28px;
  padding: 13px; background: var(--red-bg);
  border: 1.5px solid rgba(239,68,68,0.2); border-radius: var(--r16);
  color: var(--red); font-family: var(--font); font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.18s;
}
.logout-btn:hover { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.35); }

/* ══════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════ */
.login-bg {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  background: var(--bg);
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: max(32px, env(safe-area-inset-top, 32px))
           max(24px, env(safe-area-inset-right, 24px))
           max(32px, env(safe-area-inset-bottom, 32px))
           max(24px, env(safe-area-inset-left, 24px));
}
.login-bg::-webkit-scrollbar { display: none; }
.login-logo {
  font-family: var(--fontD); font-size: 42px; font-weight: 600;
  color: var(--ink1); letter-spacing: -1px; margin-bottom: 4px;
  transition: font-size 0.2s, margin 0.2s;
}
.login-bg.otp-active .login-logo {
  font-size: 28px; margin-bottom: 2px;
}
.login-tagline {
  font-size: 12px; color: var(--ink3); font-weight: 500;
  margin-bottom: 28px; letter-spacing: 0.3px;
  transition: all 0.2s;
}
.login-bg.otp-active .login-tagline {
  display: none;
}
.login-card {
  width: 100%; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r20);
  padding: 24px 20px; box-shadow: var(--sh-md);
}
.login-card-title {
  font-family: var(--fontD); font-size: 19px; font-weight: 600;
  color: var(--ink1); margin-bottom: 18px; text-align: center;
}
.login-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0; color: var(--ink4); font-size: 11px; font-weight: 600;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.google-btn {
  width: 100%; padding: 11px; border-radius: var(--r10);
  border: 1.5px solid var(--border); background: var(--surface2);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  color: var(--ink1); cursor: pointer; transition: all 0.18s;
}
.google-btn:hover { border-color: var(--border2); box-shadow: var(--sh-sm); background: var(--white); }
.google-icon { width: 18px; height: 18px; }
.login-footer { text-align: center; margin-top: 16px; font-size: 11px; color: var(--ink3); }
.login-link { color: var(--accent); font-weight: 700; cursor: pointer; background: none; border: none; font-family: var(--font); font-size: 11px; }
.login-link:hover { text-decoration: underline; }
.login-error { color: var(--red); font-size: 11px; font-weight: 600; text-align: center; margin-top: 8px; display: none; }

/* ── OTP panel ── */
#otp-panel { display: none; animation: fadeSlideUp 0.25s ease; }
#otp-panel.visible { display: block; }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.otp-info {
  background: var(--accent-bg); border: 1px solid var(--accent-br);
  border-radius: var(--r12); padding: 10px 14px; margin-bottom: 12px;
  font-size: 12px; color: var(--ink2); line-height: 1.6;
}
.otp-info strong { color: var(--ink1); }
.otp-digits-wrap {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 6px;
}
.otp-digit {
  width: 42px; height: 52px;
  border: 2px solid var(--border); border-radius: var(--r10);
  background: var(--surface2);
  font-size: 22px; font-weight: 800; color: var(--ink1);
  text-align: center; caret-color: var(--accent); outline: none;
  transition: border-color 0.15s;
  font-family: 'Courier New', monospace;
  -webkit-appearance: none; appearance: none;
}
.otp-digit:focus {
  border-color: var(--accent); background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.otp-digit.filled { border-color: var(--accent); }
.otp-digit.error  { border-color: var(--red); animation: otpShake 0.3s ease; }
@keyframes otpShake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
.otp-timer {
  font-size: 11px; color: var(--ink4);
  text-align: center; margin-bottom: 14px;
}
.otp-timer span { color: var(--accent); font-weight: 700; }
.otp-resend-row {
  text-align: center; margin-bottom: 16px;
  font-size: 12px; color: var(--ink3);
}
.otp-resend-btn {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-weight: 700; font-size: 12px;
  padding: 0; text-decoration: underline; font-family: var(--font);
}
.otp-resend-btn:disabled { color: var(--ink4); text-decoration: none; cursor: default; }
.otp-back-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; width: 100%; margin-top: 10px;
  background: none; border: 1.5px solid var(--border);
  border-radius: var(--r99); padding: 10px;
  font-size: 13px; color: var(--ink2); font-weight: 600;
  cursor: pointer; transition: background 0.15s; font-family: var(--font);
}
.otp-back-btn:hover { background: var(--surface2); }
.inp[readonly] {
  background: var(--surface2) !important;
  color: var(--ink3) !important;
  pointer-events: none; user-select: none;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r99);
  /* Transparent border baseline — prevents height jump when btn-ghost border appears */
  border: 1.5px solid transparent;
  cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 700;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s,
              border-color 0.18s, flex 0.18s;
  letter-spacing: 0.2px;
}
.btn-pri { background: var(--accent); color: #fff; box-shadow: var(--sh-acc); }
.btn-pri:hover { background: var(--accent-lt); transform: translateY(-1px); }
/* btn-ghost only changes border color — no height change, no reflow */
.btn-ghost { background: transparent; color: var(--ink2); border-color: var(--border2); }
.btn-ghost:hover { background: var(--bg2); color: var(--ink1); }
.btn-full { width: 100%; }

/* ══════════════════════════════════════
   SUPPORT / ABOUT / STATIC PAGES
══════════════════════════════════════ */
.static-page { padding: 0 0 20px; }
.static-section {
  margin: 8px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r16); overflow: hidden; box-shadow: var(--sh-xs);
}
.static-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
}
.static-row:last-child { border-bottom: none; }
.static-row:hover { background: var(--surface2); }
.static-row-icon { font-size: 19px; width: 28px; text-align: center; }
.static-row-text { flex: 1; }
.static-row-title { font-size: 13px; font-weight: 700; color: var(--ink1); }
.static-row-sub { font-size: 11px; color: var(--ink3); margin-top: 1px; }
.static-row-chev { color: var(--ink4); font-size: 13px; }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast {
  position: absolute; bottom: calc(var(--nav-h) + 12px); left: 50%;
  transform: translateX(-50%);
  background: var(--ink1); color: #fff;
  padding: 9px 18px; border-radius: var(--r99);
  font-size: 12px; font-weight: 600; z-index: 999;
  white-space: nowrap; box-shadow: var(--sh-md);
  animation: toastIn 0.25s ease;
}
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(8px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

/* ══════════════════════════════════════
   RECURRING SECTION
══════════════════════════════════════ */
.recur-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 0; }
.seq-field {
  width: 100%; background: var(--surface2);
  border: 1.5px solid var(--border); border-radius: var(--r10);
  padding: 10px 13px; color: var(--ink1);
  font-family: var(--font); font-size: 14px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  transition: all 0.18s; user-select: none;
}
.seq-field:focus, .seq-field.open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.seq-arrow { color: var(--ink4); font-size: 10px; transition: transform 0.2s; }
.seq-field.open .seq-arrow { transform: rotate(180deg); }
.seq-tray-handle { width: 36px; height: 4px; background: var(--border2); border-radius: 2px; margin: 12px auto 8px; }
.seq-tray-title { text-align: center; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink3); margin-bottom: 8px; }
.seq-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.14s; font-size: 14px; font-weight: 600; color: var(--ink1);
}
.seq-opt:last-child { border-bottom: none; }
.seq-opt:hover { background: var(--surface2); }
.seq-check {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s; font-size: 11px;
}
.seq-opt.selected .seq-check { background: var(--accent); border-color: var(--accent); color: #fff; }

/* About Us button in account */
.about-btn {
  width: calc(100% - 28px); margin: 4px 14px;
  padding: 13px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r16);
  color: var(--ink2); font-family: var(--font); font-size: 14px; font-weight: 700;
  text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.18s; box-shadow: var(--sh-xs); gap: 10px;
}
.about-btn:hover { border-color: var(--border2); background: var(--surface2); color: var(--ink1); }

/* Google auth message */
.google-auth-msg {
  background: var(--accent-bg); border: 1px solid var(--accent-br);
  border-radius: var(--r12); padding: 14px 16px;
  font-size: 13px; color: var(--ink2); line-height: 1.6;
}
.google-auth-msg a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* C8/9: Stacked filter chips (one per row) */
.fp-chips-col { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.fp-chips-col .fp-chip { width: auto; display: inline-block; text-align: left; white-space: nowrap; }

/* C6: seq-tray half the screen width, centered */
.seq-tray {
  position: absolute; bottom: 0; left: 8px; transform: translateY(100%);
  width: 55%;
  background: var(--surface); border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--border2); z-index: 620;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1);
  max-height: 65%; overflow-y: auto;
}
.seq-tray.open { transform: translateY(0); }
/* ── Drum picker (Month / Year) ─────────────────────── */
.drum-picker-wrap {
  padding: 8px 6px 10px; user-select: none;
}
.drum-picker-title {
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--ink3);
  text-align: center; margin-bottom: 6px;
}
.drum-picker-body {
  display: flex; gap: 6px; justify-content: center;
  max-height: 140px;
}
.drum-picker-single { justify-content: center; }
.drum-col {
  flex: 1; overflow-y: auto; max-height: 130px;
  border: 1px solid var(--border); border-radius: var(--r10);
  background: var(--surface); scroll-snap-type: y mandatory;
}
.drum-col::-webkit-scrollbar { width: 3px; }
.drum-col::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
.drum-item {
  padding: 6px 8px; text-align: center; font-size: 12px; font-weight: 500;
  color: var(--ink2); cursor: pointer; scroll-snap-align: start;
  transition: background 0.12s, color 0.12s; white-space: nowrap;
}
.drum-item:hover { background: var(--accent-bg); color: var(--accent); }
.drum-item.drum-sel {
  background: var(--accent); color: #fff; font-weight: 700;
  border-radius: var(--r8);
}
.drum-item.drum-dis { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.drum-item-lg { font-size: 12px; font-weight: 600; padding: 8px 12px; }
.drum-confirm { margin-top: 6px; }

.seq-tray-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.2); z-index: 615;
  display: none;
}
.seq-tray-overlay.open { display: block; }

/* C6: Disabled dates in calendar */
.mc-day.mc-disabled { color: var(--ink4); cursor: default; pointer-events: none; }

/* C24: Notification banner */
.doko-notif {
  position: absolute; top: 16px; left: 50%;
  transform: translateX(-50%) translateY(-80px);
  min-width: min(300px, calc(100% - 28px)); max-width: calc(100% - 28px);
  padding: 10px 16px; border-radius: var(--r99);
  font-size: 13px; font-weight: 700; z-index: 9999;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--sh-lg);
  white-space: normal; word-break: break-word; text-align: left;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  opacity: 0; pointer-events: none;
}
.doko-notif.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.doko-notif.hide { transform: translateX(-50%) translateY(-80px); opacity: 0; }
.doko-notif-success { background: #16a34a; color: #fff; }
.doko-notif-error   { background: #dc2626; color: #fff; }
.doko-notif-info    { background: var(--accent); color: #fff; }
.doko-notif-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}

/* ══════════════════════════════════════
   STATUS MINI-SHEET
══════════════════════════════════════ */
.status-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.38); backdrop-filter: blur(4px);
  z-index: 350; display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity 0.22s ease;
}
.status-overlay.open { opacity: 1; pointer-events: all; }
.status-sheet {
  width: 100%; background: var(--surface);
  border-radius: 20px 20px 0 0; border-top: 1px solid var(--border);
  padding-bottom: 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.status-overlay.open .status-sheet { transform: translateY(0); }
.status-sheet-handle {
  width: 36px; height: 4px; background: var(--border2);
  border-radius: 2px; margin: 12px auto 4px;
}
.status-sheet-title {
  text-align: center; font-size: 11px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink3);
  padding: 6px 20px 10px; border-bottom: 1px solid var(--border);
}
.status-btns { display: flex; flex-direction: column; }
.status-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px; background: none; border: none;
  border-bottom: 1px solid var(--border);
  width: 100%; text-align: left; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--ink1); transition: background 0.14s;
}
.status-opt:last-child { border-bottom: none; }
.status-opt:active { background: var(--bg2); }
.status-opt[data-s="working"]  { color: #2563eb; }
.status-opt[data-s="onhold"]   { color: #d97706; }
.status-opt[data-s="complete"] { color: #16a34a; }
.status-icon { font-size: 18px; width: 26px; text-align: center; flex-shrink: 0; }
.status-opt-active { background: var(--bg2) !important; }
.status-cur-chk { font-size: 13px; font-weight: 900; margin-left: auto; padding-left: 8px; }
/* Status tags */
.tag-working { background: rgba(37,99,235,0.10);  color: #2563eb; }
.tag-onhold  { background: rgba(217,119,6,0.10);  color: #d97706; }
.tag-overdue { background: rgba(239,68,68,0.12);  color: #dc2626; }

/* ── E3/E4: Category picker & prefs ── */
.cat-display { display:flex;align-items:center;gap:8px;padding:9px 12px;border:1.5px solid var(--border);border-radius:var(--r10);background:var(--surface2);cursor:pointer;min-height:38px;font-size:13px;transition:border-color 0.15s; }
.cat-display:hover { border-color: var(--border2); }
.cat-locked { cursor:default;opacity:0.65; }
.cat-locked:hover { border-color: var(--border); }
.cat-picker-overlay { position:absolute;inset:0;background:rgba(0,0,0,0.35);backdrop-filter:blur(3px);z-index:400;display:flex;align-items:flex-end;opacity:0;pointer-events:none;transition:opacity 0.2s ease; }
.cat-picker-overlay.open { opacity:1;pointer-events:all; }
.cat-picker { width:100%;background:var(--surface);border-radius:20px 20px 0 0;border-top:1px solid var(--border);transform:translateY(100%);transition:transform 0.28s cubic-bezier(0.34,1.56,0.64,1);padding-bottom:20px; }
.cat-picker-overlay.open .cat-picker { transform:translateY(0); }
.cat-picker-handle { width:36px;height:4px;background:var(--border2);border-radius:2px;margin:12px auto 6px; }
.cat-picker-title { text-align:center;font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--ink3);padding:4px 20px 10px;border-bottom:1px solid var(--border); }
.cat-picker-list { overflow-y:auto;max-height:var(--cat-list-h,240px); }
.cat-picker-item { display:flex;align-items:center;gap:14px;padding:0 24px;height:48px;border-bottom:1px solid var(--border);cursor:pointer;font-size:14px;font-weight:500;color:var(--ink1);transition:background 0.13s; }
.cat-picker-item:last-child { border-bottom:none; }
.cat-picker-item:active { background:var(--bg2); }
.cat-picker-item.active { color:var(--accent);font-weight:700; }
.cat-check { font-size:14px;font-weight:900;width:20px;flex-shrink:0;color:var(--accent); }
.cat-pref-row { display:flex;align-items:center;gap:8px;margin-bottom:10px; }
.cat-pref-label { font-size:12px;font-weight:600;color:var(--ink2);width:80px;flex-shrink:0; }
.cat-add-btn { width:32px;height:32px;border-radius:50%;background:var(--accent-bg);border:1.5px solid var(--accent-br);color:var(--accent);font-size:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background 0.14s; }
.cat-add-btn:hover { background:var(--accent-br); }
.cat-add-btn-disabled { opacity:0.4;cursor:not-allowed; }
/* Overdue row */
.act-item.overdue-item {
  background: rgba(239,68,68,0.06) !important;
  border-color: rgba(239,68,68,0.25) !important;
}
/* ══════════════════════════════════════
   UTILITY
══════════════════════════════════════ */
.hidden { display: none !important; }
.flex-1 { flex: 1; }


/* ══════════════════════════════════════
   CONTACTS PAGE
══════════════════════════════════════ */
/* ── Row 1: page title ── */
.ct-header {
  padding: 16px 18px 4px; flex-shrink: 0;
}
.ct-title {
  font-family: var(--fontD); font-size: 22px; font-weight: 600;
  color: var(--ink1); letter-spacing: -0.3px;
}
/* ── Row 2: search + hamburger ── */
.ct-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 10px; flex-shrink: 0;
}
.ct-menu-btn {
  width: 36px; height: 36px; border-radius: var(--r10);
  border: 1.5px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; transition: all 0.18s; flex-shrink: 0;
  box-shadow: var(--sh-xs);
}
.ct-menu-btn:hover { border-color: var(--accent-br); background: var(--accent-bg); }
.ct-menu-btn span {
  display: block; width: 16px; height: 2px;
  background: var(--ink2); border-radius: 2px; transition: background 0.18s;
}
.ct-menu-btn:hover span { background: var(--accent); }

/* Search bar — inline in toolbar */
.ct-search-wrap { flex: 1; position: relative; min-width: 0; }
.ct-search-inp {
  width: 100%; padding: 8px 28px 8px 12px;
  border: 1px solid var(--border); border-radius: var(--r99);
  background: var(--surface); color: var(--ink1);
  font-family: var(--font); font-size: 12px; font-weight: 500;
  outline: none; transition: all 0.18s; box-shadow: var(--sh-xs);
}
.ct-search-inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.ct-search-inp::placeholder { color: var(--ink4); }
/* Clear button — same pattern as activity page */
.ct-search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--ink4); color: #fff; border: none;
  font-size: 9px; cursor: pointer; display: none;
  align-items: center; justify-content: center; font-weight: 700;
  transition: background 0.15s; line-height: 1;
}
.ct-search-clear.visible { display: flex; }
.ct-search-clear:hover { background: var(--ink3); }

/* View menu dropdown */
.ct-view-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--r12); z-index: 300;
  box-shadow: var(--sh-lg); min-width: 190px;
  opacity: 0; pointer-events: none; transform: scale(0.92) translateY(-8px);
  transform-origin: top right; transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
.ct-view-menu.open { opacity: 1; pointer-events: all; transform: scale(1) translateY(0); }
.ct-view-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; cursor: pointer; transition: background 0.13s;
  font-size: 13px; font-weight: 600; color: var(--ink1); border-bottom: 1px solid var(--border);
}
.ct-view-item:last-child { border-bottom: none; }
.ct-view-item:hover { background: var(--bg2); }
.ct-view-item.active { color: var(--accent); background: var(--accent-bg); }
.ct-view-icon { font-size: 16px; width: 22px; text-align: center; }

/* Contact list */
.ct-list {
  flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.ct-list::-webkit-scrollbar { display: none; }

.ct-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r12); padding: 12px 14px;
  cursor: pointer; transition: all 0.18s; animation: itemIn 0.22s ease both;
  position: relative;
}
.ct-item:hover { border-color: var(--border2); box-shadow: var(--sh-xs); transform: translateX(2px); }
.ct-item.bulk-checked { border-color: var(--accent-br); background: var(--accent-bg); }

/* Direction icon — the circled arrow */
.ct-dir-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; position: relative;
}
.ct-dir-icon.outgoing {
  background: rgba(92,107,192,0.12); color: var(--accent);
  border: 1.5px solid rgba(92,107,192,0.25);
}
.ct-dir-icon.incoming {
  background: rgba(34,197,94,0.10); color: #16a34a;
  border: 1.5px solid rgba(34,197,94,0.25);
}
.ct-dir-icon.pending-out {
  background: rgba(245,158,11,0.10); color: #d97706;
  border: 1.5px solid rgba(245,158,11,0.25);
}
.ct-dir-icon.pending-in {
  background: rgba(139,92,246,0.10); color: #7c3aed;
  border: 1.5px solid rgba(139,92,246,0.25);
}

.ct-info { flex: 1; min-width: 0; }
.ct-name {
  font-size: 14px; font-weight: 700; color: var(--ink1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ct-since {
  font-size: 11px; color: var(--ink4); margin-top: 2px; font-weight: 500;
}

/* Checkbox for bulk delete */
.ct-check {
  display: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border2); background: var(--surface2);
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.15s; cursor: pointer;
}
.bulk-mode .ct-check { display: flex; }
.ct-item.bulk-checked .ct-check {
  background: var(--accent); border-color: var(--accent); color: #fff; font-size: 12px;
}

/* Empty state */
.ct-empty {
  text-align: center; padding: 40px 20px;
  color: var(--ink3); font-size: 13px; line-height: 1.7;
}
.ct-empty-icon { font-size: 36px; margin-bottom: 10px; opacity: 0.4; }

/* Bottom action bar */
.ct-actions {
  display: flex; gap: 8px; align-items: center;
  /* pad-bottom must clear the absolute-positioned nav bar */
  padding: 10px 14px calc(var(--nav-h) + max(10px, env(safe-area-inset-bottom, 10px)));
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  /* Fixed height prevents layout shift when buttons appear/disappear */
  min-height: calc(48px + var(--nav-h) + max(10px, env(safe-area-inset-bottom, 10px)));
}

/* Section label */
.ct-section-lbl {
  font-size: 10px; font-weight: 800; letter-spacing: 0.9px;
  text-transform: uppercase; color: var(--ink4);
  padding: 8px 4px 4px; margin-bottom: 2px;
}

/* ── Modals ── */
.ct-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
  z-index: 400; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.22s;  
}
.ct-modal-overlay.open {
   opacity: 1; pointer-events: all;
   transform: translateZ(0); -webkit-transform: translateZ(0);
}
@media (min-width: 431px) {
  .ct-modal-overlay { position: absolute; }
}
.ct-modal {
  width: 86%; background: var(--surface);
  border-radius: var(--r20); padding: 24px 20px 20px;
  box-shadow: var(--sh-lg);
  animation: boxIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes boxIn { from{opacity:0;transform:scale(0.88)} to{opacity:1;transform:scale(1)} }
.ct-modal-icon { font-size: 30px; text-align: center; margin-bottom: 10px; }
.ct-modal-title {
  font-family: var(--fontD); font-size: 17px; font-weight: 600;
  color: var(--ink1); margin-bottom: 6px; text-align: center;
}
.ct-modal-name {
  font-size: 15px; font-weight: 700; color: var(--accent);
  text-align: center; margin-bottom: 4px;
}
.ct-modal-sub {
  font-size: 12px; color: var(--ink3); text-align: center;
  line-height: 1.6; margin-bottom: 18px;
}
.ct-modal-btns { display: flex; gap: 8px; margin-top: 4px; }
.ct-modal-btns .btn { flex: 1; }

/* Add contact form */
.ct-add-hint {
  font-size: 11px; color: var(--ink3); line-height: 1.7;
  margin-bottom: 12px; text-align: center;
}
/* ID search row: narrow ID input + SEARCH text button */
.ct-id-row {
  display: flex; align-items: stretch; gap: 0;
  margin-bottom: 10px;
  border: 1.5px solid var(--border); border-radius: var(--r10);
  overflow: hidden;
}
.ct-id-inp {
  flex: 0 0 54%; font-size: 14px !important; font-weight: 700 !important;
  letter-spacing: 2.5px; text-align: center;
  padding: 10px 8px !important; min-width: 0;
  border: none !important; border-radius: 0 !important;
  border-right: 1.5px solid var(--border) !important;
  box-shadow: none !important; background: var(--surface) !important;
}
.ct-id-inp::placeholder {
  letter-spacing: 0.5px; font-weight: 400; font-size: 12px !important;
  color: var(--ink4);
}
.ct-id-search-btn {
  flex: 1;
  background: var(--accent) !important; color: #fff !important;
  border: none; border-radius: 0 !important;
  font-size: 11px !important; font-weight: 800 !important;
  letter-spacing: 1px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; padding: 0 !important;
}
.ct-id-search-btn:hover  { background: color-mix(in srgb, var(--accent) 85%, #000) !important; }
.ct-id-search-btn:disabled { opacity: 0.55; cursor: not-allowed; }
/* Resolved name field */
.ct-resolved-wrap {
  margin-bottom: 4px; animation: pgIn 0.2s ease;
}

/* ══════════════════════════════════════
   PULL-TO-REFRESH (ptr.js)
══════════════════════════════════════ */
.ptr-spinner-wrap {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%) translateY(-60px);
  width: 40px; height: 40px; z-index: 9990;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s;
  opacity: 0; pointer-events: none;
}
.ptr-spinner-wrap.ptr-visible {
  transform: translateX(-50%) translateY(12px);
  opacity: 1;
}
.ptr-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3.5px solid transparent;
  border-top-color: #6c63ff;
  border-right-color: #f472b6;
  border-bottom-color: #34d399;
  border-left-color: #60a5fa;
  animation: ptr-spin 0.75s linear infinite;
  box-shadow: 0 2px 10px rgba(108,99,255,0.25);
  background: var(--surface);
}
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════
   PRIVATE NOTES
══════════════════════════════════════ */

/* Gate modal — taller with breathing room */
.pn-gate-modal {
  padding: 36px 24px 24px !important;
  max-width: 320px;
}
.pn-gate-icon {
  font-size: 44px; margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(108,99,255,0.3));
}

/* Smaller verify modals */
.pn-sm-modal {
  padding: 24px 20px 20px !important;
}

/* PIN input */
.pn-pin-inp {
  text-align: center !important;
  letter-spacing: 8px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  padding: 12px !important;
}
.pn-pin-inp::placeholder {
  letter-spacing: 6px !important;
  font-size: 18px !important;
  color: var(--ink4) !important;
}
.pn-pin-err {
  font-size: 12px; color: var(--red);
  min-height: 18px; margin-top: 6px; text-align: center;
}

/* Bulk bar */


/* Private note list item */
.pn-note-item {
  cursor: pointer;
  transition: background 0.15s;
}
.pn-note-item.pn-bulk-mode { padding-left: 8px; }
.pn-note-item.bulk-checked { background: rgba(108,99,255,0.07); }

/* Search clear button */
.act-search-clear.visible { display: flex !important; }

/* ══════════════════════════════════════
   NEWS ROOM PAGE
══════════════════════════════════════ */

/* Header */
.nr-header {
  display: flex; align-items: center;
  padding: 12px 18px 4px;
  flex-shrink: 0;
}
.nr-title {
  font-family: var(--fontD);
  font-size: 22px; font-weight: 600;
  color: var(--ink1); letter-spacing: -0.3px;
  flex: 1;
}
.nr-title span { font-style: italic; color: var(--accent); }

/* Toolbar: search + toggle */
.nr-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 5px; flex-shrink: 0;
}
.nr-search-wrap { flex: 1; position: relative; min-width: 0; }
.nr-search-inp {
  width: 100%; padding: 8px 30px 8px 12px;
  border: 1px solid var(--border); border-radius: var(--r99);
  background: var(--surface); color: var(--ink1);
  font-family: var(--font); font-size: 12px; font-weight: 500;
  outline: none; transition: all 0.18s; box-shadow: var(--sh-xs);
}
.nr-search-inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.nr-search-inp::placeholder { color: var(--ink4); }
.nr-search-clear {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--ink4); color: #fff; border: none;
  font-size: 9px; cursor: pointer; display: none;
  align-items: center; justify-content: center; font-weight: 700;
  transition: background 0.15s; line-height: 1;
}
.nr-search-clear.visible { display: flex; }
.nr-search-clear:hover { background: var(--ink3); }

/* World / India toggle */
.nr-toggle {
  display: flex; background: var(--surface2);
  border: 1.5px solid var(--border); border-radius: var(--r99);
  padding: 3px; gap: 2px; flex-shrink: 0;
}
.nr-toggle-btn {
  padding: 5px 12px; border-radius: var(--r99); border: none;
  background: transparent; color: var(--ink3);
  font-family: var(--font); font-size: 11px; font-weight: 700;
  cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.nr-toggle-btn.active { background: var(--accent); color: #fff; box-shadow: var(--sh-acc); }


/* Category filter chips */
.nr-cats {
  display: flex; gap: 6px;
  padding: 0 14px 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}
.nr-cats::-webkit-scrollbar { display: none; }
.nr-cat-btn {
  flex-shrink: 0; padding: 5px 13px; border-radius: var(--r99);
  border: 1.5px solid var(--border); background: var(--surface2);
  color: var(--ink2); font-family: var(--font);
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.nr-cat-btn:hover { border-color: var(--border2); color: var(--ink1); }
.nr-cat-btn.active {
  background: var(--accent-bg); border-color: var(--accent-br); color: var(--accent);
}

/* Scheduled fetch note */
.nr-sched-note {
  font-size: 10px; color: var(--ink4); font-weight: 500;
  text-align: center; padding: 4px 0 2px; flex-shrink: 0;
}

/* News card list */
.nr-list {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 0 14px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
  display: flex; flex-direction: column; gap: 6px;
  -webkit-overflow-scrolling: touch;
}
.nr-list::-webkit-scrollbar { display: none; }

/* Individual news card */
.nr-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r12); padding: 12px 14px;
  cursor: pointer; transition: all 0.18s;
  animation: itemIn 0.22s ease both;
  display: flex; flex-direction: column; gap: 5px;
}
.nr-card:hover { border-color: var(--border2); box-shadow: var(--sh-xs); transform: translateX(2px); }
.nr-card:active { transform: scale(0.99); }
.nr-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
.nr-card-tag {
  display: inline-block;
  font-size: 9px; font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase; padding: 2px 7px; border-radius: var(--r99);
  background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-br);
  line-height: 1.6; white-space: nowrap;
}
/* Per-category tag colours */
.nr-card-tag--sports        { background: rgba(34,197,94,0.10);  color: #16a34a; border-color: rgba(34,197,94,0.25); }
.nr-card-tag--education     { background: rgba(245,158,11,0.10); color: #d97706; border-color: rgba(245,158,11,0.25); }
.nr-card-tag--technology    { background: rgba(92,107,192,0.10); color: var(--accent); border-color: var(--accent-br); }
.nr-card-tag--business      { background: rgba(239,68,68,0.09);  color: #dc2626; border-color: rgba(239,68,68,0.22); }
.nr-card-tag--health        { background: rgba(20,184,166,0.10); color: #0d9488; border-color: rgba(20,184,166,0.25); }
.nr-card-tag--politics      { background: rgba(168,85,247,0.10); color: #9333ea; border-color: rgba(168,85,247,0.25); }
.nr-card-tag--entertainment { background: rgba(236,72,153,0.10); color: #db2777; border-color: rgba(236,72,153,0.25); }
.nr-card-tag--science       { background: rgba(6,182,212,0.10);  color: #0891b2; border-color: rgba(6,182,212,0.25); }
.nr-card-tag--world         { background: rgba(100,116,139,0.10);color: #475569; border-color: rgba(100,116,139,0.25); }
.nr-card-tag--other         { background: var(--bg2); color: var(--ink3); border-color: var(--border); }
.nr-card-headline { font-size: 13.5px; font-weight: 600; color: var(--ink1); line-height: 1.4; }
.nr-card-meta { font-size: 10.5px; color: var(--ink4); font-weight: 500; }

/* Empty / loading states */
.nr-empty {
  text-align: center; padding: 48px 20px;
  color: var(--ink3); font-size: 13px; line-height: 1.7;
}
.nr-empty-icon { font-size: 36px; margin-bottom: 10px; opacity: 0.4; }
.nr-loading { display: flex; flex-direction: column; gap: 6px; padding: 0 14px; }
.nr-skeleton {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r12); padding: 12px 14px;
  animation: skPulse 1.4s ease-in-out infinite;
}
.nr-sk-line { height: 11px; border-radius: var(--r99); background: var(--bg2); margin-bottom: 7px; }
.nr-sk-line:last-child { margin-bottom: 0; width: 45%; }
@keyframes skPulse { 0%,100%{opacity:1} 50%{opacity:0.45} }

/* ── Article view ── */
#pg-news-article { display: none; flex-direction: column; flex: 1; overflow: hidden; }
#pg-news-article.active { display: flex; }

/* Article toolbar: back + find in page */
.na-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 8px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.na-back-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: var(--r99);
  border: 1.5px solid var(--border2); background: var(--surface);
  color: var(--ink2); font-family: var(--font);
  font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.18s;
  white-space: nowrap; flex-shrink: 0; box-shadow: var(--sh-xs);
}
.na-back-btn:hover { background: var(--bg2); color: var(--ink1); }
.na-find-wrap { flex: 1; position: relative; min-width: 0; }
.na-find-inp {
  width: 100%; padding: 7px 28px 7px 12px;
  border: 1px solid var(--border); border-radius: var(--r99);
  background: var(--surface); color: var(--ink1);
  font-family: var(--font); font-size: 12px; font-weight: 500;
  outline: none; transition: all 0.18s; box-shadow: var(--sh-xs);
  scroll-margin: 0; /* prevent browser scroll-into-view shifting the layout */
}
.na-find-inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.na-find-inp::placeholder { color: var(--ink4); }
.na-find-clear {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--ink4); color: #fff; border: none;
  font-size: 9px; cursor: pointer; display: none;
  align-items: center; justify-content: center; font-weight: 700; line-height: 1;
}
.na-find-clear.visible { display: flex; }
.na-find-count {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  font-size: 10px; color: var(--ink4); font-weight: 600; pointer-events: none;
}

/* Article scrollable body */
.na-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 14px 16px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  -webkit-overflow-scrolling: touch;
}
.na-body::-webkit-scrollbar { display: none; }

/* Article image */
.na-image-wrap {
  width: 100%; border-radius: var(--r12);
  overflow: hidden; margin-bottom: 14px;
  background: var(--bg2); aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.na-image-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r12); display: block; }
.na-image-wrap.no-image { display: none; }

/* Article source + date row */
.na-source-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.na-source { font-size: 10px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent); }
.na-date { font-size: 10px; color: var(--ink4); font-weight: 500; }

/* Article headline */
.na-headline {
  font-family: var(--fontD);
  font-size: 18px; font-weight: 600; color: var(--ink1);
  line-height: 1.35; letter-spacing: -0.2px; margin-bottom: 12px;
}

/* Article content */
.na-content { font-size: 13.5px; color: var(--ink2); line-height: 1.75; font-weight: 500; }
.na-content p { margin-bottom: 10px; }
.na-content p:last-child { margin-bottom: 0; }

/* Find-in-page highlights */
mark.nr-highlight { background: #fef08a; color: var(--ink1); border-radius: 2px; padding: 0 1px; }
mark.nr-highlight-current { background: #f59e0b; color: #fff; }

/* Read more link */
.na-read-more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 16px; padding: 8px 16px;
  background: var(--accent-bg); border: 1.5px solid var(--accent-br);
  border-radius: var(--r99); color: var(--accent);
  font-size: 12px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all 0.18s;
}
.na-read-more:hover { background: var(--accent); color: #fff; }
