.fleet-row {
  grid-template-columns: 75px 1.1fr 1fr 65px 85px;
}

.lock-count {
  display: inline-block;
  color: var(--muted);
  white-space: nowrap;
}

.lock-count.active {
  color: var(--red);
  font-weight: 700;
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #123a4b;
  color: var(--muted);
  font-size: 12px;
}

.table-action,
.unlock-action {
  border: 1px solid #24718d;
  border-radius: 5px;
  background: #083049;
  color: var(--cyan);
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.unlock-action {
  border-color: #8d3044;
  background: #351522;
  color: #ff8798;
}

.unlock-action:disabled {
  cursor: wait;
  opacity: .65;
}

.lock-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
}

.lock-badge.soft {
  border: 1px solid #a66d20;
  background: #392708;
  color: #ffc766;
}

.lock-badge.hard {
  border: 1px solid #a62a42;
  background: #3d101b;
  color: #ff7188;
}

.data-table code {
  color: var(--cyan);
}

.lock-sync-warning b {
  color: #ffc766;
}

.server-actions { display: flex; gap: 6px; }
.primary-action { border-color: #00aeca; background: #075168; color: white; }
.assessment-pending { margin: 20px; padding: 22px; border: 1px solid #1b566b; border-radius: 9px; background: #082431; }
.assessment-pending b,.assessment-pending span { display: block; }
.assessment-pending span { margin-top: 6px; color: var(--muted); font-size: 11px; }
.assessment-summary { display: grid; grid-template-columns: minmax(220px,2fr) repeat(4,minmax(80px,1fr)); gap: 1px; margin: 18px 20px 0; overflow: hidden; border: 1px solid #174455; border-radius: 9px; background: #174455; }
.assessment-summary>div { padding: 14px 16px; background: #08222f; }
.assessment-summary span,.assessment-summary b { display: block; }
.assessment-summary span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.assessment-summary b { margin-top: 4px; color: #f2fbff; font-size: 16px; }
.assessment-summary b.attention { color: #ff7188; }.assessment-summary b.good { color: #2fdda9; }
.finding-list { display: grid; gap: 10px; padding: 14px 20px 24px; }
.finding { border: 1px solid #173f4e; border-radius: 8px; background: #071b26; padding: 14px 16px; }
.finding.failed { border-left: 3px solid #ff405d; }.finding.passed { border-left: 3px solid #20c997; opacity: .8; }
.finding header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; }
.finding header b,.finding header code { display: block; }.finding header code { margin-top: 3px; color: #648594; font-size: 9px; }
.finding header strong { color: #9ab5bf; font-size: 10px; text-transform: uppercase; }
.finding>p,.finding details p { color: #9bb3bd; font-size: 11px; line-height: 1.5; }
.finding details { color: var(--cyan); font-size: 10px; }.finding details>div { margin-top: 10px; border-top: 1px solid #123542; padding-top: 10px; color: #d3e3e8; }
.reboot-note { display: inline-block; border: 1px solid #865a26; border-radius: 10px; color: #ffc168; padding: 3px 8px; font-size: 9px; }
@media (max-width: 760px) { .assessment-summary { grid-template-columns: 1fr 1fr; margin: 12px; }.assessment-summary>div:first-child { grid-column: 1/-1; }.finding-list { padding: 12px; } }
.roles-toolbar { min-height: 34px; }
.role-summary { display: flex; align-items: center; gap: 20px; }
.role-summary span { white-space: nowrap; }
.role-summary b { color: #eaf9ff; font-size: 14px; }
.role-summary .policy-version { color: #658797; font-family: ui-monospace,Consolas,monospace; font-size: 10px; }
.role-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 18px 20px 0; padding: 16px 18px; border: 1px solid #123d4e; border-radius: 9px; background: linear-gradient(120deg,#082331,#071b27); }
.role-intro b,.role-intro span { display: block; }
.role-intro b { color: #f2fbff; font-size: 15px; }
.role-intro div>span { color: var(--muted); margin-top: 4px; font-size: 11px; }
.role-legend { display: flex; align-items: center; gap: 7px; color: var(--muted); white-space: nowrap; font-size: 10px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: #1a556a; }
.legend-dot.detected { background: #19dfaa; box-shadow: 0 0 8px #19dfaa88; }
.legend-dot.enabled { margin-left: 8px; background: var(--cyan); box-shadow: 0 0 8px #00d9ff77; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(390px,1fr)); align-items: start; gap: 14px; padding: 16px 20px 24px; }
.role-card { overflow: hidden; border: 1px solid #173d4c; border-radius: 10px; background: linear-gradient(145deg,#071d29,#061720); box-shadow: 0 8px 24px #020b1080; transition: border-color .2s,opacity .2s; }
.role-card.disabled { opacity: .7; }
.role-card.enabled { border-color: #15738b; box-shadow: inset 0 2px 0 #00d9ff33,0 8px 24px #020b1080; }
.role-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 15px 16px 13px; border-bottom: 1px solid #123644; }
.role-heading { display: flex; min-width: 0; align-items: center; gap: 11px; }
.role-icon { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid #1d5366; border-radius: 8px; background: #092734; color: #698b99; font-weight: 800; }
.enabled .role-icon { border-color: #138ba2; color: var(--cyan); box-shadow: inset 0 0 12px #00d9ff20; }
.role-heading h3 { overflow: hidden; margin: 0; color: #f3fbff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.detection-state { display: block; margin-top: 4px; color: #6f8d99; font-size: 10px; }
.detection-state.is-detected { color: #2fdbaa; }
.mode-control { display: flex; flex-direction: column; gap: 4px; color: #6f8d99; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.mode-control select { min-width: 94px; border: 1px solid #24647a; border-radius: 5px; outline: none; background: #082837; color: white; padding: 5px 24px 5px 8px; font-size: 11px; text-transform: none; letter-spacing: 0; }
.mode-control select:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px #00d9ff20; }
.role-evidence { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 16px 0; }
.role-evidence>span { color: #638391; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.role-evidence code { border: 1px solid #164252; border-radius: 9px; background: #082633; color: #9bc0ce; padding: 2px 7px; font-size: 9px; }
.pattern-heading { display: flex; justify-content: space-between; padding: 12px 16px 6px; color: #8ba7b2; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.pattern-heading small { color: #597b89; font-size: 9px; text-transform: none; letter-spacing: 0; }
.pattern-list { padding: 0 9px 10px; }
.pattern-row { position: relative; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 30px; border-radius: 5px; padding: 2px 7px; color: #c8dbe2; cursor: pointer; font-size: 11px; }
.pattern-row:hover { background: #0b2a37; }
.pattern-row.unsupported { cursor: not-allowed; opacity: .48; }
.pattern-row.unsupported:hover { background: transparent; }
.pattern-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pattern-check { display: grid; width: 14px; height: 14px; place-items: center; border: 1px solid #376476; border-radius: 3px; background: #06151d; }
.pattern-row input:checked+.pattern-check { border-color: #00bbd9; background: #087b93; }
.pattern-row input:checked+.pattern-check::after { content: "✓"; color: white; font-size: 10px; font-weight: 800; }
.pattern-row input:focus-visible+.pattern-check { box-shadow: 0 0 0 2px #00d9ff55; }
.pattern-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.severity-badge { min-width: 47px; border: 1px solid #2a5362; border-radius: 10px; padding: 2px 6px; color: #9bb6c0; text-align: center; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.severity-badge.critical { border-color: #893248; background: #35131e; color: #ff6c84; }
.severity-badge.high { border-color: #895925; background: #33230e; color: #ffc168; }
.severity-badge.medium { border-color: #236d7c; background: #0b2e37; color: #67d9e8; }
@media (max-width: 760px) {
  .role-grid { grid-template-columns: 1fr; padding: 12px; }
  .role-intro { align-items: flex-start; flex-direction: column; margin: 12px 12px 0; }
  .role-summary { gap: 9px; }
  .role-summary .policy-version { display: none; }
  .role-card-header { align-items: stretch; flex-direction: column; }
  .mode-control { flex-direction: row; align-items: center; justify-content: space-between; }
}
.deployment-intro { display:flex; justify-content:space-between; align-items:center; gap:24px; margin:20px; padding:18px 20px; border:1px solid #17495b; border-radius:10px; background:linear-gradient(120deg,#092836,#071c27); }
.deployment-intro b,.deployment-intro span { display:block; }
.deployment-intro b { color:#f2fbff; font-size:16px; }
.deployment-intro>div>span { margin-top:5px; color:var(--muted); font-size:11px; }
.token-hint { max-width:300px; color:#76a0af!important; text-align:right; }
.token-box.compact { min-width:320px; margin:0; padding:10px 12px; }
.token-box.compact code { margin:5px 0; font-size:12px; }
.deployment-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:0 20px 18px; }
.deployment-card { overflow:hidden; border:1px solid #174657; border-radius:10px; background:linear-gradient(145deg,#082330,#061822); box-shadow:0 10px 28px #020a0f77; }
.deployment-card header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:16px; border-bottom:1px solid #123a48; }
.deployment-icon { display:grid; width:34px; height:34px; place-items:center; border:1px solid #17758b; border-radius:8px; background:#083243; color:#28dcf7; font-size:19px; }
.deployment-card h3 { margin:0; color:#f4fbff; font-size:14px; }
.deployment-card p { margin:4px 0 0; color:#7695a1; font-size:10px; line-height:1.4; }
.deployment-version { border:1px solid #235565; border-radius:10px; padding:3px 7px; color:#8eb3c0; font:9px ui-monospace,Consolas,monospace; }
.deployment-downloads { display:flex; gap:8px; padding:14px 16px 8px; }
.deployment-downloads a { border:1px solid #13748c; border-radius:5px; padding:6px 9px; color:#35def8; font-size:10px; text-decoration:none; }
.deployment-downloads a:hover { border-color:#21d8f3; background:#0a3341; }
.install-command { position:relative; margin:6px 16px 16px; border:1px solid #153e4d; border-radius:7px; background:#04141c; padding:11px 58px 11px 11px; }
.install-command code { display:block; overflow-wrap:anywhere; color:#a9c5cf; font-size:9px; line-height:1.45; }
.copy-command { position:absolute; top:7px; right:7px; border:1px solid #265b6c; border-radius:4px; background:#0a2a37; color:#a7c6d1; padding:4px 7px; font-size:9px; cursor:pointer; }
.deployment-note { display:flex; gap:12px; margin:0 20px 24px; border-left:3px solid #21c99a; border-radius:5px; background:#08241f; padding:12px 15px; color:#80a69c; font-size:10px; }
.deployment-note b { color:#45e4b4; white-space:nowrap; }
@media (max-width:1100px) { .deployment-grid { grid-template-columns:1fr; }.deployment-card header { grid-template-columns:auto minmax(0,1fr) auto; } }
@media (max-width:760px) { .deployment-intro { align-items:stretch; flex-direction:column; margin:12px; }.token-hint { max-width:none; text-align:left; }.token-box.compact { min-width:0; }.deployment-grid { padding:0 12px 14px; }.deployment-card header { grid-template-columns:auto minmax(0,1fr); }.deployment-version { grid-column:2; justify-self:start; }.deployment-note { align-items:flex-start; flex-direction:column; margin:0 12px 18px; } }
.dsl-intro { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:20px 20px 0; padding:16px 18px; border:1px solid #17495b; border-radius:9px; background:linear-gradient(120deg,#092836,#071c27); }
.dsl-intro b,.dsl-intro span { display:block; }.dsl-intro b { color:#f2fbff; font-size:15px; }.dsl-intro span { margin-top:4px; color:#779aa7; font-size:10px; }
.dsl-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:14px; padding:14px 20px 24px; }
.dsl-editor,.dsl-help { border:1px solid #153f4f; border-radius:9px; background:#071c27; padding:14px; }
.dsl-editor label { display:block; margin-bottom:8px; color:#8eacb7; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.dsl-editor textarea { box-sizing:border-box; width:100%; min-height:520px; resize:vertical; border:1px solid #1b5062; border-radius:6px; outline:none; background:#031219; color:#c9e3eb; padding:13px; font:11px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; tab-size:2; }
.dsl-editor textarea:focus { border-color:#00bdd9; box-shadow:0 0 0 2px #00d9ff20; }
.dsl-result { margin-top:9px; color:#7596a2; font-size:10px; }.dsl-result.success { color:#3cdda9; }.dsl-result.error { color:#ff7086; }
.dsl-help { align-self:start; display:grid; gap:11px; color:#88a6b1; font-size:10px; line-height:1.45; }.dsl-help b { color:#eaf8fc; font-size:13px; }.dsl-help span { display:block; border-bottom:1px solid #123543; padding-bottom:10px; }.dsl-help span:last-child { border:0; padding-bottom:0; }.dsl-help code { color:#43d9ed; }
@media (max-width:900px) { .dsl-layout { grid-template-columns:1fr; padding:12px; }.dsl-intro { align-items:stretch; flex-direction:column; margin:12px 12px 0; }.dsl-editor textarea { min-height:420px; } }
