:root {
    --ink: #14333d;
    --muted: #5b7480;
    --bg: #f2f6f5;
    --card: #ffffff;
    --line: #d9e4e2;
    --teal: #0e7b6c;
    --teal-dark: #0a5a4f;
    --amber: #d97b06;
    --amber-dark: #b46504;
    /* Amberis TIKAI tur, kur virsū ir balts teksts (pogas). #d97b06 ar
       baltu dod 3.09:1 - zem WCAG prasītā 4.5:1, un mūsu pogu teksts
       (15-17 px) par "lielu tekstu" neskaitās (tam vajag 18.66 px trekno).
       #b06405 ir minimālā patumšināšana, kas iztur - 4.50:1. Praktiski tas
       ir mūsu pašu --amber-dark, tikai 4 vienības tumšāks, tāpēc tonis
       nemainās. Akcentiem (apmales, punkti, "+" poga) paliek --amber. */
    --amber-btn: #a85f04; /* turp. 346: bija #b06405 (kontrasts ar baltu 4,49 < 4,5); tagad 4,88 */
    --amber-btn-dark: #9c5703;
    --danger: #b3261e;
    --header: #0f3540;
    --radius: 10px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/*
 * hidden atribūts VIENMĒR uzvar. Pārlūka noklusējums ir tikai
 * [hidden] { display: none }, un jebkura mūsu klase ar display (.btn
 * inline-flex, .atri-zina block, .vards-zina block, .izmeru-josla flex)
 * to pārspēj - tad elements ar hidden stāv redzams. Tā jau bija uzkāpts
 * četras reizes; ar šo rindu tas vairs nevar atkārtoties.
 * Elementu, kam jārādās, JS atslēpj ar el.hidden = false, ne ar CSS.
 */
[hidden] { display: none !important; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* pilna platuma hero 50vw ietver ritjoslas platumu */
}

img { max-width: 100%; display: block; }
a { color: var(--teal); }

/* ── Top bar ─────────────────────────────── */
/* Both header bars follow the scroll as one block. z-index beats
   Leaflet's controls (~1000) so the map never overlays the header. */
.sitehead {
    position: sticky;
    top: 0;
    z-index: 1200;
}
.topbar {
    background: var(--header);
    border-bottom: 2px solid var(--amber);
    /* viewport-fit=cover: tumšā josla turpinās zem iPhone statusa joslas */
    padding-top: env(safe-area-inset-top);
}
.topbar-inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}
.brand .brand-pin { height: 32px; width: auto; }
.brand .brand-word { height: 20px; width: auto; }
.inv { filter: invert(1); }
.topnav { display: none; align-items: center; gap: 22px; }
.topnav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cfe0e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
.topnav a img { filter: invert(1); opacity: 0.75; }
.topnav a:hover, .topnav a.on { color: #fff; }
.topnav a:hover img, .topnav a.on img { opacity: 1; }
.topnav .nav-cta {
    background: var(--amber-btn);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius);
}
.topnav .nav-cta:hover { background: var(--amber-btn-dark); }
.top-logout {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}
.top-logout:hover { background: rgba(239, 68, 68, 0.3); }
.top-logout img { filter: invert(52%) sepia(74%) saturate(3500%) hue-rotate(335deg); }

/* ── Content bar (public pillars) ────────── */
.contentbar {
    background: #0b2a33;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.contentbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.contentbar-inner::-webkit-scrollbar { display: none; }
.contentbar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 11px 12px;
    color: #b9cfd1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.contentbar a img { filter: invert(1); opacity: 0.6; }
.contentbar a:hover { color: #fff; }
.contentbar a:hover img { opacity: 0.9; }
.contentbar a.on {
    color: #fff;
    border-bottom-color: var(--amber);
}
.contentbar a.on img { opacity: 1; }

@media (min-width: 700px) {
    /* safe center: centers when it fits, falls back to left-aligned
       scrolling instead of clipping the first item when it doesn't */
    .contentbar-inner { padding: 0 16px; gap: 10px; justify-content: safe center; }
    .contentbar a { padding: 12px 14px; font-size: 0.92rem; }
}

/* ── Layout ──────────────────────────────── */
.page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 16px 96px;
}
.sitefooter {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 16px 16px calc(90px + env(safe-area-inset-bottom) / 2);
}
.sitefooter a { color: var(--muted); }

h1 { font-size: 1.6rem; margin-bottom: 12px; }
h2 { font-size: 1.2rem; margin-bottom: 10px; }

.flash {
    position: fixed;
    top: calc(104px + env(safe-area-inset-top)); /* zem abām lipīgā header rindām (bloks ~96px; 700px+ ~102px) */
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 9px;
    width: max-content;
    max-width: min(92vw, 480px);
    background: #fff;
    color: #0a5a4f;
    border: 1px solid #b8dfd3;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(15, 53, 64, 0.2);
    animation: flash-in 0.3s ease, flash-out 0.5s ease 4s forwards;
}
.flash::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@keyframes flash-in {
    from { opacity: 0; transform: translate(-50%, -12px); }
}
@media (min-width: 700px) {
    .flash { top: 110px; }
}
@keyframes flash-out {
    to { opacity: 0; visibility: hidden; }
}

/* ── Sasnieguma logs (aizstāj flash-ach tostu, ko sedza lipīgā
      galvene) - paliek atvērts, līdz aizver ar X / Esc / fonu. ── */
.ach-pop {
    position: fixed;
    inset: 0;
    z-index: 2000; /* virs .sitehead (1200) */
    background: rgba(7, 26, 32, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ach-pop-card {
    position: relative;
    background: var(--card);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(4, 20, 26, 0.5);
    padding: 32px 26px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    overflow: hidden;
    animation: ach-pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes ach-pop-in {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.ach-pop-x {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #eef3f2;
    color: var(--ink);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.ach-pop-x:hover { background: var(--danger); color: #fff; }
.ach-pop-ico {
    position: relative;
    z-index: 1;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
    margin-bottom: 12px;
}
.ach-pop-ico img { filter: invert(1); }
.ach-pop-card h2 { position: relative; z-index: 1; font-size: 1.3rem; margin-bottom: 8px; }
.ach-pop-card p { position: relative; z-index: 1; color: var(--muted); margin: 0; }
.ach-pop-confetti { position: absolute; inset: 0; pointer-events: none; }
.ach-pop-confetti i {
    position: absolute;
    top: -14px;
    width: 8px;
    height: 13px;
    border-radius: 2px;
    opacity: 0;
    animation-name: ach-confetti-fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}
@keyframes ach-confetti-fall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0.1; transform: translateY(440px) rotate(560deg); }
}
.errors {
    background: #fdeceb;
    border: 1px solid #f3c2be;
    color: var(--danger);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
}

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    padding: 11px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font);
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--teal-dark); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-amber { background: var(--amber-btn); }
.btn-amber:hover { background: var(--amber-btn-dark); }
.btn-ghost {
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-ghost:hover { background: #eef3f2; }
.btn-outline {
    background: var(--card);
    color: var(--teal-dark);
    border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: #eef7f5; }
.btn-outline img { filter: invert(32%) sepia(56%) saturate(560%) hue-rotate(125deg) brightness(92%); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #8f1e18; }
.btn-big { width: 100%; justify-content: center; padding: 14px; font-size: 1.05rem; }

/* ── Sākumlapas landings (viesiem) ───────── */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pilna platuma hero: izlaužas no .page konteinera līdz ekrāna malām.
   50vw ietver ritjoslu - body overflow-x: clip norij pāris liekos px. */
.land-hero {
    background:
        linear-gradient(180deg, rgba(10, 42, 51, 0.9) 0%, rgba(10, 42, 51, 0.74) 55%, rgba(10, 42, 51, 0.5) 100%),
        url('/images/sakuma-fons.webp') center / cover no-repeat var(--header);
    color: #fff;
    margin: -20px calc(50% - 50vw) 40px;
    overflow: hidden;
}
.land-hero-in {
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 16px 0;
    display: grid;
    gap: 30px;
}
.land-hero h1 { font-size: 1.8rem; line-height: 1.25; margin-bottom: 12px; }
.land-lead { max-width: 560px; color: #d9e8e6; margin-bottom: 20px; }
.land-hero .btn-ghost { background: transparent; color: #fff; border-color: #4d7078; }
.land-hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
/* Akcijas rinda dzīvo .hero-actions iekšpusē starp abām pogām:
   mobilajā (kolonna) tā dabiski stāv pa vidu, desktopā order+basis
   to noliek pilna platuma rindā ZEM pogām. */
.land-promo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: #ffc46b;
    font-weight: 700;
    font-size: 0.95rem;
}
.land-promo .promo-arrow { flex-shrink: 0; transform: rotate(8deg); }
.land-promo .pro-pill { margin-left: 0; }
@media (min-width: 860px) {
    .land-promo { order: 3; flex-basis: 100%; margin-top: 4px; }
    .land-promo .promo-arrow { margin-left: 105px; }        /* zem amber pogas vidus */
    .land-promo .promo-txt { flex: 1 1 0; min-width: 0; }   /* blakus bultiņai; lauž tikai vārdus */
}
@media (min-width: 1100px) {
    /* Ļauj akcijas rindai aizņemt kolonnu atstarpi, pirms lauzt tekstu. */
    .land-promo { flex-basis: calc(100% + 70px); flex-shrink: 0; margin-right: -70px; }
}

.land-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 22px 0 26px;
}
/* Vienā rindā tikai tad, kad visi trīs punkti tiešām satilpst. */
@media (min-width: 1100px) {
    .land-points { flex-direction: row; gap: 20px; }
}
.land-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d9e8e6;
    font-size: 0.93rem;
    font-weight: 600;
}
.land-points img { filter: invert(1); opacity: 0.9; }
.land-hero-phone { display: flex; justify-content: center; align-items: flex-end; }
@media (max-width: 859px) {
    .land-hero-txt { text-align: center; }
    .land-hero .hero-actions { flex-direction: column; align-items: center; }
    .land-points { align-items: center; }
    .land-promo { flex-direction: column; gap: 6px; text-align: center; }
    .land-lead { margin-left: auto; margin-right: auto; }
}

.phone-frame {
    width: 240px;
    background: #0b222b;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 34px;
    padding: 9px;
    box-shadow: 0 24px 48px rgba(4, 20, 26, 0.45);
    position: relative;
    flex-shrink: 0;
}
.phone-frame img { border-radius: 26px; width: 100%; height: auto; }
.land-hero .phone-frame { margin-bottom: -84px; }

@media (min-width: 860px) {
    .land-hero {
        background:
            linear-gradient(105deg, rgba(10, 42, 51, 0.92) 0%, rgba(10, 42, 51, 0.7) 48%, rgba(10, 42, 51, 0.32) 100%),
            url('/images/sakuma-fons.webp') center / cover no-repeat var(--header);
    }
    /* Teksta kolonna platāka par telefona kolonnu: telefons ir fiksēti
       264px, tam 0.75fr pietiek ar uzviju, bet H1 tā ietilpst vienā
       rindā līdz ~1150px logam (Davis 2026-08-20 - pietrūka 1 px).
       Kad tomēr jālaužas, balance sadala rindas vienādi, nevis atstāj
       vienu vārdu karājamies. Mobilo neaiztiek - tur viss bija labi. */
    .land-hero-in { grid-template-columns: 1.25fr 0.75fr; padding: 52px 24px 0; }
    .land-hero h1 { font-size: 2.15rem; text-wrap: balance; }
    .land-hero .phone-frame { width: 264px; margin-bottom: -110px; }
}
@media (min-width: 900px) {
    .land-hero { margin-top: -26px; } /* .page augšējais padding desktopā */
}

.land-sec { margin-bottom: 40px; }
.land-sec > h2 { font-size: 1.4rem; margin-bottom: 18px; text-align: center; }

.feat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 18px;
    text-decoration: none;
    color: var(--ink);
    text-align: center;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.feat-card:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 51, 61, 0.08);
}
.feat-card .fi {
    filter: invert(32%) sepia(56%) saturate(560%) hue-rotate(125deg) brightness(92%);
    margin: 0 auto 12px;
}
.feat-card h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}
.feat-card p { color: var(--muted); font-size: 0.92rem; }

.promo-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 10px;
    scrollbar-width: none;
}
.promo-strip::-webkit-scrollbar { display: none; }
.promo-phone {
    flex: 0 0 auto;
    margin: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.phone-sm { width: 218px; }
.promo-phone figcaption {
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
    max-width: 230px;
}
@media (min-width: 860px) {
    .promo-strip { justify-content: center; overflow: visible; }
}

.step-grid { list-style: none; display: grid; gap: 14px; }
@media (min-width: 760px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }
.step-grid li {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 18px;
    text-align: center;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--amber);
    color: #fff;
    font-weight: 800;
    margin-bottom: 12px;
}
.step-grid h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step-grid p { color: var(--muted); font-size: 0.92rem; }

.land-privacy {
    background: #e5f1ee;
    border: 1px solid #cfe3de;
    border-radius: var(--radius);
    padding: 30px 22px;
    text-align: center;
    margin-bottom: 40px;
}
.land-privacy img {
    margin: 0 auto 10px;
    filter: invert(32%) sepia(56%) saturate(560%) hue-rotate(125deg) brightness(92%);
}
.land-privacy h2 { font-size: 1.3rem; margin-bottom: 8px; }
.land-privacy p { color: #3f5a66; max-width: 540px; margin: 0 auto; }

.hub-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
.hub-link {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.15s;
}
.hub-link:hover { border-color: var(--teal); }
.hub-link > img {
    filter: invert(32%) sepia(56%) saturate(560%) hue-rotate(125deg) brightness(92%);
    margin-top: 2px;
    flex-shrink: 0;
}
.hub-txt { display: flex; flex-direction: column; gap: 2px; }
.hub-txt > span { color: var(--muted); font-size: 0.88rem; }

.land-faq { max-width: 760px; margin-left: auto; margin-right: auto; }
.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    padding: 14px 16px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--teal);
    font-weight: 700;
    line-height: 1;
    transition: transform 0.15s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 16px 14px; color: var(--muted); }

/* ── Aizverams padoms (js/padoms.js) ─────── */
.padoms {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #eef5f3;
}
.padoms[hidden] { display: none; }
.padoms > img { flex-shrink: 0; margin-top: 2px; }
.padoms-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.padoms-txt strong { font-size: 0.95rem; }
.padoms-txt span { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.padoms-x {
    flex-shrink: 0;
    margin: -4px -4px 0 auto;
    padding: 4px 8px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}
.padoms-x:hover { background: #dde9e6; color: var(--ink); }

/* ── Ceļvedis (ielogotā sākums) ──────────── */
/* Ielogotajam ceļvedis stāv ZEM plūsmas un "Ielādēt vēl" pogas, tāpēc
   augšā vajag atstarpi - citādi virsraksts pielīp pogai. */
.celvedis { margin: 34px 0 30px; }
.celvedis h2 { margin: 0 0 14px; }
.celvedis-rezgis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
.celvedis-karts {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--card);
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(15, 53, 64, 0.05);
    transition: box-shadow 0.15s, transform 0.15s;
}
.celvedis-karts:hover {
    box-shadow: 0 6px 18px rgba(15, 53, 64, 0.14);
    transform: translateY(-2px);
}
.celvedis-karts img {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 5;
    object-fit: cover;
    display: block;
}
.celvedis-sat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 15px 15px;
}
.celvedis-sat strong { font-size: 1.02rem; }
.celvedis-sat > span { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* ── "Neatrodi savējo?" ieteikumu kaste ──── */
.ieteikums {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--card);
    margin-top: 30px;
    box-shadow: 0 1px 3px rgba(15, 53, 64, 0.05);
}
.ieteikums-bilde {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 4;
    object-fit: cover;
    display: block;
}
.ieteikums-sat { padding: 20px; }
.ieteikums-sat h2 { margin: 0 0 8px; font-size: 1.25rem; }
.ieteikums-sat > p { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; }
.ieteikums-veidi { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ieteikums-veids input { position: absolute; opacity: 0; pointer-events: none; }
.ieteikums-veids span {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ieteikums-veids input:checked + span {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}
.ieteikums-veids input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.ieteikums-rinda { display: flex; gap: 10px; max-width: 460px; }
.ieteikums-rinda input {
    flex: 1;
    min-width: 0;
    font-family: var(--font);
    font-size: 1rem;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
}
.ieteikums-rinda input::placeholder { color: #9db2ac; }
.ieteikums-rinda input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(14, 123, 108, 0.16);
}
@media (min-width: 900px) {
    .ieteikums { flex-direction: row; align-items: stretch; }
    .ieteikums-bilde { width: 340px; aspect-ratio: auto; height: auto; flex-shrink: 0; }
    .ieteikums-sat { padding: 24px 28px; }
}

/* ── Feed ────────────────────────────────── */
/* Plūsmas virsraksts: centrēts, soli lielāks par parasto h2 (kā .land-sec)
   un ar īsu dzintara pasvītru - tas pats akcents, ko lieto navigācijas
   aktīvā cilne. Fonts paliek lapas pamata. */
.feed-title {
    margin-bottom: 14px;
    text-align: center;
    font-size: 1.45rem;
    letter-spacing: 0.01em;
}
.feed-title::after {
    content: '';
    display: block;
    width: 46px;
    height: 3px;
    border-radius: 2px;
    background: var(--amber);
    margin: 8px auto 0;
}
.feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}
/* Tablet band: two cards per row instead of one oversized column. */
@media (min-width: 700px) and (max-width: 899px) {
    .feed {
        max-width: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.card-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 14px 16px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--teal); }
.meta { color: var(--muted); font-size: 0.88rem; }
.meta a { color: var(--muted); }
.pager { display: flex; gap: 12px; margin-top: 20px; }
#plusmasPager { justify-content: center; }

.empty {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    max-width: 640px;
}
.empty p { margin-bottom: 14px; color: var(--muted); }
.plusmas-filtrs ~ .empty { margin: 0 auto; }

/* ── Forms ───────────────────────────────── */
.form { max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.form label { font-weight: 600; font-size: 0.92rem; display: flex; flex-direction: column; gap: 6px; }
.form input, .form select, .form textarea, .dr-mekle input, .mekle-combo input {
    font-family: var(--font);
    font-size: 1rem;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form input::placeholder, .form textarea::placeholder, .dr-mekle input::placeholder, .mekle-combo input::placeholder { color: #9db2ac; }
.form input:focus, .form select:focus, .form textarea:focus, .dr-mekle input:focus, .mekle-combo input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(14, 123, 108, 0.16);
}
.form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b7480' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--teal); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row > * { min-width: 0; }

.panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    box-shadow: 0 1px 3px rgba(15, 53, 64, 0.05);
}
.panel-head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.panel-head .wx-btn { align-self: stretch; justify-content: center; }
.wx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wx-grid > label:nth-child(5) { grid-column: 1 / -1; }
.panel-head h2 {
    font-size: 1.3rem;
    margin: 0;
    background: linear-gradient(120deg, var(--header), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.panel-head p { color: var(--muted); font-size: 0.84rem; margin: 0; }
.panel-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e4f1ee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.panel-icon img { filter: invert(32%) sepia(56%) saturate(560%) hue-rotate(125deg) brightness(92%); }
.log-grid { display: flex; flex-direction: column; gap: 16px; }

.log-hero {
    position: relative;
    background: linear-gradient(150deg, var(--header), var(--teal-dark));
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.log-hero h1 { color: #fff; font-size: 1.45rem; margin: 0 0 2px; }
.log-hero p { color: #cfe3e0; font-size: 0.92rem; }
.log-hero > img { flex-shrink: 0; width: 56px; height: auto; }
/* Atpakaļ-saite labot-lomu hero (gaišs teksts uz tumšā gradienta) */
.log-hero-back {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}
.log-hero-back:hover { background: rgba(255, 255, 255, 0.16); }
.hero-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.hero-badge img {
    width: 48px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.65));
}
.hero-badge span {
    color: #8fd4ff;
    font-weight: 800;
    font-size: 0.72rem;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
    white-space: nowrap;
}

.lbl { display: flex; align-items: center; gap: 6px; }
.pts-chip {
    display: inline-block;
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    border-radius: 20px;
    padding: 1px 8px;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
    vertical-align: middle;
    white-space: nowrap;
}
.pts-chip.pts-req {
    background: transparent;
    color: #2563eb;
    border: 1.5px solid #38bdf8;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}
.gps-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gps-pill,
.pro-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    color: #fff;
    border-radius: 999px;
    padding: 3px 8px;
    vertical-align: middle;
    white-space: nowrap;
    margin-left: 5px;
}
.gps-pill {
    background: linear-gradient(165deg, #7cb6fc 0%, #2563eb 55%, #1d4ed8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 4px rgba(37, 99, 235, 0.45);
}
.pro-pill {
    background: linear-gradient(165deg, #fcd34d 0%, #d97706 55%, #b45309 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 4px rgba(217, 119, 6, 0.45);
}
.pro-pill[hidden] { display: none; }
.pts-hint.warn { color: var(--amber-dark); font-weight: 600; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 600; font-size: 0.92rem; }
.unit { display: block; position: relative; }
.unit::after {
    content: attr(data-unit);
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}
.unit input { padding-right: 52px; }
.unit-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    background: #eef3f2;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 10px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--teal-dark);
    cursor: pointer;
}
.unit-toggle:hover { background: #e2ecea; }
/* Laika rinda nedrīkst pārplūst pāri Datuma laukam. Bīstamākais bija .tz-tag
   (GMT+X, white-space:nowrap): flex elements, kas NEVAR sarukt, tāpēc rindas
   min-content bija platāks par kolonnu visur, kur dzinējs zīmē platākus
   <select> laukus. Chrome tos zīmē šauri un problēmu nerāda, iOS Safari -
   platāk (Davis, iPhone 12 Pro Max). Risinājums: flex-wrap, lai GMT birka
   aizlec uz nākamo rindu, nevis pārplūst, + min-width 0 konteineram, un
   selektiem īsts grīdas platums, lai tie nesaspiestos līdz nelasāmam. */
.time-selects { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.form .time-selects select {
    flex: 1 1 56px;
    min-width: 56px;
    padding-left: 9px;
    padding-right: 24px;
    background-position: right 7px center;
    text-align: center;
}
.time-colon { flex: 0 0 auto; }
.tz-tag { flex: 0 1 auto; }
.time-colon { font-weight: 700; color: var(--muted); }
.tz-tag { color: var(--muted); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.row-time { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.form label > .pts-chip { align-self: flex-start; }

.upload {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px dashed #b9cdc9;
    border-radius: var(--radius);
    background: #fbfdfc;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.upload:hover { border-color: var(--teal); background: #f4faf8; }
.upload.has { border-style: solid; border-color: var(--teal); background: #f2f9f7; }
.upload input { display: none; }
.upload-ico {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef5f3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.upload-ico img { filter: invert(32%) sepia(56%) saturate(560%) hue-rotate(125deg) brightness(92%); }
.upload-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.upload-text strong { font-size: 0.92rem; }
.upload-text small {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-preview {
    display: none;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.photo-preview.show { display: block; }

/* Foto fokusa izvēle: aplītis uz foto = vieta, ap kuru kadrētie skati
   (sākuma kartītes, saraksti, kartes popupi) centrēsies. Skata attēls
   NAV kadrēts (dabīgā proporcija) - aplīša vieta 1:1 atbilst attēla
   daļām, ko forma sūta kā photo_fx/photo_fy. */
.foto-fokuss { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.foto-fokuss[hidden] { display: none; } /* display:flex citādi uzvar hidden atribūtu */
.fokusa-bloks { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fokusa-skats { position: relative; flex: 0 1 300px; min-width: 0; touch-action: none; cursor: crosshair; }
.fokusa-skats img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: fill;
    border-radius: 10px;
    border: 1px solid var(--line);
}
.fokusa-punkts {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 2px var(--teal), 0 2px 10px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none; /* velk pa visu skatu, aplītis tikai rāda vietu */
}
.fokusa-blakus { flex: 1 1 150px; max-width: 190px; display: flex; flex-direction: column; gap: 8px; }
.fokusa-mini {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}
/* Ēsmu/kastes kadri ir platie (58x36, 84x56, 200x105) - mini rāda to pašu */
.fokusa-mini-plats { aspect-ratio: 8 / 5; }
.fokusa-padoms { color: var(--muted); font-size: 0.85rem; margin: 0; }

.privacy-cards { display: flex; flex-direction: column; gap: 8px; }
.pcard {
    position: relative;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.pcard input { position: absolute; opacity: 0; pointer-events: none; }
.pcard > img { filter: invert(45%) sepia(12%) saturate(700%) hue-rotate(155deg) brightness(95%); }
.pcard span { display: flex; flex-direction: column; gap: 1px; align-items: center; }
.pcard strong { font-size: 0.92rem; }
.pcard small { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.pcard:hover { border-color: #a9c4bf; }
.pcard:has(input:checked) {
    border-color: var(--teal);
    box-shadow: inset 0 0 0 1px var(--teal);
    background: #f2f9f7;
}
.pcard:has(input:checked) > img { filter: invert(32%) sepia(56%) saturate(560%) hue-rotate(125deg) brightness(92%); }
.pcard:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }

.submit-bar { display: flex; justify-content: center; margin-top: 4px; }
.submit-bar .btn-big { box-shadow: 0 6px 16px rgba(217, 123, 6, 0.25); }
.pts-tag {
    background: rgba(255, 255, 255, 0.24);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.88rem;
}
.pts-hint {
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
    margin-top: 8px;
}

/* ── Levels & achievements ───────────────── */
.ach-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.ach-tab {
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 7px 16px;
    cursor: pointer;
}
.ach-tab.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.ach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}
.ach-grid[hidden] { display: none; }
.ach-empty { color: var(--muted); grid-column: 1 / -1; }
.ach {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    opacity: 0.55;
}
.ach.got { opacity: 1; border-color: var(--teal); background: #f2f9f7; }
.ach-medal {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf1f4;
    border: 1px solid var(--line);
    margin-bottom: 4px;
}
.ach.got .ach-medal {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
}
.ach.got .ach-medal img { filter: invert(1); }
.ach.ach-daily { opacity: 1; border-color: #38bdf8; box-shadow: 0 0 10px rgba(56, 189, 248, 0.25); }
.ach.ach-daily.got { background: #f0f8ff; }
.ach.ach-daily .ach-medal { background: transparent; border: 0; box-shadow: none; }
.ach.ach-daily .ach-medal img { width: 46px; height: 46px; filter: grayscale(1); opacity: 0.8; }
.ach.ach-daily.got .ach-medal img { filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7)); opacity: 1; }
.ach.ach-daily .ach-pts { color: #2563eb; }
.ach strong { font-size: 0.9rem; }
.ach small { color: var(--muted); font-size: 0.78rem; }
.ach-pts { color: var(--amber-dark); font-size: 0.78rem; font-weight: 700; }

/* ── Species combobox ────────────────────── */
.combo-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 0.92rem;
}
.combo-field > label { flex-direction: row !important; align-items: center; gap: 6px; }
.combo { position: relative; }
.combo-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    z-index: 500;
}
.combo-list li {
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 400;
}
.combo-list li:hover, .combo-list li.active { background: #e8f2f0; }
.combo-list li.combo-typo {
    color: var(--amber-dark);
    font-weight: 700;
    border-bottom: 1px solid var(--line);
}
.combo-list li.combo-add {
    color: var(--teal-dark);
    font-weight: 600;
    border-top: 1px solid var(--line);
}
/* Kataloga rindas veids ("Ezers", "Upe") - blāvāks, pa labi no nosaukuma */
.combo-veids {
    float: right;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
    padding-left: 8px;
}
.combo-note {
    color: var(--amber-dark);
    font-size: 0.85rem;
    font-weight: 400;
}
/* "Katalogā vēl X" - informatīva beigu rinda, ne izvēle */
.combo-list li.combo-vel {
    color: var(--muted);
    font-size: 0.82rem;
    cursor: default;
    border-top: 1px dashed var(--line);
}
.combo-list li.combo-vel:hover { background: none; }
.field-hint {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 400;
}

/* ── Bait photo on catch page ────────────── */
.bait-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 16px;
}
.bait-strip img {
    width: 200px;
    height: 105px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.bait-strip p { color: var(--muted); font-size: 0.9rem; }
.bait-strip strong { color: var(--ink); }
.loc-hint { color: var(--muted); font-size: 0.88rem; }
.loc-status { color: var(--teal-dark); font-size: 0.88rem; min-height: 1.2em; }
.loc-status.loc-late { color: var(--amber-dark); font-weight: 600; }
.radio { display: flex; flex-direction: row !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
.radio input { width: auto; margin-top: 3px; }

.auth-box { max-width: 420px; margin: 20px auto 0; }
.auth-alt { margin-top: 16px; color: var(--muted); }
/* Divpakāpju pieslēgšanās (TOTP): koda lauks un noslēpuma rādīšana */
.totp-kods { letter-spacing: 4px; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.totp-noslepums {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 1.05rem;
    letter-spacing: 1px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 14px;
    user-select: all;
    overflow-wrap: anywhere;
}
.totp-piezime { font-size: 0.9rem; color: var(--muted); }
.totp-atcelt { margin-top: 10px; }
.totp-izslegt { margin-top: 14px; }
.totp-izslegt summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.totp-izslegt[open] summary { margin-bottom: 10px; }
/* Ātrā piefiksēšana (pievienot-lomu + bezsaiste) un nepabeigta loma zīmes */
.atri-forma, .bz-atri { margin: 0 0 14px; }
.atri-poga { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; }
/* "Nosaka atrašanās vietu..." - JS to atslēpj tikai pēc pogas spiediena;
   par paslēptību rūpējas globālais [hidden] noteikums faila augšā. */
.atri-zina { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.npb-chip {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--amber);
    color: #fff;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
    vertical-align: 2px;
}
.npb-cta {
    background: color-mix(in srgb, var(--amber) 12%, transparent);
    border: 1px solid var(--amber);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 14px;
}
.npb-cta p { margin: 0 0 10px; }
/* Makšķerēšanas kartes veidi (/makskeresanas-karte hero): attēls + cena +
   Pirkt poga. Dzīvo TUMŠAJĀ hero fonā, tāpēc kartītes ir gaišas, bet
   piezīme zem tām - gaiša uz tumša. */
.kartes-resgis {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    width: 100%;
    flex-basis: 100%; /* hero rindā - sava pilna rinda zem teksta */
    display: grid;
    gap: 10px;
    /* telefonā 2x2, nevis 4 viena zem otras - citādi hero izstiepjas
       gandrīz 1700 px un saturs zem tā pazūd tālu lejā */
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
}
.karte-kart {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(4, 24, 30, 0.28);
}
.karte-kart-top { border-color: var(--amber); }
.karte-attins { position: relative; display: block; }
.karte-att { width: 100%; height: auto; display: block; background: var(--bg); }
.karte-teksts {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
}
.karte-teksts h2 { margin: 0; font-size: 1rem; color: var(--ink); }
/* .page-hero p uzvarētu pēc specifiskuma (0,0,1,1) - tāpēc kartīšu
   tekstiem tumšajā hero jāpārraksta ar tikpat spēcīgu selektoru */
.page-hero .karte-teksts p { color: var(--ink); font-size: inherit; }
/* Birka guļ UZ attēla kreisās malas (nevis virsrakstā): telefonā tā
   citādi aizlauztos jaunā rindā un tā kartīte kļūtu augstāka par pārējām */
.karte-birka {
    position: absolute;
    top: 8px;
    left: 0;
    padding: 3px 9px 3px 8px;
    border-radius: 0 999px 999px 0;
    background: var(--amber);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(4, 24, 30, 0.35);
}
.page-hero .karte-teksts .karte-cena { margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; color: var(--teal); }
/* .btn ir inline-flex, tāpēc pilna platuma pogā tekstu centrē
   justify-content (text-align te neko nedara) */
.karte-poga { width: 100%; justify-content: center; text-align: center; margin-top: auto; }
.page-hero .kartes-piezime {
    flex-basis: 100%;
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: #cfe3e0;
    text-align: center;
}
.kartes-piezime a { color: #fff; }
@media (min-width: 900px) {
    .kartes-resgis { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.sazina-forma { margin: 0 auto; width: 100%; }
.notice.sazina-piezime { max-width: none; text-align: center; }
.vards-zina { display: block; margin-top: 5px; font-size: 0.85rem; font-weight: 400; }
.vards-piezime { margin: -6px 0 0; font-size: 0.85rem; font-weight: 400; color: var(--muted); }
ul.parole-prasibas {
    list-style: none;
    margin: -6px 0 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--muted);
}
.parole-prasibas li { position: relative; margin: 0 0 3px; padding-left: 20px; }
.parole-prasibas li::before { content: '•'; position: absolute; left: 5px; top: 0; }
.parole-prasibas li.pp-ok { color: var(--teal-dark); }
.parole-prasibas li.pp-ok::before { content: '✓'; left: 2px; font-weight: 700; }
.vards-ok { color: var(--teal); }
.vards-ne { color: var(--danger); }

/* ── Maps ────────────────────────────────── */
.map-full {
    height: calc(100vh - 250px);
    min-height: 380px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.map-mini {
    height: 300px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
/* Peldošā "Pievienot vietu" poga + padoms uz pašas kartes */
.karte-aploks { position: relative; }
.karte-fab {
    position: absolute;
    right: 12px;
    bottom: 26px; /* virs Leaflet autortiesību joslas */
    /* 1000 = tieši tik, cik Leaflet vadīklām (FAB ir vēlāk DOM - uzvar)
       un bottomnav (tas ir vēl vēlāk - paliek pa virsu un spiežams) */
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    border: 0;
    border-radius: 24px;
    background: var(--amber);
    color: #fff;
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(15, 53, 64, 0.3);
}
.karte-fab:hover { background: var(--amber-dark); }
.karte-fab[hidden] { display: none; }
/* "Kur es esmu?" GPS poga. Sliede pārklāj karti un klikšķus NESATVER, poga
   tajā ir lipīga zem galvenes - karte ir garāka par ekrānu, tāpēc absolūta
   poga kartes apakšā telefonā paliktu zem ekrāna malas (mērīts: btnTop 801
   pie 800px ekrāna). Zoom vadīklas ir pa kreisi, tāpēc poga stāv pa labi. */
.karte-gps-sliede {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none;
}
.karte-gps {
    position: sticky;
    top: calc(122px + env(safe-area-inset-top));
    margin: 12px;
    pointer-events: auto;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--teal);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
/* Padoma josla ir centrēta un gara - atstājam tai vietu, lai nepalien zem pogas. */
.karte-padoma-sliede { padding-right: 68px; }
.karte-gps:hover { background: var(--teal-dark); }
.karte-gps.mekle { opacity: 0.65; cursor: wait; }
.karte-gps.mekle img { animation: cmGpsGriezas 1.1s linear infinite; }
@keyframes cmGpsGriezas { to { transform: rotate(360deg); } }
/* Zilais "tu esi šeit" punkts (divIcon) + pulsējošais aplis apkārt. */
.gps-punkts { position: relative; }
.gps-punkts::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.35);
    animation: cmGpsPulss 1.8s ease-out infinite;
}
.gps-punkts::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #2563eb;
    border: 2.5px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
@keyframes cmGpsPulss {
    0%   { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .karte-gps.mekle img, .gps-punkts::before { animation: none; }
}
.karte-padoma-sliede {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none; /* klikšķi iet cauri uz karti */
}
.karte-padoms {
    position: sticky;
    top: calc(122px + env(safe-area-inset-top)); /* zem lipīgā header bloka */
    margin: 12px;
    padding: 9px 14px;
    border-radius: 8px;
    background: rgba(15, 53, 64, 0.92);
    color: #fff;
    font-size: 0.88rem;
    text-align: center;
    max-width: calc(100% - 24px);
}
.map-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.map-head h1 {
    margin-bottom: 0;
    font-size: 1.85rem;
    background: linear-gradient(100deg, var(--header) 15%, var(--teal) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.map-filterbar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.map-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px 14px;
}
.map-filter { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 0.85rem; }
.map-filter select {
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    min-width: 0;
}
.map-checks { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.map-check { display: flex; align-items: center; gap: 7px; font-size: 0.92rem; cursor: pointer; }
.map-count { color: var(--muted); font-size: 0.88rem; margin-left: auto; }
.map-filtertoggle { display: none; }
@media (max-width: 899px) {
    .map-filtertoggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: none;
        border: 0;
        padding: 0;
        font-family: var(--font);
        font-size: 1rem;
        font-weight: 700;
        color: var(--ink);
        cursor: pointer;
    }
    .map-filtertoggle-lbl { display: flex; align-items: center; gap: 8px; }
    .map-filtertoggle-lbl em { font-style: normal; color: var(--teal-dark); font-size: 0.88rem; }
    .map-filterbar.open .map-filtertoggle-caret { transform: rotate(180deg); }
    .map-filterbar:not(.open) .map-filters,
    .map-filterbar:not(.open) .map-checks { display: none; }
}
.map-note { color: var(--muted); font-size: 0.88rem; margin: 8px 0 14px; }

/* ── Bezsaistes pieraksts (/bezsaiste) ───── */
.bz-top {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--header);
    color: #fff;
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
    border-bottom: 2px solid var(--amber);
}
.bz-mode { color: #9fc3bd; font-size: 0.85rem; }
.bz-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: #f6c66b;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}
.bz-home img { filter: invert(78%) sepia(46%) saturate(463%) hue-rotate(357deg) brightness(101%); }
.bz-home:hover { text-decoration: underline; }
.bz-turpinat, .bz-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    background: #eaf4f2;
    border: 1px solid #bfded8;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 10px 0 4px;
}
.bz-turpinat[hidden], .bz-login[hidden] { display: none; }
.bz-turpinat p, .bz-login p { margin: 0; font-size: 0.92rem; }
.bz-login { background: #fdf4e6; border-color: #eed9b0; }
.bz-page { max-width: 640px; margin: 0 auto; padding: 16px; }
.bz-net { color: var(--teal-dark); font-weight: 600; font-size: 0.92rem; text-align: center; }
.bz-net.off { color: var(--amber-dark); }
.bz-form { margin-top: 8px; }
.bz-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.bz-save { align-self: flex-start; }
.bz-drafts { margin-top: 28px; }
.bz-note { color: var(--muted); font-size: 0.88rem; }
.bz-list { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bz-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
}
.bz-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bz-item span { color: var(--muted); font-size: 0.85rem; }
.bz-item .bz-err { color: #b91c1c; }
.bz-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.bz-del { color: #b91c1c; }
.bz-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* SVG pin markers (map.js pinSvg) + krāsu leģenda zem kartes */
.pin { background: none; border: none; }
.pin svg { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }

/* Vietu atzīmes - krāsains aplis ar baltu ikonu; pending = blāvāks */
.place-pin { background: none; border: none; }
.place-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}
.place-dot img { width: 16px; height: 16px; filter: invert(1); }
.place-pending .place-dot { opacity: 0.6; border-style: dashed; }
.popc-del { margin-top: 4px; }
/* Vietas galerija popupā */
.popg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.popg[hidden] { display: none; }
.popg-item { position: relative; }
.popg-item img { width: 66px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.popg-pending img { border: 1.5px dashed var(--amber); opacity: 0.75; }
.popg-del { position: absolute; top: -6px; right: -6px; margin: 0; }
.popg-del button {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #b91c1c;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.popg-add { margin-top: 4px; }

/* Leģenda + vietas poga vienā rindā zem kartes (platos ekrānos
   poga pa labi; šauros savērpjas viena zem otras) */
.map-underbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    margin: 10px 0 0;
}
.map-underbar .map-legend { margin: 0; }

/* Vietas pievienošanas forma zem kartes */
.place-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.place-form[hidden] { display: none; }
.place-fields { display: flex; flex-direction: column; gap: 10px; }
.place-fields[hidden] { display: none; }
.place-fields label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.92rem; }
.place-kinds { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.place-kinds legend { font-weight: 600; font-size: 0.92rem; padding: 0; margin-bottom: 2px; }
.place-fields .place-kinds label { flex-direction: row; align-items: center; gap: 7px; font-weight: 500; }
.place-fields input, .place-fields select {
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}
.place-btns { display: flex; gap: 8px; }
/* Foto tajā pašā formā: augšupielādes lauks (.upload no lomu formas) +
   izvēlēto sīktēlu josla (.popg, tā pati, kas vietas popupā) */
.place-foto { display: flex; flex-direction: column; gap: 8px; }
.place-fields .place-foto .upload { gap: 12px; font-weight: 500; }
@media (min-width: 900px) {
    .place-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
    .place-fields[hidden] { display: none; }
    /* Veidi vienā rindā pāri visam platumam; nosaukums + piezīme rindā
       zem tiem; foto un pogas katrs savā pilnā rindā */
    .place-kinds { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
    .place-foto, .place-btns { grid-column: 1 / -1; }
}
.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: var(--muted);
    font-size: 0.84rem;
    margin: 10px 0 0;
}
.map-legend[hidden] { display: none; }
.map-leg { display: inline-flex; align-items: center; gap: 6px; }
.map-leg svg { flex: 0 0 auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }

/* Marker popup mini card */
.popc { display: flex; flex-direction: column; gap: 4px; }
.popc-photo img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; display: block; }
.leaflet-container a.popc-title { font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none; margin-top: 4px; }
.leaflet-container a.popc-title:hover { color: var(--teal-dark); }
.popc-stats { font-size: 1.02rem; }
.popc-place { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.85rem; }
.popc-meta { color: var(--muted); font-size: 0.82rem; }
.popc-priv {
    color: var(--amber-dark, #b45309);
    font-size: 0.78rem;
    line-height: 1.35;
    border-top: 1px dashed var(--line);
    padding-top: 5px;
    margin-top: 2px;
}
.popc-baitrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
}
.popc-baitrow img { width: 52px; height: 33px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

/* Region catch list under the map */
.region-sec { margin-top: 4px; }
.region-sec h2 { margin-bottom: 12px; }

/* ── Mana kaste (tackle box) ─────────────── */
.kaste-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 6px 0 18px;
    display: grid;
    gap: 12px;
}
.kaste-field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 0.85rem; }
.kaste-field input {
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    min-width: 0;
}
/* Bezmarķes ēsmas padoms zem modeļa lauka. Šaurā ekrānā un labošanas logā
   forma ir kolonna - katrs lauks sava rinda, tāpēc padoms stāv PLŪSMĀ kā
   kartīte un neko nesabīda (peldošs tur aizsegtu Veida lauku). */
.kaste-padoms {
    margin-top: 8px;
    padding: 8px 11px;
    background: #fdf1e0;
    border: 1px solid #f0d9b8;
    border-radius: var(--radius);
    color: var(--amber-dark);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.35;
}
@media (min-width: 900px) {
    /* Desktopā pievienošanas forma ir VIENA grid rinda: plūsmā liks teksts
       stieptu modeļa šūnu un sabīdītu pārējos laukus, tāpēc te padoms kļūst
       par peldošu mākoni ar bultiņu uz lauku. Zem modeļu saraksta pēc
       z-index (JS to tāpat paslēpj, kad saraksts atveras), pointer-events:
       none - klikšķi iet cauri tam, ko mākonis pārsedz. */
    .kaste-form .kaste-padoms {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        z-index: 450;
        width: max-content;
        max-width: 280px;
        margin-top: 0;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        pointer-events: none;
    }
    .kaste-form .kaste-padoms::before {
        content: "";
        position: absolute;
        top: -6px;
        left: 20px;
        width: 10px;
        height: 10px;
        background: #fdf1e0;
        border-left: 1px solid #f0d9b8;
        border-top: 1px solid #f0d9b8;
        transform: rotate(45deg);
    }
    /* Veida padoms nāk VIRS lauka ar bultiņu uz leju - combo.js to rāda
       rakstīšanas laikā, kad zem lauka jau stāv atvērts veidu saraksts. */
    .kaste-form .kaste-padoms-augsa {
        top: auto;
        bottom: calc(100% + 10px);
    }
    .kaste-form .kaste-padoms-augsa::before {
        top: auto;
        bottom: -6px;
        border: 0;
        border-right: 1px solid #f0d9b8;
        border-bottom: 1px solid #f0d9b8;
    }
}
.kaste-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 14px;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.kaste-upload.has { border-style: solid; border-color: var(--teal); color: var(--teal-dark); }
.kaste-galvenais[hidden] { display: none; } /* display:flex citādi uzvar [hidden] */
.kaste-galvenais { display: flex; align-items: center; gap: 10px; margin: -6px 0 0; padding: 8px 10px; background: #eef6f3; border: 1px solid #cfe6df; border-radius: 8px; font-size: 0.85rem; color: var(--teal-dark); }
.kaste-galvenais img { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
/* Attēls ir saite uz pilno failu (lightbox). Lupas nozīmīte stūrī pasaka, ka
   to var atvērt lielāku - uz telefona hover/title nav, tāpēc tā ir vienmēr redzama. */
.kaste-lupa { position: relative; display: block; line-height: 0; flex: 0 0 auto; cursor: zoom-in; }
/* .kaste-galvenais img (0,1,1) pārsit vienas klases selektoru - tāpēc abas klases. */
.kaste-galvenais .kaste-lupa-ikona {
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 14px;
    height: 14px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.kaste-lupa:hover img:first-child { filter: brightness(1.06); }
/* Kastes formā modeļa attēls arī ir izvēle, ne automātika: ķeksis blakus
   sīktēlam (atzīmēts = obligātais foto izpildīts). */
.kaste-galv-izvele { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.kaste-galv-izvele input {
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
    flex-shrink: 0;
}
.kaste-foto-info { margin: -4px 0 0; color: var(--muted); font-size: 0.82rem; }
/* Modeļa attēla izvēle loma formā (inc/esmas-foto-izvele.php): tas pats
   zaļais paliktnis kā kastē, tikai ar variantu sarakstu - bilde ir
   PIEDĀVĀJUMS, ne automātika. */
.esmas-izvele {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: #eef6f3;
    border: 1px solid #cfe6df;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--teal-dark);
}
.esmas-izvele[hidden] { display: none; }
.esmas-izvele .esmas-izvele-virsraksts { font-weight: 600; }
/* Divas klases, jo .form label (0,1,1) uzliek kolonnu visiem formas
   uzrakstiem - variantu rindai jāpaliek rindai. */
.esmas-izvele .esmas-izvele-var {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    font-weight: 400;
    font-size: 0.85rem;
    cursor: pointer;
}
.esmas-izvele .esmas-izvele-var[hidden] { display: none; }
.esmas-izvele-var input {
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
    flex-shrink: 0;
}
.esmas-izvele-var img {
    width: 56px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.kaste-upload img { flex-shrink: 0; opacity: 0.7; }
.kaste-upload span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.kaste-form .btn { justify-content: center; }
/* Mobilajā ķeksis stāv tūlīt aiz foto lauka, pirms pogas; desktopā poga
   paliek 5. kolonnā un ķeksis aizņem pilnu rindu zem formas. */
.kaste-check { order: 1; }
.kaste-form > .btn { order: 2; }
.kaste-form .esma-scan { order: 3; }
.kaste-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}
.kaste-check input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
    flex-shrink: 0;
}
.kaste-check input:disabled + span { opacity: 0.6; }
.kaste-check-note {
    display: block;
    font-style: normal;
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 2px;
}
.kaste-check.on .kaste-check-note { display: none; }
.kaste-wait {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--amber-dark);
    background: #fdf1e0;
    border: 1px solid #f0d9b8;
    border-radius: 20px;
    padding: 1px 8px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}
@media (min-width: 900px) {
    .kaste-form {
        grid-template-columns: minmax(140px, 1fr) minmax(170px, 1.4fr) minmax(120px, 1fr) auto auto;
        align-items: end;
    }
    /* Desktopā forma ir VIENA rinda (zīmols|modelis|veids|foto|poga), tāpēc
       foto paskaidrojumi iet pilnā platumā tūlīt zem tās - vizuāli zem foto
       lauka, nevis iespiesti kādā kolonnā. */
    .kaste-form > .btn { order: 1; }
    /* TIEŠIE bērni: šis ir kastes formas GRID rindu kārtojums. Bez ">"
       tas pats order:2 aizlidoja arī uz loma formas kopiju (tur .field ir
       flex kolonna) un nogrūda paskaidrojumu sekcijas galā. */
    .kaste-form > .kaste-galvenais,
    .kaste-form > .kaste-foto-info { order: 2; grid-column: 1 / -1; }
    .kaste-check { order: 3; grid-column: 1 / -1; }
    .kaste-form .esma-scan { order: 4; }
}
.kaste-lbl { display: block; }
.kaste-field .combo input { width: 100%; }
.kaste-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    /* min(...,100%) - platākas kartītes uz desktopa (teksts vairs nav
       saspiests), bet uz šaura ekrāna kolonna sarūk un nepārplūst. */
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 10px;
}
.kaste-list li[hidden] { display: none; } /* filtrs: display:flex citādi uzvar [hidden] */
.kaste-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 14px;
}
.kaste-photo {
    width: 84px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.kaste-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.kaste-modelis { font-size: 0.95rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.kaste-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 7px; row-gap: 2px; font-size: 0.8rem; color: var(--muted); }
.kaste-meta > * + *::before { content: "\00B7"; margin-right: 7px; opacity: 0.6; }
.kaste-zimols { font-weight: 600; }
.kaste-rici { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.kaste-rici form { margin: 0; }
.kaste-kind { color: var(--muted); font-size: 0.8rem; }

/* Kastes filtrs + meklēšana */
.kaste-filtri { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.kaste-mekle { position: relative; display: flex; align-items: center; flex: 1 1 220px; min-width: 0; }
.kaste-mekle img { position: absolute; left: 12px; opacity: 0.5; pointer-events: none; }
.kaste-mekle input {
    width: 100%;
    font-family: var(--font);
    font-size: 1rem;
    padding: 11px 12px 11px 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
}
.kaste-mekle input::placeholder { color: #9db2ac; }
.kaste-sel {
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 11px 34px 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b7480' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    max-width: 100%;
}
.kaste-mekle input:focus, .kaste-sel:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(14, 123, 108, 0.16);
}
.kaste-notirit {
    font: inherit;
    font-size: 0.9rem;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: none;
    color: var(--muted);
    cursor: pointer;
}
.kaste-notirit:hover { background: #eef3f2; color: var(--ink); }
.kaste-skaits { margin-left: auto; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.kaste-nekas { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.kaste-nekas .kaste-notirit { margin-left: 6px; padding: 6px 12px; font-size: 0.85rem; }
@media (max-width: 560px) {
    .kaste-mekle { flex-basis: 100%; }
    .kaste-sel { flex: 1 1 45%; }
    .kaste-skaits { margin-left: 0; }
}

.kaste-pro { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
.kaste-pro .pro-pill { margin-left: 0; margin-right: 4px; }

/* ── Kastes redzamība: īpašnieka slēdzis + slēgtās kastes piezīme ───────── */
.kaste-redz { margin: 6px 0 18px; text-align: center; }
.kaste-redz-lbl {
    display: block;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 9px;
}
.kaste-redz-btns {
    display: inline-flex;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
}
.kaste-redz-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.kaste-redz-btn img { opacity: 0.7; transition: opacity 0.15s ease; }
.kaste-redz-btn:hover { background: var(--card); color: var(--ink); }
.kaste-redz-btn:hover img { opacity: 1; }
.kaste-redz-btn.active { background: var(--teal); color: #fff; box-shadow: 0 2px 8px rgba(14, 123, 108, 0.35); }
.kaste-redz-btn.active img { filter: invert(1); opacity: 1; }
.kaste-redz-note { color: var(--muted); font-size: 0.85rem; margin: 9px 0 0; }
@media (max-width: 480px) {
    .kaste-redz-btns { display: flex; flex-direction: column; border-radius: 18px; }
    .kaste-redz-btn { justify-content: center; }
}
.kaste-slegta {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}
.kaste-slegta img { opacity: 0.5; }
.kaste-slegta p { margin: 6px 0 0; }
.kaste-slegta-galvena { color: var(--ink); font-weight: 700; }

/* ── Dabas darbi (Sasniegumu panē) ───────── */
.deed-sec { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; }
.deed-count { color: var(--teal-dark); font-weight: 700; font-size: 0.9rem; }
.deed-intro { color: var(--muted); font-size: 0.9rem; margin: 4px 0 14px; }
.deed-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 6px 0 18px;
    display: grid;
    gap: 10px;
}
.deed-form .btn { justify-content: center; }
@media (min-width: 900px) {
    .deed-form {
        grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) auto auto auto;
        align-items: end;
    }
}
.deed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.deed-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    flex-wrap: wrap;
}
.deed-shots { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.deed-shots .lb { display: block; line-height: 0; }
.deed-shots img:not(.deed-arrow) { width: 84px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.deed-arrow { opacity: 0.5; }
.deed-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.deed-main strong { font-size: 0.92rem; overflow-wrap: anywhere; }
.deed-lake { color: var(--muted); font-size: 0.8rem; }
.deed-status { font-size: 0.75rem; font-weight: 700; width: fit-content; padding: 2px 8px; border-radius: 20px; }
.deed-status.wait { background: #fdf1e6; color: var(--amber-dark); }
.deed-status.ok { background: #eaf6f0; color: var(--teal-dark); }
.deed-cell { display: flex; gap: 6px; }
.deed-cell img { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; }
.esmas-q-thumb { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; }
.esmas-q-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.esmas-q-form input[name="brand"] { width: 130px; }
.esmas-q-form input[name="name"] { width: 190px; }

/* Apstiprināto modeļu tabula: galvenā attēla izvēle no lietotāju foto */
.esmas-tukss { color: var(--muted); }
.badge-cat { background: #eef1f4; color: #5b7480; }
.esmas-modeli td { vertical-align: top; }
.esmas-main-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.foto-izvele { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 220px; }
.foto-poga { margin: 0; }
.foto-thumb {
    position: relative;
    display: block;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    line-height: 0;
}
.foto-thumb img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }
.foto-thumb:hover { border-color: var(--line); }
.foto-thumb.ir-galvenais { border-color: var(--teal); }
.foto-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: #fff;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}
.foto-clear { margin: 0; }
.veids-form { margin: 0; }
.veids-sel { font-size: 0.85rem; padding: 7px 28px 7px 10px; max-width: 190px; }
.foto-papild { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 10px; }
/* Augšupielādes atvērums izskatās kā mazā gaišā poga (vienāds ar Noņemt...) */
.foto-augsup-det > summary {
    list-style: none;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-size: 0.82rem;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: none;
}
.foto-augsup-det > summary::-webkit-details-marker { display: none; }
.foto-augsup-det > summary:hover { background: #eef3f2; color: var(--ink); }
.foto-augsup-det[open] { flex-basis: 100%; }
.foto-augsup-det[open] > summary { border-color: var(--teal); color: var(--teal-dark); }
.foto-augsup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.foto-augsup input[type="file"] { font-size: 0.82rem; max-width: 210px; }
.foto-papild .foto-clear .btn { white-space: nowrap; }
/* Modeļa noņemšana no kataloga - klusa saite pie modeļa nosaukuma, nevis
   starp foto pogām (tā ir modeļa, ne attēla darbība). */
.model-remove { margin: 6px 0 0; }
.link-danger { background: none; border: 0; padding: 0; font: inherit; font-size: 0.8rem; color: var(--danger); cursor: pointer; text-decoration: underline; }
.link-danger:hover { color: #9b1c17; }
/* Zīmola/modeļa pārsaukšana - klusa "Labot nosaukumu" atvērums pie modeļa */
.model-edit { margin: 6px 0 0; }
.model-edit > summary { cursor: pointer; list-style: none; display: inline-block; font-size: 0.8rem; color: var(--teal-dark); text-decoration: underline; }
.model-edit > summary::-webkit-details-marker { display: none; }
.model-edit-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.model-edit-form input {
    font-family: var(--font);
    font-size: 0.85rem;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
}
.model-edit-form input[name="brand"] { width: 110px; }
.model-edit-form input[name="model"] { width: 180px; }
/* Kataloga meklēšana + lapošana - pie 20k modeļiem visu vienā lapā nerādām */
.esmas-meklet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.esmas-meklet input[type="search"] {
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    width: min(320px, 100%);
}
.esmas-meklet input[type="search"]:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(14, 123, 108, 0.16);
}
.lapotajs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; }
.lapotajs .btn { min-width: 34px; text-align: center; }
.lapotajs-akt {
    display: inline-block;
    min-width: 34px;
    padding: 6px 12px;
    border: 1px solid var(--teal);
    border-radius: var(--radius);
    background: var(--teal);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}
.lapotajs-dots { color: var(--muted); padding: 0 2px; }

/* ── Catch page ──────────────────────────── */
.catch-page { max-width: 640px; }
/* atpakaļ saite loma lapas augšā (turp. 338) */
.atpakal { margin: 0 0 14px; }
.atpakal .btn img { opacity: 0.75; }
.catch-photo { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 16px; }
.catch-info h1 { margin-top: 0; }
@media (min-width: 900px) {
    .catch-page.has-media { max-width: none; }
    .catch-cols.two {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        grid-template-areas:
            "photo    info"
            "comments info"
            "comments write";
        gap: 8px 28px;
        align-items: start;
    }
    .catch-cols.two .catch-zoom { grid-area: photo; margin-bottom: 0; }
    .catch-cols.two .catch-info { grid-area: info; }
    .catch-cols.two > .comments { grid-area: comments; }
    .catch-cols.two > .comment-write { grid-area: write; }
}
.catch-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin: 16px 0;
}
.catch-facts div {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
}
.catch-facts dt { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.catch-facts dd { font-weight: 700; }
/* Drukas kļūdas minējums loma lapā - redz tikai autors */
.typo-hint {
    background: #fdf6ea;
    border: 1px solid #eeddc0;
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.typo-title { margin: 0; font-weight: 700; color: var(--amber-dark); font-size: 0.9rem; }
.typo-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.typo-row { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.typo-row span { font-size: 0.92rem; }

.catch-notes {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
}
.catch-page .map-mini { margin-bottom: 16px; }
.catch-info h1,
.catch-info .meta { text-align: center; }
.catch-info .like-row { justify-content: center; }
.catch-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.catch-actions form { display: contents; }
.catch-actions .btn { min-width: 140px; justify-content: center; }
/* Telefonā (turp. 345, Davis: trim pogām Labot / Dalīties / Dzēst nepietiek vietas): pogas dala rindu
   vienādās daļās, bez min-width, šaurāks polsterējums; 2 vai 3 pogas - abos gadījumos aizpilda rindu. */
@media (max-width: 520px) {
    .catch-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
    .catch-actions .btn { min-width: 0; padding: 11px 6px; gap: 6px; font-size: 0.92rem; }
}

/* ── Profile ─────────────────────────────── */
.phero {
    position: relative;
    background: linear-gradient(150deg, var(--header), var(--teal-dark));
    border-radius: 14px;
    padding: 28px 18px 24px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.phero h1 { color: #fff; font-size: 1.35rem; margin: 12px 0 0; }
.phero-bio { color: #cfe3e0; font-size: 0.92rem; margin-top: 4px; max-width: 480px; }
.phero-level { color: #9fc6c0; font-size: 0.88rem; margin-top: 6px; }
.phero-level strong { color: #8fd4ff; text-shadow: 0 0 10px rgba(56, 189, 248, 0.6); }
.phero-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.phero-actions a, .phero-admin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}
.phero-actions a:hover, .phero-admin:hover { background: rgba(255, 255, 255, 0.22); }
/* Stūra pogas (iestatījumi, admin) pieder info slaidam - kad karte pilnībā
   pagriezta uz tērpu (.terpa-skats no js/profils.js), tās izgaist */
.phero-actions, .phero-admin { transition: opacity 0.15s ease; }
.terpa-skats .phero-actions, .terpa-skats .phero-admin { opacity: 0; pointer-events: none; }
.phero-actions img, .phero-admin img { filter: invert(1); }
.phero-admin { position: absolute; top: 12px; left: 12px; }
.phero-avatar { position: relative; width: 116px; height: 116px; }
.phero-avatar.is-own { cursor: pointer; }
.phero-avatar svg { position: absolute; inset: 0; }
.phero-photo {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 50%;
    object-fit: cover;
}
.phero-foto-saite {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    display: block;
    line-height: 0;
}
.phero-foto-saite .phero-photo { position: static; width: 100%; height: 100%; }
.phero-avbtn {
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.ring-prog { filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7)); }
.phero-initial {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    box-shadow: inset 0 -14px 24px rgba(0, 0, 0, 0.18);
}
.phero-lvl {
    position: absolute;
    bottom: -2px;
    right: -2px;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--amber);
    border: 3px solid var(--teal-dark);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.phero-mail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fcd34d;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}
.phero-mail img { filter: invert(80%) sepia(60%) saturate(500%) hue-rotate(345deg); }
/* 4 lauciņi (Lomi, Smagākais, Garākais, Sugas) - telefonā šaurāki, lai
   sarindojas vienā rindā arī 360 px platumā. */
.phero-stats { display: flex; justify-content: center; margin-top: 18px; }
.phero-stats > div { padding: 0 10px; }
.phero-stats > div + div { border-left: 1px solid rgba(255, 255, 255, 0.16); }
.phero-stats strong { display: block; color: #fff; font-size: 1.15rem; white-space: nowrap; }
.phero-stats span { color: #9fc6c0; font-size: 0.72rem; }
.phero-zinot { margin-top: 14px; }
.phero-zinot button {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.phero-zinot button:hover { color: #fff; text-decoration: underline; }
.phero-zinot img { opacity: 0.6; }
/* Varoņa kartes slaidi: 1. = profila info, 2. = makšķernieka tērps.
   Horizontāls scroll-snap (telefonā velk ar pirkstu, datorā spiež punktus);
   augstumu aktīvajam slaidam liek JS, tāpēc overflow-y hidden. */
.phero-slaidi {
    display: flex;
    /* flex-start: slaidi NEstiepjas līdz garākajam - katram paliek satura
       augstums, lai JS var nolasīt īsto un konteineru saraut īsāku */
    align-items: flex-start;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    transition: height 0.25s ease;
}
.phero-slaidi::-webkit-scrollbar { display: none; }
.phero-slaids {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
/* Tērpa slaidam gaišs paliktnis - tumšais silueta zīmējums uz tumšās
   kartes citādi pazustu */
.phero-terps-fons {
    width: min(100%, 480px);
    background: #f7fbfa;
    border-radius: 12px;
    padding: 14px 14px 18px;
}
.phero-punkti { display: flex; gap: 8px; margin-top: 14px; }
.phero-punkts {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.35);
}
.phero-punkts.aktivs { background: #fff; }
.phero-punkts:hover { background: rgba(255, 255, 255, 0.7); }
.phero-zinot button:hover img { opacity: 1; }
/* Ciļņu rinda lūst rindās pēc platuma: ~390px ekrānā 3 cilnes rindā,
   platākā ietilpst vairāk; katra cilne aug un aizpilda savu rindu. */
.pnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 18px;
}
.pnav-tab { flex: 1 1 104px; }
.pnav-tab {
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 4px 9px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
.pnav-tab img { opacity: 0.55; }
.pnav-tab span { white-space: nowrap; }
.pnav-tab.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.pnav-tab.active img { opacity: 1; filter: invert(1); }
.pnav-badge {
    display: inline-block;
    min-width: 17px;
    padding: 0 5px;
    border-radius: 10px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    margin-left: 5px;
    vertical-align: 1px;
}
.pnav-tab.active .pnav-badge { background: #fff; color: var(--teal-dark); }
.pane[hidden] { display: none; }
.sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 24px 0 12px;
}
.sec-head h2 { margin: 0; font-size: 1.15rem; }
.link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--teal-dark);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.link-btn:hover { text-decoration: underline; }
.stats-fav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 480px;
    margin: -12px 0 22px;
}
.stat-text strong { font-size: 1rem; }
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 480px;
    margin: 16px 0 22px;
}
.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 10px;
    text-align: center;
}
.stat strong { display: block; font-size: 1.25rem; }
.stat span { color: var(--muted); font-size: 0.82rem; }

/* ── Add-to-home-screen banner ───────────── */
.a2hs {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: linear-gradient(150deg, #eaf4f1, #dff0fb);
    border: 1px solid #bcd9e6;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.a2hs[hidden] { display: none; }
.a2hs > img { flex-shrink: 0; }
.a2hs-txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.a2hs-txt span { color: var(--muted); font-size: 0.88rem; }
.a2hs-btns { display: flex; align-items: center; gap: 8px; }
.a2hs-close {
    background: none;
    border: 0;
    font-size: 1.5rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.a2hs-ios { flex-basis: 100%; border-top: 1px solid #bcd9e6; padding-top: 10px; }
.a2hs-ios p { font-weight: 700; margin-bottom: 6px; }
.a2hs-ios .a2hs-piezime { margin-top: 8px; margin-bottom: 0; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.a2hs-ios ol { margin-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }

/* OAuth jaunreģistrācijas sveiciena logs (index) */
.sveiciens-fons {
    position: fixed;
    inset: 0;
    background: rgba(9, 32, 30, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    padding: 16px;
}
.sveiciens {
    position: relative;
    background: var(--card);
    border-radius: 14px;
    padding: 26px 22px 20px;
    max-width: 430px;
    width: 100%;
    text-align: center;
    box-shadow: 0 18px 50px rgba(9, 32, 30, 0.4);
}
.sveiciens > img { display: block; margin: 2px auto 0; }
.sveiciens h2 { margin: 10px 0 8px; }
.sveiciens p { margin: 0 0 10px; }
.sveiciens-aizvert {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: 0;
    font-size: 1.6rem;
    color: var(--danger);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.sveiciens-jaunumi { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.sveiciens-jaunumi form { display: flex; gap: 10px; justify-content: center; margin: 12px 0; }
.sveiciens-piezime { font-size: 0.85rem; color: var(--muted); margin: 0; }
.sveiciens-paldies { color: var(--teal-dark); font-weight: 600; margin: 4px 0; }

/* ── Kopiena ─────────────────────────────── */
.page-hero {
    background:
        linear-gradient(180deg, rgba(10, 42, 51, 0.78) 0%, rgba(10, 42, 51, 0.62) 100%),
        url('/images/sakuma-fons.webp') center 55% / cover no-repeat var(--header);
}
@media (min-width: 900px) {
    .page-hero { background-position: center 59%; } /* Davis: 59% */
}
.page-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.page-hero h1 { color: #fff; font-size: 1.45rem; margin: 0 0 2px; }
.page-hero p { color: #cfe3e0; font-size: 0.92rem; margin: 0; }
.chat-panel { margin-bottom: 22px; }
/* Makšķernieku meklēšana virs kopienas režģa */
.mekle-panelis { margin-bottom: 22px; }
.mekle-combo { width: 100%; max-width: 460px; align-self: center; }
.chat-box {
    height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 2px;
}
.chat-empty { color: var(--muted); margin: auto; }
.chat-msg { font-size: 0.94rem; line-height: 1.4; display: flex; gap: 8px; align-items: flex-start; }
.chat-msg p { display: inline; margin: 0; overflow-wrap: anywhere; }
/* padding-top centrē vārda rindu pret 26px avatāru (rinda ~20px) */
.chat-sat { flex: 1; min-width: 0; padding-top: 3px; }
.chat-av {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}
.chat-av-dzests { background: #9aa7a4; }
.chat-av-saite { flex: none; line-height: 0; border-radius: 50%; text-decoration: none; }
.dr-avatara-saite { line-height: 0; border-radius: 50%; text-decoration: none; flex: none; }
.chat-zinot { display: inline; margin-right: 6px; }
.chat-zinot button {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    vertical-align: middle;
    opacity: 0.45;
}
.chat-zinot button:hover { opacity: 1; }

/* ── Ziņošanas logs (js/zinot.js) ────────── */
.zin-pop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(7, 26, 32, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.zin-pop[hidden] { display: none; } /* display:flex citādi uzvar [hidden] */
.zin-card .form { margin-top: 0; }
.zin-card { max-height: calc(100vh - 40px); overflow-y: auto; }
.zin-card {
    position: relative;
    background: var(--card);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(4, 20, 26, 0.5);
    padding: 26px 24px 22px;
    max-width: 400px;
    width: 100%;
    animation: ach-pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.zin-card h3 { margin-bottom: 4px; padding-right: 34px; }
.zin-ievads { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.zin-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #eef3f2;
    color: var(--ink);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.zin-x:hover { background: var(--danger); color: #fff; }
.zin-saraksts { display: grid; gap: 8px; margin-bottom: 18px; }
.zin-rinda {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.92rem;
}
.zin-rinda:hover { border-color: var(--teal); background: #f2f8f7; }
.zin-rinda:has(input:checked) { border-color: var(--teal); background: #e8f2f0; }
.zin-rinda input { accent-color: var(--teal); }
.zin-pogas { display: flex; gap: 10px; }
.zk-pieteikt-rinda { margin-top: 12px; margin-bottom: 8px; color: var(--muted); font-size: 0.92rem; }

/* ── Gaidīšanas indikatori (js/gaida.js) ──── */
.gaida-josla {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    height: 3px;
    width: 30%;
    background: var(--amber);
    border-radius: 0 2px 2px 0;
    z-index: 3000;
    animation: gaida-slide 1.1s ease-in-out infinite;
}
.gaida-josla[hidden] { display: none; }
@keyframes gaida-slide {
    0% { left: -30%; width: 30%; }
    50% { width: 45%; }
    100% { left: 100%; width: 30%; }
}
.btn-gaida { pointer-events: none; opacity: 0.75; }
.btn-gaida::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: gaida-grieze 0.7s linear infinite;
}
@keyframes gaida-grieze { to { transform: rotate(360deg); } }

/* ── Avatāra kadra logs (js/profils.js) ───── */
.avkrop-skats {
    position: relative;
    width: min(260px, 100%);
    aspect-ratio: 1;
    margin: 0 auto 12px;
    overflow: hidden;
    border-radius: 10px;
    background: #10222a;
    touch-action: none;
    cursor: grab;
}
.avkrop-skats:active { cursor: grabbing; }
.avkrop-skats img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
/* "Lēca": gaišs riņķis + aptumšoti stūri rāda, kas būs avatārā */
.avkrop-maska {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 400px rgba(10, 26, 31, 0.6), inset 0 0 0 1px rgba(10, 26, 31, 0.35);
    pointer-events: none;
}
.avkrop-talummaina { display: block; margin-bottom: 16px; font-weight: 600; font-size: 0.9rem; }
.avkrop-talummaina input { width: 100%; margin-top: 6px; accent-color: var(--teal); }
.chat-user {
    font-weight: 700;
    color: var(--teal-dark);
    text-decoration: none;
    margin-right: 6px;
}
.chat-user:hover { text-decoration: underline; }
.chat-time { color: var(--muted); font-size: 0.75rem; margin-right: 8px; }
.chat-form { display: flex; gap: 8px; }
.chat-attach {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.chat-attach:hover { border-color: var(--teal); }
.chat-attach img { opacity: 0.6; }
.chat-photo { display: block; margin-top: 6px; width: fit-content; }
.chat-photo img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 10px;
    border: 1px solid var(--line);
}
.chat-form input {
    flex: 1;
    min-width: 0;
    font-family: var(--font);
    font-size: 1rem;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.chat-form input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(14, 123, 108, 0.16);
}
.chat-note { color: var(--muted); font-size: 0.9rem; }
.chat-note.warn { color: var(--amber-dark); font-weight: 600; }
.chat-rules summary { cursor: pointer; font-weight: 700; font-size: 0.88rem; color: var(--muted); }
.chat-rules ul {
    margin: 8px 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}
.wall-head { margin-top: 26px; }
.wall-tabs { display: flex; gap: 8px; }
.wall-tab {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 6px 14px;
}
.wall-tab.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.like-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 5px 12px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--muted);
    cursor: pointer;
}
.like-btn:hover { border-color: #e8a5a5; }
.like-btn.liked { color: #d64545; border-color: #f0b9b9; background: #fdf1f1; }
.like-btn.liked img { filter: invert(42%) sepia(60%) saturate(1400%) hue-rotate(325deg); opacity: 1; }
.like-btn.is-static { cursor: default; }
.like-btn img, .comment-link img { opacity: 0.7; }
.comment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}
.comment-link:hover { color: var(--teal-dark); }
.comments { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.comments h2 { margin-bottom: 12px; }
.comment-write { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.comment-write h2 { margin-bottom: 12px; }
.comment-write .comment-form { margin-top: 0; }
.comment-form .btn { align-self: center; min-width: 180px; justify-content: center; }
.comment { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.comment-head a { font-weight: 700; color: var(--teal-dark); text-decoration: none; }
.comment-edited { color: var(--muted); font-size: 0.78rem; font-style: italic; }
.comment-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.cbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--card);
    border: 1px solid var(--line);
    cursor: pointer;
    padding: 0;
}
.cbtn:hover { background: #eef3f2; }
.cbtn-danger:hover { background: #faecea; border-color: #eac6c3; }
.comment-body { margin-top: 3px; font-size: 0.95rem; overflow-wrap: anywhere; }
.comment-editform { margin-top: 8px; max-width: 100%; gap: 8px; }
.comment-editbtns { display: flex; gap: 8px; }
.comment-form { margin-top: 14px; max-width: 100%; }
.submit-wrap .publish-row { justify-content: center; margin-bottom: 12px; }

/* ── Settings & text pages ───────────────── */
.set-grid { display: grid; gap: 16px; margin-top: 18px; }
.set-grid .panel .form { margin-top: 0; }
.set-grid .btn { align-self: center; min-width: 210px; justify-content: center; }
.mail-line { text-align: center; overflow-wrap: anywhere; }
.mail-line strong { display: block; font-size: 1.02rem; }
.mail-note { color: var(--muted); font-size: 0.88rem; text-align: center; }
.panel-danger { border-color: #eac6c3; }
.panel-danger .panel-head { border-bottom-color: #f0dbd9; }
.panel-danger .panel-icon { background: #faecea; }
.panel-danger .panel-icon img { filter: invert(21%) sepia(52%) saturate(3400%) hue-rotate(347deg) brightness(90%); }
.panel-danger .panel-head h2 { background-image: linear-gradient(120deg, #7f1d1d, #b3261e); }
.panel-danger .form { max-width: 380px; width: 100%; margin: 0 auto; }
.settings-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 18px;
    max-width: 560px;
}
.settings-block p { color: var(--muted); margin-bottom: 12px; }

/* ── Guide pages (noteikumu sadaļa) ──────── */
.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    font-size: 0.82rem;
    color: var(--muted);
}
.guide-meta .pill {
    background: #e5efed;
    border-radius: 20px;
    padding: 3px 12px;
    font-weight: 600;
    color: var(--teal-dark);
}
.guide-meta .author {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.88rem;
}
.guide-meta .author img { border-radius: 50%; }
.guide h2 { margin: 30px 0 10px; font-size: 1.22rem; }
.guide h3 { margin: 18px 0 8px; font-size: 1.02rem; }
.guide > p, .guide section p { margin-bottom: 10px; }
.guide ul, .guide ol { margin: 0 0 12px 20px; }
.guide li { margin-bottom: 5px; }
.guide-spy {
    position: sticky;
    top: 96px; /* zem lipīgā header bloka; guide.js uzstāda precīzi */
    z-index: 60;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    margin: 14px 0 18px;
}
.guide-spy-inner {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.guide-spy-inner::-webkit-scrollbar { display: none; }
.guide-spy a {
    flex: 0 0 auto;
    padding: 11px 12px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.guide-spy a:hover { color: var(--ink); }
.guide-spy a.on { color: var(--teal-dark); border-bottom-color: var(--amber); }
main [id] { scroll-margin-top: 108px; }
.guide [id] { scroll-margin-top: var(--spy-anchor, 152px); }
.guide .panel { margin-bottom: 18px; }
.guide .panel ul, .guide .panel ol { margin-left: 18px; }
.fact-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 2px 0 14px; }
.fact-tiles .ft { background: #eef4f3; border-radius: 10px; padding: 12px 10px; text-align: center; }
.fact-tiles .ft strong { display: block; font-size: 1.3rem; color: var(--teal-dark); }
.fact-tiles .ft span { font-size: 0.8rem; color: var(--muted); }
.duo { display: grid; gap: 18px; margin-bottom: 18px; }
.duo .panel { margin-bottom: 0; }

@media (min-width: 700px) {
    .fact-tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
    .guide-spy { top: 102px; }
    .guide-spy-inner { justify-content: safe center; gap: 8px; }
    .duo { grid-template-columns: 1fr 1fr; }
}
.table-wrap { overflow-x: auto; margin: 0 0 14px; }
.guide table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
    background: var(--card);
}
.guide th {
    background: #e9f1ef;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid var(--line);
    font-size: 0.84rem;
    white-space: nowrap;
}
.guide td { padding: 7px 10px; border: 1px solid var(--line); vertical-align: top; }
.guide tr:nth-child(even) td { background: #f7faf9; }
.notice {
    background: #eef4f3;
    border: 1px solid var(--line);
    border-left: 3px solid var(--teal);
    border-radius: 6px;
    padding: 10px 14px;
    margin: 0 0 14px;
    font-size: 0.92rem;
}
.notice-warn { border-left-color: var(--danger); background: #fdf1f0; }
.og-cards { display: grid; gap: 18px; margin: 16px 0 10px; }
.og-cards a {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 53, 64, 0.22), 0 2px 6px rgba(15, 53, 64, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.og-cards a:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 14px 30px rgba(15, 53, 64, 0.3), 0 4px 10px rgba(15, 53, 64, 0.16);
}
.og-cards img { display: block; width: 100%; height: auto; }
.faq details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 11px 14px; font-size: 0.95rem; }
.faq details p { padding: 0 14px 12px; margin: 0; }
.now-box {
    background: linear-gradient(150deg, var(--header), var(--teal-dark));
    border-radius: var(--radius);
    padding: 16px 18px;
    color: #e6f1ef;
    margin: 0 0 18px;
}
.now-box h2 { color: #fff; margin: 0 0 8px; font-size: 1.05rem; }
.now-box ul { margin: 0 0 0 18px; }
.now-box li { margin-bottom: 4px; font-size: 0.93rem; }
.now-box strong { color: #ffc46b; }
.now-box a { color: #ffc46b; }
.ban-now {
    display: inline-block;
    background: #fdecd9;
    color: var(--amber-dark);
    border-radius: 12px;
    padding: 1px 9px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}
.src-box {
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding-top: 12px;
}
.src-box a { color: var(--teal); }
.guide-cta {
    background: linear-gradient(150deg, var(--header), var(--teal-dark));
    border-radius: var(--radius);
    padding: 20px 18px;
    text-align: center;
    color: #dcebe8;
    margin-top: 26px;
}
.guide-cta h2 { color: #fff; margin: 0 0 6px; font-size: 1.15rem; }
.guide-cta p { margin: 0 0 14px; font-size: 0.93rem; }
.guide-cta .btn { margin: 0 5px 6px; }

@media (min-width: 700px) {
    .og-cards { grid-template-columns: repeat(3, 1fr); }
}
.sp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 16px 0 10px; }
.sp-cards a,
.sp-cards .sp-kluss { /* sp-kluss = kartīte bez saites (sugai vēl nav lapas) */
    display: block;
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(15, 53, 64, 0.18), 0 2px 6px rgba(15, 53, 64, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.sp-cards a:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 14px 30px rgba(15, 53, 64, 0.28), 0 4px 10px rgba(15, 53, 64, 0.15);
}
.sp-cards img { display: block; width: 100%; height: auto; }
.sp-cards .sp-name { display: block; padding: 8px 8px 2px; text-align: center; font-weight: 800; color: var(--ink); font-size: 0.95rem; }
.sp-cards .sp-sub { display: block; padding: 0 8px 10px; text-align: center; color: var(--muted); font-size: 0.78rem; }
.sp-figure {
    margin: 0 auto 18px;
    max-width: 720px;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 53, 64, 0.14);
}
.sp-figure img { display: block; width: 100%; height: auto; }
.zk-panel { margin: 0 -10px 18px; min-width: 0; }
.zk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.zk-title { margin: 0; font-size: 1.2rem; }
.zk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.zk-dow { text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--muted); padding: 2px 0; }
.zk-day {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 58px;
    padding: 4px 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    font-size: 0.85rem;
}
.zk-day.zk-out { background: transparent; border-color: transparent; }
.zk-day.zk-today { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.zk-day.zk-sel { background: #e4f1ee; }
.zk-num { font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; gap: 4px; width: 100%; }
.zk-moon { width: 26px; height: 26px; display: inline-block; flex-shrink: 0; }
.zk-num .zk-moon { margin-left: auto; }
.zk-catch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e4f1ee;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--teal-dark);
    text-decoration: none;
}
.zk-day.zk-sel .zk-catch { background: var(--teal-dark); color: #fff; }
.zk-day.zk-sel .zk-catch img { filter: invert(1); }
.zk-flag { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.zk-flag-close { background: #b3261e; }
.zk-flag-open { background: var(--teal); }
.zk-ev { display: inline-flex; }
.zk-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
.zk-legend span { display: inline-flex; align-items: center; gap: 5px; }
/* ── Catch rows (kalendārs + profils) ────── */
.crow-list { list-style: none; margin: 0 !important; padding: 0; }
.crow-list li {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(15, 53, 64, 0.05);
    overflow: hidden;
}
.crow-list li:last-child { margin-bottom: 0; }
/* Kartītes saturs stiepjas visā rindiņas augstumā: režģī (desktopā) blakus
   kartītes izlīdzinās pēc garākās, un bez šī zemākajai zem foto paliktu
   balta sloksne. */
.crow-list li { display: flex; }
.crow-list li > .crow { flex: 1; }
/* Oranžs rāmis = lomam ir neizlemts drukas kļūdas minējums (redz
   tikai autors; atveras loma lapā ar Labot/Atstāt pogām) */
.crow-list li.typo-mark {
    border-color: var(--amber);
    box-shadow: 0 0 0 1px var(--amber), 0 1px 3px rgba(15, 53, 64, 0.05);
}
.crow { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.crow-photo {
    width: 96px;
    align-self: stretch;
    min-height: 80px;
    flex-shrink: 0;
    background: #e4f1ee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.crow-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Sugas zīmējums nedrīkst tikt apgriezts kā foto - galva/aste pazūd */
.crow-photo img.crow-zim,
.popc-photo img.crow-zim { object-fit: contain; background: #fff; }
.crow-photo .crow-ph { width: 24px; height: 24px; opacity: 0.4; object-fit: contain; }
.crow-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--amber);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.crow-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 0; }
.crow-species { font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.crow-stats { font-size: 1.08rem; font-weight: 800; }
.crow-place { display: flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--muted); }
/* Krāsu kodēts kā kartes pini: tirkīza = precīza publiska vieta,
   dzintara/tirkīza puse uz pusi = tikai ezers, dzintara = slēpta. */
.crow-dot { display: inline-block; vertical-align: middle; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.crow-dot.dot-lake { background: linear-gradient(90deg, var(--amber) 50%, var(--teal) 50%); }
.crow-dot.dot-hidden { background: var(--amber); }
.crow-dot.dot-friends { background: #7c3aed; }
.crow-side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; padding: 10px 12px 10px 0; }
.crow-time { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.crow-bait { width: 58px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.crow-baittxt { color: var(--muted); font-size: 0.78rem; max-width: 110px; text-align: right; }
.zk-ev-list { list-style: none; margin: 0 !important; }
.zk-ev-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.zk-ev-list li:last-child { border-bottom: 0; }
.zk-place { color: var(--muted); font-size: 0.85rem; display: block; }
@media (min-width: 900px) {
    .zk-panel {
        margin: 0 0 18px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--card);
        padding: 16px;
        box-shadow: 0 1px 3px rgba(15, 53, 64, 0.05);
    }
    .zk-grid { gap: 6px; }
    .zk-day { min-height: 74px; padding: 6px 8px; }
    .zk-title { font-size: 1.35rem; }
}
.lake-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lake-hint { color: var(--muted); font-size: 0.88rem; }
.bait-empty {
    background: #eef4f3;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    margin: 16px 0 10px;
}
@media (min-width: 900px) {
    .sp-cards { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}

/* ── Copes statusa flīzes (kas ūdenstilpē atļauts/aizliegts) ──
   Bilde ir neitrāla (aktivitāte), statusu saka birka uz attēla -
   tā tās pašas bildes derēs citiem ezeriem ar citiem statusiem. */
.copes-flizes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 6px 0 16px; }
.cope-flize {
    background: #fff;
    border: 1px solid #e2e9ea;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 53, 64, 0.10);
}
.cope-attins { position: relative; }
.cope-attins img { display: block; width: 100%; height: auto; }
.cope-birka {
    position: absolute;
    top: 8px;
    left: 0;
    padding: 3px 10px 3px 8px;
    border-radius: 0 8px 8px 0;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}
.cope-birka-ok { background: #2e7d46; }
.cope-birka-uzmanigi { background: #b97f10; }
.cope-birka-ne { background: var(--danger); }
.cope-flize h3 { margin: 8px 10px 2px; font-size: 0.95rem; color: var(--ink); }
.cope-flize p { margin: 0 10px 10px; font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
@media (min-width: 700px) {
    .copes-flizes { grid-template-columns: repeat(3, 1fr); }
}

/* ── Ezera faktu grafiki (inline SVG datu vizualizācijas) ──
   Dziļuma griezums (gz-*) un platību joslu diagramma (jd-*).
   Teksti dzīvo SVG iekšpusē, tāpēc fontu manto no lapas. */
.fakti-grafiki { display: grid; gap: 12px; margin: 6px 0 16px; }
.grafiks {
    margin: 0;
    background: #fff;
    border: 1px solid #e2e9ea;
    border-radius: 14px;
    padding: 12px 14px 8px;
    box-shadow: 0 4px 12px rgba(15, 53, 64, 0.10);
    min-width: 0;
}
.grafiks figcaption { font-weight: 800; color: var(--ink); font-size: 0.95rem; margin-bottom: 6px; }
.grafiks svg { display: block; width: 100%; height: auto; }
.grafiks-piez { margin: 2px 0 0; color: var(--muted); font-size: 0.78rem; }
/* ezera skersgriezums (sanskats ar videja/maksimala dziluma linijam);
   gradienti definēti pašā SVG (defs #sgUdensGrad, #sgDibensGrad) */
.sg-udens { fill: url(#sgUdensGrad); }
.sg-dibens { fill: url(#sgDibensGrad); }
.sg-grants { fill: #c4ad7f; opacity: 0.85; }
.sg-augi { fill: none; stroke: #6f955f; stroke-width: 2; stroke-linecap: round; opacity: 0.85; }
.sg-zivs { fill: #5f8792; opacity: 0.75; }
.sg-niedru-galva { fill: #8a6b42; }
.sg-putni { fill: none; stroke: #8aa6ad; stroke-width: 1.8; stroke-linecap: round; }
.sg-dibens-lin { fill: none; stroke: #c2b18b; stroke-width: 2; }
.sg-udenslin { stroke: #7ba9b3; stroke-width: 2.5; }
.sg-vilnis { fill: none; stroke: #a7c6cc; stroke-width: 2; stroke-linecap: round; }
.sg-niedres { fill: none; stroke: #7f9c6d; stroke-width: 2.5; stroke-linecap: round; }
.sg-ass { stroke: #8aa6ad; stroke-width: 1.5; }
.sg-teksts { fill: var(--muted); font-size: 13px; }
.sg-uzraksts { fill: var(--teal-dark); font-weight: 700; font-size: 13.5px; }
.sg-uzraksts-amber { fill: #9c6a0c; }
.sg-videjais { stroke: #d99a27; stroke-width: 2; stroke-dasharray: 6 5; }
.sg-max { stroke: #5b7480; stroke-width: 1.5; stroke-dasharray: 4 5; }
.grafika-piezime { margin: 4px 2px 6px; font-size: 0.8rem; color: var(--muted); }
/* platibu joslas */
.jd-josla { fill: #c3d8dc; }
.jd-josla-akt { fill: var(--amber); }
.jd-nosaukums, .jd-vertiba { fill: var(--muted); font-size: 13.5px; }
.jd-akt { fill: var(--teal-dark); font-weight: 800; }
.jd-rangs { fill: #9dbcc3; }
.jd-rangs-akt { fill: var(--amber); }
.jd-rangs-teksts { fill: #fff; font-size: 12.5px; font-weight: 800; }
@media (min-width: 700px) {
    .fakti-grafiki { grid-template-columns: 1fr 1fr; }
}

/* ── Bottom nav (mobile) ─────────────────── */
.bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* Puse no drošās zonas: pilnais env() cēla joslu par augstu, bez tā
       home indicator uzgūlās ikonām - vidusceļš */
    padding: 6px calc(4px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom) / 2) calc(4px + env(safe-area-inset-left));
    z-index: 1000;
}
.bottomnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 10px;
}
.bottomnav a.on { color: var(--teal); }
.bottomnav a.on img { filter: invert(32%) sepia(56%) saturate(560%) hue-rotate(125deg) brightness(92%); }
.bn-add {
    background: var(--amber);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
    margin-top: -22px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}
.bn-add:hover { background: var(--amber-dark); }

/* ── Desktop ─────────────────────────────── */
@media (min-width: 1025px) {
    .a2hs { display: none; }
}
/* logo centered tikai telefonos (bottomnav režīms); tiklīdz parādās
   augšējā izvēlne (>=900), logo iet pa kreisi - centrēts tas uzgultos
   ielogotā lietotāja izvēlnes kreisajiem punktiem 900-1024 joslā */
@media (min-width: 900px) {
    .topbar-inner { justify-content: space-between; }
    .brand { position: static; transform: none; }
    .has-logout .topnav { margin-right: 48px; }
    .topnav { display: flex; }
    .bottomnav { display: none; }
    .page { padding: 26px 24px 40px; }
    .stats, .stats-fav { max-width: none; }
    .feed {
        max-width: none;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
    .sitefooter { padding-bottom: 24px; }
    h1 { font-size: 1.9rem; }
    .hero { padding: 48px 40px; }
    .hero h1 { font-size: 2.2rem; }
    .crow-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 12px;
    }
    .crow-list li { margin-bottom: 0; }
    .map-full { height: calc(100vh - 230px); }
    .log-form { max-width: 100%; }
    .log-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }
    .log-form .map-mini { height: 400px; }
    .log-form .btn-big { max-width: 380px; }
    .panel { padding: 20px; }
    .log-hero { padding: 26px 30px; flex-direction: row; justify-content: center; text-align: left; gap: 16px; }
    .log-hero-back { margin-left: auto; align-self: center; }
    .set-grid { grid-template-columns: 1fr 1fr; align-items: start; }
    /* wrap: hero papildu bloks (kartes /makskeresanas-karte) aizņem
       PILNU rindu zem ikonas+teksta, nevis spiežas tiem blakus */
    .page-hero-inner { flex-direction: row; flex-wrap: wrap; justify-content: center; text-align: left; gap: 16px; padding: 34px 24px 30px; }
    /* Teksta bloks (2. bērns aiz ikonas) saraujas, nevis met ikonu savā
       rindā - garš ievads (piem. /mepps-aglia) citādi lauza hero divās
       rindās ar ikonu centrā. Papildu blokus (3.+) neaiztiek - tiem
       wrap uz pilnu rindu ir apzināts. */
    .page-hero-inner > div:nth-child(2) { flex: 1 1 0; min-width: 0; }
    .page-hero h1 { font-size: 1.7rem; }
    .kop-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 24px;
        align-items: start;
    }
    .kop-main { grid-column: 1; grid-row: 1; min-width: 0; }
    .kop-main .wall-head { margin-top: 0; }
    .kop-main .feed { grid-template-columns: repeat(2, 1fr); }
    .chat-panel {
        grid-column: 2;
        grid-row: 1;
        position: sticky;
        top: 122px; /* zem lipīgā header bloka */
        margin-bottom: 0;
    }
    .chat-box { height: 420px; }
    .set-grid .panel-danger { grid-column: 1 / -1; }
    .phero { padding: 36px 24px 30px; }
    .phero h1 { font-size: 1.6rem; }
    .phero-stats > div { padding: 0 26px; }
    .phero-stats strong { font-size: 1.3rem; }
    .phero-stats span { font-size: 0.78rem; }
    .pnav { max-width: 640px; margin: 0 auto 20px; }
    .pnav-tab { flex-direction: row; justify-content: center; gap: 8px; padding: 11px 8px; font-size: 0.9rem; }
    .log-hero h1 { font-size: 1.7rem; }
    .log-hero > img { width: 64px; }
    /* Par lomu + Vieta side by side, weather as a full-width band below */
    .log-form .panel-weather { grid-column: 1 / -1; }
    .panel-head h2 { font-size: 1.4rem; }
    .panel-head .wx-btn { position: absolute; right: 0; top: 0; align-self: auto; }
    .wx-grid { grid-template-columns: repeat(5, 1fr); }
    .wx-grid > label:nth-child(5) { grid-column: auto; }
}

/* ── Registration hardening & email ──────── */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
.notice {
    background: #fff7e0;
    border: 1px solid #ecdcae;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 12px 0;
    max-width: 640px;
}
.badge-ok { color: var(--teal-dark); font-weight: 700; }

/* ── Paziņojumu zvans ────────────────────── */
.zvans-bloks { position: relative; margin-left: 14px; }
.has-logout .zvans-bloks { margin-right: 48px; }
.zvans-poga {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.09);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
.zvans-poga:hover { background: rgba(255, 255, 255, 0.18); }
.zvans-poga img { filter: invert(1); opacity: 0.85; }
.zvans-skaits {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #dc2626;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid var(--header);
}
.zvans-panelis {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 20px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(9, 32, 30, 0.28);
    z-index: 1300;
    overflow: hidden;
}
.zvans-galva {
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.zvans-saraksts { max-height: 380px; overflow-y: auto; }
.zvans-rinda {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--line);
}
.zvans-rinda:last-child { border-bottom: 0; }
a.zvans-rinda:hover { background: #f2f7f6; }
.zvans-rinda img { flex-shrink: 0; margin-top: 1px; }
.zvans-teksts { flex: 1; min-width: 0; }
.zvans-laiks {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
    margin-top: 2px;
}
.zvans-jauns { background: #fdf6e5; }
a.zvans-rinda.zvans-jauns:hover { background: #f8efd8; }
.zvans-tukss {
    padding: 18px 14px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}
@media (min-width: 900px) {
    .topnav { margin-left: auto; }
    .has-logout .topnav { margin-right: 0; }
}

/* ── Draugi ──────────────────────────────── */
.dr-sadala { margin-bottom: 26px; }
.dr-sadala h2 { margin: 0 0 12px; font-size: 1.15rem; }
.dr-mekle { display: flex; gap: 10px; max-width: 460px; }
.dr-mekle input { flex: 1; }
/* flex arī iekšpusē - ievade stiepjas pogas augstumā kā pirms .combo */
.dr-mekle-combo { flex: 1; display: flex; }
.dr-mekle-combo input { width: 100%; }
.combo-list li.dr-mekle-rinda { display: flex; align-items: center; gap: 9px; }
.dr-saraksts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.dr-karte {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
}
.dr-karte a.dr-vards {
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}
.dr-karte a.dr-vards:hover { color: var(--teal-dark); }
.dr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dr-info span { color: var(--muted); font-size: 0.82rem; }
.dr-avatars {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.dr-avatars img { width: 100%; height: 100%; object-fit: cover; }
.dr-rici { display: flex; flex-direction: column; gap: 6px; }
.dr-rici form { margin: 0; }
.dr-izmest {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--danger);
    border-color: #e7c2bf;
}
.dr-izmest img { filter: invert(28%) sepia(66%) saturate(2400%) hue-rotate(345deg); }
.dr-izmest:hover { background: #fdf1f0; border-color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 0.84rem; }
.phero-draugi { margin-top: 12px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.phero-draugi form { margin: 0; }
.badge-warn { color: var(--amber-dark); font-weight: 700; }
.settings-block .form { margin-top: 12px; }

/* ── Admin panel ─────────────────────────── */
.admin-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px;
    margin-bottom: 18px;
}
.admin-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
}
.admin-nav a:hover { background: #eef3f2; }
.admin-nav a.on { background: var(--header); color: #fff; }
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}
.admin-stats .stat em { display: block; color: var(--muted); font-size: 0.75rem; font-style: normal; }
.admin-cols { display: grid; gap: 22px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-head h1 { margin: 0; }
/* Admina lietotāja kartīte: aktivitātes skaitļi vienā rindā */
.admin-akt { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 14px; padding: 0; list-style: none; }
.admin-akt li { color: var(--muted); font-size: 0.9rem; }
.admin-akt li strong { font-weight: 700; }
.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-filter input, .admin-filter select {
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}
.admin-filter input[name="q"] { flex: 1; min-width: 200px; }
.atable-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.atable { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.atable th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.atable td { padding: 9px 12px; border-bottom: 1px solid #eef3f2; vertical-align: middle; }
.atable tr:last-child td { border-bottom: 0; }
.atable tr.hot td { background: #fdf1e6; }
.atable tr.hot-good td { background: #eaf6f0; }
.atable a { color: var(--teal-dark); text-decoration: none; font-weight: 600; }
.atable a:hover { text-decoration: underline; }
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}
.badge-admin { background: #e4f1ee; color: var(--teal-dark); }
.badge-ban { background: #fdeceb; color: var(--danger); }
.badge-shadow { background: #efe9db; color: #7a5c1e; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.admin-row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ── Ēsmas atpazīšana (Vision) ───────────── */
.esma-scan { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.esma-scan .pro-pill { margin-left: 0; }
.esma-scan .btn-outline { position: relative; }
.esma-beta {
    position: absolute;
    top: -9px;
    right: -12px;
    background: var(--header);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 10px;
}
.esma-hint { color: var(--muted); font-size: 0.85rem; margin: 0; width: 100%; }
.esma-out { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.esma-out[hidden] { display: none; }
.kaste-form .esma-scan { margin-top: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
@media (min-width: 900px) {
    .kaste-form .esma-scan { grid-column: 1 / -1; }
}
.esma-chip {
    border: 1px solid var(--teal);
    color: var(--teal-dark);
    background: #eef7f5;
    border-radius: 20px;
    padding: 6px 12px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.esma-chip:hover { background: #dff0ec; }
.combo-list li.combo-pic { display: flex; align-items: center; gap: 8px; }
.combo-list li.combo-pic img {
    width: 34px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

/* ── Foto skatītājs (lightbox) ───────────── */
.lbx {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(10, 26, 31, 0.88);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.lbx[hidden] { display: none; }
.lbx-img {
    display: block;
    max-width: min(1600px, 100%);
    max-height: calc(100vh - 36px);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
}
.lbx.zoom { align-items: flex-start; justify-content: flex-start; }
.lbx.zoom .lbx-img { max-width: none; max-height: none; cursor: zoom-out; }
.lbx-x {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    right: calc(14px + env(safe-area-inset-right));
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.lbx-x:hover { background: #8f1e18; }
.lbx-open, .lbx-open body { overflow: hidden; }
.catch-zoom { display: block; margin-bottom: 16px; line-height: 0; }
.catch-zoom .catch-photo { margin-bottom: 0; }
.kaste-list .lb { display: block; line-height: 0; flex: 0 0 auto; }
.admin-row-actions form { display: inline; }
.admin-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.admin-data-block { margin-bottom: 26px; }
.admin-data-block h2 { margin-bottom: 8px; }
.admin-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #fdf6ec;
    border: 1px solid #ecd9b8;
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.admin-bar form { display: inline; }
.report-row { margin-top: 18px; }
.report-link {
    background: none;
    border: 0;
    color: var(--muted);
    font-family: var(--font);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}
.report-link:hover { color: var(--danger); }

@media (min-width: 900px) {
    .admin-cols { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ── OAuth sign-in ───────────────────────── */
.oauth-box { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.btn-oauth { justify-content: center; width: 100%; }
.oauth-note { color: var(--muted); font-size: 0.82rem; text-align: center; }
.oauth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.85rem;
}
.oauth-divider::before, .oauth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ── Juridiskās lapas (noteikumi, privātums) ───────── */
.jur-galva {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
}
.jur-galva p { margin: 0; }
.jur-galva .jur-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }
.jur-saturs {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
}
.jur-saturs h2 {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.jur-saturs ol { list-style: decimal; margin: 0; padding-left: 22px; }
.jur-saturs li { margin: 3px 0; }
.jur-saturs a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.jur-saturs a:hover { text-decoration: underline; }
@media (min-width: 640px) {
    .jur-saturs ol { columns: 2; column-gap: 32px; }
    .jur-saturs li { break-inside: avoid; }
}
.jur-nodala { margin-top: 28px; }
.jur-nodala h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
    scroll-margin-top: 122px;
}
.jur-nr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--teal);
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.jur-nodala h3 { font-size: 1.02rem; margin: 16px 0 6px; }
.jur-nodala p { margin-bottom: 10px; }
.jur-nodala ul { list-style: disc; margin: 0 0 10px; padding-left: 22px; }
.jur-nodala li { margin-bottom: 6px; }
.jur-ritin { overflow-x: auto; margin-bottom: 10px; }
.jur-tab { width: 100%; border-collapse: collapse; background: var(--card); font-size: 0.92rem; }
.jur-tab th, .jur-tab td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.jur-tab th { background: var(--bg); font-size: 0.85rem; }
.jur-tab td:first-child { font-weight: 600; }

/* ── Ekipējuma cilne (profils) ─────────────────
   Tērpa lapa: sadaļu režģis kā figūra - galva augšā, ķermenis vidū,
   makšķere/māneklis sānu kolonnā. Sadaļas poga (tikai savā profilā)
   pārklāj visu kartīti. */
.ekip-ievads { color: var(--muted); font-size: 0.9rem; text-align: center; margin: 0 0 16px; }
.ekip-figura {
    position: relative;
    width: min(100%, 440px);
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    background: url('/images/ekipejuma-siluets.svg') center / contain no-repeat;
}
/* Sadaļas ir PIESPRAUSTAS pie silueta ķermeņa daļām (procentu koordinātas
   mērogojas līdzi konteineram): cepure pie cepures, brilles pie sejas,
   cimdi pie roktura, makšķere - gara šaura kastīte gar pašu makšķeri,
   māneklis pie auklas gala. Viss ietilpst vienā ekrānā. */
.ekip-sadala { position: absolute; }
.ekip-cepure   { left: 62%; top: 16%; width: 23%; }
.ekip-brilles  { left: 64%; top: 28%; width: 18%; }
.ekip-krekls   { left: 55%; top: 37%; width: 24%; }
.ekip-cimdi    { left: 33%; top: 40%; width: 16%; }
.ekip-bikses   { left: 53%; top: 59%; width: 22%; }
.ekip-zabaki   { left: 50%; top: 84%; width: 30%; }
.ekip-makskere { left: 20%; top: 4%;  width: 13%; }
.ekip-maneklis { left: 8%;  top: 52%; width: 18%; }
.ekip-foto, .ekip-tukss {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 53, 64, 0.18);
}
/* Lodziņu formas seko ķermeņa daļai: brilles - plata sloksne, makšķere -
   gara tieva kolonna */
.ekip-cepure .ekip-foto,   .ekip-cepure .ekip-tukss   { aspect-ratio: 2.1 / 1; }
.ekip-brilles .ekip-foto,  .ekip-brilles .ekip-tukss  { aspect-ratio: 3.1 / 1; }
.ekip-zabaki .ekip-foto,   .ekip-zabaki .ekip-tukss   { aspect-ratio: 1.9 / 1; }
.ekip-makskere .ekip-foto, .ekip-makskere .ekip-tukss { aspect-ratio: 1 / 3.4; }
.ekip-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ekip-tukss { border: 1px dashed var(--teal); background: rgba(255, 255, 255, 0.82); }
/* Ģenerētās ekipa-* ikonas ir detalizēti zīmējumi - 26px atribūts par mazu,
   lai tās nolasītu; aizpilda lielāko lodziņa daļu, contain tur proporciju */
.ekip-tukss img { width: 74%; height: 80%; object-fit: contain; opacity: 0.55; }
.ekip-izvele { position: absolute; inset: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; z-index: 1; }
.ekip-izvele:hover, .ekip-izvele:focus-visible { box-shadow: inset 0 0 0 2px var(--teal); }
/* Kadra poga stāv VIRS izvēles pārklāja - mazs aplītis PUS-ĀRPUS sadaļas
   stūra, lai neaizsedz foto (lodziņi mazi, 26px aplis iekšpusē sedza
   lielu bildes daļu) */
.ekip-kadrs-poga {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 53, 64, 0.25);
}
.ekip-kadrs-poga img { width: 12px; height: 12px; }
.ekip-kadrs-poga:hover { border-color: var(--teal); }
.ekip-karte { max-width: 460px; }
.ekip-saraksts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: 46vh;
    overflow-y: auto;
    margin-bottom: 12px;
}
.ekip-prece {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.75rem;
    color: var(--ink);
    min-width: 0;
    text-align: center;
}
.ekip-prece[hidden] { display: none; }
.ekip-prece:hover { border-color: var(--teal); }
.ekip-prece img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.ekip-prece > span:last-child {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ekip-prece-ikona {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f4f8f7;
    border-radius: 6px;
}

/* ── Krāsu galerija manekļu lapās (mepps-aglia u.c.) ──────────────
   Desktopā: lielā bilde pa kreisi, izmēra josla + krāsu kvadrātiņi pa
   labi (veikala produkta lapas izkārtojums). Mobilajā: viena kolonna,
   izmēru josla vienmēr vienā rindā. */
.galerija {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}
.galerija .galerijas-liela {
    margin: 0;
    max-width: none;
}
.galerija .galerijas-liela figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    padding: 8px 10px;
    background: var(--card);
}
.izmeru-josla {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}
.izmeru-josla button {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 2px;
    background: #fff;
    border: none;
    border-right: 1px solid var(--line);
    font-family: var(--font);
    font-size: 0.85rem;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
}
.izmeru-josla button:last-child { border-right: none; }
.izmeru-josla button:hover { background: var(--bg); }
.izmeru-josla button.on {
    background: var(--teal);
    color: #fff;
}
/* display:flex citādi uzvarētu hidden atribūtu (UA [hidden] ir vājāks) */
.izmeru-josla[hidden] { display: none; }
/* Āķa variantu josla virs izmēriem - tas pats segmentu izskats, mazāka atstarpe */
.aku-josla { margin-bottom: 6px; }
/* Astu josla: 10 pogas dabiskā platumā, šaurumā ritinās, nevis saspiežas.
   Telefonā ritjosla ir pārklājuma tipa - parādās tikai ritināšanas laikā, un
   uz baltām pogām to nemana; josla beidzas pie apmales tieši tāpat kā izmēru
   josla virs tās, tāpēc izskatās pēc pabeigtas rindas, ne nogrieztas.
   Divi risinājumi kopā: pati ritjosla kļūst redzama (desktopā un Android),
   un saturs malās izgaist - izgaišana ir tieši tajā pusē, kur vēl ir ko
   ritināt (klases liek galerija.js). Ja josla ietilpst, izgaišanas nav. */
.astu-josla {
    overflow-x: auto;
    scrollbar-width: thin;
    /* Īkšķis --muted, ne --line: gaišā apmales krāsa uz baltām pogām
       gandrīz neizcēlās. Chrome, kad ir scrollbar-width, ::-webkit-*
       noteikumus IGNORĒ - tāpēc krāsa jādod arī šeit, ne tikai zemāk.
       ::-webkit- rindas paliek vecākajam Safari, kas scrollbar-width neprot. */
    scrollbar-color: var(--muted) transparent;
}
.astu-josla::-webkit-scrollbar { height: 4px; }
.astu-josla::-webkit-scrollbar-track { background: transparent; }
.astu-josla::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 999px; }
.astu-josla button { flex: 0 0 auto; padding: 8px 12px; }
/* Maska stāv pie joslas malām un neritinās līdzi saturam. */
.astu-josla.rit-labi {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
}
.astu-josla.rit-kreisi {
    -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 26px), transparent);
            mask-image: linear-gradient(to left, #000 calc(100% - 26px), transparent);
}
.astu-josla.rit-kreisi.rit-labi {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent);
            mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent);
}
.krasu-galerija {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 6px;
}
.krasu-galerija button {
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    min-width: 0;
}
.krasu-galerija button:hover { border-color: var(--teal); }
.krasu-galerija button.on {
    border-color: var(--teal);
    box-shadow: 0 0 0 1px var(--teal);
}
.krasu-galerija img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    background: #fff;
}
.krasu-piezime { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) {
    /* minmax(0,1fr), ne 1fr: citādi astu joslas min-content izpleš lapu */
    .galerija { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .izmeru-josla button { font-size: 0.8rem; padding: 7px 0; }
    /* Astu joslai atkāpes paliek - pogas nesaspiežas kopā, josla ritinās */
    .astu-josla button { padding: 7px 10px; }
    .krasu-galerija { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
}

/* Sākumlapas plūsmas filtri (inc/lomu-bloks.php + js/plusma.js): Visi/Draugi
   čipi + sugas un ūdenstilpes combobox lauki + piltuves poga. Viena pill
   valoda visiem (čipu izskats = pille). Mobilajā forma aptinas
   savā rindā un abi lauki to dala uz pusēm - nekādu brīvu robu. */
/* Kolonna ar centru: cilnes zem virsraksta vidū, lauku rinda zem tām. */
.plusmas-filtrs { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 16px; }
/* Avota segmenti Visi | Draugi - tas pats izskats, kas /mepps-aglia izmēru
   joslai: kopīgs rāmis, iekšējā šķirtne, aktīvais teal aizpildīts. */
.pf-avots {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.pf-poga {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border-right: 1px solid var(--line);
}
.pf-poga:last-child { border-right: none; }
.pf-poga:hover { background: var(--bg); }
.pf-poga.on { background: var(--teal); color: #fff; }
.pf-poga.on img { filter: invert(1); }
/* Mobilajā lauku rinda aizņem pilno platumu (lauki to dala uz pusēm),
   desktopā - dabiskais platums, ko vecāks nocentrē. */
.pf-forma { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.pf-lauks { flex: 1 1 0; min-width: 0; }
.pf-lauks input {
    font-family: var(--font);
    font-size: 0.88rem;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    color: var(--ink);
    width: 100%;
}
.pf-lauks input:focus { outline: none; border-color: var(--teal-dark); }
/* Aizpildīts lauks = aktīvs filtrs - tas pats svars, kas aktīvam čipam.
   padding-right atstāj vietu × pogai (tā rādās tikai piemērotam filtram). */
.pf-lauks input:not(:placeholder-shown) {
    border-color: var(--teal-dark);
    box-shadow: inset 0 0 0 1px var(--teal-dark);
    font-weight: 700;
    background: #eef7f5;
    padding-right: 32px;
}
/* Aktīvā filtra × - servera saite (strādā arī bez JS), noņem TIKAI savu
   filtru, pārējie paliek. */
.pf-notirit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--teal-dark);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    z-index: 2;
}
.pf-notirit:hover { background: #dcebe8; }
.pf-iet {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    cursor: pointer;
}
.pf-iet:hover { border-color: var(--teal-dark); }
.pf-iet img { display: block; }
/* Nolaižamais saraksts šaurajā laukā būtu nesalasāms - dodam savu platumu
   (aug pa labi no lauka, viewport malu nepārsniedz). */
.pf-lauks .combo-list { right: auto; width: 230px; max-width: calc(100vw - 40px); }
@media (min-width: 900px) {
    /* Desktopā lauki neizplešas pa visu rindu - stabils 170px platums,
       un rinda stāv centrā zem cilnēm. */
    .pf-forma { width: auto; }
    .pf-lauks { flex: 0 0 auto; }
    .pf-lauks input { width: 170px; }
}

/* ── Profila lomu cilne: sugu tabi + kārtošana (Davis 2026-09-07) ──
   Taisnstūra tabi ar sugas zīmējumu (tile), vārdu un skaitu, horizontāli
   ritināmi; kārtošanas segmenti lieto plūsmas .pf-avots/.pf-poga izskatu. */
.lomu-tabi {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    margin: 0 0 10px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.lt-tab {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 88px;
    padding: 8px 6px 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}
.lt-att {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--bg);
    overflow: hidden;
}
.lt-att img { width: 60px; height: 60px; object-fit: contain; }
.lt-att img.lt-ikona { width: 28px; height: 28px; opacity: 0.6; }
.lt-vards { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-tab small { color: var(--muted); font-weight: 400; font-size: 0.72rem; }
.lt-tab:hover { border-color: var(--teal); }
.lt-tab.on { border-color: var(--teal); background: var(--teal); color: #fff; }
.lt-tab.on small { color: #cfe9e4; }
.lt-tab.on .lt-att { background: rgba(255, 255, 255, 0.16); }
.lt-tab.on img.lt-ikona { filter: invert(1); opacity: 1; }
.lomu-kartot { margin: 0 0 14px; width: max-content; max-width: 100%; }
.crow-list li[hidden] { display: none; }

/* ── Ēsmu lapa: filtru bloks (Davis 2026-10-13, turp. 336, 5. laidiens) ──
   Balta kartiņa: augšā nosaukuma meklēšana, zem tās trīs lauki Veids / Suga /
   Zīmols (uzraksts, izvēlētā bilde + vārdi, skaitlis, bultiņa) - katrs ir
   <details>, kas atver paneli ar sarakstu (bilde + vārds + skaits + rūtiņa,
   VAIRĀKAS izvēles): desktopā uznirstošs lodziņš zem lauka, telefonā (<700 px)
   apakšējā lapa pāri visam ar aptumšotu fonu un pogu "Rādīt N mānekļus".
   Zem kartiņas izvēlētās vērtības kā birkas ar krustiņu. Strādā arī bez JS
   (saites). Agrāk: trīs ritināmas tabu rindas, tad pilles - Davim nepatika. */
.esmu-filtri { margin: 16px 0 6px; scroll-margin-top: 70px; }
.ef-karte { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04); }
.ef-q { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; }
.ef-q:focus-within { background: var(--bg); }
.ef-q img { opacity: 0.5; flex: 0 0 auto; }
.ef-q input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 12px 0; }
.ef-lauki { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ef-filtrs { position: relative; min-width: 0; }
.ef-poga { display: block; min-width: 0; padding: 10px 16px 12px; cursor: pointer; list-style: none; user-select: none; }
.ef-poga::-webkit-details-marker { display: none; }
.ef-filtrs + .ef-filtrs .ef-poga { border-left: 1px solid var(--line); }
.ef-filtrs:first-child .ef-poga { border-radius: 0 0 0 16px; }
.ef-filtrs:last-child .ef-poga { border-radius: 0 0 16px 0; }
.ef-poga:hover, .ef-filtrs[open] .ef-poga { background: var(--bg); }
.ef-etikete { display: block; margin-bottom: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ef-vertiba { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ef-izv-att { flex: 0 0 auto; display: flex; }
.ef-izv-att .ef-att { width: 36px; height: 36px; border-radius: 9px; }
.ef-izv-att .ef-att img { width: 36px; height: 36px; }
.ef-izv-att .ef-att img.ef-ikona-liela { width: 18px; height: 18px; }
.ef-izv-att .ef-att-logo { width: 58px; height: 32px; }
.ef-izv-att .ef-att-logo img { width: 56px; height: 30px; }
.ef-teksts { flex: 1 1 auto; min-width: 0; font-size: 0.95rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ef-poga.on .ef-teksts { color: var(--teal); }
.ef-skaitlis { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--teal); color: #fff; font-size: 0.72rem; font-weight: 800; }
.ef-skaitlis[hidden] { display: none; }
.ef-bulta { flex: 0 0 auto; opacity: 0.5; transition: transform 0.15s; }
.ef-filtrs[open] .ef-bulta { transform: rotate(180deg); }
/* zem kartiņas: skaits + izvēlēto birkas + notīrīt */
.ef-apaksa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.ef-skaits { color: var(--muted); font-size: 0.86rem; margin-right: 4px; }
.ef-cipi { display: flex; flex-wrap: wrap; gap: 8px; }
.ef-cips { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.ef-cips:hover { border-color: var(--teal); }
.ef-cips .ef-att { width: 24px; height: 24px; border-radius: 6px; }
.ef-cips .ef-att img { width: 24px; height: 24px; }
.ef-cips .ef-att img.ef-ikona-liela { width: 14px; height: 14px; }
.ef-cips .ef-att-logo { width: 38px; height: 20px; }
.ef-cips .ef-att-logo img { width: 36px; height: 18px; }
.ef-cips-nos { white-space: nowrap; }
.ef-cips-x { color: var(--muted); font-size: 1.05rem; line-height: 1; margin-left: 1px; }
.ef-cips:hover .ef-cips-x { color: var(--teal); }
.ef-notirit { color: var(--teal); font-weight: 700; font-size: 0.86rem; }
/* panelis */
.ef-panelis {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 400;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: min(72vh, 600px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}
.ef-filtrs:last-child .ef-panelis { left: auto; right: 0; }
.ef-galva { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 8px 16px; font-size: 0.95rem; }
.ef-aizvert { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg); color: var(--muted); font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.ef-aizvert:hover { color: var(--ink); }
.ef-meklet { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.ef-meklet:focus-within { border-color: var(--teal); background: #fff; }
.ef-meklet img { opacity: 0.55; }
.ef-meklet input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 0.92rem; padding: 9px 0; color: var(--ink); }
.ef-saraksts { position: relative; min-height: 0; overflow-y: auto; padding: 0 8px 8px; overscroll-behavior: contain; }
.ef-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}
.ef-item:hover { background: var(--bg); }
.ef-item.on { color: var(--teal); background: #e8f2f0; }
.ef-item.tukss { opacity: 0.45; }
.ef-item[hidden] { display: none; }
.ef-att { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; background: var(--bg); overflow: hidden; }
.ef-att img { width: 48px; height: 48px; object-fit: contain; }
.ef-att img.ef-ikona-liela { width: 22px; height: 22px; opacity: 0.6; }
.ef-att-balts { background: #fff; border: 1px solid var(--line); }
.ef-att-logo { width: 78px; height: 40px; }
.ef-att-logo img { width: 76px; height: 38px; }
.ef-vards { flex: 1 1 auto; min-width: 0; }
.ef-item small { color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.ef-item.on small { color: var(--teal); }
/* rūtiņa - vairākas izvēles vienā dimensijā */
.ef-rute { position: relative; flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 6px; background: #fff; }
.ef-item.on .ef-rute { border-color: var(--teal); background: var(--teal); }
.ef-item.on .ef-rute::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* plašie veidi (Vobleri, Silikona ēsmas, Metāla mānekļi) treknāk, pēc tiem šķirtne */
.ef-item.ef-plats .ef-vards { font-weight: 800; }
.ef-item.ef-plats + .ef-item:not(.ef-plats) { position: relative; margin-top: 10px; }
.ef-item.ef-plats + .ef-item:not(.ef-plats)::before { content: ''; position: absolute; left: 8px; right: 8px; top: -5px; height: 1px; background: var(--line); }
.ef-nekas { margin: 4px 8px 8px; color: var(--muted); font-size: 0.88rem; }
/* kājene ar "Rādīt N mānekļus" - tikai ar JS (bez JS saites pārlādē pašas) */
.ef-kajene { display: none; flex: 0 0 auto; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.ef-js .ef-kajene { display: block; }
.ef-gatavs { width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: var(--teal); color: #fff; font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.ef-gatavs:hover { filter: brightness(1.08); }
.sp-cards a[hidden] { display: none; }
@media (max-width: 699px) {
    .ef-lauki { grid-template-columns: 1fr; }
    .ef-poga { padding: 9px 16px 10px; }
    .ef-filtrs + .ef-filtrs .ef-poga { border-left: 0; border-top: 1px solid var(--line); }
    .ef-filtrs:first-child .ef-poga { border-radius: 0; }
    .ef-filtrs:last-child .ef-poga { border-radius: 0 0 16px 16px; }
    .ef-filtrs[open]::before { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.38); z-index: 1390; animation: ef-fade 0.18s; }
    .ef-panelis, .ef-filtrs:last-child .ef-panelis {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-width: none;
        max-height: 84vh;
        border: 0;
        border-radius: 18px 18px 0 0;
        z-index: 1400;
        animation: ef-augsup 0.22s ease-out;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .ef-panelis::before { content: ''; flex: 0 0 auto; align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px 0 0; }
    body.ef-slegts { overflow: hidden; }
}
@keyframes ef-augsup { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ef-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Loma dalīšanās kartīte /dalities (turp. 340) ── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/inter-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/inter-bold.woff2') format('woff2');
}
.dalities { max-width: 1100px; margin: 0 auto; }
/* Datorā: kreisajā kolonnā priekšskatījums + pogas uzreiz zem attēla (lipīgi), labajā vadīklas.
   Telefonā (turp. 343): viena kolonna, secība skats -> fonu slīdnis -> pogas -> elementi -> josla,
   tāpēc .dal-kreisa un forma kļūst display:contents un bērnus kārto order. */
.dal-kolonnas { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.dal-kreisa { position: sticky; top: 12px; min-width: 0; }
.dal-vadiklas { min-width: 0; }
#dalCanvas { display: block; width: 100%; height: auto; border-radius: 14px; background: #0f3540 center / cover no-repeat; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
.dal-status { min-height: 1.4em; color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }
.dal-status-svarigs { color: var(--teal-dark); font-weight: 600; }
.dal-pogas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 0; }
.dal-pogas .btn { justify-content: center; }
.dal-poga-galvena { grid-column: 1 / -1; }
.dal-grupa { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 14px; margin: 0 0 16px; background: var(--card); min-width: 0; }
.dal-grupa legend { font-weight: 700; padding: 0 6px; }
.dal-foni { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 2px 6px; }
.dal-fons { position: relative; flex: 0 0 auto; width: 84px; text-align: center; cursor: pointer; font-size: 0.78rem; color: var(--muted); }
.dal-fons input { position: absolute; opacity: 0; width: 0; height: 0; }
.dal-fons img { display: block; width: 84px; height: 149px; object-fit: cover; border-radius: 10px; border: 3px solid transparent; background: #dfe8e6; }
.dal-fons input:checked + img { border-color: var(--amber); }
.dal-fons input:focus-visible + img { outline: 2px solid var(--teal); outline-offset: 2px; }
.dal-fons span { display: block; margin-top: 4px; }
.dal-grupa .map-check { display: flex; gap: 8px; align-items: center; padding: 5px 0; }
.dal-grupa .map-check input:disabled + span { color: var(--muted); }
.dal-radio { display: flex; gap: 18px; padding: 8px 0 2px; flex-wrap: wrap; }
.dal-radio label { display: flex; gap: 6px; align-items: center; }
.dal-elementi { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 14px; }
/* Formāts un kadrējums (turp. 351): foto velk/tuvina tieši uz canvas */
.dal-formati { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; max-width: 460px; padding: 8px 0 2px; }
.dal-formats-izvele { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 0.82rem; color: var(--muted); background: none; border: 0; padding: 4px 0; font-family: var(--font); line-height: 1.2; }
.dal-formats-izvele[hidden] { display: none; }
.dal-formats-izvele input { position: absolute; opacity: 0; width: 0; height: 0; }
.dal-formats-kaste { display: flex; align-items: center; justify-content: center; height: 34px; aspect-ratio: var(--k, 1); border: 2px solid var(--teal); border-radius: 5px; background: var(--card); box-sizing: border-box; }
.dal-formats-ikona { width: 34px; border-style: dashed; color: var(--teal-dark); }
.dal-formats-ikona img { width: 18px; height: 18px; }
.dal-formats-izvele input:checked + .dal-formats-kaste { background: var(--teal); }
.dal-formats-izvele input:checked ~ .dal-formats-teksts { color: var(--ink); font-weight: 700; }
.dal-formats-izvele input:focus-visible + .dal-formats-kaste, .dal-formats-poga:focus-visible .dal-formats-kaste { outline: 2px solid var(--amber); outline-offset: 2px; }
.dal-formats-poga:hover .dal-formats-kaste { background: #eef3f2; }
#dalCanvas.dal-velk { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#dalCanvas.dal-velk.dal-velk-aktivs { cursor: grabbing; }
/* Žestu demonstrācija (turp. 352): pirmajā reizē virs priekšskatījuma divi pirkstu apļi rāda pinch un vilkšanu; novieto JS */
.dal-skats { position: relative; }
.dal-demo { position: absolute; inset: 0; pointer-events: none; border-radius: 14px; overflow: hidden; }
.dal-demo[hidden] { display: none; }
.dal-demo-pirksts { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); border: 2px solid rgba(255, 255, 255, 0.95); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 0 0 7px rgba(255, 255, 255, 0.22); opacity: 0; transition: opacity 0.25s; will-change: transform; }
.dal-demo-pirksts.dal-demo-redzams { opacity: 1; }
@media (max-width: 760px) {
    .dal-kolonnas { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
    .dal-grupa-fons { max-width: 100%; }
    .dal-kreisa, .dal-vadiklas { display: contents; }
    /* secība (Davis): fonu slīdnis -> pogas -> statuss -> attēls -> elementi -> josla */
    .dal-grupa-fons { order: 1; }
    .dal-pogas { order: 2; margin: 0; }
    .dal-status { order: 3; margin: -6px 0 0; }
    .dal-status:empty { display: none; }
    .dal-skats { width: 100%; max-width: 300px; margin: 0 auto; }
    .dal-skats { order: 4; }
    .dal-grupa-elementi { order: 5; }
    .dal-grupa-formats { order: 6; } /* Davis: zem Papildu elementiem */
    .dal-grupa-josla { order: 7; }
    .dal-grupa { margin: 0; }
    /* fonu slīdnis: viena rinda, pirksta ritināšana ar fiksāciju */
    .dal-foni { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: thin; }
    .dal-fons { scroll-snap-align: start; width: 92px; }
    .dal-fons img { width: 92px; height: 164px; }
}

/* ── Copes apstākļi šodien (turp. 355): vieta, 6 faktu flīzes, sugu apļi 1-5 ──── */
.copes { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 14px 16px 12px; margin: 0 0 22px; box-shadow: 0 1px 3px rgba(15, 53, 64, 0.05); }
.copes-land .copes { margin: 0; }
.copes-galva { text-align: center; }
.copes-galva .feed-title { margin-bottom: 12px; }
.copes-vieta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; font-size: 0.9rem; color: var(--muted); }
.copes-vietas-nos { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.copes-vietas-nos img { width: 16px; height: 16px; opacity: 0.7; }
.copes-vietas-nos b { color: var(--ink); font-weight: 700; }
.copes-datums { white-space: nowrap; }
.copes-pogas { display: inline-flex; gap: 6px; }
.copes-pogas .btn img { width: 16px; height: 16px; }
.copes-flizes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.copes-flize { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px 8px; border-radius: 10px; background: #f3f7f6; min-width: 0; }
.copes-flize-virs { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.copes-flize-virs img { width: 15px; height: 15px; opacity: 0.8; }
.copes-flize b { font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copes-flize small { font-size: 0.76rem; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copes-sugas { display: flex; gap: 4px; margin: 12px -8px -4px; padding: 2px 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.copes-suga { position: relative; flex: 0 0 auto; width: 94px; scroll-snap-align: start; }
.copes-suga-saite { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 5px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.copes-suga-saite:hover { background: #f1f6f5; }
.copes-liegums { position: absolute; top: 1px; right: 8px; z-index: 2; width: 24px; height: 24px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #f7c948; color: #3a2c00; font: 800 0.82rem/20px var(--font); text-align: center; cursor: pointer; box-shadow: 0 1px 3px rgba(15, 53, 64, 0.3); }
.copes-liegums:hover, .copes-liegums.atverts { background: #f0b400; }
.copes-liegums-logs { position: absolute; z-index: 20; width: 250px; max-width: calc(100% - 12px); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 0.8rem; line-height: 1.4; color: var(--ink); box-shadow: 0 6px 20px rgba(15, 53, 64, 0.18); text-align: left; }
.copes-liegums-logs p { margin: 0 0 4px; }
.copes-liegums-logs a { color: var(--teal-dark); font-weight: 600; }
.copes-liegums-logs[hidden] { display: none; }
.copes-aplis { position: relative; width: 68px; height: 68px; border-radius: 50%; background: var(--g); display: grid; place-items: center; }
.copes-aplis::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.copes-aplis img { position: relative; width: 50px; height: 50px; object-fit: contain; }
.copes-aplis-liegums img { filter: grayscale(1); opacity: 0.55; }
.copes-balle { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--teal); color: #fff; font-size: 0.74rem; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 1px 3px rgba(15, 53, 64, 0.25); }
.copes-suga-nos { margin-top: 3px; font-size: 0.85rem; font-weight: 600; line-height: 1.1; }
.copes-zina { margin: 8px 0 0; font-size: 0.85rem; color: var(--teal-dark); }
.copes-zina[hidden] { display: none; }
.copes-ielade { opacity: 0.55; pointer-events: none; }
.copes-modal { position: fixed; inset: 0; z-index: 1200; background: rgba(15, 53, 64, 0.55); display: flex; align-items: center; justify-content: center; padding: 14px; }
.copes-modal-logs { width: 100%; max-width: 640px; background: var(--card); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.copes-modal-karte { height: 60vh; min-height: 280px; }
.copes-modal-pogas { display: flex; gap: 10px; padding: 12px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.copes-modal-pogas p { margin: 0 auto 0 0; font-size: 0.88rem; color: var(--muted); }
.sik-josla { position: fixed; left: 12px; right: 12px; bottom: calc(66px + env(safe-area-inset-bottom) / 2); z-index: 1100; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 24px rgba(15, 53, 64, 0.18); }
.sik-josla[hidden], .copes-modal[hidden] { display: none; }
.sik-josla > img { flex: 0 0 auto; }
.sik-josla p { flex: 1 1 200px; margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--ink); }
.sik-josla a, .sik-logs a { color: var(--teal-dark); font-weight: 600; }
.sik-josla > div { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; justify-content: flex-end; }
.sik-josla .btn { flex: 1 1 auto; justify-content: center; }
.sik-logs { max-height: 90vh; overflow-y: auto; padding: 20px 22px 18px; }
.sik-logs header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sik-logs h2 { margin: 0 0 6px; font-size: 1.2rem; }
.sik-logs > p { margin: 0 0 14px; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.sik-kat { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.sik-kat b { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.sik-kat p { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.4; }
.sik-sledzis { position: relative; flex: 0 0 auto; width: 44px; height: 24px; margin-top: 2px; }
.sik-sledzis input { position: absolute; opacity: 0; width: 0; height: 0; }
.sik-sledzis span { position: absolute; inset: 0; border-radius: 24px; background: #c9d6d3; cursor: pointer; transition: background 0.2s; }
.sik-sledzis span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.sik-sledzis input:checked + span { background: var(--teal); }
.sik-sledzis input:checked + span::before { transform: translateX(20px); }
.sik-sledzis input:disabled + span { opacity: 0.55; cursor: not-allowed; }
.sik-sledzis input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.sik-logs .copes-modal-pogas { padding: 16px 0 0; gap: 8px; }
.sik-logs .copes-modal-pogas .btn { flex: 1 1 140px; justify-content: center; }
@media (min-width: 900px) { .sik-josla { bottom: 16px; max-width: 960px; flex-wrap: nowrap; } .sik-josla > div, .sik-josla .btn { flex: 0 0 auto; } }
@media (max-width: 1000px) { .copes-flizes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .copes { padding: 12px 12px 10px; } .copes-galva .feed-title { font-size: 1.25rem; margin-bottom: 10px; } .copes-vieta { gap: 4px 12px; font-size: 0.85rem; } .copes-vietas-nos { white-space: normal; text-align: center; } .copes-pogas { flex-basis: 100%; justify-content: center; margin-top: 4px; } .copes-flizes { gap: 6px; margin-top: 10px; } .copes-flize { padding: 8px 8px 7px; } .copes-flize b { font-size: 0.95rem; } .copes-suga { width: 86px; } }
@media (max-width: 360px) { .copes-flizes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
