:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --canvas: #f7f8fc;
  --text: #1b2339;
  --muted: #5f6b81;
  --blue: #3154df;
  --blue-dark: #2644c6;
  --line: #e5e9f2;
  --panel: #fff;
  --sidebar: 225px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--text); font-size: 1rem; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #7b96ff; outline-offset: 3px; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-icon { width: 1.45rem; height: 1.45rem; flex: none; }
.sidebar { z-index: 2; position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 28px 18px; background: var(--panel); border-right: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 11px; margin: 0 5px 46px; width: fit-content; font-size: 1.22rem; font-weight: 760; letter-spacing: -.055em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #5976ff, #3654de 75%); box-shadow: 0 4px 9px #3654de33; }
.brand-mark .icon { width: 24px; height: 24px; }
.navigation { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 10px 13px; font-size: .92rem; font-weight: 560; border-radius: 10px; color: var(--muted); }
.nav-link:hover { background: #f5f7fd; color: var(--text); }
.nav-link.is-active { background: #edf1ff; color: #2c4ccc; font-weight: 700; }
.nav-link .icon { width: 19px; height: 19px; }
.workspace { margin-left: var(--sidebar); }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 34px; background: var(--panel); border-bottom: 1px solid var(--line); }
.breadcrumb, .top-actions { display: flex; align-items: center; gap: 10px; }
.breadcrumb { font-size: .92rem; color: var(--muted); }
.breadcrumb .icon { width: 14px; height: 14px; color: #8390a7; }
.breadcrumb strong { font-weight: 650; color: var(--text); }
.top-actions { gap: 16px; }
.server-status { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: #f1f3f8; color: #5c6678; padding: 5px 10px; font-size: .81rem; font-weight: 625; white-space: nowrap; }
.server-status.is-online { background: #eaf8ef; color: #24744c; }
.server-status.is-offline { background: #fff0ee; color: #aa3d35; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.session-button { display: flex; align-items: center; gap: 7px; background: transparent; border: 0; color: #3d4960; padding: 2px; font-size: .87rem; font-weight: 650; white-space: nowrap; border-radius: 9px; }
.session-button:hover { color: var(--blue); }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: #4661d4; background: #edf0fd; }
.avatar .icon { width: 18px; height: 18px; }
.dashboard { max-width: 1440px; margin: 0 auto; padding: 28px 34px 0; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; min-height: 182px; padding: 32px 38px; border-radius: 18px; color: #fff; background: radial-gradient(ellipse at 87% 90%, #6176f4 0%, transparent 63%), linear-gradient(116deg, #2747cc, #4765e6 63%, #5466e6); box-shadow: 0 7px 20px #2f4cc825; }
.hero::before { content: ''; position: absolute; inset: 0 0 0 42%; opacity: .35; z-index: -1; background: radial-gradient(#d9e2ff 1px, transparent 1px) 0 0 / 17px 17px; mask-image: linear-gradient(90deg, transparent, #000); }
.hero-text { position: relative; z-index: 1; }
h1, h2, h3, p { margin: 0; }
.hero h1 { font-size: clamp(2rem, 3.1vw, 2.75rem); font-weight: 760; line-height: 1.18; letter-spacing: -.055em; }
.hero p { margin-top: 11px; color: #eff2ff; font-size: 1rem; line-height: 1.6; }
.hero-art { position: absolute; top: 50%; right: 2.5%; width: 360px; height: 172px; transform: translateY(-50%); }
.orbit { position: absolute; inset: 28px 5px; border-radius: 50%; transform: rotate(-15deg); border: 1px solid #d5ddff59; }
.orbit-inner { inset: 43px 31px; border-style: dashed; }
.hero-tile { position: absolute; display: grid; place-items: center; color: #fff; border: 1px solid #f2f4ff80; box-shadow: 0 12px 23px #203bba55, inset 0 1px 1px #fff4; backdrop-filter: blur(4px); }
.tile-cloud { width: 102px; height: 93px; top: 40px; left: 130px; border-radius: 27px; background: linear-gradient(140deg, #cbd9ff8c, #a0b3ff39); transform: rotate(-10deg); }
.tile-cloud .icon { width: 52px; height: 52px; stroke-width: 1.35; }
.tile-file { width: 48px; height: 48px; top: 45px; left: 45px; border-radius: 13px; background: #8195f5a6; transform: rotate(14deg); }
.tile-file .icon { width: 25px; height: 25px; }
.tile-check { width: 45px; height: 45px; bottom: 36px; left: 268px; border-radius: 13px; background: #99b1ffaa; transform: rotate(14deg); }
.tile-check .icon { width: 24px; height: 24px; }
.star { position: absolute; line-height: 1; color: #dce5ffad; }
.star-one { bottom: 18px; left: 92px; font-size: 21px; }
.star-two { top: 18px; right: 71px; font-size: 24px; }
.star-three { top: 40px; right: 35px; font-size: 12px; }
.panels { display: grid; grid-template-columns: minmax(0, 1.56fr) minmax(290px, 1fr); gap: 20px; margin-top: 22px; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 2px 9px #24356007; scroll-margin: 20px; }
.panel-header { display: flex; align-items: center; gap: 12px; }
.section-icon { display: grid; place-items: center; color: #3b56d5; background: #edf1ff; border-radius: 11px; flex: none; width: 42px; height: 42px; }
.section-icon .icon { width: 22px; height: 22px; }
.section-icon-cloud { color: #5749cd; background: #f0edff; }
.section-icon-jobs { color: #3e5bb7; background: #edf3ff; }
h2 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -.015em; }
.panel-header p { color: var(--muted); font-size: .875rem; margin-top: 3px; line-height: 1.45; }
#download-form { margin-top: 19px; }
label { display: block; margin-bottom: 7px; color: #354057; font-weight: 630; font-size: .875rem; }
input, select { min-width: 0; width: 100%; height: 43px; color: var(--text); background: #fbfcff; border: 1px solid #dfe5f0; border-radius: 9px; padding: 8px 11px; font-size: .91rem; }
input::placeholder { color: #707e94; opacity: 1; }
input:focus, select:focus { outline: 2px solid #a5b7ff; outline-offset: 0; border-color: #6987ff; background: #fff; }
.input-with-icon, .select-wrap { position: relative; }
.input-with-icon > .icon, .select-wrap > svg { pointer-events: none; position: absolute; top: 50%; left: 11px; transform: translateY(-50%); }
.input-with-icon > .icon { width: 17px; height: 17px; color: #7786a0; }
.input-with-icon input { padding-left: 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 14px; }
.form-grid > div { min-width: 0; }
.select-wrap .service-icon { width: 19px; height: 19px; }
.select-wrap select { appearance: none; padding: 8px 29px 8px 37px; cursor: pointer; }
.select-wrap .select-chevron { left: auto; right: 10px; width: 15px; height: 15px; color: #667792; }
.optional { font-size: .77rem; color: var(--muted); font-weight: 450; margin-left: 3px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; }
.form-actions small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 7px 13px; border: 1px solid transparent; border-radius: 9px; font-size: .875rem; font-weight: 670; white-space: nowrap; }
.button .icon { width: 17px; height: 17px; }
.button-primary { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 2px 4px #2146d630; }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); }
.button-connect, .button-secondary { background: #f0f3ff; color: #2b48bd; border-color: #e0e7ff; }
.button-connect:hover:not(:disabled), .button-secondary:hover:not(:disabled) { background: #e6ecff; }
.button-connect { min-height: 34px; padding: 4px 11px; border-radius: 8px; }
.providers { margin-top: 17px; display: grid; gap: 8px; }
.provider { display: flex; align-items: center; min-height: 57px; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.provider-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; flex: none; background: #f5f7fc; }
.provider-info { min-width: 0; flex: 1; }
.provider h3 { font-size: .91rem; font-weight: 700; }
.provider p { margin-top: 2px; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider p.bound { color: #24744c; }
.badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border-radius: 7px; padding: 4px 7px; color: #334fb9; background: #edf1ff; font-size: .78rem; font-weight: 630; }
.badge-neutral { background: #f0f2f6; color: #606b80; }
.badge.complete { color: #246f4a; background: #eaf8ef; }
.badge.failed { color: #a83836; background: #ffefed; }
.coming-soon .provider-icon { filter: saturate(.75); }
.jobs-panel { margin-top: 20px; }
.jobs-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filters { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; background: #f2f4f9; }
.filters button { padding: 5px 11px; min-height: 30px; white-space: nowrap; border: 0; border-radius: 7px; background: transparent; color: #536176; font-size: .84rem; font-weight: 550; }
.filters button:hover { color: var(--blue); }
.filters [aria-pressed='true'] { background: #fff; box-shadow: 0 1px 4px #23345714; color: #2848c2; font-weight: 700; }
.empty { display: grid; justify-items: center; align-content: center; min-height: 167px; margin-top: 16px; border: 1px dashed #dde4f3; border-radius: 12px; background: #fafbfe; padding: 17px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #edf1ff; color: #5268d5; }
.empty-icon .icon { width: 24px; height: 24px; }
.empty h3 { margin-top: 9px; font-size: .95rem; }
.empty p { margin-top: 5px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.jobs-table { margin-top: 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 670px; text-align: left; }
th, td { padding: 11px 9px; border-bottom: 1px solid var(--line); font-size: .875rem; }
th { background: #f6f8fd; color: #56637a; font-weight: 650; }
th:first-child { width: 34%; border-radius: 8px 0 0 8px; }
th:nth-child(2) { width: 17%; }
th:nth-child(3) { width: 15%; }
th:nth-child(4) { width: 22%; }
th:last-child { border-radius: 0 8px 8px 0; }
td:last-child { white-space: nowrap; }
.job-file, .job-provider { display: flex; align-items: center; gap: 7px; }
.job-file > .icon { color: #4863d0; }
.job-file > div { min-width: 0; }
.job-name { display: block; overflow-wrap: anywhere; font-weight: 660; }
.job-meta, .job-progress-text, .job-error { margin-top: 3px; color: var(--muted); font-size: .77rem; line-height: 1.35; overflow-wrap: anywhere; }
.job-error { color: #a83836; }
.job-provider .service-icon { width: 18px; height: 18px; }
.job-link { color: #2b48bd; font-size: .84rem; font-weight: 670; }
.job-link:hover { text-decoration: underline; }
.job-retry { min-height: 32px; }
progress { display: block; width: 100%; height: 8px; appearance: none; border: 0; border-radius: 8px; background: #e9edf8; accent-color: var(--blue); }
progress::-webkit-progress-bar { background: #e9edf8; border-radius: 8px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 8px; }
footer { display: flex; gap: 7px; align-items: center; justify-content: center; padding: 17px 0 20px; color: var(--muted); text-align: center; font-size: .81rem; }
footer .icon { width: 15px; height: 15px; }
.inline-error { margin-top: 9px; font-size: .85rem; color: #ac3535; line-height: 1.5; }
dialog { width: min(410px, calc(100vw - 34px)); padding: 24px; border: 1px solid var(--line); border-radius: 17px; color: var(--text); box-shadow: 0 24px 90px #14204a40; }
dialog::backdrop { background: #111a3f65; backdrop-filter: blur(2px); }
dialog p:not(.inline-error) { font-size: .93rem; color: var(--muted); line-height: 1.5; margin: 6px 0 17px; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 13px; }
.dialog-submit { width: 100%; margin-top: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.icon-button { display: grid; place-items: center; border: 0; border-radius: 7px; width: 32px; height: 32px; color: var(--muted); background: transparent; }
.icon-button:hover { background: #f2f4f9; }
.toast { position: fixed; z-index: 3; right: 25px; bottom: 24px; max-width: min(400px, calc(100vw - 50px)); border: 1px solid #dde5f8; border-radius: 11px; background: #fff; color: #26365b; box-shadow: 0 10px 32px #18274f29; padding: 12px 16px; font-size: .9rem; line-height: 1.45; }
.toast.is-error { color: #a83836; }
@media (max-width: 1120px) {
  :root { --sidebar: 187px; }
  .sidebar { padding-inline: 15px; }
  .dashboard, .topbar { padding-inline: 24px; }
  .panel { padding: 18px; }
  .panels { gap: 15px; }
}
@media (max-width: 920px) {
  :root { --sidebar: 154px; }
  .wordmark { gap: 6px; font-size: 1.02rem; margin-inline: 0; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark .icon { width: 21px; height: 21px; }
  .nav-link { gap: 7px; padding-inline: 8px; }
  .dashboard, .topbar { padding-inline: 17px; }
  .panels { grid-template-columns: minmax(0, 1.35fr) minmax(245px, 1fr); }
  .panel { padding: 15px; }
  .form-grid { gap: 8px; }
  .hero { padding-inline: 25px; }
  .hero-art { right: 0; transform: translateY(-50%) scale(.82); transform-origin: right center; }
}
@media (max-width: 770px) {
  .sidebar { position: static; width: 100%; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); }
  .wordmark { margin: 0; }
  .workspace { margin-left: 0; }
  .navigation { display: flex; gap: 3px; }
  .nav-link { min-height: 36px; font-size: .82rem; padding: 5px 7px; gap: 5px; white-space: nowrap; }
  .nav-link .icon { width: 15px; height: 15px; }
  .topbar { min-height: 56px; padding-block: 8px; }
  .dashboard { padding-top: 16px; }
}
@media (max-width: 620px) {
  .panels { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 14px; }
  .hero { min-height: 142px; padding-inline: 20px; }
  .hero p { max-width: 245px; }
  .hero-art { opacity: .73; right: -35px; transform: translateY(-50%) scale(.58); }
  .jobs-panel { margin-top: 13px; }
  .jobs-header { align-items: start; flex-direction: column; gap: 11px; }
  .empty { margin-top: 11px; }
}
@media (max-width: 440px) {
  .nav-link .icon { display: none; }
  .dashboard, .topbar, .sidebar { padding-inline: 12px; }
  .top-actions { gap: 8px; }
  .breadcrumb { gap: 4px; font-size: .84rem; }
  .hero-art { right: -68px; opacity: .35; }
  .filters button { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
