:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: #24292f; background: #f5f6f8; font-synthesis: none; font-size: 14px; --blue: #1677d2; --blue-soft: #eaf4ff; --border: #e2e5e9; --muted: #707983; --green: #27824c; --red: #c92e3b; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
button:disabled { opacity: .4; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; display: block; flex-shrink: 0; }
img { display: block; }
button svg { pointer-events: none; }
[hidden] { display: none !important; }
button, input, textarea, select, a { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); }
input:not([type="checkbox"]):not([type="file"]), textarea, select { min-width: 0; max-width: 100%; border: 1px solid #cfd5dc; border-radius: 4px; background: #fff; padding: 8px 10px; line-height: 1.5; }
input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--blue); cursor: pointer; }
textarea { resize: vertical; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; line-height: 1.5; min-width: 0; }
.checkbox-label { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.muted { color: var(--muted); font-size: 12px; }
.app-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--border); overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 82px; padding: 14px 18px; font-size: 15px; font-weight: 650; color: #1266b5; border-bottom: 1px solid #edf3fa; }
.brand img, .login-brand img { flex-shrink: 0; }
.brand-name { display: block; min-width: 0; line-height: 1.55; overflow-wrap: anywhere; }
.brand-line { display: block; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; min-height: 42px; margin-top: 10px; padding: 0 18px; color: var(--muted); font-size: 11px; }
.sidebar-heading .icon-button { width: 26px; height: 26px; flex-basis: 26px; }
.server-mark { color: #8a949f; font-size: 9px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 39px; padding: 9px 18px; background: transparent; text-align: left; font-size: 12px; border-right: 3px solid transparent; }
.nav-item:hover { background: #f5f7fa; }
.nav-item.selected { color: var(--blue); background: var(--blue-soft); border-right-color: var(--blue); }
.nav-item svg { width: 16px; height: 16px; }
.nav-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { margin-left: auto; font-size: 10px; color: var(--muted); min-width: 20px; text-align: right; }
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: #97a2ae; flex-shrink: 0; }
.selected .tag-dot { background: var(--blue); }
.tag-nav { padding-bottom: 18px; }
.sidebar-empty { padding: 8px 18px; font-size: 12px; color: #8f99a4; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--border); padding: 10px 0; flex-shrink: 0; }
.role-label { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 53px; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 22px; }
.topbar-leading, .topbar-actions, .inline-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; min-width: 0; }
.breadcrumbs strong { color: #4c5560; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs > span { color: #bbc3cd; }
.connection-status { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: #2e9959; }
.connection-status.offline .connection-dot { background: #d29326; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 4px; background: transparent; color: #707b87; }
.icon-button:hover:not(:disabled) { color: var(--blue); background: var(--blue-soft); }
.icon-button svg { width: 16px; height: 16px; }
.icon-button.bordered { border: 1px solid #cfd5dc; background: #fff; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 34px; padding: 7px 13px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.button svg { width: 15px; height: 15px; }
.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.button.primary:hover:not(:disabled) { background: #0867bd; }
.button.secondary { background: #fff; border-color: #cfd5dc; }
.button.secondary:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.button.danger { background: var(--red); color: #fff; }
.button.danger-quiet { background: transparent; color: var(--red); padding-left: 0; }
.text-button { color: var(--blue); background: transparent; padding: 3px 5px; font-size: 12px; }
.content { padding: 0 26px 28px; max-width: 1800px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 25px 0 22px; }
.heading-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; min-width: 0; }
h1 { margin: 0; font-size: 21px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.page-summary { margin: 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.heading-actions { display: flex; gap: 8px; flex-shrink: 0; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.tabs { display: flex; flex-wrap: wrap; gap: 0 20px; align-self: stretch; min-width: 0; max-width: 100%; }
.tab { position: relative; display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 0 11px; font-size: 13px; background: transparent; white-space: nowrap; }
.tab.active { color: var(--blue); }
.tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--blue); }
.tab span { display: inline-block; min-width: 20px; padding: 1px 5px; border-radius: 3px; background: #e8ebef; color: #77818d; text-align: center; font-size: 10px; }
.tab.active span { background: var(--blue-soft); color: var(--blue); }
.search-field { display: flex; flex-direction: row; align-items: center; width: 265px; gap: 7px; margin-bottom: 10px; border: 1px solid #cfd5dc; border-radius: 4px; background: #fff; padding: 0 10px; }
.search-field svg { width: 15px; height: 15px; color: #8b96a2; }
.search-field input { width: 100%; border: 0 !important; padding: 7px 0 !important; background: transparent !important; outline: none; font-size: 12px; }
.search-field:focus-within { outline: 2px solid #1677d22a; border-color: var(--blue); }
.view-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 51px; padding: 10px 0; }
.filter-summary { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; min-width: 0; }
.filter-chip { display: inline-flex; gap: 5px; align-items: center; max-width: 180px; color: var(--blue); border: 1px solid #badbfa; border-radius: 3px; background: var(--blue-soft); padding: 2px 6px; }
.filter-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-chip svg { width: 12px; height: 12px; }
.view-controls { display: flex; gap: 16px; flex-shrink: 0; }
.view-controls label { flex-direction: row; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.view-controls select { padding: 2px 4px; border: 0; background: transparent; font-size: 11px; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.site-card { display: flex; flex-direction: column; min-width: 0; min-height: 224px; background: #fff; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.card-main { flex: 1; padding: 17px 17px 14px; min-width: 0; }
.card-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.site-symbol { width: 33px; height: 33px; flex: 0 0 33px; display: flex; align-items: center; justify-content: center; color: #27824c; background: #eff8f1; border-radius: 4px; }
.site-symbol.dynamic { color: #9a6b1c; background: #fff7e7; }
.site-symbol.workstation { color: #1677d2; background: #edf5fe; }
.workstation-origin { display: inline-flex; align-items: center; gap: 5px; color: #62788d; font-size: 10px; }
.workstation-origin svg { width: 13px; height: 13px; }
.workstation-open { min-height: 28px; padding: 4px 8px; }
.card-title-group { flex: 1; min-width: 0; }
.card-title { display: block; max-width: 100%; text-align: left; font-size: 13px; font-weight: 600; line-height: 1.6; background: transparent; padding: 0; overflow-wrap: anywhere; }
a.card-title:hover { color: var(--blue); }
.owner-line { margin-top: 3px; color: #89939e; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; min-width: 52px; padding-top: 3px; font-size: 10px; color: #7b8792; }
.status-pill::before { content: ''; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #aab1ba; }
.status-pill.running { color: #27824c; }
.status-pill.running::before { background: #34a064; }
.status-pill.failed, .status-pill.interrupted { color: var(--red); }
.status-pill.failed::before, .status-pill.interrupted::before { background: var(--red); }
.status-pill.starting, .status-pill.stopping { color: #b27a1e; }
.status-pill.starting::before, .status-pill.stopping::before { background: #d39732; }
.card-description { margin: 0 0 12px; color: #737e89; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 22px; align-items: center; }
.tag { max-width: 100%; border: 1px solid #e0e8f0; background: #f4f8fc; color: #60758d; border-radius: 3px; font-size: 10px; line-height: 1.5; padding: 2px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-edit { background: transparent; color: #98a1ab; width: 23px; height: 23px; flex-basis: 23px; }
.tag-edit svg { width: 13px; height: 13px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; border-top: 1px solid #edf0f3; padding: 7px 9px 7px 16px; min-height: 46px; }
.share-label { display: flex; flex-direction: row; align-items: center; gap: 6px; color: #76828e; font-size: 10px; white-space: nowrap; }
.share-label input { width: 13px; height: 13px; flex-basis: 13px; }
.share-badge { display: inline-flex; align-items: center; gap: 5px; color: #90723b; font-size: 10px; white-space: nowrap; }
.share-badge svg { width: 13px; height: 13px; }
.card-actions { display: flex; gap: 0; margin-left: auto; }
.card-actions .icon-button { width: 28px; height: 28px; flex-basis: 28px; }
.card-actions .icon-button svg { width: 14px; height: 14px; }
.group-heading { display: flex; align-items: center; gap: 8px; margin: 23px 0 11px; font-size: 12px; font-weight: 600; }
.site-group:first-child .group-heading { margin-top: 0; }
.group-heading span { color: #87919c; font-size: 10px; font-weight: 400; }
.empty-state { padding: 70px 20px 90px; text-align: center; color: #7f8b97; }
.empty-state > svg { margin: 0 auto 16px; width: 36px; height: 36px; color: #a5b3c1; }
.empty-state h2 { font-size: 15px; margin-bottom: 14px; color: #63707d; }
.empty-state p { max-width: 520px; margin: 0 auto 17px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.workstation-loading > svg { animation: workstation-spin 1.6s linear infinite; }
@keyframes workstation-spin { to { transform: rotate(360deg); } }
.load-error { border-left: 3px solid var(--red); background: #fff3f4; padding: 11px 14px; margin-bottom: 15px; color: var(--red); font-size: 12px; overflow-wrap: anywhere; }
.login-view { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #f4f6f8; }
.boot-view { min-height: 100dvh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; }
.login-panel { width: min(100%, 400px); border: 1px solid var(--border); border-top: 3px solid var(--blue); border-radius: 6px; background: #fff; padding: 30px 32px 32px; }
.login-brand { display: flex; gap: 12px; align-items: center; font-size: 18px; font-weight: 650; margin-bottom: 30px; color: #1266b5; }
.login-panel h1 { font-size: 18px; margin-bottom: 22px; }
.login-submit { width: 100%; margin-top: 20px; min-height: 38px; }
dialog { border: 1px solid #dbe0e6; border-radius: 6px; padding: 0; max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); background: #fff; color: #24292f; box-shadow: 0 16px 60px #10243d26; }
dialog::backdrop { background: #1423365c; }
.compact-dialog { width: 460px; }
.wide-dialog { width: 660px; }
.logs-dialog { width: 840px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 22px; border-bottom: 1px solid var(--border); }
.dialog-heading h2 { flex: 1; min-width: 0; }
.dialog-body { padding: 22px; }
.dialog-footer { display: flex; align-items: center; gap: 9px; justify-content: flex-end; border-top: 1px solid var(--border); padding: 14px 22px; }
.footer-spacer { flex: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.span-2 { grid-column: 1 / -1; }
.form-stack { display: flex; flex-direction: column; gap: 17px; }
.form-error { margin: 15px 0 0; padding: 10px 12px; border-radius: 3px; background: #fff2f3; color: #b92232; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.upload-fields { display: flex; flex-direction: column; gap: 17px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.upload-pickers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.file-button { position: relative; cursor: pointer; flex-direction: row; }
.file-button input { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer; }
.file-button:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
#file-summary { flex-basis: 100%; margin-top: 4px; overflow-wrap: anywhere; }
.runtime-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.runtime-fields .checkbox-label { min-height: 38px; }
.upload-progress { margin-top: 16px; display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); }
.upload-progress progress { flex: 1; min-width: 0; accent-color: var(--blue); height: 7px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 9px; color: var(--muted); font-size: 11px; }
.list-heading:first-child { margin-top: 0; }
.selection-list { max-height: 350px; overflow: auto; }
.selection-row { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 9px 0; border-bottom: 1px solid #edf0f3; }
.selection-row:last-child { border-bottom: 0; }
.selection-row label { flex: 1; min-width: 0; }
.selection-row .selection-name { overflow-wrap: anywhere; }
.selection-meta { color: #8c97a3; font-size: 10px; margin-left: auto; flex-shrink: 0; }
.tag-order { display: flex; }
.tag-order .icon-button { width: 26px; height: 26px; flex-basis: 26px; }
#logs-content { background: #20252c; color: #d2dfd8; font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; line-height: 1.8; padding: 22px; margin: 0; min-height: 250px; max-height: 65dvh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.account-details { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 16px; margin: 0 0 24px; font-size: 12px; }
.account-details dt { color: var(--muted); }
.account-details dd { margin: 0; overflow-wrap: anywhere; }
.account-commands { display: flex; gap: 9px; flex-wrap: wrap; }
.users-list { max-height: 60dvh; overflow: auto; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid #edf0f3; }
.user-row:last-child { border-bottom: 0; }
.user-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 4px; color: #557896; background: #eef4f9; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.user-subtitle { margin-top: 5px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.user-disabled { color: var(--red); }
.workstation-permission { margin-top: 5px; color: #7d8791; font-size: 10px; }
.workstation-permission.authorized { color: #1266b5; }
.user-actions { display: flex; flex-shrink: 0; }
.token-owner { font-size: 12px; margin: 0 0 18px; overflow-wrap: anywhere; }
.token-value { width: 100%; font-family: Consolas, monospace; font-size: 12px; }
.token-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; gap: 10px; }
#confirm-message { margin: 0; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.toast-region { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); z-index: 1000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 8px; border: 1px solid var(--border); background: #fff; padding: 12px 17px; border-radius: 5px; box-shadow: 0 5px 20px #24384b1a; font-size: 12px; overflow-wrap: anywhere; }
.toast svg { color: var(--green); width: 16px; height: 16px; }
.toast.error svg { color: var(--red); }
.sidebar-backdrop { display: none; }
#sidebar-toggle { display: none; }
@media (max-width: 1100px) { .app-shell { grid-template-columns: 200px minmax(0, 1fr); } .content { padding-left: 20px; padding-right: 20px; } .heading-title { display: block; } .page-summary { margin-top: 5px; } .brand { padding: 0 15px; font-size: 14px; gap: 8px; } .site-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } .search-field { width: 220px; } .tabs { gap: 0 12px; } }
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; width: 240px; left: 0; top: 0; bottom: 0; z-index: 40; transform: translateX(-100%); transition: transform .15s; }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 30; background: #1423365c; display: block; }
  #sidebar-toggle { display: inline-flex; }
  .topbar { padding: 8px 12px; }
  .topbar-leading, .topbar-actions { gap: 8px; }
  .breadcrumbs { gap: 8px; font-size: 11px; }
  .content { padding: 0 16px 24px; }
  .page-heading { padding: 22px 0 18px; gap: 10px; }
  h1 { font-size: 19px; }
  .toolbar { flex-wrap: wrap; }
  .search-field { width: 100%; order: -1; margin: 0 0 3px; }
  .tabs { min-height: 40px; gap: 0 12px; width: 100%; }
  .tab { padding-bottom: 8px; }
  .view-bar { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
  .view-controls { margin-left: auto; gap: 9px; }
  .site-grid { grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); }
  .site-card { min-height: 213px; }
  .dialog-heading, .dialog-body, .dialog-footer { padding-left: 17px; padding-right: 17px; }
  .dialog-heading { gap: 8px; }
  .dialog-heading .inline-actions { gap: 4px; }
  .selection-list { max-height: 42dvh; }
  .empty-state { padding: 50px 12px; }
}
@media (max-width: 380px) { .content { padding-left: 12px; padding-right: 12px; } .connection-status { font-size: 10px; } .site-grid { grid-template-columns: minmax(0, 1fr); } .login-panel { padding: 25px; } .form-grid, .runtime-fields { grid-template-columns: minmax(0, 1fr); } .dialog-footer { gap: 5px; padding-left: 13px; padding-right: 13px; } .dialog-footer .button { padding: 6px 9px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
