:root {
  --bg: #0b1014;
  --bg-2: #11161b;
  --card: rgba(22, 30, 38, 0.48);
  --card-2: rgba(27, 36, 44, 0.55);
  --line: rgba(255, 255, 255, 0.1);
  --glass: blur(18px) saturate(1.15);
  --teal: #2dd4bf;
  --teal-2: #1ecdb3;
  --teal-dim: #143936;
  --gold: #e8b84a;
  --red: #ef5b5b;
  --green: #3ecf7a;
  --text: #f3f6f7;
  --muted: #8b959c;
  --phone-w: 390px;
  --phone-h: 844px;
  --tab: 72px;
  --radius: 18px;
  font-family: "SF Pro Display", "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%; color: var(--text);
  background:
    radial-gradient(120% 80% at 10% -10%, #1a4d4a 0%, transparent 46%),
    radial-gradient(90% 70% at 110% 10%, #3a2a12 0%, transparent 42%),
    linear-gradient(165deg, #071018 0%, #0d1a22 42%, #10241f 100%);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 12px;
}
.phone {
  width: min(var(--phone-w), 100%);
  height: min(var(--phone-h), calc(100vh - 24px));
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(45, 212, 191, 0.28) 0%, transparent 50%),
    radial-gradient(90% 55% at 100% 8%, rgba(232, 184, 74, 0.16) 0%, transparent 46%),
    radial-gradient(80% 50% at 80% 100%, rgba(45, 120, 180, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #0a141c 0%, #0c1c1a 48%, #081018 100%);
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 40% at 20% 30%, rgba(45, 212, 191, 0.12), transparent 70%),
    radial-gradient(ellipse 70% 35% at 90% 70%, rgba(90, 140, 220, 0.1), transparent 70%);
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 10px;
  background: rgba(8, 14, 18, 0.28);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.icon-hit {
  width: 36px; height: 36px;
  border: 0; background: transparent; color: var(--teal);
  display: grid; place-items: center; padding: 0;
}
.icon-hit svg, .avatar svg { width: 22px; height: 22px; }
.act svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 2px; }
.send svg { width: 18px; height: 18px; }
.brand { flex: 1; min-width: 0; }
.brand .name { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.brand .name span { color: var(--teal); }
.brand .sub { color: var(--muted); font-size: 12px; margin-top: 1px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; margin-right: 6px; }

.main {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow: auto;
  padding: 6px 16px calc(var(--tab) + 18px);
  -webkit-overflow-scrolling: touch;
}

h1 { margin: 8px 0 4px; font-size: 32px; letter-spacing: -0.045em; font-weight: 800; }
.h-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.muted { color: var(--muted); font-size: 13px; }
.tiny { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 22px rgba(0,0,0,0.12);
}
.card.active { border-color: rgba(45, 212, 191, 0.35); box-shadow: inset 0 0 0 1px #1d4a46; }
.card.overdue {
  background: rgba(74, 21, 24, 0.58);
  border-color: rgba(239, 91, 91, 0.7);
  animation: pulse-red 1.5s ease-in-out infinite;
}
.card.overdue .tiny { color: #ffb4b4; }
.card.overdue strong { color: #fff; }
.card.overdue .muted { color: #f0c0c0; }
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 91, 91, 0.15); }
  50% { box-shadow: 0 0 22px 4px rgba(239, 91, 91, 0.75); }
}
.card.current {
  background:
    radial-gradient(130% 90% at 8% 0%, #8cffc2 0%, transparent 52%),
    radial-gradient(90% 80% at 100% 110%, #0b7a3e 0%, transparent 48%),
    linear-gradient(145deg, #4ae68a 0%, #27c46a 46%, #14964a 100%);
  border-color: #6ef0a3;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -10px 18px rgba(8, 80, 40, 0.18),
    0 8px 18px rgba(16, 120, 64, 0.22);
}
.card.soon-yellow {
  background: rgba(58, 46, 18, 0.55);
  border-color: rgba(245, 197, 66, 0.6);
}
.card.soon-yellow .tiny { color: #f5d98a; }
.card.soon-yellow strong { color: #fff; }
.card.soon-yellow .muted { color: #e8d9a8; }
.card.current .tiny { color: #064e2c; }
.card.current strong { color: #032816; }
.card.current .muted { color: #0b5a32; }

.v-check {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin: 0 0 8px !important;
  padding: 10px 12px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(94, 240, 176, 0.22) 0%, transparent 50%),
    radial-gradient(90% 70% at 100% 100%, rgba(20, 90, 70, 0.28) 0%, transparent 52%),
    linear-gradient(160deg, rgba(18, 48, 42, 0.78) 0%, rgba(12, 28, 26, 0.72) 100%);
}
.v-check.soon-yellow {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 220, 110, 0.28) 0%, transparent 50%),
    radial-gradient(90% 70% at 100% 110%, rgba(90, 55, 10, 0.35) 0%, transparent 48%),
    linear-gradient(160deg, #4a3a16 0%, #2a220f 100%);
}
.v-check.overdue {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 130, 130, 0.28) 0%, transparent 50%),
    radial-gradient(90% 70% at 100% 110%, rgba(90, 12, 16, 0.4) 0%, transparent 48%),
    linear-gradient(160deg, #5a1c20 0%, #2a1012 100%);
}
.v-check .tiny {
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.v-check .muted {
  font-size: 12px;
  line-height: 1.2;
}
.v-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.v-check-row strong {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  line-height: 1.15;
}
.v-check-row .btn {
  width: auto;
  flex: 0 0 auto;
  min-height: 29px;
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 12px;
  white-space: nowrap;
}

.row { display: flex; gap: 12px; align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.row h3 { margin: 0; font-size: 16px; font-weight: 700; }
.row p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--teal-dim); color: var(--teal);
  display: grid; place-items: center; flex: 0 0 auto;
}
.ico svg { width: 20px; height: 20px; }
.up-card .ico { width: 28px; height: 28px; border-radius: 9px; }
.up-card .ico svg { width: 22px; height: 22px; }
.ico.gold { background: #3a2f14; color: var(--gold); }
.ico.red { background: #3a1717; color: var(--red); }

.badge {
  font-size: 12px; font-weight: 700;
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.badge.ok { color: var(--green); }
.badge.warn { color: #f5c542; }
.badge.danger { color: var(--red); }
.badge.soon { color: #f5c542; }
.badge.live { color: var(--teal); background: var(--teal-dim); }

.actions { display: flex; gap: 6px; margin-top: 10px; }
.act {
  flex: 1; border: 1px solid var(--line);
  background: rgba(18, 24, 29, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--teal); border-radius: 12px; padding: 8px 6px;
  font-size: 12px; font-weight: 700;
}
.act.gold { color: var(--gold); }
.act.red { color: var(--red); }

.btn {
  width: 100%; border: 0; border-radius: 16px;
  padding: 14px 16px; font-weight: 800; font-size: 16px;
}
.btn svg { width: 16px; height: 16px; vertical-align: -3px; }
.btn.teal { background: var(--teal); color: #06221e; }
.btn.wof-done {
  background: #163a28;
  color: #7ddea4;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 1;
}
.btn.wof-done svg { width: 20px; height: 20px; }
.btn.gold { background: #2a2412; color: var(--gold); }
.btn.red { background: #2a1414; color: var(--red); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }

.tabs {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  height: 62px;
  background: rgba(10, 16, 20, 0.55);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--line);
  border-radius: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 6px 4px 8px;
  overflow: hidden;
  z-index: 6;
}
.tabs button {
  border: 0; background: transparent; color: #6d777e;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 9px; font-weight: 700;
  min-width: 0;
}
.tabs button svg { width: 18px; height: 18px; }
.tabs button.on { color: var(--teal); }

.timeline { position: relative; padding-left: 52px; }
.hour {
  height: 52px; border-top: 1px solid #1c262e;
  color: #5d686f; font-size: 11px;
}
.hour::before {
  content: attr(data-h);
  position: absolute; left: 0; width: 44px; text-align: right;
  transform: translateY(-6px);
}
.now-line {
  position: absolute; left: 48px; right: 0; height: 2px;
  background: var(--teal); z-index: 2;
}
.now-line span {
  position: absolute; left: 0; top: -8px;
  background: var(--teal); color: #06221e;
  font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 8px;
}
.t-event {
  position: absolute; left: 56px; right: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 10px 12px; z-index: 1;
}
.t-event.live { border-color: #2a5d58; }

.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.bubble { max-width: 86%; padding: 10px 12px; border-radius: 16px; font-size: 14px; }
.bubble.me { align-self: flex-end; background: #2a333b; }
.bubble.agent { align-self: flex-start; background: var(--card); border: 1px solid var(--line); }
.agent-row { display: flex; gap: 8px; align-self: stretch; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-dim); color: var(--teal);
  display: grid; place-items: center; flex: 0 0 auto;
}
.confirm { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.confirm .k { color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.composer {
  display: flex; gap: 8px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 6px 6px 12px;
  margin-top: 8px;
}
.composer input { flex: 1; border: 0; outline: 0; background: transparent; }
.send {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--teal); color: #06221e; font-size: 16px;
}

.hero {
  border-radius: 18px; overflow: hidden; margin: 0 -16px 14px;
  position: relative; min-height: 126px;
  background: #0a0d10 center/cover no-repeat;
}
.hero .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, #0b1014 92%);
}
.hero .meta { position: absolute; left: 16px; bottom: 14px; }
.hero h1 { margin: 0; }

.kv { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; font-size: 14px; }
.kv span { color: var(--muted); }
.bar { height: 6px; background: #223038; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--teal); width: 35%; }

.confirm-back {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(0,0,0,.62);
  display: grid; place-items: center;
  padding: 24px;
}
.confirm-box {
  width: 100%;
  max-width: 320px;
  background: rgba(18, 24, 30, 0.72);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  text-align: center;
}
.confirm-box h2 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.confirm-box p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.confirm-actions .btn { min-height: 44px; }

.sheet-back {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; z-index: 8;
}
.sheet {
  width: 100%;
  background: rgba(16, 22, 28, 0.72);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-radius: 22px 22px 0 0;
  padding: 12px 16px 24px; border-top: 1px solid var(--line);
  max-height: 88%; overflow: auto;
}
.grab { width: 40px; height: 4px; background: #2c3840; border-radius: 99px; margin: 0 auto 12px; }
.opt {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  padding: 14px 4px; border: 0; background: transparent;
  border-bottom: 1px solid #1c262e; color: var(--text);
}
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.pp-chip {
  width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: #1b232b; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px;
  color: var(--text); text-align: left;
}
.pp-chip:active { border-color: var(--teal); background: var(--teal-dim); }
.pp-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.pp-when { color: var(--teal); font-size: 13px; font-weight: 800; }
.pp-custom { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.fields { display: grid; gap: 10px; }
.fields.two { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 6px; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}
.check-row input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--teal); }
.check-row span { display: grid; gap: 2px; }
.check-row strong { font-size: 14px; }
.check-row em { font-style: normal; color: var(--muted); font-size: 12px; }
input, select, textarea {
  border: 1px solid var(--line); background: #0e1318; border-radius: 12px;
  padding: 12px; color: var(--text);
}
.seg { display: flex; gap: 6px; }
.seg button, .chips button {
  flex: 1; border: 1px solid var(--line); background: transparent;
  color: var(--muted); border-radius: 12px; padding: 10px 8px; font-weight: 700;
}
.seg button.on, .chips button.on { background: var(--teal-dim); color: var(--teal); border-color: #1f5a54; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { flex: 0 0 auto; }

.photo-row { display: flex; gap: 8px; overflow: auto; padding-bottom: 4px; }
.photo-row img, .thumb {
  width: 112px; height: 78px; object-fit: cover; border-radius: 12px; background: #2a2d30; flex: 0 0 auto;
}

.phone.pet-mode .topbar {
  position: absolute; left: 0; right: 0; z-index: 4;
  background: linear-gradient(rgba(0,0,0,.45), transparent);
}
.phone.pet-mode .main { padding-top: 0; }
.phone.pet-mode .pet-hero { height: 196px; margin-top: 0; }

.pet-hero {
  margin: -6px -16px 0;
  height: 147px;
  background: #0a0d10 center/cover no-repeat;
  position: relative;
}
.cam-btn {
  position: absolute; right: 14px; bottom: 14px;
  width: 40px; height: 40px; border-radius: 12px;
  background: #12181d; color: var(--text);
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.cam-btn svg { width: 18px; height: 18px; }
.pet-hero .meta { position: absolute; left: 16px; bottom: 14px; right: 70px; }
.pet-id { margin: 12px 0 14px; }
.pet-id h1 { margin: 0 0 2px; font-size: 34px; color: #fff; }
.kind-pill {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px; background: var(--teal-dim); color: var(--teal);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700;
}
.pet-sec { padding: 12px 12px 8px; }
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.sec-head > div { display: flex; align-items: center; gap: 8px; }
.sec-head svg { width: 18px; height: 18px; color: var(--teal); }
.chev { border: 0; background: transparent; color: var(--muted); padding: 4px; }
.chev svg { width: 16px; height: 16px; }
.treat-row, .vax-row {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 0;
  border-top: 1px solid #1c262e;
}
.due-dot {
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.due-dot::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 6px; vertical-align: 1px;
}
.due-dot.ok { color: var(--green); }
.due-dot.ok::before { background: var(--green); }
.due-dot.warn { color: #f5c542; }
.due-dot.warn::before { background: #f5c542; }
.due-dot.danger { color: var(--red); }
.due-dot.danger::before { background: var(--red); }
.vax-ok {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
}
.vax-ok svg { width: 22px; height: 22px; }
.vax-ok.ok { color: #22c55e; }
.vax-ok.warn { color: var(--gold); }
.vax-ok.danger { color: var(--red); }
.vax-meta { text-align: right; font-size: 12px; color: var(--muted); }
.vax-meta .badge { display: block; margin-top: 2px; padding: 0; }
.view-all {
  width: 100%; border: 0; background: transparent;
  color: var(--teal); font-weight: 700; text-align: left;
  padding: 10px 0 6px; display: flex; justify-content: space-between; align-items: center;
}
.view-all svg { width: 16px; height: 16px; }
.add-photo {
  display: inline-block; color: var(--teal); font-weight: 700;
  font-size: 14px; margin: 6px 0 8px;
}

.feed-tabs {
  display: flex; gap: 8px;
  background: rgba(18, 24, 29, 0.45);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 4px; margin: 4px 0 14px;
}
.feed-tabs button {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  border-radius: 11px; padding: 10px 8px; font-weight: 800; font-size: 13px;
}
.feed-tabs button.on { background: var(--teal-dim); color: var(--teal); }
.feed-tabs svg { width: 14px; height: 14px; vertical-align: -2px; }
.story-row {
  display: flex; justify-content: space-between; gap: 6px;
  padding: 4px 2px 14px;
}
.story { flex: 1; min-width: 0; text-align: center; font-size: 10px; color: var(--muted); font-weight: 700; }
.story-ring {
  width: 40px; height: 40px; border-radius: 50%;
  background: #1a2228 center/cover no-repeat;
  border: 2px solid var(--teal);
  margin: 0 auto 5px; position: relative;
}
.story-ring span {
  position: absolute; right: -3px; bottom: -2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal); color: #06221e;
  display: grid; place-items: center;
}
.story-ring svg { width: 8px; height: 8px; }

.up-head h1 {
  display: inline-block;
  border-bottom: 3px solid var(--teal);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.up-card {
  display: flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 10px;
  margin-bottom: 6px;
  min-height: 0;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 16px rgba(0,0,0,0.1);
}
.up-card.live { border-color: #2a5d58; }
.up-card.nag { border-color: #2a5d58; cursor: pointer; }
.up-card.nag .ico { color: var(--teal); }
.up-card h3 { margin: 0; font-size: 14px; line-height: 1.2; }
.up-sub { margin: 2px 0 0; color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.up-sub svg { width: 12px; height: 12px; flex: 0 0 auto; }
.up-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  object-fit: cover; flex: 0 0 auto;
}
.feed-card {
  display: flex; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 10px; margin-bottom: 10px;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.feed-thumb {
  width: 96px; height: 96px; flex: 0 0 auto;
  border-radius: 14px; background: #111 center/cover no-repeat;
  position: relative;
}
.feed-ico {
  position: absolute; left: 6px; bottom: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: #06221e;
  display: grid; place-items: center;
}
.feed-ico svg { width: 14px; height: 14px; }
.feed-copy { min-width: 0; }
.feed-copy h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.25; }
.feed-copy p { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.related {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-dim); color: var(--teal);
  border-radius: 999px; padding: 4px 8px;
  font-size: 11px; font-weight: 700;
}
.related svg { width: 12px; height: 12px; }

.t-event { display: flex; gap: 10px; align-items: stretch; overflow: hidden; }
.t-pic {
  width: 48px; flex: 0 0 48px; margin: -10px 0 -10px -12px;
  background: #111 center/cover no-repeat; position: relative;
}
.t-pic span {
  position: absolute; left: 6px; bottom: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal); color: #06221e;
  display: grid; place-items: center;
}
.t-pic svg { width: 11px; height: 11px; }
.chat-media { display: flex; gap: 10px; align-items: center; }
.chat-media .feed-thumb { width: 64px; height: 64px; }
.event-hero { height: 112px; margin: -6px -16px 12px; }

.hist {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.hist-row {
  display: flex; gap: 12px; align-items: center;
  padding: 12px;
  border-bottom: 1px solid #1c262e;
}
.hist-row:last-child { border-bottom: 0; }
.hist-row h3 { margin: 0; font-size: 15px; }
.hist-row p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.hist-ico {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto; color: #fff;
}
.hist-ico svg { width: 26px; height: 26px; }
.hist-ico.wof { background: #c4453c; }
.hist-ico.rego { background: #2f9e5f; }
.hist-ico.service { background: #3b7dd8; }
.hist-ico.other { background: #3a4550; }
.event-hero .meta { left: 16px; bottom: 14px; }
.feed-card .actions { margin-top: 8px; }
.feed-card.active { border-color: #2a5d58; }

.drawer {
  position: absolute; inset: 0; z-index: 8;
  background: rgba(0,0,0,.48);
  animation: drawerScrim 0.2s ease;
}
@keyframes drawerScrim {
  from { background: rgba(0,0,0,0); }
  to { background: rgba(0,0,0,.48); }
}
.drawer-panel {
  position: relative;
  width: min(82%, 320px);
  height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 88px;
  animation: drawerIn 0.22s ease;
}
@keyframes drawerIn {
  from { transform: translateX(-16px); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}
.drawer-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,14,18,0.55) 0%, rgba(8,18,20,0.78) 55%, rgba(6,12,16,0.88) 100%),
    url("../assets/drawer-bg.jpg") center / cover no-repeat;
}
.drawer-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 50% at 0% 0%, rgba(45,212,191,0.22), transparent 60%);
}
.drawer-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.drawer-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.drawer-brand span { color: var(--teal); }
.drawer-x {
  width: 36px; height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(8px);
}
.drawer-x:active { background: rgba(45,212,191,0.35); }
.drawer-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}
.drawer-auth {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: var(--teal);
  color: #06221e;
  font-size: 16px;
  font-weight: 800;
}
.drawer-login .drawer-ico { background: #06221e; color: var(--teal); }
.drawer-login:active { transform: scale(0.98); filter: brightness(1.08); }
.login-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #06221e;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}
.login-chip svg { width: 14px; height: 14px; }
.login-chip:active { transform: scale(0.97); }
.hidden { display: none !important; }
.inline-link { color: var(--teal); font-weight: 700; }
#auth-card .btn { margin-top: 10px; }
.plan-nag { cursor: pointer; }
.check-row.is-locked { opacity: 0.55; }
.drawer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(16, 22, 28, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  text-align: left;
  font-size: 16px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.drawer-btn:active { transform: scale(0.98); background: rgba(45,212,191,0.22); }
.drawer-btn.is-on {
  background: rgba(45,212,191,0.22);
  border-color: rgba(45,212,191,0.45);
  color: #e7fffb;
}
.drawer-ico {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #2dd4bf, #14988a);
  color: #06221e;
}
.drawer-ico svg { width: 18px; height: 18px; }
.drawer-label { flex: 1 1 auto; }
.drawer-chev { opacity: 0.45; display: grid; }
.drawer-chev svg { width: 16px; height: 16px; }
.drawer-btn.is-on .drawer-chev { opacity: 0.85; color: var(--teal); }

.toast {
  position: absolute; left: 20px; right: 20px; bottom: calc(var(--tab) + 16px);
  background: #e8fff9; color: #06221e; text-align: center;
  padding: 12px; border-radius: 14px; z-index: 12; font-weight: 700;
}

.empty { text-align: center; color: var(--muted); padding: 28px 8px; }

@media (max-width: 480px) {
  .stage { padding: 0; }
  .phone { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; border: 0; box-shadow: none; }
}
