.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* Lawner base */
:root {
    --lawn: #2f7d32;
    --lawn-dark: #1f5a22;
    --ink: #1c2419;
    --muted: #5b6657;
    --bg: #f6f8f3;
    --soft: #eef4ea;
    --line: #dfe6d8;
    --danger: #b32121;
}

html, body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e3e8dd;
}

.brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--lawn-dark);
    text-decoration: none;
}

.content {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ---------- Buttons ---------- */
.button, .secondary, .danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.button { background: var(--lawn); color: #fff; }
.button:hover { background: var(--lawn-dark); }
.secondary { background: #fff; color: var(--lawn-dark); border-color: var(--line); }
.secondary:hover { border-color: var(--lawn); }
.danger { background: var(--danger); color: #fff; }
.danger:hover { background: #8f1b1b; }
.button:disabled, .secondary:disabled, .danger:disabled { opacity: 0.55; cursor: not-allowed; }
.secondary.small { min-height: 36px; padding: 0.35rem 0.8rem; font-size: 0.9rem; }

.button-big {
    display: flex;
    width: 100%;
    font-size: 1.1rem;
    min-height: 52px;
    margin: 0.5rem 0 1rem;
}

button.link {
    margin-left: 0.75rem;
    border: 0;
    background: none;
    color: var(--lawn);
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
}
.icon-button:hover { background: var(--soft); border-color: var(--line); }
.icon-button:disabled { opacity: 0.4; }

a { color: var(--lawn-dark); }

/* ---------- Layout helpers ---------- */
h1 { font-size: 1.6rem; margin: 0.25rem 0 0.5rem; }
h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
h3 { font-size: 1rem; margin: 0.75rem 0 0.5rem; }
.lead { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; margin: 1rem 0; }
.step { color: var(--lawn); font-weight: 600; margin: 0; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }

.row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
    margin: 0 0 1rem;
}

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.page-head p { margin: 0 0 0.5rem; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 0.6rem;
}
.section-head h2 { margin: 0; }

.list { list-style: none; padding: 0; }
.list.card { padding: 0 1rem; }
.list > li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }

.alert {
    background: #fdecec;
    border: 1px solid #f3c1c1;
    color: #7a1616;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    margin: 0 0 1rem;
}
.success {
    background: #e8f5e9;
    border: 1px solid #b9dfbb;
    color: var(--lawn-dark);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    margin: 0 0 1rem;
}

.empty { text-align: center; padding: 1.5rem 1rem; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend, .field > .label { font-weight: 600; font-size: 0.95rem; padding: 0; }
.field small { font-weight: 400; color: var(--muted); }
.field-error { color: var(--danger); font-size: 0.9rem; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0.4rem 0 0; }

input:not([type=file]), select, textarea {
    font: inherit;
    padding: 0.6rem 0.7rem;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    box-sizing: border-box;
    width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
    outline: 2px solid var(--lawn);
    outline-offset: 1px;
}
.section-head select { width: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

.segmented { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.segmented button {
    min-width: 44px;
    min-height: 44px;
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
    cursor: pointer;
}
.segmented button.selected { background: var(--lawn); border-color: var(--lawn); color: #fff; font-weight: 600; }

.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
@media (max-width: 380px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
.type-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 0.4rem;
    min-height: 84px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
}
.type-button:hover { border-color: var(--lawn); }
.type-button.selected { background: var(--soft); border: 2px solid var(--lawn); font-weight: 600; }
.type-emoji { font-size: 1.7rem; line-height: 1; }

.file-button { position: relative; overflow: hidden; align-self: flex-start; }
.file-button input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; text-align: center; }
.stat-value { font-size: 1.4rem; font-weight: 700; color: var(--lawn-dark); }
.stat-label { font-size: 0.8rem; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { background: var(--soft); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.85rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.6rem; }
.timeline-icon {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.timeline-body { flex: 1; min-width: 0; }
.timeline-title { display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.amount { background: var(--soft); border-radius: 6px; padding: 0 0.4rem; font-size: 0.9rem; }
.note { margin: 0.4rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.thumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; background: var(--soft); }
.thumb-edit { position: relative; }
.thumb-placeholder {
    width: 72px; height: 72px; border-radius: 8px; background: var(--soft);
    font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-align: center; padding: 0.2rem; box-sizing: border-box; overflow-wrap: anywhere;
}
.thumb-remove {
    position: absolute; top: -6px; right: -6px;
    width: 24px; height: 24px; border-radius: 50%;
    border: 0; background: var(--ink); color: #fff; cursor: pointer; line-height: 1;
}

.danger-zone { border-color: #f3c1c1; }

@media (max-width: 520px) {
    .content { padding: 1rem 0.75rem 3rem; }
    h1 { font-size: 1.4rem; }
}

/* =========================================================
   Fas 2 — forum, notiser, moderering
   ========================================================= */

/* ---------- Top bar & nav ---------- */
.topbar { flex-wrap: wrap; position: sticky; top: 0; z-index: 50; }
.mainnav { display: flex; gap: 0.25rem; flex: 1; }
.mainnav a {
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}
.mainnav a:hover { background: var(--soft); }
.mainnav a.active { background: var(--soft); color: var(--lawn-dark); font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 600px) {
    .mainnav { order: 3; flex-basis: 100%; overflow-x: auto; }
    .topbar-right .user-name { display: none; }
}

.suspended-banner {
    background: #fff4e0;
    border-bottom: 1px solid #f0d49a;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.9rem;
}
.notice {
    background: #f1f3ee;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    margin: 0 0 1rem;
}

/* ---------- Bell & dropdown ---------- */
.bell { position: relative; }
.bell .icon-button { position: relative; }
.badge-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}
.dropdown-backdrop { position: fixed; inset: 0; z-index: 60; }
.dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: min(360px, calc(100vw - 1.5rem));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 61;
    overflow: hidden;
}
.dropdown-head { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.dropdown > p { padding: 0 1rem; }
.dropdown-foot { display: block; padding: 0.7rem 1rem; text-align: center; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.notif-list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.notif-list li + li { border-top: 1px solid var(--line); }
.notif {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 0;
    background: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.notif:hover { background: var(--soft); }
.unread { background: #f3f9ef; }
.unread .notif span:first-child, .notif-page .unread a { font-weight: 600; }
.notif-page li a { text-decoration: none; color: var(--ink); }

/* ---------- Toasts ---------- */
.toasts {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
    width: min(480px, calc(100vw - 1.5rem));
}
.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--ink);
    color: #fff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.toast a { color: #fff; flex: 1; }
.toast span { flex: 1; }
.toast-close { border: 0; background: none; color: #fff; font-size: 1.2rem; cursor: pointer; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20, 30, 18, 0.45); z-index: 80; }
.modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100vw - 1.5rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.25rem 1.25rem;
    z-index: 81;
    box-sizing: border-box;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.modal-head h2 { margin: 0; }
.radio-list { display: flex; flex-direction: column; gap: 0.35rem; }
.radio { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 400; }
.radio input { width: auto; min-height: 0; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-open { background: #fff4e0; color: #7a4d00; }
.badge-solved { background: #e3f3e4; color: var(--lawn-dark); }
.badge-expert { background: #e6eefc; color: #1d3f8a; }
.badge-followup { background: #efe8fb; color: #4b2a8a; }
.badge-hidden { background: #fdecec; color: #7a1616; }
.badge-pinned { background: #fff0c2; color: #6b4b00; }
.badge-premium { background: #1f5130; color: #fff; }

/* ---------- Premium & konto (fas 4) ---------- */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1rem 0; }
.plan { display: flex; flex-direction: column; gap: 0.5rem; }
.plan.featured { border: 2px solid var(--lawn-dark); }
.plan .price { font-size: 1.6rem; font-weight: 700; }
.plan ul { padding-left: 1.1rem; margin: 0; }
.site-footer { margin: 3rem auto 1.5rem; max-width: 960px; padding: 0 1rem; font-size: 0.85rem; color: #666;
    display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.site-footer a { color: inherit; }
.author { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.author a { font-weight: 600; text-decoration: none; }

/* ---------- Forum list ---------- */
.search { display: flex; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
.search input { flex: 1; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.4rem; margin-bottom: 0.5rem; }
.chip-button {
    white-space: nowrap;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 36px;
}
.chip-button.selected { background: var(--lawn); border-color: var(--lawn); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.filters select { width: auto; flex: 1 1 140px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin: 1rem 0; }

.thread-card { display: flex; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.thread-card:hover { border-color: var(--lawn); }
.thread-card-main { flex: 1; min-width: 0; }
.thread-card h3 { margin: 0.35rem 0 0.25rem; font-size: 1.05rem; }
.thread-card-meta { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.thread-card-meta a { text-decoration: none; }
.excerpt {
    margin: 0 0 0.4rem;
    color: var(--muted);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.thread-card-foot { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.author-name { font-weight: 600; }
.thread-card-side { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex: 0 0 auto; }
.thread-card-side img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.answer-count { text-align: center; line-height: 1.1; color: var(--lawn-dark); }
.answer-count strong { display: block; font-size: 1.2rem; }
.answer-count span { font-size: 0.75rem; }
.answer-count.none { color: var(--muted); }

/* ---------- Thread ---------- */
.section-title { margin: 1.5rem 0 0.6rem; }
.question h1 { margin-top: 0.4rem; }
.post-meta { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.body-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; background: var(--soft); }
.post-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; margin-top: 0.75rem; }
.post-actions button.link { margin-left: 0; }
.mod-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--line);
}
.mod-actions button.link { margin-left: 0; color: var(--danger); }

.post { display: flex; gap: 0.75rem; }
.post-side { flex: 0 0 44px; }
.post-main { flex: 1; min-width: 0; }
.post-followup { border-left: 4px solid #8b6fd0; background: #fbf9ff; }
.post-accepted { border: 2px solid var(--lawn); background: #f5fbf3; }
.post-hidden { opacity: 0.75; border-style: dashed; }
.vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 44px;
    padding: 0.35rem 0;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}
.vote span { font-weight: 700; font-size: 1rem; color: var(--ink); }
.vote.voted { background: var(--lawn); border-color: var(--lawn); color: #fff; }
.vote.voted span { color: #fff; }
.vote.static { cursor: default; border-color: transparent; background: transparent; }
.flash { animation: flash 2s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 4px rgba(47, 125, 50, 0.45); } to { box-shadow: none; } }

.reply-form h2 { margin: 0; }

/* ---------- Zone snapshot ---------- */
.snapshot {
    background: var(--soft);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin: 0.75rem 0 1rem;
}
.snapshot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.snapshot-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.4rem 1rem; margin: 0.6rem 0 0; }
.snapshot-facts dt { font-size: 0.75rem; color: var(--muted); }
.snapshot-facts dd { margin: 0; font-weight: 600; font-size: 0.92rem; }
.snapshot h4 { margin: 0.75rem 0 0.3rem; font-size: 0.85rem; }
.snapshot-checkins { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
.snapshot .amount { background: #fff; }

/* ---------- Forms (forum) ---------- */
.counter { align-self: flex-end; font-size: 0.8rem; color: var(--muted); }
.counter.under { color: #a05a00; }
.file-button.disabled { opacity: 0.6; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.timeline-actions { display: flex; flex-direction: column; gap: 0.2rem; }

/* ---------- Profile, moderation, rules ---------- */
.stat-row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) { .stat-row-4 { grid-template-columns: repeat(2, 1fr); row-gap: 0.75rem; } }
.report h3 { margin: 0.4rem 0; font-size: 1rem; }
.excerpt-quote {
    margin: 0.5rem 0;
    padding: 0.5rem 0.8rem;
    border-left: 3px solid var(--line);
    background: #fafbf8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.prose { line-height: 1.6; }
.prose h2 { margin-top: 1.75rem; }
.prose li { margin-bottom: 0.4rem; }

/* =========================================================
   Fas 3 — årsplan, väder, kunskapsbank, verktyg
   ========================================================= */
.mainnav a { white-space: nowrap; }

/* ---------- Plan ---------- */
.task { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.6rem; }
.task-icon {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.task-body { flex: 1; min-width: 0; }
.task-title { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.task-why { margin: 0.35rem 0 0; }
.task-now { border: 2px solid var(--lawn); background: #f7fbf5; }
.task-now .task-icon { background: var(--lawn); }
.task-done { opacity: 0.75; }
.chip.small { font-size: 0.75rem; padding: 0.1rem 0.5rem; }
.small-button { min-height: 38px; padding: 0.4rem 0.9rem; font-size: 0.92rem; }
.empty-small p { margin: 0; }
details.soon, details.done-tasks { margin: 0.5rem 0 1rem; }
details > summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem 0;
    color: var(--lawn-dark);
}
.fallback { display: flex; gap: 0.5rem; align-items: flex-start; }

.season-timeline { list-style: none; padding: 0; margin: 0; }
.season-timeline > li { display: grid; grid-template-columns: 90px 1fr; gap: 0.75rem; position: relative; }
.season-timeline > li::before {
    content: "";
    position: absolute;
    left: 84px;
    top: 0.4rem;
    bottom: 0;
    width: 2px;
    background: var(--line);
}
.season-month { font-weight: 700; text-transform: capitalize; color: var(--lawn-dark); padding-top: 0.9rem; }
@media (max-width: 520px) {
    .season-timeline > li { grid-template-columns: 1fr; gap: 0.25rem; }
    .season-timeline > li::before { display: none; }
    .season-month { padding-top: 0.5rem; }
}

/* ---------- Weather ---------- */
.section-head.compact { margin-top: 0; }
.small-value { font-size: 1rem; }
.growth-bar {
    height: 12px;
    margin: 0.55rem 0.5rem 0.45rem;
    border-radius: 999px;
    background: var(--soft);
    overflow: hidden;
}
.growth-bar span { display: block; height: 100%; background: linear-gradient(90deg, #9ccc65, var(--lawn)); border-radius: 999px; }
.day-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(34px, 1fr);
    gap: 2px;
    overflow-x: auto;
    margin-top: 1rem;
    padding-bottom: 0.3rem;
}
.day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.3rem 0;
    border-radius: 6px;
    font-size: 0.72rem;
}
.day.observed { background: #f1f3ee; }
.day.forecast { background: #fff; border: 1px dashed var(--line); }
.day.today { outline: 2px solid var(--lawn); }
.day-name { color: var(--muted); }
.day-temp { font-weight: 700; font-size: 0.8rem; }
.day-rain-bar { height: 36px; width: 10px; display: flex; align-items: flex-end; }
.day-rain-bar span { display: block; width: 100%; background: #4a90d9; border-radius: 2px 2px 0 0; }
.day.forecast .day-rain-bar span { background: #9cc3ec; }
.day-rain { color: #2c6aa8; min-height: 1em; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.swatch.observed { background: #f1f3ee; border: 1px solid var(--line); }
.swatch.forecast { background: #fff; border: 1px dashed var(--muted); }
.source { margin: 0.5rem 0 0; }

/* ---------- Knowledge ---------- */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.article-card { text-decoration: none; color: var(--ink); margin: 0; }
.article-card:hover { border-color: var(--lawn); }
.article-card h3 { margin: 0.3rem 0; }
.markdown h2 { font-size: 1.15rem; }
.markdown h3 { font-size: 1rem; }
.markdown table { border-collapse: collapse; width: 100%; margin: 0.75rem 0; font-size: 0.92rem; }
.markdown th, .markdown td { border: 1px solid var(--line); padding: 0.35rem 0.5rem; text-align: left; }
.markdown img { max-width: 100%; }
.markdown code { background: var(--soft); padding: 0 0.25rem; border-radius: 4px; color: inherit; }
.cta p { margin-top: 0; }
.kb-box ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

/* ---------- Calculators ---------- */
.calc h2 { margin-bottom: 0.75rem; }
.calc .segmented { margin-bottom: 0.75rem; }
.inline-number { width: 90px !important; min-height: 44px; }
.calc-result {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: var(--soft);
    font-size: 1.05rem;
}

/* ---------- Säsong och mätning (fas 5) ---------- */
.stats-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stats-grid > div { display: flex; flex-direction: column; }
.stats-grid .stat { font-size: 1.6rem; font-weight: 700; color: var(--lawn-dark); }
.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.season-hero .lead { margin-top: 0; }
figure { margin: 0; }
label.checkbox { display: flex; gap: 0.5rem; align-items: flex-start; }

/* ---------- Ikoner (design/icons.py) ---------- */
img.icon { display: inline-block; vertical-align: -0.2em; flex-shrink: 0; }
.icon-label { display: inline-flex; align-items: center; gap: 0.35em; }
