/* LuFiLink Fluid UI 2026-11-02: wspolne zasady skalowania na ekranach o roznych rozmiarach.
   Ladowany po arkuszach widokow — bez zmiany mechanizmu uploadu i sesji. */
:root {
  --lufi-page-gap: clamp(9px, 1.8vw, 24px);
  --lufi-panel-gap: clamp(8px, 1.4vw, 16px);
  --lufi-panel-pad: clamp(11px, 2vw, 24px);
  --lufi-radius: clamp(10px, 1vw, 16px);
}
html { width:100%; max-width:100%; -webkit-text-size-adjust:100%; }
body { width:100%; max-width:100%; min-width:0; overflow-x:clip; }
*, *::before, *::after { box-sizing:border-box; }
img, svg, video, canvas, iframe { max-width:100%; }
pre, code { max-width:100%; }
input, select, textarea, button { max-width:100%; }
input, textarea { min-width:0; }
:where(.container, .glass, #modalBody, #modalBodyPub, .file-item, .lufi-file-row, .lufi-file-heading, .lufi-upload-grid, .lufi-gallery, .lufi-gallery-caption) { min-width:0; }
:where(.container, .glass, .file-item, .lufi-file-row, .lufi-gallery-caption) { overflow-wrap:anywhere; }

/* Panel: uzaleznij rozstaw i rozmiar od dostepnej przestrzeni, nie od modelu urzadzenia. */
.container { width:100%; max-width:none!important; margin-inline:0!important; padding-inline:var(--lufi-page-gap)!important; min-height:100dvh; }
.lufi-main-header { min-width:0; gap:var(--lufi-panel-gap); }
.lufi-main-header > :first-child { flex:0 1 auto; min-width:0; }
.lufi-main-header h1 { white-space:nowrap; font-size:clamp(18px,2.3vw,32px); }
.lufi-main-header img { max-width:min(30vw,140px); }
.lufi-header-actions { min-width:0; display:flex; align-items:center; gap:clamp(2px,.5vw,7px); }
.lufi-header-actions > .btn, .lufi-header-actions > a.btn { flex:0 0 auto; width:clamp(34px,3.2vw,42px); min-width:0; height:clamp(36px,3.2vw,42px); min-height:0; padding:4px; }
#secondaryNav.nav-open { max-width:min(300px, calc(100vw - 2 * var(--lufi-page-gap))); max-height:calc(100dvh - 85px); overflow-y:auto; overscroll-behavior:contain; }
#globalSearchResults { max-width:min(680px, calc(100vw - 2 * var(--lufi-page-gap)))!important; width:min(680px, calc(100vw - 2 * var(--lufi-page-gap)))!important; max-height:min(66dvh,600px); }
#toolbarRow { min-width:0; }
#toolbarRow > *, .toolbar-control { min-width:0; }
#viewHomeContainer, #viewShortenerContainer, #viewTransferContainer, #viewClipboardContainer { min-width:0; max-width:100%; }

/* Kafelki linkow nigdy nie wymuszaja szerokosci wiekszej od ekranu,
   nawet gdy suwak powiekszenia ustawiony jest na maksimum. */
#linksGrid { width:100%; min-width:0; max-width:100%; gap:clamp(8px,1.25vw,16px); }
#linksGrid.thumbs { grid-template-columns:repeat(auto-fill,minmax(min(100%, calc(clamp(210px, 17vw, 350px) * var(--size-zoom))),1fr)); }
#linksGrid.grid { grid-template-columns:repeat(auto-fill,minmax(min(100%, calc(clamp(170px, 12.5vw, 275px) * var(--size-zoom))),1fr)); }
#linksGrid.list { grid-template-columns:minmax(0,1fr); }
#linksGrid .link-item { min-width:0; max-width:100%; }
#linksGrid .link-info, #linksGrid .title { min-width:0; overflow-wrap:anywhere; }
#linksGrid.list .link-item { grid-template-columns:auto minmax(0,calc(80px * var(--size-zoom))) minmax(0,1fr) auto; height:auto; min-height:calc(72px * var(--size-zoom)); }
#linksGrid.list .link-thumbnail { max-width:100%; }
#linksGrid.list .actions { min-width:0; flex-wrap:wrap; }
#linksGrid .link-thumbnail { max-width:100%; }

/* Schowek i zalaczniki: nie przeciskaj elementow poza dostepny obszar. */
#viewClipboardContainer { min-height:0!important; }
#viewClipboardContainer > .glass { min-width:0; min-height:min(480px,calc(100dvh - 150px)); padding:var(--lufi-panel-pad); }
.lufi-note-canvas { min-width:0; min-height:clamp(210px,35dvh,500px); }
.lufi-note-editor { min-width:0; }
.lufi-clip-tabs-row { max-width:100%; min-width:0; }
#clipTabsBar { min-width:0; overscroll-behavior-inline:contain; }
.lufi-clip-files { max-width:calc(100% - 50px); }
.lufi-inline-attachment { max-width:min(270px,60%); }
.lufi-pins-list { grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); }
.lufi-pin-item { min-width:0; }
.lufi-pin-copy { overflow:hidden; }

/* Wysylanie i odebrane pliki: dynamiczne szerokosci, dlugie nazwy sa skracane. */
.lufi-upload-panel { width:100%; padding:var(--lufi-panel-pad); }
.lufi-upload-grid { max-width:none; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr); gap:var(--lufi-panel-gap); }
.lufi-upload-grid > *, .lufi-upload-options > * { min-width:0; }
#viewTransferContainer .lufi-upload-drop { min-width:0; }
.lufi-upload-note textarea { width:100%; }
.lufi-transfer-list-wrap { min-width:0; width:100%; }
.lufi-transfer-table { width:100%; max-width:100%; }
.lufi-transfer-info-cell { min-width:0; max-width:0; }
.lufi-transfer-main-link { max-width:100%; }
.lufi-transfer-title { max-width:100%; }
.lufi-transfer-detail { overflow-wrap:anywhere; }
.lufi-transfer-menu { max-width:min(270px,calc(100vw - 2 * var(--lufi-page-gap))); }
.lufi-file-row, .lufi-file-heading { max-width:100%; }
.lufi-file-name { min-width:0; }
.file-item { max-width:100%; gap:clamp(4px,1vw,9px); }
.file-item > a { min-width:0; flex:1 1 auto; }
.file-item > a > div:nth-child(2) { min-width:0; }
.file-item > div:last-child { max-width:100%; }
.file-item .truncate { min-width:0; max-width:100%; }

/* Skracacz: szerokie kolumny zastepujemy kartami na telefonie. */
.short-table { max-width:100%; }
.short-table td, .short-table th { min-width:0; }
.short-row td { overflow-wrap:anywhere; }

/* Podglady i galerie — caly ekran wykorzystany bez ucietych kontrolek. */
#modalOverlay, #modalOverlayPub {
  padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
  overflow-y:auto; overscroll-behavior:contain;
}
#modalContent, #modalContentPub {
  width:100%; max-width:100%; min-width:0;
  max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow:auto; overscroll-behavior:contain;
  padding:var(--lufi-panel-pad); border-radius:var(--lufi-radius);
}
#modalBody, #modalBodyPub { width:100%; max-width:100%; min-width:0; overflow-wrap:anywhere; }
#modalBody > div, #modalBodyPub > div { max-width:100%; min-width:0; }
#modalBody .file-item, #modalBodyPub .file-item { min-width:0; }
#modalBody .text-preview-toolbar, #modalBodyPub .text-preview-toolbar { min-width:0; flex-wrap:wrap; }
#modalBody .text-preview-toolbar input, #modalBodyPub .text-preview-toolbar input { flex:1 1 180px!important; min-width:0!important; }
.text-preview-code { max-width:100%; min-width:0; max-height:min(58dvh,620px); overflow:auto; }
#modalBody :is(img,video,iframe), #modalBodyPub :is(img,video,iframe) { max-width:100%; max-height:min(64dvh,700px)!important; object-fit:contain; }
#modalBody iframe, #modalBodyPub iframe { width:100%!important; height:min(62dvh,680px)!important; }
#modalBody .clip-history-layout { min-width:0; }
#modalBody .clip-history-list, #modalBody .clip-history-preview { min-width:0; }
#modalBody .edit-file-description { min-width:0; width:100%; }

/* Galeria jest elastyczna rowniez w poziomie, pionie i po obrocie telefonu. */
.lufi-gallery { width:100%; max-width:100%; min-width:0; display:flex; flex-direction:column; gap:clamp(4px,.7dvh,10px); }
.lufi-gallery-header { flex:0 0 auto; margin-bottom:0; min-width:0; }
.lufi-gallery-header :is(strong,h3) { font-size:clamp(14px,1.9vw,18px); }
.lufi-gallery-header .btn { flex:0 0 38px; width:38px; height:38px; }
.lufi-gallery-stage { flex:1 1 auto; min-height:0; grid-template-columns:clamp(30px,4vw,44px) minmax(0,1fr) clamp(30px,4vw,44px); gap:clamp(3px,.7vw,8px); }
.lufi-gallery-prev,.lufi-gallery-next { width:100%; max-width:44px; height:clamp(38px,7dvh,54px); padding:0!important; }
.lufi-gallery-image-wrap { height:100%; max-height:100%; min-height:0; min-width:0; border-radius:var(--lufi-radius); }
.lufi-gallery-image { display:block; max-width:100%; max-height:100%!important; width:auto; height:auto; object-fit:contain; }
.lufi-gallery-caption { flex:0 1 auto; min-height:0; gap:3px; margin-top:0; }
.lufi-gallery-name { min-width:0; max-height:3.3em; overflow:auto; overflow-wrap:anywhere; }
.lufi-gallery-description { max-height:min(12dvh,100px); overflow:auto; }
.lufi-gallery-download { min-height:36px; max-width:100%; padding:6px 12px; }
.lufi-gallery-strip { flex:0 0 auto; width:100%; min-width:0; max-width:100%; margin-top:0; padding-bottom:3px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; }
.lufi-gallery-strip .btn { min-width:36px; min-height:36px; padding:4px 7px; }
#modalContent:has(.lufi-gallery), #modalContentPub:has(.lufi-gallery) { overflow:hidden; }
#modalBody:has(> .lufi-gallery), #modalBodyPub:has(> .lufi-gallery) { height:100%; min-height:0; }
#modalContent .lufi-gallery, #modalContentPub .lufi-gallery { height:100%; min-height:0; }

/* Publiczne pobieranie i Drop (wspolny arkusz, inne HTML). */
body:has(#modalOverlayPub) { min-height:100dvh; height:auto; padding:var(--lufi-page-gap); }
body:has(#modalOverlayPub) > .glass { width:100%!important; max-width:none!important; min-width:0; min-height:calc(100dvh - 2 * var(--lufi-page-gap)); padding:var(--lufi-panel-pad); margin:0!important; }
body:has(#modalOverlayPub) > .glass h1 { font-size:clamp(19px,4.5vw,27px); }
body:has(#modalOverlayPub) > .glass h2 { overflow-wrap:anywhere; }
body:has(#modalOverlayPub) .lufi-transfer-meta { justify-content:center; gap:6px; flex-wrap:wrap; }
body:has(#modalOverlayPub) .file-item > a { text-align:left; }
body:has(#modalOverlayPub) .file-item > div:last-child { display:flex; flex:0 0 auto; gap:3px!important; }
body:has(#modalOverlayPub) .lufi-icon-btn-public { width:clamp(30px,3vw,34px); height:clamp(32px,3vw,34px); flex-basis:auto; padding:2px; }
body:has(#dropForm) { min-height:100dvh; height:auto; padding:var(--lufi-page-gap); }
body:has(#dropForm) > .glass { width:100%!important; min-width:0; max-width:none!important; min-height:calc(100dvh - 2 * var(--lufi-page-gap)); padding:var(--lufi-panel-pad); margin:0; }
body:has(#dropForm) .drop-zone { padding:clamp(12px,3vw,28px); margin-block:clamp(8px,2vw,18px); }
body:has(#dropForm) :is(#fileList,#totalPanel,.success) { max-width:100%; min-width:0; }

@media (max-width:1000px) {
  .lufi-upload-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lufi-upload-note { grid-column:1/-1; }
}
@media (max-width:700px) {
  .container { padding-block:10px!important; }
  .lufi-main-header { flex-wrap:wrap; align-items:center; }
  .lufi-main-header > :first-child { flex:1 1 auto; }
  .lufi-header-actions { flex:0 1 auto; margin-left:auto; }
  #toolbarRow { grid-template-columns:repeat(2,minmax(0,1fr))!important; grid-template-areas:"add search" "sort size"; }
  .lufi-upload-grid { grid-template-columns:minmax(0,1fr); }
  .lufi-upload-note { grid-column:auto; }
  #viewTransferContainer .lufi-upload-drop { min-height:clamp(105px,19dvh,155px); }
  .lufi-upload-note textarea { min-height:90px; }
  .lufi-transfer-title { max-width:100%; }
  .lufi-transfer-menu { max-height:min(58dvh,340px); }
  .short-table:not(.lufi-transfer-table) { display:block; padding:4px!important; width:100%; }
  .short-table:not(.lufi-transfer-table) thead { display:none; }
  .short-table:not(.lufi-transfer-table) tbody { display:grid; gap:8px; }
  .short-table:not(.lufi-transfer-table) tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 10px; padding:10px; border:1px solid rgba(255,255,255,.10); border-radius:10px; background:rgba(255,255,255,.025); }
  .short-table:not(.lufi-transfer-table) td { display:block; min-width:0; padding:0; }
  .short-table:not(.lufi-transfer-table) td:nth-child(1) { grid-column:1; grid-row:1; }
  .short-table:not(.lufi-transfer-table) td:nth-child(2) { grid-column:1/-1; grid-row:2; }
  .short-table:not(.lufi-transfer-table) td:nth-child(2)>div { max-width:100%!important; }
  .short-table:not(.lufi-transfer-table) td:nth-child(3) { grid-column:2; grid-row:1; align-self:center; }
  .short-table:not(.lufi-transfer-table) td:nth-child(4) { grid-column:1/-1; grid-row:3; text-align:left!important; }
  .short-table:not(.lufi-transfer-table) td:nth-child(4)>div { display:flex; flex-wrap:wrap; gap:4px; }
  .short-table:not(.lufi-transfer-table) td:nth-child(4) .btn { min-width:34px; min-height:34px; }
  .clip-history-layout { grid-template-columns:minmax(0,1fr); }
  .clip-history-list { max-height:min(25dvh,220px); }
  .clip-history-preview { min-height:75px; max-height:min(25dvh,220px); }
}
@media (max-width:480px) {
  .lufi-main-header { gap:8px; }
  .lufi-header-actions { width:100%; flex:1 1 100%; justify-content:space-between; margin-left:0; }
  .lufi-header-actions > .btn, .lufi-header-actions > a.btn { flex:1 1 auto; width:auto; max-width:60px; }
  #secondaryNav.nav-open { right:0; top:calc(100% + 6px); }
  .toolbar-control { padding-inline:8px; gap:6px; }
  #linksGrid.list .link-item { grid-template-columns:24px minmax(0,66px) minmax(0,1fr); gap:7px; padding:7px; }
  #linksGrid.list .link-thumbnail, #linksGrid.list .thumb-domain-fallback { width:100%; height:52px; }
  #linksGrid.list .actions { grid-column:1/-1; justify-content:flex-end; flex-wrap:wrap; }
  #linksGrid.list .link-info { gap:5px; }
  #viewClipboardContainer > .glass { padding:10px; min-height:min(430px,calc(100dvh - 120px)); }
  #clipTabsBar .clip-tab-btn { padding-inline:9px; }
  .lufi-note-editor { font-size:16px; }
  .lufi-transfer-row td { padding:8px 5px; }
  .lufi-transfer-info-cell { width:auto; max-width:0; }
  .lufi-transfer-controls-cell { width:1%; }
  .lufi-transfer-actions { gap:0; }
  .lufi-icon-btn { width:31px; height:36px; font-size:16px; }
  .lufi-transfer-menu { min-width:176px; }
  #modalOverlay,#modalOverlayPub { padding:0; }
  #modalContent,#modalContentPub { width:100%; max-width:100%; max-height:100dvh; padding:12px; border-radius:0; }
  #modalContent:has(.lufi-gallery),#modalContentPub:has(.lufi-gallery) { height:100dvh; max-height:100dvh; padding:max(9px,env(safe-area-inset-top)) 9px max(9px,env(safe-area-inset-bottom)); }
  #modalBody:has(> .lufi-gallery),#modalBodyPub:has(> .lufi-gallery) { display:flex; flex-direction:column; }
  #modalContent .lufi-gallery,#modalContentPub .lufi-gallery { height:100%; min-height:0; }
  .lufi-gallery-stage { grid-template-columns:30px minmax(0,1fr) 30px; }
  .lufi-gallery-image-wrap { min-height:0; }
  .lufi-gallery-caption { flex:0 1 auto; }
  .lufi-gallery-description { max-height:10dvh; }
  .lufi-gallery-strip .btn { min-width:34px; min-height:34px; }
  body:has(#modalOverlayPub) > .glass { padding:var(--lufi-panel-pad); margin-block:0!important; }
  body:has(#modalOverlayPub) .file-item { gap:5px; }
  body:has(#modalOverlayPub) .file-item .text-2xl { font-size:19px; margin-right:5px!important; }
  body:has(#modalOverlayPub) .lufi-icon-btn-public { width:30px; height:33px; }
  body:has(#dropForm) > .glass { margin-block:0; }
}
@media (max-width:360px) {
  #toolbarRow { grid-template-columns:minmax(0,1fr)!important; grid-template-areas:"add" "search" "sort" "size"; }
  .lufi-header-actions > .btn,.lufi-header-actions > a.btn { min-width:0; }
  .lufi-transfer-row .lufi-icon-btn { width:29px; }
  .lufi-transfer-row td { padding-inline:3px; }
  .lufi-transfer-title { font-size:12px; }
  #modalBody .file-item,#modalBodyPub .file-item, body:has(#modalOverlayPub) .file-item { flex-wrap:wrap; }
  #modalBody .file-item > a,#modalBodyPub .file-item > a,body:has(#modalOverlayPub) .file-item > a { flex:1 1 100%!important; width:100%; }
  #modalBody .file-item > div:last-child,#modalBodyPub .file-item > div:last-child,body:has(#modalOverlayPub) .file-item > div:last-child { margin-left:auto; }
}
@media (max-height:560px) and (orientation:landscape) {
  #modalContent .lufi-gallery,#modalContentPub .lufi-gallery { height:calc(100dvh - 45px); }
  .lufi-gallery-description { display:none; }
  .lufi-gallery-strip .btn { min-width:30px; min-height:30px; }
  .lufi-gallery-download { min-height:30px; }
  .lufi-gallery-header .btn { width:32px; height:32px; }
  #viewClipboardContainer > .glass { min-height:0; }
}
@media (prefers-reduced-motion:reduce) { .lufi-gallery-image, .lufi-gallery-stage { scroll-behavior:auto; } }

/* WYPEŁNIANIE EKRANU — brak sztucznych limitów szerokości.
   Karty i obszary robocze zajmuja dostepne miejsce; jedynie zawartosc przewija sie,
   gdy jest jej wiecej niz miesci wyswietlacz. */
:root { --lufi-content-height:calc(100dvh - 92px - var(--lufi-page-gap)); }
.container > :is(#viewLinksContainer,#viewShortenerContainer,#viewTransferContainer,#viewClipboardContainer) {
  width:100%; max-width:none; min-width:0; flex:1 1 auto;
}
#viewLinksContainer, #viewShortenerContainer, #viewTransferContainer { min-height:var(--lufi-content-height); }
#viewClipboardContainer { min-height:var(--lufi-content-height)!important; }
#viewClipboardContainer > .glass { min-height:var(--lufi-content-height); height:auto; margin-bottom:0; }
#viewTransferContainer:not([style*="display:none"]):not([style*="display: none"]) {
  display:flex!important; flex-direction:column; gap:var(--lufi-panel-gap);
}
#viewTransferContainer .lufi-upload-panel { width:100%; flex:0 0 auto; margin-bottom:0; }
#viewTransferContainer .lufi-upload-grid,
#viewTransferContainer :is(#uploadFileList,#uploadProgressPanel) { width:100%!important; max-width:none!important; }
#viewTransferContainer .lufi-transfer-list-wrap { width:100%; flex:0 0 auto; min-height:0; }
#viewTransferContainer .lufi-upload-drop { min-height:clamp(140px,22dvh,310px); }
#viewTransferContainer .lufi-upload-note textarea { min-height:clamp(125px,19dvh,290px); }
#viewShortenerContainer > .glass { width:100%; max-width:none; }
#viewShortenerContainer .short-table { width:100%; }
#linksGrid { min-height:0; align-content:start; }
#linksGrid:is(.thumbs,.grid) { grid-auto-flow:row; }
/* Opcje w wyswietlonym transferze moga uzywac calej szerokosci wiersza. */
.lufi-transfer-info-cell { width:auto; }
.lufi-transfer-title { max-width:none; }

/* Galeria i podglad: skaluja sie w pionie i poziomie razem z oknem. */
#modalContent:has(.lufi-gallery), #modalContentPub:has(.lufi-gallery) {
  display:flex; flex-direction:column;
  width:100%; max-width:none; height:calc(100dvh - 2 * var(--lufi-page-gap));
  max-height:calc(100dvh - 2 * var(--lufi-page-gap)); overflow:hidden;
}
#modalBody:has(> .lufi-gallery), #modalBodyPub:has(> .lufi-gallery) {
  display:flex; flex-direction:column; flex:1 1 auto; min-height:0;
}
#modalContent .lufi-gallery,#modalContentPub .lufi-gallery {
  flex:1 1 auto; height:100%!important; min-height:0;
}
.lufi-gallery-stage { flex:1 1 auto; min-height:0; }
.lufi-gallery-image-wrap { width:100%; min-height:0; height:100%; }
.lufi-gallery-image { width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; }
#modalBody :is(img,video,iframe), #modalBodyPub :is(img,video,iframe) { max-height:calc(100dvh - 175px)!important; }
#modalBody :is(img,video), #modalBodyPub :is(img,video) { object-fit:contain; }
#modalBody iframe, #modalBodyPub iframe { height:calc(100dvh - 175px)!important; }
/* Publiczna lista jest pelnej szerokosci, a opisy pozostaja czytelne. */
body:has(#modalOverlayPub) > .glass, body:has(#dropForm) > .glass { align-self:stretch; }
body:has(#modalOverlayPub) :is(.file-item,.message-card,.lufi-transfer-meta) { width:100%; max-width:none; }
body:has(#dropForm) :is(.drop-zone,.file-row,#fileList) { width:100%; max-width:none; }
@media (min-width:1400px) {
  :root { --lufi-page-gap:clamp(18px,1.35vw,45px); }
  .lufi-main-header { margin-bottom:clamp(12px,1.2vw,26px); }
  #linksGrid { gap:clamp(12px,1vw,22px); }
}
@media (max-width:700px) {
  :root { --lufi-content-height:calc(100dvh - 138px - var(--lufi-page-gap)); }
  #viewTransferContainer .lufi-upload-drop { min-height:clamp(105px,18dvh,165px); }
  #viewTransferContainer .lufi-upload-note textarea { min-height:90px; }
  #viewTransferContainer .lufi-transfer-list-wrap { min-height:0; }
}
@media (max-width:480px) {
  :root { --lufi-content-height:calc(100dvh - 160px - var(--lufi-page-gap)); }
  #modalContent:has(.lufi-gallery),#modalContentPub:has(.lufi-gallery) {
    width:100%; height:100dvh; max-height:100dvh;
  }
}


/* 2026-11-03: jedna linia logo + narzedzia takze na malych telefonach. */
@media (max-width:700px) {
  .lufi-main-header { flex-wrap:nowrap!important; gap:clamp(3px,1vw,8px); align-items:center; }
  .lufi-main-header > :first-child { flex:0 1 auto!important; min-width:0; gap:clamp(3px,.7vw,7px); }
  .lufi-main-header > :first-child img { width:clamp(22px,6.8vw,33px); height:clamp(22px,6.8vw,33px); flex:0 0 auto; object-fit:contain; }
  .lufi-main-header h1 { font-size:clamp(11px,3.35vw,18px); letter-spacing:-.025em; }
  .lufi-header-actions { width:auto!important; flex:0 0 auto!important; flex-wrap:nowrap!important; justify-content:flex-end!important; margin-left:auto!important; gap:clamp(1px,.45vw,4px); }
  .lufi-header-actions > .btn, .lufi-header-actions > a.btn {
    flex:0 0 auto!important;
    width:clamp(28px,7.7vw,37px)!important;
    height:clamp(30px,8.2vw,38px)!important;
    max-width:none!important;
    min-width:0!important; min-height:0!important;
    padding:clamp(3px,.85vw,6px)!important;
    border-radius:9px;
  }
  .lufi-header-actions > .w-\[1px\] { flex:0 0 1px; height:20px; margin-inline:clamp(1px,.3vw,3px); }
  #secondaryNav.nav-open { right:0; top:calc(100% + 6px); }
}
@media (max-width:359px) {
  .lufi-main-header { gap:2px; }
  .lufi-main-header > :first-child img { width:22px; height:22px; }
  .lufi-main-header h1 { font-size:11px; }
  .lufi-header-actions { gap:1px; }
  .lufi-header-actions > .btn, .lufi-header-actions > a.btn { width:27px!important; height:30px!important; padding:3px!important; }
  .lufi-header-actions > .w-\[1px\] { margin-inline:1px; }
}
