/* Vortex Lab. Native grouped controls, continuous corners and optical glass. */
:root {
  color-scheme: light;
  --ink: #17191d;
  --secondary: #656b73;
  --tertiary: #858b91;
  --separator: rgba(42,48,55,.11);
  --tint: #007aff;
  --tint-soft: rgba(0,122,255,.09);
  --surface: rgba(255,255,255,.77);
  --field: rgba(255,255,255,.24);
  --glass: rgba(255,255,255,.32);
  --glass-line: rgba(255,255,255,.7);
  --window: rgba(233,240,242,.62);
  --content: rgba(247,249,250,.64);
  --shadow: 0 32px 100px rgba(12,38,43,.19), 0 2px 8px rgba(0,0,0,.06);
  --radius: 20px;
  --light-x: 20%;
  --light-y: 0%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f3f5;
  --secondary: #b0b5bc;
  --tertiary: #8e959d;
  --separator: rgba(255,255,255,.11);
  --tint: #69a9ff;
  --tint-soft: rgba(70,148,255,.16);
  --surface: rgba(47,52,59,.79);
  --field: rgba(255,255,255,.04);
  --glass: rgba(177,196,203,.13);
  --glass-line: rgba(255,255,255,.22);
  --window: rgba(30,40,47,.64);
  --content: rgba(25,31,39,.68);
  --shadow: 0 40px 110px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.1);
}
* { box-sizing: border-box; }
html { min-width: 320px; height: 100%; overflow: hidden; }
body { display: flow-root; margin: 0; color: var(--ink); height: 100dvh; font-size: 15px; line-height: 1.45; overflow: hidden; }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; color: var(--ink); cursor: pointer; background: transparent; min-height: 44px; padding: 10px 17px; border-radius: 14px; font-weight: 500; }
button:disabled { opacity: .36; cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; }
input { min-width: 0; border: 0; border-radius: 7px; outline: none; background: var(--field); width: 100%; padding: 10px 12px; color: var(--ink); height: 43px; font-weight: 400; }
input::placeholder { color: var(--tertiary); opacity: 1; }
input:focus-visible { box-shadow: 0 0 0 2px var(--tint-soft); }
input[aria-invalid="true"] { box-shadow: inset 0 -1px #ff3b30; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,p { margin: 0; }
h1 { font-size: 31px; letter-spacing: -1.15px; font-weight: 680; line-height: 1.25; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.25px; }
label { font-weight: 400; }
::selection { color: #fff; background: #007aff; }
[hidden] { display: none !important; }
.icon { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); padding: 0; overflow: hidden; white-space: nowrap; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 100; background: var(--surface); padding: 14px; border-radius: 12px; }
.skip-link:focus { top: 15px; }
.wallpaper { position: fixed; inset: -2%; z-index: -2; background: #99b2b8 url("wallpaper.svg") center / cover no-repeat; }
.wallpaper-grain { position: absolute; inset: 0; opacity: .1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.5' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .wallpaper { filter: brightness(.38) saturate(.73); }
.app-shell { position: relative; isolation: isolate; display: grid; grid-template-columns: 226px minmax(0,1fr); width: min(1160px, calc(100% - 100px)); height: min(830px, calc(100dvh - 96px)); min-height: 0; margin: max(48px, calc((100dvh - 830px)/2)) auto 0; border-radius: 28px; background: var(--window); border: 1px solid var(--glass-line); backdrop-filter: blur(34px) saturate(1.25); -webkit-backdrop-filter: blur(34px) saturate(1.25); box-shadow: var(--shadow), inset 0 1px 1px rgba(255,255,255,.5); overflow: hidden; }
@supports (corner-shape: squircle) { .app-shell,.grouped-list,.box,.log-panel { corner-shape: squircle; } }
.sidebar { position: relative; display: flex; flex-direction: column; padding: 26px 14px 20px; border-right: 1px solid var(--separator); background: linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.03)); min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(90,103,114,.2) transparent; }
.sidebar > .brand,.sidebar > .main-nav,.sidebar > .sidebar-footer { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 12px; margin-bottom: 36px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: var(--ink); background: rgba(255,255,255,.33); border: 1px solid var(--glass-line); box-shadow: 0 2px 5px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.6); }
.brand-mark .icon { width: 23px; height: 23px; }
.brand strong { font-size: 22px; font-weight: 650; letter-spacing: -.7px; }
.brand strong span { font-weight: 400; color: var(--secondary); }
.main-nav { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 4px; }
.nav-item { position: relative; z-index: 2; min-height: 47px; display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 15px; color: var(--secondary); font-size: 14px; font-weight: 480; }
.nav-item .icon { width: 19px; height: 19px; }
.nav-item.active { color: var(--ink); font-weight: 600; }
.nav-item:hover { color: var(--ink); }
.nav-lens,.mode-lens,.auth-mode-lens { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; border-radius: 15px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 1px rgba(255,255,255,.78), inset 0 -1px 2px rgba(255,255,255,.32), 0 3px 12px rgba(26,46,54,.08); backdrop-filter: var(--glass-filter, blur(12px) saturate(1.6)); -webkit-backdrop-filter: blur(12px) saturate(1.6); opacity: 0; transform-origin: center; }
.nav-lens.lens-ready,.mode-lens.lens-ready,.auth-mode-lens.lens-ready { opacity: 1; }
.nav-lens::after,.mode-lens::after,.auth-mode-lens::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at var(--light-x) var(--light-y),rgba(255,255,255,.42),transparent 58%); box-shadow: inset 1px 1px 1px rgba(255,255,255,.6), inset -1px -1px 1px rgba(255,255,255,.18); }
.sidebar-footer { margin-top: auto; padding: 0 12px; }
.task-counters { display: flex; gap: 14px; padding: 15px 0 25px; }
.task-counters > div { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 10px; color: var(--secondary); }
.task-counters strong { font-size: 19px; font-weight: 530; color: var(--ink); font-variant-numeric: tabular-nums; }
.server-state { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--secondary); }
.status-dot { display: block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #32a66b; }
.server-state[data-state="offline"] .status-dot,.connection-pill:has([data-state="offline"]) .status-dot { background: #ff453a; }
.build-label { display: flex; justify-content: space-between; gap: 5px; font-size: 9px; color: var(--tertiary); margin-top: 14px; }
.main-shell { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--content); overflow: hidden; }
.glass-toolbar { position: relative; isolation: isolate; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; min-height: 107px; padding: 27px 37px 20px; gap: 16px; }
.glass-toolbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg,rgba(255,255,255,.18),rgba(255,255,255,0)); }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.connection-pill { display: flex; align-items: center; gap: 6px; color: var(--secondary); font-size: 11px; margin-right: 8px; }
.icon-button { width: 44px; min-height: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 1px rgba(255,255,255,.6), 0 1px 4px rgba(0,0,0,.045); }
.icon-button .icon { width: 19px; height: 19px; }
.icon-button > .icon { transform-box: view-box; transform-origin: 50% 50%; }
.icon-button:hover { background: rgba(255,255,255,.5); }
:root[data-theme="dark"] .icon-button:hover { background: rgba(255,255,255,.14); }
.mobile-brand { display: none; }
.view-stage { position: relative; width: 100%; min-width: 0; min-height: 0; flex: 1; overflow: auto; contain: layout paint; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(90,103,114,.2) transparent; padding: 0 37px 32px; }
@media (min-width:621px) {
  /* Filter the static wallpaper on its own layer, outside scrolling content. */
  .app-shell { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .app-shell::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; corner-shape: inherit; background: var(--window); backdrop-filter: blur(34px) saturate(1.25); -webkit-backdrop-filter: blur(34px) saturate(1.25); }
  .view-stage { scrollbar-gutter: stable; transform: translateZ(0); }
}
.app-view { min-width: 0; width: 100%; padding-top: 4px; }
.tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); position: relative; gap: 3px; padding: 4px; border-radius: 18px; border: 1px solid var(--separator); background: rgba(118,130,140,.075); margin-bottom: 21px; }
.tabs button { position: relative; z-index: 2; min-height: 51px; font-size: 13px; border-radius: 14px; gap: 7px; padding: 11px 5px; color: var(--secondary); }
.tabs button .icon { width: 17px; height: 17px; }
.tabs button.active { color: var(--ink); font-weight: 600; }
.mode-lens { border-radius: 14px; background: rgba(255,255,255,.66); box-shadow: 0 3px 7px rgba(35,47,54,.06),inset 0 1px 1px rgba(255,255,255,.85),inset 0 -1px 1px rgba(255,255,255,.45); }
:root[data-theme="dark"] .mode-lens { background: rgba(209,222,235,.13); box-shadow: 0 2px 8px rgba(0,0,0,.15),inset 0 1px 1px rgba(255,255,255,.3); }
.tab-description { min-height: 22px; font-size: 14px; color: var(--secondary); margin: 0 4px 29px; }
.section-label { margin: 0 17px 9px; color: var(--secondary); font-size: 11px; font-weight: 450; letter-spacing: .65px; }
.grouped-list { background: var(--surface); border: 1px solid rgba(255,255,255,.32); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(28,40,49,.025); overflow: hidden; }
:root[data-theme="dark"] .grouped-list { border-color: rgba(255,255,255,.045); }
.field-row { display: flex; align-items: center; gap: 12px; padding: 12px 17px; min-height: 65px; position: relative; }
.field-row + .field-row::before { content: ""; position: absolute; top: 0; left: 17px; right: 0; border-top: 1px solid var(--separator); }
.field-row label { width: 100px; flex: 0 0 auto; font-size: 14px; white-space: nowrap; }
.field-row input { flex: 1; padding: 9px 0; background: none; text-align: left; font-size: 14px; height: 40px; }
.mini-button { color: var(--tint); background: var(--tint-soft); min-height: 32px; height: 32px; padding: 5px 11px; font-size: 12px; border-radius: 10px; flex: 0 0 auto; }
.mini-button:hover { background: rgba(0,122,255,.15); }
.field-note { color: var(--secondary); font-size: 12px; margin: 9px 17px 0; line-height: 1.6; }
.advanced-options { margin-top: 23px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.advanced-options summary,.guide summary { display: flex; gap: 10px; align-items: center; min-height: 59px; padding: 14px 17px; font-size: 14px; }
.advanced-options summary > .icon { width: 19px; height: 19px; color: var(--secondary); }
.optional-label { color: var(--tertiary); font-size: 12px; margin-left: auto; }
.detail-chevron { color: var(--tertiary); margin-left: auto; display: inline-flex; }
.detail-chevron .icon { width: 15px; height: 15px; stroke-width: 2; }
.advanced-options .detail-chevron { margin-left: 1px; }
details[open] > summary .detail-chevron { transform: rotate(90deg); }
.advanced-body { border-top: 1px solid var(--separator); padding: 13px 17px 16px; }
.advanced-body input { background: var(--field); border-bottom: 1px solid var(--separator); border-radius: 0; padding-left: 0; font-size: 14px; }
.advanced-body .field-note { margin: 8px 0 0; }
.composer-actions { display: flex; gap: 11px; margin-top: 32px; }
.primary { background: #007aff; color: #fff; font-size: 15px; font-weight: 560; min-height: 47px; border-radius: 15px; box-shadow: 0 2px 4px rgba(0,80,200,.12),inset 0 1px 1px rgba(255,255,255,.2); }
.primary:hover:not(:disabled) { background: #006ee6; }
.composer-actions .primary { flex: 1; }
.composer-actions .primary .icon { width: 17px; height: 17px; }
.ghost { background: rgba(118,130,140,.1); color: var(--secondary); font-size: 14px; padding: 10px 22px; }
.ghost:hover:not(:disabled) { background: rgba(118,130,140,.16); }
.full-width { width: 100%; }
.connection-reminder { display: flex; align-items: center; gap: 8px; padding: 17px 2px 0; color: var(--secondary); font-size: 12px; margin-top: 20px; border-top: 1px solid var(--separator); }
.connection-reminder > .icon { width: 15px; height: 15px; }
.connection-reminder a { display: flex; gap: 2px; align-items: center; color: var(--tint); margin-left: auto; }
.connection-reminder a .icon { width: 12px; height: 12px; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 24px; font-size: 11px; color: var(--tertiary); }
.privacy-note .icon { width: 12px; height: 12px; }
.hint { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.hint:not(:empty) { margin: 12px 2px 0; padding: 10px 13px; background: rgba(118,130,140,.06); border-radius: 12px; }
.hint.ok { color: #168650; }
.hint.err { color: #d73531; background: rgba(255,59,48,.065); }
:root[data-theme="dark"] .hint.ok { color: #75dba5; }
:root[data-theme="dark"] .hint.err { color: #ff887e; }
.view-subheader { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.activity-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inline-actions { display: flex; gap: 6px; }
.inline-actions .icon-button { width: 34px; height: 34px; min-height: 34px; }
.job-pill { display: flex; align-items: center; gap: 8px; color: var(--secondary); font-size: 11px; }
.log-panel { background: rgba(255,255,255,.54); border: 1px solid var(--separator); border-radius: 19px; min-height: 255px; max-height: 360px; overflow: auto; padding: 10px 15px; scrollbar-width: thin; }
:root[data-theme="dark"] .log-panel { background: rgba(0,0,0,.2); }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px 18px; min-height: 215px; text-align: center; }
.empty-icon { color: var(--tertiary); display: grid; place-items: center; margin-bottom: 15px; }
.empty-icon .icon { width: 35px; height: 35px; stroke-width: 1.25; }
.empty-title { font-size: 15px; font-weight: 530; color: var(--secondary); }
.empty-copy { font-size: 13px; color: var(--tertiary); line-height: 1.6; margin-top: 6px; max-width: 340px; }
.ln { font-family: "SFMono-Regular",Consolas,monospace; font-size: 11px; display: flex; flex-wrap: wrap; gap: 8px; line-height: 1.8; padding: 6px 1px; border-bottom: 1px solid var(--separator); overflow-wrap: anywhere; }
.log-time { color: var(--tertiary); font-size: 10px; }
.tag { min-width: 55px; font-weight: 550; }
.log-message { flex: 1; min-width: 100px; }
.t-g { color: #218453; }.t-r { color: #d53e37; }.t-y { color: #a57b22; }.t-b,.t-c { color: var(--tint); }
.jobs-head { display: flex; gap: 8px; align-items: center; margin: 26px 0 11px; }
.text-button { min-height: 32px; color: var(--tint); font-size: 12px; padding: 5px 0; border-radius: 5px; }
.jobs-head .text-button { margin-left: auto; font-size: 11px; }
.count-badge { display: grid; place-items: center; min-width: 21px; height: 21px; border-radius: 6px; color: var(--secondary); background: rgba(118,130,140,.09); padding: 1px 5px; font-size: 11px; }
.jobs .empty-state { min-height: 155px; }
.jobs .empty-icon { display: none; }
.jobrow { display: flex; align-items: center; gap: 11px; padding: 14px 17px; border-bottom: 1px solid var(--separator); }
.jobrow:last-child { border-bottom: 0; }
.jobrow.selected { background: var(--tint-soft); }
.job-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jemail { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-kind { font-size: 11px; color: var(--secondary); }
.job-id { font-size: 10px; color: var(--tertiary); }
.job-view { min-height: 30px; height: 30px; padding: 5px 9px; font-size: 11px; border-radius: 9px; }
.status-pill { display: inline-flex; color: var(--secondary); padding: 3px 7px; border-radius: 7px; background: rgba(118,130,140,.08); font-size: 10px; white-space: nowrap; }
.st-running,.st-queued { background: var(--tint-soft); color: var(--tint); }
.st-done { background: rgba(48,174,110,.11); color: #218853; }
.st-error,.st-cancelled { background: rgba(255,59,48,.09); color: #d3403b; }
.st-waiting-otp,.st-waiting-vcc { background: rgba(180,135,30,.1); color: #9b751e; }
:root[data-theme="dark"] .st-done { color: #83d3a9; }:root[data-theme="dark"] .st-error,:root[data-theme="dark"] .st-cancelled { color: #ff928b; }:root[data-theme="dark"] .st-waiting-otp,:root[data-theme="dark"] .st-waiting-vcc { color: #e9c46e; }
.history-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.search-wrap { flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: var(--secondary); background: rgba(118,130,140,.08); border-radius: 12px; }
.search-wrap .icon { width: 18px; height: 18px; }
.search-wrap input { background: none; font-size: 14px; padding: 10px 0; }
.history-toolbar .icon-button { flex: 0 0 auto; }
#historyBox { overflow: auto; }
.history-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.history-table th { font-size: 11px; font-weight: 500; color: var(--secondary); padding: 14px 16px; background: rgba(118,130,140,.035); }
.history-table td { padding: 15px 16px; border-top: 1px solid var(--separator); }
.history-table td:first-child { color: var(--secondary); font-size: 11px; white-space: nowrap; }
.history-table td:nth-child(2) { overflow-wrap: normal; }
.history-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 16px; font-variant-numeric: tabular-nums; }
.history-range { min-width: 0; color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }
.history-page-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; margin-left: auto; padding: 2px; border: 1px solid var(--separator); border-radius: 16px; background: rgba(118,130,140,.06); }
.history-pagination .icon-button { flex: 0 0 auto; border: 0; border-radius: 12px; background: transparent; box-shadow: none; }
.history-pagination .icon-button:hover:not(:disabled) { background: var(--tint-soft); color: var(--tint); }
.history-page-status { min-width: 70px; max-width: 150px; padding: 0 4px; color: var(--ink); text-align: center; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
#btnHistoryPrev .icon { transform: rotate(180deg); }
.history-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 15px; font-size: 11px; color: var(--secondary); margin: 18px 2px 0; overflow-wrap: anywhere; }
.history-footer [role="status"]:empty { display: none; }
.history-footer [role="status"].ok { color: #168650; }
.history-footer [role="status"].err { color: #d73531; }
:root[data-theme="dark"] .history-footer [role="status"].ok { color: #75dba5; }
:root[data-theme="dark"] .history-footer [role="status"].err { color: #ff887e; }
.history-footer .icon { width: 14px; height: 14px; }
.danger { color: #e23e37; }
.proxy-list .field-row label { width: 68px; }
.connection-detail-row { display: flex; align-items: center; gap: 11px; padding: 10px 17px 13px; }
.connection-detail-row .mini-button { margin-left: auto; }
.connection-detail-row .icon-button { background: none; border: 0; box-shadow: none; width: 30px; height: 32px; min-height: 32px; padding: 6px; color: var(--secondary); }
.subtle-badge { font-size: 12px; color: var(--secondary); }
.setting-row { display: flex; align-items: center; width: 100%; gap: 12px; padding: 16px 17px; font-weight: 400; border-radius: 20px; justify-content: flex-start; margin-top: 25px; }
.setting-row > .icon,.guide summary > .icon { color: var(--tint); width: 21px; height: 21px; }
.guide { margin-top: 20px; }
.guide ol { margin: 0; padding: 0 25px 20px 43px; color: var(--secondary); font-size: 13px; line-height: 1.75; }
.guide li { padding: 7px 0; }
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 25px; background: rgba(24,35,44,.24); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.modal.show { display: flex; }
body.modal-open { overflow: hidden; }
.box { width: min(100%,405px); max-height: calc(100dvh - 50px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(90,103,114,.25) transparent; padding: 28px; border-radius: 29px; background: rgba(246,249,250,.86); border: 1px solid rgba(255,255,255,.75); box-shadow: 0 25px 70px rgba(10,25,40,.2),inset 0 1px 1px rgba(255,255,255,.8); backdrop-filter: blur(30px) saturate(1.3); -webkit-backdrop-filter: blur(30px) saturate(1.3); }
:root[data-theme="dark"] .box { background: rgba(38,45,55,.88); border-color: rgba(255,255,255,.17); }
.settings-box,.purge-box { background: rgba(246,249,250,.97); }
:root[data-theme="dark"] .settings-box,:root[data-theme="dark"] .purge-box { background: rgba(38,45,55,.97); }
.modal-symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--ink); background: rgba(118,130,140,.1); margin-bottom: 17px; }
.modal-symbol .icon { width: 24px; height: 24px; }
.box h2 { font-size: 23px; font-weight: 650; letter-spacing: -.6px; }
.modal-description { font-size: 14px; color: var(--secondary); line-height: 1.65; margin: 9px 0 24px; }
.box > label { font-size: 13px; display: block; margin-bottom: 9px; }
.box > input { background: var(--surface); border: 1px solid var(--separator); border-radius: 12px; }
.otp-input { height: 60px; font-size: 26px; letter-spacing: 11px; padding-left: 24px; text-align: center; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal-actions > button { flex: 1; }
.modal-actions button { font-size: 14px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.modal-header .icon-button { width: 44px; height: 44px; min-height: 44px; background: rgba(118,130,140,.12); box-shadow: none; border: 0; padding: 13px; color: var(--secondary); }
.modal-header .icon-button .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.settings-group { margin-bottom: 25px; }
.settings-group label,.settings-group .settings-label { display: block; font-size: 13px; margin-bottom: 9px; }
.settings-data-group { margin: 0 0 24px; padding-top: 19px; border-top: 1px solid var(--separator); }
.settings-data-group .settings-label { display: block; margin-bottom: 7px; font-size: 13px; }
.settings-data-note { color: var(--secondary); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.settings-data-action { justify-content: flex-start; width: 100%; min-height: 48px; gap: 10px; margin-top: 13px; padding: 11px 13px; border: 1px solid rgba(255,59,48,.1); border-radius: 13px; background: rgba(255,59,48,.065); font-size: 13px; text-align: left; }
.settings-data-action > .icon { width: 18px; height: 18px; }
.settings-data-action:hover:not(:disabled) { background: rgba(255,59,48,.11); }
#settingsDataMsg:empty,#purgeMsg:empty { margin: 0; padding: 0; }
.purge-box .modal-description { margin-bottom: 12px; }
.purge-box .modal-symbol.danger { color: #e23e37; background: rgba(255,59,48,.08); }
.purge-box .primary.danger,.purge-box .primary.danger-action { color: #fff; background: #df3830; box-shadow: 0 2px 4px rgba(140,20,20,.12),inset 0 1px 1px rgba(255,255,255,.2); }
.purge-box .primary.danger:hover:not(:disabled),.purge-box .primary.danger-action:hover:not(:disabled) { background: #cc3029; }
:root[data-theme="dark"] .settings-data-action { color: #ff928b; }
.seg { display: flex; padding: 3px; border-radius: 10px; background: rgba(118,130,140,.1); }
.seg button { flex: 1; min-height: 44px; height: 44px; font-size: 13px; padding: 6px 10px; border-radius: 8px; color: var(--secondary); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.box .fxrow { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.fxrow strong { font-size: 14px; font-weight: 450; }.fxrow small { display: block; color: var(--secondary); font-size: 11px; margin-top: 5px; line-height: 1.5; max-width: 220px; }
.sw { width: 48px; height: 29px; position: relative; display: block; flex: 0 0 auto; }
.sw input { appearance: none; width: 48px; height: 29px; margin: 0; padding: 0; background: rgba(118,130,140,.26); border-radius: 20px; cursor: pointer; }
.sw input:checked { background: #34c759; }
.sw i { width: 25px; height: 25px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.12); position: absolute; top: 2px; left: 2px; pointer-events: none; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.sw input:checked + i { transform: translateX(19px); }
.sheet-handle { display: none; }
.toast-container { position: fixed; left: 50%; transform: translateX(-50%); bottom: 25px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(90%,420px); }
.toast { background: rgba(32,42,51,.9); color: #fff; font-size: 13px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 12px 18px; backdrop-filter: blur(20px); box-shadow: 0 10px 35px rgba(0,0,0,.12); text-align: center; }
.toast-error { background: rgba(149,36,33,.92); }
button[aria-busy="true"]::after { content: ""; border: 2px solid currentColor; border-right-color: transparent; width: 12px; height: 12px; border-radius: 50%; animation: spinner .7s linear infinite; }
.icon-button[aria-busy="true"] { position: relative; }
.icon-button[aria-busy="true"] > .icon { visibility: hidden; }
.icon-button[aria-busy="true"]::after { position: absolute; top: 50%; left: 50%; margin: -9px 0 0 -9px; width: 18px; height: 18px; }
#btnReloadHist[aria-busy="true"]::after { content: none; }
#btnReloadHist[aria-busy="true"] > .icon { visibility: visible; animation: spinner .8s linear infinite; }
@keyframes spinner { to { transform: rotate(360deg); } }
@media (max-width:1100px) {
  .app-shell { width: calc(100% - 56px); grid-template-columns: 196px minmax(0,1fr); }
  .glass-toolbar { padding-left: 27px; padding-right: 27px; }
  .view-stage { padding-left: 27px; padding-right: 27px; }
  .connection-pill { display: none; }
  .field-row { gap: 9px; }.field-row label { width: 95px; font-size: 13px; }
}
@media (max-width:820px) {
  .app-shell { width: calc(100% - 36px); grid-template-columns: 167px minmax(0,1fr); margin: 26px auto 0; height: calc(100dvh - 52px); }
  .sidebar { padding-left: 9px; padding-right: 9px; }
  .brand { padding: 2px 8px; gap: 8px; }.brand strong { font-size: 19px; }.brand-mark { width: 30px; height: 30px; }
  .nav-item { font-size: 13px; padding: 11px 10px; }
  .sidebar-footer { padding: 0 8px; }.task-counters { gap: 7px; }.task-counters > div { font-size: 9px; }
  .build-label { flex-direction: column; }
  .glass-toolbar { padding: 24px 24px 20px; min-height: 95px; }.view-stage { padding: 0 24px 25px; }
  .tabs button { gap: 5px; font-size: 12px; padding: 8px 3px; }.tabs button .icon { width: 15px; height: 15px; }
  .field-row { flex-wrap: wrap; gap: 4px 8px; padding: 11px 15px; }
  .field-row label { flex: 1; width: auto; }.field-row input { flex-basis: 100%; order: 3; text-align: left; font-size: 14px; height: 36px; }
  .mini-button { font-size: 11px; min-height: 28px; height: 28px; }
  .job-id { display: none; }
  .history-table td,.history-table th { padding-left: 10px; padding-right: 10px; }
}
@media (max-width:620px) {
  body { overflow: auto; }
  .wallpaper { background-position: 58% center; }
  .app-shell { display: block; width: 100%; margin: 0; height: 100dvh; border-radius: 0; border: 0; box-shadow: none; background: rgba(227,238,241,.54); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow: visible; }
  .sidebar { padding: 0; background: none; border: 0; overflow: visible; }
  .brand,.sidebar-footer { display: none; }
  .main-nav { position: fixed; z-index: 45; left: 19px; right: 19px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 5px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; border-radius: 29px; border: 1px solid var(--glass-line); background: rgba(242,247,249,.36); box-shadow: inset 0 1px 2px rgba(255,255,255,.78),inset 0 -1px 2px rgba(255,255,255,.3), 0 8px 28px rgba(23,48,63,.15); backdrop-filter: var(--glass-filter,blur(22px) saturate(1.4)); -webkit-backdrop-filter: blur(22px) saturate(1.4); }
  :root[data-theme="dark"] .main-nav { background: rgba(75,90,104,.3); }
  .nav-item { display: flex; flex-direction: column; gap: 4px; min-height: 56px; padding: 8px 2px; border-radius: 23px; font-size: 10px; font-weight: 500; }
  .nav-item .icon { width: 21px; height: 21px; stroke-width: 1.9; }
  .nav-lens { border-radius: 23px; background: rgba(255,255,255,.34); }
  .main-shell { height: 100%; background: rgba(246,249,250,.43); overflow: hidden; }
  :root[data-theme="dark"] .main-shell { background: rgba(25,31,39,.55); }
  .glass-toolbar { padding: max(21px,env(safe-area-inset-top)) 23px 19px; min-height: 116px; align-items: flex-end; }
  .toolbar-title { min-width: 0; flex: 1; }
  .toolbar-title h1 { font-size: 34px; letter-spacing: -1.2px; margin-top: 3px; }
  .mobile-brand { display: block; font-size: 12px; font-weight: 520; color: var(--secondary); }
  .toolbar-actions { flex-shrink: 0; gap: 0; padding: 3px; border: 1px solid var(--glass-line); border-radius: 28px; background: var(--glass); box-shadow: inset 0 1px 1px rgba(255,255,255,.65),0 3px 14px rgba(23,48,63,.06); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
  .toolbar-actions .icon-button { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; border: 0; background: transparent; box-shadow: none; }
  .toolbar-actions .icon-button:hover { background: var(--tint-soft); }
  .view-stage { padding: 0 20px calc(113px + env(safe-area-inset-bottom)); }
  .app-view { padding-top: 2px; }
  .tabs { margin-bottom: 19px; border-radius: 18px; }
  .tabs button { flex-direction: column; gap: 5px; min-height: 63px; font-size: 11px; padding: 8px 3px; }
  .tabs button .icon { width: 20px; height: 20px; }
  .mode-lens { border-radius: 14px; }
  .tab-description { font-size: 13px; margin-bottom: 25px; min-height: 38px; line-height: 1.6; }
  .section-label { font-size: 10px; margin-left: 15px; }
  .grouped-list { border-radius: 21px; }
  .field-row { min-height: 75px; padding: 12px 16px; gap: 5px; }
  .field-row label { font-size: 14px; }
  .field-row input { font-size: 16px; padding: 7px 0; height: 35px; }
  .mini-button { min-height: 44px; height: 44px; font-size: 12px; padding: 5px 10px; }
  .inline-actions .icon-button,.connection-detail-row .icon-button { width: 44px; height: 44px; min-height: 44px; padding: 12px; }
  .job-view { min-height: 44px; height: 44px; }
  .text-button { min-height: 44px; }
  .field-note { font-size: 11px; margin-left: 15px; margin-right: 15px; }
  .advanced-options { margin-top: 22px; }
  .advanced-options summary { min-height: 59px; font-size: 14px; }
  .advanced-body input { font-size: 16px; }
  .composer-actions { margin-top: 26px; gap: 10px; }.composer-actions .primary { min-height: 49px; font-size: 15px; }
  .composer-actions .ghost { min-height: 49px; padding-left: 18px; padding-right: 18px; }
  .connection-reminder { font-size: 11px; margin-top: 24px; padding-top: 16px; }
  .connection-reminder a { min-height: 44px; }
  .privacy-note { font-size: 10px; margin-top: 19px; }
  .history-toolbar { margin-bottom: 18px; }
  .history-pagination { gap: 8px; margin-top: 14px; }
  .history-page-controls { gap: 2px; padding: 1px; }
  .history-range { font-size: 11px; }
  .history-page-status { min-width: 66px; font-size: 11px; }
  .search-wrap input { font-size: 16px; }
  .history-footer { align-items: flex-start; flex-direction: column; gap: 8px; font-size: 11px; }
  .history-table { font-size: 12px; }
  .history-table td:first-child { font-size: 10px; }
  .view-subheader { gap: 8px; }.activity-summary { gap: 7px; }
  .log-panel { min-height: 225px; padding: 8px 11px; }
  .jobrow { padding: 13px 12px; gap: 8px; }.jemail { font-size: 12px; }
  .jobs-head h2 { font-size: 14px; }.jobs-head .text-button { font-size: 10px; }
  .proxy-list .field-row label { width: auto; }.proxy-list input { font-size: 16px; }
  .setting-row { font-size: 15px; min-height: 60px; }
  .modal { padding: 0 10px max(10px,env(safe-area-inset-bottom)); align-items: flex-end; }
  .box { width: 100%; max-width: 430px; padding: 25px 23px 25px; border-radius: 30px; box-shadow: 0 -5px 50px rgba(0,0,0,.09); max-height: calc(100dvh - 65px); overflow: auto; }
  .sheet-handle { display: block; width: 34px; height: 5px; border-radius: 4px; background: rgba(118,130,140,.3); margin: -11px auto 20px; }
  .modal-description { font-size: 13px; }
  .box > input { font-size: 16px; }
  .box > .otp-input { font-size: 28px; }
  .modal-header { margin-bottom: 22px; }
  .toast-container { bottom: calc(94px + env(safe-area-inset-bottom)); }
}
@media (max-width:360px) {
  .view-stage { padding-left: 16px; padding-right: 16px; }
  .glass-toolbar { padding-left: 20px; padding-right: 20px; }
  .main-nav { left: 14px; right: 14px; }
  .tabs button { font-size: 10px; }
  .connection-reminder p { max-width: 145px; }
  .jobs-head .count-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
html[data-motion="reduced"] *,html[data-motion="reduced"] *::before,html[data-motion="reduced"] *::after { transition: none !important; animation: none !important; }
@media(max-width:620px){:root[data-theme="dark"] .app-shell{background:var(--window)}}
.cancel-activity{color:#e23e37;background:rgba(255,59,48,.08)}

/* Workspace authentication. All account data stays behind this screen. */
.auth-screen { position: relative; display: grid; align-items: start; align-items: safe center; justify-items: center; width: 100%; height: 100dvh; padding: 32px 20px; overflow: auto; }
.auth-card { position: relative; isolation: isolate; width: min(438px,100%); min-height: min(580px,calc(100dvh - 64px)); padding: 29px 30px 20px; border: 1px solid var(--glass-line); border-radius: 30px; background: var(--window); backdrop-filter: blur(35px) saturate(1.35); -webkit-backdrop-filter: blur(35px) saturate(1.35); box-shadow: var(--shadow),inset 0 1px 1px rgba(255,255,255,.6); }
.auth-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; background: linear-gradient(135deg,rgba(255,255,255,.23),rgba(255,255,255,.035) 55%); box-shadow: inset 1px 1px 1px rgba(255,255,255,.35); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 31px; }
.auth-brand strong { font-size: 21px; font-weight: 650; letter-spacing: -.6px; }
.auth-brand strong span { font-weight: 400; color: var(--secondary); }
.auth-brand .icon-button { margin-left: auto; }
.auth-card h1 { font-size: 29px; letter-spacing: -.8px; }
.auth-description { font-size: 13px; color: var(--secondary); line-height: 1.55; margin-top: 10px; }
.auth-segment { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; padding: 3px; border: 1px solid var(--separator); border-radius: 16px; background: rgba(118,130,140,.09); margin: 25px 0 17px; }
.auth-segment button { position: relative; z-index: 2; border: 1px solid transparent; border-radius: 12px; min-height: 44px; font-size: 13px; color: var(--secondary); padding: 7px 5px; }
.auth-segment button.active { color: var(--ink); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 1px rgba(255,255,255,.7),0 2px 7px rgba(26,46,54,.09); }
.auth-mode-lens { border-radius: 12px; background: rgba(255,255,255,.58); }
:root[data-theme="dark"] .auth-mode-lens { background: rgba(209,222,235,.15); }
.auth-segment:has(.auth-mode-lens.lens-ready) button.active { background: transparent; border-color: transparent; box-shadow: none; }
.auth-fields { overflow: hidden; }
.auth-field { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px 9px; }
.auth-field + .auth-field { border-top: 1px solid var(--separator); }
.auth-field label { font-size: 12px; color: var(--secondary); }
.auth-field input { background: transparent; padding: 6px 0; height: 35px; border-radius: 4px; font-size: 15px; }
.auth-field input:focus-visible { box-shadow: inset 0 -2px var(--tint); }
.password-field { display: flex; align-items: center; gap: 8px; }
.password-field input { flex: 1; }
.password-toggle { position: relative; width: 44px; height: 44px; min-height: 44px; padding: 0; margin: -4px -6px -4px 0; border-radius: 50%; color: var(--secondary); flex-shrink: 0; }
.password-toggle:hover { background: var(--tint-soft); color: var(--tint); }
.password-toggle > span { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .18s ease,transform .26s cubic-bezier(.2,.8,.2,1); }
.password-toggle .icon { width: 21px; height: 21px; stroke-width: 1.7; }
.password-icon-eye { opacity: 1; transform: scale(1); }
.password-icon-hidden { opacity: 0; transform: scale(.78); }
.password-toggle[aria-pressed="true"] .password-icon-eye { opacity: 0; transform: scale(.78); }
.password-toggle[aria-pressed="true"] .password-icon-hidden { opacity: 1; transform: scale(1); }
.auth-message { min-height: 0; margin: 14px 0; font-size: 13px; }
.auth-message:empty { margin: 16px 0 0; }
.auth-card .primary { min-height: 48px; border-radius: 15px; margin-top: 2px; }
.auth-footnote { display: flex; align-items: flex-start; gap: 7px; color: var(--secondary); font-size: 11px; line-height: 1.5; margin: 22px 4px 0; }
.auth-footnote .icon { width: 13px; height: 13px; margin-top: 2px; }
.auth-language { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 17px; color: var(--tertiary); font-size: 12px; }
.auth-language button { min-height: 34px; padding: 4px 5px; font-size: 12px; color: var(--secondary); }
.auth-language button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.auth-card.is-loading { display: flex; flex-direction: column; }
.auth-card.is-loading .auth-brand { display: none; }
.auth-loading { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 17px; padding: 45px 0 58px; color: var(--secondary); }
.launch-mark { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 25px; color: var(--ink); background: linear-gradient(145deg,rgba(255,255,255,.75),rgba(255,255,255,.12)); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 2px rgba(255,255,255,.8),0 8px 26px rgba(24,46,55,.08); }
.launch-mark .icon { width: 42px; height: 42px; stroke-width: 1.5; }
.launch-name { color: var(--ink); font-size: 22px; font-weight: 650; letter-spacing: -.7px; }
.launch-name span { color: var(--secondary); font-weight: 400; }
:root[data-theme="dark"] .launch-mark { background: linear-gradient(145deg,rgba(210,226,235,.23),rgba(210,226,235,.03)); box-shadow: inset 0 1px 2px rgba(255,255,255,.3),0 8px 26px rgba(0,0,0,.12); }
.activity-indicator { position: relative; width: 32px; height: 32px; margin-top: 18px; }
.activity-indicator i { position: absolute; top: 50%; left: calc(50% - 1.5px); width: 3px; height: 7px; background: currentColor; border-radius: 2px; transform: rotate(calc(var(--spoke) * 30deg)) translateY(-15px); transform-origin: 50% 0; opacity: .22; animation: activity-spoke 1s linear infinite; animation-delay: calc(var(--spoke) * -.083333s); }
.activity-indicator i:nth-child(1) { --spoke: 0; }.activity-indicator i:nth-child(2) { --spoke: 1; }.activity-indicator i:nth-child(3) { --spoke: 2; }.activity-indicator i:nth-child(4) { --spoke: 3; }.activity-indicator i:nth-child(5) { --spoke: 4; }.activity-indicator i:nth-child(6) { --spoke: 5; }.activity-indicator i:nth-child(7) { --spoke: 6; }.activity-indicator i:nth-child(8) { --spoke: 7; }.activity-indicator i:nth-child(9) { --spoke: 8; }.activity-indicator i:nth-child(10) { --spoke: 9; }.activity-indicator i:nth-child(11) { --spoke: 10; }.activity-indicator i:nth-child(12) { --spoke: 11; }
@keyframes activity-spoke { 0% { opacity: 1; } 100% { opacity: .22; } }
@media (prefers-reduced-motion: reduce) { .activity-indicator i { opacity: calc(.25 + var(--spoke) * .05); } }
html[data-motion="reduced"] .activity-indicator i { opacity: calc(.25 + var(--spoke) * .05); }
.account-setting { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 2px 0 21px; }
.account-avatar { width: 35px; height: 35px; border-radius: 50%; background: var(--tint-soft); color: var(--tint); display: grid; place-items: center; flex-shrink: 0; }
.account-avatar .icon { width: 18px; height: 18px; }
.account-identity { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.account-identity strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.account-identity span { font-size: 13px; color: var(--secondary); overflow-wrap: anywhere; }
.account-scope { color: var(--secondary); font-size: 13px; line-height: 1.6; margin: -5px 3px 20px; }
.account-logout { margin-bottom: 13px; color: #e23e37; background: rgba(255,59,48,.07); }
.verification-close { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; min-height: 44px; }
.verification-box { position: relative; }
.account-setting .text-button { font-size: 12px; padding: 6px 0 6px 6px; flex-shrink: 0; }
@supports (corner-shape: squircle) { .auth-card { corner-shape: squircle; } }
@media(max-width:620px) { .auth-screen { padding: max(20px,env(safe-area-inset-top)) 18px max(20px,env(safe-area-inset-bottom)); align-items: safe center; }.auth-card { padding: 25px 24px 17px; border-radius: 28px; }.auth-brand { margin-bottom: 27px; }.auth-card h1 { font-size: 28px; }.auth-description { font-size: 12px; }.auth-field input { font-size: 16px; }.auth-language button { min-height: 44px; } }
@media(max-width:380px) { .glass-toolbar { padding-left: 16px; padding-right: 16px; gap: 8px; }.toolbar-title h1 { font-size: 26px; letter-spacing: -.8px; }.auth-card { padding-left: 20px; padding-right: 20px; } }
