/* LuFiLink 2026: ergonomia telefonu, dostępność i czytelność; kafelki bez zmian. */
.lufi-share-description { color:#aebccd; font-size:13px; margin:-2px 0 4px; line-height:1.5; }
.lufi-share-import { gap:10px; max-height:min(82dvh,820px); overflow-y:auto; padding:2px 4px 4px; }
.lufi-share-destinations { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.lufi-share-destinations .btn { justify-content:flex-start; text-align:left; font-size:13px; min-height:46px; padding:10px 12px; font-weight:650; line-height:1.4; }
.lufi-share-destinations .btn:focus-visible,.lufi-header-actions :is(button,a):focus-visible { outline:2px solid #6eaeff; outline-offset:2px; }
.lufi-share-destinations [hidden] { display:none!important; }
.lufi-share-import #sharedError:empty { display:none; }
.lufi-share-import #sharedError:not(:empty) { padding:10px; background:rgba(220,65,65,.1); border-radius:8px; }
.lufi-share-import #sharedText { min-height:88px; max-height:200px; }
.lufi-share-import #sharedCardSelect { width:100%; }
.lufi-share-import .lufi-shared-actions { border-top:1px solid rgba(255,255,255,.1); padding-top:10px; }
.lufi-qr-frame { width:min(260px,90%); margin:auto; padding:10px; background:#fff; border-radius:12px; }
.lufi-qr-frame img { display:block; width:100%; height:auto; image-rendering:pixelated; }
.lufi-action-dialog { z-index:10080; width:min(420px,calc(100vw - 28px)); max-height:90dvh; overflow:auto; border:1px solid rgba(255,255,255,.22); border-radius:17px; background:#15191f; color:#eef3fb; padding:22px; box-shadow:0 24px 70px #000; }
.lufi-action-dialog::backdrop { background:rgba(0,0,0,.8); backdrop-filter:blur(5px); }
.lufi-action-dialog form { display:grid; gap:14px; }
.lufi-action-dialog h2 { font-size:19px; font-weight:750; line-height:1.3; }
.lufi-action-dialog p { color:#bfccda; line-height:1.5; font-size:14px; overflow-wrap:anywhere; }
.lufi-action-dialog label { font-size:13px; display:grid; gap:6px; }
.lufi-action-dialog input { min-height:45px; border:1px solid #485462; border-radius:9px; background:#0a0d11; color:#fff; padding:10px; width:100%; }
.lufi-dialog-actions { display:flex; gap:10px; justify-content:flex-end; }
.lufi-dialog-actions .btn { min-height:44px; padding-inline:17px; }
.lufi-dialog-actions .btn:last-child { background:#2277d4; color:#fff; border-color:#448ee1; }
.lufi-is-sorting { user-select:none; }
.lufi-sorting { opacity:.72; outline:2px dashed #6eaeff; outline-offset:2px; z-index:3; }
/* Tryb przestronny: realnie powiększa formularze, przyciski i przerwy między panelami.
   Nie zmienia geometrii kafelków linków ani nawigacji desktopowej. */
html[data-lufi-density='comfortable'] {
  --lufi-page-gap:clamp(19px,3vw,44px);
  --lufi-panel-gap:clamp(18px,2.3vw,30px);
  --lufi-panel-pad:clamp(24px,2.8vw,38px);
  --lufi-radius:18px;
}
html[data-lufi-density='comfortable'] .container { padding-block:28px!important; }
html[data-lufi-density='comfortable'] .lufi-main-header { margin-bottom:32px!important; }
html[data-lufi-density='comfortable'] #toolbarRow { gap:18px!important; margin-bottom:26px!important; }
html[data-lufi-density='comfortable'] .toolbar-control { height:58px!important; padding-inline:18px!important; border-radius:14px; }
html[data-lufi-density='comfortable'] .toolbar-control :is(input,select) { height:56px!important; font-size:16px!important; }
html[data-lufi-density='comfortable'] #addForm button { padding-inline:20px!important; }
html[data-lufi-density='comfortable'] .lufi-upload-panel { padding:30px!important; margin-bottom:24px; }
html[data-lufi-density='comfortable'] .lufi-upload-grid { gap:24px!important; }
html[data-lufi-density='comfortable'] .lufi-upload-options,
html[data-lufi-density='comfortable'] .lufi-upload-note { padding:22px!important; gap:18px!important; }
html[data-lufi-density='comfortable'] .lufi-upload-options input { min-height:52px!important; padding:12px 14px!important; font-size:16px; }
html[data-lufi-density='comfortable'] .lufi-upload-note textarea { min-height:180px!important; padding:16px!important; font-size:16px; line-height:1.6; }
html[data-lufi-density='comfortable'] #viewTransferContainer :is(#uploadSubmitBtn,#uploadCancelBtn) { height:52px!important; min-height:52px!important; }
html[data-lufi-density='comfortable'] .lufi-transfer-list-wrap { padding:18px!important; }
html[data-lufi-density='comfortable'] #viewClipboardContainer > .glass { padding:var(--lufi-panel-pad)!important; }
html[data-lufi-density='comfortable'] .lufi-clip-tabs-row { gap:16px; margin-bottom:24px; }
html[data-lufi-density='comfortable'] #clipTabsBar { gap:14px; }
html[data-lufi-density='comfortable'] #clipTabsBar .clip-tab-btn { min-width:54px; min-height:54px; }
html[data-lufi-density='comfortable'] #clipAddCardBtn { min-width:54px; width:54px; height:54px; }
html[data-lufi-density='comfortable'] .lufi-note-editor { padding:24px 60px 64px 24px!important; font-size:17px; line-height:1.9; }
html[data-lufi-density='comfortable'] #clipBtnGroup { gap:16px!important; margin-block:15px!important; }
html[data-lufi-density='comfortable'] #clipBtnGroup .btn { min-height:52px; padding:11px 16px; }
html[data-lufi-density='comfortable'] #viewShortenerContainer > .glass { padding:var(--lufi-panel-pad)!important; }
html[data-lufi-density='comfortable'] #shortenForm :is(input,select,button) { min-height:52px!important; font-size:16px; }
html[data-lufi-density='comfortable'] .lufi-share-destinations { gap:14px; }
html[data-lufi-density='comfortable'] .lufi-share-destinations .btn { min-height:58px; padding:14px 18px; }
@media (max-width:720px) {
  /* Mobilnie przenosimy CAŁY oryginalny nagłówek (logo + LuFiLink + przyciski).
     Zachowujemy pierwotny CSS guzików z lufi-responsive.css; ZERO dodatkowego
     paska, tła, obramowania, cienia ani efektu rozmycia. */
  :root { --lufi-footer-clearance:72px; }
  body:not(.status-logged-out) .container {
    padding-bottom:calc(var(--lufi-footer-clearance) + env(safe-area-inset-bottom,0px))!important;
  }
  body:not(.status-logged-out) .lufi-main-header {
    position:fixed!important;
    top:auto!important;
    left:var(--lufi-page-gap)!important;
    right:var(--lufi-page-gap)!important;
    bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    z-index:9990;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  /* Nie zmieniamy układu logo/przycisków, który był w oryginalnej wersji. */
  body:not(.status-logged-out) .lufi-header-actions {
    position:static!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    padding:0!important;
  }
  /* Dawne menu hamburgera wyświetla się NAD przeniesionym nagłówkiem. */
  body:not(.status-logged-out) #secondaryNav.nav-open {
    top:auto!important;
    bottom:calc(100% + 8px)!important;
    right:0!important;
    left:auto!important;
    max-height:min(65dvh,520px);
    overflow-y:auto;
    z-index:9991;
  }
  .toast {
    bottom:calc(var(--lufi-footer-clearance) + 12px + env(safe-area-inset-bottom,0px));
  }
  .lufi-action-dialog { padding:18px; }
  html[data-lufi-density='comfortable'] { --lufi-page-gap:19px; --lufi-panel-gap:20px; --lufi-panel-pad:25px; }
  html[data-lufi-density='comfortable'] .container { padding-block:24px!important; }
  html[data-lufi-density='comfortable'] #toolbarRow { gap:14px!important; margin-bottom:24px!important; }
  html[data-lufi-density='comfortable'] .lufi-upload-panel { padding:22px!important; }
  html[data-lufi-density='comfortable'] .lufi-upload-options,
  html[data-lufi-density='comfortable'] .lufi-upload-note { padding:18px!important; gap:16px!important; }
  html[data-lufi-density='comfortable'] .lufi-upload-grid { gap:20px!important; }
  html[data-lufi-density='comfortable'] .lufi-note-editor { padding:22px 54px 60px 20px!important; }
  html[data-lufi-density='comfortable'] #clipBtnGroup { gap:12px!important; }
}
@media(max-width:480px) {
  .lufi-share-destinations { grid-template-columns:1fr; }
  .lufi-share-destinations .btn { min-height:44px; }
  .lufi-share-import { max-height:80dvh; }
  #modalContent { max-height:87dvh; overflow-y:auto; }
  html[data-lufi-density='comfortable'] #clipBtnGroup .btn { padding:11px 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .lufi-header-actions *,.lufi-is-sorting * { transition:none!important; animation:none!important; }
}

/* Spokojniejsza poświata — oryginalna kolorystyka sekcji zostaje. */
#dynamicGlow { opacity:.55; }
