/* =========================================================================
   Nepál PIR — megjelenési réteg (v1.70)
   A style.css UTÁN töltődik; csak kinézet, a működés és a DOM változatlan.
   Elv: nyugodt felületek, a szín csak jelentést hordoz (határidő, prioritás,
   lista). A kártya bal szélén lévő sáv a prioritás, a határidő-címke az állapot.
   Visszaállítás: az index.html-ből a theme.css sor törlése.
   ========================================================================= */

:root {
  --nf-canvas: #edf1f6;
  --nf-surface: #ffffff;
  --nf-sunken: #f5f7fa;
  --nf-line: #dde3eb;
  --nf-line-strong: #c9d2de;
  --nf-ink: #172133;
  --nf-ink-2: #5e6b7e;
  --nf-ink-3: #8a95a6;
  --nf-brand: #8c2633;
  --nf-brand-ink: #74202b;
  --nf-brand-tint: #f6e4e7;
  --nf-red: #d4342c;
  --nf-red-tint: #fdecea;
  --nf-amber: #e8a23a;
  --nf-green: #1f9d63;
  --nf-radius: 12px;
  --nf-radius-sm: 7px;
  --nf-focus: 0 0 0 3px rgba(140, 38, 51, .28);
}
body.dark {
  --nf-canvas: #0d131d;
  --nf-surface: #161f2c;
  --nf-sunken: #111925;
  --nf-line: #253246;
  --nf-line-strong: #334259;
  --nf-ink: #e7ecf3;
  --nf-ink-2: #a3afc2;
  --nf-ink-3: #74829a;
  --nf-brand: #e07a8a;
  --nf-brand-ink: #f0a8b3;
  --nf-brand-tint: #3a1a20;
  --nf-red: #ff6b61;
  --nf-red-tint: #3a1d1f;
  --nf-amber: #f0b45a;
  --nf-green: #3fc98a;
  --nf-focus: 0 0 0 3px rgba(224, 122, 138, .35);
}

/* ---- Alap ---------------------------------------------------------------- */
body {
  font-family: "Manrope Variable", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--nf-ink);
  background: var(--nf-canvas);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}
#main { background: var(--nf-canvas); }
body.dark #main { background: var(--nf-canvas) !important; }
:focus-visible { outline: none; box-shadow: var(--nf-focus); border-radius: 8px; }

/* ---- Oldalsáv --------------------------------------------------------------- */
#sidebar {
  background: var(--nf-sunken) !important;
  border-right: 1px solid var(--nf-line) !important;
}
#sidebar .sidebar-header { border-bottom: 1px solid var(--nf-line) !important; }
#user-name { color: var(--nf-ink) !important; letter-spacing: -.01em; }
#user-email { color: var(--nf-ink-3) !important; }
#sidebar .side-section-head {
  color: var(--nf-ink-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding-top: 10px;
}
.filter-btn {
  color: var(--nf-ink-2);
  font-weight: 500;
  border-radius: 9px;
  gap: 10px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.list-type-mark { display: inline-flex; color: var(--nf-ink-3); }
.filter-btn .nav-ic { display: inline-flex; width: 18px; justify-content: center; color: var(--nf-ink-3); flex-shrink: 0; }
.filter-btn:hover { background: color-mix(in srgb, var(--nf-ink) 6%, transparent); color: var(--nf-ink); }
.filter-btn.active {
  background: var(--nf-surface);
  color: var(--nf-brand-ink);
  font-weight: 650;
  box-shadow: 0 0 0 1px var(--nf-line), 0 1px 2px rgba(16, 24, 40, .05);
}
.filter-btn.active .nav-ic { color: var(--nf-brand); }
.filter-btn .count {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--nf-ink-3);
}
.filter-btn.active .count { color: var(--nf-brand); font-weight: 700; }
.filter-btn[data-view="overdue"] .count:not(:empty) {
  color: #fff;
  background: var(--nf-red);
  border-radius: 999px;
  padding: 0 7px;
  line-height: 18px;
  font-weight: 700;
}

/* ---- Fejléc, kereső, gyors felvitel ------------------------------------------ */
#view-title {
  color: var(--nf-ink) !important;
  font-weight: 800 !important;
  letter-spacing: -.02em;
}
#btn-menu, #btn-settings-mobile, #sort-dir { color: var(--nf-ink-2) !important; }
#sort-key {
  background: transparent;
  border-color: transparent;
  color: var(--nf-ink-2);
  font-weight: 600;
  box-shadow: none;
}
#sort-key:hover { background: color-mix(in srgb, var(--nf-ink) 6%, transparent); }
#show-completed-wrap span { color: var(--nf-ink-2) !important; }

#search-input {
  background: color-mix(in srgb, var(--nf-ink) 5%, var(--nf-canvas)) !important;
  border-color: transparent !important;
  color: var(--nf-ink) !important;
  border-radius: 10px !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}
#search-input:focus { background: var(--nf-surface) !important; border-color: var(--nf-brand) !important; box-shadow: var(--nf-focus) !important; }
.search-ic { display: inline-flex; color: var(--nf-ink-3) !important; }

#quick-add-input {
  background: var(--nf-surface) !important;
  border: 1px solid var(--nf-line-strong) !important;
  color: var(--nf-ink) !important;
  border-radius: 12px !important;
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  padding-left: 44px !important;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c2633' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 16px center !important;
  background-size: 18px 18px !important;
}
#quick-add-input::placeholder { color: var(--nf-ink-3); font-weight: 500; }
#quick-add-input:focus { border-color: var(--nf-brand) !important; box-shadow: var(--nf-focus) !important; }

/* ---- Feladatkártya -------------------------------------------------------- */
.task-list .task,
.task {
  background-color: var(--task-bg, var(--nf-surface));
  background-image: none !important;
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-radius);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
body.dark .task { background-color: var(--nf-surface); border-color: var(--nf-line); }
.task:hover { border-color: var(--nf-line-strong); box-shadow: 0 2px 10px rgba(16, 24, 40, .06); }
body.dark .task:hover { box-shadow: 0 2px 14px rgba(0, 0, 0, .35); }

/* Prioritás: bal oldali sáv */
.task::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: transparent;
}
.task.prio-2::before { background: var(--nf-red); }
.task.prio-1::before { background: var(--nf-amber); }

/* Lejárt: a felület nyugodt marad — az állapotot a piros határidő-címke jelzi */
.task.overdue { background-color: var(--task-bg, var(--nf-surface)); border-color: var(--nf-line); }
body.dark .task.overdue { background-color: var(--nf-surface); }
.task.overdue .task-title { color: var(--nf-ink); }
.task.done { opacity: .6; background-color: var(--nf-sunken); }

.task-title { color: var(--nf-ink); font-weight: 650; letter-spacing: -.005em; line-height: 1.35; }
body.dark .task-title { color: var(--nf-ink); }
.task-desc { color: var(--nf-ink-2); line-height: 1.5; }
.task-subs { color: var(--nf-ink-3); font-variant-numeric: tabular-nums; }

.task-check { border-width: 2px; border-color: var(--nf-line-strong); background: transparent; }
.task.prio-2 .task-check { border-color: color-mix(in srgb, var(--nf-red) 70%, var(--nf-line-strong)); }
.task-check:hover { border-color: var(--nf-green); background: color-mix(in srgb, var(--nf-green) 10%, transparent); }
.task-check.checked { background: var(--nf-green); border-color: var(--nf-green); }
.note-mark { display: inline-flex; color: var(--nf-ink-3); padding-top: 2px; }
.drag-handle { color: var(--nf-line-strong); }

/* Meta-sor: határidő-címke = az állapot */
.task-meta { gap: 6px 8px; }
.meta-due {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--nf-ink-2);
  font-variant-numeric: tabular-nums;
}
.meta-due.due-today {
  color: var(--nf-brand-ink);
  background: var(--nf-brand-tint);
  padding: 2px 8px;
  border-radius: var(--nf-radius-sm);
}
.meta-due.overdue-text {
  color: #fff;
  font-weight: 700;
  background: var(--nf-red);
  padding: 2px 8px;
  border-radius: var(--nf-radius-sm);
}
.meta-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0 !important;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--nf-ink-2) !important;
}
.meta-list .list-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--list-color, #64748b);
  display: inline-block;
}
.tag-chip { border-radius: var(--nf-radius-sm); font-weight: 600; font-size: 11px; }
.badge {
  background: transparent;
  color: var(--nf-ink-3);
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-radius-sm);
  font-weight: 600;
}
.avatar-row .avatar { box-shadow: 0 0 0 2px var(--task-bg, var(--nf-surface)); }

body.dark .meta-due.overdue-text { color: #2b0907; }

/* Műveletsor: egérrel csak rámutatáskor; érintőképernyőn halványan mindig */
.task-actions { border-top: 1px solid transparent; margin-top: 0; padding-top: 2px; margin-bottom: -6px; gap: 2px; }
.task-actions .icon-btn { color: var(--nf-ink-3); font-size: 16px; padding: 5px 7px; }
.task-actions .icon-btn svg { width: 16px; height: 16px; }
.task-actions .icon-btn:hover { color: var(--nf-ink); background: color-mix(in srgb, var(--nf-ink) 7%, transparent); }
.task-actions .icon-btn[data-action="delete"]:hover { color: var(--nf-red); background: var(--nf-red-tint); }
@media (hover: hover) and (pointer: fine) {
  .task-actions { opacity: 0; transition: opacity .12s ease; }
  .task:hover .task-actions,
  .task:focus-within .task-actions { opacity: 1; }
}
@media (hover: none) {
  .task-actions { border-top-color: var(--nf-line); padding-top: 4px; margin-top: 2px; }
  .task-actions .icon-btn { opacity: .75; }
}

/* ---- Lebegő gombok: lásd v1.74 (fab-bar) ---- */
@media (max-width: 640px) {
  #task-list { padding-bottom: 96px; }
}

/* ---- Űrlapok, gombok, modálok ---------------------------------------------- */
.inp {
  border-color: var(--nf-line-strong);
  border-radius: 9px;
  color: var(--nf-ink);
}
.inp:focus { border-color: var(--nf-brand); box-shadow: var(--nf-focus); }
.btn { border-radius: 9px; font-weight: 600; }
.btn-primary { background: var(--nf-brand); box-shadow: none; }
.btn-primary:hover { background: var(--nf-brand-ink); }
.modal-card { border-radius: 16px; border: 1px solid var(--nf-line); }

/* ---- Belépés: tervrajz-háló a márkakéken --------------------------------- */
.auth-view {
  background-color: #8c2633 !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) !important;
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px !important;
  background-position: -1px -1px !important;
}
body.dark .auth-view { background-color: #45131a !important; }
.auth-title {
  font-weight: 800 !important;
  letter-spacing: -.035em;
  text-shadow: none !important;
}
.auth-card {
  border-radius: 16px !important;
  box-shadow: 0 24px 60px rgba(42, 11, 15, .35) !important;
}
.auth-card .btn-primary, .auth-card button[type="submit"] { background: #8c2633; }

@media (prefers-reduced-motion: reduce) {
  .task-actions { transition: none; }
}

/* ---- Finomhangolás (sötét mód címkék, oldalsáv-fejlécek egységesítése) --- */
body.dark .meta-due { color: var(--nf-ink-2); }
body.dark .meta-due.due-today { color: var(--nf-brand-ink); }
body.dark .meta-due.overdue-text { color: #2b0907; }
body.dark .badge { background: transparent; color: var(--nf-ink-3); }
#sidebar .side-section-head .uppercase {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--nf-ink-2) !important;
}
#sidebar .side-section-head:hover { background: color-mix(in srgb, var(--nf-ink) 5%, transparent); }
#sidebar .collapse-caret { color: var(--nf-ink-3); font-size: 11px; }
body.dark .task.overdue { border-color: var(--nf-line); }
body.dark .task.overdue .task-title { color: var(--nf-ink); }

/* Szerkesztő: mondatszerű címkék a csupa nagybetű helyett */
.inline-editor form label.block {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  color: var(--nf-ink-2) !important;
}

/* =========================================================================
   Beállítások — csoportosított lista + (széles képernyőn) kétpaneles nézet
   ========================================================================= */
#settings-modal .modal-card { padding: 0; overflow: hidden; }
#settings-modal .modal-head {
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--nf-line);
}
#settings-modal .modal-head h3 { font-size: 17px; font-weight: 750; color: var(--nf-ink); letter-spacing: -.01em; }

/* Lista */
#settings-modal .settings-menu {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 12px 16px;
}
#settings-modal .settings-group {
  font-size: 12px;
  font-weight: 700;
  color: var(--nf-ink-3);
  padding: 14px 10px 6px;
}
#settings-modal .settings-menu-box {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  transform: none;
  color: var(--nf-ink);
  cursor: pointer;
}
#settings-modal .settings-menu-box:hover { background: color-mix(in srgb, var(--nf-ink) 5%, transparent); box-shadow: none; transform: none; border: 0; }
#settings-modal .settings-menu-box.active { background: var(--nf-brand-tint); }
#settings-modal .settings-menu-box.active .settings-menu-ico,
#settings-modal .settings-menu-box.active .smb-title { color: var(--nf-brand-ink); }
#settings-modal .settings-menu-ico { display: inline-flex; color: var(--nf-ink-2); font-size: 0; flex-shrink: 0; }
#settings-modal .smb-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
#settings-modal .smb-title { font-size: 14.5px; font-weight: 650; line-height: 1.3; }
#settings-modal .smb-desc { font-size: 12.5px; color: var(--nf-ink-3); line-height: 1.35; margin-top: 1px; }
#settings-modal .smb-chev { color: var(--nf-ink-3); font-size: 20px; line-height: 1; }

/* Részletnézet */
#settings-detail { padding: 6px 20px 20px; }
#settings-modal .settings-back {
  margin: 8px 0 2px;
  color: var(--nf-brand-ink);
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 4px 0;
}
#settings-modal .settings-detail-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--nf-ink);
  margin: 6px 0 14px;
}
#settings-modal .settings-tab-panel { animation: none; }
#settings-modal .settings-tab-panel > div.border-t,
#settings-modal .settings-tab-panel > div > div.border-t { border-color: var(--nf-line) !important; }

/* Mezőcímkék és szakaszcímek */
#settings-modal label.block.text-sm,
#settings-modal h4.text-sm {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--nf-ink) !important;
}
#settings-modal label.block.text-xs,
#settings-modal p.text-xs { color: var(--nf-ink-3) !important; font-size: 12.5px !important; }

/* Kapcsolósorok: dobozok helyett egyszerű, elválasztott sorok + kapcsoló */
#settings-modal label.flex.border:not(.theme-opt),
#settings-modal .settings-tab-panel label.flex[class*="border"]:not(.theme-opt) {
  border: 0 !important;
  border-bottom: 1px solid var(--nf-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 11px 2px !important;
  margin: 0 !important;
  gap: 12px;
}
#settings-modal label.flex.border:not(.theme-opt) span { color: var(--nf-ink) !important; font-size: 14px; }
#settings-modal input[type="checkbox"]:not(.hidden) {
  appearance: none;
  -webkit-appearance: none;
  width: 38px; height: 22px;
  border-radius: 999px;
  background: var(--nf-line-strong);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .15s ease;
}
#settings-modal input[type="checkbox"]:not(.hidden)::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
#settings-modal input[type="checkbox"]:checked { background: var(--nf-brand); }
#settings-modal input[type="checkbox"]:checked::after { transform: translateX(16px); }
#settings-modal input[type="checkbox"]:focus-visible { box-shadow: var(--nf-focus); }

/* A téma-választó: szegmentált kapcsoló a három doboz helyett */
#tab-display .flex.flex-col.gap-2:has(.theme-opt) {
  flex-direction: row;
  gap: 0;
  padding: 3px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--nf-ink) 6%, var(--nf-canvas));
  width: fit-content;
}
#tab-display .theme-opt {
  border: 0 !important;
  background: transparent !important;
  padding: 7px 14px !important;
  border-radius: 8px !important;
  justify-content: center !important;
}
#tab-display .theme-opt span { color: var(--nf-ink-2) !important; font-size: 13.5px; font-weight: 600; }
#tab-display .theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
#tab-display .theme-opt:has(input:checked) { background: var(--nf-surface) !important; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
#tab-display .theme-opt:has(input:checked) span { color: var(--nf-ink) !important; }
#tab-display .theme-opt:has(input:focus-visible) { box-shadow: var(--nf-focus); }

/* Színválasztó: kis minta a teljes szélességű sáv helyett */
#settings-modal input[type="color"] {
  width: 46px !important;
  height: 32px !important;
  padding: 2px !important;
  border-radius: 8px !important;
  border: 1px solid var(--nf-line-strong) !important;
  background: var(--nf-surface) !important;
}

/* Másodlagos gombok legyenek gombok */
#settings-modal .btn:not(.btn-primary):not(.btn-danger) {
  background: var(--nf-surface);
  border: 1px solid var(--nf-line-strong);
  color: var(--nf-ink);
}
#settings-modal .btn:not(.btn-primary):not(.btn-danger):hover { background: var(--nf-sunken); }

/* Menü-láthatóság rácsok: tömör lista */
#menu-visibility, #card-icon-visibility, #list-visibility, #tag-visibility { gap: 0 24px !important; }
#menu-visibility label, #card-icon-visibility label, #list-visibility label, #tag-visibility label {
  border: 0 !important;
  border-bottom: 1px solid var(--nf-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 9px 2px !important;
}
#menu-visibility label span, #card-icon-visibility label span, #list-visibility label span, #tag-visibility label span { color: var(--nf-ink) !important; }

/* Széles képernyő: két panel — balra a lista, jobbra a részletek */
@media (min-width: 860px) {
  #settings-modal .modal-card {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    height: min(760px, 88vh);
    max-width: 980px;
  }
  #settings-modal .modal-head { grid-column: 1 / -1; }
  #settings-modal #settings-menu,
  #settings-modal #settings-menu.hidden {
    display: flex !important;
    grid-column: 1;
    grid-row: 2;
    overflow-y: auto;
    border-right: 1px solid var(--nf-line);
    background: var(--nf-sunken);
  }
  #settings-modal .smb-chev { display: none; }
  #settings-modal #settings-detail { grid-column: 2; grid-row: 2; overflow-y: auto; padding: 8px 28px 28px; }
  #settings-modal #settings-detail.hidden { display: block !important; }
  #settings-modal .settings-back { display: none; }
  #settings-modal #settings-error, #settings-modal #settings-ok { grid-column: 1 / -1; padding: 8px 20px; margin: 0; border-top: 1px solid var(--nf-line); }
  #settings-modal .settings-tab-panel { max-width: 620px; }
}
body.dark #settings-modal .modal-card { background: var(--nf-surface); }
#my-devices-list > div {
  border: 0 !important;
  border-bottom: 1px solid var(--nf-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 10px 2px !important;
}
#my-devices-list { gap: 0 !important; }
#my-devices-list > div + div { margin-top: 0 !important; }

/* =========================================================================
   Feladatszerkesztő (v1.72): balra a tartalom, jobbra a tulajdonságok
   ========================================================================= */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.task-editor { padding: 0 !important; overflow: hidden; border-radius: 16px !important; }
.task-editor .modal-head {
  display: flex; align-items: center; gap: 12px;
  margin: 0 !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid var(--nf-line) !important;
}
.task-editor .modal-head h3 { font-size: 14px !important; font-weight: 700 !important; color: var(--nf-ink-2) !important; flex: 1; }
.ed-kbd-hint { font-size: 12px; color: var(--nf-ink-3); }
@media (hover: none) { .ed-kbd-hint { display: none; } }

.ed-form { display: grid; grid-template-columns: minmax(0, 1fr); }
.ed-main { padding: 16px 20px 8px; min-width: 0; }
.ed-side { padding: 4px 20px 12px; background: var(--nf-sunken); border-top: 1px solid var(--nf-line); }

.ed-title {
  width: 100%;
  border: 0; outline: none; background: transparent;
  font-size: 22px; font-weight: 750; letter-spacing: -.015em; line-height: 1.3;
  color: var(--nf-ink);
  padding: 4px 0;
}
.ed-title::placeholder { color: var(--nf-ink-3); font-weight: 650; }
.ed-desc {
  width: 100%;
  border: 0; outline: none; background: transparent; resize: none;
  font-size: 15px; line-height: 1.6; color: var(--nf-ink);
  padding: 4px 0 10px;
  min-height: 84px;
}
.ed-desc::placeholder { color: var(--nf-ink-3); }
.ed-title:focus-visible, .ed-desc:focus-visible { box-shadow: none; }
.ed-main:focus-within .ed-title:focus { box-shadow: inset 0 -2px 0 var(--nf-brand); }

.ed-section { border-top: 1px solid var(--nf-line); padding: 12px 0 10px; }
.ed-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ed-section-head h4 { font-size: 13.5px; font-weight: 700; color: var(--nf-ink); }
.ed-link {
  font-size: 13px; font-weight: 650; color: var(--nf-brand-ink);
  background: transparent; border: 0; padding: 4px 2px; cursor: pointer;
}
.ed-link:hover { text-decoration: underline; }
.ed-link-row { display: flex; gap: 8px; margin-bottom: 8px; }
.ed-link-row .inp { flex: 1; font-size: 13px; }

/* Tulajdonságsorok */
.ed-group { padding: 6px 0; }
.ed-group + .ed-group { border-top: 1px solid var(--nf-line); }
.ed-prop { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 0; }
.ed-label { font-size: 13px; font-weight: 650; color: var(--nf-ink-2); padding-top: 9px; }
.ed-control { min-width: 0; }
.ed-control .inp { width: 100%; font-size: 14px; padding-top: 7px; padding-bottom: 7px; }
.ed-chips { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ed-chip {
  font-size: 12.5px; font-weight: 650;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--nf-line-strong); background: var(--nf-surface); color: var(--nf-ink-2);
  cursor: pointer;
}
.ed-chip:hover { border-color: var(--nf-brand); color: var(--nf-brand-ink); }
.ed-chip-quiet { border-style: dashed; }
.ed-seg {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px;
  background: color-mix(in srgb, var(--nf-ink) 7%, var(--nf-sunken));
}
.ed-seg button {
  border: 0; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 650; color: var(--nf-ink-2);
  padding: 6px 12px; border-radius: 8px;
}
.ed-seg button.active { background: var(--nf-surface); color: var(--nf-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.ed-seg button[data-prio="2"].active { color: var(--nf-red); }
.ed-seg button[data-prio="1"].active { color: color-mix(in srgb, var(--nf-amber) 70%, var(--nf-ink)); }
#remind-list .remind-row .inp { width: auto; }

/* Lábléc: mindig elérhető */
.ed-footer {
  position: sticky; bottom: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px !important;
  border-top: 1px solid var(--nf-line) !important;
  background: var(--nf-surface);
  z-index: 2;
}
.task-editor .btn { border-radius: 9px !important; font-size: 14px; padding: 8px 14px; }
.task-editor .btn-primary { background: var(--nf-brand) !important; box-shadow: none !important; }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--nf-ink-2); }
.btn-ghost:hover { background: color-mix(in srgb, var(--nf-ink) 6%, transparent); color: var(--nf-ink); }
.btn-ghost-danger { background: transparent; border: 1px solid transparent; color: var(--nf-red); }
.btn-ghost-danger:hover { background: var(--nf-red-tint); }
.task-editor .btn-done { background: var(--nf-surface); border: 1px solid var(--nf-green); color: var(--nf-green); }
.task-editor .btn-done:hover { background: color-mix(in srgb, var(--nf-green) 10%, transparent); }
#task-error { padding: 0 18px 10px; }

/* Széles nézet: két oszlop */
@media (min-width: 900px) {
  .ed-form { grid-template-columns: minmax(0, 1fr) 330px; }
  .ed-main { padding: 18px 24px 12px; }
  .ed-side { border-top: 0; border-left: 1px solid var(--nf-line); padding: 8px 18px 14px; }
  .ed-footer, #task-error { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ed-prop { grid-template-columns: 1fr; gap: 4px; }
  .ed-label { padding-top: 0; }
  .ed-footer { flex-wrap: wrap; }
  .ed-footer .flex-1 { display: none; }
  .ed-footer .btn-primary { flex: 1 0 100%; order: 10; }
}
body.dark .task-editor { background: var(--nf-surface); }
/* finomítás: keskeny oldalsáv-vezérlők, mobil sorrend */
.ed-seg { display: flex; width: 100%; }
.ed-seg button { flex: 1; padding: 6px 4px; }
@media (min-width: 900px) {
  .ed-form { grid-template-columns: minmax(0, 1fr) 360px; }
  .ed-prop { grid-template-columns: 86px minmax(0, 1fr); }
}
@media (max-width: 899px) {
  /* Mobilon a fontos tulajdonságok (határidő, prioritás) a leírás után jönnek, a mellékletek a végén */
  .ed-main { display: contents; }
  .ed-title, .ed-desc { margin: 0 18px; width: auto; }
  .ed-title { margin-top: 14px; font-size: 19px; }
  .ed-side { order: 3; }
  .ed-section { order: 4; margin: 0 18px; }
  .ed-section:first-of-type { border-top: 0; }
  .ed-footer { order: 5; }
  #task-error { order: 6; }
}
@media (max-width: 640px) { .ed-kbd-hint { display: none; } }
body.dark .task-editor .ed-title,
body.dark .task-editor .ed-desc,
body.dark .task-editor .ed-label { background: transparent !important; color: var(--nf-ink) !important; border: 0 !important; }
body.dark .task-editor .ed-label { color: var(--nf-ink-2) !important; }

/* =========================================================================
   v1.73 — Mobil: a kártyák kitöltik a szélességet, sűrűbb lista
   ========================================================================= */
@media (max-width: 640px) {
  #main > div.px-4 { padding-left: 6px !important; padding-right: 6px !important; }
  #main header { padding: 0 6px; }
  .task-list .task { margin-bottom: 6px; }
  .task { padding: 10px 12px 10px 14px; gap: 10px; border-radius: 10px; }
  .task-meta { margin-top: 4px; }
  .task-actions { margin-top: 4px; padding-top: 2px; }
  .task-actions .icon-btn { padding: 4px 6px; }
}
/* Az egész kártya kattintható (szerkesztő) */
.task-list .task { cursor: pointer; }
.task-list .task .task-body { cursor: pointer; user-select: text; }
.task-list .task.inline-compose { cursor: default; }

/* =========================================================================
   v1.73 — Egysoros (kompakt) nézet: csak a címsor, sűrű lista
   ========================================================================= */
.view-toggle { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--nf-ink-2); }
.view-toggle.active { background: var(--nf-brand-tint); color: var(--nf-brand-ink); }
.task-list.compact .task:not(.expanded) {
  padding: 7px 12px 7px 14px;
  margin-bottom: 4px;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  border-radius: 8px;
}
.task-list.compact .task:not(.expanded) .task-left { flex-direction: row; gap: 0; }
.task-list.compact .task:not(.expanded) .task-desc,
.task-list.compact .task:not(.expanded) .task-subs,
.task-list.compact .task:not(.expanded) .task-meta,
.task-list.compact .task:not(.expanded) .task-files-preview,
.task-list.compact .task:not(.expanded) .task-actions,
.task-list.compact .task:not(.expanded) .task-title .badge { display: none !important; }
.task-list.compact .task:not(.expanded) .task-check { width: 20px; height: 20px; font-size: 12px; }
.task-list.compact .note-mark svg { width: 16px; height: 16px; }
.task-list.compact .task:not(.expanded) .task-title {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-list.compact .task:not(.expanded) .task-title a { pointer-events: none; color: inherit; text-decoration: none; }
.task-list.compact .task:not(.expanded).overdue .task-title { color: var(--nf-red); }
.task-list.compact .task:not(.expanded)::before { width: 3px; }

/* =========================================================================
   v1.73 — Beállítások görgetése mobilon (az alja eddig elérhetetlen volt)
   ========================================================================= */
@media (max-width: 859px) {
  #settings-modal.modal-top {
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 8px calc(env(safe-area-inset-bottom, 0px) + 8px);
    align-items: stretch;
  }
  #settings-modal .modal-card {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
    height: auto;
  }
  #settings-modal .modal-head {
    position: sticky; top: 0; z-index: 3;
    background: var(--nf-surface);
  }
  #settings-detail { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); }
}

/* Mentések panel */
.bk-status { padding: 12px 14px; border-radius: 10px; background: var(--nf-sunken); border: 1px solid var(--nf-line); }
.bk-line { font-size: 14px; color: var(--nf-ink); }
.bk-line.good::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--nf-green); margin-right: 8px; vertical-align: middle; }
.bk-line.bad::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--nf-red); margin-right: 8px; vertical-align: middle; }
.bk-err { color: var(--nf-red); }
.bk-sub { font-size: 12.5px; color: var(--nf-ink-3); margin-top: 3px; }
.bk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--nf-line); }
.bk-title { font-size: 14px; font-weight: 650; color: var(--nf-ink); }
.bk-tag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--nf-brand-tint); color: var(--nf-brand-ink); margin-left: 4px; }
.bk-tag.bad { background: var(--nf-red-tint); color: var(--nf-red); }
.bk-acts { display: flex; gap: 4px; flex-shrink: 0; }
.bk-acts .btn { padding: 6px 10px; font-size: 13px; }
#tab-backup code { font-size: 12px; background: var(--nf-sunken); padding: 0 4px; border-radius: 4px; }
@media (max-width: 520px) { .bk-row { flex-direction: column; align-items: flex-start; } }

/* v1.73.1 — szerkesztés közben is lehet másik kártyára kattintani */
#main.editing .task-list { opacity: .6; }
#main.editing .task-list .task { pointer-events: auto; }
#main.editing .task-list:hover { opacity: 1; }

/* v1.73.2 — kukában az egysoros elem kattintásra kinyílik (csak olvasás + visszaállítás/törlés) */
.task-list.compact .task.expanded { margin: 6px 0 10px; box-shadow: 0 2px 10px rgba(16, 24, 40, .08); }
/* Szerkesztőben a leírás linkjei kattinthatók maradnak */
.ed-desc-links { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.ed-desc-links:empty { display: none; }
.ed-desc-links a {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  font-size: 12.5px; font-weight: 600; color: var(--nf-brand-ink);
  background: var(--nf-brand-tint); border-radius: 999px; padding: 4px 10px;
  text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ed-desc-links a:hover { text-decoration: underline; }
@media (max-width: 899px) { .ed-desc-links { margin: -4px 18px 10px; order: 0; } }

/* =========================================================================
   v1.74 — Felső sor, lebegő gombsor, áthúzás, visszavonás
   ========================================================================= */
/* Gyors hozzáadás + keresés egy sorban (ahol elfér); mobilon két sor */
.top-inputs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.top-inputs .quick-add-row, .top-inputs .search-row { margin: 0 !important; }
.top-inputs .quick-add-row.hidden { display: none; }
@media (min-width: 900px) {
  .top-inputs { flex-direction: row; align-items: stretch; }
  .top-inputs .quick-add-row { flex: 1.5 1 0; min-width: 0; }
  .top-inputs .search-row { flex: 1 1 0; min-width: 220px; }
  .top-inputs #search-input { height: 100%; }
}

/* Lebegő gombok: egy sor jobbra lent, automatikus elrendezés (rejtettnek nincs helye) */
.fab-bar {
  position: fixed; right: 20px; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  z-index: 40;
  display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 10px;
}
.fab-bar .fab {
  position: static !important;
  width: 52px !important; height: 52px !important;
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--nf-surface) !important;
  color: var(--nf-ink) !important;
  border: 1px solid var(--nf-line) !important;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .12) !important;
  cursor: pointer;
}
.fab-bar .fab:hover { border-color: var(--nf-line-strong) !important; background: var(--nf-sunken) !important; }
.fab-bar .fab.hidden { display: none !important; }
#btn-new-task { color: var(--nf-brand-ink) !important; }
body.editing .fab-bar { display: none; }
@media (max-width: 640px) { .fab-bar { right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); gap: 8px; } }

/* Áthúzás */
@media (hover: none) { .task-list .task { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } }
body.dragging-task { -webkit-user-select: none; user-select: none; cursor: grabbing; }
.task.dragging { opacity: .35; }
.drag-ghost {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  max-width: 280px; padding: 8px 12px; border-radius: 10px;
  background: var(--nf-surface); color: var(--nf-ink); font-weight: 650; font-size: 14px;
  border: 1px solid var(--nf-line-strong); box-shadow: 0 10px 30px rgba(16, 24, 40, .25);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drop-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 150;
  width: min(640px, calc(100vw - 20px));
  padding: 10px 12px 12px; border-radius: 14px;
  background: var(--nf-surface); border: 1px solid var(--nf-line-strong);
  box-shadow: 0 12px 34px rgba(16, 24, 40, .22);
}
.drop-bar-title { font-size: 12px; font-weight: 700; color: var(--nf-ink-3); margin-bottom: 8px; }
.drop-bar-items { display: flex; flex-wrap: wrap; gap: 8px; }
.drop-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 650;
  background: var(--nf-sunken); color: var(--nf-ink); border: 1px solid var(--nf-line);
}
.drop-chip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.drop-chip.drop-target, #list-list .filter-btn.drop-target {
  background: var(--nf-brand-tint) !important; color: var(--nf-brand-ink) !important;
  border-color: var(--nf-brand) !important; box-shadow: 0 0 0 2px var(--nf-brand);
}

/* Visszavonás-sáv (3 mp) */
.undo-toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  z-index: 160; display: flex; align-items: center; gap: 14px;
  min-width: 260px; max-width: calc(100vw - 24px);
  padding: 10px 10px 10px 16px; border-radius: 12px; overflow: hidden;
  background: #1c2433; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  transition: opacity .18s ease, transform .18s ease;
}
.undo-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.undo-text { font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.undo-btn {
  border: 0; border-radius: 8px; padding: 7px 12px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #9ec0ff; font-weight: 750; font-size: 14px;
}
.undo-btn:hover { background: rgba(255, 255, 255, .2); }
.undo-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #9ec0ff; transform-origin: left; }
body.dark .undo-toast { background: #2a3547; }
@media (prefers-reduced-motion: reduce) { .undo-toast { transition: none; } }

/* v1.74.2 — gyors hozzáadás: egyszínű, vonalas Mentés / Mégsem ikon */
.inline-controls .in-save, .inline-controls .in-cancel, .inline-controls .in-expand { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; color: var(--nf-ink-2); }
.inline-controls .in-save { color: var(--nf-brand-ink); }
.inline-controls .in-save:hover { background: var(--nf-brand-tint); }
.inline-controls .in-cancel:hover { background: var(--nf-red-tint); color: var(--nf-red); }

/* v1.74.3 — egységes vonalas ikonok (emoji helyett) */
svg.ico { display: inline-block; vertical-align: -0.16em; flex-shrink: 0; }
.file-ico { display: inline-flex; align-items: center; justify-content: center; color: var(--nf-ink-3); font-size: inherit; }
body.dark .file-ico { filter: none; }
.email-att-btn .email-att-ico { display: inline-flex; color: var(--nf-ink-3); }
.meta-files { display: inline-flex; align-items: center; gap: 2px; }
.card-subcheckbox { display: inline-flex; vertical-align: -0.1em; }
.settings-back, .settings-tab-btn, #btn-forgot-back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-done, #btn-mark-done { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#btn-mark-done.hidden { display: none; }
.quick-add-type { display: inline-flex; align-items: center; justify-content: center; color: var(--nf-ink-2); }
.quick-add-type.note { color: var(--nf-brand-ink); }
.inbox-name-ico { display: inline-flex; }

/* v1.74.4 — gyors hozzáadás: nincs prioritás-választó, a cím a teljes szélességet kapja */
.inline-compose .in-title { padding-right: 12px; }
.inline-compose { background-image: none !important; }

/* v1.75.0 — Súgó */
#help-modal .help-card { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); overflow: hidden; }
.help-search-wrap { padding: 12px 20px 0; flex-shrink: 0; }
#help-modal .modal-head, .help-toc { flex-shrink: 0; }
.help-body { flex: 1 1 auto; min-height: 0; }
.help-toc { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 20px 12px; border-bottom: 1px solid var(--nf-line); }
.help-toc button { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--nf-line); background: var(--nf-surface); color: var(--nf-ink-2); cursor: pointer; }
.help-toc button:hover { border-color: var(--nf-brand-ink); color: var(--nf-brand-ink); }
.help-body { overflow-y: auto; padding: 4px 20px 24px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; color: var(--nf-ink); font-size: 14.5px; line-height: 1.55; }
.help-sec { padding: 14px 0 6px; border-bottom: 1px solid var(--nf-line); scroll-margin-top: 8px; }
.help-sec:last-of-type { border-bottom: 0; }
.help-sec h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--nf-ink); }
.help-sec p { margin: 0 0 8px; color: var(--nf-ink-2); }
.help-sec ul { margin: 0 0 8px; padding-left: 20px; list-style: disc; }
.help-sec li { margin: 0 0 6px; color: var(--nf-ink-2); }
.help-sec b { color: var(--nf-ink); font-weight: 650; }
.help-q { border: 1px solid var(--nf-line); border-radius: 10px; margin: 0 0 8px; background: var(--nf-surface); }
.help-q summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--nf-ink); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.help-q summary::-webkit-details-marker { display: none; }
.help-q summary::after { content: "+"; color: var(--nf-ink-3); font-weight: 400; font-size: 18px; line-height: 1; }
.help-q[open] summary::after { content: "–"; }
.help-q p { padding: 0 14px 12px; margin: 0; }
.help-noresult { padding: 24px 0; text-align: center; color: var(--nf-ink-3); }
.help-sec.hidden, .help-sec .hidden, .help-noresult.hidden { display: none !important; }
@media (max-width: 640px) {
  #help-modal .help-card { max-height: calc(100dvh - 16px); }
  .help-search-wrap { padding: 10px 14px 0; }
  .help-toc { padding: 8px 14px 10px; flex-wrap: nowrap; overflow-x: auto; }
  .help-toc button { white-space: nowrap; }
  .help-body { padding: 4px 14px 20px; }
}

/* v1.76 — szerkesztő: automatikus mentés + Előzmények (verziók) */
.task-editor { position: relative; }
.ed-history-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--nf-line); background: var(--nf-surface); color: var(--nf-ink-2); font-size: 13px; font-weight: 600; cursor: pointer; margin-right: 6px; }
.ed-history-btn:hover { border-color: var(--nf-brand-ink); color: var(--nf-brand-ink); }
.ed-history-btn.hidden { display: none; }
@media (max-width: 520px) { .ed-history-btn span { display: none; } .ed-kbd-hint { display: none; } }
.ed-history { position: absolute; inset: 0; z-index: 6; background: var(--nf-surface); display: flex; flex-direction: column; }
.ed-history.hidden { display: none; }
.vh-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--nf-line); flex-shrink: 0; }
.vh-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--nf-ink); }
.vh-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; padding: 4px 16px 16px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.vh-pad { padding: 12px 2px; }
.vh-muted { color: var(--nf-ink-3); font-size: 13.5px; }
.vh-hint { padding-top: 10px; padding-bottom: 6px; }
.vh-item { border: 1px solid var(--nf-line); border-radius: 10px; margin: 0 0 8px; background: var(--nf-surface); }
.vh-item summary { cursor: pointer; padding: 10px 12px; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.vh-item summary::-webkit-details-marker { display: none; }
.vh-item[open] summary { border-bottom: 1px solid var(--nf-line); }
.vh-when { font-weight: 650; font-size: 14px; color: var(--nf-ink); }
.vh-what { font-size: 13px; color: var(--nf-ink-2); }
.vh-prev { padding: 10px 12px 12px; }
.vh-prev-title { font-weight: 700; font-size: 15px; color: var(--nf-ink); margin-bottom: 4px; }
.vh-prev-desc { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; color: var(--nf-ink-2); background: var(--nf-sunken); border-radius: 8px; padding: 8px 10px; max-height: 220px; overflow: auto; }
.vh-prev-meta { font-size: 12.5px; color: var(--nf-ink-3); margin-top: 8px; }
.vh-prev-subs { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--nf-ink-2); }
.vh-acts { display: flex; justify-content: flex-end; margin-top: 10px; }
.inline-editor .modal-card.task-editor { position: relative; }

/* v1.76.1 — négy határidő-gyorsgomb egy sorban */
.ed-chips { gap: 5px; }
.ed-chips .ed-chip { padding-left: 9px; padding-right: 9px; white-space: nowrap; }

/* v1.77 — Android-app frissítés sáv + súgó letöltés */
.apk-update-bar { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 70; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #1d2433; color: #fff; box-shadow: 0 8px 24px rgba(16, 24, 40, .25); font-size: 14px; }
.apk-update-bar .apk-txt { flex: 1; min-width: 0; }
.apk-update-bar .apk-sub { opacity: .7; font-size: 12.5px; }
.apk-update-bar button { border: 0; border-radius: 8px; padding: 7px 12px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.apk-update-bar .apk-later { background: transparent; color: #cbd5e1; }
.apk-update-bar .apk-dl { background: #a63d4c; color: #fff; }
@media (min-width: 700px) { .apk-update-bar { left: auto; width: 460px; } }
.help-apk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 14px; margin: 4px 0 10px; border: 1px solid var(--nf-line); border-radius: 10px; background: var(--nf-sunken); font-size: 14px; color: var(--nf-ink-2); }
.help-apk.hidden { display: none; }

/* v1.78.1 — Súgó: mobilon témaválasztó lenyíló a vízszintes görgetés helyett */
.help-toc-mobile { display: none; padding: 10px 14px 10px; border-bottom: 1px solid var(--nf-line); flex-shrink: 0; }
.help-toc-mobile select { width: 100%; }
@media (max-width: 640px) {
  .help-toc { display: none; }
  .help-toc-mobile { display: block; }
}
/* Kitűzött „frissítsd az appot” kártya */
.task.apk-pin { border: 1px solid color-mix(in srgb, var(--nf-brand) 45%, var(--nf-line)); background: color-mix(in srgb, var(--nf-brand) 6%, var(--nf-surface)); cursor: default; }
.task.apk-pin::before { background: var(--nf-brand); }
.apk-pin-row { display: flex; align-items: center; gap: 12px; width: 100%; }
.apk-pin-ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--nf-brand-tint); color: var(--nf-brand-ink); }
.apk-pin-text { flex: 1; min-width: 0; }
.apk-pin-title { font-weight: 700; color: var(--nf-ink); font-size: 15px; }
.apk-pin-sub { font-size: 12.5px; color: var(--nf-ink-3); margin-top: 2px; }
.apk-pin .apk-pin-btn { flex-shrink: 0; }

/* v1.79 — kártyákon látható leírás-sorok */
.task-list.desc-none .task:not(.expanded) .task-desc { display: none !important; }
.task-list.desc-clamp .task:not(.expanded) .task-desc {
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--desc-lines, 3); line-clamp: var(--desc-lines, 3);
  overflow: hidden;
}

/* v1.79.1 — egységes magasságú kártyák: rács-elrendezés a kártyán belül, fix magasság, a többlet levágva */
.task-list.uniform { --u-actions: 30px; }
@media (hover: none), (max-width: 640px) { .task-list.uniform { --u-actions: 42px; } }
/* v1.79.2: a magasság = a listában a leghosszabb (korlátozott) kártya, de legfeljebb a sorszámból
   számolt felső határ; a tartalom és az ikonsor felül zártan, a maradék hely a kártya alján van */
.task-list.uniform .task:not(.expanded):not(.inline-compose):not(.apk-pin) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: minmax(0, max-content) auto 1fr;
  row-gap: 0;
  height: var(--u-h, auto);
  max-height: calc(142px + var(--u-actions) + var(--u-lines, 3) * 19.5px);
  align-items: start;
}
.task-list.uniform .task:not(.expanded):not(.inline-compose):not(.apk-pin) > .task-left { grid-column: 1; grid-row: 1; }
.task-list.uniform .task:not(.expanded):not(.inline-compose):not(.apk-pin) > .task-body { grid-column: 2; grid-row: 1; min-height: 0; max-height: 100%; overflow: hidden; align-self: stretch; }
.task-list.uniform .task.u-clipped > .task-body { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent); }
.task-list.uniform .task:not(.expanded):not(.inline-compose):not(.apk-pin) > .task-actions { grid-column: 1 / -1; grid-row: 2; }
.task-list.uniform .task:not(.expanded):not(.inline-compose):not(.apk-pin) > :not(.task-left):not(.task-body):not(.task-actions):not(.task-files-preview) { display: none !important; }
.task-list.uniform .task:not(.expanded) .task-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.task-list.uniform.desc-none .task:not(.expanded):not(.inline-compose):not(.apk-pin) { max-height: calc(124px + var(--u-actions)); }
/* v1.79.2 — asztalon (egérrel) az ikonsor nem foglal helyet: rámutatáskor a kártya aljára úszik */
@media (hover: hover) and (min-width: 641px) {
  .task-list.uniform { --u-actions: 0px; }
  .task-list.uniform .task:not(.expanded):not(.inline-compose):not(.apk-pin) > .task-actions {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 4px 10px;
    background: var(--task-bg, var(--nf-surface)); border-top: 1px solid var(--nf-line);
    justify-content: flex-end;
  }
  body.dark .task-list.uniform .task:not(.expanded):not(.inline-compose):not(.apk-pin) > .task-actions { background: var(--nf-surface); }
}

/* v1.79.3 — egységes magasság: a kártya szabad helyén a mellékletek / link- és PDF-előnézetek
   kis csempékként, vízszintesen görgethető sávban (ha nem fér el legalább ~40 px, rejtve) */
.task-list.uniform .task:not(.expanded):not(.inline-compose):not(.apk-pin):has(> .task-files-preview) {
  grid-template-rows: minmax(0, max-content) minmax(0, 1fr) auto;
}
.task-list.uniform .task:not(.expanded):not(.inline-compose):not(.apk-pin):has(> .task-files-preview) > .task-actions { grid-row: 3; }
.task-list.uniform .task:not(.expanded):not(.inline-compose):not(.apk-pin) > .task-files-preview {
  grid-column: 2; grid-row: 2;
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 6px;
  height: 100%; min-height: 0; margin: 8px 0 4px; padding-bottom: 4px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.task-list.uniform.u-measure .task > .task-files-preview,
.task-list.uniform .task.u-nopv > .task-files-preview { display: none !important; }
.task-list.uniform .task-files-preview > * { flex: 0 0 auto; height: 100%; max-width: 80%; scroll-snap-align: start; margin: 0 !important; }
/* képek: a sáv magasságában, arányosan */
.task-list.uniform .task-files-preview > a[data-image-view] { display: block; }
.task-list.uniform .task-files-preview > a[data-image-view] img { height: 100% !important; width: auto !important; max-width: 260px; min-width: 40px; object-fit: cover; border-radius: 8px; }
/* link-előnézet: keskeny csempe */
.task-list.uniform .task-files-preview > .task-link-preview { width: 190px; padding: 6px 8px !important; overflow: hidden; }
.task-list.uniform .task-files-preview .link-preview-body { flex-direction: column; gap: 4px; height: 100%; }
.task-list.uniform .task-files-preview .link-preview-img { height: auto; flex: 1 1 auto; min-height: 0; border-radius: 6px; }
.task-list.uniform .task-files-preview .link-preview-url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
/* PDF: az iframe helyett az első oldal képe (pv-pdf-tile) */
.task-list.uniform .task-files-preview > .pv-pdf-wrap { display: none !important; }
.pv-pdf-tile { display: none; }
.task-list.uniform .pv-pdf-tile { display: flex; flex-direction: column; height: 100%; text-decoration: none; border: 1px solid var(--nf-line); border-radius: 8px; overflow: hidden; background: var(--nf-sunken); }
.task-list.uniform .pv-pdf-tile img { flex: 1 1 auto; min-height: 0; height: 100%; width: auto; max-width: 220px; object-fit: cover; object-position: top; background: #fff; }
.task-list.uniform .pv-pdf-tile .pv-name { font-size: 11px; padding: 2px 6px; color: var(--nf-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.task-list.uniform .pv-pdf-tile .pv-ph { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-width: 80px; color: var(--nf-ink-3); }
/* egyéb fájl: csempe ikonnal és névvel */
.task-list.uniform .task-files-preview > .pv-file { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 120px; padding: 6px; border: 1px solid var(--nf-line); border-radius: 8px; background: var(--nf-sunken); color: var(--nf-ink-2) !important; text-decoration: none !important; font-size: 11.5px; text-align: center; overflow: hidden; }
.task-list.uniform .task-files-preview > .pv-file .pv-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; word-break: break-word; }

/* =========================================================================
   v1.80 — Naptár: letisztult megjelenés (téma-színekkel), időpont a chipeken
   ========================================================================= */
.calendar-view { --cal-gap: 6px; }
.cal-head { gap: 8px; margin-bottom: 10px; }
.cal-title { font-size: 19px; font-weight: 750; color: var(--nf-ink); letter-spacing: -.01em; }
.cal-nav, .cal-today { background: var(--nf-surface); border: 1px solid var(--nf-line); color: var(--nf-ink-2); border-radius: 10px; }
.cal-nav:hover, .cal-today:hover { background: var(--nf-sunken); }
.cal-today { color: var(--nf-brand-ink); font-weight: 700; }
.cal-modes { display: inline-flex; gap: 2px; padding: 3px; background: var(--nf-sunken); border-radius: 11px; margin-bottom: 12px; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
.cal-mode { border: 0; background: transparent; color: var(--nf-ink-2); border-radius: 8px; padding: 6px 12px; font-weight: 650; white-space: nowrap; }
.cal-mode:hover { background: transparent; color: var(--nf-ink); }
.cal-mode.active { background: var(--nf-surface); color: var(--nf-brand-ink); border: 0; box-shadow: 0 1px 3px rgba(16,24,40,.12); }
body.dark .cal-mode { background: transparent; color: var(--nf-ink-2); }
body.dark .cal-mode.active { background: var(--nf-surface); color: var(--nf-brand-ink); }
.cal-weekdays span { color: var(--nf-ink-3); font-weight: 700; letter-spacing: .04em; }
.cal-grid { gap: var(--cal-gap); }
.cal-day { background: var(--nf-surface); border: 1px solid var(--nf-line); border-radius: 12px; padding: 6px; gap: 4px; cursor: pointer; transition: border-color .12s; }
.cal-day:hover { border-color: var(--nf-line-strong); }
.cal-day.weekend { background: color-mix(in srgb, var(--nf-sunken) 70%, var(--nf-surface)); }
.cal-day.other { opacity: .55; }
.cal-day.today { border-color: var(--nf-brand); box-shadow: inset 0 0 0 1px var(--nf-brand); }
.cal-daynum { text-align: left; color: var(--nf-ink-2); font-weight: 700; font-size: 12.5px; padding: 1px 2px 3px; }
.cal-daynum .cal-wd { color: var(--nf-ink-3); font-weight: 650; text-transform: uppercase; font-size: 11px; letter-spacing: .03em; }
.cal-daynum .cal-mon { color: var(--nf-ink-3); font-weight: 600; }
.cal-grid.mode-month .cal-daynum { text-align: right; }
.cal-day.today .cal-dn { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--nf-brand); color: #fff; }
.cal-chip { --chip-c: var(--nf-brand); display: flex; gap: 5px; align-items: baseline; font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 7px;
  background: color-mix(in srgb, var(--chip-c) 10%, var(--nf-surface)); color: var(--nf-ink); border: 0; border-left: 3px solid var(--chip-c); }
.cal-chip .cal-time { flex-shrink: 0; font-weight: 700; color: var(--nf-ink-2); font-variant-numeric: tabular-nums; font-size: 11px; }
.cal-chip .cal-ttl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-chip.p2 { --chip-c: var(--nf-red); }
.cal-chip.p1 { --chip-c: var(--nf-amber); }
.cal-chip.overdue { background: var(--nf-red-tint); color: var(--nf-red); }
.cal-chip.done { opacity: .5; text-decoration: line-through; }
body.dark .cal-chip { background: color-mix(in srgb, var(--chip-c) 18%, var(--nf-surface)); color: var(--nf-ink); }
.cal-more { color: var(--nf-ink-3); font-weight: 600; }
.cal-empty { color: var(--nf-ink-3); font-size: 12px; padding: 6px 2px; opacity: .8; }
.cal-grid.mode-day .cal-chip, .cal-grid.mode-3day .cal-chip { font-size: 13.5px; padding: 7px 10px; border-radius: 9px; }
.cal-grid.mode-day .cal-chip .cal-time, .cal-grid.mode-3day .cal-chip .cal-time { font-size: 12.5px; min-width: 38px; }
.cal-grid.mode-day .cal-day { min-height: 240px; padding: 10px; }
.cal-grid.mode-day .cal-daynum { font-size: 15px; padding-bottom: 6px; }
.cal-agenda-day { background: var(--nf-surface); border: 1px solid var(--nf-line); border-radius: 12px; }
.cal-agenda-day.today { border-color: var(--nf-brand); box-shadow: inset 0 0 0 1px var(--nf-brand); }
.cal-agenda-head { color: var(--nf-ink); }
.cal-agenda-day .cal-chip { margin-bottom: 4px; font-size: 13px; padding: 6px 9px; }
@media (max-width: 640px) {
  .cal-day { padding: 3px; border-radius: 9px; }
  .cal-grid.mode-month .cal-chip { font-size: 10px; padding: 1px 3px; }
  .cal-grid.mode-month .cal-chip .cal-time { display: none; }
  .cal-grid.mode-3day { grid-template-columns: 1fr; }
  .cal-grid.mode-3day .cal-day { min-height: 0; }
  .cal-grid.mode-week { grid-template-columns: 1fr; }
  .cal-grid.mode-week .cal-day { min-height: 0; }
  .cal-weekdays:not(.hidden) { display: none; }
  .cal-grid.mode-month + * , .calendar-view:has(.mode-month) .cal-weekdays { display: grid; }
  .cal-grid.mode-day .cal-day { min-height: 160px; }
}

/* v1.80 — levelek: kijelölés + tömeges törlés */
.mail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mail-head #mail-status { margin-left: auto; }
.mail-selall, .mail-check { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; cursor: pointer; border-radius: 8px; }
.mail-selall:hover, .mail-check:hover { background: var(--nf-sunken); }
.mail-selall input, .mail-check input { width: 17px; height: 17px; accent-color: var(--nf-brand); cursor: pointer; }
.mail-bulk { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 10px; border-radius: 12px; background: var(--nf-brand-tint); border: 1px solid color-mix(in srgb, var(--nf-brand) 30%, var(--nf-line)); }
.mail-bulk.hidden { display: none; }
.mail-sel-count { font-weight: 700; color: var(--nf-brand-ink); margin-right: auto; }
.btn-danger-soft { background: var(--nf-surface) !important; color: var(--nf-red) !important; border: 1px solid color-mix(in srgb, var(--nf-red) 40%, var(--nf-line)) !important; }
.btn-danger-soft:hover { background: var(--nf-red-tint) !important; }
.email-item.selected { border-color: var(--nf-brand); background: color-mix(in srgb, var(--nf-brand) 5%, var(--nf-surface)); }

/* =========================================================================
   v1.82 — Fájltároló
   ========================================================================= */
.drive-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.drive-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; font-weight: 700; color: var(--nf-ink); font-size: 16px; }
.drive-crumb { background: none; border: 0; padding: 4px 6px; border-radius: 7px; color: var(--nf-brand-ink); font-weight: 650; cursor: pointer; }
.drive-crumb:hover { background: var(--nf-brand-tint); }
.drive-crumb.current { color: var(--nf-ink); cursor: default; }
.drive-sep { color: var(--nf-ink-3); }
.drive-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.drive-up-btn { cursor: pointer; }
.drive-usage { margin-bottom: 10px; }
.drive-usage-bar { height: 7px; border-radius: 99px; background: var(--nf-sunken); overflow: hidden; display: block; }
.drive-usage-bar > span { display: block; height: 100%; background: var(--nf-brand); border-radius: 99px; transition: width .3s; }
.drive-usage-bar > span.hot { background: var(--nf-red); }
.drive-usage-txt, .drive-prog-txt { font-size: 12.5px; color: var(--nf-ink-3); margin-top: 4px; }
.drive-progress { padding: 10px 12px; border: 1px solid var(--nf-line); border-radius: 12px; background: var(--nf-surface); margin-bottom: 10px; }
.drive-progress.hidden { display: none; }
.drive-drop { position: relative; min-height: 220px; border-radius: 14px; }
.drive-drop-hint { display: none; }
.drive-drop.dragging { outline: 2px dashed var(--nf-brand); outline-offset: 4px; background: color-mix(in srgb, var(--nf-brand) 6%, transparent); }
.drive-drop.dragging .drive-drop-hint { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; font-weight: 700; color: var(--nf-brand-ink); font-size: 16px; pointer-events: none; }
.drive-list { display: flex; flex-direction: column; gap: 6px; }
.drive-item { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--nf-line); border-radius: 12px; background: var(--nf-surface); }
.drive-item:hover { border-color: var(--nf-line-strong); }
.drive-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; background: none; border: 0; text-align: left; cursor: pointer; padding: 4px; color: inherit; }
.drive-ic { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--nf-sunken); color: var(--nf-ink-2); }
.drive-item.dir .drive-ic { background: var(--nf-brand-tint); color: var(--nf-brand-ink); }
.drive-thumb { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: var(--nf-sunken); }
.drive-name-wrap { display: flex; flex-direction: column; min-width: 0; }
.drive-name { font-weight: 650; color: var(--nf-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive-meta { font-size: 12px; color: var(--nf-ink-3); }
.drive-shared { color: var(--nf-green); font-weight: 650; }
.drive-item-acts { display: flex; gap: 0; flex-shrink: 0; }
.drive-item-acts .icon-btn { padding: 6px 7px; color: var(--nf-ink-3); border-radius: 8px; }
.drive-item-acts .icon-btn:hover { color: var(--nf-ink); background: var(--nf-sunken); }
.drive-item-acts .icon-btn.on { color: var(--nf-green); }
.drive-item-acts .icon-btn.danger:hover { color: var(--nf-red); background: var(--nf-red-tint); }
@media (hover: hover) and (min-width: 641px) { .drive-item-acts { opacity: .35; transition: opacity .12s; } .drive-item:hover .drive-item-acts, .drive-item:focus-within .drive-item-acts { opacity: 1; } }
@media (max-width: 640px) {
  .drive-item { flex-wrap: wrap; }
  .drive-item-acts { width: 100%; justify-content: flex-end; border-top: 1px solid var(--nf-line); padding-top: 2px; }
  .drive-acts .btn { padding: 7px 10px; font-size: 13px; }
}
.drive-empty { text-align: center; color: var(--nf-ink-3); padding: 48px 16px; border: 1.5px dashed var(--nf-line-strong); border-radius: 14px; line-height: 1.6; }
.drive-empty.hidden { display: none; }
.drive-move-pop { position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .35); display: flex; align-items: center; justify-content: center; padding: 16px; }
.drive-move-card { width: min(440px, 100%); background: var(--nf-surface); border-radius: 14px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.drive-move-title { font-weight: 700; margin-bottom: 10px; color: var(--nf-ink); }
.drive-move-card select { width: 100%; }
.drive-move-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
/* szövegszerkesztő */
.drive-ed-card { display: flex; flex-direction: column; height: min(86dvh, 900px); padding: 0 !important; overflow: hidden; }
.drive-ed-card .modal-head { gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--nf-line); margin: 0; }
.drive-ed-name { flex: 1; min-width: 0; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; font-weight: 700; font-size: 15px; background: transparent; color: var(--nf-ink); }
.drive-ed-name:hover, .drive-ed-name:focus { border-color: var(--nf-line); background: var(--nf-sunken); outline: none; }
.drive-ed-status { font-size: 12px; color: var(--nf-ink-3); white-space: nowrap; }
.drive-ed-text { flex: 1; width: 100%; resize: none; border: 0; outline: none; padding: 14px 16px; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 4; color: var(--nf-ink); background: var(--nf-surface); }
.drive-ed-foot { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--nf-line); font-size: 12px; color: var(--nf-ink-3); }
/* admin */
.dr-head, .dr-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 0.8fr 1.2fr; gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--nf-line); font-size: 13.5px; }
.dr-head { font-weight: 700; color: var(--nf-ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.dr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-pct { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }

/* v1.83 — Fájlok: szabad hely, offline jelzések */
.drive-free { color: var(--nf-ink); }
.drive-local { color: var(--nf-green); font-weight: 650; }
.drive-off { color: var(--nf-amber); font-weight: 650; }

/* v1.84: Fájlok — húzás mappába */
.drive-item.drive-dragging { opacity: .45; }
.drive-drop-over { outline: 2px dashed var(--nf-brand, #4f46e5); outline-offset: 2px; background: var(--nf-brand-tint) !important; }
#drive-list .drive-item { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.drive-ghost { position: fixed; z-index: 9999; pointer-events: none; transform: translate(-50%, -130%); padding: 6px 10px; border-radius: 10px; background: var(--nf-surface); border: 1px solid var(--nf-line-strong); box-shadow: 0 6px 18px rgba(0,0,0,.18); font-size: 13px; max-width: 70vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* v1.85: megosztás csoporttagokkal */
.share-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--nf-brand-tint); color: var(--nf-brand-ink); }
.share-chip.in { background: #ecfdf5; color: #047857; }
.share-card { width: min(480px, 100%); max-height: 86vh; overflow: auto; }
.share-sec { font-size: 12px; font-weight: 700; color: var(--nf-ink-2, #64748b); margin: 12px 0 4px; text-transform: uppercase; letter-spacing: .03em; }
.share-sec small { text-transform: none; font-weight: 400; letter-spacing: 0; }
.share-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.share-row:hover { background: var(--nf-brand-tint); }
.share-ic { display: inline-flex; color: var(--nf-ink-2, #64748b); }
.share-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-perm { width: auto !important; padding: 4px 8px !important; font-size: 13px; }
.share-note, .share-empty { font-size: 12px; color: var(--nf-ink-2, #64748b); margin: 10px 0 0; }
.ed-share-banner { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 8px 16px; border-radius: 0; background: #ecfdf5; color: #047857; }
.drive-owner, .drive-gshared { color: var(--nf-brand-ink); }
.drive-gshared { display: inline-flex; align-items: center; gap: 2px; }
.drive-shared-root .drive-ic { background: #ecfdf5 !important; color: #047857 !important; }
.drive-up-btn.disabled { opacity: .45; pointer-events: none; }
#task-form.shared-lim #btn-delete-task, #task-form.shared-lim #btn-convert-type { display: none !important; }
#task-form.shared-ro button[type="submit"], #task-form.shared-ro #btn-mark-done { display: none !important; }
#task-form.shared-ro .ed-side, #task-form.shared-ro .ed-meta { pointer-events: none; }
#task-form.shared-ro .ed-link, #task-form.shared-lim #f-tags-wrap .ed-link { visibility: hidden; }

/* v1.86: Fájlok a statisztikában */
.stat-drive { margin-top: 12px; }
.stat-drive-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.stat-drive-head span { font-size: 13px; color: var(--nf-ink-2, #64748b); }
.stat-drive-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--nf-line, #e2e8f0); }
.stat-drive-bar span { height: 100%; }
.stat-drive-txt { font-size: 12px; color: var(--nf-ink-2, #64748b); margin: 6px 0 8px; }
.stat-drive-share, .stat-drive-empty { font-size: 12px; color: var(--nf-ink-2, #64748b); margin-top: 8px; }

/* v1.87: Fájlok kijelölés → feljegyzés/feladat; mellékletek → Fájlok */
.drive-cb { width: 17px; height: 17px; flex: 0 0 auto; margin: 0 2px 0 4px; accent-color: var(--nf-brand, #8c2633); cursor: pointer; }
.drive-cb-ph { width: 23px; flex: 0 0 auto; }
.drive-item.selected { border-color: var(--nf-brand, #8c2633); background: var(--nf-brand-tint); }
.drive-selbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 8px; border-radius: 12px; background: var(--nf-brand-tint); border: 1px solid var(--nf-line-strong); position: sticky; top: 0; z-index: 5; }
.drive-selbar .btn { display: inline-flex; align-items: center; gap: 6px; }
.file-alldrive { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }

/* v1.88: melléklet a Fájlokból */
.ed-att-adds { display: inline-flex; gap: 12px; align-items: center; }
.dpick-card { width: min(560px, 100%); display: flex; flex-direction: column; max-height: 86vh; }
.dpick-q { margin-bottom: 8px; }
.dpick-list { overflow: auto; flex: 1; min-height: 120px; max-height: 55vh; border: 1px solid var(--nf-line); border-radius: 10px; padding: 4px; }
.dpick-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; cursor: pointer; }
.dpick-row:hover { background: var(--nf-brand-tint); }
.dpick-row .drive-ic { width: 30px; height: 30px; }
.dpick-nm { min-width: 0; display: flex; flex-direction: column; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dpick-nm small { color: var(--nf-ink-2, #64748b); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.dpick-n { font-size: 13px; color: var(--nf-ink-2, #64748b); align-self: center; }

/* v1.89: Nyelvek */
.langs-acts { text-align: right; white-space: nowrap; }
.langs-acts .btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; }
.changelog-text ul { margin: 4px 0 0; padding-left: 18px; list-style: disc; }
.changelog-text li { margin: 2px 0; }

/* v1.90: nyelvek felkészültsége */
.langs-table td { vertical-align: top; }
.lang-ready { display: flex; align-items: center; gap: 8px; min-width: 160px; }
.lang-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--nf-line, #e2e8f0); overflow: hidden; }
.lang-bar span { display: block; height: 100%; }
.lang-bar .ok { background: #16a34a; } .lang-bar .mid { background: #f59e0b; } .lang-bar .low { background: #ef4444; }
.lang-ready-txt { font-size: 11px; color: var(--nf-ink-2, #64748b); margin-top: 3px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }

/* v1.91: Fájlok — nézetváltó és bélyegkép-rács */
.drive-vmode { display: inline-flex; border: 1px solid var(--nf-line); border-radius: 10px; padding: 2px; gap: 2px; background: var(--nf-surface); }
.drive-vmode .icon-btn { padding: 5px 7px; border-radius: 8px; color: var(--nf-ink-3); }
.drive-vmode .icon-btn.active { background: var(--nf-brand-tint); color: var(--nf-brand-ink); }
.drive-list.grid-s, .drive-list.grid-l, .drive-list.grid-xl { display: grid; gap: 10px; }
.drive-list.grid-s { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.drive-list.grid-l { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.drive-list.grid-s .drive-item, .drive-list.grid-l .drive-item, .drive-list.grid-xl .drive-item { position: relative; flex-direction: column; align-items: stretch; padding: 6px; gap: 4px; flex-wrap: nowrap; }
.drive-list.grid-s .drive-main, .drive-list.grid-l .drive-main, .drive-list.grid-xl .drive-main { flex-direction: column; align-items: stretch; gap: 6px; padding: 0; }
.drive-list.grid-s .drive-thumb, .drive-list.grid-s .drive-ic { width: 100%; height: 110px; border-radius: 9px; }
.drive-list.grid-l .drive-thumb, .drive-list.grid-l .drive-ic { width: 100%; height: 200px; border-radius: 10px; }
.drive-list.grid-s .drive-ic svg { width: 36px; height: 36px; }
.drive-list.grid-l .drive-ic svg { width: 56px; height: 56px; }
.drive-list.grid-s .drive-thumb, .drive-list.grid-l .drive-thumb, .drive-list.grid-xl .drive-thumb { object-fit: cover; }
.drive-list.grid-s .drive-name-wrap, .drive-list.grid-l .drive-name-wrap, .drive-list.grid-xl .drive-name-wrap { padding: 0 2px; }
.drive-list.grid-s .drive-name { font-size: 13px; }
.drive-list.grid-s .drive-meta { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive-list.grid-s .drive-cb, .drive-list.grid-l .drive-cb, .drive-list.grid-xl .drive-cb { position: absolute; top: 10px; left: 10px; z-index: 2; margin: 0; }
.drive-list.grid-s .drive-cb-ph, .drive-list.grid-l .drive-cb-ph, .drive-list.grid-xl .drive-cb-ph { display: none; }
.drive-list.grid-s .drive-item-acts, .drive-list.grid-l .drive-item-acts, .drive-list.grid-xl .drive-item-acts { width: auto; flex-wrap: wrap; justify-content: center; border-top: 1px solid var(--nf-line); padding-top: 2px; }
.drive-list.grid-s .drive-item-acts .icon-btn { padding: 4px 5px; }
@media (hover: hover) and (min-width: 641px) {
  .drive-list.grid-s .drive-item-acts, .drive-list.grid-l .drive-item-acts, .drive-list.grid-xl .drive-item-acts { position: absolute; top: 6px; right: 6px; border: 0; padding: 2px; border-radius: 9px; background: color-mix(in srgb, var(--nf-surface) 92%, transparent); box-shadow: 0 2px 8px rgba(0,0,0,.12); max-width: calc(100% - 40px); }
}
@media (max-width: 640px) {
  .drive-list.grid-s { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .drive-list.grid-l { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .drive-list.grid-s .drive-thumb, .drive-list.grid-s .drive-ic { height: 86px; }
  .drive-list.grid-l .drive-thumb, .drive-list.grid-l .drive-ic { height: 150px; }
  .drive-list.grid-s .drive-item-acts .icon-btn { padding: 3px 4px; }
}

/* v1.92: oldalsáv elválasztó, Kedvencek/Kuka fájlblokk, naptár gomb */
.side-sep { height: 1px; background: var(--nf-line); margin: 8px 6px; }
.xfiles { margin-top: 14px; }
.xfiles-head { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--nf-ink-2); margin: 0 2px 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.xfiles-head span { font-weight: 600; color: var(--nf-ink-3); }
.xfiles .drive-item-acts { position: static !important; box-shadow: none !important; background: none !important; justify-content: center; border-top: 1px solid var(--nf-line); opacity: 1 !important; }
.drive-item-acts .icon-btn.fav, .xfiles .icon-btn.on { color: #f59e0b; }
.drive-item-acts .icon-btn.fav svg, .xfiles .icon-btn.on svg { fill: currentColor; }
.drive-favmark { color: #f59e0b; display: inline-flex; vertical-align: -1px; }
.drive-favmark svg { fill: currentColor; }
.cal-new { margin-left: 8px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
@media (max-width: 640px) { .cal-new { padding: 6px 9px; } }

/* v1.93: linkes megosztás ablak */
.lshare-card { width: min(520px, 100%); }
.lshare-link { display: flex; gap: 6px; margin-bottom: 6px; }
.lshare-link input { flex: 1; min-width: 0; font-size: 13px; }
.lshare-status { font-size: 13px; color: var(--nf-ink-2, #64748b); margin: 4px 0 12px; }
.lshare-opts { border-top: 1px solid var(--nf-line); padding-top: 10px; display: grid; gap: 8px; }
.lshare-row { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 8px; font-size: 14px; }
.lshare-pw { display: flex; flex-direction: column; gap: 4px; }
.lshare-chk { font-size: 12px; color: var(--nf-ink-2); display: inline-flex; gap: 6px; align-items: center; }

/* v1.94: Felhasználók és csoportok a főterületen, kártyákként */
.users-page { max-width: none; }
.users-view .settings-tabs { margin-bottom: 14px; }
.users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; align-items: start; }
.users-grid .user-card { background: var(--nf-surface); border: 1px solid var(--nf-line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .12s, box-shadow .12s; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.users-grid .user-card:hover { border-color: var(--nf-line-strong); box-shadow: 0 4px 14px rgba(15,23,42,.07); }
.users-grid .user-card.editing { grid-column: 1 / -1; cursor: default; border-color: var(--nf-brand, #8c2633); }
.users-grid .user-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.users-grid .user-card-name { flex: 1; min-width: 0; font-weight: 750; font-size: 17px; color: var(--nf-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-me { font-size: 12px; font-weight: 500; color: var(--nf-ink-3); }
.user-card-edit { color: var(--nf-ink-3); }
.user-card-data { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.user-card-data dt { color: var(--nf-ink-3); }
.user-card-data dd { margin: 0; color: var(--nf-ink); min-width: 0; overflow-wrap: anywhere; }
.user-card-data .muted { color: var(--nf-ink-3); }
.user-badge { display: inline-block; font-size: 11px; font-weight: 650; padding: 1px 8px; border-radius: 999px; background: var(--nf-sunken); }
.user-badge.admin { background: var(--nf-brand-tint); color: var(--nf-brand-ink); }
.user-badge.ok { background: #ecfdf5; color: #047857; }
.users-grid .user-card.editing .user-card-data { display: none; }
.users-grid .user-card-fields { border-top: 1px solid var(--nf-line); padding-top: 10px; max-width: 520px; }
.group-acts { display: flex; justify-content: flex-end; gap: 4px; margin-top: 8px; border-top: 1px solid var(--nf-line); padding-top: 6px; }
#btn-add-user, #btn-add-group { max-width: 320px; }

/* v1.95: Kategorizálatlan */
.dot-uncat { background: transparent !important; border: 1.5px dashed var(--nf-ink-3); }
.list-uncat { font-style: italic; }

/* v1.96: Súgó és Verziónapló kártyákként, Napló nézet */
.help-page { max-width: none; }
.help-view .help-tabs { margin-bottom: 12px; }
.help-view .help-search-wrap { margin-bottom: 10px; }
.help-view .help-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; position: static; }
.help-view .help-toc-mobile { display: none; }
.help-view #help-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; align-items: start; max-height: none; overflow: visible; padding: 0; }
.help-view .help-sec { background: var(--nf-surface); border: 1px solid var(--nf-line); border-radius: 14px; padding: 14px 16px; margin: 0; box-shadow: 0 1px 2px rgba(15,23,42,.04); scroll-margin-top: 80px; }
.help-view .help-sec h4 { font-size: 17px; font-weight: 750; margin: 0 0 8px; color: var(--nf-ink); }
.help-view #help-faq { grid-column: 1 / -1; }
.changelog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.changelog-grid .changelog-item { background: var(--nf-surface); border: 1px solid var(--nf-line); border-radius: 14px; padding: 14px 16px; margin: 0; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.changelog-grid .changelog-ver { font-size: 17px; font-weight: 750; }
.log-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.log-filters .inp { width: auto; min-width: 140px; flex: 1 1 140px; }
.log-filters #log-q { flex: 2 1 220px; }
.log-info { font-size: 12px; color: var(--nf-ink-3); margin-bottom: 10px; }
.log-day { background: var(--nf-surface); border: 1px solid var(--nf-line); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.log-day-head { font-size: 13px; font-weight: 700; color: var(--nf-ink-2); margin: 2px 0 6px; }
.log-row { display: grid; grid-template-columns: 46px 22px 1fr auto; gap: 8px; align-items: start; padding: 6px 0; border-top: 1px solid var(--nf-line); font-size: 13.5px; }
.log-row:first-of-type { border-top: 0; }
.log-time { color: var(--nf-ink-3); font-variant-numeric: tabular-nums; }
.log-ic { color: var(--nf-ink-3); display: inline-flex; padding-top: 2px; }
.log-main { min-width: 0; overflow-wrap: anywhere; }
.log-kind { color: var(--nf-ink-3); }
.log-name { font-weight: 600; }
.log-detail { display: block; font-size: 12px; color: var(--nf-ink-3); }
.log-who { font-size: 12px; color: var(--nf-ink-3); text-align: right; white-space: nowrap; }
.log-empty { color: var(--nf-ink-3); padding: 24px 4px; }
#log-more { display: block; margin: 0 auto 20px; }
@media (max-width: 640px) { .log-row { grid-template-columns: 40px 20px 1fr; } .log-who { grid-column: 3; text-align: left; } .help-view #help-body, .changelog-grid { grid-template-columns: 1fr; } }

/* v1.97: lejátszó és PDF-néző */
.media-pop { position: fixed; inset: 0; z-index: 95; background: rgba(15,23,42,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.media-card { width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; background: #0b1120; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.media-head { display: flex; align-items: center; gap: 4px; padding: 8px 10px; color: #e2e8f0; background: #111827; }
.media-head .icon-btn { color: #cbd5e1; padding: 6px 8px; border-radius: 8px; font-size: 18px; line-height: 1; }
.media-head .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.media-title { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-video { width: 100%; max-height: calc(100dvh - 120px); background: #000; display: block; }
.media-err { color: #e2e8f0; padding: 28px 20px; text-align: center; line-height: 1.6; }
.media-err .btn { margin-top: 10px; }
.pdf-card { height: min(92dvh, 1200px); background: #1f2937; }
.pdf-pages { color: #94a3b8; font-size: 12px; margin-right: 6px; }
.pdf-scroll { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pdf-page { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); flex-shrink: 0; }
.pdf-page canvas { display: block; }
.pdf-loading { color: #e2e8f0; padding: 30px; text-align: center; }
@media (max-width: 640px) { .media-pop { padding: 0; } .media-card { border-radius: 0; height: 100%; } .pdf-card { height: 100%; } .media-video { max-height: none; flex: 1; } }
.audio-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 60; width: min(720px, calc(100% - 24px)); display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "info ctrl close" "seek seek seek"; align-items: center; gap: 4px 10px;
  padding: 8px 10px 6px 12px; border-radius: 16px; background: var(--nf-surface); border: 1px solid var(--nf-line-strong); box-shadow: 0 10px 30px rgba(15,23,42,.22); }
.audio-bar.hidden { display: none; }
.ab-info { grid-area: info; display: flex; align-items: center; gap: 10px; min-width: 0; }
.ab-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--nf-brand-tint); color: var(--nf-brand-ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ab-txt { min-width: 0; }
.ab-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--nf-ink); }
.ab-sub { font-size: 11px; color: var(--nf-ink-3); }
.ab-ctrl { grid-area: ctrl; display: flex; align-items: center; gap: 2px; }
.ab-ctrl .icon-btn { padding: 6px; border-radius: 9px; color: var(--nf-ink-2); position: relative; }
.ab-ctrl .icon-btn.on { color: var(--nf-brand, #8c2633); }
.ab-ctrl .ab-play { background: var(--nf-brand, #8c2633); color: #fff; border-radius: 999px; padding: 7px; }
.ab-one { display: none; position: absolute; right: 1px; bottom: 1px; font-size: 9px; font-weight: 800; }
.ab-ctrl .one .ab-one { display: block; }
.ab-close { grid-area: close; color: var(--nf-ink-3); }
.ab-seek { grid-area: seek; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--nf-ink-3); font-variant-numeric: tabular-nums; }
.ab-range { flex: 1; accent-color: var(--nf-brand, #8c2633); }
body.has-audio-bar .fab-bar { bottom: 104px; }
body.has-audio-bar #main { padding-bottom: 110px; }
.drive-item.playing { border-color: var(--nf-brand, #8c2633); background: var(--nf-brand-tint); }
@media (max-width: 640px) { .audio-bar { grid-template-columns: 1fr auto; grid-template-areas: "info close" "ctrl ctrl" "seek seek"; bottom: 8px; } .ab-ctrl { justify-content: center; } }
@media (max-width: 640px) { body.has-audio-bar .fab-bar { bottom: 150px; } body.has-audio-bar #main { padding-bottom: 160px; } }

/* v1.98: törölt mellékletek */
.rec-list { display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.rec-row { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--nf-line); border-radius: 10px; }
.rec-name { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; font-size: 14px; }
.rec-name small { color: var(--nf-ink-3); font-size: 12px; }
.file-recover { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }

/* Admin: mellékletként engedélyezhető fájltípusok */
.attach-ext-grid { display: flex; flex-direction: column; gap: 10px; }
.attach-ext-group { border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 10px; background: #fff; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 10px; }
.attach-ext-title { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 4px; }
.attach-ext-title span { font-weight: 400; color: #64748b; }
.risk-high .attach-ext-title span { color: #b91c1c; }
.attach-ext-item { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 0; cursor: pointer; min-width: 0; }
.attach-ext-item span { color: #64748b; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dark .attach-ext-group { background: transparent; border-color: #334155; } body.dark .attach-ext-title { color: #cbd5e1; }

/* =========================================================================
   v1.100 — Beállítások a főterületen (kártyák + szerkesztőpanel) és egységes nézetváltó
   ========================================================================= */
.vmode .icon-btn.active, .drive-vmode .icon-btn.active { background: var(--nf-brand-tint); color: var(--nf-brand-ink); }
.drive-view .drive-vmode { display: none !important; } /* a fejléc nézetváltója kezeli */

.settings-view .hidden { display: none !important; }
.settings-slot { margin-bottom: 16px; }
#settings-modal.settings-inline { position: static; display: block; inset: auto; background: none; padding: 0; z-index: auto; backdrop-filter: none; }
#settings-modal.settings-inline.hidden { display: none !important; }
#settings-modal.settings-inline .modal-card {
  display: block !important; height: auto !important; max-height: none !important; max-width: none !important;
  width: 100%; overflow: visible !important; background: var(--nf-surface);
}
#settings-modal.settings-inline .modal-head { position: static; }
#settings-modal.settings-inline #settings-detail { padding: 10px 22px 22px; }
#settings-modal.settings-inline .settings-back,
#settings-modal.settings-inline .settings-detail-title { display: none !important; }
#settings-modal.settings-inline .settings-tab-panel { max-width: 760px; }
#settings-view:has(#settings-modal:not(.hidden)) .settings-menu { opacity: .55; transition: opacity .2s ease; }
#settings-view:has(#settings-modal:not(.hidden)) .settings-menu:hover { opacity: 1; }

.settings-view .settings-menu { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: stretch; }
.settings-view .settings-menu.vm-grid-s { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.settings-view .settings-menu.vm-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.settings-view .settings-group { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--nf-ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 12px 2px 0; }
.settings-view .settings-group:first-child { padding-top: 0; }
.settings-view .settings-menu-box {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; width: 100%;
  padding: 16px; min-height: 118px; background: var(--nf-surface); border: 1px solid var(--nf-line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04); color: var(--nf-ink); cursor: pointer; transition: border-color .12s, box-shadow .12s;
}
.settings-view .settings-menu-box:hover { border-color: var(--nf-line-strong); box-shadow: 0 4px 14px rgba(15,23,42,.07); }
.settings-view .settings-menu-box.active { border-color: var(--nf-brand); box-shadow: 0 0 0 3px var(--nf-brand-tint); }
.settings-view .settings-menu-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--nf-brand-tint); color: var(--nf-brand-ink); flex-shrink: 0; }
.settings-view .settings-menu-ico svg { width: 21px; height: 21px; }
.settings-view .smb-text { display: flex; flex-direction: column; min-width: 0; }
.settings-view .smb-title { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.settings-view .smb-desc { font-size: 13px; color: var(--nf-ink-3); line-height: 1.4; margin-top: 3px; }
.settings-view .smb-chev { display: none; color: var(--nf-ink-3); font-size: 20px; line-height: 1; }
.settings-view .vm-grid-s .settings-menu-box { min-height: 0; padding: 12px; gap: 8px; }
.settings-view .vm-grid-s .smb-desc { display: none; }
.settings-view .vm-grid-s .smb-title { font-size: 14px; }
.settings-view .vm-grid-s .settings-menu-ico { width: 34px; height: 34px; }
.settings-view .vm-list .settings-menu-box { flex-direction: row; align-items: center; min-height: 0; padding: 10px 14px; gap: 12px; }
.settings-view .vm-list .settings-menu-ico { width: 32px; height: 32px; border-radius: 9px; }
.settings-view .vm-list .smb-text { flex: 1; }
.settings-view .vm-list .smb-desc { margin-top: 0; }
.settings-view .vm-list .smb-chev { display: inline; }

/* Felhasználók / csoportok */
.users-grid.vm-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.users-grid.vm-grid-s { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.users-grid.vm-list .user-card:not(.editing), .users-grid.vm-grid-s .user-card:not(.editing) { padding: 10px 14px; }
.users-grid.vm-list .user-card:not(.editing) .user-card-data, .users-grid.vm-grid-s .user-card:not(.editing) .user-card-data { display: none; }
.users-grid.vm-list .user-card:not(.editing) .user-card-head, .users-grid.vm-grid-s .user-card:not(.editing) .user-card-head { margin-bottom: 0; }
.users-grid.vm-grid-s .user-card-name { font-size: 15px; }

/* Feladatok / feljegyzések kártyarácsban */
.task-list.vm-grid-s, .task-list.vm-grid-l { display: grid; gap: 10px; align-items: start; }
.task-list.vm-grid-s { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.task-list.vm-grid-l { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.task-list.vm-grid-s > :not(.task), .task-list.vm-grid-l > :not(.task),
.task-list.vm-grid-s > .task.inline-compose, .task-list.vm-grid-l > .task.inline-compose,
.task-list.vm-grid-s > .task.apk-pin, .task-list.vm-grid-l > .task.apk-pin { grid-column: 1 / -1; }
.task-list.vm-grid-s > .task, .task-list.vm-grid-l > .task { margin: 0 !important; min-width: 0; }
.task-list.vm-grid-s .task:not(.expanded) .task-subs,
.task-list.vm-grid-s .task:not(.expanded) .task-files-preview { display: none !important; }
.task-list.vm-grid-s .task:not(.expanded) .task-desc { display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .task-list.vm-grid-l { grid-template-columns: minmax(0, 1fr); }
  .task-list.vm-grid-s { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .settings-view .settings-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-view .settings-menu.vm-list { grid-template-columns: minmax(0, 1fr); }
  .settings-view .settings-menu-box { min-height: 0; padding: 12px; }
}
body[data-view="settings"] #search-row { display: none !important; }

/* v1.101 — negyedik, extra nagy kártyaméret mindenhol; azonos magasságú kártyák soronként */
.drive-list.grid-xl { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.drive-list.grid-xl .drive-thumb, .drive-list.grid-xl .drive-ic { width: 100%; height: 300px; border-radius: 12px; }
.drive-list.grid-xl .drive-ic svg { width: 72px; height: 72px; }
@media (max-width: 640px) { .drive-list.grid-xl { grid-template-columns: minmax(0, 1fr); } .drive-list.grid-xl .drive-thumb, .drive-list.grid-xl .drive-ic { height: 260px; } }

.task-list.vm-grid-xl { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); }
.task-list.vm-grid-xl > :not(.task), .task-list.vm-grid-xl > .task.inline-compose, .task-list.vm-grid-xl > .task.apk-pin { grid-column: 1 / -1; }
.task-list.vm-grid-xl > .task { margin: 0 !important; min-width: 0; padding: 18px 20px; }
.task-list.vm-grid-xl .task:not(.expanded) .task-title { font-size: 18px; }
.task-list.vm-grid-xl .task:not(.expanded) .task-desc { font-size: 15px; }
/* egy sorban egyforma magas kártyák (a sor legmagasabbjához igazodva) */
.task-list.vm-grid-s, .task-list.vm-grid-l, .task-list.vm-grid-xl { align-items: stretch; }
.task-list.vm-grid-s > .task:not(.inline-compose):not(.apk-pin),
.task-list.vm-grid-l > .task:not(.inline-compose):not(.apk-pin),
.task-list.vm-grid-xl > .task:not(.inline-compose):not(.apk-pin) { height: auto !important; max-height: none !important; }
.task-list.vm-grid-s > .task.u-clipped > .task-body, .task-list.vm-grid-l > .task.u-clipped > .task-body, .task-list.vm-grid-xl > .task.u-clipped > .task-body { -webkit-mask-image: none; mask-image: none; }
.task-list.vm-grid-s .task:not(.expanded) .task-desc { -webkit-line-clamp: 3; }
.task-list.vm-grid-l .task:not(.expanded) .task-desc { display: -webkit-box !important; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

.settings-view .settings-menu.vm-grid-xl { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.settings-view .vm-grid-xl .settings-menu-box { min-height: 170px; padding: 22px; gap: 14px; }
.settings-view .vm-grid-xl .settings-menu-ico { width: 54px; height: 54px; border-radius: 14px; }
.settings-view .vm-grid-xl .settings-menu-ico svg { width: 28px; height: 28px; }
.settings-view .vm-grid-xl .smb-title { font-size: 18px; }
.settings-view .vm-grid-xl .smb-desc { font-size: 14.5px; }
.settings-view .settings-menu { align-items: stretch; }

.users-grid.vm-grid-xl { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.users-grid.vm-grid-xl .user-card { padding: 20px 22px; }
.users-grid.vm-grid-xl .user-card-name { font-size: 20px; }
.users-grid.vm-grid-xl .user-card-data { font-size: 14.5px; gap: 6px 16px; }
.users-grid { align-items: stretch; }

/* Inbox */
#email-list.vm-grid-s, #email-list.vm-grid-l, #email-list.vm-grid-xl { display: grid; gap: 10px; align-items: stretch; }
#email-list.vm-grid-s > *, #email-list.vm-grid-l > *, #email-list.vm-grid-xl > * { margin: 0 !important; min-width: 0; }
#email-list.vm-grid-s { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
#email-list.vm-grid-l { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
#email-list.vm-grid-xl { grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); gap: 14px; }
#email-list[class*="vm-grid"] .email-item { padding: 12px 14px; border-radius: 14px; }
#email-list.vm-grid-s .email-item .text-xs.truncate { display: none; }
#email-list.vm-grid-l .email-item .text-xs.truncate,
#email-list.vm-grid-xl .email-item .text-xs.truncate { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
#email-list.vm-grid-xl .email-item { padding: 18px 20px; }
#email-list.vm-grid-xl .email-item .text-sm { font-size: 16px; font-weight: 600; white-space: normal; }
#email-list.vm-grid-xl .email-item .text-xs.truncate { -webkit-line-clamp: 6; font-size: 13.5px; }

/* Súgó és verziónapló */
.help-view #help-body.vm-list, .changelog-grid.vm-list { grid-template-columns: minmax(0, 1fr); }
.help-view #help-body.vm-grid-s, .changelog-grid.vm-grid-s { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.help-view #help-body.vm-grid-xl, .changelog-grid.vm-grid-xl { grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); gap: 16px; }
.help-view #help-body.vm-grid-xl .help-sec, .changelog-grid.vm-grid-xl .changelog-item { padding: 20px 24px; font-size: 15.5px; }
.help-view #help-body.vm-grid-s .help-sec { font-size: 13.5px; }
.help-view #help-body, .changelog-grid { align-items: stretch; }

/* Napló: naponkénti kártyák */
#log-list.vm-grid-s, #log-list.vm-grid-l, #log-list.vm-grid-xl { display: grid; gap: 12px; align-items: stretch; }
#log-list[class*="vm-grid"] > .log-day { margin: 0; min-width: 0; }
#log-list[class*="vm-grid"] > :not(.log-day) { grid-column: 1 / -1; }
#log-list.vm-grid-s { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
#log-list.vm-grid-l { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
#log-list.vm-grid-xl { grid-template-columns: repeat(auto-fill, minmax(620px, 1fr)); }
#log-list.vm-grid-s .log-row { grid-template-columns: 40px 18px minmax(0, 1fr); }
#log-list.vm-grid-s .log-who { grid-column: 3; text-align: left; }
#log-list.vm-grid-xl .log-row { font-size: 15px; padding: 9px 0; }
#log-list.vm-list .log-day { margin-bottom: 12px; }

@media (max-width: 640px) {
  .task-list.vm-grid-xl, .settings-view .settings-menu.vm-grid-xl, .users-grid.vm-grid-xl, #email-list.vm-grid-l, #email-list.vm-grid-xl,
  .help-view #help-body.vm-grid-xl, .changelog-grid.vm-grid-xl, #log-list.vm-grid-l, #log-list.vm-grid-xl { grid-template-columns: minmax(0, 1fr); }
  #email-list.vm-grid-s, #log-list.vm-grid-s, .help-view #help-body.vm-grid-s { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-view #help-body.vm-grid-l { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================================
   Nepál PIR — ebben a változatban nincs feljegyzés, naptár és megosztás (csoport / link)
   ========================================================================= */
.pir-off, #quick-add-type, #btn-convert-type, #small-type-row,
[data-drive-act="share"], [data-drive-act="gshare"], [data-sel-act="note"],
#users-modal .settings-tab-btn[data-tab="groups"], .drive-shared-root,
.share-chip, .list-type-mark, .drive-gshared { display: none !important; }
#users-modal .settings-tabs { display: none !important; }

/* Nepál PIR — céges arculat (bordó #8C2633) */
.pir-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.pir-brand .pir-logo { height: 64px; width: auto; display: block; }
.pir-brand span { font-size: 46px; line-height: 1; letter-spacing: -.02em; margin-top: 6px; }
@media (max-width: 480px) { .pir-brand .pir-logo { height: 50px; } .pir-brand span { font-size: 36px; } }
.auth-view { background-color: #8c2633 !important; }
body.dark .auth-view { background-color: #45131a !important; }
.auth-card .btn-primary, .auth-card button[type="submit"] { background: #8c2633 !important; }
.auth-card .btn-primary:hover, .auth-card button[type="submit"]:hover { background: #74202b !important; }
