/* Web app. Built on theme.css. */

html, body { height: 100%; }
#root { min-height: 100%; }
.hidden { display: none !important; }

/* ---- Sign-in screens ---- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-form-side { display: flex; flex-direction: column; padding: 26px 36px; background: var(--surface); }
.auth-form-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; width: min(400px, 100%); margin: 0 auto; padding: 24px 0; animation: authIn .55s var(--ease) both; }
@keyframes authIn { from { opacity: 0; transform: translateY(14px); } }
.auth-form-wrap h1 { font-size: 31px; font-weight: 800; letter-spacing: -.03em; }
.auth-sub { margin: 8px 0 26px; color: var(--ink-2); }
.auth-switch { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--ink-2); }
.auth-switch a, .link-btn { font-weight: 620; cursor: pointer; background: none; border: 0; color: var(--brand); padding: 0; }
.auth-row { display: flex; justify-content: flex-end; margin: -8px 0 16px; font-size: 13.5px; }
.auth-terms { margin-top: 14px; font-size: 13px; color: var(--ink-3); text-align: center; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 56px; background: var(--gradient); color: #fff; isolation: isolate; }
.auth-art::before, .auth-art::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; background: rgba(255, 255, 255, .13); animation: artFloat 13s ease-in-out infinite alternate; }
.auth-art::before { width: 460px; height: 460px; top: -150px; right: -120px; }
.auth-art::after { width: 340px; height: 340px; bottom: -110px; left: -80px; animation-delay: -5s; }
@keyframes artFloat { to { transform: translate(-40px, 40px) scale(1.14); } }
.auth-art h2 { font-size: clamp(27px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.auth-art-list { list-style: none; margin: 26px 0 0; padding: 0; }
.auth-art-list li { display: flex; gap: 12px; align-items: center; margin: 13px 0; font-size: 16px; color: rgba(255, 255, 255, .95); }
.auth-art-list svg { width: 22px; height: 22px; flex: none; padding: 4px; background: rgba(255, 255, 255, .22); border-radius: 50%; }

/* ---- App shell ---- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; background: var(--surface); border-right: 1px solid var(--line); }
.sidebar .logo { padding: 2px 10px 18px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 570; transition: background .15s, color .15s, transform .15s; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.active { background: var(--brand-soft); color: var(--brand-deep); font-weight: 650; }
.side-link svg { width: 19px; height: 19px; flex: none; }
.side-sep { height: 1px; margin: 9px 10px; background: var(--line); }
.side-plan { margin: 8px 2px 0; padding: 12px 13px; border-radius: 12px; background: var(--brand-softer); font-size: 13px; color: var(--ink-2); }
.side-plan b { display: block; color: var(--ink); font-weight: 680; }
.side-plan a { display: inline-block; margin-top: 5px; font-weight: 650; }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 26px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.crumbs { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink-3); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs span:last-child { color: var(--ink); }
.avatar-btn { display: flex; align-items: center; gap: 8px; padding: 4px 9px 4px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; transition: border-color .15s; }
.avatar-btn:hover { border-color: var(--line-2); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 13.5px; font-weight: 720; }
.menu-toggle { display: none; padding: 7px; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
.content { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 26px 60px; }
.view { animation: viewIn .38s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(9px); } }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -.028em; }
.page-head p { margin-top: 3px; color: var(--ink-2); font-size: 15px; }

/* ---- Menus, modals, toasts ---- */
.menu { position: fixed; z-index: 90; min-width: 196px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-l); animation: pop .15s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-5px) scale(.97); } }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 11px; background: none; border: 0; border-radius: 8px; font-size: 14px; font-weight: 550; color: var(--ink); cursor: pointer; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--surface-2); color: var(--ink); }
.menu button.danger { color: #c0282d; }
.menu button.danger:hover { background: var(--rose-soft); }
.menu hr { margin: 5px 3px; border: 0; border-top: 1px solid var(--line); }
.menu-head { padding: 7px 11px 9px; font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--line); margin-bottom: 5px; word-break: break-all; }
.menu-head b { display: block; color: var(--ink); font-size: 14px; font-weight: 680; }
.modal-back { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(20, 33, 61, .38); backdrop-filter: blur(3px); animation: fade .18s; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(480px, 100%); padding: 26px; background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-l); animation: modalIn .28s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal h2 { font-size: 21px; margin-bottom: 6px; }
.modal-sub { color: var(--ink-2); font-size: 14.5px; margin-bottom: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { max-width: 380px; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 550; box-shadow: var(--shadow-l); animation: toastIn .3s var(--ease); }
.toast.error { background: #b4262b; }
.toast.ok { background: #087f66; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .22s; }

/* ---- Computers ---- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 14px; }
.toolbar-count { color: var(--ink-3); font-size: 14px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; flex: none; background: none; border: 0; border-radius: 9px; color: var(--ink-3); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; background: none; }
.icon-btn svg { width: 19px; height: 19px; }
.spin svg { animation: spin .7s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.search { position: relative; margin-left: auto; }
.search svg { position: absolute; left: 11px; top: 50%; width: 17px; height: 17px; translate: 0 -50%; color: var(--ink-4); pointer-events: none; }
.search input { width: 228px; padding: 8px 12px 8px 34px; font-size: 14px; }
.toolbar select.input { width: auto; padding: 8px 30px 8px 11px; font-size: 14px; }
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s); overflow: hidden; }
.pc-table { width: 100%; border-collapse: collapse; }
.pc-table th { padding: 11px 14px; text-align: left; font-size: 12.5px; font-weight: 680; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.pc-table th button { display: inline-flex; align-items: center; gap: 4px; padding: 0; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.pc-table th button:hover { color: var(--ink); }
.pc-table td { padding: 12px 14px; font-size: 14.5px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pc-table tbody tr { transition: background .15s; }
.pc-table tbody tr:last-child td { border-bottom: 0; }
.pc-table tbody tr:hover { background: var(--brand-softer); }
.pc-table tr.offline .pc-name { color: var(--ink-2); }
.pc-table tr.flash { animation: rowFlash 1.6s var(--ease); }
@keyframes rowFlash { 0%, 40% { background: var(--mint-soft); } }
.col-os { width: 54px; padding-right: 0 !important; }
.col-actions { width: 96px; text-align: right; white-space: nowrap; }
.col-actions > div { display: flex; justify-content: flex-end; gap: 2px; }
.pc-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); color: var(--ink-4); transition: background .3s, color .3s; }
.pc-icon svg { width: 21px; height: 21px; }
.pc-icon.on { background: var(--brand-soft); color: var(--brand); }
.pc-icon .dot { position: absolute; right: -2px; bottom: -2px; box-shadow: 0 0 0 2px var(--surface); }
.pc-name-cell { min-width: 150px; }
.pc-name { font-weight: 640; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pc-sub { margin-top: 1px; color: var(--ink-3); font-size: 12.5px; }
.pc-notes { max-width: 300px; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star { padding: 2px; background: none; border: 0; color: var(--line-2); cursor: pointer; transition: color .15s, transform .2s var(--ease); display: inline-flex; }
.star:hover { color: var(--sun); transform: scale(1.18); }
.star.on { color: var(--sun); }
.star svg { width: 16px; height: 16px; }
.connect-btn { color: var(--brand); }
.connect-btn:hover { background: var(--brand-soft); color: var(--brand-deep); }
.empty { padding: 58px 24px; text-align: center; }
.empty-art { width: 170px; margin: 0 auto 18px; }
.empty h3 { font-size: 20px; }
.empty p { max-width: 430px; margin: 8px auto 20px; color: var(--ink-2); font-size: 15px; }
.skeleton { display: block; height: 15px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, #e7ebf6 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---- Dashboard ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s); transition: transform .2s var(--ease), box-shadow .2s; color: inherit; display: block; }
a.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.stat small { display: flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.stat b { display: block; margin-top: 5px; font-size: 32px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dash-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.panel { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s); }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 17px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head a { font-size: 13.5px; font-weight: 620; }
.panel-sub { margin: 4px 0 14px; font-size: 14.5px; color: var(--ink-2); }
.quick-pc { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; }
.quick-pc:hover { background: var(--brand-softer); }
.quick-pc > div:nth-child(2) { flex: 1; min-width: 0; }
.quick-pc b { display: block; font-weight: 640; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 11px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feed li:first-child { border-top: 0; }
.feed-ico { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--surface-2); color: var(--ink-3); }
.feed-ico svg { width: 15px; height: 15px; }
.feed-ico.good { background: var(--mint-soft); color: var(--mint-deep); }
.feed-ico.warn { background: var(--peach-soft); color: #c9562a; }
.feed-text { flex: 1; min-width: 0; }
.feed-text small { display: block; color: var(--ink-3); font-size: 12.5px; }
.feed-time { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; padding: 13px 18px; margin-bottom: 16px; border-radius: var(--radius); background: var(--sun-soft); color: #6d4c03; font-size: 14.5px; font-weight: 550; }
.banner.danger { background: var(--rose-soft); color: #a81f24; }

/* ---- Add computer ---- */
.add-wrap { max-width: 640px; margin: 0 auto; position: relative; }
.add-wrap h1 { font-size: 35px; font-weight: 800; letter-spacing: -.03em; }
.close-x { position: absolute; right: 0; top: 4px; }
.tabs { display: flex; gap: 4px; margin: 20px 0 26px; border-bottom: 1px solid var(--line-2); overflow: auto hidden; }
.tab { padding: 10px 15px; background: none; border: 0; border-bottom: 2.5px solid transparent; color: var(--ink-3); font-size: 14.5px; font-weight: 640; white-space: nowrap; cursor: pointer; transition: color .15s, border-color .15s, background .15s; border-radius: 8px 8px 0 0; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand-deep); border-bottom-color: var(--brand); background: var(--brand-softer); }
.add-art { display: block; width: 300px; max-width: 100%; margin: 6px auto 22px; }
.add-art .plane { animation: planeGlide 3s var(--ease) infinite; transform-box: fill-box; }
@keyframes planeGlide { 0% { transform: translateX(-22px); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateX(14px); opacity: 1; } 100% { transform: translateX(30px); opacity: 0; } }
.add-art .led { animation: blinkLed 3s infinite; }
@keyframes blinkLed { 0%, 62% { opacity: .2; } 72%, 100% { opacity: 1; } }
.copy-row { display: flex; }
.copy-row .input { border-radius: 11px 0 0 11px; border-right: 0; font-size: 14.5px; background: var(--surface); text-overflow: ellipsis; min-width: 0; }
.copy-row .btn { border-radius: 0 11px 11px 0; }
.label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 680; }
.add-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.waiting { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 13px 16px; border-radius: var(--radius); background: var(--brand-softer); font-size: 14.5px; color: var(--ink-2); }
.pulse-dots { display: inline-flex; gap: 4px; }
.pulse-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: dotPulse 1.2s infinite; }
.pulse-dots i:nth-child(2) { animation-delay: .15s; }
.pulse-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotPulse { 40% { transform: translateY(-5px); opacity: .55; } }
.joined { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding: 14px 16px; border-radius: var(--radius); background: var(--mint-soft); color: #07604d; animation: joinIn .55s var(--ease); }
@keyframes joinIn { from { opacity: 0; transform: scale(.92); } 60% { transform: scale(1.02); } }
.joined .check { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--mint); color: #fff; }
.joined .check svg { width: 19px; height: 19px; }
.joined .check path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: drawCheck .45s .15s forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.joined div { flex: 1; font-size: 14.5px; }
.links-list { list-style: none; margin: 14px 0 0; padding: 0; }
.links-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.links-list b { display: block; font-weight: 650; font-size: 14.5px; }
.links-list small { color: var(--ink-3); font-size: 12.5px; }
.links-list > li > div:first-child { flex: 1; min-width: 0; }
.cmd { display: block; margin-top: 8px; padding: 11px 13px; border-radius: 10px; background: var(--ink); color: #dce3fb; font-family: var(--mono); font-size: 12.5px; overflow-x: auto; white-space: pre; }

/* ---- Quick Support ---- */
.sos-wrap { max-width: 560px; margin: 8px auto; }
.sos-card { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); text-align: center; position: relative; overflow: hidden; }
.sos-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gradient); }
.sos-art { display: block; width: 136px; margin: 4px auto 14px; }
.sos-art .ring { transform-origin: center; transform-box: fill-box; animation: sosRing 2.4s var(--ease) infinite; }
@keyframes sosRing { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(1.3); opacity: 0; } }
.sos-card h2 { font-size: 22px; }
.sos-card > p { margin: 6px 0 20px; color: var(--ink-2); font-size: 15px; }
.code-boxes { display: flex; justify-content: center; align-items: center; gap: 5px; margin-bottom: 8px; }
.code-boxes input { width: 42px; height: 54px; padding: 0; text-align: center; font-family: var(--mono); font-size: 23px; font-weight: 700; border: 1.5px solid var(--line-2); border-radius: 11px; background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.code-boxes input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); transform: translateY(-2px); }
.code-boxes input.filled { border-color: var(--brand); background: var(--brand-softer); }
.code-boxes i { width: 7px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.sos-invite { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sos-invite p { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.sos-invite-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }

/* ---- Settings, team, billing ---- */
.settings-grid { max-width: 680px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.qr { width: 180px; height: 180px; margin: 12px auto; border-radius: 12px; border: 1px solid var(--line); }
.secret { display: block; padding: 8px 11px; margin-bottom: 14px; border-radius: 9px; background: var(--surface-2); font-family: var(--mono); font-size: 13px; word-break: break-all; text-align: center; }
.team-card { margin-bottom: 14px; }
.member { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.member > div { flex: 1; min-width: 0; }
.member small { display: block; color: var(--ink-3); font-size: 12.5px; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.plan-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.plan-card.current { border: 2px solid var(--brand); }
.plan-card h3 { font-size: 19px; }
.plan-card .amount { margin: 8px 0 12px; font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.plan-card .amount span { font-size: 14px; font-weight: 550; color: var(--ink-3); letter-spacing: 0; }
.plan-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.plan-card li { margin: 4px 0; }
.dl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.log-table td { font-size: 14px; }
.log-table .feed-ico { display: inline-grid; vertical-align: middle; margin-right: 9px; }

/* ---- Remote session ---- */
#session-root { position: fixed; inset: 0; z-index: 60; background: #0b1020; }
.sess { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.sess-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.sess-canvases { position: relative; line-height: 0; }
.sess-canvases canvas { display: block; }
#video-canvas { background: #000; }
#cursor-canvas { position: absolute; inset: 0; pointer-events: none; }
.sess-bar { position: absolute; top: 10px; left: 50%; z-index: 5; display: flex; align-items: center; gap: 2px; padding: 5px 7px; max-width: calc(100vw - 16px); background: rgba(255, 255, 255, .96); border-radius: 14px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); transform: translate(-50%, 0); transition: transform .28s var(--ease), opacity .28s; }
.sess-bar.away { transform: translate(-50%, calc(-100% - 4px)); opacity: .9; }
.sess-title { display: flex; align-items: center; gap: 7px; padding: 0 10px 0 7px; max-width: 200px; font-size: 13.5px; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess-bar .icon-btn { width: 34px; height: 34px; color: var(--ink-2); }
.sess-bar .icon-btn:hover { background: var(--brand-soft); color: var(--brand-deep); }
.sess-bar .icon-btn.active { background: var(--brand-soft); color: var(--brand); }
.sess-bar .icon-btn.rec { background: var(--rose-soft); color: var(--rose); }
.sess-sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line); flex: none; }
.sess-end { margin-left: 3px; }
.sess-stats { position: absolute; left: 12px; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 9px; background: rgba(11, 16, 32, .72); backdrop-filter: blur(6px); color: #d7deef; font-size: 12px; font-variant-numeric: tabular-nums; transition: opacity .3s; }
.sess-stats.away { opacity: .3; }
.sess-overlay { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 20px; background: rgba(11, 16, 32, .8); backdrop-filter: blur(5px); color: #fff; text-align: center; animation: fade .2s; }
.sess-overlay h2 { color: #fff; font-size: 23px; margin-top: 18px; }
.sess-overlay p { margin: 7px auto 20px; max-width: 420px; color: #bcc6df; }
.orbit { position: relative; width: 66px; height: 66px; margin: 0 auto; }
.orbit i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: #7f96ff; animation: spin 1.1s linear infinite; }
.orbit i:nth-child(2) { inset: 11px; border-top-color: var(--sky); animation-duration: .8s; animation-direction: reverse; }
.orbit i:nth-child(3) { inset: 23px; background: var(--mint); border: 0; animation: orbitCore 1.3s ease-in-out infinite; }
@keyframes orbitCore { 50% { transform: scale(.55); opacity: .6; } }
.sess-drop { position: absolute; inset: 14px; z-index: 7; display: grid; place-items: center; border: 2.5px dashed #9db2ff; border-radius: 18px; background: rgba(59, 91, 253, .28); color: #fff; font-size: 21px; font-weight: 700; pointer-events: none; }
.sess-progress { position: absolute; right: 12px; bottom: 12px; z-index: 5; width: 262px; padding: 11px 13px; border-radius: 11px; background: rgba(255, 255, 255, .97); box-shadow: var(--shadow-l); font-size: 13px; color: var(--ink); }
.sess-progress small { display: block; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 6px; margin-top: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gradient); transition: width .2s; }

/* ---- Small screens ---- */
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 70; left: 0; width: 260px; transform: translateX(-102%); transition: transform .28s var(--ease); box-shadow: var(--shadow-l); }
  .sidebar.open { transform: none; }
  .menu-toggle { display: block; }
  .content { padding: 20px 16px 50px; }
  .topbar { padding: 0 14px; }
  .dash-grid { grid-template-columns: 1fr; }
  .search { margin-left: 0; flex: 1; }
  .search input { width: 100%; }
  .col-device, .col-group, .col-notes { display: none; }
  .code-boxes input { width: 30px; height: 44px; font-size: 18px; border-radius: 8px; }
  .code-boxes { gap: 3px; }
  .sess-title { display: none; }
  .sess-bar { overflow-x: auto; }
  .add-wrap h1 { font-size: 28px; }
}
