/* ===== 模拟窗口样式 ===== */
.viewport-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: transparent;
    transition: background 0.3s ease;
}

body.dark-mode .viewport-wrapper {
    background: transparent;
}

.window-container {
    width: 1280px;
    height: 820px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e0ddd9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

body.dark-mode .window-container {
    background: #1a1a1a;
    border-color: #333;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.window-titlebar {
    height: 40px;
    background: linear-gradient(to bottom, #f9f8f7, #f5f3f0);
    border-bottom: 1px solid #e0ddd9;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    user-select: none;
}

body.dark-mode .window-titlebar {
    background: linear-gradient(to bottom, #262626, #1e1e1e);
    border-bottom-color: #333;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.control-dot:hover {
    transform: scale(1.1);
}

.control-dot.red {
    background: #ff5f57;
}

.control-dot.yellow {
    background: #ffbd2e;
}

.control-dot.green {
    background: #28c940;
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

body.dark-mode .window-title {
    color: #aaa;
}

.app-content {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

#setup-wizard {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#setup-wizard.step-6-active {
    align-items: center;
    justify-content: center;
    padding: 12px;
}

#setup-wizard.step-6-active #wizard-step-6 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    overflow: hidden;
    box-sizing: border-box;
}

#setup-wizard.step-6-active #wizard-step-6 #main-app {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    flex: 1;
    min-height: 0;
}

#setup-wizard.step-6-active #wizard-step-6 > .flex.justify-between.items-center.mt-8 {
    width: 100%;
    margin-top: 12px;
    flex-shrink: 0;
}

#setup-wizard.step-6-active #main-app * {
    scrollbar-width: none;
}

#setup-wizard.step-6-active #main-app *::-webkit-scrollbar {
    width: 0;
    height: 0;
}

#setup-wizard .min-h-screen {
    min-height: auto;
    height: 100%;
    background: transparent;
    padding: 0;
}

#main-app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

#setup-wizard .w-full {
    max-width: 600px;
}

#main-app > div:first-child {
    height: 44px;
    flex-shrink: 0;
}

#main-app > .flex {
    flex: 1;
    overflow: hidden;
}

#setup-wizard .bg-gradient-to-br {
    background: transparent !important;
}
