/* ==========================================================================
   JUMBO Web — design system
   Brand: navy #002264 + orange #FE8600 + white (sampled from the logo).
   Buttons use deep orange #C84B05 so white text meets WCAG AA (4.7:1).
   ========================================================================== */

:root {
    --navy-950: #000f33;
    --navy-900: #00174a;
    --navy-800: #002264;
    --navy-700: #0a2f84;
    --navy-600: #1a43a8;
    --navy-200: #c9d5ee;
    --navy-100: #e5ebf7;
    --navy-50: #f3f6fc;

    --orange-500: #fe8600;
    --orange-600: #e86a00;
    --orange-700: #c84b05;
    --orange-800: #a63d03;
    --orange-100: #ffe8cc;
    --orange-50: #fff6eb;

    --ink: #0e1a33;
    --text: #2b3550;
    --muted: #5d6882;
    --line: #e2e7f1;
    --surface: #ffffff;
    --surface-soft: #f6f8fc;

    --success: #138a43;
    --success-bg: #e8f7ee;
    --danger: #c42b2b;
    --danger-bg: #fdecec;
    --warning-bg: #fff6e0;
    --info-bg: #eaf1ff;

    --font-display: "Prompt", "Anuphan", system-ui, sans-serif;
    --font-body: "Anuphan", "Prompt", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 2px rgba(0, 23, 74, .06), 0 1px 3px rgba(0, 23, 74, .08);
    --shadow: 0 8px 24px rgba(0, 23, 74, .08), 0 2px 6px rgba(0, 23, 74, .05);
    --shadow-lg: 0 24px 60px rgba(0, 23, 74, .16);
    --ring: 0 0 0 4px rgba(254, 134, 0, .28);

    --header-h: 72px;
    --container: 1180px;

    --paw-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23ffffff'%3E%3Cg transform='translate(20 22) rotate(-18 24 24)'%3E%3Cellipse cx='10' cy='14' rx='6' ry='7.5'/%3E%3Cellipse cx='24' cy='7' rx='6' ry='7.5'/%3E%3Cellipse cx='38' cy='14' rx='6' ry='7.5'/%3E%3Cpath d='M24 22c-10 0-17 10-17 17 0 6 6 7 10 6 3-1 5-2 7-2s4 1 7 2c4 1 10 0 10-6 0-7-7-17-17-17z'/%3E%3C/g%3E%3Cg transform='translate(84 84) rotate(16 20 20) scale(.75)'%3E%3Cellipse cx='10' cy='14' rx='6' ry='7.5'/%3E%3Cellipse cx='24' cy='7' rx='6' ry='7.5'/%3E%3Cellipse cx='38' cy='14' rx='6' ry='7.5'/%3E%3Cpath d='M24 22c-10 0-17 10-17 17 0 6 6 7 10 6 3-1 5-2 7-2s4 1 7 2c4 1 10 0 10-6 0-7-7-17-17-17z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--navy-700); text-decoration: none; font-weight: 500; }
a:hover { color: var(--orange-700); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.main { flex: 1; }
.text-orange { color: var(--orange-500); }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .875rem; margin: .75rem 0 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy-800); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Boot splash & loading ---------- */

.splash {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-content: center; justify-items: center; gap: 20px;
    background: radial-gradient(circle at 50% 40%, var(--navy-700), var(--navy-900) 70%);
    transition: opacity .35s ease;
}
.splash img { width: 96px; height: 96px; animation: bob 1.6s ease-in-out infinite; filter: drop-shadow(0 12px 24px rgba(0,0,0,.3)); }
.splash__bar { width: 140px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.splash__bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--orange-500); animation: slide 1.1s ease-in-out infinite; }
.splash--hide { opacity: 0; pointer-events: none; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }

.spinner {
    display: inline-block; width: 20px; height: 20px; border-radius: 50%;
    border: 2.5px solid var(--navy-100); border-top-color: var(--orange-500);
    animation: spin .8s linear infinite; vertical-align: middle;
}
.spinner--light { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.page-loading { display: grid; place-items: center; min-height: 50vh; }

#blazor-error-ui {
    display: none; position: fixed; inset: auto 16px 16px 16px; z-index: 1000;
    padding: 14px 48px 14px 18px; border-radius: var(--radius); background: var(--danger); color: #fff; box-shadow: var(--shadow-lg);
}
#blazor-error-ui a { color: #fff; text-decoration: underline; }
#blazor-error-ui .dismiss { position: absolute; right: 14px; top: 10px; background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--font-display); font-weight: 600; font-size: .975rem; line-height: 1.2;
    cursor: pointer; text-align: center; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn--lg { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--orange-700); color: #fff; box-shadow: 0 8px 20px rgba(200, 75, 5, .28); }
.btn--primary:hover:not(:disabled) { background: var(--orange-800); color: #fff; box-shadow: 0 10px 24px rgba(200, 75, 5, .36); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-900); color: #fff; }
.btn--outline { border-color: var(--navy-200); color: var(--navy-800); background: #fff; }
.btn--outline:hover { border-color: var(--navy-800); color: var(--navy-800); background: var(--navy-50); }
.btn--ghost { color: var(--navy-800); background: transparent; }
.btn--ghost:hover { background: var(--navy-50); color: var(--navy-800); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn--white { background: #fff; color: var(--orange-700); box-shadow: var(--shadow); }
.btn--white:hover { color: var(--orange-800); transform: translateY(-1px); }
.btn--danger-outline { border-color: #f3c2c2; color: var(--danger); background: #fff; }
.btn--danger-outline:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

.link-button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px; color: var(--orange-700); font-weight: 600; cursor: pointer; }
.link-button:disabled { color: var(--muted); cursor: default; }

/* ---------- Pills, chips, eyebrows ---------- */

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.pill--soon { background: var(--orange-100); color: var(--orange-800); }
.pill--navy { background: var(--navy-100); color: var(--navy-800); }
.pill--success { background: var(--success-bg); color: var(--success); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    font-family: var(--font-display); font-size: .85rem; font-weight: 500;
    background: rgba(254, 134, 0, .16); color: var(--orange-100); border: 1px solid rgba(254, 134, 0, .35);
}
.eyebrow--soft { background: var(--orange-50); color: var(--orange-700); border-color: var(--orange-100); }
.eyebrow--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }

.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 500; color: var(--ink); }
.chip__emoji { font-size: 1.4rem; line-height: 1; }
.chip--species { transition: transform .2s, box-shadow .2s, border-color .2s; }
.chip--species:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--orange-100); }
.chip--skeleton { width: 120px; height: 50px; border: 0; background: linear-gradient(90deg, var(--navy-50) 0, #fff 40%, var(--navy-50) 80%) var(--navy-50); background-size: 400px 100%; animation: shimmer 1.2s infinite linear; }

/* ---------- Header ---------- */

.header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(226, 231, 241, .8);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__badge { width: 40px; height: 40px; }
.brand__wordmark { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; }
.nav__link {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    color: var(--text); font-weight: 500; transition: background-color .2s, color .2s;
}
.nav__link .icon { color: var(--muted); }
.nav__link:hover { background: var(--navy-50); color: var(--navy-800); }
.nav__link.active { color: var(--navy-800); background: var(--navy-50); }
.nav__link.active .icon { color: var(--orange-600); }
.nav__link--button { background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.nav__mobile-only { display: none; }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy-800); cursor: pointer; align-items: center; justify-content: center; }
.nav-backdrop { display: none; }

.avatar {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700)); color: #fff;
    font-family: var(--font-display); font-weight: 600; flex-shrink: 0;
}
.avatar--xl { width: 76px; height: 76px; font-size: 2rem; box-shadow: 0 10px 24px rgba(200, 75, 5, .3); }

.user-menu { position: relative; }
.user-menu__button { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.user-menu__button:hover { border-color: var(--navy-200); }
.user-menu__name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.user-menu__backdrop { position: fixed; inset: 0; z-index: 60; }
.user-menu__panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 61; min-width: 240px; padding: 8px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.user-menu__who { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu__who > div { display: grid; min-width: 0; }
.user-menu__who strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__who span { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; }
.user-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: var(--text); cursor: pointer; font-weight: 500; text-align: left; }
.user-menu__item:hover { background: var(--navy-50); color: var(--navy-800); }

/* ---------- Hero ---------- */

.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(254, 134, 0, .30), transparent 60%),
        radial-gradient(700px 400px at 10% 90%, rgba(26, 67, 168, .55), transparent 60%),
        linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
    padding: 72px 0 120px;
}
.hero__pattern, .auth__side-pattern, .footer__pattern { position: absolute; inset: 0; background-image: var(--paw-pattern); opacity: .06; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero__title { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 700; line-height: 1.15; margin: 20px 0 18px; letter-spacing: -.01em; }
.hero__lead { font-size: 1.125rem; color: rgba(255,255,255,.82); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: rgba(255,255,255,.8); font-size: .95rem; }
.hero__points li { display: inline-flex; align-items: center; gap: 6px; }
.hero__points .icon { color: var(--orange-500); }

.hero__art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero__halo { position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,.04) 62%, transparent 70%); border: 1px solid rgba(255,255,255,.12); }
.hero__mascot { position: relative; width: min(400px, 88%); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 10, 40, .45)); animation: float 5s ease-in-out infinite; }
.float-chip {
    position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
    background: #fff; color: var(--navy-800); font-family: var(--font-display); font-weight: 600; font-size: .9rem;
    box-shadow: var(--shadow-lg); animation: float 4s ease-in-out infinite;
}
.float-chip .icon { color: var(--orange-600); }
.float-chip--1 { top: 12%; left: 0; }
.float-chip--2 { top: 46%; right: -4%; animation-delay: -1.3s; }
.float-chip--3 { bottom: 8%; left: 8%; animation-delay: -2.6s; }
.float-chip--3 .icon { color: var(--success); }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 80px; fill: #fff; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section--soft { background: var(--surface-soft); }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; margin-top: 16px; }
.section__lead { color: var(--muted); font-size: 1.075rem; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.step {
    position: relative; padding: 28px 22px 24px; border-radius: var(--radius-lg); background: #fff;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--orange-100); }
.step h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.step__num { position: absolute; top: 18px; right: 20px; font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--navy-100); }
.step__icon, .role-card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; }
.step__icon--navy, .role-card__icon--navy { background: var(--navy-100); color: var(--navy-800); }
.step__icon--orange, .role-card__icon--orange { background: var(--orange-100); color: var(--orange-700); }

.species { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.species__copy .section__title { margin-top: 16px; }
.species__list { display: flex; flex-wrap: wrap; gap: 12px; }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.role-card { padding: 28px 24px; border-radius: var(--radius-lg); background: linear-gradient(180deg, #fff, var(--navy-50)); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.role-card h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.role-card p { color: var(--muted); font-size: .95rem; margin: 0; }

.cta { padding: 0 0 88px; }
.cta__inner {
    position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
    padding: 32px 48px; border-radius: var(--radius-xl); overflow: hidden; color: #fff;
    background: radial-gradient(500px 240px at 90% 0%, rgba(255,255,255,.18), transparent 70%), linear-gradient(120deg, var(--orange-600), var(--orange-700) 60%, var(--orange-800));
    box-shadow: 0 24px 50px rgba(200, 75, 5, .3);
}
.cta__inner::after { content: ""; position: absolute; inset: 0; background-image: var(--paw-pattern); opacity: .08; pointer-events: none; }
.cta__mascot { width: 180px; margin: -24px 0 -40px; filter: drop-shadow(0 16px 24px rgba(80, 20, 0, .35)); }
.cta__copy h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.cta__copy p { margin: 0; color: rgba(255,255,255,.9); }
.cta .btn { position: relative; z-index: 1; }

/* ---------- Page heads (inner pages) ---------- */

.page-head {
    position: relative; overflow: hidden; color: #fff; padding: 48px 0 40px;
    background: radial-gradient(600px 300px at 90% 10%, rgba(254, 134, 0, .25), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900));
}
.page-head::before { content: ""; position: absolute; inset: 0; background-image: var(--paw-pattern); opacity: .06; }
.page-head__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin: 14px 0 6px; }
.page-head p { color: rgba(255,255,255,.8); margin: 0; max-width: 620px; }
.page-head__mascot { width: 160px; margin-bottom: -48px; filter: drop-shadow(0 20px 24px rgba(0, 10, 40, .4)); }
.page-head--tall { padding: 64px 0 56px; }
.page-head--tall .page-head__mascot { width: 220px; margin-bottom: -64px; }

/* ---------- Cards & account ---------- */

.card { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.card__title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 6px; }
.card__title .icon { color: var(--orange-600); }
.card--soon { display: flex; align-items: center; gap: 20px; background: linear-gradient(135deg, var(--orange-50), #fff); border-color: var(--orange-100); }
.card--soon .mascot { width: 120px; flex-shrink: 0; }
.card--plain { box-shadow: none; }

.account { padding: 40px 20px 80px; }
.account__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.profile-card__head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.profile-card__head h2 { font-size: 1.4rem; margin: 0; }
.profile-card__head .muted { margin: 0 0 8px; }
.profile-card__roles { display: flex; flex-wrap: wrap; gap: 6px; }

.info-list { display: grid; gap: 4px; margin: 0; }
.info-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.info-list dt { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.info-list dt .icon { color: var(--navy-600); }
.info-list dd { margin: 0; color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; word-break: break-all; }

.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--navy-50) 0, #fff 40%, var(--navy-50) 80%) var(--navy-50); background-size: 400px 100%; animation: shimmer 1.2s infinite linear; }
.skeleton--avatar { width: 76px; height: 76px; border-radius: 50%; margin-bottom: 16px; }
.skeleton--line { height: 16px; margin-bottom: 12px; }
.skeleton--short { width: 60%; }

/* ---------- Timeline (rescue coming soon) ---------- */

.timeline { position: relative; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--orange-500), var(--navy-200)); }
.timeline__item { position: relative; display: flex; gap: 20px; padding-bottom: 28px; }
.timeline__dot { position: relative; z-index: 1; flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--orange-500); color: var(--orange-700); box-shadow: 0 0 0 6px #fff; }
.timeline__body { padding: 16px 20px; flex: 1; border-radius: var(--radius); background: var(--surface-soft); border: 1px solid var(--line); }
.timeline__body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 4px; }
.timeline__body p { margin: 0; color: var(--muted); }
.soon-cta { max-width: 760px; margin: 24px auto 0; padding: 28px; text-align: center; border-radius: var(--radius-lg); background: var(--navy-50); }
.soon-cta p { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }

/* ---------- Empty / prose ---------- */

.empty-state { display: grid; justify-items: center; text-align: center; padding: 64px 20px 96px; }
.empty-state .mascot { width: 240px; margin-bottom: 8px; }
.empty-state__code { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .3em; color: var(--orange-600); }
.empty-state h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 8px 0; }
.empty-state p { color: var(--muted); max-width: 460px; margin-bottom: 28px; }
.prose { max-width: 820px; padding-block: 40px 80px; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field__optional { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field__link { font-size: .875rem; }
.field__error { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--danger); font-size: .875rem; }

.input-wrap { position: relative; }
.input-wrap__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-wrap .input { padding-left: 44px; }
.input-wrap__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.input-wrap__toggle:hover { background: var(--navy-50); color: var(--navy-800); }
.input-wrap:has(.input-wrap__toggle) .input { padding-right: 48px; }

.input {
    width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line);
    background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: #9aa3b8; }
.input:hover { border-color: var(--navy-200); }
.input:focus { outline: none; border-color: var(--orange-500); box-shadow: var(--ring); }
.input.invalid { border-color: var(--danger); background: #fffafa; }
.input.invalid:focus { box-shadow: 0 0 0 4px rgba(196, 43, 43, .15); }

.otp { text-align: center; font-family: "Prompt", monospace; font-size: 1.9rem; font-weight: 600; letter-spacing: .55em; padding-left: calc(16px + .55em); min-height: 64px; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .95rem; color: var(--text); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange-700); flex-shrink: 0; cursor: pointer; }

.strength { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 2px; }
.strength span { height: 5px; border-radius: 99px; background: var(--line); transition: background-color .2s; }
.strength[data-level="1"] span:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="2"] span:nth-child(-n+2) { background: var(--orange-500); }
.strength[data-level="3"] span { background: var(--success); }

.resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin-top: 20px; color: var(--muted); }

/* ---------- Alerts ---------- */

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-size: .95rem; border: 1px solid transparent; }
.alert__icon { flex-shrink: 0; margin-top: 2px; }
.alert__body { display: grid; gap: 4px; }
.alert__title { font-family: var(--font-display); font-weight: 600; }
.alert__action { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.alert--error { background: var(--danger-bg); color: #8f1f1f; border-color: #f6d0d0; }
.alert--error .alert__icon { color: var(--danger); }
.alert--success { background: var(--success-bg); color: #0f5e31; border-color: #c9ecd7; }
.alert--success .alert__icon { color: var(--success); }
.alert--info { background: var(--info-bg); color: var(--navy-800); border-color: var(--navy-100); }
.alert--warning { background: var(--warning-bg); color: #7a4a00; border-color: #ffe2a8; }

/* ---------- Auth layout ---------- */

.auth { display: grid; grid-template-columns: minmax(380px, 44%) 1fr; min-height: 100vh; }
.auth__side {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; padding: 36px 48px; color: #fff;
    background: radial-gradient(600px 400px at 80% 15%, rgba(254, 134, 0, .32), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(26, 67, 168, .55), transparent 60%), linear-gradient(165deg, var(--navy-800), var(--navy-950));
}
.auth__side > * { position: relative; }
.auth__side-content { display: grid; justify-items: center; text-align: center; }
.auth__side-content .mascot { width: min(300px, 80%); filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .35)); animation: float 5s ease-in-out infinite; }
.auth__side-content h2 { color: #fff; font-size: 1.8rem; margin: 18px 0 8px; }
.auth__side-content p { color: rgba(255,255,255,.78); max-width: 360px; }
.auth__perks { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; text-align: left; }
.auth__perks li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); }
.auth__perks .icon { color: var(--orange-500); }
.auth__side-foot { font-family: var(--font-display); font-weight: 600; margin: 0; color: #fff; }
.auth__side-foot span { color: var(--orange-500); }

.auth__main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; background: var(--surface-soft); }
.auth__mobile-brand { display: none; }
.auth__card { width: 100%; max-width: 460px; padding: 40px; border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth__title { font-size: 1.9rem; font-weight: 700; margin: 0 0 6px; }
.auth__subtitle { color: var(--muted); margin-bottom: 24px; }
.auth__subtitle--center { text-align: center; margin: 20px 0 0; }
.auth__back { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; color: var(--muted); font-size: .95rem; }

.done { display: grid; gap: 12px; text-align: center; }
.done__icon { display: inline-grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 8px; border-radius: 50%; background: var(--success-bg); color: var(--success); }
.done .auth__subtitle { margin-bottom: 12px; }

/* ---------- Footer ---------- */

.footer { position: relative; overflow: hidden; background: var(--navy-950); color: rgba(255,255,255,.72); padding-top: 64px; }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 40px; padding-bottom: 40px; }
.footer__tagline { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.15rem; margin: 18px 0 6px; }
.footer__tagline span { color: var(--orange-500); }
.footer__about { max-width: 340px; font-size: .95rem; }
.footer__col { display: grid; align-content: start; gap: 10px; }
.footer__col h2 { color: #fff; font-size: 1rem; margin-bottom: 4px; letter-spacing: .02em; }
.footer__col a { color: rgba(255,255,255,.72); font-weight: 400; }
.footer__col a:hover { color: var(--orange-500); }
.footer__mascot .mascot { width: 140px; opacity: .95; }
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; }
.footer__phase { color: var(--orange-500); font-weight: 500; }

/* ---------- Sprint 2: avatars, account, profile, network ---------- */

.avatar--img { object-fit: cover; background: var(--navy-100); }
.avatar--ring { box-shadow: 0 0 0 4px #fff, 0 14px 30px rgba(0, 23, 74, .28); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; }
.btn--icon { width: 44px; padding: 0; }
.link-button--light { color: rgba(255,255,255,.85); }
.link-button--light:hover { color: #fff; }
.link-button--sm { font-size: .85rem; }

.page-head--account { padding: 40px 0 36px; }
.account-hero { display: flex; align-items: center; gap: 28px; }
.account-hero__photo { display: grid; justify-items: center; gap: 8px; }
.account-hero__text h1 { margin: 12px 0 0; }
.account-hero__username { color: rgba(255,255,255,.72) !important; margin: 0 0 10px !important; }
.account-hero__stats { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 16px; }
.account-hero__stats a { color: rgba(255,255,255,.82); font-weight: 400; }
.account-hero__stats a:hover { color: #fff; }
.account-hero__stats strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; margin-right: 4px; }
.account__col { display: grid; gap: 24px; align-content: start; }
.account__grid > .account__col .card { margin: 0; }
.profile-card__roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }

.avatar-uploader { position: relative; width: 112px; height: 112px; }
.avatar-uploader__button {
    position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 50%; border: 3px solid #fff; background: var(--orange-700); color: #fff; cursor: pointer; box-shadow: var(--shadow);
    transition: background-color .2s, transform .15s;
}
.avatar-uploader__button:hover { background: var(--orange-800); transform: scale(1.05); }
.avatar-uploader__button:focus-within { box-shadow: var(--ring); }
.avatar-uploader__button input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.avatar-uploader__button.is-busy { cursor: progress; }
.avatar-uploader__error { display: flex; gap: 6px; max-width: 200px; margin: 0; color: #ffd6d6; font-size: .85rem; }

.input--area { min-height: 100px; resize: vertical; line-height: 1.6; }
select.input { cursor: pointer; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field__counter { color: var(--muted); font-size: .8rem; }

.choice-group { display: grid; gap: 10px; margin-top: 16px; }
.choice {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px;
    border: 1.5px solid var(--line); background: #fff; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.choice:hover:not(:disabled) { border-color: var(--navy-200); }
.choice:disabled { cursor: progress; }
.choice--selected, .choice--selected:hover:not(:disabled) { border-color: var(--orange-500); background: var(--orange-50); }
.choice__icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--navy-100); color: var(--navy-800); }
.choice--selected .choice__icon { background: var(--orange-100); color: var(--orange-700); }
.choice__text { display: grid; flex: 1; }
.choice__text strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.choice__text span { color: var(--muted); font-size: .9rem; }
.choice__check { display: grid; place-items: center; width: 24px; color: var(--orange-700); }

.profile-cover {
    position: relative; height: 190px; overflow: hidden;
    background: radial-gradient(600px 260px at 85% 0%, rgba(254, 134, 0, .35), transparent 65%), linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.profile-cover::before { content: ""; position: absolute; inset: 0; background-image: var(--paw-pattern); opacity: .07; }
.profile { padding-bottom: 80px; }
.profile-card {
    position: relative; display: flex; align-items: flex-start; gap: 28px; margin-top: -84px; padding: 28px 32px;
    border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.profile-card__avatar { flex-shrink: 0; margin-top: -60px; }
.profile-card--loading { display: grid; gap: 12px; }
.profile-card__body { flex: 1; min-width: 0; }
.profile-card__body h1 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0; }
.profile-card__username { margin: 0 0 12px; color: var(--muted); }
.profile-card__bio { max-width: 640px; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.profile-card__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-bottom: 18px; }
.profile-card__stats strong { color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; margin-right: 4px; }
.profile-card__stats .muted { display: inline-flex; align-items: center; gap: 6px; }
.profile-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.profile-private, .profile-empty { margin-top: 24px; padding: 32px; border-radius: var(--radius-lg); background: var(--surface-soft); border: 1px dashed var(--navy-200); }
.profile-private { text-align: center; }
.profile-private h2 { font-size: 1.3rem; margin: 0 0 4px; }
.profile-private__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: var(--navy-100); color: var(--navy-800); }
.profile-empty { display: flex; align-items: center; gap: 24px; border-style: solid; }
.profile-empty .mascot { width: 130px; flex-shrink: 0; }
.profile-empty h2 { font-size: 1.25rem; margin: 0 0 4px; }

.menu { position: relative; }
.menu__backdrop { position: fixed; inset: 0; z-index: 60; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 61; min-width: 210px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font-weight: 500; text-align: left; cursor: pointer; }
.menu__item:hover { background: var(--navy-50); }
.menu__item--danger { color: var(--danger); }
.menu__item--danger:hover { background: var(--danger-bg); }

.connections { max-width: 760px; padding-block: 32px 80px; }
.tabs { display: flex; width: fit-content; max-width: 100%; gap: 6px; margin-bottom: 20px; padding: 6px; border-radius: 999px; background: var(--navy-50); }
.tabs__tab { padding: 10px 20px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-family: var(--font-display); font-weight: 600; white-space: nowrap; cursor: pointer; }
.tabs__tab:hover { color: var(--navy-800); }
.tabs__tab.active { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.user-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.user-row__who { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; font-weight: 400; }
.user-row__text { display: grid; min-width: 0; }
.user-row__text strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.user-row__text .muted { font-size: .875rem; }
.skeleton--sm { width: 48px; height: 48px; margin: 0; flex-shrink: 0; }
.user-row .skeleton--line { flex: 1; margin: 0; }
.load-more { display: grid; place-items: center; margin-top: 20px; }
.empty-state--compact { padding: 32px 16px; }
.empty-state--compact .mascot { width: 170px; }
.empty-state--compact h2 { font-size: 1.4rem; margin: 8px 0; }

/* ---------- Media library & admin ---------- */

.media-page { padding-block: 32px 80px; }
.uploader { display: grid; gap: 12px; margin-bottom: 24px; }
.uploader__drop {
    position: relative; display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius-lg);
    border: 2px dashed var(--navy-200); background: var(--navy-50); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.uploader__drop:hover, .uploader__drop:focus-within { border-color: var(--orange-500); background: var(--orange-50); }
.uploader__drop.is-busy { cursor: progress; opacity: .8; }
.uploader__drop input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.uploader__icon { display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 18px; background: var(--orange-700); color: #fff; box-shadow: 0 8px 20px rgba(200, 75, 5, .28); }
.uploader__text { display: grid; gap: 2px; }
.uploader__text strong { color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; }
.uploader__text span { color: var(--muted); font-size: .9rem; }

.upload-task { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.upload-task--error { border-color: #f6d0d0; background: var(--danger-bg); }
.upload-task__icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-100); color: var(--navy-800); }
.upload-task__body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.upload-task__row { display: flex; justify-content: space-between; gap: 12px; }
.upload-task__row strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.upload-task__row .muted { flex-shrink: 0; font-size: .875rem; }
.upload-task__error { display: flex; gap: 6px; align-items: center; margin: 0; color: #8f1f1f; font-size: .9rem; }
.progress { height: 8px; border-radius: 99px; background: var(--navy-100); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange-500), var(--orange-700)); transition: width .2s; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.media-tile {
    position: relative; aspect-ratio: 1; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius);
    background: var(--navy-100); cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.media-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.media-tile img { width: 100%; height: 100%; object-fit: cover; }
.media-tile.skeleton { cursor: default; }
.media-tile__overlay {
    position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 12px;
    background: rgba(0, 23, 74, .72); color: #fff; font-size: .85rem; text-align: center;
}
.media-tile__overlay--error { background: rgba(140, 25, 25, .82); }
.media-tile__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; padding-left: 3px; }
.media-tile__badge { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .78rem; font-weight: 600; }

.viewer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.viewer__backdrop { position: absolute; inset: 0; background: rgba(0, 10, 30, .85); }
.viewer__panel { position: relative; display: grid; gap: 12px; width: min(960px, 100%); max-height: 100%; }
.viewer__close { position: absolute; top: -6px; right: -6px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--navy-800); cursor: pointer; box-shadow: var(--shadow); }
.viewer__media { display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-lg); background: #000; }
.viewer__media img, .viewer__media video { display: block; max-width: 100%; max-height: 72vh; object-fit: contain; }
.viewer__placeholder { display: grid; justify-items: center; gap: 10px; padding: 64px 24px; color: #fff; text-align: center; }
.viewer__info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; border-radius: var(--radius); background: #fff; color: var(--text); font-size: .9rem; }
.viewer__info span { display: inline-flex; align-items: center; gap: 6px; }
.viewer__info .btn { margin-left: auto; }

.admin-page { max-width: 820px; padding-block: 32px 80px; }
.admin-card .form { margin-top: 18px; }
.input-suffix { display: flex; align-items: center; gap: 10px; }
.input-suffix .input { max-width: 180px; }
.input-suffix span { color: var(--muted); font-weight: 500; }
.info-box { display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--info-bg); color: var(--navy-800); font-size: .92rem; }
.info-box .icon { flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   Rescue cases — list, form, detail
   ========================================================================== */

[hidden] { display: none !important; }

.page-head__cta { margin-top: 18px; }
.page-head--compact { padding: 32px 0 28px; }
.page-head--compact .page-head__mascot { width: 130px; margin-bottom: -36px; }

.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-family: var(--font-display); font-size: .78rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.status-pill--lg { padding: 5px 14px; font-size: .875rem; }
.status--open { background: var(--orange-500); color: #1d0e00; }
.status--progress { background: #ffd24d; color: #3d2a00; }
.status--done { background: #2fb36a; color: #fff; }
.status--closed { background: #7c879e; color: #fff; }
.status--urgent { background: var(--danger); color: #fff; }

/* list */
.rescue-page { padding-block: 28px 80px; }
.rescue-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.rescue-toolbar .tabs { margin: 0; }
.tabs--scroll { overflow-x: auto; scrollbar-width: none; }
.tabs--scroll::-webkit-scrollbar { display: none; }
.tabs__tab .icon { vertical-align: -3px; margin-right: 2px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search .input { padding-left: 44px; min-height: 46px; border-radius: 999px; }
.search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.filter-chips { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips--wrap { flex-wrap: wrap; overflow: visible; margin-bottom: 0; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: .9rem; font-weight: 500; white-space: nowrap; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.filter-chip:hover { border-color: var(--navy-200); }
.filter-chip.active { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.rescue-count { margin: -8px 0 14px; font-size: .9rem; }

.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.case-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: inherit; font-weight: 400; transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.case-card--closed .case-card__media img { filter: saturate(.55); }
.case-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--navy-50); overflow: hidden; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .case-card__media img { transform: scale(1.04); }
.case-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--navy-200); background: linear-gradient(160deg, var(--navy-50), var(--orange-50)); }
.case-card__media .status-pill { position: absolute; left: 12px; top: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.case-card__urgent { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--danger); color: #fff; font-family: var(--font-display); font-size: .78rem; font-weight: 600; animation: pulse 2s infinite; }
.case-card__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 15, 51, .7); color: #fff; font-size: .75rem; }
.case-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.case-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); font-size: .825rem; }
.case-type { display: inline-flex; align-items: center; gap: 4px; color: var(--orange-700); font-weight: 600; }
.case-card__code { margin-left: auto; font-family: var(--font-display); font-size: .75rem; letter-spacing: .02em; }
.case-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 1.08rem; }
.case-card__place { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .875rem; }
.case-card__place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-card__place strong { margin-left: auto; color: var(--navy-700); font-weight: 600; white-space: nowrap; }
.case-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .825rem; color: var(--muted); }
.case-card__who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.case-card__who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-card__stats { display: flex; gap: 10px; flex-shrink: 0; }
.case-card__stats span { display: inline-flex; align-items: center; gap: 4px; }
.case-card__stats .icon { color: var(--orange-600); }
.case-card--skeleton { pointer-events: none; }
.case-card--skeleton .case-card__body { gap: 0; }

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(196, 43, 43, .5); } 50% { box-shadow: 0 0 0 6px rgba(196, 43, 43, 0); } }

/* home: latest cases */
.latest-cases__more { display: flex; justify-content: center; margin-top: 32px; }

/* form */
.case-form-page { max-width: 820px; padding-block: 28px 80px; }
.stepper { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.stepper__item { flex: 1; }
.stepper__item button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--navy-50); color: var(--muted); font-family: var(--font-display); font-weight: 600; cursor: pointer; text-align: left; }
.stepper__item button:disabled { cursor: default; }
.stepper__num { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--navy-800); font-size: .875rem; }
.stepper__item.is-current button { background: var(--navy-800); color: #fff; }
.stepper__item.is-current .stepper__num { background: var(--orange-500); color: #1d0e00; }
.stepper__item.is-done .stepper__num { background: var(--success); color: #fff; }
.case-form { display: grid; gap: 22px; }
.case-form__step { display: grid; gap: 22px; }
.form-block { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form-block__title { padding: 0; margin-bottom: 4px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.form-block .muted { margin: -6px 0 0; font-size: .9rem; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.type-option { display: grid; justify-items: start; gap: 4px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font: inherit; font-size: .8rem; line-height: 1.4; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, transform .15s; }
.type-option:hover { border-color: var(--navy-200); transform: translateY(-2px); }
.type-option strong { color: var(--ink); font-family: var(--font-display); font-size: .95rem; }
.type-option__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 12px; background: var(--navy-100); color: var(--navy-800); }
.type-option.is-selected { border-color: var(--orange-500); background: var(--orange-50); }
.type-option.is-selected .type-option__icon { background: var(--orange-500); color: #fff; }
.severity { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.severity__option { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer; }
.severity__dots { display: flex; gap: 3px; }
.severity__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.severity__dots i.on { background: var(--orange-500); }
.severity__option--4 .severity__dots i.on, .severity__option--5 .severity__dots i.on { background: var(--danger); }
.severity__option.is-selected { border-color: var(--navy-800); background: var(--navy-50); color: var(--navy-800); font-weight: 600; }
.toggle { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__track { position: relative; flex-shrink: 0; width: 48px; height: 28px; border-radius: 99px; background: var(--navy-200); transition: background-color .2s; }
.toggle__thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.toggle input:checked + .toggle__track { background: var(--danger); }
.toggle input:checked + .toggle__track .toggle__thumb { transform: translateX(20px); }
.toggle input:focus-visible + .toggle__track { box-shadow: var(--ring); }
.toggle__text { display: grid; }
.toggle__text strong { color: var(--ink); font-family: var(--font-display); }
.toggle__text span { color: var(--muted); font-size: .875rem; }
.locate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.locate__info { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: .9rem; font-weight: 500; }
.review { padding: 18px 20px; border-radius: 16px; background: var(--surface-soft); border: 1px solid var(--line); }
.review h3 { font-size: 1.05rem; }
.review dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.review dt { color: var(--muted); }
.review dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.review dd .icon { vertical-align: -3px; color: var(--orange-600); }
.case-form__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }

/* media picker */
.picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.picker__item, .picker__add { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 14px; }
.picker__item { background: var(--navy-900); }
.picker__item img, .picker__item video { width: 100%; height: 100%; object-fit: cover; }
.picker__item--error { outline: 2px solid var(--danger); }
.picker__overlay { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 8px; background: rgba(0, 15, 51, .55); color: #fff; font-size: .78rem; text-align: center; }
.picker__overlay--error { background: rgba(120, 10, 10, .72); }
.picker__bar { width: 80%; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.picker__bar span { display: block; height: 100%; background: var(--orange-500); transition: width .2s; }
.picker__tag, .picker__cover, .picker__video { position: absolute; padding: 1px 7px; border-radius: 99px; font-size: .7rem; font-weight: 600; }
.picker__cover { left: 6px; bottom: 6px; background: var(--orange-500); color: #1d0e00; }
.picker__tag { left: 6px; top: 6px; background: rgba(0, 15, 51, .75); color: #fff; }
.picker__video { right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 2px; background: rgba(0, 15, 51, .75); color: #fff; }
.picker__actions { position: absolute; right: 4px; top: 4px; display: flex; gap: 4px; }
.picker__actions button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy-800); cursor: pointer; box-shadow: var(--shadow-sm); }
.picker__actions button:hover { background: #fff; color: var(--orange-700); }
.picker__add { display: grid; align-content: center; justify-items: center; gap: 2px; border: 2px dashed var(--navy-200); background: var(--navy-50); color: var(--navy-700); font-family: var(--font-display); font-size: .85rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s; }
.picker__add:hover { border-color: var(--orange-500); background: var(--orange-50); color: var(--orange-700); }
.picker__add small { color: var(--muted); font-weight: 400; }
.picker__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.picker__add.is-busy { opacity: .7; }

/* map */
.map-embed { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 240px; border: 0; }
.map-embed__open { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #fff; box-shadow: var(--shadow); font-size: .825rem; }

/* detail */
.case-hero { position: relative; overflow: hidden; padding: 28px 0 34px; color: #fff; background: radial-gradient(600px 300px at 90% 0%, rgba(254, 134, 0, .25), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900)); }
.case-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--paw-pattern); opacity: .06; }
.case-hero .container { position: relative; }
.case-hero--loading .skeleton { max-width: 520px; opacity: .2; }
.case-hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.case-hero__code { font-family: var(--font-display); font-size: .9rem; letter-spacing: .04em; color: var(--navy-200); }
.case-hero h1 { max-width: 860px; margin: 12px 0 10px; color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
.case-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--navy-100); font-size: .925rem; }
.case-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.severity-tag { padding: 0 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.severity-tag--4, .severity-tag--5 { background: rgba(196, 43, 43, .85); color: #fff; }
.case-hero__reporter { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: #fff; }
.case-hero__reporter:hover { color: var(--orange-100); }
.case-hero__reporter small { display: block; color: var(--navy-200); font-size: .75rem; line-height: 1.2; }
.case-hero__reporter strong { font-family: var(--font-display); }

.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-block: 28px 96px; }
.case-main { display: grid; gap: 24px; min-width: 0; }
.case-side { display: grid; gap: 16px; }
.case-side .card { padding: 22px; }

.gallery { display: grid; gap: 10px; }
.gallery__main { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--navy-950); cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__play { position: absolute; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(254, 134, 0, .92); color: #fff; box-shadow: var(--shadow-lg); }
.gallery__processing { display: flex; align-items: center; gap: 10px; color: #fff; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.gallery__thumb { position: relative; flex: 0 0 76px; height: 76px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 12px; background: var(--navy-100); cursor: pointer; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--orange-500); }
.gallery__thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .25); }

.case-section .card__title { margin-bottom: 12px; }
.case-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.case-subtitle { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 1.05rem; }
.case-subtitle .icon { color: var(--orange-600); }
.case-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.case-section__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.35rem; }
.case-section__head h2 .icon { color: var(--orange-600); }

.composer { display: grid; gap: 12px; margin-bottom: 22px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.composer__bar { display: flex; justify-content: space-between; gap: 10px; }

.case-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.case-timeline::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.case-timeline__item { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.case-timeline__dot { position: relative; z-index: 1; display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--navy-200); color: var(--navy-700); }
.case-timeline__item--status .case-timeline__dot { border-color: var(--orange-500); background: var(--orange-500); color: #fff; }
.case-timeline__item--volunteer .case-timeline__dot { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.case-timeline__item--created .case-timeline__dot { border-color: var(--orange-500); color: var(--orange-700); }
.case-timeline__body { flex: 1; min-width: 0; padding: 12px 16px; border-radius: var(--radius); background: var(--surface-soft); border: 1px solid var(--line); }
.case-timeline__body p { margin: 4px 0 0; }
.case-timeline__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .875rem; }
.case-timeline__who { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.case-timeline__delete { margin-left: auto; color: var(--muted); }
.case-timeline__media { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.case-timeline__media button { aspect-ratio: 1; overflow: hidden; padding: 0; border: 0; border-radius: 12px; background: var(--navy-900); cursor: zoom-in; }
.case-timeline__media img { width: 100%; height: 100%; object-fit: cover; }

.case-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 18px; text-align: center; }
.case-stats strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.case-stats span { color: var(--muted); font-size: .75rem; }
.case-actions__buttons { display: grid; gap: 10px; }
.btn--supported { background: var(--orange-50); color: var(--orange-700); border-color: var(--orange-100); }
.btn--supported:hover { background: var(--orange-100); color: var(--orange-800); }
.btn--supported .icon { fill: currentColor; }
.case-actions__note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--muted); font-size: .875rem; }
.case-closed { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: var(--success-bg); color: var(--success); font-weight: 500; font-size: .9rem; }
.case-contact p { margin: 0; font-size: .9rem; }
.case-manage .muted { margin: 0 0 12px; font-size: .9rem; }
.case-manage > .input { margin: 12px 0 10px; }
.status-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-option { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: .85rem; text-align: left; cursor: pointer; }
.status-option small { margin-left: auto; color: var(--muted); font-size: .7rem; }
.status-option.is-current { background: var(--navy-50); }
.status-option.is-selected { border-color: var(--orange-500); background: var(--orange-50); color: var(--orange-800); font-weight: 600; }
.case-manage__links { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.volunteer-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.volunteer { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.volunteer--accepted, .volunteer--completed { border-color: #b9e6cb; background: var(--success-bg); }
.volunteer--declined { opacity: .6; }
.volunteer__who { display: flex; align-items: center; gap: 10px; color: inherit; }
.volunteer__who span { display: grid; line-height: 1.3; }
.volunteer__who strong { color: var(--ink); }
.volunteer__who small { color: var(--muted); }
.volunteer__help { display: flex; flex-wrap: wrap; gap: 4px; }
.volunteer__note { margin: 0; font-size: .875rem; color: var(--text); }
.volunteer__actions { display: flex; gap: 8px; }

.action-bar { display: none; }
.card__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* bottom sheet / dialog */
.sheet { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 16px; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 10, 30, .6); animation: fade-in .2s; }
.sheet__panel { position: relative; display: grid; gap: 14px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); animation: rise .25s ease-out; }
.sheet__panel h2 { margin: 0; padding-right: 40px; font-size: 1.3rem; }
.sheet__panel > .muted { margin: -6px 0 0; font-size: .9rem; }
.sheet__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--navy-50); color: var(--navy-800); cursor: pointer; }
.sheet__actions { display: flex; justify-content: flex-end; gap: 10px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.share-option { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: .875rem; cursor: pointer; }
.share-option:hover { border-color: var(--navy-200); color: var(--ink); background: var(--surface-soft); }
.share-option__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-800); color: #fff; font-family: Arial, sans-serif; font-weight: 700; font-size: 1.2rem; }
.share-option--facebook .share-option__icon { background: #1877f2; font-size: 1.6rem; }
.share-option--line .share-option__icon { background: #06c755; font-size: .72rem; }
.share-option--x .share-option__icon { background: #000; }
.share-link { display: flex; gap: 8px; }
.share-link .input { min-height: 46px; font-size: .875rem; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.help-grid .choice { padding: 10px 12px; gap: 10px; }
.help-grid .choice__icon { width: 36px; height: 36px; }
.help-grid .choice__text span { font-size: .78rem; line-height: 1.35; }

.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--navy-800); cursor: pointer; }
.viewer__nav--prev { left: 10px; }
.viewer__nav--next { right: 10px; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 1000px) {
    .case-layout { grid-template-columns: 1fr; }
    .case-side { position: static; }
}

@media (max-width: 700px) {
    .rescue-toolbar { flex-direction: column; align-items: stretch; }
    .search { max-width: none; }
    .rescue-toolbar .search { flex: 0 0 auto; }
    .case-grid { grid-template-columns: 1fr; gap: 16px; }
    .stepper__label { display: none; }
    .stepper__item.is-current .stepper__label { display: inline; }
    .stepper__item { flex: 0 0 auto; }
    .stepper__item.is-current { flex: 1; }
    .severity { grid-template-columns: repeat(3, 1fr); }
    .case-form { padding: 20px; }
    .review dl { grid-template-columns: 1fr; gap: 0; }
    .review dd { margin-bottom: 8px; }
    .case-layout { padding-bottom: 120px; }
    .gallery__main { aspect-ratio: 4 / 3; border-radius: var(--radius); }
    .help-grid { grid-template-columns: 1fr; }
    .status-options { grid-template-columns: 1fr; }
    .case-stats strong { font-size: 1.15rem; }
    .sheet { place-items: end stretch; padding: 0; }
    .sheet__panel { width: 100%; max-height: 88vh; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .action-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
        border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 23, 74, .08);
    }
    .action-bar .btn { min-height: 46px; padding-inline: 12px; }
    body:has(.action-bar) .footer { padding-bottom: 90px; }
}

/* ==========================================================================
   Pet profiles
   ========================================================================== */

.pet-photo { flex-shrink: 0; border-radius: 50%; object-fit: cover; background: var(--navy-50); }
.pet-photo--empty { display: grid; place-items: center; background: linear-gradient(150deg, var(--orange-50), var(--navy-50)); line-height: 1; }
.sex { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .85rem; font-weight: 700; line-height: 1; }
.sex--male { background: #e3efff; color: #2563eb; }
.sex--female { background: #ffe4f0; color: #d9467f; }
.sex--lg { width: 32px; height: 32px; font-size: 1.15rem; }
.pet-status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-family: var(--font-display); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pet-status--good { background: var(--success-bg); color: var(--success); }
.pet-status--care { background: #fff4d6; color: #8a5a00; }
.pet-status--lost { background: var(--danger); color: #fff; }
.pet-status--muted { background: var(--navy-100); color: var(--muted); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); vertical-align: -2px; }

.pets-page { padding-block: 28px 80px; }
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pet-card { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: inherit; font-weight: 400; transition: transform .2s, box-shadow .2s; }
.pet-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.pet-card__body { display: grid; gap: 4px; flex: 1; min-width: 0; }
.pet-card__name { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.15rem; }
.pet-card__verified { color: var(--success); display: inline-flex; }
.pet-card__meta { margin: 0; color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pet-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .825rem; }
.pet-card__foot .icon { vertical-align: -2px; }
.pet-card__go { color: var(--navy-200); flex-shrink: 0; }
.pet-card--add { justify-content: center; flex-direction: column; gap: 8px; min-height: 120px; border: 2px dashed var(--navy-200); background: var(--navy-50); box-shadow: none; color: var(--navy-700); font-family: var(--font-display); }
.pet-card--add:hover { border-color: var(--orange-500); background: var(--orange-50); color: var(--orange-700); }
.pet-card__plus { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); }
.pet-card--skeleton .skeleton--avatar { width: 88px; height: 88px; margin: 0; }

/* add / edit form */
.species-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.species-option { display: grid; justify-items: center; gap: 6px; padding: 18px 10px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; font: inherit; cursor: pointer; transition: border-color .2s, background-color .2s, transform .15s; }
.species-option:hover { border-color: var(--navy-200); transform: translateY(-2px); }
.species-option__emoji { font-size: 2.4rem; line-height: 1; }
.species-option strong { color: var(--ink); font-family: var(--font-display); }
.species-option.is-selected { border-color: var(--orange-500); background: var(--orange-50); }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; background: var(--navy-50); width: fit-content; max-width: 100%; }
.segmented__option { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.segmented__option.is-selected { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.age-inputs { display: flex; flex-wrap: wrap; gap: 12px; }
.age-inputs .input { max-width: 110px; }
.more-details { border-radius: 16px; border: 1px solid var(--line); background: var(--surface-soft); }
.more-details > summary { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-family: var(--font-display); font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.more-details > summary::-webkit-details-marker { display: none; }
.more-details[open] > summary { border-bottom: 1px solid var(--line); }
.more-details > .form-block { padding: 18px; gap: 18px; }
.trait-add { display: flex; gap: 8px; margin-top: 8px; }
.trait-add .input { min-height: 44px; }
.choice-group--tight { margin-top: 4px; gap: 8px; }
.choice-group--tight .choice { padding: 10px 14px; }
.pet-form__photo { display: grid; justify-items: center; gap: 6px; }
.pet-form__photo-step .form-block { justify-items: center; text-align: center; }
.pet-form__preview-name { margin: 6px 0 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.pet-photo-picker { position: relative; width: fit-content; }
.pet-done { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 40px 24px; }
.pet-done__check { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--success); color: #fff; box-shadow: 0 0 0 10px var(--success-bg); }
.pet-done h2 { margin: 6px 0 0; }
.pet-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* profile */
.pet-cover { height: 150px; }
.pet-profile { display: grid; gap: 20px; margin-top: -90px; padding-bottom: 80px; position: relative; }
.lost-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; border-radius: var(--radius-lg); background: var(--danger); color: #fff; box-shadow: var(--shadow); }
.lost-banner > div { display: grid; flex: 1; min-width: 200px; }
.lost-banner strong { font-family: var(--font-display); font-size: 1.1rem; }
.pet-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.pet-hero__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pet-hero__title h1 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.pet-hero__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; color: var(--muted); }
.pet-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pet-hero__owners { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.pet-owner { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: .9rem; }
.pet-hero__actions { display: grid; gap: 8px; align-self: start; }
.pet-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pet-stats > div { display: grid; justify-items: center; gap: 2px; padding: 16px 8px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; }
.pet-stats__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--orange-50); color: var(--orange-700); margin-bottom: 4px; }
.pet-stats strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.pet-stats small { color: var(--muted); }
.reaction-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.reaction { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: transform .15s, border-color .2s, background-color .2s; }
.reaction:hover { transform: translateY(-2px); border-color: var(--orange-100); }
.reaction__emoji { font-size: 1.15rem; line-height: 1; }
.reaction small { padding: 0 6px; border-radius: 99px; background: var(--navy-50); color: var(--navy-800); font-weight: 600; }
.reaction.is-mine { border-color: var(--orange-500); background: var(--orange-50); color: var(--orange-800); }
.pet-tabs { margin: 4px 0 0; }
.pet-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.card__head .card__title { margin: 0; }
.trait-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.trait { padding: 4px 12px; border-radius: 999px; background: var(--orange-50); color: var(--orange-800); font-size: .875rem; font-weight: 500; }
.pet-info { display: grid; gap: 0; margin: 0; }
.pet-info > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pet-info > div:last-child { border-bottom: 0; }
.pet-info dt { color: var(--muted); }
.pet-info dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }

.activity-list { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.activity { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.activity-list--compact .activity { padding: 8px 0; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; }
.activity-list--compact .activity:last-child { border-bottom: 0; }
.activity__icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; background: var(--navy-100); color: var(--navy-800); }
.activity__icon--walk, .activity__icon--play { background: #e3f6ec; color: #138a43; }
.activity__icon--feeding { background: var(--orange-50); color: var(--orange-700); }
.activity__icon--grooming { background: #eaf1ff; color: #2563eb; }
.activity__icon--vet { background: #fdecec; color: var(--danger); }
.activity__icon--milestone { background: #ffe4f0; color: #d9467f; }
.activity__text { display: grid; flex: 1; min-width: 0; }
.activity__text strong { color: var(--ink); }
.activity__date { flex-shrink: 0; font-size: .825rem; }
.activity-day { margin: 18px 0 8px; font-size: 1rem; color: var(--muted); }
.activity-composer { display: grid; gap: 14px; margin-bottom: 20px; }
.activity-types { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.activity-types::-webkit-scrollbar { display: none; }
.activity-type { display: grid; justify-items: center; gap: 4px; flex: 0 0 auto; min-width: 76px; padding: 8px 6px; border-radius: 14px; border: 1.5px solid transparent; background: none; color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer; }
.activity-type.is-selected { border-color: var(--orange-500); background: var(--orange-50); color: var(--orange-800); font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.inline-form > .input { flex: 1 1 180px; min-height: 46px; }
.inline-form .input-suffix .input { max-width: 130px; min-height: 46px; }
.inline-form--wrap { margin-top: 0; }
.inline-form > .input[type="date"] { flex: 0 1 190px; }
.week-summary { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 6px 24px; align-items: center; margin-bottom: 20px; }
.week-summary .card__title { grid-column: 1 / -1; }
.week-summary__ring { display: grid; place-items: center; align-content: center; width: 116px; height: 116px; border-radius: 50%; background: conic-gradient(var(--orange-500) calc(var(--pct) * 1%), var(--navy-100) 0); position: relative; }
.week-summary__ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.week-summary__ring strong, .week-summary__ring small { position: relative; line-height: 1.1; }
.week-summary__ring strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
.week-summary__ring small { color: var(--muted); }
.week-summary__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.week-summary__list li { display: flex; align-items: center; gap: 10px; }
.week-summary__list strong { margin-left: auto; color: var(--ink); }
.week-summary__list .activity__icon { width: 28px; height: 28px; border-radius: 9px; }

.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.health-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--navy-700); }
.health-card > div { display: grid; }
.health-card small { color: var(--muted); }
.health-card strong { font-family: var(--font-display); color: var(--ink); }
.health-card span { color: var(--muted); font-size: .85rem; }
.health-card--good { background: var(--success-bg); border-color: #b9e6cb; color: var(--success); }
.health-card--attention, .health-card--vacc-overdue { background: var(--danger-bg); border-color: #f3c2c2; color: var(--danger); }
.health-card--vacc-due_soon { background: #fff4d6; border-color: #f5dc9a; color: #8a5a00; }
.health-section { margin-bottom: 20px; }
.weight-now { display: flex; align-items: baseline; gap: 10px; }
.weight-now strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.weight-change { font-size: .85rem; font-weight: 600; }
.weight-change.up { color: var(--orange-700); }
.weight-change.down { color: #2563eb; }
.weight-chart { display: block; width: 100%; height: auto; }
.weight-chart__grid { stroke: var(--line); stroke-dasharray: 3 4; }
.weight-chart__axis { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.weight-chart__area { fill: rgba(254, 134, 0, .12); }
.weight-chart__line { fill: none; stroke: var(--orange-600); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.weight-chart__dot { fill: #fff; stroke: var(--orange-600); stroke-width: 2; }
.weight-chart__dot.is-last { fill: var(--orange-600); }
.weight-chart__empty { margin: 8px 0; }
.record-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.record { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-soft); }
.record--tall { align-items: flex-start; }
.record__icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; background: #fff; color: var(--navy-700); }
.record__body { display: grid; flex: 1; min-width: 0; gap: 2px; }
.record__body strong { color: var(--ink); }
.record__body .muted { font-size: .85rem; }
.record__side { display: grid; justify-items: end; gap: 2px; text-align: right; }
.record__files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.record__files img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.vacc-status { padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.vacc-status--up_to_date { background: var(--success-bg); color: var(--success); }
.vacc-status--due_soon { background: #fff4d6; color: #8a5a00; }
.vacc-status--overdue { background: var(--danger-bg); color: var(--danger); }
.vacc-status--completed { background: var(--navy-100); color: var(--muted); }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.icon-button:hover { background: var(--danger-bg); color: var(--danger); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.doc { position: relative; display: grid; gap: 4px; }
.doc__thumb { display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px; background: var(--navy-50); color: var(--navy-200); border: 1px solid var(--line); }
.doc__thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc strong { font-size: .9rem; color: var(--ink); line-height: 1.3; }
.doc small { font-size: .78rem; }
.doc__delete { position: absolute; top: 6px; right: 6px; background: rgba(255, 255, 255, .9); }
.quick-dates { display: flex; gap: 10px; }
.gallery-add { margin-bottom: 20px; display: grid; gap: 12px; }

.qr-sheet { justify-items: stretch; }
.qr-card { display: grid; justify-items: center; gap: 4px; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 2px dashed var(--navy-200); text-align: center; }
.qr-card img { width: 220px; height: 220px; image-rendering: pixelated; }
.qr-card strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .06em; color: var(--navy-800); }
.qr-card span { color: var(--muted); font-size: .875rem; }

.profile-section { display: grid; gap: 14px; margin-top: 28px; }
.profile-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-section__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.3rem; }
.profile-section__head h2 .icon { color: var(--orange-600); }

@media print {
    body * { visibility: hidden; }
    .qr-card, .qr-card * { visibility: visible; }
    .qr-card { position: fixed; left: 0; top: 0; border: 0; }
}

@media (max-width: 700px) {
    .pet-grid { grid-template-columns: 1fr; }
    .pet-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .pet-hero__title, .pet-hero__meta, .pet-hero__tags, .pet-hero__owners { justify-content: center; }
    .pet-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; }
    .pet-stats { grid-template-columns: repeat(2, 1fr); }
    .pet-overview { grid-template-columns: 1fr; }
    .reaction span:not(.reaction__emoji) { display: none; }
    .reaction { padding: 8px 12px; }
    .week-summary { grid-template-columns: 1fr; justify-items: center; }
    .week-summary__list { width: 100%; }
    .inline-form > * { flex: 1 1 100%; }
    .inline-form .input-suffix .input { max-width: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
    .roles { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer__mascot { display: none; }
}

/* Narrow desktops: keep the menu on one line (icons, the account name and "ร่วมช่วยอย่างไร" — also in the footer — make way). */
.nav__link { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1180px) {
    .nav__link { padding: 8px 10px; }
    .nav > .nav__link .icon { display: none; }
    .nav > .nav__link--roomy { display: none; }
    .user-menu__name { display: none; }
    .user-menu__button { padding: 3px; }
    .user-menu__button > .icon { display: none; }
}

@media (max-width: 900px) {
    :root { --header-h: 64px; }

    /* Header: slide-down menu */
    .header__toggle { display: inline-flex; }
    .header__desktop-only { display: none; }
    .user-menu__name { display: none; }
    .user-menu__button { padding: 3px; }
    .user-menu__button > .icon { display: none; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49; margin: 0;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
        transform: translateY(-110%); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .2s ease, visibility .25s;
    }
    .nav--open { transform: none; opacity: 1; visibility: visible; }
    .nav__link { padding: 14px 12px; border-radius: 12px; font-size: 1.05rem; }
    .nav__mobile-only { display: grid; gap: 2px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
    .nav__mobile-actions { gap: 10px; padding-top: 16px; }
    .nav-backdrop { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 48; background: rgba(0, 15, 51, .4); }

    /* Hero */
    .hero { padding: 40px 0 96px; }
    .hero__grid { grid-template-columns: 1fr; text-align: center; gap: 12px; }
    .hero__copy { display: grid; justify-items: center; }
    .hero__lead { margin-inline: auto; }
    .hero__actions, .hero__points { justify-content: center; }
    .hero__title { margin-top: 16px; }
    .hero__art { min-height: 0; margin-top: 8px; }
    .hero__mascot { width: min(260px, 64vw); }
    .hero__halo { width: min(260px, 64vw); }
    .float-chip { font-size: .8rem; padding: 8px 12px; }
    .float-chip--1 { left: 2%; top: 8%; }
    .float-chip--2 { right: 0; }

    .section { padding: 64px 0; }
    .species { grid-template-columns: 1fr; text-align: center; gap: 28px; }
    .species__list { justify-content: center; }

    .cta__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 36px 24px 32px; gap: 16px; }
    .cta__mascot { width: 160px; margin: 0; }

    .account__grid { grid-template-columns: 1fr; }
    .page-head__mascot, .page-head--tall .page-head__mascot { width: 120px; margin-bottom: -36px; }

    /* Auth: form first, brand panel hidden */
    .auth { grid-template-columns: 1fr; }
    .auth__side { display: none; }
    .auth__main { justify-content: flex-start; padding: 24px 16px 40px; }
    .auth__mobile-brand { display: block; margin: 8px 0 24px; }
    .auth__card { padding: 28px 22px; border-radius: var(--radius-lg); }

    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }

    .account-hero { flex-direction: column; text-align: center; gap: 12px; }
    .account-hero__stats { justify-content: center; }
    .page-head--account .page-head__mascot { display: none; }
    .page-head--account .page-head__inner { justify-content: center; }
    .profile-card { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; }
    .profile-card__stats, .profile-card__actions { justify-content: center; }
    .profile-card__bio { margin-inline: auto; }
    .profile-empty { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
    .container { padding-inline: 16px; }
    .brand__wordmark { height: 24px; }
    .brand__badge { width: 34px; height: 34px; }
    .hero__actions .btn { width: 100%; }
    .steps { grid-template-columns: 1fr; }
    .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
    .step__icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; }
    .step h3 { margin: 0 0 2px; }
    .step__num { top: 14px; right: 16px; font-size: 1.5rem; }
    .roles { grid-template-columns: 1fr; }
    .chip { padding: 10px 16px; }
    .card { padding: 22px; }
    .card--soon { flex-direction: column; text-align: center; }
    .page-head__inner { align-items: flex-end; }
    .page-head__mascot, .page-head--tall .page-head__mascot { width: 96px; margin-bottom: -28px; }
    .auth__title { font-size: 1.6rem; }
    .otp { font-size: 1.6rem; letter-spacing: .45em; }
    .footer__grid { gap: 28px; }
    .field-grid { grid-template-columns: 1fr; }
    .profile-cover { height: 150px; }
    .user-row { padding: 10px 12px; gap: 10px; }
    .user-row .pill { display: none; }
    .tabs { width: 100%; }
    .tabs__tab { flex: 1; text-align: center; padding: 10px 12px; }
    .media-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .media-tile { border-radius: 10px; }
    .media-tile__play { width: 36px; height: 36px; }
    .uploader__drop { padding: 16px; gap: 14px; }
    .uploader__icon { width: 48px; height: 48px; }
    .viewer { padding: 8px; }
    .viewer__info .btn { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Location picker (Leaflet) & admin site settings ---------- */

.location-picker { display: grid; gap: 10px; }
.location-picker__bar { display: flex; flex-wrap: wrap; gap: 8px; }
.location-picker__search { position: relative; flex: 1 1 220px; }
.location-picker__search .input { min-height: 40px; padding-left: 40px; border-radius: 999px; }
.location-picker__search .search__icon { left: 14px; }
.location-picker__results { display: grid; gap: 2px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.location-picker__results button { display: flex; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: .875rem; text-align: left; cursor: pointer; }
.location-picker__results button:hover { background: var(--navy-50); }
.location-picker__results .icon { flex-shrink: 0; margin-top: 3px; color: var(--orange-600); }
.location-picker__map { position: relative; z-index: 0; height: 300px; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--navy-50); }
.location-picker__fallback { display: grid; place-items: center; height: 100%; margin: 0; padding: 20px; color: var(--muted); text-align: center; }
.location-picker__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 24px; }
.map-pin { background: none; border: 0; }
.map-pin span { position: absolute; left: 3px; top: 0; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--orange-600); border: 3px solid #fff; transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.map-pin span::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.leaflet-container { font-family: var(--font-body); }
.nearby-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -6px 0 18px; padding: 12px 16px; border-radius: var(--radius); background: var(--navy-50); color: var(--text); font-size: .9rem; }
.nearby-bar > .icon { color: var(--orange-600); }
.nearby-bar > span { flex: 1 1 220px; }
.nearby-bar strong { margin-left: 4px; color: var(--ink); }
.sheet__panel--wide { width: min(720px, 100%); }
.admin-page { display: grid; gap: 20px; }
.admin-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-card code { padding: 1px 6px; border-radius: 6px; background: var(--navy-50); font-size: .85em; }

@media (max-width: 700px) {
    .location-picker__map { height: 260px; }
}

/* ---------- Notifications ---------- */

.bell { position: relative; }
.bell__button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--navy-800); cursor: pointer; }
.bell__button:hover { background: var(--navy-50); }
.bell__count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-family: var(--font-display); font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.bell__backdrop { position: fixed; inset: 0; z-index: 90; }
.bell__panel { position: absolute; right: -60px; top: calc(100% + 10px); z-index: 100; display: grid; grid-template-rows: auto 1fr auto; width: min(400px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 100px)); overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.bell__head, .bell__foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.bell__head { border-bottom: 1px solid var(--line); font-family: var(--font-display); }
.bell__foot { border-top: 1px solid var(--line); font-size: .9rem; }
.bell__foot a { display: inline-flex; align-items: center; gap: 4px; }
.bell__list { overflow-y: auto; padding: 6px; }
.bell__empty { display: grid; justify-items: center; gap: 8px; padding: 36px 16px; color: var(--muted); }
.toast { position: fixed; right: 20px; top: calc(var(--header-h) + 12px); z-index: 300; width: min(380px, calc(100vw - 24px)); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: toast-in .3s ease-out; }
.toast__close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--navy-50); color: var(--muted); cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

.notif { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.notif:hover { background: var(--surface-soft); }
.notif--unread { background: var(--orange-50); }
.notif--unread:hover { background: var(--orange-100); }
.notif--compact { padding: 10px 34px 10px 10px; }
.notif__visual { position: relative; flex-shrink: 0; }
.notif__image { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.notif--compact .notif__image { width: 40px; height: 40px; }
.notif__icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-100); color: var(--navy-800); }
.notif__icon--rescue { background: #fdecec; color: var(--danger); }
.notif__icon--pet { background: var(--orange-50); color: var(--orange-700); }
.notif__icon--social { background: #eaf1ff; color: #2563eb; }
.notif__icon--reminder { background: #fff4d6; color: #8a5a00; }
.notif__icon--security { background: var(--success-bg); color: var(--success); }
.notif__icon--system { background: #f1e8ff; color: #7c3aed; }
.notif__badge { position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: var(--navy-800); color: #fff; }
.notif__badge--rescue { background: var(--danger); }
.notif__badge--pet { background: var(--orange-600); }
.notif__badge--social { background: #2563eb; }
.notif__badge--reminder { background: #d99a00; }
.notif__badge--security { background: var(--success); }
.notif__badge--system { background: #7c3aed; }
.notif__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.notif__text strong { color: var(--ink); font-weight: 600; line-height: 1.4; }
.notif__body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); font-size: .9rem; }
.notif__text small { color: var(--muted); font-size: .78rem; }
.notif__dot { position: absolute; right: 12px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: #2563eb; }

.inbox-page { max-width: 820px; padding-block: 28px 80px; }
.inbox-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.inbox-toolbar .tabs { margin: 0; }
.inbox-toolbar__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.inbox-toolbar__actions .is-active { border-color: var(--orange-500); color: var(--orange-700); }
.tabs__count { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .72rem; line-height: 18px; }
.inbox-permission { align-items: center; margin-bottom: 16px; }
.inbox-permission span { flex: 1; }
.inbox-section { margin: 18px 0 8px; font-size: .95rem; color: var(--muted); }
.inbox-list { display: grid; gap: 4px; padding: 6px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.inbox-row { position: relative; }
.inbox-row .notif { padding-right: 70px; }
.inbox-row__delete { position: absolute; right: 30px; top: 12px; opacity: 0; transition: opacity .15s; }
.inbox-row:hover .inbox-row__delete, .inbox-row__delete:focus-visible { opacity: 1; }
.inbox-clear { display: grid; justify-items: center; gap: 4px; margin-top: 24px; }

.settings-page { max-width: 760px; display: grid; gap: 18px; padding-block: 28px 80px; }
.settings-card { display: grid; gap: 4px; }
.settings-card .card__title { margin-bottom: 8px; }
.settings-card[aria-disabled="true"] { opacity: .6; }
.settings-card__inline { justify-self: start; margin: 0 0 6px 58px; }
.toggle--plain { border: 0; border-radius: 12px; padding: 10px 6px; gap: 14px; }
.toggle--plain:hover { background: var(--surface-soft); }
.toggle--plain .toggle__text { flex: 1; }
.toggle--plain.is-locked { cursor: default; }
.toggle input:checked + .toggle__track--on { background: var(--orange-600); }
.toggle input:disabled + .toggle__track { opacity: .55; }
.quiet-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.quiet-hours label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.quiet-hours .input { width: 130px; min-height: 42px; }

.reminder-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.reminder { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon body when" "icon actions actions"; align-items: center; gap: 6px 14px; padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.reminder > img, .reminder > .notif__icon { grid-area: icon; align-self: start; }
.reminder__pet { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.reminder__body { grid-area: body; display: grid; min-width: 0; }
.reminder__body strong { color: var(--ink); }
.reminder__body .muted { font-size: .85rem; }
.reminder__when { grid-area: when; display: grid; justify-items: end; gap: 2px; text-align: right; }
.reminder__when strong { font-family: var(--font-display); color: var(--navy-800); }
.reminder__actions { grid-area: actions; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.reminder--overdue { border-color: #f3c2c2; background: #fffafa; }
.reminder--completed, .reminder--dismissed { opacity: .75; }

@media (max-width: 700px) {
    .bell__panel { position: fixed; right: 12px; left: 12px; top: calc(var(--header-h) + 6px); width: auto; }
    .toast { right: 12px; left: 12px; width: auto; }
    .inbox-row__delete { opacity: 1; }
    .reminder { grid-template-areas: "icon body" "icon when" "actions actions"; grid-template-columns: auto 1fr; }
    .reminder__when { justify-items: start; text-align: left; }
}

/* ---------- Reporting ---------- */

.btn--danger { background: var(--danger); color: #fff; box-shadow: 0 8px 20px rgba(196, 43, 43, .22); }
.btn--danger:hover:not(:disabled) { background: #a51f1f; color: #fff; }
.btn--muted { color: var(--muted); background: transparent; }
.btn--muted:hover { color: var(--danger); background: var(--danger-bg); }
.report-done { display: grid; justify-items: center; gap: 10px; padding: 12px 0 4px; text-align: center; }
.report-done h2 { padding: 0 !important; }
.small { font-size: .85rem; }
.d-block { display: block; }
.nowrap { white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Home banners ---------- */

.home-banners { padding: 28px 0 0; }
.home-banners__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.home-banners__track::-webkit-scrollbar { display: none; }
.home-banners__track:has(> :nth-child(2)) { grid-auto-columns: min(88%, 900px); }
.home-banner { position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 1; min-height: 140px; padding: 22px 26px; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-800) center / cover no-repeat; color: #fff; scroll-snap-align: start; text-decoration: none; box-shadow: var(--shadow); }
.home-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 15, 51, .72), rgba(0, 15, 51, .1) 70%); }
.home-banner--plain { background: linear-gradient(120deg, var(--navy-800), var(--orange-700)); }
.home-banner__text { position: relative; display: grid; gap: 4px; max-width: 560px; }
.home-banner__text strong { font-family: var(--font-display); font-size: clamp(1.15rem, 2.6vw, 1.7rem); line-height: 1.3; }
.home-banner__text span { opacity: .9; }
.home-banner:hover { color: #fff; }

/* ---------- Admin console ---------- */

.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: var(--surface-soft); }
.admin-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 18px; height: 100vh; padding: 20px 14px; background: var(--navy-900); color: #fff; overflow-y: auto; }
.admin-side__brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: #fff; text-decoration: none; }
.admin-side__brand span { display: grid; line-height: 1.2; }
.admin-side__brand strong { font-family: var(--font-display); letter-spacing: .08em; }
.admin-side__brand small { color: rgba(255,255,255,.65); font-size: .78rem; }
.admin-side__brand:hover { color: #fff; }
.admin-side__back { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 12px; border-radius: 12px; color: rgba(255,255,255,.75); font-size: .9rem; text-decoration: none; }
.admin-side__back:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav { display: grid; gap: 2px; }
.admin-nav__group { margin: 14px 12px 6px; color: rgba(255,255,255,.45); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.admin-nav__link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: rgba(255,255,255,.82); font-weight: 500; text-decoration: none; }
.admin-nav__link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav__link.active { background: var(--orange-700); color: #fff; }
.admin-nav__badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--orange-500); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; }
.admin-nav__link.active .admin-nav__badge { background: #fff; color: var(--orange-700); }
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-top__menu { display: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--navy-800); cursor: pointer; }
.admin-top__title { font-family: var(--font-display); font-weight: 600; color: var(--navy-800); }
.admin-top__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.admin-content { display: grid; align-content: start; gap: 18px; width: 100%; max-width: 1200px; padding: 28px 24px 80px; }
.admin-content .admin-page { max-width: 820px; padding: 0; display: grid; gap: 18px; }
.admin-shell__backdrop { display: none; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-head h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.admin-head p { margin: 4px 0 0; }
.admin-back { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--muted); font-weight: 500; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-toolbar .tabs { margin: 0; overflow-x: auto; }
.admin-toolbar__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.admin-search { position: relative; display: flex; align-items: center; flex: 1; min-width: 220px; max-width: 420px; }
.admin-search > .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.admin-search .input { padding-left: 36px; width: 100%; }
.input--sm { min-height: 40px; padding: 8px 12px; font-size: .9rem; width: auto; }

.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-stat { display: grid; gap: 6px; padding: 18px; }
.admin-stat__top { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.admin-stat__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--orange-50); color: var(--orange-700); }
.admin-stat__value { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); line-height: 1.1; }
.admin-stat__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .82rem; }
.admin-stat__bottom .sparkline { color: var(--orange-600); flex-shrink: 0; }
.admin-stat__change { font-style: normal; font-weight: 700; }
.admin-stat__change.is-up { color: var(--success); }
.admin-stat__change.is-down { color: var(--danger); }

.admin-queue { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.admin-queue__item { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .88rem; text-decoration: none; }
.admin-queue__item strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy-800); }
.admin-queue__item:hover { border-color: var(--navy-200); color: var(--muted); }
.admin-queue__item.is-hot { border-color: var(--orange-500); background: var(--orange-50); }
.admin-queue__item.is-hot strong { color: var(--orange-700); }

.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-panel { display: grid; align-content: start; gap: 12px; padding: 20px; }
.admin-panel--wide { grid-column: 1 / -1; }
.admin-panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.admin-panel__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.05rem; }
.admin-donut { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; color: var(--ink); }
.admin-legend { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.admin-legend li { display: flex; align-items: center; gap: 8px; }
.admin-legend strong { margin-left: auto; padding-left: 12px; }
.admin-legend__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.admin-health { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.admin-health__item { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-soft); }
.admin-health__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); }
.admin-health__item--warn .admin-health__dot { background: #eab308; }
.admin-health__item--error .admin-health__dot { background: var(--danger); }
.admin-health__name { font-weight: 600; color: var(--ink); }
.admin-health__detail { color: var(--muted); font-size: .85rem; text-align: right; overflow-wrap: anywhere; }
.admin-feed { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.admin-feed li { display: flex; align-items: flex-start; gap: 12px; }
.admin-feed li > .admin-legend__dot { margin-top: 7px; }
.admin-feed p { margin: 0; overflow-wrap: anywhere; }
.admin-feed .is-expired { opacity: .55; }

.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th { padding: 12px 14px; background: var(--surface-soft); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: left; white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr:hover { background: #fbfcfe; }
.admin-table__entity { display: flex; align-items: center; gap: 12px; min-width: 240px; color: inherit; text-decoration: none; }
.admin-table__entity > div { display: grid; min-width: 0; }
.admin-table__entity img { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.admin-table__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 150px; }
.admin-table--audit td { vertical-align: top; }
.audit-action { padding: 2px 6px; border-radius: 6px; background: var(--navy-50); color: var(--navy-800); font-size: .8rem; }
.audit-diff summary { color: var(--orange-700); font-size: .82rem; cursor: pointer; }
.audit-diff pre { max-width: 460px; max-height: 240px; margin: 6px 0 0; padding: 8px 10px; overflow: auto; border-radius: 8px; background: var(--surface-soft); font-size: .78rem; }
.report-count { display: inline-flex; align-items: center; gap: 4px; color: var(--danger); font-weight: 700; }

.report-list { display: grid; gap: 12px; }
.report-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 18px; }
.report-item__entity { display: flex; gap: 14px; min-width: 0; }
.report-item__entity img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.report-item__entity h3 { margin: 2px 0; font-size: 1rem; overflow-wrap: anywhere; }
.report-item__entity .eyebrow { padding: 2px 8px; font-size: .72rem; }
.report-item__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--navy-50); color: var(--navy-800); flex-shrink: 0; }
.report-item__icon--sm { width: 32px; height: 32px; border-radius: 8px; }
.report-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.report-item__body p { margin: 0 0 6px; }
.report-reason { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--danger-bg); color: var(--danger); font-weight: 600; font-size: .85rem; }
.report-item__more { margin-left: 6px; color: var(--orange-700); font-size: .82rem; font-weight: 600; }
.report-item__quote { margin: 0 0 8px; padding: 8px 12px; border-left: 3px solid var(--line); color: var(--text); font-size: .92rem; }
.report-item__actions { display: grid; gap: 6px; justify-items: stretch; }

.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-action { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.mod-action:hover { border-color: var(--navy-200); }
.mod-action.is-selected { border-color: var(--navy-800); background: var(--navy-50); color: var(--navy-800); }
.mod-action__dot { width: 10px; height: 10px; border-radius: 50%; }

.admin-user { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: start; }
.admin-user__info h1 { margin: 0; font-size: 1.5rem; }
.admin-user__info > p { margin: 2px 0 8px; overflow-wrap: anywhere; }
.admin-user__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-user__reason { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); font-size: .9rem; }
.admin-user__stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 16px 0 0; }
.admin-user__stats div { display: grid; }
.admin-user__stats dt { color: var(--muted); font-size: .8rem; }
.admin-user__stats dd { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.admin-user__actions { display: grid; gap: 8px; }
.admin-roles { display: flex; flex-wrap: wrap; gap: 20px; }
.role-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.role-badge { padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: var(--navy-100); color: var(--navy-800); }
.role-badge--admin { background: var(--navy-800); color: #fff; }
.role-badge--moderator { background: var(--orange-100); color: var(--orange-800); }
.strike-dots { display: inline-flex; gap: 3px; margin-top: 6px; }
.strike-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }

.banner-admin-list { display: grid; gap: 12px; }
.banner-admin { display: grid; grid-template-columns: 210px 1fr auto; gap: 18px; align-items: center; padding: 14px; }
.banner-admin__image { display: grid; place-items: center; aspect-ratio: 3 / 1; border-radius: 12px; background: var(--navy-50) center / cover no-repeat; color: var(--navy-200); }
.banner-admin__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.banner-admin__title h3 { margin: 0; font-size: 1.05rem; }
.banner-admin__body p { margin: 4px 0 0; }
.banner-admin__actions { display: flex; gap: 4px; }
.banner-upload { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; aspect-ratio: 3 / 1; padding: 12px; border-radius: 14px; border: 1.5px dashed var(--navy-200); background: var(--navy-50) center / cover no-repeat; }
.banner-upload__button { position: relative; overflow: hidden; cursor: pointer; }
.banner-upload__button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.banner-upload__remove { background: #fff; }
.check--field { align-self: end; padding-bottom: 10px; }

@media (max-width: 1100px) {
    .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-queue { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .report-item { grid-template-columns: 1fr; }
    .report-item__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: fixed; inset: 0 auto 0 0; z-index: 120; width: 260px; transform: translateX(-100%); transition: transform .2s ease-out; }
    .admin-shell--nav-open .admin-side { transform: none; }
    .admin-shell--nav-open .admin-shell__backdrop { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(0, 10, 30, .5); }
    .admin-top { padding: 0 12px; }
    .admin-top__menu { display: grid; }
    .admin-content { padding: 20px 16px 64px; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-user { grid-template-columns: 1fr; justify-items: start; }
    .admin-user__actions { display: flex; flex-wrap: wrap; }
    .banner-admin { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .admin-stats { gap: 10px; }
    .admin-stat__value { font-size: 1.5rem; }
    .admin-stat__bottom .sparkline { display: none; }
    .admin-queue { grid-template-columns: 1fr 1fr; }
    .home-banner { aspect-ratio: auto; min-height: 150px; padding: 18px; }
}

/* ---------- Case comments ---------- */

.case-comments { scroll-margin-top: calc(var(--header-h) + 16px); }
.case-comments h2 { display: flex; align-items: center; gap: 8px; }
.comment-count { padding: 1px 10px; border-radius: 99px; background: var(--navy-100); color: var(--navy-800); font-size: .85rem; font-weight: 700; }
.comment-composer { display: grid; gap: 8px; margin-bottom: 18px; }
.comment-composer .input--area { min-height: 64px; }
.comment-composer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.comment-composer__bar .field__counter { margin-right: auto; }
.comment-composer--reply { margin: 4px 0 0; }
.comment-signin { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 18px; padding: 14px; border-radius: var(--radius); border: 1.5px dashed var(--navy-200); color: var(--navy-800); font-weight: 600; text-decoration: none; }
.comment-signin:hover { background: var(--navy-50); color: var(--navy-800); }
.comment-loading { display: grid; place-items: center; padding: 24px; }
.comment-empty { padding: 8px 0 4px; }
.comment-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.comment-list--replies { gap: 10px; margin: 10px 0 0 50px; }
.comment { display: flex; align-items: flex-start; gap: 10px; scroll-margin-top: calc(var(--header-h) + 24px); }
.comment:target .comment__bubble { box-shadow: 0 0 0 3px var(--orange-100); }
.comment__avatar { flex-shrink: 0; }
.comment__main { flex: 1; min-width: 0; }
.comment__bubble { display: grid; gap: 4px; width: fit-content; max-width: 100%; padding: 10px 14px; border-radius: 4px 18px 18px 18px; background: var(--surface-soft); border: 1px solid var(--line); }
.comment__bubble:has(textarea) { width: 100%; }
.comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .92rem; }
.comment__head a { color: var(--ink); text-decoration: none; }
.comment__head a:hover { text-decoration: underline; }
.comment__badge { padding: 0 8px; border-radius: 99px; background: var(--success-bg); color: var(--success); font-size: .72rem; font-weight: 700; }
.comment__badge--reporter { background: var(--orange-100); color: var(--orange-800); }
.comment__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 4px 0 0 6px; color: var(--muted); font-size: .8rem; }
.comment__action { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.comment__action:hover { color: var(--orange-700); }
.comment__action--report:hover { color: var(--danger); }
.comment--hidden .comment__bubble { opacity: .6; border-style: dashed; }
.comment__notice { display: flex; align-items: center; gap: 6px; margin: 4px 0 0 6px; color: var(--danger); font-size: .8rem; }

@media (max-width: 600px) {
    .comment-list--replies { margin-left: 26px; }
}

/* ---------- Pet colours (several per pet) ---------- */

.filter-chip:disabled { opacity: .45; cursor: not-allowed; }
.filter-chip__order { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--orange-500); color: #fff; font-size: .72rem; font-weight: 700; }
.pet-colors { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pet-colors__item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

/* ---------- Kindness level ---------- */

.level-badge { display: inline-block; flex-shrink: 0; vertical-align: middle; line-height: 0; }
.level-badge svg { width: 100%; height: 100%; overflow: visible; }
.comment__head .level-badge, .case-hero__reporter .level-badge { margin-left: 2px; }

.profile-level { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 12px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--orange-50); border: 1px solid var(--orange-100); color: var(--ink); text-decoration: none; }
.profile-level span { display: grid; line-height: 1.3; text-align: left; }
.profile-level small { color: var(--muted); font-size: .8rem; }
.profile-level:hover { border-color: var(--orange-500); color: var(--ink); }

.kindness-page { display: grid; gap: 20px; padding-block: 28px 80px; }
.kindness-me { display: flex; align-items: center; gap: 28px; position: relative; overflow: hidden; background: linear-gradient(120deg, #fff 55%, color-mix(in srgb, var(--tier, var(--orange-500)) 14%, #fff)); }
.kindness-me--loading { justify-content: center; min-height: 180px; }
.kindness-me__badge { filter: drop-shadow(0 8px 18px rgba(0, 23, 74, .18)); }
.kindness-me__body { display: grid; gap: 6px; flex: 1; min-width: 0; }
.kindness-me__level { width: fit-content; padding: 2px 12px; border-radius: 99px; background: var(--tier, var(--orange-500)); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .85rem; }
.kindness-me__body h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.kindness-me__points { margin: 0; }
.kindness-me__points strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }
.kindness-me__week { margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--success-bg); color: var(--success); font-size: .8rem; font-weight: 700; }
.kindness-me__progress { height: 12px; max-width: 520px; }
.kindness-me__progress span { background: linear-gradient(90deg, var(--orange-500), var(--tier, var(--orange-700))); }
.kindness-me__max { margin: 0; font-weight: 600; color: var(--navy-800); }
.kindness-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.kindness-cta > div { flex: 1; min-width: 220px; }
.kindness-cta h2 { margin: 0 0 4px; }

.kindness-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.kindness-rules__group { margin: 16px 0 6px; font-size: .95rem; color: var(--navy-800); }
.kindness-rules, .kindness-history { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.kindness-rules li, .kindness-history li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kindness-rules strong, .kindness-history strong { font-family: var(--font-display); color: var(--success); white-space: nowrap; }
.kindness-rules strong.is-minus, .kindness-history strong.is-minus { color: var(--danger); }
.kindness-history__label { display: grid; }
.kindness-periods { margin-bottom: 12px; }

.leaderboard { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.leaderboard__row { display: grid; grid-template-columns: 32px 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; }
.leaderboard__row:nth-child(odd) { background: var(--surface-soft); }
.leaderboard__rank { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-100); color: var(--navy-800); font-weight: 700; font-size: .85rem; }
.leaderboard__row.is-top1 .leaderboard__rank { background: linear-gradient(135deg, #fff3b0, #f5c242); color: #6b4e00; }
.leaderboard__row.is-top2 .leaderboard__rank { background: linear-gradient(135deg, #f7f9fb, #b8c1cc); color: #3d4652; }
.leaderboard__row.is-top3 .leaderboard__rank { background: linear-gradient(135deg, #f5cfa8, #cd7f32); color: #4f2a08; }
.leaderboard__who { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.leaderboard__who span { display: grid; min-width: 0; }
.leaderboard__who strong, .leaderboard__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard__who small { color: var(--muted); font-size: .78rem; }
.leaderboard__points { font-family: var(--font-display); font-weight: 700; color: var(--navy-800); }

.kindness-tiers__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin-top: 12px; }
.kindness-tiers__grid.is-all { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.kindness-tier { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; text-align: center; border: 1.5px solid transparent; }
.kindness-tier strong { font-size: .9rem; color: var(--ink); }
.kindness-tier small { font-size: .74rem; line-height: 1.3; }
.kindness-tier.is-current { border-color: var(--orange-500); background: var(--orange-50); }
.kindness-tier.is-locked .level-badge { filter: grayscale(.85) opacity(.55); }

/* ---------- Stray / community pets ---------- */

.stray-block { border-top: 1px dashed var(--line); padding-top: 18px; }
.stray-block__toggle { margin-top: 14px; }
.pet-last-edit { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; }
.pet-location p { margin: 0 0 10px; }

@media (max-width: 800px) {
    .kindness-grid { grid-template-columns: 1fr; }
    .kindness-me { flex-direction: column; text-align: center; }
    .kindness-me__body { justify-items: center; }
    .kindness-me__level { margin: 0 auto; }
}

/* ---------- Community feed ---------- */

.community { max-width: 720px; padding-block: 24px 80px; }
.community-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.community__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.community__bar .tabs { margin: 0; }
.community__kinds { margin: 0; }
.feed { display: grid; gap: 18px; }

.feed-card { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.feed-card--hot { border-color: var(--orange-100); box-shadow: 0 0 0 3px var(--orange-50), var(--shadow-sm); }
.feed-card--skeleton { min-height: 340px; }
.feed-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feed-card__who { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.feed-card__who > span { display: grid; min-width: 0; }
.feed-card__who strong { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.feed-card__who small { color: var(--muted); font-size: .82rem; }
.feed-card__hot { flex-shrink: 0; padding: 3px 10px; border-radius: 99px; background: linear-gradient(90deg, var(--orange-500), #ef4444); color: #fff; font-family: var(--font-display); font-size: .78rem; font-weight: 700; white-space: nowrap; }

.feed-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; margin-inline: -16px; overflow: hidden; background: var(--navy-50); color: #fff; }
.feed-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.feed-card__media:hover img { transform: scale(1.03); }
.feed-card__media--empty { aspect-ratio: 16 / 6; background: linear-gradient(135deg, var(--navy-50), var(--orange-50)); }
.feed-card__placeholder { font-size: 3rem; }
.feed-card__tags { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.feed-card__tags .status-pill, .feed-card__tags .pet-status { box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.feed-card__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: rgba(0, 15, 51, .6); color: #fff; font-size: .78rem; }

.feed-card__body { display: grid; gap: 4px; }
.feed-card__kind { display: inline-flex; align-items: center; gap: 5px; color: var(--orange-700); font-size: .85rem; font-weight: 600; }
.feed-card__body h3 { margin: 0; font-size: 1.15rem; line-height: 1.4; }
.feed-card__body h3 a { color: var(--ink); text-decoration: none; }
.feed-card__body h3 a:hover { color: var(--orange-700); }
.feed-card__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--text); white-space: pre-line; }
.feed-card__place { display: flex; align-items: center; gap: 4px; margin: 0; color: var(--muted); font-size: .85rem; }

.feed-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.feed-card__stats { display: flex; gap: 16px; color: var(--muted); font-size: .9rem; }
.feed-card__stats > * { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
.feed-card__stats a:hover { color: var(--orange-700); }
.feed-card__comment { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface-soft); color: var(--text); font-size: .9rem; text-decoration: none; }
.feed-card__comment > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card__comment strong { color: var(--ink); margin-right: 4px; }
.feed-card__comment:hover { background: var(--navy-50); color: var(--text); }

@media (max-width: 600px) {
    .feed-card { border-radius: var(--radius); padding: 14px; }
    .feed-card__media { margin-inline: -14px; }
    .feed-card__foot .btn { display: none; }
}

/* ---------- Community: three columns, sidebars ---------- */

.community-layout { display: grid; grid-template-columns: 250px minmax(0, 680px) 290px; justify-content: center; gap: 24px; align-items: start; padding-block: 24px 80px; }
.community-layout .community { max-width: none; padding: 0; }
.community-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
.side-card { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.side-card h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 1rem; }
.side-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-card .hint { margin: 0; font-size: .78rem; }

.side-me__who { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.side-me__who span { display: grid; min-width: 0; }
.side-me__who strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-me__who small { color: var(--muted); font-size: .8rem; }
.side-me__level { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--tier, var(--orange-500)) 10%, #fff); color: inherit; text-decoration: none; }
.side-me__level > span { display: grid; gap: 3px; flex: 1; min-width: 0; }
.side-me__level strong { color: var(--ink); font-size: .9rem; }
.side-me__level small { font-size: .76rem; }
.side-me__level .progress { height: 6px; }

.side-pets, .side-list, .side-leaders { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.side-pets a, .side-list a { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; color: inherit; text-decoration: none; }
.side-pets a:hover, .side-list a:hover { background: var(--surface-soft); }
.side-pets span, .side-list a > span:last-child { display: grid; min-width: 0; }
.side-pets strong, .side-list strong { color: var(--ink); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-pets small, .side-list small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list__thumb { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--navy-50); }
.side-list__thumb img { width: 100%; height: 100%; object-fit: cover; }

.side-join { justify-items: center; text-align: center; }
.side-join .mascot { width: 110px; }
.side-join p { margin: 0; }
.side-links { gap: 2px; padding: 8px; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--text); font-weight: 500; text-decoration: none; }
.side-links a:hover { background: var(--orange-50); color: var(--orange-800); }

.side-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-stats > * { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: var(--surface-soft); color: inherit; text-decoration: none; }
.side-stats strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-800); }
.side-stats small { color: var(--muted); font-size: .74rem; line-height: 1.3; }
.side-stats a:hover { background: var(--orange-50); }
.side-leaders li { display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 8px; }
.side-leaders__rank { color: var(--muted); font-weight: 700; font-size: .85rem; text-align: center; }
.side-leaders a { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); font-size: .88rem; text-decoration: none; }
.side-leaders a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-leaders small { color: var(--success); font-weight: 700; }
.side-foot { margin: 0; padding: 0 6px; }

/* ---------- Acting as a pet; who-did-it lists ---------- */

.pet-act { display: block; }
.pet-act__button { gap: 8px; }
.pet-act__faces { display: inline-flex; }
.pet-act__faces > * + * { margin-left: -8px; }
.pet-act__faces .pet-photo, .pet-act__faces .avatar { box-shadow: 0 0 0 2px #fff; }
.pet-act__count { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--orange-500); color: #fff; font-size: .75rem; font-weight: 700; }
.pet-act__panel { min-width: 240px; }
.pet-act__hint { margin: 2px 6px 6px; color: var(--muted); font-size: .8rem; }
.pet-act__item { gap: 10px; }
.pet-act__item span:nth-child(2) { flex: 1; }
.pet-act__item.is-on { background: var(--orange-50); color: var(--orange-800); font-weight: 600; }
.pet-act__check { display: grid; place-items: center; width: 22px; color: var(--orange-700); }
.case-actions__buttons .pet-act { width: 100%; }
.case-actions__buttons .pet-act__button { width: 100%; justify-content: center; }

.case-stats__link, .pet-stats__link { display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-radius: 12px; }
.case-stats__link:hover, .pet-stats__link:hover { background: var(--orange-50); }
.case-stats__pets, .pet-stats__pets { color: var(--orange-700); font-size: .72em; font-weight: 700; }
.pet-hero__following { padding: 0; margin: 2px 0 6px; }

.actor-sheet { gap: 12px; }
.actor-sheet__tabs { margin: 0; }
.actor-sheet__count { margin-left: 4px; padding: 0 7px; border-radius: 99px; background: var(--navy-100); font-size: .75rem; }
.actor-list { display: grid; gap: 2px; max-height: 60vh; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.actor-list__row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.actor-list__row:hover { background: var(--surface-soft); }
.actor-list__who { display: grid; flex: 1; min-width: 0; }
.actor-list__who strong { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.actor-list__who small { color: var(--muted); font-size: .8rem; }

.comment-as { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.comment-as__label { color: var(--muted); font-size: .82rem; }
.comment-as__option { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.comment-as__option:first-of-type { padding-left: 10px; }
.comment-as__option.is-selected { border-color: var(--orange-500); background: var(--orange-50); color: var(--orange-800); font-weight: 600; }
.comment__by { color: var(--muted) !important; font-size: .8rem; }

@media (max-width: 1180px) {
    .community-layout { grid-template-columns: minmax(0, 680px) 280px; }
    .community-side--left { display: none; }
}

@media (max-width: 900px) {
    .community-layout { grid-template-columns: minmax(0, 1fr); }
    .community-side--right { position: static; max-height: none; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

.container.community-layout { max-width: calc(250px + 680px + 290px + 48px + 2 * 24px); }

/* ---------- Community posts ---------- */

.post-composer { margin-bottom: 16px; gap: 10px; }
.post-composer__text { min-height: 0; resize: vertical; }
.post-composer.is-open .post-composer__text { min-height: 110px; }
.post-composer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.post-composer__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.post-composer__tools .btn.is-on { background: var(--orange-50); color: var(--orange-800); }
.post-composer__place { display: grid; gap: 8px; }

.post-card__by { color: var(--muted) !important; font-size: .8rem; font-weight: 400; }
.post-card .feed-card__who a { color: inherit; text-decoration: none; }
.post-card__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); line-height: 1.65; }
.post-card__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { justify-self: start; padding: 0; }
.post-card--hidden { opacity: .75; border-style: dashed; }

.post-card__grid { display: grid; gap: 3px; margin-inline: -16px; overflow: hidden; background: var(--navy-50); }
.post-card__grid--1 { grid-template-columns: 1fr; }
.post-card__grid--2 { grid-template-columns: 1fr 1fr; }
.post-card__grid--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-card__grid--3 .post-card__tile:first-child { grid-row: span 2; }
.post-card__grid--4 { grid-template-columns: 1fr 1fr; }
.post-card__tile { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: var(--navy-50); }
.post-card__grid--1 .post-card__tile { aspect-ratio: auto; max-height: 560px; }
.post-card__grid--3 .post-card__tile:first-child { aspect-ratio: auto; }
.post-card__tile img { width: 100%; height: 100%; object-fit: cover; }
.post-card__grid--1 .post-card__tile img { height: auto; max-height: 560px; object-fit: contain; }
.post-card__plus { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 15, 51, .55); color: #fff; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.post-card__media-full { display: grid; gap: 8px; margin-inline: -16px; }
.post-card__media-full img, .post-card__media-full video { width: 100%; max-height: 80vh; object-fit: contain; background: #000; }

.post-card__foot { flex-wrap: wrap; }
.post-card__actions { display: flex; align-items: center; gap: 6px; }
.post-card__paw { font-weight: 700; }
.post-card__count { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; }
.post-card__count:hover:not(:disabled) { background: var(--orange-50); color: var(--orange-800); }
.post-card__count:disabled { cursor: default; }
.post-card__count small { color: var(--orange-700); font-weight: 700; }

.post-page { max-width: 720px; display: grid; gap: 16px; padding-block: 24px 80px; }
.profile-posts .post-composer { margin-bottom: 14px; }

@media (max-width: 600px) {
    .post-card__grid, .post-card__media-full { margin-inline: -14px; }
    .post-card__foot .feed-card__stats { width: 100%; justify-content: flex-end; }
}

/* ---------- About JUMBO ---------- */

.about-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
.about-intro__copy .section__title { margin: 12px 0 16px; }
.about-intro__copy p { line-height: 1.8; }
.about-note { display: flex; gap: 12px; margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); background: var(--orange-50); border: 1px solid var(--orange-100); }
.about-note > span { font-size: 1.5rem; line-height: 1.2; }
.about-note p { margin: 0; color: var(--ink); }
.about-stats { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; padding: 22px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; box-shadow: var(--shadow); }
.about-stats h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-size: 1.05rem; }
.about-stats h3 .icon { color: var(--orange-500); }
.about-stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-stat { display: grid; gap: 2px; padding: 14px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); }
.about-stat strong { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.1; color: #fff; }
.about-stat span { color: rgba(255, 255, 255, .75); font-size: .85rem; }
.about-stat--orange strong { color: var(--orange-500); }
.about-stat--green strong { color: #6ee7a8; }
.about-stats .muted { color: rgba(255, 255, 255, .6); margin: 0; }
.about-stats a { color: #fff; }

.about-problems { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.about-problem { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px 18px 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.about-problem__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-800); color: #fff; font-family: var(--font-display); font-weight: 700; }
.about-problem h3 { margin: 0; font-size: 1.02rem; }
.about-problem p { margin: 0; color: var(--muted); font-size: .9rem; }
.about-problem .about-problem__fix { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--success); font-weight: 600; }
.about-problem__fix .icon { flex-shrink: 0; margin-top: 3px; }

.about-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.about-feature { display: grid; align-content: start; gap: 10px; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.about-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.about-feature__emoji { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--orange-50); font-size: 1.7rem; }
.about-feature h3 { margin: 0; font-size: 1.12rem; }
.about-feature ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: var(--text); font-size: .92rem; }
.about-feature li::marker { color: var(--orange-600); }
.about-feature__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--orange-700); font-weight: 700; text-decoration: none; }
.about-feature__link:hover { text-decoration: underline; }

.about-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.about-value { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.about-value__emoji { font-size: 1.8rem; line-height: 1.2; }
.about-value h3 { margin: 0 0 4px; font-size: 1.02rem; }
.about-value h3 small { display: block; color: var(--orange-700); font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.about-value p { margin: 0; color: var(--muted); font-size: .9rem; }
.about-not { max-width: 760px; margin: 32px auto 0; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--navy-900); color: rgba(255, 255, 255, .85); text-align: center; }
.about-not h3 { color: #fff; margin: 0 0 12px; }
.about-not ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .9rem; }
.about-not p { margin: 0; }
.about-not strong { color: var(--orange-500); }

.about-roadmap .timeline__dot { font-family: var(--font-display); font-weight: 700; }
.about-roadmap__now .timeline__dot { background: var(--orange-500); color: #fff; }
.about-roadmap__now .timeline__body { background: var(--orange-50); border-color: var(--orange-100); }

@media (max-width: 1080px) {
    .about-problems { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .about-features, .about-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .about-intro { grid-template-columns: 1fr; gap: 24px; }
    .about-stats { position: static; }
}
@media (max-width: 600px) {
    .about-problems, .about-features, .about-values { grid-template-columns: 1fr; }
    .about-head .page-head__mascot { display: none; }
}

/* ---------- Feedback ---------- */

.feedback-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding-block: 28px 80px; }
.feedback-page__main { display: grid; gap: 24px; min-width: 0; }
.feedback-page__side { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.feedback-form { display: grid; gap: 22px; }
.feedback-form__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.feedback-form__group legend { margin-bottom: 10px; font-weight: 600; color: var(--ink); }
.feedback-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.feedback-cat { display: grid; justify-items: center; gap: 2px; padding: 14px 8px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; color: var(--text); font: inherit; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.feedback-cat:hover { border-color: var(--navy-200); }
.feedback-cat.is-selected { border-color: var(--orange-500); background: var(--orange-50); }
.feedback-cat__emoji { font-size: 1.7rem; line-height: 1.2; }
.feedback-cat strong { color: var(--ink); font-size: .95rem; }
.feedback-cat small { color: var(--muted); font-size: .75rem; line-height: 1.3; }
.feedback-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.feedback-rating__paw { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--navy-50); font-size: 1.35rem; cursor: pointer; filter: grayscale(1); opacity: .45; transition: transform .12s, opacity .12s, filter .12s; }
.feedback-rating__paw:hover { transform: scale(1.1); opacity: .8; }
.feedback-rating__paw.is-on { filter: none; opacity: 1; background: var(--orange-50); }
.feedback-rating__label { margin-left: 8px; color: var(--muted); font-size: .9rem; }
.feedback-form__page { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .88rem; }
.feedback-form__page code { padding: 2px 8px; border-radius: 6px; background: var(--navy-50); color: var(--navy-800); overflow-wrap: anywhere; }
.feedback-form__attach { justify-self: start; }
.feedback-form__submit { display: flex; justify-content: flex-end; }
.feedback-thanks { display: flex; align-items: center; gap: 24px; background: linear-gradient(135deg, var(--orange-50), #fff); border-color: var(--orange-100); }
.feedback-thanks .mascot { flex-shrink: 0; width: 150px; }
.feedback-thanks h2 { margin: 0 0 6px; }
.feedback-thanks__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.feedback-tips { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: var(--text); font-size: .88rem; }
.feedback-urgent { border-color: var(--orange-100); background: var(--orange-50); }
.feedback-urgent .btn { justify-self: start; }

.feedback-mine { display: grid; gap: 12px; }
.feedback-mine h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.25rem; }
.feedback-mine h2 .icon { color: var(--orange-600); }
.feedback-item { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.feedback-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feedback-item__cat { font-weight: 700; color: var(--ink); }
.feedback-item__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.feedback-item__media { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-item__media img { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.feedback-item__reply { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--navy-50); }
.feedback-item__reply img { flex-shrink: 0; border-radius: 50%; }
.feedback-item__reply p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.feedback-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feedback-summary__bars { gap: 4px; }
.feedback-bar { display: grid; grid-template-columns: 22px 1fr 28px; align-items: center; gap: 6px; font-size: .85rem; }
.feedback-bar small { color: var(--muted); text-align: right; }
.feedback-bar__track { height: 8px; border-radius: 99px; background: var(--navy-50); overflow: hidden; }
.feedback-bar__track span { display: block; height: 100%; border-radius: inherit; background: var(--orange-500); }
.feedback-summary__cats { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.feedback-summary__cats li { display: flex; justify-content: space-between; gap: 8px; }
.admin-feedback { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 18px; }
.admin-feedback__main { display: grid; gap: 8px; min-width: 0; }
.admin-feedback__meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.admin-feedback__ua { margin: 0; }
.admin-feedback__note { display: flex; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--warning-bg); color: var(--ink); }
.admin-feedback__edit { display: grid; gap: 12px; width: min(420px, 100%); }
.admin-feedback__buttons { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 1000px) {
    .feedback-page { grid-template-columns: 1fr; }
    .feedback-page__side { position: static; }
    .feedback-summary { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .feedback-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .feedback-thanks { flex-direction: column; text-align: center; }
    .feedback-thanks__actions { justify-content: center; }
    .admin-feedback { grid-template-columns: 1fr; }
    .admin-feedback__edit { width: 100%; }
}
@media (max-width: 420px) {
    .feedback-cats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .feedback-cat { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 0 8px; padding: 10px 12px; text-align: left; }
    .feedback-cat__emoji { font-size: 1.4rem; }
    .feedback-cat small { display: none; }
    .feedback-summary { grid-template-columns: 1fr; }
}

/* ---------- Friends & quick actions on feed cards ---------- */

.btn--friend { background: linear-gradient(135deg, #fff4d6, #ffe3ec); color: #9a3d00; border: 1px solid #ffd27a; }
.btn--friend:hover:not(:disabled) { background: linear-gradient(135deg, #ffecc0, #ffd6e4); color: #7a2f00; }
.btn--follow-back { animation: follow-back-glow 2.2s ease-in-out infinite; }
@keyframes follow-back-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(254, 134, 0, .35); } 50% { box-shadow: 0 0 0 6px rgba(254, 134, 0, 0); } }
.pill--friend { background: linear-gradient(135deg, #fff4d6, #ffe3ec); color: #9a3d00; border: 1px solid #ffd27a; font-weight: 600; }
.profile-card__username .pill { margin-left: 8px; vertical-align: middle; }

.feed-card__stats--line { flex-wrap: wrap; gap: 14px; }
.feed-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.feed-card__action { flex: 1 1 auto; justify-content: center; }
.feed-card__actions .pet-act { flex: 0 0 auto; }
.feed-card__action.is-popped, .post-card__paw.is-popped { animation: card-pop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes card-pop { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
.share-sheet__preview { margin: -4px 0 14px; font-size: .9rem; }

/* "เป็นเพื่อนกันแล้ว!" celebration */
.friend-party { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(0, 15, 51, .45); backdrop-filter: blur(3px); animation: party-fade .25s ease-out; cursor: pointer; }
.friend-party__confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.friend-party__confetti span { position: absolute; bottom: -40px; left: var(--x); font-size: calc(1.6rem * var(--s)); opacity: 0; animation: party-float var(--d) ease-out var(--delay) forwards; }
.friend-party__card { position: relative; display: grid; justify-items: center; gap: 6px; width: min(380px, 100%); padding: 28px 24px 22px; border-radius: 28px; background: radial-gradient(260px 160px at 50% 0%, #fff1d6, transparent 70%), #fff; box-shadow: 0 30px 80px rgba(0, 15, 51, .35); text-align: center; cursor: default; animation: party-card .55s cubic-bezier(.2, 1.5, .4, 1); }
.friend-party__faces { position: relative; display: flex; align-items: center; justify-content: center; height: 100px; margin-bottom: 6px; }
.friend-party__face { display: grid; place-items: center; border-radius: 50%; padding: 4px; background: #fff; box-shadow: 0 8px 20px rgba(0, 15, 51, .18); }
.friend-party__face .avatar, .friend-party__face .pet-photo { border-radius: 50%; }
.friend-party__face--left { animation: face-left .9s cubic-bezier(.3, 1.4, .5, 1) both; }
.friend-party__face--right { animation: face-right .9s cubic-bezier(.3, 1.4, .5, 1) both; }
.friend-party__heart { position: relative; z-index: 1; margin: 0 -14px; font-size: 2.4rem; filter: drop-shadow(0 4px 8px rgba(254, 134, 0, .45)); animation: heart-pop .7s cubic-bezier(.3, 1.8, .5, 1) .55s both, heart-beat 1.1s ease-in-out 1.3s infinite; }
.friend-party__card h2 { margin: 4px 0 0; font-size: 1.5rem; color: var(--ink); }
.friend-party__card p { margin: 0; color: var(--muted); }
.friend-party__actions { display: flex; gap: 8px; margin-top: 12px; }

@keyframes party-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes party-card { from { opacity: 0; transform: translateY(24px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes face-left { from { opacity: 0; transform: translateX(-70px) rotate(-18deg); } 70% { transform: translateX(6px) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes face-right { from { opacity: 0; transform: translateX(70px) rotate(18deg); } 70% { transform: translateX(-6px) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes heart-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes heart-beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.2); } 40% { transform: scale(.95); } }
@keyframes party-float {
    0% { opacity: 0; transform: translateY(0) rotate(0); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-105vh) rotate(var(--r)); }
}

@media (prefers-reduced-motion: reduce) {
    .friend-party, .friend-party__card, .friend-party__face--left, .friend-party__face--right, .friend-party__heart,
    .btn--follow-back, .feed-card__action.is-popped { animation: none; }
    .friend-party__confetti { display: none; }
}
@media (max-width: 480px) {
    .feed-card__action { padding-inline: 8px; white-space: nowrap; }
    .feed-card__actions .pet-act { order: 5; } /* "ในนามน้อง" drops to its own line, the three main buttons stay together */
    .feed-card__action--comment { flex: 0 0 auto; }
    .feed-card__action--comment span { display: none; }
}

/* ---------- ❤️ / 🐾 buttons on cards (as you or your pets) ---------- */

.react { display: inline-flex; align-items: center; gap: 2px; }
.react__button { gap: 6px; }
.react__button.is-popped { animation: card-pop .55s cubic-bezier(.3, 1.6, .5, 1); }
.react__emoji { font-size: 1.05rem; line-height: 1; }
.react__button:not(.is-on) .react__emoji { filter: grayscale(.35); }
.react__faces { display: inline-flex; }
.react__faces .pet-photo { border: 2px solid #fff; border-radius: 50%; margin-left: -6px; }
.react__faces .pet-photo:first-child { margin-left: 0; }
.react__count { padding: 4px 6px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.react__count:hover:not(:disabled) { background: var(--orange-50); color: var(--orange-800); }
.react__count:disabled { cursor: default; }
.react__count small { color: var(--orange-700); font-weight: 700; }
.react__panel { left: 0; right: auto; min-width: 260px; max-width: calc(100vw - 32px); }
.react__panel .pet-act__hint small { display: block; color: var(--muted); font-weight: 400; }
.feed-card__action--icon { flex: 0 0 auto; gap: 5px; }
.feed-card__action--icon small { color: var(--muted); font-weight: 600; }
.feed-card__actions .react:last-of-type { margin-right: auto; }

@media (max-width: 480px) {
    .react__label, .feed-card__action-label, .react__faces, .react__button > .icon { display: none; }
    /* the "ในนามใคร" panel opens under the whole action bar, from the card's left edge */
    .feed-card__actions { position: relative; }
    .react.menu { position: static; }
    .react__panel { left: 0; right: auto; }
    .feed-card__actions { gap: 2px; }
    .react__button { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .react__button.is-popped { animation: none; }
}
.react__empty { display: grid; justify-items: center; gap: 8px; padding: 10px 8px 6px; text-align: center; }
.react__empty > span { font-size: 1.8rem; line-height: 1; }
.react__empty p { margin: 0; color: var(--muted); font-size: .88rem; }
.react__empty strong { color: var(--ink); }
.react__button .spinner { width: 16px; height: 16px; }

/* ==========================================================================
   Phase 2 — partners, groups, events, campaigns
   ========================================================================== */

/* Small labels (the base .chip is the big home-page pill). */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; background: var(--navy-50); color: var(--text); font-size: .78rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.tag--soft { background: var(--orange-50); color: var(--orange-800); }
.tag--ok { background: var(--success-bg); color: var(--success); }
.tag--warn { background: var(--warning-bg); color: #8a5a00; }
.tag--danger { background: var(--danger-bg); color: var(--danger); }
.verified { display: inline-flex; align-items: center; color: #1d9bf0; vertical-align: -2px; }
.verified--badge { gap: 4px; padding: 2px 10px; border-radius: 99px; background: #e8f5fe; font-size: .8rem; font-weight: 700; font-family: var(--font-body); vertical-align: middle; }
.open-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--danger); font-size: .82rem; font-weight: 600; }
.open-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-dot.is-open { color: var(--success); }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.filter-chips--small .filter-chip { padding: 5px 12px; font-size: .84rem; }
.type-grid--3 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.type-grid--3 .type-option__icon { font-size: 1.3rem; }
.btn--danger-text { color: var(--danger); }
.user-inline { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.user-inline > span { display: grid; min-width: 0; }
.user-inline small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }

/* Community sub-navigation */
.community-tabs { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.community-tabs__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.community-tabs__inner::-webkit-scrollbar { display: none; }
.community-tabs__tab { display: inline-flex; align-items: center; gap: 6px; padding: 14px 16px 12px; border-bottom: 3px solid transparent; color: var(--muted); font-family: var(--font-display); font-weight: 600; text-decoration: none; white-space: nowrap; }
.community-tabs__tab:hover { color: var(--navy-800); }
.community-tabs__tab.active { color: var(--navy-800); border-bottom-color: var(--orange-500); }
.community-tabs__tab.active .icon { color: var(--orange-600); }
.gather-page, .partners-page, .manage-page { padding-top: 24px; padding-bottom: 64px; }
.gather-page .tabs, .partners-page .tabs { margin-bottom: 0; }

/* Stars: grey outline, gold fill clipped to the score */
.stars { display: inline-flex; align-items: center; gap: 1px; }
.stars__star { position: relative; display: inline-flex; color: var(--navy-200); }
.stars__star--ro { color: var(--navy-100); }
.stars__star--ro .icon { fill: var(--navy-100); }
.stars__fill { position: absolute; top: 0; left: 0; bottom: 0; display: inline-flex; overflow: hidden; color: #f5a524; }
.stars__fill .icon { flex-shrink: 0; fill: #f5a524; }
.stars__num { margin-left: 5px; color: var(--ink); font-size: .9rem; }
.stars small { margin-left: 3px; }
.stars--pick { gap: 4px; flex-wrap: wrap; }
.stars--pick .stars__star { padding: 2px; border: 0; background: none; cursor: pointer; transition: transform .15s, color .15s; }
.stars--pick .stars__star:hover { transform: scale(1.12); }
.stars--pick .stars__star.is-on { color: #f5a524; }
.stars--pick .stars__star.is-on .icon { fill: #f5a524; }
.stars__label { margin-left: 8px; color: var(--ink); font-weight: 600; }

/* Image upload box */
.image-box { position: relative; display: grid; place-items: center; width: 120px; aspect-ratio: 1; overflow: hidden; border-radius: 20px; border: 1.5px dashed var(--navy-200); background: var(--navy-50); }
.image-box--wide { width: 100%; aspect-ratio: 3 / 1; }
.image-box--doc { width: 100%; max-width: 360px; aspect-ratio: 4 / 3; }
.image-box:not(.is-empty) { border-style: solid; border-color: var(--line); }
.image-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-box--doc img { object-fit: contain; background: #fff; }
.image-box__placeholder { display: grid; justify-items: center; gap: 4px; color: var(--muted); }
.image-box__button { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(0, 23, 74, .78); color: #fff; font-size: .82rem; font-weight: 600; cursor: pointer; }
.image-box__button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.image-box__button .spinner { width: 14px; height: 14px; }
.image-box__clear { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }

/* Partner cards & directory */
.partner-card { display: flex; gap: 14px; padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .15s; }
.partner-card:hover { border-color: var(--navy-200); box-shadow: var(--shadow); transform: translateY(-1px); }
.partner-card.is-selected { border-color: var(--orange-500); box-shadow: 0 0 0 3px var(--orange-50); }
.partner-card--skeleton { min-height: 96px; }
.partner-card__logo { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; overflow: hidden; border-radius: 16px; background: var(--orange-50); font-size: 1.8rem; }
.partner-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.partner-card__logo--sm { width: 44px; height: 44px; border-radius: 12px; font-size: 1.3rem; }
.partner-card__body { display: grid; gap: 5px; align-content: start; min-width: 0; }
.partner-card__name { display: flex; align-items: center; gap: 6px; color: var(--ink); font-family: var(--font-display); font-size: 1.02rem; line-height: 1.3; }
.partner-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .85rem; }
.partner-card__summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .88rem; }
.partners-toolbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.partners-sort { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.partners-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; margin-top: 16px; align-items: start; }
.partners-list { display: grid; gap: 12px; align-content: start; }
.partners-list .muted.small { margin: 0; }
.partners-map { position: sticky; top: calc(var(--header-h) + 64px); }
.browse-map { position: relative; z-index: 0; height: calc(100vh - var(--header-h) - 96px); min-height: 360px; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--navy-50); }
.partners-toolbar__right .segmented { display: none; }
.map-popup { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 500; display: flex; align-items: center; gap: 10px; padding: 12px 40px 12px 12px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); }
.map-popup__body { display: flex; flex: 1; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.map-popup__body > span:last-child { display: grid; gap: 2px; min-width: 0; }
.map-popup__close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--navy-50); cursor: pointer; }
.map-pin--verified span { background: #1d9bf0; }
.map-pin--event span { background: var(--navy-700); }
.my-partner { display: flex; align-items: center; gap: 10px; }
.my-partner .partner-card { flex: 1; }
.partners-list--mine { margin-bottom: 16px; }

/* Partner / group hero */
.partner-hero { background: #fff; border-bottom: 1px solid var(--line); }
.partner-hero__cover { height: 220px; background: linear-gradient(135deg, var(--navy-800), var(--navy-600) 55%, var(--orange-500)) center / cover; }
.partner-hero__inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; padding-bottom: 20px; margin-top: -56px; }
.partner-hero__logo { display: grid; place-items: center; flex-shrink: 0; width: 120px; height: 120px; overflow: hidden; border-radius: 28px; border: 5px solid #fff; background: var(--orange-50); box-shadow: var(--shadow); font-size: 3.2rem; }
.partner-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.partner-hero__text { flex: 1 1 280px; min-width: 0; }
.partner-hero__text h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); }
.partner-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .92rem; }
.partner-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.partner-page { padding-top: 20px; padding-bottom: 64px; }
.partner-info { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.partner-info__main, .partner-info__side { display: grid; gap: 18px; }
.partner-info .card, .partner-reviews .card, .group-body .card { padding: 22px; }
.service-list, .hours-list, .review-list, .doc-list { list-style: none; margin: 0; padding: 0; }
.service-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.service-list li:first-child { border-top: 0; padding-top: 0; }
.service-list li > span:first-child { display: grid; gap: 2px; }
.service-list__price { display: grid; justify-items: end; color: var(--orange-800); font-weight: 700; white-space: nowrap; }
.hours-list li { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 10px; }
.hours-list li.is-today { background: var(--orange-50); font-weight: 700; }
.branch { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.branch:first-of-type { border-top: 0; padding-top: 0; }
.contact-card { display: grid; gap: 8px; }
.contact-card .card__title { margin-bottom: 4px; }

/* Reviews */
.partner-reviews { display: grid; gap: 16px; max-width: 820px; }
.rating-summary { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.rating-summary__score { display: grid; justify-items: center; gap: 4px; }
.rating-summary__score > strong { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--ink); }
.rating-summary__bars { flex: 1 1 240px; display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.rating-summary__bars li { display: grid; grid-template-columns: 36px 1fr 32px; align-items: center; gap: 10px; font-size: .88rem; }
.rating-summary__bars .progress span { background: #f5a524; }
.review-form { display: grid; gap: 12px; }
.review-form__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.review-list { display: grid; gap: 12px; }
.review { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.review p { margin: 0; }
.review__head { display: flex; align-items: center; gap: 10px; }
.review__head > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.review__head a { color: var(--ink); text-decoration: none; }
.review__meta { display: flex; align-items: center; gap: 8px; }
.review__photos { display: flex; flex-wrap: wrap; gap: 8px; }
.review__photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; }
.review__reply { display: grid; gap: 4px; margin-left: 12px; padding: 12px 14px; border-left: 3px solid var(--orange-500); border-radius: 0 12px 12px 0; background: var(--orange-50); font-size: .92rem; }
.review__reply-form { display: grid; gap: 8px; }

/* Apply & manage */
.partner-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.partner-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .88rem; font-weight: 600; }
.partner-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy-50); color: var(--navy-800); font-size: .8rem; }
.partner-steps li.is-current { border-color: var(--orange-500); color: var(--ink); }
.partner-steps li.is-current span { background: var(--orange-500); color: #fff; }
.partner-apply__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.partner-apply__name { flex: 1 1 260px; }
.partner-apply__images { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; }
.manage-checklist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.manage-checklist span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--navy-50); color: var(--muted); font-size: .85rem; font-weight: 600; }
.manage-checklist span.is-done { background: var(--success-bg); color: var(--success); }
.manage-page .card { display: grid; gap: 14px; }
.manage-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.manage-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.manage-row.is-muted { opacity: .65; }
.manage-row__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; }
.manage-form { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface-soft); }
.manage-form h3 { margin: 0; }
.manage-form--inline { display: flex; flex-wrap: wrap; gap: 8px; }
.manage-form--inline .input { flex: 1 1 180px; width: auto; }
.manage-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.manage-actions > :first-child:not(:last-child) { margin-right: auto; }
.hours-editor { display: grid; gap: 6px; }
.hours-editor__row { display: grid; grid-template-columns: 90px 70px 1fr 14px 1fr; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; background: var(--surface-soft); }
.hours-editor__row.is-closed { opacity: .6; }
.hours-editor__row .input { width: 100%; }
.hours-editor__row .check input { margin: 0; }
.doc-list { display: grid; gap: 10px; }
.doc-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--surface-soft); }
.doc-list img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: #fff; }
.doc-list li > span { display: grid; gap: 3px; justify-items: start; }

/* Admin partners */
.admin-partner { display: grid; gap: 12px; margin-bottom: 14px; padding: 20px; }
.admin-partner__head { display: flex; gap: 12px; align-items: center; }
.admin-partner__head a { color: var(--ink); }
.admin-partner__facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; font-size: .9rem; }
.admin-partner__facts dt { color: var(--muted); font-size: .78rem; }
.admin-partner__facts dd { margin: 0; }
.admin-partner__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Groups */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 16px; }
.group-card, .campaign-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; transition: box-shadow .2s, transform .15s; }
.group-card:hover, .campaign-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.group-card__cover, .campaign-card__cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; background: linear-gradient(135deg, var(--navy-50), var(--orange-50)) center / cover; font-size: 2.6rem; }
.group-card__body, .campaign-card__body { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 14px 16px 16px; }
.group-card__body strong, .campaign-card__body strong { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.35; }
.group-card__meta, .campaign-card__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: .86rem; }
.group-card__summary, .campaign-card__summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); font-size: .9rem; }
.group-hero .partner-hero__logo { font-size: 3.4rem; }
.group-body { display: grid; gap: 16px; max-width: 760px; }
.post-card__group { display: inline-flex; align-items: center; gap: 4px; color: var(--orange-800); font-size: .8rem; font-weight: 600; text-decoration: none; }

/* Events */
.event-list { display: grid; gap: 12px; margin-top: 16px; }
.event-card { display: flex; gap: 14px; align-items: stretch; padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.event-card:hover { border-color: var(--navy-200); box-shadow: var(--shadow); }
.event-card.is-cancelled { opacity: .7; }
.event-card.is-cancelled .event-card__title { text-decoration: line-through; }
.event-card__date { display: grid; place-content: center; justify-items: center; flex-shrink: 0; width: 58px; padding: 6px 0; border-radius: 14px; background: var(--orange-50); color: var(--orange-800); line-height: 1.1; }
.event-card__date small { font-size: .78rem; font-weight: 700; }
.event-card__date strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
.event-card__date--lg { width: 76px; background: #fff; box-shadow: var(--shadow); }
.event-card__date--lg strong { font-size: 2.1rem; }
.event-card__body { flex: 1; display: grid; gap: 4px; align-content: start; min-width: 0; font-size: .88rem; }
.event-card__title { color: var(--ink); font-family: var(--font-display); font-size: 1.04rem; }
.event-card__when { color: var(--orange-800); font-weight: 600; }
.event-card__where { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }
.event-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.event-card__cover { flex-shrink: 0; width: 120px; border-radius: 12px; object-fit: cover; }
.event-hero { position: relative; padding: 28px 0 32px; color: #fff; background: linear-gradient(180deg, rgba(0, 15, 51, .35), rgba(0, 15, 51, .85)), var(--cover) center / cover, var(--navy-800); }
.event-hero--plain { background: linear-gradient(135deg, var(--navy-800), var(--navy-600) 60%, var(--orange-600)); }
.event-hero__inner { display: grid; gap: 14px; justify-items: start; }
.event-hero__row { display: flex; align-items: center; gap: 18px; }
.event-hero h1 { margin: 6px 0 4px; color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.event-hero p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; color: rgba(255, 255, 255, .9); }
.event-hero .tag { background: rgba(255, 255, 255, .2); color: #fff; }
.event-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; padding-top: 24px; padding-bottom: 64px; }
.event-page__main, .event-page__side { display: grid; gap: 16px; }
.event-page .card { padding: 22px; }
.rsvp-card { display: grid; gap: 12px; }
.rsvp-card p { margin: 0; }
.rsvp-card__counts { display: flex; gap: 20px; color: var(--muted); }
.rsvp-card__counts strong { color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; }
.rsvp-card__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.event-facts { display: grid; gap: 12px; }
.event-facts > div { display: flex; gap: 10px; align-items: flex-start; }
.event-facts > div > .icon { flex-shrink: 0; margin-top: 2px; color: var(--orange-600); }
.event-actions { display: grid; gap: 8px; }
.side-list__date { display: grid; align-content: center; justify-items: center; background: var(--orange-50); color: var(--ink); font-family: var(--font-display); font-weight: 700; line-height: 1; }
.side-list__date small { color: var(--orange-800); font-size: .65rem; }

/* Campaigns */
.campaign-card__phase { position: absolute; top: 10px; left: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.campaign-card--active .campaign-card__phase { background: var(--success); color: #fff; }
.campaign-card--ended { opacity: .8; }
.campaign-hero .campaign-card__phase { position: static; }
.campaign-goal { background: linear-gradient(135deg, var(--orange-50), #fff); border-color: var(--orange-100); }
.campaign-goal p { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }

@media (min-width: 901px) {
    .nav > .nav__link--sub { display: none; }
}

@media (max-width: 900px) {
    .partners-layout { grid-template-columns: 1fr; }
    .partners-toolbar__right .segmented { display: flex; }
    .partners-layout.is-list .partners-map { display: none; }
    .partners-layout.is-map .partners-list { display: none; }
    .partners-map { position: relative; top: 0; }
    .browse-map { height: calc(100vh - var(--header-h) - 140px); }
    .partners-sort { margin-left: 0; }
    .partner-info, .event-page { grid-template-columns: 1fr; }
    .partner-hero__cover { height: 150px; }
    .partner-hero__inner { margin-top: -44px; }
    .partner-hero__logo { width: 92px; height: 92px; border-radius: 22px; font-size: 2.4rem; }
    .partner-hero__actions { width: 100%; }
    .partner-hero__actions .btn { flex: 1 1 auto; }
    .hours-editor__row { grid-template-columns: 1fr auto; }
    .hours-editor__row > span { display: none; }
    .partner-apply__images { grid-template-columns: 1fr; }
    .event-card__cover { display: none; }
    .community-tabs__tab { padding: 12px 12px 10px; font-size: .92rem; }
}

/* Admin: species (ชนิดสัตว์) */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.admin-table tr.is-muted td { opacity: .6; }
.admin-table tr.is-muted td.admin-table__actions { opacity: 1; }
.species-name { display: flex; align-items: center; gap: 10px; }
.species-name > span:last-child { display: grid; }
.species-name__emoji { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--orange-50); font-size: 1.35rem; line-height: 1; }
.species-form { display: grid; gap: 14px; margin-top: 8px; }
.emoji-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.emoji-pick__item { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; transition: border-color .15s, transform .15s; }
.emoji-pick__item:hover { transform: translateY(-1px); border-color: var(--navy-200); }
.emoji-pick__item.is-selected { border-color: var(--orange-500); background: var(--orange-50); }
.emoji-pick__custom { width: 130px; }
.species-preview { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-soft); }

/* Admin: system email account */
.email-source { margin-bottom: 14px; }
.email-source--admin, .email-source--server { background: var(--success-bg); color: var(--success); }
.email-source--log { background: var(--warning-bg); color: #8a5a00; }
.email-source code { overflow-wrap: anywhere; }
.email-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.admin-card .form-grid { margin-bottom: 14px; }
.email-test { display: grid; gap: 6px; margin: 4px 0 16px; padding: 14px; border-radius: 14px; background: var(--surface-soft); }
.email-test__row { display: flex; flex-wrap: wrap; gap: 8px; }
.email-test__row .input { flex: 1 1 220px; width: auto; }
