/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
input, button, textarea, select { font: inherit; }
a { text-decoration: none; color: inherit; }
.no-transition, .no-transition * { transition: none !important; }

/* ─── VARIABLES ──────────────────────────────────────────── */
:root {
  --font: 'Merriweather', Georgia, serif;
  --max-w: 1140px;
  --r-xs: 3px; --r-sm: 4px; --r-md: 8px; --r-lg: 12px;

  /* Mantine palette colors */
  --c-green:  #b2f2bb;
  --c-yellow: #ffec99;
  --c-blue:   #a5d8ff;
  --c-red:    #ffc9c9;
  --c-pink:   #ffd8a8;
  --c-violet: #d0bfff;
  --c-brand:  #e64980;
}

/* ─── LIGHT THEME ────────────────────────────────────────── */
[data-cs="light"] {
  --bg:          #ffffff;
  --bg2:         #f8f9fa;
  --text:        #000000;
  --text2:       #868e96;
  --text3:       #adb5bd;
  --border:      #ced4da;
  --card-bg:     #ffffff;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --inp-bg:      #ffffff;
  --overlay:     rgba(0,0,0,.4);
  --seg-bg:      #f1f3f5;
  --seg-act:     #ffffff;
  --btn-bg:      #ffffff;
  --btn-bd:      #ced4da;
  --btn-col:     #212529;
  --btn-hov:     #f8f9fa;
  --blue-acc:    #e64980;
  --lit-bg:      #fff9db;
  --lit-bd:      #fcc419;
}

/* ─── SEPIA THEME ────────────────────────────────────────── */
[data-cs="sepia"] {
  --bg:          #f5efe0;
  --bg2:         #ede3d0;
  --text:        #2c1f0e;
  --text2:       #7a6040;
  --text3:       #b09070;
  --border:      #c8ae8a;
  --card-bg:     #faf5eb;
  --shadow:      0 1px 3px rgba(60,40,10,.1),  0 1px 2px rgba(60,40,10,.07);
  --shadow-lg:   0 8px 32px rgba(60,40,10,.18);
  --inp-bg:      #faf5eb;
  --overlay:     rgba(40,20,0,.45);
  --seg-bg:      #ede3d0;
  --seg-act:     #faf5eb;
  --btn-bg:      #faf5eb;
  --btn-bd:      #c8ae8a;
  --btn-col:     #2c1f0e;
  --btn-hov:     #efe7d5;
  --blue-acc:    #e64980;
  --lit-bg:      #fff3cd;
  --lit-bd:      #d4a017;
}

/* ─── BALLOON THEME ─────────────────────────────────────── */
[data-cs="balloon"] {
  --bg:          #ffe4f0;
  --bg2:         #ffc2de;
  --text:        #5c0030;
  --text2:       #a0406a;
  --text3:       #c97099;
  --border:      #f49ac2;
  --card-bg:     #fff0f7;
  --shadow:      0 1px 3px rgba(180,0,80,.1),  0 1px 2px rgba(180,0,80,.07);
  --shadow-lg:   0 8px 32px rgba(180,0,80,.18);
  --inp-bg:      #fff0f7;
  --overlay:     rgba(100,0,50,.45);
  --seg-bg:      #ffc2de;
  --seg-act:     #fff0f7;
  --btn-bg:      #fff0f7;
  --btn-bd:      #f49ac2;
  --btn-col:     #5c0030;
  --btn-hov:     #ffe0f0;
  --blue-acc:    #e64980;
  --lit-bg:      #fff0f7;
  --lit-bd:      #f49ac2;
}

/* ─── DARK THEME ─────────────────────────────────────────── */
[data-cs="dark"] {
  --bg:          #1a1b1e;
  --bg2:         #25262b;
  --text:        #c1c2c5;
  --text2:       #5c5f66;
  --text3:       #373a40;
  --border:      #373a40;
  --card-bg:     #25262b;
  --shadow:      0 1px 3px rgba(0,0,0,.3),  0 1px 2px rgba(0,0,0,.2);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.55);
  --inp-bg:      #25262b;
  --overlay:     rgba(0,0,0,.65);
  --seg-bg:      #25262b;
  --seg-act:     #373a40;
  --btn-bg:      #25262b;
  --btn-bd:      #373a40;
  --btn-col:     #c1c2c5;
  --btn-hov:     #2c2e33;
  --blue-acc:    #f783ac;
  --lit-bg:      #2c2a1a;
  --lit-bd:      #b8860b;
}

/* ─── BASE ───────────────────────────────────────────────── */
/* Prevent background scroll whenever any modal is open (Android-safe) */
html:has(.modal-wrap.open) { overflow: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; width: 100%; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 52px;
  display: flex; align-items: center;
  gap: 1rem;
}
.nav-spacer { flex: 1; }
.nav-logo { font-size: 1.15rem; font-weight: 700; color: var(--text); white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.nav-logo .accent { color: var(--blue-acc); }
/* ─── NAV ICON ──────────────────────────────────────── */
.nav-logo-icon {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
}
[data-cs="dark"] .nav-logo-icon [fill="#1f212b"],
[data-cs="dark"] .nav-logo-icon [fill="#212121"],
[data-cs="dark"] .nav-logo-icon path:not([fill]) {
  fill: #c0c0c0;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-icons  { display: none; align-items: center; gap: .25rem; }
.nav-link {
  color: var(--blue-acc); font-size: .8125rem;
  padding: 5px 9px; border-radius: var(--r-sm); cursor: pointer;
  transition: background .15s;
}
.nav-link:hover { background: rgba(34,139,230,.08); }

.nav-right { display: flex; align-items: center; gap: .5rem; }
.vdiv { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }

.btn-signin {
  background: #fff; color: #3c4043;
  border: 1px solid #dadce0; border-radius: var(--r-sm);
  height: 32px; padding: 0 11px; font-size: .8125rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; white-space: nowrap;
}
.btn-signin:hover { background: #f8f9fa; border-color: #c6c9cc; }
[data-cs="dark"] .btn-signin { background: #131314; color: #e3e3e3; border-color: #8e918f; }
[data-cs="dark"] .btn-signin:hover { background: #1e1e1e; }

.icon-btn {
  width: 32px; height: 32px;
  background: var(--btn-bg); border: 1px solid var(--btn-bd);
  color: var(--btn-col); border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s; flex-shrink: 0;
}
.icon-btn:hover { background: var(--btn-hov); }

/* ─── MAIN ───────────────────────────────────────────────── */
.main { flex: 1; padding: 1.5rem 0; }
.home { display: flex; flex-direction: column; gap: 1.25rem; }

/* ─── ACTION BAR ─────────────────────────────────────────── */
.action-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.search-wrap { position: relative; flex: 1; min-width: 180px; }
.search-wrap > svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--text2); pointer-events: none; }
.search-inp {
  width: 100%; height: 30px; padding: 0 34px 0 32px;
  background: var(--inp-bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: .8125rem;
  color: var(--text); outline: none;
}
.search-inp:focus { border-color: var(--c-brand); }
.search-inp::placeholder { color: var(--text2); }
.search-clear {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 2px; cursor: pointer;
  color: #e03131; display: flex; align-items: center; border-radius: 2px;
}
.search-clear:hover { color: #c92a2a; }

/* Segmented control */
.seg { display: flex; background: var(--seg-bg); border-radius: var(--r-sm); padding: 3px; gap: 2px; transition: background .15s; }
.seg input { display: none; }
.seg-lbl {
  padding: 4px 12px; border-radius: 3px;
  font-size: .8125rem; cursor: pointer;
  color: var(--text2); white-space: nowrap; user-select: none;
  transition: background .15s, color .15s;
}
.seg input:checked + .seg-lbl {
  background: var(--seg-act); color: var(--text);
  font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.btn-prim {
  background: var(--c-brand); color: #fff; border: none;
  padding: 6px 14px; border-radius: var(--r-sm); font-size: .875rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; transition: background .15s;
}
.btn-prim:hover { background: #c2255c; }
#submit-btn { position: relative; }
#submit-spinner { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; }
#submit-btn.posting #submit-label { visibility: hidden; }
#submit-btn.posting #submit-spinner { display: flex; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
#submit-btn:disabled { opacity: .45; cursor: not-allowed; }
#submit-spinner svg { animation: btn-spin .7s linear infinite; }

/* ─── THOUGHTS GRID ──────────────────────────────────────── */
.thoughts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .875rem;
}

/* ─── THOUGHT CARD ───────────────────────────────────────── */
.tc {
  border-radius: var(--r-md); padding: .75rem;
  display: grid; grid-template-rows: 1fr auto; row-gap: .5rem;
  height: 200px; box-shadow: var(--shadow);
  cursor: pointer; position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
/* Fade-out only for text overflow — not on photo cards */
#thoughts-grid .tc-text {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}
.tc:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
#view-card-wrap .tc { cursor: default; height: auto; display: flex; flex-direction: column; row-gap: 0; }
#view-card-wrap .tc:hover { transform: none; box-shadow: var(--shadow); }
#view-card-wrap .tc-meta { margin-top: auto; }
#view-card-wrap .tc-text { flex: 1; margin-bottom: .5rem; }

/* ── Selection mode ── */
.sel-cb {
  display: none;
  position: absolute; top: 7px; right: 7px;
  width: 21px; height: 21px; border-radius: 50%;
  background: rgba(255,255,255,.75);
  border: 2px solid rgba(0,0,0,.22);
  z-index: 3; pointer-events: none;
  align-items: center; justify-content: center;
  transition: background .13s, border-color .13s, transform .13s;
}
.sel-cb::after {
  content: '';
  width: 5px; height: 9px;
  border: 2.2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-0.5px, -1px);
  opacity: 0; transition: opacity .1s;
}
.sel-eligible .sel-cb { display: flex; }
.sel-selected .sel-cb { background: #e64980; border-color: #e64980; transform: scale(1.1); }
.sel-selected .sel-cb::after { opacity: 1; }
.thoughts-grid.sel-mode .tc { cursor: default; transition: none; }
.thoughts-grid.sel-mode .tc:hover { transform: none; box-shadow: var(--shadow); }
.thoughts-grid.sel-mode .tc.sel-eligible { cursor: pointer; }
.thoughts-grid.sel-mode .tc.sel-ineligible { opacity: 0.4; pointer-events: none; }
.btn-prim.del-mode { background: #c92a2a; justify-content: center; }
.btn-prim.del-mode:hover { background: #a61e1e; }
.btn-prim.del-mode svg { position: relative; top: -1px; }
.btn-prim.rev-mode { background: #e67700; justify-content: center; }
.btn-prim.rev-mode:hover { background: #d46b08; }
.btn-prim.rev-mode svg { position: relative; top: -1px; }
.btn-prim.del-mode .sel-label, .btn-prim.rev-mode .sel-label { font-family: 'Inter', sans-serif; }
/* Cancel selection button */
.btn-cancel-sel {
  background: none; border: none; padding: 4px; cursor: pointer;
  color: var(--text2); display: inline-flex; align-items: center;
  border-radius: var(--r-xs); transition: color .15s;
}
.btn-cancel-sel:hover { color: #c92a2a; }
[data-cs="dark"] .btn-cancel-sel:hover { color: #ff6b6b; }
/* Persistent select trigger button */
.btn-sel-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px; border-radius: var(--r-sm);
  height: 30px;
  background: none; border: 1.5px solid rgba(0,0,0,.2); cursor: pointer;
  color: var(--text); transition: background .15s, border-color .15s;
}
.btn-sel-trigger:hover { background: rgba(0,0,0,.06); }
[data-cs="dark"] .btn-sel-trigger { border-color: rgba(255,255,255,.25); }
[data-cs="dark"] .btn-sel-trigger:hover { background: rgba(255,255,255,.08); }
/* Select count button */
.btn-sel-count {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 4.5px 6px; border-radius: var(--r-sm); font-size: .875rem;
  cursor: pointer; white-space: nowrap; width: 72px;
  background: none; color: var(--text);
  border: none;
}
.sel-divider {
  display: inline-block; width: 1px; height: 14px;
  background: currentColor; opacity: .35; flex-shrink: 0;
}
.btn-sel-count svg { margin-right: 4px; }
#select-btn.all-selected svg circle { fill: var(--c-brand); stroke: var(--c-brand); }
#select-btn.all-selected svg path  { stroke: #fff; }
#sel-count {
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  width: 22px; text-align: center;
}
/* Prevent text selection on note cards (looks bad on long-press) */
#thoughts-grid .tc { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

.tc--green  { background-color: var(--c-green); }
.tc--yellow { background-color: var(--c-yellow); }
.tc--blue   { background-color: var(--c-blue); }
.tc--red    { background-color: var(--c-red); }
.tc--pink   { background-color: var(--c-pink); }
.tc--violet { background-color: var(--c-violet); }

/* Patterns */
.tc--lined {
  line-height: 1.55;
  background-image:
    linear-gradient(to bottom, rgba(30,70,180,.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180,30,30,.25) 1px, transparent 1px);
  background-size: 100% 2lh;
  background-position: 0 calc(0.475em + 1lh - 1px), 0 calc(0.475em + 2lh - 1px);
}
.tc--dots {
  line-height: 1.55;
  background-image: radial-gradient(circle, rgba(0,0,0,.3) 1px, transparent 1px);
  background-size: 1lh 1lh;
  background-position: center calc(0.475em + 0.5lh - 1px);
}
.tc--grid {
  line-height: 1.55;
  background-image:
    linear-gradient(to right,  rgba(0,0,0,.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.2) 1px, transparent 1px);
  background-size: 1lh 1lh;
  background-position: center 0.475em, center calc(0.475em + 1lh - 1px);
}

.tc-text {
  font-size: .875rem; line-height: 1.55;
  color: rgba(0,0,0,.85);
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 9; line-clamp: 9; -webkit-box-orient: vertical;
  word-break: break-word; white-space: pre-wrap;
  min-height: 0;
}
.tc-meta { display: flex; align-items: center; justify-content: space-between; gap: .375rem; }
/* Fixed height so heart never shifts when trash icon appears/disappears */
.tc-actions { display: inline-flex; align-items: center; gap: .375rem; height: 20px; }

.btn-res {
  background: none; border: none;
  color: rgba(0,0,0,.65); padding: 0; cursor: pointer;
  display: inline-flex; flex-direction: row; align-items: center; gap: 3px;
  flex-shrink: 0; font-size: .75rem; line-height: 1;
  position: relative;
}
.btn-res span { display: none; }
/* Badge showing count on bottom-right of heart icon */
.btn-res::after {
  content: attr(data-tip);
  position: absolute;
  bottom: -5px;
  right: -8.5px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: rgba(0,0,0,.6);
  border: none;
  border-radius: 999px;
  font-size: .6rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.btn-res[data-tip="0"]::after { display: none; }
.btn-res svg { color: rgba(0,0,0,.5); }
.btn-res.lit svg { fill: #e03131; stroke: #e03131; color: #e03131; }

.btn-delete {
  background: none; border: none; padding: 2px; cursor: pointer;
  color: rgba(0,0,0,.5); display: inline-flex; align-items: center;
  border-radius: var(--r-xs); transition: color .15s;
  position: relative; top: 0px; /* to adjust trash icon vertical alignment */
}
.btn-delete:hover { color: #e03131; }

.btn-ban {
  background: none; border: none; padding: 2px; cursor: pointer;
  color: rgba(0,0,0,.5); display: inline-flex; align-items: center;
  border-radius: var(--r-xs); transition: color .15s;
  position: relative; top: 0.5px;
}
.btn-ban:hover { color: #e67700; }
[data-cs="dark"] .btn-ban { color: rgba(0,0,0,.5); }
[data-cs="dark"] .btn-ban:hover { color: #ffa94d; }

/* Hide trash on note cards in the grid; it stays visible in the view popup modal */
#thoughts-grid .btn-delete { display: none; }

.user-avatar-btn { overflow: hidden; padding: 0; }

.tc-author {
  font-size: .75rem; color: rgba(0,0,0,.65);
  font-style: italic; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; max-width: 120px;
}

/* Empty state */
.empty-state {
  grid-column: 1/-1; text-align: center;
  padding: 3rem; color: var(--text2); font-size: .9rem;
}

/* ─── GRID SPINNER ───────────────────────────────────────── */
.grid-spinner {
  grid-column: 1/-1;
  display: flex; justify-content: center; padding: 3rem 0;
}
.grid-spinner svg {
  width: 40px; height: 40px;
  animation: spin .8s linear infinite;
}
.grid-spinner circle {
  stroke: var(--c-brand);
  stroke-linecap: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 60;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── LOAD-MORE SENTINEL & SPINNER ──────────────────────── */
#load-more-sentinel { height: 1px; }
#grid-load-more-spinner { padding: 1.5rem 0; }

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-wrap {
  position: fixed; inset: 0;
  background: var(--overlay); z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  overflow-y: auto;
}
.modal-wrap.open { opacity: 1; pointer-events: auto; }

.modal {
  background-color: var(--card-bg); border-radius: var(--r-lg);
  padding: 1.5rem; width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg);
  transform: scale(.94) translateY(10px);
  transition: transform .22s;
}
.modal.tc--green  { background-color: var(--c-green) !important; }
.modal.tc--yellow { background-color: var(--c-yellow) !important; }
.modal.tc--blue   { background-color: var(--c-blue) !important; }
.modal.tc--red    { background-color: var(--c-red) !important; }
.modal.tc--pink   { background-color: var(--c-pink) !important; }
.modal.tc--violet { background-color: var(--c-violet) !important; }
.modal-wrap.open .modal { transform: scale(1) translateY(0); }

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-title { font-size: 1.125rem; font-weight: 700; color: var(--text); }
/* View modal always has a light pastel card background — pin author name to dark regardless of theme */
[data-cs="dark"] #view-modal-title { color: rgba(0,0,0,.85); }
.modal-x {
  background: none; border: none; cursor: pointer;
  color: rgba(0,0,0,.5); padding: 4px; border-radius: var(--r-sm);
  display: flex; align-items: center; transition: color .15s;
}
[data-cs="dark"] .modal-x { color: var(--text2); }
.modal-x:hover { color: rgba(0,0,0,.85); }
[data-cs="dark"] .modal-x:hover { color: var(--text); }

.fgroup { margin-bottom: .875rem; }
.flbl { display: block; font-size: .875rem; font-weight: 700; margin-bottom: .3rem; }
.flbl .req { color: #fa5252; }

.ftextarea {
  width: 100%; min-height: 110px; max-height: 220px; padding: .5rem .625rem;
  background: var(--inp-bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: .875rem; line-height: 1.55;
  color: var(--text); resize: vertical; outline: none;
}
.ftextarea:focus { border-color: var(--c-brand); }
.ftextarea::placeholder { color: var(--text2); }
.ftextarea.err { border-color: #fa5252; }

/* ── iOS Safari: prevent auto-zoom on input focus (triggered when font-size < 16px) ── */
@supports (-webkit-touch-callout: none) {
  .ftextarea, .author-inp { font-size: 16px; }
}

.author-row {
  display: flex; align-items: center;
  background: var(--inp-bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); height: 36px; overflow: hidden;
}
.author-row:focus-within { border-color: var(--c-brand); }
.author-pfx { padding: 0 .5rem; color: var(--text2); font-size: .875rem; user-select: none; flex-shrink: 0; }
.author-inp { flex: 1; height: 100%; background: transparent; border: none; font-size: .875rem; color: var(--text); outline: none; padding-right: .5rem; }
.author-avatar { width: 24px; height: 24px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; margin-right: 6px; display: none; }
.author-g-btn {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex-shrink: 0; margin-right: 5px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-sm); cursor: pointer; padding: 0;
  color: var(--text2);
  transition: background .15s, border-color .15s, color .15s;
}
.author-g-btn:hover { background: var(--seg-bg); border-color: var(--c-brand); color: var(--c-brand); }

/* Pattern selector */
.pattern-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden;
}
.p-opt { display: none; }
.p-lbl {
  padding: 7px 4px; text-align: center; font-size: .8125rem;
  cursor: pointer; border-right: 1px solid var(--border);
  background: var(--inp-bg); color: var(--text2);
  user-select: none; transition: background .15s, color .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.p-lbl:last-of-type { border-right: none; }
.p-opt:checked + .p-lbl { background: var(--btn-hov); color: var(--text); font-weight: 700; }

/* Color picker */
.color-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Photo upload area */
.photo-upload-area { position: relative; }
.photo-placeholder {
  border: 2px dashed var(--border); border-radius: var(--r-sm);
  padding: 2rem; display: flex; flex-direction: column;
  align-items: center; gap: .5rem; cursor: pointer;
  color: var(--text2); font-size: .875rem;
  transition: border-color .15s, background .15s;
}
.photo-placeholder:hover { border-color: var(--c-brand); background: rgba(230,73,128,.04); }
.photo-preview {
  width: 100%; max-height: 200px; object-fit: contain;
  border-radius: var(--r-sm); cursor: pointer;
}
.tc-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r-sm);
  display: block;
  opacity: 0; transition: opacity .2s;
}
.tc-photo.loaded { opacity: 1; }

/* Spinner shown while photo is fetching */
.tc-photo-wrap {
  position: relative;
  height: 100%;
  border-radius: var(--r-sm);
  background: transparent;
  overflow: hidden;
}
/* Photo+text card wrapper — fills grid row 1 */
.tc-photo-body {
  position: relative; height: 100%; overflow: hidden;
  border-radius: var(--r-sm);
}
.tc-photo-wrap::before {
  content: '';
  position: absolute;
  top: calc(50% - 12px); left: calc(50% - 12px);
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--c-brand);
  border-right-color: var(--c-brand);
  animation: spin .7s linear infinite;
  pointer-events: none;
}
.tc-photo-wrap:has(.tc-photo.loaded)::before { display: none; }
/* Full-width wrapper in view modal */
.view-photo-wrap { width: 100%; min-height: 120px; }
#view-card-wrap .tc-photo { height: auto; border-radius: var(--r-sm); }

/* Flip card for text+photo notes */
.tc-flip-hint {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.35); color: #fff;
  border-radius: 50%; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 1;
}
.view-flip-container {
  perspective: 800px; position: relative; cursor: pointer; overflow: hidden;
}
.view-flip-inner {
  transition: transform .5s ease;
  transform-style: preserve-3d;
  position: relative;
}
.view-flip-inner.flipped { transform: rotateY(180deg); }
.view-flip-front, .view-flip-back {
  backface-visibility: hidden;
  display: flex; flex-direction: column;
}
.view-flip-back {
  transform: rotateY(180deg);
  position: absolute; inset: 0; overflow: hidden;
}
.view-flip-tap {
  display: flex; align-items: center; justify-content: center; gap: .375rem;
  margin-top: auto; padding-top: .5rem; flex-shrink: 0;
}
.flip-pip {
  width: 24px; height: 4px; border-radius: 2px;
  background: rgba(0,0,0,.18); transition: background .2s;
}
.flip-pip--on { background: rgba(0,0,0,.55); }
.c-opt { display: none; }
.c-swatch {
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s; flex-shrink: 0;
  position: relative;
}
.c-swatch .check-ico { display: none; pointer-events: none; }
.c-opt:checked + .c-swatch { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c-brand); }
.c-opt:checked + .c-swatch .check-ico { display: block; }
.c-opt:checked + .c-swatch .dice-ico { display: none; }
.c-swatch:hover:not(:has(.dice-ico)) { transform: scale(1.12); }

.cs-yellow { background: #ffec99; }
.cs-blue   { background: #a5d8ff; }
.cs-pink   { background: #ffd8a8; }
.cs-violet { background: #d0bfff; }
.cs-green  { background: #b2f2bb; }
.cs-red    { background: #ffc9c9; }

/* ─── NOTE TYPE 2×2 GRID — row separator + column edge fix ─── */
.pattern-row--2col {
  position: relative;
}
.pattern-row--2col::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border);
  pointer-events: none;
  z-index: 1;
}
/* Remove right border from items at the right edge of a 2-col grid */
.pattern-row--2col .p-lbl:nth-of-type(2n) { border-right: none; }

/* ─── DRAWING PAD ────────────────────────────────────────── */
.draw-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  border: 1.5px solid var(--border);
  border-top: none;
  cursor: crosshair;
  touch-action: none;
  background: #fff;
  -webkit-tap-highlight-color: transparent;
}
[data-cs="dark"] .draw-canvas { background: #fff; }

.draw-toolbar {
  display: flex;
  flex-direction: column;
  background: var(--inp-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  overflow: hidden;
}
.draw-toolbar-row {
  display: flex;
  align-items: center;
  padding: .5rem .625rem;
  gap: .5rem;
}
.draw-toolbar-sep {
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}
.draw-toolbar-row--colors { padding: .4375rem .625rem; justify-content: center; }

@media (max-width: 420px) {
  .draw-spacer--end { display: none; }
  .draw-toolbar-row { gap: .3rem; padding: .5rem .4rem; }
  .draw-tip-range   { width: 50px; }
}

/* Pen / Eraser segmented toggle */
.draw-tool-group {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.draw-tool-seg {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3125rem .625rem;
  font-size: .8125rem;
  font-weight: 600;
  border: none;
  border-right: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
  transition: background .15s, color .15s;
}
.draw-tool-seg:last-child { border-right: none; }
.draw-tool-seg:hover { background: var(--btn-hov); color: var(--text); }
.draw-tool-seg.active { background: var(--c-brand); color: #fff; }
.draw-tool-seg.active svg { stroke: #fff; }

/* Pushes size+actions to the right */
.draw-spacer { flex: 1; min-width: 0; }

/* Brush size control */
.draw-size-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}
.draw-tip-range {
  width: 72px;
  accent-color: var(--c-brand);
  cursor: pointer;
  flex-shrink: 0;
}
.draw-tip-preview {
  display: inline-block;
  border-radius: 50%;
  background: var(--text);
  flex-shrink: 0;
  transition: width .1s, height .1s;
}

/* Vertical divider in toolbar row */
.draw-toolbar-vdiv {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
}

/* Undo / Clear icon-only buttons */
.draw-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg2);
  color: var(--text2);
  cursor: pointer;
  padding: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.draw-action-btn:hover { background: var(--btn-hov); color: var(--text); }
.draw-action-btn--clear:hover { background: #fff0f0; border-color: #fa5252; color: #fa5252; }

/* Colour swatches */
.draw-colors {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.draw-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 0;
  border: 2px solid rgba(0,0,0,.12);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: transform .15s, box-shadow .15s;
}
.draw-color-swatch:hover { transform: scale(1.18); }
.draw-color-swatch.active {
  box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 5px var(--c-brand);
}

.modal-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.modal-turnstile { margin-top: .75rem; }
.modal-turnstile-bar {
  display: flex; align-items: center; justify-content: space-between;
}
.flbl-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: .25rem;
}
.flbl-row .flbl { margin-bottom: 0; }
.coc-link {
  font-size: .72rem; color: var(--text2); text-decoration: none;
  opacity: .75; transition: opacity .15s, color .15s;
}
.coc-link:hover { opacity: 1; color: var(--c-brand); }
.ts-toggle { display: flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; font-size: .75rem; color: var(--c-meta); padding: 0; opacity: .7; transition: opacity .15s; }
.ts-toggle:hover { opacity: 1; }
.ts-chevron { transition: transform .2s; }
.ts-toggle[aria-expanded="true"] .ts-chevron { transform: rotate(180deg); }
.ts-widget { overflow: hidden; height: 65px; margin-top: .4rem; border-radius: var(--r-sm); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: auto; }

/* ─── BACK TO TOP ───────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 1.5rem;
  right: max(1.25rem, calc((100vw - 1140px) / 2 + 1.25rem));
  z-index: 900;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2); color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, background .15s, color .15s;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: var(--btn-hov); color: var(--text); }
.foot-inner { display: flex; gap: 2rem; flex-wrap: wrap; }
.foot-brand h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.foot-brand h2 .accent { color: var(--blue-acc); }
.foot-copy { font-size: .8125rem; color: var(--text2); display: flex; align-items: center; gap: .25rem; margin-bottom: .25rem; }
.foot-links { display: flex; gap: .375rem; align-items: center; flex-wrap: wrap; }
.foot-link { font-size: .8125rem; color: var(--text2); transition: text-decoration .15s; }
.foot-link:hover { text-decoration: underline; }

/* ─── Legal modals ───────────────────────────────────────── */
.legal-modal { max-width: 600px; width: 100%; display: flex; flex-direction: column; max-height: 85vh; padding-bottom: 0; overflow: hidden; }
.legal-modal .modal-head { padding-bottom: .75rem; margin-bottom: 0; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.legal-body {
  overflow-y: auto; padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
}
.legal-date { font-size: .75rem; color: var(--text2); margin-bottom: 1rem; }
.legal-body h2 {
  font-size: .9375rem; font-weight: 700; color: var(--text);
  margin: 1.25rem 0 .375rem;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { font-size: .875rem; color: var(--text); line-height: 1.6; margin-bottom: .5rem; }
.legal-body ul { font-size: .875rem; color: var(--text); line-height: 1.6; padding-left: 1.25rem; margin-bottom: .5rem; }
.legal-body ul li { margin-bottom: .2rem; }
.legal-body strong { font-weight: 700; }
.legal-link { color: var(--c-brand); text-decoration: none; }
.legal-link:hover { text-decoration: underline; }
.foot-contact { margin-left: auto; }
.foot-contact h2 { font-size: .9375rem; margin-bottom: .375rem; }
.foot-contact a { font-size: .8125rem; color: var(--blue-acc); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 700px) {
  /* Remove tap highlight on all interactive elements */
  * { -webkit-tap-highlight-color: transparent; }

  /* Hide trash icon on note cards in list view; keep it in the popup modal */
  #thoughts-grid .btn-delete { display: none; }
  /* Selection mode buttons: icon-only on mobile; select btn keeps count */
  .sel-label { display: none; }
  .btn-prim.del-mode, .btn-prim.rev-mode { padding: 6px 10px; }
  .btn-cancel-sel { padding: 4px; }
  .btn-sel-count { padding: 3.5px 6px; gap: 4px; line-height: 1; }

  .nav-links { display: none; }
  .nav-icons  { display: flex; }
  .nav { gap: .5rem; }
  .foot-contact { margin-left: 0; }

  /* Action bar: [Post a Note] [Select] [seg] on row 1, [search] full-width on row 2 */
  .main { padding-top: 1.0rem; }
  .home { gap: 1rem; }
  .action-bar { align-items: center; }
  .action-bar .btn-prim  { order: 1; flex-shrink: 0; }
  .action-bar #start-sel-btn { order: 2; flex-shrink: 0; }
  .action-bar #select-btn { order: 1; flex-shrink: 0; }
  .action-bar #review-btn { order: 2; flex-shrink: 0; }
  .action-bar #cancel-sel-btn { order: 3; flex-shrink: 0; }
  .action-bar .seg       { order: 4; margin-left: auto; flex-shrink: 0; }
  .action-bar .search-wrap { order: 5; width: 100%; flex: none; min-width: 0; }

  /* Sign-in button: strip chip, icon only, match icon-btn size */
  .signin-label { display: none; }
  #signin-btn { background: none; border: none; padding: 0; gap: 0; min-width: 26px; width: 26px; height: auto; justify-content: center; }
  #signin-btn:hover { background: none; }
  #signin-btn svg { width: 18px; height: 18px; stroke: currentColor; }

  /* Strip chip from nav icon buttons (Home, Info, Theme); enlarge icons 16→18px; tighten gap */
  .nav-icons { gap: 0; }
  .nav-icons .icon-btn,
  #theme-btn { background: none; border: none; width: 26px; }
  /* Cancel trailing implicit padding of last icon btn so gap is equal on both sides of vdiv */
  .nav-right { margin-left: -4px; }
  #theme-btn  { margin-left: -.25rem; }
  .nav-logo { font-size: 1.0rem; }
  .nav-logo-icon { width: 30px; height: 30px; }

  .thoughts-grid { grid-template-columns: repeat(2, 1fr); gap: .625rem; }
  .nav-icons .icon-btn:hover,
  #theme-btn:hover { background: none; }
  .nav-icons .icon-btn svg,
  #theme-btn svg { width: 18px; height: 18px; }
}
@media (max-width: 450px) {
  .seg-lbl { padding: 4px 8px; font-size: .75rem; }
}

/* ── Sign-in popup ── */
.signin-popup {
  max-width: 400px;
  text-align: center;
  position: relative;
  padding: 2rem 1.75rem 1.5rem;
}
.signin-popup .modal-x { position: absolute; top: .75rem; right: .75rem; }
.signin-popup-sub {
  font-size: .8125rem; color: var(--text2);
  margin: 0 0 1.25rem;
}
.signin-popup #signin-popup-btn,
.signin-popup #signin-popup-microsoft-btn {
  display: inline-flex; justify-content: center;
  width: 100%; max-width: 220px;
  margin-bottom: .75rem;
}
.signin-popup #signin-popup-microsoft-btn { margin-bottom: 1.25rem; }
/* Always show label — override the mobile icon-only rule */
.signin-popup .signin-label { display: inline !important; }
.signin-popup-disclaimer {
  font-size: .75rem; color: var(--text2);
  line-height: 1.55; margin: 0;
}
.signin-popup-disclaimer a { color: var(--text2); text-decoration: underline; }
.signin-popup-disclaimer a:hover { color: var(--text); }
[data-cs="dark"] .signin-popup-sub { color: #c1c2c5; }
[data-cs="dark"] .signin-popup-disclaimer { color: #c1c2c5; }
[data-cs="dark"] .signin-popup-disclaimer a { color: #a5d8ff; }
[data-cs="dark"] .signin-popup-disclaimer a:hover { color: #74c0fc; }

/* ── Toast ── */
#toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(4px);
  background: #2c2e33; color: #fff; padding: .625rem 1.125rem;
  border-radius: 999px; font-size: .875rem; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); pointer-events: none;
  opacity: 0; transition: opacity .2s, transform .2s; z-index: 9999;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.review { background: #e67700; }

/* ── Admin nav link ── */
/* .nav-link--admin — inherits .nav-link styles, no override needed */

/* ── Lightbulb / Balloon theme icon ── */
#ico-bulb, #ico-balloon { transition: stroke .2s, fill .2s; }
[data-cs="light"]    #ico-bulb { stroke: #000; fill: none; }
[data-cs="sepia"]    #ico-bulb { stroke: #8a5c00; fill: none; }
[data-cs="dark"]     #ico-bulb { stroke: #ffd43b; }
[data-cs="dark"]     #ico-bulb path:first-of-type { fill: #ffd43b; }
/* Balloon icon: hide bulb, show balloon */
[data-cs="balloon"] #ico-bulb   { display: none; }
[data-cs="balloon"] #ico-balloon { display: inline; stroke: #e64980; }

/* ── Profile admin chip ── */
.profile-admin-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: 5px 13px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background .15s;
  background: rgba(230,73,128,.1);
  color: var(--c-brand);
  border: 1px solid rgba(230,73,128,.35);
}
.profile-admin-chip:hover { background: rgba(230,73,128,.18); }
[data-cs="dark"] .profile-admin-chip {
  background: rgba(247,131,172,.1);
  color: var(--blue-acc);
  border: 1px solid rgba(247,131,172,.28);
}
[data-cs="dark"] .profile-admin-chip:hover { background: rgba(247,131,172,.2); }

/* ── Admin modal ── */
.admin-modal { max-width: 680px; width: 100%; padding-bottom: 0; overflow: hidden; }
.admin-modal .modal-head { margin-bottom: 0; padding-bottom: .875rem; border-bottom: 1px solid var(--border); }
.modal-title { display: inline-flex; align-items: center; gap: .4rem; }

.admin-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.admin-tab {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .625rem 1rem; font-size: .8125rem; font-weight: 600;
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; color: var(--text2); transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--c-brand); border-bottom-color: var(--c-brand); }

.admin-badge {
  background: var(--c-brand); color: #fff;
  font-size: .6875rem; font-weight: 700; line-height: 1;
  padding: 2px 5px; border-radius: 999px; min-width: 18px; text-align: center;
}

.admin-panel { overflow-y: auto; max-height: 52vh; padding: .75rem 0; }
.admin-list { display: flex; flex-direction: column; gap: .5rem; padding: 0 .25rem; }
.admin-empty { text-align: center; color: var(--text2); font-size: .875rem; padding: 2rem 0; }

/* Pending note row */
.admin-row {
  display: flex; align-items: flex-start; gap: .75rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .625rem .75rem;
}
.admin-row-body { flex: 1; min-width: 0; }
.admin-row-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; display: block; }
.admin-row-meta { font-size: .75rem; color: var(--text2); margin-bottom: .2rem; }
.admin-row-msg {
  font-size: .8125rem; color: var(--text); line-height: 1.5;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical;
  word-break: break-word; white-space: pre-wrap;
  cursor: pointer; user-select: none;
}
.admin-row-msg.expanded {
  display: block;
  -webkit-line-clamp: unset; line-clamp: unset;
  overflow: visible;
  cursor: pointer;
}
.admin-row-actions { display: flex; flex-direction: column; gap: .375rem; flex-shrink: 0; }
.btn-approve {
  background: #2f9e44; color: #fff; border: none;
  padding: 4px 10px; border-radius: var(--r-sm); font-size: .75rem;
  cursor: pointer; font-weight: 600; transition: background .15s;
  white-space: nowrap;
}
.btn-approve:hover { background: #276132; }
.btn-reject {
  background: none; color: #e03131; border: 1px solid #e03131;
  padding: 4px 10px; border-radius: var(--r-sm); font-size: .75rem;
  cursor: pointer; font-weight: 600; transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn-reject:hover { background: #e03131; color: #fff; }

/* User row */
.admin-user-row {
  display: flex; align-items: center; gap: .625rem;
  padding: .5rem .625rem; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--bg2);
}
.admin-user-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--border);
}
.admin-user-info { flex: 1; min-width: 0; }
.admin-user-name { font-size: .8125rem; font-weight: 700; color: var(--text); }
.admin-user-email { font-size: .75rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-count {
  font-size: .75rem; font-weight: 700; color: var(--text2);
  background: var(--seg-bg); border-radius: var(--r-sm);
  padding: 2px 7px; flex-shrink: 0;
}
.admin-user-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; flex-shrink: 0;
}
.btn-block {
  background: none; color: #e03131; border: 1px solid #e03131;
  padding: 3px 9px; border-radius: var(--r-sm); font-size: .72rem;
  cursor: pointer; font-weight: 600; transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn-block:hover { background: #e03131; color: #fff; }
.admin-user-blocked {
  font-size: .72rem; font-weight: 700; color: var(--text2);
  background: var(--border); border-radius: var(--r-sm);
  padding: 3px 8px; white-space: nowrap;
}
.admin-user-row--blocked { opacity: .6; }

/* ── Admin moderation panel ── */
.admin-mod-add {
  display: flex; gap: .5rem;
  padding: .75rem .25rem .375rem;
}
.admin-mod-input {
  flex: 1; padding: .4rem .6rem;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg2); color: var(--text);
  font-size: .875rem; font-family: inherit;
  outline: none;
}
.admin-mod-input:focus { border-color: var(--c-brand); }
.admin-mod-list {
  display: flex; flex-wrap: wrap; gap: .35rem;
  padding: .375rem .25rem .5rem;
}
.admin-word-chip {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .5rem .2rem .625rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 999px; font-size: .8rem; color: var(--text);
}
.admin-word-chip-del {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  border: none; background: none; cursor: pointer;
  color: var(--text2); padding: 0; line-height: 1;
  font-size: .75rem;
}
.admin-word-chip-del:hover { background: var(--border); color: var(--text); }
