.daa-it-lab {
    max-width: 980px;
    margin: 0 auto;
}

.daa-it-lab [hidden] { display: none !important; }

.daa-it-lab__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid #91b4df;
    border-radius: 14px;
    background: linear-gradient(145deg, #fbfdff, #e7f1ff);
    box-shadow: 0 10px 24px rgba(20, 71, 142, .1);
}

.daa-it-lab__header h1 {
    margin: 2px 0 7px;
    color: #124a9d;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.daa-it-lab__header p:last-child { margin: 0; color: #536a87; }

.daa-it-lab__icon {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid #3572b8;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, #73b8ff, #216bc1 62%, #174785);
    box-shadow: inset 0 1px rgba(255,255,255,.65), 0 9px 18px rgba(20,70,130,.22);
}

.daa-it-lab__launch-card,
.daa-it-lab__credentials,
.daa-it-lab__connection,
.daa-it-lab__reset {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #93b6e3;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(25,67,126,.09);
}

.daa-it-lab__launch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.daa-it-lab__launch-card > div { display: grid; gap: 5px; }
.daa-it-lab__launch-card strong { color: #164d9a; font-size: 1.15rem; }
.daa-it-lab__launch-card span { color: #5c6e87; }
.daa-it-lab__launch-card .xp-button { min-width: 155px; white-space: nowrap; }

.daa-it-lab__credentials { background: #f7fbff; }

.daa-it-lab__section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.daa-it-lab__section-heading h2,
.daa-it-lab__connection h2 {
    margin: 2px 0 0;
    color: #164d9a;
    font-size: 1.18rem;
}

.daa-it-lab__security-badge {
    padding: 6px 9px;
    border: 1px solid #8dc49a;
    border-radius: 999px;
    color: #235d31;
    background: #e9f7ec;
    font-size: .78rem;
    font-weight: 700;
}

.daa-it-lab__credential-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.daa-it-lab__credential {
    display: grid;
    min-width: 0;
    gap: 8px;
    padding: 14px;
    border: 1px solid #b4c9e5;
    border-radius: 10px;
    background: #fff;
}

.daa-it-lab__credential--admin { border-color: #d6b85d; background: #fffbed; }
.daa-it-lab__credential--locked { color: #65748a; background: #f0f3f7; }
.daa-it-lab__credential--locked p { margin: 0; }
.daa-it-lab__role {
    color: #527094;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.daa-it-lab__credential code {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 10px;
    border: 1px inset #a9bad0;
    border-radius: 5px;
    color: #17243a;
    background: #edf3fa;
    font: 700 1rem Consolas, "Courier New", monospace;
    letter-spacing: .04em;
}

.daa-it-lab__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.daa-it-lab__status { min-height: 1.4em; margin: 12px 0 0; color: #2f6a3b; font-size: .86rem; }
.daa-it-lab__status.is-error { color: #a52216; }

.daa-it-lab__connection dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.daa-it-lab__connection dl > div {
    padding: 11px;
    border: 1px solid #c0d2e8;
    border-radius: 8px;
    background: #f2f7fc;
}

.daa-it-lab__connection dt { color: #5a708d; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.daa-it-lab__connection dd { margin: 5px 0 0; }
.daa-it-lab__connection p { margin-bottom: 0; color: #5c6e87; }

.daa-it-lab__reset {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 20px;
    border-color: #d58b82;
    background: #fff8f7;
}

.daa-it-lab__reset h2 {
    margin: 2px 0 6px;
    color: #92251c;
    font-size: 1.18rem;
}

.daa-it-lab__reset p { margin: 0; color: #6f514e; }
.daa-it-lab__reset--locked { grid-template-columns: 1fr; border-color: #c5ceda; background: #f5f7fa; }
.daa-it-lab__reset--locked h2 { color: #52647b; }
.daa-it-lab__reset-button {
    border-color: #8f1d16;
    color: #fff;
    background: linear-gradient(#d9574c, #a92d24);
    white-space: nowrap;
}
.daa-it-lab__reset-button:hover,
.daa-it-lab__reset-button:focus-visible { background: linear-gradient(#e56a60, #b9382e); }
.daa-it-lab__reset-button:disabled { opacity: .6; cursor: wait; }
.daa-it-lab__reset-status {
    grid-column: 1 / -1;
    min-height: 1.4em;
    color: #2f6a3b !important;
    font-size: .86rem;
}
.daa-it-lab__reset-status.is-error { color: #a52216 !important; }

.daa-it-lab__info {
    margin-top: 18px;
    padding: 17px 20px;
    border-left: 4px solid #2f8f45;
    border-radius: 9px;
    color: #5c6e87;
    background: #f1f8f1;
}

.daa-it-lab__info h2 { margin: 0 0 9px; color: #265f33; font-size: 1.05rem; }
.daa-it-lab__info ul { margin: 0; padding-left: 20px; }
.daa-it-lab__info li + li { margin-top: 5px; }

.xp-window.is-it-lab-window { min-width: 760px; min-height: 540px; }
.xp-window.is-it-lab-window .xp-app-frame { background: #1d2633; }
.xp-window.is-it-lab-window:fullscreen {
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    resize: none;
}
.xp-window.is-it-lab-window:fullscreen .xp-titlebar { border-radius: 0; }
.xp-window.is-it-lab-window:fullscreen .xp-window-controls { margin-right: 190px; }
.xp-window.is-it-lab-window:fullscreen .xp-resize-grip { display: none; }

@media (max-width: 850px) {
    .daa-it-lab__launch-card { align-items: stretch; flex-direction: column; }
    .daa-it-lab__reset { grid-template-columns: 1fr; }
    .daa-it-lab__credential-grid,
    .daa-it-lab__connection dl { grid-template-columns: 1fr; }
    .daa-it-lab__section-heading { align-items: flex-start; flex-direction: column; }
    .xp-window.is-it-lab-window { min-width: 0; min-height: 0; }
    .xp-window.is-it-lab-window:fullscreen .xp-window-controls { margin-right: 0; }
}
