/* HY OBSIDIAN V16 — hyOffice rebuild layer.
   Intentionally scoped to body.hyoffice-v16. Existing editor JS and API wiring stay intact. */
body.hyoffice-v16{--ho-cyan:#35eaff;--ho-violet:#a657ff;--ho-pink:#ff3fc8;--ho-ink:#edf7ff;--ho-muted:#9ab0cf;--ho-panel:rgba(4,10,23,.88);--ho-panel-2:rgba(8,17,35,.78);position:relative;isolation:isolate;z-index:0;background:#01040b;color:var(--ho-ink);overflow-x:hidden}
body.hyoffice-v16::before{content:"";position:fixed;inset:-40%;z-index:-2;pointer-events:none;background:radial-gradient(circle at 50% 45%,rgba(53,234,255,.10),transparent 25%),conic-gradient(from 0deg,rgba(53,234,255,.14),transparent 22%,rgba(166,87,255,.13),transparent 49%,rgba(255,63,200,.11),transparent 74%,rgba(53,234,255,.14));filter:blur(78px);animation:ho-blackhole 18s linear infinite,ho-breathe 6s ease-in-out infinite}
body.hyoffice-v16::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(rgba(53,234,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(53,234,255,.035) 1px,transparent 1px);background-size:42px 42px;mask-image:radial-gradient(circle at 50% 35%,#000,transparent 76%);opacity:.5}
body.hyoffice-v16 .hy-mobile-header{display:flex;position:relative;z-index:20;align-items:center;justify-content:flex-start;gap:12px;min-height:58px;padding:9px 18px;background:rgba(2,7,17,.82);border-bottom:1px solid rgba(53,234,255,.28);box-shadow:0 0 28px rgba(53,234,255,.12);backdrop-filter:blur(22px) saturate(165%)}
body.hyoffice-v16 .hy-mobile-header .hy-hamburger,body.hyoffice-v16 .hy-mobile-header .hy-panel-btn{display:none!important}
body.hyoffice-v16 .hy-mobile-title{display:flex;align-items:center;gap:9px;color:var(--ho-ink);font:900 15px/1 Orbitron,Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase;text-shadow:0 0 14px rgba(53,234,255,.45)}
body.hyoffice-v16 .hy-mobile-title::before{content:"";width:30px;height:30px;display:block;background:url('/assets/owl3.png') center/contain no-repeat;filter:drop-shadow(0 0 9px var(--ho-cyan)) drop-shadow(0 0 15px var(--ho-violet))}
body.hyoffice-v16 #os-modes{position:relative;z-index:15;display:flex;gap:8px;align-items:center;padding:10px 18px;background:rgba(2,7,17,.72);border-bottom:1px solid rgba(166,87,255,.24);backdrop-filter:blur(18px)}
body.hyoffice-v16 .os-mode{min-height:38px!important;padding:8px 15px!important;border:1px solid rgba(105,145,204,.34)!important;border-radius:12px!important;background:rgba(8,17,35,.74)!important;color:var(--ho-muted)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;font-weight:850!important;letter-spacing:.04em}
body.hyoffice-v16 .os-mode:hover,body.hyoffice-v16 .os-mode.active{color:#fff!important;border-color:var(--ho-cyan)!important;background:linear-gradient(110deg,rgba(53,234,255,.20),rgba(166,87,255,.18),rgba(255,63,200,.14))!important;box-shadow:0 0 19px rgba(53,234,255,.22),inset 0 0 14px rgba(166,87,255,.10)!important;transform:translateY(-1px)}
body.hyoffice-v16 #os-wrap{position:relative;z-index:1;min-height:calc(100vh - 110px);background:transparent!important}
body.hyoffice-v16 .hyoffice-command-menu{position:relative;z-index:18;display:flex;align-items:center;gap:2px;padding:5px 18px;background:rgba(2,7,17,.82);border-bottom:1px solid rgba(105,145,204,.28);backdrop-filter:blur(18px) saturate(150%)}
body.hyoffice-v16 .hyoffice-command-menu>button{border:0;background:transparent;color:var(--ho-muted);padding:7px 10px;border-radius:8px;font:700 12px Inter,sans-serif;cursor:pointer}
body.hyoffice-v16 .hyoffice-command-menu>button:hover{color:#fff;background:rgba(53,234,255,.12);box-shadow:0 0 13px rgba(53,234,255,.15)}
body.hyoffice-v16 .hyoffice-menu-popover{position:absolute;top:42px;left:12px;display:grid;min-width:190px;padding:7px;border:1px solid rgba(53,234,255,.35);border-radius:13px;background:linear-gradient(145deg,rgba(7,16,34,.98),rgba(1,4,11,.99));box-shadow:0 22px 60px rgba(0,0,0,.65),0 0 22px rgba(53,234,255,.16)}
body.hyoffice-v16 .hyoffice-menu-popover[hidden]{display:none}
body.hyoffice-v16 .hyoffice-menu-popover button{text-align:left;border:0;border-radius:8px;background:transparent;color:var(--ho-ink);padding:8px 10px;font:600 11px Inter,sans-serif;cursor:pointer}
body.hyoffice-v16 .hyoffice-menu-popover button:hover{background:linear-gradient(90deg,rgba(53,234,255,.16),rgba(166,87,255,.15));color:#fff}
body.hyoffice-v16 .hyoffice-color-control{display:grid;place-items:center;padding:0!important;overflow:hidden}
body.hyoffice-v16 .hyoffice-color-control input{width:22px;height:22px;padding:0;border:0!important;background:transparent!important;cursor:pointer}
body.hyoffice-v16 #os-left,body.hyoffice-v16 #os-right{background:linear-gradient(160deg,rgba(5,13,29,.91),rgba(1,4,11,.94))!important;border-color:rgba(105,145,204,.30)!important;box-shadow:0 0 32px rgba(53,234,255,.08),inset 0 1px 0 rgba(255,255,255,.06);backdrop-filter:blur(22px) saturate(155%)}
body.hyoffice-v16 #os-center{background:rgba(1,4,11,.54)!important}
body.hyoffice-v16 .os-sec,body.hyoffice-v16 .os-right-title{color:var(--ho-muted)!important}
body.hyoffice-v16 .os-sec-title,body.hyoffice-v16 .os-right-title{letter-spacing:.16em!important;text-transform:uppercase!important;color:var(--ho-cyan)!important;text-shadow:0 0 9px rgba(53,234,255,.32)}
body.hyoffice-v16 .os-tbtn,body.hyoffice-v16 .os-export-btn,body.hyoffice-v16 .os-ai-chip,body.hyoffice-v16 .pres-nav-btn{border:1px solid rgba(105,145,204,.36)!important;border-radius:10px!important;background:linear-gradient(135deg,rgba(53,234,255,.10),rgba(166,87,255,.10))!important;color:var(--ho-ink)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important}
body.hyoffice-v16 .os-tbtn:hover,body.hyoffice-v16 .os-export-btn:hover,body.hyoffice-v16 .os-ai-chip:hover,body.hyoffice-v16 .pres-nav-btn:hover{border-color:var(--ho-cyan)!important;color:#fff!important;box-shadow:0 0 16px rgba(53,234,255,.23)!important;transform:translateY(-1px)}
body.hyoffice-v16 .gdocs-hbar,body.hyoffice-v16 #sheet-hbar,body.hyoffice-v16 #sheet-formula-bar,body.hyoffice-v16 #pres-prompt-area,body.hyoffice-v16 #sheet-tabs-bar{background:rgba(5,13,29,.90)!important;border-color:rgba(105,145,204,.28)!important;box-shadow:0 7px 25px rgba(0,0,0,.22)}
body.hyoffice-v16 .gdocs-hbar{position:sticky;top:0;z-index:8;display:flex;flex-wrap:wrap;gap:6px;padding:10px 14px!important;border:1px solid rgba(53,234,255,.20)!important;border-radius:16px;margin:10px;backdrop-filter:blur(20px)}
body.hyoffice-v16 .os-select,body.hyoffice-v16 #sheet-formula,body.hyoffice-v16 input,body.hyoffice-v16 textarea,body.hyoffice-v16 select{border:1px solid rgba(105,145,204,.38)!important;border-radius:9px!important;background:rgba(1,6,16,.78)!important;color:var(--ho-ink)!important}
body.hyoffice-v16 #doc-editor{position:relative;max-width:816px!important;min-height:1056px!important;margin:35px auto 70px!important;padding:70px 78px!important;background:#fff!important;color:#18263c!important;border:1px solid rgba(53,234,255,.42)!important;border-radius:3px!important;box-shadow:0 0 0 1px rgba(166,87,255,.18),0 0 34px rgba(53,234,255,.14),0 24px 70px rgba(0,0,0,.48)!important}
body.hyoffice-v16 .hyoffice-ruler{height:24px;margin:0 auto;max-width:816px;border:1px solid rgba(105,145,204,.34);border-radius:8px;background:repeating-linear-gradient(90deg,rgba(53,234,255,.72) 0 1px,transparent 1px 10px),linear-gradient(180deg,rgba(8,17,35,.96),rgba(2,7,17,.96));color:var(--ho-muted);font:700 8px/24px Roboto Mono,monospace;letter-spacing:1px;text-align:center;box-shadow:0 0 17px rgba(53,234,255,.12)}
body.hyoffice-v16 #doc-editor h1,body.hyoffice-v16 #doc-editor h2{color:#234a79!important;text-shadow:none!important}
body.hyoffice-v16 #sheet-grid td,body.hyoffice-v16 #sheet-grid th{border-color:rgba(105,145,204,.28)!important}
body.hyoffice-v16 #sheet-grid th{background:linear-gradient(135deg,rgba(53,234,255,.18),rgba(166,87,255,.13))!important;color:#dff8ff!important}
body.hyoffice-v16 #sheet-grid td.selected,body.hyoffice-v16 #sheet-grid td:focus{background:rgba(53,234,255,.16)!important;outline:2px solid var(--ho-cyan)!important}
body.hyoffice-v16 .os-file-item,body.hyoffice-v16 .os-tpl-item,body.hyoffice-v16 .stp-item{border:1px solid rgba(105,145,204,.28)!important;border-radius:11px!important;background:linear-gradient(135deg,rgba(53,234,255,.07),rgba(166,87,255,.07))!important;color:var(--ho-ink)!important}
body.hyoffice-v16 .os-file-item:hover,body.hyoffice-v16 .os-tpl-item:hover,body.hyoffice-v16 .stp-item:hover{border-color:var(--ho-cyan)!important;box-shadow:0 0 17px rgba(53,234,255,.17)!important}
body.hyoffice-v16 .ps-stage,body.hyoffice-v16 .ps-composer,body.hyoffice-v16 .ps-sidebar,body.hyoffice-v16 .drop-zone,body.hyoffice-v16 .card{border-color:rgba(105,145,204,.34)!important;box-shadow:0 0 24px rgba(53,234,255,.10),inset 0 1px 0 rgba(255,255,255,.06)!important}
body.hyoffice-v16 .hyoffice-share-panel{margin:10px 0;padding:12px;border:1px solid rgba(53,234,255,.28);border-radius:14px;background:linear-gradient(135deg,rgba(53,234,255,.08),rgba(166,87,255,.10));box-shadow:0 0 18px rgba(53,234,255,.09)}
body.hyoffice-v16 .hyoffice-share-panel input{width:100%;padding:9px 10px;margin:6px 0}
body.hyoffice-v16 .hyoffice-share-row{display:flex;gap:6px;flex-wrap:wrap}
body.hyoffice-v16 .hyoffice-share-row button{flex:1;min-height:32px;border:1px solid rgba(53,234,255,.34);border-radius:9px;background:rgba(53,234,255,.10);color:var(--ho-ink);cursor:pointer}
body.hyoffice-v16 .hyoffice-share-row button:hover{border-color:var(--ho-cyan);box-shadow:0 0 14px rgba(53,234,255,.24)}
body.hyoffice-v16 .ps-header-actions .ps-icon-btn{display:none!important}
@keyframes ho-blackhole{to{transform:rotate(360deg)}}
@keyframes ho-breathe{0%,100%{opacity:.66;scale:1}50%{opacity:1;scale:1.06}}
@keyframes ho-word-glow{0%,100%{opacity:.55}50%{opacity:1;text-shadow:0 0 14px var(--ho-pink)}}
@media print{body.hyoffice-v16::before,body.hyoffice-v16::after,body.hyoffice-v16 #os-left,body.hyoffice-v16 #os-right,body.hyoffice-v16 #os-modes,body.hyoffice-v16 .hy-mobile-header,body.hyoffice-v16 .gdocs-hbar,body.hyoffice-v16 .hyoffice-ruler{display:none!important}body.hyoffice-v16 #doc-editor{margin:0!important;box-shadow:none!important;border:0!important}}
@media(max-width:900px){body.hyoffice-v16 #os-left,body.hyoffice-v16 #os-right{background:rgba(2,7,17,.97)!important}body.hyoffice-v16 #doc-editor{min-height:880px!important;margin:24px 10px 60px!important;padding:42px 28px!important}body.hyoffice-v16 .hyoffice-ruler{margin:0 10px}body.hyoffice-v16 #os-modes{overflow-x:auto}}
@media(max-width:640px){body.hyoffice-v16 .hyoffice-command-menu{overflow-x:auto;padding:5px 10px;white-space:nowrap}body.hyoffice-v16 .hyoffice-command-menu>button{flex:0 0 auto}}
@media(prefers-color-scheme:light){body.hyoffice-v16[data-theme="light"]{background:#edf5ff;color:#152d4b}body.hyoffice-v16[data-theme="light"] #os-left,body.hyoffice-v16[data-theme="light"] #os-right,body.hyoffice-v16[data-theme="light"] .hy-mobile-header,body.hyoffice-v16[data-theme="light"] #os-modes{background:rgba(247,252,255,.91)!important;color:#152d4b}body.hyoffice-v16[data-theme="light"] .os-mode,body.hyoffice-v16[data-theme="light"] .os-tbtn,body.hyoffice-v16[data-theme="light"] .os-export-btn{color:#183454!important;background:rgba(255,255,255,.76)!important}}

/* Office navigation dock — mirrors hyMail's persistent liquid-glass dock. */
body.hyoffice-v16 #os-modes{display:none!important}
body.hyoffice-v16 .hyoffice-dock{position:fixed;left:50%;bottom:14px;z-index:1200;display:flex;align-items:stretch;gap:7px;width:min(720px,calc(100vw - 28px));min-height:68px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));transform:translateX(-50%);border:1px solid rgba(105,145,204,.32);border-radius:22px;background:rgba(1,3,8,.76);box-shadow:0 -14px 48px rgba(0,0,0,.5),0 0 30px rgba(53,234,255,.10);backdrop-filter:blur(24px) saturate(175%);overflow:visible}
body.hyoffice-v16 .hyoffice-dock-glass{position:absolute;inset:5px 7px;z-index:-1;border:1px solid transparent;border-radius:17px;background:linear-gradient(145deg,rgba(8,14,28,.92),rgba(1,3,8,.96)) padding-box,conic-gradient(from 0deg,#ff315f,#ff34dd,#a83cff,#5f54ff,#248dff,#22dfff,#20edbd,#83f16d,#ecf35f,#ffb84b,#ff315f) border-box;box-shadow:0 0 26px rgba(53,234,255,.10);animation:ho-dock-chroma 12s linear infinite,ho-dock-breathe 4s ease-in-out infinite}
body.hyoffice-v16 .hyoffice-dock-item{position:relative;display:flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:5px;padding:8px 9px;border:1px solid transparent;border-radius:14px;background:transparent;color:var(--ho-muted);font:800 11px/1 Inter,sans-serif;cursor:pointer;transition:transform .2s ease,color .2s ease,border-color .2s ease,background .2s ease;white-space:nowrap}
body.hyoffice-v16 .hyoffice-dock-item:hover,body.hyoffice-v16 .hyoffice-dock-item.active{color:var(--ho-ink);border-color:var(--ho-cyan);background:linear-gradient(90deg,rgba(53,234,255,.18),rgba(166,87,255,.17),rgba(255,63,200,.12));box-shadow:0 0 22px rgba(53,234,255,.20),inset 0 0 16px rgba(166,87,255,.10);transform:translateY(-2px)}
body.hyoffice-v16 .hyoffice-dock-item.active::after{content:"";position:absolute;left:18%;right:18%;bottom:-5px;height:2px;border-radius:99px;background:linear-gradient(90deg,var(--ho-cyan),var(--ho-pink));box-shadow:0 0 12px var(--ho-cyan)}
body.hyoffice-v16 .hyoffice-dock-icon{display:grid;place-items:center;width:24px;height:24px;color:currentColor;font-size:20px;line-height:1;text-shadow:0 0 12px currentColor}
body.hyoffice-v16 .hyoffice-command-menu{position:sticky;top:0;min-height:46px;padding:7px 20px;border-top:1px solid rgba(53,234,255,.20);border-bottom:1px solid rgba(53,234,255,.30);box-shadow:0 8px 24px rgba(0,0,0,.28),0 0 18px rgba(53,234,255,.08)}
body.hyoffice-v16 .hyoffice-command-menu>button{min-height:30px;padding:7px 13px;color:#d7e9ff;font-size:12px;letter-spacing:.02em}
body.hyoffice-v16 .hyoffice-command-menu>button:first-child{color:#fff;border:1px solid rgba(53,234,255,.42);background:linear-gradient(110deg,rgba(53,234,255,.18),rgba(166,87,255,.13));box-shadow:0 0 15px rgba(53,234,255,.13)}
body.hyoffice-v16 .hyoffice-menu-popover{top:47px;min-width:230px;padding:8px;background:linear-gradient(145deg,rgba(10,22,47,.99),rgba(1,4,11,.995));border-color:rgba(53,234,255,.60);box-shadow:0 24px 70px rgba(0,0,0,.72),0 0 28px rgba(53,234,255,.24);animation:ho-menu-in .16s ease-out}
body.hyoffice-v16 .hyoffice-menu-popover button{min-height:32px;padding:9px 12px;color:#f0f7ff;font-size:12px;line-height:1.2}
body.hyoffice-v16 .hyoffice-menu-popover button:hover{background:linear-gradient(90deg,rgba(53,234,255,.22),rgba(166,87,255,.20));box-shadow:inset 3px 0 0 var(--ho-cyan)}
body.hyoffice-v16 .hy-mobile-header{overflow:visible}
body.hyoffice-v16 .hy-mobile-title::before{display:none}
body.hyoffice-v16 .hyoffice-owl-mark{width:29px!important;height:29px!important;max-width:29px!important;max-height:29px!important;object-fit:contain;flex:0 0 29px;display:block;filter:drop-shadow(0 0 7px var(--ho-cyan)) drop-shadow(0 0 16px var(--ho-violet));animation:ho-owl-breathe 3.2s ease-in-out infinite}
body.hyoffice-v16 .hyoffice-brand-hy{color:var(--ho-ink);font-weight:900;text-shadow:0 0 12px var(--ho-cyan)}
body.hyoffice-v16 .hyoffice-brand-office{background:linear-gradient(90deg,var(--ho-cyan),#438fff,var(--ho-violet),var(--ho-pink),var(--ho-cyan));background-size:240% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:900;animation:ho-logo-shimmer 5s linear infinite}
body.hyoffice-v16 .hyoffice-brand-sub{margin-left:7px;color:var(--ho-cyan);font:700 8px/1 Roboto Mono,monospace;letter-spacing:.16em;text-shadow:0 0 10px currentColor;animation:ho-logo-words 3.4s ease-in-out infinite}
body.hyoffice-v16 .gdocs-hbar{align-items:center;gap:7px;padding:11px 14px!important;border-radius:17px;box-shadow:0 0 24px rgba(53,234,255,.12),inset 0 1px 0 rgba(255,255,255,.08)}
body.hyoffice-v16 .gdocs-hbar .os-tbtn{width:34px;height:34px;min-width:34px;border:1px solid rgba(105,145,204,.38)!important;background:linear-gradient(135deg,rgba(53,234,255,.11),rgba(166,87,255,.12))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 8px rgba(53,234,255,.06)!important}
body.hyoffice-v16 .gdocs-hbar .os-tbtn:hover{box-shadow:0 0 17px rgba(53,234,255,.28),inset 0 0 12px rgba(166,87,255,.16)!important}
body.hyoffice-v16 .gdocs-hbar .hy-toolbar-search{color:var(--ho-cyan)!important}
body.hyoffice-v16 .gdocs-hbar .hy-editor-zoom{min-width:64px!important;max-width:72px!important}
body.hyoffice-v16 #doc-editor .hy-editor-checklist{list-style:none;padding-left:0}
body.hyoffice-v16 #doc-editor .hy-editor-checklist li::before{content:'☐';color:var(--ho-cyan);margin-right:8px}
body.hyoffice-v16 #doc-editor .hy-editor-comment{padding:1px 4px;border-bottom:2px solid var(--ho-pink);background:rgba(255,63,200,.10);box-shadow:0 0 8px rgba(255,63,200,.15)}
body.hyoffice-v16 .gdocs-hbar .hb-sep{width:1px;height:27px;margin:0 2px;background:linear-gradient(180deg,transparent,rgba(53,234,255,.65),transparent)}
body.hyoffice-v16 .gdocs-hbar .os-select{min-height:34px;padding:7px 10px;font-size:11px;font-weight:700;background:rgba(1,6,16,.88)!important}
body.hyoffice-v16 .gdocs-hbar .hf-dd{position:relative;min-width:150px;z-index:20}
body.hyoffice-v16 .gdocs-hbar .hf-dd-trigger{min-height:34px;padding:8px 10px;border:1px solid rgba(105,145,204,.38);border-radius:9px;background:rgba(1,6,16,.88);color:var(--ho-ink);font:700 11px Inter,sans-serif;box-shadow:inset 0 1px 0 rgba(255,255,255,.06);cursor:pointer}
body.hyoffice-v16 .gdocs-hbar .hf-dd-panel{z-index:100;background:linear-gradient(145deg,rgba(10,22,47,.99),rgba(1,4,11,.995));border:1px solid rgba(53,234,255,.52);border-radius:12px;box-shadow:0 22px 60px rgba(0,0,0,.72),0 0 22px rgba(53,234,255,.20)}
body.hyoffice-v16 .gdocs-hbar .hf-dd-item{padding:8px 10px;color:var(--ho-ink);font-size:12px}
body.hyoffice-v16 .gdocs-hbar .hf-dd-item:hover{background:linear-gradient(90deg,rgba(53,234,255,.20),rgba(166,87,255,.18));color:#fff}
body.hyoffice-v16 #doc-editor{margin-bottom:120px!important}
@keyframes ho-dock-chroma{to{transform:rotate(360deg)}}
@keyframes ho-dock-breathe{0%,100%{filter:saturate(1);opacity:.84}50%{filter:saturate(1.45);opacity:1}}
@keyframes ho-owl-breathe{0%,100%{transform:scale(.96);filter:brightness(1) drop-shadow(0 0 5px var(--ho-cyan))}50%{transform:scale(1.05);filter:brightness(1.25) drop-shadow(0 0 12px var(--ho-cyan))}}
@keyframes ho-menu-in{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:640px){body.hyoffice-v16 .hyoffice-dock{bottom:7px;width:calc(100vw - 14px);min-height:64px;padding-inline:7px;border-radius:18px}body.hyoffice-v16 .hyoffice-dock-item{padding:7px 3px;font-size:9px;flex-direction:column;gap:3px}body.hyoffice-v16 .hyoffice-dock-icon{width:21px;height:21px;font-size:17px}body.hyoffice-v16 .hyoffice-command-menu{padding-inline:10px;overflow-x:auto;white-space:nowrap}body.hyoffice-v16 .hyoffice-command-menu>button{flex:0 0 auto}body.hyoffice-v16 .gdocs-hbar{margin:7px;gap:5px;padding:8px!important}body.hyoffice-v16 .gdocs-hbar .os-tbtn{width:32px;height:32px;min-width:32px}}

/* Final Office polish: match hyMail's one-pixel chroma edges and keep menus above every canvas. */
body.hyoffice-v16 .hyoffice-command-menu{z-index:5000!important;isolation:isolate;overflow:visible!important}
body.hyoffice-v16 .hyoffice-menu-popover{z-index:6000!important;max-height:none!important;overflow:visible!important;white-space:nowrap}
body.hyoffice-v16 .hyoffice-menu-popover{position:fixed!important;min-width:230px!important;max-width:min(340px,calc(100vw - 16px))!important}
body.hyoffice-v16 .hyoffice-ruler{position:relative;display:flex;align-items:flex-end;height:44px!important;overflow:visible;padding:0 18px 6px!important;color:#d9f6ff!important;background:repeating-linear-gradient(90deg,transparent 0 calc(2.083333% - 1px),rgba(53,234,255,.42) calc(2.083333% - 1px) 2.083333%),repeating-linear-gradient(90deg,transparent 0 calc(12.5% - 1px),rgba(53,234,255,.90) calc(12.5% - 1px) 12.5%),linear-gradient(180deg,rgba(8,17,35,.98),rgba(2,7,17,.98))!important;font-size:12px!important;line-height:1!important;letter-spacing:0!important;box-shadow:inset 0 -1px 0 rgba(53,234,255,.7),0 0 18px rgba(53,234,255,.12)!important}
body.hyoffice-v16 .hyoffice-ruler-scale{display:grid;grid-template-columns:repeat(9,1fr);align-items:end;height:100%;width:100%;padding-top:17px;font:900 12px/1 Roboto Mono,monospace;text-shadow:0 0 8px rgba(53,234,255,.55)}
body.hyoffice-v16 .hyoffice-ruler-scale span{position:relative;text-align:center}
body.hyoffice-v16 .hyoffice-ruler-scale span::before{content:"";position:absolute;left:50%;bottom:16px;width:2px;height:15px;background:rgba(53,234,255,.92);box-shadow:0 0 5px rgba(53,234,255,.55)}
body.hyoffice-v16 .hyoffice-ruler-unit{position:absolute;left:5px;top:5px;color:var(--ho-pink);font:900 9px Roboto Mono,monospace;text-shadow:0 0 8px var(--ho-pink)}
body.hyoffice-v16 .hyoffice-dock-icon{font-size:23px;width:29px;height:29px;text-shadow:0 0 9px currentColor,0 0 18px var(--ho-violet)}
@keyframes ho-logo-shimmer{to{background-position:240% 0}}

/* Final bounded chroma pass: the animated edge is a pseudo-element, never a full-card overlay. */
@property --ho-edge-angle{syntax:"<angle>";inherits:false;initial-value:0deg}
body.hyoffice-v16 .hyoffice-dock{isolation:isolate;border-color:transparent;overflow:visible}
body.hyoffice-v16 .hyoffice-dock::before{content:"";position:absolute;inset:-1px;border-radius:22px;padding:1px;z-index:-2;pointer-events:none;background:conic-gradient(from var(--ho-edge-angle,0deg),#ff315f,#ff34dd,#a83cff,#5f54ff,#248dff,#22dfff,#20edbd,#83f16d,#ecf35f,#ffb84b,#ff315f);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;filter:drop-shadow(0 0 8px rgba(53,234,255,.42)) drop-shadow(0 0 18px rgba(166,87,255,.25));animation:ho-edge-spin 11s linear infinite,ho-edge-breathe 4s ease-in-out infinite}
body.hyoffice-v16 .hyoffice-dock-glass{inset:5px 7px;z-index:-1;border:1px solid transparent;background:linear-gradient(145deg,rgba(8,14,28,.94),rgba(1,3,8,.96)) padding-box,conic-gradient(from var(--ho-edge-angle,0deg),#ff315f,#ff34dd,#a83cff,#5f54ff,#248dff,#22dfff,#20edbd,#83f16d,#ecf35f,#ffb84b,#ff315f) border-box;box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 0 22px rgba(53,234,255,.18);animation:ho-edge-spin 11s linear infinite,ho-dock-breathe 4s ease-in-out infinite}
body.hyoffice-v16 .hyoffice-profile-wrap{position:relative;margin-left:auto;z-index:40}
body.hyoffice-v16 .hyoffice-profile-button{display:flex;align-items:center;gap:7px;min-height:36px;padding:5px 9px;border:1px solid rgba(53,234,255,.42);border-radius:999px;background:linear-gradient(110deg,rgba(53,234,255,.14),rgba(166,87,255,.15));color:var(--ho-ink);font:800 11px Inter,sans-serif;cursor:pointer;box-shadow:0 0 14px rgba(53,234,255,.12)}
body.hyoffice-v16 .hyoffice-profile-avatar{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;color:#fff;background:linear-gradient(135deg,var(--ho-cyan),var(--ho-violet),var(--ho-pink));box-shadow:0 0 13px rgba(53,234,255,.55);font:900 11px Orbitron,sans-serif}
body.hyoffice-v16 .hyoffice-profile-menu{position:absolute;top:44px;right:0;width:min(300px,calc(100vw - 28px));padding:10px;border:1px solid rgba(53,234,255,.56);border-radius:16px;background:linear-gradient(145deg,rgba(10,22,47,.99),rgba(1,4,11,.995));box-shadow:0 24px 70px rgba(0,0,0,.72),0 0 28px rgba(53,234,255,.20)}
body.hyoffice-v16 .hyoffice-profile-menu[hidden]{display:none}
body.hyoffice-v16 .hyoffice-profile-heading{padding:6px 8px 9px;color:var(--ho-cyan);font:800 10px Roboto Mono,monospace;letter-spacing:.13em;text-transform:uppercase;border-bottom:1px solid rgba(105,145,204,.22)}
body.hyoffice-v16 .hyoffice-profile-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:9px 8px;border:0;border-radius:9px;background:transparent;color:var(--ho-ink);font:700 11px Inter,sans-serif;text-align:left;cursor:pointer}
body.hyoffice-v16 .hyoffice-profile-menu button:hover{background:linear-gradient(90deg,rgba(53,234,255,.20),rgba(166,87,255,.18));box-shadow:inset 3px 0 0 var(--ho-cyan)}
body.hyoffice-v16 .hyoffice-profile-menu small{margin-left:auto;color:var(--ho-muted);font:600 9px Roboto Mono,monospace}
body.hyoffice-v16 .hyoffice-company-dot{width:8px;height:8px;border-radius:50%;background:var(--ho-cyan);box-shadow:0 0 9px var(--ho-cyan)}
body.hyoffice-v16 .hyoffice-profile-loading{display:block;padding:10px 8px;color:var(--ho-muted);font-size:10px}
body.hyoffice-v16 .hyoffice-apps-launcher{position:relative;z-index:90}body.hyoffice-v16 .hyoffice-apps-launcher summary{list-style:none;display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(53,234,255,.48);border-radius:12px;background:linear-gradient(135deg,rgba(53,234,255,.18),rgba(166,87,255,.18));color:var(--ho-cyan);cursor:pointer;box-shadow:0 0 15px rgba(53,234,255,.18)}body.hyoffice-v16 .hyoffice-apps-launcher summary::-webkit-details-marker{display:none}body.hyoffice-v16 .hyoffice-apps-launcher[open] summary{color:#fff;border-color:var(--ho-pink);box-shadow:0 0 22px rgba(255,63,200,.32),inset 0 0 14px rgba(53,234,255,.12)}body.hyoffice-v16 .hyoffice-apps-grid{font-size:21px;line-height:1;text-shadow:0 0 10px currentColor,0 0 20px var(--ho-violet)}body.hyoffice-v16 .hyoffice-apps-menu{position:absolute;top:44px;right:0;display:grid;grid-template-columns:repeat(2,minmax(128px,1fr));gap:4px;width:min(310px,calc(100vw - 24px));padding:10px;border:1px solid rgba(53,234,255,.56);border-radius:16px;background:linear-gradient(145deg,rgba(10,22,47,.99),rgba(1,4,11,.995));box-shadow:0 24px 70px rgba(0,0,0,.72),0 0 28px rgba(53,234,255,.24);animation:ho-menu-in .16s ease-out}.hyoffice-apps-menu a{padding:10px 9px;border:1px solid rgba(105,145,204,.22);border-radius:9px;color:var(--ho-ink);background:rgba(53,234,255,.05);font:800 10px Inter,sans-serif;text-decoration:none}.hyoffice-apps-menu a:hover{border-color:var(--ho-cyan);color:#fff;background:linear-gradient(90deg,rgba(53,234,255,.20),rgba(166,87,255,.18));box-shadow:0 0 13px rgba(53,234,255,.18)}.hyoffice-apps-heading{grid-column:1/-1;padding:5px 7px 8px;border-bottom:1px solid rgba(105,145,204,.22);color:var(--ho-cyan);font:900 9px Roboto Mono,monospace;letter-spacing:.15em}
body.hyoffice-v16 .hyoffice-apps-launcher:not([open]) .hyoffice-apps-menu{display:none!important}
@media(max-width:640px){body.hyoffice-v16 .hyoffice-command-menu{max-width:100vw;overflow-x:auto!important;overflow-y:visible!important}}
body.hyoffice-v16 .hyoffice-ruler{position:relative;overflow:visible}
body.hyoffice-v16 .hyoffice-ruler-marker{position:absolute;top:-6px;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-top:9px solid var(--ho-cyan);filter:drop-shadow(0 0 5px var(--ho-cyan));transition:left .15s ease,right .15s ease}
body.hyoffice-v16 .hyoffice-ruler-marker-left{left:78px}.hyoffice-ruler-marker-right{right:78px;border-top-color:var(--ho-pink);filter:drop-shadow(0 0 5px var(--ho-pink))}
body.hyoffice-v16 .hyoffice-margin-panel{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;max-width:816px;margin:6px auto;padding:7px 10px;border:1px solid rgba(53,234,255,.24);border-radius:12px;background:rgba(5,13,29,.72);color:var(--ho-muted);font:700 9px Roboto Mono,monospace;box-shadow:0 0 16px rgba(53,234,255,.08)}
body.hyoffice-v16 .hyoffice-margin-panel label{display:flex;align-items:center;gap:5px}.hyoffice-margin-panel input[type=range]{width:72px;accent-color:var(--ho-cyan)}
body.hyoffice-v16 .hyoffice-margin-panel .os-tbtn{min-height:28px;padding:5px 9px!important;font-size:10px}
body.hyoffice-v16 #doc-editor{padding-left:var(--doc-margin-left,78px)!important;padding-right:var(--doc-margin-right,78px)!important;padding-top:var(--doc-margin-top,70px)!important;padding-bottom:var(--doc-margin-bottom,70px)!important}
body.hyoffice-v16 #doc-editor .doc-header,body.hyoffice-v16 #doc-editor .doc-footer{min-height:34px;margin:0 0 20px;padding:8px 10px;border:1px dashed rgba(53,234,255,.45);border-radius:8px;background:linear-gradient(90deg,rgba(53,234,255,.07),rgba(166,87,255,.07));color:#4e6787;font:700 10px Roboto Mono,monospace}
body.hyoffice-v16 #doc-editor .doc-footer{margin:28px 0 0;border-color:rgba(255,63,200,.45)}
body.hyoffice-v16 #doc-editor:focus-within,body.hyoffice-v16 #doc-editor.doc-selected{animation:ho-surface-breathe 3.8s ease-in-out infinite;border-color:var(--ho-cyan)!important}
body.hyoffice-v16 .ps-slide-frame:focus-within,body.hyoffice-v16 .ps-slide-frame.active,body.hyoffice-v16 #pres-canvas:focus-within{animation:ho-surface-breathe 3.8s ease-in-out infinite;box-shadow:0 0 0 1px rgba(53,234,255,.75),0 0 22px rgba(53,234,255,.28),0 0 44px rgba(166,87,255,.18)!important}
body.hyoffice-v16 .hy-mobile-title{color:#f3fbff!important;text-shadow:0 0 8px var(--ho-cyan),0 0 18px var(--ho-violet);animation:ho-logo-words 3.4s ease-in-out infinite}
body.hyoffice-v16 .hy-mobile-title::after{content:none!important;display:none!important}
body.hyoffice-v16 .hy-mobile-title::before{content:none!important;display:none!important}
body.hyoffice-v16.hyoffice-drive-route #os-right{display:flex!important;transform:none!important}
body.hyoffice-v16.hyoffice-drive-route #canvas-onlyoffice{min-height:calc(100vh - 220px)}
body.hyoffice-v16 .hyoffice-drive-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px auto 6px;max-width:980px;padding:18px 20px;border:1px solid rgba(53,234,255,.42);border-radius:18px;background:linear-gradient(110deg,rgba(53,234,255,.12),rgba(166,87,255,.12),rgba(255,63,200,.08));box-shadow:0 0 25px rgba(53,234,255,.12),inset 0 1px 0 rgba(255,255,255,.10)}
body.hyoffice-v16 .hyoffice-drive-hero[hidden]{display:none}
body.hyoffice-v16 .hyoffice-drive-kicker{color:var(--ho-cyan);font:900 10px/1 Roboto Mono,monospace;letter-spacing:.16em;text-shadow:0 0 10px var(--ho-cyan)}
body.hyoffice-v16 .hyoffice-drive-hero h1{margin:6px 0 3px;color:var(--ho-ink);font:900 20px/1.15 Orbitron,Inter,sans-serif;text-shadow:0 0 12px rgba(53,234,255,.25)}
body.hyoffice-v16 .hyoffice-drive-hero p{margin:0;color:var(--ho-muted);font:600 11px/1.5 Inter,sans-serif}
body.hyoffice-v16.hyoffice-drive-route #oo-file-list{border:1px solid rgba(53,234,255,.34);border-radius:14px;padding:8px;background:rgba(1,6,16,.62);box-shadow:0 0 22px rgba(53,234,255,.12)}
@media(max-width:640px){body.hyoffice-v16 .hyoffice-drive-hero{margin:12px 10px 4px;padding:14px;align-items:flex-start;flex-direction:column}body.hyoffice-v16 .hyoffice-drive-hero h1{font-size:16px}}

/* First-class internal Drive surface. It reuses the Office bridge; it is not Drop Zone. */
body.hyoffice-v16.hyoffice-drive-page{min-height:100vh;background:#01040b;color:var(--ho-ink);padding-bottom:104px}
body.hyoffice-v16 .hyoffice-drive-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px clamp(16px,4vw,52px);background:rgba(2,7,17,.82);border-bottom:1px solid rgba(53,234,255,.28);backdrop-filter:blur(24px) saturate(170%);box-shadow:0 0 28px rgba(53,234,255,.12)}
body.hyoffice-v16 .hyoffice-drive-brand{display:flex;align-items:center;gap:10px;color:var(--ho-ink);text-decoration:none}
body.hyoffice-v16 .hyoffice-drive-brand img{width:36px;height:36px;object-fit:contain;filter:drop-shadow(0 0 8px var(--ho-cyan)) drop-shadow(0 0 16px var(--ho-violet));animation:ho-owl-breathe 3.2s ease-in-out infinite}
body.hyoffice-v16 .hyoffice-drive-brand span{display:grid;gap:2px;font:900 17px/1 Orbitron,Inter,sans-serif;letter-spacing:.06em}.hyoffice-drive-brand strong{color:var(--ho-cyan);text-shadow:0 0 10px var(--ho-cyan)}.hyoffice-drive-brand small{color:var(--ho-muted);font:700 8px/1 Roboto Mono,monospace;letter-spacing:.16em}
body.hyoffice-v16 .hyoffice-drive-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hyoffice-drive-actions a{padding:8px 11px;border:1px solid rgba(105,145,204,.34);border-radius:10px;background:rgba(53,234,255,.08);color:var(--ho-ink);font:800 10px Inter,sans-serif;text-decoration:none}.hyoffice-drive-actions a:hover{border-color:var(--ho-cyan);box-shadow:0 0 16px rgba(53,234,255,.25)}.hyoffice-drive-actions .hyoffice-drive-avatar{display:grid;place-items:center;width:32px;height:32px;padding:0;border-radius:50%;background:linear-gradient(135deg,var(--ho-cyan),var(--ho-violet),var(--ho-pink));box-shadow:0 0 14px rgba(53,234,255,.45)}
body.hyoffice-v16 .hyoffice-drive-actions .hyoffice-drive-avatar{overflow:hidden}.hyoffice-drive-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
body.hyoffice-v16 .hyoffice-drive-shell{position:relative;z-index:1;max-width:1280px;margin:0 auto;padding:28px clamp(14px,4vw,52px)}
body.hyoffice-v16 .hyoffice-drive-shell{display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px}
body.hyoffice-v16 .hyoffice-drive-nav{align-self:start;position:sticky;top:90px;display:grid;gap:5px;padding:12px;border:1px solid rgba(105,145,204,.28);border-radius:18px;background:rgba(4,10,23,.74);box-shadow:0 0 22px rgba(53,234,255,.08),inset 0 1px 0 rgba(255,255,255,.06);backdrop-filter:blur(20px) saturate(160%)}
body.hyoffice-v16 .hyoffice-drive-nav-title{padding:7px 8px 5px;color:var(--ho-cyan);font:900 9px/1 Roboto Mono,monospace;letter-spacing:.13em}
body.hyoffice-v16 .hyoffice-drive-nav button,body.hyoffice-v16 .hyoffice-drive-folder{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;padding:8px 9px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--ho-muted);font:800 10px Inter,sans-serif;text-align:left}
body.hyoffice-v16 .hyoffice-drive-nav button{cursor:pointer}.hyoffice-drive-nav button:hover,.hyoffice-drive-nav button.active{color:var(--ho-ink);border-color:rgba(53,234,255,.46);background:linear-gradient(90deg,rgba(53,234,255,.16),rgba(166,87,255,.12));box-shadow:inset 3px 0 var(--ho-cyan),0 0 14px rgba(53,234,255,.10)}
body.hyoffice-v16 .hyoffice-drive-folder{color:var(--ho-muted);opacity:.9}
body.hyoffice-v16 .hyoffice-drive-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px;border:1px solid transparent;border-radius:24px;background:linear-gradient(135deg,rgba(6,16,36,.92),rgba(20,6,38,.90)) padding-box,linear-gradient(110deg,var(--ho-cyan),var(--ho-violet),var(--ho-pink),var(--ho-cyan)) border-box;box-shadow:0 0 34px rgba(53,234,255,.17),inset 0 1px 0 rgba(255,255,255,.10);animation:ho-surface-breathe 4.5s ease-in-out infinite}
body.hyoffice-v16 .hyoffice-drive-banner h1{margin:8px 0 7px;font:900 clamp(22px,4vw,38px)/1.08 Orbitron,Inter,sans-serif;color:#f3fbff;text-shadow:0 0 18px rgba(53,234,255,.35)}body.hyoffice-v16 .hyoffice-drive-banner p{margin:0;color:var(--ho-muted);font:600 12px/1.5 Inter,sans-serif}.hyoffice-drive-primary{padding:12px 16px;border:1px solid var(--ho-cyan);border-radius:12px;color:#fff;background:linear-gradient(100deg,rgba(53,234,255,.24),rgba(166,87,255,.24));box-shadow:0 0 18px rgba(53,234,255,.25);text-decoration:none;font:900 11px Inter,sans-serif;white-space:nowrap}
body.hyoffice-v16 .hyoffice-drive-toolbar{display:flex;gap:10px;margin:18px 0}.hyoffice-drive-search{display:flex;align-items:center;gap:9px;flex:1;padding:0 14px;border:1px solid rgba(105,145,204,.36);border-radius:14px;background:rgba(4,10,23,.78);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 18px rgba(53,234,255,.08)}.hyoffice-drive-search span{font-size:22px;color:var(--ho-cyan);text-shadow:0 0 10px var(--ho-cyan)}.hyoffice-drive-search input{width:100%;border:0!important;outline:0;background:transparent!important;color:var(--ho-ink)!important;font:700 12px Inter,sans-serif}.hyoffice-drive-toolbar>button{padding:0 16px;border:1px solid rgba(53,234,255,.45);border-radius:12px;background:rgba(53,234,255,.10);color:var(--ho-ink);font:800 11px Inter,sans-serif}
body.hyoffice-v16 .hyoffice-drive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.hyoffice-drive-card{min-width:0;padding:18px;border:1px solid rgba(105,145,204,.30);border-radius:20px;background:linear-gradient(145deg,rgba(5,13,29,.86),rgba(1,4,11,.92));box-shadow:0 0 24px rgba(53,234,255,.09),inset 0 1px 0 rgba(255,255,255,.07)}.hyoffice-drive-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.hyoffice-drive-card h2{margin:5px 0 0;font:900 17px/1.1 Orbitron,Inter,sans-serif}.hyoffice-drive-count,.hyoffice-drive-orb{color:var(--ho-cyan);font:800 11px Roboto Mono,monospace;text-shadow:0 0 9px var(--ho-cyan)}.hyoffice-drive-files{display:grid;gap:8px}.hyoffice-drive-file{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid rgba(105,145,204,.25);border-radius:13px;background:linear-gradient(110deg,rgba(53,234,255,.07),rgba(166,87,255,.07));transition:.2s}.hyoffice-drive-file:hover{border-color:var(--ho-cyan);box-shadow:0 0 18px rgba(53,234,255,.18);transform:translateY(-1px)}.hyoffice-drive-file-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;color:#fff;background:linear-gradient(135deg,var(--ho-cyan),var(--ho-violet));font-size:19px;box-shadow:0 0 13px rgba(53,234,255,.24)}.hyoffice-drive-file-info{min-width:0;display:grid;gap:4px;flex:1}.hyoffice-drive-file-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 12px Inter,sans-serif}.hyoffice-drive-file-info small{color:var(--ho-muted);font:600 9px Roboto Mono,monospace}.hyoffice-drive-open{padding:7px 9px;border:1px solid rgba(53,234,255,.35);border-radius:8px;color:var(--ho-cyan);font:800 10px Inter,sans-serif;text-decoration:none}.hyoffice-drive-loading,.hyoffice-drive-empty{padding:24px 10px;text-align:center;color:var(--ho-muted);font:700 11px Roboto Mono,monospace}
body.hyoffice-v16 .hyoffice-drive-dock{position:fixed;left:50%;bottom:14px;z-index:30;display:flex;gap:7px;width:min(760px,calc(100vw - 28px));padding:8px 10px;border:1px solid transparent;border-radius:22px;background:linear-gradient(145deg,rgba(8,14,28,.94),rgba(1,3,8,.96)) padding-box,conic-gradient(from var(--ho-edge-angle,0deg),#ff315f,#ff34dd,#a83cff,#5f54ff,#248dff,#22dfff,#20edbd,#83f16d,#ecf35f,#ffb84b,#ff315f) border-box;box-shadow:0 0 28px rgba(53,234,255,.18);transform:translateX(-50%);animation:ho-edge-spin 11s linear infinite,ho-dock-breathe 4s ease-in-out infinite}.hyoffice-drive-dock a{flex:1;padding:11px 8px;border-radius:13px;color:var(--ho-muted);text-align:center;text-decoration:none;font:800 10px Inter,sans-serif}.hyoffice-drive-dock a.active,.hyoffice-drive-dock a:hover{color:#fff;background:linear-gradient(90deg,rgba(53,234,255,.20),rgba(166,87,255,.18));box-shadow:0 0 18px rgba(53,234,255,.20)}
@media(max-width:700px){body.hyoffice-v16 .hyoffice-drive-header{align-items:flex-start}.hyoffice-drive-actions a:not(.hyoffice-drive-avatar){display:none}body.hyoffice-v16 .hyoffice-drive-banner{align-items:flex-start;flex-direction:column;padding:20px}.hyoffice-drive-grid{grid-template-columns:1fr!important}.hyoffice-drive-toolbar{flex-direction:column}.hyoffice-drive-toolbar>button{min-height:42px}.hyoffice-drive-dock{bottom:7px!important;width:calc(100vw - 14px)!important}.hyoffice-drive-dock a{font-size:9px}}
@media(max-width:700px){body.hyoffice-v16 .hyoffice-drive-shell{display:block;padding-top:14px}body.hyoffice-v16 .hyoffice-drive-nav{position:relative;top:auto;display:flex;align-items:center;gap:5px;overflow-x:auto;margin-bottom:14px;padding:7px;scrollbar-width:none}body.hyoffice-v16 .hyoffice-drive-nav::-webkit-scrollbar{display:none}body.hyoffice-v16 .hyoffice-drive-nav-title,body.hyoffice-v16 .hyoffice-drive-folder{display:none}body.hyoffice-v16 .hyoffice-drive-nav button{flex:0 0 auto;width:auto;white-space:nowrap}}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-nav{background:rgba(255,255,255,.86);border-color:rgba(73,112,156,.30);box-shadow:0 14px 30px rgba(32,68,104,.12)}html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-nav button,html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-folder{color:#536a86}html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-nav button:hover,html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-nav button.active{color:#10243d;background:linear-gradient(90deg,rgba(0,123,158,.13),rgba(104,68,186,.12))}
body.hyoffice-v16 .hyoffice-bank-folders{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}.hyoffice-bank-folders button{padding:7px 10px;border:1px solid rgba(105,145,204,.30);border-radius:999px;background:rgba(53,234,255,.06);color:var(--ho-muted);font:800 10px Inter,sans-serif;cursor:pointer}.hyoffice-bank-folders button.active,.hyoffice-bank-folders button:hover{color:#fff;border-color:var(--ho-cyan);background:linear-gradient(90deg,rgba(53,234,255,.20),rgba(166,87,255,.18));box-shadow:0 0 14px rgba(53,234,255,.18)}
@keyframes ho-edge-spin{to{--ho-edge-angle:360deg}}
@keyframes ho-edge-breathe{0%,100%{opacity:.68}50%{opacity:1}}
@keyframes ho-surface-breathe{0%,100%{box-shadow:0 0 0 1px rgba(53,234,255,.55),0 0 20px rgba(53,234,255,.18),0 0 34px rgba(166,87,255,.12)}50%{box-shadow:0 0 0 1px rgba(255,63,200,.82),0 0 32px rgba(53,234,255,.34),0 0 58px rgba(166,87,255,.24)}}
@keyframes ho-logo-words{0%,100%{filter:saturate(1);opacity:.82}50%{filter:saturate(1.8);opacity:1}}
@media(max-width:640px){body.hyoffice-v16 .hyoffice-profile-button{padding-inline:7px}body.hyoffice-v16 .hyoffice-profile-button span:nth-child(2){display:none}body.hyoffice-v16 .hyoffice-margin-panel{margin-inline:10px;gap:5px}body.hyoffice-v16 .hyoffice-margin-panel input[type=range]{width:54px}}

/* V16 variable bridge: prevents the legacy green/blue token layer from leaking into Office. */
body.hyoffice-v16{--accent:var(--ho-cyan)!important;--accent-dim:rgba(53,234,255,.14)!important;--accent-glow:rgba(53,234,255,.34)!important;--os-cyan:var(--ho-cyan)!important;--os-panel:rgba(4,10,23,.88)!important;--os-hover-bg:rgba(53,234,255,.14)!important;--glass-bg:rgba(4,10,23,.86)!important;--glass-border:rgba(105,145,204,.32)!important;--bg-surface:#01040b!important;--bg-card:rgba(5,13,29,.86)!important;--text:#edf7ff!important;--muted:#9ab0cf!important}
body.hyoffice-v16 .hyoffice-context-menu{position:fixed;z-index:12000;display:grid;min-width:220px;padding:8px;border:1px solid rgba(53,234,255,.56);border-radius:14px;background:linear-gradient(145deg,rgba(10,22,47,.99),rgba(1,4,11,.995));box-shadow:0 22px 70px rgba(0,0,0,.78),0 0 28px rgba(53,234,255,.24);animation:ho-menu-in .14s ease-out}.hyoffice-context-menu[hidden]{display:none!important}.hyoffice-context-heading{padding:5px 9px 8px;border-bottom:1px solid rgba(105,145,204,.24);color:var(--ho-cyan);font:900 9px Roboto Mono,monospace;letter-spacing:.14em}.hyoffice-context-menu button{border:0;border-radius:8px;padding:9px 10px;text-align:left;background:transparent;color:var(--ho-ink);font:700 11px Inter,sans-serif;cursor:pointer}.hyoffice-context-menu button:hover{background:linear-gradient(90deg,rgba(53,234,255,.20),rgba(166,87,255,.18));box-shadow:inset 3px 0 0 var(--ho-cyan);color:#fff}
body.hyoffice-v16 .hyoffice-ruler{width:calc(100% - 40px)!important;max-width:1100px!important;min-width:min(420px,calc(100% - 20px));height:52px!important;margin:8px auto!important;padding:0 24px 7px!important;border-radius:10px!important;background:repeating-linear-gradient(90deg,transparent 0 calc(2.083333% - 1px),rgba(53,234,255,.42) calc(2.083333% - 1px) 2.083333%),repeating-linear-gradient(90deg,transparent 0 calc(12.5% - 1px),rgba(53,234,255,.94) calc(12.5% - 1px) 12.5%),linear-gradient(180deg,rgba(8,17,35,.98),rgba(2,7,17,.98))!important}.hyoffice-ruler-scale span::before{height:20px!important;bottom:18px!important;width:2px!important}.hyoffice-ruler-scale span::after{content:"";position:absolute;left:50%;bottom:18px;width:1px;height:11px;background:rgba(53,234,255,.65);transform:translateX(-50%) translateX(50%)}
body.hyoffice-v16 .hyoffice-drive-page::before{content:"";position:fixed;inset:-35%;z-index:-2;pointer-events:none;background:conic-gradient(from 0deg,rgba(53,234,255,.12),transparent 23%,rgba(166,87,255,.14),transparent 48%,rgba(255,63,200,.10),transparent 74%,rgba(53,234,255,.12));filter:blur(86px);animation:ho-blackhole 18s linear infinite,ho-breathe 6s ease-in-out infinite}

/* Header controls stay side-by-side; menus belong to their own anchor and never stack over the brand. */
body.hyoffice-v16 .hy-mobile-header{overflow:visible!important;min-width:0}
body.hyoffice-v16 .hyoffice-profile-wrap{display:flex;align-items:center;gap:8px;margin-left:auto;position:relative;z-index:500}
body.hyoffice-v16 .hyoffice-apps-launcher{position:relative;display:block;flex:0 0 auto;z-index:510}
body.hyoffice-v16 .hyoffice-apps-launcher summary{position:relative;z-index:2}
body.hyoffice-v16 .hyoffice-apps-grid{display:grid;place-items:center;width:22px;height:22px}
body.hyoffice-v16 .hyoffice-apps-grid svg{width:22px;height:22px;fill:currentColor;filter:drop-shadow(0 0 5px currentColor)}
body.hyoffice-v16 .hyoffice-apps-menu{top:calc(100% + 8px)!important;right:0!important;z-index:9000}
body.hyoffice-v16 .hyoffice-profile-menu{top:calc(100% + 8px)!important;right:0!important;z-index:9000}
body.hyoffice-v16 .hyoffice-profile-avatar{overflow:hidden;position:relative}
body.hyoffice-v16 .hyoffice-profile-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
body.hyoffice-v16 .hyoffice-theme-toggle{display:grid;place-items:center;gap:1px;min-width:38px;height:36px;padding:4px 7px;border:1px solid rgba(53,234,255,.48);border-radius:12px;background:linear-gradient(135deg,rgba(53,234,255,.16),rgba(166,87,255,.18));color:var(--ho-cyan);cursor:pointer;box-shadow:0 0 15px rgba(53,234,255,.18);transition:.2s ease}
body.hyoffice-v16 .hyoffice-theme-toggle:hover,body.hyoffice-v16 .hyoffice-theme-toggle:focus-visible{color:#fff;border-color:var(--ho-pink);box-shadow:0 0 22px rgba(255,63,200,.30),0 0 18px rgba(53,234,255,.22);outline:0;transform:translateY(-1px)}
body.hyoffice-v16 .hyoffice-theme-toggle iconify-icon{filter:drop-shadow(0 0 6px currentColor)}
body.hyoffice-v16 .hyoffice-theme-label{font:800 7px/1 Roboto Mono,monospace;letter-spacing:.06em;text-transform:uppercase}

/* The Office light surface is deliberately scoped; it must not inherit the old global green/gray theme. */
html[data-mode="light"] body.hyoffice-v16{--ho-ink:#10243d;--ho-muted:#536a86;--ho-cyan:#007b9e;--ho-violet:#6844ba;--ho-pink:#bd287f;--accent:var(--ho-cyan)!important;--accent-dim:rgba(0,123,158,.12)!important;--accent-glow:rgba(0,123,158,.22)!important;--os-panel:rgba(247,251,255,.95)!important;--glass-bg:rgba(247,251,255,.82)!important;--glass-border:rgba(73,112,156,.34)!important;--bg-surface:#eaf2fb!important;--bg-card:rgba(255,255,255,.88)!important;--text:#10243d!important;--muted:#536a86!important;background:radial-gradient(900px 520px at 12% -10%,rgba(0,123,158,.11),transparent 60%),radial-gradient(800px 560px at 88% 12%,rgba(104,68,186,.10),transparent 62%),#eaf2fb!important;color:var(--ho-ink)!important}
html[data-mode="light"] body.hyoffice-v16 .hy-mobile-header,html[data-mode="light"] body.hyoffice-v16 #os-left,html[data-mode="light"] body.hyoffice-v16 #os-right,html[data-mode="light"] body.hyoffice-v16 #os-modes{background:rgba(247,251,255,.90)!important;color:var(--ho-ink)!important;border-color:rgba(73,112,156,.30)!important}
html[data-mode="light"] body.hyoffice-v16 .gdocs-hbar,html[data-mode="light"] body.hyoffice-v16 .hyoffice-margin-panel,html[data-mode="light"] body.hyoffice-v16 #sheet-hbar,html[data-mode="light"] body.hyoffice-v16 #sheet-formula-bar,html[data-mode="light"] body.hyoffice-v16 #pres-prompt-area{background:rgba(255,255,255,.92)!important;color:var(--ho-ink)!important;border-color:rgba(73,112,156,.34)!important}
html[data-mode="light"] body.hyoffice-v16 .gdocs-hbar .os-tbtn,html[data-mode="light"] body.hyoffice-v16 .gdocs-hbar .os-select,html[data-mode="light"] body.hyoffice-v16 .gdocs-hbar .hf-dd-trigger,html[data-mode="light"] body.hyoffice-v16 .hyoffice-theme-toggle{background:rgba(255,255,255,.92)!important;color:#163b5c!important;border-color:rgba(0,123,158,.42)!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-dock{background:linear-gradient(145deg,rgba(255,255,255,.90),rgba(235,244,253,.94)) padding-box,conic-gradient(from var(--ho-edge-angle,0deg),#007b9e,#6844ba,#bd287f,#007b9e) border-box!important;box-shadow:0 -14px 48px rgba(32,68,104,.20),0 0 28px rgba(0,123,158,.15)!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-dock-item{color:#536a86!important}html[data-mode="light"] body.hyoffice-v16 .hyoffice-dock-item.active,html[data-mode="light"] body.hyoffice-v16 .hyoffice-dock-item:hover{color:#10243d!important;background:linear-gradient(90deg,rgba(0,123,158,.14),rgba(104,68,186,.13))!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-profile-menu,html[data-mode="light"] body.hyoffice-v16 .hyoffice-apps-menu,html[data-mode="light"] body.hyoffice-v16 .hyoffice-context-menu,html[data-mode="light"] body.hyoffice-v16 .hyoffice-tool-group-menu{background:linear-gradient(145deg,rgba(255,255,255,.99),rgba(235,244,253,.99))!important;color:#10243d!important;box-shadow:0 24px 70px rgba(32,68,104,.24),0 0 24px rgba(0,123,158,.16)!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-profile-menu button,html[data-mode="light"] body.hyoffice-v16 .hyoffice-apps-menu a,html[data-mode="light"] body.hyoffice-v16 .hyoffice-context-menu button{color:#163b5c!important}html[data-mode="light"] body.hyoffice-v16 .hyoffice-profile-menu button:hover,html[data-mode="light"] body.hyoffice-v16 .hyoffice-apps-menu a:hover,html[data-mode="light"] body.hyoffice-v16 .hyoffice-context-menu button:hover{color:#10243d!important;background:linear-gradient(90deg,rgba(0,123,158,.13),rgba(104,68,186,.12))!important}
html[data-mode="light"] body.hyoffice-v16 #oo-welcome .glass-card,html[data-mode="light"] body.hyoffice-v16 .os-file-item{background:rgba(255,255,255,.88)!important;color:#10243d!important;border-color:rgba(73,112,156,.30)!important}

/* Compact mobile editor controls: alignment is a single intentional control, not three loose buttons. */
body.hyoffice-v16 .hyoffice-tool-group{position:relative;flex:0 0 auto;z-index:30}
body.hyoffice-v16 .hyoffice-tool-group>summary{display:flex;align-items:center;justify-content:center;gap:4px;list-style:none;cursor:pointer}
body.hyoffice-v16 .hyoffice-tool-group>summary::-webkit-details-marker{display:none}
body.hyoffice-v16 .hyoffice-tool-group>summary span{font:800 9px Inter,sans-serif}
body.hyoffice-v16 .hyoffice-tool-group-menu{position:absolute;top:calc(100% + 7px);left:0;display:flex;gap:4px;padding:6px;border:1px solid rgba(53,234,255,.55);border-radius:12px;background:linear-gradient(145deg,rgba(10,22,47,.99),rgba(1,4,11,.995));box-shadow:0 18px 45px rgba(0,0,0,.72),0 0 22px rgba(53,234,255,.20);z-index:1000}
body.hyoffice-v16 .hyoffice-tool-group-menu .os-tbtn{display:flex;align-items:center;gap:4px;white-space:nowrap}
body.hyoffice-v16 .hyoffice-tool-group-menu .os-tbtn span{font:700 9px Inter,sans-serif}
body.hyoffice-v16 .gdocs-hbar .os-select{max-width:112px!important;min-width:0!important}
body.hyoffice-v16 .hyoffice-margin-hint{opacity:.78;font-size:9px}
body.hyoffice-v16 .hyoffice-welcome-history{max-width:600px;width:100%;display:grid;gap:7px}
body.hyoffice-v16 .hyoffice-welcome-history-title{color:var(--ho-cyan);font:900 9px/1 Roboto Mono,monospace;letter-spacing:.14em;text-transform:uppercase}
body.hyoffice-v16 #oo-welcome{min-height:calc(100dvh - 190px)!important;justify-content:center!important}
body.hyoffice-v16 #oo-editor-container{min-height:calc(100dvh - 170px)!important}
body.hyoffice-v16 #oo-welcome{position:relative;top:-4vh}
body.hyoffice-v16 #wb-color{accent-color:var(--ho-cyan)}
body.hyoffice-v16 .hyoffice-dock{border-color:transparent!important;background:linear-gradient(145deg,rgba(8,14,28,.94),rgba(1,3,8,.96)) padding-box,conic-gradient(from var(--ho-edge-angle,0deg),#ff315f,#ff34dd,#a83cff,#5f54ff,#248dff,#22dfff,#20edbd,#83f16d,#ecf35f,#ffb84b,#ff315f) border-box!important}
@media(max-width:640px){
  body.hyoffice-v16 #os-left:not(.drawer-open),body.hyoffice-v16 #os-right:not(.drawer-open){display:none!important;visibility:hidden;pointer-events:none}
  body.hyoffice-v16 .hy-mobile-title{min-width:0;overflow:hidden}
  body.hyoffice-v16 .hyoffice-brand-sub{display:none}
  body.hyoffice-v16 .hyoffice-profile-wrap{gap:5px}
  body.hyoffice-v16 .hyoffice-apps-menu{right:-4px!important;grid-template-columns:1fr;width:min(290px,calc(100vw - 18px))}
  body.hyoffice-v16 .hyoffice-profile-menu{right:-4px!important;width:min(290px,calc(100vw - 18px))}
  /* The mobile rich editor must expose its controls, not hide them in a
     horizontal strip. Keep the toolbar in the document flow and let the
     V16 controls wrap into compact rows above the keyboard. */
  body.hyoffice-v16 .gdocs-hbar{flex-wrap:wrap!important;overflow:visible!important;align-content:center;max-height:none;touch-action:manipulation}
  body.hyoffice-v16 .gdocs-hbar .os-select{max-width:118px!important;flex:1 1 auto}
  body.hyoffice-v16 .gdocs-hbar .os-tbtn{flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:38px!important}
  body.hyoffice-v16 .gdocs-hbar .hyoffice-tool-group{flex:0 0 auto!important}
  /* Writing owns the lower mobile viewport; the dock yields while the
     document editor has focus and returns when focus leaves it. */
body.hyoffice-v16.office-doc-mode .hyoffice-dock,
body.hyoffice-v16.office-editor-focused .hyoffice-dock{transform:translate(-50%,140%)!important;opacity:0!important;pointer-events:none!important}
  /* Document mode removes the side rails; collapse their grid tracks too so
     the editor and its full toolbar occupy the complete viewport. */
  body.hyoffice-v16.office-doc-mode #os-wrap{grid-template-columns:minmax(0,1fr)!important}
  body.hyoffice-v16.office-doc-mode #os-center{grid-column:1/-1;min-width:0}
  body.hyoffice-v16 .hyoffice-margin-hint{display:none}
  body.hyoffice-v16 #oo-welcome{padding:24px 14px!important}
  body.hyoffice-v16 #oo-welcome{top:-2vh}
}

/* When document mode hides the side rails at any breakpoint, reclaim their
   grid tracks so the editor toolbar and canvas span the full workspace. */
body.hyoffice-v16.office-doc-mode #os-wrap{grid-template-columns:minmax(0,1fr)!important}
body.hyoffice-v16.office-doc-mode #os-wrap{grid-template-rows:minmax(0,1fr)!important}
body.hyoffice-v16.office-doc-mode #os-left,body.hyoffice-v16.office-doc-mode #os-right{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.hyoffice-v16.office-doc-mode #os-center{grid-column:1/-1;grid-row:1;min-width:0;min-height:0}

/* Final surface isolation: the shared token sheet must not turn light Office
   into a gray overlay or let the old green layer leak through. */
html[data-mode="light"] body.hyoffice-v16,
html[data-mode="light"] body.hyoffice-v16.hyoffice-drive-page{background:radial-gradient(900px 520px at 8% -8%,rgba(0,190,220,.13),transparent 58%),radial-gradient(900px 620px at 92% 12%,rgba(150,80,255,.12),transparent 62%),#eef6ff!important;color:#10243d!important}
html[data-mode="light"] body.hyoffice-v16::before{opacity:.30!important;filter:blur(92px)!important}
html[data-mode="light"] body.hyoffice-v16::after{opacity:.14!important}
html[data-mode="light"] body.hyoffice-v16 #os-center{background:rgba(238,246,255,.64)!important;color:#10243d!important}
html[data-mode="light"] body.hyoffice-v16 #os-left,
html[data-mode="light"] body.hyoffice-v16 #os-right{background:linear-gradient(160deg,rgba(255,255,255,.88),rgba(235,245,255,.92))!important;color:#10243d!important}
html[data-mode="light"] body.hyoffice-v16 .hy-mobile-header,
html[data-mode="light"] body.hyoffice-v16 .hyoffice-command-menu{background:rgba(255,255,255,.84)!important;color:#10243d!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-command-menu>button{color:#163b5c!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-header{background:rgba(255,255,255,.88)!important;color:#10243d!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-banner,
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-card{background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(232,244,255,.84))!important;color:#10243d!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-file{background:linear-gradient(110deg,rgba(255,255,255,.78),rgba(231,241,255,.82))!important;color:#10243d!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-search{background:rgba(255,255,255,.90)!important;color:#10243d!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-search input{color:#10243d!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-dock{background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(234,244,255,.96)) padding-box,conic-gradient(from 0deg,#00a9c7,#7047d8,#d52a99,#00a9c7) border-box!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-dock a{color:#536a86!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-dock a.active{color:#10243d!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-apps-menu,
html[data-mode="light"] body.hyoffice-v16 .hyoffice-profile-menu{z-index:10000!important;isolation:isolate;background:linear-gradient(145deg,#ffffff,#edf6ff)!important;color:#10243d!important;border-color:rgba(0,145,180,.52)!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-apps-menu a,
html[data-mode="light"] body.hyoffice-v16 .hyoffice-profile-menu button{color:#173b5e!important;background:rgba(222,240,255,.42)!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-apps-menu a:hover,
html[data-mode="light"] body.hyoffice-v16 .hyoffice-profile-menu button:hover{color:#07192d!important;background:linear-gradient(90deg,rgba(0,173,205,.18),rgba(132,75,210,.16))!important}

/* Compact shared wordmark: the transparent owl owns its glow, while the
   wordmark stays on one baseline. No logo-sized background or clipped aura. */
body.hyoffice-v16 .hyoffice-mobile-title,
body.hyoffice-v16 .hy-mobile-title{white-space:nowrap!important;overflow:visible!important;flex:0 1 auto}
body.hyoffice-v16 .hyoffice-wordmark{display:inline-flex!important;align-items:baseline!important;gap:2px!important;white-space:nowrap!important;line-height:1!important;flex:0 0 auto}
body.hyoffice-v16 .hyoffice-owl-mark,
body.hyoffice-v16 .hyoffice-drive-brand img{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;mix-blend-mode:normal;filter:drop-shadow(0 0 7px var(--ho-cyan)) drop-shadow(0 0 16px var(--ho-violet))!important}
body.hyoffice-v16 .hyoffice-drive-brand .hyoffice-wordmark{display:inline-flex!important;align-items:baseline!important;gap:2px!important}
body.hyoffice-v16 .hyoffice-drive-brand .hyoffice-wordmark small{display:none!important}

/* Drive navigation is a drawer opened from the toolbar's folder button. */
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-shell{display:block!important;min-width:0}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:min(318px,88vw)!important;z-index:10050!important;display:grid!important;align-content:start!important;overflow-y:auto!important;transform:translateX(-105%)!important;transition:transform .28s cubic-bezier(.32,.72,0,1)!important;border-radius:0 22px 22px 0!important;padding:calc(env(safe-area-inset-top,0px) + 14px) 14px calc(env(safe-area-inset-bottom,0px) + 22px)!important;box-shadow:22px 0 70px color-mix(in srgb,var(--ho-cyan) 12%,transparent),12px 0 45px rgba(0,0,0,.62)!important}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav.is-open{transform:translateX(0)!important}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-head{display:flex;align-items:center;justify-content:space-between;padding:6px 8px 12px;color:var(--ho-cyan);font:900 10px/1 Roboto Mono,monospace;letter-spacing:.16em}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-head button{width:32px!important;min-height:32px!important;padding:0!important;display:grid!important;place-items:center!important;border:1px solid color-mix(in srgb,var(--ho-cyan) 42%,transparent)!important;border-radius:9px!important;background:color-mix(in srgb,var(--ho-cyan) 9%,transparent)!important;color:var(--ho-ink)!important;font-size:20px!important;cursor:pointer!important}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-backdrop{position:fixed;inset:0;z-index:10040;border:0;background:color-mix(in srgb,#01040b 62%,transparent);backdrop-filter:blur(3px)}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-backdrop[hidden]{display:none!important}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-content{width:100%;min-width:0}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-banner{display:none!important}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-toolbar{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;margin:0 0 10px!important}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-search-row{display:flex;align-items:center;gap:8px;flex:1 1 100%;min-width:0}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-search{flex:1 1 auto;min-width:0}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 13px;border:1px solid color-mix(in srgb,var(--ho-cyan) 46%,transparent);border-radius:12px;background:linear-gradient(100deg,color-mix(in srgb,var(--ho-cyan) 15%,transparent),color-mix(in srgb,var(--ho-violet) 14%,transparent));color:var(--ho-ink);font:850 10px Inter,sans-serif;white-space:nowrap;cursor:pointer;box-shadow:0 0 13px color-mix(in srgb,var(--ho-cyan) 10%,transparent)}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-toggle:hover,
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-toggle:focus-visible{border-color:var(--ho-cyan);box-shadow:0 0 20px color-mix(in srgb,var(--ho-cyan) 24%,transparent);outline:0}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-browser-card .hyoffice-drive-card-head{margin-bottom:8px}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:700px){
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-toolbar{display:flex!important;flex-direction:row!important}
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-search-row{flex-basis:100%!important;width:100%!important}
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-toolbar>select,
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-toolbar>.hyoffice-drive-new,
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-toolbar>button,
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-toolbar>.hyoffice-view-toggle{flex:1 1 0;min-width:0!important}
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-toggle{padding-inline:11px}
}

/* Restore contract: the Office landing surface is clean and centered; its
   decorative grid belongs to editor surfaces, not the home landing. */
body.hyoffice-v16.office-home::after{content:none!important;display:none!important}
body.hyoffice-v16 #oo-welcome{top:0!important;justify-content:center!important}

/* Folder taxonomy is a real Drive navigation surface, not decorative text. */
body.hyoffice-v16 .hyoffice-drive-nav .hyoffice-drive-folder{border:1px solid transparent;cursor:pointer;appearance:none}
body.hyoffice-v16 .hyoffice-drive-nav .hyoffice-drive-folder:hover,
body.hyoffice-v16 .hyoffice-drive-nav .hyoffice-drive-folder.active{color:var(--ho-ink);border-color:rgba(53,234,255,.44);background:linear-gradient(90deg,rgba(53,234,255,.15),rgba(166,87,255,.12));box-shadow:inset 3px 0 var(--ho-cyan),0 0 14px rgba(53,234,255,.10)}
body.hyoffice-v16 .hyoffice-drive-nav .hyoffice-drive-folder[hidden]{display:none}
body.hyoffice-v16 .hyoffice-drive-file[hidden]{display:none!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-nav .hyoffice-drive-folder:hover,
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-nav .hyoffice-drive-folder.active{color:#10243d;background:linear-gradient(90deg,rgba(0,150,185,.14),rgba(104,68,186,.12))}
@media(max-width:700px){
  body.hyoffice-v16 .hyoffice-drive-nav .hyoffice-drive-folder{display:flex;flex:0 0 auto;width:auto;white-space:nowrap}
}

/* Final V16 visual contract: no legacy green layer and no free-floating orbit.
   Every chroma animation is bounded by the component it decorates. */
body.hyoffice-v16::before,body.hyoffice-v16.hyoffice-drive-page::before{inset:0!important;background:radial-gradient(720px 430px at 10% 0%,rgba(53,234,255,.12),transparent 64%),radial-gradient(760px 500px at 90% 12%,rgba(166,87,255,.11),transparent 68%)!important;filter:none!important;animation:none!important;opacity:.72!important}
body.hyoffice-v16 #os-modes{display:none!important}
body.hyoffice-v16 .hyoffice-dock,body.hyoffice-v16 .hyoffice-drive-dock{isolation:isolate;overflow:hidden!important;border:1px solid transparent!important;background:linear-gradient(145deg,rgba(8,14,28,.94),rgba(1,3,8,.98)) padding-box,conic-gradient(from var(--ho-edge-angle,0deg),#ff315f,#ff34dd,#a83cff,#5f54ff,#248dff,#22dfff,#20edbd,#83f16d,#ecf35f,#ffb84b,#ff315f) border-box!important;box-shadow:0 -14px 48px rgba(0,0,0,.46),0 0 28px rgba(53,234,255,.12)!important;animation:ho-edge-spin 11s linear infinite,ho-dock-breathe 4s ease-in-out infinite!important;will-change:transform,box-shadow}
body.hyoffice-v16 .hyoffice-dock::before,body.hyoffice-v16 .hyoffice-drive-dock::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;z-index:-1;pointer-events:none;background:linear-gradient(110deg,#ff315f,#ff34dd,#a83cff,#248dff,#22dfff,#20edbd,#ffb84b,#ff315f);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;filter:drop-shadow(0 0 7px rgba(53,234,255,.48)) drop-shadow(0 0 16px rgba(166,87,255,.25));animation:ho-edge-breathe 4s ease-in-out infinite}
body.hyoffice-v16 .hyoffice-dock-glass{inset:5px 7px!important;z-index:-1!important;border:0!important;background:linear-gradient(145deg,rgba(8,14,28,.96),rgba(1,3,8,.99))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.07)!important;animation:none!important}
body.hyoffice-v16 .hyoffice-dock-item,body.hyoffice-v16 .hyoffice-drive-dock a{position:relative;z-index:1;min-width:0;color:var(--ho-muted);border:1px solid transparent;background:transparent;transition:color .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;}
body.hyoffice-v16 .hyoffice-dock-item:hover,body.hyoffice-v16 .hyoffice-dock-item.active,body.hyoffice-v16 .hyoffice-drive-dock a:hover,body.hyoffice-v16 .hyoffice-drive-dock a.active{color:var(--ho-ink)!important;border-color:var(--ho-cyan)!important;background:linear-gradient(90deg,rgba(53,234,255,.18),rgba(166,87,255,.17),rgba(255,63,200,.12))!important;box-shadow:0 0 20px rgba(53,234,255,.18),inset 0 0 14px rgba(166,87,255,.10)!important;animation:ho-edge-breathe 3.2s ease-in-out infinite}
body.hyoffice-v16 .os-btn,body.hyoffice-v16 .os-export-btn,body.hyoffice-v16 .os-tbtn,body.hyoffice-v16 .os-mode.active{background:linear-gradient(135deg,rgba(53,234,255,.10),rgba(166,87,255,.12),rgba(255,63,200,.08))!important;border-color:rgba(53,234,255,.42)!important;color:var(--ho-ink)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 9px rgba(53,234,255,.07)!important}
body.hyoffice-v16 .os-btn:hover,body.hyoffice-v16 .os-export-btn:hover,body.hyoffice-v16 .os-tbtn:hover,body.hyoffice-v16 .os-mode.active:hover{border-color:var(--ho-cyan)!important;box-shadow:0 0 17px rgba(53,234,255,.26),inset 0 0 12px rgba(166,87,255,.14)!important}
body.hyoffice-v16 .docs-shell,body.hyoffice-v16 .docs-sidebar,body.hyoffice-v16 .docs-content,body.hyoffice-v16 .doc-card{background-color:transparent!important;color:var(--ho-ink)!important}
body.hyoffice-v16 .sb-brand-title,body.hyoffice-v16 .docs-content h1,body.hyoffice-v16 .docs-content h2,body.hyoffice-v16 .docs-content h3,body.hyoffice-v16 .docs-content a{color:var(--ho-cyan)!important;text-shadow:0 0 10px rgba(53,234,255,.16)}
body.hyoffice-v16 .sb-link,body.hyoffice-v16 .docs-content p,body.hyoffice-v16 .docs-content li,body.hyoffice-v16 .docs-content blockquote{color:var(--ho-muted)!important}
body.hyoffice-v16 .sb-link.active,body.hyoffice-v16 .sb-link:hover{color:var(--ho-ink)!important;background:linear-gradient(90deg,rgba(53,234,255,.16),rgba(166,87,255,.12))!important;border-color:var(--ho-cyan)!important;box-shadow:0 0 16px rgba(53,234,255,.14)!important}
body.hyoffice-v16 .ps-shell,body.hyoffice-v16 .ps-header,body.hyoffice-v16 .ps-sidebar,body.hyoffice-v16 .ps-main{background:transparent!important;color:var(--ho-ink)!important}
body.hyoffice-v16 .ps-header,body.hyoffice-v16 .ps-sidebar,body.hyoffice-v16 .ps-section,body.hyoffice-v16 .ps-slide-frame{border-color:rgba(53,234,255,.26)!important}
body.hyoffice-v16 .ps-icon-btn,body.hyoffice-v16 .ps-action,body.hyoffice-v16 .ps-export{background:linear-gradient(135deg,rgba(53,234,255,.10),rgba(166,87,255,.12))!important;border-color:rgba(53,234,255,.42)!important;color:var(--ho-ink)!important;box-shadow:0 0 10px rgba(53,234,255,.08)!important}
body.hyoffice-v16 .ps-icon-btn:hover,body.hyoffice-v16 .ps-action:hover,body.hyoffice-v16 .ps-export:hover{border-color:var(--ho-cyan)!important;box-shadow:0 0 18px rgba(53,234,255,.22)!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-dock,html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-dock{background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(230,242,255,.94)) padding-box!important;box-shadow:0 -14px 42px rgba(35,71,110,.16),0 0 24px rgba(0,170,205,.13)!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-dock-item,html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-dock a{color:#536a86!important}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-dock-item.active,html[data-mode="light"] body.hyoffice-v16 .hyoffice-dock-item:hover,html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-dock a.active,html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-dock a:hover{color:#10243d!important;background:linear-gradient(90deg,rgba(0,170,205,.16),rgba(104,68,186,.13))!important}

/* Shared V16 splash for every Office entry point. The aura is bounded to the
   viewport and breathes; it never rotates a page-sized layer. */
body.hyoffice-v16 .hyoffice-splash{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;background:#010205;opacity:1;visibility:visible;transition:opacity .45s ease,visibility .45s ease}
body.hyoffice-v16 .hyoffice-splash.is-hidden{opacity:0;visibility:hidden;pointer-events:none;display:none}
body.hyoffice-v16 .hyoffice-splash-card{position:relative;width:min(430px,calc(100vw - 34px));padding:28px 24px 22px;text-align:center;border:1px solid transparent;border-radius:24px;background:linear-gradient(145deg,rgba(8,14,28,.97),rgba(1,3,8,.99)) padding-box,linear-gradient(110deg,#35eaff,#a657ff,#ff3fc8,#438fff,#35eaff) border-box;box-shadow:0 0 50px rgba(53,234,255,.20),0 26px 90px rgba(0,0,0,.74);overflow:hidden;isolation:isolate}
body.hyoffice-v16 .hyoffice-splash-card::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:linear-gradient(110deg,#35eaff,#a657ff,#ff3fc8,#438fff,#35eaff);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;filter:drop-shadow(0 0 8px rgba(53,234,255,.62)) drop-shadow(0 0 18px rgba(166,87,255,.30));animation:ho-edge-breathe 3.8s ease-in-out infinite;pointer-events:none}
body.hyoffice-v16 .hyoffice-splash-face{position:relative;width:132px;height:132px;margin:0 auto 14px;border:1px solid transparent;border-radius:50%;background:linear-gradient(#02050c,#02050c) padding-box,linear-gradient(110deg,#35eaff,#a657ff,#ff3fc8,#35eaff) border-box;box-shadow:0 0 25px rgba(53,234,255,.65),0 0 65px rgba(166,87,255,.35);overflow:hidden;animation:ho-splash-face 3s ease-in-out infinite;z-index:1}
body.hyoffice-v16 .hyoffice-splash-face img{display:block;width:100%;height:100%;object-fit:cover}
body.hyoffice-v16 .hyoffice-splash-kicker{color:var(--ho-cyan);font:700 10px Roboto Mono,monospace;letter-spacing:.22em}.hyoffice-splash-title{margin:5px 0 15px;color:#f5f8ff;font:900 38px Inter,sans-serif;letter-spacing:.04em;text-shadow:0 0 20px rgba(53,234,255,.42)}.hyoffice-splash-title span{background:linear-gradient(90deg,#35eaff,#a657ff,#ff3fc8);-webkit-background-clip:text;background-clip:text;color:transparent}
body.hyoffice-v16 .hyoffice-splash-status{display:flex;align-items:center;justify-content:center;gap:8px;color:#91a1bd;font:700 10px Roboto Mono,monospace}.hyoffice-splash-status i{width:7px;height:7px;border-radius:50%;background:#35efb0;box-shadow:0 0 12px #35efb0;animation:ho-edge-breathe 1.5s ease-in-out infinite}.hyoffice-splash-status b{color:#a657ff;font-size:9px}
body.hyoffice-v16 .hyoffice-splash-progress{height:6px;margin:15px 0 10px;border:1px solid rgba(91,132,190,.38);border-radius:99px;overflow:hidden;background:rgba(255,255,255,.04)}.hyoffice-splash-progress span{display:block;width:68%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#35eaff,#438fff,#a657ff,#ff3fc8);box-shadow:0 0 14px #35eaff;animation:ho-splash-progress 1.8s ease-in-out infinite alternate}.hyoffice-splash-tasks{display:flex;justify-content:space-between;color:#5d6c87;font:700 8px Roboto Mono,monospace;letter-spacing:.12em}
@keyframes ho-splash-face{0%,100%{transform:scale(.98);filter:brightness(.92)}50%{transform:scale(1.04);filter:brightness(1.14)}}@keyframes ho-splash-progress{from{width:32%}to{width:92%}}

/* Header seam reset: the brand row owns the owl and logo only. No decorative
   pseudo-element may paint a dead line above it or intercept pointer events. */
body.hyoffice-v16 .hy-mobile-header::before,body.hyoffice-v16 .hy-mobile-header::after,body.hyoffice-v16 .hy-mobile-title::before,body.hyoffice-v16 .hy-mobile-title::after{content:none!important;display:none!important;animation:none!important;background:none!important;box-shadow:none!important;border:0!important;pointer-events:none!important}
body.hyoffice-v16 .hy-mobile-header{border-top:0!important}

/* Drive browser: real folders and file-explorer interactions. */
body.hyoffice-v16 .hyoffice-drive-content{min-width:0;display:grid;gap:16px}
body.hyoffice-v16 .hyoffice-drive-browser-shell{grid-template-columns:230px minmax(0,1fr)}
body.hyoffice-v16 .hyoffice-tree-heading{display:flex;align-items:center;justify-content:space-between;padding:14px 8px 5px;color:var(--ho-cyan);font:900 9px/1 Roboto Mono,monospace;letter-spacing:.14em}
body.hyoffice-v16 .hyoffice-tree-heading button{width:24px;min-height:24px;padding:0;display:grid;place-items:center;border:1px solid rgba(53,234,255,.42);border-radius:7px;background:rgba(53,234,255,.08);color:var(--ho-cyan);font-size:16px;cursor:pointer}
body.hyoffice-v16 .hyoffice-folder-tree{display:grid;gap:2px;max-height:340px;overflow:auto;padding-right:2px}
body.hyoffice-v16 .hyoffice-tree-row{display:grid;gap:2px}
body.hyoffice-v16 .hyoffice-tree-folder{display:flex!important;align-items:center;gap:5px!important;padding-left:calc(7px + var(--tree-depth) * 13px)!important;min-height:30px!important;color:var(--ho-muted)!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;font:750 10px Inter,sans-serif!important;cursor:pointer!important}
body.hyoffice-v16 .hyoffice-tree-folder:hover,body.hyoffice-v16 .hyoffice-tree-folder.active{color:var(--ho-ink)!important;border-color:rgba(53,234,255,.42)!important;background:linear-gradient(90deg,rgba(53,234,255,.16),rgba(166,87,255,.12))!important;box-shadow:inset 3px 0 var(--ho-cyan),0 0 12px rgba(53,234,255,.12)!important}
body.hyoffice-v16 .hyoffice-tree-caret{width:9px;color:var(--ho-cyan);font-size:12px}.hyoffice-folder-icon{color:var(--ho-cyan);text-shadow:0 0 9px var(--ho-cyan)}
body.hyoffice-v16 .hyoffice-drive-toolbar{align-items:center;flex-wrap:wrap}
body.hyoffice-v16 .hyoffice-drive-toolbar select{min-height:38px;padding:0 11px;border:1px solid rgba(53,234,255,.42);border-radius:11px;background:rgba(4,10,23,.86);color:var(--ho-ink);font:800 10px Inter,sans-serif}
body.hyoffice-v16 .hyoffice-drive-new{position:relative;z-index:60}.hyoffice-drive-new summary{list-style:none;cursor:pointer;min-height:38px;padding:11px 14px;border:1px solid rgba(53,234,255,.50);border-radius:11px;background:linear-gradient(90deg,rgba(53,234,255,.18),rgba(166,87,255,.16));color:var(--ho-ink);font:900 10px Inter,sans-serif}.hyoffice-drive-new summary::-webkit-details-marker{display:none}.hyoffice-new-menu{position:absolute;top:calc(100% + 8px);right:0;display:grid;min-width:190px;padding:7px;border:1px solid rgba(53,234,255,.55);border-radius:13px;background:linear-gradient(145deg,rgba(10,22,47,.99),rgba(1,4,11,.995));box-shadow:0 20px 50px rgba(0,0,0,.72),0 0 22px rgba(53,234,255,.20)}.hyoffice-new-menu button{border:0;border-radius:8px;padding:10px;text-align:left;background:transparent;color:var(--ho-ink);font:800 10px Inter,sans-serif;cursor:pointer}.hyoffice-new-menu button:hover{background:linear-gradient(90deg,rgba(53,234,255,.22),rgba(166,87,255,.18));box-shadow:inset 3px 0 var(--ho-cyan)}
body.hyoffice-v16 .hyoffice-drive-file-icon img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
body.hyoffice-v16 #sheet-grid .sheet-frozen-row{position:sticky;top:24px;z-index:2;background:var(--os-panel);box-shadow:0 2px 0 var(--ho-cyan)}body.hyoffice-v16 #sheet-grid .sheet-frozen-col{position:sticky;left:36px;z-index:2;background:var(--os-panel);box-shadow:2px 0 0 var(--ho-violet)}body.hyoffice-v16 #sheet-grid th.sheet-frozen-col{z-index:4}body.hyoffice-v16 #sheet-grid .sheet-frozen-row.sheet-frozen-col{z-index:5}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-toolbar select,html[data-mode="light"] body.hyoffice-v16 .hyoffice-new-menu{background:rgba(255,255,255,.98);color:#10243d}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-toolbar select{background:#fff!important;color:#163b5c!important;border-color:rgba(0,123,158,.42)!important}
body.hyoffice-v16 .hyoffice-drive-toolbar>button,.hyoffice-view-toggle button{min-height:38px;padding:0 13px;border:1px solid rgba(53,234,255,.42);border-radius:11px;background:rgba(53,234,255,.09);color:var(--ho-ink);font:850 10px Inter,sans-serif;cursor:pointer;box-shadow:0 0 12px rgba(53,234,255,.06)}
body.hyoffice-v16 .hyoffice-drive-toolbar>button:hover,.hyoffice-view-toggle button:hover,.hyoffice-view-toggle button.active{border-color:var(--ho-cyan);background:linear-gradient(90deg,rgba(53,234,255,.22),rgba(166,87,255,.19));box-shadow:0 0 18px rgba(53,234,255,.2)}
body.hyoffice-v16 .hyoffice-view-toggle{display:flex;gap:4px}.hyoffice-view-toggle button{width:38px;padding:0;font-size:17px}.hyoffice-view-toggle button.active{color:#fff}
body.hyoffice-v16 .hyoffice-drive-breadcrumb{display:flex;align-items:center;gap:6px;min-height:28px;color:var(--ho-muted);font:800 11px Inter,sans-serif}.hyoffice-drive-breadcrumb button{border:0;background:transparent;color:var(--ho-cyan);font:850 11px Inter,sans-serif;cursor:pointer}.hyoffice-drive-breadcrumb button:hover{text-decoration:underline;text-shadow:0 0 10px var(--ho-cyan)}
body.hyoffice-v16 .hyoffice-drive-browser-card{min-height:320px}.hyoffice-drive-files.hyoffice-folder-view{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));align-content:start}.hyoffice-drive-files.hyoffice-list-view{grid-template-columns:1fr}.hyoffice-drive-files.hyoffice-list-view .hyoffice-drive-file{border-radius:9px;padding:9px 12px}.hyoffice-drive-files.hyoffice-list-view .hyoffice-drive-file-icon{width:30px;height:30px;flex-basis:30px}
body.hyoffice-v16 .hyoffice-drive-file{position:relative;cursor:grab;user-select:none}.hyoffice-drive-file:active{cursor:grabbing}.hyoffice-drive-file.is-dragging{opacity:.42}.hyoffice-drive-file.drop-target{border-color:var(--ho-pink)!important;box-shadow:0 0 24px rgba(255,63,200,.34),inset 0 0 18px rgba(255,63,200,.12)!important;transform:scale(1.015)}.hyoffice-drive-file.is-selected{border-color:var(--ho-cyan);background:linear-gradient(110deg,rgba(53,234,255,.18),rgba(166,87,255,.17));box-shadow:0 0 20px rgba(53,234,255,.2)}
body.hyoffice-v16 .drive-check{display:grid;place-items:center;width:18px;height:18px;flex:0 0 18px}.drive-check input{accent-color:#28eaff;width:15px;height:15px}.drive-file-kind{padding:3px 5px;border:1px solid rgba(53,234,255,.28);border-radius:5px;color:var(--ho-muted);font:800 8px Roboto Mono,monospace}.drive-folder-count{color:var(--ho-cyan);font-size:22px;text-shadow:0 0 10px var(--ho-cyan)}.folder-icon{background:linear-gradient(135deg,#20edbd,#248dff)!important}
body.hyoffice-v16 .hyoffice-drive-selection{display:flex;align-items:center;gap:8px;margin:-3px 0 10px;padding:9px 10px;border:1px solid rgba(53,234,255,.34);border-radius:10px;background:rgba(53,234,255,.08);color:var(--ho-ink);font:800 10px Inter,sans-serif}.hyoffice-drive-selection button{margin-left:auto;padding:6px 9px;border:1px solid rgba(53,234,255,.35);border-radius:7px;background:rgba(53,234,255,.08);color:var(--ho-ink);cursor:pointer}.hyoffice-drive-selection button+button{margin-left:0}.hyoffice-drive-selection button:hover{border-color:var(--ho-cyan);box-shadow:0 0 12px rgba(53,234,255,.22)}
body.hyoffice-v16 .hyoffice-drive-nav{min-width:0}.hyoffice-drive-nav .hyoffice-drive-folder{overflow:hidden}.hyoffice-drive-nav .hyoffice-drive-folder span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-mode="light"] body.hyoffice-v16 .hyoffice-tree-folder,html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-toolbar>button,html[data-mode="light"] body.hyoffice-v16 .hyoffice-view-toggle button,html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-selection button{color:#163b5c!important}html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-file{background:linear-gradient(110deg,rgba(255,255,255,.92),rgba(229,241,255,.9));color:#10243d}html[data-mode="light"] body.hyoffice-v16 .hyoffice-drive-file-info small,html[data-mode="light"] body.hyoffice-v16 .drive-file-kind{color:#536a86}
@media(max-width:700px){body.hyoffice-v16 .hyoffice-drive-browser-shell{display:block;max-width:100vw;overflow-x:hidden}.hyoffice-drive-content{margin-top:14px;min-width:0}.hyoffice-drive-nav{max-width:100%;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important}.hyoffice-folder-tree{max-width:100%;max-height:180px!important;display:flex!important;overflow-x:auto!important;overflow-y:hidden!important}.hyoffice-tree-row{flex:0 0 auto}.hyoffice-tree-folder{padding-left:8px!important}.hyoffice-drive-files.hyoffice-folder-view{grid-template-columns:1fr 1fr}.hyoffice-drive-files.hyoffice-folder-view .hyoffice-drive-file{padding:10px 8px;gap:6px;display:grid;grid-template-columns:auto 1fr auto;align-items:center}.hyoffice-drive-files.hyoffice-folder-view .drive-check{grid-column:1}.hyoffice-drive-files.hyoffice-folder-view .hyoffice-drive-file-icon{grid-column:2;grid-row:1}.hyoffice-drive-files.hyoffice-folder-view .hyoffice-drive-file-info{grid-column:1/-1;grid-row:2}.hyoffice-drive-files.hyoffice-folder-view .hyoffice-drive-open{grid-column:3;grid-row:1}.hyoffice-drive-files.hyoffice-folder-view .drive-file-kind{display:none}.hyoffice-drive-toolbar{gap:7px!important;min-width:0}.hyoffice-drive-toolbar .hyoffice-drive-search{flex:0 0 44px!important;min-height:44px;min-width:0;width:100%}.hyoffice-drive-toolbar>button,.hyoffice-drive-toolbar select,.hyoffice-drive-new{flex:1;min-width:0}.hyoffice-view-toggle{margin-left:auto}.hyoffice-drive-selection{max-width:100%;overflow:hidden}.hyoffice-drive-selection button{flex:0 0 auto}}
.hyoffice-drive-upload-manager[hidden]{display:none!important}
@media(max-width:700px){body.hyoffice-v16 .hyoffice-drive-content{padding-bottom:96px!important}}

/* 2026-09-08 final editor/Drive geometry: keep menus above their surfaces,
   keep the ruler numerals above its tick background, and render the personal
   bank as quiet preview cards rather than a flat list. */
body.hyoffice-v16 #doc-hbar{position:relative!important;z-index:7000!important;overflow:visible!important}
body.hyoffice-v16 #doc-hbar > .hyoffice-tool-group{position:relative!important;z-index:15000!important}
body.hyoffice-v16 #doc-hbar .hyoffice-tool-group-menu{position:absolute!important;z-index:16000!important;top:calc(100% + 6px)!important;left:0!important;overflow:visible!important;white-space:nowrap!important}
body.hyoffice-v16 .hyoffice-ruler{z-index:100!important;color:#d9f6ff!important}
body.hyoffice-v16 .hyoffice-ruler-scale{position:relative!important;z-index:2!important;display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;align-items:end!important;height:100%!important;padding-top:10px!important;color:#d9f6ff!important;font:900 11px/1 Roboto Mono,monospace!important;text-shadow:0 0 8px rgba(53,234,255,.7)!important}
body.hyoffice-v16 .hyoffice-ruler-scale span{position:relative!important;z-index:3!important;display:block!important;color:#d9f6ff!important;opacity:1!important;text-align:center!important;line-height:1!important}
body.hyoffice-v16 .hyoffice-ruler-scale span::before{z-index:2!important;height:12px!important;bottom:11px!important}
body.hyoffice-v16 #doc-hbar #doc-hbar-font{display:block!important;visibility:visible!important;opacity:1!important;flex:0 0 82px!important;width:82px!important;min-width:82px!important;max-width:82px!important;overflow:visible!important}
body.hyoffice-v16 #doc-hbar .hf-dd{position:relative!important;display:block!important;flex:0 0 82px!important;width:82px!important;min-width:82px!important;max-width:82px!important;z-index:16000!important}
body.hyoffice-v16 #doc-hbar .hf-dd-trigger{width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.hyoffice-v16 #doc-hbar .hf-dd-panel{position:absolute!important;top:calc(100% + 6px)!important;left:0!important;z-index:17000!important;min-width:210px!important;max-width:min(280px,calc(100vw - 16px))!important;max-height:300px!important;overflow:auto!important}
body.hyoffice-v16 .hyoffice-drive-banner{display:none!important}
@media(max-width:700px){body.hyoffice-v16 .hyoffice-drive-toolbar{grid-template-columns:minmax(0,1fr) auto auto auto!important}body.hyoffice-v16 .hyoffice-drive-toolbar select{width:100%!important;max-width:128px!important;padding-left:7px!important;padding-right:7px!important}body.hyoffice-v16 .hyoffice-drive-toolbar>button{padding-left:7px!important;padding-right:7px!important;white-space:nowrap!important}body.hyoffice-v16 .hyoffice-drive-toolbar .hyoffice-view-toggle{width:70px!important;justify-content:flex-end!important}body.hyoffice-v16 .hyoffice-drive-toolbar .hyoffice-view-toggle button{width:32px!important;min-width:32px!important;padding:0!important}}
body.hyoffice-v16 .hyoffice-bank-files{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;gap:12px!important;align-items:stretch!important}
body.hyoffice-v16 .hyoffice-bank-file-card{display:grid!important;grid-template-columns:1fr auto!important;grid-template-rows:132px auto!important;align-items:center!important;gap:8px!important;min-width:0!important;padding:10px!important;overflow:hidden!important}
body.hyoffice-v16 .hyoffice-bank-preview-wrap{grid-column:1/-1!important;width:100%!important;height:132px!important;min-height:132px!important;display:grid!important;place-items:center!important;overflow:hidden!important;border-radius:10px!important;background:linear-gradient(135deg,rgba(53,234,255,.12),rgba(166,87,255,.16))!important;border:1px solid rgba(53,234,255,.25)!important}
body.hyoffice-v16 .hyoffice-bank-preview{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#030813!important}
body.hyoffice-v16 .hyoffice-bank-file-icon{font-size:42px!important;color:var(--ho-cyan)!important;text-shadow:0 0 18px var(--ho-cyan)!important}
body.hyoffice-v16 .hyoffice-bank-file-card .hyoffice-drive-file-info{min-width:0!important;grid-column:1!important}
body.hyoffice-v16 .hyoffice-bank-file-card .hyoffice-drive-open{grid-column:2!important;grid-row:2!important;align-self:center!important}
@media(max-width:700px){body.hyoffice-v16 .hyoffice-bank-files{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}body.hyoffice-v16 .hyoffice-bank-file-card{grid-template-rows:92px auto!important;padding:8px!important}body.hyoffice-v16 .hyoffice-bank-preview-wrap{height:92px!important;min-height:92px!important}body.hyoffice-v16 .hyoffice-bank-file-card .hyoffice-drive-file-info strong{font-size:10px!important}body.hyoffice-v16 .hyoffice-bank-file-card .hyoffice-drive-file-info small{font-size:8px!important}}

/* The editor stays in the document flow. No keyboard-attached toolbar: the
   compact surface is always immediately above the text input. */
body.hyoffice-v16 #doc-hbar{display:flex!important;flex-wrap:wrap!important;align-content:center!important;max-height:88px!important;min-height:50px!important;overflow-x:auto!important;overflow-y:hidden!important}
body.hyoffice-v16 #sheet-hbar{display:flex!important;flex-wrap:nowrap!important;max-height:52px!important;min-height:44px!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important}
html.hy-keyboard-open body.hyoffice-v16 #doc-hbar,html.hy-keyboard-open body.hyoffice-v16 #sheet-hbar{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:7000!important;max-height:88px!important;background:rgba(5,13,29,.90)!important;backdrop-filter:none!important}
/* Scoped Drive upload queue: progress stays visible without changing shared app styles. */
.hyoffice-drive-upload-manager{display:grid;gap:6px;margin:10px 0;padding:10px;border:1px solid rgba(53,234,255,.24);border-radius:14px;background:rgba(3,8,18,.72);backdrop-filter:blur(16px);box-shadow:0 0 24px rgba(53,234,255,.08)}
.hyoffice-upload-row{display:grid;grid-template-columns:minmax(90px,1fr) minmax(120px,2fr) auto;gap:8px;align-items:center;font-size:11px;color:var(--ho-ink,#e9f7ff)}
.hyoffice-upload-row progress{width:100%;height:7px;accent-color:#35eaff}
.hyoffice-upload-row.is-failed{color:#ff8fa3}
html[data-mode="light"] .hyoffice-drive-upload-manager{background:rgba(247,252,255,.9);color:#15304d}
@media(max-width:600px){.hyoffice-upload-row{grid-template-columns:1fr auto}.hyoffice-upload-row progress{grid-column:1 / -1}}

/* 2026-09-08 focused editor/Drive activation pass. */
body.hyoffice-v16 .hyoffice-margin-panel{display:none!important}
body.hyoffice-v16.doc-sections-open .hyoffice-margin-panel{display:flex!important}
body.hyoffice-v16 .hyoffice-ruler{height:26px!important;min-height:26px!important;padding:0 10px!important;overflow:hidden!important;border-radius:9px!important}
body.hyoffice-v16 .hyoffice-ruler-scale{height:26px!important;min-height:26px!important;background-size:12px 100%,60px 100%!important}
body.hyoffice-v16 .hyoffice-ruler-scale span{font-size:9px!important;line-height:24px!important}
@media(min-width:901px){body.hyoffice-v16 #doc-hbar{display:flex!important;flex-wrap:wrap!important;min-height:50px!important;max-height:88px!important;overflow-x:auto!important;overflow-y:hidden!important}body.hyoffice-v16 #doc-hbar .os-select{min-width:58px!important;max-width:92px!important}body.hyoffice-v16 #doc-hbar #doc-hbar-font{min-width:68px!important;max-width:82px!important}}
@media(max-width:900px){body.hyoffice-v16 #doc-hbar{display:flex!important;flex-wrap:wrap!important;min-height:50px!important;max-height:88px!important;gap:3px!important;padding:5px!important;overflow-x:auto!important;overflow-y:hidden!important}body.hyoffice-v16 #doc-hbar .os-tbtn,body.hyoffice-v16 #doc-hbar button{flex:0 0 32px!important;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:4px!important}body.hyoffice-v16 #doc-hbar .os-select{flex:0 0 auto!important;width:auto!important;min-width:54px!important;max-width:86px!important;height:32px!important}body.hyoffice-v16 #sheet-hbar{display:flex!important;flex-wrap:nowrap!important;align-content:center!important;max-height:52px!important;min-height:44px!important;overflow-x:auto!important;overflow-y:hidden!important;gap:3px!important;padding:5px!important;white-space:nowrap!important}body.hyoffice-v16 #sheet-hbar .os-tbtn,body.hyoffice-v16 #sheet-hbar button{flex:0 0 30px!important;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:3px!important}body.hyoffice-v16 #sheet-hbar .os-select{height:30px!important;min-width:74px!important;max-width:104px!important}html.hy-keyboard-open body.hyoffice-v16 #doc-hbar,html.hy-keyboard-open body.hyoffice-v16 #sheet-hbar{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:7000!important;max-height:88px!important;min-height:44px!important;overflow-x:auto!important;overflow-y:hidden!important;background:rgba(5,13,29,.90)!important;backdrop-filter:none!important}}

/* 2026-09-09 surgical regression repair: this rule is deliberately last in
   the existing allowlisted sheet so older responsive overrides cannot make
   the rich controls wrap again. */
body.hyoffice-v16 #doc-hbar,
body.hyoffice-v16 #sheet-hbar {
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  min-width:0!important;
  min-height:44px!important;
  max-height:52px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  white-space:nowrap!important;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
body.hyoffice-v16 #doc-hbar > *,
body.hyoffice-v16 #sheet-hbar > *,
body.hyoffice-v16 #doc-hbar .os-tbtn,
body.hyoffice-v16 #sheet-hbar .os-tbtn { flex:0 0 auto!important; }
html.hy-keyboard-open body.hyoffice-v16 #doc-hbar,
html.hy-keyboard-open body.hyoffice-v16 #sheet-hbar {
  position:relative!important;
  inset:auto!important;
  max-height:52px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}

/* Keep profile state above the command rows/dock and make the authorized
   company selection visually unambiguous. */
body.hyoffice-v16 .hy-mobile-header,
body.hyoffice-v16 .hyoffice-drive-header {
  position:relative!important;
  z-index:20000!important;
  isolation:isolate;
  overflow:visible!important;
}
body.hyoffice-v16 .hyoffice-profile-wrap { position:relative!important; z-index:20001!important; }
body.hyoffice-v16 .hyoffice-profile-menu,
body.hyoffice-v16 .hyoffice-apps-menu {
  position:fixed!important;
  top:calc(env(safe-area-inset-top,0px) + 62px)!important;
  right:max(12px,env(safe-area-inset-right,0px) + 12px)!important;
  z-index:20010!important;
  max-height:calc(100dvh - 86px)!important;
  overflow:auto!important;
  overscroll-behavior:contain;
}
body.hyoffice-v16 .hyoffice-profile-menu [aria-current="true"],
body.hyoffice-v16 .hyoffice-profile-menu .is-selected {
  color:#fff!important;
  border-color:var(--ho-cyan)!important;
  background:linear-gradient(90deg,rgba(53,234,255,.20),rgba(166,87,255,.18))!important;
  box-shadow:inset 3px 0 0 var(--ho-cyan),0 0 14px rgba(53,234,255,.12)!important;
}

/* Mobile folder navigation stays crisp and readable; the scrim dims the page
   without applying a blur filter to the actual tree. */
@media(max-width:700px){
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav,
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-backdrop {
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav { background:rgba(2,7,17,.985)!important; }
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-backdrop { background:rgba(0,0,0,.52)!important; }
}
@media(max-width:700px){body.hyoffice-v16 .hyoffice-drive-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;align-items:center!important;gap:7px!important;margin-bottom:0!important;min-width:0!important}body.hyoffice-v16 .hyoffice-drive-toolbar .hyoffice-drive-search{grid-column:1/-1!important;width:100%!important;min-width:0!important;flex:none!important}body.hyoffice-v16 .hyoffice-drive-toolbar .hyoffice-drive-new,body.hyoffice-v16 .hyoffice-drive-toolbar>button,body.hyoffice-v16 .hyoffice-drive-toolbar .hyoffice-view-toggle{min-width:0!important;margin:0!important}body.hyoffice-v16 .hyoffice-drive-toolbar .hyoffice-view-toggle{display:flex!important;gap:4px!important}}

/* Surgical navigation repair: the shared Office dock remains available while
   editing, and profile menus rise above sticky command/header surfaces. */
@media(max-width:640px){
  body.hyoffice-v16.office-doc-mode .hyoffice-dock,
  body.hyoffice-v16.office-editor-focused .hyoffice-dock{
    transform:translateX(-50%)!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
}
body.hyoffice-v16.office-profile-open .hy-mobile-header,
body.hyoffice-v16.office-profile-open .hyoffice-drive-header{
  z-index:10000!important;
}
body.hyoffice-v16 .hyoffice-profile-menu{
  z-index:10001!important;
}
body.hyoffice-v16 .hyoffice-drive-header .hyoffice-profile-wrap{
  position:relative;
  z-index:10001;
}

/* 2026-09-08 Drive cleanup: the landing view is the folder browser. The
   drawer owns navigation, with real folder icons and visible empty-folder
   states; collaboration and personal-bank landing cards stay out of flow. */
body.hyoffice-v16 .hyoffice-drive-brand .hyoffice-wordmark{display:inline-flex!important;align-items:baseline!important;gap:3px!important;white-space:nowrap!important;line-height:1!important}
body.hyoffice-v16 .hyoffice-drive-brand .hyoffice-wordmark::before,
body.hyoffice-v16 .hyoffice-drive-brand .hyoffice-wordmark::after{content:none!important;display:none!important}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-head>span,
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-title,
body.hyoffice-v16.hyoffice-drive-page .hyoffice-tree-heading>span{display:inline-flex;align-items:center;gap:7px}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-head iconify-icon,
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-title iconify-icon,
body.hyoffice-v16.hyoffice-drive-page .hyoffice-tree-heading iconify-icon{font-size:15px;line-height:1;color:var(--ho-cyan)}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-head button iconify-icon{font-size:19px}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-folder-tree{display:grid!important;gap:3px;max-height:360px;overflow-y:auto;overflow-x:hidden}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-tree-row{display:grid;gap:2px;min-width:0}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-tree-folder{width:100%!important;min-height:38px!important;padding-left:calc(8px + var(--tree-depth) * 14px)!important;padding-right:7px!important;gap:7px!important;min-width:0!important}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-tree-folder iconify-icon{flex:0 0 17px;font-size:17px;color:var(--ho-cyan);filter:drop-shadow(0 0 5px color-mix(in srgb,var(--ho-cyan) 44%,transparent))}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-tree-caret{flex:0 0 10px;text-align:center}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-tree-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-tree-empty{margin-left:auto;padding:3px 5px;border:1px solid color-mix(in srgb,var(--ho-violet) 38%,transparent);border-radius:5px;color:var(--ho-muted);font:700 8px/1 Roboto Mono,monospace;letter-spacing:.04em;text-transform:uppercase}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-file-icon.folder-icon{display:grid;place-items:center}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-file-icon.folder-icon iconify-icon{font-size:31px;line-height:1;color:var(--ho-ink);filter:drop-shadow(0 0 8px var(--ho-cyan))}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-folder-card.is-empty-folder{border-style:dashed}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-folder-card.is-empty-folder .hyoffice-drive-file-info small{color:var(--ho-cyan)}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-toggle iconify-icon{font-size:20px;line-height:1}
@media(max-width:700px){
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav{width:min(320px,88vw)!important}
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-folder-tree{display:grid!important;max-height:none!important;overflow-y:visible!important;overflow-x:hidden!important}
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-tree-row{flex:none!important;width:100%!important}
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-tree-folder{width:100%!important;min-height:40px!important}
}

/* Final mobile contract: the folder control owns the first toolbar column and
   the search field may shrink; neither can be pushed beyond the viewport. */
body.hyoffice-v16.hyoffice-drive-page{overflow-x:hidden!important}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-toolbar,
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-search-row{min-width:0!important;max-width:100%!important}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-search-row{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-toggle{grid-column:1;grid-row:1;min-width:84px!important;max-width:112px!important}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-search{grid-column:2;grid-row:1;width:auto!important;min-width:0!important}
body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-search input{min-width:0!important;width:100%!important}
.hyoffice-drive-media-preview{width:min(760px,calc(100vw - 28px));max-width:760px;padding:18px;border:1px solid color-mix(in srgb,var(--ho-cyan) 55%,transparent);border-radius:18px;background:linear-gradient(145deg,var(--ho-panel),var(--ho-bg));color:var(--ho-ink);box-shadow:0 20px 80px rgba(0,0,0,.72)}
.hyoffice-drive-media-preview::backdrop{background:rgba(0,0,0,.76);backdrop-filter:blur(4px)}
.hyoffice-drive-media-preview img,.hyoffice-drive-media-preview video{display:block;width:100%;max-height:72vh;object-fit:contain;border-radius:12px;background:#000;margin:28px 0 12px}
.hyoffice-drive-media-preview strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drive-media-close{position:absolute;right:10px;top:8px;width:36px;height:36px;border:1px solid color-mix(in srgb,var(--ho-cyan) 45%,transparent);border-radius:10px;background:rgba(53,234,255,.08);color:var(--ho-ink);font-size:24px;line-height:1;cursor:pointer}
.hyoffice-drive-preview,.hyoffice-drive-share{min-height:36px;padding:0 8px;border:1px solid color-mix(in srgb,var(--ho-cyan) 36%,transparent);border-radius:8px;background:rgba(53,234,255,.07);color:var(--ho-ink);cursor:pointer}
.hyoffice-drive-file-icon video{display:block;width:100%;height:100%;min-width:42px;min-height:42px;object-fit:cover;border-radius:8px;background:var(--ho-bg)}
@media(max-width:700px){
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-toolbar{gap:7px!important}
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-toggle{min-height:44px!important}
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-card{margin-inline:0!important}
}
@media(max-width:700px){
  /* Keep the left folder control and search field in separate mobile columns;
     the legacy toolbar rules otherwise allow the search label to span over it. */
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-search-row{display:flex!important;align-items:stretch!important;gap:7px!important;width:100%!important}
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-nav-toggle{flex:0 0 84px!important;width:84px!important;min-width:84px!important;max-width:84px!important}
  body.hyoffice-v16.hyoffice-drive-page .hyoffice-drive-search{flex:1 1 auto!important;width:auto!important;min-width:0!important;grid-column:auto!important}
}
