:root {
  --paper: #fbf6ee;
  --paper-2: #f3eadb;
  --card: #fffdf9;
  --ink: #2b2420;
  --ink-2: #6f645b;
  --line: #e6dccd;
  --pine: #1f4d3a;
  --pine-2: #2c6a50;
  --red: #b3263a;
  --red-2: #951c2f;
  --gold: #c99a2e;
  --gold-bg: #fbf0d4;
  --pine-bg: #e3efe7;
  --shadow: 0 1px 2px rgba(43,36,32,.06), 0 8px 24px -12px rgba(43,36,32,.18);
  --radius: 18px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  background-image: radial-gradient(rgba(201,154,46,.10) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

.btn {
  border: 0; border-radius: 999px; padding: .72em 1.35em; font-weight: 700;
  display: inline-flex; align-items: center; gap: .45em; justify-content: center;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn.small { padding: .5em 1em; font-size: .9rem; }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-2); }
.btn.pine { background: var(--pine); color: #fff; }
.btn.pine:hover { background: var(--pine-2); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn[disabled] { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid rgba(201,154,46,.6); outline-offset: 2px; }

.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(251,246,238,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--pine); font: 700 1.45rem/1 var(--serif); letter-spacing: -.01em; }
.brand em { color: var(--red); font-style: italic; }
.bow { font-size: 1.2rem; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.save-wrap { position: relative; }
.save-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  box-shadow: var(--shadow); animation: pop .16s ease-out;
}
.save-pop::before { content: ''; position: absolute; top: -7px; right: 28px; width: 12px; height: 12px; background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.pop-label { font-size: .82rem; font-weight: 700; color: var(--ink-2); display: block; margin-bottom: 6px; }
.pop-note { font-size: .8rem; color: var(--ink-2); margin: 8px 0 0; }
.pop-link { font-size: .82rem; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.pop-link code { font: 600 .9rem var(--sans); color: var(--pine); word-break: break-all; }
.pop-link button { border: 0; background: none; color: var(--red); font-weight: 700; padding: 0 0 0 6px; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; min-width: 0; }
input:not([type=radio]), textarea {
  width: 100%; padding: .7em .9em; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--pine-2); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.saved-chip { background: var(--pine-bg); color: var(--pine); box-shadow: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 120px; }
.hero { text-align: center; padding: clamp(28px, 6vw, 64px) 0 24px; }
.eyebrow { color: var(--red); font-weight: 700; letter-spacing: .02em; margin: 0 0 6px; }
.eyebrow button { border: 0; background: none; color: var(--ink-2); font-size: .8rem; text-decoration: underline; padding: 0 4px; }
.hero h1 { font: 600 clamp(2.1rem, 6vw, 3.6rem)/1.03 var(--serif); letter-spacing: -.02em; margin: 0 0 22px; color: var(--pine); }
.hero h1 span { font-style: italic; color: var(--ink); font-weight: 400; }
.name-ask { max-width: 380px; margin: 0 auto 20px; text-align: left; }
.name-ask label { font-size: .9rem; color: var(--ink-2); display: block; margin-bottom: 6px; text-align: center; }
.add-big {
  background: var(--red); color: #fff; font-size: 1.2rem; padding: 1em 2em;
  box-shadow: 0 10px 30px -10px rgba(179,38,58,.6), inset 0 -3px 0 rgba(0,0,0,.15);
}
.add-big:hover { background: var(--red-2); transform: translateY(-1px); }
.add-big .plus { font-size: 1.5em; line-height: 0; font-weight: 400; }

.people { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 14px; scrollbar-width: none; justify-content: safe center; }
.people::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 0; border-radius: 999px; padding: .45em 1em; background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500; color: var(--ink);
  display: inline-flex; gap: 6px; align-items: center;
}
.chip .n { font-size: .75rem; color: var(--ink-2); }
.chip.on { background: var(--pine); color: #fff; box-shadow: none; }
.chip.on .n { color: rgba(255,255,255,.75); }
.person-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: -4px 0 18px; color: var(--ink-2); font-size: .92rem;
}

.proc {
  display: flex; align-items: center; gap: 12px; margin: 0 auto 14px; max-width: 640px;
  background: var(--card); border: 1px dashed var(--gold); border-radius: 14px; padding: 12px 16px; font-size: .95rem;
}
.proc.failed { border-color: var(--red); }
.proc .grow { flex: 1; }
.proc button { border: 0; background: none; color: var(--ink-2); font-size: 1.2rem; }
.twinkle { font-size: 1.3rem; animation: twinkle 1.4s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(1.25) rotate(12deg); opacity: .7; } }

.feed { columns: 4 260px; column-gap: 18px; }
.card {
  break-inside: avoid; margin: 0 0 18px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; position: relative;
  animation: rise .35s ease-out both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card .pic { position: relative; background: #fff; }
.card .pic img { width: 100%; max-height: 340px; object-fit: contain; padding: 14px; }
.card .pic.ph {
  height: 150px; display: grid; place-items: center; font-size: 2.6rem;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, #efe3cf 14px 28px);
}
.card .pic.ph.enr { height: 180px; }
.card .shimmer::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
  background-size: 200% 100%; animation: shim 1.4s linear infinite;
}
@keyframes shim { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.card .body { padding: 14px 16px 16px; }
.for { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .78rem; margin-bottom: 8px; }
.for .who { font-weight: 700; color: var(--pine); }
.tag { border-radius: 999px; padding: .15em .65em; font-weight: 700; font-size: .72rem; letter-spacing: .02em; }
.tag.asked { background: var(--pine-bg); color: var(--pine); }
.tag.idea { background: var(--gold-bg); color: #8a6512; }
.tag.wish { background: #f8e1e4; color: var(--red); }
.tag.occ { background: var(--paper-2); color: var(--ink-2); font-weight: 500; }
.card h3 { font: 600 1.12rem/1.25 var(--serif); margin: 0 0 6px; letter-spacing: -.005em; }
.card .desc { color: var(--ink-2); font-size: .9rem; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .quote { font-size: .86rem; margin: 0 0 10px; padding-left: 10px; border-left: 3px solid var(--gold); color: var(--ink); font-style: italic; }
.card .looking { font-size: .86rem; color: var(--ink-2); display: flex; gap: 6px; align-items: center; margin: 6px 0 0; }
.buy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.price { font: 700 1.05rem var(--sans); }
.buy { background: var(--pine); color: #fff; border-radius: 999px; padding: .45em 1em; font-weight: 700; font-size: .88rem; text-decoration: none; }
.buy:hover { background: var(--pine-2); }
.oos { font-size: .75rem; color: var(--red); font-weight: 700; }
.alts { font-size: .8rem; color: var(--ink-2); margin: 4px 0 0; }
.alts a { color: var(--ink-2); }
.alts a:hover { color: var(--pine); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-2); }
.claim { border: 0; border-radius: 999px; padding: .4em .9em; font-weight: 700; font-size: .8rem; background: var(--gold-bg); color: #7a5810; }
.claim.mine { background: var(--pine); color: #fff; }
.claim.taken { background: var(--paper-2); color: var(--ink-2); cursor: default; }
.del { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--shadow); color: var(--ink-2); font-size: 1.1rem; opacity: 0; transition: opacity .15s; }
.card:hover .del, .del:focus { opacity: 1; }
@media (hover: none) { .del { opacity: .85; } }
.del.confirm { width: auto; border-radius: 999px; padding: 0 10px; background: var(--red); color: #fff; font-size: .8rem; font-weight: 700; opacity: 1; }

.empty { text-align: center; max-width: 460px; margin: 30px auto; color: var(--ink-2); }
.empty h2 { font: 600 1.6rem var(--serif); color: var(--ink); margin: 6px 0; }
.empty-art { font-size: 3rem; }
.sentinel { height: 60px; display: grid; place-items: center; }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.fab {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 2rem; line-height: 1;
  box-shadow: 0 10px 30px -8px rgba(179,38,58,.7); z-index: 25; opacity: 0; pointer-events: none; transform: scale(.8); transition: .2s;
}
.fab.show { opacity: 1; pointer-events: auto; transform: none; }

.modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(32,26,22,.45); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: fade .15s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: relative; width: min(540px, 100%); background: var(--card); border-radius: 22px; padding: 26px clamp(18px, 4vw, 30px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); animation: up .2s ease-out; margin: auto;
}
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
.sheet h2 { font: 600 1.6rem/1.15 var(--serif); margin: 0 0 6px; color: var(--pine); padding-right: 30px; }
.sheet .sub { color: var(--ink-2); margin: 0 0 16px; font-size: .95rem; }
.sheet .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--paper-2); font-size: 1.3rem; color: var(--ink-2); }
textarea { resize: vertical; min-height: 120px; }
.drop {
  margin-top: 12px; display: flex; gap: 12px; align-items: center; cursor: pointer;
  border: 2px dashed var(--line); border-radius: 14px; padding: 14px 16px; transition: .15s; background: #fff;
}
.drop:hover, .drop.over { border-color: var(--gold); background: var(--gold-bg); }
.drop-ico { font-size: 1.6rem; }
.drop small { color: var(--ink-2); }
.files { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.files li { display: flex; align-items: center; gap: 6px; background: var(--paper-2); border-radius: 10px; padding: 4px 6px 4px 4px; font-size: .82rem; max-width: 100%; }
.files li img { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; }
.files li .fi { width: 34px; height: 34px; display: grid; place-items: center; background: #fff; border-radius: 7px; }
.files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.files li button { border: 0; background: none; color: var(--ink-2); font-size: 1rem; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.field { display: block; margin: 14px 0 0; }
.field > span { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.ac { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 220px; overflow-y: auto;
}
.ac-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; }
.ac-list li small { color: var(--ink-2); }
.ac-list li.hi, .ac-list li:hover { background: var(--pine-bg); }
.radios { border: 0; padding: 12px 14px; margin: 14px 0 0; background: var(--paper); border-radius: 12px; display: grid; gap: 8px; animation: pop .16s ease-out; }
.radios label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.radios input[type=radio] { accent-color: var(--red); width: 18px; height: 18px; }
.err { color: var(--red); font-size: .9rem; margin: 10px 0 0; }
.ok { color: var(--pine); font-weight: 700; font-size: .9rem; margin: 10px 0 0; }
.fine { font-size: .85rem; color: var(--ink-2); margin: 8px 0 0; }
.share-hero { font-size: 2.6rem; text-align: center; }
#mShare h2 { text-align: center; padding: 0; }
#mShare .sub { text-align: center; }
.not { color: var(--red); }
.copy { display: flex; gap: 8px; }
.copy input { font-weight: 700; color: var(--pine); background: var(--pine-bg); border-color: transparent; }
.native-share { margin-top: 8px; }
hr { border: 0; border-top: 1px dashed var(--line); margin: 20px 0 4px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 60; font-weight: 500;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center; animation: up .2s ease-out;
}

@media (max-width: 560px) {
  .top { padding: 10px 16px; }
  .brand { font-size: 1.2rem; }

  .feed { columns: 1; }
  .card { margin-bottom: 12px; border-radius: 14px; }
  .card .body { padding: 10px 12px 12px; }
  .card h3 { font-size: .98rem; }
  .card .desc { -webkit-line-clamp: 2; font-size: .82rem; }
  .card .pic img { padding: 8px; max-height: 220px; }
  .buy { font-size: .8rem; }
  .foot { flex-direction: column; align-items: stretch; text-align: center; }
  .add-big { font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.buy, .claim { white-space: normal; text-align: center; line-height: 1.25; max-width: 100%; }
.card h3, .card .quote, .alts { overflow-wrap: anywhere; }

.src { border: 0; background: none; padding: 0; color: var(--ink-2); font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.src:hover { color: var(--pine); }
.src-label { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin: 16px 0 6px; }
.src-link { margin: 0; overflow-wrap: anywhere; }
.src-link a, .src-text a { color: var(--pine); }
.src-text { white-space: pre-wrap; overflow-wrap: anywhere; font: .92rem/1.5 var(--sans); background: var(--paper); border-radius: 12px; padding: 12px 14px; margin: 0; max-height: 300px; overflow-y: auto; }
.src-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.src-files a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; font-size: .85rem; }
.src-files img { width: 100%; max-height: 420px; object-fit: contain; background: var(--paper); border-radius: 12px; }
.src-files .fi { font-size: 1.4rem; }
.src-files a:has(.fi) { flex-direction: row; align-items: center; background: var(--paper); border-radius: 12px; padding: 10px 12px; }

.rank { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--red); color: #fff; font: 700 .8rem var(--sans); padding: .2em .6em; border-radius: 999px; box-shadow: var(--shadow); }
.thumbs { display: flex; gap: 6px; padding: 0 12px 10px; background: #fff; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.th { flex: none; width: 48px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--paper); }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th.on { border-color: var(--pine); }
.opts { margin: 4px 0 10px; }
.opts-h { display: block; font-size: .78rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.opt-list { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: .82rem; color: var(--ink); text-decoration: none; max-width: 100%; }
.opt:not(:has(img)) { padding-left: 10px; }
.opt img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #fff; }
a.opt:hover { box-shadow: inset 0 0 0 1.5px var(--pine); }
.buy.maps { background: #fff; color: #1a73e8; box-shadow: inset 0 0 0 1.5px #1a73e8; }
.buy.maps:hover { background: #e8f0fe; }
.pin { font-size: .95em; }
.instore, .notstore { font-size: .84rem; color: var(--ink-2); margin: 4px 0 0; }
.notstore { margin-top: 8px; color: var(--pine); font-weight: 500; }
.oos-note { font-size: .78rem; color: var(--red); margin: 2px 0 0; }
.mv { display: inline-flex; gap: 2px; }
.mv button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--paper-2); color: var(--ink-2); font-size: .9rem; padding: 0; }
.mv button:hover:not([disabled]) { background: var(--pine-bg); color: var(--pine); }
.mv button[disabled] { opacity: .35; cursor: default; }
.foot { flex-wrap: wrap; }
.feed { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.feed .card { margin: 0; }
@media (max-width: 560px) { .feed { grid-template-columns: 1fr; gap: 12px; } }

.claims { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.claims .claim { flex: 1 1 auto; }
.claim.got { background: var(--pine-bg); color: var(--pine); }
.claim.pass { background: var(--paper-2); color: var(--ink-2); font-weight: 600; }
.claim.undo { flex: 0 0 auto; background: none; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.claim.passed { background: var(--paper-2); color: var(--ink-2); cursor: default; }
span.claim { display: inline-flex; align-items: center; justify-content: center; }
.card.is-passed .pic, .card.is-passed h3, .card.is-passed .desc, .card.is-passed .quote, .card.is-passed .opts, .card.is-passed .buy-row, .card.is-passed .thumbs { opacity: .45; }
.card.is-passed .pic img { filter: grayscale(1); }

.radios legend { font-weight: 700; font-size: .92rem; padding: 0; margin-bottom: 4px; float: left; width: 100%; }
#claimOtherWrap { margin-left: 28px; }
#claimOtherWrap input { width: 100%; }
#claimTitle { font-weight: 600; color: var(--ink); }
.claim small { font-weight: 500; opacity: .8; }
.claims span.claim { display: block; flex: 1 1 100%; }
.claims span.claim small { white-space: nowrap; }
@media (max-width: 560px) {
  .card .pic img { width: 100%; height: auto; max-height: none; padding: 0; object-fit: cover; display: block; }
}

.pills { position: absolute; top: 10px; left: 10px; right: 46px; z-index: 2; display: flex; flex-wrap: wrap; gap: 5px; pointer-events: none; }
.pills .tag { box-shadow: 0 1px 4px rgba(40, 30, 20, .18); }
.pills .tag.who { background: #fff; color: var(--pine); }
.pills .tag.occ { background: #fff; }
.card .pic.ph { padding-top: 34px; }
.drag { border: 0; background: var(--paper-2); color: var(--ink-2); width: 34px; height: 30px; border-radius: 8px; font-size: 1.1rem; line-height: 1; padding: 0;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.drag:hover { background: var(--pine-bg); color: var(--pine); }
.card.dragging { opacity: .3; }
.card.ghost { position: fixed; z-index: 100; pointer-events: none; margin: 0; transform: rotate(1.5deg) scale(1.02);
  box-shadow: 0 18px 40px rgba(40, 30, 20, .28); animation: none; }
body:has(.card.ghost) { cursor: grabbing; user-select: none; -webkit-user-select: none; }
@media (max-width: 560px) { .foot .drag { align-self: center; width: 60px; } }
.pills { top: 22px; left: 22px; right: 16px; gap: 4px; }
@media (max-width: 560px) { .pills { top: 10px; left: 10px; right: 46px; } }

.code-input { font: 700 1.3rem var(--sans) !important; letter-spacing: .35em; text-align: center; width: 9.5em; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--pine); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.icon-btn { padding: .45em .6em; line-height: 1; font-size: .95rem; opacity: .75; }
.icon-btn.on { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--pine); }
.btn.wide { display: block; width: 100%; margin-top: 14px; }
.center { text-align: center; }
#lockDevices { margin-top: 12px; }
.pin { width: 7em; letter-spacing: .5em; }
.lockscreen { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px 16px;
  background: var(--paper) radial-gradient(circle at 1px 1px, rgba(0,0,0,.05) 1px, transparent 0) 0 0 / 22px 22px; }
.lock-card { width: min(380px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; text-align: center; box-shadow: var(--shadow); }
.lock-card .field { text-align: center; }
.lock-card .field > span { text-align: center; }
.lock-card .code-input { margin: 0 auto; display: block; }
.lock-ico { font-size: 2.6rem; }
.lock-card h2 { font: 600 1.45rem/1.2 var(--serif); color: var(--pine); margin: 8px 0 4px; }
.lock-msg { font-size: .88rem; color: var(--ink-2); }
.lock-links { display: flex; flex-direction: column; gap: 10px; align-items: center; margin: 16px 0 0; font-size: .9rem; }
body.is-locked .wrap, body.is-locked .fab, body.is-locked .top-actions { visibility: hidden; }

.drop-overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; pointer-events: none;
  background: rgba(31, 77, 58, .18); backdrop-filter: blur(3px); }
.drop-msg { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 40px; border-radius: 22px; background: var(--card);
  border: 3px dashed var(--gold); box-shadow: 0 18px 50px rgba(40, 30, 20, .25); }
.drop-msg span { font-size: 2.4rem; }
.drop-msg b { font: 600 1.5rem var(--serif); color: var(--pine); }
.drop-msg small { color: var(--ink-2); }

.add-top { white-space: nowrap; animation: pop .16s ease-out; }
.add-top .plus { font-size: 1.1em; margin-right: 2px; }
.acct-chip { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.acct-name { border: 0; background: none; padding: 0; font: 700 .95rem var(--sans); color: var(--pine); cursor: pointer; max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
.acct-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.not-you { border: 0; background: none; padding: 0; font-size: .8rem; color: var(--ink-2); cursor: pointer; }
.not-you:hover { color: var(--red); }
.hello-name { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.sheet.acct { max-width: 560px; }
.acct-sec { margin-top: 18px; }
.acct-sec h3 { font: 600 1.1rem var(--serif); color: var(--pine); margin: 0 0 8px; }
.acct-row { margin: 10px 0 0; }
.acct-lbl { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 5px; }
.acct-val { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.acct-val span { font-weight: 500; }
.acct-row .row input, .ap-top input, .ap-invite input { flex: 1; min-width: 0; }
.acct-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; font-size: .9rem; }
.linkish.danger { color: var(--red); }
.linkish.confirm { color: var(--red); font-weight: 700; }
.acct-people { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.acct-people li { background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.ap-top { display: flex; gap: 8px; align-items: center; }
.ap-name { font-weight: 700; }
.ap-meta { font-size: .8rem; color: var(--ink-2); margin: 6px 0 0; }
.ap-invite { margin-top: 8px; }
@media (max-width: 560px) {
  .add-top { padding-inline: .8em; }
  .acct-name { max-width: 7em; }
  .top-actions { gap: 6px; }
}
@media (max-width: 560px) {
  .brand { white-space: nowrap; font-size: 1.08rem; gap: 5px; }
  .top { gap: 8px; padding-inline: 12px; }
  .icon-btn { padding: .4em .45em; }
  .acct-chip { flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.15; }
}

.tag.admired { background: #e7e4f6; color: #4b3f8f; }

.pills .tag { pointer-events: auto; border: 0; font-family: inherit; line-height: 1.5; }
.pills button.tag { cursor: pointer; transition: transform .1s, box-shadow .1s; }
.pills button.tag:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(40, 30, 20, .25); }
.pill-break { flex-basis: 100%; height: 0; }
.pills .tag.by { background: rgba(255, 255, 255, .92); color: var(--ink-2); font-weight: 600; }
.foot { justify-content: flex-end; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: .9rem; cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; margin-top: 1px; flex: none; }

.bn-short { display: none; }
.top.brand-short .bn-full { display: none; }
.top.brand-short .bn-short { display: inline; }
.top-actions { flex: none; }
.brand { flex: none; white-space: nowrap; }
#mSignOut { z-index: 500; }.lock-card .not-you { font-family: var(--sans); font-size: .85rem; vertical-align: middle; margin-left: 4px; }
.pills .tag.by { margin-left: auto; }
.card .pills { right: 22px; }
.card:has(.del) .pills { right: 46px; }
.card .del { top: 17px; }
@media (max-width: 560px) {
  .card .pills { right: 10px; }
  .card:has(.del) .pills { right: 44px; }
  .card .del { top: 5px; }
}
.pills.pills-by { top: auto; left: auto; right: 22px; bottom: 22px; justify-content: flex-end; }
.card:has(.del) .pills.pills-by { right: 22px; }
.pills-by .tag.by { margin-left: 0; }
@media (max-width: 560px) {
  .pills.pills-by, .card:has(.del) .pills.pills-by { right: 10px; bottom: 10px; }
}
.pills.pills-by, .card:has(.del) .pills.pills-by { left: 22px; right: 22px; justify-content: flex-start; align-items: flex-end; }
.pills-by .tag.by { margin-left: auto; }
@media (max-width: 560px) {
  .pills.pills-by, .card:has(.del) .pills.pills-by { left: 10px; right: 10px; }
}
@media (min-width: 561px) {
  .pills.pills-by, .card:has(.del) .pills.pills-by { left: 16px; right: 16px; bottom: 18px; gap: 4px; }
  .pills-by .tag { font-size: .68rem; padding: .15em .55em; }
}
@media (min-width: 561px) {
  .pills.pills-by, .card:has(.del) .pills.pills-by { left: 12px; right: 12px; bottom: 16px; }
  .pills-by .tag { font-size: .66rem; letter-spacing: 0; padding: .15em .5em; }
}

@media (min-width: 561px) { .pills:not(.pills-by) { left: 12px; top: 16px; } }

.notif-wrap { position: relative; }
.notif-btn { background: var(--paper-2); color: var(--ink); white-space: nowrap; }
.notif-btn.has { background: var(--gold); color: #fff; box-shadow: 0 2px 8px rgba(201, 154, 46, .45); }
.notif-pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; z-index: 60; }
.notif-h { font: 600 1.05rem var(--serif); color: var(--pine); margin: 6px 8px 8px; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-list li button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 8px; border-radius: 10px; font: inherit; font-size: .88rem; color: var(--ink); cursor: pointer; }
.notif-list li button:hover { background: var(--paper); }
.notif-list li.unread button { background: var(--gold-bg); }
.notif-list img, .notif-list .ni { flex: none; width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--paper-2); display: grid; place-items: center; }
.notif-list small { color: var(--ink-2); white-space: nowrap; }
.empty-n { padding: 12px; color: var(--ink-2); font-size: .9rem; }
.card.flash { animation: flash 2.2s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 4px var(--gold), var(--shadow); } 100% { box-shadow: var(--shadow); } }
@media (max-width: 560px) { .notif-pop { position: fixed; left: 12px; right: 12px; width: auto; top: calc(env(safe-area-inset-top, 0px) + 64px); } }
.claims .claim.toggle { flex: 1 1 100%; cursor: pointer; }
.claims .claim.toggle:hover { filter: brightness(.95); }
.claim.passed.toggle { background: var(--paper-2); color: var(--ink-2); }
.lock-skip { margin-top: 18px; font-size: .9rem; }
.lock-skip .linkish { color: var(--ink-2); }

#mSource .sheet { max-width: 720px; }
.src-text { white-space: pre-wrap; }
.src-embed { position: relative; width: 100%; aspect-ratio: 16 / 9.6; border-radius: 12px; overflow: hidden; background: #000; margin-top: 4px; }
.src-embed.doc, .src-embed.sheet, .src-embed.file { aspect-ratio: auto; height: min(60vh, 520px); background: #fff; border: 1px solid var(--line); }
.src-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.src-open { font-size: .82rem; color: var(--ink-2); margin: 6px 0 0; text-align: right; }
.src-open a { color: var(--pine); }
.src-pointed { margin: 16px 0 0; font-size: .95rem; }
.src-pointed a { color: var(--pine); font-weight: 700; }
.src-files { margin-top: 10px; }

.field > label > span { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 8px; padding: 8px;
  background: var(--paper); border-radius: 14px; animation: pop .14s ease-out; overflow-y: auto; overscroll-behavior: contain; }
.occ-opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-radius: 10px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: .88rem; color: var(--ink); text-align: left; cursor: pointer; transition: opacity .12s, box-shadow .12s; }
.occ-opt:hover { box-shadow: inset 0 0 0 1.5px var(--pine); }
.occ-opt.on { box-shadow: inset 0 0 0 2px var(--red); }
.occ-opt .oe { font-size: 1.15rem; width: 1.4em; text-align: center; flex: none; }
.occ-opt.dim { opacity: .35; }
.occ-opt.dim:hover { opacity: .8; }
@media (max-width: 560px) { .occ-grid { grid-template-columns: repeat(2, 1fr); } .occ-opt { font-size: .82rem; padding: 6px 8px; } }

.star-blue, .star-pink { font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols", "DejaVu Sans", sans-serif; font-weight: 700; }
.star-blue { color: #2f6fd6; }
.star-pink { color: #e0529c; }
#toast.err { background: var(--red); color: #fff; }

.feed .card { overflow: visible; }
.feed .card .pic { overflow: hidden; border-top-left-radius: inherit; border-top-right-radius: inherit; }
.feed .card:hover, .feed .card:focus-within { z-index: 3; }
.card .del, .card:has(.del) .del { top: -10px; right: -10px; width: 28px; height: 28px; z-index: 4;
  background: #fdeaea; color: #c0392b; border: 1px solid rgba(192, 57, 43, .28); box-shadow: 0 2px 8px rgba(120, 30, 20, .18); font-size: 1.05rem; line-height: 1; }
.card .del:hover { background: #f9d6d4; }
.card .del.confirm { top: -12px; right: -8px; width: auto; height: 30px; background: var(--red); color: #fff; border-color: transparent; }
.card:has(.del) .pills { right: 22px; }
@media (max-width: 560px) {
  .card .del, .card:has(.del) .del { top: -8px; right: -6px; }
  .card:has(.del) .pills { right: 10px; }
}

body.signed-in .people {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--top-h, 60px)); z-index: 20;
  margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding: 10px clamp(16px, 4vw, 40px) 10px;
  background: rgba(251, 246, 238, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
body.signed-in .hero:not([hidden]) { padding: 18px 0 4px; }
body.signed-in main.wrap > .people:first-of-type { margin-top: 0; }
body.signed-in .person-bar { margin-top: 6px; }

.card .desc, .card .desc { -webkit-line-clamp: 1; }
.card:not(.open) .alts { display: none; }
.card.open .desc { -webkit-line-clamp: unset; display: block; overflow: visible; }
.card { cursor: pointer; }
.card .claims, .card .buy-row, .card .opts { cursor: auto; }
.card:not(.open) .desc::after { content: ''; }
@media (max-width: 560px) { .card .desc { -webkit-line-clamp: 1; } .card.open .desc { -webkit-line-clamp: unset; } }

.card.steady .pic img.main { height: auto; object-fit: contain; object-position: center; background: #fff; }
@media (max-width: 560px) { .card.steady .pic img.main { object-fit: contain; } }

.view-wrap { position: relative; min-width: 0; }
.view-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 0; border-radius: 999px; padding: 7px 12px 7px 14px;
  background: var(--pine); color: #fff; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(31, 77, 58, .25); }
.view-btn:hover { filter: brightness(1.08); }
.view-lbl { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.view-btn .caret { font-size: .7rem; opacity: .85; transition: transform .15s; }
.view-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.view-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; min-width: 210px; max-width: min(320px, calc(100vw - 24px));
  max-height: min(70vh, 460px); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); animation: pop .14s ease-out; }
.view-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; border-radius: 999px;
  padding: 9px 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: .92rem; color: var(--ink); cursor: pointer; }
.view-opt:hover, .view-opt:focus-visible { box-shadow: inset 0 0 0 1.5px var(--pine); outline: none; }
.view-opt.on { background: var(--pine); color: #fff; box-shadow: none; font-weight: 700; }
.view-opt .n { font-size: .75rem; color: var(--ink-2); font-weight: 600; }
.view-opt.on .n { color: rgba(255, 255, 255, .75); }
.share-btn { display: inline-flex; align-items: center; gap: 6px; }
.share-btn svg { flex: none; }
.top-actions { min-width: 0; }
@media (max-width: 560px) {
  .share-word { display: none; }
  .share-btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; justify-content: center; }
  .view-btn { font-size: .82rem; padding: 6px 10px 6px 12px; }
  .view-pop { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + var(--top-h, 60px) + 4px); max-width: none; }
  .acct-chip .acct-name { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (min-width: 561px) {
  .feed { grid-auto-rows: 2px; row-gap: 0; align-items: start; }
}

body.signed-in main.wrap { padding-top: 18px; }

.add-top .plus { line-height: 1; }
.view-wrap { flex: 0 1 auto; }
.top-actions > :not(.view-wrap) { flex: none; }
.nb-bell { display: none; }
@media (max-width: 560px) {
  .add-word { display: none; }
  .add-top { width: 38px; height: 38px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; font-size: 1.35rem; }
  .acct-chip .not-you { display: none; }
  .nb-bell { display: inline; }
  .nb-word { display: none; }
  .notif-btn { padding-inline: 10px; }
  #lockBtn { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; }
  .view-btn { padding: 6px 9px 6px 11px; }
  .acct-chip .acct-name { max-width: 7ch; }
}
.top-actions { flex: 0 1 auto; }

.vl-short, .an-ini { display: none; }
@media (max-width: 560px) {

  .an-full { display: none; }
  .an-ini { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2);
    box-shadow: inset 0 0 0 1.5px var(--pine); color: var(--pine); font: 700 .8rem var(--sans); letter-spacing: .02em; }
  .acct-chip .acct-name { max-width: none; overflow: visible; }
  .view-lbl { overflow: hidden; text-overflow: ellipsis; }
  .vl-short { overflow: hidden; text-overflow: ellipsis; }
}

#srcEdit textarea { width: 100%; min-height: 9em; resize: vertical; font: inherit; }
.src-edit-files { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.src-edit-files li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: .85rem; }
.src-edit-files li img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.src-edit-files li .nm { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-edit-files li button { border: 0; background: none; color: var(--red); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: 2px 4px; }
.src-edit-files li.gone { opacity: .45; }
.src-edit-files li.gone img { filter: grayscale(1); }
.src-edit-files li.gone button { color: var(--pine); }
.src-add-file { cursor: pointer; }
#srcActions { justify-content: flex-end; }

.claims .claim.mine b, .claims .claim.taken b { font-weight: 800; }
.claims .claim.again { background: var(--gold-bg); }
.claim-opts { border: 0; padding: 0; margin: 0 0 14px; }
.claim-opts legend { font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.claim-opt-list { display: flex; flex-direction: column; gap: 6px; }
.copt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: .92rem; }
.copt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--pine); background: var(--pine-bg); }
.copt input { width: 18px; height: 18px; accent-color: var(--pine); flex: none; }
.copt img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.copt span { display: flex; flex-direction: column; gap: 2px; }
.copt small { color: var(--ink-2); }
.copt .taker { color: var(--red); font-weight: 600; }

.pills .tag.cbadge { margin-left: auto; background: #fff; color: var(--pine); max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.pills .tag.cbadge.on { background: var(--pine); color: #fff; }
.pills .tag.cbadge:not(.on) { padding: 4px; line-height: 0; }
.cbadge .box { display: inline-block; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--pine); background: #fff; }
.pills .tag.cbadge:not(.on):hover .box { background: var(--pine-bg); }
@media (min-width: 561px) { .card .pills:not(.pills-by), .card:has(.del) .pills:not(.pills-by) { right: 12px; } }
@media (max-width: 560px) { .card .pills:not(.pills-by), .card:has(.del) .pills:not(.pills-by) { right: 10px; } }

.pills .tag.cbadge.passed { background: rgba(255, 255, 255, .92); color: var(--ink-2); padding: .15em .6em .15em .35em; line-height: 1.5; display: inline-flex; align-items: center; gap: 5px; }
.cbadge.passed .box { box-shadow: inset 0 0 0 2px var(--ink-2); opacity: .6; }
#mClaim .actions { justify-content: flex-end; }

.who-pick { margin: 0 0 12px; }
.who-pick legend { font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
#whoOtherWrap { margin: 4px 0 0 28px; }
#whoOtherWrap input { width: 100%; }
#addOccSlot .field { margin-top: 14px; }

.src-files li.vid video { width: 100%; max-height: 60vh; border-radius: 10px; background: #000; display: block; }

.price.editable, .price.none { cursor: text; border-radius: 6px; padding: 1px 4px; margin: -1px -4px; transition: background .12s; }
.price.editable:hover, .price.none:hover { background: var(--gold-bg); }
.price.none { font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.price-input { width: 6.5em; font: 700 1.05rem var(--sans); padding: 3px 6px; border: 1.5px solid var(--pine); border-radius: 8px; background: #fff; color: var(--ink); }

.src-files li { position: relative; }
.src-files .crop-btn { position: absolute; right: 8px; bottom: 8px; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 6px rgba(0, 0, 0, .18); }
.crop-wrap { width: 100%; height: min(60vh, 520px); background: #222; border-radius: 12px; overflow: hidden; }
.crop-wrap img { display: block; max-width: 100%; }
.src-crop .fine { margin: 0 0 8px; }

.card .del.on { opacity: 1; background: #f9d6d4; }
.x-menu { position: fixed; z-index: 90; min-width: 220px; max-width: calc(100vw - 16px); padding: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; animation: pop .12s ease-out; }
.x-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; border-radius: 10px; padding: 9px 12px;
  font: inherit; font-size: .92rem; color: var(--ink); cursor: pointer; }
.x-menu button:hover, .x-menu button:focus-visible { background: var(--paper); outline: none; }
.x-menu button span:last-child { display: flex; flex-direction: column; }
.x-menu small { color: var(--ink-2); font-size: .76rem; font-weight: 400; }
.x-menu .xi { font-size: 1.1rem; width: 1.4em; text-align: center; flex: none; }
.x-menu button.danger b { color: var(--red); }
.toast .toast-undo { margin-left: 10px; border: 0; background: rgba(255, 255, 255, .18); color: inherit; font: inherit; font-weight: 800; border-radius: 999px; padding: 3px 12px; cursor: pointer; }

#cropRestore { margin-right: auto; }

.view-pop:has(.fp) { width: min(440px, calc(100vw - 24px)); max-width: none; max-height: min(78vh, 640px); padding: 4px 14px 0; display: block; }
.fp section { padding: 10px 0 8px; border-bottom: 1px solid var(--line); }
.fp h4 { margin: 0 0 8px; font: 700 .78rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .86rem; cursor: pointer; user-select: none; }
.fchip input { position: absolute; opacity: 0; pointer-events: none; }
.fchip .box { width: 15px; height: 15px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--ink-2); flex: none; display: grid; place-items: center; font-size: 11px; color: #fff; }
.fchip.on { background: var(--pine-bg); box-shadow: inset 0 0 0 1.5px var(--pine); }
.fchip.on .box { background: var(--pine); box-shadow: none; }
.fchip.on .box::after { content: '✓'; font-weight: 900; }
.fchip:has(input:focus-visible) { outline: 2px solid var(--pine); outline-offset: 2px; }
.fchip small { color: var(--ink-2); font-weight: 600; font-size: .74rem; }
.fchip.zero { opacity: .5; }
.fp-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0 12px; background: var(--card); }
.fp-foot .linkish:disabled { opacity: .4; cursor: default; }
.vl-n { margin-left: 2px; background: #fff; color: var(--pine); border-radius: 999px; padding: 0 6px; font-size: .72rem; font-weight: 800; }
.card.is-hidden { opacity: .6; }
@media (max-width: 560px) { .view-pop:has(.fp) { width: auto; max-height: calc(100vh - var(--top-h, 60px) - 24px); } }

#saWho { max-height: 40vh; overflow-y: auto; }
#saLink { margin-top: 10px; }

.fp h4 .fp-flip { margin-left: 6px; font: 600 .74rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.fp h4 .fp-flip:hover { color: var(--pine); }

.whois { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin: 0 0 14px; border-radius: 14px;
  background: var(--gold-bg); box-shadow: inset 0 0 0 1px rgba(201, 154, 46, .35); font-size: .92rem; }
.whois .grow { flex: 1 1 260px; }
#mWhoAmI .actions { flex-wrap: wrap; }

.sa-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.sa-head .linkish { font-weight: 600; font-size: .85rem; white-space: nowrap; }
.sa-lists { display: flex; flex-direction: column; gap: 4px; max-height: 36vh; overflow-y: auto; padding: 8px 10px; border-radius: 12px; background: var(--paper); }
.sa-lists small { color: var(--ink-2); }

.kind-pick { display: grid; gap: 8px; margin: 10px 0 2px 28px; }
.kind-pick label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.kind-pick input[type=radio] { accent-color: var(--red); width: 18px; height: 18px; flex: none; }

.vl-ico { display: none; }
.top.view-icon .view-btn { width: 38px; height: 38px; padding: 0; justify-content: center; position: relative; }
.top.view-icon .vl-ico { display: block; }
.top.view-icon .view-lbl, .top.view-icon .view-btn .caret { display: none; }
.top.view-icon .view-btn.filtered::after { content: attr(data-n); position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box;
  border-radius: 999px; background: var(--red); color: #fff; font: 800 .68rem/18px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--paper); }
.nobr { white-space: nowrap; }
.save-input { width: 100%; }
.save-send { width: 100%; margin-top: 8px; }

@media (min-width: 561px) and (pointer: fine) { #feed .card { cursor: grab; } #feed .card a, #feed .card button { cursor: pointer; } }
.card .quote[data-quote] { cursor: text; border-radius: 4px; }
.card .quote[data-quote]:hover { background: var(--paper-2); }
.quote-input { display: block; width: 100%; margin: 0 0 10px; padding: 4px 8px; font: italic .86rem var(--sans); line-height: 1.4; resize: none; overflow: hidden;
  border: 1.5px solid var(--gold); border-radius: 8px; background: #fff; color: var(--ink); }
.quote-add { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; margin: 0 0 8px; border-radius: 50%; border: 1.5px solid var(--gold);
  background: transparent; color: var(--ink-2); font: 700 1rem/1 Georgia, serif; padding-top: 5px; box-sizing: border-box; cursor: pointer; opacity: .7; }
.quote-add:hover { opacity: 1; background: var(--paper-2); }
.card:not(.open) .quote-add { display: none; }
.wai-pick { margin: 6px 0 12px; max-height: 40vh; overflow-y: auto; }
#mWhoAmI #waiLead { margin-bottom: 4px; font-weight: 600; }
.pk-or { display: flex; align-items: center; gap: 10px; margin: 12px 0 2px; color: var(--ink-2); font-size: .78rem; }
.pk-or::before, .pk-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.pk-save { margin-top: 8px; }
.pop-note.center { text-align: center; }
.card .pic.ph { align-content: center; gap: 8px; }
.add-img { font: 700 .8rem var(--sans); padding: 5px 12px; border-radius: 999px; border: 1.5px dashed var(--ink-2); background: rgba(255,255,255,.7); color: var(--ink-2); cursor: pointer; }
.add-img:hover { border-style: solid; color: var(--pine); border-color: var(--pine); background: #fff; }
.card .pic.ph:has(.add-img) { height: 200px; padding-bottom: 46px; box-sizing: border-box; }
.opt-tag { font-weight: 500; color: var(--ink-2); }
.who-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.who-chips .chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--pine); color: #fff; font-size: .85rem; font-weight: 600; }
.who-chips .chip button { border: 0; background: rgba(255,255,255,.2); color: #fff; width: 20px; height: 20px; border-radius: 50%; padding: 0; line-height: 1; cursor: pointer; }
.who-pick input[type=checkbox] { accent-color: var(--red); width: 18px; height: 18px; }
.pills .tag.cbadge.get { padding: .15em .6em .15em .35em; line-height: 1.5; display: inline-flex; align-items: center; gap: 5px; }
