.ksp-install-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #f5ede0 0%, #fefaf5 45%, #e8f5e9 100%);
    font-family: 'Inter', system-ui, sans-serif;
    color: #2c1810;
    padding: 24px 16px 48px;
}

.ksp-install-wrap {
    max-width: 920px;
    margin: 0 auto;
}

.ksp-install-hero {
    text-align: center;
    margin-bottom: 28px;
}

.ksp-install-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(74, 44, 10, 0.12);
    margin-bottom: 14px;
}

.ksp-install-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin: 0 0 6px;
    color: #4a2c0a;
}

.ksp-install-hero .entity {
    font-size: 1rem;
    color: #6b5344;
    margin-bottom: 8px;
}

.ksp-install-hero .lead {
    font-size: 0.95rem;
    color: #5a4a3a;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.55;
}

.ksp-share-box {
    background: #fff;
    border: 1px solid rgba(74, 44, 10, 0.12);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.ksp-share-box code {
    font-size: 0.82rem;
    word-break: break-all;
    color: #4a2c0a;
    background: #f5ede0;
    padding: 8px 12px;
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
}

.ksp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ksp-btn:active { transform: scale(0.98); }

.ksp-btn-primary {
    background: linear-gradient(135deg, #4a2c0a, #6b4423);
    color: #fff;
    box-shadow: 0 4px 14px rgba(74, 44, 10, 0.25);
}

.ksp-btn-outline {
    background: #fff;
    color: #4a2c0a;
    border: 1px solid rgba(74, 44, 10, 0.2);
}

.ksp-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.ksp-mode-tab {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 18px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.ksp-mode-tab.active {
    border-color: #4a2c0a;
    box-shadow: 0 8px 24px rgba(74, 44, 10, 0.15);
}

.ksp-mode-tab i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.ksp-mode-tab .tab-title {
    font-weight: 700;
    font-size: 1rem;
    color: #4a2c0a;
}

.ksp-mode-tab .tab-desc {
    font-size: 0.78rem;
    color: #7a6a5a;
    margin-top: 4px;
}

.ksp-qr-panel {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(74, 44, 10, 0.1);
    display: none;
}

.ksp-qr-panel.active { display: block; }

.ksp-qr-panel h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #4a2c0a;
}

.ksp-qr-panel p {
    font-size: 0.88rem;
    color: #6b5344;
    margin: 0 0 20px;
    line-height: 1.5;
}

.ksp-qr-box {
    display: inline-block;
    padding: 16px;
    background: #fff;
    border: 2px solid #f0e6d8;
    border-radius: 16px;
    margin-bottom: 16px;
}

.ksp-qr-box canvas,
.ksp-qr-box img {
    display: block;
    max-width: 220px;
    height: auto;
}

.ksp-steps {
    text-align: left;
    max-width: 420px;
    margin: 20px auto 0;
    padding: 0;
    list-style: none;
}

.ksp-steps li {
    position: relative;
    padding: 8px 0 8px 32px;
    font-size: 0.85rem;
    color: #5a4a3a;
    line-height: 1.45;
}

.ksp-steps li::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    background: #4a2c0a;
    color: #fff;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ksp-mobile-actions {
    display: none;
    gap: 12px;
    flex-direction: column;
    margin-top: 20px;
}

.ksp-mobile-actions .ksp-btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
}

.ksp-footer-links {
    text-align: center;
    margin-top: 28px;
    font-size: 0.85rem;
}

.ksp-footer-links a {
    color: #4a2c0a;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 640px) {
    .ksp-qr-desktop { display: none !important; }
    .ksp-mobile-actions { display: flex; }
    .ksp-mode-tabs { grid-template-columns: 1fr; }
}

@media (min-width: 641px) {
    .ksp-mobile-only { display: none !important; }
}

.ksp-admin-box {
    background: #fff;
    border: 1px solid rgba(74, 44, 10, 0.15);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
}

.ksp-admin-box summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    color: #4a2c0a;
    list-style: none;
}

.ksp-admin-box summary::-webkit-details-marker { display: none; }

.ksp-admin-inner {
    padding: 0 18px 18px;
    border-top: 1px solid #f0e6d8;
}

.ksp-admin-label {
    font-size: 0.85rem;
    color: #6b5344;
    margin: 12px 0 6px;
}

.ksp-admin-code {
    display: block;
    word-break: break-all;
    background: #f5ede0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.ksp-admin-copy { margin-bottom: 12px; }

.ksp-admin-list {
    font-size: 0.85rem;
    color: #5a4a3a;
    line-height: 1.55;
    padding-left: 20px;
    margin: 0 0 10px;
}

.ksp-admin-note { font-size: 0.82rem; margin: 0; }
.ksp-admin-note a { color: #4a2c0a; font-weight: 600; }
