:root {
  --navy: #0b1630;
  --navy-2: #111e3b;
  --ink: #152037;
  --muted: #778198;
  --line: #e7eaf0;
  --panel: #ffffff;
  --canvas: #f5f7fb;
  --blue: #3867e8;
  --blue-dark: #2453d5;
  --cyan: #31b6c9;
  --green: #22a06b;
  --amber: #e49b24;
  --red: #df5b62;
  --shadow: 0 8px 28px rgba(24, 38, 72, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 246px; padding: 30px 18px 22px; background: var(--navy); color: #dce4f7; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 11px 30px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg, #4f7df0, #2858dc); display: flex; gap: 3px; align-items: flex-end; justify-content: center; padding: 9px; box-shadow: 0 8px 18px rgba(38, 86, 220, .35); }
.brand-mark span { width: 4px; border-radius: 5px; background: white; opacity: .95; }
.brand-mark span:nth-child(1) { height: 10px; }.brand-mark span:nth-child(2) { height: 20px; }.brand-mark span:nth-child(3) { height: 15px; }
.brand strong { color: #fff; display: block; font-size: 15px; letter-spacing: .2px; }.brand small { color: #8291af; font-size: 11px; }
.nav-list { display: grid; gap: 5px; }
.nav-item, .quick-filter { width: 100%; border: 0; background: transparent; color: #99a7c1; border-radius: 9px; text-align: left; display: flex; align-items: center; gap: 12px; transition: .18s ease; }
.nav-item { padding: 11px 13px; font-size: 14px; }.nav-item:hover, .quick-filter:hover { color: #fff; background: rgba(255,255,255,.05); }.nav-item.active { color: #fff; background: #263757; box-shadow: inset 3px 0 #5d84ef; }
.nav-icon { width: 18px; text-align: center; font-size: 17px; }.nav-item em { margin-left: auto; font-style: normal; background: rgba(255,255,255,.1); color: #b7c4db; border-radius: 12px; padding: 2px 8px; font-size: 11px; }
.sidebar-section { border-top: 1px solid rgba(255,255,255,.08); margin-top: 25px; padding: 22px 8px 0; }.sidebar-section > p { color: #667694; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; margin: 0 0 10px 8px; }
.quick-filter { padding: 9px 10px; font-size: 13px; }.dot { width: 7px; height: 7px; border-radius: 50%; }.dot.running { background: #53b8ff; }.dot.done { background: #36c490; }.dot.waiting { background: #f0ac3f; }
.sidebar-card { margin-top: auto; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px; }.server-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }.pulse { width: 7px; height: 7px; background: #39d59c; border-radius: 50%; box-shadow: 0 0 0 4px rgba(57,213,156,.1); }.sidebar-card p { color: #7585a3; font-size: 10px; margin: 7px 0 12px 15px; }.server-bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 5px; overflow: hidden; }.server-bar span { display: block; height: 100%; width: 0; background: #4e7aea; transition: width .4s; }.sidebar-card small { color: #7f8da7; display: block; margin-top: 8px; font-size: 10px; }.sidebar-card small b { color: #cdd6e8; }

.main { margin-left: 246px; min-width: 0; flex: 1; }.topbar { position: sticky; top: 0; z-index: 20; height: 72px; padding: 0 36px; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 12px; }.breadcrumb span, .breadcrumb b { color: #a0a8b8; font-weight: 500; }.breadcrumb strong { color: #48536a; }
.top-actions { display: flex; align-items: center; gap: 9px; }.global-search { height: 38px; min-width: 294px; border: 1px solid #e1e5ed; background: #f8f9fb; border-radius: 8px; display: flex; align-items: center; padding: 0 10px; gap: 8px; color: #8893a7; }.global-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 12px; color: var(--ink); }.global-search kbd { white-space: nowrap; border: 1px solid #d8dce5; border-radius: 4px; padding: 2px 5px; font-size: 9px; color: #9ca4b3; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.04); }.icon-button { width: 38px; height: 38px; border: 1px solid #e2e6ed; background: white; border-radius: 8px; color: #647087; font-size: 17px; }.icon-button:hover { color: var(--blue); border-color: #b9c9f3; }.menu-button { display: none; }.avatar { width: 35px; height: 35px; margin-left: 3px; border-radius: 50%; background: linear-gradient(145deg, #d8e2fd, #acc2f6); color: #294c9c; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.content { padding: 34px 38px 60px; max-width: 1540px; margin: auto; }.view { display: none; }.view.active { display: block; animation: rise .22s ease; }@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }.page-heading.compact { margin-bottom: 24px; }.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 1.7px; }.page-heading h1 { font-family: Georgia, "Songti SC", serif; font-size: 29px; margin: 0 0 7px; letter-spacing: -.6px; }.page-heading > div > p:last-child { color: var(--muted); font-size: 13px; margin: 0; }.primary-button, .secondary-button, .danger-button { border-radius: 8px; padding: 10px 16px; font-size: 12px; font-weight: 650; border: 1px solid transparent; }.primary-button { color: #fff; background: var(--blue); box-shadow: 0 5px 13px rgba(56,103,232,.18); }.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }.primary-button span { margin-right: 6px; font-size: 16px; }.secondary-button { color: #5e6a80; background: #fff; border-color: #dfe3eb; }.secondary-button:hover { border-color: #b9c6df; color: var(--blue); }.danger-button { color: var(--red); background: #fff5f5; border-color: #f7d3d5; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }.metric-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 19px; box-shadow: 0 3px 13px rgba(28,41,70,.035); }.metric-top { display: flex; align-items: center; justify-content: space-between; }.metric-card p { margin: 0; font-size: 11px; color: var(--muted); }.metric-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; }.metric-icon.blue { background: #edf2ff; color: var(--blue); }.metric-icon.green { background: #eaf8f3; color: var(--green); }.metric-icon.amber { background: #fff5e5; color: var(--amber); }.metric-icon.cyan { background: #e8f8fa; color: #1594a5; }.metric-value { display: flex; align-items: baseline; gap: 8px; margin: 11px 0 8px; }.metric-value strong { font-family: Georgia, serif; font-size: 27px; }.metric-value span { font-size: 10px; color: var(--green); font-weight: 700; }.mini-progress { height: 3px; background: #eef0f4; border-radius: 4px; overflow: hidden; }.mini-progress i { display: block; height: 100%; border-radius: 4px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .8fr); gap: 18px; margin-bottom: 18px; }.activity-panel, .gpu-panel { padding: 20px 22px 17px; min-height: 295px; }.panel-head { display: flex; justify-content: space-between; align-items: flex-start; }.panel-head h2 { font-family: Georgia, "Songti SC", serif; font-size: 16px; margin: 0 0 5px; }.panel-head p { margin: 0; color: #98a0af; font-size: 10px; }.range-chip { font-size: 10px; color: #7d8798; background: #f7f8fa; border: 1px solid #e8eaf0; padding: 6px 9px; border-radius: 6px; }.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--blue); font-size: 10px; font-weight: 650; }
.activity-chart { height: 205px; padding-top: 22px; position: relative; }.chart-area { height: 100%; position: relative; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 13px; padding: 0 10px 25px 37px; border-bottom: 1px solid #edf0f4; }.chart-grid { position: absolute; inset: 0 10px 25px 37px; background: repeating-linear-gradient(to top, #edf0f4 0 1px, transparent 1px 42px); pointer-events: none; }.chart-labels-y { position: absolute; left: 0; top: 0; bottom: 25px; display: flex; flex-direction: column; justify-content: space-between; color: #a0a8b5; font-size: 9px; }.bar-group { height: 100%; z-index: 1; display: flex; align-items: flex-end; justify-content: center; position: relative; }.bar { width: min(28px, 55%); min-height: 3px; border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, #4875e8, #6e94f0); transition: height .4s ease; }.bar:hover { filter: brightness(1.07); }.bar-group label { position: absolute; top: calc(100% + 8px); font-size: 9px; color: #929baa; white-space: nowrap; }.bar-count { position: absolute; bottom: calc(var(--h) + 5px); color: #657189; font-size: 9px; opacity: 0; transition: opacity .2s; }.bar-group:hover .bar-count { opacity: 1; }
.gpu-donut-wrap { display: flex; align-items: center; justify-content: space-around; height: 218px; }.donut { --pct: 0; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--blue) calc(var(--pct) * 1%), #e8ecf4 0); display: grid; place-items: center; }.donut::before { content: ""; grid-area: 1/1; width: 91px; height: 91px; background: white; border-radius: 50%; }.donut div { grid-area: 1/1; z-index: 1; text-align: center; }.donut strong { display: block; font-family: Georgia, serif; font-size: 22px; }.donut span { color: #99a1b0; font-size: 9px; }.donut-legend { min-width: 100px; }.donut-legend > div { display: grid; grid-template-columns: 10px 1fr auto; gap: 7px; align-items: center; margin: 14px 0; font-size: 10px; color: #7f899b; }.donut-legend strong { font-size: 10px; color: #3b465c; }.legend { width: 7px; height: 7px; border-radius: 2px; }.legend.used { background: var(--blue); }.legend.free { background: #e0e5ef; }
.recent-panel { padding: 20px 22px 5px; }.table-wrap { overflow-x: auto; }.recent-panel table, .records-panel table { width: 100%; border-collapse: collapse; margin-top: 12px; text-align: left; }.recent-panel th, .records-panel th { padding: 10px 12px; border-bottom: 1px solid #ebedf2; color: #959dab; font-size: 9px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }.recent-panel td, .records-panel td { padding: 13px 12px; border-bottom: 1px solid #f0f1f4; font-size: 11px; vertical-align: middle; }.recent-panel tbody tr:last-child td, .records-panel tbody tr:last-child td { border-bottom: 0; }.recent-panel tbody tr:hover, .records-panel tbody tr:hover { background: #fafbfe; }.model-cell { display: flex; align-items: center; gap: 10px; }.model-badge { width: 31px; height: 31px; flex: none; border-radius: 8px; background: #edf2ff; color: var(--blue); display: grid; place-items: center; font-size: 9px; font-weight: 800; }.model-cell strong { display: block; font-size: 11px; }.model-cell small { color: #9ca4b2; font-size: 9px; }.owner-cell { display: flex; align-items: center; gap: 7px; }.owner-avatar { width: 24px; height: 24px; border-radius: 50%; color: white; background: var(--avatar, #6380c5); display: grid; place-items: center; font-size: 9px; font-weight: 700; }.task-cell { max-width: 250px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #5f6a7f; }.gpu-chips { display: flex; flex-wrap: wrap; gap: 3px; }.gpu-chip { background: #eef2f8; color: #526079; border-radius: 5px; padding: 3px 6px; font-size: 9px; font-weight: 700; }.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 12px; font-size: 9px; font-weight: 650; white-space: nowrap; }.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }.status-running { background: #ebf3ff; color: #3275d7; }.status-running::before { background: #3d8be9; }.status-done { background: #eaf8f3; color: #19885c; }.status-done::before { background: #24aa73; }.status-waiting { background: #fff6e6; color: #af7414; }.status-waiting::before { background: #e8a02c; }.status-paused { background: #f2f3f6; color: #737d90; }.status-paused::before { background: #9299a6; }.row-action { width: 28px; height: 28px; background: transparent; border: 0; border-radius: 6px; color: #939bab; }.row-action:hover { background: #eef2fb; color: var(--blue); }

.records-panel { min-height: 500px; padding: 18px 20px; }.record-toolbar { display: flex; justify-content: space-between; gap: 15px; align-items: center; }.toolbar-search { width: min(320px, 100%); display: flex; align-items: center; gap: 8px; border: 1px solid #e1e5ec; border-radius: 8px; padding: 0 11px; height: 38px; color: #8b95a7; }.toolbar-search input { width: 100%; border: 0; outline: 0; font-size: 11px; }.filter-group { display: flex; gap: 8px; }.filter-group select { border: 1px solid #e1e5ec; background: white; border-radius: 8px; padding: 0 30px 0 11px; height: 38px; font-size: 11px; color: #637086; outline: 0; }.result-count { margin-top: 16px; padding: 9px 4px 0; border-top: 1px solid #eef0f3; color: #8e97a7; font-size: 10px; }.records-table { min-height: 340px; }.records-table td { padding-top: 15px; padding-bottom: 15px; }.empty-state { text-align: center; padding: 70px 20px; }.empty-state > div { width: 50px; height: 50px; display: grid; place-items: center; margin: auto; border-radius: 50%; background: #eef2fb; color: var(--blue); font-size: 25px; }.empty-state h3 { font-size: 14px; margin: 14px 0 5px; }.empty-state p { color: var(--muted); font-size: 11px; }
.gpu-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }.gpu-summary-card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 12px; }.gpu-summary-card span { color: var(--muted); font-size: 11px; }.gpu-summary-card strong { display: block; font-family: Georgia, serif; font-size: 28px; margin-top: 7px; }.gpu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }.gpu-card { min-height: 190px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 17px; position: relative; overflow: hidden; }.gpu-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #dfe4ed; }.gpu-card.busy::before { background: var(--blue); }.gpu-card-head { display: flex; justify-content: space-between; align-items: flex-start; }.gpu-card-head strong { font-family: Georgia, serif; font-size: 16px; }.gpu-state { font-size: 9px; padding: 4px 7px; border-radius: 10px; background: #eef8f4; color: var(--green); }.gpu-card.busy .gpu-state { background: #eef3ff; color: var(--blue); }.gpu-memory { margin: 26px 0 18px; }.gpu-memory div { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); margin-bottom: 7px; }.memory-bar { height: 6px; background: #edf0f5; border-radius: 5px; overflow: hidden; }.memory-bar i { display: block; height: 100%; background: var(--blue); border-radius: 5px; }.gpu-assignment { padding-top: 13px; border-top: 1px solid #eff1f4; }.gpu-assignment small { color: #9aa2b0; display: block; font-size: 9px; }.gpu-assignment strong { display: block; margin-top: 4px; font-size: 11px; }.gpu-assignment span { color: #768196; font-size: 9px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; padding: 4vh 20px; background: rgba(7,14,31,.56); backdrop-filter: blur(4px); overflow-y: auto; }.modal-backdrop[hidden] { display: none; }.modal { width: min(760px, 100%); margin: auto; background: white; border-radius: 14px; box-shadow: 0 25px 70px rgba(5,14,35,.25); }.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }.modal-head h2 { font-family: Georgia, "Songti SC", serif; font-size: 21px; margin: 0; }.modal-close { border: 0; background: #f3f5f8; color: #788296; width: 31px; height: 31px; border-radius: 8px; font-size: 20px; }.form-section { padding: 22px 26px; border-bottom: 1px solid #eef0f4; }.form-section h3 { margin: 0 0 17px; font-size: 12px; }.form-section h3 span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 7px; border-radius: 6px; background: #edf2ff; color: var(--blue); font-size: 9px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.form-grid label { color: #59657a; font-size: 10px; font-weight: 650; }.form-grid label b { color: var(--red); }.form-grid input, .form-grid select, .form-grid textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #dde2eb; border-radius: 7px; outline: 0; color: var(--ink); background: white; font-size: 11px; line-height: 1.5; resize: vertical; transition: .15s; }.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #7d9beb; box-shadow: 0 0 0 3px rgba(56,103,232,.09); }.span-2 { grid-column: span 2; }.modal-actions { position: sticky; bottom: -4vh; display: flex; gap: 9px; align-items: center; padding: 16px 26px; background: white; border-radius: 0 0 14px 14px; box-shadow: 0 -8px 20px rgba(28,40,68,.04); }.action-spacer { flex: 1; }
.toast { position: fixed; z-index: 70; right: 26px; bottom: 24px; padding: 11px 16px; background: #14213b; color: white; border-radius: 8px; box-shadow: 0 10px 30px rgba(10,20,40,.25); font-size: 11px; transform: translateY(90px); opacity: 0; transition: .25s; }.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1100px) { .metrics { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.gpu-panel { min-height: auto; }.gpu-donut-wrap { height: 190px; }.gpu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: 10px 0 30px rgba(0,0,0,.2); }.sidebar.open { transform: translateX(0); }.main { margin-left: 0; }.menu-button { display: inline-block; }.topbar { padding: 0 18px; }.breadcrumb { display: none; }.global-search { min-width: 0; width: min(280px, 45vw); }.global-search kbd { display: none; }.content { padding: 25px 18px 45px; }.record-toolbar { align-items: stretch; flex-direction: column; }.filter-group { flex-wrap: wrap; }.gpu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 570px) { .topbar { gap: 8px; }.top-actions { gap: 5px; }.global-search { width: 42vw; }.top-actions .icon-button { display: none; }.page-heading { align-items: flex-start; gap: 18px; }.page-heading h1 { font-size: 25px; }.page-heading > div > p:last-child { display: none; }.primary-button { white-space: nowrap; }.metrics { grid-template-columns: 1fr 1fr; gap: 10px; }.metric-card { padding: 14px; }.metric-value strong { font-size: 23px; }.activity-panel, .gpu-panel, .recent-panel { padding: 16px 14px; }.gpu-summary { grid-template-columns: 1fr; gap: 10px; }.gpu-grid { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.span-2 { grid-column: span 1; }.modal-backdrop { padding: 0; }.modal { border-radius: 0; min-height: 100vh; }.modal-actions { bottom: 0; }.danger-button { padding-left: 10px; padding-right: 10px; } }

[hidden] { display: none !important; }
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: white; }
.auth-visual { min-height: 100vh; padding: 48px 7vw; color: white; background: radial-gradient(circle at 80% 18%, rgba(65,111,231,.35), transparent 30%), linear-gradient(145deg, #081329, #10254d); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-visual::after { content: ""; position: absolute; width: 500px; height: 500px; right: -170px; bottom: -210px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 15px; }.auth-brand .brand-mark { width: 36px; height: 36px; }
.auth-copy { margin: auto 0; max-width: 570px; position: relative; z-index: 1; }.auth-copy .eyebrow { color: #78a0ff; }.auth-copy h1 { font: 500 clamp(42px,5vw,68px)/1.2 Georgia, "Songti SC", serif; letter-spacing: -2px; margin: 14px 0 25px; }.auth-copy > p:last-child { color: #9cabca; max-width: 430px; line-height: 1.9; font-size: 14px; }
.auth-feature-row { display: flex; gap: 55px; color: #526688; font-size: 10px; letter-spacing: 1px; position: relative; z-index: 1; }.auth-feature-row b { display: block; margin-top: 7px; color: #bcc9df; font-size: 12px; letter-spacing: 0; }
.auth-panel { display: grid; place-items: center; padding: 40px; }.auth-box { width: min(390px, 100%); }.auth-box h2 { font: 500 28px Georgia, "Songti SC", serif; margin: 8px 0; }.auth-box > p:not(.eyebrow) { color: var(--muted); font-size: 12px; }.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin: 32px 0 22px; }.auth-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 11px; color: #8a94a7; font-size: 12px; }.auth-tabs button.active { color: var(--blue); border-color: var(--blue); font-weight: 700; }
#authForm label { display: block; margin-bottom: 15px; color: #59657a; font-size: 11px; font-weight: 650; }#authForm input { width: 100%; display: block; margin-top: 7px; padding: 12px; border: 1px solid #dce1ea; border-radius: 8px; outline: 0; font-size: 12px; }#authForm input:focus { border-color: #7798ed; box-shadow: 0 0 0 3px rgba(56,103,232,.09); }.auth-submit { width: 100%; margin-top: 6px; padding: 12px; }.auth-error { min-height: 18px; color: var(--red) !important; text-align: center; margin: 10px 0 0; }.first-admin-note { display: flex; gap: 10px; margin-top: 20px; padding: 12px; border-radius: 8px; background: #fff7e8; color: #9a6817; font-size: 10px; }.first-admin-note b { white-space: nowrap; }
.sidebar-user { display: grid; grid-template-columns: 30px 1fr 26px; align-items: center; gap: 9px; margin-top: 12px; padding: 11px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }.sidebar-user .owner-avatar { width: 30px; height: 30px; }.sidebar-user strong { color: white; display: block; max-width: 115px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }.sidebar-user small { color: #7585a3; font-size: 9px; }.sidebar-user button { border: 0; background: transparent; color: #7585a3; font-size: 16px; }.sidebar-user button:hover { color: white; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }.admin-panel { min-height: 260px; padding: 21px; }.inline-form, .grant-form { display: flex; gap: 8px; margin: 20px 0 16px; }.inline-form input, .grant-form select { min-width: 0; flex: 1; border: 1px solid #dfe3eb; border-radius: 8px; padding: 9px 10px; outline: 0; color: #59657a; font-size: 11px; }.grant-form { align-items: center; }.grant-form span { color: var(--blue); }.group-list, .grant-list { display: flex; flex-wrap: wrap; gap: 8px; }.group-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f5f7fb; border: 1px solid #e7eaf1; border-radius: 7px; font-size: 10px; }.group-item strong { color: #42506a; }.group-item span { color: #919bab; }.grant-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #dfe6f7; background: #f5f8ff; border-radius: 7px; color: #52617d; font-size: 10px; }.grant-item button { border: 0; background: transparent; color: #a0a8b6; padding: 0; }.grant-item button:hover { color: var(--red); }.members-panel { padding: 20px 22px 8px; }.members-panel table { width: 100%; border-collapse: collapse; margin-top: 15px; }.members-panel th { padding: 10px 12px; color: #959dab; border-bottom: 1px solid #e9ecf2; text-align: left; font-size: 9px; }.members-panel td { padding: 13px 12px; border-bottom: 1px solid #eef0f4; font-size: 11px; }.members-panel select { border: 1px solid #dfe3eb; border-radius: 7px; background: white; padding: 7px 28px 7px 9px; color: #5f6b80; font-size: 10px; }.role-badge { padding: 4px 7px; border-radius: 10px; background: #eef2fa; color: #66758e; font-size: 9px; }.role-badge.admin { background: #edf2ff; color: var(--blue); }.permission-hint { color: #96a0b1; font-size: 9px; }

@media (max-width: 800px) { .auth-screen { grid-template-columns: 1fr; }.auth-visual { display: none; }.auth-panel { min-height: 100vh; padding: 28px; }.admin-grid { grid-template-columns: 1fr; } }

.status-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; padding: 3px; border: 1px solid #dde2eb; background: #f5f7fa; border-radius: 8px; }
.status-switch button { border: 0; border-radius: 5px; padding: 7px 4px; background: transparent; color: #7f899b; font-size: 10px; }
.status-switch button.active { color: white; background: var(--blue); box-shadow: 0 2px 7px rgba(56,103,232,.2); }
.status-switch button[data-status="已完成"].active { background: var(--green); }.status-switch button[data-status="已暂停"].active { background: #7b8596; }
.table-status-select { border: 0; border-radius: 13px; padding: 5px 22px 5px 9px; outline: 0; font-size: 9px; font-weight: 650; cursor: pointer; }
.table-status-select.status-running { background: #ebf3ff; color: #3275d7; }.table-status-select.status-done { background: #eaf8f3; color: #19885c; }.table-status-select.status-paused { background: #f2f3f6; color: #737d90; }
.config-upload { position: relative; display: flex; align-items: center; gap: 11px; margin-top: 6px; padding: 14px; border: 1px dashed #bdc9df; border-radius: 8px; background: #fafbfe; overflow: hidden; }
.config-upload:hover { border-color: #7798ed; background: #f6f8ff; }.config-upload input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }.config-upload-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #eaf0ff; color: var(--blue); font-size: 18px; }.config-upload b, .config-attached b { display: block; color: #48556c; font-size: 11px; }.config-upload small, .config-attached small { display: block; margin-top: 3px; color: #98a1b0; font-size: 9px; font-weight: 400; }
.config-attached { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 6px; padding: 11px; border: 1px solid #dfe5f0; border-radius: 8px; background: #f8faff; }.config-file-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: #e9f0ff; color: var(--blue); font: 700 10px monospace; }.config-attached > span:nth-child(2) { min-width: 0; }.config-attached b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.config-actions { display: flex; gap: 4px; }.config-actions button, .config-chip { border: 0; border-radius: 5px; padding: 5px 7px; background: #edf2fc; color: #4165b5; font-size: 9px; }.config-actions button:hover, .config-chip:hover { background: #dfe9fb; }.config-actions button:last-child { color: #a3595e; background: #fff1f1; }
.config-viewer-backdrop { z-index: 60; }.config-viewer { width: min(820px,100%); margin: auto; background: white; border-radius: 14px; box-shadow: 0 25px 70px rgba(5,14,35,.3); overflow: hidden; }.config-viewer pre { min-height: 360px; max-height: 65vh; margin: 0; padding: 22px 25px; overflow: auto; background: #0d172b; color: #cbd8ef; font: 11px/1.7 "SFMono-Regular", Consolas, monospace; white-space: pre; tab-size: 2; }.config-lines { color: #8d97a8; font-size: 10px; }
.gpu-card { min-height: 145px; }.gpu-assignment { margin-top: 28px; }

@media (max-width: 570px) { .config-attached { grid-template-columns: 36px 1fr; }.config-actions { grid-column: 1 / -1; }.config-viewer { min-height: 100vh; border-radius: 0; }.config-viewer pre { max-height: calc(100vh - 145px); }.table-status-select { min-width: 76px; } }
.access-rules { display: grid; gap: 9px; margin-top: 20px; }.access-rules > div { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e7eaf1; background: #f8f9fc; border-radius: 8px; }.access-rules span { color: var(--blue); font-size: 10px; font-weight: 750; }.access-rules p { margin: 0; color: #768197; font-size: 10px; }
