:root {
  color-scheme: light;
  --primary: #471aff;
  --purple: #9500ff;
  --ink: #171524;
  --muted: #777184;
  --line: #eeedf3;
  --canvas: #f7f8fc;
  --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
body.modal-open { position: fixed; width: 100%; overflow: hidden; }
button, input { font: inherit; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; color: inherit; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #8966ff; outline-offset: 3px; }
button:disabled { opacity: .3; cursor: default; }
button:active:not(:disabled) { transform: scale(.98); }
a { color: inherit; text-decoration: none; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
img { max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.app { min-height: 100vh; min-height: 100dvh; }
.sidebar { width: 248px; background: #fff; border-right: 1px solid var(--line); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 32px 18px 20px; z-index: 10; }
.brand { display: flex; align-items: center; gap: 9px; padding: 2px 12px 44px; }
.official-logo { width: 116px; height: auto; display: block; flex-shrink: 0; }
.files-word { font-size: 21px; font-weight: 500; letter-spacing: -.7px; color: #888195; white-space: nowrap; }
.nav-label { font-size: 12px; color: #9893a4; letter-spacing: 1px; font-weight: 600; margin: 0 12px 17px; }
.sidebar nav { display: flex; flex-direction: column; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 14px 12px; background: transparent; border-radius: 14px; color: #797186; text-align: left; font-size: 13px; min-height: 50px; font-weight: 550; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item span { white-space: nowrap; }
.nav-item.active { color: var(--primary); background: #f0ebff; }
.nav-item b { font-size: 12px; font-weight: 600; padding: 2px 6px; background: #e6ddff; border-radius: 6px; margin-left: auto; }
.upload-button { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--primary); color: white; font-weight: 550; font-size: 14px; min-height: 48px; padding: 12px 8px; border-radius: 14px; margin: 27px 0 0; box-shadow: 0 5px 15px #471aff14; }
.upload-button svg { width: 18px; height: 18px; }
.sidebar-bottom { margin-top: auto; }
.small-note { padding: 26px 12px 31px; display: flex; gap: 11px; align-items: center; color: #a7a1b4; }
.small-note svg { width: 29px; height: 29px; stroke-width: 1.2; }
.small-note p { font-size: 13px; line-height: 1.5; margin: 0; }
.account { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 22px 7px 2px; }
.avatar { width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 17px; flex-shrink: 0; }
.self { background: #e9e6ff; color: #7150cf; }
.account strong { display: block; font-size: 13px; font-weight: 600; }
.account span:not(.account-decoration) { display: block; font-size: 11px; margin-top: 5px; color: #938a9f; }
.account-decoration { margin-left: auto; color: #9b7dfa; font-size: 21px; }
.workspace { margin-left: 248px; min-width: 0; }
.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 44px; border-bottom: 1px solid var(--line); background: #ffffffc9; }
.breadcrumb { font-size: 12px; color: #90879c; display: flex; gap: 17px; align-items: center; }
.breadcrumb strong { font-weight: 500; color: #696174; }
.breadcrumb > span { color: #d3cfda; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.prototype { font-size: 12px; color: #8b819c; border: 1px solid #e5e0ed; padding: 6px 10px; border-radius: 20px; white-space: nowrap; }
.icon-button { width: 44px; height: 44px; padding: 10px; display: grid; place-items: center; border-radius: 12px; color: #918a9e; background: transparent; flex-shrink: 0; }
.icon-button svg { width: 22px; height: 22px; }
.mobile-brand, .mobile-demo, .mobile-nav, .mobile-gradient, .swipe-hint { display: none; }
main { max-width: 1350px; margin: auto; padding: 38px 44px 0; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; position: relative; isolation: isolate; }
.page-intro > div:not(.official-gradient) { position: relative; z-index: 1; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.8px; color: #9a91ad; margin-bottom: 12px; }
h1 { font-size: 34px; letter-spacing: -1.3px; line-height: 1.2; font-weight: 650; margin: 0; }
.heading-dot { color: var(--primary); }
.page-intro p { font-size: 16px; color: #8a8195; line-height: 1.5; margin: 12px 0 0; }
.round-action { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: #fff; color: var(--primary); box-shadow: 0 3px 20px #27008e07; }
.collection-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 22px; margin-bottom: 34px; }
.featured-album { position: relative; overflow: hidden; min-width: 0; min-height: 354px; border-radius: 22px; text-align: left; padding: 24px; color: white; background: #289bab; box-shadow: 0 10px 30px #2539530b; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform .8s ease; }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg,#06152622,transparent 28%,#071b2155 60%,#081e34e6); }
.album-top { position: absolute; top: 22px; left: 22px; right: 22px; display: flex; justify-content: space-between; }
.glass-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: #19384d55; border: 1px solid #ffffff35; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 7px 10px; border-radius: 10px; }
.glass-label svg { width: 14px; height: 14px; }
.glass-label.new { background: white; color: #3d5866; font-weight: 600; }
.album-bottom { position: absolute; bottom: 24px; left: 24px; right: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.album-bottom > div { min-width: 0; }
.album-from { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #ffffffdb; }
.tiny-avatar { width: 24px; height: 24px; display: grid; place-items: center; flex-shrink: 0; background: #cabaff; color: #573a87; border: 1px solid #ffffff66; border-radius: 50%; font-size: 12px; }
.album-bottom h2 { font-size: 28px; font-weight: 550; letter-spacing: -.8px; line-height: 1.2; margin: 12px 0 9px; }
.album-bottom p { font-size: 12px; color: #ffffffc7; margin: 0; }
.album-bottom p span { margin: 0 7px; }
.album-open { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #ffffff55; background: #ffffff26; border-radius: 50%; }
.album-open svg { width: 20px; height: 20px; }
.side-albums { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.message-card { border-radius: 20px; background: linear-gradient(118deg,#f0eaff,#eeedff 65%,#edf4ff); padding: 19px 22px; text-align: left; position: relative; flex: 1; overflow: hidden; isolation: isolate; }
.message-head { display: flex; align-items: center; gap: 10px; }
.anna { width: 36px; height: 36px; font-size: 14px; color: white; background: linear-gradient(150deg,#bd93ff,#a16deb); }
.message-head strong { display: block; font-size: 14px; font-weight: 650; }
.message-head div > span { font-size: 12px; color: #8e7ba8; display: block; margin-top: 3px; }
.card-ellipsis { margin-left: auto; width: 20px; color: #9f8aba; }
.message-card > p { font-size: 17px; line-height: 1.5; font-weight: 500; letter-spacing: -.3px; margin: 14px 0; }
.wave-emoji { display: inline-block; animation: heartBeat 5s ease-in-out infinite; transform-origin: bottom center; }
.message-foot { display: flex; gap: 10px; align-items: center; color: #89739f; font-size: 12px; }
.photo-stack { display: flex; padding-left: 2px; }
.photo-stack img { width: 26px; height: 26px; object-fit: cover; border: 2px solid #f2edff; border-radius: 8px; margin-left: -3px; transform: rotate(-8deg); }
.photo-stack img:nth-child(2) { transform: rotate(6deg); }
.photo-stack img:nth-child(3) { transform: rotate(-3deg); }
.message-foot > svg { width: 15px; height: 15px; margin-left: auto; color: #9c79c6; }
.official-gradient { position: absolute; right: -105px; bottom: -115px; pointer-events: none; opacity: .65; --gb-color-1: #a078c4; --gb-color-2: #8083ff; --gb-color-3: #93bfff; --gb-color-4: #b186ff; }
.message-head, .message-card > p, .message-foot { position: relative; z-index: 1; }
.document-collection, .video-collection { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; background: white; text-align: left; min-width: 0; }
.document-collection > div, .video-collection > div { min-width: 0; }
.doc-collection-icon { width: 40px; height: 42px; flex-shrink: 0; display: grid; place-items: center; background: #f1eaff; border-radius: 12px; color: #9363e3; }
.doc-collection-icon svg { width: 22px; height: 22px; }
.document-collection strong, .video-collection strong { font-size: 14px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-collection div > span, .video-collection div > span { font-size: 12px; display: block; color: #8b7e97; margin-top: 4px; }
.document-collection > svg { margin-left: auto; width: 16px; height: 16px; color: #ac9bbe; }
.video-thumb { position: relative; width: 44px; height: 42px; flex-shrink: 0; overflow: hidden; border-radius: 12px; }
.video-thumb > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.video-thumb > span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.video-thumb svg { width: 17px; height: 17px; fill: currentColor; stroke-width: 0; }
.duration { font-size: 12px; color: #8d7e9a; margin-left: auto; }
.files-section { scroll-margin-top: 88px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section-head h2 { font-size: 21px; letter-spacing: -.6px; font-weight: 600; margin: 0; }
.section-head h2 span { font-size: 13px; color: #9d8dac; margin-left: 7px; font-weight: 400; letter-spacing: 0; }
.text-button { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 0; background: transparent; color: var(--primary); font-size: 14px; font-weight: 550; white-space: nowrap; }
.text-button svg { width: 18px; height: 18px; }
.filter-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.tabs { display: flex; align-items: center; gap: 3px; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { font-size: 14px; font-weight: 500; background: transparent; border-radius: 11px; min-height: 44px; padding: 10px 12px; color: #81728d; display: flex; gap: 5px; align-items: center; white-space: nowrap; flex-shrink: 0; }
.tab > span { font-size: 12px; color: #9c8ca6; }
.tab.active { color: var(--primary); background: #ede7ff; }
.tab.active > span { color: #7955d2; }
.filter-controls { display: flex; align-items: center; gap: 8px; min-width: 0; }
.search { display: flex; align-items: center; gap: 8px; color: #a697b1; max-width: 166px; min-width: 0; min-height: 44px; }
.search svg { width: 20px; height: 20px; }
.search input { font-size: 16px; border: 0; border-radius: 0; background: transparent; min-width: 0; width: 100%; color: #4b3a5e; appearance: none; -webkit-appearance: none; }
.search input::placeholder { color: #9a8da5; opacity: 1; }
.view-toggle { border-left: 1px solid #e5dfed; border-radius: 0; }
.file-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 18px; }
.file-card { min-width: 0; position: relative; animation: cardIn .4s ease both; animation-delay: calc(var(--i)*25ms); }
.file-open { width: 100%; padding: 0; background: transparent; text-align: left; display: block; }
.file-preview { width: 100%; aspect-ratio: 1.4; position: relative; overflow: hidden; border-radius: 16px; background: #ece5f2; display: grid; place-items: center; }
.file-preview > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.file-type-pill { position: absolute; bottom: 10px; left: 10px; font-size: 12px; padding: 3px 7px; background: #fffffff0; color: #676273; border-radius: 6px; font-weight: 550; }
.file-favorite { position: absolute; z-index: 2; top: 4px; right: 4px; background: transparent; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; color: #51455e; }
.file-favorite::before { content: ''; position: absolute; inset: 5px; background: #ffffffeb; border-radius: 50%; }
.file-favorite svg { width: 17px; height: 17px; position: relative; }
.file-title-row { display: flex; align-items: center; justify-content: space-between; min-width: 0; margin: 10px 1px 5px; gap: 6px; }
.file-title-row strong { font-size: 14px; font-weight: 550; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.file-title-row svg { width: 16px; height: 16px; color: #ae9dbd; }
.file-meta { font-size: 12px; color: #927e9f; margin: 0 1px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 8px; }
.preview-video { position: absolute; width: 44px; height: 44px; border: 1px solid #ffffff70; background: #ffffff2b; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; border-radius: 50%; display: grid; place-items: center; }
.preview-video svg { width: 18px; height: 18px; fill: #fff; stroke-width: 0; margin-left: 3px; }
.file-preview.document { background: linear-gradient(135deg,#f1eafd,#e8eafa); }
.paper-icon { width: 62px; height: 76px; background: white; border-radius: 9px; box-shadow: 0 7px 18px #5742770e; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #8757d9; }
.paper-icon svg { width: 27px; height: 27px; stroke-width: 1.5; }
.paper-icon span { font-size: 12px; letter-spacing: 1px; font-weight: 650; }
.empty-state { text-align: center; background: white; border: 1px solid var(--line); border-radius: 20px; padding: 42px 20px; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; background: #f2ebff; border-radius: 20px; margin: 0 auto 20px; color: #9062d5; }
.empty-state h3 { font-size: 20px; margin: 0 0 10px; }
.empty-state p { font-size: 16px; color: #857292; }
.secondary-button { background: #f0e9ff; color: #6d40c9; border-radius: 12px; padding: 12px 18px; min-height: 44px; font-size: 14px; }
.file-grid.list-view { display: flex; flex-direction: column; gap: 9px; }
.list-view .file-card { padding: 10px 12px; border-radius: 16px; background: #fff; }
.list-view .file-open { display: grid; grid-template-columns: 60px minmax(0,1fr); column-gap: 12px; align-items: center; }
.list-view .file-preview { width: 60px; height: 60px; grid-row: span 2; border-radius: 11px; }
.list-view .file-title-row { margin: 0; align-self: end; padding: 0 36px 5px 0; }
.list-view .file-meta { align-self: start; justify-content: flex-start; gap: 2px 9px; padding-right: 34px; }
.list-view .file-favorite { top: 18px; right: 4px; }
.list-view .file-favorite::before { background: #f4f0fb; }
.list-view .file-type-pill, .list-view .file-title-row svg { display: none; }
.list-view .paper-icon { transform: scale(.6); }
.list-view .preview-video { width: 27px; height: 27px; }
.list-view .preview-video svg { width: 12px; height: 12px; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 30px 0; margin-top: 30px; border-top: 1px solid var(--line); color: #9a8ea4; font-size: 12px; }
footer > span { display: flex; align-items: center; gap: 6px; }
footer svg { width: 14px; height: 14px; }
footer small { font-size: 12px; }
dialog { border: 0; padding: 0; }
dialog::backdrop { background: #110922b8; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.viewer { background: #100c18; color: #fff; width: min(1180px,94vw); height: 94vh; height: min(880px,94dvh); max-width: none; max-height: none; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 100px #0006; }
.viewer[open] { display: flex; flex-direction: column; animation: dialogIn .22s ease; }
.viewer-top { display: flex; justify-content: space-between; padding: 16px 20px; align-items: center; gap: 12px; flex-shrink: 0; }
.viewer-top > div:first-child { min-width: 0; }
.viewer-top strong { font-size: 14px; font-weight: 500; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.viewer-top span { font-size: 12px; color: #aaa1b4; display: block; margin-top: 4px; }
.viewer-actions { display: flex; gap: 6px; flex-shrink: 0; }
.viewer-actions button { color: #e5daee; background: #ffffff0d; }
.viewer-image-area { position: relative; min-height: 0; flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 64px; touch-action: pan-y pinch-zoom; }
.viewer-image-area > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; user-select: none; -webkit-user-select: none; }
.viewer-prev, .viewer-next { position: absolute; z-index: 1; top: calc(50% - 22px); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: white; background: #ffffff18; }
.viewer-prev { left: 12px; }
.viewer-prev svg { transform: rotate(180deg); }
.viewer-next { right: 12px; }
.viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 24px; font-size: 14px; color: #b4a7c1; flex-shrink: 0; }
.viewer-like { background: transparent; color: #c9bdd4; display: flex; align-items: center; gap: 7px; font-size: 14px; padding: 10px; min-height: 44px; white-space: nowrap; }
.viewer-like svg { width: 18px; height: 18px; }
.info-dialog { width: 390px; max-width: calc(100vw - 32px); max-height: 90vh; max-height: 90dvh; overflow-y: auto; border-radius: 24px; padding: 38px 30px 30px; text-align: center; background: #fff; color: var(--ink); }
.info-dialog[open] { animation: dialogIn .22s ease; }
.close-dialog { position: absolute; right: 8px; top: 8px; }
.dialog-icon { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(145deg,#00bfff,#471aff 50%,#9500ff); color: #fff; margin: 0 auto 23px; box-shadow: 0 12px 25px #471aff25; }
.dialog-icon svg { width: 29px; height: 29px; }
.info-dialog h2 { font-size: 23px; letter-spacing: -.7px; line-height: 1.25; margin: 0 0 13px; overflow-wrap: anywhere; }
.info-dialog p { font-size: 16px; line-height: 1.6; color: #85738f; margin: 0 0 25px; }
.primary-button { padding: 14px 26px; min-height: 48px; border-radius: 14px; color: white; background: var(--primary); width: 100%; font-size: 16px; font-weight: 550; }
.toast { position: fixed; left: calc(50% + 124px); bottom: 28px; transform: translate(-50%,15px); display: flex; align-items: center; gap: 10px; pointer-events: none; padding: 14px 21px; border-radius: 14px; background: #241a35; color: #fff; box-shadow: 0 10px 35px #220a4333; font-size: 14px; opacity: 0; transition: .25s ease; z-index: 50; max-width: 90vw; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.toast svg { width: 17px; height: 17px; color: #b895ff; }
.noscript-note { margin: 20px; padding: 20px; border-radius: 16px; background: white; color: #6945ba; }
.reveal { animation: cardIn .55s ease both; }
.collection-layout.reveal { animation-delay: 60ms; }
.files-section.reveal { animation-delay: 110ms; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes heartBeat { 0%,65%,100% { transform: scale(1); } 73% { transform: scale(1.15) rotate(-8deg); } 80% { transform: scale(1) rotate(5deg); } 87% { transform: scale(1.1); } 94% { transform: scale(1); } }
@media (hover: hover) and (pointer: fine) {
  button { transition: background .2s, transform .2s; }
  .nav-item:hover { background: #f5f2ff; }
  .upload-button:hover, .primary-button:hover { background: #6036ff; }
  .icon-button:hover, .round-action:hover { background: #ede8fa; color: var(--primary); }
  .featured-album:hover .cover { transform: scale(1.04); }
  .document-collection:hover, .video-collection:hover { transform: translateY(-2px); }
  .tab:hover:not(.active) { background: #efedf5; }
  .file-open:hover .file-preview > img { transform: scale(1.04); }
  .viewer-actions button:hover { background: #ffffff23; }
}
@media (min-width: 1550px) {
  main { padding-top: 48px; }
  .featured-album { min-height: 382px; }
  .message-card > p { font-size: 21px; margin: 21px 0; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .sidebar { width: 80px; align-items: center; padding: 26px 9px; }
  .brand { padding: 0; width: 42px; height: 42px; overflow: hidden; margin-bottom: 34px; }
  .brand .official-logo { width: 132px; max-width: none; }
  .brand .files-word, .nav-label, .nav-item span, .nav-item b, .upload-button, .small-note, .account > div:not(.avatar), .account-decoration { display: none; }
  .sidebar nav { width: 100%; gap: 10px; }
  .nav-item { justify-content: center; padding: 14px; }
  .nav-item svg { width: 23px; height: 23px; }
  .account { padding: 21px 0 0; }
  .workspace { margin-left: 80px; }
  .topbar { padding-inline: 28px; }
  main { padding: 30px 28px 0; }
  .collection-layout { gap: 16px; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
  .album-bottom h2 { font-size: 25px; }
  .album-open { display: none; }
  .message-card { padding: 18px; }
  .document-collection, .video-collection { gap: 9px; padding: 12px; }
  .toast { left: calc(50% + 40px); }
}
@media (max-width: 900px) {
  :root { --canvas: #f5f5f9; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .topbar { position: sticky; top: 0; z-index: 12; min-height: 68px; padding: calc(10px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px)); gap: 8px; background: #fffffff5; border-bottom: 1px solid #eceaf2; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .mobile-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .mobile-brand .official-logo { width: 100px; }
  .mobile-brand .files-word { font-size: 20px; letter-spacing: -.6px; }
  .breadcrumb, .desktop-demo { display: none; }
  .mobile-demo { display: inline; }
  .prototype { font-size: 12px; padding: 4px 8px; color: #91849e; background: #f6f3fc; border: 0; }
  .top-actions { gap: 4px; }
  .top-actions .icon-button { width: 44px; height: 44px; }
  main { padding: 24px max(20px,env(safe-area-inset-right,0px)) calc(100px + var(--safe-bottom)) max(20px,env(safe-area-inset-left,0px)); }
  .page-intro { overflow: hidden; margin-bottom: 20px; padding-bottom: 2px; }
  .mobile-gradient { display: block; right: -40px; top: -65px; bottom: auto; opacity: .16; z-index: -1; }
  .eyebrow { display: none; }
  h1 { font-size: 30px; letter-spacing: -1px; }
  .page-intro p { font-size: 14px; margin-top: 8px; color: #8a7c95; }
  .round-action { display: none; }
  .collection-layout { gap: 14px; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); margin-bottom: 24px; }
  .featured-album { min-height: 300px; }
  .album-open { display: none; }
  .album-bottom { left: 20px; right: 20px; bottom: 20px; }
  .album-bottom h2 { font-size: 25px; }
  .message-card { padding: 16px; }
  .message-card > p { font-size: 16px; }
  .document-collection, .video-collection { padding: 11px 12px; gap: 9px; }
  .document-collection strong, .video-collection strong { font-size: 14px; }
  .document-collection > svg, .duration { display: none; }
  .filter-toolbar { gap: 12px; }
  .tabs { flex: 1; }
  .filter-controls { border-radius: 14px; background: white; padding: 2px 8px 2px 13px; }
  .search input { font-size: 16px; }
  .search { max-width: 180px; }
  .view-toggle { border: 0; }
  .file-grid { gap: 22px 12px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; position: fixed; bottom: 0; left: 0; right: 0; z-index: 15; padding: 6px max(6px,env(safe-area-inset-right,0px)) calc(6px + var(--safe-bottom)) max(6px,env(safe-area-inset-left,0px)); background: #fffffff5; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid #eae5ef; box-shadow: 0 -5px 24px #24113b04; }
  .mobile-nav button { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-width: 0; min-height: 56px; padding: 5px 2px; border-radius: 14px; background: transparent; color: #92849f; font-size: 12px; line-height: 1.3; }
  .mobile-nav svg { width: 24px; height: 24px; }
  .mobile-nav .active { color: var(--primary); }
  .mobile-nav .active::before { content: ''; position: absolute; top: 1px; width: 49px; height: 32px; border-radius: 12px; background: #eee8ff; z-index: -1; }
  .mobile-nav .mobile-add svg { background: var(--primary); color: white; border-radius: 8px; width: 27px; height: 27px; padding: 3px; margin-top: -3px; }
  .toast { left: 50%; bottom: calc(84px + var(--safe-bottom)); width: max-content; max-width: calc(100vw - 32px); }
  .viewer { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; border-radius: 0; margin: 0; }
  .viewer-top { padding: calc(10px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px)); }
  .viewer-image-area { padding: 0; }
  .viewer-prev, .viewer-next { top: auto; bottom: 12px; background: #1c112a99; }
  .viewer-prev { left: max(12px,env(safe-area-inset-left,0px)); }
  .viewer-next { right: max(12px,env(safe-area-inset-right,0px)); }
  .viewer-bottom { padding: 12px max(12px,env(safe-area-inset-right,0px)) calc(12px + var(--safe-bottom)) max(16px,env(safe-area-inset-left,0px)); }
  .viewer-bottom > span, .viewer-like { font-size: 13px; }
  .swipe-hint { display: block; font-size: 12px; color: #80718e; margin-top: 3px; }
  .info-dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: none; margin: 0; max-height: 85vh; max-height: 85dvh; border-radius: 26px 26px 0 0; padding: 36px max(24px,env(safe-area-inset-right,0px)) calc(24px + var(--safe-bottom)) max(24px,env(safe-area-inset-left,0px)); }
  .info-dialog::before { content: ''; position: absolute; top: 9px; left: calc(50% - 18px); width: 36px; height: 4px; border-radius: 4px; background: #e7e1ed; }
  .info-dialog p, .info-dialog h2 { max-width: 460px; margin-inline: auto; }
  .info-dialog .primary-button { max-width: 460px; }
  footer { flex-wrap: wrap; font-size: 12px; padding: 24px 0 0; margin-top: 28px; }
}
@media (max-width: 600px) {
  main { padding-top: 20px; padding-left: max(16px,env(safe-area-inset-left,0px)); padding-right: max(16px,env(safe-area-inset-right,0px)); }
  h1 { font-size: clamp(24px,6.7vw,29px); line-height: 1.2; }
  .page-intro p { max-width: 330px; }
  .collection-layout { display: block; }
  .featured-album { display: block; width: 100%; height: clamp(228px,61vw,300px); min-height: 0; border-radius: 20px; }
  .album-top { top: 16px; left: 16px; right: 16px; }
  .glass-label { padding: 6px 9px; }
  .album-bottom { left: 18px; right: 18px; bottom: 18px; }
  .album-bottom h2 { font-size: clamp(23px,6.3vw,28px); margin: 10px 0 8px; }
  .album-open { display: none; }
  .side-albums { display: flex; gap: 8px; margin-top: 10px; }
  .message-card { display: none; }
  .document-collection, .video-collection { min-height: 65px; width: 100%; border: 0; padding: 11px 14px; border-radius: 16px; gap: 12px; }
  .document-collection > svg, .duration { display: block; }
  .section-head { margin-bottom: 8px; }
  .section-head h2 { font-size: 21px; }
  .text-button { font-size: 14px; }
  .filter-toolbar { flex-direction: column; align-items: stretch; margin-bottom: 18px; gap: 10px; }
  .filter-controls { order: -1; width: 100%; padding: 3px 6px 3px 14px; border: 1px solid #eeebf2; }
  .search { max-width: none; flex: 1; }
  .tabs { flex: auto; width: 100%; justify-content: space-between; gap: 2px; }
  .tab { font-size: 14px; padding: 10px; border-radius: 12px; }
  .tab > span { font-size: 12px; }
  .file-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .file-preview { aspect-ratio: 1; border-radius: 16px; }
  .file-title-row { margin: 9px 0 4px; }
  .file-title-row strong { font-size: 14px; }
  .file-title-row svg { display: none; }
  .file-meta { flex-direction: column; font-size: 12px; gap: 1px; }
  .list-view .file-meta { flex-direction: row; }
  footer { flex-direction: column; align-items: center; gap: 8px; }
}
@media (max-width: 359px) {
  .mobile-brand .official-logo { width: 91px; }
  .mobile-brand .files-word { font-size: 18px; }
  .tab { padding: 10px 8px; gap: 4px; }
  .tab > span { display: none; }
  .mobile-nav button { font-size: 11px; }
  .album-from { font-size: 11px; }
}
@media (max-height: 500px) and (max-width: 900px) and (orientation: landscape) {
  .viewer-top { padding-top: 5px; padding-bottom: 5px; }
  .viewer-bottom { padding-top: 2px; padding-bottom: calc(2px + var(--safe-bottom)); }
  .swipe-hint { display: none; }
  .info-dialog { max-height: 96dvh; padding-top: 24px; padding-bottom: 16px; }
  .dialog-icon { display: none; }
  .info-dialog p { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
