/* ===== Napló – felület ===== */
:root {
  --paper: #faf7f2;
  --paper-2: #f3eee6;
  --card: #fffdfa;
  --ink: #1f1b1d;
  --ink-2: #5a5256;
  --ink-3: #8b8287;
  --line: #e7e0d6;
  --wolf: #33557a;
  --wolf-soft: #e0e8f1;
  --fox: #c4553a;
  --fox-soft: #f7e3db;
  --accent: var(--wolf);
  --accent-ink: #ffffff;
  --accent-soft: var(--wolf-soft);
  --ok: #2f7a55;
  --err: #b3392f;
  --mark: rgba(222, 128, 44, 0.3);
  --mark-strong: rgba(222, 128, 44, 0.6);
  --shadow: 0 1px 2px rgba(40, 20, 30, 0.06), 0 8px 24px rgba(40, 20, 30, 0.07);
  --serif: 'Source Serif 4', Charter, 'Iowan Old Style', Georgia, serif;
  --display: 'Fraunces', 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161317;
    --paper-2: #1e1a1f;
    --card: #1d191e;
    --ink: #ede7e2;
    --ink-2: #bcb3b6;
    --ink-3: #877e83;
    --line: #2f2a30;
    --wolf: #94b5d8;
    --wolf-soft: #222f3d;
    --fox: #ec9a80;
    --fox-soft: #3b2620;
    --accent: var(--wolf);
    --accent-ink: #15131a;
    --accent-soft: var(--wolf-soft);
    --ok: #7ac69e;
    --err: #ec8a80;
    --mark: rgba(240, 160, 80, 0.28);
    --mark-strong: rgba(240, 160, 80, 0.55);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

/* a saját jeled színe lesz a felület kiemelő színe */
:root[data-mark="fox"] { --accent: var(--fox); --accent-soft: var(--fox-soft); }
.by-wolf { --me: var(--wolf); --me-soft: var(--wolf-soft); }
.by-fox { --me: var(--fox); --me-soft: var(--fox-soft); }
.mark { width: 22px; height: 22px; flex: none; display: block; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.center { text-align: center; }
.error-text { color: var(--err); }
.ok-text { color: var(--ok); }
.spacer { flex: 1; }
.ic { width: 20px; height: 20px; display: block; flex: none; }
.ic-wrap { display: inline-flex; }

/* ----- gombok ----- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  text-decoration: none; cursor: pointer; font-weight: 500; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--err); color: #fff; border-color: transparent; }
.btn.ghost.danger { background: transparent; color: var(--err); border-color: transparent; }
.btn.small { height: 30px; padding: 0 11px; font-size: 13px; }
.btn.block { width: 100%; justify-content: center; height: 42px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; color: var(--ink-2); text-decoration: none;
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----- fejléc ----- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 10px max(16px, env(safe-area-inset-left)); height: 60px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font: 650 20px/1 var(--display); text-decoration: none; letter-spacing: -.01em; }
.brand-mark { color: var(--accent); display: inline-flex; }
.tabs { display: flex; gap: 2px; background: var(--paper-2); padding: 3px; border-radius: 999px; }
.tab { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.tab.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent-soft); color: var(--accent); font: 650 16px var(--display);
}
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 220px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column;
}
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; width: 100%;
}
.menu a:hover, .menu button:hover { background: var(--paper-2); }
.menu .danger { color: var(--err); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu-head { padding: 8px 10px 4px; font-weight: 600; color: var(--ink-3); font-size: 13px; }

/* ----- oldalak ----- */
.page { max-width: 1080px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-left)) 80px; }
.page.narrow { max-width: 760px; }
h1 { font: 650 34px/1.15 var(--display); letter-spacing: -.015em; margin: 6px 0 18px; }
h2 { font: 600 20px/1.3 var(--display); }

/* ----- lista ----- */
.list-head { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 24px; justify-content: space-between; margin-bottom: 8px; }
.list-head h1 { margin: 0; }
.list-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search {
  height: 38px; width: 260px; max-width: 100%; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; text-decoration: none; cursor: pointer; color: var(--ink-2); font-size: 14px;
}
.chip .ic { width: 16px; height: 16px; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:hover:not(.on) { border-color: var(--ink-3); color: var(--ink); }
.timeline { max-width: 820px; }
.month { font: 500 14px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 34px 0 10px 76px; }
.card {
  display: flex; gap: 20px; padding: 18px 0; text-decoration: none; border-top: 1px solid var(--line);
}
.month + .card { border-top: 0; }
.card-date { width: 56px; flex: none; text-align: center; padding-top: 2px; }
.card-date .day { display: block; font: 500 30px/1 var(--display); }
.card-date .wd { display: block; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.card-body { flex: 1; min-width: 0; }
.card h3 { font: 600 22px/1.25 var(--display); margin: 2px 0 4px; letter-spacing: -.01em; }
.card:hover h3 { color: var(--accent); }
.card-sub { margin: 0 0 4px; color: var(--ink-2); font: 400 17px/1.4 var(--serif); }
.card-excerpt { margin: 0; color: var(--ink-2); font: 400 16px/1.5 var(--serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.kind-journal .card-excerpt { -webkit-line-clamp: 3; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); min-height: 18px; }
.kind-tag { text-transform: uppercase; letter-spacing: .07em; font-weight: 600; color: var(--accent); }
.who { font-weight: 600; color: var(--ink-2); }
.vis .ic { width: 15px; height: 15px; }
.vis-public { color: var(--accent); }
.card-marks { display: flex; gap: 8px; margin-top: 8px; color: var(--ink-3); }
.card-marks .ic { width: 16px; height: 16px; }
.card-cover { width: 132px; height: 96px; flex: none; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty { text-align: center; padding: 70px 20px; color: var(--ink-2); }
.empty-mark { display: inline-flex; color: var(--accent); margin-bottom: 10px; }
.empty-mark .ic { width: 40px; height: 40px; stroke-width: 1.3; }
.empty p { font: 400 19px/1.5 var(--serif); margin: 0 0 18px; }

/* ----- szerkesztő ----- */
.editor-bar {
  position: sticky; top: 60px; z-index: 20;
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 5px 13px; border-radius: 999px; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg.small button { padding: 3px 10px; font-size: 13px; }
.save-status { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.save-status.pending { color: var(--ink-2); }
.vis-wrap { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 6px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; }
.vis-wrap .ic { width: 17px; height: 17px; color: var(--ink-2); }
.vis-select { border: 0; background: transparent; padding: 0 2px; cursor: pointer; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.editor-layout:has(.check-panel:not([hidden])) { grid-template-columns: minmax(0, 1fr) 320px; }
.sheet { max-width: 720px; width: 100%; margin: 0 auto; }
.sheet-meta { display: flex; align-items: center; gap: 12px; margin: 12px 0 18px; color: var(--ink-3); }
.sheet-meta input[type=date] { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 4px 8px; color: var(--ink-2); }
.title-input, .subtitle-input {
  display: block; width: 100%; border: 0; background: transparent; resize: none; overflow: hidden; padding: 0; outline: none;
}
.title-input { font: 650 40px/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.subtitle-input { font: 400 22px/1.4 var(--serif); color: var(--ink-2); margin-bottom: 18px; }
.title-input::placeholder, .subtitle-input::placeholder { color: var(--ink-3); opacity: .6; }

.toolbar {
  position: sticky; top: 116px; z-index: 15;
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 5px; margin: 0 -5px 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.tb { display: inline-flex; align-items: center; gap: 6px; height: 34px; min-width: 34px; justify-content: center; border: 0; border-radius: 7px; background: none; cursor: pointer; color: var(--ink-2); padding: 0 7px; }
.tb:hover { background: var(--paper-2); color: var(--ink); }
.tb.on { background: var(--accent-soft); color: var(--accent); }
.tb.wide { font-size: 13px; font-weight: 500; padding: 0 10px; }
.tb .ic { width: 19px; height: 19px; }
.toolbar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.tb-menu { left: 0; right: auto; top: calc(100% + 6px); min-width: 210px; }

/* a szöveg – közel a Medium tipográfiájához */
.prose { font: 400 20px/1.62 var(--serif); letter-spacing: -.003em; word-wrap: break-word; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font: 650 28px/1.25 var(--display); margin: 1.5em 0 .5em; letter-spacing: -.015em; }
.prose h3 { font: 600 22px/1.3 var(--display); margin: 1.3em 0 .4em; }
.prose blockquote { margin: 1.2em 0; padding: 0 0 0 22px; border-left: 3px solid var(--ink); font-style: italic; }
.prose pre { font: 15px/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--paper-2); padding: 16px 18px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; }
.prose code { font: .85em ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--paper-2); padding: 2px 5px; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose ul, .prose ol { margin: 0 0 1.05em; padding-left: 1.4em; }
.prose li { margin: .25em 0; }
.prose hr { border: 0; text-align: center; margin: 2em 0; height: 1.5em; }
.prose hr::before { content: '···'; letter-spacing: .9em; color: var(--ink-3); font-size: 26px; line-height: 1; }
.prose a { color: inherit; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.prose figure { margin: 1.8em 0; position: relative; }
.prose figure img { display: block; margin: 0 auto; border-radius: 4px; }
.prose figcaption { text-align: center; font: 14px/1.45 var(--sans); color: var(--ink-3); margin-top: 10px; outline: none; }
.prose figcaption a { color: inherit; }
.editor-body { outline: none; min-height: 40vh; padding-bottom: 40px; }
.editor-body.is-empty::before { content: attr(data-placeholder); position: absolute; color: var(--ink-3); pointer-events: none; font-style: italic; opacity: .8; }
.editor-body { position: relative; }
.editor-body figcaption:empty::before { content: attr(data-placeholder); color: var(--ink-3); opacity: .7; }
.editor-body figure { cursor: default; }
.editor-body figure.flash img { outline: 3px solid var(--accent); }
.fig-del {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(20, 15, 18, .65); color: #fff; opacity: 0; transition: opacity .15s;
}
.editor-body figure:hover .fig-del, .fig-del:focus-visible { opacity: 1; }
::highlight(grammar) { background-color: var(--mark); }
::highlight(grammar-active) { background-color: var(--mark-strong); }

.bubble {
  position: absolute; z-index: 60; display: flex; gap: 2px; padding: 4px; border-radius: 10px;
  background: #1f1b1d; color: #f3ecef; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.bubble.show { opacity: 1; pointer-events: auto; transform: none; }
.bubble button { width: 34px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: inherit; border-radius: 7px; cursor: pointer; }
.bubble button:hover { background: rgba(255,255,255,.12); }
.bubble button.on { color: #f0b6dc; }
.bubble .ic { width: 18px; height: 18px; }

/* borító */
.cover-box { margin-bottom: 14px; }
.cover-empty { display: flex; gap: 6px; opacity: .8; }
.cover-empty:hover { opacity: 1; }
.cover { margin: 0 0 22px; position: relative; }
.cover img { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: 6px; }
.cover figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; text-align: center; }
.cover-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.cover:hover .cover-actions, .cover-actions:focus-within { opacity: 1; }
.cover-actions .btn { background: rgba(20, 15, 18, .7); color: #fff; border-color: transparent; }

/* csatolmányok */
.extras-box { margin: 28px 0 12px; }
.extras { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.extras:empty { display: none; }
.extra { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.extra-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.extra-label .ic { width: 15px; height: 15px; }
.extra-title { font: 600 17px/1.35 var(--serif); margin: 5px 0 2px; }
.extra-title a { text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.extra-meta { font-size: 13px; color: var(--ink-2); display: flex; gap: 10px; flex-wrap: wrap; }
.stars { color: #d2902f; letter-spacing: 1px; }
.extra-edit { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; }
.extra-edit .ic { width: 16px; height: 16px; }
.extra-book.has-cover { display: flex; gap: 14px; }
.book-cover { width: 64px; height: auto; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.15); align-self: start; }
.embed { width: 100%; border: 0; border-radius: 8px; margin-top: 10px; display: block; background: var(--paper-2); }
.embed.youtube { aspect-ratio: 16 / 9; }
.embed.spotify { height: 152px; }
.embed.spotify.tall { height: 352px; }
.embed.map { height: 200px; }
.extras-add { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tags-input { width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 14px 0; margin-top: 18px; color: var(--ink-2); outline: none; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; color: var(--ink-3); font-size: 14px; }

/* nyelvhelyesség */
.check-panel {
  position: sticky; top: 120px; align-self: start; max-height: calc(100vh - 140px); overflow: auto;
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 14px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.panel-head h3 { margin: 0; font: 600 17px var(--display); }
.issues { display: flex; flex-direction: column; gap: 10px; }
.issue { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; }
.issue:hover, .issue:focus { border-color: var(--ink-3); }
.issue-type { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.issue.t-spelling .issue-type { color: var(--err); }
.issue.t-grammar .issue-type { color: var(--accent); }
.issue-change { font: 16px/1.4 var(--serif); margin: 4px 0; }
.issue-change del { color: var(--err); text-decoration-thickness: 1px; }
.issue-change ins { color: var(--ok); text-decoration: none; font-weight: 600; }
.issue-why { margin: 2px 0 8px; font-size: 13px; color: var(--ink-2); }
.issue-actions { display: flex; gap: 6px; }
.spinner { width: 28px; height: 28px; margin: 20px auto; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* olvasó nézet */
.read-top { margin-bottom: 6px; }
.read-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--ink-3); font-size: 14px; margin-bottom: 14px; }
.read-meta .vis { display: inline-flex; gap: 4px; align-items: center; }
.read-title { font: 650 40px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 8px; }
.read-sub { font: 400 22px/1.4 var(--serif); color: var(--ink-2); margin: 0 0 22px; }

/* ----- ablakok, űrlapok ----- */
.modal {
  border: 0; padding: 0; border-radius: 16px; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px);
  background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal.wide { width: min(940px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(20, 12, 18, .45); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 4px 22px; }
.modal-head h2 { margin: 0; }
.modal-body { padding: 8px 22px 22px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12px; }
.field input, .field select, .field textarea, .form > input, .row input[type=search], .row select {
  height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); width: 100%;
}
.field textarea { height: auto; padding: 10px 12px; }
.field input:focus, .field select:focus, .row input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row input[type=search] { flex: 1; min-width: 200px; }
.row select { width: auto; }
.check { display: flex; gap: 8px; align-items: center; }
.search-results { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 240px; overflow: auto; }
.search-results .result { text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 14px; }
.search-results .result:hover { border-color: var(--accent); }
.search-results .result.book { display: flex; gap: 10px; align-items: center; }
.search-results .result.book img, .nocover { width: 34px; height: 50px; object-fit: cover; border-radius: 2px; background: var(--paper-2); flex: none; }
.embed-preview:empty { display: none; }
.stars-input { display: flex; gap: 2px; }
.stars-input button { border: 0; background: none; cursor: pointer; color: var(--ink-3); padding: 2px; }
.stars-input button.on { color: #d2902f; }
.stars-input button.on .ic { fill: currentColor; }

.unsplash .row { margin-bottom: 6px; }
.unsplash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 10px 0; min-height: 120px; }
.unsplash-item { position: relative; border: 0; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; }
.unsplash-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.unsplash-item:hover img { transform: scale(1.04); }
.unsplash-item .by { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 11px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.6)); }

/* ----- belépés ----- */
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(400px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow); }
.auth-foot { display: grid; gap: 12px; justify-items: center; margin-top: 8px; }
.auth-card h1 { text-align: center; margin: 6px 0 4px; }
.auth-card > p { text-align: center; margin-top: 0; }
.auth-mark { display: flex; justify-content: center; color: var(--accent); }
.auth-mark .ic { width: 38px; height: 38px; stroke-width: 1.4; }

/* ----- import, beállítások ----- */
.drop { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; color: var(--ink-2); font-weight: 500; }
.drop:hover { border-color: var(--accent); color: var(--accent); }
.drop input { display: none; }
.drop span { display: inline-flex; gap: 8px; align-items: center; }
.import-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; margin: 12px 0 16px; }
.import-opts .check { grid-column: 1 / -1; }
.import-table { width: 100%; border-collapse: collapse; }
.import-table td, .import-table th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.import-table select { height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--paper); }
.log { background: var(--paper-2); border-radius: 8px; padding: 12px; max-height: 260px; overflow: auto; font-size: 13px; white-space: pre-wrap; }
progress { width: 220px; accent-color: var(--accent); }
.card-plain { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.card-plain h2 { margin-top: 0; }
.features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.features .ok strong { color: var(--ok); }

/* ----- értesítések ----- */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #1f1b1d; color: #f6f0f3; padding: 10px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 14px; max-width: min(520px, calc(100vw - 32px)); transition: opacity .3s, transform .3s; }
.toast.ok { background: #1f4d37; }
.toast.error { background: #7d261f; }
.toast.out { opacity: 0; transform: translateY(6px); }

/* ----- mobil ----- */
@media (max-width: 860px) {
  .editor-layout:has(.check-panel:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .check-panel { position: fixed; left: 8px; right: 8px; bottom: 8px; top: auto; max-height: 45vh; z-index: 40; box-shadow: var(--shadow); }
}
@media (max-width: 680px) {
  .topbar { gap: 10px; }
  .brand { font-size: 0; gap: 0; }
  .brand-mark .ic { width: 24px; height: 24px; }
  .tab { padding: 6px 10px; }
  .top-actions .btn span { display: none; }
  .top-actions .btn { width: 36px; padding: 0; justify-content: center; }
  h1 { font-size: 28px; }
  .month { margin-left: 0; }
  .card { gap: 12px; }
  .card-date { width: 40px; }
  .card-date .day { font-size: 24px; }
  .card-cover { width: 76px; height: 76px; }
  .card h3 { font-size: 19px; }
  .editor-bar { flex-wrap: wrap; row-gap: 8px; }
  .editor-bar .spacer { display: none; }
  .editor-bar .vis-wrap { order: 4; margin-left: auto; }
  .editor-bar .save-status { order: 5; flex: 1; }
  .editor-bar > .btn.primary { order: 6; }
  .editor-bar > .menu-wrap { order: 7; }
  .vis-select { max-width: 110px; }
  .toolbar { position: static; }
  .title-input, .read-title { font-size: 31px; }
  .subtitle-input, .read-sub { font-size: 19px; }
  .prose { font-size: 18.5px; }
  .search { width: 100%; }
  .list-tools { width: 100%; }
}

/* ===== Ink n Tea: jelek, széljegyzetek, térkép ===== */
.brand-mark .duo { width: 46px; height: 27px; color: var(--ink-3); }
.brand { gap: 10px; font-style: italic; font-weight: 500; }
.avatar { display: grid; place-items: center; background: var(--me-soft); color: var(--me); }
.avatar .mark { width: 24px; height: 24px; }
.auth-mark .duo { width: 92px; height: 54px; color: var(--ink-3); }

.card { position: relative; }
.card::before { content: ''; position: absolute; left: -14px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--me); opacity: .55; }
.card-date .day { color: var(--me); }
.who { display: inline-flex; align-items: center; gap: 5px; color: var(--me); font-weight: 600; }
.who .mark { width: 17px; height: 17px; }
.note-count { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-3); }
.note-count .ic { width: 15px; height: 15px; }
.kind-tag { color: var(--ink-3); }
.byline-mini { display: inline-flex; align-items: center; gap: 6px; color: var(--me); }
.byline-mini .mark { width: 20px; height: 20px; }

/* széljegyzetek: cetlik a lap szélén */
.notes { margin-top: 40px; padding-top: 26px; border-top: 1px dashed var(--line); }
.notes-title { display: flex; align-items: center; gap: 8px; font: 600 18px var(--display); margin: 0 0 14px; }
.notes-hint { margin: -6px 0 12px; }
.notes-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.note {
  position: relative; display: flex; gap: 12px; padding: 14px 44px 14px 14px;
  background: color-mix(in srgb, var(--me-soft) 60%, var(--card)); border-radius: 6px 22px 22px 22px;
  border-left: 3px solid var(--me);
}
.note:nth-child(even) { border-radius: 22px 6px 22px 22px; }
.note-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--me); flex: none; }
.note-avatar .mark { width: 22px; height: 22px; }
.note-main { min-width: 0; }
.note-head { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.note-head strong { color: var(--me); }
.note-body { margin: 3px 0 0; font: 17px/1.5 var(--serif); white-space: pre-wrap; overflow-wrap: anywhere; }
.note-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; opacity: .5; }
.note:hover .note-del, .note-del:focus-visible { opacity: 1; }
.note-del .ic { width: 16px; height: 16px; }
.note-new { display: flex; gap: 10px; align-items: flex-end; padding: 10px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.note-input { flex: 1; border: 0; background: transparent; resize: none; outline: none; font: 17px/1.5 var(--serif); padding: 6px 0; min-height: 34px; }
.note-new:focus-within { border-color: var(--me); box-shadow: 0 0 0 3px var(--me-soft); }

/* beállítások */
.mark-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mark-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; border-radius: 22px; border: 2px solid var(--line); background: var(--card); cursor: pointer; }
.mark-opt:hover { border-color: var(--me); }
.mark-opt.on { border-color: var(--me); background: var(--me-soft); }
.mark-big { color: var(--me); }
.mark-big .mark { width: 72px; height: 72px; }
.row .grow { flex: 1; min-width: 160px; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); }
.card-plain h3 { font: 600 16px var(--display); margin: 20px 0 6px; }
.card-plain.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); } 100% { box-shadow: none; } }

/* térkép */
.map-page { max-width: 1280px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; height: calc(100vh - 190px); min-height: 420px; }
.map-box { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.map-box > .map { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; outline: none; user-select: none; background: #eae4da; }
.map-box > .map.dragging { cursor: grabbing; }
.map-box > .map:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.map-tiles, .map-markers { position: absolute; inset: 0; }
.map-tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.map-tile.in { opacity: 1; }
@media (prefers-color-scheme: dark) { .map-tile { filter: invert(.92) hue-rotate(180deg) brightness(.95) contrast(.9); } .map-box > .map { background: #2a2730; } }
.map-route { position: absolute; left: 0; top: 0; pointer-events: none; }
.map-route path { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .7; }
.pin {
  position: absolute; width: 38px; height: 38px; margin: -46px 0 0 -19px; padding: 0; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--me);
  border-radius: 50% 50% 50% 4px; rotate: -45deg; box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  transition: scale .15s;
}
.pin:hover { scale: 1.12; }
.pin > * { rotate: 45deg; }
.pin .mark { width: 22px; height: 22px; stroke: #fff; }
.pin.both { background: linear-gradient(135deg, var(--wolf) 50%, var(--fox) 50%); }
.pin-count { font: 700 14px var(--sans); color: #fff; }
.map-ctrl { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.map-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); cursor: pointer; }
.map-btn:hover { color: var(--accent); }
.map-attr { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: var(--ink-3); background: color-mix(in srgb, var(--card) 80%, transparent); padding: 2px 8px; border-radius: 999px; }
.map-popup { position: absolute; width: 300px; z-index: 5; padding: 12px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); cursor: default; }
.popup-x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; }
.popup-place { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); margin: 2px 30px 8px 4px; }
.popup-place .ic { width: 16px; height: 16px; }
.popup-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 6px; border: 0; background: none; border-radius: 14px; cursor: pointer; text-align: left; }
.popup-item:hover { background: var(--me-soft); }
.popup-item img, .popup-noimg { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.popup-noimg { display: grid; place-items: center; background: var(--me-soft); color: var(--me); }
.popup-noimg .mark { width: 28px; height: 28px; }
.popup-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--ink-3); }
.popup-text strong { font: 600 16px/1.3 var(--display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-list { overflow: auto; padding-right: 4px; }
.map-list .month { margin: 18px 0 6px; }
.map-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 16px; background: none; cursor: pointer; text-align: left; }
.map-item:hover { background: var(--me-soft); }
.map-item-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--me-soft); color: var(--me); flex: none; }
.map-item-mark .mark { width: 22px; height: 22px; }
.map-item-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--ink-3); }
.map-item-text strong { color: var(--ink); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.small-empty { padding: 30px 10px; }
.small-empty p { font-size: 16px; }

@media (max-width: 860px) {
  .map-layout { grid-template-columns: 1fr; height: auto; }
  .map-box { height: 62vh; }
  .map-list { max-height: none; }
}
@media (max-width: 680px) {
  .card::before { left: -8px; }
  .mark-pick { grid-template-columns: 1fr 1fr; }
}

/* ----- nyelvválasztó tabletta (földgömb, HU | EN, csúszó kiemelés) ----- */
.lang-pill { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 3px 3px 3px 10px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-3); font: 600 12px/1 var(--sans); letter-spacing: .06em; flex: none; }
.lang-pill .ic { width: 15px; height: 15px; flex: none; }
.lang-pill .ic-g { display: inline-flex; }
.lang-pill .opts { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.lang-pill .thumb { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; border-radius: 999px; background: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .28s cubic-bezier(.4, 1.35, .5, 1); }
.lang-pill[data-active="en"] .thumb { transform: translateX(100%); }
.lang-pill .opt { position: relative; z-index: 1; min-width: 38px; padding: 7px 11px; text-align: center; border: 0; background: none; color: var(--ink-2); font: inherit; letter-spacing: inherit; text-decoration: none; cursor: pointer; border-radius: 999px; transition: color .2s; }
.lang-pill .opt:hover { color: var(--ink); }
.lang-pill .opt[aria-checked="true"], .lang-pill .opt[aria-current] { color: var(--on, #fff); cursor: default; }
.lang-pill .dot { display: inline-block; width: 5px; height: 5px; margin-left: 5px; border-radius: 50%; background: currentColor; vertical-align: middle; opacity: .75; }
.lang-pill .dot[hidden] { display: none; }

.top-actions .lang-pill { display: none; }
@media (min-width: 861px) { .top-actions .lang-pill { display: inline-flex; } .menu-lang { display: none; } }
.menu-lang { padding: 6px 10px; }
.read-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-meta { flex-wrap: wrap; }
.translate-btn { margin-left: auto; }
.translate-btn .ic { width: 16px; height: 16px; }
.ve-note { margin: -6px 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink-2); }

.lang-pill { --on: var(--accent-ink, #fff); }
.translate-btn[hidden], .ve-note[hidden] { display: none; }
.map-box.picker { height: 280px; margin-top: 8px; touch-action: none; }
.pin.pick { --me: var(--accent); pointer-events: none; cursor: default; }
.pin.pick .ic { width: 20px; height: 20px; }

/* ----- mai tea, időjárás, szószám, állapot ----- */
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; color: var(--ink-3); font: 500 13px/1.3 var(--sans); }
.facts .fact { display: inline-flex; align-items: center; gap: 5px; }
.facts .ic { width: 15px; height: 15px; }
.read .facts { margin: 4px 0 18px; font-size: 14px; }
.sheet-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: -6px 0 12px; color: var(--ink-3); font: 500 13px var(--sans); }
.sheet-facts:empty { display: none; }
.wx-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 12px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); }
.wx-chip[hidden] { display: none; }
.wx-chip .muted { margin-right: 8px; }
.wx-x { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; }
.wx-x:hover { background: var(--card); color: var(--ink); }
.wx-x .ic { width: 14px; height: 14px; }
.wx-btn { border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; padding: 3px 8px; }
.tea-row { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; padding: 8px 10px 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.tea-label { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font: 600 13px var(--sans); white-space: nowrap; }
.tea-label .ic { width: 18px; height: 18px; color: var(--accent); }
.tea-input { flex: 1; min-width: 0; border: 0; background: none; padding: 4px 6px; color: var(--ink); font: 400 15px var(--sans); outline: none; }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.status-row[hidden], .pub-fields[hidden] { display: none; }
.pub-fields { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; }
.pub-fields input { flex: 1 1 220px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 7px 10px; color: var(--ink); font: 400 14px var(--sans); }
.st-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font: 600 11px/1.6 var(--sans); letter-spacing: .04em; text-transform: uppercase; background: var(--paper-2); color: var(--ink-3); }
.st-badge.st-done { background: var(--accent-soft); color: var(--accent); }
.st-badge.st-published { background: var(--accent); color: var(--accent-ink); }
.also-pub { margin: 24px 0 0; padding: 10px 16px; border-radius: 16px; background: var(--paper-2); color: var(--ink-2); font: 500 14px var(--sans); }
.otd { margin: 6px 0 22px; padding: 14px 16px 8px; border-radius: 22px; background: var(--accent-soft); border: 1px solid var(--line); }
.otd h2 { margin: 0 0 6px 4px; font: 650 15px var(--display); color: var(--accent); }
.otd-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) 22px; gap: 10px; align-items: baseline; padding: 8px 4px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); text-decoration: none; color: inherit; }
.otd-item:first-of-type { border-top: 0; }
.otd-ago { font: 600 13px var(--sans); color: var(--me, var(--accent)); }
.otd-text { display: grid; gap: 1px; min-width: 0; }
.otd-text span { color: var(--ink-3); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otd-who { color: var(--me); display: inline-flex; }
.otd-who .mark { width: 18px; height: 18px; }
.tea-list { display: grid; gap: 8px; }
.tea-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.tea-item:hover { border-color: var(--accent); }
.tea-name { font: 600 16px var(--display); }
.tea-meta { grid-column: 1; color: var(--ink-3); font-size: 13px; }
.tea-who { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 4px; color: var(--me); }
.tea-who .mark { width: 20px; height: 20px; }
@media (max-width: 680px) { .otd-item { grid-template-columns: 70px minmax(0, 1fr) 20px; } .tea-row { flex-wrap: wrap; border-radius: 22px; } }

/* ----- polc, zene, pillanatok, gyors pillanat ----- */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 25; display: none; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.fab .ic { width: 26px; height: 26px; }
@media (max-width: 680px) { .fab { display: grid; } }
.mcard { position: relative; display: grid; align-content: end; min-height: 150px; overflow: hidden; border-radius: 22px; background: var(--me-soft, var(--accent-soft)); border: 1px solid var(--line); text-decoration: none; color: inherit; isolation: isolate; }
.mcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.mcard:has(img) { color: #fff; border-color: transparent; }
.mcard:has(img)::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 8, 12, .72), rgba(10, 8, 12, 0) 62%); }
.mcard-text { padding: 14px 16px 4px; font: 400 15px/1.35 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard-meta { display: flex; align-items: center; gap: 6px; padding: 4px 16px 12px; font: 600 12px var(--sans); opacity: .9; }
.mcard-meta .mark { width: 16px; height: 16px; }
.mcard:not(:has(img)) .mcard-meta { color: var(--me, var(--accent)); }
.mcard-meta .vis { margin-left: auto; display: inline-flex; }
.mcard-meta .vis .ic { width: 14px; height: 14px; }
.moments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 16px 0; }
.moments-grid .mcard { min-height: 240px; }
.list-page.with-moments { display: grid; grid-template-columns: minmax(0, 1fr) 250px; column-gap: 28px; align-items: start; }
.list-page.with-moments > * { grid-column: 1; }
.list-page.with-moments > .aside-slot { grid-column: 2; grid-row: 2 / span 6; }
.aside-slot:empty { display: none; }
.moments-aside { position: sticky; top: 76px; display: grid; gap: 10px; }
.moments-aside h2 { margin: 6px 0 2px 4px; font: 650 15px var(--display); }
.moments-aside h2 a { text-decoration: none; }
.moments-aside .mcard { min-height: 130px; }
@media (max-width: 1000px) {
  .list-page.with-moments { display: block; }
  .moments-aside { position: static; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
  .moments-aside h2 { display: none; }
  .moments-aside .mcard { flex: 0 0 160px; min-height: 180px; scroll-snap-align: start; }
}
.shelf-grid-app { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; margin: 18px 0; }
.shelf-card { display: grid; gap: 4px; align-content: start; text-decoration: none; color: inherit; }
.shelf-cover { aspect-ratio: 2 / 3; border-radius: 6px 14px 14px 6px; overflow: hidden; background: var(--paper-2); box-shadow: 0 6px 16px rgba(40, 20, 30, .16); }
.shelf-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-ph { display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; height: 100%; padding: 14px; text-align: center; color: var(--me, var(--accent)); background: var(--me-soft, var(--accent-soft)); font: 650 14px/1.2 var(--display); }
.cover-ph .ic { width: 30px; height: 30px; }
.shelf-card strong { font: 600 15px/1.25 var(--display); margin-top: 6px; }
.shelf-sub { color: var(--ink-3); font-size: 13px; }
.shelf-rate { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.shelf-rate .stars { color: #d79a2c; letter-spacing: 1px; }
.shelf-rate .mark { width: 16px; height: 16px; color: var(--me); }
.year-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.track-list-app { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.track-list-app li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.track-mark { color: var(--me); display: inline-flex; }
.track-mark .mark { width: 18px; height: 18px; }
.track-name { display: grid; min-width: 0; }
.track-name strong, .track-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-name span { color: var(--ink-3); font-size: 13px; }
.track-date { color: var(--ink-3); font-size: 13px; }
.track-list-app .icon-btn { width: 32px; height: 32px; }
.quick { display: grid; gap: 14px; }
.q-photo { position: relative; display: grid; place-items: center; width: 100%; min-height: 220px; max-height: 60vh; overflow: hidden; padding: 0; border: 2px dashed var(--line); border-radius: 26px; background: var(--paper-2); color: var(--ink-2); cursor: pointer; }
.q-photo img { width: 100%; max-height: 60vh; object-fit: cover; display: block; }
.q-photo-ph { display: grid; justify-items: center; gap: 10px; font: 600 15px var(--sans); }
.q-photo-ph .ic { width: 38px; height: 38px; color: var(--accent); }
.q-change { position: absolute; right: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(10, 8, 12, .6); color: #fff; font: 600 13px var(--sans); }
.q-text { width: 100%; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); padding: 14px 16px; font: 400 18px/1.4 var(--serif); resize: vertical; }
.q-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-tip { margin-top: 20px; }

/* ----- széljegyzetek a margón: térkép-tű és felugró cetli ----- */
.prose-wrap { position: relative; }
.note-gutter { position: absolute; top: 0; right: -40px; width: 32px; height: 100%; pointer-events: none; }
.note-gutter > * { pointer-events: auto; }
.note-pin {
  position: absolute; right: 2px; width: 26px; height: 26px; padding: 0; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--me, var(--accent));
  border-radius: 50% 50% 50% 4px; rotate: -45deg; box-shadow: 0 2px 7px rgba(0, 0, 0, .28);
  transition: scale .15s;
}
.note-pin:hover, .note-pin:focus-visible { scale: 1.15; }
.note-pin > * { rotate: 45deg; }
.note-pin .ic { width: 15px; height: 15px; }
.note-pin b { position: absolute; font: 700 10px var(--sans); }
.note-pin.both { background: linear-gradient(135deg, var(--wolf) 50%, var(--fox) 50%); }
.note-add { position: absolute; right: 6px; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px dashed var(--ink-3); background: var(--card); color: var(--ink-3); cursor: pointer; opacity: .85; }
.note-add:hover { color: var(--accent); border-color: var(--accent); }
.note-add[hidden], .note-selbtn[hidden] { display: none; }
.note-add .ic { width: 14px; height: 14px; }
.note-selbtn { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 13px var(--sans); cursor: pointer; box-shadow: var(--shadow); }
.note-selbtn .ic { width: 15px; height: 15px; }
.read .note-add { right: -34px; }
::highlight(note-wolf) { background-color: color-mix(in srgb, var(--wolf) 18%, transparent); }
::highlight(note-fox) { background-color: color-mix(in srgb, var(--fox) 18%, transparent); }
.postit {
  position: absolute; z-index: 20; padding: 14px 14px 12px; border-radius: 4px 4px 22px 4px; rotate: -1deg;
  background: color-mix(in srgb, var(--me, var(--accent)) 12%, #fff5c4); color: #2a2323;
  box-shadow: 0 10px 28px rgba(40, 20, 30, .25), 0 1px 0 rgba(255, 255, 255, .6) inset; font: 400 15px/1.45 var(--sans);
}
@media (prefers-color-scheme: dark) { .postit { background: color-mix(in srgb, var(--me, var(--accent)) 20%, #3b3420); color: #f3ead3; } }
.postit-x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; }
.postit-x .ic { width: 16px; height: 16px; }
.pn { padding: 8px 0 10px; border-top: 1px dashed color-mix(in srgb, currentColor 25%, transparent); }
.pn:first-of-type { border-top: 0; padding-top: 2px; }
.pn-quote { display: block; margin: 0 24px 6px 0; padding-left: 8px; border-left: 3px solid var(--me, var(--accent)); font: italic 14px/1.35 var(--serif); opacity: .85; quotes: none; }
.pn-head { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pn-head .mark { width: 16px; height: 16px; color: var(--me, var(--accent)); }
.pn-head span { opacity: .65; }
.pn-badge { margin-left: auto; padding: 0 8px; border-radius: 999px; font: 600 11px/1.7 var(--sans); font-style: normal; background: color-mix(in srgb, var(--me, var(--accent)) 25%, transparent); }
.pn-body { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pn-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pn-pub { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.pn-del { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; color: inherit; opacity: .55; cursor: pointer; }
.pn-del:hover { opacity: 1; color: var(--err); }
.pn-del .ic { width: 16px; height: 16px; }
.pn-form { display: grid; gap: 8px; }
.pn-form textarea { width: 100%; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 10px; background: color-mix(in srgb, #fff 50%, transparent); color: inherit; padding: 8px 10px; font: inherit; resize: vertical; }
.note-quote { display: inline-flex; align-items: baseline; gap: 6px; margin: 2px 0; padding: 0; border: 0; background: none; color: var(--ink-3); font: italic 14px/1.4 var(--serif); text-align: left; cursor: pointer; }
.note-quote .ic { flex: none; width: 14px; height: 14px; color: var(--me, var(--accent)); align-self: center; font-style: normal; }
::highlight(note-flash) { background-color: color-mix(in srgb, var(--accent) 38%, transparent); }
.note-flash { background-color: color-mix(in srgb, var(--accent) 22%, transparent); transition: background-color .4s; }
.note-quote:hover { color: var(--accent); }
.note-pub { grid-column: 1 / -1; }
@media (max-width: 860px) { .note-gutter { right: -22px; width: 24px; } .note-pin { right: 0; width: 22px; height: 22px; } .note-pin .ic { width: 13px; height: 13px; } .read .note-add { right: -22px; } }

/* ----- napi kérdés ----- */
.dq-card { display: grid; gap: 4px; margin: 6px 0 14px; padding: 14px 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.dq-card:hover { border-color: var(--accent); }
.dq-card.done { background: var(--paper-2); box-shadow: none; }
.dq-kicker { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.dq-kicker .ic { width: 15px; height: 15px; }
.dq-card strong { font: 600 18px/1.3 var(--display); }
.dq-status { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13px; }
.dq-dot { color: var(--me); display: inline-flex; }
.dq-dot .mark { width: 16px; height: 16px; }
.dq-question { margin: 8px 0 20px; padding: 0 0 0 18px; border-left: 4px solid var(--accent); font: 500 clamp(22px, 4vw, 30px)/1.25 var(--display); }
.dq-form { display: grid; gap: 8px; margin-bottom: 22px; }
.dq-input { width: 100%; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); padding: 14px 16px; font: 400 17px/1.5 var(--serif); resize: vertical; }
.dq-answer { margin: 10px 0; padding: 14px 18px; border-radius: 20px; border-left: 5px solid var(--me); background: var(--me-soft, var(--paper-2)); }
.dq-answer p { margin: 6px 0 0; white-space: pre-wrap; font: 400 17px/1.5 var(--serif); }
.dq-who { display: flex; align-items: center; gap: 7px; color: var(--me); font-size: 14px; }
.dq-who .mark { width: 18px; height: 18px; }
.dq-note { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 12px 16px; border-radius: 16px; background: var(--paper-2); color: var(--ink-2); }
.dq-note.locked .ic { width: 18px; height: 18px; flex: none; }
.dq-history { margin-top: 36px; }
.dq-day { margin: 0 0 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.dq-day-head { display: grid; gap: 2px; text-decoration: none; color: inherit; }
.dq-day-head span { font-size: 13px; color: var(--ink-3); }
.dq-day-head strong { font: 600 17px/1.3 var(--display); }

/* ----- borítókép: keret, igazítás, megnyitás ----- */
.cover-frame { position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 10px; background: var(--paper-2); }
.cover-frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; display: block; }
.read .cover-frame { cursor: zoom-in; }
.card-cover img { transform-origin: 50% 50%; }
dialog.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 20px; border: 0; background: rgba(10, 8, 12, .94); display: none; place-items: center; }
dialog.lightbox[open] { display: grid; }
dialog.lightbox img { max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; border-radius: 10px; cursor: zoom-out; }
dialog.lightbox figcaption { margin-top: 10px; color: #ddd; font-size: 13px; text-align: center; }
dialog.lightbox figure { margin: 0; display: grid; justify-items: center; }
dialog.lightbox::backdrop { background: transparent; }
.lb-x { position: fixed; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; }
.adjust { display: grid; gap: 14px; }
.adjust-frame { position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 14px; background: var(--paper-2); cursor: grab; touch-action: none; user-select: none; outline: none; }
.adjust-frame.dragging { cursor: grabbing; }
.adjust-frame:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.adjust-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.adjust-frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); pointer-events: none; }
.adjust-controls { display: flex; align-items: center; gap: 10px; }
.adjust-controls input[type=range] { flex: 1; accent-color: var(--accent); }
.adjust-controls .icon-btn { flex: none; }
.adjust-previews { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.adjust-prev { display: grid; gap: 4px; font-size: 12px; color: var(--ink-3); }
.adjust-prev .cover-frame { width: 150px; aspect-ratio: 16 / 10; border-radius: 12px; }
.adjust-prev.sm .cover-frame { width: 70px; height: 51px; aspect-ratio: auto; border-radius: 8px; }
.adjust-hint { margin: 0; color: var(--ink-3); font-size: 13px; }
.default-cover { display: grid; gap: 12px; }
.default-cover .cover-frame { max-width: 420px; }

.hdr-preview { max-width: 520px; }
.hdr-pic { position: relative; overflow: hidden; aspect-ratio: 21 / 8; border-radius: 20px; background: var(--paper-2); }
.hdr-preview.full .hdr-pic { border-radius: 0 0 50% 50% / 0 0 18px 18px; }
.hdr-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.header-set .stack { display: grid; gap: 4px; }

/* képtár, kuka, változatok */
.gal-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 18px; }
.gal-tools input[type=search] { flex: 1 1 220px; min-width: 0; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gal-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.gal-card.orphan { border-style: dashed; }
.gal-thumb { display: block; padding: 0; border: 0; background: var(--me-soft, #0001); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.gal-name { width: 100%; font: inherit; font-weight: 600; border: 0; border-bottom: 1px dashed var(--line); background: transparent; padding: 2px 0; color: inherit; }
.gal-name:focus { outline: none; border-bottom-color: var(--accent, currentColor); }
.gal-meta { margin: 0; }
.gal-uses { list-style: none; margin: 0; padding: 0; font-size: .88rem; display: grid; gap: 2px; }
.gal-orphan { margin: 0; font-size: .88rem; color: var(--fox, #c4553a); }
.danger-text { color: var(--fox, #c4553a); }
.trash-list { display: grid; gap: 12px; margin-top: 16px; }
.trash-item { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; }
.trash-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.trash-text p { margin: 0; }
.trash-actions, .ver-actions { display: flex; gap: 8px; }
.ver-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ver-info { flex: 1 1 240px; min-width: 0; }
.ver-info p { margin: 2px 0 0; }
.ver-preview { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--me-soft, #0001); max-height: 40vh; overflow: auto; }
.ver-preview h3 { margin: 0 0 8px; }
.gal-tools input[type=search] { font: inherit; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: inherit; }
.gal-tools input[type=search]:focus { outline: 2px solid var(--accent, #33557a); outline-offset: 1px; }

/* ===== Versek és Történetek ===== */
.tabs { min-width: 0; overflow-x: auto; scrollbar-width: none; flex-shrink: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; flex: none; }
.seg a { display: inline-block; padding: 5px 13px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.seg a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.view-row { margin: 4px 0 6px; }
.facet-box { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.chips.facet { align-items: center; }
.facet-label { font: 600 12px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.chip small { opacity: .55; font-size: 12px; }
.chip-mark { padding-left: 6px; }
.chip-mark .mark { width: 20px; height: 20px; }
.universe-head { color: var(--me, var(--accent)); text-transform: none; letter-spacing: 0; font: italic 500 22px var(--display); margin-left: 76px; }
.universe-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font: 500 12px var(--sans); letter-spacing: .02em; border: 1px solid var(--line); }
.universe-line { margin: -4px 0 14px; }
.muse-line { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--me, var(--ink-3)); font: italic 400 15px var(--serif); }
.muse-line .ic { width: 15px; height: 15px; flex: none; }
.muse-line.big { font-size: 17px; margin: -6px 0 18px; }
.muse-line.center { justify-content: center; }

/* a vers a kártyán: az első sorok, megtartott tördeléssel */
.poem-lines { display: flex; flex-direction: column; margin: 4px 0 2px; font: italic 400 17px/1.55 var(--serif); color: var(--ink-2); }
.poem-lines.align-center { align-items: center; text-align: center; }
.poem-lines .pl.gap { height: .7em; }
.poem-lines .pl.more { color: var(--ink-3); }
.list-poem .card h3 { font-style: italic; }

/* a vers olvasva és szerkesztve */
.prose.poem { font-size: 21px; line-height: 1.75; }
.prose.poem p { margin: 0 0 1.5em; }
.prose.poem.align-center { text-align: center; }
.prose.poem.align-center figure { text-align: left; }
.read-title.center, .title-input.center { text-align: center; }

/* fajtához tartozó mezők a szerkesztőben */
.kind-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.kind-row[hidden], .poem-hint[hidden] { display: none; }
.kind-field { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; }
.kind-field.narrow { flex: none; min-width: 0; }
.kind-label { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--sans); color: var(--ink-2); white-space: nowrap; }
.kind-label .ic { width: 16px; height: 16px; }
.kind-input { flex: 1; min-width: 0; border: 0; background: none; padding: 4px 2px; color: var(--ink); font: 400 15px var(--sans); outline: none; border-bottom: 1px dashed var(--line); }
.kind-input:focus { border-bottom-color: var(--accent); }
.align-seg button { display: grid; place-items: center; padding: 4px 9px; }
.align-seg .ic { width: 18px; height: 18px; }
.poem-hint { margin: -6px 0 10px; }
@media (max-width: 680px) {
  .universe-head { margin-left: 0; }
  .kind-row { border-radius: 18px; }
}
.import-types { margin: 10px 0 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.import-types h3 { margin: 0 0 4px; font: 600 16px var(--display); }
.type-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 10px 0 6px; }
.type-row select { width: 100%; }
.card .poem-lines.align-center { width: fit-content; max-width: 100%; }

/* ===== hangulat: a jeled és a napszak színezi a fejlécet ===== */
:root { --tint: 5%; }
:root[data-mark="wolf"][data-daypart="night"] { --tint: 17%; }
:root[data-mark="wolf"][data-daypart="evening"] { --tint: 11%; }
:root[data-mark="wolf"][data-daypart="morning"] { --tint: 6%; }
:root[data-mark="fox"][data-daypart="morning"] { --tint: 13%; }
:root[data-mark="fox"][data-daypart="evening"] { --tint: 12%; }
:root[data-mark="fox"][data-daypart="night"] { --tint: 8%; }
.topbar { background: color-mix(in srgb, color-mix(in srgb, var(--accent) var(--tint), var(--paper)) 90%, transparent); }
/* reggel a rókánál „gőzös ablak": halvány fehér pára a fejléc tetején */
:root[data-mark="fox"][data-daypart="morning"] .topbar { background-image: linear-gradient(180deg, rgba(255,255,255,.5), transparent 80%); }
/* este a farkasnál „holdfényes": halvány fény a fejléc sarkában */
:root[data-mark="wolf"][data-daypart="night"] .topbar { background-image: radial-gradient(120px 40px at 88% 0, rgba(255,255,255,.35), transparent); }
@media (prefers-color-scheme: dark) {
  :root[data-mark="fox"][data-daypart="morning"] .topbar { background-image: linear-gradient(180deg, rgba(255,255,255,.07), transparent 80%); }
  :root[data-mark="wolf"][data-daypart="night"] .topbar { background-image: radial-gradient(120px 40px at 88% 0, rgba(255,255,255,.08), transparent); }
}
/* a fejléc alsó éle: a farkasnál tollvonás, a rókánál gőzcsík */
.topbar { border-bottom: 0; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 10px; pointer-events: none; background: var(--accent); opacity: .5;
  -webkit-mask: var(--flourish) center / 100% 100% no-repeat; mask: var(--flourish) center / 100% 100% no-repeat; }
:root:not([data-mark="fox"]) .topbar::after { --flourish: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5Q300 1.6 600 3.4T1200 5Q900 8 600 6.6T0 5Z'/%3E%3Ccircle cx='22' cy='5.2' r='2.6'/%3E%3C/svg%3E"); }
:root[data-mark="fox"] .topbar::after { height: 12px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='12' viewBox='0 0 96 12'%3E%3Cpath d='M0 6Q24 0 48 6T96 6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x center / 96px 12px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='12' viewBox='0 0 96 12'%3E%3Cpath d='M0 6Q24 0 48 6T96 6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x center / 96px 12px; }

/* mentés: tintacsepp / gőzfodor */
.save-fx-host { position: relative; overflow: visible; }
.save-fx { position: absolute; left: 50%; top: 0; width: 0; height: 0; pointer-events: none; }
.save-fx.drop::before { content: ''; position: absolute; left: -4px; top: -26px; width: 8px; height: 11px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: var(--accent); animation: fx-drop 1.1s cubic-bezier(.5, 0, .9, .6) forwards; }
.save-fx.drop::after { content: ''; position: absolute; left: -16px; top: 9px; width: 32px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: fx-ripple 1.2s .8s ease-out forwards; }
.save-fx.steam::before, .save-fx.steam::after { content: ''; position: absolute; top: -8px; width: 8px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); border-color: var(--accent) transparent transparent transparent; opacity: 0; animation: fx-steam 1.8s ease-out forwards; }
.save-fx.steam::before { left: -12px; }
.save-fx.steam::after { left: 4px; animation-delay: .35s; }
@keyframes fx-drop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(32px); opacity: 1; } 100% { transform: translateY(36px) scale(.2); opacity: 0; } }
@keyframes fx-ripple { 0% { opacity: .8; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes fx-steam { 0% { opacity: 0; transform: translateY(6px) scaleY(.6); } 25% { opacity: .85; } 100% { opacity: 0; transform: translateY(-22px) scaleY(1.2); } }
@media (prefers-reduced-motion: reduce) { .save-fx { display: none; } }

/* üres állapotok: rajzok */
.empty-art { width: 120px; height: 96px; color: var(--accent); margin: 0 auto 6px; display: block; }

/* ===== Klasszikus (WordPress-szerű) felület ===== */
html[data-ui="classic"] { --cl-w: 168px; --cl-top: 42px; --cl-side-bg: color-mix(in srgb, var(--accent) 40%, #0e0f14); --cl-side-ink: #e6e9ee; --cl-side-hover: color-mix(in srgb, var(--accent) 30%, #0e0f14); }
html[data-ui="classic"][data-side="folded"] { --cl-w: 44px; }
html[data-ui="classic"]:not(.x) { --paper: #f0f0f1; --paper-2: #e6e6e8; --card: #ffffff; --line: #d6d6da; }
@media (prefers-color-scheme: dark) { html[data-ui="classic"]:not(.x) { --paper: #141217; --paper-2: #1c191f; --card: #1c191f; --line: #2f2a30; } }
html[data-ui="classic"] body { background: var(--paper); }
html[data-ui="classic"] #app { padding-left: var(--cl-w); padding-top: var(--cl-top); }
html[data-ui="classic"] .editor-bar { top: var(--cl-top); }
html[data-ui="classic"] .toolbar { top: calc(var(--cl-top) + 56px); }
html[data-ui="classic"] .check-panel { top: calc(var(--cl-top) + 60px); }
html[data-ui="classic"] .moments-aside { top: calc(var(--cl-top) + 16px); }
html[data-ui="classic"] .page { margin: 0; max-width: none; padding-top: 20px; }
html[data-ui="classic"] .page.narrow { max-width: 820px; }
.cl-side { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--cl-w); display: flex; flex-direction: column; background: var(--cl-side-bg); color: var(--cl-side-ink); overflow-y: auto; overflow-x: hidden; }
.cl-brand { display: flex; align-items: center; justify-content: center; height: var(--cl-top); color: #fff; text-decoration: none; background: color-mix(in srgb, var(--cl-side-bg) 70%, #000); }
.cl-brand .duo { width: 46px; height: 27px; color: #fff; }
.cl-side nav { display: flex; flex-direction: column; padding: 6px 0; flex: 1; }
.cl-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--cl-side-ink); text-decoration: none; font: 500 13.5px/1.3 var(--sans); border-left: 3px solid transparent; white-space: nowrap; }
.cl-item .ico, .cl-item svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.cl-item:hover { background: var(--cl-side-hover); color: #fff; }
.cl-item.on { background: var(--accent); color: var(--accent-ink); border-left-color: #fff; }
.cl-item.sub { padding-left: 40px; font-size: 12.5px; opacity: .85; }
.cl-item.sub svg { display: none; }
.cl-sep { height: 1px; margin: 6px 12px; background: rgba(255, 255, 255, .12); }
.cl-fold { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: none; border: 0; color: rgba(255, 255, 255, .6); font: 500 12.5px var(--sans); cursor: pointer; text-align: left; }
.cl-fold:hover { color: #fff; }
.cl-fold svg { width: 16px; height: 16px; }
html[data-side="folded"] .cl-item span, html[data-side="folded"] .cl-fold span { display: none; }
html[data-side="folded"] .cl-item { padding: 9px 12px; }
html[data-side="folded"] .cl-item.sub, html[data-side="folded"] .cl-sep { display: none; }
html[data-side="folded"] .cl-fold svg { transform: rotate(180deg); }
.cl-top { position: fixed; z-index: 35; left: var(--cl-w); right: 0; top: 0; height: var(--cl-top); display: flex; align-items: center; gap: 16px; padding: 0 16px; background: color-mix(in srgb, var(--cl-side-bg) 88%, #000); color: #e6e9ee; }
.cl-top a { color: inherit; text-decoration: none; }
.cl-site, .cl-newbtn { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--sans); opacity: .9; }
.cl-site:hover, .cl-newbtn:hover { opacity: 1; color: #fff; }
.cl-site svg, .cl-newbtn svg { width: 16px; height: 16px; }
.cl-top .top-actions { margin-left: auto; }
.cl-howdy { font: 500 13px var(--sans); opacity: .9; margin-right: 8px; }
.cl-top .menu-wrap { display: flex; align-items: center; }
.cl-top .avatar { width: 28px; height: 28px; }
.cl-top .lang-pill { --pill-bg: rgba(255, 255, 255, .1); }
.cl-top .menu { color: var(--ink); }
@media (max-width: 782px) {
  html[data-ui="classic"] { --cl-w: 44px; }
  .cl-item span, .cl-fold { display: none; }
  .cl-item { padding: 9px 12px; }
  .cl-item.sub, .cl-sep { display: none; }
  .cl-howdy, .cl-site span { display: none; }
}
.ui-pick .mark-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.cl-item span { overflow: hidden; text-overflow: ellipsis; }

/* klasszikus szerkesztő: fő oszlop + jobb oldali dobozok */
html[data-ui="classic"] .toolbar { top: var(--cl-top); }
.cl-edit-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cl-edit-head h1 { font: 400 23px/1.2 var(--sans); margin: 0; }
.cl-edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.cl-main { min-width: 0; display: grid; gap: 12px; }
.cl-main .title-input { background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 6px 10px; font: 600 24px/1.3 var(--sans); letter-spacing: 0; margin: 0; }
.cl-main .subtitle-input { background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 6px 10px; margin: 0; }
.cl-main .prose-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 0 0 3px 3px; padding: 14px 18px; min-height: 340px; margin-top: -12px; }
.cl-main .toolbar { border-radius: 3px 3px 0 0; margin: 0; box-shadow: none; border: 1px solid var(--line); background: var(--paper-2); }
.cl-main .sheet-facts { margin: 0; }
.cl-permalink { margin: -6px 0 0; }
.cl-sidebar { display: grid; gap: 14px; position: sticky; top: calc(var(--cl-top) + 12px); max-height: calc(100vh - var(--cl-top) - 24px); overflow-y: auto; align-content: start; }
.cl-box { background: var(--card); border: 1px solid var(--line); border-radius: 3px; }
.cl-box[hidden] { display: none; }
.cl-box-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 12px; border-bottom: 1px solid var(--line); min-height: 38px; }
.cl-box.closed .cl-box-head { border-bottom: 0; }
.cl-box-head h2 { font: 600 14px var(--sans); margin: 0; }
.cl-box-toggle { background: none; border: 0; cursor: pointer; color: var(--ink-2); padding: 6px; display: inline-flex; }
.cl-box-toggle svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .15s; }
.cl-box.closed .cl-box-toggle svg { transform: rotate(-90deg); }
.cl-box.closed .cl-box-body { display: none; }
.cl-box-body { padding: 12px; display: grid; gap: 10px; }
.cl-box-body .status-row { margin: 0; }
.cl-box-body .cover-box { margin: 0; }
.cl-box-body .tea-row { display: grid; gap: 6px; }
.cl-box-body .tags-input { width: 100%; }
.cl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-lbl { color: var(--ink-2); font-size: 13px; min-width: 76px; }
.cl-pub-foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line); }
.cl-pub-foot .btn.primary { margin-left: auto; }
.cl-trash { background: none; border: 0; color: var(--err); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; font-size: 13px; }
.cl-more { margin-left: 2px; }
.cl-screen-wrap { position: relative; }
.cl-screen-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 3px 3px; padding: 5px 12px; font: 13px var(--sans); cursor: pointer; color: var(--ink-2); }
.cl-screen-btn svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.cl-screen-panel { position: absolute; right: 0; top: 100%; z-index: 30; width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 12px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.cl-screen-list { display: grid; gap: 6px; font-size: 13px; }
@media (max-width: 1000px) { .cl-edit-grid { grid-template-columns: minmax(0, 1fr); } .cl-sidebar { position: static; max-height: none; } }
.cl-box-body .tags-input, .cl-box-body .tea-input, .cl-box-body input[type=text] { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 3px; padding: 6px 8px; font: inherit; color: inherit; }

/* klasszikus lista: nézetváltó + táblázat */
.cl-views { list-style: none; display: flex; gap: 6px; padding: 0; margin: 4px 0 10px; font-size: 13px; flex-wrap: wrap; }
.cl-views li + li::before { content: '|'; color: var(--ink-3); margin-right: 6px; }
.cl-views a { text-decoration: none; color: var(--accent); }
.cl-views a.on { color: var(--ink); font-weight: 600; }
.cl-tablewrap { display: grid; gap: 8px; }
.cl-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cl-bulk select { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); color: inherit; }
.cl-tscroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 3px; }
.cl-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cl-table th, .cl-table td { text-align: left; padding: 9px 10px; vertical-align: top; border-bottom: 1px solid var(--line); }
.cl-table thead th, .cl-table thead td { font-weight: 600; background: var(--card); border-bottom: 1px solid var(--line); }
.cl-table tbody tr:nth-child(odd) { background: color-mix(in srgb, var(--paper-2) 55%, var(--card)); }
.cl-table tbody tr:hover { background: var(--accent-soft); }
.cl-table .num { text-align: right; }
.cl-cb { width: 32px; }
.cl-title { min-width: 220px; }
.row-title { font-weight: 600; text-decoration: none; color: var(--accent); font-size: 14.5px; }
.row-title:hover { text-decoration: underline; }
.cl-actions { display: flex; gap: 0; flex-wrap: wrap; font-size: 12.5px; visibility: hidden; margin-top: 2px; }
.cl-table tr:hover .cl-actions, .cl-table tr:focus-within .cl-actions { visibility: visible; }
@media (hover: none) { .cl-actions { visibility: visible; } }
.cl-actions a, .cl-actions button { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: none; font: inherit; }
.cl-actions > * + *::before { content: ' | '; color: var(--ink-3); white-space: pre; }
.cl-actions .del { color: var(--err); }
.cl-vis { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cl-vis svg { width: 14px; height: 14px; }
.cl-tags { max-width: 180px; color: var(--ink-2); }
.cl-date { white-space: nowrap; }
.cl-quick td { background: var(--paper-2); }
.cl-quick-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 2fr; gap: 8px; margin: 8px 0; }
.cl-quick-grid input, .cl-quick-grid select { font: inherit; padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); color: inherit; min-width: 0; }
.cl-quick-actions { display: flex; gap: 8px; }
.cl-empty .empty { padding: 30px 0; }
@media (max-width: 760px) { .cl-quick-grid { grid-template-columns: 1fr 1fr; } }

/* irányítópult */
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dash-col { display: grid; gap: 16px; }
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.dash-list li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dash-list a { color: var(--accent); text-decoration: none; }
.dash-list a:hover { text-decoration: underline; }
.dash-mark { color: var(--me); display: inline-flex; }
.dash-mark .mark { width: 16px; height: 16px; }
.dash-quick { display: grid; gap: 8px; }
.dash-quick input, .dash-quick textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); color: inherit; width: 100%; resize: vertical; }
.dash-quick .btn { justify-self: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-color-scheme: dark) { html[data-ui="classic"] { --cl-side-bg: color-mix(in srgb, var(--accent) 22%, #0b0b0f); --cl-side-hover: color-mix(in srgb, var(--accent) 20%, #0b0b0f); } }
.cl-edit-head .seg { max-width: 100%; overflow-x: auto; }
.cl-vers { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: 13px var(--sans); justify-self: start; }
.cl-vers svg { width: 15px; height: 15px; }
.cl-vers[hidden] { display: none; }

/* szakaszok láthatósága: a korlátozott blokk csíkkal és felirattal jelölve */
[data-vis] { position: relative; border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; margin-left: -15px; background: linear-gradient(90deg, var(--accent-soft), transparent 75%); border-radius: 0 8px 8px 0; }
[data-vis="me"] { border-left-style: dashed; }
[data-vis]::before { content: attr(data-vis-label); position: absolute; right: 4px; top: -9px; padding: 1px 8px; border-radius: 999px; font: 600 10.5px/1.5 var(--sans); background: var(--accent); color: var(--accent-ink); pointer-events: none; user-select: none; }
.sec-menu { min-width: 250px; }
.sec-hint { margin: 4px 8px 6px; line-height: 1.35; }

/* klasszikus: szűrősor, kód nézet, statisztika, dobozok mozgatása */
.cl-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.cl-filters:empty { display: none; }
.cl-filters select, .cl-bulk input { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); color: inherit; }
.cl-bulk input[hidden] { display: none; }
.cl-quick-grid.sub { grid-template-columns: 2fr 1fr; }
.cl-quick-cover { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: -4px; }
.cl-mode { display: inline-flex; gap: 0; }
.cl-mode button { background: var(--paper-2); border: 1px solid var(--line); padding: 5px 14px; font: 13px var(--sans); color: var(--ink-2); cursor: pointer; }
.cl-mode button:first-child { border-radius: 3px 0 0 0; }
.cl-mode button:last-child { border-radius: 0 3px 0 0; border-left: 0; }
.cl-mode button.on { background: var(--card); color: var(--ink); font-weight: 600; border-bottom-color: var(--card); }
.cl-media { margin-left: auto; }
.cl-media svg { width: 15px; height: 15px; }
.cl-code { width: 100%; min-height: 340px; resize: vertical; border: 0; outline: none; background: transparent; color: inherit; font: 14px/1.55 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; }
.cl-main .toolbar.disabled { opacity: .45; pointer-events: none; }
.cl-stats { padding: 0 2px; }
.cl-slug-input { font: inherit; padding: 2px 6px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); color: inherit; min-width: 180px; }
.cl-linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.cl-box-tools { display: inline-flex; align-items: center; }
.cl-box-move { background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: 6px 3px; display: inline-flex; opacity: 0; transition: opacity .15s; }
.cl-box-move svg { width: 14px; height: 14px; }
.cl-box-move.up svg { transform: rotate(90deg); }
.cl-box-move.down svg { transform: rotate(-90deg); }
.cl-box:hover .cl-box-move, .cl-box-move:focus-visible { opacity: 1; }
.cl-box-head { cursor: grab; }
.cl-box.dragging { opacity: .45; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.media-item { display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 6px; cursor: pointer; text-align: left; color: inherit; font: 12px var(--sans); }
.media-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.media-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item:hover { border-color: var(--accent); }

/* irányítópult: írási szokás */
.heat-grid { display: grid; grid-template-rows: repeat(7, 12px); grid-auto-flow: column; grid-auto-columns: 12px; gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.heat-cell { width: 12px; height: 12px; border-radius: 3px; background: var(--paper-2); }
.heat-cell.l1 { background: color-mix(in srgb, var(--accent) 35%, var(--paper-2)); }
.heat-cell.l2 { background: color-mix(in srgb, var(--accent) 65%, var(--paper-2)); }
.heat-cell.l3 { background: var(--accent); }
.cl-main .words-chip { display: none; }

/* a klasszikus szerkesztő jobb oszlopa a lappal együtt görög (nincs külön görgetősáv) */
.cl-sidebar { position: static; max-height: none; overflow: visible; }

/* adatok, emberek */
.data-box { margin: 28px 0 12px; border: 1px solid var(--line); background: var(--card); border-radius: 20px; padding: 14px 16px; display: grid; gap: 12px; }
.data-box .extras { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.data-box .extra { border: 0; background: var(--paper-2); }
.x-data { display: flex; flex-wrap: wrap; gap: 8px; }
.x-datum { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--paper-2); font: 14px var(--sans); border: 0; color: inherit; }
button.x-datum { cursor: pointer; }
button.x-datum:hover { background: var(--accent-soft); }
.x-datum .k { color: var(--ink-3); font-size: 12.5px; }
.x-datum .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.x-datum small { font-weight: 400; color: var(--ink-3); }
.x-people { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.x-people-label { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.x-people-label svg { width: 16px; height: 16px; }
.people-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.people-box .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.person-sel { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px 0 0; }
.plink { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 3px 6px 3px 3px; color: inherit; font: inherit; }
.plink img, .pc-ini { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.pc-ini { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 600 13px var(--display); }
.pc-ini.big { width: 56px; height: 56px; font-size: 22px; }
.person-sel .x { background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: 2px; display: inline-flex; }
.person-sel .x svg { width: 14px; height: 14px; }
.person-card { text-align: center; }
.person-card .pp-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; }
.person-card h3 { font: 500 24px var(--display); margin: 0 0 4px; }
.person-card .pp-short { font-style: italic; color: var(--ink-2); margin: 0 0 10px; }
.person-card .pp-bio { text-align: left; font: 16px/1.55 var(--serif); }
.ppl-pick { display: grid; gap: 10px; }
.ppl-list { display: grid; max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.ppl-row { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ppl-row:last-child { border-bottom: 0; }
.ppl-name { font-weight: 600; }
.ppl-new { display: flex; gap: 8px; }
.ppl-new input, .ppl-pick input[type=search] { flex: 1; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: inherit; }
/* admin */
.adm-body { display: grid; gap: 16px; }
.adm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-row input[type=text], .adm-row select, .adm-toolbar input { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: inherit; min-width: 0; }
.adm-row input[type=text]:first-child { flex: 1 1 160px; }
.adm-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.adm-list { display: grid; gap: 10px; }
.adm-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-toolbar input { flex: 1; }
.adm-people { display: grid; gap: 10px; }
.adm-person { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; flex-wrap: wrap; }
.adm-person > img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.adm-person-text { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.adm-person-actions { display: flex; gap: 8px; }
.badge { justify-self: start; font-size: 11.5px; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); }
.badge.on { background: var(--accent-soft); color: var(--accent); }
.adm-form { display: grid; gap: 12px; }
.adm-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }

/* polc: szerkesztés, értékelések */
.shelf-wrap { position: relative; }
.shelf-wrap.is-hidden { opacity: .55; }
.shelf-edit { position: absolute; top: 6px; right: 6px; z-index: 2; background: color-mix(in srgb, var(--card) 85%, transparent); border-radius: 50%; width: 32px; height: 32px; }
.shelf-tools { margin: 0 0 12px; }
.rates { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rate { display: inline-flex; align-items: center; gap: 5px; color: var(--me); }
.rate .mark { width: 16px; height: 16px; }
.rate .stars { color: #d39434; font-size: 13px; letter-spacing: 1px; }
.star-pick { display: flex; align-items: center; gap: 2px; }
.star-pick .star { background: none; border: 0; cursor: pointer; font-size: 26px; line-height: 1; color: var(--line); padding: 2px; }
.star-pick .star.on { color: #d39434; }

/* napi adatok, statisztika */
.day-nav { display: flex; gap: 8px; align-items: center; margin: 8px 0 18px; }
.day-nav .btn svg { width: 16px; height: 16px; }
.day-nav a:first-child svg { transform: none; }
.day-nav a:nth-child(3) svg { transform: scaleX(-1); }
.day-nav input[type=date] { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: inherit; }
.day-fields { display: grid; gap: 10px; margin-bottom: 12px; }
.day-field { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.day-name { font-weight: 600; }
.day-input { display: inline-flex; align-items: baseline; gap: 6px; }
.day-input input { width: 120px; font: inherit; text-align: right; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: inherit; }
.day-input small { color: var(--ink-3); min-width: 32px; }
.day-stat { color: var(--ink-3); display: inline-flex; }
.day-stat svg { width: 18px; height: 18px; }
.stat-tools { display: grid; gap: 10px; margin-bottom: 16px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat-tile { display: grid; gap: 2px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.stat-tile strong { font: 650 22px var(--display); }
.stat-label { font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.stat-chart-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 8px; }
.stat-chart { width: 100%; height: auto; display: block; }
.stat-chart .grid { stroke: var(--line); stroke-width: 1; }
.stat-chart .axis { fill: var(--ink-3); font: 11px var(--sans); }
.stat-chart .bar { fill: var(--accent); opacity: .85; }
.stat-chart .bar:hover { opacity: 1; }
.stat-chart .avg-line { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }

/* Olvasás: állapot a polcon, részletek, statisztika */
.shelf-status { display: inline-block; font: 600 11px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.shelf-read { right: 46px; }
.read-details h3 { font: 600 13px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin: 18px 0 6px; }
.read-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.read-who svg { width: 18px; height: 18px; display: block; }
.read-comment { flex-basis: 100%; margin: 4px 0 2px; font-style: italic; }
.read-note { margin: 8px 0; }
.read-note blockquote { margin: 0 0 2px; padding-left: 12px; border-left: 3px solid var(--line); font-style: italic; }
.read-note p { margin: 0 0 2px; }
.read-note img { max-width: 100%; border-radius: 10px; display: block; margin-bottom: 4px; }
.reading-app .rs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.reading-app .rs-tile { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.reading-app .rs-tile strong { font: 500 28px var(--display); }
.reading-app .rs-tile span { font: 12px var(--sans); color: var(--ink-3); }
.rs-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; }
.rs-box h3 { font: 600 13px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.rs-chart { width: 100%; height: auto; display: block; }
.rs-grid { stroke: var(--line); stroke-width: 1; }
.rs-axis { fill: var(--ink-3); font: 11px var(--sans); }
.rs-bar { fill: var(--accent); opacity: .85; }
.rs-bar:hover { opacity: 1; }
.rs-note { margin: 6px 0 0; font: 13px var(--sans); color: var(--ink-2); }
.rs-years { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font: 14px var(--sans); }
.rs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rs-chip { background: var(--paper-2, var(--line)); border-radius: 999px; padding: 3px 11px; font: 13px var(--sans); }
.rs-chip b { color: var(--ink-3); font-weight: 600; }

.rs-year { font: 600 14px var(--sans); margin: 12px 0 2px; color: var(--ink-2); }
