:root { color-scheme: light; font-family: Inter, "Microsoft YaHei", system-ui, sans-serif; color: #172033; background: #f4f6fb; line-height: 1.5; --ink: #172033; --muted: #667085; --line: #e5e8f0; --primary: #5965d8; --primary-dark: #414dbb; --panel: #fff; --sidebar: #111827; --shadow: 0 12px 34px rgba(41, 52, 98, .07); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: #f4f6fb; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; gap: 32px; height: 100vh; max-height: 100vh; overflow-y: auto; padding: 28px 18px 20px; color: #d8def0; background: var(--sidebar); }
.brand-block { display: flex; align-items: center; gap: 11px; padding: 0 8px; color: #fff; }
.brand-block strong { display: block; font-size: 15px; letter-spacing: .01em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(140deg, #8892ff, #5965d8); font-size: 17px; font-weight: 850; box-shadow: 0 8px 20px rgba(89, 101, 216, .35); }
.sidebar .eyebrow { color: #9ba8ff; }
.sidebar-nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid transparent; border-radius: 11px; color: #aab5ca; background: transparent; font-weight: 700; text-align: left; }
.nav-item span { width: 18px; color: #7e8aa4; font-size: 17px; text-align: center; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-item.active { color: #fff; background: rgba(104, 117, 232, .23); border-color: rgba(149, 159, 255, .2); }
.nav-item.active span { color: #aeb6ff; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 12px 10px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8f9ab1; font-size: 12px; }
.sidebar-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #42c98b; box-shadow: 0 0 0 4px rgba(66, 201, 139, .12); }
.app-main { min-width: 0; background: #f4f6fb; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; padding: 18px clamp(20px, 4vw, 44px); border-bottom: 1px solid rgba(229, 232, 240, .9); background: rgba(244, 246, 251, .92); backdrop-filter: blur(15px); }
.topbar-title, .title-row, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.title-row { gap: 10px; }
.topbar h1 { margin: 0; color: var(--ink); font-size: clamp(24px, 3vw, 31px); letter-spacing: -.045em; }
.connection-state { padding: 4px 9px; border-radius: 999px; color: #197342; background: #eaf9f0; font-size: 11px; font-weight: 750; }
.content { width: min(1400px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.page-heading h2 { margin: 2px 0 3px; font-size: 25px; letter-spacing: -.03em; }
.section-kicker { margin: 0; color: #6875e8; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.eyebrow { margin: 0; color: #5965d8; font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.muted { color: var(--muted); font-size: 14px; }
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); padding: 20px; }
.login-card { max-width: 480px; margin: 10vh auto 0; padding: 28px; }
.auth-heading, .form-heading { display: flex; align-items: center; gap: 11px; }
.auth-heading { margin-bottom: 10px; }
.auth-heading h2, .form-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.auth-icon, .form-icon, .detail-icon { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--primary); font-weight: 850; }
.auth-icon { background: linear-gradient(140deg, #7581f6, #5965d8); }
.form-icon-purple { background: linear-gradient(140deg, #9b7af4, #7657d9); }
.stack, .compact-form { display: grid; gap: 14px; }
.stack { margin-top: 22px; }
label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 700; }
input, select, textarea { min-width: 0; color: var(--ink); border: 1px solid #d4d9e5; border-radius: 10px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
input, select { min-height: 42px; padding: 0 12px; }
textarea { padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #7782ee; box-shadow: 0 0 0 3px rgba(89, 101, 216, .13); }
button { min-height: 42px; padding: 0 16px; border: 1px solid var(--primary); border-radius: 10px; color: #fff; background: var(--primary); font-weight: 750; transition: transform .15s, filter .15s, opacity .15s; }
button:hover:not(:disabled) { filter: brightness(.97); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .55; }
button.secondary { color: var(--primary-dark); border-color: #dfe2ff; background: #eef0ff; }
button.quiet { min-height: 34px; color: var(--primary); border-color: transparent; background: transparent; }
.identity { padding: 8px 13px; border-radius: 999px; color: var(--primary-dark); background: #e9ecff; font-size: 13px; font-weight: 750; }
.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.overview-card { display: grid; gap: 4px; min-height: 116px; padding: 18px; border: 1px solid #ebeef5; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.overview-card span { color: #667085; font-size: 13px; font-weight: 650; }
.overview-card strong { color: var(--ink); font-size: 32px; line-height: 1.1; letter-spacing: -.05em; }
.overview-card small { color: #98a2b3; font-size: 12px; }
.overview-card-blue { background: linear-gradient(145deg, #fff, #f5f6ff); }.overview-card-blue strong { color: #5965d8; }
.overview-card-amber { background: linear-gradient(145deg, #fff, #fffaf0); }.overview-card-amber strong { color: #ba7b16; }
.overview-card-green { background: linear-gradient(145deg, #fff, #f3fcf7); }.overview-card-green strong { color: #19824e; }
.safe-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 999px; color: #197342; background: #eaf9f0; font-size: 12px; font-weight: 750; }
.readiness-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 12px 18px; margin-bottom: 18px; padding: 15px 18px; }.readiness-strip div { display: grid; gap: 2px; }.readiness-strip span { color: #667085; font-size: 11px; }.readiness-strip strong { color: #344054; font-size: 13px; }.readiness-strip p { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.workspace-main { min-width: 0; }
.create-grid { display: grid; grid-template-columns: minmax(220px, .78fr) minmax(340px, 1.22fr); gap: 12px; margin-bottom: 16px; }
.compact-form { padding: 20px; }.compact-form .form-heading { margin-bottom: 2px; }.form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 14px 16px; }
.toolbar-title { display: flex; align-items: center; gap: 12px; }.toolbar-title h2 { margin: 1px 0 0; font-size: 18px; }.toolbar-title .muted { margin: 0; font-size: 12px; }
.toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }.toolbar-actions select { min-height: 36px; padding: 0 9px; font-size: 12px; }.toolbar-actions button { min-height: 36px; padding: 0 12px; font-size: 12px; }
.notice { margin: 12px 0; padding: 12px 14px; border-radius: 10px; color: #8a4b08; background: #fff4e5; font-size: 14px; }.notice.error { color: #ae3030; background: #fff0f0; }.notice.success { color: #147a45; background: #ebfaf1; }
.job-list { display: grid; gap: 10px; }.job-card { position: relative; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 17px; transition: border-color .15s, box-shadow .15s; }.job-card:hover { border-color: #aeb6ff; box-shadow: 0 10px 26px rgba(89, 101, 216, .12); }
.job-head, .meta, .job-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.job-head { align-items: flex-start; }.job-title { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 15px; }.badge { white-space: nowrap; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }.badge.running::before { display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0; border-radius: 50%; background: currentColor; content: ''; animation: task-pulse 1.2s ease-in-out infinite; }@keyframes task-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.badge.pending { color: #4754bb; background: #eef2ff; }.badge.running { color: #14749e; background: #e8f7ff; }.badge.success { color: #197342; background: #eaf9f0; }.badge.error { color: #ae3030; background: #fff0f0; }.badge.paused { color: #8a4b08; background: #fff4e5; }.badge.warning { color: #866500; background: #fff8dc; }.badge.neutral { color: #596273; background: #eef0f3; }
.prompt { margin: 11px 0 0; overflow-wrap: anywhere; color: #344054; white-space: pre-wrap; }.meta { justify-content: flex-start; flex-wrap: wrap; margin-top: 13px; color: #667085; font-size: 11px; }.meta span { padding: 5px 8px; border-radius: 7px; background: #f7f8fb; }.job-footer { align-items: flex-end; margin-top: 13px; }.guidance { color: #667085; font-size: 12px; }.job-footer > span:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }.job-footer button { min-height: 32px; padding: 0 10px; font-size: 12px; }
.results { display: grid; gap: 9px; margin-top: 11px; }.result-row { display: flex; align-items: center; gap: 10px; }.result-preview-trigger { width: 112px; height: 82px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #f7f8fb; cursor: zoom-in; }.result-thumbnail { display: block; width: 100%; height: 100%; object-fit: cover; }.result-name { min-width: 0; flex: 1; overflow-wrap: anywhere; color: #596273; font-size: 12px; }.result-download { padding: 7px 10px; border-radius: 8px; color: var(--primary-dark); background: #eef0ff; font-size: 12px; text-decoration: none; }.result-download:hover { text-decoration: underline; }
.event-toggle { min-height: 30px; margin-top: 8px; padding: 0 7px; font-size: 12px; }.event-timeline { display: grid; gap: 7px; margin: 9px 0 0; padding: 9px 10px 9px 26px; border-left: 2px solid #e5e8f0; color: #596273; font-size: 11px; }.event-timeline li { padding-left: 3px; }.event-timeline strong { margin-right: 9px; color: #344054; }.event-timeline time { color: #98a2b3; }
.empty { display: grid; justify-items: center; gap: 4px; padding: 42px 20px; color: #667085; text-align: center; }.empty strong { color: #344054; }.empty-icon { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 4px; border-radius: 12px; color: #5965d8; background: #eef0ff; font-size: 21px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }.pager button { min-height: 34px; padding: 0 11px; font-size: 12px; }
.admin-panel { display: grid; gap: 16px; }.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.admin-list { display: grid; gap: 8px; margin-top: 15px; }.admin-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #f7f8fb; font-size: 12px; }.admin-item strong { overflow-wrap: anywhere; }.admin-item span { color: #667085; }.user-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }.user-actions button { min-height: 32px; padding: 0 9px; font-size: 11px; }.queue-summary { margin-top: 18px; color: #344054; font-size: 16px; font-weight: 750; }.hold-summary { margin-top: 14px; padding: 12px 14px; border-radius: 10px; color: #8a4b08; background: #fff4e5; font-size: 13px; }.hold-summary button { margin-top: 10px; }.app-footer { padding: 0 clamp(20px, 4vw, 44px) 24px; color: #98a2b3; font-size: 11px; }
.account-share { border-color: #cfd5ff; background: linear-gradient(145deg, #fff, #f6f7ff); }.account-share-heading, .account-share-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }.account-share-heading h2 { margin: 1px 0 0; font-size: 18px; }.account-share .muted { margin: 12px 0; }.account-share textarea { width: 100%; min-height: 132px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }.account-share-actions { justify-content: flex-end; margin-top: 12px; }.account-share-expiry { display: flex; align-items: center; gap: 8px; margin-right: auto; color: #596273; font-size: 12px; }.account-share-expiry select { min-width: 104px; }
@media (max-width: 1040px) { .app-shell { grid-template-columns: 194px minmax(0, 1fr); }.overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .app-shell { display: block; }.sidebar { position: sticky; top: 0; height: auto; max-height: none; overflow: visible; flex-direction: row; align-items: center; gap: 16px; padding: 12px 14px; z-index: 6; }.brand-block { flex: 0 0 auto; }.sidebar-nav { display: flex; flex: 1; gap: 5px; }.nav-item { justify-content: center; min-height: 38px; padding: 0 10px; font-size: 12px; }.nav-item span { display: none; }.sidebar-footer { display: none; }.topbar { min-height: 72px; padding: 14px 18px; }.topbar .eyebrow { display: none; }.content { width: min(100% - 24px, 1400px); padding-top: 22px; }.create-grid, .admin-grid { grid-template-columns: 1fr; }.readiness-strip { grid-template-columns: 1fr; }.readiness-strip p { grid-column: 1; }.page-heading { align-items: flex-start; flex-direction: column; }.toolbar { align-items: stretch; flex-direction: column; }.toolbar-actions { justify-content: flex-start; }.toolbar-actions select { flex: 1; }.form-row { grid-template-columns: 1fr; }.job-footer { align-items: stretch; flex-direction: column; }.job-footer > span:last-child { justify-content: flex-start; }.identity { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (max-width: 440px) { .topbar-actions { gap: 4px; }.topbar-actions .quiet { padding: 0 6px; }.overview-card { min-height: 100px; padding: 14px; }.overview-card strong { font-size: 27px; }.card { padding: 16px; }.login-card { margin-top: 5vh; }.sidebar { overflow-x: auto; }.brand-block strong { display: none; }.sidebar-nav { min-width: 210px; }.nav-item { white-space: nowrap; } }
.image-preview { width: min(92vw, 900px); max-width: 900px; padding: 24px; border: 0; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 20px 70px rgba(31, 41, 55, .3); }.image-preview::backdrop { background: rgba(15, 23, 42, .62); }.image-preview-close { display: flex; justify-content: flex-end; margin: -12px -12px 4px; }.image-preview-close button { min-width: 34px; padding: 0 8px; font-size: 22px; }.image-preview > p { margin: 0 0 12px; }.image-preview img { display: block; width: 100%; max-height: 72vh; object-fit: contain; border-radius: 10px; background: #f7f8fb; }.image-preview-caption { margin: 10px 0 0 !important; overflow-wrap: anywhere; }
.section-tabs { display:flex; gap:6px; padding:5px; margin:0 0 20px; border:1px solid #e3e7ef; border-radius:13px; background:#edf0f6; overflow-x:auto; }
.section-tabs [role="tab"] { flex:0 0 auto; min-height:40px; padding:0 20px; border:0; border-radius:9px; color:#667085; background:transparent; box-shadow:none; white-space:nowrap; }
.section-tabs [aria-selected="true"] { color:#4d50b8; background:#fff; box-shadow:0 2px 6px #18223012; }
.section-tabs [role="tab"]:focus-visible { outline:2px solid #6366f1; outline-offset:-2px; }
.focused-panel { max-width:860px; margin-inline:auto; display:grid; gap:16px; }
[role="tabpanel"] > .account-share { margin-top:16px; }
#dashboard > .page-heading { margin-bottom:16px; }
#overview { margin-bottom:18px; }
@media(max-width:760px) { .section-tabs { gap:2px; margin-bottom:14px; }.section-tabs [role="tab"] { padding:0 13px; font-size:13px; }.focused-panel { width:100%; } }
.reset-password-dialog { width:min(480px,calc(100vw - 32px)); box-sizing:border-box; max-height:90vh; overflow:auto; padding:24px; border:0; border-radius:18px; color:#1d2939; background:white; }
.reset-password-dialog::backdrop { background:rgba(15,23,42,.55); }
.reset-password-dialog h2 { font-size:20px; margin:0; overflow-wrap:anywhere; }
.dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.reset-error { color:#b42318; margin:0; overflow-wrap:anywhere; }
.newly-created { outline:2px solid #7771e9; outline-offset:2px; }
@media(max-width:440px) { .topbar { flex-wrap:wrap; gap:10px; }.topbar-title { flex:1 0 100%; }.title-row { flex-wrap:nowrap; }.topbar h1 { font-size:23px; white-space:nowrap; }.connection-state { white-space:nowrap; }.topbar-actions { width:100%; justify-content:space-between; }.topbar-actions button { white-space:nowrap; }.identity { max-width:240px; } }
@media(max-width:440px) { .admin-item { flex-wrap:wrap; }.user-actions { width:100%; justify-content:flex-start; }.dialog-actions > button { flex:1; }.reset-password-dialog { padding:20px; } }
