:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f5f7fb;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #f5f7fb; }
button, input, select, textarea { font: inherit; }
button, a { transition: .16s ease; }
a { color: inherit; }
.app-body { min-height: 100vh; }
.shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; padding: 20px 14px; display: flex; flex-direction: column; background: #111827; color: #c7ceda; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 24px; color: #fff; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #7c8cff, #4f5df2); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 8px 20px rgba(91,108,249,.34); }
.brand-mark.large { width: 48px; height: 48px; border-radius: 14px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 3px; color: #818a9c; font-size: 11px; }
.nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: #aeb6c5; text-decoration: none; font-size: 14px; }
.nav-item:hover, .nav-item.active { background: rgba(91,108,249,.2); color: #fff; }
.nav-icon { width: 18px; text-align: center; }
.server-card { margin-top: auto; padding: 13px; border: 1px solid #293346; border-radius: 12px; background: #192230; }
.server-line { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.server-line i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #20c77a; box-shadow: 0 0 0 4px rgba(32,199,122,.12); }
.server-line b { color: #35ce88; }
.server-line.muted { margin-top: 8px; color: #8f98aa; }
.disk-track { height: 5px; margin-top: 11px; border-radius: 5px; background: #2c3648; overflow: hidden; }
.disk-track span { display: block; width: 42%; height: 100%; background: #6f7bf8; }
.main { min-width: 0; flex: 1; margin-left: 232px; }
.topbar { height: 68px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e7ebf2; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.crumb { color: #7a8494; font-size: 13px; }
.crumb strong { color: #344054; }
.user-actions { display: flex; align-items: center; gap: 9px; }
.user-actions form { margin: 0; }
.user-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eef0ff; color: #5665e9; font-weight: 800; }
.user-name { font-size: 13px; font-weight: 600; }
.page { padding: 24px 28px 40px; }
.hero { max-width: 680px; padding: 40px; }
.home-welcome { max-width: 780px; margin-top: 20px; padding: 24px; }
.home-welcome h2 { margin: 10px 0 7px; font-size: 21px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.eyebrow { margin: 0; color: #5967e8; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 14px 0; font-size: clamp(28px, 5vw, 48px); line-height: 1.1; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.page-head p { margin: 7px 0 0; color: #667085; font-size: 13px; }
.back-link { display: inline-block; margin-bottom: 9px; color: #5967e8; font-size: 12px; text-decoration: none; }
.btn { display: inline-flex; height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; background: #fff; color: #344054; font-size: 13px; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { border-color: #5b6cf9; background: #5b6cf9; color: #fff; box-shadow: 0 7px 16px rgba(91,108,249,.2); }
.btn-primary:hover { background: #4f5eea; }
.btn-secondary { border-color: #e2e7ef; background: #fff; color: #475467; }
.btn-secondary:hover { background: #f8fafc; }
.action-disabled { color: #98a2b3; cursor: default; }
.action-disabled:hover { transform: none; background: #fff; }
.btn-danger { border-color: #fecdd3; color: #dc2626; }
.btn-sm { height: 31px; padding: 0 10px; border-radius: 8px; font-size: 11px; }
.btn-block { width: 100%; }
.icon-button { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #e2e7ef; border-radius: 8px; background: #fff; color: #667085; cursor: pointer; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin-bottom: 17px; }
.summary-card { padding: 17px 18px; border: 1px solid #e7ebf2; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(20,31,56,.055); }
.summary-card span, .summary-card small { display: block; color: #667085; font-size: 12px; }
.summary-card strong { display: block; margin: 11px 0 5px; font-size: 25px; letter-spacing: -.03em; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.search-box { display: flex; width: 300px; height: 38px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e2e7ef; border-radius: 10px; background: #fff; color: #98a2b3; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.card { border: 1px solid #e7ebf2; border-radius: 14px; background: #fff; box-shadow: 0 9px 30px rgba(20,31,56,.06); }
.table-card { overflow: hidden; }
.table-scroll { overflow: auto; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; margin-top: 12px; color: #7a8494; font-size: 11px; }
.pagination > div { display: flex; align-items: center; gap: 7px; }
.pagination button { min-width: 68px; height: 30px; padding: 0 10px; border: 1px solid #e2e7ef; border-radius: 8px; background: #fff; color: #475467; font-size: 11px; cursor: pointer; }
.pagination button:hover:not(:disabled) { background: #f8fafc; }
.pagination button:disabled { color: #b0b8c5; cursor: not-allowed; }
.pagination-current { min-width: 82px; text-align: center; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { height: 43px; padding: 0 15px; background: #fafbfc; color: #7a8494; text-align: left; font-weight: 650; white-space: nowrap; }
td { padding: 13px 15px; border-top: 1px solid #edf0f5; vertical-align: middle; }
tbody tr:hover { background: #fcfdff; }
.actions-col { width: 245px; min-width: 245px; }
.app-cell { display: flex; align-items: center; gap: 10px; }
.app-cell strong, .app-cell small { display: block; }
.app-cell small, .block-muted { margin-top: 4px; color: #8b95a5; font-size: 10px; }
.app-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-weight: 800; }
.app-logo.java { background: #eef0ff; color: #5967e8; }
.app-logo.web { background: #eaf8f1; color: #159463; }
.actions-cell { padding-right: 18px; }
.row-actions { display: flex; align-items: center; justify-content: flex-start; gap: 8px; white-space: nowrap; }
.row-actions form { margin: 0; }
.action-menu { position: relative; }
.action-menu-panel { position: fixed; left: 0; top: 0; z-index: 100; min-width: 120px; padding: 5px; border: 1px solid #e2e7ef; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(20,31,56,.16); }
.action-menu-panel[hidden] { display: none; }
.action-menu-item { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: #344054; font: inherit; font-size: 12px; text-align: left; text-decoration: none; cursor: pointer; }
.action-menu-item:hover { background: #f3f5f9; }
.action-menu-item.danger { color: #dc2626; }
.action-menu-item.danger:hover { background: #fff0f0; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge-success { background: #eaf8f1; color: #09945d; }
.badge-muted { background: #f1f3f6; color: #697386; }
.badge-info { background: #eef0ff; color: #5665e9; }
.badge-warning { background: #fff5e6; color: #c67005; }
.badge-danger { background: #fff0f0; color: #d92d35; }
.badge-current { height: 20px; margin-left: 6px; background: #eef0ff; color: #5665e9; }
.status-check-button { border: 0; font-family: inherit; font-size: 10px; font-weight: 700; line-height: normal; cursor: pointer; }
.status-check-button:hover { filter: brightness(.96); transform: translateY(-1px); }
.version-link, .version-title { color: #5665e9; font-weight: 700; text-decoration: none; }
.release-actions { min-width: 150px; white-space: nowrap; }
.release-actions form { display: inline; margin-left: 6px; }
.empty-state { padding: 38px; color: #8b95a5; text-align: center; }
.form-card { max-width: 870px; padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.wide { gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.checkbox-field { display: flex; align-items: center; gap: 8px; color: #475467; font-size: 12px; }
.checkbox-field input { width: 15px; height: 15px; }
.form-field > span { color: #475467; font-size: 12px; font-weight: 650; }
.form-field small { color: #8b95a5; font-size: 10px; }
.required-mark { color: #d92d35; font-style: normal; }
.form-input.field-invalid { border-color: #f04438; box-shadow: 0 0 0 3px rgba(240,68,56,.1); }
.form-field .field-error { color: #d92d35; font-size: 11px; }
.form-full { grid-column: 1 / -1; }
.form-input, .form-textarea { width: 100%; border: 1px solid #dfe4ec; border-radius: 10px; background: #fff; color: #172033; outline: 0; }
.form-input { height: 41px; padding: 0 11px; }
.form-textarea { min-height: 86px; padding: 10px 11px; resize: vertical; }
.form-input:focus, .form-textarea:focus { border-color: #8b96ff; box-shadow: 0 0 0 3px rgba(91,108,249,.1); }
.form-section { padding: 17px; border: 1px solid #e8ebf1; border-radius: 12px; background: #fafbfc; }
.form-section h2 { margin: 0 0 14px; font-size: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.dropzone { position: relative; display: grid; place-items: center; min-height: 112px; padding: 20px; border: 1.5px dashed #cbd2dd; border-radius: 12px; background: #fafbfe; text-align: center; overflow: hidden; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone b { font-size: 13px; }
.dropzone small { margin-top: 5px; }
.notice { margin-top: 17px; padding: 11px 12px; border-radius: 10px; font-size: 11px; line-height: 1.6; }
.notice-info { border: 1px solid #d8e6ff; background: #eef4ff; color: #315f9b; }
.error { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; color: #b42318; background: #fff0f0; font-size: 12px; }
.inline-form { display: inline; }
.muted { color: #667085; }
.toast-root { position: fixed; z-index: 100; top: 82px; right: 22px; display: grid; gap: 9px; }
.toast { display: flex; min-width: 270px; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e2e7ef; border-radius: 11px; background: #fff; box-shadow: 0 14px 40px rgba(20,31,56,.17); }
.toast > span { display: grid; width: 24px; height: 24px; border-radius: 50%; background: #eaf8f1; color: #09945d; place-items: center; font-size: 11px; font-weight: 800; }
.toast.error > span { background: #fff0f0; color: #d92d35; }
.toast strong, .toast small { display: block; }
.toast strong { font-size: 12px; }
.toast small { margin-top: 2px; color: #8b95a5; font-size: 9px; }
.modal-mask { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(15,23,42,.42); }
.modal { width: min(620px, 100%); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 26px 80px rgba(15,23,42,.25); }
.modal-wide { width: min(980px, 100%); }
.modal-head, .modal-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e7ebf2; }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-head p { margin: 4px 0 0; color: #667085; font-size: 11px; }
.modal-body { display: grid; gap: 16px; padding: 20px; }
.modal-foot { justify-content: flex-end; gap: 9px; border-top: 1px solid #e7ebf2; border-bottom: 0; background: #fafbfc; }
.status-check-detail { gap: 14px; }
.status-check-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #edf0f5; }
.status-check-meta > span, .status-check-message-wrap > span { color: #7a8494; font-size: 11px; font-weight: 650; }
.status-check-message-wrap { display: grid; gap: 8px; }
.status-check-detail-message { max-height: 260px; margin: 0; padding: 12px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 10px; background: #f6f8fb; color: #475467; font: 11px/1.6 "SFMono-Regular", Consolas, monospace; }
.logs-toolbar { display: flex; align-items: flex-end; gap: 12px; }
.logs-toolbar .form-field { min-width: 150px; }
.app-logs-content { min-height: 320px; max-height: 60vh; margin: 0; padding: 14px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 10px; background: #101828; color: #d0d5dd; font: 12px/1.6 "SFMono-Regular", Consolas, monospace; }
.task-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
.task-main, .task-side { padding: 19px; }
.task-side h2 { margin: 0 0 15px; font-size: 15px; }
.stepper { display: flex; margin: 2px 0 26px; }
.step { position: relative; flex: 1; color: #98a2b3; text-align: center; }
.step:before { content: ""; position: absolute; top: 14px; right: 50%; left: -50%; height: 2px; background: #e8ebf1; }
.step:first-child:before { display: none; }
.step i { position: relative; z-index: 1; display: grid; width: 29px; height: 29px; margin: auto; border-radius: 50%; background: #edf0f5; font-style: normal; font-size: 11px; font-weight: 800; place-items: center; }
.step span { display: block; margin-top: 8px; font-size: 10px; }
.step.active i { background: #5b6cf9; color: #fff; box-shadow: 0 0 0 5px rgba(91,108,249,.12); }
.step.done:before, .step.done i { background: #16a66a; color: #fff; }
.step.done span, .step.active span { color: #344054; font-weight: 650; }
.terminal-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.terminal-head strong, .terminal-head small { display: block; }
.terminal-head small { margin-top: 4px; color: #8b95a5; font-size: 10px; }
.terminal-actions { display: flex; align-items: center; gap: 9px; }
.terminal-actions > span { color: #5b6cf9; font-size: 12px; font-weight: 800; }
.terminal { height: 350px; padding: 14px; overflow: auto; border-radius: 12px; background: #101827; color: #cbd5e1; font: 11px/1.85 "SFMono-Regular", Consolas, monospace; }
.task-main:fullscreen { width: 100vw; height: 100vh; overflow: auto; border-radius: 0; }
.task-main:-webkit-full-screen { width: 100vw; height: 100vh; overflow: auto; border-radius: 0; }
.task-main.log-panel-fullscreen { position: fixed; inset: 0; z-index: 60; overflow: auto; border-radius: 0; }
.task-main:fullscreen .terminal, .task-main:-webkit-full-screen .terminal, .task-main.log-panel-fullscreen .terminal { height: calc(100vh - 180px); min-height: 350px; }
body:has(.log-panel-fullscreen) { overflow: hidden; }
.terminal-line { display: flex; gap: 9px; }
.terminal-line span { color: #657086; }
.terminal-line b { font-weight: 500; }
.level-success b { color: #45d693; }
.level-error b { color: #ff7b83; }
.muted-line { color: #7c8798; }
.detail-list { margin: 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf0f5; }
.detail-list dt { color: #7a8494; font-size: 11px; }
.detail-list dd { margin: 0; text-align: right; font-size: 11px; font-weight: 650; }
.login-body { display: grid; min-height: 100vh; padding: 24px; background: radial-gradient(circle at 20% 20%, #eef0ff 0, transparent 35%), #f5f7fb; place-items: center; }
.login-card { width: min(410px, 100%); padding: 30px; border: 1px solid #e4e8ef; border-radius: 18px; background: #fff; box-shadow: 0 22px 70px rgba(20,31,56,.12); }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 25px; }
.login-brand h1 { margin: 0; font-size: 22px; }
.login-brand p { margin: 4px 0 0; color: #7a8494; font-size: 11px; }
.form-stack { display: grid; gap: 15px; }
.prototype-tip { margin-top: 17px; padding: 10px; border-radius: 9px; background: #f7f8ff; color: #5967e8; text-align: center; font-size: 10px; }
@media (max-width: 1100px) { .summary-grid { grid-template-columns: repeat(2, 1fr); } .task-layout { grid-template-columns: 1fr; } .task-side { order: -1; } }
@media (max-width: 780px) { .sidebar { position: static; width: 100%; min-height: auto; } .shell { display: block; } .server-card { display: none; } .main { margin-left: 0; } .topbar { padding: 0 16px; } .page { padding: 18px 15px; } .summary-grid { grid-template-columns: 1fr 1fr; } .form-grid { grid-template-columns: 1fr; } .form-full { grid-column: auto; } .page-head { align-items: stretch; flex-direction: column; } .toolbar { align-items: stretch; flex-direction: column; } .search-box { width: 100%; } }
