/* ============================================================
   PocketHouse — Shell Styles
   Reset, auth + loading screens, tab bar, launcher, dashboard cards,
   swipe-peek panel, and the module header bars used by the flash-free
   loading state.

   NOTE: the :root design tokens deliberately remain inline in index.html
   rather than living here. The pre-paint theme script reads localStorage
   and sets data-theme before first paint; keeping the token definitions
   inline guarantees they're available at that moment with no extra network
   round trip on a cold PWA load. Everything else is safe to externalise.
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  height: 100%;
}
body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

/* ── SHELL LAYOUT ── */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  /* During a swipe, #content is translated horizontally. In the "prev"
     direction (swiping left-to-right, going back through apps) that
     translation is POSITIVE — #content moves right, past the viewport edge.
     Overflow past the right edge expands the document's scrollable area and
     spawns a horizontal scrollbar; overflow past the left edge does not.
     That asymmetry is why only one swipe direction made the tab bar jump:
     the scrollbar appearing and disappearing mid-drag reflows the viewport
     under a position:fixed bottom bar. #content's own overflow-x:hidden
     clips its children, not itself, so the clip has to happen here.
     `clip` rather than `hidden` on purpose — a non-visible overflow on one
     axis forces the other axis from `visible` to `auto`, which would
     silently turn #app into a vertical scroll container. `clip` has no such
     side effect. `hidden` first as a fallback for older engines. */
  overflow-x: hidden;
  overflow-x: clip;
}
@media (min-width: 900px) {
  #app { max-width: 960px; }
}

/* ── CONTENT AREA ── */
#content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  background: var(--bg);
}

/* ── SCROLL INDICATORS ──
   Hidden on the shell's scroll containers. This is a mobile-first PWA: the
   bar carries no affordance worth the visual noise of appearing on every
   module load, and the horizontal chip strips (.cs-filter-row, .mp-navrow
   et al) already hide theirs, so this just makes the shell consistent.
   Scrolling itself is unaffected — only the indicator is suppressed.
   #app is included as belt-and-braces: it doesn't scroll today, but if a
   browser lacks `overflow-x: clip` support and falls back to the `hidden`
   declaration above it, the spec forces overflow-y from `visible` to `auto`,
   which would otherwise expose a vertical bar there too. */
#app, #content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#app::-webkit-scrollbar,
#content::-webkit-scrollbar { display: none; }
/* will-change is scoped to just the active drag/animation window, not applied
   permanently — a permanent will-change:transform on #content makes it the
   containing block for any position:fixed descendant (like a modal overlay),
   which would clip fixed modals to #content's own scroll box instead of the
   real viewport. Scoping it here keeps the swipe performance benefit without
   that side effect during normal use. */
#content.swipe-dragging,
#content.swipe-animating {
  will-change: transform;
}
#content.swipe-dragging { overflow-y: hidden; }
#content.swipe-animating { transition: transform .22s cubic-bezier(.32,.72,0,1); }

.swipe-peek {
  position: fixed;
  z-index: 40;
  overflow: hidden;
  background: var(--bg);
  will-change: transform;
  /* Casts into the gutter opened by SWIPE_GUTTER, so the arriving app reads
     as sitting above the one being left rather than butted against it. Only
     the leading edge is ever visible — the rest is off-screen. */
  box-shadow: 0 0 18px rgba(0, 0, 0, .13);
}
.swipe-peek.swipe-animating { transition: transform .22s cubic-bezier(.32,.72,0,1); }
.swipe-peek-inner { display:flex; flex-direction:column; height:100%; }
.swipe-peek-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  opacity: .25;
}

/* ── TAB BAR ── */
#tab-bar-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  z-index: 10000;
}
/* The bar is a fixed viewport; #tab-track is positioned by transform rather
   than native scroll. Two reasons: (1) native scroll can't center the first
   or last item without large end padding, since it runs out of scroll range
   — the old version left edge apps colored-but-off-center; a transform has
   no such bound. (2) A transform is drivable from a drag handler without
   fighting iOS momentum scrolling.
   Slots are a FIXED width so that growing the centered name's font-size
   can't change the track's layout — otherwise the row reflows mid-drag,
   which shifts which name is nearest center, which regrows a different
   name: a feedback loop. Fixed slots make position math trivial too
   (index = round(-x / slot)). */
#tab-bar {
  position: relative;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
#tab-bar.nav-dragging { cursor: grabbing; }
#tab-track {
  position: absolute;
  top: 0;
  left: 0;
  height: var(--tab-h);
  display: flex;
  align-items: stretch;
  will-change: transform;
}
/* Edge fades, so off-center names read as "continues past here" rather than
   just small. Sits above the track, ignores pointer events. */
#tab-bar::before, #tab-bar::after {
  content: '';
  position: absolute;
  top: 0;
  height: var(--tab-h);
  width: 36px;
  z-index: 2;
  pointer-events: none;
}
#tab-bar::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
#tab-bar::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }

.tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  padding: 0;
  /* Full bar height so the tap target matches the visible bar rather than
     just the text's line box (~15px), which is what a bare inline button
     collapses to. */
  height: var(--tab-h);
}

.tab-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.005em;
  white-space: nowrap;
  /* font-size / weight / opacity are set per-frame from JS during a drag so
     they interpolate continuously with finger position. No CSS transition
     here — it would lag behind the drag. The settle animation is handled by
     the track's own transform transition. */
}

/* ── AUTH SCREEN ── */
#auth-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  z-index: 200;
}
.auth-logo {
  font-size: 56px;
  margin-bottom: 20px;
}
.auth-wordmark {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.auth-wordmark .w1 { color: var(--text); }
.auth-wordmark .w2 { color: var(--homepulse); }
.auth-tagline {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 48px;
  text-align: center;
}
.auth-btn {
  width: 100%;
  max-width: 320px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  transition: opacity .15s;
}
.auth-btn:active { opacity: 0.85; }
.auth-btn-google {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border2);
  box-shadow: var(--shadow);
}
.auth-btn-email {
  background: var(--homepulse);
  color: #fff;
}
.auth-divider {
  font-size: 11px;
  color: var(--subtle);
  margin: 4px 0 16px;
  text-align: center;
}
.auth-fine {
  font-size: 11px;
  color: var(--subtle);
  text-align: center;
  margin-top: 32px;
  line-height: 1.6;
  max-width: 280px;
}

/* ── LOADING ── */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}
.loading-wordmark {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  animation: pulse 1.5s ease-in-out infinite;
}
.loading-wordmark .w1 { color: var(--text); }
.loading-wordmark .w2 { color: var(--homepulse); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── SECTION LABEL ── */
.sect-label {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 0 2px;
  margin-bottom: 8px;
  margin-top: 20px;
  display: block;
  line-height: 1.2;
}
.sect-label span { display: inline; }

/* ── HOMEPULSE SCREEN ── */
.hp-header {
  background: var(--surface);
  padding: 16px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.hp-wordmark {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hp-wordmark .w1 { color: var(--text); }
.hp-wordmark .w2 { color: var(--homepulse); }
.hp-greeting {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 3px;
}
.hp-date {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.hp-date:active { opacity: .6; }
.hp-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }

/* ── Date lookup popover ── */
.date-popover {
  position: fixed;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
  padding: 12px;
  z-index: 2000;
}
.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dp-month-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.dp-nav {
  background: var(--surface2);
  border: none;
  border-radius: var(--r-sm);
  width: 26px;
  height: 26px;
  font-size: 15px;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.dp-dow {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  padding: 4px 0 6px;
  text-transform: uppercase;
}
.dp-cell {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text2);
  text-align: center;
  padding: 6px 0;
  border-radius: var(--r-sm);
}
.dp-cell.empty { visibility: hidden; }
.dp-cell.today {
  background: var(--headroom);
  color: #fff;
  font-weight: 700;
}

/* ── DASHBOARD CARDS ── */
.d-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.d-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 10px;
}
.d-card-title-row { display: flex; align-items: center; gap: 8px; }
.d-card-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.d-card-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.d-card-link {
  font-size: 10px;
  font-weight: 600;
  color: var(--subtle);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.d-card-divider { height: 1px; background: var(--border); }

/* dinner */
.dinner-body {
  padding: 13px 16px 15px;
  display: flex; align-items: center; gap: 14px;
}
.dinner-emoji { font-size: 36px; line-height: 1; flex-shrink: 0; }
.dinner-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.dinner-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.dinner-empty { padding: 16px; text-align: center; }
.dinner-empty-icon { font-size: 28px; margin-bottom: 8px; }
.dinner-empty-text { font-size: 13px; color: var(--muted); }
.dinner-add-btn {
  display: inline-block; margin-top: 10px;
  font-size: 12px; font-weight: 700;
  color: var(--mealplan);
  background: rgba(74,144,217,.1);
  border-radius: 20px; padding: 5px 14px;
  border: none; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* money rows */
.money-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
}
.money-row:last-child { border-bottom: none; }
.money-left { display: flex; align-items: center; gap: 10px; }
.money-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.money-name { font-size: 12px; font-weight: 500; color: var(--text2); }
.money-when { font-size: 10px; color: var(--subtle); margin-top: 1px; }
.money-amt { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; }
.money-summary {
  padding: 11px 16px;
  background: var(--surface2);
  display: flex; justify-content: space-between; align-items: center;
}
.money-summary-lbl { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.money-summary-val { font-family: 'DM Mono', monospace; font-size: 15px; font-weight: 500; color: var(--headroom); }

/* task rows */
.task-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
}
.task-row:last-child { border-bottom: none; }
.task-check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border2); flex-shrink: 0;
}
.task-check.overdue { border-color: var(--negative); background: rgba(184,92,58,.08); }
.task-text { flex: 1; }
.task-name { font-size: 12px; font-weight: 500; color: var(--text); }
.task-meta { font-size: 10px; color: var(--muted); margin-top: 1px; }
.task-meta.overdue { color: var(--negative); }
.task-who {
  font-size: 10px; font-weight: 600; color: var(--subtle);
  background: var(--surface2); border-radius: 20px; padding: 3px 9px; flex-shrink: 0;
}

/* event rows */
.event-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px; border-bottom: 1px solid var(--border);
}
.event-row:last-child { border-bottom: none; }
.event-icon-wrap {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
  background: rgba(140,90,122,.1);
}
.event-info { flex: 1; }
.event-name { font-size: 12px; font-weight: 600; color: var(--text); }
.event-sub { font-size: 10px; color: var(--muted); margin-top: 1px; }
.event-days-num {
  font-family: 'DM Mono', monospace; font-size: 20px; font-weight: 500;
  color: var(--countdown); line-height: 1; text-align: right;
}
.event-days-lbl {
  font-size: 8px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--subtle); text-align: right; margin-top: 1px;
}

/* freezer rows */
.freezer-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-bottom: 1px solid var(--border);
}
.freezer-row:last-child { border-bottom: none; }
.freezer-row.warn-bg { background: rgba(234,179,8,.04); }
.freezer-row.danger-bg { background: rgba(184,92,58,.05); }
.freezer-icon { font-size: 18px; width: 26px; text-align: center; flex-shrink: 0; }
.freezer-info { flex: 1; }
.freezer-name { font-size: 12px; font-weight: 500; color: var(--text); }
.freezer-exp { font-family: 'DM Mono', monospace; font-size: 10px; margin-top: 1px; }
.freezer-exp.ok { color: var(--muted); }
.freezer-exp.warn { color: #A16207; }
.freezer-exp.danger { color: var(--negative); }
.freezer-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: 20px; padding: 3px 9px; flex-shrink: 0;
}
.freezer-badge.ok { color: var(--coldstore); background: rgba(58,122,140,.1); }
.freezer-badge.warn { color: #A16207; background: rgba(234,179,8,.12); }
.freezer-badge.danger { color: var(--negative); background: rgba(184,92,58,.12); }
.freezer-alert {
  margin: 0 16px 10px;
  background: rgba(184,92,58,.08);
  border: 1px solid rgba(184,92,58,.2);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  display: flex; align-items: center; gap: 8px;
}
.freezer-alert-text { font-size: 11px; font-weight: 500; color: var(--negative); line-height: 1.4; }

/* grocery summary */
.grocery-row { padding: 13px 16px; display: flex; gap: 10px; }
.grocery-store {
  flex: 1; background: var(--bg); border-radius: var(--r-md); padding: 11px 12px 10px;
}
.grocery-store-name {
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.grocery-count { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--livelist); line-height: 1; }
.grocery-lbl { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ── APP LAUNCHER GRID ── */
.launcher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.launcher-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 10px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s, box-shadow .1s;
}
.launcher-btn:active { transform: scale(0.96); box-shadow: none; }
.launcher-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.launcher-wm {
  font-size: 13px; font-weight: 800; letter-spacing: -0.01em; line-height: 1; text-align: center;
}
.launcher-sub { font-size: 9px; color: var(--muted); text-align: center; line-height: 1.3; }

/* ── MEALPLAN HEADER — moved out ──
   .mp-header / .mp-navrow / .mp-nav-col / .mp-tab / .mp-subtab now live in
   shared-components.css, which loads before module CSS and so serves both
   the loading placeholder and the loaded module from one definition. They
   were duplicated here under a "keep in sync" comment and drifted: this
   copy still described the pre-restructure one-row .mp-tabs layout with no
   .mp-tab.sm, so the placeholder rendered a different layout at a different
   size and the page re-laid-out on handover. Do not re-add them here. ── */

/* ── MODULE HEADER BARS — placeholder-context overrides only ──
   The bars themselves (.hr-topbar, .ll-header-row, .cd-header, .cs-header,
   .hpt-header and their children) are defined once in shared-components.css,
   which loads before module CSS and so serves the placeholder and the loaded
   module from the same rule. shell.css previously carried a full second copy
   of each under a "keep in sync with <module>.css" comment; every one of them
   had drifted (missing transitions on .hr-search-btn and .cd-filter-chevron,
   and no sticky positioning anywhere).

   Only one thing genuinely differs between the two contexts, so only that is
   overridden here. In the real render each bar sits inside a padded app
   container (.hr-app/.ll-app/.cd-app/.cs-app, padding:16px) and uses a
   negative margin to cancel that padding and bleed edge-to-edge. The
   placeholder is a direct child of .app-screen with no padded parent, so the
   same negative margin would over-shoot. The child combinator below matches
   ONLY the placeholder — in the real render these bars are children of their
   app container, never of .app-screen — so it cannot leak into the module.

   Note it zeroes margin-top/left/right but NOT margin-bottom: the spacing
   below the bar is identical in both contexts, so it stays single-sourced in
   shared-components.css and can't drift. Adding margin:0 here instead would
   silently reintroduce exactly the class of bug this refactor removed.

   The same applies to .swipe-peek-inner. The peek renders these headers as a
   direct child too, and it likewise has no .xx-app padding for the negative
   margins to cancel — so without this, the four bleeding headers (HeadRoom,
   LiveList, CountDown, ColdStore) sat 16px too far left mid-swipe and their
   icon tiles ran flush to the screen edge. MealPlan and HomePulse were never
   affected because their headers carry no negative margin to begin with. ── */
.app-screen > .hr-topbar,
.app-screen > .ll-header-row,
.app-screen > .cd-header,
.app-screen > .cs-header,
.app-screen > .hpt-header,
.swipe-peek-inner > .hr-topbar,
.swipe-peek-inner > .ll-header-row,
.swipe-peek-inner > .cd-header,
.swipe-peek-inner > .cs-header,
.swipe-peek-inner > .hpt-header {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  position: static;
}

/* ── GENERIC APP SCREEN ── */
.app-screen { min-height: 100%; }
.app-header {
  background: var(--surface);
  padding: 28px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.app-wordmark {
  font-size: 32px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1;
}
.app-tagline {
  font-size: 11px; color: var(--muted);
  font-style: italic; margin-top: 3px;
}
.app-body { padding: 20px 16px; }

/* ── MODULE LOADING (header stays put, only body shows this) ── */
.module-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 7px;
}
.module-loading .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .3;
  animation: module-dot 1.1s ease-in-out infinite;
}
.module-loading .dot:nth-child(2) { animation-delay: .15s; }
.module-loading .dot:nth-child(3) { animation-delay: .3s; }
@keyframes module-dot {
  0%, 60%, 100% { opacity: .3; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.25); }
}
.coming-soon {
  text-align: center; padding: 60px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.coming-soon-icon { font-size: 44px; }
.coming-soon-title { font-size: 18px; font-weight: 700; color: var(--text); }
.coming-soon-desc { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 260px; }
.coming-soon-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 20px; padding: 5px 14px; margin-top: 4px;
}

/* ── MORE SCREEN ── */
.more-list { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.more-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
}
.more-item:active { opacity: 0.8; }
.more-item-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.more-item-text { flex: 1; }
.more-item-wm { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.more-item-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.more-item-arrow { font-size: 16px; color: var(--subtle); }

/* ── EDIT MODE ── */
.hp-section { position: relative; transition: opacity .15s; }
.hp-section-edit { cursor: grab; }
.hp-section-edit:active { cursor: grabbing; opacity: 0.7; }
.hp-section.drag-over { border: 2px dashed var(--homepulse); border-radius: var(--r-lg); }
.drag-handle {
  position: absolute; left: -4px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px; color: var(--muted);
  cursor: grab; z-index: 10;
  padding: 8px 4px;
  user-select: none;
}
.launcher-btn-edit { cursor: grab; position: relative; }
.launcher-btn-edit:active { cursor: grabbing; opacity: 0.7; }
.launcher-btn-edit.drag-over { border: 2px dashed var(--homepulse); }
.drag-handle-sm {
  position: absolute; top: 4px; right: 4px;
  font-size: 12px; color: var(--muted);
  user-select: none;
}

/* ── USER MENU ── */
.user-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface2); border: 1.5px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; color: var(--text2);
}
