:root{--ui-bg: #f9fafb;--ui-bg-soft: #f3f4f6;--ui-surface: #fff;--ui-surface-strong: #fff;--ui-surface-solid: #fff;--ui-surface-soft: #f3f4f6;--ui-border: #e5e7eb;--ui-border-strong: #d1d5db;--ui-ink: #1f2937;--ui-muted: #4b5563;--ui-subtle: #6b7280;--ui-primary: #1d4ed8;--ui-primary-fill: #2563eb;--ui-primary-soft: #eff6ff;--ui-table-head: #f3f4f6;--ui-shadow-sm: 0 1px 2px #1118270d;--ui-radius-card: 8px;--theme-primary-rgb: 59, 130, 246;--workspace-gutter: 24px;--workspace-sidebar: 240px;--workspace-danger: #a33537;--workspace-danger-bg: #fff1f1;font-family:system-ui,Microsoft YaHei UI,PingFang SC,sans-serif}:root[data-theme=dark]{--ui-bg: #111827;--ui-bg-soft: #17202e;--ui-surface: #1f2937;--ui-surface-strong: #263243;--ui-surface-solid: #1f2937;--ui-surface-soft: #2b3645;--ui-border: #374151;--ui-border-strong: #4b5563;--ui-ink: #f3f4f6;--ui-muted: #b9c2cf;--ui-subtle: #9ca3af;--ui-primary: #93c5fd;--ui-primary-fill: #2563eb;--ui-primary-soft: #223659;--ui-table-head: #263243;--workspace-danger: #f2afb1;--workspace-danger-bg: #42282c}body{background:var(--ui-bg)}h1,h2,h3,.stat .value,.account-level>strong{letter-spacing:0}h2{font-size:16px;font-weight:650}.line-icon{width:18px;height:18px}.shell{grid-template-columns:var(--workspace-sidebar) minmax(0,1fr)}.shell>.sidebar{width:var(--workspace-sidebar);background:var(--ui-bg);border-color:var(--ui-border);gap:10px;padding:10px;box-shadow:none;backdrop-filter:none}.sidebar>:is(.dot-brand,.sidebar-profile,.module-tree){background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;box-shadow:var(--ui-shadow-sm)}.sidebar>.dot-brand{display:flex;align-items:center;flex-shrink:0;min-height:54px;padding:10px 12px;gap:10px;color:var(--ui-primary)}.brand-icon,.login-brand-icon{background:var(--ui-primary-soft);color:var(--ui-primary)}.brand-icon .line-icon{width:18px;height:18px}.dot-brand strong{font-size:15px;font-weight:700}.sidebar .sidebar-close{display:none;margin-left:auto;border:0;color:var(--ui-muted)}.sidebar>.module-tree{padding:9px;gap:3px;min-height:0}.module-tree .nav-group{color:var(--ui-muted);font-size:11px;padding:0 10px;margin:11px 0 5px}.module-tree .nav-group:not(:first-child){margin-top:21px}.module-tree :is(.module-link.module-direct,.module-toggle){min-height:39px;justify-content:flex-start;gap:10px;padding:7px 10px;border-radius:6px;color:var(--ui-muted);font-size:13px;font-weight:500}.module-tree button.module-link.active,[data-theme=dark] .module-tree button.module-link.active{box-shadow:var(--ui-shadow-sm);color:#fff;background:var(--ui-primary-fill);font-weight:650}.module-tree .module-link:hover:not(.active),.module-tree .module-toggle:hover{transform:none;box-shadow:none}.module-chevron .line-icon{width:14px;height:14px}.module-links{max-height:none;overflow:visible;margin:3px 0 5px 18px;padding-left:9px}.sidebar-profile{position:relative;z-index:2;flex-shrink:0;padding:8px}.sidebar-profile .user-menu{padding:0;border:none;box-shadow:none}.sidebar-profile summary{background:var(--ui-bg-soft);min-width:0}.sidebar-profile summary:hover{background:var(--ui-surface-soft)}.sidebar-profile summary span:nth-child(2){min-width:0}.sidebar-profile summary strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-profile .user-avatar{border-radius:50%;background:var(--ui-primary-soft);color:var(--ui-primary)}.sidebar-profile .user-popover{top:calc(100% + 6px);bottom:auto;width:100%}.main{margin:0;max-width:none;padding:0 var(--workspace-gutter) 32px}.topbar{position:sticky;top:0;z-index:8;height:auto;min-height:64px;margin:0 calc(-1 * var(--workspace-gutter)) 0;padding:9px var(--workspace-gutter);flex-wrap:nowrap;border-bottom:1px solid var(--ui-border);background:var(--ui-surface)}.top-location,.top-controls{display:flex;align-items:center;gap:8px;min-width:0}.top-title{white-space:normal}.top-controls{flex:0 1 auto}.toolbar-add,.refresh-button,.tool-button{display:inline-flex;justify-content:center;align-items:center;gap:7px;white-space:nowrap}.toolbar-add .line-icon,.refresh-button .line-icon{width:15px;height:15px}.topbar .tool-button,.tool-button{width:34px;height:34px;padding:0;flex-shrink:0}.topbar .mobile-menu{display:none}.theme-button{border:0;color:var(--ui-muted)}.theme-button svg:nth-child(2),[data-theme=dark] .theme-button svg:first-child{display:none}[data-theme=dark] .theme-button svg:nth-child(2){display:inline-block}.workspace{max-width:1460px;margin:0 auto;padding-top:24px}#content>:is(.heading,.card,.grid){animation:none}.heading{gap:14px;margin:0 0 17px;min-height:34px}.heading h1{font-size:25px;font-weight:700;line-height:1.35;letter-spacing:0;margin:0}.heading p{font-size:13px;margin:4px 0 0}.card,.stat{border-radius:8px;box-shadow:var(--ui-shadow-sm);transition:none}.card:hover,.stat:hover{border-color:var(--ui-border);box-shadow:var(--ui-shadow-sm)}.card .card{box-shadow:none}.card-head{margin-bottom:14px}.section-note{font-size:12px}button{padding:7px 12px;min-height:34px;border-radius:6px;font-weight:500;transition:none}button.small{min-height:30px;padding:5px 9px}button:hover:not(:disabled){box-shadow:none;border-color:var(--ui-border-strong);background:var(--ui-surface-soft)}button:active:not(:disabled){transform:none}button.primary,[data-theme=dark] button.primary{box-shadow:none;background:var(--ui-primary-fill);border-color:var(--ui-primary-fill);color:#fff}button.primary:hover:not(:disabled){background:color-mix(in srgb,var(--ui-primary-fill),#000 12%)}button.danger{color:var(--workspace-danger)}button.danger:hover:not(:disabled){background:var(--workspace-danger-bg)}input:not([type=checkbox],[type=radio],[type=range]),select,textarea{font-size:13px;border-radius:6px}:is(a,button,summary,input,select,textarea):focus-visible{outline:2px solid var(--ui-primary);outline-offset:2px}.tabs{gap:5px}.tabs button{min-height:37px}.tabs button.active,[data-theme=dark] .subnav button.active{color:var(--ui-primary);background:var(--ui-primary-soft)}.table-wrap{border:1px solid var(--ui-border);border-radius:7px}table{font-size:13px}th,td{border-color:var(--ui-border);padding:10px 12px}th,.card-table th{color:var(--ui-muted);background:var(--ui-surface-soft);font-size:12px;font-weight:650}.badge{border-radius:4px;padding:3px 7px;font-size:11px;background:var(--ui-surface-soft);color:var(--ui-muted)}.badge.online{background:#dcfce7;color:#166534}[data-theme=dark] .badge.online{background:#153b32;color:#86efac}.badge.stopped{background:var(--ui-bg-soft);color:var(--ui-muted)}.badge.error,.error-box{background:var(--workspace-danger-bg);color:var(--workspace-danger)}dialog{border-radius:8px;border-color:var(--ui-border);padding:22px;background:var(--ui-surface)}dialog::backdrop{backdrop-filter:none;background:#121b2666}.modal-header{padding-bottom:13px;border-bottom:1px solid var(--ui-border);margin-bottom:16px}.modal-header h2{margin:0}.login-card{width:min(100%,760px);display:grid;grid-template-columns:2fr 3fr;overflow:hidden;padding:0;border-radius:16px;box-shadow:var(--ui-shadow-sm)}.login-brand-panel{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:13px;padding:24px;background:var(--ui-primary-fill);color:#fff}.login-brand-panel strong{font-size:23px}.login-form-panel{padding:30px;min-width:0}.login-brand{margin-bottom:20px}.login-brand h1{margin:0}.login-brand-icon{width:40px;height:40px;border-radius:8px;background:#ffffff32;color:inherit}.login-brand-icon .line-icon{width:22px;height:22px}.login-version{justify-content:flex-end}.empty{padding:30px 14px}.empty h3{font-size:14px;margin:0}.empty p{margin:3px 0 0}.empty button{margin-top:13px}.workspace-empty{border:1px dashed var(--ui-border-strong);border-radius:8px;margin-bottom:22px}.farm-tabs{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 18px;padding:6px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);overflow:visible}.farm-tabs-primary{display:flex;flex-wrap:wrap;gap:4px}.farm-tabs button,.farm-more summary{border:0;background:transparent;min-height:33px;color:var(--ui-muted);font-size:13px;padding:6px 9px;border-radius:6px}.farm-tabs .active{background:var(--ui-primary-soft);color:var(--ui-primary);font-weight:650}.farm-tabs :is(.farm-tabs-primary,.farm-nav-more)>.active{background:var(--ui-primary-fill);color:#fff}.farm-more{position:relative;flex-shrink:0}.farm-more summary{display:flex;align-items:center;gap:6px;cursor:pointer}.farm-more summary::-webkit-details-marker{display:none}.farm-more summary .line-icon{width:14px;height:14px}.farm-more[open] summary{color:var(--ui-primary)}.farm-more-menu{position:absolute;z-index:5;right:0;top:calc(100% + 5px);width:min(280px,calc(100vw - 28px));display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:7px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);box-shadow:0 8px 24px #151e2822}.farm-more-menu button{text-align:left}.metric-shared{display:flex;align-items:center;gap:20px;padding:12px 16px;background:var(--ui-surface-soft);border:1px solid var(--ui-border);border-radius:8px;margin:0 0 14px}.metric-shared .card-head{display:grid;flex:0 0 auto;gap:3px;margin:0}.metric-shared h2,.account-metric h2{display:flex;align-items:center;gap:8px}.metric-shared small{color:var(--ui-muted)}.metric-shared .account-currencies{border:0;flex:1 1 auto;padding:0}.metric-shared .account-currencies>div{padding:1px 12px;border-left:1px solid var(--ui-border-strong)}.account-currencies>div{gap:5px}.account-currencies span{color:var(--ui-muted)}.account-currencies img{width:21px;height:21px}.global-metrics{gap:16px}.global-metrics>.account-metric{display:flex;flex-direction:column;padding:16px}.global-metrics>.account-metric,.global-logs.card{border-radius:16px}.account-metric.card{border-top:1px solid var(--ui-border)}.account-metric .card-head .line-icon,.global-logs h2 .line-icon{width:28px;height:28px;padding:6px;border-radius:8px;color:var(--ui-primary);background:var(--ui-primary-soft);flex:none}.metric-ranch .card-head .line-icon,.global-logs h2 .line-icon{color:var(--ui-warning);background:var(--ui-warning-soft)}.metric-pet .card-head .line-icon{color:var(--ui-violet);background:var(--ui-violet-soft)}.account-level,.account-experience{margin:9px 0}.account-level>strong{font-size:25px}.account-currencies{padding-top:12px}.account-currencies strong,.account-level strong,.account-experience strong,.pet-overview-metrics strong,td{font-variant-numeric:tabular-nums}.metric-freshness{margin-top:12px;font-size:11px;color:var(--ui-muted)}.metric-footer{display:flex;align-items:flex-start;justify-content:flex-end;gap:8px;margin-top:auto;padding-top:12px}.metric-footer .metric-freshness{margin:4px auto 0 0}.metric-link{display:inline-flex;gap:4px;align-items:center;min-height:25px;padding:2px 4px;border:0;font-size:12px;color:var(--ui-primary);white-space:nowrap}.metric-link .line-icon{width:13px;height:13px}.farm-module-summary .metric-freshness{grid-column:1/-1;margin-top:0}.metric-freshness summary{cursor:pointer;width:max-content}.metric-freshness .section-note{margin:4px 0 0}.pet-overview-name{margin:6px 0 9px}.pet-overview-name>strong{font-size:15px}.pet-overview-metrics,.pet-overview-vitals{gap:8px 12px}.pet-overview-metrics{padding-bottom:10px}.pet-overview-metrics strong{font-size:18px}.pet-overview-vitals{padding-top:10px}.pet-overview-vitals>div{grid-template-columns:1fr auto;gap:4px}.pet-overview-vitals strong{font-size:11px}.pet-overview-vitals progress{grid-column:1/-1;margin:0}.global-logs .card-head{margin-bottom:8px}.global-logs h2{display:flex;align-items:center;gap:8px}.global-logs .feed.compact-feed{padding:0 10px;min-height:0;background:var(--ui-bg);border:1px solid var(--ui-border)}.feed .log-line{display:flex;align-items:baseline;gap:7px;padding:8px 4px;border-color:var(--ui-border)}.feed .log-line time{color:var(--ui-muted);font-variant-numeric:tabular-nums}.feed .log-line .feed-message{font-size:12px}.log-filter select{min-width:68px}@media(min-width:761px)and (max-width:1099px){.global-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1100px){.global-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.global-metrics .metric-pet{grid-column:auto}}@media(max-width:760px){:root{--workspace-gutter: 12px}.shell>.sidebar{visibility:hidden}.shell>.sidebar.open{visibility:visible}.sidebar .sidebar-close{display:inline-flex}.topbar{min-height:56px;gap:7px}.topbar .mobile-menu{display:inline-flex}.workspace{padding-top:17px}.heading h1{font-size:21px}.heading>div:first-child{flex:1 1 auto}.global-metrics{grid-template-columns:1fr}.global-logs .card-head>.row{width:auto}.metric-shared{padding:11px;gap:8px}.metric-shared h2{font-size:14px}.metric-shared h2 .line-icon{display:none}.metric-shared .account-currencies{gap:5px}.metric-shared .account-currencies>div{padding-inline:7px 0}.metric-shared .account-currencies strong{font-size:17px}.farm-tabs-primary{gap:2px}.farm-tabs button,.farm-more summary{padding-inline:7px;font-size:12px}}@media(max-width:390px){.toolbar-add{width:34px;padding:0}.toolbar-add span{display:none}}@media(max-width:600px){.login-card{grid-template-columns:minmax(0,1fr);max-width:420px}.login-brand-panel{flex-direction:row;justify-content:flex-start;align-items:center;padding:12px 20px}.login-brand-panel strong{font-size:17px}.login-brand-panel .login-brand-icon{width:32px;height:32px}.login-form-panel{padding:20px}}
