:root {
    --bg: #f2f6f4;
    --bg-soft: #e9f1ee;
    --surface: #ffffff;
    --surface-2: #f7faf9;
    --ink: #12332d;
    --ink-soft: #2c4f47;
    --muted: #5f756f;
    --line: #dfe9e5;
    --line-strong: #cbdcd6;
    --teal: #0f5c4d;
    --teal-2: #137a63;
    --teal-3: #1f9d71;
    --mint: #e2f2ec;
    --accent: #f2a93b;
    --accent-soft: #fdf1dc;
    --danger: #b93a2e;
    --danger-soft: #fbe9e6;
    --warn: #a9740f;
    --warn-soft: #fbf0d8;
    --shadow: 0 12px 32px rgba(12, 60, 48, 0.09);
    --shadow-sm: 0 4px 14px rgba(12, 60, 48, 0.07);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 9px;
    --nav-height: 72px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    font-size: 15px;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-2); text-decoration: none; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { margin: 0 0 0.4em; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.8em; }
ul, ol { margin: 0 0 0.8em; padding-left: 1.2rem; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -3px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.82rem; }
.warn-text { color: var(--warn); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.68rem 1.15rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    background: var(--mint);
    color: var(--teal);
    transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #fff; box-shadow: 0 8px 20px rgba(15, 92, 77, 0.24); }
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, #0c5245, #0e6b57); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--teal); }
.btn-outline:hover { background: var(--mint); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.86rem; }
.btn-xs { padding: 0.3rem 0.6rem; font-size: 0.78rem; }
.btn-lg { padding: 0.85rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }
.link-quiet { color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.link-quiet:hover { color: var(--teal); }
.text-link { font-weight: 600; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 12px;
    background: linear-gradient(135deg, var(--teal), var(--teal-3));
    color: #fff; box-shadow: 0 6px 16px rgba(15, 92, 77, 0.3);
}
.brand-mark .icon { width: 22px; height: 22px; }
.brand-text { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-text span { color: var(--teal-2); font-weight: 600; margin-left: 1px; }
.brand-sm .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.brand-sm .brand-text { font-size: 1rem; }
.brand-light, .brand-light .brand-text, .brand-light .brand-text span { color: #fff; }
.brand-light .brand-text span { color: #9fe3cd; }

/* Guest layout */
.guest-body { background: radial-gradient(circle at 20% -10%, #d9efe7 0, transparent 42%), var(--bg); }
.guest-topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.9rem max(1rem, calc((100vw - 1040px) / 2));
    backdrop-filter: blur(10px); background: rgba(242, 246, 244, 0.85);
    border-bottom: 1px solid rgba(223, 233, 229, 0.7);
}
.guest-nav { display: flex; align-items: center; gap: 0.8rem; }
.guest-main { max-width: 1040px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.guest-footer {
    max-width: 1040px; margin: 0 auto; padding: 2rem 1rem 3rem;
    border-top: 1px solid var(--line); display: flex; flex-wrap: wrap;
    gap: 1rem; justify-content: space-between; color: var(--muted); font-size: 0.85rem;
}
.guest-footer p { margin: 0.2rem 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 0.35rem; }

/* App layout */
.app-main { max-width: 960px; margin: 0 auto; padding: 1rem 1rem calc(var(--nav-height) + 2rem); }
.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.7rem max(0.9rem, calc((100vw - 960px) / 2));
    background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar-title { flex: 1; font-weight: 650; font-size: 0.95rem; color: var(--ink-soft); text-align: right; }
.topbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.avatar-chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
    background: linear-gradient(135deg, var(--teal), var(--teal-3));
    color: #fff; font-weight: 700; font-size: 0.9rem; flex: 0 0 auto;
}
.avatar-chip img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 48px; height: 48px; font-size: 1.05rem; }
.avatar-xl { width: 76px; height: 76px; font-size: 1.6rem; border-radius: 22px; }
.avatar-light { background: rgba(255,255,255,0.18); }

.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(5, 1fr);
    max-width: 960px; margin: 0 auto;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(12, 60, 48, 0.07);
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    padding: 0.4rem 0.1rem; color: var(--muted); font-size: 0.68rem; font-weight: 600;
    border-radius: 12px;
}
.nav-item .icon { width: 22px; height: 22px; }
.nav-item.active { color: var(--teal); }
.nav-item.active .icon { stroke-width: 2.2; }
.nav-add { position: relative; color: var(--teal); }
.nav-add-circle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%; margin-top: -18px;
    background: linear-gradient(135deg, var(--teal), var(--teal-3)); color: #fff;
    box-shadow: 0 10px 22px rgba(15, 92, 77, 0.35);
    border: 3px solid var(--bg);
}
.nav-add-circle .icon { width: 24px; height: 24px; }

/* Flash & toast */
.flash-stack { display: grid; gap: 0.5rem; margin-bottom: 0.9rem; }
.flash {
    display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}
.flash p { margin: 0; }
.flash-icon { display: inline-flex; color: var(--teal-2); }
.flash-success { border-color: #b7e3d1; background: #effaf5; }
.flash-success .flash-icon { color: var(--ok); }
.flash-error { border-color: #f0c4bd; background: #fdf1ef; }
.flash-error .flash-icon { color: var(--danger); }
.flash-icon .icon { width: 18px; height: 18px; }
.toast-region {
    position: fixed; left: 50%; bottom: calc(var(--nav-height) + 16px);
    transform: translateX(-50%); z-index: 90; display: grid; gap: 0.4rem;
    width: min(92vw, 420px);
}
.toast {
    background: var(--ink); color: #fff; padding: 0.7rem 0.95rem;
    border-radius: 999px; font-size: 0.87rem; text-align: center;
    box-shadow: var(--shadow); animation: toast-in 0.25s ease;
}
.toast.toast-error { background: var(--danger); }
.toast.toast-success { background: var(--teal-2); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Hero / landing */
.hero {
    position: relative; padding: 3.2rem 0 2.4rem; overflow: hidden;
}
.hero-glow {
    position: absolute; inset: -30% 40% 40% -20%;
    background: radial-gradient(circle, rgba(31, 157, 113, 0.18), transparent 65%);
    z-index: -1; filter: blur(10px);
}
.eyebrow {
    text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem;
    font-weight: 700; color: var(--teal-2); margin-bottom: 0.6rem;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.035em; margin-bottom: 0.6rem; }
.hero h1 span { color: var(--teal-2); }
.hero-lead { max-width: 620px; font-size: 1.02rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.3rem 0 1.8rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; color: var(--teal); }
.hero-stats span { font-size: 0.78rem; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; margin: 2rem 0; }
.feature-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.2rem; box-shadow: var(--shadow-sm);
}
.feature-card h2 { font-size: 1rem; margin-top: 0.7rem; }
.feature-card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 0; }
.feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 13px; background: var(--mint); color: var(--teal);
}
.how { margin: 2.6rem 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.8rem; list-style: none; padding: 0; }
.steps li { display: flex; gap: 0.7rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem; }
.steps li > span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff;
    font-weight: 700; font-size: 0.85rem; flex: 0 0 auto;
}
.steps p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.privacy-banner {
    display: flex; gap: 1rem; align-items: flex-start; margin: 2.4rem 0;
    background: linear-gradient(135deg, var(--teal), #0c4b3e); color: #fff;
    border-radius: var(--radius); padding: 1.4rem;
}
.privacy-banner h2 { color: #fff; }
.privacy-banner p { color: #cfe9e0; margin: 0; font-size: 0.9rem; }
.privacy-icon {
    width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,0.15);
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.region-strip { margin: 2rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.82rem; color: var(--ink-soft); }

/* Auth */
.auth-card {
    max-width: 460px; margin: 2rem auto; background: var(--surface);
    border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem;
    box-shadow: var(--shadow);
}
.auth-card-wide { max-width: 640px; }
.auth-head { margin-bottom: 1.2rem; }
.auth-head h1 { font-size: 1.5rem; }
.auth-foot { text-align: center; margin: 1rem 0 0; color: var(--muted); font-size: 0.9rem; }
.details { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.details summary { cursor: pointer; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.notice { border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; font-size: 0.87rem; margin-bottom: 0.9rem; border: 1px solid var(--line); }
.notice a { font-weight: 700; }
.notice-info { background: #edf6fb; border-color: #cbe3f0; }
.notice-success { background: #effaf5; border-color: #b7e3d1; }
.notice-error { background: #fdf1ef; border-color: #f0c4bd; color: var(--danger); }
.notice-warn { background: var(--warn-soft); border-color: #ecd9a8; color: #7c5608; }
.notice-dev { background: #f3f0fb; border-color: #d8d0ef; }

/* Forms */
.form { display: grid; gap: 0.85rem; }
.form-tight { gap: 0.6rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea, .filter-field input, .filter-field select {
    width: 100%; font: inherit; font-size: 0.92rem; font-weight: 400; color: var(--ink);
    background: var(--surface-2); border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs); padding: 0.62rem 0.7rem;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus, .filter-field input:focus, .filter-field select:focus {
    outline: none; border-color: var(--teal-3); box-shadow: 0 0 0 3px rgba(31, 157, 113, 0.15);
}
.field textarea { resize: vertical; }
.field small { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.field-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.field-grid-3 { grid-template-columns: 1fr; }
.form-row-between { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.checkbox { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); }
.checkbox input { margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--teal); }

/* Cards / sections */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; }
.card-head h2 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 0.4rem; }
.card-head .icon { width: 18px; height: 18px; color: var(--teal-2); }
.section { margin-top: 1.4rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.8rem; }
.section-head h1, .section-head h2 { margin: 0; font-size: 1.15rem; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: 0.5rem 0 1.1rem; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 0.2rem; }
.page-head .muted { margin: 0; font-size: 0.88rem; }
.head-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.hello { display: flex; align-items: center; gap: 0.8rem; margin: 0.4rem 0 1rem; }
.hello-avatar {
    width: 52px; height: 52px; border-radius: 16px; overflow: hidden; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--teal), var(--teal-3)); color: #fff; font-weight: 800; font-size: 1.2rem;
}
.hello-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hello h1 { font-size: 1.3rem; margin-bottom: 0.05rem; }
.hello p { margin: 0; }
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.weather-card, .score-card { min-height: 150px; }
.skeleton-block { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.4rem 0; }
.skeleton-line, .skeleton-circle { background: linear-gradient(90deg, #eef4f1, #e0ebe6, #eef4f1); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
.skeleton-line { height: 12px; width: 100%; }
.skeleton-line.short { width: 60%; }
.skeleton-circle { width: 64px; height: 64px; border-radius: 50%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.badge { display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 999px; padding: 0.22rem 0.6rem; font-size: 0.72rem; font-weight: 700; background: var(--mint); color: var(--teal); }
.badge .icon { width: 13px; height: 13px; }
.badge-soft { background: var(--bg-soft); color: var(--ink-soft); }
.badge-private { background: #eceff5; color: #4a5568; }
.badge-public { background: #e3f6ee; color: var(--teal-2); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }

.quick-actions { display: grid; gap: 0.6rem; margin: 1rem 0; }
.quick-action { display: flex; align-items: center; gap: 0.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem 0.9rem; box-shadow: var(--shadow-sm); color: var(--ink); }
.quick-action:hover { border-color: var(--line-strong); color: var(--ink); }
.quick-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.quick-action div { display: flex; flex-direction: column; }
.quick-action small { color: var(--muted); font-size: 0.78rem; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 1rem 0; }
.stat-strip-5 { grid-template-columns: repeat(5, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.65rem 0.5rem; text-align: center; }
.stat strong { display: block; font-size: 1.05rem; color: var(--teal); }
.stat span { font-size: 0.68rem; color: var(--muted); }

.empty-state { text-align: center; padding: 2rem 1rem; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state.compact { padding: 1.2rem; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: var(--mint); color: var(--teal); margin-bottom: 0.6rem; }
.empty-icon .icon { width: 28px; height: 28px; }
.empty-state h3 { margin-bottom: 0.3rem; }
.empty-state p { color: var(--muted); max-width: 380px; margin-left: auto; margin-right: auto; }

/* Catch grid */
.catch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.catch-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; color: var(--ink); box-shadow: var(--shadow-sm); }
.catch-tile:hover { color: var(--ink); border-color: var(--line-strong); }
.catch-thumb { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); }
.catch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.catch-thumb-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--line-strong); }
.catch-thumb-fallback .icon { width: 36px; height: 36px; }
.visibility-dot { position: absolute; top: 0.45rem; right: 0.45rem; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.visibility-dot .icon { width: 15px; height: 15px; }
.visibility-badge { position: absolute; left: 0.45rem; bottom: 0.45rem; display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.65rem; font-weight: 700; padding: 0.18rem 0.45rem; border-radius: 999px; background: rgba(255,255,255,0.94); color: var(--ink-soft); }
.visibility-badge .icon { width: 12px; height: 12px; }
.catch-tile-body { padding: 0.6rem 0.65rem; display: flex; flex-direction: column; gap: 0.1rem; }
.catch-tile-body strong { font-size: 0.88rem; }
.catch-tile-body small { color: var(--muted); font-size: 0.72rem; }
.mini-metric { font-size: 0.72rem; color: var(--teal-2); font-weight: 600; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.2rem; }
.tile-meta span { font-size: 0.66rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.4rem; color: var(--muted); }

.mini-feed { display: grid; gap: 0.55rem; }
.mini-feed-item { display: flex; align-items: center; gap: 0.7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.55rem; color: var(--ink); }
.mini-feed-item img, .mini-feed-fallback { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: var(--bg-soft); }
.mini-feed-fallback { display: flex; align-items: center; justify-content: center; color: var(--line-strong); }
.mini-feed-item div { display: flex; flex-direction: column; }
.mini-feed-item small { color: var(--muted); font-size: 0.75rem; }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem; margin-bottom: 1rem; }
.filter-field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.75rem; font-weight: 600; color: var(--muted); flex: 1 1 140px; }
.filter-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Catch form */
.catch-form { display: grid; gap: 0.9rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); display: grid; gap: 0.9rem; }
.form-card-head { display: flex; gap: 0.7rem; align-items: flex-start; }
.form-card-head h2 { margin: 0; font-size: 1rem; }
.form-card-head p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.8rem; }
.step-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: 0.8rem; flex: 0 0 auto; }
.upload-drop { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; padding: 1.4rem 1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; }
.upload-drop:hover, .upload-drop.dragging { border-color: var(--teal-3); background: var(--mint); }
.upload-drop input { display: none; }
.upload-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--mint); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; }
.upload-icon .icon { width: 24px; height: 24px; }
.photo-previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.photo-preview { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview span { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.62rem; border-radius: 6px; padding: 0 0.25rem; }
.existing-media { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.existing-media-item { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.existing-media-item img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.remove-check { position: absolute; inset: auto 0 0 0; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.68rem; display: flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.3rem; }
.remove-check input { accent-color: var(--danger); }
.gps-status { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 0.6rem 0.7rem; font-size: 0.86rem; }
.gps-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gps-values { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.gps-map { height: 220px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft); }
.pill { display: inline-flex; align-items: center; gap: 0.25rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.55rem; font-size: 0.72rem; color: var(--ink-soft); }
.pill .icon { width: 13px; height: 13px; }
.pill-success { background: #e8f8f0; border-color: #b9e6d2; color: #177a4f; }
.pill-warn { background: var(--warn-soft); border-color: #ecd9a8; color: var(--warn); }
.pill-error { background: var(--danger-soft); border-color: #f0c4bd; color: var(--danger); }
.pill-muted { color: var(--muted); }
.privacy-options { display: grid; gap: 0.55rem; }
.privacy-option { display: flex; gap: 0.6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.75rem; background: var(--surface-2); cursor: pointer; }
.privacy-option:has(input:checked) { border-color: var(--teal-3); background: var(--mint); box-shadow: 0 0 0 3px rgba(31,157,113,0.12); }
.privacy-option input { margin-top: 0.2rem; accent-color: var(--teal); }
.privacy-body { display: flex; flex-direction: column; gap: 0.1rem; }
.privacy-body strong { display: flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; }
.privacy-body .icon { width: 16px; height: 16px; color: var(--teal-2); }
.privacy-body small { color: var(--muted); font-size: 0.8rem; }
.form-submit { display: grid; gap: 0.5rem; }
.form-feedback { position: fixed; inset: auto 0 0 0; z-index: 80; padding: 0.8rem; background: var(--danger); color: #fff; text-align: center; }

/* Detail */
.detail-layout { display: grid; gap: 1rem; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.4rem; margin-top: 0.5rem; overflow-x: auto; padding-bottom: 0.2rem; }
.gallery-thumb { border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; width: 64px; height: 64px; flex: 0 0 auto; cursor: pointer; background: var(--bg-soft); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--teal-3); }
.detail-side { display: grid; gap: 0.9rem; }
.detail-owner { display: flex; align-items: center; gap: 0.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem; }
.detail-owner div { display: flex; flex-direction: column; flex: 1; }
.detail-owner small { color: var(--muted); font-size: 0.75rem; }
.detail-list { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
.detail-list div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 0.55rem 0.65rem; }
.detail-list dt { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.detail-list dd { margin: 0.15rem 0 0; font-weight: 600; font-size: 0.88rem; }
.detail-list dd small { display: block; font-weight: 400; color: var(--muted); }
.detail-story { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem; }
.detail-story h2 { font-size: 0.95rem; }
.detail-story p { margin: 0; }
.owner-actions { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem; }
.owner-actions h2 { font-size: 0.95rem; }
.action-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.location-card { margin-top: 1rem; }
.detail-map { height: 280px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 0.6rem; }
.location-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.detail-foot { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }

/* Profile */
.profile-hero { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.profile-avatar { flex: 0 0 auto; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--teal), var(--teal-3)); color: #fff; font-weight: 800; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { display: flex; align-items: center; gap: 0.4rem; }
.profile-name h1 { font-size: 1.4rem; margin: 0; }
.verified { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-3); color: #fff; }
.verified .icon { width: 12px; height: 12px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.profile-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.list-rows { display: grid; gap: 0.1rem; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.list-row:last-child { border-bottom: 0; }
.list-row span { color: var(--muted); }
.logout-form { margin-top: 0.8rem; }
.settings-grid { display: grid; gap: 0.8rem; }
.settings-avatar-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.setting-block { border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: 0.8rem; }
.setting-block h3 { margin-bottom: 0.2rem; }
.danger-block h3 { color: var(--danger); }

/* Map */
.map-layout { display: grid; gap: 0.8rem; }
.spots-map { height: 380px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--bg-soft); z-index: 1; }
.map-side { display: grid; gap: 0.8rem; align-content: start; }
.map-legend h2, .map-add h2 { font-size: 1rem; }
.legend-list { list-style: none; padding: 0; margin: 0 0 0.8rem; display: grid; gap: 0.35rem; font-size: 0.82rem; color: var(--ink-soft); }
.legend-list li { display: flex; align-items: center; gap: 0.45rem; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend-private { background: #7c5cd6; }
.legend-public { background: var(--teal-3); }
.legend-approx { background: var(--accent); }
.filter-stack { display: grid; gap: 0.5rem; }
.map-add form { margin-top: 0.4rem; }

/* Score */
.score-form { display: grid; gap: 0.85rem; margin-bottom: 1rem; }
.score-result { margin-bottom: 1rem; }
.score-panel { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow-sm); }
.score-main { display: flex; align-items: center; gap: 1rem; }
.score-gauge { width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; position: relative; }
.score-gauge::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.score-gauge strong { position: relative; font-size: 2.1rem; line-height: 1; color: var(--teal); }
.score-gauge small { position: relative; font-size: 0.65rem; color: var(--muted); }
.score-meta { flex: 1; }
.score-meta h2 { margin-bottom: 0.2rem; }
.score-meta .pill { margin: 0.15rem 0.2rem 0.15rem 0; }
.score-factors { display: grid; gap: 0.5rem; }
.factor-row { display: grid; grid-template-columns: 130px 1fr 42px; align-items: center; gap: 0.5rem; font-size: 0.82rem; }
.factor-bar { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.factor-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-3), var(--teal)); }
.factor-row.factor-off .factor-bar { background: repeating-linear-gradient(45deg, #eef2f0, #eef2f0 4px, #e3eae7 4px, #e3eae7 8px); }
.factor-row strong { text-align: right; font-size: 0.8rem; color: var(--ink-soft); }
.score-note { background: var(--warn-soft); border: 1px solid #ecd9a8; color: #7c5608; border-radius: var(--radius-xs); padding: 0.6rem 0.7rem; font-size: 0.82rem; }
.score-weather { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
.score-weather div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 0.45rem 0.55rem; font-size: 0.78rem; }
.score-weather span { display: block; color: var(--muted); font-size: 0.68rem; }
.weight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
.weight-item { display: flex; justify-content: space-between; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 0.45rem 0.6rem; font-size: 0.82rem; }
.weight-item strong { color: var(--teal); }
.weight-input-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.plain-list { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: 0.88rem; }
.plain-list li { margin-bottom: 0.3rem; }

/* Feed */
.feed { display: grid; gap: 1rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.post-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.75rem 0.85rem; }
.post-author { display: flex; align-items: center; gap: 0.55rem; color: var(--ink); min-width: 0; }
.post-author:hover { color: var(--ink); }
.post-author-text { display: flex; flex-direction: column; min-width: 0; }
.post-author-text strong { font-size: 0.9rem; }
.post-author-text small { color: var(--muted); font-size: 0.73rem; }
.post-media { display: block; background: var(--bg-soft); }
.post-media img { width: 100%; max-height: 560px; object-fit: cover; }
.post-body { padding: 0.8rem 0.85rem 0.9rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.5rem; }
.post-story { margin-bottom: 0.5rem; font-size: 0.9rem; }
.post-location { display: flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; color: var(--warn); margin-bottom: 0.5rem; }
.post-location .icon { width: 14px; height: 14px; }
.post-actions { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.action-btn { display: inline-flex; align-items: center; gap: 0.3rem; background: none; border: 0; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--muted); padding: 0.35rem 0.55rem; border-radius: 999px; cursor: pointer; }
.action-btn:hover { background: var(--bg-soft); color: var(--teal); }
.action-btn .icon { width: 18px; height: 18px; }
.action-btn.is-active { color: var(--danger); }
.action-btn.is-active .icon { fill: var(--danger); }
.action-quiet { font-weight: 500; font-size: 0.76rem; }
.comments { border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.6rem; display: grid; gap: 0.5rem; }
.comment-item { display: flex; gap: 0.45rem; font-size: 0.84rem; }
.comment-item .avatar-chip { width: 28px; height: 28px; font-size: 0.7rem; }
.comment-body { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 0.4rem 0.6rem; }
.comment-body strong { font-size: 0.8rem; }
.comment-body p { margin: 0.1rem 0 0; }
.comment-body small { color: var(--muted); font-size: 0.68rem; }
.comment-delete { background: none; border: 0; color: var(--muted); font-size: 0.68rem; cursor: pointer; padding: 0; }
.comment-form { display: flex; gap: 0.4rem; }
.comment-form input { flex: 1; font: inherit; font-size: 0.85rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.45rem 0.8rem; background: var(--surface-2); }
.pagination { display: flex; justify-content: center; margin: 1.2rem 0; }
.modal { border: 0; border-radius: var(--radius); padding: 0; max-width: 420px; width: 92vw; box-shadow: 0 24px 60px rgba(0,0,0,0.25); }
.modal::backdrop { background: rgba(8, 35, 29, 0.45); }
.modal-body { padding: 1.2rem; display: grid; gap: 0.7rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.4rem; margin-top: 0.3rem; }

/* Admin */
.admin-body { background: #eef3f1; }
.admin-topbar { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem max(1rem, calc((100vw - 1120px) / 2)); background: linear-gradient(135deg, #0d3d34, #0f5c4d); color: #fff; }
.admin-topbar .topbar-actions { margin-left: auto; }
.admin-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.2); padding: 0.2rem 0.5rem; border-radius: 999px; }
.admin-shell { max-width: 1120px; margin: 0 auto; padding: 0 1rem 3rem; }
.admin-tabs { display: flex; gap: 0.3rem; overflow-x: auto; padding: 0.7rem 0; border-bottom: 1px solid var(--line-strong); margin-bottom: 1rem; }
.admin-tab { background: none; border: 1px solid transparent; border-radius: 999px; padding: 0.4rem 0.8rem; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.admin-tab:hover { background: #e4ece8; }
.admin-tab.is-active { background: var(--teal); color: #fff; }
.pill-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: 999px; background: rgba(255,255,255,0.25); font-size: 0.68rem; padding: 0 0.3rem; margin-left: 0.2rem; }
.admin-tab:not(.is-active) .pill-count { background: var(--danger); color: #fff; }
.admin-main h1 { font-size: 1.5rem; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 1rem; }
.admin-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem; box-shadow: var(--shadow-sm); }
.admin-stat span { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.admin-stat strong { font-size: 1.5rem; color: var(--teal); }
.admin-stat small { color: var(--muted); font-size: 0.75rem; }
.admin-stat.accent { background: var(--warn-soft); border-color: #ecd9a8; }
.admin-stat.accent strong { color: var(--warn); }
.admin-grid-2 { display: grid; gap: 0.8rem; }
.report-list { display: grid; gap: 0.6rem; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.report-head small { color: var(--muted); font-size: 0.75rem; }
.report-reason { margin-bottom: 0.6rem; font-size: 0.88rem; }
.report-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.admin-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 560px; }
.admin-table th, .admin-table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { background: var(--surface-2); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td small { display: block; color: var(--muted); font-size: 0.72rem; }
.admin-table select { font: inherit; font-size: 0.82rem; padding: 0.3rem 0.4rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.species-list { display: grid; gap: 0.2rem; max-height: 520px; overflow: auto; }
.species-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.species-row:last-child { border-bottom: 0; }
.species-row small { display: block; color: var(--muted); font-size: 0.72rem; }
.species-row-actions { display: flex; align-items: center; gap: 0.3rem; flex: 0 0 auto; }

/* Prose */
.prose { padding: 1.2rem; }
.prose h2 { font-size: 1.05rem; margin-top: 1.2rem; color: var(--teal); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); font-size: 0.9rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin: 0.6rem 0 1rem; }
.table th, .table td { border: 1px solid var(--line); padding: 0.45rem 0.55rem; text-align: left; }
.table th { background: var(--surface-2); }

/* Map marks */
.map-pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.25); }
.map-pin span { transform: rotate(45deg); font-size: 0.62rem; font-weight: 800; color: #fff; }
.map-pin-private { background: #7c5cd6; }
.map-pin-public { background: var(--teal-3); }
.map-pin-approx { background: var(--accent); }
.map-pin-catch { background: var(--warn); }

/* Error */
.error-page { text-align: center; max-width: 460px; margin: 4rem auto; padding: 1rem; }
.error-page .hero-actions { justify-content: center; }

/* Responsive */
@media (min-width: 560px) {
    .field-grid { grid-template-columns: repeat(2, 1fr); }
    .field-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .catch-grid { grid-template-columns: repeat(3, 1fr); }
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-stat-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .score-weather { grid-template-columns: repeat(3, 1fr); }
    .weight-grid { grid-template-columns: repeat(3, 1fr); }
    .weight-input-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-layout { grid-template-columns: 1.1fr 1fr; align-items: start; }
    .profile-hero { flex-direction: row; align-items: center; }
    .map-layout { grid-template-columns: 1.6fr 1fr; }
    .spots-map { height: 560px; position: sticky; top: 78px; }
    .score-panel { grid-template-columns: 260px 1fr; }
    .stat-strip-5 { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 900px) {
    .catch-grid { grid-template-columns: repeat(4, 1fr); }
    .admin-stat-grid { grid-template-columns: repeat(6, 1fr); }
    .stat-strip-5 { gap: 0.7rem; }
    .bottom-nav { border-radius: 20px 20px 0 0; }
}

@media (max-width: 380px) {
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-strip-5 { grid-template-columns: repeat(3, 1fr); }
    .factor-row { grid-template-columns: 100px 1fr 36px; }
    .detail-list { grid-template-columns: 1fr; }
}

[hidden] { display: none !important; }

/* Profile charts */
.chart-section-head { align-items: flex-end; }
@media (max-width: 559px) {
    .chart-section-head { flex-direction: column; align-items: flex-start; }
    .chart-range { align-self: flex-start; }
}
.chart-section-head .hint { margin: 0.15rem 0 0; }
.chart-range {
    display: inline-flex;
    gap: 0.2rem;
    padding: 0.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.chip-btn {
    white-space: nowrap;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
}
.chip-btn:hover { background: var(--bg-soft); color: var(--teal); }
.chip-btn.is-active { background: var(--teal); color: #fff; }
.chart-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem; margin-bottom: 0.8rem; }
.chart-stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.8rem;
    box-shadow: var(--shadow-sm);
}
.chart-stat > span { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.chart-stat strong { display: block; font-size: 1.2rem; color: var(--teal); line-height: 1.2; margin-top: 0.15rem; }
.chart-stat small { color: var(--muted); font-size: 0.72rem; }
.chart-grid { display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin-top: 0; }
.chart-card { padding: 0.9rem; }
.chart-card .card-head { margin-bottom: 0.55rem; }
.chart-card h3 { font-size: 0.95rem; margin: 0; }
.chart-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.35rem; }
.chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.84rem;
    background: var(--surface-2);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
}
.bar-chart { padding-top: 0.2rem; }
.bar-cols {
    display: grid;
    grid-template-columns: repeat(var(--cols, 12), 1fr);
    gap: 3px;
    height: 176px;
    align-items: stretch;
    border-bottom: 1px solid var(--line-strong);
    background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #e9f1ee calc(25% - 1px), #e9f1ee 25%);
}
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.bar-value { height: 14px; font-size: 9px; font-weight: 700; color: var(--teal-2); line-height: 14px; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.bar-fill { display: block; width: 64%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #2bbd8b, var(--teal)); min-height: 0; }
.bar-label { height: 18px; padding-top: 4px; font-size: 9px; color: var(--muted); white-space: nowrap; }
.line-chart { position: relative; }
.line-chart svg { display: block; width: 100%; height: 170px; overflow: visible; }
.line-grid { stroke: #e9f1ee; stroke-width: 1; }
.line-path { fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.line-labels {
    display: grid;
    grid-template-columns: repeat(var(--cols, 12), 1fr);
    gap: 2px;
    margin-top: 0.3rem;
    font-size: 9px;
    color: var(--muted);
    text-align: center;
}
.species-bars { display: grid; gap: 0.55rem; padding: 0.2rem 0; }
.species-bar-row { display: grid; grid-template-columns: minmax(76px, 108px) 1fr 28px 56px; align-items: center; gap: 0.45rem; font-size: 0.8rem; }
.species-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-weight: 600; }
.species-bar-track { height: 10px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.species-bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-3), var(--teal)); }
.species-bar-fill.is-other { background: linear-gradient(90deg, #b9cfc7, #8fa9a0); }
.species-bar-row strong { text-align: right; font-size: 0.8rem; color: var(--teal); }
.species-bar-row small { text-align: right; font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.release-chart { display: grid; gap: 0.8rem; padding: 0.3rem 0; }
.release-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--bg-soft); }
.release-seg { display: block; height: 100%; }
.release-kept { background: linear-gradient(90deg, var(--teal-3), var(--teal)); }
.release-released { background: linear-gradient(90deg, #f6c268, var(--accent)); }
.release-unknown { background: #c7d6d1; }
.release-legend { display: grid; gap: 0.35rem; }
.release-legend-row { display: grid; grid-template-columns: 12px 1fr 30px 38px; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--ink-soft); }
.release-legend-row strong { text-align: right; color: var(--teal); }
.release-legend-row small { text-align: right; color: var(--muted); }
.release-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.release-dot.release-kept { background: var(--teal); }
.release-dot.release-released { background: var(--accent); }
.release-dot.release-unknown { background: #c7d6d1; }
.chart-note { margin-top: 0.6rem; }

@media (min-width: 560px) {
    .chart-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 760px) {
    .chart-grid { grid-template-columns: repeat(2, 1fr); }
}

.chart-range { max-width: 100%; overflow-x: auto; }
.bar-cols.is-single .bar-fill { max-width: 64px; }
.bar-cols.is-single .bar-label { font-size: 11px; }

/* Precise Fishing Score donut */
.score-donut { position: relative; width: 120px; height: 120px; flex: 0 0 auto; }
.score-donut-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.score-donut-track { fill: none; stroke: #e4ede9; stroke-width: 10; }
.score-donut-progress { fill: none; stroke-width: 10; stroke-linecap: butt; transition: stroke-dasharray 0.5s ease; }
.score-donut-ticks line { stroke: #cfdeda; stroke-width: 1; }
.score-donut-ticks line.major { stroke: #9db5ae; stroke-width: 1.6; }
.score-donut-endpoint { stroke: #ffffff; stroke-width: 2; }
.score-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.score-donut-center strong { font-size: 2rem; line-height: 1; color: var(--teal); font-weight: 800; }
.score-donut-center small { font-size: 0.68rem; color: var(--muted); }

/* Consistent vertical rhythm for standalone cards/sections */
.app-main > .card + .card,
.app-main > .section + .card,
.app-main > .card + .section {
    margin-top: 1rem;
}

/* Fishing Score page: tighter horizontal rhythm and intentional desktop layout */
body[data-page="score"] .app-main { max-width: 960px; }
.formula-card .hint { margin-top: 0.7rem; }

@media (min-width: 560px) {
    .score-panel > .score-weather,
    .score-panel > .score-note,
    .score-panel > .hint {
        grid-column: 1 / -1;
    }
}

@media (min-width: 760px) {
    .score-panel { grid-template-columns: 320px 1fr; }
}
