/* =========================
   Base / Reset
   ========================= */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
    margin: 0;
    background: #f7f7f7;
}

/* =========================
   Layout
   ========================= */
.container {
    max-width: 560px;
    margin: 0 auto;
    padding: 16px;
}

.row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* =========================
   Card / Typography
   ========================= */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

h1 {
    margin: 8px 0 0;
    font-size: 22px;
}

h3 {
    margin: 16px 0 8px;
    font-size: 16px;
}

.muted {
    color: #666;
    margin-top: 6px;
}

.progress {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
}

.hint {
    margin: 10px 0 0;
    font-size: 13px;
}

.list {
    margin: 10px 0 30px 0;
    padding-left: 18px;
}

/* =========================
   Buttons
   ========================= */
.btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    background: #111;
    color: #fff;
}

.btn.ghost {
    background: #eee;
    color: #111;
}

/* =========================
   Question UI
   ========================= */
.scale,
.choices {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.scale {
    grid-template-columns: repeat(5, 1fr);
}

.chip {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px 0;
    background: #fff;
    font-size: 16px;
}

.choice {
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    font-size: 15px;
}

.textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    outline: none;
    resize: vertical;
}

/* =========================
   Result cards / Badges
   ========================= */
.miniCard {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 12px;
    margin: 10px 0;
    background: #fff;
}

.miniTop {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.miniTitle {
    font-weight: 600;
}

.badge {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #ddd;
    white-space: nowrap;
}

/* =========================
   Report (AI + Template)
   ========================= */
.report {
    /* Base container look */
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;

    /* Typography */
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
}

/* Если где-то ещё используется <pre class="report"> — пусть переносит строки */
pre.report {
    white-space: pre-wrap;
}

/* Paragraphs / Headings inside report */
.report p {
    margin: 0 0 8px;
}

.report h1,
.report h2 {
    font-size: 16px;
    margin: 16px 0 8px;
    font-weight: 600;
}

.report h3 {
    font-size: 14px;
    margin: 14px 0 6px;
    font-weight: 600;
    color: #333;
}

/* Lists inside report */
.report ul,
.report ol {
    margin: 6px 0 10px;
    padding-left: 18px;
}

.report li {
    margin: 4px 0;
}

/* Emphasis */
.report strong {
    font-weight: 600;
}

/* Dividers */
.report hr {
    margin: 10px 0;
}

/* Section separators before H2 */
.report h2::before {
    content: "";
    display: block;
    height: 1px;
    background: #e6e6e6;
    margin: 16px 0 12px;
}

.report h2:first-of-type::before {
    display: none;
}

.choice.active {
    outline: 2px solid #111;
}

.appHeader {
    padding: 20px 16px 12px;
    border-bottom: 1px solid #eee;
}

.logoStub {
    font-size: 12px;
    letter-spacing: 0.12em;
    opacity: 0.5;
    margin-bottom: 6px;
}

.appTitle {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.appSubtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #666;
}
