.structured-guide-launcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2050;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #0665d0;
    border-radius: 4px;
    background: #0665d0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18);
}

.structured-guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 27, 38, 0.58);
}

.structured-guide-inline {
    margin: 0 0 24px;
    overflow: hidden;
    border: 1px solid #dfe4ec;
    border-radius: 4px;
    background: #fff;
}

.structured-guide-inline,
.structured-guide-inline * {
    box-sizing: border-box;
}

.structured-guide-inline-header {
    min-height: 48px;
    padding: 12px 16px;
}

.structured-guide-inline-title {
    margin: 0;
    color: #253247;
    font-size: 16px;
    line-height: 24px;
}

.structured-guide-inline-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.structured-guide-inline-list .structured-guide-list-item {
    min-width: 0;
    min-height: 88px;
}

.structured-guide-overlay,
.structured-guide-overlay * {
    box-sizing: border-box;
}

.structured-guide-dialog {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #dfe4ec;
    border-radius: 6px;
    background: #fff;
    color: #202938;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.2);
}

.structured-guide-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 26px;
    line-height: 36px;
}

.structured-guide-title {
    margin: 0 36px 10px 0;
    color: #172033;
    font-size: 20px;
    line-height: 1.4;
}

.structured-guide-message,
.structured-guide-step-body {
    margin: 0;
    color: #536174;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.structured-guide-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.structured-guide-list-item {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 14px;
    border: 1px solid #dfe4ec;
    border-radius: 4px;
    background: #fff;
    color: #344054;
    text-align: left;
}

.structured-guide-list-item:hover,
.structured-guide-list-item:focus-visible {
    border-color: #7aaef0;
    outline: 2px solid #8bbcf2;
    outline-offset: 1px;
}

.structured-guide-list-title {
    font-size: 15px;
}

.structured-guide-list-description,
.structured-guide-list-status,
.structured-guide-step-count {
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.structured-guide-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.structured-guide-field {
    display: grid;
    gap: 6px;
}

.structured-guide-field-label {
    color: #475467;
    font-size: 13px;
    font-weight: 600;
}

.structured-guide-select {
    min-height: 40px;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #cfd7e3;
    border-radius: 4px;
    background: #fff;
    color: #344054;
}

.structured-guide-step-count {
    margin: 0 0 8px;
}

.structured-guide-progress {
    height: 6px;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 3px;
    background: #e9edf3;
}

.structured-guide-progress-bar {
    display: block;
    height: 100%;
    background: #0665d0;
}

.structured-guide-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.structured-guide-button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #cfd7e3;
    border-radius: 4px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.structured-guide-button-primary,
.structured-guide-button-action {
    border-color: #0665d0;
    background: #0665d0;
    color: #fff;
}

.structured-guide-button:hover,
.structured-guide-button:focus-visible,
.structured-guide-launcher:focus-visible {
    outline: 2px solid #8bbcf2;
    outline-offset: 2px;
}

.structured-guide-qr-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e4e9f0;
    background: #f8fafc;
}

.structured-guide-qr {
    width: 220px;
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.structured-guide-copy-input {
    position: fixed;
    left: -10000px;
    top: 0;
}

@media (max-width: 520px) {
    .structured-guide-inline-list {
        grid-template-columns: 1fr;
    }

    .structured-guide-launcher {
        right: 12px;
        bottom: 12px;
    }

    .structured-guide-dialog {
        padding: 20px;
    }

    .structured-guide-fields {
        grid-template-columns: 1fr;
    }

    .structured-guide-actions,
    .structured-guide-button {
        width: 100%;
    }
}
