:root {
  --brand: #27ae60; --brand-d: #1e8a4c; --bg: #16161c; --panel: #1e1e26; --head: #26262f;
  --div: #3a3a44; --text: #e8e8ec; --soft: #9a9aa5; --warn: #e67e22; --bad: #e05548;
  --st: env(safe-area-inset-top); --sb: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { min-height: 100vh; overscroll-behavior: none; }
[hidden] { display: none !important; }
.soft { color: var(--soft); } .small { font-size: 13px; } .center { text-align: center; }
.view { padding: calc(var(--st) + 8px) 12px calc(var(--sb) + 16px); }

/* gombok, mezok */
.btn { display: block; width: 100%; border: 1px solid var(--div); background: var(--head); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font: inherit; margin: 8px 0; cursor: pointer; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn.primary:active { background: var(--brand-d); }
.btn.big { padding: 15px; font-size: 17px; }
.btn.link { background: none; border: 0; color: var(--soft); font-size: 14px; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; }
input[type=password], input[type=text], input[type=search], select {
  width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--div);
  border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 17px; outline: none; }
input:focus { border-color: var(--brand); }
select { font-size: 15px; padding: 9px 10px; width: auto; }

/* feloldas */
.lock-box { max-width: 420px; margin: 6vh auto 0; text-align: center; }
.lock-box .logo { width: 96px; height: 96px; border-radius: 22px; }
.lock-box h1 { margin: 10px 0 2px; font-size: 26px; }
.lock-box form, .lock-box #lock-novault { margin-top: 22px; text-align: left; }
.err { color: var(--bad); min-height: 1.2em; font-size: 14px; text-align: center; }
.progress { height: 6px; background: var(--panel); border-radius: 3px; overflow: hidden; margin: 10px 0; }
.progress div { height: 100%; width: 0; background: var(--brand); transition: width .1s; }

/* fejlec */
.top { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 5;
  background: var(--bg); padding: 6px 0; margin-top: -6px; }
.top h2 { flex: 1; margin: 0; font-size: 18px; text-align: center; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.icon { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--div);
  background: var(--panel); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
span.icon { border: 0; background: none; }

/* szurok */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--div); background: var(--panel); color: var(--text);
  border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.catrow { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 8px; }

/* lista */
.list { list-style: none; margin: 0; padding: 0; background: var(--panel); border-radius: 14px;
  border: 1px solid var(--div); overflow: hidden; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-top: 1px solid var(--div); }
.list li:first-child { border-top: 0; }
.list li:active { background: var(--head); }
.av { flex: none; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 17px; }
.av.note { background: #f1c40f; color: #7d6608; border-radius: 8px; }
.av.card { background: #2980b9; border-radius: 8px; font-size: 14px; }
.li-main { flex: 1; min-width: 0; }
.li-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.li-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--soft); font-size: 14px; }
.mark { flex: none; font-size: 15px; }
.mark.fav { color: #f1c40f; }
.empty { padding: 30px; text-align: center; color: var(--soft); }

/* reszletek */
.detail { max-width: 640px; margin: 0 auto; }
.card { background: var(--panel); border: 1px solid var(--div); border-radius: 14px; padding: 4px 14px; margin: 10px 0; }
.card > p { margin: 10px 0; }
.f { padding: 10px 0; border-top: 1px solid var(--div); }
.f:first-child { border-top: 0; }
.f-l { color: var(--soft); font-size: 13px; }
.f-row { display: flex; align-items: center; gap: 8px; }
.f-v { flex: 1; min-width: 0; word-break: break-all; font-size: 17px; user-select: text; -webkit-user-select: text; }
.f-v.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .5px; }
.f-v.pre { white-space: pre-wrap; word-break: break-word; font-size: 16px; }
.f-v a { color: var(--brand); }
.mini { flex: none; border: 1px solid var(--div); background: var(--head); color: var(--text);
  border-radius: 10px; padding: 8px 11px; font-size: 14px; }
.mini.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.age { font-size: 14px; color: var(--soft); padding: 8px 0 10px; }
.age.warn { color: var(--warn); } .age.bad { color: var(--bad); }
label.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0;
  border-top: 1px solid var(--div); }
label.row:first-child { border-top: 0; }
label.row input[type=checkbox] { width: 26px; height: 26px; accent-color: var(--brand); }
.card .btn { margin: 10px 0; }

/* uzenet, adatvedelmi takaras (app-valto kepe) */
#toast { position: fixed; left: 50%; bottom: calc(var(--sb) + 24px); transform: translateX(-50%);
  background: #2d2d38; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 15px;
  box-shadow: 0 6px 24px rgba(0,0,0,.4); z-index: 20; max-width: 90vw; text-align: center; }
#privacy { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 50;
  align-items: center; justify-content: center; }
#privacy img { width: 96px; border-radius: 22px; opacity: .8; }
body.covered #privacy { display: flex; }

/* [v1.1.0] szerkesztes */
.syncbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 2px;
  background: #2a2417; border: 1px solid #6b5520; color: #f5d78e; border-radius: 12px; padding: 8px 10px; font-size: 14px; }
.actions { margin-top: 4px; }
.two { display: flex; gap: 8px; } .two .btn { margin-top: 0; }
.icon.save { background: var(--brand); border-color: var(--brand); color: #fff; }
.ef { padding: 10px 0; border-top: 1px solid var(--div); }
.ef:first-child { border-top: 0; }
.ef label { display: block; color: var(--soft); font-size: 13px; margin-bottom: 4px; }
.ef .f-row input { flex: 1; min-width: 0; }
.ef textarea { width: 100%; min-height: 160px; background: var(--bg); color: var(--text); border: 1px solid var(--div);
  border-radius: 12px; padding: 12px; font: inherit; font-size: 16px; resize: vertical; }
.ef input[type=text], .ef input[type=password], .ef input[type=search] { background: var(--bg); font-size: 16px; }
.ef .chk { display: flex; justify-content: space-between; align-items: center; color: var(--text); font-size: 16px; }
.ef .chk input { width: 26px; height: 26px; accent-color: var(--brand); }
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; display: flex; align-items: flex-end; }
.sheet-box { width: 100%; background: var(--panel); border-radius: 18px 18px 0 0; padding: 10px 14px calc(var(--sb) + 14px); }
