:root {
  color-scheme:light;
  --canvas:#f5f6fa;
  --surface:#fff;
  --surface-alt:#f8f9fc;
  --ink:#273246;
  --muted:#687389;
  --line:#e4e7ee;
  --accent:#6552c8;
  --accent-hover:#5140ad;
  --accent-soft:#eeeafa;
  --green:#247663;
  --green-soft:#edf7f3;
  --amber:#99651d;
  --amber-soft:#fff5e5;
  --red:#af4a54;
  --red-soft:#fbeef0;
  --shadow:0 22px 80px #18234026;
  --radius:12px;
  font-family:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;
  font-synthesis:none
}

@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    color-scheme:dark;
    --canvas:#191d27;
    --surface:#222735;
    --surface-alt:#292f3e;
    --ink:#e6e9f2;
    --muted:#a4aec2;
    --line:#374052;
    --accent:#b2a2ff;
    --accent-hover:#c9bdff;
    --accent-soft:#38314e;
    --green:#87cfba;
    --green-soft:#223e39;
    --amber:#e5bc77;
    --amber-soft:#423727;
    --red:#efadb4;
    --red-soft:#472d38;
    --shadow:0 22px 80px #0006
  }
}

:root[data-theme="dark"] {
  color-scheme:dark;
  --canvas:#191d27;
  --surface:#222735;
  --surface-alt:#292f3e;
  --ink:#e6e9f2;
  --muted:#a4aec2;
  --line:#374052;
  --accent:#b2a2ff;
  --accent-hover:#c9bdff;
  --accent-soft:#38314e;
  --green:#87cfba;
  --green-soft:#223e39;
  --amber:#e5bc77;
  --amber-soft:#423727;
  --red:#efadb4;
  --red-soft:#472d38;
  --shadow:0 22px 80px #0006
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font-size:14px;
  line-height:1.5
}

button,input,select {
  font:inherit
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent
}

button,a {
  touch-action:manipulation
}

button {
  cursor:pointer
}

a {
  color:inherit;
  text-decoration:none
}

button:disabled {
  cursor:not-allowed;
  opacity:.5
}

[hidden] {
  display:none!important
}

h1,h2,h3,p {
  margin:0
}

h1 {
  font-size:30px;
  letter-spacing:-1.1px;
  font-weight:650;
  line-height:1.25
}

h2 {
  font-size:17px;
  letter-spacing:-.35px;
  font-weight:650
}

h3 {
  font-size:14px;
  font-weight:650
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:3px
}

.skip-link {
  position:fixed;
  top:-80px;
  left:16px;
  z-index:20;
  background:var(--surface);
  padding:12px 18px;
  border-radius:8px
}

.skip-link:focus {
  top:12px
}

.icon {
  display:block;
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round
}

.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border:1px solid transparent;
  background:transparent;
  border-radius:8px;
  color:var(--muted);
  flex:none
}

.icon-button:hover {
  background:var(--surface-alt);
  color:var(--ink)
}

.button {
  display:inline-flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 15px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--surface);
  color:var(--ink);
  font-weight:600;
  font-size:13px;
  white-space:nowrap
}

.button:hover {
  background:var(--surface-alt);
  border-color:var(--muted)
}

.button .icon {
  width:17px;
  height:17px
}

.button.primary {
  background:var(--accent);
  border-color:var(--accent);
  color:var(--surface)
}

.button.primary:hover {
  background:var(--accent-hover);
  border-color:var(--accent-hover)
}

:root[data-theme="dark"] .button.primary {
  color:#201a34
}

@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) .button.primary {
    color:#201a34
  }
}

.button.danger {
  background:var(--red);
  color:var(--surface);
  border-color:var(--red)
}

.button.small {
  font-size:12px;
  min-height:32px;
  padding:5px 11px
}

.text-button {
  border:0;
  background:transparent;
  color:var(--accent);
  font-weight:600;
  padding:9px 0;
  font-size:13px
}

.text-button:hover {
  text-decoration:underline
}

.muted {
  color:var(--muted)
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:22px;
  font-weight:750;
  letter-spacing:-.7px;
  white-space:nowrap
}

.brand-light {
  font-weight:400
}

.brand-mark {
  width:33px;
  height:33px;
  display:inline-grid;
  place-items:center;
  background:var(--accent);
  color:var(--surface);
  border-radius:9px;
  font-size:35px;
  font-family:Arial,sans-serif;
  line-height:1;
  padding-bottom:4px;
  transform:rotate(-8deg)
}

.workspace {
  display:flex;
  min-height:100vh
}

.sidebar {
  width:226px;
  flex:none;
  background:var(--surface);
  border-right:1px solid var(--line);
  z-index:3
}

.sidebar-inner {
  position:sticky;
  top:0;
  height:100dvh;
  overflow-y:auto;
  padding:31px 20px 20px;
  display:flex;
  flex-direction:column
}

.sidebar .brand {
  padding-left:6px
}

.workspace-label {
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:11px;
  margin:30px 12px 17px
}

.workspace-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent)
}

nav {
  display:grid;
  gap:5px
}

nav a {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  padding:10px 12px;
  border-radius:7px;
  color:var(--muted);
  font-weight:500
}

nav a:hover {
  background:var(--surface-alt);
  color:var(--ink)
}

nav a[aria-current="page"] {
  color:var(--accent);
  background:var(--accent-soft);
  font-weight:650
}

.nav-count {
  margin-left:auto;
  font-size:11px;
  min-width:22px;
  text-align:center;
  border:1px solid var(--line);
  padding:0 4px;
  border-radius:5px;
  background:var(--surface);
  color:var(--muted)
}

.sidebar-bottom {
  margin-top:auto
}

.preview-tag {
  display:inline-block;
  color:var(--accent);
  background:var(--accent-soft);
  font-size:11px;
  font-weight:600;
  padding:3px 8px;
  border-radius:5px
}

.profile {
  border-top:1px solid var(--line);
  padding-top:20px;
  display:flex;
  align-items:center;
  gap:9px
}

.avatar {
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:12px;
  font-weight:650;
  flex:none
}

.profile strong {
  font-size:10px;
  display:block
}

.profile small {
  font-size:10px;
  color:var(--muted)
}

.profile .icon-button {
  margin-left:auto;
  width:26px
}

.main-shell {
  min-width:0;
  width:calc(100% - 226px);
  min-height:100vh;
  display:flex;
  flex-direction:column
}

.topbar {
  height:75px;
  padding:0 40px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--surface)
}

.breadcrumb {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:12px;
  color:var(--muted)
}

.breadcrumb strong {
  font-weight:500;
  color:var(--ink)
}

.breadcrumb>span {
  color:var(--line);
  font-size:17px
}

.topbar-actions {
  display:flex;
  align-items:center;
  gap:15px
}

.content {
  width:100%;
  max-width:1440px;
  padding:36px 40px 26px;
  margin:0 auto;
  flex:1
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px
}

.page-heading p {
  margin-top:7px;
  color:var(--muted);
  font-size:13px
}

.date-range {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--muted);
  background:var(--surface);
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  white-space:nowrap
}

.date-range .icon {
  width:16px;
  height:16px
}

.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px 0;
  margin-bottom:24px
}

.metric {
  padding:0 24px;
  border-right:1px solid var(--line)
}

.metric:last-child {
  border:0
}

.metric-label {
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:7px
}

.metric-label .icon {
  width:15px;
  height:15px
}

.metric-value {
  font-size:32px;
  font-weight:600;
  line-height:1.4;
  letter-spacing:-1.3px;
  font-variant-numeric:tabular-nums;
  margin:7px 0 4px
}

.metric-value small {
  font-size:18px;
  letter-spacing:-.3px;
  margin-left:2px;
  font-weight:400;
  color:var(--muted)
}

.metric-foot {
  font-size:11px;
  color:var(--muted)
}

.metric-foot .positive {
  color:var(--green)
}

.dashboard-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 286px;
  gap:24px;
  margin-bottom:26px
}

.panel {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden
}

.panel-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:21px 24px
}

.panel-heading p {
  font-size:12px;
  color:var(--muted);
  margin-top:4px
}

.legend {
  display:flex;
  gap:14px;
  font-size:10px;
  color:var(--muted)
}

.legend span {
  display:flex;
  align-items:center;
  gap:5px;
  white-space:nowrap
}

.legend i {
  height:7px;
  width:7px;
  background:var(--accent);
  border-radius:2px
}

.legend .other i {
  background:var(--accent-soft);
  border:1px solid var(--line)
}

.chart {
  height:188px;
  display:flex;
  margin:3px 24px 0 20px;
  gap:16px
}

.chart-axis {
  width:23px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding-bottom:26px;
  font-size:10px;
  color:var(--muted);
  text-align:right
}

.chart-plot {
  position:relative;
  flex:1;
  min-width:0
}

.chart-grid {
  position:absolute;
  inset:0 0 26px;
  display:flex;
  flex-direction:column;
  justify-content:space-between
}

.chart-grid i {
  border-top:1px dashed var(--line)
}

.bars {
  position:relative;
  display:flex;
  justify-content:space-around;
  gap:12px;
  height:100%;
  align-items:flex-end
}

.bar-column {
  height:100%;
  display:flex;
  align-items:center;
  flex-direction:column;
  justify-content:flex-end;
  flex:1;
  min-width:0
}

.bar-wrap {
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  height:162px;
  width:min(100%,34px)
}

.bar {
  width:100%;
  display:flex;
  flex-direction:column;
  border-radius:4px 4px 0 0;
  overflow:hidden;
  background:var(--accent-soft);
  min-height:1px
}

.bar-ok {
  margin-top:auto;
  background:var(--accent);
  width:100%
}

.bar-label {
  height:26px;
  padding-top:8px;
  font-size:10px;
  color:var(--muted);
  white-space:nowrap
}

.bar-tooltip {
  opacity:0;
  position:absolute;
  bottom:calc(100% + 6px);
  left:50%;
  transform:translateX(-50%);
  background:var(--ink);
  color:var(--surface);
  padding:6px 9px;
  border-radius:5px;
  font-size:10px;
  white-space:nowrap;
  pointer-events:none;
  z-index:2
}

.bar-wrap:hover .bar-tooltip,.bar-wrap:focus .bar-tooltip {
  opacity:1
}

.chart-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:16px 24px 0;
  padding:15px 0;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--muted)
}

.chart-footer strong {
  color:var(--ink);
  font-weight:600
}

.worker-panel {
  display:flex;
  flex-direction:column;
  background:var(--green-soft);
  border-color:color-mix(in srgb,var(--green) 15%,var(--line))
}

.worker-panel .panel-heading {
  padding:21px 22px 13px
}

.status {
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  font-size:11px;
  font-weight:550;
  padding:3px 8px;
  border-radius:5px;
  color:var(--muted);
  background:var(--surface-alt)
}

.status:before {
  content:"";
  height:5px;
  width:5px;
  border-radius:50%;
  background:currentColor
}

.status.done,.status.active {
  color:var(--green);
  background:var(--green-soft)
}

.status.running {
  color:var(--accent);
  background:var(--accent-soft)
}

.status.queued,.status.blocked {
  color:var(--amber);
  background:var(--amber-soft)
}

.status.failed,.status.revoked,.status.disabled {
  color:var(--red);
  background:var(--red-soft)
}

.worker-state {
  display:flex;
  align-items:center;
  gap:10px;
  padding:4px 22px 18px
}

.heartbeat-symbol {
  height:38px;
  width:38px;
  display:grid;
  place-items:center;
  background:var(--surface);
  border-radius:10px;
  color:var(--green)
}

.worker-state strong {
  font-size:15px;
  color:var(--green);
  font-weight:600
}

.worker-state p {
  font-size:11px;
  color:var(--muted);
  margin-top:2px
}

.worker-facts {
  padding:0 22px;
  display:grid;
  gap:11px
}

.worker-facts div {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:11px
}

.worker-facts dt {
  color:var(--muted)
}

.worker-facts dd {
  margin:0;
  font-weight:500
}

.current-job {
  margin:auto 22px 20px;
  padding:13px 0 0;
  border-top:1px solid color-mix(in srgb,var(--green) 16%,var(--line));
  font-size:11px
}

.current-job span {
  color:var(--muted);
  display:block;
  margin-bottom:4px
}

.current-job strong {
  font-weight:600
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0 0 13px;
  gap:12px
}

.section-heading h2 {
  font-size:17px
}

.section-heading p {
  font-size:12px;
  color:var(--muted)
}

.data-table {
  border-collapse:collapse;
  width:100%;
  font-size:12px;
  text-align:left
}

.data-table th {
  font-size:10px;
  font-weight:500;
  color:var(--muted);
  background:var(--surface-alt);
  padding:12px 20px;
  border-bottom:1px solid var(--line)
}

.data-table td {
  padding:15px 20px;
  border-bottom:1px solid var(--line);
  vertical-align:middle
}

.data-table tbody tr:last-child td {
  border-bottom:0
}

.data-table td:last-child,.data-table th:last-child {
  text-align:right
}

.data-table tbody tr:hover {
  background:var(--surface-alt)
}

.target-cell {
  min-width:140px;
  max-width:320px
}

.target-name {
  display:flex;
  align-items:center;
  gap:9px;
  font-weight:550;
  overflow-wrap:anywhere
}

.host-icon {
  display:grid;
  place-items:center;
  height:28px;
  width:28px;
  flex:none;
  border-radius:7px;
  background:var(--surface-alt);
  color:var(--muted)
}

.host-icon .icon {
  height:15px;
  width:15px
}

.target-detail {
  font-size:10px;
  color:var(--muted);
  margin-top:3px;
  max-width:250px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding-left:37px
}

.table-user {
  color:var(--muted);
  font-size:11px
}

.table-time {
  font-variant-numeric:tabular-nums;
  color:var(--muted);
  white-space:nowrap;
  font-size:11px
}

.row-action {
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:11px;
  font-weight:600;
  color:var(--accent);
  background:none;
  border:0;
  padding:7px 0
}

.row-action .icon {
  width:14px;
  height:14px
}

.row-action:hover {
  text-decoration:underline
}

.table-footer {
  border-top:1px solid var(--line);
  padding:13px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:11px
}

.pagination {
  display:flex;
  gap:18px
}

.app-footer {
  max-width:1440px;
  width:100%;
  margin:auto auto 0;
  padding:18px 40px 25px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:var(--muted);
  font-size:10px
}

.app-footer>span:last-child {
  display:flex;
  gap:8px
}

.filters {
  display:flex;
  gap:14px;
  align-items:flex-end;
  margin-bottom:20px;
  padding:17px 20px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius)
}

.filter-field {
  display:grid;
  gap:6px;
  flex:1;
  min-width:0
}

.filter-field label {
  font-size:11px;
  font-weight:550;
  color:var(--muted)
}

input,select {
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:7px;
  min-height:40px;
  width:100%;
  padding:9px 12px
}

input::placeholder {
  color:var(--muted);
  opacity:.8
}

input:hover,select:hover {
  border-color:var(--muted)
}

select {
  appearance:none;
  padding-right:36px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23768092' stroke-width='1.7'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 10px center
}

.filter-reset {
  font-size:12px;
  padding:10px 4px;
  white-space:nowrap
}

.empty-state {
  padding:65px 24px;
  text-align:center
}

.empty-state .icon {
  width:28px;
  height:28px;
  margin:0 auto 13px;
  color:var(--muted)
}

.empty-state h2 {
  margin-bottom:7px
}

.empty-state p {
  color:var(--muted);
  font-size:13px
}

.user-cell {
  display:flex;
  align-items:center;
  gap:10px
}

.user-cell strong {
  font-weight:600
}

.user-cell small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:2px
}

.key-label {
  font-weight:600
}

.key-prefix {
  color:var(--muted);
  font-family:Consolas,monospace;
  font-size:11px;
  margin-top:4px
}

.intro-note {
  display:flex;
  align-items:flex-start;
  gap:9px;
  font-size:12px;
  color:var(--muted);
  margin:0 0 20px
}

.intro-note .icon {
  width:17px;
  height:17px;
  flex:none;
  margin-top:1px
}

.login-layout {
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 1fr
}

.login-intro {
  background:var(--accent-soft);
  padding:44px 56px;
  display:flex;
  flex-direction:column
}

.login-message {
  margin:auto 0;
  max-width:450px;
  padding:55px 0
}

.login-message h1 {
  font-size:49px;
  line-height:1.15;
  letter-spacing:-2px;
  margin:22px 0
}

.login-message p {
  font-size:16px;
  color:var(--muted);
  line-height:1.8
}

.login-foot {
  font-size:11px;
  color:var(--muted)
}

.login-lines {
  height:100px;
  display:flex;
  align-items:flex-end;
  gap:9px;
  margin-top:45px
}

.login-lines i {
  display:block;
  width:26px;
  height:42%;
  background:var(--accent);
  opacity:.5;
  border-radius:4px 4px 0 0
}

.login-lines i:nth-child(2) {
  height:65%
}

.login-lines i:nth-child(3) {
  height:53%;
  opacity:.65
}

.login-lines i:nth-child(4) {
  height:75%;
  opacity:.65
}

.login-lines i:nth-child(5) {
  height:62%;
  opacity:.8
}

.login-lines i:nth-child(6) {
  height:88%;
  opacity:.8
}

.login-lines i:nth-child(7) {
  height:72%;
  opacity:.9
}

.login-lines i:nth-child(8) {
  height:100%;
  opacity:1
}

.login-lines i:nth-child(9) {
  height:92%;
  opacity:1
}

.login-main {
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background:var(--surface);
  padding:45px
}

.login-form {
  width:100%;
  max-width:350px
}

.login-form h2 {
  font-size:27px;
  letter-spacing:-.8px
}

.login-form>p {
  color:var(--muted);
  margin-top:7px
}

.login-form label {
  font-size:12px;
  font-weight:600;
  display:block;
  margin:17px 0 7px
}

.login-submit {
  width:100%;
  margin-top:25px
}

.login-form .login-note {
  font-size:11px;
  text-align:center;
  line-height:1.8;
  margin-top:28px
}

.form-error {
  font-size:12px!important;
  color:var(--red)!important
}

.login-version {
  position:absolute;
  bottom:26px;
  font-size:11px;
  color:var(--muted)
}

dialog {
  width:min(520px,calc(100vw - 32px));
  padding:0;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  color:var(--ink);
  box-shadow:var(--shadow);
  max-height:calc(100dvh - 32px)
}

dialog::backdrop {
  background:#18203061;
  backdrop-filter:blur(3px)
}

.modal-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:27px 28px 0
}

.modal-header h2 {
  font-size:23px;
  letter-spacing:-.6px;
  margin-top:9px
}

.modal-header .icon-button {
  margin:-8px -9px 0 0
}

.modal-emblem {
  display:grid;
  place-items:center;
  background:var(--accent-soft);
  color:var(--accent);
  width:43px;
  height:43px;
  border-radius:12px;
  margin-bottom:17px
}

.modal-emblem .icon {
  width:23px;
  height:23px
}

.modal-body {
  padding:13px 28px 26px
}

.modal-description {
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
  margin-bottom:23px
}

.modal-form {
  display:grid;
  gap:17px
}

.field label {
  display:block;
  font-size:12px;
  font-weight:600;
  margin-bottom:7px
}

.field small {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:6px
}

.form-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}

.modal-actions {
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:24px
}

.modal-actions .button {
  min-width:94px
}

.key-reveal {
  padding:17px;
  background:var(--surface-alt);
  border:1px solid var(--line);
  border-radius:9px
}

.key-reveal label {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-bottom:10px
}

.key-reveal code {
  display:block;
  font-family:Consolas,monospace;
  font-size:14px;
  line-height:1.8;
  overflow-wrap:anywhere;
  letter-spacing:.15px;
  user-select:all
}

.key-reveal .button {
  width:100%;
  margin-top:14px;
  background:var(--surface)
}

.key-warning {
  display:flex;
  gap:9px;
  margin:20px 0 0;
  padding:12px;
  background:var(--amber-soft);
  border-radius:8px;
  font-size:11px;
  color:var(--amber);
  line-height:1.65
}

.key-warning .icon {
  width:18px;
  flex:none
}

.created-key-meta {
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:16px 0;
  color:var(--muted);
  border-bottom:1px solid var(--line)
}

.created-key-meta strong {
  color:var(--ink);
  font-weight:550
}

.result-facts {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
  margin-bottom:20px
}

.result-facts dt {
  font-size:11px;
  color:var(--muted);
  margin-bottom:3px
}

.result-facts dd {
  font-size:12px;
  margin:0;
  overflow-wrap:anywhere
}

.result-json {
  padding:15px;
  background:var(--surface-alt);
  border:1px solid var(--line);
  border-radius:8px;
  font-size:11px;
  line-height:1.6;
  max-height:260px;
  overflow:auto;
  white-space:pre-wrap;
  word-break:break-word
}

.toast {
  position:fixed;
  bottom:24px;
  left:calc(50% + 113px);
  transform:translateX(-50%);
  background:var(--ink);
  color:var(--surface);
  padding:12px 20px;
  max-width:calc(100vw - 36px);
  border-radius:9px;
  box-shadow:var(--shadow);
  font-size:12px;
  z-index:10
}

.screen-reader {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}

.mobile-logout {
  display:none
}

.users-note {
  margin-top:20px
}

.created-key-meta+.key-reveal {
  margin-top:20px
}

.bar-svg {
  overflow:visible
}

@media(min-width:761px) and (max-width:980px) {
  .user-table .hide-mobile,.key-table .table-time {
    display:none
  }
}

@media(min-width:1500px) {
  .content {
    padding-top:44px
  }
  .dashboard-grid {
    grid-template-columns:minmax(0,1fr) 320px
  }
  .chart {
    height:220px
  }
  .bar-wrap {
    height:194px
  }
}

@media(max-width:1200px) {
  .sidebar {
    width:204px
  }
  .sidebar-inner {
    padding-left:14px;
    padding-right:14px
  }
  .main-shell {
    width:calc(100% - 204px)
  }
  .content {
    padding:30px 26px 24px
  }
  .topbar {
    padding:0 26px
  }
  .app-footer {
    padding:18px 26px 25px
  }
  .metric {
    padding:0 18px
  }
  .metric-value {
    font-size:29px
  }
  .dashboard-grid {
    grid-template-columns:minmax(0,1fr) 258px;
    gap:18px
  }
  .data-table td,.data-table th {
    padding-left:15px;
    padding-right:15px
  }
  .data-table .hide-medium {
    display:none
  }
  .toast {
    left:calc(50% + 102px)
  }
}

@media(max-width:980px) {
  .dashboard-grid {
    grid-template-columns:1fr
  }
  .worker-panel {
    display:grid;
    grid-template-columns:1fr 1fr
  }
  .worker-panel .panel-heading {
    grid-column:1
  }
  .worker-state {
    grid-column:1;
    padding-bottom:20px
  }
  .worker-facts {
    grid-column:2;
    grid-row:1/3;
    align-content:center
  }
  .current-job {
    display:none
  }
  .metric {
    padding:0 15px
  }
  .metric-label {
    font-size:11px
  }
  .metric-label .icon {
    display:none
  }
  .metric-value {
    font-size:25px
  }
  .metric-foot {
    font-size:10px
  }
  .legend {
    gap:8px
  }
  .table-time {
    font-size:10px
  }
  .data-table .hide-tablet {
    display:none
  }
  .login-intro {
    padding:35px
  }
  .login-message h1 {
    font-size:40px
  }
  .profile strong {
    font-size:10px
  }
  .filters {
    gap:10px;
    padding:15px
  }
  .filters select {
    font-size:12px
  }
}

@media(max-width:760px) {
  .workspace {
    display:block
  }
  .sidebar {
    position:sticky;
    inset:0 0 auto;
    width:100%;
    padding:16px 20px 0;
    display:block;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .sidebar .brand {
    font-size:21px;
    padding:0
  }
  .sidebar-inner {
    position:static;
    height:auto;
    overflow:visible;
    display:block;
    padding:0
  }
  .brand-mark {
    height:30px;
    width:30px;
    font-size:32px
  }
  .workspace-label,.sidebar-bottom {
    display:none
  }
  nav {
    display:flex;
    gap:7px;
    justify-content:space-between;
    margin-top:15px
  }
  nav a {
    padding:10px 9px 13px;
    gap:7px;
    min-height:44px;
    border-radius:0;
    border-bottom:2px solid transparent;
    font-size:12px
  }
  nav a[aria-current="page"] {
    background:none;
    border-color:var(--accent)
  }
  nav a .icon {
    width:17px;
    height:17px
  }
  .nav-count {
    display:none
  }
  .main-shell {
    margin:0;
    width:100%;
    min-height:calc(100dvh - 108px)
  }
  .topbar {
    height:45px;
    padding:0 22px
  }
  .breadcrumb {
    font-size:10px;
    gap:8px
  }
  .topbar-actions {
    gap:8px
  }
  .topbar .icon-button {
    height:30px;
    width:30px
  }
  .topbar .icon {
    height:17px;
    width:17px
  }
  .content {
    padding:27px 22px 16px
  }
  .page-heading {
    margin-bottom:22px;
    align-items:flex-start;
    gap:14px
  }
  h1 {
    font-size:28px;
    letter-spacing:-.9px
  }
  .page-heading p {
    font-size:12px;
    line-height:1.6
  }
  .page-heading .date-range {
    display:none
  }
  .page-heading .button {
    padding:8px 12px;
    font-size:12px;
    min-height:36px;
    margin-top:1px
  }
  .metrics {
    grid-template-columns:1fr 1fr;
    padding:0;
    margin-bottom:20px
  }
  .metric {
    padding:19px
  }
  .metric:nth-child(2) {
    border-right:0
  }
  .metric:nth-child(-n+2) {
    border-bottom:1px solid var(--line)
  }
  .metric-label {
    font-size:11px
  }
  .metric-label .icon {
    display:block
  }
  .metric-value {
    font-size:30px;
    margin-top:4px
  }
  .metric-foot {
    font-size:10px
  }
  .dashboard-grid {
    gap:20px;
    margin-bottom:24px
  }
  .panel-heading {
    padding:20px
  }
  .panel-heading h2 {
    font-size:16px
  }
  .legend {
    font-size:9px;
    gap:9px
  }
  .chart {
    margin-left:14px;
    margin-right:17px;
    gap:12px
  }
  .chart-footer {
    margin-left:20px;
    margin-right:20px;
    font-size:10px
  }
  .bar-label {
    font-size:8px;
    white-space:normal;
    text-align:center;
    line-height:1.15
  }
  .worker-panel {
    grid-template-columns:1fr 1fr
  }
  .worker-panel .panel-heading {
    padding:19px 20px 10px
  }
  .worker-state {
    padding:0 20px 21px;
    gap:8px
  }
  .worker-state strong {
    font-size:13px
  }
  .worker-state p {
    font-size:10px
  }
  .heartbeat-symbol {
    width:30px;
    height:30px;
    border-radius:8px
  }
  .worker-facts {
    padding:0 20px 0 0;
    gap:9px
  }
  .worker-facts div {
    font-size:10px
  }
  .filters {
    display:grid;
    grid-template-columns:1fr 1fr;
    padding:14px;
    gap:12px;
    margin-bottom:17px
  }
  .filter-field:last-of-type {
    grid-column:1/3
  }
  .filters select {
    min-height:40px;
    font-size:12px
  }
  .filter-reset {
    grid-column:1/3;
    padding:3px 0;
    text-align:left;
    justify-self:start;
    font-size:11px
  }
  .filters .filter-field label {
    font-size:10px
  }
  .section-heading h2 {
    font-size:16px
  }
  .data-table.responsive-table,.responsive-table tbody {
    display:block
  }
  .responsive-table thead {
    display:none
  }
  .responsive-table tbody tr {
    display:grid;
    grid-template-columns:1fr auto;
    padding:16px 18px;
    gap:9px 10px;
    border-bottom:1px solid var(--line);
    align-items:center
  }
  .responsive-table tbody tr:last-child {
    border-bottom:0
  }
  .data-table.responsive-table td {
    padding:0;
    border:0;
    display:block
  }
  .responsive-table td.target-cell {
    grid-column:1;
    grid-row:1;
    max-width:100%;
    min-width:0
  }
  .responsive-table td.status-cell {
    grid-column:2;
    grid-row:1
  }
  .responsive-table .target-name {
    font-size:12px;
    gap:8px
  }
  .responsive-table .target-detail {
    font-size:10px;
    max-width:185px;
    padding-left:0;
    margin-top:5px
  }
  .responsive-table .host-icon {
    display:none
  }
  .responsive-table td.table-user {
    grid-column:1;
    grid-row:2;
    font-size:10px
  }
  .responsive-table td.table-time {
    grid-column:1;
    grid-row:3;
    font-size:10px
  }
  .responsive-table td.action-cell {
    grid-column:2;
    grid-row:2/4;
    align-self:end
  }
  .responsive-table .row-action {
    font-size:11px;
    padding:5px 0
  }
  .responsive-table td.hide-mobile,.responsive-table td.hide-medium,.responsive-table td.hide-tablet {
    display:none
  }
  .table-footer {
    padding:12px 18px;
    font-size:10px
  }
  .user-table td:first-child,.key-table td:first-child {
    grid-column:1;
    grid-row:1
  }
  .user-table .status-cell,.key-table .status-cell {
    grid-column:2;
    grid-row:1
  }
  .user-table .detail-cell,.key-table .detail-cell {
    grid-column:1;
    grid-row:2;
    color:var(--muted);
    font-size:10px
  }
  .user-table .action-cell,.key-table .action-cell {
    grid-column:2;
    grid-row:2/4
  }
  .key-table .table-user {
    grid-column:1;
    grid-row:2
  }
  .key-table .table-time {
    grid-column:1;
    grid-row:3
  }
  .key-prefix {
    font-size:10px
  }
  .user-cell small {
    max-width:180px;
    overflow-wrap:anywhere
  }
  .app-footer {
    padding:18px 22px 22px;
    font-size:9px;
    flex-wrap:wrap;
    gap:5px
  }
  .toast {
    left:50%;
    width:max-content
  }
  .intro-note {
    font-size:11px;
    line-height:1.7
  }
  .login-layout {
    display:block
  }
  .login-intro {
    padding:28px 28px 24px;
    background:var(--canvas)
  }
  .login-message,.login-foot {
    display:none
  }
  .login-main {
    min-height:calc(100dvh - 82px);
    padding:30px 28px 90px;
    align-items:flex-start
  }
  .login-form {
    margin:20px auto 0;
    max-width:390px
  }
  .login-version {
    bottom:24px
  }
  .modal-header {
    padding:23px 23px 0
  }
  .modal-body {
    padding:13px 23px 23px
  }
  .modal-header h2 {
    font-size:22px
  }
  .key-reveal code {
    font-size:12px
  }
  .form-row {
    gap:12px
  }
  .modal-description {
    font-size:12px
  }
}

@media(max-width:760px) {
  .mobile-logout {
    display:inline-flex
  }
}

@media(max-width:380px) {
  nav {
    gap:0
  }
  nav a {
    gap:5px;
    padding:10px 4px 13px;
    font-size:11px;
    white-space:nowrap
  }
  .responsive-table tbody tr {
    grid-template-columns:minmax(0,1fr) auto
  }
  .user-cell {
    min-width:0;
    gap:7px
  }
  .user-cell strong,.key-label {
    overflow-wrap:anywhere
  }
  .user-cell .avatar {
    display:none
  }
  .worker-panel .preview-tag {
    display:none
  }
}

@media(prefers-reduced-motion:no-preference) {
  button,a,input,select {
    transition:background-color .15s,border-color .15s,color .15s
  }
  .toast {
    animation:appear .18s ease-out
  }
  dialog[open] {
    animation:appear .18s ease-out
  }
  @keyframes appear {
    from {
      opacity:0;
      translate:0 6px
    }
    to {
      opacity:1;
      translate:0 0
    }
  }
}
