/* style — what's new, and the dev mode box in Settings.
   One section of the old style.css. The pieces load in filename order
   and that order is the cascade, so do not rearrange them. */
/* ---- What's new -------------------------------------------------------
   A notification bell between ⚙ and the version chip. It is an ordinary
   .icon-btn until there is something unread, at which point it takes the
   brand accent and carries a count — the number of releases that have
   landed since this person last opened the list. Opening it clears the
   count, so an empty bell means "nothing new", not "nothing here". */
#btn-whatsnew { position: relative; font-size: 13px; overflow: visible; }
#btn-whatsnew svg { display: block; }
#btn-whatsnew.unread { color: var(--accent); }
#btn-whatsnew.unread:hover { color: #fff; background: var(--accent); }
/* The count sits proud of the button's top-right corner. Fixed height with
   a pill radius so 1 is a circle and 12 widens into a lozenge, and a ring in
   the header's own background colour so it reads as a separate badge. */
#wn-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 3px; background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 800; line-height: 14px; text-align: center;
  letter-spacing: 0; box-shadow: 0 0 0 2px var(--bg); pointer-events: none;
}
#btn-whatsnew.unread:hover #wn-count { background: #fff; color: var(--accent); }

#wn-back {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(0, 0, 0, .62);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
#wn-card {
  width: 100%; max-width: 420px; max-height: 82vh;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 50px var(--scrim-mid);
}
#wn-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px 12px 10px; border-bottom: 1px solid var(--border);
}
.wn-h1 { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .2px; }
.wn-sub { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
#wn-body { overflow-y: auto; padding: 4px 12px 10px; }

/* One release. `new` = landed since the user last opened this list, so it
   gets the accent rail; older entries stay quiet and scrollable below. */
.wn-rel { padding: 10px 0 2px; border-bottom: 1px solid var(--border); }
.wn-rel:last-child { border-bottom: none; }
.wn-relhead { display: flex; align-items: baseline; gap: 7px; }
.wn-ver {
  font-size: 9.5px; font-weight: 700; letter-spacing: .3px; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 3px; padding: 2px 4px; line-height: 1;
}
.wn-rel.new .wn-ver { color: #fff; background: var(--accent); border-color: var(--accent); }
.wn-reltitle { font-size: 11.5px; font-weight: 700; color: var(--text); }
.wn-date { font-size: 9.5px; color: var(--text-faint); margin-left: auto; }
.wn-items { margin: 6px 0 8px; padding-left: 0; list-style: none; }
.wn-items li {
  position: relative; padding-left: 13px; margin-bottom: 5px;
  font-size: 11px; line-height: 1.45; color: var(--text-dim);
}
.wn-items li::before {
  content: ''; position: absolute; left: 3px; top: 6px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--border-dash);
}
.wn-rel.new .wn-items li { color: var(--text); }
.wn-rel.new .wn-items li::before { background: var(--accent); }
#wn-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-top: 1px solid var(--border); background: var(--bg);
}
.wn-hint { font-size: 9.5px; color: var(--text-faint); }

/* Dev mode box in Settings — the switch between a fixed build and a live
   clone that auto-updates. Boxed off from the key fields around it because
   pressing the button rearranges the install, not a preference. */
.dev-box {
  margin-top: 12px; padding: 9px 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.dev-box.on { border-color: rgba(var(--accent-rgb), 0.45); }
.dev-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dev-headtext { min-width: 0; }
.dev-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--text-dim); display: flex; align-items: center; gap: 6px;
}
.dev-badge {
  text-transform: none; letter-spacing: .2px; font-size: 9.5px; font-weight: 700;
  padding: 2px 5px; border-radius: 3px; line-height: 1;
  background: var(--card); color: var(--text-faint); border: 1px solid var(--border);
}
.dev-badge.on { background: var(--accent-soft); color: var(--accent); border-color: rgba(var(--accent-rgb), 0.45); }
.dev-sub { margin-top: 5px; font-size: 11px; line-height: 1.45; color: var(--text-dim); }
.dev-sub .dev-path { color: var(--text-faint); word-break: break-all; }
#btn-devmode { flex: none; }
#btn-devmode.confirm { border-color: var(--accent); color: var(--accent); }
.dev-detail { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--border); }
