:root {
  color-scheme: dark;
  --bg: #070b1d;
  --card: #0f1530;
  --card-2: #141b3d;
  --line: #243058;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --white: #f8fafc;
  --red: #4f7cff;
  --red-dark: #3b63e6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--white); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.site-header { height: 78px; width: min(1160px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #1e293b; }
.site-header nav a { color: var(--muted); font-size: 14px; }
.site-header nav a:hover, .text-link:hover { color: var(--white); }
.brand { display: inline-flex; gap: 1px; align-items: center; font-size: 20px; font-weight: 800; letter-spacing: -1px; }
.brand::before { content: ""; width: 26px; height: 26px; border-radius: 8px; background: var(--red); margin-right: 8px; box-shadow: 0 4px 20px #4f7cff4d; }
.brand span { color: var(--red); }
.landing { width: min(1160px, calc(100% - 48px)); margin: auto; }
.hero { min-height: 500px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 72px 0 54px; }
.hero-copy { max-width: 540px; z-index: 1; }
.eyebrow { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 2.5px; }
.hero h1 { font-size: clamp(48px, 5.5vw, 68px); line-height: .99; letter-spacing: -4px; margin: 18px 0; font-weight: 760; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-copy > p { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 410px; margin: 0 0 28px; }
.connect-box { padding: 19px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; max-width: 438px; box-shadow: 0 18px 48px #0206173d; }
.connect-box label, .settings-form label, .login-card label { color: var(--soft); font-size: 12px; font-weight: 650; display: grid; gap: 9px; }
.connect-row { display: flex; gap: 10px; margin-top: 10px; }
.connect-row input, .password-field, input, textarea, select { color: var(--white); background: #0b1220; border: 1px solid #29364a; border-radius: 7px; padding: 12px 13px; outline: none; min-width: 0; }
.connect-row input:focus, .password-field:focus, input:focus, textarea:focus, select:focus { border-color: #4f7cffa6; box-shadow: 0 0 0 3px #4f7cff1c; }
.connect-row input { flex: 1; letter-spacing: 2px; font-size: 16px; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; border-radius: 7px; padding: 11px 15px; font-size: 12px; font-weight: 700; color: white; white-space: nowrap; }
.primary { background: var(--red); }
.primary:hover { background: var(--red-dark); }
.connect-row .primary { min-width: 116px; }
.connect-row .primary span { font-size: 17px; margin-left: 12px; line-height: 10px; }
.password-field { width: 100%; margin-top: 10px; }
.download-row { display: flex; align-items: center; gap: 13px; margin-top: 17px; }
.mac-download { display: inline-flex; align-items: center; gap: 8px; }
.mac-intel-link { font-size: 10px; white-space: nowrap; }
.download-row [hidden] { display: none; }
.secondary { background: #1b273a; border-color: #334155; }
.secondary:hover { background: #25344a; }
.text-link { color: var(--muted); font-size: 12px; }
.hero-art { min-height: 330px; position: relative; display: grid; place-items: center; overflow: hidden; }
.monitor { position: relative; z-index: 1; width: min(430px, 90%); transform: perspective(900px) rotateY(-8deg) rotateX(3deg); border: 1px solid #344256; border-radius: 11px; background: #111827; padding: 10px; box-shadow: 0 30px 90px #020617a8, inset 0 0 0 1px #ffffff08; }
.monitor-top { height: 24px; display: flex; align-items: center; gap: 5px; padding: 0 5px 9px; color: #64748b; }
.monitor-top i { width: 5px; height: 5px; border-radius: 50%; background: #475569; }
.monitor-top span { margin-left: auto; font-size: 7px; letter-spacing: 1px; }
.screen-glow { height: 236px; border-radius: 5px; overflow: hidden; padding: 22px; background: radial-gradient(ellipse at 70% 42%, #1d3444, transparent 54%), linear-gradient(145deg, #0b1220, #122235); border: 1px solid #29364a; }
.screen-card { height: 58px; max-width: 245px; margin: 38px auto 20px; padding: 11px 13px; display: flex; align-items: center; gap: 10px; background: #121e2d; border: 1px solid #314156; border-radius: 8px; box-shadow: 0 12px 24px #02061780; }
.screen-dot { width: 9px; height: 9px; border-radius: 100%; background: #22c55e; box-shadow: 0 0 12px #22c55e80; }
.screen-card strong, .screen-card small { display: block; }
.screen-card strong { font-size: 11px; }
.screen-card small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.screen-card b { color: var(--red); margin-left: auto; font-size: 17px; }
.desktop-lines { display: flex; gap: 8px; max-width: 245px; margin: auto; }
.desktop-lines span { height: 3px; background: #334155; border-radius: 3px; flex: 1; }
.orbit { position: absolute; border: 1px solid #33415566; border-radius: 50%; width: 400px; height: 240px; transform: rotate(-22deg); }
.orbit-two { width: 500px; height: 310px; transform: rotate(32deg); border-color: #4f7cff22; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #1e293b; border-bottom: 1px solid #1e293b; padding: 27px 0; gap: 25px; }
.feature-row article { display: flex; gap: 14px; }
.feature-row article > span { font-size: 10px; color: var(--red); font-weight: 800; padding-top: 3px; }
.feature-row h2 { font-size: 13px; margin: 0 0 6px; }
.feature-row p { color: var(--muted); margin: 0; font-size: 11px; }
.announcement { color: #a5c0ff; margin-top: 18px; font-size: 13px; }
.address-book { margin: 26px 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.address-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.address-head h2 { margin: 6px 0 0; font-size: 17px; }
.address-head .muted { font-size: 10px; }
.saved-desk-form { display: grid; grid-template-columns: 1.15fr 1fr 1.3fr auto auto; gap: 8px; align-items: center; }
.saved-desk-form > input { width: 100%; font-size: 10px; padding: 10px; }
.check-label { display: flex; gap: 5px; align-items: center; color: var(--muted); font-size: 9px; white-space: nowrap; }
.check-label input, .auto-toggle input { accent-color: var(--red); }
.saved-desk-form .button { font-size: 10px; padding: 10px; }
.saved-desks { margin-top: 11px; display: grid; }
.saved-desk { display: flex; align-items: center; gap: 9px; min-width: 0; border-top: 1px solid #263246; padding: 9px 2px; }
.saved-desk .status-dot { width: 8px; height: 8px; flex: 0 0 8px; display: inline-block; background: #64748b; border-radius: 50%; }
.saved-desk .status-dot.online { background: #22c55e; }
.desk-open { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--white); padding: 0; text-align: left; cursor: pointer; }
.desk-open strong, .desk-open small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-open strong { font-size: 11px; }
.desk-open small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.auto-toggle { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); font-size: 9px; white-space: nowrap; }
.saved-desk .mini { background: #172235; color: #cbd5e1; }
.saved-desk .mini.danger-text { color: #f87171; }
.book-empty { color: var(--muted); font-size: 10px; padding: 10px 2px 2px; }
footer { text-align: center; color: #64748b; font-size: 10px; padding: 22px; }

.viewer-bar { height: 58px; display: flex; align-items: center; gap: 17px; padding: 0 18px; background: #101827; border-bottom: 1px solid var(--line); }
.viewer-bar.is-hidden { transform: translateY(-100%); }
.viewer-bar .brand { font-size: 16px; flex-shrink: 0; }
.viewer-bar .brand::before { width: 22px; height: 22px; border-radius: 6px; }
.status { color: var(--muted); font-size: 11px; margin-right: auto; }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #64748b; margin-right: 8px; }
.status.is-online::before { background: #22c55e; box-shadow: 0 0 8px #22c55e88; }
.viewer-tools { display: flex; align-items: center; gap: 7px; }
.viewer-tools #connection-stats { color: #64748b; font-size: 9px; white-space: nowrap; }
.keyboard-button { display: none; }
.mobile-keyboard-input { position: fixed; left: 1px; bottom: 1px; width: 1px; height: 1px; padding: 0; border: 0; opacity: .01; }
.viewer-tools button, .viewer-tools select, .file-button { color: var(--soft); background: #172235; border: 1px solid #29364a; border-radius: 6px; padding: 8px 10px; font-size: 10px; }
.viewer-tools button:hover, .file-button:hover { border-color: #53647b; }
.viewer-tools .danger { background: #3a1a24; border-color: #663342; color: #fda4af; }
.viewer-layout { display: flex; height: calc(100vh - 58px); }
.remote-stage { position: relative; flex: 1; min-width: 0; background: #080d16; display: grid; place-items: center; overflow: hidden; }
#remote-video { width: 100%; height: 100%; object-fit: contain; outline: none; touch-action: none; }
.viewer-help { position: absolute; bottom: 12px; color: #64748b; font-size: 10px; pointer-events: none; }
.connect-card { z-index: 2; position: absolute; display: grid; gap: 11px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 23px; width: min(360px, calc(100% - 30px)); box-shadow: 0 18px 50px #0008; }
.connect-card[hidden] { display: none; }
.connect-card h1 { font-size: 19px; margin: 0 0 4px; }
.chat-panel { width: 0; overflow: hidden; flex-shrink: 0; background: #111827; border-left: 1px solid transparent; transition: width .2s ease; }
.chat-panel.open { width: 290px; border-color: var(--line); padding: 15px; display: flex; flex-direction: column; }
.chat-panel h2 { margin: 0; font-size: 15px; }
.chat-messages { flex: 1; overflow: auto; padding: 15px 0; }
.chat-line { font-size: 11px; padding: 8px 9px; margin: 5px 0; border-radius: 8px; background: #1b273a; overflow-wrap: anywhere; }
.chat-line.viewer { background: #1d2b5c; }
#chat-form { display: flex; gap: 6px; }
#chat-input { flex: 1; width: 1px; }

.admin-body { background: #f1f5f9; color: #172033; color-scheme: light; }
.admin-shell { min-height: 100vh; display: flex; }
.admin-side { width: 225px; flex-shrink: 0; display: flex; flex-direction: column; padding: 24px 15px; background: #111827; color: white; }
.admin-side .brand { padding: 0 8px 25px; }
.admin-side > small { color: #64748b; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; padding: 7px 10px; }
.admin-side nav { display: grid; gap: 5px; margin-top: 9px; }
.admin-side nav button, .logout { border: 0; background: transparent; color: #94a3b8; border-radius: 6px; padding: 11px 10px; text-align: left; font-size: 12px; }
.admin-side nav button.active, .admin-side nav button:hover { color: white; background: #263246; }
.logout { margin-top: auto; }
.admin-main { flex: 1; min-width: 0; padding: 32px clamp(20px, 4vw, 54px); }
.admin-main > header { display: flex; justify-content: space-between; align-items: center; margin: 0 0 24px; }
.admin-main > header h1 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.6px; }
.admin-main .eyebrow { font-size: 9px; }
.admin-user { color: #64748b; font-size: 11px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card, .table-card, .settings-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 9px; box-shadow: 0 2px 10px #0f172a08; }
.stat-card { padding: 18px; display: grid; gap: 7px; }
.stat-card span, .stat-card small { color: #64748b; font-size: 11px; }
.stat-card strong { font-size: 28px; letter-spacing: -1px; }
.table-card, .settings-card { padding: 20px; margin-bottom: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.section-head h2, .settings-card h2 { margin: 0 0 5px; font-size: 15px; }
.section-head p { margin: 0; color: #64748b; font-size: 11px; }
.search-input { width: 210px; color: #172033; background: white; border-color: #dbe3ed; padding: 9px 11px; font-size: 11px; }
.subtle { background: #f8fafc; border-color: #dbe3ed; color: #475569; padding: 8px 12px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 600px; text-align: left; font-size: 11px; }
th { color: #64748b; font-weight: 650; font-size: 10px; padding: 10px 9px; background: #f8fafc; }
td { padding: 12px 9px; border-top: 1px solid #edf1f5; color: #475569; }
td strong { color: #1e293b; }
.sub-cell { display: block; color: #94a3b8; font-size: 10px; margin-top: 3px; }
.status-dot { width: 7px; height: 7px; display: inline-block; background: #94a3b8; border-radius: 50%; margin-right: 6px; }
.status-dot.online { background: #22c55e; }
.actions { white-space: nowrap; }
.mini { border: 0; background: #f1f5f9; border-radius: 4px; color: #475569; padding: 5px 7px; font-size: 9px; margin: 1px 3px 1px 0; }
.mini:hover { background: #e2e8f0; }
.mini.danger-text { color: #3b63e6; }
.empty { text-align: center; padding: 35px 15px; color: #94a3b8; font-size: 12px; }
.settings-card { max-width: 790px; }
.settings-form { display: grid; gap: 15px; }
.settings-form label { color: #334155; }
.settings-form input, .settings-form textarea { width: 100%; color: #172033; background: white; border-color: #dbe3ed; font-size: 12px; resize: vertical; }
.settings-form input[type=file] { padding: 8px; }
.settings-form .primary { justify-self: start; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.save-status { color: #15803d; font-size: 11px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: white; width: min(380px, 100%); padding: 30px; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 14px 40px #0f172a12; }
.login-card .brand { color: #111827; }
.login-card h1 { font-size: 22px; margin: 27px 0 6px; }
.login-card p { color: #64748b; font-size: 12px; margin: 0 0 22px; }
.login-card form { display: grid; gap: 15px; }
.login-card label { color: #334155; }
.login-card input { width: 100%; color: #172033; background: white; border-color: #dbe3ed; }
.form-error { color: #3b63e6; min-height: 16px; font-size: 11px; }
@media (max-width: 760px) {
  .site-header { width: calc(100% - 32px); height: 64px; }
  .landing { width: calc(100% - 32px); }
  .hero { display: block; padding: 54px 0 35px; min-height: 0; }
  .hero-art { min-height: 250px; margin-top: 20px; }
  .screen-glow { height: 185px; }
  .screen-card { margin-top: 25px; }
  .feature-row { grid-template-columns: 1fr; gap: 18px; }
  .saved-desk-form { grid-template-columns: 1fr 1fr; }
  .saved-desk-form .check-label { min-height: 34px; }
  .viewer-bar { flex-wrap: wrap; height: auto; min-height: 58px; padding: 10px; gap: 8px; }
  .viewer-bar .brand { margin-right: auto; }
  .viewer-bar .status { order: 2; width: 100%; }
  .viewer-tools { overflow-x: auto; max-width: 100%; }
  .viewer-tools select, .viewer-tools button, .file-button { padding: 7px; }
  .keyboard-button { display: inline-block; }
  .viewer-tools #connection-stats { display: none; }
  .viewer-layout { height: calc(100vh - 93px); }
  .chat-panel.open { position: absolute; right: 0; top: 92px; bottom: 0; z-index: 5; width: min(290px, 90vw); }
  .admin-side { width: 62px; padding: 17px 7px; }
  .admin-side .brand { font-size: 0; padding: 0 9px 24px; }
  .admin-side .brand::before { margin: 0; }
  .admin-side > small { display: none; }
  .admin-side nav button { font-size: 0; text-align: center; padding: 12px 4px; }
  .logout { font-size: 0; text-align: center; padding: 12px 4px; }
  .admin-main { padding: 22px 12px; }
  .stat-grid { gap: 7px; }
  .stat-card { padding: 12px 9px; }
  .stat-card strong { font-size: 23px; }
  .two-cols { grid-template-columns: 1fr; }
  .table-card, .settings-card { padding: 14px; }
  .search-input { width: 150px; }
}

/* Bainsla Remote theme */
:root { --acc2: #a855f7; --glow: radial-gradient(1000px 520px at 85% -10%, #4f7cff33, transparent 60%), radial-gradient(800px 500px at -10% 30%, #a855f722, transparent 60%); font-family: "Poppins", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
body:not(.admin-body) { background: var(--glow), var(--bg); background-attachment: fixed; }
.brand { letter-spacing: -.4px; font-size: 21px; }
.brand::before { background: linear-gradient(135deg, var(--red), var(--acc2)); border-radius: 50%; box-shadow: 0 0 0 4px #4f7cff22, 0 6px 24px #4f7cff55; }
.brand span { background: linear-gradient(90deg, var(--red), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 5px; }
.primary { background: linear-gradient(135deg, var(--red), var(--acc2)); box-shadow: 0 8px 24px #4f7cff40; }
.primary:hover { background: linear-gradient(135deg, var(--red-dark), #9333ea); }
.button { font-size: 14px; border-radius: 10px; padding: 12px 18px; }
.site-header nav a { font-size: 15px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.eyebrow { font-size: 12px; letter-spacing: 3px; background: linear-gradient(90deg, var(--red), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { letter-spacing: -2px; font-weight: 800; }
.hero h1 em { background: linear-gradient(90deg, var(--red), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { font-size: 17px; }
.connect-box { border-radius: 18px; padding: 22px; background: linear-gradient(180deg, #121a3d, #0d1330); border-color: #2c3a6b; box-shadow: 0 24px 60px #02041a80; }
.connect-box label, .settings-form label, .login-card label { font-size: 13px; }
.connect-row input, .password-field, input, textarea, select { border-radius: 10px; font-size: 15px; background: #0a0f26; border-color: #2a3766; }
.connect-row input { font-size: 18px; }
.monitor { border-radius: 18px; border-color: #33427a; background: #0f1530; }
.screen-glow { border-radius: 10px; background: radial-gradient(ellipse at 70% 42%, #4f7cff40, transparent 55%), radial-gradient(ellipse at 20% 80%, #a855f733, transparent 55%), linear-gradient(145deg, #0a0f26, #141b3d); }
.screen-card { border-radius: 12px; background: #141b3d; }
.screen-card b { color: var(--acc2); }
.orbit-two { border-color: #a855f733; }
.feature-row { border-color: var(--line); gap: 18px; border: 0; }
.feature-row article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feature-row article > span { font-size: 13px; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; padding: 0; color: #fff; background: linear-gradient(135deg, var(--red), var(--acc2)); }
.feature-row h2 { font-size: 16px; }
.feature-row p { font-size: 13px; line-height: 1.55; }
.address-book { border-radius: 18px; padding: 24px; }
.address-head h2 { font-size: 21px; }
.address-head .muted { font-size: 12px; }
.saved-desk-form > input, .saved-desk-form .button { font-size: 14px; padding: 11px 12px; }
.check-label, .auto-toggle { font-size: 13px; }
.saved-desk { padding: 12px 4px; }
.desk-open strong { font-size: 15px; }
.desk-open small, .book-empty { font-size: 13px; }
.saved-desk .mini { font-size: 12px; padding: 7px 10px; border-radius: 8px; }
footer { font-size: 13px; }
.viewer-bar { background: #0b1128; }
.viewer-tools button, .viewer-tools select, .file-button { font-size: 12px; border-radius: 8px; background: #141b3d; border-color: #2a3766; }
.viewer-tools #connection-stats { font-size: 11px; }
.status { font-size: 13px; }
.connect-card { border-radius: 18px; }
.chat-line { font-size: 13px; }
.chat-line.viewer { background: #1d2b5c; }
.admin-body { background: #eef2fb; }
.admin-side { background: linear-gradient(180deg, #0b1128, #151c45); }
.admin-side nav button, .logout { font-size: 14px; border-radius: 10px; }
.admin-side nav button.active { background: linear-gradient(135deg, #4f7cff, #a855f7); }
.admin-side > small { font-size: 11px; }
.admin-main .eyebrow { font-size: 11px; }
.admin-user { font-size: 13px; }
.stat-card { border-radius: 16px; border: 0; box-shadow: 0 6px 24px #1a237e12; position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #4f7cff, #a855f7); }
.stat-card span, .stat-card small { font-size: 13px; }
.stat-card strong { font-size: 32px; }
.table-card, .settings-card { border-radius: 16px; border: 0; box-shadow: 0 6px 24px #1a237e12; }
.section-head h2, .settings-card h2 { font-size: 18px; }
.section-head p, .search-input { font-size: 13px; }
table { font-size: 13px; }
th { font-size: 12px; }
.sub-cell { font-size: 12px; }
.mini { font-size: 12px; padding: 6px 9px; border-radius: 7px; }
.empty { font-size: 14px; }
.settings-form input, .settings-form textarea { font-size: 14px; }
.save-status, .form-error { font-size: 13px; }
.login-wrap { background: radial-gradient(800px 500px at 80% 0%, #4f7cff2e, transparent 60%), radial-gradient(700px 500px at 0% 100%, #a855f726, transparent 60%), #eef2fb; }
.login-card { border-radius: 20px; border: 0; box-shadow: 0 24px 60px #1a237e1f; }
.login-card .brand span { -webkit-text-fill-color: transparent; }
.login-card p { font-size: 14px; }
@media (max-width: 760px) {
  .hero h1 { font-size: 40px; }
  .feature-row { grid-template-columns: 1fr; }
  .saved-desk-form { grid-template-columns: 1fr; }
  .site-header nav a { padding: 6px 12px; font-size: 13px; }
}
.hero { overflow-x: clip; }
@media (max-width: 760px) {
  .download-row { flex-wrap: wrap; }
  .download-row .button, .download-row .mac-download { flex: 1 1 100%; justify-content: center; }
  .download-row .mac-download .button { flex: 1 1 0; }
}
