/* ===== Brand & base ===== */
:root {
  --accent: #00965f;
  --ink: #0a3b2c;
  --bg: #f7faf8;
  --card: #fff;
  --border: #e6eee9;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
  background: linear-gradient(180deg, #f3f8f5, var(--bg));
  color: #1b1f1d;
  line-height: 1.6;
}
/* Force-hide elements that have the hidden attribute */
[hidden] { display: none !important; }
.tabbar[hidden] { display: none !important; }
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.container { width: min(1100px, 92vw); margin: 0 auto; }
.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
  font-weight: 800;
}
.badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  background: linear-gradient(135deg, #08c47b, #007a4b);
  color: #fff;
  align-items: center;
  justify-content: center;
}
.links a {
  margin-left: 14px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
}
main { padding-bottom: 96px; }
h1 {
  font-size: clamp(24px, 6vw, 44px);
  letter-spacing: -0.01em;
  margin: 10px 0;
  color: var(--ink);
}
h2 { font-size: 20px; margin: 0 0 12px; color: var(--ink); }
.muted { color: #5c6b62; }

/* ===== Cards / buttons / inputs ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.card.tight { padding: 12px; }
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.08s, filter 0.15s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-plain { background: #f3f6f5; color: #16352b; }

/* Polished Google button */
.btn-google{
  background:#fff;
  border-color:#dadce0;
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  line-height:1;
}
.btn-google:hover{ filter:brightness(.98); }
.btn-google:focus-visible{
  outline:2px solid #cdeede;
  outline-offset:2px;
}
.btn-google .g-logo{
  display:inline-flex;
  width:18px;
  height:18px;
}
.btn-google .g-text{
  font-weight:700;
}

/* active/focus states for toggled votes */
.btn.active {
  background: #eaf9f0;
  border-color: #c4e7d3;
  color: #116b45;
}
.btn:focus { outline: 2px solid #cdeede; outline-offset: 2px; }

.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px;
  font-size: 16px;
  background: #fff;
}
.input::placeholder { color: #9aa69f; }
.link { color: var(--accent); text-decoration: none; font-weight: 700; }

/* ===== Auth screen (match app feel) ===== */
.auth-wrap { padding: 28px 20px; }
.auth-hero {
  background: linear-gradient(180deg, #edf7f2, #f6fbf8);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  padding: 28px;
}
.auth-logo {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: rgba(0, 150, 95, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.auth-title {
  font-size: clamp(28px, 6vw, 36px);
  text-align: center;
  margin: 6px 0 4px;
  color: #0b2e23;
}
.auth-sub { color: #5c6b62; text-align: center; margin: 0 0 16px; }
.auth-form { max-width: 520px; margin: 18px auto 0; display: grid; gap: 12px; }
.auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.auth-or { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.auth-or:before, .auth-or:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6eee9;
}
.auth-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: #5c6b62;
}

/* ===== Layout helpers ===== */
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid.two { grid-template-columns: 1fr; } }
.center { display: flex; justify-content: center; }
.w { width: min(720px, 92vw); margin: 0 auto; }

/* ===== Feed / post / profile ===== */
.post { overflow: hidden; margin: 12px 0; }
.post header {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  position: static;
  padding: 0;
  background: transparent;
}
.post .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

/* Post image: fill the card at its own aspect ratio (no crop) */
.post .media-wrap{
  width: 100%;
  /* aspect ratio will be set from JS per-image */
  aspect-ratio: var(--ar, 16/9);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin: 8px 0 0;
  /* don’t let very tall images blow up the feed */
  max-height: 70vh;
}

.post img.media{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show the whole image in the card */
  cursor: zoom-in;       /* hint: tap to open */
}

.meta { font-size: 12px; color: #6b7a71; }

/* ===== Tab bar ===== */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(720px, 92vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 6px;
  display: flex;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.tabbar a {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}
.tabbar a.active { background: var(--accent); color: #fff; }

/* ===== Bottom sheet (centered mini window) ===== */
/* raise sheet & overlay above the lightbox (which is z-index:60) */
.sheet{ z-index: 90; }
.overlay{ z-index: 85; }

/* optional: if you want a special state while lightbox is open */
.sheet.on-lightbox{ z-index: 120; }
.overlay.on-lightbox{ z-index: 115; }
.sheet {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 110%);
  width: min(720px, 92vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: transform .28s ease;
}
.sheet.open { transform: translate(-50%, 0); }
.sheet .drag { display: none; }

/* header / body / footer */
.sheet-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.sheet-title { font-weight: 800; margin: 0; }

.sheet-body {
  padding: 12px 16px;
  overflow: auto;
}

.sheet-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px;
}
.sheet-footer .input { flex: 1; }

/* overlay behind mini window */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 30;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ===== Alerts ===== */
.alert {
  background: #fff7e6;
  border: 1px solid #ffe7b3;
  color: #5a3d00;
  padding: 10px 12px;
  border-radius: 12px;
}
.success {
  background: #eaf9f0;
  border: 1px solid #bfe8cd;
  color: #0b5d3a;
  padding: 10px 12px;
  border-radius: 12px;
}

/* ===== Leaderboard ===== */
.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.lb-title { display: flex; align-items: center; gap: 10px; }
.lb-h1 { font-size: 20px; font-weight: 800; }
.lb-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,150,95,.12);
  font-size: 20px;
}
.seg {
  background: #eef5f1;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
}
.seg-btn {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.seg-btn.active {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

/* podium section */
.podium {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3,1fr);
  margin-bottom: 10px;
}
.pod {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.pod-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
}
.pod-name { font-weight: 800; margin-top: 6px; }
.pod-sub { font-size: 12px; color: #6a7b73; }
.pod-pts { margin-top: 6px; font-weight: 800; }
.medal { font-size: 18px; margin-bottom: 6px; }

/* rows */
.lb-list { margin-top: 6px; }
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--border);
}
.rank { width: 34px; text-align: center; font-weight: 800; }
.row-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
}
.row-main { flex: 1; min-width: 0; }
.row-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-pts { font-weight: 800; }

@media (max-width: 720px) {
  .podium { grid-template-columns: 1fr 1fr 1fr; }
}

/* ==== Feed polish ==== */
.feed { display: grid; gap: 16px; }
.post-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 0; }
.post-h .who { display: flex; flex-direction: column; }
.name { font-weight: 800; }
.v-badge { display: inline-block; margin-left: 6px; color: #2e9d6d; font-size: 14px; }
.post-title { margin: 8px 12px 0; font-size: 18px; }
.post-cap { margin: 10px 12px; }
.chips { margin: 6px 12px 0; }
.chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--chip, #e3f6ec) 16%, #fff);
  border: 1px solid color-mix(in srgb, var(--chip, #7fd4ad) 36%, #e6eee9);
  color: #0b2e23; font-weight: 700; font-size: 12px;
}
.react-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px 6px;
  border-bottom: 1px solid var(--border);
}
.pill { padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.pill.up { background: #e8f7ee; color: #1d7a42; }
.pill.down { background: #ffecec; color: #b43838; }
.pill.chat { background: #eef3ff; color: #3253c7; }
.report { margin-left: auto; color: #c9382b; font-weight: 700; text-decoration: none; }
.share {
  margin-left: 6px; border: none; background: #f3f6f5;
  padding: 6px 10px; border-radius: 10px; cursor: pointer; font-weight: 700;
}
.actions { display: flex; gap: 8px; align-items: center; padding: 8px 12px 12px; }

/* === Multi-image grid preview (Facebook-like) === */
.grid-preview{
  display:grid;
  gap:6px;
  grid-template-columns:1fr 1fr;
  grid-template-rows: 1fr 1fr;
  border-radius:12px;
  overflow:hidden;
  background:#f2f3f4;
}

.grid-preview .cell{
  position:relative;
  background:#f2f3f4;
  aspect-ratio: 1 / 1;
  overflow:hidden;
  border-radius:12px;
}

.grid-preview .cell.tall{
  grid-row: 1 / span 2;
  aspect-ratio: auto;
}

.grid-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.grid-preview .more{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.35);
  color:#fff; font-weight:800; font-size:26px;
  border:0; appearance:none; cursor:pointer; z-index:1;
}

.grid-preview .more:focus-visible{
  outline:2px solid #fff; outline-offset:2px;
}

/* === Fullscreen lightbox with right sidebar === */
.lightbox{
  position:fixed; inset:0; z-index:60;
  display:flex; background:rgba(0,0,0,.85);
}
.lb-left{
  position:relative;
  flex:1; min-width:0;
  background:#000; display:flex; align-items:center; justify-content:center;
}
.lb-left img{
  max-width:100%; max-height:100%; object-fit:contain;
}
.lb-ctrl{
  position:absolute; top:0; bottom:0;
  width:18%;
  background:transparent;
  border:0; padding:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:48px; line-height:1; color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.4);
}
.lb-prev{ left:0; }
.lb-next{ right:0; }
.lb-ctrl:hover{ background:rgba(0,0,0,.12); }
.lb-ctrl:focus-visible{ outline:2px solid #16a085; outline-offset:-2px; }

.lb-right{
  width:380px; max-width:90vw;
  background:#fff; display:flex; flex-direction:column;
  border-left:1px solid var(--border);
}
.lb-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px; border-bottom:1px solid var(--border);
}
.lb-body{ padding:12px; overflow:auto; flex:1; }

/* Small helper so inline chips look nice inside the lightbox */
.lb-body .chip{ cursor:pointer; }

/* Mobile: stack the sidebar under the image */
@media (max-width: 840px){
  .lightbox{ display:block; }
  .lb-left{ height:60vh; }
  .lb-right{
    position:fixed; left:0; right:0; bottom:0;
    width:auto; max-width:none; height:40vh;
    border-left:0; border-top:1px solid var(--border);
    border-radius:16px 16px 0 0;
    box-shadow:0 -10px 24px rgba(0,0,0,.2);
    background:#fff;
  }
  .lb-ctrl{ padding:8px 10px; }
}
/* --- Lightbox right panel polish --- */
.lb-meta { display:flex; gap:10px; align-items:center; margin-bottom:8px; }
.lb-meta .avatar { width:36px; height:36px; border-radius:50%; border:1px solid var(--border); }
.lb-meta .who { font-weight:800; }
.lb-meta .when { font-size:12px; color:#6b7a71; }

.lb-caption { margin:6px 0 10px; }
.lb-tag { display:inline-block; padding:4px 10px; border-radius:999px; background:#eef5f1; border:1px solid var(--border); font-weight:700; font-size:12px; }

.lb-summaries { display:flex; gap:12px; align-items:center; margin:6px 0 10px; }
.lb-summary { font-size:12px; color:#2b3a34; }
.lb-summary a { font-weight:700; color:inherit; text-decoration:none; border-bottom:1px dotted rgba(0,0,0,.15); }
.lb-summary a:hover { opacity:.85; }

/* === Comments sheet: full-width alignment fix === */
#likeSheet {
  width: min(720px, 92vw);
  margin: 0 auto;
}

#likeSheet .sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  box-sizing: border-box;
}

/* Sticky footer for comment input */
#likeSheet .sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  gap: 10px;
  width: 100%;
  background: #fff;
  box-sizing: border-box;
}

/* Form inside footer */
#likeSheet .sheet-footer form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
}

/* Input stretches fully */
#likeSheet .sheet-footer input {
  flex: 1;
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  background: #fff;
  box-sizing: border-box;
}

/* Post button */
#likeSheet .sheet-footer button {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: filter 0.15s;
}

#likeSheet .sheet-footer button:hover {
  filter: brightness(0.95);
}

/* Hide "Profile" in the top nav – we already have it in the bottom tab bar */
.links a[href="#/profile"],
.links a[href="/app/profile.html"],
#navLinks a[href="#/profile"],
#navLinks a[href="/app/profile.html"] {
  display: none !important;
}

/* === Infinite feed sentinel === */
#feed-sentinel {
  height: 1px;
  width: 100%;
}

/* (optional) show a subtle loader when we're fetching */
#feed-sentinel.loading::after {
  content: "Loading more…";
  display: block;
  text-align: center;
  padding: 12px 0 18px;
  color: #6b7a71;
  font-weight: 600;
  font-size: 14px;
}
/* Lightbox action menu (popover) */
.lb-pop{
  position:absolute;
  right:10px; top:46px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 12px 32px rgba(0,0,0,.24);
  min-width:220px;
  z-index:120;
  display:none;
}
.lb-pop.open{ display:block; }
.lb-pop .mi{
  display:block; width:100%;
  text-align:left; padding:10px 12px;
  background:transparent; border:0; font-weight:700; cursor:pointer;
}
.lb-pop .mi.danger{ color:#b5382f; }

/* ===========================================================
   MyImara – Generic modal + form styling
   Used by society-create-post.js (and can be reused elsewhere)
   =========================================================== */

/* Full-screen dark overlay */
.imara-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

/* Main modal card */
.imara-modal {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Segoe UI", sans-serif;
}

/* Slightly wider layout variant */
.imara-modal--wide {
  max-width: 780px;
}

/* Header */
.imara-modal-header {
  padding: 14px 20px 12px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.imara-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  color: #0f172a;
}

.imara-modal-close-btn {
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #6b7280;
  padding: 4px 6px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.imara-modal-close-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

/* Body */
.imara-modal-body {
  padding: 14px 20px 10px;
}

.imara-modal-body--scroll {
  flex: 1;
  overflow-y: auto;
}

/* Footer */
.imara-modal-footer {
  padding: 10px 20px 14px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Form sections */
.imara-form-section {
  margin-bottom: 14px;
}

.imara-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.imara-label-hint {
  font-weight: 400;
  color: #6b7280;
  font-size: 11px;
}

/* Inputs / selects / textareas */
.imara-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 8px 10px;
  font-size: 13px;
  color: #111827;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.imara-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
  background: #ffffff;
}

.imara-input::placeholder {
  color: #9ca3af;
  font-size: 12px;
}

/* Caption counter */
.imara-caption-count {
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
  text-align: right;
}

/* Toggles (checkbox rows) */
.imara-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  margin-top: 4px;
}

.imara-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

/* Error text */
.imara-text-error {
  font-size: 12px;
  color: #b91c1c;
  margin: 4px 0 0;
}

/* Buttons */
.imara-btn {
  position: relative;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  background: #f9fafb;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s,
    transform 0.05s;
}

.imara-btn:hover {
  background: #f3f4f6;
}

.imara-btn:active {
  transform: translateY(1px);
}

.imara-btn--primary {
  border-color: #16a34a;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.45);
}

.imara-btn--primary:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

/* Image preview row */
.imara-image-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.imara-image-preview-item {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imara-image-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================================================
   MyImara – Society Create Post (chips + helper text)
   Used by society-create-post.js
   =========================================================== */

/* Row that holds preset / custom tag chips */
.imara-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* Generic chip */
.imara-chip {
  border: 1px solid #d1e3d8;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #f3faf6;
  color: #0b2e23;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s,
    box-shadow 0.15s, transform 0.05s;
}

.imara-chip:hover {
  background: #e6f5ed;
}

/* Selected/on state (matches accent green) */
.imara-chip--on {
  background: #16a34a;
  border-color: #15803d;
  color: #f9fafb;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

/* Custom tag chip (slightly softer) */
.imara-chip--custom {
  background: #eef3ff;
  border-color: #cdd7ff;
  color: #1f2933;
}

/* Small “x” button on custom chip */
.imara-chip-remove {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

/* Row that wraps the custom-tag input */
.imara-tag-input-row {
  margin-top: 8px;
}

/* Help text under fields */
.imara-help-text {
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
}

/* Disabled state for inputs when a preset task is selected */
.imara-input--disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Primary tag pill underneath "Primary tag" label */
.imara-primary-tag-pill {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f7ef;
  border: 1px solid #c4e7d3;
  font-size: 12px;
  font-weight: 600;
  color: #0f2f24;
}

.imara-chip--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}