/* ===== 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: 54px; height: 54px; stroke-width: 1.2; }
.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) {
  .tabs .tab:last-child { display: none; }
  .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: block; margin: 2px 0; padding: 0; border: 0; background: none; color: var(--ink-3); font: italic 14px var(--serif); text-align: left; cursor: pointer; }
.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); }
