/* pinn. – app styles (css/glocke.css)
   Header bell next to the family name and its notification panel (classes nt-…, ntl-…), incl. dark mode.
   Former second <style> block at the end of the <body> of index.html; linked at exactly the same place
   (as the last stylesheet of the page), so the order of the rules is unchanged. */

/* Header: a long family name runs on behind the bell, the bell always stays visible.
   The name reserves space on the right (padding) for the bell, which sits on top of it with a negative margin -
   if the name is short, the bell sits right behind it as usual. */
.nt-head-left { flex: 1 1 auto; min-width: 0; }
.nt-head-left > * { flex-shrink: 0; }
.nt-head-left > .nt-head-title { flex-shrink: 1; min-width: 0; }
.nt-head-title > * { flex-shrink: 0; }
.nt-head-title > .nt-famname { flex-shrink: 1; min-width: 0; overflow: hidden; white-space: nowrap; padding-right: 36px; }
.nt-famname h1 { display: inline; }
/* Bell (notifications) next to the family name */
.nt-bell { position: relative; z-index: 1; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: rgba(37,35,31,0.55); margin-left: -36px; background: color-mix(in srgb, var(--c-paper) 78%, transparent); box-shadow: -8px 0 10px -2px color-mix(in srgb, var(--c-paper) 70%, transparent); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transition: background .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.nt-bell:hover { background: color-mix(in srgb, var(--c-paper) 70%, rgba(37,35,31,0.08)); color: rgba(37,35,31,0.85); }
.nt-bell.hidden { display: none; }
.nt-bell.has { color: var(--c-pine); }
.nt-bell.ring svg { animation: ntRing 1s ease 1; transform-origin: 50% 8%; }
@keyframes ntRing { 0%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-13deg); } 45% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.nt-badge { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #D64545; color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #FFFBFB; font-family: system-ui, sans-serif; }
.nt-badge.soft { background: var(--c-pine); }
.nt-badge.hidden { display: none; }
.nt-panel { position: fixed; z-index: 290; max-height: min(72vh, 600px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; border-radius: 18px; border: 1px solid rgba(37,35,31,0.08); box-shadow: 0 18px 50px rgba(20,20,15,0.18); padding: 12px 14px 14px; animation: ntDrop .18s ease-out; }
.nt-panel.hidden { display: none; }
@keyframes ntDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nt-x { width: 28px; height: 28px; border-radius: 9999px; font-size: 20px; line-height: 1; color: rgba(37,35,31,0.4); }
.nt-x:hover { background: rgba(37,35,31,0.05); color: rgba(37,35,31,0.8); }
.nt-sec { font-size: 12px; color: rgba(37,35,31,0.5); margin: 12px 2px 6px; }
.nt-link { font-size: 12px; color: var(--c-pine); padding: 2px 4px; }
.nt-card { position: relative; border: 1px solid rgba(37,35,31,0.1); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.nt-card[data-ntkey] { touch-action: pan-y; }
.nt-card.nt-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.nt-del { display: none; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 9999px; place-items: center; font-size: 17px; line-height: 1; color: rgba(37,35,31,0.38); z-index: 1; }
.nt-del:hover { background: rgba(37,35,31,0.07); color: rgba(37,35,31,0.85); }
.nt-swipe-tip { text-align: center; font-size: 11px; color: rgba(37,35,31,0.4); margin-top: 4px; }
.nt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.nt-clear { font-size: 12px; font-weight: 600; color: #C0392B; padding: 5px 10px; border-radius: 9999px; background: rgba(192,57,43,0.08); transition: background .15s; }
.nt-clear:hover { background: rgba(192,57,43,0.15); }
.nt-clear:disabled { opacity: .45; }
.nt-card { will-change: auto; }
.nt-card.nt-dragging { will-change: transform; }
.nt-card.act { cursor: pointer; }
.nt-act-row { display: flex; align-items: flex-start; gap: 10px; }
.nt-act-ico { width: 30px; height: 30px; border-radius: 9999px; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; background: rgba(37,35,31,0.06); }
.nt-act-main { font-size: 13px; line-height: 1.35; }
.nt-act-sub { font-size: 11px; line-height: 1.35; color: rgba(37,35,31,0.55); margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.nt-act-time { font-size: 10.5px; color: rgba(37,35,31,0.4); margin-top: 3px; }
.nt-act-sub.long { -webkit-line-clamp: 6; }
.nt-act-bal { font-size: 11.5px; line-height: 1.35; color: var(--c-pine); margin-top: 3px; }
.nt-act-ico.nt-ava { overflow: hidden; border: 2px solid transparent; padding: 0; }
.nt-card.push { border-color: color-mix(in srgb, var(--c-pine) 22%, transparent); }
.nt-card.news { cursor: pointer; }
.nt-dot { display: inline-block; width: 7px; height: 7px; border-radius: 9999px; background: var(--c-pine); margin-right: 5px; vertical-align: 1px; }
.nt-fade { transition: opacity .25s ease, max-height .25s ease, margin .25s ease; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .nt-del { display: grid; }
  .nt-card[data-ntkey] { padding-right: 34px; }
  .nt-swipe-tip { display: none; }
}
.nt-card.buy { border-color: color-mix(in srgb, var(--c-mustard) 45%, transparent); background: color-mix(in srgb, var(--c-mustard) 9%, #fff); }
.nt-logos { display: flex; flex-shrink: 0; }
.nt-logos > * + * { margin-left: -10px; }
.nt-pts { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.nt-pts li { display: flex; gap: 7px; font-size: 12px; line-height: 1.4; color: rgba(37,35,31,0.75); }
.nt-pts li > span:first-child { font-family: ui-monospace, monospace; color: var(--c-pine); width: 9px; flex-shrink: 0; }
.nt-pts li.t-fix > span:first-child { color: var(--c-mustard); }
.nt-empty { text-align: center; padding: 18px 10px 8px; color: rgba(37,35,31,0.7); }
.nt-hint { position: fixed; z-index: 285; left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 16px)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--c-pine); color: #fff; box-shadow: 0 14px 34px rgba(20,20,15,0.25); animation: ntHintIn .28s ease-out; }
.nt-hint.hidden { display: none; }
@keyframes ntHintIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.nt-hint-btn { flex-shrink: 0; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,0.18); font-size: 13px; font-weight: 600; color: #fff; }
.nt-hint-btn:hover { background: rgba(255,255,255,0.28); }
.nt-hint-x { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9999px; font-size: 20px; line-height: 1; color: rgba(255,255,255,0.75); }
.ntl-chosen { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c-pine) 30%, transparent); background: color-mix(in srgb, var(--c-pine) 6%, #fff); }
.ntl-chosen.hidden { display: none; }
html.dark .nt-bell { color: rgba(255,255,255,0.6); background: rgba(36,35,32,0.8); box-shadow: -8px 0 10px -2px rgba(36,35,32,0.7); }
html.dark .nt-bell:hover { background: rgba(58,56,52,0.9); color: #fff; }
html.dark .nt-act-ico { background: rgba(255,255,255,0.08); }
html.dark .nt-act-sub { color: rgba(255,255,255,0.55); }
html.dark .nt-act-time { color: rgba(255,255,255,0.4); }
html.dark .nt-clear { color: #F08A7E; background: rgba(240,138,126,0.12); }
html.dark .nt-badge { box-shadow: 0 0 0 2px #1B1B18; }
html.dark .nt-panel { background: #24221F; border-color: rgba(255,255,255,0.1); }
html.dark .nt-card { background: #2E2C28; border-color: rgba(255,255,255,0.1); }
html.dark .nt-card.buy { background: color-mix(in srgb, var(--c-mustard) 14%, #2E2C28); }
html.dark .nt-sec, html.dark .nt-x { color: rgba(255,255,255,0.5); }
html.dark .nt-del { color: rgba(255,255,255,0.45); }
html.dark .nt-del:hover { background: rgba(255,255,255,0.08); color: #fff; }
html.dark .nt-swipe-tip { color: rgba(255,255,255,0.4); }
html.dark .nt-pts li, html.dark .nt-empty { color: rgba(255,255,255,0.75); }
html.dark .ntl-chosen { background: color-mix(in srgb, var(--c-pine) 14%, #2E2C28); }
