.state-form { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.state-form label { font-size: 10px; color: #637789; }
.state-form button { border: 1px solid #dce5eb; background: #fff; border-radius: 6px; padding: 4px 6px; font-size: 10px; }
.state-form button:disabled { opacity: .4; }
.logo-manager { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.logo-manager img { width: 42px; height: 42px; object-fit: contain; border: 1px solid #dce5eb; border-radius: 9px; background: #fff; }
.logo-placeholder { display: grid; place-items: center; width: 54px; height: 42px; border: 1px dashed #b9cbd7; border-radius: 8px; color: #7b8f9e; font-size: 9px; text-align: center; }
.upload-button { display: inline-flex; align-items: center; padding: 7px 9px; border: 1px solid #b9cbd7; border-radius: 7px; color: #0879c9; background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.upload-button:hover { border-color: #0879c9; background: #f3f9fd; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.remove-logo { border: 0; background: transparent; color: #a64040; font-size: 18px; cursor: pointer; padding: 4px; }
.delete-module-form { margin: 0; }
.delete-module-button { border: 1px solid #d99; background: #fff; border-radius: 7px; color: #a64040; cursor: pointer; font-size: 11px; font-weight: 700; padding: 7px 9px; white-space: nowrap; }
.delete-module-button:hover { background: #fff3f3; border-color: #a64040; }
.app-icon.has-logo { background: #fff; border: 1px solid #dce5eb; overflow: hidden; }
.app-icon.has-logo img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.panel-link { display: inline-flex; padding: 9px 12px; border-radius: 8px; background: #0879c9; color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; }
.discovery-error { color: #a64040; background: #fff3f3; border-radius: 8px; padding: 12px; }
.empty-state { color: #637789; padding: 14px 0; }
.discovery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 10px; }
.discovery-item { border: 1px solid #dce5eb; border-radius: 10px; padding: 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.discovery-item > div { min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 7px; align-items: center; }
.discovery-item small, .discovery-item code { grid-column: 2; overflow: hidden; text-overflow: ellipsis; }
.discovery-item form button, .role-form button { border: 0; border-radius: 7px; background: #0879c9; color: #fff; padding: 8px 10px; font-weight: 700; cursor: pointer; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aaab5; }
.status-dot.enabled, .status-dot.success { background: #25a66a; }
.role-config { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e6edf1; }
.role-config h3 { margin-bottom: 3px; }
.role-config > p { color: #637789; font-size: 12px; }
.role-config details { border-bottom: 1px solid #edf2f5; padding: 8px 0; }
.role-config summary small { color: #7b8f9e; margin-left: 6px; }
.role-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dce5eb; border-radius: 999px; padding: 5px 8px; font-size: 11px; }
.role-chip form { margin: 0; }
.role-chip button { border: 0; background: transparent; color: #a64040; cursor: pointer; font-size: 16px; line-height: 1; }
.role-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; padding-bottom: 10px; }
.role-form label { display: grid; gap: 3px; font-size: 10px; color: #637789; }
.role-form input { border: 1px solid #cbd8e0; border-radius: 7px; padding: 7px; }
