.automation-workspace{display:flex;flex-direction:column;gap:16px;max-width:1600px;margin:0 auto}
.automation-service-row>.form-note{grid-column:1/-1;margin:0;overflow-wrap:anywhere}
.automation-service-row[aria-busy="true"] .automation-badge{white-space:normal}
.automation-spinner{display:inline-block;width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:automation-spin 1s linear infinite}
@keyframes automation-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.automation-spinner{animation:none}}
.automation-head{display:flex;align-items:flex-start;gap:16px}.automation-head h1{font-size:24px;margin-bottom:5px}.automation-head p{color:var(--text-secondary);max-width:780px}.automation-head-actions{margin-left:auto;display:flex;gap:8px}
.automation-back{display:inline-flex;align-items:center;gap:7px;color:var(--text-secondary);font-size:12px;margin-bottom:2px}.automation-back:hover{color:var(--text-primary)}
.automation-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.automation-feature-wrap{min-width:0;display:flex;flex-direction:column;gap:7px}.automation-feature-wrap .automation-feature{width:100%;flex:1}
.automation-feature{padding:20px;text-align:left;min-height:180px;display:flex;flex-direction:column;gap:12px;transition:transform .16s,border-color .16s,background .16s}.automation-feature:not(:disabled):hover{transform:translateY(-2px);border-color:var(--accent);background:var(--surface-hover)}.automation-feature:disabled{cursor:not-allowed;opacity:.72}.automation-feature-access{padding:0 8px;color:var(--text-secondary);font-size:11px;line-height:1.4}.automation-feature-access strong{color:var(--text)}.automation-feature .automation-open svg{width:14px;height:14px;vertical-align:-3px}
.automation-feature-icon,.automation-round-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:var(--accent-soft);color:var(--accent-hover)}.automation-feature-icon svg{width:23px;height:23px}.automation-feature h2{font-size:17px}.automation-feature p{color:var(--text-secondary);font-size:12px;line-height:1.55}.automation-feature .automation-open{margin-top:auto;color:var(--accent-hover);font-weight:700;font-size:12px}
.automation-feature.directory .automation-feature-icon{color:var(--purple);background:color-mix(in srgb,var(--purple) 13%,var(--surface-solid))}.automation-feature.actions .automation-feature-icon{color:var(--success);background:var(--success-bg)}.automation-feature.history .automation-feature-icon{color:var(--warning);background:var(--warning-bg)}
.automation-status{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px 0}.automation-status-item{padding:12px 16px;border-right:1px solid var(--border-subtle)}.automation-status-item:last-child{border-right:0}.automation-status-item small{display:block;color:var(--text-muted);font-size:10px;text-transform:uppercase;letter-spacing:.7px}.automation-status-item strong{display:flex;align-items:center;gap:7px;margin-top:7px;font-size:12px}.automation-status-item .dot{width:8px;height:8px}
.automation-dashboard-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}.automation-block{padding:17px;min-width:0}.automation-block-head{display:flex;align-items:center;gap:10px;margin-bottom:13px}.automation-block-head h2{font-size:15px}.automation-block-head .button{margin-left:auto}
.automation-event,.automation-device-row{display:flex;align-items:center;gap:11px;padding:11px 4px;border-top:1px solid var(--border-subtle)}.automation-event:first-of-type,.automation-device-row:first-of-type{border-top:0}.automation-event-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:var(--surface-2);color:var(--text-secondary)}.automation-event-icon.ok{color:var(--success);background:var(--success-bg)}.automation-event-icon.error,.automation-event-icon.denied{color:var(--danger);background:var(--danger-bg)}.automation-event-main,.automation-device-main{min-width:0;flex:1}.automation-event-main strong,.automation-device-main strong{font-size:12px}.automation-event-main p,.automation-device-main p{font-size:10px;color:var(--text-secondary);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.automation-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;font-size:10px;color:var(--text-secondary);background:var(--surface-2)}.automation-badge.winrm{color:var(--blue);background:var(--accent-soft)}.automation-badge.ssh{color:var(--purple);background:color-mix(in srgb,var(--purple) 12%,var(--surface-solid))}.automation-badge.ok{color:var(--success);background:var(--success-bg)}.automation-badge.error{color:var(--danger);background:var(--danger-bg)}
.automation-toolbar{display:flex;align-items:center;gap:9px}.automation-search{display:flex;align-items:center;gap:8px;min-width:280px;flex:1;background:var(--field-bg);border:1px solid var(--line);border-radius:9px;padding:8px 11px}.automation-search input{border:0;background:transparent;color:var(--text);width:100%}.automation-search svg{color:var(--text-muted)}.automation-toolbar select{min-height:38px;background:var(--field-bg);border:1px solid var(--line);border-radius:9px;color:var(--text);padding:0 10px}
.automation-directory-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;align-items:start}.automation-table-card{overflow:hidden}.automation-table{width:100%;border-collapse:collapse;font-size:11px}.automation-table th{padding:11px 14px;text-align:left;color:var(--text-muted);font-size:9px;text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid var(--line)}.automation-table td{padding:12px 14px;border-bottom:1px solid var(--border-subtle);vertical-align:middle}.automation-table tbody tr:hover,.automation-table tbody tr.selected{background:var(--surface-hover)}.automation-table tbody tr.selected{box-shadow:inset 3px 0 var(--accent)}.automation-table tr:last-child td{border-bottom:0}.automation-person{display:flex;align-items:center;gap:9px}.automation-person-button{width:100%;padding:3px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left}.automation-person-button:hover{background:var(--surface-2)}.automation-person-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.automation-person-avatar{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:var(--accent-soft);color:var(--accent-hover);font-weight:800}.automation-table strong{font-size:11px}.automation-table small{display:block;color:var(--text-muted);margin-top:3px}
.automation-person-panel{padding:18px;position:sticky;top:92px}.automation-person-hero{text-align:center;padding:10px 0 18px;border-bottom:1px solid var(--border-subtle)}.automation-person-hero .automation-person-avatar{width:54px;height:54px;margin:0 auto 10px;border-radius:15px;font-size:18px}.automation-person-hero h2{font-size:17px}.automation-person-hero p{font-size:11px;color:var(--text-secondary);margin-top:5px}.automation-details{display:grid;gap:11px;padding-top:15px}.automation-detail small{display:block;color:var(--text-muted);font-size:9px;text-transform:uppercase;letter-spacing:.5px;margin-bottom:3px}.automation-detail strong{font-size:11px;word-break:break-word}.automation-groups{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.automation-actions-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:14px}.automation-host-list{padding:10px}.automation-host-button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:11px;border-radius:9px;border:1px solid transparent}.automation-host-button:hover,.automation-host-button.active{background:var(--surface-hover);border-color:var(--line)}.automation-host-button.active{border-color:var(--accent);box-shadow:inset 2px 0 var(--accent)}.automation-host-button strong{font-size:11px}.automation-host-button small{display:block;color:var(--text-muted);font-size:9px;margin-top:3px}.automation-host-button .automation-badge{margin-left:auto}
.automation-action-detail{display:flex;flex-direction:column;gap:14px;min-width:0}.automation-host-hero{padding:18px;display:flex;align-items:center;gap:14px}.automation-host-hero h2{font-size:19px}.automation-host-hero p{font-size:11px;color:var(--text-secondary);margin-top:4px}.automation-host-hero .automation-head-actions{align-items:center}
.automation-remote-grid{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:14px}.automation-operations{display:flex;flex-direction:column;gap:14px}.automation-quick{padding:16px;align-self:start;position:sticky;top:92px}.automation-quick h3{margin-bottom:12px}.automation-quick .button{width:100%;margin-top:8px}.automation-warning{padding:12px;border:1px solid color-mix(in srgb,var(--warning) 35%,transparent);background:var(--warning-bg);color:var(--warning);border-radius:9px;font-size:11px;line-height:1.5;margin-top:12px}
.automation-session-row,.automation-service-row{display:grid;grid-template-columns:minmax(0,1fr) 100px auto;align-items:center;gap:10px;padding:11px;border-top:1px solid var(--border-subtle)}.automation-session-row:first-of-type,.automation-service-row:first-of-type{border-top:0}.automation-session-row strong,.automation-service-row strong{font-size:11px}.automation-session-row small,.automation-service-row small{display:block;color:var(--text-muted);font-size:9px;margin-top:3px}.automation-service-actions{display:flex;gap:6px;justify-content:flex-end}
.automation-empty{padding:38px 20px;text-align:center;color:var(--text-secondary)}.automation-empty svg{width:32px;height:32px;margin-bottom:10px;color:var(--text-muted)}.automation-empty h2,.automation-empty h3{color:var(--text);margin-bottom:6px}
.automation-history-filters{display:flex;gap:9px;margin-bottom:12px}.automation-history-filters .automation-search{max-width:520px}.automation-history-filters select{background:var(--field-bg);border:1px solid var(--line);border-radius:9px;color:var(--text);padding:0 10px}
.automation-setup{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px}.automation-steps{padding:10px;align-self:start;position:sticky;top:92px}.automation-step{width:100%;display:flex;align-items:center;gap:10px;padding:12px;border-radius:9px;text-align:left;color:var(--text-secondary)}.automation-step.active{background:var(--accent-soft);color:var(--accent-hover)}.automation-step-number{width:26px;height:26px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:10px;font-weight:800}.automation-step.active .automation-step-number{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.automation-setup-body{padding:20px}.automation-setup-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}.automation-setup-title h2{font-size:19px}.automation-setup-title p{font-size:11px;color:var(--text-secondary);margin-top:5px}.automation-ldap-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}.automation-check-panel{padding:16px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}.automation-check-panel h3{margin-bottom:12px}.automation-check-stage{display:flex;align-items:center;gap:8px;padding:9px 0;border-top:1px solid var(--border-subtle);font-size:11px}.automation-check-stage:first-of-type{border-top:0}.automation-check-stage .dot{margin-left:auto}.automation-setup-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid var(--border-subtle)}
.automation-manage-row{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid var(--border-subtle);border-radius:9px;margin-top:8px;background:var(--surface-2)}.automation-manage-row>div{min-width:0;flex:1}.automation-manage-row strong{font-size:11px}.automation-manage-row p{color:var(--text-muted);font-size:9px;margin-top:3px}.automation-readiness{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.automation-ready-card{padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}.automation-ready-card strong{display:block;font-size:20px;margin:10px 0 4px}.automation-ready-card small{color:var(--text-secondary)}
.automation-profile-editor{align-items:start}.automation-profile-section{min-width:0;margin:0;padding:15px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}.automation-profile-section>legend{padding:0 6px;font-weight:700}.automation-profile-section-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:12px}.automation-profile-section-head>div{min-width:0;flex:1}.automation-profile-section-head h3{font-size:13px}.automation-profile-section-head p{margin-top:4px;color:var(--text-secondary);font-size:11px;line-height:1.45}.automation-profile-connection-note{margin:0}.automation-service-rules{display:grid;gap:9px}.automation-service-rule{padding:12px;border:1px solid var(--border-subtle);border-radius:9px;background:var(--surface-solid)}.automation-service-rule-main{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(180px,1.2fr) auto;gap:9px;align-items:end}.automation-service-rule-main .field{min-width:0}.automation-service-remove{margin-bottom:2px}.automation-service-permissions{display:flex;flex-wrap:wrap;gap:10px 18px;margin:10px 0 0;padding:10px 0 0;border:0;border-top:1px solid var(--border-subtle)}.automation-service-permissions legend{float:left;width:100%;margin-bottom:6px;color:var(--text-muted);font-size:10px}.automation-service-empty,.automation-profile-host-empty{color:var(--text-secondary);font-size:11px}.automation-profile-host-toolbar{display:flex;align-items:center;gap:9px;margin-bottom:10px}.automation-profile-host-toolbar label{min-width:180px;flex:1;display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--field-bg)}.automation-profile-host-toolbar input{width:100%;border:0;background:transparent;color:var(--text)}.automation-profile-host-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:280px;overflow:auto;padding:1px}.automation-profile-host{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid var(--border-subtle);border-radius:8px;background:var(--surface-solid)}.automation-profile-host>span{min-width:0;flex:1}.automation-profile-host strong,.automation-profile-host small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.automation-profile-host strong{font-size:11px}.automation-profile-host small{margin-top:3px;color:var(--text-muted);font-size:9px}.automation-profile-host em{color:var(--warning);font-size:9px;font-style:normal}.automation-profile-host.incompatible{border-color:color-mix(in srgb,var(--warning) 40%,var(--line));background:var(--warning-bg)}.automation-profile-host-note{margin:10px 0 0}.automation-profile-host[hidden],.automation-profile-host-empty[hidden],.automation-service-empty[hidden],.automation-profile-connection-note[hidden],.automation-profile-host-note[hidden]{display:none}
@media(max-width:1100px){.automation-cards,.automation-status{grid-template-columns:repeat(2,minmax(0,1fr))}.automation-dashboard-grid,.automation-directory-layout,.automation-actions-layout,.automation-remote-grid,.automation-ldap-grid{grid-template-columns:1fr}.automation-person-panel,.automation-quick{position:static}.automation-setup{grid-template-columns:1fr}.automation-steps{position:static;display:grid;grid-template-columns:repeat(4,1fr)}.automation-step{padding:8px}.automation-step span:last-child{display:none}}
@media(max-width:720px){.automation-head{flex-wrap:wrap}.automation-head-actions{width:100%;margin-left:0}.automation-cards,.automation-status,.automation-readiness{grid-template-columns:1fr}.automation-toolbar,.automation-history-filters{flex-wrap:wrap}.automation-search{min-width:100%}.automation-table{min-width:720px}.automation-table-card{overflow:auto}.automation-session-row,.automation-service-row{grid-template-columns:1fr}.automation-service-actions{justify-content:flex-start}.automation-profile-section-head{flex-direction:column}.automation-service-rule-main,.automation-profile-host-list{grid-template-columns:1fr}.automation-service-remove{justify-self:end}.automation-profile-host-toolbar{align-items:stretch;flex-direction:column}}

.automation-profile-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.automation-profile-buttons,
.automation-custom-modal-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.automation-custom-modal-head {
  justify-content: space-between;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.automation-custom-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid var(--border-subtle);
  overflow-wrap: anywhere;
}

.automation-custom-action:last-child {
  padding-bottom: 0;
}

.automation-custom-action h3 {
  margin: 0;
  font-size: 14px;
}

.automation-custom-action > div:first-child p,
.automation-custom-result small,
.automation-custom-grants p {
  color: var(--text-secondary);
}

.automation-custom-result {
  grid-column: 1 / -1;
  background: var(--field-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 9px 11px;
}

.automation-custom-result small {
  margin-inline-start: 8px;
}

.automation-custom-result p {
  margin: 7px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.automation-custom-grants {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.automation-custom-grants legend {
  font-weight: 650;
  padding: 0 5px;
}

.automation-custom-grants .automation-grant-search {
  min-width: 0;
  max-width: none;
  margin: 8px 0;
}

.automation-grant-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 2px 6px;
}

.automation-grant-empty {
  margin: 4px 2px 0;
}

.automation-grant-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 190px;
  overflow: auto;
  padding: 2px;
}

.automation-grant-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.automation-grant-option[hidden] {
  display: none;
}

.automation-grant-option input {
  flex: none;
}

.automation-grant-option small {
  display: block;
  color: var(--text-secondary);
}

.automation-history-result {
  max-width: 38ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .automation-profile-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .automation-profile-buttons {
    grid-column: 2;
  }

  .automation-custom-action,
  .automation-grant-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .automation-custom-action > .button {
    justify-self: start;
  }
}
