/* Goonfeed — styles. Tokens are the Organic design system's, copied verbatim
   from _ds/organic-…/styles.css. Nothing below invents a color. */
:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-action: #9e5322;        /* filled actions: cream text reads at 4.75:1 */
  --color-action-hover: #8c491a;
  --color-action-active: #7a3f16;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-500: #8fa073;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-heading-weight: 400;
  --font-body: "Figtree", system-ui, sans-serif;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);

  /* Interaction states, system-wide */
  --hover: color-mix(in srgb, var(--color-text) 6%, transparent);
  --pressed: color-mix(in srgb, var(--color-text) 12%, transparent);
  --ink-55: rgba(32, 30, 29, .55);
  --ink-35: rgba(32, 30, 29, .35);
  --ink-50: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
  --cream-90: rgba(245, 234, 216, .9);
}

/* ---- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--color-bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.45; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: inherit; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, textarea { font: inherit; color: inherit; }
a { color: var(--color-accent-700); text-decoration: none; }
img, video { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
/* Photos show in full colour. The class stays as a hook; the wash filter is gone by request. */
.washed { filter: none; }
.pretty { text-wrap: pretty; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- motion -------------------------------------------------------------- */
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.rise { animation: rise .3s ease both; }
.rise-fast { animation: rise .25s ease both; }
.pop { animation: pop .35s ease both; }
.pop-fast { animation: pop .25s ease both; }
@media (prefers-reduced-motion: reduce) { .rise, .rise-fast, .pop, .pop-fast { animation: none; } }

/* ---- frame --------------------------------------------------------------- */
.frame {
  width: 100%; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  position: relative; display: flex; flex-direction: column; background: var(--color-bg);
}
.screen { flex: 1; display: flex; flex-direction: column; padding-bottom: 96px; }
.screen.pad { padding: 22px 20px 96px; gap: 18px; }
.screen-title { font-size: 32px; line-height: 1; }
.screen-sub { font-size: 13px; color: var(--color-neutral-700); margin-top: 6px; }
.kicker { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--color-neutral-700); }
.kicker.accent { color: var(--color-accent-700); font-weight: 700; }
.muted { color: var(--color-neutral-700); }
.center-note { text-align: center; padding: 24px 20px 10px; font-size: 13px; color: var(--color-neutral-600); }
.tap { transition: background .15s; }
.tap:hover { background: var(--hover); }
.tap:active { background: var(--pressed); }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }

/* ---- avatars ------------------------------------------------------------- */
.avatar {
  --s: 40px; width: var(--s); height: var(--s); flex: none; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-heading); font-weight: 400;
  font-size: calc(var(--s) * .4); line-height: 1; background: var(--av-bg); color: var(--av-fg);
  user-select: none;
}
.avatar.blob { border-radius: 50% 50% 50% 24%; font-size: calc(var(--s) * .42); }
.avatar.ring { border: 2px solid var(--color-bg); }
.avatar.ring-surface { border: 2px solid var(--color-surface); }
.stack { display: flex; align-items: center; }
.stack > .avatar { margin-left: var(--overlap, -6px); }
.stack > .avatar:first-child { margin-left: 0; }
.stack.lead > .avatar:first-child { margin-left: var(--overlap, -6px); }
.reactor { position: relative; }
.reactor .badge {
  position: absolute; right: -6px; bottom: -5px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--color-bg); display: grid; place-items: center; color: var(--badge-color, var(--color-neutral-800));
}

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 400; font-size: 14px; line-height: 1.2;
  padding: 0 16px; height: 44px; border-radius: 999px; border: 1px solid transparent; position: relative;
  color: var(--color-text); background: transparent; transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn svg { display: block; flex: none; }
.btn-primary { background: var(--color-action); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-action-hover); }
.btn-primary:active { background: var(--color-action-active); }
.btn-primary:disabled { background: var(--color-accent-200); color: var(--color-accent-800); opacity: 1; }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: var(--hover); }
.btn-secondary:active { background: var(--pressed); }
.btn-ghost { color: var(--color-neutral-800); padding: 0 8px; font-family: var(--font-heading); }
.btn-ghost:hover { background: var(--hover); }
.btn-ghost:active { background: var(--pressed); }
.btn-ghost.accent { color: var(--color-accent-700); }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--color-bg); color: var(--color-text); display: grid; place-items: center; }
.btn-icon svg { display: block; }
.btn-icon:hover { background: var(--color-neutral-100); }
.btn-icon:active { background: var(--color-neutral-200); }
.btn-block { width: 100%; }
.btn-tall { height: 48px; font-size: 16px; }
.btn-sm { height: 40px; }
/* Small pills keep their look but accept a 44px finger: the hit region grows past the visible edge. */
.btn-sm::after, .btn-ghost::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}

/* ---- tags ---------------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  letter-spacing: .02em; padding: 5px 12px; border-radius: 999px; line-height: 1.2; white-space: nowrap;
}
.tag-sage { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag.tap:hover { background: color-mix(in srgb, var(--color-accent-2-100) 100%, var(--color-text) 6%); }
.badge-pill {
  position: absolute; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: var(--color-bg); line-height: 1.2;
}
.ink-pill { position: absolute; font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--ink-55); color: var(--color-bg); line-height: 1.3; }

/* ---- forms --------------------------------------------------------------- */
.field > label { display: block; font-size: 12px; margin-bottom: 5px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.input {
  width: 100%; min-height: 44px; padding: 8px 14px; font-size: 16px; color: var(--color-text);
  caret-color: var(--color-accent); background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 999px; transition: border-color .15s;
}
.input::placeholder { color: var(--color-neutral-600); }
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline: 2px solid var(--color-accent); outline-offset: 0; }
.input.code { font-family: var(--font-heading); letter-spacing: .12em; }
.input.on-surface { background: var(--color-bg); }
textarea.input { border-radius: var(--radius-lg); min-height: 96px; padding: 14px 16px; font-size: 16px; resize: vertical; line-height: 1.45; }
.form-error { font-size: 13px; color: var(--color-accent-700); line-height: 1.4; }

/* ---- surface cards ------------------------------------------------------- */
.card { background: var(--color-surface); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card-title { font-family: var(--font-heading); font-size: 17px; line-height: 1.2; }

/* ---- tab bar ------------------------------------------------------------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center;
  pointer-events: none; z-index: 10;
}
.tabbar-pill {
  pointer-events: auto; display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px;
  background: var(--color-surface); box-shadow: 0 4px 14px rgba(46, 43, 37, .12), 0 1px 2px rgba(46, 43, 37, .08);
}
.tab { width: 50px; height: 46px; border-radius: 999px; display: grid; place-items: center; color: var(--color-neutral-800); transition: background .15s, color .15s; }
.tab:hover { background: var(--hover); }
.tab:active { background: var(--pressed); }
.tab.active { background: var(--color-bg); color: var(--color-accent-700); }
.tab.fab { width: 56px; background: var(--color-action); color: var(--color-bg); margin: 0 4px; }
.tab.fab:hover { background: var(--color-action-hover); }
.tab.fab:active { background: var(--color-action-active); }

/* ---- login --------------------------------------------------------------- */
.login { flex: 1; display: flex; flex-direction: column; padding: 56px 28px 40px; gap: 28px; animation: rise .4s ease both; }
.login-mark {
  width: 72px; height: 72px; border-radius: 50% 50% 50% 22%; background: var(--color-accent); color: var(--color-bg);
  display: grid; place-items: center; font-family: var(--font-heading); font-size: 34px; margin-bottom: 18px; line-height: 1;
}
.login h1 { font-size: 40px; }
.login-sub { font-size: 16px; color: var(--color-neutral-700); max-width: 300px; margin-top: 6px; }
.login-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.login-inviter { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; }
.login-foot { margin-top: auto; font-size: 12px; color: var(--color-neutral-600); text-align: center; }

/* ---- feed ---------------------------------------------------------------- */
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 22px 20px 8px; gap: 10px; }
.bell { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--color-surface); display: grid; place-items: center; color: var(--color-neutral-800); flex: none; }
.bell .dot { position: absolute; right: 8px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent); border: 2px solid var(--color-surface); }
.strip { display: flex; gap: 10px; overflow-x: auto; padding: 10px 20px 6px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip:empty { display: none; }
.chip {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--color-surface); line-height: 1.15;
}
.chip-cover { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; background: var(--color-neutral-300); }
.chip-cover img { width: 100%; height: 100%; object-fit: cover; }
.chip-name { font-family: var(--font-heading); font-size: 14px; }
.chip-sub { font-size: 12px; color: var(--color-neutral-700); }
.posts { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.post { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 18px; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 0 20px; }
.post-head .avatar { cursor: pointer; }
.post-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.post-time { font-size: 12px; color: var(--color-neutral-700); line-height: 1.2; margin-top: 2px; }
.post-more { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--color-neutral-700); }
.media-wrap { padding: 0 12px; }
.media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-neutral-300);
  aspect-ratio: var(--ar, 4/5);
}
.media .slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.media .slides::-webkit-scrollbar { display: none; }
.media .slide { flex: none; width: 100%; height: 100%; scroll-snap-align: start; position: relative; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media img[loading] { opacity: 0; transition: opacity .18s ease-out; }
.media img.loaded { opacity: 1; }
.media .dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.media .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--cream-90); opacity: .5; }
.media .dots i.on { opacity: 1; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%;
  background: var(--cream-90); display: grid; place-items: center; color: var(--color-text);
}
.processing {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--color-neutral-800); font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; background: var(--color-neutral-200);
}
.processing .spinner { color: var(--color-neutral-600); }
.caption { padding: 0 20px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.reacts { display: flex; align-items: center; gap: 8px; padding: 2px 20px 0; min-height: 36px; }
.reacts .who { display: flex; align-items: center; flex: 1; min-width: 0; }
.react-summary { margin-left: 12px; font-size: 13px; color: var(--color-neutral-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.react-empty { font-size: 13px; color: var(--color-neutral-600); }
.comment-btn { display: flex; align-items: center; gap: 5px; color: var(--color-neutral-800); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.picker { display: flex; gap: 6px; padding: 0 20px; flex-wrap: wrap; }
.rpill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1.5px solid var(--color-neutral-400); color: var(--color-neutral-800);
  background: transparent; transition: background .15s, color .15s, border-color .15s;
}
.rpill:hover { background: var(--hover); }
.rpill:active { background: var(--pressed); }
.rpill.on { background: var(--rc); border-color: var(--rc); color: var(--color-bg); }
.comments {
  margin: 4px 12px 0; padding: 14px 14px 12px; border-radius: var(--radius-lg); background: var(--color-surface);
  display: flex; flex-direction: column; gap: 12px;
}
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment-body { font-size: 14px; line-height: 1.4; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.comment-body b { font-weight: 600; }
.comment-when { font-size: 12px; color: var(--color-neutral-700); margin-left: 4px; white-space: nowrap; }
.comment-del { color: var(--color-neutral-600); width: 44px; height: 44px; margin: -10px -10px -10px 0; border-radius: 50%; display: grid; place-items: center; flex: none; }
.composer { display: flex; gap: 8px; align-items: center; }
.composer .input { min-height: 44px; padding: 8px 14px; }
.send { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--color-action); color: var(--color-bg); display: grid; place-items: center; }
.send:hover { background: var(--color-action-hover); }
.send:active { background: var(--color-action-active); }
.feed-more { display: flex; justify-content: center; padding: 8px 20px; }

/* ---- dialogs & sheets ---------------------------------------------------- */
.backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 17.6px; background: var(--ink-50); }
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: 13.2px; padding: 17.6px;
  border-radius: 32px; background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title { font-family: var(--font-heading); font-size: 20px; line-height: 1.2; }
.dialog-body { font-size: 14px; opacity: .85; line-height: 1.45; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8.8px; margin-top: 8.8px; flex-wrap: wrap; }
.lightbox { position: fixed; inset: 0; z-index: 30; background: var(--color-neutral-900); display: grid; place-items: center; }
.lightbox img, .lightbox video { max-width: 100vw; max-height: 100vh; max-height: 100dvh; width: auto; height: auto; object-fit: contain; }
.lightbox .close { position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top, 0px)); width: 40px; height: 40px; border-radius: 50%; background: var(--color-bg); display: grid; place-items: center; color: var(--color-text); }
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 50; padding: 10px 16px; border-radius: 999px;
  background: var(--color-neutral-900); color: var(--color-bg); font-size: 13px; box-shadow: var(--shadow-lg); max-width: calc(100% - 40px);
}

/* ---- placeholder for screens not built yet ------------------------------- */
.soon { padding: 40px 20px; text-align: center; color: var(--color-neutral-600); font-size: 13px; }

/* ---- albums -------------------------------------------------------------- */
.cover { width: 100%; height: 100%; overflow: hidden; background: var(--color-neutral-300); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.album-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.album-card { display: flex; flex-direction: column; background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; text-align: left; width: 100%; }
.album-card.wide { grid-column: 1 / -1; }
.album-cover-wrap { position: relative; width: 100%; overflow: hidden; }
.album-cover-wrap::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,.35), transparent 55%); pointer-events: none; }
.album-cover-wrap .badge-pill { z-index: 1; }
.album-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.album-name { font-family: var(--font-heading); font-size: 16px; line-height: 1.2; }
.album-stat { font-size: 13px; color: var(--color-neutral-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.archived-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-md); width: 100%; text-align: left; }
.archived-thumb { width: 40px; height: 40px; flex: none; border-radius: var(--radius-sm); opacity: .7; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- album detail -------------------------------------------------------- */
.album-screen { padding-bottom: 140px; }
.hero { position: relative; height: 240px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--color-neutral-300); transition: background .4s; }
.hero.short { height: 220px; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(46,43,37,.72) 0%, rgba(46,43,37,.4) 40%, transparent 72%); pointer-events: none; }
.hero-btn { position: absolute; top: 14px; box-shadow: none; }
.hero-pill { right: 14px; top: 22px; }
.hero-text { position: absolute; left: 20px; right: 20px; bottom: 18px; color: var(--color-bg); }
.hero-kicker { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.hero-title { font-size: 30px; line-height: 1.05; margin-top: 2px; color: var(--color-bg); overflow-wrap: anywhere; }
.album-meta { justify-content: space-between; padding: 16px 20px 4px; gap: 12px; }
.event-link { margin: 10px 20px 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: var(--color-accent-2-100); color: var(--color-accent-2-900); font-size: 13px; text-align: left; width: calc(100% - 40px); }
.event-link:hover { background: var(--color-accent-2-200); }
.seg { display: flex; width: 100%; overflow: hidden; border: 1px solid var(--color-divider); border-radius: 999px; }
.seg-opt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; min-height: 44px; font-size: 14px; transition: background .15s, color .15s; }
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt.on { background: var(--color-action); color: var(--color-bg); }
.seg-opt:not(.on):hover { background: var(--hover); }
.seg-opt:focus-visible { outline-offset: -2px; }
.cover-caption { padding: 14px 20px 0; font-size: 13px; color: var(--color-neutral-700); line-height: 1.4; }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 12px 0; }
.tile { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--color-neutral-300); cursor: pointer; transition: box-shadow .15s; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.selected { box-shadow: inset 0 0 0 3px var(--color-accent), inset 0 0 0 5px var(--color-bg); }
.tile.selected .washed { clip-path: inset(3px round 13px); }
.tile-avatar { position: absolute; left: 8px; bottom: 8px; border: 1.5px solid var(--color-bg); font-size: 8px; }
.tile-cover { left: 8px; top: 8px; font-size: 9px; padding: 3px 8px; }
.tile-voters { position: absolute; right: 6px; bottom: 6px; }
.tile-voters .avatar { font-size: 7px; }
.avatar.ring-thin { border: 1.5px solid var(--color-bg); }
.tile-play { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--cream-90); color: var(--color-text); display: grid; place-items: center; }
.album-post { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-lg); background: var(--color-surface); width: 100%; text-align: left; }
.album-post-thumb { width: 64px; height: 64px; flex: none; border-radius: var(--radius-md); overflow: hidden; background: var(--color-neutral-300); }
.album-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* cover vote sheet */
.sheet-wrap { position: fixed; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; padding: 0 16px; pointer-events: none; z-index: 5; }
.sheet {
  pointer-events: auto; width: 100%; max-width: 448px;
  padding: 12px 12px 12px 16px; border-radius: var(--radius-lg); background: var(--color-neutral-900); color: var(--color-bg);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; z-index: 5;
}
.sheet-btn { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; font-family: var(--font-heading); font-size: 14px; background: var(--color-accent-400); color: var(--color-accent-900); }
.sheet-btn:hover { background: var(--color-accent-300); }
.sheet-btn.undo { background: rgba(245, 234, 216, .15); color: var(--color-bg); }
.sheet-btn.undo:hover { background: rgba(245, 234, 216, .25); }
.sheet-close { flex: none; width: 44px; height: 44px; margin: -6px; border-radius: 50%; color: var(--color-neutral-300); display: grid; place-items: center; }
.sheet-close:hover { background: rgba(245, 234, 216, .1); }

/* ---- events -------------------------------------------------------------- */
.year-strip { background: var(--color-surface); border-radius: var(--radius-lg); padding: 12px 10px 10px; }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; }
.month { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 8px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 600; letter-spacing: .02em; color: var(--color-neutral-800); transition: background .15s, color .15s; }
.month:hover { background: var(--hover); }
.month.now { background: var(--color-bg); color: var(--color-accent-700); }
.month.on { background: var(--color-action); color: var(--color-bg); }
.month.on:hover { background: var(--color-action-hover); }
.month .dots { display: flex; gap: 2px; height: 5px; }
.month .dots i { width: 5px; height: 5px; border-radius: 50%; }
.month .dots i.future { background: var(--color-accent); }
.month .dots i.past { background: var(--color-neutral-500); }
.month .dots i.cream { background: var(--color-bg); }
.event-row { display: flex; gap: 14px; align-items: stretch; width: 100%; text-align: left; border-radius: var(--radius-lg); }
.date-block { flex: none; width: 58px; padding: 10px 0; border-radius: var(--radius-md); background: var(--color-accent-100); color: var(--color-accent-800); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-block.past { background: var(--color-neutral-200); color: var(--color-neutral-800); }
.db-wd { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.db-day { font-family: var(--font-heading); font-size: 24px; margin: 3px 0; }
.db-mon { font-size: 11px; font-weight: 600; white-space: nowrap; }
.event-name { font-family: var(--font-heading); font-size: 17px; line-height: 1.15; }
.event-sub { font-size: 13px; color: var(--color-neutral-700); }
.event-album-label { font-size: 12px; color: var(--color-accent-2-800); font-weight: 600; }
.event-thumb { width: 56px; height: 56px; flex: none; border-radius: var(--radius-md); overflow: hidden; background: var(--color-neutral-300); }
.today-rule { display: flex; align-items: center; gap: 10px; }
.today-rule i { flex: 1; height: 1px; background: var(--color-divider); }
.today-rule span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-700); font-weight: 600; }

/* event detail */
.hero-shade.strong { background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,.35), transparent 55%), linear-gradient(to top, rgba(32,30,29,.4), transparent 60%); }
.detail-row { color: var(--color-neutral-800); }
.going-btn { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; font-family: var(--font-heading); font-size: 14px; border: 1.5px solid var(--color-neutral-400); color: var(--color-text); transition: background .15s, color .15s, border-color .15s; }
.going-btn:hover { background: var(--hover); }
.going-btn.on { background: var(--color-accent-2-700); border-color: var(--color-accent-2-700); color: var(--color-bg); }
.going-btn.on:hover { background: var(--color-accent-2-800); }
.album-link { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius-lg); background: var(--color-surface); width: 100%; text-align: left; }
.album-link-thumb { width: 72px; height: 72px; flex: none; border-radius: var(--radius-md); overflow: hidden; background: var(--color-neutral-300); }
.no-album { border: 2px dashed var(--color-neutral-400); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* new event */
.toggle-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--color-surface); width: 100%; text-align: left; }
.toggle-card:hover { background: color-mix(in srgb, var(--color-surface), var(--color-text) 6%); }
.check-disc { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--color-neutral-400); background: transparent; display: grid; place-items: center; color: var(--color-bg); transition: background .15s, border-color .15s; }
.check-disc svg { opacity: 0; }
.check-disc.on { border-color: var(--color-accent-2-700); background: var(--color-accent-2-700); }
.check-disc.on svg { opacity: 1; }
input[type=date].input, input[type=time].input { -webkit-appearance: none; appearance: none; min-width: 0; }
input[type=date].input::-webkit-calendar-picker-indicator, input[type=time].input::-webkit-calendar-picker-indicator { opacity: .7; cursor: pointer; }

/* ---- new post ------------------------------------------------------------ */
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick-tile { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--color-neutral-300); }
.pick-tile img, .pick-tile video { width: 100%; height: 100%; object-fit: cover; }
.pick-tile.uploading .washed, .pick-tile.queued .washed { opacity: .6; }
.pick-tile.failed .washed { opacity: .35; }
.pick-blank { width: 100%; height: 100%; display: grid; place-items: center; color: var(--color-neutral-600); background: var(--color-neutral-200); }
.pick-remove { position: absolute; right: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; color: var(--color-bg); }
.pick-remove svg { width: 26px; height: 26px; padding: 7px; border-radius: 50%; background: rgba(32, 30, 29, .6); }
.pick-remove:hover svg { background: rgba(32, 30, 29, .75); }
.pick-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 999px; background: rgba(245, 234, 216, .6); overflow: hidden; }
.pick-bar i { display: block; height: 100%; background: var(--color-accent); border-radius: 999px; transition: width .2s; }
.pick-retry { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 40px; padding: 0 12px; border-radius: 999px; background: var(--color-bg); color: var(--color-accent-800); font-family: var(--font-heading); font-size: 12px; box-shadow: var(--shadow-sm); }
.pick-add { aspect-ratio: 1; border-radius: var(--radius-md); border: 2px dashed var(--color-neutral-400); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--color-neutral-700); font-size: 12px; }
.album-pill { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--color-neutral-400); color: var(--color-text); transition: background .15s, color .15s, border-color .15s; }
.album-pill:hover { background: var(--hover); }
.album-pill.on { background: var(--color-accent-2-700); border-color: var(--color-accent-2-700); color: var(--color-bg); }
.album-pill.on:hover { background: var(--color-accent-2-800); }

/* ---- activity ------------------------------------------------------------ */
.back-link { align-self: flex-start; gap: 4px; margin: -8px 0 -8px -6px; height: 44px; padding: 0 10px 0 8px; }
.act-row { display: flex; gap: 12px; align-items: center; padding: 10px 6px; border-radius: var(--radius-md); width: 100%; text-align: left; }
.act-avatar { position: relative; font-size: 15px; }
.act-badge { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-bg); display: grid; place-items: center; }
.act-text { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.act-text strong { font-weight: 600; }
.act-when { font-size: 12px; color: var(--color-neutral-700); white-space: nowrap; }
.act-thumb { width: 44px; height: 44px; flex: none; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-neutral-300); }
.act-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- profile ------------------------------------------------------------- */
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.grid-tile { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--color-neutral-300); width: 100%; }
.grid-tile img { width: 100%; height: 100%; object-fit: cover; }
.grid-tile.text { background: var(--color-surface); display: grid; place-items: center; padding: 10px; }
.grid-tile.text span { font-size: 12px; line-height: 1.35; color: var(--color-neutral-800); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-align: center; }

/* ==== review pass: layout, touch targets, new pieces ======================= */
.screen { padding-bottom: 112px; }
.screen.pad { padding-bottom: 112px; }
.album-screen { padding-bottom: 150px; }
.post-head .avatar { flex: none; }
.post-more { width: 44px; height: 44px; flex: none; margin-right: -8px; }
.post-tags { padding: 0 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.post-tags .tag { max-width: 100%; }
.post-tags .ellipsis { max-width: 60vw; }
.linkish { color: inherit; position: relative; padding: 8px 0; margin: -8px 0; display: inline-block; }
.linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.rpill { height: 38px; padding: 0 14px 0 12px; position: relative; }
.rpill::after { content: ''; position: absolute; inset: -4px 0; }
.comment.highlight { background: var(--color-bg); border-radius: var(--radius-md); padding: 6px; margin: -6px; }
.send:disabled { opacity: .45; }
.btn-sage { background: var(--color-accent-2-700); }
.btn-danger { background: var(--color-accent-700); }
.btn-sage { background: var(--color-accent-2-700); color: var(--color-bg); }
.btn-sage:hover { background: var(--color-accent-2-800); }
.btn-danger { background: var(--color-accent-700); color: var(--color-bg); }
.btn-danger:hover { background: var(--color-accent-800); }

/* plan card + prompt on the feed */
.plan-wrap:empty { display: none; }
.plan-card { margin: 8px 20px 0; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--color-surface); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-main { flex: 1; min-width: 180px; text-align: left; display: flex; flex-direction: column; gap: 4px; border-radius: var(--radius-md); padding: 4px; margin: -4px; }
.plan-main .kicker { text-transform: none; letter-spacing: 0; font-family: var(--font-heading); font-size: 16px; font-weight: 400; }
.plan-sub { font-size: 13px; color: var(--color-neutral-700); }
.prompt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--color-surface); color: var(--color-neutral-700); font-size: 14px; text-align: left; }
.plan-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--color-surface); width: 100%; text-align: left; font-size: 14px; }

/* action sheet */
.sheet-back { align-items: end; place-items: end center; padding: 0; }
.action-sheet { width: 100%; max-width: 480px; padding: 8px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--color-surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; }
.action-title { padding: 10px 14px 6px; font-family: var(--font-heading); font-size: 15px; }
.action-item { display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 48px; border-radius: 999px; font-size: 15px; width: 100%; text-align: left; }
.action-item.danger { color: var(--color-accent-700); }
.action-item.cancel { justify-content: center; font-family: var(--font-heading); margin-top: 4px; border-top: 1px solid var(--color-divider); border-radius: 0; }

/* gallery */
.gallery { position: fixed; inset: 0; z-index: 30; background: var(--color-neutral-900); color: var(--color-bg); display: flex; flex-direction: column; }
.g-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: linear-gradient(to bottom, rgba(46,43,37,.6), transparent); }
.g-counter { font-size: 13px; font-weight: 600; padding-left: 8px; }
.g-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--color-bg); color: var(--color-text); display: grid; place-items: center; flex: none; }
.g-btn.text { width: auto; padding: 0 14px; font-family: var(--font-heading); font-size: 14px; background: var(--color-accent-400); color: var(--color-accent-900); }
.g-slides { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-slides::-webkit-scrollbar { display: none; }
.g-slide { flex: none; width: 100%; height: 100%; scroll-snap-align: start; display: grid; place-items: center; padding: 56px 0 84px; }
.g-slide img, .g-slide video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(245,234,216,.15); color: var(--color-bg); display: none; place-items: center; z-index: 2; }
.g-nav.left { left: 10px; } .g-nav.right { right: 10px; }
@media (hover: hover) and (pointer: fine) { .g-nav { display: grid; } }
.g-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, rgba(46,43,37,.7), transparent); }
.g-caption { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; max-width: 70%; max-height: 4.2em; overflow: hidden; }
.g-caption b { font-weight: 600; }
.g-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }

/* month scroller with 44px targets */
.months { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 2px; }
.months::-webkit-scrollbar { display: none; }
.month { flex: none; min-width: 46px; min-height: 44px; scroll-snap-align: center; font-size: 11px; }

/* events */
.date-block.cancelled { opacity: .55; }
.event-row.is-cancelled .event-name { text-decoration: line-through; color: var(--color-neutral-700); }
.hero-title.struck { text-decoration: line-through; opacity: .85; }
.linkrow { color: var(--color-neutral-800); text-decoration: none; padding: 6px 8px; margin: -6px -8px; border-radius: 999px; }
.linkrow:hover { background: var(--hover); }
.seg.rsvp { margin-top: 10px; }
.seg.rsvp .seg-opt { min-height: 48px; }
.seg.rsvp .seg-opt.on { background: var(--color-accent-2-700); }

/* compose */
.draft-status { font-size: 12px; color: var(--color-neutral-600); min-height: 18px; }

/* settings */
.member-row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: var(--radius-md); }

/* offline note */
.offline { position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 26; padding: 8px 14px; border-radius: 999px; background: var(--color-neutral-900); color: var(--color-bg); font-size: 12px; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); text-align: center; }

/* wide album card on very narrow screens: keep the tag readable */
@media (max-width: 360px) { .post-tags .ellipsis { max-width: 55vw; } }

/* ==== iPhone polish pass ==================================================== */
/* dock with labels */
.tabbar-pill { gap: 0; padding: 6px 8px; }
.tab { width: 60px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.tab-label { font-size: 10px; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.tab.fab { width: 60px; height: 52px; margin: 0 2px; }
.tab.fab .tab-label { display: none; }
body.kb-open .tabbar { display: none; }
@media (max-width: 360px) { .tab { width: 54px; } }

/* like / reaction picker / comments */
.reacts { min-height: 40px; padding: 4px 20px 0; gap: 6px; flex-wrap: wrap; }
.reacts .who { flex: 1 1 100%; min-width: 0; }
.react-sum { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; margin-left: -4px; border-radius: 999px; font-size: 13px; color: var(--color-neutral-700); max-width: 100%; text-align: left; }
.react-sum .stack .avatar { font-size: 0; }
.react-sum .sum-icons { display: flex; }
.react-sum .sum-icons .badge { width: 20px; height: 20px; border-radius: 50%; background: var(--color-bg); display: grid; place-items: center; margin-left: -6px; border: 1.5px solid var(--color-bg); box-shadow: 0 0 0 1px var(--color-surface); }
.react-sum .sum-icons .badge:first-child { margin-left: 0; }
.react-sum .ellipsis { min-width: 0; }
.actions-row { display: flex; align-items: center; gap: 6px; flex: 1 1 100%; }
.like-btn, .pick-btn, .cmt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--color-neutral-400); color: var(--color-neutral-800); font-size: 13px; font-weight: 600; background: transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s; -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.like-btn:hover, .pick-btn:hover, .cmt-btn:hover { background: var(--hover); }
.like-btn.on { background: color-mix(in srgb, var(--rc) 20%, var(--color-bg)); border-color: var(--rc); color: var(--color-text); }
.like-btn.on svg { color: var(--rc); }
.like-btn.bump { animation: pop .3s ease both; }
.pick-btn { width: 40px; padding: 0; }
.cmt-btn { margin-left: auto; border-color: transparent; padding: 0 10px; }
.cmt-btn.has { border-color: var(--color-neutral-400); }
@media (max-width: 360px) { .like-btn, .cmt-btn { padding: 0 10px; font-size: 12px; } }
.reaction-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.reaction-list .row { padding: 4px 0; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.filter-chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--color-neutral-400); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.filter-chip.on { background: var(--color-neutral-800); border-color: var(--color-neutral-800); color: var(--color-bg); }
.action-item .sel { margin-left: auto; color: var(--color-accent-700); }
.action-item .ri { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--color-bg); flex: none; }

/* plan hero: readable titles over busy photos */
.hero-shade.strong { background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,.2), transparent 55%), linear-gradient(to top, rgba(46,43,37,.78) 0%, rgba(46,43,37,.45) 38%, transparent 72%); }
.hero-text { text-shadow: 0 1px 2px rgba(46,43,37,.35); }
.poster-kicker { position: absolute; left: 20px; top: 64px; right: 20px; color: var(--color-bg); font-family: var(--font-heading); font-size: 13px; opacity: .85; letter-spacing: .02em; }

/* plan cover picker */
.cover-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; max-height: 50vh; overflow-y: auto; }
.cover-pick button { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--color-neutral-300); }
.cover-pick img { width: 100%; height: 100%; object-fit: cover; }
.cover-pick .on { box-shadow: inset 0 0 0 3px var(--color-accent), inset 0 0 0 5px var(--color-bg); }

/* who brings what */
.item-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.item-row .item-name { font-weight: 600; }
.item-row .item-qty { color: var(--color-neutral-700); font-size: 12px; }
.item-row .item-who { font-size: 12px; color: var(--color-neutral-700); }
.item-add { display: flex; gap: 8px; align-items: center; }
.item-add .input { min-height: 44px; padding: 8px 12px; }

/* pinned message */
.pinned { background: var(--color-accent-100); border-radius: var(--radius-lg); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.pinned .kicker { color: var(--color-accent-700); }
.pin-btn { color: var(--color-neutral-600); width: 44px; height: 44px; margin: -8px -6px -8px 0; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pin-btn.on { color: var(--color-accent-700); }

/* plan card rsvp */
.plan-card .who-btn { font-size: 13px; color: var(--color-neutral-700); padding: 0 6px; margin: -8px -6px; min-height: 44px; border-radius: 999px; }
.plan-card .who-btn:hover { background: var(--hover); }

/* new since last visit */
.album-new { font-size: 11px; font-weight: 700; color: var(--color-accent-700); }
.req { color: var(--color-accent-700); }

.cover.poster { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--color-bg); font-family: var(--font-heading); line-height: 1; }
.cover.poster .poster-day { font-size: 22px; } .cover.poster .poster-mon { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; margin-top: 2px; }
/* album stat may take two lines on narrow cards instead of hiding the count */
.album-stat { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }

.member-row.off { opacity: .6; }

/* notifications */
.invite-wrap:empty { display: none; }
.invite-card { margin: 8px 20px 0; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--color-accent-2-100); color: var(--color-accent-2-900); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.invite-card .event-sub { color: var(--color-accent-2-800); }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.switch-row .grow { line-height: 1.3; }
.switch { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--color-neutral-400); transition: background .15s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--color-bg); transition: transform .15s; box-shadow: var(--shadow-sm); }
.switch[aria-checked="true"] { background: var(--color-accent-2-700); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.switch:disabled { opacity: .45; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--color-neutral-200); color: var(--color-neutral-800); }
.status-pill.on { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.status-pill.warn { background: var(--color-accent-100); color: var(--color-accent-800); }
.steps { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.steps li + li { margin-top: 4px; }

/* self-hosted display face: Caprasimo with ő Ő ű Ű added (OFL, renamed as the license requires) */
@font-face { font-family: "Goonfeed Display"; src: url("/static/fonts/goonfeed-display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root { --font-heading: "Goonfeed Display", "Caprasimo", Georgia, serif; }
/* create/edit screens have no dock: less bottom clearance needed */
.screen.focused { padding-bottom: 40px; }
/* settings entry rows */
.entry-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--color-surface); }
.entry-row .grow { line-height: 1.3; }
.entry-row .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--color-bg); display: grid; place-items: center; color: var(--color-neutral-800); flex: none; }
/* album row in the composer */
.album-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 999px; background: var(--color-surface); min-height: 48px; }
.album-row .grow { font-size: 14px; }
.album-row .val { font-weight: 600; }
.g-more { }

.cmt-count { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--color-neutral-700); }

/* Language toggle under the login card */
.login-lang { display: flex; justify-content: center; gap: 18px; margin-top: 6px; }
.login-lang .linkish { font-size: 13px; color: var(--color-neutral-700); min-height: 44px; }
.login-lang .linkish.on { color: var(--color-accent-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* Focused create/edit header: Cancel · title · primary action. Longer Hungarian labels must not wrap the title. */
.screen.focused > .row:first-child > .btn { flex: none; white-space: nowrap; }
.screen.focused > .row:first-child > div { flex: 1 1 auto; min-width: 0; text-align: center; line-height: 1.1; }
.screen.focused > .row:first-child .btn-primary { font-size: 13px; padding: 0 12px; }

/* ---- iPhone UX pass ------------------------------------------------------ */
.hero.compact { height: 156px; }                       /* no cover photo: less poster, sooner to the facts */
.hero.compact .hero-title { font-size: 26px; }
.comment .pin-btn + .comment-del { margin-left: 4px; } /* keep pin and delete apart */
.dest-line { display: inline-flex; align-items: center; gap: 6px; align-self: center; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: var(--color-accent-2-100); color: var(--color-accent-2-800); font-size: 13px; font-weight: 600; }
.dest-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-status { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--ink-55); color: var(--color-bg); line-height: 1.3; }
.pick-tile.failed .pick-status { background: var(--color-accent-700); }
.upload-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--color-neutral-700); min-height: 24px; flex-wrap: wrap; }
.upload-line b { color: var(--color-text); font-weight: 600; }
.draft-status { font-size: 12px; line-height: 1.4; }
.plan-card .plan-actions { display: flex; gap: 8px; flex: 0 1 auto; min-width: 0; max-width: 100%; flex-wrap: wrap; justify-content: flex-start; }
.plan-card .plan-main .kicker { overflow-wrap: anywhere; }
.plan-facts { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; }
.plan-facts .card { gap: 10px; }
.member-row.tap { border-radius: var(--radius-md); }
.center-note .btn { margin-top: 12px; }
.empty-action { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 20px 10px; text-align: center; font-size: 14px; color: var(--color-neutral-700); }
.tile-status { position: absolute; left: 6px; bottom: 6px; }

/* ---- comment likes ------------------------------------------------------- */
.comment-likes { display: inline-flex; align-items: center; gap: 2px; flex: none; margin: -10px 0 -10px -4px; }
.comment-like { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--color-neutral-600); transition: color .15s, transform .15s; }
.comment-like:hover { background: var(--hover); }
.comment-like.on { color: var(--color-accent-600); }
.comment-like.on svg { fill: currentColor; animation: pop .3s ease both; }
.comment-likes .likers { padding: 0 4px; min-height: 44px; border-radius: 999px; --overlap: -5px; }
.comment-likes .likers:hover { background: var(--hover); }
.comment .comment-likes + .comment-del, .comment .comment-likes + .pin-btn { margin-left: 2px; }

/* ---- profile photos ------------------------------------------------------ */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.crop-area { position: relative; width: 220px; height: 220px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: var(--color-neutral-300); touch-action: none; cursor: grab; }
.crop-area img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop-area:active { cursor: grabbing; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--color-accent-2-700) inset; pointer-events: none; }
.zoom-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--color-neutral-700); }
.zoom-row input[type=range] { flex: 1; min-height: 44px; accent-color: var(--color-action); }
.progress { height: 6px; border-radius: 999px; background: var(--color-neutral-300); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--color-action); transition: width .2s; }
.edit-profile-photo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.edit-profile-photo .row.wrap { flex-wrap: wrap; justify-content: center; }

/* ---- album states -------------------------------------------------------- */
.locked-note { font-size: 14px; line-height: 1.45; color: var(--color-neutral-800); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 12px 20px 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-surface); }

/* ---- activity quotes: two lines at most, text itself untouched ----------- */
.act-quote { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-neutral-800); font-style: italic; }

/* ---- notification banner: text full width, actions underneath ---------- */
.invite-card { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }
.invite-heading { font-family: var(--font-heading); font-size: 17px; line-height: 1.2; }
.invite-text { line-height: 1.4; display: flex; flex-direction: column; gap: 3px; }
.invite-actions { display: flex; gap: 8px; align-items: center; }

/* ---- touch targets: switches and dock labels ----------------------------- */
.switch::before { content: ''; position: absolute; inset: -8px -6px; }          /* 60×44 hit region around a 48×28 switch */
.switch-row { padding: 6px 0; min-height: 44px; }
.switch-row + .switch-row { margin-top: 2px; }                                   /* hit regions never overlap the next row */
.tab-label { font-size: 12px; }
.tab { width: 62px; }
.tab.fab { width: 60px; }
@media (max-width: 360px) { .tab { width: 56px; } .tab-label { font-size: 11px; } }

/* ---- feed plan card extras ----------------------------------------------- */
.plan-card .plan-all { align-self: flex-start; height: 36px; padding: 0 8px; font-size: 13px; margin: -4px 0 -6px; }
.plan-card.compact { flex-direction: column; align-items: stretch; gap: 10px; }
.plan-card.compact .plan-main { width: 100%; }

/* ---- people are tappable ------------------------------------------------- */
.name-link { display: inline; font: inherit; font-weight: 600; color: inherit; padding: 6px 0; margin: -6px 0; text-align: left; border-radius: 6px; }
.name-link:hover { text-decoration: underline; }
.name-link.b { font-weight: 600; }
.post-name .name-link { font-size: 15px; }
.avatar[role="button"] { cursor: pointer; }
.avatar-open { border-radius: 50% 50% 50% 24%; flex: none; }
.avatar-open:active .avatar { transform: scale(.97); }
