:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #07111f;
    color: #e9f1ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(72, 128, 255, 0.32), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(0, 205, 172, 0.18), transparent 28rem),
        #07111f;
}

button,
input,
select,
textarea {
    font: inherit;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.shell {
    width: min(1560px, calc(100% - clamp(32px, 5vw, 80px)));
    margin: 0 auto;
    padding: 40px 0 56px;
}

.hero {
    margin-bottom: 24px;
}

.eyebrow {
    color: #72f2c7;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1;
    margin-bottom: 18px;
}

.lead {
    max-width: 760px;
    color: #b7c7df;
    font-size: 1.1rem;
}

.card {
    background: rgba(9, 22, 39, 0.82);
    border: 1px solid rgba(151, 190, 255, 0.22);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    padding: 28px;
    backdrop-filter: blur(18px);
}

.auth-card {
    max-width: 560px;
}

.panel-card {
    border-radius: 18px;
    padding: clamp(20px, 2.5vw, 34px);
}

.panel-mode .hero {
    display: none;
}

.panel-mode .shell {
    padding-top: 24px;
}

.panel-header {
    align-items: center;
}

.panel-header h2,
.panel-header p {
    margin-bottom: 4px;
}

.panel-eyebrow {
    font-size: 0.76rem;
}

.hidden {
    display: none !important;
}

form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    color: #c8d6eb;
}

input,
select,
textarea,
fieldset {
    width: 100%;
    border: 1px solid rgba(173, 202, 255, 0.28);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.24);
    color: #fff;
    padding: 13px 14px;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

textarea[readonly] {
    min-height: 72px;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    padding-right: 30px;
}

fieldset {
    margin: 0;
}

legend {
    color: #b7c7df;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0 6px;
}

button {
    border: 0;
    border-radius: 10px;
    background: #72f2c7;
    color: #06121f;
    cursor: pointer;
    font-weight: 800;
    padding: 13px 16px;
}

button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e9f1ff;
}

button.danger {
    background: #ff6f91;
    color: #22040b;
}

.button-link {
    border: 0;
    border-radius: 10px;
    background: #72f2c7;
    color: #06121f;
    display: inline-block;
    cursor: pointer;
    font-weight: 800;
    padding: 10px 13px;
    text-decoration: none;
}

code {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(151, 190, 255, 0.16);
    border-radius: 8px;
    color: #dfffea;
    padding: 2px 6px;
}

.row {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 24px 0;
}

.panel-tabs {
    align-items: center;
    background: rgba(9, 22, 39, 0.94);
    border-bottom: 1px solid rgba(151, 190, 255, 0.16);
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 18px 0 28px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 0 10px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.panel-tabs::-webkit-scrollbar {
    display: none;
}

.panel-tab-button {
    background: transparent;
    border: 1px solid transparent;
    color: #d9e8ff;
    flex: 0 0 auto;
    padding: 9px 12px;
}

.panel-tab-button.active {
    background: rgba(114, 242, 199, 0.13);
    border-color: rgba(114, 242, 199, 0.38);
    color: #dfffea;
}

.page-heading,
.admin-section > h3 {
    margin-bottom: 6px;
}

.page-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.page-heading h3,
.admin-section > h3 {
    font-size: clamp(1.55rem, 2vw, 2rem);
}

.page-heading h3 {
    margin-bottom: 6px;
}

.page-heading p {
    max-width: 820px;
}

.ai-vision-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.checkbox-grid {
    display: grid;
    gap: 10px 16px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.checkbox-grid label {
    align-items: center;
    display: flex;
    gap: 8px;
}

.checkbox-grid input {
    width: auto;
}

.ai-key-form {
    grid-template-columns: minmax(260px, 1fr) auto auto auto;
}

.grid article,
.metric-card,
.notice,
.list li,
.admin-section {
    border: 1px solid rgba(151, 190, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
}

.inline-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.inline-actions .danger:last-child {
    margin-left: auto;
}

.section-title-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.section-title-row {
    margin-top: 18px;
}

.section-title-row h3 {
    margin: 0;
}

.section-title-row h4 {
    margin: 0;
}

.grid article {
    color: #b7c7df;
    padding: 18px;
}

.grid span {
    color: #ffffff;
    display: block;
    font-size: 2rem;
    font-weight: 900;
}

.dashboard-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin: 24px 0 14px;
}

.metric-card {
    min-height: 128px;
}

.metric-card span {
    color: #ffffff;
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
}

.metric-card strong {
    color: #e9f1ff;
    display: block;
    font-size: 0.98rem;
    margin-bottom: 6px;
}

.metric-card small {
    color: #8fa2bd;
    display: block;
    line-height: 1.35;
}

.overview-layout {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.overview-panel {
    margin-top: 0;
}

.quick-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin: 12px 0 14px;
}

.quick-actions button {
    min-height: 44px;
    text-align: left;
}

.inline-form {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.8fr) minmax(220px, 1.2fr) auto;
    margin: 0 0 18px;
}

.package-form {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(180px, 0.35fr) minmax(260px, 1fr);
    margin: 0 0 18px;
    max-width: 1120px;
}

.package-form .wide {
    grid-column: 1 / -1;
}

.editor-panel {
    border-left: 3px solid rgba(114, 242, 199, 0.5);
    margin: 16px 0 22px;
    padding: 14px 0 4px 18px;
}

.editor-panel > h4 {
    margin: 0;
}

.platform-switch-form {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 8px;
}

.platform-switch-form label {
    flex: 1 1 260px;
}

.platform-switch-form button {
    flex: 0 0 auto;
}

.profile-settings {
    border-top: 1px solid rgba(151, 190, 255, 0.14);
    padding-top: 12px;
}

.profile-settings summary {
    color: #dfffea;
    cursor: pointer;
    font-weight: 800;
    margin-bottom: 12px;
}

.nested-form-grid {
    margin-bottom: 0;
}

.record-editor {
    border-top: 1px solid rgba(151, 190, 255, 0.16);
    margin: 12px 0 20px;
    padding-top: 12px;
}

.record-editor > summary {
    color: #dfffea;
    cursor: pointer;
    font-weight: 800;
    padding: 8px 2px;
}

.record-editor[open] > summary {
    margin-bottom: 8px;
}

.checkbox-field {
    align-items: center;
    align-self: end;
    display: flex;
    gap: 10px;
    min-height: 49px;
    padding: 0 2px;
}

.checkbox-field input[type="checkbox"] {
    flex: 0 0 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    width: 20px;
}

.checkbox-field span {
    line-height: 1.3;
}

.field-note {
    color: #6b7a90;
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.compact-action {
    flex: 0 0 auto;
    padding: 8px 12px;
}

.button-link {
    background: rgba(114, 242, 199, 0.14);
    border: 1px solid rgba(114, 242, 199, 0.35);
    border-radius: 10px;
    color: #dfffea;
    display: inline-flex;
    font-weight: 800;
    padding: 9px 13px;
    text-decoration: none;
}

.button-link:hover {
    background: rgba(114, 242, 199, 0.22);
}

.button-link.secondary-link {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(151, 190, 255, 0.22);
    color: #e9f1ff;
}

.button-link.secondary-link:hover {
    background: rgba(255, 255, 255, 0.13);
}

.mfa-qr {
    background: #ffffff;
    display: inline-flex;
    margin: 10px 0;
    padding: 10px;
}

.mfa-qr svg {
    display: block;
    height: min(240px, 60vw);
    width: min(240px, 60vw);
}

.secret-code,
.recovery-codes {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(151, 190, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    display: block;
    overflow-wrap: anywhere;
    padding: 10px;
    white-space: pre-wrap;
}

.list {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 12px 0 0;
    overflow: hidden;
    padding: 0;
}

.list > li {
    border-radius: 0;
    border-width: 0 0 1px;
    margin: 0;
}

.list > li.check-item {
    border-left-width: 4px;
}

.list > li:last-child {
    border-bottom: 0;
}

.record-grid {
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
    overflow: visible;
}

.record-grid > li,
.record-grid > li:last-child {
    border: 1px solid rgba(151, 190, 255, 0.16);
    border-radius: 14px;
}

.record-grid > li.check-item.ok {
    border-left: 4px solid #72f2c7;
}

.record-grid > li.check-item.pending {
    border-left: 4px solid #ffcd56;
}

.record-grid > li.check-item.error {
    border-left: 4px solid #ff6f91;
}

.compact-list {
    margin: 12px 0 0;
}

.check-item {
    border-left: 4px solid rgba(151, 190, 255, 0.22);
}

.check-item.ok {
    border-left-color: #72f2c7;
}

.check-item.pending {
    border-left-color: #ffcd56;
}

.check-item.error {
    border-left-color: #ff6f91;
}

.check-item-header {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.check-item-header strong {
    color: #ffffff;
}

.panel-summary-badges {
    justify-content: flex-start;
    margin: 14px 0;
}

.list p {
    margin-bottom: 6px;
}

.list p:last-child {
    margin-bottom: 0;
}

.muted,
.message {
    color: #b7c7df;
}

.small {
    font-size: 0.92rem;
}

.link-row a {
    color: #72f2c7;
    font-weight: 750;
    text-decoration: none;
}

.link-row a:hover {
    text-decoration: underline;
}

.mono-line {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    overflow-wrap: anywhere;
}

.host-row-header {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.host-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 850;
}

.status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.status-badge {
    border: 1px solid rgba(151, 190, 255, 0.18);
    border-radius: 999px;
    color: #dfffea;
    font-size: 0.78rem;
    font-weight: 850;
    padding: 5px 9px;
    white-space: nowrap;
}

.status-badge.ok {
    background: rgba(114, 242, 199, 0.14);
    border-color: rgba(114, 242, 199, 0.35);
}

.status-badge.pending {
    background: rgba(255, 205, 86, 0.12);
    border-color: rgba(255, 205, 86, 0.3);
}

.status-badge.error {
    background: rgba(255, 84, 84, 0.14);
    border-color: rgba(255, 84, 84, 0.35);
}

.token-result {
    margin: 0 0 18px;
}

.notice {
    color: #c8d6eb;
    margin-bottom: 24px;
}

.admin-section {
    margin: 0 0 26px;
}

.panel-card .admin-section {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.sync-token-panel {
    border-top: 1px solid rgba(151, 190, 255, 0.16);
    margin-top: 24px;
    padding-top: 22px;
}

.control-plane-subsection {
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid rgba(151, 190, 255, 0.16);
    margin-top: 24px;
    padding-top: 22px;
}

.control-plane-subsection summary {
    color: #dfffea;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.control-plane-subsection[open] {
    border: 1px solid rgba(151, 190, 255, 0.16);
    border-radius: 12px;
    padding: 16px;
}

.control-plane-subsection h4,
.sync-token-panel h4 {
    margin-bottom: 12px;
}

.sync-token-form {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
    margin: 0 0 18px;
}

.sync-token-form .form-actions {
    grid-column: 1 / -1;
}

.admin-message {
    background: rgba(114, 242, 199, 0.08);
    border: 1px solid rgba(114, 242, 199, 0.2);
    border-radius: 12px;
    color: #dfffea;
    margin-bottom: 18px;
    min-height: 44px;
    padding: 12px 14px;
    position: sticky;
    top: 10px;
    z-index: 5;
}

.admin-message:empty {
    display: none;
}

.message {
    min-height: 1.5em;
    margin-top: 18px;
}

.advanced-host-field {
    display: none;
}

.advanced-host-options {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(151, 190, 255, 0.16);
    border-radius: 12px;
    padding: 10px 12px;
}

.advanced-host-options summary {
    color: #dfffea;
    cursor: pointer;
    font-weight: 800;
}

.advanced-host-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 12px;
}

.advanced-host-options .advanced-host-field {
    display: grid;
}

.token-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.token-row {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(151, 190, 255, 0.14);
    border-radius: 12px;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px;
}

.data-table-section {
    border-top: 1px solid rgba(151, 190, 255, 0.16);
    margin-top: 24px;
    padding-top: 22px;
}

.table-section-heading h4 {
    margin-bottom: 4px;
}

.table-section-heading p {
    margin-top: 0;
}

.table-toolbar {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 16px 0 10px;
}

.table-toolbar > label:not(.table-search),
.column-picker {
    display: grid;
    font-size: 0.78rem;
    gap: 5px;
    min-width: 108px;
}

.table-toolbar select,
.table-toolbar input {
    min-height: 38px;
}

.table-search {
    display: grid;
    flex: 1 1 250px;
    font-size: 0.78rem;
    gap: 5px;
    min-width: min(100%, 250px);
}

.column-picker {
    position: relative;
}

.column-picker summary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(151, 190, 255, 0.2);
    border-radius: 9px;
    color: #dfffea;
    cursor: pointer;
    font-size: 0.86rem;
    padding: 10px 12px;
    white-space: nowrap;
}

.column-picker > div {
    background: #12233d;
    border: 1px solid rgba(151, 190, 255, 0.28);
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    display: grid;
    gap: 8px;
    min-width: 190px;
    max-height: min(60vh, 420px);
    overflow: auto;
    padding: 12px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 10;
}

.column-picker label {
    align-items: center;
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.column-picker-reset {
    margin-top: 4px;
}

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

.table-result-summary {
    margin: 8px 0;
}

.data-table-shell {
    border: 1px solid rgba(151, 190, 255, 0.18);
    border-radius: 12px;
    max-width: 100%;
    max-height: min(70vh, 680px);
    overflow: auto;
}

.data-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid rgba(151, 190, 255, 0.12);
    padding: 11px 12px;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #152945;
    color: #bcd1ee;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 2;
}

.data-table th.table-number,
.data-table td.table-number {
    text-align: right;
}

.data-table th.table-actions,
.data-table td.table-actions {
    min-width: 132px;
}

.data-table tbody tr:hover {
    background: rgba(114, 242, 199, 0.045);
}

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

.table-sort-button {
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    margin: -6px;
    padding: 6px;
    text-align: left;
    text-transform: inherit;
}

.table-sort-button:focus-visible,
.table-toolbar input:focus-visible,
.table-toolbar select:focus-visible,
.column-picker summary:focus-visible,
.column-picker input:focus-visible,
.table-pagination button:focus-visible {
    outline: 3px solid #72f2c7;
    outline-offset: 2px;
}

.table-primary {
    color: #ffffff;
    font-weight: 800;
}

.table-number {
    text-align: right !important;
    white-space: nowrap;
}

.table-note {
    display: block;
    max-width: 28rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-actions {
    min-width: 250px;
}

.table-actions .inline-actions {
    flex-wrap: wrap;
}

.table-row-details,
.table-row-actions {
    position: relative;
}

.table-row-details > summary,
.table-row-actions > summary {
    color: #dfffea;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.table-row-details > summary:focus-visible,
.table-row-actions > summary:focus-visible {
    outline: 3px solid #72f2c7;
    outline-offset: 2px;
}

.table-row-details-content,
.table-row-actions > div {
    background: #12233d;
    border: 1px solid rgba(151, 190, 255, 0.28);
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    display: grid;
    gap: 8px;
    min-width: 230px;
    padding: 10px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 5;
}

.table-installation-detail + .table-installation-detail {
    border-top: 1px solid rgba(151, 190, 255, 0.14);
    padding-top: 8px;
}

.table-installation-detail .compact-action {
    margin-top: 4px;
}

.table-empty {
    color: #bcd1ee;
    padding: 24px !important;
    text-align: center !important;
}

.table-pagination {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.token-summary {
    color: #dfffea;
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 820px) {
    .shell {
        width: min(100% - 20px, 1560px);
        padding: 16px 0 28px;
    }

    .card,
    .panel-card {
        border-radius: 14px;
        padding: 18px;
    }

    .panel-tabs {
        margin-left: -6px;
        margin-right: -6px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }

    .package-form {
        grid-template-columns: 1fr;
    }

    .sync-token-form {
        grid-template-columns: 1fr;
    }

    .overview-layout {
        grid-template-columns: 1fr;
    }

    .ai-key-form {
        grid-template-columns: 1fr;
    }

    .token-row {
        grid-template-columns: 1fr;
    }

    .host-row-header {
        display: grid;
    }

    .status-badges {
        justify-content: flex-start;
    }

    .row {
        display: grid;
    }

    .panel-header {
        grid-template-columns: 1fr auto;
    }

    .panel-header > button {
        justify-self: start;
    }

    .record-grid {
        grid-template-columns: 1fr;
    }

    .table-toolbar {
        align-items: stretch;
    }

    .table-toolbar > label:not(.table-search),
    .table-search,
    .column-picker {
        flex: 1 1 145px;
    }

    .column-picker > div {
        left: 0;
        right: auto;
    }

    .table-pagination {
        justify-content: space-between;
    }

}

@media (min-width: 1180px) {
    .package-form {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }

    .package-form .wide {
        grid-column: 1 / -1;
    }
}

.license-guide {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding: 16px 20px;
    margin: 0 0 20px;
    border: 1px solid rgba(117, 175, 255, .25);
    background: rgba(70, 125, 215, .08);
    border-radius: 12px;
}

.license-guide p { flex-basis: 100%; margin: 0; }
.license-advanced > summary { cursor: pointer; font-weight: 600; }
.license-detail-grid { padding-top: 18px; }
.license-detail-grid label { min-width: 0; }
#panelTabCloudLicensing .admin-section { border-top: 0; padding-top: 0; }
#cloudTechnicalDetails { margin-top: 24px; }
#cloudTechnicalDetails > summary { padding: 6px 0; }
#panelTabCloudLicensing .table-row-details-content,
#panelTabLocalLicensing .table-row-details-content,
#panelTabLocalLicensing .table-row-actions > div {
    position: static;
    margin-top: 10px;
    min-width: 260px;
    max-width: 360px;
}
#panelTabCloudLicensing tr:has(details[open]) td,
#panelTabLocalLicensing tr:has(details[open]) td { vertical-align: top; }
.table-row-details-content .inline-actions { margin-top: 12px; }
#panelTabCloudLicensing .table-row-details-content p,
#panelTabLocalLicensing .table-row-details-content p { margin: 0; }
.data-table .license-period { white-space: nowrap; }
.admin-permissions { border: 1px solid rgba(151, 190, 255, .2); border-radius: 12px; padding: 16px; min-width: 0; }
.admin-permissions legend { padding: 0 8px; font-weight: 700; }
.admin-permissions .checkbox-field { align-self: auto; min-height: 34px; }
.admin-permissions input:disabled + span { opacity: .6; }
#panelTabCloudLicensing #runtimeTenantEditor:not([open]),
#panelTabCloudLicensing #subscriptionEditor:not([open]),
#panelTabLocalLicensing #localSubscriptionEditor:not([open]) { display: none; }
#panelTabCloudLicensing .panel-summary-badges { justify-content: flex-start; margin: 12px 0; }
#panelTabCloudLicensing .data-table-section { margin-top: 16px; padding-top: 12px; }
.license-filter-options { flex: 0 1 auto; }
.license-filter-options > summary { cursor: pointer; padding: 12px 0; }
.license-filter-options[open] { flex: 1 1 100%; }
.license-filter-options .table-toolbar { margin: 0; }
@media (max-width: 820px) {
    #panelTabCloudLicensing > .page-heading,
    #panelTabLocalLicensing > .page-heading { flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
}
