* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: #f6f7fb;
    color: #1e2430;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.brand h1 {
    margin: 0;
    font-size: 26px;
}

.brand p {
    margin: 4px 0 0;
    color: #6a7280;
}

.project-switch label {
    display: block;
    font-size: 12px;
    color: #6a7280;
}

.project-switch select {
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d7dbe3;
    min-width: 240px;
}

.project-switch .button {
    width: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.login-panel {
    max-width: 420px;
    margin: 80px auto 0;
}

.panel h2 {
    margin-top: 0;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f1f5;
}

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

.muted {
    color: #6a7280;
    font-size: 13px;
    display: block;
}

.card {
    background: #fdfdff;
    border: 1px solid #eef0f6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.card h3 {
    margin-top: 0;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
}

input,
select,
textarea,
button {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d7dbe3;
    margin-bottom: 12px;
    font-size: 14px;
}

button {
    background: #1f6fff;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

button.secondary {
    background: #f0f3f8;
    color: #1e2430;
}

.inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline select,
.inline button {
    margin-bottom: 0;
}

.cards {
    display: grid;
    gap: 12px;
}

.cards.two {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.list-grid {
    display: grid;
    gap: 12px;
}

.mini {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #edf0f6;
}

.mini img,
.card img {
    width: 100%;
    border-radius: 10px;
    margin-top: 8px;
}

audio,
video {
    width: 100%;
    margin-top: 8px;
}

.steps {
    margin-top: 24px;
}

.steps-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.step-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d7dbe3;
    background: #ffffff;
    color: #1e2430;
    cursor: pointer;
    width: auto;
}

.step-btn.active {
    background: #1f6fff;
    color: #ffffff;
    border-color: #1f6fff;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.stack {
    display: grid;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ffe9d5;
    color: #8a4b06;
    font-size: 12px;
    margin-top: 6px;
}

.button {
    display: inline-block;
    padding: 12px 18px;
    background: #1f6fff;
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.error {
    background: #fee4e2;
    color: #b42318;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}
