:root {
  color-scheme: dark;
  --bg: #0b0d11;
  --chrome: #12151b;
  --chrome-2: #181c23;
  --surface: #1d222b;
  --surface-2: #252b35;
  --surface-3: #2d3541;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #f5f7fb;
  --muted: #9aa4b2;
  --muted-2: #6f7b8a;
  --accent: #6ee7c1;
  --accent-strong: #32c99a;
  --accent-ink: #071a14;
  --blue: #74a7ff;
  --danger: #ff6f7d;
  --warning: #f4bd64;
  --radius: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  font-family: Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg); }
body { color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { color: inherit; }
button, [role="tab"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .35; cursor: default; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
[hidden] { display: none !important; }

.app-shell { height: 100dvh; min-height: 420px; display: grid; grid-template-rows: auto minmax(0, 1fr) 28px; background: var(--bg); }
.browser-chrome { position: relative; z-index: 5; background: linear-gradient(180deg, #171a21 0%, #12151b 100%); border-bottom: 1px solid #07080b; box-shadow: 0 3px 14px rgba(0,0,0,.2); user-select: none; }
.top-strip { height: 48px; display: grid; grid-template-columns: 126px minmax(0, 1fr) 140px; align-items: end; gap: 10px; padding: 7px 12px 0; }
.brand { height: 35px; display: flex; align-items: center; gap: 8px; padding-bottom: 6px; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; color: var(--accent); background: rgba(110,231,193,.08); border: 1px solid rgba(110,231,193,.16); border-radius: 9px; }
.brand-mark svg { width: 22px; height: 22px; stroke-width: 1.6; }
.brand-copy { display: flex; align-items: baseline; gap: 5px; }
.brand-copy strong { font-size: 15px; letter-spacing: -.3px; }
.brand-copy small { color: var(--muted-2); font: 700 8px/1 Arial, sans-serif; letter-spacing: 1.2px; }
.tabs-region { direction: rtl; min-width: 0; height: 41px; display: flex; align-items: flex-end; gap: 6px; }
.tabs-scroller { min-width: 0; display: flex; align-items: flex-end; gap: 5px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs-scroller::-webkit-scrollbar { display: none; }
.browser-tab { direction: rtl; position: relative; width: clamp(155px, 18vw, 230px); flex: 0 1 230px; min-width: 130px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 6px; border: 1px solid transparent; border-bottom: 0; border-radius: 11px 11px 0 0; background: rgba(255,255,255,.025); color: var(--muted); cursor: default; }
.browser-tab:hover { background: rgba(255,255,255,.055); color: #d9dee6; }
.browser-tab[aria-selected="true"] { height: 39px; background: #252a33; color: var(--text); border-color: var(--line); box-shadow: 0 -5px 18px rgba(0,0,0,.12); }
.browser-tab[aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: #252a33; }
.tab-favicon { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 6px; color: #c7d1dd; background: linear-gradient(135deg, #414b59, #2d343e); font: 700 10px/1 Arial, sans-serif; }
.tab-favicon.is-loading { color: transparent; border: 2px solid rgba(110,231,193,.2); border-top-color: var(--accent); border-radius: 50%; background: transparent; animation: spin .8s linear infinite; }
.tab-title { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; text-align: right; }
.tab-close { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 17px; line-height: 1; }
.tab-close:hover { color: white; background: rgba(255,255,255,.09); }
.new-tab-button { margin-bottom: 4px; }
.window-status { height: 36px; display: flex; align-items: center; justify-content: flex-end; padding-bottom: 6px; }
.connection-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 99px; background: rgba(0,0,0,.16); padding: 5px 9px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.status-dot, .status-led { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 3px rgba(244,189,100,.09); }
.connection-pill.is-online .status-dot, .status-led.is-online { background: var(--accent); box-shadow: 0 0 0 3px rgba(110,231,193,.09), 0 0 12px rgba(110,231,193,.35); }
.connection-pill.is-offline .status-dot, .status-led.is-offline { background: var(--danger); box-shadow: 0 0 0 3px rgba(255,111,125,.09); }
.connection-pill.is-connecting .status-dot { animation: pulse 1.2s ease-in-out infinite; }

.toolbar { min-height: 58px; display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px 10px; background: #252a33; border-top: 1px solid rgba(255,255,255,.035); }
.nav-actions { display: flex; gap: 3px; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 10px; display: grid; place-items: center; background: transparent; color: #bdc5cf; cursor: pointer; }
.icon-button:hover:not(:disabled) { background: rgba(255,255,255,.075); color: white; }
.icon-button svg { width: 19px; height: 19px; }
.address-form { direction: ltr; height: 40px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.095); border-radius: 12px; padding: 0 5px 0 12px; background: #14171d; box-shadow: inset 0 1px 1px rgba(0,0,0,.3), 0 1px rgba(255,255,255,.03); transition: border-color .15s, box-shadow .15s; }
.address-form:focus-within { border-color: rgba(110,231,193,.58); box-shadow: 0 0 0 3px rgba(110,231,193,.08), inset 0 1px 1px rgba(0,0,0,.25); }
.address-security { width: 22px; flex: 0 0 22px; display: grid; place-items: center; color: var(--muted-2); }
.address-security svg { width: 16px; height: 16px; }
.address-security .search-icon { display: none; }
.address-security.is-search .lock-icon { display: none; }
.address-security.is-search .search-icon { display: block; }
.address-security.is-secure { color: var(--accent); }
.address-form input { direction: ltr; min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #e8edf4; font: 13px/1.4 Arial, Tahoma, sans-serif; }
.address-form input::placeholder { direction: rtl; text-align: right; color: #798493; font-family: Tahoma, Arial, sans-serif; }
.go-button { direction: rtl; height: 30px; border: 0; border-radius: 8px; padding: 0 12px; color: var(--accent); background: rgba(110,231,193,.08); cursor: pointer; font-size: 11px; }
.go-button:hover { background: rgba(110,231,193,.14); }
.proxy-button { direction: rtl; min-width: 150px; height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(10,12,16,.38); cursor: pointer; text-align: right; }
.proxy-button:hover { border-color: var(--line-strong); background: rgba(10,12,16,.52); }
.proxy-button > svg { width: 18px; height: 18px; color: var(--muted); }
.proxy-button-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.proxy-button-copy small { color: var(--muted-2); font-size: 8px; }
.proxy-button-copy strong { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.proxy-state-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px rgba(110,231,193,.35); }
.proxy-state-dot.is-busy { background: var(--warning); animation: pulse 1s infinite; }
.loading-track { position: absolute; inset: auto 0 -2px; height: 2px; overflow: hidden; pointer-events: none; }
.loading-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent-strong), #90f2d4, var(--blue)); box-shadow: 0 0 10px rgba(110,231,193,.65); opacity: 0; }
.loading-track span.is-loading { opacity: 1; animation: loading 2s ease-in-out infinite; }
.browser-chrome.is-loading .reload-icon { display: none; }
.browser-chrome:not(.is-loading) .stop-icon { display: none; }

.content-stage { min-height: 0; position: relative; background: #080a0d; }
.viewport-panel { position: absolute; inset: 0; overflow: hidden; background: #0b0e13; }
#remoteCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #08090c; cursor: default; touch-action: none; }
.mobile-keyboard { position: fixed; z-index: -1; left: 0; bottom: 0; width: 2px; height: 2px; padding: 0; border: 0; opacity: .01; pointer-events: none; resize: none; }
.dashboard { position: absolute; inset: 0; display: grid; place-items: center; overflow: auto; background: radial-gradient(circle at 50% 44%, rgba(44,73,68,.26) 0, rgba(13,17,22,.1) 34%, transparent 56%), linear-gradient(145deg, #0d1116, #11161c 50%, #0b0e12); }
.dashboard::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle, black, transparent 70%); }
.dashboard-content { position: relative; z-index: 1; width: min(680px, calc(100% - 38px)); padding: 54px 0 78px; text-align: center; }
.hero-mark { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 23px; color: var(--accent); border: 1px solid rgba(110,231,193,.18); background: linear-gradient(145deg, rgba(110,231,193,.12), rgba(110,231,193,.035)); box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.08); }
.hero-mark svg { width: 50px; height: 50px; stroke-width: 1.2; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font: 700 9px/1.2 Arial, sans-serif; letter-spacing: 2.2px; }
.dashboard h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.25; letter-spacing: -1.4px; }
.hero-subtitle { margin: 12px auto 26px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.dashboard-search { height: 54px; display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 0 auto; direction: ltr; padding: 0 7px 0 17px; border: 1px solid var(--line-strong); border-radius: 17px; background: rgba(31,38,46,.88); box-shadow: 0 16px 50px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.045); }
.dashboard-search:focus-within { border-color: rgba(110,231,193,.5); box-shadow: 0 0 0 4px rgba(110,231,193,.07), 0 16px 50px rgba(0,0,0,.3); }
.dashboard-search svg { width: 21px; color: var(--muted); }
.dashboard-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: none; color: var(--text); font-size: 14px; }
.dashboard-search input::placeholder { direction: rtl; color: var(--muted-2); }
.dashboard-search button { direction: rtl; height: 40px; min-width: 72px; border: 0; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; }
.dashboard-search button:hover { background: #88edcd; }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; color: var(--muted); font-size: 11px; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row svg { width: 15px; height: 15px; color: var(--accent); }
.dashboard-footer { position: absolute; z-index: 1; inset: auto 0 18px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted-2); font-size: 9px; }
.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.dashboard-orbit { position: absolute; width: min(80vw, 850px); aspect-ratio: 1; border: 1px solid rgba(110,231,193,.045); border-radius: 50%; pointer-events: none; }
.dashboard-orbit::before, .dashboard-orbit::after { content: ""; position: absolute; border: inherit; border-radius: inherit; }
.dashboard-orbit::before { inset: 16%; }.dashboard-orbit::after { inset: 34%; }
.dashboard-orbit i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .35; }
.dashboard-orbit i:nth-child(1) { top: 20%; left: 18%; }.dashboard-orbit i:nth-child(2) { bottom: 24%; right: 11%; }.dashboard-orbit i:nth-child(3) { top: 10%; right: 33%; }
.state-screen { position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; justify-items: center; padding: 30px; text-align: center; background: radial-gradient(circle at 50% 50%, #161c23, #0b0e12 62%); }
.state-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 21px; color: var(--accent); background: rgba(110,231,193,.08); border: 1px solid rgba(110,231,193,.13); }
.state-icon.warning { color: var(--warning); background: rgba(244,189,100,.07); border-color: rgba(244,189,100,.14); }
.state-icon svg { width: 30px; height: 30px; }
.state-screen h2 { margin: 20px 0 7px; font-size: 20px; }
.state-screen p { margin: 0 0 22px; color: var(--muted); line-height: 1.8; }

.statusbar { direction: ltr; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0 12px; border-top: 1px solid var(--line); background: #101319; color: var(--muted-2); font: 9px/1 Arial, Tahoma, sans-serif; user-select: none; }
.status-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.status-led { width: 5px; height: 5px; box-shadow: none; }
.status-divider { width: 1px; height: 11px; background: var(--line); }
.status-spacer { flex: 1; }
.status-item.privacy { direction: rtl; }
.status-item.privacy svg { width: 11px; height: 11px; color: var(--accent); }

.dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 18px; border: 0; background: transparent; color: var(--text); overflow: auto; }
.dialog::backdrop { background: rgba(3,5,8,.76); backdrop-filter: blur(7px); }
.dialog[open] { display: grid; place-items: center; }
.dialog-card { width: min(900px, 100%); max-height: min(720px, calc(100dvh - 36px)); display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 22px; background: #181d24; box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.04); overflow: hidden; }
.dialog-card.compact { width: min(470px, 100%); padding: 32px; text-align: center; overflow: visible; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); }
.dialog-header h2 { margin: 0 0 5px; font-size: 21px; }.dialog-header p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; }
.close-dialog { flex: 0 0 34px; }
.proxy-layout { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(250px, .72fr) minmax(340px, 1.28fr); direction: rtl; }
.profiles-column { min-height: 0; display: flex; flex-direction: column; padding: 20px; border-left: 1px solid var(--line); background: #14181e; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.section-heading h3 { margin: 0; font-size: 12px; }.text-button { border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 11px; }.text-button span { font-size: 17px; vertical-align: -1px; }
.profiles-list { min-height: 100px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding-left: 3px; }
.profile-item { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: #1b2028; color: var(--text); cursor: pointer; text-align: right; }
.profile-item:hover { background: #202630; border-color: var(--line-strong); }.profile-item.is-selected { border-color: rgba(110,231,193,.42); background: rgba(110,231,193,.07); box-shadow: inset -2px 0 var(--accent); }
.profile-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.045); color: var(--muted); }
.profile-icon svg { width: 17px; height: 17px; }.profile-item.is-selected .profile-icon { color: var(--accent); background: rgba(110,231,193,.08); }
.profile-copy { min-width: 0; flex: 1; }.profile-copy strong, .profile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.profile-copy strong { font-size: 11px; margin-bottom: 4px; }.profile-copy small { direction: ltr; text-align: right; color: var(--muted-2); font: 9px/1 Arial, sans-serif; }
.profile-check { width: 15px; height: 15px; flex: 0 0 15px; border: 1px solid var(--line-strong); border-radius: 50%; }.profile-item.is-selected .profile-check { border: 4px solid var(--accent); }
.secret-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 12px; border: 1px solid rgba(116,167,255,.12); border-radius: 11px; background: rgba(116,167,255,.045); }
.secret-note svg { width: 17px; flex: 0 0 17px; color: var(--blue); }.secret-note p { margin: 0; }.secret-note strong, .secret-note span { display: block; }.secret-note strong { margin-bottom: 3px; font-size: 9px; }.secret-note span { color: var(--muted-2); font-size: 8px; line-height: 1.6; }
.proxy-form { min-height: 380px; overflow-y: auto; padding: 24px; background: #1b2028; }
.form-placeholder { min-height: 320px; display: grid; align-content: center; justify-items: center; text-align: center; color: var(--muted); }.form-placeholder svg { width: 38px; color: var(--muted-2); }.form-placeholder h3 { margin: 14px 0 5px; color: var(--text); font-size: 14px; }.form-placeholder p { margin: 0; font-size: 10px; }
.field-grid { display: grid; gap: 13px; margin-bottom: 15px; }.field-grid.two { grid-template-columns: 1fr 1fr; }.field-grid.host-port { grid-template-columns: minmax(0, 1fr) 110px; }
.field { display: flex; flex-direction: column; gap: 7px; color: #cbd2dc; font-size: 10px; }
.field input, .field select { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; outline: 0; padding: 0 11px; background: #11151a; color: var(--text); font-size: 11px; }.field select { cursor: pointer; }.field input:focus, .field select:focus { border-color: rgba(110,231,193,.48); box-shadow: 0 0 0 3px rgba(110,231,193,.06); }.field input::placeholder { color: #586270; }
.credentials-heading { display: flex; align-items: center; justify-content: space-between; margin: 21px 0 11px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 10px; }.credentials-heading small { color: var(--muted-2); font-weight: 400; }.memory-chip { padding: 4px 7px; border-radius: 99px; color: var(--blue); background: rgba(116,167,255,.08); font-size: 8px; }
.password-wrap { display: flex; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #11151a; }.password-wrap:focus-within { border-color: rgba(110,231,193,.48); box-shadow: 0 0 0 3px rgba(110,231,193,.06); }.password-wrap input { height: 38px; flex: 1; border: 0; box-shadow: none !important; }.password-wrap button { border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 9px; }
.field-help { margin: -5px 0 13px; color: var(--warning); font-size: 9px; line-height: 1.65; }.form-error { margin: 0 0 12px; padding: 9px 11px; border-radius: 9px; color: #ffc0c6; background: rgba(255,111,125,.08); font-size: 9px; }
.secondary-actions { justify-content: space-between !important; margin-top: 21px; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 24px; border-top: 1px solid var(--line); background: #151a20; }.current-route span, .current-route strong { display: block; }.current-route span { margin-bottom: 4px; color: var(--muted-2); font-size: 8px; }.current-route strong { font-size: 10px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }.form-actions.full > * { flex: 1; }
.primary-button, .secondary-button, .danger-button { min-height: 38px; border-radius: 10px; padding: 0 16px; cursor: pointer; font-weight: 700; font-size: 10px; }.primary-button { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }.primary-button:hover { background: #8aefd0; }.secondary-button { border: 1px solid var(--line-strong); background: #242a33; color: #e2e7ee; }.secondary-button:hover { background: #2b323d; }.danger-button { border: 1px solid rgba(255,111,125,.18); background: rgba(255,111,125,.06); color: var(--danger); }.danger-button:hover { background: rgba(255,111,125,.11); }
.permission-visual { display: flex; justify-content: center; margin-bottom: 21px; }.permission-visual span { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 -3px; border: 1px solid rgba(110,231,193,.18); border-radius: 16px; background: #202831; color: var(--accent); box-shadow: 0 8px 18px rgba(0,0,0,.18); }.permission-visual span:last-child { transform: rotate(5deg); color: var(--blue); }.permission-visual svg { width: 24px; height: 24px; }
.permission-dialog h2 { margin: 3px 0 9px; font-size: 20px; }.permission-dialog #permissionDescription { margin: 0 0 19px; color: var(--muted); line-height: 1.7; }
.origin-box { padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: #11151a; text-align: right; }.origin-box span, .origin-box strong { display: block; }.origin-box span { margin-bottom: 6px; color: var(--muted-2); font-size: 8px; }.origin-box strong { overflow: hidden; text-overflow: ellipsis; color: #dce3eb; font: 10px/1.4 Arial, sans-serif; white-space: nowrap; }
.requested-devices { display: flex; gap: 8px; margin: 11px 0; }.device-chip { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; border-radius: 9px; color: #d2dae4; background: rgba(255,255,255,.04); font-size: 9px; }.device-chip svg { width: 15px; color: var(--accent); }
.permission-note { margin: 13px 0 20px; color: var(--muted-2); font-size: 9px; line-height: 1.7; }

.toast-region { position: fixed; z-index: 20; left: 18px; bottom: 42px; width: min(360px, calc(100% - 36px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { direction: rtl; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(27,32,40,.96); box-shadow: 0 12px 40px rgba(0,0,0,.38); animation: toast-in .2s ease-out; pointer-events: auto; }.toast.is-error { border-color: rgba(255,111,125,.28); }.toast.is-success { border-color: rgba(110,231,193,.23); }.toast-dot { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 4px; border-radius: 50%; background: var(--blue); }.toast.is-error .toast-dot { background: var(--danger); }.toast.is-success .toast-dot { background: var(--accent); }.toast-copy { min-width: 0; flex: 1; }.toast-copy strong, .toast-copy span { display: block; }.toast-copy strong { margin-bottom: 3px; font-size: 10px; }.toast-copy span { color: var(--muted); font-size: 9px; line-height: 1.55; }.toast-close { border: 0; background: none; color: var(--muted); cursor: pointer; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .4; transform: scale(.82); } }
@keyframes loading { 0% { width: 0; transform: translateX(0); } 55% { width: 72%; } 100% { width: 18%; transform: translateX(-560%); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 760px) {
  .app-shell { grid-template-rows: auto minmax(0, 1fr) 24px; }
  .top-strip { height: 45px; grid-template-columns: minmax(0, 1fr) auto; padding: 5px 7px 0; }
  .brand { display: none; }.window-status { grid-column: 2; grid-row: 1; }.tabs-region { grid-column: 1; grid-row: 1; }
  .connection-pill { width: 31px; height: 31px; justify-content: center; padding: 0; }.connection-pill #connectionText { display: none; }
  .browser-tab { width: 160px; min-width: 112px; }.browser-tab:not([aria-selected="true"]) { flex-basis: 135px; }
  .toolbar { min-height: 55px; grid-template-columns: auto minmax(0,1fr) auto; gap: 5px; padding: 7px; }
  .nav-actions .icon-button:nth-child(2) { display: none; }.icon-button { width: 32px; height: 32px; }.nav-actions { gap: 0; }
  .address-form { height: 39px; padding-left: 8px; }.go-button { display: none; }.address-security { width: 17px; flex-basis: 17px; }
  .proxy-button { min-width: 39px; width: 39px; height: 39px; justify-content: center; padding: 0; }.proxy-button-copy, .proxy-state-dot { display: none; }
  .dashboard-content { padding-top: 34px; }.hero-mark { width: 62px; height: 62px; border-radius: 19px; }.hero-mark svg { width: 42px; }.dashboard h1 { font-size: 27px; }.hero-subtitle { font-size: 12px; margin-top: 9px; }.dashboard-search { height: 50px; }.trust-row { gap: 8px 12px; }.trust-row span { font-size: 9px; }
  .statusbar { padding: 0 8px; }.statusbar .privacy { display: none; }
  .dialog { padding: 0; }.dialog[open] { display: block; }.dialog-card { width: 100%; min-height: 100dvh; max-height: none; border: 0; border-radius: 0; }.dialog-card.compact { min-height: 100dvh; display: flex; justify-content: center; padding: 27px 20px; }
  .dialog-header { padding: 18px; }.proxy-layout { grid-template-columns: 1fr; overflow-y: auto; }.profiles-column { min-height: 245px; border-left: 0; border-bottom: 1px solid var(--line); }.profiles-list { max-height: 190px; }.proxy-form { min-height: auto; overflow: visible; padding: 20px 17px; }.form-placeholder { min-height: 180px; }.dialog-footer { position: sticky; bottom: 0; padding: 12px 15px; }.current-route { max-width: 40%; }.dialog-footer .form-actions { flex: 1; }.dialog-footer button { flex: 1; padding: 0 10px; }
  .field-grid.two { grid-template-columns: 1fr; }.field-grid.host-port { grid-template-columns: minmax(0,1fr) 94px; }
}

@media (max-width: 440px) {
  .browser-tab { width: 130px; }.tab-favicon { display: none; }.toolbar { grid-template-columns: auto minmax(0,1fr) auto; }.nav-actions .icon-button:first-child { display: none; }
  .dashboard-search { padding-left: 12px; }.dashboard-search button { min-width: 59px; }.trust-row span:nth-child(2) { display: none; }.dashboard-footer { bottom: 12px; }
  .dialog-footer { gap: 8px; }.current-route { display: none; }.field-grid.host-port { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
