/* NEST (Ổ Mèo) — giao diện. Phong cách: viền nâu đậm + bóng cứng "nhãn dán", kem / đào, bo tròn, nảy bằng lò xo thật. */
body.nest-on .pcbar, body.nest-on .pcdesk, body.nest-on .pcwin, body.nest-on .dock, body.nest-on #appFrame, body.nest-on .pc-menu { display: none !important; }
body.nest-on .pcwrap { background: #1a1530; animation: none; }
.n-root { --ink: #4a3328; --ink2: #8a6a58; --line: #6b4630; --paper: #fffaf2; --cream: #fff1dc; --peach: #ffb48a; --pink: #ff9fb4; --mint: #8fd9b6; --sky: #8fc7ff; --butter: #ffd66b; --lav: #c0acff;
  position: absolute; inset: 0; z-index: 5; overflow: hidden; font-family: "Be Vietnam Pro", Inter, system-ui, sans-serif; color: var(--ink); font-size: 13.5px; user-select: none; -webkit-user-select: none; }
.n-root *, .n-root *::before, .n-root *::after { box-sizing: border-box; }
.n-root button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.n-root [hidden] { display: none !important; }
.n-root svg { display: block; }
body.n-dragging iframe { pointer-events: none !important; }
body.n-dragging, body.n-dragging * { cursor: grabbing !important; }
.n-noanim .n-root *, .n-noanim .n-root *::before { animation-duration: .001s !important; transition-duration: .001s !important; }
.n-paw { display: inline-block; flex: none; } .n-paw svg { width: 100%; height: 100%; }

/* ---------- hạt hiệu ứng ---------- */
.n-fxl { position: absolute; inset: 0; z-index: 9000; pointer-events: none; overflow: hidden; }
.fx-paw { position: absolute; width: 18px; height: 18px; } .fx-paw svg { width: 100%; height: 100%; }
.fx-puff, .fx-sand { position: absolute; border-radius: 50%; } .fx-puff { box-shadow: 0 0 0 2px rgba(107, 70, 48, .25) inset; }
.fx-star { position: absolute; line-height: 1; text-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.fx-fly { position: absolute; display: flex; align-items: center; justify-content: center; } .fx-fly svg { width: 100%; height: 100%; }
.fx-bigpaw { position: absolute; width: 56px; height: 56px; color: #ffb870; filter: drop-shadow(0 3px 0 #6b4630); transform-origin: right center; } .fx-bigpaw svg { width: 100%; height: 100%; }
.fx-litter { position: absolute; width: 120px; height: 100px; transform-origin: 50% 80%; } .fx-litter svg { width: 100%; height: 100%; }
.n-ghost { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; will-change: transform; }
.n-gh-c { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; }
.n-gh-s { position: absolute; inset: 0; opacity: .96; filter: drop-shadow(0 6px 6px rgba(60, 30, 10, .35)); } .n-gh-s svg { width: 100%; height: 100%; }
.n-gh-s.s1 { transform: translate(8px, 5px) rotate(7deg); opacity: .8; } .n-gh-s.s2 { transform: translate(15px, 9px) rotate(13deg); opacity: .6; }
.n-gh-s .th, .n-ic .th { position: absolute; }
.n-gh-n { position: absolute; left: 12px; top: -34px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: #ff7a9a; color: #fff; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; border: 2.5px solid var(--line, #6b4630); }

/* ---------- hình nền theo giờ ---------- */
.n-wall { position: absolute; inset: 0; overflow: hidden; background: #1f2152; }
.n-sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 52%, var(--s3) 100%); transition: background 3s; }
.n-stars { position: absolute; inset: 0; opacity: var(--stars, 0); transition: opacity 3s; } .n-stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; animation: tw var(--d) ease-in-out infinite; } @keyframes tw { 50% { opacity: .25; transform: scale(.6); } }
.n-sun, .n-moon { position: absolute; width: 92px; height: 92px; transform: translate(-50%, -50%); transition: left 20s linear, top 20s linear, opacity 2s; }
.n-sun { left: var(--sx); top: var(--sy); opacity: var(--sunO, 1); animation: bob 5s ease-in-out infinite; } .n-moon { left: var(--mx); top: var(--my); opacity: var(--moonO, 0); animation: bob 6s ease-in-out infinite; } @keyframes bob { 50% { margin-top: -7px; } }
.n-clouds .cl { position: absolute; width: 190px; opacity: var(--cloud, .9); transition: opacity 3s; animation: drift 140s linear infinite; filter: drop-shadow(0 6px 0 rgba(120, 90, 130, .12)); }
.n-clouds .c0 { top: 12%; animation-delay: -30s; } .n-clouds .c1 { top: 26%; width: 130px; animation-duration: 200s; animation-delay: -110s; } .n-clouds .c2 { top: 8%; width: 150px; animation-duration: 170s; animation-delay: -70s; }
@keyframes drift { from { left: -240px; } to { left: 105%; } }
.n-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; transition: all 3s; } .n-hills .win { fill: #ffd98a; opacity: var(--lit, 0); transition: opacity 3s; }
.n-wimg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s; }
.n-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(30, 10, 40, .28)); }

/* ---------- thanh trên ---------- */
.n-top { position: absolute; z-index: 60; left: 10px; right: 10px; top: 8px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 5px; border-radius: 20px; background: rgba(255, 246, 232, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 2.5px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.n-paw-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--peach); border: 2.5px solid var(--line); display: grid; place-items: center; color: #fff; transition: transform var(--sp-bouncy-t) var(--sp-bouncy); }
.n-paw-btn .n-paw { width: 17px; height: 17px; } .n-paw-btn:hover { transform: rotate(-12deg) scale(1.14); } .n-paw-btn:active { transform: scale(.88); } .n-paw-btn.on { background: var(--pink); transform: rotate(14deg) scale(1.1); }
.n-brand { font-weight: 800; font-size: 15px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 6px; } .n-brand small { font-size: 11px; font-weight: 600; color: var(--ink2); }
.n-seg { display: flex; padding: 2px; margin-left: 10px; border-radius: 14px; background: rgba(107, 70, 48, .1); } .n-seg button { height: 26px; padding: 0 11px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--ink2); transition: all var(--sp-snappy-t) var(--sp-snappy); } .n-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 0 var(--line); transform: translateY(-1px); } .n-seg button:not(.on):hover { color: var(--ink); }
.n-sp { flex: 1; } .n-ti { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 14px; font-weight: 600; font-size: 12.5px; transition: background .15s, transform var(--sp-bouncy-t) var(--sp-bouncy); position: relative; } button.n-ti:hover { background: rgba(107, 70, 48, .12); transform: translateY(-1px); } button.n-ti:active { transform: scale(.92); }
.n-clock { flex-direction: column; justify-content: center; gap: 0; line-height: 1.05; cursor: default; } .n-clock b { font-size: 13px; font-variant-numeric: tabular-nums; } .n-clock small { font-size: 10px; color: var(--ink2); }
.n-bell i { position: absolute; top: 3px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ff5d73; border: 1.5px solid #fff; } .n-stand span { font-size: 12px; } .n-stand:hover { background: rgba(255, 93, 115, .2) !important; }

/* ---------- vùng làm việc ---------- */
.n-stage { position: absolute; inset: 0; } .n-deskhost { position: absolute; left: 0; right: 0; top: 50px; bottom: 0; } .n-deskhost.hid { visibility: hidden; pointer-events: none; }
.n-wins { position: absolute; inset: 0; pointer-events: none; z-index: 20; } .n-wins > * { pointer-events: auto; }
.n-desk { position: absolute; inset: 0; outline: none; } .n-desk-i { position: absolute; inset: 0; }
.n-wg { position: absolute; right: 12px; top: 6px; width: 232px; display: flex; flex-direction: column; gap: 10px; z-index: 1; pointer-events: none; } .n-wg > * { pointer-events: auto; }
.wcard { padding: 12px 14px; border-radius: 18px; background: rgba(255, 248, 238, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 2.5px solid var(--line); box-shadow: 0 3px 0 var(--line); animation: wgin var(--sp-bouncy-t) var(--sp-bouncy) backwards; } .wcard:nth-child(2) { animation-delay: .08s; } .wcard:nth-child(3) { animation-delay: .16s; } @keyframes wgin { from { opacity: 0; transform: translateX(40px) scale(.9); } }
.wc b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; } .wc small { font-size: 12px; color: var(--ink2); font-weight: 600; }
.wcard h5 { margin: 0 0 7px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; color: var(--ink2); } .wt-l { display: flex; flex-direction: column; gap: 3px; } .wt-l small, .wo small { font-size: 11.5px; color: var(--ink2); }
.wtk { display: flex; align-items: center; gap: 7px; padding: 5px 7px; border-radius: 9px; text-align: left; font-size: 12px; transition: background .15s, transform var(--sp-snappy-t) var(--sp-snappy); } .wtk:hover { background: rgba(255, 180, 138, .35); transform: translateX(3px); } .wtk span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wtk em { font-style: normal; font-size: 10.5px; color: var(--ink2); } .wtk.late em { color: #e0405a; font-weight: 700; } .wtk i { width: 8px; height: 8px; border-radius: 50%; background: #8fc7ff; flex: none; } .wtk i.p3, .wtk i.p2 { background: #ffb48a; } .wtk i.p1 { background: #ff7a9a; }
.wf { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; } .wf span { border-radius: 50%; overflow: hidden; border: 2px solid #fff; display: block; }

/* ---------- cửa sổ ---------- */
.n-win { position: absolute; display: flex; flex-direction: column; border-radius: 16px; background: var(--paper); border: 3px solid var(--line); box-shadow: 0 5px 0 var(--line), 0 22px 44px -8px rgba(30, 10, 0, .38); transition: box-shadow .2s; }
.n-win:not(.focus) { box-shadow: 0 3px 0 var(--line), 0 10px 24px -8px rgba(30, 10, 0, .25); } .n-win:not(.focus) .n-wb { filter: saturate(.55) brightness(1.04); }
.n-win.fly { transition: left var(--sp-bouncy-t) var(--sp-bouncy), top var(--sp-bouncy-t) var(--sp-bouncy), width var(--sp-bouncy-t) var(--sp-bouncy), height var(--sp-bouncy-t) var(--sp-bouncy); }
.n-win.hid { visibility: hidden; pointer-events: none; } .n-win.moving { box-shadow: 0 10px 0 var(--line), 0 34px 60px -10px rgba(30, 10, 0, .45); transform: rotate(.35deg); }
.n-win::before, .n-win::after { content: ""; position: absolute; top: -15px; width: 22px; height: 18px; background: var(--c); clip-path: polygon(0 100%, 50% 0, 100% 100%); filter: drop-shadow(2px 0 0 var(--line)) drop-shadow(-2px 0 0 var(--line)) drop-shadow(0 -2px 0 var(--line)); transform-origin: 50% 100%; transition: transform var(--sp-wobbly-t) var(--sp-wobbly); }
.n-win::before { left: 26px; transform: rotate(-12deg); } .n-win::after { right: 26px; transform: rotate(12deg); }
.n-win.focus::before { animation: ear 5s ease-in-out infinite; } @keyframes ear { 0%, 90%, 100% { transform: rotate(-12deg); } 94% { transform: rotate(-24deg); } 97% { transform: rotate(-8deg); } }
.n-win.tabbed::before, .n-win.tabbed::after, .n-win.tabbed .n-wb { display: none; } .n-win.tabbed { border-radius: 0; border-width: 0; box-shadow: none; background: #fff; } .n-win.tabbed .n-wload { inset: 0; }
.n-wb { position: relative; height: 38px; flex: none; display: flex; align-items: center; padding: 0 10px; background: var(--c); border-bottom: 3px solid var(--line); border-radius: 12px 12px 0 0; cursor: grab; transition: filter .2s; } .n-wb:active { cursor: grabbing; }
.n-wbtns { display: flex; gap: 7px; width: 80px; flex: none; } .n-wbtns button { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: transform var(--sp-pop-t) var(--sp-pop); }
.n-wbtns button i { font-style: normal; font-size: 10px; font-weight: 900; line-height: 1; opacity: 0; color: var(--line); } .n-wb:hover .n-wbtns button i { opacity: 1; } .n-wbtns button:hover { transform: scale(1.35); } .n-wbtns button:active { transform: scale(.85); }
.n-wbtns .x { background: #ff8fa3; } .n-wbtns .m { background: #ffd66b; } .n-wbtns .z { background: #8fe0b8; }
.n-wt { position: absolute; left: 100px; right: 90px; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 8px; pointer-events: none; min-width: 0; } .n-wt b { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-wic { display: flex; width: 20px; height: 20px; flex: none; } .n-wic svg { width: 100%; height: 100%; } .n-wic .appico { --s: 20px; } .n-wic .n-bi { width: 20px; height: 20px; font-size: 12px; }
.n-wr { margin-left: auto; display: flex; gap: 4px; } .n-wr button { width: 24px; height: 24px; border-radius: 8px; font-size: 14px; font-weight: 700; opacity: .55; transition: all var(--sp-snappy-t) var(--sp-snappy); } .n-wr button:hover { opacity: 1; background: rgba(255, 255, 255, .45); transform: rotate(90deg); }
.n-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: none; border: 2px solid var(--line); } .n-dot.dirty { display: block; background: #ff7a9a; } .n-dot.busy { display: block; background: #8fc7ff; animation: pulse 1s ease-in-out infinite; } @keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }
.n-wbody { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 0 0 12px 12px; background: var(--paper); } .n-wbody iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.n-win.tabbed .n-wbody { border-radius: 0; }
.n-wload { position: absolute; left: 0; right: 0; top: 41px; bottom: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 8px; background: var(--paper); border-radius: 0 0 12px 12px; transition: opacity .3s, visibility .3s; } .n-win.loaded .n-wload { opacity: 0; visibility: hidden; pointer-events: none; }
.n-wload .lc { font-size: 44px; animation: hop 0.9s var(--sp-bouncy) infinite; } .n-wload small { color: var(--ink2); font-weight: 600; } @keyframes hop { 0%, 100% { transform: translateY(0) scale(1.1, .9); } 50% { transform: translateY(-16px) scale(.95, 1.08); } }
.n-rz { position: absolute; z-index: 5; } .n-rz.n, .n-rz.s { left: 12px; right: 12px; height: 9px; cursor: ns-resize; } .n-rz.e, .n-rz.w { top: 12px; bottom: 12px; width: 9px; cursor: ew-resize; } .n-rz.n { top: -6px; } .n-rz.s { bottom: -6px; } .n-rz.e { right: -6px; } .n-rz.w { left: -6px; }
.n-rz.ne, .n-rz.nw, .n-rz.se, .n-rz.sw { width: 18px; height: 18px; } .n-rz.ne { top: -6px; right: -6px; cursor: nesw-resize; } .n-rz.nw { top: -6px; left: -6px; cursor: nwse-resize; } .n-rz.se { bottom: -6px; right: -6px; cursor: nwse-resize; } .n-rz.sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.n-win.tabbed .n-rz { display: none; } .n-win[data-state="max"] .n-rz { display: none; }
.n-snapg { position: absolute; z-index: 8000; border-radius: 18px; background: rgba(255, 180, 138, .3); border: 3px dashed #ff9a63; pointer-events: none; transition: all var(--sp-bouncy-t) var(--sp-bouncy); }
.n-snapm { position: absolute; z-index: 8100; padding: 10px 12px 12px; border-radius: 16px; background: var(--paper); border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line), 0 18px 30px rgba(30, 10, 0, .3); width: 212px; } .n-snapm small { display: block; font-size: 11px; font-weight: 700; color: var(--ink2); margin-bottom: 7px; }
.n-snapm .sg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .sl { position: relative; height: 38px; border-radius: 6px; background: rgba(107, 70, 48, .1); } .sl button { position: absolute; border-radius: 4px; border: 2px solid var(--paper); background: var(--peach); transition: all .12s; } .sl button:hover { background: var(--pink); transform: scale(1.04); }
.n-div { position: absolute; z-index: 60; width: 14px; cursor: ew-resize; display: grid; place-items: center; } .n-div i { width: 6px; height: 64px; border-radius: 3px; background: var(--line); transition: all var(--sp-snappy-t) var(--sp-snappy); } .n-div:hover i { height: 110px; background: var(--peach); }

/* ---------- tab ---------- */
.n-tabs { position: absolute; z-index: 55; left: 10px; right: 10px; top: 50px; height: 38px; display: none; align-items: flex-end; gap: 5px; padding: 0 4px; overflow-x: auto; scrollbar-width: none; } .tabmode .n-tabs { display: flex; }
.n-tab { position: relative; display: flex; align-items: center; gap: 7px; height: 33px; min-width: 70px; max-width: 200px; padding: 0 8px 0 10px; border-radius: 12px 12px 0 0; background: rgba(255, 246, 232, .66); border: 2.5px solid var(--line); border-bottom: 0; cursor: pointer; flex: none; transition: transform var(--sp-bouncy-t) var(--sp-bouncy), background .15s; font-weight: 600; font-size: 12.5px; }
.n-tab:hover { background: rgba(255, 246, 232, .92); transform: translateY(-2px); } .n-tab.on { height: 38px; background: var(--paper); box-shadow: inset 0 4px 0 var(--c, var(--peach)); z-index: 2; padding-top: 3px; } .n-tab.split.on { box-shadow: inset 0 4px 0 var(--c, var(--peach)), 0 0 0 0; }
.n-tab.desk { --c: var(--pink); } .n-tab.desk .n-paw { width: 15px; height: 15px; color: #e0405a; } .n-tab b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .n-tab .ti { display: flex; width: 18px; height: 18px; flex: none; } .n-tab .ti svg { width: 100%; height: 100%; } .n-tab .ti .appico { --s: 18px; }
.n-tab .tx { width: 18px; height: 18px; border-radius: 50%; font-size: 10px; opacity: 0; transition: all var(--sp-pop-t) var(--sp-pop); } .n-tab:hover .tx, .n-tab.on .tx { opacity: .7; } .n-tab .tx:hover { opacity: 1; background: #ff8fa3; transform: scale(1.2); }
.n-tab.add { min-width: 34px; max-width: 34px; justify-content: center; padding: 0; font-size: 17px; } .n-tab.drag { z-index: 9; box-shadow: 0 8px 14px rgba(0, 0, 0, .3); transition: none; }

/* ---------- dock ---------- */
.n-dock { position: absolute; z-index: 70; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 4px; padding: 8px 12px 6px; border-radius: 26px; background: rgba(255, 246, 232, .84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line), 0 16px 28px -8px rgba(30, 10, 0, .35); max-width: calc(100% - 24px); transition: transform var(--sp-bouncy-t) var(--sp-bouncy); }
.n-root[data-dock="left"] .n-dock, .n-root[data-dock="right"] .n-dock { left: 10px; bottom: auto; top: 54px; transform: none; flex-direction: column; align-items: center; padding: 12px 6px; max-height: calc(100% - 70px); } .n-root[data-dock="right"] .n-dock { left: auto; right: 10px; }
.n-dock.autohide:not(.peek) { transform: translate(-50%, calc(100% + 24px)); } .n-root[data-dock="left"] .n-dock.autohide:not(.peek) { transform: translateX(-120%); } .n-root[data-dock="right"] .n-dock.autohide:not(.peek) { transform: translateX(120%); }
.dk { position: relative; width: 56px; height: 58px; flex: none; display: grid; place-items: center; transform: scale(var(--m, 1)); transform-origin: 50% 100%; transition: transform var(--sp-snappy-t) var(--sp-snappy); } .n-dock.mag .dk { transition: none; } .n-root[data-dock="left"] .dk { transform-origin: 0 50%; } .n-root[data-dock="right"] .dk { transform-origin: 100% 50%; }
.dk.lift { z-index: 5; transition: none; } .dki { width: 48px; height: 48px; display: grid; place-items: center; } .dki svg { width: 46px; height: 46px; } .dki .appico { --s: 48px; } .dki .n-bi { width: 44px; height: 44px; font-size: 22px; }
.dk em { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) scale(.7); padding: 4px 10px; border-radius: 10px; background: var(--line); color: #fff; font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: all var(--sp-bouncy-t) var(--sp-bouncy); } .dk:hover em { opacity: 1; transform: translateX(-50%) scale(1); }
.n-root[data-dock="left"] .dk em { bottom: auto; left: calc(100% + 12px); top: 50%; transform: translateY(-50%) scale(.7); } .n-root[data-dock="left"] .dk:hover em { transform: translateY(-50%) scale(1); } .n-root[data-dock="right"] .dk em { bottom: auto; left: auto; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) scale(.7); } .n-root[data-dock="right"] .dk:hover em { transform: translateY(-50%) scale(1); }
.dkp { position: absolute; bottom: -2px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; color: var(--line); opacity: 0; transform: scale(0); transition: all var(--sp-bouncy-t) var(--sp-bouncy); } .dkp svg { width: 100%; height: 100%; } .dk.run .dkp { opacity: .8; transform: scale(1); } .dk.act .dkp { color: #ff7a9a; opacity: 1; }
.dkd { position: absolute; top: 3px; right: 6px; width: 11px; height: 11px; border-radius: 50%; background: #ff7a9a; border: 2px solid #fff; } .dk.busy .dki { animation: pulse 1.2s ease-in-out infinite; }
.n-root[data-dock="left"] .dkp { left: -3px; bottom: 50%; margin: 0 0 -5.5px; } .n-root[data-dock="right"] .dkp { left: auto; right: -3px; bottom: 50%; margin: 0 0 -5.5px; }
.dk-sep { width: 2.5px; align-self: stretch; margin: 6px 5px; border-radius: 2px; background: rgba(107, 70, 48, .25); } .n-root[data-dock="left"] .dk-sep, .n-root[data-dock="right"] .dk-sep { width: auto; height: 2.5px; align-self: stretch; margin: 5px 6px; }
.n-fallic, .n-bi { display: grid; place-items: center; border-radius: 28%; background: var(--c, #ffcfa0); border: 2.5px solid var(--line); font-weight: 800; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .2); } .n-fallic { width: 100%; height: 100%; background: #ffcfa0; }
.dk.n-trashbtn.full .lt-items { display: block; } .lt-items { display: none; } .lt.full .lt-items { display: block; }
.n-dock .n-trashbtn.drop-hot, .n-trashbtn.hot { --m: 1.35; }

/* ---------- bảng mở ứng dụng ---------- */
.n-launch { position: absolute; z-index: 80; left: 10px; top: 54px; width: min(600px, calc(100% - 20px)); max-height: calc(100% - 140px); display: flex; flex-direction: column; border-radius: 24px; background: var(--paper); border: 3px solid var(--line); box-shadow: 0 6px 0 var(--line), 0 28px 50px -10px rgba(30, 10, 0, .45); padding: 14px 14px 10px; }
.n-lh { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .n-lcat { font-size: 30px; animation: hop 2s var(--sp-bouncy) infinite; } .n-lh b { display: block; font-size: 15px; font-weight: 800; } .n-lh small { color: var(--ink2); font-size: 11.5px; }
.n-lq { width: 100%; height: 38px; padding: 0 14px; border-radius: 14px; border: 2.5px solid var(--line); background: #fff; font: inherit; font-size: 14px; color: var(--ink); outline: none; margin-bottom: 8px; user-select: text; } .n-lq:focus { border-color: #ff9a63; box-shadow: 0 0 0 4px rgba(255, 154, 99, .28); }
.n-ls { overflow: auto; min-height: 0; flex: 1; scrollbar-width: thin; padding: 2px 2px 8px; } .n-ls section h5 { margin: 8px 0 4px 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink2); }
.n-lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px; } .n-lt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 16px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.25; transition: background .12s, transform var(--sp-bouncy-t) var(--sp-bouncy); }
.n-lt:hover, .n-lt.first { background: rgba(255, 180, 138, .35); transform: translateY(-3px) scale(1.05); } .n-lt:active { transform: scale(.9); } .lti { width: 54px; height: 54px; display: grid; place-items: center; } .lti svg { width: 52px; height: 52px; } .lti .appico { --s: 54px; } .lti .n-bi { width: 50px; height: 50px; font-size: 24px; }
.n-lf { display: flex; gap: 8px; padding-top: 8px; border-top: 2px dashed rgba(107, 70, 48, .25); } .n-lf button { height: 30px; padding: 0 12px; border-radius: 12px; font-size: 12px; font-weight: 600; background: rgba(107, 70, 48, .08); transition: all var(--sp-snappy-t) var(--sp-snappy); } .n-lf button:hover { background: rgba(255, 93, 115, .2); transform: translateY(-2px); }

/* ---------- biểu tượng desktop / lưới ---------- */
.n-ic { position: relative; width: 92px; padding: 4px 2px 3px; border-radius: 16px; text-align: center; cursor: default; touch-action: none; }
.n-desk-i .n-ic { position: absolute; } .n-ic-g { position: relative; width: 66px; height: 62px; margin: 0 auto 3px; display: grid; place-items: center; border-radius: 16px; transition: background .15s, transform var(--sp-bouncy-t) var(--sp-bouncy); } .n-ic-g > svg { width: 58px; height: 58px; filter: drop-shadow(0 3px 0 rgba(70, 40, 20, .14)); }
.n-ic:hover .n-ic-g { transform: translateY(-3px) scale(1.06); } .n-ic:active .n-ic-g { transform: scale(.94); }
.n-ic .th { left: 11px; top: 11px; width: 44px; height: 34px; object-fit: cover; border-radius: 4px; border: 2.5px solid #fff; box-shadow: 0 2px 0 var(--line, #6b4630); transform: rotate(-4deg); background: #eee; pointer-events: none; }
.n-ic-l { display: block; font-size: 12px; font-weight: 600; line-height: 1.25; } .n-ic-l b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; word-break: break-word; padding: 1px 6px; border-radius: 9px; width: fit-content; max-width: 100%; margin: 0 auto; }
.n-desk .n-ic-l { color: #fff; text-shadow: 0 1px 3px rgba(20, 5, 30, .75), 0 0 2px rgba(20, 5, 30, .5); }
.n-ic.sel .n-ic-g { background: rgba(255, 180, 138, .55); box-shadow: 0 0 0 2.5px rgba(255, 154, 99, .9); } .n-ic.sel .n-ic-l b { background: #ff9a63; color: #fff; text-shadow: none; }
.n-ic-p { position: absolute; top: 2px; right: 8px; width: 17px; height: 17px; color: #ff7a9a; transform: scale(0) rotate(-40deg); transition: transform var(--sp-pop-t) var(--sp-pop); filter: drop-shadow(0 1px 0 #fff); pointer-events: none; } .n-ic-p svg { width: 100%; height: 100%; } .sel > .n-ic-p { transform: scale(1) rotate(12deg); }
.n-ic-t { position: absolute; top: 0; left: 4px; padding: 1px 6px; border-radius: 8px; background: #6b4630; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; }
.n-lift { opacity: .3; } .n-gone { visibility: hidden !important; } .n-cut { opacity: .5; } .n-ic.drop-hot .n-ic-g, .n-row.drop-hot { background: rgba(143, 217, 182, .6); box-shadow: 0 0 0 3px #4cc58f; transform: scale(1.12); }
.n-desk.drop-hot { background: rgba(255, 255, 255, .06); } .n-ex-c.drop-hot { background: rgba(143, 217, 182, .22); box-shadow: inset 0 0 0 3px #4cc58f; border-radius: 10px; }
.bx .fl { transition: transform var(--sp-bouncy-t) var(--sp-bouncy); } .bx .fl.l { transform-origin: 9px 27px; } .bx .fl.r { transform-origin: 63px 27px; } .bx.open .fl.l { transform: rotate(-108deg); } .bx.open .fl.r { transform: rotate(108deg); }
.bx .bx-cat { transform: translateY(18px); transition: transform var(--sp-bouncy-t) var(--sp-bouncy); } .bx.open .bx-cat { transform: translateY(0); } .n-ic:hover .bx .fl.l { transform: rotate(-14deg); } .n-ic:hover .bx .fl.r { transform: rotate(14deg); }
.n-trashic { position: absolute; right: 18px; bottom: 112px; } .n-root[data-dock="right"] .n-trashic { right: 100px; } .n-trashic .n-ic-g > svg { width: 62px; height: 62px; } .n-trashic.hot .lt, .n-trashic.drop-hot .lt { transform: scale(1.12) rotate(-6deg); } .lt { transition: transform var(--sp-bouncy-t) var(--sp-bouncy); }
.n-band { position: absolute; z-index: 10; background: rgba(255, 180, 138, .25); border: 2px solid #ff9a63; border-radius: 8px; pointer-events: none; }
.n-ren { width: 100%; font: inherit; font-size: 12px; font-weight: 600; text-align: center; padding: 2px 4px; border-radius: 8px; border: 2px solid #ff9a63; background: #fff; color: var(--ink); outline: none; user-select: text; }

/* ---------- menu / hộp thoại / nút ---------- */
.n-menu { position: absolute; z-index: 9500; min-width: 210px; padding: 6px; border-radius: 16px; background: var(--paper); border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line), 0 18px 30px rgba(30, 10, 0, .3); }
.n-menu button { display: flex; align-items: center; gap: 9px; width: 100%; height: 33px; padding: 0 10px; border-radius: 10px; font-size: 13px; font-weight: 500; text-align: left; transition: background .1s, transform var(--sp-snappy-t) var(--sp-snappy); } .n-menu button:hover:not(:disabled) { background: var(--peach); color: #fff; transform: translateX(3px); } .n-menu button:disabled { opacity: .4; cursor: default; } .n-menu button.dz { color: #d6334e; } .n-menu button.dz:hover { background: #ff7a8c; color: #fff; }
.n-menu .mi { width: 18px; text-align: center; } .n-menu span:nth-child(2) { flex: 1; } .n-menu kbd { font: inherit; font-size: 11px; opacity: .55; } .n-menu hr { border: 0; height: 2px; background: rgba(107, 70, 48, .15); margin: 4px 4px; }
.n-mcol { display: flex; gap: 7px; padding: 6px 10px; } .n-mcol button { width: 22px !important; height: 22px !important; padding: 0 !important; border-radius: 50% !important; background: var(--c); border: 2.5px solid var(--line); } .n-mcol button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line); } .n-mcol button:hover { transform: scale(1.25) !important; background: var(--c) !important; }
.n-mseg { padding: 4px 8px 6px; } .n-mseg small { display: block; font-size: 11px; color: var(--ink2); margin-bottom: 4px; font-weight: 600; } .n-mseg button { display: inline-flex; width: auto; height: 26px; padding: 0 9px; margin-right: 3px; border-radius: 9px; font-size: 12px; background: rgba(107, 70, 48, .08); } .n-mseg button.on { background: var(--peach); color: #fff; }
.n-modal { position: absolute; inset: 0; z-index: 9600; display: grid; place-items: center; background: rgba(40, 20, 50, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.n-mcard { width: min(380px, calc(100% - 32px)); padding: 22px 22px 18px; border-radius: 24px; background: var(--paper); border: 3px solid var(--line); box-shadow: 0 6px 0 var(--line), 0 30px 60px rgba(0, 0, 0, .4); text-align: center; } .n-mface { font-size: 46px; line-height: 1; margin-bottom: 6px; animation: hop 1.4s var(--sp-bouncy) infinite; } .n-mcard h3 { margin: 4px 0 6px; font-size: 18px; font-weight: 800; } .n-mcard p { margin: 0 0 14px; color: var(--ink2); line-height: 1.5; }
.n-mbtn { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.n-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 13px; font-size: 13px; font-weight: 700; background: #fff; border: 2.5px solid var(--line); box-shadow: 0 3px 0 var(--line); color: var(--ink); text-decoration: none; cursor: pointer; transition: transform var(--sp-bouncy-t) var(--sp-bouncy), box-shadow .1s, background .15s; } .n-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--line); } .n-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line); } .n-btn:disabled { opacity: .4; pointer-events: none; }
.n-btn.main { background: var(--peach); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .15); } .n-btn.danger { background: #ff7a8c; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .15); } .n-btn:focus-visible { outline: 3px solid rgba(255, 154, 99, .5); outline-offset: 2px; }
.n-props { display: flex; gap: 14px; text-align: left; margin: 8px 0 4px; } .n-props .pi { width: 74px; flex: none; } .n-props .pi svg { width: 74px; height: 74px; } .n-props dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 12.5px; } .n-props dt { color: var(--ink2); font-weight: 600; } .n-props dd { margin: 0; word-break: break-word; } .chip { font-style: normal; padding: 1px 9px; border-radius: 9px; background: var(--c); color: #fff; font-weight: 700; font-size: 11.5px; }

/* ---------- cửa sổ thư mục ---------- */
.n-ex { height: 100%; display: flex; flex-direction: column; background: var(--paper); }
.n-ex-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 2.5px solid rgba(107, 70, 48, .18); background: var(--cream); }
.n-ex-bar > button:not(.n-btn) { width: 30px; height: 30px; border-radius: 10px; font-size: 17px; font-weight: 700; transition: all var(--sp-snappy-t) var(--sp-snappy); } .n-ex-bar > button:hover:not(:disabled) { background: rgba(255, 180, 138, .5); transform: translateY(-1px); } .n-ex-bar > button:disabled { opacity: .3; cursor: default; }
.n-crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; overflow: hidden; padding: 0 4px; height: 30px; border-radius: 10px; background: #fff; border: 2px solid rgba(107, 70, 48, .2); } .cr { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: background .12s; } .cr:hover { background: rgba(255, 180, 138, .45); } .cr.on { color: #e0703a; } .cr .n-paw { width: 13px; height: 13px; } .sep { font-style: normal; color: var(--ink2); }
.n-ex-q { width: 150px; height: 30px; padding: 0 11px; border-radius: 10px; border: 2px solid rgba(107, 70, 48, .2); background: #fff; font: inherit; font-size: 12.5px; outline: none; color: var(--ink); user-select: text; transition: width var(--sp-bouncy-t) var(--sp-bouncy), border-color .15s; } .n-ex-q:focus { width: 210px; border-color: #ff9a63; }
.n-ex-act { display: flex; gap: 6px; } .n-ex-act .n-btn { height: 30px; padding: 0 12px; font-size: 12.5px; box-shadow: 0 2px 0 var(--line); }
.n-ex-main { flex: 1; min-height: 0; display: flex; } .n-ex-side { width: 168px; flex: none; overflow: auto; padding: 8px 6px; border-right: 2.5px solid rgba(107, 70, 48, .15); background: rgba(255, 241, 220, .55); scrollbar-width: thin; } .n-ex-side hr { border: 0; height: 2px; background: rgba(107, 70, 48, .15); margin: 8px 4px; }
.sd { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 8px 0 calc(8px + (var(--d, 0) - 1) * 12px); border-radius: 11px; font-size: 12.5px; font-weight: 600; text-align: left; transition: all var(--sp-snappy-t) var(--sp-snappy); } .sd:hover { background: rgba(255, 180, 138, .4); transform: translateX(2px); } .sd.on { background: var(--peach); color: #fff; } .sd span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sd em { font-style: normal; font-size: 10.5px; background: #ff7a9a; color: #fff; border-radius: 8px; padding: 0 6px; font-weight: 800; } .sd .sdb { width: 22px; height: 22px; flex: none; } .sd .sdb svg { width: 100%; height: 100%; } .sd .sdp { width: 17px; height: 17px; flex: none; margin: 0 2px; color: #e0703a; } .sd.on .sdp { color: #fff; } .sd.drop-hot { background: #8fd9b6; }
.n-ex-c { position: relative; flex: 1; min-width: 0; overflow: auto; padding: 10px; outline: none; scrollbar-width: thin; }
.n-ex-grid.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; align-content: start; } .n-ex-grid.grid .n-ic { width: auto; } .n-ex-grid .n-ic-l { color: var(--ink); }
.n-ex-grid.list { display: flex; flex-direction: column; gap: 2px; }
.n-row { position: relative; display: grid; grid-template-columns: 34px minmax(120px, 1fr) 130px 90px 80px; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 12px; font-size: 12.5px; touch-action: none; transition: background .1s; } .n-row:hover { background: rgba(255, 180, 138, .2); } .n-row.sel { background: rgba(255, 180, 138, .5); box-shadow: inset 0 0 0 2px #ff9a63; }
.n-row-i { width: 30px; height: 30px; } .n-row-i svg { width: 30px; height: 30px; } .n-row-n b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .n-row-n small { color: var(--ink2); font-size: 10.5px; } .n-row-m, .n-row-k, .n-row-s { color: var(--ink2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .n-row .n-ic-p { right: 40px; top: 12px; } .n-row .n-ic-t { left: auto; right: 4px; top: 3px; } .n-row .th { display: none; }
.n-ex-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; pointer-events: none; } .n-ex-empty button { pointer-events: auto; margin-top: 8px; } .n-ex-cat { font-size: 54px; animation: hop 2.4s var(--sp-bouncy) infinite; } .n-ex-empty b { font-size: 15px; } .n-ex-empty small { color: var(--ink2); max-width: 260px; }
.n-ex-st { display: flex; justify-content: space-between; gap: 12px; padding: 6px 14px; font-size: 11.5px; color: var(--ink2); border-top: 2.5px solid rgba(107, 70, 48, .15); background: var(--cream); font-weight: 600; }

/* ---------- trình xem ---------- */
.n-vw { height: 100%; display: flex; flex-direction: column; background: #2a2038; } .n-vw-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--cream); border-bottom: 2.5px solid rgba(107, 70, 48, .2); } .n-vw-bar b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36%; } .n-vw-bar small { color: var(--ink2); font-size: 11.5px; white-space: nowrap; } .n-vw-bar span { flex: 1; } .n-vw-bar .n-btn { height: 28px; font-size: 12px; padding: 0 12px; box-shadow: 0 2px 0 var(--line); }
.n-vw-c { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; overflow: hidden; } .n-vw-img { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; background: repeating-conic-gradient(#3a2e4a 0 25%, #322840 0 50%) 0 0 / 22px 22px; } .n-vw-img img { max-width: 94%; max-height: 94%; cursor: grab; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.n-vw-vid, .n-vw-vid video { width: 100%; height: 100%; background: #000; } .n-vw-aud { text-align: center; color: #fff; } .n-vw-aud .disc { font-size: 64px; margin-bottom: 14px; animation: spin 6s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .n-vw-pdf { width: 100%; height: 100%; border: 0; background: #fff; }
.n-vw-txt { margin: 0; width: 100%; height: 100%; overflow: auto; padding: 16px 20px; background: #fffaf2; color: var(--ink); font: 12.5px/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; user-select: text; text-align: left; align-self: start; }
.n-vw-oth { text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; } .n-vw-oth .big svg { width: 96px; height: 96px; } .n-vw-oth small { opacity: .75; margin-bottom: 8px; }

/* ---------- tải lên ---------- */
.n-up { position: absolute; z-index: 90; right: 14px; bottom: 150px; width: 300px; max-height: 320px; display: flex; flex-direction: column; border-radius: 20px; background: var(--paper); border: 3px solid var(--line); box-shadow: 0 5px 0 var(--line), 0 20px 40px rgba(30, 10, 0, .35); overflow: hidden; }
.n-up-h { padding: 10px 14px; background: var(--peach); color: #fff; border-bottom: 3px solid var(--line); } .n-up-t { display: flex; align-items: center; gap: 8px; cursor: pointer; } .n-up-t .n-paw { width: 18px; height: 18px; animation: hop 1s var(--sp-bouncy) infinite; } .n-up-t b { flex: 1; font-size: 13px; text-shadow: 0 1px 0 rgba(0, 0, 0, .15); } .n-up-t small { font-weight: 800; }
.n-up-l { overflow: auto; padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 10px; } .n-up.min .n-up-l { display: none; }
.n-up-r { display: grid; grid-template-columns: 1fr auto 20px; align-items: center; gap: 4px 6px; font-size: 12px; } .n-up-r .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .n-up-r .pc { font-weight: 800; color: #e0703a; font-size: 11.5px; } .n-up-r button { width: 20px; height: 20px; border-radius: 50%; font-size: 10px; opacity: .5; } .n-up-r button:hover { opacity: 1; background: #ff8fa3; }
.n-up-r .fb { grid-column: 1/-1; position: relative; height: 12px; border-radius: 6px; background: rgba(107, 70, 48, .14); } .n-up-r .fb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: repeating-linear-gradient(135deg, #ffb48a 0 8px, #ffa070 8px 16px); background-size: 22px 22px; animation: stripe 1s linear infinite; transition: width .25s; } @keyframes stripe { to { background-position: 22px 0; } }
.n-up-r .fish { position: absolute; top: -8px; font-size: 18px; transform: translateX(-70%) scaleX(-1); transition: left .25s; } .n-up-r small { grid-column: 1/-1; color: var(--ink2); font-size: 10.5px; margin-top: -2px; } .n-up-r.done .pc { color: #2fb67b; } .n-up-r.err .pc, .n-up-r.cancel .pc { color: #d6334e; } .n-up-r.done .fb i { animation: none; background: #8fd9b6; }
.n-dropov { position: absolute; inset: 0; z-index: 9400; display: grid; place-items: center; background: rgba(255, 154, 99, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 6px dashed #fff; border-radius: 24px; margin: 6px; pointer-events: none; } .n-dropov-c { text-align: center; color: #fff; text-shadow: 0 2px 8px rgba(80, 30, 0, .5); } .n-dropov-c .big { width: 110px; height: 110px; margin: 0 auto 8px; color: #fff; animation: hop 1s var(--sp-bouncy) infinite; filter: drop-shadow(0 4px 0 #6b4630); } .n-dropov-c .big svg { width: 100%; height: 100%; } .n-dropov-c b { display: block; font-size: 26px; } .n-dropov-c small { font-size: 14px; opacity: .95; }

/* ---------- Mimi ---------- */
.n-cat { position: absolute; z-index: 85; right: 14px; bottom: 6px; width: 104px; pointer-events: none; } .n-cat-b { width: 104px; height: 98px; pointer-events: auto; cursor: pointer; transform-origin: 50% 100%; } .cat-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 0 rgba(70, 40, 20, .25)); }
.n-root[data-dock="right"] .n-cat { right: 100px; } .cat-tail { transform-origin: 92px 100px; animation: wag 2.4s ease-in-out infinite; } @keyframes wag { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(10deg); } }
.cat-ear { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .2s; } .n-cat.ear .cat-ear.l { animation: etw .5s; } @keyframes etw { 40% { transform: rotate(-16deg); } }
.cat-shut, .cat-o { display: none; } .n-cat.sleep .cat-eyes, .n-cat.blink .cat-eyes, .n-cat[data-mood="love"] .cat-eyes { display: none; } .n-cat.sleep .cat-shut, .n-cat.blink .cat-shut, .n-cat[data-mood="love"] .cat-shut { display: block; } .n-cat[data-mood="wow"] .cat-o, .n-cat[data-mood="sad"] .cat-o { display: block; } .n-cat[data-mood="wow"] .cat-mouth, .n-cat[data-mood="sad"] .cat-mouth { display: none; }
.n-cat[data-mood="sad"] .cat-ear.l { transform: rotate(-22deg); } .n-cat[data-mood="sad"] .cat-ear.r { transform: rotate(22deg); } .pup { transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform .08s; }
.n-cat[data-mood="wow"] .pup { rx: 3; } .n-cat.sleep .cat-head { transform: translateY(5px) rotate(3deg); } .cat-head { transition: transform .5s var(--sp-soft); transform-origin: 60px 80px; } .n-cat.sleep .cat-tail { animation-duration: 6s; }
.n-zzz { position: absolute; right: 6px; top: -4px; font-weight: 800; color: #fff; text-shadow: 0 2px 0 var(--line, #6b4630); opacity: 0; font-size: 16px; pointer-events: none; } .n-zzz i, .n-zzz b { font-style: normal; font-size: 12px; } .n-cat.sleep .n-zzz { opacity: 1; animation: zz 2.4s ease-in-out infinite; } @keyframes zz { 50% { transform: translate(6px, -10px); } }
.n-bub { position: absolute; right: 8px; bottom: calc(100% - 4px); width: max-content; max-width: 250px; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: #fff; border: 2.5px solid var(--line); box-shadow: 0 3px 0 var(--line); font-size: 12.5px; font-weight: 600; line-height: 1.4; pointer-events: auto; cursor: pointer; transform-origin: 90% 100%; color: var(--ink); } .n-bub-act { display: block; margin-top: 6px; height: 26px; padding: 0 12px; border-radius: 9px; background: var(--peach); color: #fff; font-weight: 700; font-size: 12px; border: 2px solid var(--line); }

/* ---------- cài đặt / phụ ---------- */
.n-set { padding: 4px 22px 24px; overflow: auto; height: 100%; user-select: text; } .n-set section { padding: 14px 0; border-bottom: 2px dashed rgba(107, 70, 48, .2); } .n-set h4 { margin: 0 0 10px; font-size: 14px; font-weight: 800; } .n-set small { color: var(--ink2); }
.n-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .n-mc { padding: 10px; border-radius: 16px; border: 2.5px solid rgba(107, 70, 48, .25); background: #fff; text-align: left; transition: all var(--sp-bouncy-t) var(--sp-bouncy); } .n-mc svg { width: 100%; height: auto; margin-bottom: 8px; } .n-mc b { display: block; } .n-mc small { font-size: 11.5px; } .n-mc:hover { transform: translateY(-3px); } .n-mc.on { border-color: #ff9a63; background: #fff4ea; box-shadow: 0 4px 0 #ff9a63; }
.n-walls { display: flex; flex-wrap: wrap; gap: 10px; } .n-walls button { position: relative; width: 78px; height: 54px; border-radius: 12px; border: 2.5px solid var(--line); background-size: cover; background-position: center; transition: transform var(--sp-bouncy-t) var(--sp-bouncy); overflow: hidden; } .n-walls button span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(60, 30, 10, .6); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 0; } .n-walls button:hover { transform: translateY(-3px) rotate(-2deg); } .n-walls button.on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ff9a63; }
.n-rng { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-weight: 600; } .n-rng input { flex: 1; accent-color: #ff9a63; } .n-rng b { font-variant-numeric: tabular-nums; min-width: 44px; }
.n-row2 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; } .n-sg { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(107, 70, 48, .1); } .n-sg button { height: 26px; padding: 0 12px; border-radius: 9px; font-size: 12px; font-weight: 600; } .n-sg button.on { background: var(--peach); color: #fff; }
.n-sw { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-weight: 500; } .n-sw input { display: none; } .n-sw i { width: 38px; height: 22px; border-radius: 11px; background: #d8c9bb; position: relative; flex: none; transition: background .2s; border: 2px solid var(--line); } .n-sw i::after { content: ""; position: absolute; top: 1px; left: 1px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line); transition: transform var(--sp-bouncy-t) var(--sp-bouncy); } .n-sw input:checked + i { background: #8fd9b6; } .n-sw input:checked + i::after { transform: translateX(16px); }
.n-use .bar { height: 14px; border-radius: 7px; background: rgba(107, 70, 48, .14); overflow: hidden; border: 2px solid var(--line); margin-bottom: 8px; } .n-use .bar i { display: block; height: 100%; background: repeating-linear-gradient(135deg, #ffb48a 0 8px, #ffa070 8px 16px); min-width: 4px; }
.n-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; } .n-keys div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; } .n-keys kbd { font: inherit; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 7px; background: #fff; border: 2px solid var(--line); box-shadow: 0 2px 0 var(--line); white-space: nowrap; }
.n-soon { height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: var(--ink2); } .n-soon div { font-size: 54px; animation: hop 2.4s var(--sp-bouncy) infinite; } .n-soon b { color: var(--ink); font-size: 16px; }
.n-note { width: 100%; height: 100%; border: 0; resize: none; padding: 16px 18px; background: repeating-linear-gradient(#fffdf6 0 27px, #f0e3c8 27px 28px); font: 14px/28px "Be Vietnam Pro", sans-serif; color: var(--ink); outline: none; user-select: text; } .n-padc { padding: 16px 18px; overflow: auto; height: 100%; user-select: text; }
.n-padc .mlist { display: flex; flex-direction: column; gap: 6px; } .n-padc .m { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid rgba(107, 70, 48, .15); } .n-padc .m-t b { display: block; font-size: 13px; } .n-padc .m-t small { color: var(--ink2); font-size: 11.5px; } .n-padc .m-ct { margin-left: auto; width: 30px; height: 30px; } .n-padc .pw-hero { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; } .n-padc .pw-hero b { font-size: 17px; display: block; } .n-padc .pw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 14px; } .n-padc .pw-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 16px; background: #fff; border: 2px solid rgba(107, 70, 48, .2); text-align: left; transition: transform var(--sp-bouncy-t) var(--sp-bouncy); } .n-padc .pw-tile:hover { transform: translateY(-3px); } .n-padc .pw-h { margin: 8px 0; font-size: 13px; } .n-padc .soon { padding: 20px; text-align: center; color: var(--ink2); }
.n-err { padding: 24px; color: #d6334e; font-weight: 600; }

/* ---------- điện thoại / màn nhỏ: mỗi lần 1 công cụ toàn màn hình ---------- */
@media (max-width: 819px) {
  .n-brand small, .n-seg, .n-stand span, .n-wg, .n-clock small { display: none; } .n-ex-side { display: none; } .n-row { grid-template-columns: 34px 1fr 70px; } .n-row-m, .n-row-k { display: none; }
  .n-launch { left: 6px; right: 6px; width: auto; top: 54px; max-height: calc(100% - 70px); } .n-dock { display: none; } .n-trashic { bottom: 70px; right: 8px; } .n-up { left: 10px; right: 10px; width: auto; bottom: 120px; } .n-cat { transform: scale(.8); transform-origin: 100% 100%; bottom: 2px; }
  .n-tabs { top: 50px; }
}

.tabmode .n-cat { transform: scale(.62); transform-origin: 100% 100%; bottom: 2px; }
.tabmode .n-trashic { display: none; }
.n-cv{position:absolute;inset:0;width:100%;height:100%;display:block}.n-scenes{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}.n-scenes button{height:34px;padding:0 14px;border-radius:12px;border:2.5px solid var(--line);background:#fff;font-weight:700;font-size:12.5px;transition:transform var(--sp-bouncy-t) var(--sp-bouncy)}.n-scenes button:hover{transform:translateY(-3px) rotate(-1.5deg)}.n-scenes button.on{background:var(--peach);color:#fff;box-shadow:0 3px 0 var(--line)}

/* ================= THEME: NEON TÍM (kính mờ cyber) ================= */
body.th-neon .n-root { --ink: #efe6ff; --ink2: #a99ad0; --line: rgba(190, 150, 255, .55); --paper: rgba(20, 11, 44, .78); --cream: rgba(44, 24, 88, .7); --peach: #ff3cac; --pink: #ff5fc0; --mint: #38e8ff; --sky: #7aa8ff; --butter: #ffd36b; --lav: #8b5cff; font-family: "Be Vietnam Pro", Inter, system-ui, sans-serif; }
body.th-neon .n-top { left: 0; right: 0; top: 0; height: 32px; border-radius: 0; border: 0; border-bottom: 1px solid rgba(190, 150, 255, .28); background: rgba(8, 4, 20, .6); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 0 24px rgba(139, 92, 255, .25); color: var(--ink); }
body.th-neon .n-paw-btn { background: transparent; border: 1.5px solid #ff3cac; color: #ff3cac; box-shadow: 0 0 12px rgba(255, 60, 172, .6), inset 0 0 8px rgba(255, 60, 172, .3); width: 24px; height: 24px; }
body.th-neon .n-brand { text-shadow: 0 0 10px rgba(139, 92, 255, .9); letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; }
body.th-neon .n-clock b, body.th-neon .wc b { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; }
body.th-neon .n-seg { background: rgba(139, 92, 255, .16); }
body.th-neon .n-win { border: 1px solid rgba(190, 150, 255, .5); border-radius: 12px; background: var(--paper); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); box-shadow: 0 0 0 1px rgba(255, 60, 172, .12), 0 0 22px rgba(139, 92, 255, .3), 0 22px 50px rgba(0, 0, 0, .55); }
body.th-neon .n-win.focus { border-color: #ff3cac; box-shadow: 0 0 0 1px rgba(255, 60, 172, .4), 0 0 28px rgba(255, 60, 172, .38), 0 0 60px rgba(139, 92, 255, .3), 0 24px 56px rgba(0, 0, 0, .6); }
body.th-neon .n-win:not(.focus) { box-shadow: 0 0 14px rgba(139, 92, 255, .2), 0 12px 30px rgba(0, 0, 0, .45); }
body.th-neon .n-win.moving { box-shadow: 0 0 40px rgba(56, 232, 255, .45), 0 30px 60px rgba(0, 0, 0, .6); }
body.th-neon .n-win::before, body.th-neon .n-win::after { display: none; }
body.th-neon .n-wb { background: linear-gradient(90deg, rgba(60, 28, 120, .75), rgba(110, 30, 130, .55)); border-bottom: 1px solid rgba(190, 150, 255, .35); border-radius: 11px 11px 0 0; height: 34px; color: var(--ink); }
body.th-neon .n-wbtns button { border: 0; width: 13px; height: 13px; box-shadow: 0 0 8px currentColor; } body.th-neon .n-wbtns .x { background: #ff3cac; color: #ff3cac; } body.th-neon .n-wbtns .m { background: #ffd36b; color: #ffd36b; } body.th-neon .n-wbtns .z { background: #38e8ff; color: #38e8ff; }
body.th-neon .n-wbody, body.th-neon .n-wload { background: transparent; } body.th-neon .n-wload { background: rgba(14, 7, 32, .92); }
body.th-neon .n-dock { background: rgba(10, 5, 26, .55); border: 1px solid rgba(190, 150, 255, .4); border-radius: 20px; -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 0 30px rgba(139, 92, 255, .35), 0 12px 30px rgba(0, 0, 0, .5); }
body.th-neon .dk em { background: rgba(10, 5, 26, .92); border: 1px solid #ff3cac; box-shadow: 0 0 12px rgba(255, 60, 172, .5); }
body.th-neon .dk-sep { background: rgba(190, 150, 255, .3); } body.th-neon .dkp { color: #38e8ff; filter: drop-shadow(0 0 4px #38e8ff); }
body.th-neon .wcard { background: rgba(14, 7, 34, .55); border: 1px solid rgba(190, 150, 255, .4); box-shadow: 0 0 20px rgba(139, 92, 255, .3); border-radius: 14px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
body.th-neon .n-launch, body.th-neon .n-snapm { background: rgba(14, 7, 34, .88); border: 1px solid rgba(190, 150, 255, .5); box-shadow: 0 0 30px rgba(139, 92, 255, .35), 0 20px 40px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
body.th-neon .n-lq { background: rgba(255, 255, 255, .06); border: 1px solid rgba(190, 150, 255, .5); color: var(--ink); }
body.th-neon .n-tab { background: rgba(14, 7, 34, .6); border: 1px solid rgba(190, 150, 255, .35); color: var(--ink); } body.th-neon .n-tab.on { background: rgba(40, 20, 84, .9); box-shadow: inset 0 3px 0 #ff3cac, 0 0 14px rgba(255, 60, 172, .4); }
body.th-neon .n-snapg { background: rgba(56, 232, 255, .12); border: 2px dashed #38e8ff; box-shadow: 0 0 24px rgba(56, 232, 255, .35); }
body.th-neon .n-vig { background: radial-gradient(120% 90% at 50% 45%, transparent 50%, rgba(5, 0, 15, .55)); }

/* ================= THEME: LO-FI ẤM (hoàng hôn) ================= */
body.th-lofi .n-root { --line: #7a4630; --paper: #fff3e2; --cream: #ffe6c8; --peach: #ff9a52; }
body.th-lofi .n-top, body.th-lofi .n-dock, body.th-lofi .wcard { --ink: #ffe9c8; --ink2: #e8b898; color: #ffe9c8; background: rgba(42, 21, 32, .52); border: 1px solid rgba(255, 190, 130, .35); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 8px 28px rgba(60, 20, 20, .35), inset 0 1px 0 rgba(255, 220, 180, .15); }
body.th-lofi .n-top { border-radius: 22px; } body.th-lofi .n-dock { border-radius: 24px; } body.th-lofi .wcard { border-radius: 18px; }
body.th-lofi .n-seg { background: rgba(255, 190, 130, .16); } body.th-lofi .n-top .n-paw-btn { border-color: rgba(255, 220, 180, .7); }
body.th-lofi .dk em { background: rgba(42, 21, 32, .92); } body.th-lofi .dk-sep { background: rgba(255, 220, 180, .3); }
body.th-lofi .n-win { border: 2px solid #7a4630; box-shadow: 0 4px 0 #5a3022, 0 0 40px rgba(255, 140, 70, .28), 0 24px 50px rgba(40, 10, 10, .5); }
body.th-lofi .n-vig { background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(40, 8, 20, .5)); }
body.th-neon .n-bub { background: rgba(14, 7, 34, .9); border: 1px solid #ff3cac; color: #efe6ff; box-shadow: 0 0 16px rgba(255, 60, 172, .45); }

/* ================= HÌNH NỀN ẢNH + ICON MÈO VẼ TAY ================= */
.n-scn { position: absolute; left: 0; top: 0; will-change: transform; }
.n-i { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.n-i.b { opacity: 0; transition: opacity 2.5s linear; } .n-i.x { z-index: 3; }
.n-tint { position: absolute; inset: 0; pointer-events: none; transition: background 2s; }
.n-set .n-scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.n-set .n-scenes button { position: relative; height: 78px; padding: 0; overflow: hidden; border-radius: 14px; border: 2.5px solid var(--line); background-size: cover; background-position: center; background-color: #5a4a6a; transition: transform var(--sp-bouncy-t) var(--sp-bouncy), box-shadow .2s; }
.n-set .n-scenes button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 6px 5px; background: linear-gradient(transparent, rgba(30, 14, 22, .82)); color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.n-set .n-scenes button:hover { transform: translateY(-3px) scale(1.03); } .n-set .n-scenes button.on { border-color: #ff9a63; box-shadow: 0 0 0 3px rgba(255, 154, 99, .45); }

.art { display: block; object-fit: contain; -webkit-user-drag: none; user-select: none; pointer-events: none; }
span.art { position: relative; } span.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.bx.art .a-o { opacity: 0; transform: scale(.94); transition: opacity .12s, transform var(--sp-bouncy-t) var(--sp-bouncy); } .bx.art .a-c { transition: opacity .12s, transform var(--sp-bouncy-t) var(--sp-bouncy); }
.bx.art.open .a-o { opacity: 1; transform: scale(1.03); } .bx.art.open .a-c { opacity: 0; } .n-ic:hover .bx.art:not(.open) .a-c { transform: translateY(-3px) rotate(-1.5deg); }
.n-ic-g > .art { width: 66px; height: 66px; filter: drop-shadow(0 3px 2px rgba(70, 40, 20, .22)); } .n-trashic .n-ic-g > .art { width: 74px; height: 74px; }
.dki .art { width: 50px; height: 50px; filter: drop-shadow(0 2px 2px rgba(70, 40, 20, .25)); } .lti .art { width: 56px; height: 56px; } .n-row-i .art { width: 34px; height: 34px; }
.sd .sdb .art { width: 100%; height: 100%; } .n-wic .art { width: 100%; height: 100%; } .n-vw-oth .big .art { width: 100px; height: 100px; } .fx-litter .art { width: 100%; height: 100%; }
.n-paw-btn { background: transparent !important; border: 0 !important; box-shadow: none !important; width: 34px; height: 34px; } .n-paw-btn .pawart { width: 32px; height: 32px; filter: drop-shadow(0 2px 2px rgba(70, 40, 20, .3)); }
body.th-neon .n-paw-btn .pawart { filter: drop-shadow(0 0 8px rgba(255, 60, 172, .8)); } body.th-neon .n-paw-btn { width: 28px; height: 28px; } body.th-neon .n-paw-btn .pawart { width: 26px; height: 26px; }

/* ---- trình xem video: luôn vừa khung, có thumb/khung hình đầu ---- */
.n-vw-vid { position: absolute; inset: 0; display: grid; place-items: center; background: #000; }
.n-vw-vid video { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; background: #000; }
.n-vw-err { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 24px; color: #fff; } .n-vw-err small { color: #cbb8d8; max-width: 320px; }
/* thumb lớn hơn trên icon ảnh/video */
.n-ic .th { left: 4px; top: 8px; width: 58px; height: 44px; border-radius: 6px; }
.n-ic .th.v { border-color: #fff; } .n-ic .thp { position: absolute; left: 36px; top: 34px; width: 22px; height: 22px; border-radius: 50%; background: rgba(40, 20, 30, .75); color: #fff; font-style: normal; font-size: 10px; line-height: 22px; text-align: center; padding-left: 2px; pointer-events: none; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.n-ic .th.v:not([src]) + .thp { display: none; }

/* ---- app kéo ra màn hình chính ---- */
.n-desk-apps { position: absolute; inset: 0; pointer-events: none; }
.n-desk-apps .n-ic { position: absolute; pointer-events: auto; }
.n-appghost { position: fixed; left: 0; top: 0; z-index: 9500; pointer-events: none; margin: -30px 0 0 -30px; width: 60px; height: 60px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.n-appghost > * { width: 60px; height: 60px; }
