:root {
  --accent: #3b5bfd;
  --lick: #ff4f7b;
  --radius: 20px;
  --radius-sm: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body[data-tone="light"] {
  --bg: #f5f6f8;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --surface-2: rgba(15, 20, 30, 0.05);
  --text: #12151b;
  --muted: #5c6472;
  --line: rgba(15, 20, 30, 0.09);
  --shadow: 0 1px 2px rgba(15, 20, 30, 0.05), 0 8px 28px rgba(15, 20, 30, 0.07);
  color-scheme: light;
}
body[data-tone="dark"] {
  --bg: #0e121a;
  --surface: rgba(16, 20, 30, 0.74);
  --surface-solid: #161b26;
  --surface-2: rgba(255, 255, 255, 0.07);
  --text: #f2f4f8;
  --muted: #a4acba;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
#app { position: relative; z-index: 1; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -0.02em; }
h2 { font-size: 18px; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 16px; margin: 0; }
p { margin: 0; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ic { width: 22px; height: 22px; flex: none; }
.ic.big { width: 40px; height: 40px; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grow { flex: 1; min-width: 160px; }
.pad-top { padding-top: 12px; }

.card {
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

/* ---------- buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; transition: transform .12s, background .2s, opacity .2s; white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: var(--surface-2); border-color: var(--line); }
.btn.ghost:hover { background: var(--line); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm .ic { width: 18px; height: 18px; }
.icon-btn.light { color: rgba(255,255,255,.85); }
.icon-btn.light:hover { background: rgba(255,255,255,.15); color: #fff; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-solid); outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { resize: vertical; min-height: 44px; }
.form-error { color: #e5484d; font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }
.fine { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.fine .ic { width: 16px; height: 16px; margin-top: 1px; }

.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; margin: 16px 0; }
.seg button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer;
}
.seg button .ic { width: 18px; height: 18px; }
.seg button.on { background: var(--surface-solid); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 500;
}
.chip .ic { width: 15px; height: 15px; }
button.chip { cursor: pointer; }
button.chip:hover, .chip.on { border-color: var(--accent); color: var(--accent); }
.chips.privacy { margin-top: 12px; }
.chips.privacy .chip { color: #1f9d55; background: color-mix(in srgb, #1f9d55 10%, transparent); border-color: color-mix(in srgb, #1f9d55 25%, transparent); }
body[data-tone="dark"] .chips.privacy .chip { color: #5fe39a; }
.chips.privacy.compact { padding: 10px 16px 0; margin: 0; }
.chips.privacy.compact .chip { font-size: 12px; padding: 3px 9px; }

/* ---------- auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand .ic { color: var(--accent); }
.brand.big { display: flex; justify-content: center; font-size: 30px; margin-bottom: 6px; }
.brand.big .ic { width: 34px; height: 34px; }

/* ---------- shell */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  max-width: 652px; margin: 0 auto; padding: 14px 16px;
}
.topbar .brand, .mode-chip {
  background: var(--surface); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 12px; box-shadow: var(--shadow);
}
.mode-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.mode-chip .ic { width: 17px; height: 17px; color: var(--accent); }
.shell { max-width: 652px; margin: 0 auto; padding: 4px 16px 110px; }

.nav {
  position: fixed; z-index: 30; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(460px, calc(100% - 24px)); display: flex; justify-content: space-around; padding: 6px;
  background: var(--surface); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0;
  border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 600;
}
.nav-item.active { color: var(--accent); }
.nav-item:nth-child(3) .ic { background: var(--accent); color: #fff; border-radius: 50%; padding: 4px; width: 30px; height: 30px; }
.nav-item:nth-child(3) { margin-top: -2px; }
@media (min-width: 1000px) {
  .nav {
    left: 24px; top: 50%; bottom: auto; transform: translateY(-50%); width: auto;
    flex-direction: column; gap: 6px; border-radius: 28px; padding: 10px 6px;
  }
  .nav-item { padding: 10px 14px; border-radius: 18px; }
  .nav-item:hover { background: var(--surface-2); }
}

/* ---------- moments */
.moments { display: flex; gap: 14px; overflow-x: auto; padding: 16px; scrollbar-width: none; }
.moments::-webkit-scrollbar { display: none; }
.moment-bubble { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; flex: none; border: 0; background: none; cursor: pointer; padding: 0; }
.ring {
  display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 200deg, var(--accent), var(--lick), #ffb547, var(--accent));
}
.ring .avatar { border: 3px solid var(--surface-solid); width: 100%; height: 100%; }
.ring.add { background: var(--surface-2); border: 2px dashed var(--line); color: var(--accent); }
.mb-name { font-size: 12px; font-weight: 500; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--lick)));
  color: #fff; font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.md { width: 42px; height: 42px; font-size: 16px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.avatar.xl { width: 92px; height: 92px; font-size: 34px; }

/* ---------- posts */
.post { padding: 0; overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 12px 16px; }
.who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.name { font-weight: 600; }
.name:hover { text-decoration: underline; }
.sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media { position: relative; background: #000; overflow: hidden; } /* keeps a big or turned sticker on the picture */
.media img, .media video { width: 100%; max-height: 72vh; object-fit: contain; margin: 0 auto; }
.lick-burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; color: #fff; }
.lick-burst .ic { width: 96px; height: 96px; filter: drop-shadow(0 4px 16px rgba(0,0,0,.4)); }
.lick-burst .ic .fillable { fill: var(--lick); stroke: #fff; }
.media.burst .lick-burst { animation: burst .8s ease-out; }
@keyframes burst { 0% { opacity: 0; transform: scale(.5); } 20% { opacity: 1; transform: scale(1.1); } 60% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.2); } }

.actions { display: flex; align-items: center; gap: 2px; padding: 8px 8px 4px; }
.act {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 999px;
  border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text);
}
.act:hover { background: var(--surface-2); }
.act .lbl { font-weight: 500; color: var(--muted); }
.act.lick.on { color: var(--lick); }
.act.lick.on .fillable { fill: var(--lick); fill-opacity: .9; }
.act.lick.on .ic path:last-child { stroke: #fff; }
.act.save.on { color: var(--accent); }
.act.save.on .fillable { fill: currentColor; }
.act.pop .ic { animation: pop .35s ease-out; }
@keyframes pop { 50% { transform: scale(1.35) rotate(-8deg); } }
.caption { padding: 4px 16px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.goal-tag {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px 16px 8px; font-size: 13px; font-weight: 600;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 4px 10px; border-radius: 999px;
}
.goal-tag .ic { width: 15px; height: 15px; }
.post > .caption:last-child, .post > .actions:last-child { padding-bottom: 14px; }

.empty { text-align: center; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .btn { margin-top: 8px; }

.back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: var(--surface); border-radius: 999px; padding: 8px 14px 8px 8px; margin-bottom: 12px; cursor: pointer; font-weight: 600; backdrop-filter: blur(12px); border: 1px solid var(--line); }
.back .ic { width: 18px; height: 18px; }

.barks-head { margin: -6px -6px 12px 0; }
.barks-head h2 { margin: 0; }
.bark-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.bark { display: flex; gap: 10px; align-items: flex-start; }
.bark-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bark-form { display: flex; gap: 10px; align-items: center; }
.bark-form input { border-radius: 999px !important; }

/* ---------- create */
.chips.privacy .chip.plain { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
body[data-tone="dark"] .chips.privacy .chip.plain { color: var(--muted); }
.kind-hint { margin-bottom: 14px; }
.radio {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); cursor: pointer;
}
.radio:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.radio input { accent-color: var(--accent); margin-top: 3px; }
.radio span { display: flex; flex-direction: column; }
.radio small { color: var(--muted); font-size: 13px; }
.source { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.source-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 190px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer;
  background: var(--surface-2); transition: border-color .2s, background .2s; text-align: center; padding: 20px; color: var(--text);
}
.camera-btn { border-style: solid; border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.source-btn:hover, .drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
@media (max-width: 420px) { .source { grid-template-columns: 1fr; } .source-btn { min-height: 130px; } }

/* ---------- camera permission */
.permission { display: flex; flex-direction: column; gap: 14px; }
.perm-icon { width: 76px; height: 76px; margin: 4px auto 6px; border-radius: 24px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.perm-icon .ic { width: 38px; height: 38px; }
.perm-list { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 10px; }
.perm-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.perm-list .ic { width: 20px; height: 20px; color: var(--accent); }
.permission .btn.ghost { margin-top: -4px; }
.cam-ask { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 300px; }
.cam-status { z-index: 2; }

/* ---------- camera */
.camera { position: fixed; inset: 0; z-index: 120; background: #000; display: grid; place-items: center; animation: fade .2s; }
.cam-inner { position: relative; width: min(480px, 100%); height: min(860px, 100%); background: #000; overflow: hidden; color: #fff; }
@media (min-width: 481px) { .cam-inner { border-radius: 18px; } }
.cam-live { width: 100%; height: 100%; object-fit: cover; }
.cam-live.mirror { transform: scaleX(-1); }
.cam-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; color: rgba(255,255,255,.85); }
.cam-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px; background: linear-gradient(rgba(0,0,0,.5), transparent); }
.cam-timer { background: #e5484d; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; padding: 4px 12px; border-radius: 999px; }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 16px max(24px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.cam-modes { display: flex; gap: 4px; padding: 4px; background: rgba(0,0,0,.4); border-radius: 999px; }
.cam-modes button { border: 0; background: transparent; color: rgba(255,255,255,.75); font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.cam-modes button.on { background: #fff; color: #000; }
.cam-modes.locked { opacity: .4; pointer-events: none; }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 5px; cursor: pointer; }
.shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: all .2s; }
.shutter:active span { transform: scale(.9); }
.shutter.video span { background: #e5484d; }
.shutter.recording span { border-radius: 8px; transform: scale(.55); }
.cam-hint { font-size: 13px; color: rgba(255,255,255,.8); }
.camera.flash .cam-inner::after { content: ''; position: absolute; inset: 0; background: #fff; animation: fade .3s reverse forwards; }
.processing { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 12px; text-align: center; }
.spin-soft { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
.progress { width: 100%; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .3s; }
.progress.indeterminate i { width: 35%; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.processing .progress { max-width: 320px; }
.preview { border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.preview img, .preview video { width: 100%; max-height: 60vh; object-fit: contain; }
.publish { margin-top: 16px; }
.error-box { padding: 14px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, #e5484d 12%, transparent); color: #e5484d; margin-bottom: 14px; }

/* ---------- profile */
.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; }
.profile-head .pinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pet { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 4px; }
.pet .ic { width: 16px; height: 16px; color: var(--accent); }
.bio { margin-top: 6px; white-space: pre-wrap; }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.stats div { display: flex; flex-direction: column; align-items: center; padding: 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.stats strong { font-size: 18px; }
.stats span { font-size: 12px; color: var(--muted); }
.profile-head .row { grid-column: 1 / -1; margin-top: 8px; }
.tabs { display: flex; gap: 2px; padding: 4px; overflow-x: auto; scrollbar-width: none; background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 16px; }
.tabs a { flex: 1 0 auto; text-align: center; padding: 9px 12px; border-radius: 999px; font-weight: 600; color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) { .tabs a { font-size: 13.5px; padding: 9px 10px; } }
.tabs::-webkit-scrollbar { display: none; }
.tabs a.on { background: var(--accent); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: var(--radius); overflow: hidden; }
.tile { position: relative; aspect-ratio: 1; background: #111; overflow: hidden; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile-badge { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.tile-badge .ic { width: 18px; height: 18px; }

.modal {
  width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 48px); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: var(--surface-solid); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal::backdrop { background: rgba(10, 12, 18, .45); backdrop-filter: blur(4px); }
.modal h2 { margin: 0; }
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.avatar-edit img.pending { filter: blur(6px); }
details summary { cursor: pointer; font-weight: 600; color: var(--accent); }

/* ---------- goals */
.goal-form { margin-top: 16px; }
.goal-form .row { align-items: flex-end; }
.section-title { margin: 22px 4px 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
body[data-tone] .section-title { color: var(--text); text-shadow: 0 1px 8px var(--bg); }
.goal header { margin-bottom: 12px; }
.goal h3 { display: inline-flex; align-items: center; gap: 6px; }
.done-ic { color: #1f9d55; }
.goal .progress { margin-bottom: 6px; }
.goal.done .progress i { background: #1f9d55; }
.due { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.due.late { color: #e5484d; background: color-mix(in srgb, #e5484d 12%, transparent); }
.steps { list-style: none; padding: 0; margin: 12px 0 14px; display: flex; flex-direction: column; gap: 4px; }
.steps label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.steps label:hover { background: var(--surface-2); }
.steps input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 1px; flex: none; }
.steps label.checked span { color: var(--muted); text-decoration: line-through; }

/* ---------- trophies */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2147483647; pointer-events: none; }
.trophy-modal { text-align: center; max-width: 380px; padding: 30px 26px 24px; }
.trophy-modal .stack { margin-top: 22px; gap: 10px; }
.trophy-burst {
  width: 104px; height: 104px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #ffc93c 55%, #e89b0c); color: #7a4b00;
  box-shadow: 0 10px 30px rgba(232, 155, 12, .45), inset 0 -4px 10px rgba(0,0,0,.12);
  animation: trophy-pop .7s cubic-bezier(.2, 1.6, .4, 1) both;
}
.trophy-burst .ic { width: 54px; height: 54px; stroke-width: 1.6; }
@keyframes trophy-pop { from { transform: scale(.2) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.trophy-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.trophy-headline { font-size: 24px; margin: 6px 0 8px; line-height: 1.2; }
.trophies { display: grid; gap: 12px; }
.trophy { display: flex; align-items: center; gap: 16px; margin: 0; }
.trophy-icon { width: 60px; height: 60px; flex: none; border-radius: 18px; display: grid; place-items: center; }
.trophy-icon .ic { width: 32px; height: 32px; }
.trophy.gold .trophy-icon { background: linear-gradient(135deg, #fff1b8, #f5b82e); color: #7a4b00; }
.trophy.silver .trophy-icon { background: linear-gradient(135deg, #f4f6f8, #b8c2cc); color: #48525c; }
.trophy.bronze .trophy-icon { background: linear-gradient(135deg, #ffe0c2, #d48a4f); color: #6b3a14; }
.trophy-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trophy-num { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.trophy h3 { font-size: 16px; line-height: 1.3; }

/* ---------- modes */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.mode {
  position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; cursor: pointer; text-align: left;
  border: 2px solid transparent; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  transition: transform .15s, border-color .2s; backdrop-filter: blur(16px);
}
.mode:hover { transform: translateY(-2px); }
.mode.active { border-color: var(--accent); }
.mode canvas { width: 100%; aspect-ratio: 16 / 10; display: block; }
.mode-text { display: flex; flex-direction: column; padding: 10px 12px 12px; }
.mode-text small { color: var(--muted); font-size: 12.5px; }
.badge { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.badge .ic { width: 16px; height: 16px; }

/* ---------- moment viewer */
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 10, .94); display: grid; place-items: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.viewer-inner { position: relative; width: min(440px, 100%); height: min(820px, 100%); background: #000; border-radius: 18px; overflow: hidden; color: #fff; display: flex; flex-direction: column; }
@media (max-width: 480px) { .viewer-inner { border-radius: 0; } }
.bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.bars span { flex: 1; height: 3px; background: rgba(255,255,255,.3); border-radius: 3px; overflow: hidden; }
.bars i { display: block; height: 100%; background: #fff; }
.viewer header { position: absolute; top: 20px; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; z-index: 4; background: linear-gradient(rgba(0,0,0,.5), transparent); }
.muted-light { color: rgba(255,255,255,.7); font-size: 13px; }
.viewer-media { flex: 1; display: grid; place-items: center; }
.viewer-media img, .viewer-media video { width: 100%; height: 100%; object-fit: contain; }
.viewer-cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 18px 24px; background: linear-gradient(transparent, rgba(0,0,0,.7)); z-index: 3; }
.tap { position: absolute; top: 80px; bottom: 80px; width: 40%; border: 0; background: transparent; z-index: 2; cursor: pointer; }
.tap.prev { left: 0; } .tap.next { right: 0; }

#toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 200; opacity: 0; pointer-events: none;
  background: #12151b; color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 500; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 520px) {
  .two { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .post { padding: 0; }
  .act .lbl { display: none; }
  .profile-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profile-head .pinfo { align-items: center; }
  .profile-head .row { justify-content: center; }
  .modes { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.new-goal { margin-bottom: 12px; }
.goal.just-added { animation: just-added 1.6s ease-out; }
@keyframes just-added { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

/* ---------- installed app */
.topbar { padding-top: max(14px, env(safe-area-inset-top)); }
.auth { padding-top: max(24px, env(safe-area-inset-top)); }
.top-actions { gap: 8px; }
button.mode-chip { cursor: pointer; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; }
.install-modal { max-width: 420px; }
.install-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.install-head img { border-radius: 16px; box-shadow: var(--shadow); }
.install-steps { margin: 0 0 20px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 420px) { .install-chip span { display: none; } .install-chip { padding: 8px 10px; } }
@media (display-mode: standalone) { body { -webkit-user-select: none; user-select: none; } input, textarea { -webkit-user-select: text; user-select: text; } }

/* ---------- daily streaks */
.streak-card { display: flex; flex-direction: column; gap: 14px; }
.streak-top { display: flex; align-items: center; gap: 14px; }
.streak-flame { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.streak-flame .ic { width: 30px; height: 30px; }
.streak-card.lit .streak-flame { background: linear-gradient(160deg, #ffb547, #ff5a36); color: #fff; box-shadow: 0 6px 18px rgba(255, 90, 54, .35); }
.streak-card.lit .streak-flame .ic { fill: rgba(255, 255, 255, .25); animation: flicker 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 50% { transform: scale(1.08) rotate(-3deg); } }
.streak-count { display: flex; align-items: baseline; gap: 6px; flex: 1; }
.streak-count strong { font-size: 34px; line-height: 1; letter-spacing: -0.03em; }
.streak-count span { font-weight: 600; color: var(--muted); }
.streak-meta { text-align: right; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 0 3px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.day { min-width: 0; }
.day i { width: 100%; max-width: 32px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.day.on i { background: #ff7a3d; border-color: transparent; color: #fff; }
.day.on i .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.day.today i { outline: 2px solid var(--accent); outline-offset: 2px; }
.day small { font-size: 11px; color: var(--muted); font-weight: 600; }
.btn.practiced { color: #e8590c; border-color: color-mix(in srgb, #ff7a3d 45%, transparent); background: color-mix(in srgb, #ff7a3d 12%, transparent); }
.trophy.streak .trophy-icon { background: linear-gradient(160deg, #ffd08a, #ff5a36); color: #fff; }
.trophy-burst.flame { background: radial-gradient(circle at 35% 30%, #ffe1b0, #ff8a3d 55%, #e8461c); color: #fff; box-shadow: 0 10px 30px rgba(232, 70, 28, .4); }
.trophy-burst.flame .ic { fill: rgba(255,255,255,.3); }
@media (max-width: 360px) { .mode-chip span { display: none; } .mode-chip { padding: 8px 10px; } .topbar .brand { padding-right: 12px; } }

/* ---------- pet care */
.care-setup h1 { margin-top: 6px; }
.care-hero { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.care-pick { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.care-pick label { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.care-pick label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.care-pick input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.care-head h1 { margin: 0; }
.care-summary { margin: 12px 0 14px; font-weight: 500; }
.care-note { margin-top: 10px; }
.ring { --pct: 0; width: 62px; height: 62px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--surface-2) 0); }
.ring span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-solid); font-weight: 700; font-size: 14px; }
.care-list-card { padding: 6px 8px; }
.care-list-card > p { padding: 12px; }
.care-list { list-style: none; margin: 0; padding: 0; }
.care-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; }
.care-row + .care-row { border-top: 1px solid var(--line); }
.care-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.care-text strong { overflow-wrap: anywhere; line-height: 1.3; }
.care-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); }
.care-ic .ic { width: 20px; height: 20px; }
.care-ic.food { background: #fff1db; color: #b25e00; } .care-ic.walk { background: #e3f6e8; color: #1f8a4c; }
.care-ic.water { background: #e2f1fd; color: #1769aa; } .care-ic.meds { background: #fde7ee; color: #c2255c; }
.care-ic.groom { background: #efe8fd; color: #6741d9; } .care-ic.play { background: #fff3c4; color: #a26a00; }
.care-ic.vet { background: #ffe3e0; color: #c92a2a; } .care-ic.other { background: var(--surface-2); color: var(--muted); }
.care-check { width: 30px; height: 30px; border-radius: 50%; flex: none; border: 2px solid var(--line); background: var(--surface-solid); display: grid; place-items: center; cursor: pointer; color: #fff; padding: 0; }
.care-check:hover { border-color: var(--accent); }
.care-check .ic { width: 16px; height: 16px; stroke-width: 2.8; }
.care-row.done .care-check { background: #2fbf71; border-color: #2fbf71; }
.care-row.done strong { color: var(--muted); text-decoration: line-through; }
.care-tag { font-weight: 600; white-space: nowrap; }
.care-row.overdue .care-tag { color: #e5484d; }
.care-row.overdue .care-check { border-color: #e5484d; }
.chip.pick-radio { cursor: pointer; }
.chip.pick-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip.pick-radio:has(input:checked) { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.chip.pick-radio:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.danger { color: #e5484d; }
.nav-item { position: relative; }
.nav-item.has-badge::after { content: attr(data-badge); position: absolute; top: 2px; right: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* ---------- sticker editor */
.sticker-btn { margin-top: 12px; width: 100%; }
.sticker-editor {
  width: min(560px, 100vw); max-width: 100vw; height: min(900px, 100dvh); max-height: 100dvh; margin: auto; padding: 0;
  border: 0; border-radius: 22px; background: #0d0f14; color: #fff; display: flex; flex-direction: column; overflow: hidden;
}
.sticker-editor:not([open]) { display: none; }
.sticker-editor::backdrop { background: rgba(5, 6, 10, .8); }
@media (max-width: 560px) { .sticker-editor { border-radius: 0; } }
.se-top { display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 14px 12px; }
.se-top .btn.ghost { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
.se-stage-wrap { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 12px; }
.se-stage { position: relative; max-width: 100%; max-height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.se-stage img { display: block; max-width: 100%; max-height: calc(min(900px, 100dvh) - 250px); border-radius: 12px; }
.se-layer { position: absolute; inset: 0; }
.stk { position: absolute; aspect-ratio: 1; cursor: grab; touch-action: none; }
.stk svg { width: 100%; height: 100%; display: block; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.stk.on { outline: 2px dashed rgba(255,255,255,.85); outline-offset: 2px; border-radius: 6px; }
.stk-btn { position: absolute; width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #fff; color: #12151b; box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: pointer; padding: 0; }
.stk-btn .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.stk-del { top: -14px; right: -14px; background: #e5484d; color: #fff; }
.stk-flip { top: -14px; left: -14px; }
.stk-handle { bottom: -14px; right: -14px; background: var(--accent); cursor: nwse-resize; }
.stk-handle::after { content: ''; width: 10px; height: 10px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translate(-1px, -1px); }
.se-tip { text-align: center; color: rgba(255,255,255,.65); padding: 10px 16px 6px; }
.se-tray { display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px max(16px, env(safe-area-inset-bottom)); scrollbar-width: none; }
.se-tray::-webkit-scrollbar { display: none; }
.se-pick { flex: none; width: 64px; height: 64px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); padding: 8px; cursor: pointer; transition: transform .12s, background .2s; }
.se-pick:hover { background: rgba(255,255,255,.16); }
.se-pick:active { transform: scale(.92); }
.se-pick svg { width: 100%; height: 100%; display: block; }

/* ---------- update ready */
.update-bar {
  position: fixed; z-index: 150; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); cursor: pointer;
  max-width: calc(100% - 32px); animation: fade .3s;
}
.update-bar .ic { width: 18px; height: 18px; }
.danger-zone summary { color: #e5484d; }
.fine a, .modal a { color: var(--accent); font-weight: 600; }

/* ---------- phones */
/* iPhones zoom the whole page in when a text box uses text smaller than 16px */
input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
@media (hover: none) { body.typing .nav { display: none; } }
/* A frosted strip behind the clock and battery, so scrolled content doesn't run underneath them */
body::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); z-index: 25; pointer-events: none;
  background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
/* Upright phone videos and photos shouldn't fill the whole screen */
.preview img, .preview video { max-height: 46vh; }
.media img, .media video { max-height: 62vh; }

/* ---------- following and people */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mode-chip.icon-chip { padding: 8px 10px; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stats button { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: var(--radius-sm); background: var(--surface-2); border: 0; cursor: pointer; color: var(--text); font: inherit; }
.stats button:hover { background: var(--line); }
.stats button strong { font-size: 18px; }
.stats button span { font-size: 12px; color: var(--muted); }
.profile-actions { grid-column: 1 / -1; margin-top: 8px; }
@media (max-width: 520px) { .profile-actions { justify-content: center; } .stats.four div, .stats.four button { padding: 8px 2px; } }
.feed-seg { margin: 0 0 14px; background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--line); }
.people-card { padding: 6px 8px; }
.people-card .empty { padding: 30px 16px; }
.people { list-style: none; margin: 0; padding: 0; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 8px; }
.person + .person { border-top: 1px solid var(--line); }
.person[hidden] { display: none; }
.person-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.person .btn { flex: none; min-width: 96px; }
.search { margin-top: 14px; }

/* ---------- pet card */
.form-section { margin: 6px 0 -4px; font-size: 15px; }
.pet-card-modal { max-width: 440px; }
.pet-card {
  border-radius: 24px; padding: 70px 20px 20px; margin-top: 56px; position: relative; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface-solid)), var(--surface-solid) 60%);
  border: 1px solid var(--line);
}
.pc-photo { position: absolute; top: -52px; left: 50%; transform: translateX(-50%); }
.pc-photo .avatar { width: 112px; height: 112px; font-size: 42px; border: 5px solid var(--surface-solid); box-shadow: var(--shadow); }
.pet-card h2 { font-size: 28px; margin: 0; letter-spacing: -0.02em; }
.pc-line { color: var(--muted); font-weight: 500; margin-top: 2px; }
.pc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 4px; text-align: left; }
.pc-facts div { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.pc-facts span, .pc-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pc-facts strong { overflow-wrap: anywhere; line-height: 1.3; }
.pc-tricks { margin-top: 14px; text-align: left; }
.pc-tricks .chips { margin-top: 8px; }
.chip.trick { background: var(--accent); border-color: transparent; color: #fff; }
.chip.trick .ic { width: 14px; height: 14px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pc-stats div { display: flex; flex-direction: column; }
.pc-stats strong { font-size: 24px; }
.pc-stats span { font-size: 12px; color: var(--muted); }
.pc-owner { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pc-owner .ic { width: 16px; height: 16px; color: var(--accent); }
.se-cats { display: flex; gap: 6px; overflow-x: auto; padding: 4px 14px 2px; scrollbar-width: none; }
.se-cats::-webkit-scrollbar { display: none; }
.se-cat { flex: none; border: 0; border-radius: 999px; padding: 7px 14px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.se-cat.on { background: #fff; color: #12151b; }

/* ---------- notifications */
.mode-chip.bell { position: relative; }
.mode-chip.bell.on, .mode-chip.icon-chip.on { color: var(--accent); border-color: var(--accent); }
.bell-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.bell-badge[hidden] { display: none; }
.notif-card { padding: 6px 8px; }
.notif-card .empty { padding: 30px 16px; }
.notifs { list-style: none; margin: 0; padding: 0; }
.notif { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif.new { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.notif-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.notif-av { position: relative; flex: none; }
.notif-ic { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid var(--surface-solid); }
.notif-ic .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.notif-ic.lick { background: var(--lick); } .notif-ic.bark { background: #3b5bfd; } .notif-ic.follow { background: #2fbf71; } .notif-ic.post { background: #ff922b; } .notif-ic.report { background: #e8590c; }
.notif-text { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.notif-thumb { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; background: #111; }
.notif-thumb img, .notif-thumb video { width: 100%; height: 100%; object-fit: cover; }
.field > small { font-size: 12.5px; }

/* ---------- scrolling post list */
.list-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.list-head .back { margin: 0; }
.list-title { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 8px var(--bg); }
.media img[style*="aspect-ratio"], .media video[style*="aspect-ratio"] { height: auto; }

/* ---------- reports (admins) */
.report-group { display: flex; flex-direction: column; gap: 12px; }
.report-group h2 { font-size: 17px; margin: 0; }
.report-count { font-size: 13px; font-weight: 600; color: #e5484d; }
.report-post img, .report-post video { width: 100%; max-height: 420px; object-fit: contain; background: #000; border-radius: 12px; display: block; }
.report-post p { margin: 8px 0 0; }
.report-list { list-style: none; margin: 0; padding: 0; }
.report-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.report-list li + li { border-top: 1px solid var(--line); }

/* ---------- feed videos (play when scrolled to, tap to pause) */
.vid-paused { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: #fff; }
.vid-paused[hidden] { display: none; }
.vid-paused .ic { width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: rgba(0,0,0,.45); }
.vid-sound {
  position: absolute; right: 12px; bottom: 20px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.55); border: 0;
}
.vid-sound .ic { width: 18px; height: 18px; }
/* A thin progress bar along the bottom; the touch area is taller than it looks so it's easy to grab. */
.vid-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; display: flex; align-items: flex-end; cursor: pointer; touch-action: none; }
.vid-bar::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.3); transition: height .15s; }
.vid-bar-fill { position: relative; height: 3px; width: 0; background: #fff; transition: height .15s; }
.vid-bar.dragging::before, .vid-bar.dragging .vid-bar-fill, .vid-bar:hover::before, .vid-bar:hover .vid-bar-fill { height: 6px; }
.vid-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.report-words { white-space: pre-wrap; overflow-wrap: anywhere; }
.report-details[hidden] { display: none; }
.report-reasons .btn.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Profile shortcuts in the top row (drag someone's picture up there) */
.moments .ring.pin { background: var(--line); padding: 2px; }
.moments.drop-here { outline: 2px dashed var(--accent); outline-offset: -6px; }
.moments.drop-here .ring.add { background: var(--accent); color: #fff; border-color: transparent; transform: scale(1.08); transition: transform .15s; }
.post-head .avatar, .moments .shortcut { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.post-head a:has(.avatar) img { -webkit-user-drag: none; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.3); border: 3px solid var(--surface-solid); }
body.dragging-profile { -webkit-user-select: none; user-select: none; }
/* The Care page's progress .ring rules must not leak into the top row's circles */
.moments .ring:not(.add):not(.pin) { width: 66px; height: 66px; background: conic-gradient(from 200deg, var(--accent), var(--lick), #ffb547, var(--accent)); }
.moments .ring .avatar { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--lick))); }
.moments .ring .avatar span { width: auto; height: auto; background: none; font-size: inherit; }
.moments .ring.pin { width: 66px; height: 66px; }

/* ---------- scroll mode (full screen, snaps to one post at a time) */
.media .scroll-open {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.55); border: 0; z-index: 2;
}
.media .scroll-open .ic { width: 17px; height: 17px; }
body.scroll-mode { overflow: hidden; }
body.scroll-mode .topbar, body.scroll-mode .nav { visibility: hidden; }
.scroller {
  position: fixed; inset: 0; z-index: 90; background: #000; overflow-y: auto; outline: none;
  scroll-snap-type: y mandatory; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller .slide { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; border-radius: 0; background: #000; color: #fff; }
.scroller .slide .media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.scroller .slide .media img, .scroller .slide .media video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.scroll-close {
  position: fixed; z-index: 3; top: max(14px, env(safe-area-inset-top)); left: 14px;
  color: #fff; background: rgba(0,0,0,.45); border-radius: 50%;
}
.slide-info {
  position: absolute; left: 0; right: 76px; bottom: 0; z-index: 1; pointer-events: none;
  padding: 60px 16px max(30px, calc(env(safe-area-inset-bottom) + 22px));
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.slide-info a { pointer-events: auto; }
.slide-who { display: flex; align-items: center; gap: 10px; color: #fff; }
.slide-who .sub { color: rgba(255,255,255,.75); }
.slide-caption { margin: 8px 0 0; overflow-wrap: anywhere; }
.slide-rail {
  position: absolute; right: 10px; z-index: 2; bottom: max(84px, calc(env(safe-area-inset-bottom) + 76px));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.slide-rail .act { flex-direction: column; gap: 2px; color: #fff; background: rgba(0,0,0,.35); border-radius: 999px; padding: 10px 8px; min-width: 52px; }
.slide-rail .act .ic { width: 26px; height: 26px; }
.slide-rail .act .count { font-size: 12px; font-weight: 600; }
.scroller .slide .vid-sound { bottom: max(30px, calc(env(safe-area-inset-bottom) + 22px)); right: 18px; z-index: 2; }
/* Comments in scroll mode: a sheet that slides up over the post */
.sheet-backdrop { position: fixed; inset: 0; z-index: 4; background: rgba(0,0,0,.35); animation: fade .2s; }
.barks.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; margin: 0 auto; max-width: 652px;
  max-height: 70vh; max-height: 70dvh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 22px 22px 0 0; padding-bottom: max(16px, env(safe-area-inset-bottom));
  animation: sheet-up .25s ease-out;
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- making a moment: up to 5 photos or videos */
.m-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; }
.m-thumb { position: relative; flex: none; width: 64px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 2px solid transparent; }
.m-thumb.on { border-color: var(--accent); }
.m-thumb > button:first-child { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; }
.m-thumb img, .m-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-thumb-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.6); }
.m-thumb-x .ic { width: 12px; height: 12px; }
.m-thumb.add { display: grid; place-items: center; color: var(--accent); border: 2px dashed var(--line); cursor: pointer; }
.extra-choices[hidden], .extra-ask[hidden], .extra-rate[hidden], .extras-seg button[hidden] { display: none; }
.extras-seg { flex-wrap: wrap; }
.choice-row { display: flex; align-items: flex-end; gap: 10px; }
.choice-row .field { flex: 1; }
.quiz-right { display: none; align-items: center; gap: 6px; padding-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.extra-choices.quiz .quiz-right { display: flex; }

/* ---------- moments: polls, questions, reactions, activity */
.viewer-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px;
  padding: 40px 14px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.7));
}
.viewer-foot .viewer-cap { position: static; padding: 0 4px; background: none; margin: 0; }
.m-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.m-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 0; color: #fff; background: rgba(255,255,255,.16); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.m-pill.on { background: var(--accent); }
.m-pill .ic { width: 18px; height: 18px; }
.m-count:not(:empty) { background: #fff; color: #111; border-radius: 999px; padding: 0 7px; font-size: 12px; }
.m-react { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.16); cursor: pointer; }
.m-react .ic { width: 24px; height: 24px; }
.m-react.on { background: #fff; color: var(--lick); }
.m-react.pop { animation: pop .35s ease-out; }
.m-card {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 5; width: min(300px, 82%);
  display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; text-align: center;
  background: rgba(255,255,255,.95); color: #12151b; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.m-card strong { font-size: 17px; }
.m-choice { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-radius: 12px; border: 2px solid #e3e6ee; background: #fff; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.m-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--accent) 22%, transparent); transition: width .4s ease-out; }
.m-label, .m-pct { position: relative; }
.m-poll:not(.voted) .m-pct { display: none; }
.m-poll.voted .m-choice { cursor: default; }
.m-choice.mine { border-color: var(--accent); }
.m-answer { display: flex; gap: 8px; }
.m-answer input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 2px solid #e3e6ee; font: inherit; }
.m-note { margin: 0; color: #5c6472; font-size: 14px; }
.m-activity {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; max-height: 70%; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 16px max(18px, env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #15171d; animation: sheet-up .25s ease-out;
}
.m-activity header { position: static; padding: 0; background: none; }
.m-activity h2 { margin: 0; color: #fff; }
.m-activity ul { list-style: none; margin: 10px 0 0; padding: 0; }
.m-activity li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.m-activity li a { color: #fff; }
.m-what { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.m-what .ic { width: 18px; height: 18px; flex: none; }
.m-activity .m-note { color: rgba(255,255,255,.7); padding: 12px 0; }

/* ---------- highlights on profiles */
.highlights { display: flex; gap: 14px; overflow-x: auto; padding: 14px 16px; }
.highlight { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; flex: none; border: 0; background: none; cursor: pointer; padding: 0; color: inherit; }
.highlight .ring { width: 66px; height: 66px; padding: 3px; border-radius: 50%; background: var(--line); overflow: hidden; display: block; }
.highlight .ring img, .highlight .ring video { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface-solid); display: block; }
.highlight .mb-name { font-size: 12px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-ic.moment-reaction { background: #ff922b; } .notif-ic.moment-vote { background: #2fbf71; } .notif-ic.moment-answer { background: #3b5bfd; }

/* Streak bar on profiles */
.profile-streak { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 2px 0 8px; border-radius: var(--radius-sm); background: var(--surface-2); }
.ps-flame { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-solid); color: var(--muted); flex: none; }
.ps-flame .ic { width: 22px; height: 22px; }
.profile-streak.lit .ps-flame { background: linear-gradient(160deg, #ffb547, #ff5a36); color: #fff; }
.ps-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ps-text strong { font-size: 15px; }
.ps-best { display: flex; flex-direction: column; align-items: center; flex: none; }
.ps-best strong { font-size: 17px; }

/* Seen moments: the ring goes grey once you've watched them all */
.moments .ring.seen:not(.add):not(.pin) { background: var(--line); }
/* Hold to pause: everything but the moment fades out */
.viewer { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.viewer .bars, .viewer header, .viewer-foot { transition: opacity .2s; }
.viewer.holding .bars, .viewer.holding header, .viewer.holding .viewer-foot { opacity: 0; }
.viewer input { -webkit-user-select: text; user-select: text; }

/* ---------- polls, quizzes, question boxes and ratings: stickers on top of a post's photo or video */
.interact {
  position: absolute; z-index: 3; width: min(230px, 78%); transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(var(--s, 1));
  display: flex; flex-direction: column; gap: 6px; padding: 10px 11px; border-radius: 14px; text-align: left;
  background: rgba(255,255,255,.95); color: #12151b; box-shadow: 0 6px 22px rgba(0,0,0,.28); font-size: 13.5px;
}
.i-q { margin: 0 0 1px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.25; }
.i-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 7px; }
.i-choice { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 10px; border-radius: 10px; border: 1.5px solid #e3e6ee; background: #fff; color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.i-choice:disabled { cursor: default; opacity: 1; }
.i-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--accent) 20%, transparent); transition: width .4s ease-out; }
.i-label, .i-pct { position: relative; }
.interact:not(.answered) .i-pct { display: none; }
.interact.answered .i-choice { cursor: default; }
.i-choice.mine { border-color: var(--accent); }
.i-choice.right { border-color: #2fbf71; }
.i-choice.right .i-fill { background: color-mix(in srgb, #2fbf71 24%, transparent); }
.i-choice.wrong { border-color: #e5484d; }
.i-choice.wrong .i-fill { background: color-mix(in srgb, #e5484d 18%, transparent); }
.i-foot { margin: 0; font-size: 11.5px; color: #5c6472; }
.i-foot:empty { display: none; }
.i-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; }
.i-answer { display: flex; gap: 6px; }
.i-answer input { flex: 1; min-width: 0; padding: 7px 9px; border-radius: 10px; border: 1.5px solid #e3e6ee; background: #fff; color: #12151b; font: inherit; }
.i-answer .btn.sm { height: 32px; padding: 0 11px; font-size: 13px; }
.i-done { margin: 0; color: #5c6472; overflow-wrap: anywhere; }
.i-rate { display: flex; align-items: center; gap: 8px; }
.i-rate input { flex: 1; min-width: 0; accent-color: var(--accent); }
.i-rate output { min-width: 2ch; font-weight: 700; font-size: 15px; text-align: center; }
.i-rate .btn.sm { height: 32px; padding: 0 11px; font-size: 13px; }
.i-score { display: flex; align-items: center; gap: 8px; }
.i-meter { flex: 1; height: 8px; border-radius: 999px; background: #e3e6ee; overflow: hidden; }
.i-meter span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease-out; }
.i-score strong { font-size: 17px; }
.i-score small { font-size: 11px; color: #5c6472; font-weight: 600; }
.i-who { list-style: none; margin: 0; padding: 0; }
.i-who li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.i-who li span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.notif-ic.moment-rating { background: #f59f00; }

/* Placing the poll or question on the picture while making a post */
.preview { position: relative; }
.interact.editing { cursor: grab; touch-action: none; outline: 2px dashed rgba(255,255,255,.95); outline-offset: 4px; }
.interact.editing * { pointer-events: none; }
.interact.editing .i-handle { pointer-events: auto; }
.i-handle { position: absolute; right: -11px; bottom: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: nwse-resize; touch-action: none; }
.i-size[hidden], .i-size-hint[hidden] { display: none; }
.i-size input { accent-color: var(--accent); }

/* Phone notifications card on the Notifications page */
.push-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.push-card > .ic { width: 22px; height: 22px; flex: none; color: var(--accent); }
.push-card.on > .ic { color: #2fbf71; }
.push-card.blocked > .ic { color: var(--muted); }
.push-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.push-card .btn { flex: none; }

/* Admins: the Reports button sits next to the PetPost logo */
.top-left { gap: 8px; flex-wrap: nowrap; }
@media (max-width: 400px) { .topbar.admin .top-actions .mode-chip:not(.icon-chip) span { display: none; } .topbar.admin .top-actions .mode-chip:not(.icon-chip) { padding: 8px 10px; } }

/* More than one pet: buttons under the profile name */
.pet-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pet-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px 6px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pet-chip .ic { width: 15px; height: 15px; color: var(--muted); }
.pet-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pet-chip.on .ic { color: #fff; }
.pet-chip.add { background: none; border-style: dashed; color: var(--accent); }
.pet-chip.add .ic { color: var(--accent); }
.posting-as { display: flex; align-items: center; gap: 5px; margin: -4px 0 12px; }
.posting-as .ic { width: 15px; height: 15px; }

.tag-pets { margin: 2px 0 14px; }

/* Trophy cards with licks and comments */
.trophy-card { display: flex; flex-direction: column; gap: 6px; }
.trophy-card .trophy-acts { padding: 4px 0 0; margin: 0 -6px; }
.trophy-card .trophy-barks { border-top: 1px solid var(--line); padding-top: 10px; }
.trophy-card .bark-form { margin-top: 10px; }
.trophy.record .trophy-icon { background: linear-gradient(135deg, #ffd6e7, #ff5a8a 55%, #7b5cff); color: #fff; }
/* AI sample accounts */
.ai-tag { display: inline-block; width: auto; margin-left: 5px; padding: 0 4px; border-radius: 4px; font-size: 9px; line-height: 14px; font-weight: 700; letter-spacing: .04em; vertical-align: 2px; color: var(--muted); border: 1px solid var(--line); background: none; }
h1 .ai-tag { font-size: 12px; }

/* ---------- feedback for the PetPost team */
.fb-kinds { flex-wrap: wrap; }
.fb-shot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fb-preview { position: relative; }
.fb-preview[hidden] { display: none; }
.fb-preview img { display: block; max-width: 140px; max-height: 140px; border-radius: 10px; border: 1px solid var(--line); }
.fb-preview .icon-btn { position: absolute; top: -10px; right: -10px; background: var(--surface-solid); border: 1px solid var(--line); }
.section-title { margin: 18px 4px 8px; display: flex; align-items: center; gap: 8px; }
.feedback-item { display: flex; flex-direction: column; gap: 10px; }
.feedback-item header { gap: 8px; flex-wrap: wrap; }
.fb-tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--muted); }
.fb-tag.bug { background: #e5484d; } .fb-tag.idea { background: #2fbf71; }
.fb-message { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-image img { display: block; max-width: 100%; max-height: 360px; border-radius: 12px; border: 1px solid var(--line); }
.fb-details summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; }
.fb-details dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 8px 0 0; font-size: 13px; }
.fb-details dt { color: var(--muted); font-weight: 600; }
.fb-details dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- report outcomes */
.report-note { margin: 0 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.report-flag { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: #e8590c; }
.report-flag .ic { width: 14px; height: 14px; }
.section-note { margin: -4px 4px 10px; }

/* ---------- private accounts */
.switch-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.switch-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.switch-row span { display: flex; flex-direction: column; gap: 2px; }
.switch-row small { font-size: 12.5px; }
.private-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.private-tag .ic { width: 13px; height: 13px; }
.private-card h2 { margin: 0; }
.request-btns { gap: 6px; flex: none; }
.notif-ic.request { background: #7048e8; }

/* When a phone can't preview a video: the cover picture (if any) and a note that it will still post */
.preview-fallback { display: flex; flex-direction: column; background: var(--surface-2); }
.preview-fallback img { width: 100%; max-height: 46vh; object-fit: contain; background: #000; }
.preview-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; }
.preview-note .ic { width: 18px; height: 18px; flex: none; color: var(--accent); }

/* ---------- trophy board (admins) */
.board-stats { margin-top: 12px; }
.board-records { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.board-records li { display: flex; align-items: flex-start; gap: 8px; }
.board-records .ic { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }
.board-tools { gap: 12px; margin-bottom: 8px; }
.board-tools .search { flex: 1; min-width: 200px; }
.board-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.board-row[hidden] { display: none; }
.board-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.board-count { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.board-count .ic { width: 16px; height: 16px; color: #f59f00; }
.board-trophies { grid-column: 1 / -1; }
.board-trophies .chip.record { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.board-trophies .chip.streak .ic { color: #e8590c; }
.board-trophies .chip.goal .ic { color: #f59f00; }
