/* =====================================================================
   Seifs — grafīts, lavanda un sudrabs
   ===================================================================== */
:root {
  --plum-0: #1b1921;
  --plum-1: #25232c;
  --plum-2: #302d38;
  --card: rgba(20, 18, 26, .72);
  --card-2: rgba(44, 40, 54, .85);
  --line: rgba(183, 155, 224, .22);
  --line-2: rgba(183, 155, 224, .42);
  --rose-gold: #b79be0;
  --rose-gold-2: #d6c3f0;
  --lavender: #b89ce0;
  --lavender-2: #d6c3f0;
  --powder: #e8a8be;
  --cream: #f1eef4;
  --muted: #b9b0c6;
  --ok: #a8dcc0;
  --danger: #f29aac;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --r: 14px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plum-0); color: var(--cream); font: 16px/1.5 var(--sans); min-height: 100vh; }
a { color: var(--rose-gold-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose-gold); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.hidden { display: none !important; }
.pre { white-space: pre-wrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- samta fons ar lavandu un dzirkstelītēm ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='170' viewBox='0 0 160 170'%3E%3Cg stroke='%237a6a5a' stroke-width='1.4' fill='none' stroke-opacity='.55'%3E%3Cpath d='M0 60C45 52 95 34 155 6'/%3E%3Cpath d='M0 92C45 80 85 66 130 44'/%3E%3Cpath d='M0 118C30 110 60 100 92 84'/%3E%3C/g%3E%3Cg fill='%23a77fd6' fill-opacity='.6'%3E%3Cellipse cx='152' cy='8' rx='7' ry='4.4'/%3E%3Cellipse cx='138' cy='13' rx='7' ry='4.4'/%3E%3Cellipse cx='141' cy='20' rx='6.4' ry='4'/%3E%3Cellipse cx='124' cy='20' rx='7' ry='4.4'/%3E%3Cellipse cx='127' cy='27' rx='6.4' ry='4'/%3E%3Cellipse cx='110' cy='27' rx='6.4' ry='4'/%3E%3Cellipse cx='113' cy='34' rx='6' ry='3.8'/%3E%3Cellipse cx='97' cy='34' rx='6' ry='3.8'/%3E%3Cellipse cx='127' cy='46' rx='6.4' ry='4'/%3E%3Cellipse cx='113' cy='51' rx='6.4' ry='4'/%3E%3Cellipse cx='116' cy='58' rx='6' ry='3.8'/%3E%3Cellipse cx='99' cy='58' rx='6' ry='3.8'/%3E%3Cellipse cx='102' cy='65' rx='5.6' ry='3.6'/%3E%3Cellipse cx='90' cy='86' rx='6' ry='3.8'/%3E%3Cellipse cx='77' cy='90' rx='6' ry='3.8'/%3E%3Cellipse cx='80' cy='97' rx='5.6' ry='3.6'/%3E%3Cellipse cx='64' cy='97' rx='5.6' ry='3.6'/%3E%3C/g%3E%3C/svg%3E") left -46px top 64px / 190px auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='170' viewBox='0 0 160 170'%3E%3Cg stroke='%237a6a5a' stroke-width='1.4' fill='none' stroke-opacity='.55'%3E%3Cpath d='M160 110C115 118 65 136 5 164'/%3E%3Cpath d='M160 78C115 90 75 104 30 126'/%3E%3Cpath d='M160 52C130 60 100 70 68 86'/%3E%3C/g%3E%3Cg fill='%23a77fd6' fill-opacity='.6'%3E%3Cellipse cx='8' cy='162' rx='7' ry='4.4'/%3E%3Cellipse cx='22' cy='157' rx='7' ry='4.4'/%3E%3Cellipse cx='19' cy='150' rx='6.4' ry='4'/%3E%3Cellipse cx='36' cy='150' rx='7' ry='4.4'/%3E%3Cellipse cx='33' cy='143' rx='6.4' ry='4'/%3E%3Cellipse cx='50' cy='143' rx='6.4' ry='4'/%3E%3Cellipse cx='47' cy='136' rx='6' ry='3.8'/%3E%3Cellipse cx='33' cy='124' rx='6.4' ry='4'/%3E%3Cellipse cx='47' cy='119' rx='6.4' ry='4'/%3E%3Cellipse cx='44' cy='112' rx='6' ry='3.8'/%3E%3Cellipse cx='61' cy='112' rx='6' ry='3.8'/%3E%3Cellipse cx='70' cy='84' rx='6' ry='3.8'/%3E%3Cellipse cx='83' cy='80' rx='6' ry='3.8'/%3E%3Cellipse cx='80' cy='73' rx='5.6' ry='3.6'/%3E%3Cellipse cx='96' cy='73' rx='5.6' ry='3.6'/%3E%3C/g%3E%3C/svg%3E") right -20px bottom 92px / 150px auto no-repeat,
    radial-gradient(360px 260px at 88% 86%, rgba(130, 70, 150, .38), transparent 70%),
    radial-gradient(300px 220px at 15% 12%, rgba(120, 90, 150, .22), transparent 70%),
    radial-gradient(500px 300px at 50% 50%, rgba(80, 74, 92, .25), transparent 70%),
    linear-gradient(170deg, #302d38 0%, #25232c 55%, #1b1921 100%);
}

/* ---------- ielāde, pieslēgšanās ---------- */
.boot, .auth { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 24px; gap: 14px; }
.brand-mark, .brand { font-family: var(--serif); font-style: italic; color: var(--cream); text-decoration: none; }
.brand-mark { font-size: 2.5rem; }
.auth-card { width: min(420px, 92vw); text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; backdrop-filter: blur(6px); }
.auth-card h2 { margin: 0; font-family: var(--serif); font-weight: 500; }

/* ---------- karkass ---------- */
.demo-banner { background: rgba(183, 155, 224, .14); color: var(--rose-gold-2); text-align: center; font-size: .84rem; padding: 6px 12px; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px clamp(14px, 4vw, 28px); background: rgba(22, 20, 28, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.45rem; }
.main { max-width: 760px; margin: 0 auto; padding: 18px clamp(14px, 4vw, 28px) calc(var(--nav-h) + var(--safe-b) + 64px); }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(18, 16, 23, .9); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: .72rem; }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--rose-gold-2); }

/* ---------- virsraksti, paneļi ---------- */
.h1 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 4px 0 14px; line-height: 1.2; }
.h1.big { font-size: 1.9rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.page-head .h1 { margin-bottom: 14px; }
h2 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin: 0 0 10px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; backdrop-filter: blur(4px); }
.panel + .panel, .panel + section, section + .panel { margin-top: 12px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.section-title h2 { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 6px; }
.back svg { width: 18px; height: 18px; }
.welcome { margin-bottom: 14px; border-color: var(--line-2); }
.welcome p { margin: 0 0 12px; }

/* ---------- pogas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--cream);
  text-decoration: none; cursor: pointer; font-size: .95rem; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { border-color: var(--rose-gold); }
.btn.primary { background: var(--rose-gold); border-color: var(--rose-gold); color: #25232c; font-weight: 600; }
.btn.primary:hover { background: var(--rose-gold-2); }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(242, 154, 172, .45); }
.btn.small { min-height: 36px; padding: 5px 13px; font-size: .88rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.linkbtn { border: 0; background: none; color: var(--rose-gold-2); padding: 0 4px; cursor: pointer; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- ievade ---------- */
.stack { display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label, .label { font-size: .86rem; color: var(--muted); }
label.req::after { content: " *"; color: var(--rose-gold); }
.hint { font-size: .8rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(18, 16, 23, .7); color: var(--cream);
}
textarea { resize: vertical; line-height: 1.45; }
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b79be0' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select option { background: #25232c; }
input::placeholder, textarea::placeholder { color: rgba(201, 178, 194, .55); }
input:focus, select:focus, textarea:focus { border-color: var(--rose-gold); outline: none; }
.check-row { display: flex; align-items: center; gap: 10px; color: var(--cream); font-size: .95rem; cursor: pointer; padding: 4px 0; }
.check-row input { width: 20px; height: 20px; accent-color: var(--rose-gold); flex: none; }
.check-row.removed { opacity: .55; }
.checks { display: grid; gap: 2px; }
.checks.scroll { max-height: 50vh; overflow-y: auto; padding-right: 4px; margin-top: 8px; }
.search { position: relative; margin-bottom: 10px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 40px; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.filters select { min-height: 38px; font-size: .88rem; border-radius: 999px; }
.filter-note { font-size: .86rem; color: var(--rose-gold-2); margin: 0 0 10px; }
.savebar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.savebar .danger { margin-right: auto; }
.inline-date { margin-top: 12px; max-width: 220px; }

/* ---------- segmenti ---------- */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 10px; width: max-content; max-width: 100%; overflow-x: auto; }
.seg-btn { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: .88rem; white-space: nowrap; }
.seg-btn .n { opacity: .75; font-size: .8rem; }
.seg-btn.on { background: var(--lavender); color: #25232c; font-weight: 600; }

/* ---------- pārskats ---------- */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: inherit; backdrop-filter: blur(4px); }
.kpi:hover { border-color: var(--line-2); }
.kpi .v { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: .86rem; }
.lrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.lrow:last-of-type { border-bottom: 0; }
.panel.lrow { border-bottom: 1px solid var(--line); margin-bottom: 12px; padding: 14px 16px; }
.ok-line { border-color: rgba(168, 220, 192, .4); margin-bottom: 12px; }
.ok-line svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--ok); }

/* ---------- aromātu saraksts ---------- */
.list { display: grid; gap: 8px; }
.list-sum { margin: 0 0 6px 2px; }
.arow { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; backdrop-filter: blur(4px); }
.arow.head { margin-bottom: 12px; }
.arow.removed .ar-name { text-decoration: line-through; color: var(--muted); }
.tick { width: 30px; height: 30px; border-radius: 8px; border: 1.8px solid var(--rose-gold); background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; color: transparent; padding: 0; }
.tick svg { width: 18px; height: 18px; }
.tick.on { background: var(--rose-gold); color: #25232c; }
.ar-main { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.ar-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-sub { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-sel { width: auto; min-height: 32px; padding: 3px 28px 3px 10px; font-size: .78rem; border-radius: 999px; background-position: right 9px center; flex: none; }
.st-sel.st-pieejams { color: var(--lavender-2); border-color: rgba(184, 156, 224, .7); background-color: rgba(184, 156, 224, .16); }
.st-sel.st-nav { color: #f3c6d6; border-color: rgba(232, 168, 190, .6); background-color: rgba(232, 168, 190, .12); }
.st-sel.st-iznemts { color: var(--muted); }

/* ---------- kartīte ---------- */
.dl { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0; }
.dl dt { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.dl dt:first-child { margin-top: 0; }
.dl dd { margin: 0; }
.code-tag { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; color: var(--rose-gold-2); border: 1px solid rgba(183, 155, 224, .45); border-radius: 6px; padding: 1px 6px; text-decoration: none; margin: 2px 2px 2px 0; white-space: nowrap; }
.code-tag.lg { font-size: .95rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: rgba(18, 16, 23, .6); padding: 0; cursor: pointer; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.big { width: 100%; max-width: 260px; margin-top: 12px; display: block; }
.ph-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(22, 20, 28, .85); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ph-x svg { width: 14px; height: 14px; }
.ph-add { aspect-ratio: 1; border: 1px dashed var(--line-2); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); cursor: pointer; font-size: .8rem; }
.ph-add svg { width: 22px; height: 22px; }
.photo-big { width: 100%; border-radius: 12px; display: block; }
.story { border-color: var(--line-2); }
.story .actions { margin-top: 10px; }

/* ---------- maisījumi ---------- */
.card-link { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; text-decoration: none; color: inherit; backdrop-filter: blur(4px); }
.card-link:hover { border-color: var(--line-2); }
.cl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cl-name { font-family: var(--serif); font-size: 1.1rem; }
.cl-sub { font-size: .88rem; margin-top: 4px; }
.cl-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.chip { display: inline-block; font-size: .76rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; text-decoration: none; color: var(--cream); }
.chip.res-testeju { color: var(--rose-gold-2); }
.chip.res-izdevas { color: var(--ok); border-color: rgba(168, 220, 192, .5); }
.chip.res-neizdevas { color: var(--muted); border-color: var(--line); }
.mlist { display: grid; }
.mrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow.total { font-weight: 600; color: var(--rose-gold-2); border-bottom: 0; }
.brow { display: grid; grid-template-columns: 1fr 104px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.ml { position: relative; }
.ml input { padding-right: 34px; text-align: right; }
.ml span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }

/* ---------- produkti ---------- */
.prow { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; text-decoration: none; color: inherit; backdrop-filter: blur(4px); }
.pr-name { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.in { color: var(--lavender-2); border-color: rgba(184, 156, 224, .65); background: rgba(184, 156, 224, .14); }
.chip.out { color: #f3c6d6; border-color: rgba(232, 168, 190, .55); background: rgba(232, 168, 190, .1); }
.legend { margin: 10px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.in { background: var(--lavender); }
.dot.out { background: var(--powder); margin-left: 8px; }

/* ---------- vairāk ---------- */
.more-h { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 4px 8px; font-weight: 500; }
.more-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; backdrop-filter: blur(4px); }
.more-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-decoration: none; color: var(--cream); border: 0; background: none; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
.more-link:last-child { border-bottom: 0; }
.more-link svg { width: 20px; height: 20px; color: var(--rose-gold); flex: none; }
.more-link span:not(.chev) { flex: 1; }
.more-link.danger, .more-link.danger svg { color: var(--danger); }
.chev { color: var(--muted); }

/* ---------- logi, paziņojumi ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(8, 7, 11, .7); display: grid; place-items: center; padding: 16px; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #2b2833; border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.modal-head h2 { margin: 0; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.modal-foot .danger { margin-right: auto; }
@media (max-width: 600px) {
  .modal-backdrop { place-items: end center; padding: 0; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; padding-bottom: calc(18px + var(--safe-b)); }
}
#toast-root { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 60; display: grid; gap: 8px; width: min(420px, 92vw); }
.toast { background: #36323f; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font-size: .92rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.toast.err { border-color: rgba(242, 154, 172, .6); color: #ffd6df; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--rose-gold); border-radius: 0 10px 10px 0; padding: 10px 14px; background: rgba(183, 155, 224, .08); font-size: .92rem; margin: 0; }
.notice.err { border-left-color: var(--danger); background: rgba(242, 154, 172, .08); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); background: rgba(22, 20, 28, .45); }

/* =====================================================================
   Seifs — papildus
   ===================================================================== */
.heart-line {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 4px); height: 28px; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='30' viewBox='0 0 340 30' preserveAspectRatio='none'%3E%3Cpath d='M20 20C110 20 140 14 170 16S250 22 320 12' stroke='%23d8d4de' fill='none' stroke-width='1' opacity='.55'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='18' viewBox='0 0 20 18'%3E%3Cpath d='M10 16C6 12 2 10 2 6.5A4 4 0 0 1 10 5a4 4 0 0 1 8 1.5C18 10 14 12 10 16z' stroke='%23d8d4de' fill='none' stroke-width='1.2' opacity='.75'/%3E%3C/svg%3E") center 2px / 20px 18px no-repeat;
}
.brand { font-size: 1.5rem; }
.btn.wide { width: 100%; margin: 12px 0; min-height: 48px; }
.actions.center { justify-content: center; }

/* cilnes */
.tabs-bar { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; }
.tabs { flex: 1; display: flex; gap: 6px; overflow-x: auto; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; font-size: .92rem; flex: none; }
.tab.on { background: var(--lavender); color: #25232c; font-weight: 600; }
.tab.add { padding: 6px 10px; display: grid; place-items: center; }
.tab.add svg { width: 18px; height: 18px; }

/* grupas un ieraksti */
.grp { margin-bottom: 18px; }
.grp.sub { margin: 12px 0 0 14px; padding-left: 12px; border-left: 1px solid var(--line); }
.grp-head { display: flex; align-items: center; gap: 6px; margin: 0 2px 8px; }
.grp-name { flex: 1; margin: 0; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.grp.sub .grp-name { font-size: .74rem; letter-spacing: .05em; color: var(--lavender-2); }
.empty-grp { margin: 0 2px 4px; }
.add-cat { margin-top: 4px; }
.erow { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 10px 9px 12px; text-decoration: none; color: inherit; backdrop-filter: blur(4px); }
.erow:hover { border-color: var(--line-2); }
.av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(183, 155, 224, .18); color: var(--lavender-2); font-family: var(--serif); font-size: 1.1rem; }
.er-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.er-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-sub { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ieraksta lapa */
.ph-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ph-title .av { width: 46px; height: 46px; font-size: 1.4rem; }
.ph-title .h1 { margin: 0; }
.fields { padding: 4px 16px; }
.frow { display: flex; align-items: center; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; }
.f-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.f-lbl { font-size: .76rem; color: var(--muted); }
.f-val { overflow-wrap: anywhere; color: var(--cream); }
a.f-val { color: var(--lavender-2); }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .04em; overflow-wrap: anywhere; }
.hist { display: grid; }
.hrow { display: flex; align-items: center; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hrow:last-child { border-bottom: 0; }
.hrow .secret { font-size: .95rem; }
.h-title { font-weight: 500; }
.h-title a { color: inherit; }

/* forma */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 50px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.icon-btn.in { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; }
.gen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.check-row.small { font-size: .86rem; }

/* izvēlne (⋯) */
.menu { display: grid; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 13px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--cream); cursor: pointer; text-align: left; font-size: .98rem; }
.menu-item:last-child { border-bottom: 0; }
.menu-item svg { width: 20px; height: 20px; color: var(--lavender); flex: none; }
.menu-item.danger, .menu-item.danger svg { color: var(--danger); }
.menu-item:disabled { opacity: .35; cursor: not-allowed; }
.more-row { display: flex; align-items: center; gap: 4px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); }
.mr-name { flex: 1; min-width: 0; }
.err-slot:empty { display: none; }
