:root {
  --ink: #20332e;
  --muted: #64716b;
  --accent: #205e4c;
  --accent-hover: #174a3b;
  --ground: #f5f6f3;
  --surface: #fff;
  --line: #e0e5df;
  --soft: #eaf2ec;
  --error: #a23730;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, input, textarea { transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, .screen-wrap:focus-visible { outline: 3px solid #66a58c; outline-offset: 3px; }
::selection { background: #c3ddcc; color: #173a2c; }
input, textarea { caret-color: var(--accent); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; font-weight: 650; line-height: 1.35; letter-spacing: -.025em; }
h2 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 14px; font-weight: 600; }
a { color: inherit; text-underline-offset: 4px; }
.muted, .field-hint, .optional { color: var(--muted); }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover:not(:disabled) { background: var(--accent-hover); }
.button.secondary { border-color: #dce3da; background: #fff; color: #415049; }
.button.secondary:hover:not(:disabled) { background: #f0f4ef; border-color: #b9c8be; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button.full { width: 100%; }
.button.compact { padding: 8px 12px; min-height: 36px; font-size: 12px; }
.button svg { width: 17px; height: 17px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--muted); padding: 5px 0; font-size: 12px; }
.text-button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.text-button.accent { color: var(--accent); font-weight: 600; }
.text-button svg { width: 15px; height: 15px; }
label { display: block; font-size: 12px; font-weight: 550; margin: 20px 0 7px; }
input:not([type=checkbox]), textarea { display: block; width: 100%; border: 1px solid #d9e0d8; border-radius: 6px; padding: 10px 11px; color: var(--ink); background: #fff; font-size: 13px; min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--muted); font-size: 12px; }
input:hover:not(:disabled), textarea:hover { border-color: #a5b8ab; }
input:disabled { background: #f2f4f1; }
textarea { resize: vertical; line-height: 1.6; overflow-wrap: anywhere; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; flex: 0 0 auto; }
.brand-mark svg { width: 22px; height: 22px; stroke-width: 1.6; }
.dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex: 0 0 auto; }
.dot.neutral { background: #8b978e; }
.topbar { min-height: 72px; padding: 0 40px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 13px; font-size: 13px; font-weight: 650; letter-spacing: .045em; }
.brand strong { font-size: 14px; font-weight: 550; letter-spacing: 0; }
.brand-divider { margin: 0 17px; color: #b3bdb3; font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: 20px; font-size: 12px; color: var(--muted); }
.topbar-divider { width: 1px; height: 16px; background: var(--line); }
.service-status { display: flex; align-items: center; gap: 7px; }
.service-status.offline { color: var(--error); }
.service-status.offline .dot { background: var(--error); }
.workspace { max-width: 1560px; margin: 0 auto; padding: 35px 40px 22px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.page-heading p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.plan-tag { font-size: 12px; color: #58645d; }
.plan-tag span { margin-left: 9px; background: #e8ede7; color: #51614f; font-size: 11px; padding: 3px 7px; border-radius: 4px; }
.workspace-grid { display: grid; grid-template-columns: 306px minmax(0, 1fr); gap: 24px; align-items: start; }
.setup-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.setup-tabs { display: flex; padding: 0 22px; gap: 26px; border-bottom: 1px solid var(--line); }
.setup-tabs button { padding: 17px 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 13px; color: var(--muted); font-weight: 550; position: relative; }
.setup-tabs button[aria-selected=true] { color: var(--accent); border-bottom-color: var(--accent); }
.tab-dot { display: inline-block; width: 5px; height: 5px; margin-left: 6px; background: #c3cbc3; border-radius: 50%; vertical-align: middle; }
.tab-dot.configured { background: var(--accent); }
[role=tabpanel] { padding: 24px 22px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title h2 { font-size: 15px; }
.email-input { position: relative; }
.email-input input { padding-right: 90px; }
.email-input>span { position: absolute; right: 11px; top: 11px; font-size: 12px; color: var(--muted); pointer-events: none; }
.password-input { display: flex; align-items: center; position: relative; }
.password-input input { padding-right: 48px; }
.password-input button { position: absolute; right: 11px; }
.field-hint { font-size: 11px; line-height: 1.7; margin-top: 8px; }
.options-group { margin: 24px 0; padding-top: 2px; }
.check-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 400; margin: 12px 0; cursor: pointer; }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
.proxy-summary { padding: 9px 10px; margin-top: 12px; border: 0; border-radius: 6px; background: #f3f5f1; color: #647364; display: flex; align-items: center; gap: 7px; width: 100%; font-size: 11px; text-align: left; }
.proxy-summary svg { width: 14px; height: 14px; }
.proxy-summary>span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.proxy-summary:hover { background: #e8eee7; }
#open-only { margin-top: 10px; }
.operation-note { margin-top: 16px; font-size: 11px; color: var(--muted); line-height: 1.85; }
.setup-footer { display: flex; align-items: center; gap: 7px; padding: 12px 22px; background: #fafbf8; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.credential-receipt { padding-top: 22px; margin-top: 22px; border-top: 1px dashed #c8d5c9; }
.credential-receipt>p.mono { margin: 9px 0 13px; font-size: 11px; overflow-wrap: anywhere; }
.credential-receipt>.text-button { display: flex; margin: 7px auto 0; }
.subtle-tag { font-size: 11px; padding: 2px 7px; background: #f0f3ed; border-radius: 4px; color: var(--muted); }
#provider-url { font-size: 11px; line-height: 1.7; }
#fetch-proxy { margin-top: 14px; }
.settings-divider { height: 1px; background: var(--line); margin: 26px 0 22px; }
.optional { font-size: 10px; font-weight: 400; margin-left: 4px; }
.clear-proxy { font-size: 11px; margin: 15px 0; }
.inline-feedback { color: var(--accent); margin-top: 10px; font-size: 12px; }
.inline-feedback.error { color: var(--error); }
.browser-panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.browser-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 19px; border-bottom: 1px solid var(--line); }
.browser-heading>div { display: flex; align-items: center; gap: 10px; }
.browser-heading h2 { font-size: 13px; }
.browser-heading>div>svg { width: 17px; color: #758275; }
.status-badge { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 4px; background: #f0f2ee; color: var(--muted); font-size: 10px; font-weight: 500; white-space: nowrap; }
.status-badge.awaiting_user, .status-badge.completed { color: #235b42; background: #e7f2e9; }
.status-badge.starting, .status-badge.stopping { color: #836220; background: #faf1db; }
.status-badge.failed { color: #a13a33; background: #faece9; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 5px; color: var(--muted); }
.icon-button:hover:not(:disabled) { background: #eef2eb; }
.icon-button svg { width: 16px; height: 16px; }
.remote-area { position: relative; background: #fafbf8; min-height: 450px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.remote-area:fullscreen { background: #eef0ec; }
.remote-area:fullscreen .screen-wrap { width: min(100vw, calc(100vh * 1.6)); }
.browser-empty { text-align: center; padding: 48px 20px 36px; }
.empty-window { width: 182px; height: 128px; margin: 0 auto 29px; border: 1px solid #d9e0d7; border-radius: 9px; background: #fff; overflow: hidden; }
.empty-window-top { display: flex; align-items: center; gap: 4px; height: 23px; padding: 0 9px; border-bottom: 1px solid #e9ede6; background: #f3f5f0; }
.empty-window-top span { width: 4px; height: 4px; background: #b9c4b8; border-radius: 50%; }
.empty-window-top i { width: 58px; height: 4px; background: #dde5d9; margin: 0 auto; border-radius: 4px; }
.empty-envelope { margin: 15px auto 8px; color: #508469; }
.empty-envelope svg { width: 39px; height: 33px; stroke-width: 1.2; }
.empty-line { width: 64px; height: 4px; background: #e4ebe0; border-radius: 3px; margin: 6px auto; }
.empty-line.short { width: 38px; }
.browser-empty h3 { font-size: 19px; letter-spacing: -.02em; font-weight: 600; }
.browser-empty>p { font-size: 12px; color: var(--muted); line-height: 1.9; margin-top: 12px; }
.session-steps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 19px; padding: 0; margin: 29px 0 0; color: var(--muted); }
.session-steps li { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.session-steps li>span { font-size: 9px; display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid #d2ddcc; border-radius: 50%; }
.browser-loading { text-align: center; padding: 80px 25px; }
.browser-loading p { color: var(--muted); font-size: 12px; margin-top: 9px; }
.loading-bar { width: 90px; height: 3px; margin: 0 auto 25px; background: #dce6d9; overflow: hidden; border-radius: 3px; }
.loading-bar::after { content: ""; display: block; width: 35%; height: 100%; background: var(--accent); animation: progress 1.5s ease-in-out infinite alternate; }
@keyframes progress { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.screen-wrap { width: 100%; cursor: crosshair; line-height: 0; background: #fff; }
.screen-wrap img { display: block; width: 100%; height: auto; user-select: none; }
.screen-error { position: absolute; left: 16px; right: 16px; bottom: 14px; padding: 9px 12px; background: #fff1dc; color: #856119; font-size: 12px; border-radius: 6px; }
.remote-controls { padding: 12px 16px; border-top: 1px solid var(--line); }
.remote-text-form { display: flex; gap: 8px; }
.remote-text-form input { font-size: 12px; }
.remote-text-form .button { min-height: 36px; padding: 8px 13px; }
.remote-keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.remote-keys button { padding: 3px 9px; border: 1px solid var(--line); background: #f8faf6; color: #5c6b58; border-radius: 4px; min-height: 28px; font-size: 11px; }
.remote-keys button:hover { background: #eaf0e7; }
.session-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; border-top: 1px solid var(--line); }
.session-footer>p { font-size: 11px; color: var(--muted); line-height: 1.7; flex: 1; }
.session-actions { display: flex; gap: 8px; }
.history-section { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.history-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; }
.history-heading>div { display: flex; align-items: center; gap: 9px; }
.history-heading svg { width: 17px; height: 17px; color: #7a8975; }
.history-heading h2 { font-size: 14px; }
.history-count { font-size: 11px; color: var(--muted); background: #f1f4ed; padding: 0 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; scrollbar-color: #bcc9b5 #f4f6ef; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { background: #fafbf8; color: var(--muted); font-weight: 450; font-size: 11px; padding: 10px 22px; border-top: 1px solid #edf0e9; border-bottom: 1px solid #edf0e9; white-space: nowrap; }
td { padding: 16px 22px; border-bottom: 1px solid #edf0e9; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-size: 11px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
td:nth-child(3) { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11px; }
td:last-child { color: var(--muted); font-size: 11px; max-width: 420px; }
.history-empty { text-align: center; padding: 28px 20px 32px; color: var(--muted); }
.history-empty p { font-size: 12px; color: #52614b; margin-bottom: 4px; }
.history-empty>span { font-size: 11px; }
.workspace-footer { display: flex; justify-content: space-between; margin-top: 22px; font-size: 10px; color: var(--muted); }
.global-error { border: 1px solid #ebc6be; background: #fff2ec; color: #9a3d32; border-radius: 7px; padding: 11px 15px; margin-bottom: 18px; font-size: 12px; }
.form-error { color: var(--error); font-size: 12px; margin-top: 15px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; background: #253b2b; color: #fff; padding: 12px 22px; border-radius: 8px; max-width: calc(100vw - 32px); font-size: 13px; box-shadow: 0 6px 22px #172c2426; }
.login-view { min-height: 100svh; padding: 36px 6vw 24px; display: flex; flex-direction: column; background: #f1f4ed; }
.login-identity { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .1em; font-weight: 650; }
.login-layout { display: grid; grid-template-columns: 1fr 370px; align-items: center; gap: 80px; max-width: 950px; width: 100%; margin: auto; padding: 60px 0 90px; }
.login-intro h1 { font-size: 46px; line-height: 1.5; font-weight: 550; letter-spacing: -.03em; }
.login-intro>p { max-width: 320px; font-size: 14px; line-height: 1.9; color: var(--muted); margin-top: 22px; }
.login-note { display: flex; align-items: center; gap: 8px; margin-top: 34px; font-size: 11px; color: var(--muted); }
.login-form { background: #fff; padding: 34px; border: 1px solid #dce4d5; border-radius: 12px; }
.login-form h2 { font-size: 20px; }
.login-form>p.muted { font-size: 12px; margin-top: 8px; }
.login-form>button { margin-top: 25px; }
.login-footer { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
dialog { border: 0; border-radius: 12px; max-width: 450px; width: calc(100vw - 32px); padding: 27px; color: var(--ink); box-shadow: 0 12px 55px #20332633; }
dialog::backdrop { background: #24392d73; }
dialog h2 { font-size: 19px; }
dialog p { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscript { padding: 40px; text-align: center; }
@media (min-width: 1500px) { .remote-area { min-height: 515px; } }
@media (max-width: 1100px) { .workspace { padding: 28px 24px 20px; } .topbar { padding: 0 24px; } .workspace-grid { grid-template-columns: 284px minmax(0,1fr); gap: 18px; } .session-footer { flex-direction: column; align-items: start; } .session-actions { align-self: flex-end; } .remote-area { min-height: 450px; } td, th { padding-left: 17px; padding-right: 17px; } }
@media (max-width: 760px) { .workspace { padding: 24px 16px 20px; } .topbar { min-height: 64px; padding: 0 16px; } .topbar-actions { gap: 13px; } .service-status, .topbar-divider, .admin-name { display: none; } .brand-divider { margin: 0 10px; } .brand { gap: 10px; font-size: 11px; } .brand strong { font-size: 12px; } h1 { font-size: 23px; } .page-heading { margin-bottom: 22px; align-items: start; } .page-heading p { font-size: 12px; max-width: 220px; } .plan-tag { margin-top: 6px; font-size: 10px; white-space: nowrap; } .plan-tag span { display: none; } .workspace-grid { grid-template-columns: 1fr; gap: 20px; } .setup-tabs { padding: 0 20px; } [role=tabpanel] { padding: 22px 20px; } .remote-area { min-height: 320px; } .browser-empty { padding: 30px 16px; } .empty-window { margin-bottom: 22px; } .browser-empty h3 { font-size: 17px; } .browser-empty>p { font-size: 11px; } .session-footer { padding: 13px; } .session-footer p { font-size: 10px; } .session-actions { width: 100%; } .session-actions .button { flex: 1; } .session-steps { gap: 13px; } .history-section { margin-top: 22px; } .history-heading { padding: 16px; } table { min-width: 580px; } .workspace-footer { gap: 14px; font-size: 9px; } .login-view { padding: 25px 22px 20px; } .login-layout { grid-template-columns: 1fr; gap: 30px; padding: 45px 0; max-width: 400px; } .login-intro h1 { font-size: 32px; line-height: 1.4; } .login-intro>p { margin-top: 14px; font-size: 12px; } .login-note { display: none; } .login-form { padding: 25px; } .remote-keys button { min-height: 34px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
