/* Omvia Cloud v1.9.14 — clean visual rebuild
   No legacy visual layers. Functional PHP/JS remains intact. */
:root{
  --bg:#f7f9fd;--panel:#ffffff;--panel-2:#f2f5fb;--panel-3:#eaf0f8;
  --text:#0d1838;--muted:#6f7f9d;--line:#d8e2f0;--line-strong:#c7d5e8;
  --blue:#246bff;--blue-2:#4d7dff;--violet:#6d43ff;--pink:#e415be;--green:#18a86b;--orange:#f7a61b;
  --brand-gradient:linear-gradient(115deg,#1e72ff 0%,#5369ff 48%,#7847ff 75%,#d742bf 100%);
  --shadow:0 18px 50px rgba(34,54,94,.08);--shadow-soft:0 8px 26px rgba(34,54,94,.06);
  --radius-xl:28px;--radius-lg:22px;--radius-md:16px;--sidebar:248px;
  color-scheme:light;
}
html[data-theme="dark"]{
  --bg:#0a1220;--panel:#101a2c;--panel-2:#152238;--panel-3:#1a2941;
  --text:#f4f7ff;--muted:#9badc7;--line:#243754;--line-strong:#304768;
  --blue:#5c91ff;--blue-2:#729cff;--violet:#8a68ff;--pink:#e55cc8;--green:#43c78d;--orange:#ffc45a;
  --brand-gradient:linear-gradient(115deg,#33a7ff 0%,#5e7dff 45%,#8a5cff 75%,#e155c7 100%);
  --shadow:0 20px 55px rgba(0,0,0,.28);--shadow-soft:0 10px 28px rgba(0,0,0,.18);color-scheme:dark;
}
*{box-sizing:border-box;min-width:0}html,body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}body{min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}img,svg{display:block;max-width:100%}.svg{width:20px;height:20px;flex:0 0 auto}.svg.sm{width:18px;height:18px}.svg.lg{width:24px;height:24px}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:13px}.tiny{font-size:11px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* shared controls */
.btn,.icon-btn,.ref-icon-button,.gallery-icon-btn,.gallery-square-btn,.files-action-button,.row-action,.row-menu,.grid-action-btn{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:15px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:.16s ease}.btn{padding:0 16px;font-weight:750}.btn.primary,.files-action-button.primary{background:var(--brand-gradient);color:#fff;border-color:transparent}.btn.soft{background:var(--panel)}.icon-btn,.ref-icon-button,.gallery-icon-btn,.gallery-square-btn{width:44px;height:44px;min-height:44px;padding:0}.btn:hover,.icon-btn:hover,.ref-icon-button:hover,.gallery-icon-btn:hover,.gallery-square-btn:hover,.files-action-button:hover,.row-action:hover,.row-menu:hover,.grid-action-btn:hover{background:var(--panel-2);border-color:var(--line-strong)}
.form-control,.search-input{height:48px;border:1px solid var(--line);border-radius:15px;background:var(--panel);color:var(--text);padding:0 14px;outline:0}.form-control:focus,.search-input:focus{border-color:var(--blue);box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 12%,transparent)}
.avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:var(--brand-gradient);color:#fff;font-size:18px;font-weight:850;line-height:1;overflow:hidden;flex:0 0 42px}.avatar-glyph{display:grid;place-items:center;width:100%;height:100%;line-height:1}.avatar[data-avatar-photo="1"]{background-image:var(--omvia-avatar-image)!important;background-size:cover!important;background-position:center!important;color:transparent!important}.avatar[data-avatar-photo="1"] .avatar-glyph{opacity:0}
.omvia-filetype{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--panel-2);overflow:hidden}.omvia-filetype img{width:30px!important;height:30px!important;object-fit:contain!important}.omvia-filetype.pdf{background:#fff0f2}.omvia-filetype.image{background:#f5efff}.omvia-filetype.video{background:#f3efff}.omvia-filetype.sheet{background:#eefaf4}.omvia-filetype.slides{background:#fff5ec}.omvia-filetype.doc{background:#edf4ff}.omvia-filetype.archive{background:#f1efff}.omvia-filetype.audio{background:#fff0fa}.omvia-filetype.folder{background:#fff7e6}
html[data-theme="dark"] .omvia-filetype.pdf{background:#3a1c26}html[data-theme="dark"] .omvia-filetype.image,html[data-theme="dark"] .omvia-filetype.video,html[data-theme="dark"] .omvia-filetype.slides,html[data-theme="dark"] .omvia-filetype.archive{background:#251e43}html[data-theme="dark"] .omvia-filetype.sheet{background:#123228}html[data-theme="dark"] .omvia-filetype.doc{background:#172a46}html[data-theme="dark"] .omvia-filetype.audio{background:#351b30}html[data-theme="dark"] .omvia-filetype.folder{background:#3b2d14}

/* universal authenticated shell */
.ref-shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);background:var(--bg)}
.ref-sidebar{position:sticky;top:0;height:100vh;padding:24px 18px;border-right:1px solid var(--line);background:var(--panel);display:flex;flex-direction:column;gap:22px;z-index:30}.ref-brand{display:flex;align-items:center;height:50px;padding:0 6px}.ref-brand img{width:188px;height:auto}.ref-nav{display:grid;gap:5px}.ref-nav-link{height:46px;padding:0 13px;display:flex;align-items:center;gap:12px;border-radius:13px;color:var(--muted);text-decoration:none;font-weight:650;font-size:14px}.ref-nav-link:hover{background:var(--panel-2);color:var(--text)}.ref-nav-link.active{background:color-mix(in srgb,var(--blue) 10%,var(--panel));color:var(--blue)}.ref-nav-link.active .svg{color:var(--blue)}
.ref-sidebar-storage{margin-top:auto;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--panel-2);text-decoration:none}.ref-storage-label{display:block;font-size:11px;letter-spacing:.13em;color:var(--muted);font-weight:800}.ref-sidebar-storage strong{display:block;margin-top:8px;font-size:14px}.ref-sidebar-storage strong small{font-weight:500;color:var(--muted)}.ref-progress{height:7px;border-radius:999px;background:var(--panel-3);display:block;margin:13px 0 10px;overflow:hidden}.ref-progress i{display:block;height:100%;border-radius:inherit;background:var(--brand-gradient)}.ref-storage-foot{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}
.ref-main{padding:22px 30px 100px;max-width:1600px;width:100%;margin:0 auto}.ref-topbar{display:grid;grid-template-columns:minmax(280px,760px) auto;gap:18px;align-items:center;min-height:64px}.ref-mobile-brand{display:none}.ref-search{height:48px;display:flex;align-items:center;gap:12px;padding:0 16px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:var(--shadow-soft)}.ref-search .svg{color:var(--muted)}.ref-search input{border:0;outline:0;background:transparent;color:var(--text);width:100%;font-size:14px}.ref-search input::placeholder{color:var(--muted)}.ref-top-actions{justify-self:end;display:flex;align-items:center;gap:10px}.ref-avatar-button{display:grid;place-items:center;text-decoration:none}.ref-heading{margin:38px 0 24px}.ref-eyebrow{font-size:12px;letter-spacing:.18em;font-weight:850;color:var(--muted)}.ref-heading h1{font-size:clamp(38px,4.4vw,62px);line-height:.96;letter-spacing:-.055em;margin:12px 0 12px}.ref-heading p{font-size:17px;color:var(--muted);margin:0;line-height:1.55}.ref-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px}.ref-content-primary{display:grid;gap:18px}.ref-card,.section-card,.files-action-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-soft)}
.ref-storage-card{min-height:320px;padding:28px 30px;display:grid;grid-template-columns:minmax(0,1fr) 220px;align-items:center;gap:26px}.ref-storage-copy h2{font-size:44px;letter-spacing:-.045em;margin:14px 0 4px}.ref-storage-copy>p{margin:0;color:var(--muted);font-size:17px}.ref-storage-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:30px 0 22px}.ref-storage-legend>span{display:grid;grid-template-columns:10px 1fr;gap:8px;color:var(--muted);font-size:13px}.ref-storage-legend i{width:10px;height:10px;border-radius:50%;margin-top:4px}.ref-storage-legend i.blue{background:#176eff}.ref-storage-legend i.violet{background:#6738ff}.ref-storage-legend i.pink{background:#df11bf}.ref-storage-legend strong{grid-column:2;color:var(--text);font-size:14px}.ref-storage-bar{height:10px;border-radius:999px;background:var(--panel-3);overflow:hidden}.ref-storage-bar>span{display:block;height:100%;background:var(--brand-gradient);border-radius:inherit}.ref-storage-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-top:8px}.ref-storage-ring{width:190px;height:190px;border-radius:50%;background:conic-gradient(from -90deg,#27c6ff 0%,#3377ff calc(var(--ref-pct)*.42%),#7a4dff calc(var(--ref-pct)*.72%),#e443c3 calc(var(--ref-pct)*1%),var(--panel-3) 0);display:grid;place-items:center;justify-self:end}.ref-storage-ring::before{content:"";width:154px;height:154px;border-radius:50%;background:var(--panel);position:absolute}.ref-storage-ring>div{position:relative;z-index:2;text-align:center}.ref-storage-ring strong{display:block;font-size:36px;letter-spacing:-.04em}.ref-storage-ring span{color:var(--muted);font-size:13px}
.ref-quick-card{padding:24px 26px}.ref-section-title{margin-bottom:17px}.ref-section-title h2{margin:8px 0 4px;font-size:22px}.ref-section-title p{margin:0;color:var(--muted)}.ref-section-title.desktop-copy{display:none}.ref-quick-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.ref-quick-grid>*{min-height:118px;border:1px solid var(--line);border-radius:18px;background:var(--panel-2);color:var(--text);display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:16px;text-decoration:none}.ref-action-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center}.ref-action-icon.blue{background:#eaf2ff;color:#176eff}.ref-action-icon.orange{background:#fff3df;color:#f39a00}.ref-action-icon.violet{background:#f2ecff;color:#7447ff}.ref-action-icon.green{background:#eaf8f1;color:#0d9a5e}html[data-theme="dark"] .ref-action-icon.blue{background:#172b4c}html[data-theme="dark"] .ref-action-icon.orange{background:#392b14}html[data-theme="dark"] .ref-action-icon.violet{background:#281f48}html[data-theme="dark"] .ref-action-icon.green{background:#123227}.ref-quick-grid strong{font-size:14px}
.ref-recent-card,.ref-activity-card{overflow:hidden}.ref-recent-card>.ref-section-title,.ref-activity-card>.ref-section-title{padding:20px 22px 0}.ref-recent-table{padding:0 22px 14px}.ref-table-head{display:grid;grid-template-columns:minmax(0,2fr) 1fr .6fr .8fr 30px;gap:12px;padding:14px 4px;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:800}.ref-loading,.empty-state{padding:28px;text-align:center;color:var(--muted)}.ref-card-footer,.ref-activity-footer{min-height:48px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:var(--blue);font-weight:750;font-size:13px}.ref-activity-list{padding:8px 20px 16px}.ref-mobile-files{display:none}.ref-mobile-nav{display:none}

/* Files */
.files-heading{margin-bottom:18px}.files-action-card{padding:16px;margin-bottom:18px}.files-primary-actions{display:flex;gap:10px;margin-bottom:14px}.files-action-button{min-height:48px;padding:0 17px;font-weight:750}.files-filter-strip{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.files-filter-strip a{height:46px;padding:0 15px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--muted);font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}.files-filter-strip a.active{color:var(--blue);border-color:color-mix(in srgb,var(--blue) 38%,var(--line));background:color-mix(in srgb,var(--blue) 8%,var(--panel))}.breadcrumbs{display:flex;gap:8px;overflow-x:auto;margin:0 0 12px}.breadcrumb-link{height:38px;display:flex;align-items:center;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);text-decoration:none;color:var(--muted);white-space:nowrap}.section-card{overflow:hidden}.section-head{min-height:74px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.section-head h2{font-size:18px;margin:0}.section-head p{font-size:12px;color:var(--muted);margin:4px 0 0}.section-actions{display:flex;gap:8px}.file-table-head{display:grid;grid-template-columns:minmax(240px,2fr) .6fr .8fr .65fr 160px;gap:12px;padding:12px 18px;color:var(--muted);font-size:11px;font-weight:800;border-bottom:1px solid var(--line)}.file-table{padding:8px}.file-row{display:grid;grid-template-columns:minmax(240px,2fr) .6fr .8fr .65fr 160px;gap:12px;align-items:center;min-height:68px;padding:10px;border-radius:15px;border:1px solid transparent}.file-row:hover{background:var(--panel-2);border-color:var(--line)}.file-open,.folder-open{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:0}.file-icon,.folder-premium-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px}.file-copy{min-width:0}.file-name{font-weight:750;font-size:14px;white-space:normal;overflow-wrap:anywhere;line-height:1.25}.file-type,.table-cell{color:var(--muted);font-size:12px}.file-actions{display:flex;justify-content:flex-end;gap:6px}.row-menu,.grid-action-btn{width:38px;height:38px;min-height:38px;padding:0}.grid-action-btn span{display:none}.sharing-pill{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border-radius:999px;background:var(--panel-2);color:var(--muted);font-size:11px}.photo-library{padding:18px}.photo-month{margin-bottom:30px}.photo-month-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.photo-month-head strong{font-size:15px}.photo-month-head span{color:var(--muted);font-size:11px}.photo-native-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.photo-native-wrap{position:relative;min-width:0}.photo-native-item{display:block;aspect-ratio:1.38;border-radius:14px;overflow:hidden;background:var(--panel-2);border:1px solid var(--line);text-decoration:none}.photo-native-item img{width:100%;height:100%;object-fit:cover}.photo-native-meta{position:absolute;left:8px;right:8px;bottom:8px;padding:8px 9px;border-radius:10px;background:rgba(8,15,27,.66);color:white;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-native-fav{position:absolute;right:8px;top:8px;width:34px;height:34px;border:0;border-radius:10px;background:rgba(8,15,27,.6);color:white;display:grid;place-items:center}.photo-density-compact .photo-native-grid{grid-template-columns:repeat(7,minmax(0,1fr))}

/* Gallery page */
.gallery-experience-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr);background:var(--bg)}.gallery-sidebar{height:100vh;position:sticky;top:0;background:var(--panel);border-right:1px solid var(--line);padding:24px 18px;display:flex;flex-direction:column;gap:20px}.gallery-brand img{width:188px}.gallery-upload{height:46px;border:0;border-radius:12px;background:#3266e8;color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:750}.gallery-side-nav{display:grid;gap:4px}.gallery-side-nav a,.gallery-quick-access a{height:42px;padding:0 12px;border-radius:12px;display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--muted);font-size:13px}.gallery-side-nav a.active{background:color-mix(in srgb,var(--blue) 9%,var(--panel));color:var(--blue)}.gallery-storage-mini{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:18px}.gallery-storage-mini>span,.gallery-quick-access>span{font-size:10px;letter-spacing:.13em;font-weight:850;color:var(--muted)}.gallery-storage-mini strong{font-size:12px}.gallery-storage-track{height:7px;border-radius:999px;background:var(--panel-3);overflow:hidden}.gallery-storage-track i{display:block;height:100%;background:var(--brand-gradient);border-radius:inherit}.gallery-storage-mini small{font-size:10px;color:var(--muted)}.gallery-storage-mini a{height:38px;border:1px solid var(--line);border-radius:10px;display:grid;place-items:center;text-decoration:none;color:var(--blue);font-size:11px}.gallery-quick-access{display:grid;gap:4px;margin-top:2px}.gallery-workspace{min-width:0}.gallery-topbar{height:82px;padding:0 28px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(300px,620px) auto;gap:20px;align-items:center;background:var(--panel)}.gallery-mobile-brand{display:none}.gallery-search{height:46px;display:flex;align-items:center;gap:11px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.gallery-search input{border:0;outline:0;background:transparent;color:var(--text);width:100%}.gallery-top-actions{justify-self:end;display:flex;align-items:center;gap:9px}.gallery-account{height:48px;display:flex;align-items:center;gap:9px;padding:0 8px 0 4px;text-decoration:none;border-radius:12px}.gallery-account>span:last-of-type{display:grid}.gallery-account strong{font-size:12px}.gallery-account small{font-size:10px;color:var(--muted)}.gallery-avatar{width:38px;height:38px;flex-basis:38px;border-radius:12px}.gallery-main{padding:28px 30px 90px}.gallery-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.gallery-heading-row h1{font-size:36px;letter-spacing:-.045em;margin:0 0 5px}.gallery-heading-row p{margin:0;color:var(--muted)}.gallery-view-controls{display:flex;gap:8px}.gallery-sort{height:44px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);font-weight:650}.gallery-albums{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(132px,1fr);gap:12px;overflow-x:auto;margin:34px 0 26px;padding-bottom:4px}.gallery-album-card{border:1px solid var(--line);background:var(--panel);border-radius:15px;overflow:hidden;text-decoration:none;padding:0 0 12px;text-align:left;color:var(--text);min-width:132px}.gallery-album-cover{height:116px;background:var(--panel-2) center/cover no-repeat;display:grid;place-items:center}.gallery-album-all{color:var(--blue);background:linear-gradient(145deg,#eef4ff,#e8f1ff)}html[data-theme="dark"] .gallery-album-all{background:linear-gradient(145deg,#162640,#182c4b)}.gallery-album-card strong,.gallery-album-card small{display:block;padding:0 12px}.gallery-album-card strong{margin-top:10px;font-size:13px}.gallery-album-card small{margin-top:4px;color:var(--muted);font-size:10px}.gallery-toolbar{display:flex;justify-content:flex-end;gap:10px;margin-bottom:14px}.gallery-select-toggle,.gallery-filter-btn{height:42px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);display:flex;align-items:center;gap:8px;color:var(--text)}.gallery-stream-caption{display:none}.gallery-photo-library{padding:0}.gallery-photo-library .photo-native-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.gallery-mobile-nav{display:none}

/* universal secondary pages */
.page-shell,.account-shell,.admin-shell{min-height:100vh;background:var(--bg);padding-bottom:80px}.page-topbar,.account-top,.admin-top{min-height:76px;display:flex;align-items:center;gap:12px;padding:14px 24px;border-bottom:1px solid var(--line);background:var(--panel)}.page-brand img,.admin-brand-logo{width:180px}.page-top-spacer{flex:1}.page-main,.account-main,.admin-main{width:min(1180px,calc(100% - 36px));margin:0 auto;padding:30px 0 80px}.page-heading,.admin-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}.page-heading h1,.admin-heading h1{font-size:clamp(34px,4vw,52px);letter-spacing:-.05em;margin:4px 0 6px}.page-heading p,.admin-heading p{color:var(--muted);line-height:1.6;margin:0}.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:850;color:var(--muted)}.filter-tabs{display:flex;gap:8px;overflow-x:auto;margin:18px 0}.filter-tab{height:42px;padding:0 13px;border:1px solid var(--line);border-radius:13px;background:var(--panel);display:flex;align-items:center;gap:7px;text-decoration:none;color:var(--muted);white-space:nowrap;font-size:12px}.filter-tab.active{color:var(--blue);background:color-mix(in srgb,var(--blue) 8%,var(--panel));border-color:color-mix(in srgb,var(--blue) 35%,var(--line))}.setting-row,.stat,.plan-card,.account-profile-card,.account-plan-card,.support-ticket-row,.sync-rule,.transfer-row{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:18px}.admin-shell{display:grid;grid-template-columns:248px minmax(0,1fr)}.admin-sidebar{background:var(--panel);border-right:1px solid var(--line);padding:20px 14px}.admin-side-nav{display:grid;gap:5px}.admin-side-link{height:44px;padding:0 12px;display:flex;align-items:center;gap:10px;border-radius:12px;text-decoration:none;color:var(--muted)}.admin-side-link.active{background:var(--panel-2);color:var(--blue)}.admin-table-wrap{background:var(--panel);border:1px solid var(--line);border-radius:18px;overflow:auto}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left}.admin-table th{font-size:11px;color:var(--muted)}

/* modals / create sheet */
.modal-backdrop{position:fixed;inset:0;z-index:6000;background:rgba(8,15,27,.42);display:grid;place-items:center;padding:18px}.modal{width:min(520px,100%);max-height:88dvh;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.modal-head{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.modal-head h3{margin:0}.modal-body{padding:20px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}

/* mobile — exact new-language baseline */
@media(max-width:760px){
  body{padding-bottom:calc(104px + env(safe-area-inset-bottom))}.ref-shell,.gallery-experience-shell{display:block;min-height:100dvh}.ref-sidebar,.gallery-sidebar{display:none}.ref-main,.files-ref-main{padding:calc(28px + env(safe-area-inset-top)) 30px calc(118px + env(safe-area-inset-bottom));width:100%;max-width:none}.ref-topbar{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px 44px;gap:10px;align-items:center}.ref-mobile-brand{display:flex;grid-column:1;align-items:center;height:58px}.ref-mobile-brand img{width:220px;max-width:72vw}.ref-search{grid-column:1/-1;grid-row:2;height:64px;border-radius:20px;padding:0 20px;box-shadow:none}.ref-search input{font-size:17px}.ref-top-actions{display:contents}.ref-top-actions .ref-icon-button:nth-of-type(1){display:none}.ref-top-actions>a.ref-icon-button{grid-column:2;grid-row:1}.ref-top-actions>button.ref-icon-button{grid-column:3;grid-row:1}.ref-avatar-button{grid-column:4;grid-row:1}.ref-icon-button{width:44px;height:44px;border-radius:14px}.ref-avatar{width:44px;height:44px;border-radius:14px}.ref-heading{margin:52px 4px 26px}.ref-heading h1{font-size:52px;margin:15px 0 14px}.ref-heading p{font-size:18px;line-height:1.45}.ref-content-grid{display:block}.ref-content-primary{gap:18px}.ref-storage-card{min-height:430px;padding:31px 28px;grid-template-columns:minmax(0,1fr) 150px;gap:10px;box-shadow:none}.ref-storage-copy h2{font-size:40px}.ref-storage-copy>p{font-size:17px}.ref-storage-legend{grid-template-columns:1fr 1fr;gap:17px 12px;margin:28px 0 26px}.ref-storage-ring{width:144px;height:144px}.ref-storage-ring::before{width:118px;height:118px}.ref-storage-ring strong{font-size:34px}.ref-quick-card,.ref-recent-card,.ref-activity-card{box-shadow:none}.ref-quick-card{padding:22px}.ref-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-quick-grid>*{min-height:104px}.ref-activity-card{margin-top:18px}.ref-desktop-table{display:none}.ref-mobile-files{display:block;padding:10px 16px}.ref-mobile-nav,.gallery-mobile-nav{position:fixed;left:22px;right:22px;bottom:calc(14px + env(safe-area-inset-bottom));height:86px;z-index:5000;border:1px solid var(--line);border-radius:28px;background:color-mix(in srgb,var(--panel) 96%,transparent);box-shadow:0 16px 46px rgba(33,52,94,.15);display:grid;grid-template-columns:repeat(5,1fr);align-items:center;padding:8px 8px 10px;backdrop-filter:blur(18px)}.ref-mobile-nav a,.gallery-mobile-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;text-decoration:none;color:var(--muted);font-size:11px;font-weight:650;height:62px}.ref-mobile-nav a.active,.gallery-mobile-nav a.active{color:var(--blue)}.ref-mobile-create,.gallery-mobile-nav .upload-fab{width:72px;height:72px;border:0;border-radius:50%;background:var(--brand-gradient);color:white;display:grid;place-items:center;justify-self:center;align-self:center;transform:translateY(-14px);box-shadow:0 12px 28px rgba(86,72,255,.22)}.ref-mobile-create .svg,.gallery-mobile-nav .upload-fab .svg{width:30px;height:30px}
  .files-heading{margin-top:42px}.files-action-card{padding:0;background:transparent;border:0;box-shadow:none}.files-primary-actions{display:grid;grid-template-columns:1fr 1fr}.files-action-button{height:58px;border-radius:18px;background:var(--panel)}.files-filter-strip{margin-inline:-2px;padding-bottom:8px}.files-filter-strip a{height:58px;min-width:142px;border-radius:18px;font-size:14px}.section-card{border-radius:22px;box-shadow:none}.section-head{min-height:70px;padding:14px 16px}.file-table-head{display:none}.file-table{padding:7px}.file-row{grid-template-columns:minmax(0,1fr) auto!important;gap:10px;min-height:80px;padding:10px 8px;border-bottom:1px solid var(--line);border-radius:0}.file-row:last-child{border-bottom:0}.desktop-cell,.sharing-cell{display:none!important}.file-icon,.folder-premium-icon{width:56px;height:56px;flex-basis:56px}.omvia-filetype{width:54px;height:54px;border-radius:16px}.omvia-filetype img{width:34px!important;height:34px!important}.file-name{font-size:16px;line-height:1.25}.file-type{font-size:12px;margin-top:4px}.file-actions{justify-content:flex-end}.grid-action-btn:not(.row-menu){display:none}.row-menu{width:48px;height:48px;border-radius:16px}.photo-native-grid,.photo-density-compact .photo-native-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.photo-native-item{aspect-ratio:1.08;border-radius:13px}
  .gallery-workspace{min-height:100dvh}.gallery-topbar{height:auto;display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:10px;padding:calc(26px + env(safe-area-inset-top)) 24px 18px;border-bottom:1px solid var(--line)}.gallery-mobile-brand{display:flex;align-items:center;gap:10px;grid-column:1}.gallery-mobile-brand img{width:40px}.gallery-mobile-brand strong{font-size:22px}.gallery-search{grid-column:1/-1;grid-row:2;height:58px;border-radius:18px}.gallery-top-actions{display:contents}.gallery-top-actions>.gallery-icon-btn:nth-child(1),.gallery-top-actions>.gallery-icon-btn:nth-child(2){display:none}.gallery-top-actions>button[data-theme-toggle]{grid-column:2;grid-row:1}.gallery-account{grid-column:3;grid-row:1;padding:0;width:44px;height:44px}.gallery-account>span:not(.avatar),.gallery-account>.svg{display:none}.gallery-avatar{width:44px;height:44px}.gallery-main{padding:30px 24px calc(116px + env(safe-area-inset-bottom))}.gallery-heading-row{display:block}.gallery-heading-row h1{font-size:42px}.gallery-heading-row p{font-size:15px}.gallery-view-controls{margin-top:16px}.gallery-sort{flex:1}.gallery-albums{grid-auto-columns:128px;margin:26px 0 22px}.gallery-album-cover{height:104px}.gallery-toolbar{justify-content:space-between}.gallery-photo-library .photo-native-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-shell,.account-shell,.admin-shell{padding-bottom:calc(110px + env(safe-area-inset-bottom));display:block}.page-topbar,.account-top,.admin-top{min-height:72px;padding:calc(12px + env(safe-area-inset-top)) 16px 12px}.page-main,.account-main,.admin-main{width:calc(100% - 28px);padding:24px 0 80px}.page-heading,.admin-heading{display:block}.page-heading h1,.admin-heading h1{font-size:38px}.admin-sidebar{display:none}.mobile-nav:not(.ref-mobile-nav):not(.gallery-mobile-nav){display:none!important}
}
@media(max-width:430px){.ref-main,.files-ref-main{padding-left:18px;padding-right:18px}.ref-mobile-brand img{width:205px}.ref-heading h1{font-size:46px}.ref-storage-card{grid-template-columns:minmax(0,1fr) 126px;padding:26px 22px}.ref-storage-ring{width:122px;height:122px}.ref-storage-ring::before{width:100px;height:100px}.ref-storage-ring strong{font-size:28px}.ref-storage-legend{grid-template-columns:1fr 1fr}.ref-mobile-nav,.gallery-mobile-nav{left:12px;right:12px}.files-filter-strip a{min-width:132px}.gallery-main{padding-left:18px;padding-right:18px}.gallery-topbar{padding-left:18px;padding-right:18px}}

.omvia-viewer-card{overflow:hidden!important;background:#070b13!important}.omvia-viewer-toolbar{min-height:58px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--panel) 90%,#000 10%)}.omvia-viewer-group{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.viewer-btn{min-width:40px;height:40px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);color:var(--text)}.viewer-text-btn span{font-size:12px;font-weight:800}.viewer-value{min-width:54px;text-align:center;font-size:12px;color:var(--muted)}.viewer-hint{font-size:12px;color:var(--muted)}.omvia-image-canvas{height:min(72vh,860px);min-height:420px;overflow:hidden;display:grid;place-items:center;background:radial-gradient(circle at center,#101a2b,#070b13 72%);touch-action:none;cursor:grab}.omvia-image-canvas.dragging{cursor:grabbing}.omvia-image-canvas img{max-width:none!important;max-height:none!important;user-select:none;transform-origin:center;will-change:transform}.omvia-video-shell{position:relative;width:100%;aspect-ratio:16/9;max-height:78vh;background:#000;overflow:hidden;display:grid;place-items:center}.omvia-video{width:100%;height:100%;object-fit:contain;background:#000}.omvia-video-center{position:absolute;width:76px;height:76px;border:1px solid rgba(255,255,255,.24);border-radius:50%;display:grid;place-items:center;background:rgba(5,10,20,.58);color:#fff;backdrop-filter:blur(12px)}.omvia-video-center.hide{opacity:0;pointer-events:none}.omvia-video-controls{position:absolute;left:0;right:0;bottom:0;padding:26px 16px 14px;background:linear-gradient(transparent,rgba(0,0,0,.88));color:#fff}.omvia-video-shell.controls-hidden .omvia-video-controls{opacity:0;pointer-events:none}.omvia-video-progress{width:100%;accent-color:#00E0FF}.omvia-video-row,.omvia-video-left,.omvia-video-right{display:flex;align-items:center}.omvia-video-row{justify-content:space-between;gap:10px;margin-top:8px}.omvia-video-left,.omvia-video-right{gap:6px}.omvia-video-shell .viewer-btn{background:rgba(10,15,25,.64);border-color:rgba(255,255,255,.15);color:#fff}.omvia-volume{width:90px;accent-color:#00E0FF}.omvia-time{font-size:12px;color:#e5edf7;white-space:nowrap}.omvia-speed{height:38px;border-radius:10px;border:1px solid rgba(255,255,255,.15);background:rgba(10,15,25,.72);color:#fff;padding:0 8px}.omvia-video-shell:fullscreen{width:100vw;height:100vh;max-height:none;aspect-ratio:auto}@media(max-width:700px){.omvia-viewer-toolbar{align-items:flex-start;flex-direction:column}.viewer-hint{display:none}.omvia-image-canvas{height:64vh;min-height:340px}.omvia-video-shell{aspect-ratio:16/10;min-height:240px}.omvia-volume{display:none}.omvia-time{font-size:11px}.omvia-video-shell .viewer-btn{min-width:36px;width:36px;height:36px;padding:0}.omvia-video-center{width:64px;height:64px}.omvia-speed{width:58px}}


/* v13.4 language control safety */
.lang-toggle{display:inline-grid;place-items:center;width:42px;height:42px;min-width:42px;flex:0 0 42px;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);font-weight:850;font-size:11px;letter-spacing:.04em;cursor:pointer}.lang-toggle:hover{background:var(--panel3)}
html[data-theme="dark"] .btn.primary{color:#F8FAFC!important}html[data-theme="light"] .btn.primary,.btn.primary{color:#07111e!important}
@media(max-width:700px){.topbar{grid-template-columns:44px minmax(0,1fr) 42px 42px 44px!important}.topbar .lang-toggle{grid-column:3!important;grid-row:1!important}.topbar .theme-btn{grid-column:4!important;grid-row:1!important}.topbar .user-chip{grid-column:5!important;grid-row:1!important}.topbar .search-wrap{grid-column:1/-1!important;grid-row:2!important}}
@media(max-width:900px){.page-topbar{grid-template-columns:minmax(0,1fr) 42px 42px 44px!important}.page-topbar .lang-toggle{grid-column:2!important;grid-row:1!important}.page-topbar .theme-btn{grid-column:3!important;grid-row:1!important}.page-topbar .user-chip{grid-column:4!important;grid-row:1!important}.page-topbar .search-wrap{grid-column:1/-1!important;grid-row:2!important}}

/* v13.5 Photo Viewer + Theme Hover + Grid Action Lock */
:root{--omvia-hover-bg:linear-gradient(135deg,rgba(0,212,255,.16),rgba(42,123,255,.14),rgba(99,102,241,.12));--omvia-hover-border:color-mix(in srgb,#2A7BFF 42%,var(--line));--omvia-hover-text:#0F172A;--omvia-hover-shadow:0 8px 24px rgba(42,123,255,.14)}
html[data-theme="dark"]{--omvia-hover-bg:linear-gradient(135deg,rgba(106,0,255,.24),rgba(0,224,255,.18),rgba(255,77,157,.16));--omvia-hover-border:color-mix(in srgb,#00E0FF 42%,var(--line));--omvia-hover-text:#F8FAFC;--omvia-hover-shadow:0 10px 28px rgba(0,224,255,.10)}
.viewer-btn,.filter-tab,.row-action,.row-end,.view-toggle{transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
.viewer-btn:hover,.viewer-btn:focus-visible,.filter-tab:hover,.row-action:hover,.row-end:hover,.view-toggle:hover{background:var(--omvia-hover-bg)!important;border-color:var(--omvia-hover-border)!important;color:var(--omvia-hover-text)!important;box-shadow:var(--omvia-hover-shadow)!important}
.viewer-btn:active,.row-action:active,.filter-tab:active{transform:translateY(1px)}
.viewer-divider{width:1px;height:28px;background:var(--line);margin:0 2px;flex:0 0 1px}
.viewer-rotate-btn{position:relative;isolation:isolate}.viewer-rotate-btn>.svg{width:20px!important;height:20px!important;margin:0!important;transform:none!important}
.omvia-image-canvas img{transition:transform .16s ease-out}.omvia-image-canvas.dragging img{transition:none}
/* Fix grid cards: file action icons must never overlap file names/meta. */








@media(max-width:700px){.omvia-viewer-group{gap:6px}.viewer-divider{height:26px}.viewer-rotate-btn{min-width:38px!important;width:38px!important;height:38px!important;padding:0!important}}

/* v14 Photo Gallery Pro */
.photo-pro-toolbar{position:relative;z-index:12;flex-wrap:wrap}.photo-pro-actions{display:flex;align-items:center;gap:7px;margin-left:auto}.viewer-counter{min-width:64px;text-align:center;font-size:12px;font-weight:800;color:var(--muted)}.viewer-divider{width:1px;height:26px;background:var(--line);display:inline-block;margin:0 2px}.viewer-btn:disabled{opacity:.34;cursor:not-allowed;box-shadow:none!important;transform:none!important}.photo-pro-stage{position:relative;background:#050910;overflow:hidden}.photo-pro-stage .omvia-image-canvas{height:min(74vh,920px);min-height:520px}.photo-edge-nav{position:absolute;top:50%;z-index:10;transform:translateY(-50%);width:54px;height:76px;border:1px solid rgba(255,255,255,.18);background:rgba(4,9,18,.5);color:#fff;display:grid;place-items:center;backdrop-filter:blur(12px);transition:.18s ease;box-shadow:0 12px 40px rgba(0,0,0,.22)}.photo-edge-nav:hover:not(:disabled){background:var(--omvia-hover-bg);border-color:var(--omvia-hover-border);color:var(--omvia-hover-text)}.photo-edge-nav:disabled{opacity:0;pointer-events:none}.photo-edge-prev{left:14px;border-radius:16px}.photo-edge-next{right:14px;border-radius:16px}.photo-info-panel{position:absolute;z-index:14;top:16px;right:16px;width:min(360px,calc(100% - 32px));max-height:calc(100% - 32px);overflow:auto;border:1px solid var(--line);border-radius:20px;background:color-mix(in srgb,var(--panel) 94%,transparent);box-shadow:0 26px 80px rgba(0,0,0,.34);backdrop-filter:blur(22px);padding:16px;transform:translateX(calc(100% + 30px));opacity:0;pointer-events:none;transition:transform .22s ease,opacity .22s ease}.photo-info-panel.open{transform:translateX(0);opacity:1;pointer-events:auto}.photo-info-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.photo-info-head strong{font-size:15px}.photo-info-panel dl{display:grid;gap:0;margin:14px 0}.photo-info-panel dl div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;padding:10px 0;border-top:1px solid var(--line)}.photo-info-panel dt{font-size:12px;color:var(--muted)}.photo-info-panel dd{margin:0;font-size:12px;color:var(--text);overflow-wrap:anywhere}.photo-info-actions{padding-top:4px}.photo-filmstrip{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-inline:contain;padding:12px 14px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--panel) 88%,#000 12%);scrollbar-width:thin;scroll-snap-type:x proximity}.photo-thumb{position:relative;flex:0 0 84px;height:68px;border:1px solid var(--line);border-radius:12px;overflow:hidden;text-decoration:none;background:#080d16;scroll-snap-align:center;opacity:.68;transition:.18s ease}.photo-thumb:hover{opacity:1;transform:translateY(-1px);border-color:var(--accent)}.photo-thumb.active{opacity:1;border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 22%,transparent)}.photo-thumb img{width:100%;height:100%;object-fit:cover}.photo-thumb span{position:absolute;left:0;right:0;bottom:0;padding:12px 6px 5px;background:linear-gradient(transparent,rgba(0,0,0,.86));color:#fff;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-pro-footer{min-height:42px;padding:9px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);background:var(--panel);color:var(--muted);font-size:11px}.photo-pro-footer span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-pro-footer span:last-child{color:var(--text);font-weight:700}.omvia-photo-pro:fullscreen{width:100vw;height:100vh;background:#050910;display:flex;flex-direction:column}.omvia-photo-pro:fullscreen .photo-pro-stage{flex:1;min-height:0}.omvia-photo-pro:fullscreen .omvia-image-canvas{height:100%;min-height:0}.omvia-photo-pro:fullscreen .photo-filmstrip{flex:0 0 auto}.omvia-photo-pro.slideshow-active [data-slideshow]{background:var(--omvia-hover-bg)!important;border-color:var(--omvia-hover-border)!important;color:var(--omvia-hover-text)!important}.omvia-photo-pro.slideshow-active [data-slideshow] svg{filter:none}
@media(max-width:700px){.photo-pro-toolbar{display:grid;grid-template-columns:1fr auto!important;gap:8px!important;padding:9px!important}.photo-pro-toolbar>.omvia-viewer-group{grid-column:1 / -1;overflow-x:auto;flex-wrap:nowrap!important;padding-bottom:2px}.photo-pro-actions{grid-column:2;grid-row:2;margin-left:0}.photo-pro-stage .omvia-image-canvas{height:66vh;min-height:360px}.photo-edge-nav{width:42px;height:60px}.photo-edge-prev{left:8px}.photo-edge-next{right:8px}.photo-filmstrip{padding:9px;gap:7px}.photo-thumb{flex-basis:70px;height:56px}.photo-pro-footer{display:none}.photo-info-panel{top:10px;right:10px;width:calc(100% - 20px);max-height:calc(100% - 20px)}.viewer-divider{height:22px}.viewer-counter{min-width:54px}.photo-pro-actions .viewer-btn{width:40px;min-width:40px;padding:0}}
.media-immersive-page{position:fixed;inset:0;width:100%;height:100dvh;min-height:100dvh;background:#02050a;overflow:hidden;z-index:9500}
.media-immersive-page>.topbar,.media-immersive-page .page-heading,.media-immersive-page>.mobile-nav{display:none!important}
.media-immersive-page .page-main{width:100%!important;max-width:none!important;height:100dvh!important;min-height:100dvh!important;margin:0!important;padding:0!important;overflow:hidden!important}
.media-immersive-page .preview-card{position:fixed!important;inset:0!important;z-index:9600!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#02050a!important;overflow:hidden!important}
.media-immersive-page .omvia-photo-pro{position:relative;width:100%;height:100dvh;min-height:100dvh;background:#02050a;overflow:hidden}
.media-immersive-page .photo-pro-toolbar{position:absolute;top:0;left:0;right:0;z-index:40;min-height:64px;padding:10px 14px calc(10px + env(safe-area-inset-top,0px));border:0;border-bottom:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(2,5,10,.92) 0%,rgba(2,5,10,.72) 64%,rgba(2,5,10,0) 100%);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.media-immersive-page .viewer-back-btn{flex:0 0 auto;background:rgba(10,15,25,.72);border-color:rgba(255,255,255,.14);color:#fff}
.media-immersive-page .viewer-media-name{display:block;max-width:min(28vw,360px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f7fbff;font-size:13px;font-weight:800;letter-spacing:-.01em}
.media-immersive-page .viewer-divider{background:rgba(255,255,255,.14)}
.media-immersive-page .viewer-counter,.media-immersive-page .viewer-value{color:rgba(235,244,255,.72)}
.media-immersive-page .photo-pro-stage{position:absolute;inset:0;width:100%;height:100dvh;min-height:100dvh;background:radial-gradient(circle at 50% 42%,#0b1421 0%,#050a12 45%,#02050a 100%);overflow:hidden}
.media-immersive-page .photo-pro-stage .omvia-image-canvas{width:100%;height:100dvh!important;min-height:100dvh!important;padding:0!important;background:transparent!important;display:grid;place-items:center}
.media-immersive-page .photo-pro-stage .omvia-image-canvas img{max-width:none!important;max-height:none!important;filter:none}
.media-immersive-page .photo-edge-nav{z-index:34;top:50%;width:56px;height:82px;background:rgba(4,9,18,.42);border-color:rgba(255,255,255,.14);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.media-immersive-page .photo-edge-prev{left:max(16px,env(safe-area-inset-left,0px))}.media-immersive-page .photo-edge-next{right:max(16px,env(safe-area-inset-right,0px))}
.media-immersive-page .photo-info-panel{z-index:46;top:82px;right:max(18px,env(safe-area-inset-right,0px));max-height:calc(100dvh - 104px);background:rgba(8,13,22,.9);border-color:rgba(255,255,255,.12);color:#f7fbff}
.media-immersive-page .photo-filmstrip,.media-immersive-page .photo-pro-footer{display:none!important}

.media-immersive-page .immersive-video-shell{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;max-height:none!important;aspect-ratio:auto!important;background:#000;z-index:9610}
.media-immersive-page .immersive-video-shell .omvia-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.omvia-video-topbar{position:absolute;top:0;left:0;right:0;z-index:35;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:calc(12px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 32px max(16px,env(safe-area-inset-left,0px));background:linear-gradient(180deg,rgba(0,0,0,.84),rgba(0,0,0,.48) 60%,transparent);transition:opacity .2s ease}
.omvia-video-title{min-width:0}.omvia-video-title strong,.omvia-video-title span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.omvia-video-title strong{color:#fff;font-size:14px}.omvia-video-title span{margin-top:3px;color:rgba(255,255,255,.6);font-size:11px}.omvia-video-top-actions{display:flex;align-items:center;gap:8px}.omvia-video-topbar .viewer-btn{background:rgba(10,15,25,.64);border-color:rgba(255,255,255,.15);color:#fff}
.media-immersive-page .immersive-video-shell.controls-hidden .omvia-video-topbar{opacity:0;pointer-events:none}
.media-immersive-page .omvia-video-controls{padding:max(46px,7vh) max(18px,env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));background:linear-gradient(transparent,rgba(0,0,0,.92))}
.media-immersive-page .omvia-video-center{z-index:22}

@media(max-width:700px){
 .media-immersive-page .photo-pro-toolbar{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;overflow-x:auto;gap:7px!important;padding:calc(8px + env(safe-area-inset-top,0px)) 8px 18px!important;scrollbar-width:none}
 .media-immersive-page .photo-pro-toolbar::-webkit-scrollbar{display:none}
 .media-immersive-page .photo-pro-toolbar>.omvia-viewer-group{display:flex!important;grid-column:auto!important;overflow:visible!important;flex-wrap:nowrap!important;padding:0!important}
 .media-immersive-page .photo-pro-actions{display:flex!important;grid-column:auto!important;grid-row:auto!important;margin-left:auto!important;flex:0 0 auto}
 .media-immersive-page .viewer-media-name{max-width:42vw;font-size:12px}
 .media-immersive-page .photo-edge-nav{width:44px;height:64px}.media-immersive-page .photo-edge-prev{left:8px}.media-immersive-page .photo-edge-next{right:8px}
 .media-immersive-page .photo-info-panel{top:74px;right:10px;width:calc(100% - 20px);max-height:calc(100dvh - 94px)}
 .omvia-video-topbar{gap:9px;padding:calc(10px + env(safe-area-inset-top,0px)) 10px 28px}.omvia-video-title strong{font-size:13px}.omvia-video-title span{display:none}
 .media-immersive-page .omvia-video-controls{padding:58px 10px calc(10px + env(safe-area-inset-bottom,0px))}
}


/* v19.7 — Immersive Photo Center Lock
   The media anchor owns centering. Image transforms can never move Fit away from viewport center. */
.media-immersive-page .photo-pro-stage,
.omvia-photo-pro:fullscreen .photo-pro-stage{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}
.media-immersive-page .omvia-image-canvas,
.omvia-photo-pro:fullscreen .omvia-image-canvas{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;padding:0!important;margin:0!important;display:block!important;overflow:hidden!important;background:transparent!important}
.omvia-image-anchor{position:absolute!important;left:50%!important;top:50%!important;width:max-content!important;height:max-content!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;transform:translate(-50%,-50%) translate3d(0,0,0);transform-origin:center center!important;will-change:transform;transition:transform .16s ease-out}
.omvia-image-canvas.dragging .omvia-image-anchor{transition:none!important}
.omvia-image-anchor>img[data-zoom-image]{position:relative!important;display:block!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;margin:0!important;padding:0!important;max-width:none!important;max-height:none!important;width:auto!important;height:auto!important;transform-origin:50% 50%!important;object-position:50% 50%!important;will-change:transform}
.media-immersive-page .photo-pro-stage .omvia-image-anchor>img[data-zoom-image]{filter:none}
/* Native fullscreen uses the exact same geometric center and no legacy flex/filmstrip geometry. */
.omvia-photo-pro:fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;display:block!important;background:#02050a!important;overflow:hidden!important}
.omvia-photo-pro:fullscreen .photo-pro-toolbar{position:absolute!important;top:0!important;left:0!important;right:0!important;z-index:40!important}
.omvia-photo-pro:fullscreen .photo-filmstrip,.omvia-photo-pro:fullscreen .photo-pro-footer{display:none!important}


/* =========================================================
   OMVIA CLOUD v19.8 — Navigation, Privacy & Dashboard UX Lock
   ========================================================= */
/* Sidebar: the bottom account controls must remain reachable at every desktop viewport height. */
.sidebar{overflow:hidden!important}
.nav-list{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  align-content:start!important;
  padding-right:4px!important;
  scrollbar-width:thin;
  scrollbar-color:color-mix(in srgb,var(--accent) 25%,var(--line)) transparent;
}
/* Desktop toolbar: never allow a long filename to push controls outside the viewport. */
.media-immersive-page .photo-pro-toolbar{
  box-sizing:border-box!important;
  overflow:hidden!important;
  transition:opacity .22s ease,transform .22s ease,background .22s ease,border-color .22s ease!important;
}
.media-immersive-page .photo-pro-toolbar>.omvia-viewer-group{
  flex:1 1 auto!important;
  min-width:0!important;
  overflow:hidden!important;
}
.media-immersive-page .viewer-media-name{
  flex:0 1 clamp(120px,22vw,340px)!important;
  min-width:0!important;
  max-width:340px!important;
}
.media-immersive-page .photo-pro-actions{flex:0 0 auto!important;min-width:max-content!important}
.viewer-mobile-break{display:none!important}

/* Clean-view mode: one tap/click directly on the photo removes every chrome line/control. */
.omvia-photo-pro .photo-pro-toolbar,
.omvia-photo-pro .photo-edge-nav,
.omvia-photo-pro .photo-info-panel{transition:opacity .22s ease,transform .22s ease,visibility .22s ease!important}
.omvia-photo-pro.media-clean-view .photo-pro-toolbar{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(-18px)!important;
  border-color:transparent!important;
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.omvia-photo-pro.media-clean-view .photo-edge-nav{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.omvia-photo-pro.media-clean-view .photo-info-panel{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.omvia-photo-pro.media-clean-view .photo-pro-stage{background:#02050a!important}
.omvia-photo-pro.media-clean-view .omvia-image-anchor>img[data-zoom-image]{filter:none!important}
.omvia-photo-pro.media-clean-view{cursor:none}
.omvia-photo-pro:not(.media-clean-view) .omvia-image-canvas{cursor:default}

/* Mobile viewer: no horizontal toolbar scrolling and no clipped filename tail in the upper-left corner. */
@media(max-width:700px){
  .media-immersive-page .photo-pro-toolbar{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    overflow:hidden!important;
    overflow-x:hidden!important;
    gap:8px!important;
    min-height:auto!important;
    padding:calc(8px + env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) 12px max(10px,env(safe-area-inset-left,0px))!important;
  }
  .media-immersive-page .photo-pro-toolbar>.omvia-viewer-group{
    width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    flex-wrap:wrap!important;
    overflow:hidden!important;
    gap:6px!important;
    padding:0!important;
  }
  /* Filename is available in Photo Information; hiding it here prevents the truncated “...eg” artifact. */
  .media-immersive-page .viewer-media-name{display:none!important}
  .media-immersive-page .viewer-divider{display:none!important}
  .media-immersive-page .viewer-mobile-break{display:block!important;flex:0 0 100%!important;width:100%!important;height:0!important}
  .media-immersive-page .photo-pro-actions{
    width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    margin:0!important;
    min-width:0!important;
  }
  .media-immersive-page .photo-pro-toolbar .viewer-btn{
    min-width:38px!important;
    width:38px!important;
    height:38px!important;
    padding:0!important;
    border-radius:12px!important;
  }
  .media-immersive-page .photo-pro-toolbar .viewer-text-btn{width:auto!important;min-width:42px!important;padding:0 8px!important}
  .media-immersive-page .photo-pro-toolbar .viewer-text-btn span{font-size:11px!important}
  .media-immersive-page .viewer-counter{min-width:52px!important;font-size:12px!important}
  .media-immersive-page .viewer-value{min-width:44px!important;font-size:11px!important}
  .media-immersive-page .photo-edge-nav{top:50%!important}
}

/* Extra-narrow phones: keep all functions but remove secondary text from Fit and the 1:1 control. */
  .media-immersive-page .page-heading{display:none!important}
  .media-immersive-page .page-main{padding:0!important;max-width:none!important;width:100%!important}
  .media-immersive-page .preview-card{border:0!important;border-radius:0!important;margin:0!important;min-height:100dvh}
  .media-immersive-page .omvia-photo-pro{min-height:100dvh;display:flex;flex-direction:column;background:#000}
  .media-immersive-page .photo-pro-stage{flex:1;min-height:0;background:#000}
  .media-immersive-page .photo-pro-stage .omvia-image-canvas{height:100dvh!important;min-height:100dvh!important;background:#000!important}
  .media-immersive-page .photo-pro-toolbar{position:fixed!important;z-index:40!important;left:0;right:0;top:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;grid-template-columns:none!important;gap:8px!important;padding:max(12px,env(safe-area-inset-top)) 12px 12px!important;border:0!important;background:linear-gradient(180deg,rgba(0,0,0,.72),rgba(0,0,0,.24),transparent)!important;backdrop-filter:none!important;transition:opacity .22s ease,transform .22s ease}
  .media-immersive-page .photo-pro-toolbar>.omvia-viewer-group{overflow:visible!important;padding:0!important;gap:7px!important;flex-wrap:nowrap!important}
  .media-immersive-page .photo-pro-toolbar .viewer-dashboard-btn,
  .media-immersive-page .photo-pro-toolbar [data-gallery-prev],
  .media-immersive-page .photo-pro-toolbar [data-gallery-next],
  .media-immersive-page .photo-pro-toolbar [data-zoom-out],
  .media-immersive-page .photo-pro-toolbar [data-zoom-in],
  .media-immersive-page .photo-pro-toolbar [data-zoom-fit],
  .media-immersive-page .photo-pro-toolbar [data-zoom-actual],
  .media-immersive-page .photo-pro-toolbar [data-rotate-left],
  .media-immersive-page .photo-pro-toolbar [data-rotate-right],
  .media-immersive-page .photo-pro-toolbar .viewer-divider,
  .media-immersive-page .photo-pro-toolbar .viewer-value{display:none!important}
  .media-immersive-page .viewer-media-name{max-width:44vw!important;color:#fff!important;font-size:12px!important;text-shadow:0 1px 8px #000}
  .media-immersive-page .viewer-counter{color:rgba(255,255,255,.78)!important;min-width:auto!important}
  .media-immersive-page .photo-pro-actions{display:flex!important;grid-column:auto!important;grid-row:auto!important;margin:0!important;gap:7px!important}
  .media-immersive-page .viewer-btn{background:rgba(6,10,17,.52)!important;border-color:rgba(255,255,255,.16)!important;color:#fff!important;backdrop-filter:blur(14px)}
  .media-immersive-page .photo-edge-nav{display:none!important}
  .media-immersive-page .photo-info-panel{position:fixed!important;z-index:60!important;top:auto!important;left:8px!important;right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;width:auto!important;max-height:62dvh!important;border-radius:24px!important;background:rgba(8,15,31,.94)!important;backdrop-filter:blur(26px) saturate(140%)!important;transform:translateY(calc(100% + 28px))!important}
  .media-immersive-page .photo-info-panel.open{transform:translateY(0)!important}
  .media-immersive-page .photo-pro-stage.viewer-ui-hidden .photo-pro-toolbar{opacity:0;transform:translateY(-20px);pointer-events:none}
  .media-immersive-page .omvia-image-canvas img{max-width:none!important;max-height:none!important}
  .photo-library-head{align-items:flex-start;flex-direction:column;padding:16px 12px 10px}
  .photo-library-segment{width:100%}.photo-library-segment button{flex:1}
  .photo-library{padding:0 2px calc(86px + env(safe-area-inset-bottom))}
  .photo-month{margin-top:8px}
  .photo-month-head{top:67px;padding:9px 8px 7px}
  .photo-native-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
  .photo-native-item{border-radius:2px}
  .photo-native-meta{display:none}.photo-native-fav{opacity:1;width:25px;height:25px;right:5px;top:5px}
@media(min-width:701px) and (max-width:1100px){.photo-native-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1500px){.photo-native-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}

.photo-density-compact .photo-native-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}

/* authentication surfaces rebuilt in the same design language */
.ref-auth-page,.ref-register-page{min-height:100dvh;background:var(--bg);padding:34px}.ref-auth-card{width:min(1220px,100%);min-height:760px;margin:auto;display:grid;grid-template-columns:minmax(0,.9fr) minmax(430px,1.1fr);border:1px solid var(--line);border-radius:28px;background:var(--panel);overflow:hidden;box-shadow:var(--shadow)}.ref-auth-form-side{padding:62px 70px}.ref-auth-head,.ref-register-top-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}.ref-auth-brand img,.ref-register-top img{width:205px}.ref-theme-toggle{width:44px;height:44px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);display:grid;place-items:center}.ref-theme-toggle svg{width:20px;height:20px}.ref-auth-copy{margin-top:58px}.ref-auth-copy h1,.ref-register-form-card h1{font-size:42px;line-height:1.02;letter-spacing:-.05em;margin:0 0 10px}.ref-auth-copy p,.ref-register-form-card>p{margin:0;color:var(--muted);line-height:1.6}.ref-auth-form{display:grid;gap:18px;margin-top:30px}.ref-auth-form label>span{display:block;margin-bottom:8px;color:var(--text);font-size:12px;font-weight:800}.ref-input{height:56px;display:flex;align-items:center;gap:12px;padding:0 15px;border:1px solid var(--line);border-radius:15px;background:var(--panel-2)}.ref-input>svg,.ref-input-icon{width:20px;height:20px;flex:0 0 20px}.ref-input input{width:100%;height:100%;border:0;outline:0;background:transparent;color:var(--text)}.ref-eye{width:36px;height:36px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center}.ref-eye img,.ref-eye svg{width:19px;height:19px}.ref-auth-primary{height:54px;border:0;border-radius:15px;background:var(--brand-gradient);color:#fff;font-weight:800}.ref-auth-row{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px}.ref-checkbox{display:flex!important;align-items:flex-start;gap:9px}.ref-checkbox input{width:16px;height:16px;accent-color:var(--blue)}.ref-checkbox span{margin:0!important;color:var(--muted)!important;font-weight:500!important}.ref-auth-row a,.ref-auth-switch a,.ref-register-top a,.ref-register-legal a,.ref-terms a{color:var(--blue);text-decoration:none}.ref-auth-separator{display:flex;align-items:center;gap:12px;margin:24px 0;color:var(--muted);font-size:11px}.ref-auth-separator::before,.ref-auth-separator::after{content:"";height:1px;background:var(--line);flex:1}.ref-auth-alt,.ref-register-alt{display:grid;gap:10px}.ref-auth-alt>* , .ref-register-alt a{min-height:48px;border:1px solid var(--line);border-radius:14px;background:var(--panel-2);display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:12px;font-weight:700}.ref-auth-switch,.ref-register-legal{text-align:center;color:var(--muted);font-size:11px}.ref-auth-error{margin-top:18px;padding:12px;border:1px solid color-mix(in srgb,#e84a6f 30%,var(--line));border-radius:13px;background:color-mix(in srgb,#e84a6f 7%,var(--panel));color:#c13b5e;font-size:12px}.ref-auth-visual,.ref-register-visual{background:linear-gradient(145deg,var(--panel-2),var(--panel));border-left:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;padding:60px}.ref-auth-orbit,.ref-register-orbit{min-height:350px;display:grid;place-items:center;position:relative}.ref-cloud-outline{width:280px;height:150px;border:1px solid var(--line);border-radius:80px;background:var(--panel);display:grid;place-items:center;box-shadow:var(--shadow-soft)}.ref-cloud-outline img{width:92px}.ref-auth-benefits,.ref-register-benefits{display:grid;gap:18px}.ref-auth-benefits>div,.ref-register-benefits>div{display:grid;grid-template-columns:46px 1fr;gap:14px;align-items:center}.ref-auth-benefits>div>span,.ref-register-benefits>div>span{width:46px;height:46px;border-radius:14px;background:var(--panel);border:1px solid var(--line);display:grid;place-items:center}.ref-auth-benefits p,.ref-register-benefits p{display:grid;gap:4px;margin:0}.ref-auth-benefits small,.ref-register-benefits small{color:var(--muted);font-size:11px}.ref-register-top{width:min(1220px,100%);height:62px;margin:0 auto 18px;display:flex;align-items:center;justify-content:space-between}.ref-register-grid{width:min(1220px,100%);margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:18px}.ref-register-form-card,.ref-register-visual{border:1px solid var(--line);border-radius:24px;background:var(--panel);box-shadow:var(--shadow-soft)}.ref-register-form-card{padding:42px}.ref-register-alt{grid-template-columns:repeat(3,1fr)}
@media(max-width:760px){.ref-auth-page,.ref-register-page{padding:0}.ref-auth-card{display:block;min-height:100dvh;border:0;border-radius:0;box-shadow:none}.ref-auth-form-side{padding:calc(28px + env(safe-area-inset-top)) 22px 50px}.ref-auth-visual,.ref-register-visual{display:none}.ref-auth-copy{margin-top:44px}.ref-auth-copy h1,.ref-register-form-card h1{font-size:38px}.ref-register-top{height:76px;padding:0 20px;margin:0}.ref-register-top img{width:180px}.ref-register-top-actions>span{font-size:10px}.ref-register-grid{display:block;width:100%}.ref-register-form-card{border:0;border-radius:0;box-shadow:none;padding:28px 22px 50px}.ref-register-alt{grid-template-columns:1fr}}

/* v1.9.14 — theme integrity lock: no mixed light/dark surfaces */
html,body{background:var(--bg)!important;color:var(--text)!important}
body,[data-omvia-route]{background:var(--bg)!important;color:var(--text)!important}
.ref-shell,.files-ref-shell,.gallery-experience-shell,.gallery-workspace,.page-shell,.admin-shell,.account-shell,.ref-auth-page,.ref-register-page{background:var(--bg)!important;color:var(--text)!important}
.ref-sidebar,.context-sidebar,.gallery-sidebar,.topbar,.page-topbar,.ref-topbar,.gallery-topbar,.admin-top,.account-top,.section-card,.ref-card,.files-browser,.files-browser-shell,.gallery-photo-stream,.gallery-toolbar,.ref-auth-card,.ref-register-form-card,.ref-register-visual,.ref-auth-visual,.preview-card,.platform-shell-card{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
.ref-search,.gallery-search,.search-wrap,.search-box,.search-input,.form-control,.ref-input,input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
.ref-search input,.gallery-search input,.search-wrap input,.search-box input,.search-input,.form-control,.ref-input input,input,select,textarea{color:var(--text)!important;-webkit-text-fill-color:var(--text)!important}
.ref-search .svg,.gallery-search .svg,.search-wrap .svg,.search-box .svg,.ref-input>svg,.ref-input-icon{color:var(--muted)!important;fill:currentColor}
.ref-search input::placeholder,.gallery-search input::placeholder,.search-wrap input::placeholder,.search-box input::placeholder,.form-control::placeholder,input::placeholder,textarea::placeholder{color:var(--muted)!important;opacity:1}
.ref-mobile-nav,.gallery-mobile-nav{border-color:var(--line)!important;color:var(--text)!important}
html[data-theme="light"] .ref-mobile-nav,html[data-theme="light"] .gallery-mobile-nav{background:rgba(255,255,255,.96)!important;box-shadow:0 16px 46px rgba(33,52,94,.15)!important}
html[data-theme="dark"] .ref-mobile-nav,html[data-theme="dark"] .gallery-mobile-nav{background:rgba(16,26,44,.96)!important;box-shadow:0 16px 46px rgba(0,0,0,.34)!important}
html[data-theme="light"] .ref-search,html[data-theme="light"] .gallery-search,html[data-theme="light"] .search-wrap,html[data-theme="light"] .search-box,html[data-theme="light"] .search-input,html[data-theme="light"] .form-control,html[data-theme="light"] .ref-input{background:#fff!important;color:#0d1838!important;border-color:#d8e2f0!important}
html[data-theme="dark"] .ref-search,html[data-theme="dark"] .gallery-search,html[data-theme="dark"] .search-wrap,html[data-theme="dark"] .search-box,html[data-theme="dark"] .search-input,html[data-theme="dark"] .form-control,html[data-theme="dark"] .ref-input{background:#101a2c!important;color:#f4f7ff!important;border-color:#243754!important}
html[data-theme="light"] .ref-search input,html[data-theme="light"] .gallery-search input,html[data-theme="light"] .search-wrap input,html[data-theme="light"] .search-box input{color:#0d1838!important}
html[data-theme="dark"] .ref-search input,html[data-theme="dark"] .gallery-search input,html[data-theme="dark"] .search-wrap input,html[data-theme="dark"] .search-box input{color:#f4f7ff!important}
.ref-icon-button,.gallery-icon-btn,.icon-btn,.ref-theme-toggle,.theme-btn{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
.theme-logo{transition:opacity .18s ease}


/* Omvia Cloud 2.0.11.4-R121 — Files section-head padding repair
   Keeps the approved pill/action language while correcting cramped section padding
   and alignment for My Files / Photos action toggles on mobile and PWA. */
body[data-omvia-route="files.php"] .file-browser-card>.section-head,
body[data-omvia-route="files.php"] .photo-library-card>.section-head{
  align-items:flex-start!important;
  padding:22px 24px 20px!important;
  gap:18px!important;
}
body[data-omvia-route="files.php"] .file-browser-card>.section-head>div:first-child,
body[data-omvia-route="files.php"] .photo-library-card>.section-head>div:first-child{min-width:0!important}
body[data-omvia-route="files.php"] .file-browser-card>.section-head h2,
body[data-omvia-route="files.php"] .photo-library-card>.section-head h2{margin:0!important;line-height:.98!important;letter-spacing:-.04em!important}
body[data-omvia-route="files.php"] .file-browser-card>.section-head p,
body[data-omvia-route="files.php"] .photo-library-card>.section-head p{margin:10px 0 0!important;font-size:13px!important;line-height:1.45!important}
body[data-omvia-route="files.php"] .file-browser-card>.section-head .section-actions,
body[data-omvia-route="files.php"] .photo-library-card>.section-head .section-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;flex:0 0 auto!important;padding-top:2px!important}
body[data-omvia-route="files.php"] .file-browser-card>.section-head .section-actions .icon-btn,
body[data-omvia-route="files.php"] .photo-library-card>.section-head .section-actions .icon-btn{width:48px!important;height:48px!important;min-height:48px!important;border-radius:16px!important}
@media(max-width:760px){
  body[data-omvia-route="files.php"] .file-browser-card>.section-head,
  body[data-omvia-route="files.php"] .photo-library-card>.section-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start!important;
    padding:18px 16px 16px!important;
    gap:14px!important;
  }
  body[data-omvia-route="files.php"] .file-browser-card>.section-head h2,
  body[data-omvia-route="files.php"] .photo-library-card>.section-head h2{font-size:clamp(18px,6.6vw,22px)!important}
  body[data-omvia-route="files.php"] .file-browser-card>.section-head p,
  body[data-omvia-route="files.php"] .photo-library-card>.section-head p{font-size:12.5px!important;line-height:1.42!important;margin-top:8px!important}
  body[data-omvia-route="files.php"] .file-browser-card>.section-head .section-actions,
  body[data-omvia-route="files.php"] .photo-library-card>.section-head .section-actions{gap:10px!important;padding-top:0!important;align-self:start!important}
  body[data-omvia-route="files.php"] .file-browser-card>.section-head .section-actions .icon-btn,
  body[data-omvia-route="files.php"] .photo-library-card>.section-head .section-actions .icon-btn{width:46px!important;height:46px!important;min-height:46px!important;border-radius:15px!important}
}
