﻿.sim-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.sim-hero {
    background: #f6f7fb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(20, 20, 40, 0.08);
}

.sim-filter {
    display: grid;
    gap: 10px;
    align-items: center;
    grid-auto-flow: column;
}

.sim-readiness {
    width: 30%;
}

.sim-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #1f2a44;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sim-lead {
    margin: 12px 0 0;
    color: #3a3f52;
}

.sim-meta--muted {
    margin-top: 12px;
    color: #6b7280;
}

.sim-cta {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sim-tabs .btn {
    padding: 8px 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn.primary {
    background: #2f6fed;
    color: #fff;
    box-shadow: 0 6px 16px rgba(47, 111, 237, 0.25);
}

.btn.primary:hover {
    transform: translateY(-1px);
}

.btn.ghost {
    background: #fff;
    color: #2a2f45;
    border-color: #d7dbe8;
}

.sim-choice-btn.is-active {
    color: #fff;
    border-color: transparent;
}

.sim-choice-btn.choice-know.is-active {
    background: #2ac769;
    box-shadow: 0 8px 18px rgba(42, 199, 105, 0.25);
}

.sim-choice-btn.choice-repeat.is-active {
    background: #f0b429;
    box-shadow: 0 8px 18px rgba(240, 180, 41, 0.25);
}

.sim-choice-btn.choice-dont_know.is-active {
    background: #ef4444;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
}

.btn.full {
    width: 100%;
}

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

.sim-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(20, 20, 40, 0.08);
}

.sim-card-wide {
    grid-column: 1 / -1;
}

.sim-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.sim-form {
    display: grid;
    gap: 16px;
}

.sim-start-intro {
    display: grid;
    gap: 14px;
}

.sim-start-intro .sim-cta {
    margin-top: 0;
}

.sim-start-hidden {
    display: none;
}

.sim-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.sim-field {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #2a2f45;
}

.sim-field input,
.sim-field select,
.sim-field textarea {
    border: 1px solid #d8dce6;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
}

.sim-field small {
    color: #7a8198;
}

.sim-option {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8f9fd;
}

.sim-option input[type="checkbox"],
.sim-option input[type="radio"] {
    accent-color: #2f6fed;
}

.sim-options {
    display: grid;
    gap: 8px;
}

.sim-alert {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f3f4f8;
    color: #2a2f45;
    font-size: 14px;
}

.sim-alert.success {
    background: #e7f6ea;
    color: #1c6e36;
}

.sim-alert.error {
    background: #ffe7e7;
    color: #9b1c1c;
}

.sim-alert:empty {
  display: none;
}

.sim-hint {
    color: #6b7280;
    font-size: 13px;
}

.sim-secondary {
    margin-top: 20px;
    display: grid;
    gap: 16px;
}

.sim-deck {
    display: grid;
    gap: 20px;
}

.answer-box.blur {
  filter: blur(4px);
  opacity: 0.7;
  pointer-events: none;
}

.sim-flashcard {
    position: relative;
    border: 1px solid #edf0f7;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
    box-shadow: 0 12px 24px rgba(20, 20, 40, 0.08);
}

.sim-flashcard__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sim-flashcard__progress-wrap {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 8px;
}

.sim-flashcard__progress {
    font-size: 13px;
    color: #6b7280;
}

.sim-flashcard__progressbar {
    width: 100%;
    height: 6px;
    background: #e8ebf5;
    border-radius: 999px;
    overflow: hidden;
}

.sim-flashcard__progressbar span {
    display: block;
    height: 100%;
    background: #2f6fed;
}

.sim-flashcard__tag {
    font-size: 12px;
    text-transform: uppercase;
    color: #7a8198;
    letter-spacing: 0.08em;
}

.sim-flashcard__title {
    margin: 0 0 12px;
    font-size: 20px;
}

.sim-flashcard__body {
    font-size: 15px;
    line-height: 1.5;
    color: #1f2937;
}

.sim-flashcard__answer summary {
    cursor: pointer;
    font-weight: 600;
}

.sim-flashcard__answer[open] summary {
    margin-bottom: 8px;
}

.answer-box {
    /* white-space: pre-wrap; */
    color: #2a2f45;
}

.sim-flashcard__prompt {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.sim-flashcard-actions {
    background: #fff;
    border: 1px solid #edf0f7;
    box-shadow: 0 10px 24px rgba(20, 20, 40, 0.06);
}

.sim-choice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sim-choice-buttons .btn {
    flex: 1 1 160px;
    border-radius: 999px;
    padding: 10px 18px;
    justify-content: center;
}

.sim-flashcard__nav {
    display: flex;
    justify-content: flex-end;
}

.sim-flashcard__nav--inline {
    margin-top: 12px;
}

.sim-flashcard__nav #q-next {
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    border-color: rgba(47, 111, 237, 0.35);
    box-shadow: 0 10px 22px rgba(47, 111, 237, 0.18);
    background: #fff;
}

.sim-flashcard__nav #q-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(47, 111, 237, 0.24);
}

.sim-question__body {
    font-size: 15px;
    line-height: 1.6;
    color: #1f2937;
}

.sim-complete {
    border: 1px solid #edf0f7;
    background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
    box-shadow: 0 14px 28px rgba(20, 20, 40, 0.08);
}

.sim-complete__header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.sim-complete__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #1f2a44;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.sim-complete__title {
    margin: 0 0 6px;
    font-size: 22px;
}

.sim-complete__lead {
    margin: 0;
    color: #4b5563;
}

.sim-complete__verdict {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1f2a44;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sim-complete__verdict[data-level="success"] {
    background: #e7f6ea;
    color: #1c6e36;
}

.sim-complete__verdict[data-level="warning"] {
    background: #fff6e0;
    color: #8a5a00;
}

.sim-complete__verdict[data-level="danger"] {
    background: #ffe7e7;
    color: #9b1c1c;
}

.sim-complete__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.sim-complete__stat {
    background: #fff;
    border: 1px solid #eef1f7;
    border-radius: 12px;
    padding: 12px 14px;
    display: grid;
    gap: 6px;
}

.sim-complete__stat .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.sim-complete__stat .value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.sim-complete__cta {
    margin-top: 18px;
    flex-wrap: wrap;
}

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

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

.sim-option-history {
    justify-content: space-between;
    background: #f7f9fe;
    border: 1px solid #eef1f7;
    border-radius: 16px;
    padding: 16px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sim-option-history:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
}

.sim-history-left,
.sim-history-right {
    display: grid;
    gap: 6px;
}

.sim-history-right {
    text-align: right;
}

.sim-history-right * {
  width: 120px;
  box-sizing: border-box;
}

.sim-link-btn {
    width: auto !important;
    padding: 8px 14px;
    font-weight: 600;
}

.sim-history-title {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 15px;
}

.sim-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e7ecfb;
    color: #1f2a44;
    font-size: 12px;
    font-weight: 600;
}

.sim-chip.is-muted {
    background: #eef2f7;
    color: #64748b;
}

.sim-chip.is-success {
    background: #e7f6ea;
    color: #1c6e36;
}

.sim-chip.is-warning {
    background: #fff6e0;
    color: #8a5a00;
}

.sim-chip.choice-know {
    background: #e7f6ea;
    color: #1c6e36;
}

.sim-chip.choice-repeat {
    background: #fff6e0;
    color: #8a5a00;
}

.sim-chip.choice-dont_know {
    background: #ffe7e7;
    color: #9b1c1c;
}

.sim-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 13px;
    color: #475569;
}

.sim-history-topics {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: 13px;
    color: #334155;
}

.sim-direction-card {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 16px;
    display: grid;
    gap: 16px;
    align-items: center;
}

.sim-direction-main {
    display: grid;
    gap: 10px;
}

.sim-direction-title {
    font-size: 16px;
}

.sim-direction-progress .sim-progress {
    width: 100%;
    margin-bottom: 6px;
}

.sim-direction-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.sim-metric-pill {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
}

.sim-progress-bar.level-1 { background: #b91c1c; }
.sim-progress-bar.level-2 { background: #dc2626; }
.sim-progress-bar.level-3 { background: #f87171; }
.sim-progress-bar.level-4 { background: #fb923c; }
.sim-progress-bar.level-5 { background: #fbbf24; }
.sim-progress-bar.level-6 { background: #a3e635; }
.sim-progress-bar.level-7 { background: #4ade80; }
.sim-progress-bar.level-8 { background: #22c55e; }
.sim-progress-bar.level-9 { background: #16a34a; }

.sim-metric-pill.level-1 { border-color: rgba(185, 28, 28, 0.45); box-shadow: 0 6px 14px rgba(185, 28, 28, 0.12); }
.sim-metric-pill.level-2 { border-color: rgba(220, 38, 38, 0.45); box-shadow: 0 6px 14px rgba(220, 38, 38, 0.12); }
.sim-metric-pill.level-3 { border-color: rgba(248, 113, 113, 0.45); box-shadow: 0 6px 14px rgba(248, 113, 113, 0.12); }
.sim-metric-pill.level-4 { border-color: rgba(251, 146, 60, 0.45); box-shadow: 0 6px 14px rgba(251, 146, 60, 0.12); }
.sim-metric-pill.level-5 { border-color: rgba(251, 191, 36, 0.45); box-shadow: 0 6px 14px rgba(251, 191, 36, 0.12); }
.sim-metric-pill.level-6 { border-color: rgba(163, 230, 53, 0.45); box-shadow: 0 6px 14px rgba(163, 230, 53, 0.12); }
.sim-metric-pill.level-7 { border-color: rgba(74, 222, 128, 0.45); box-shadow: 0 6px 14px rgba(74, 222, 128, 0.12); }
.sim-metric-pill.level-8 { border-color: rgba(34, 197, 94, 0.45); box-shadow: 0 6px 14px rgba(34, 197, 94, 0.12); }
.sim-metric-pill.level-9 { border-color: rgba(22, 163, 74, 0.45); box-shadow: 0 6px 14px rgba(22, 163, 74, 0.12); }

.sim-metric-pill strong {
    font-size: 16px;
    color: #0f172a;
}

.sim-answer-type-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.sim-answer-pill {
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    display: grid;
    gap: 6px;
}

.sim-answer-pill__label {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

.sim-answer-pill__value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.sim-answer-pill__value strong {
    font-size: 20px;
    color: #0f172a;
}

.sim-answer-pill[data-choice="know"] {
    border-color: rgba(34, 197, 94, 0.35);
}

.sim-answer-pill[data-choice="repeat"] {
    border-color: rgba(240, 180, 41, 0.35);
}

.sim-answer-pill[data-choice="dont_know"] {
    border-color: rgba(239, 68, 68, 0.35);
}

.sim-subtopic-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    background: #f8fafc;
}

.sim-subtopic-card.is-strong {
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.06);
}

.sim-subtopic-card.is-weak {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.06);
}

.sim-subtopic-title {
    display: flex;
    gap: 6px;
    align-items: baseline;
    font-size: 14px;
}

.sim-subtopic-title span {
    color: #64748b;
}

.sim-subtopic-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: #64748b;
}

.sim-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.sim-trend.up {
    color: #16a34a;
}

.sim-trend.down {
    color: #dc2626;
}

.sim-trend.flat {
    color: #64748b;
}

.sim-subtopic-cta {
    white-space: nowrap;
}

.sim-progress {
    width: 100%;
    height: 8px;
    background: #e6e9f2;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 5px;
}

.sim-progress-bar {
    height: 100%;
    background: #2f6fed;
}

.sim-progress--green {
    background: #2ac769;
}

.sim-progress--yellow {
    background: #f0b429;
}

.sim-heatmap {
    margin-top: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr;
    align-items: start;
}

.sim-heatmap__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 12px;
    gap: 6px;
    align-items: start;
}

.sim-heatmap__col {
    display: grid;
    grid-template-rows: repeat(7, 12px);
    gap: 6px;
}

.sim-heatmap__cell {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #eef2f7;
    border: 1px solid rgba(15, 23, 42, 0.04);
    cursor: pointer;
}

.sim-heatmap__cell.is-muted {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.sim-heatmap__cell.is-selected {
    outline: 2px solid #1f2a44;
    outline-offset: 2px;
}

.sim-heatmap__cell.level-1 {
    background: #dbeafe;
}

.sim-heatmap__cell.level-2 {
    background: #bfdbfe;
}

.sim-heatmap__cell.level-3 {
    background: #60a5fa;
}

.sim-heatmap__cell.level-4 {
    background: #2563eb;
}

.sim-heatmap__y {
    display: grid;
    grid-template-rows: repeat(7, 12px);
    gap: 6px;
    align-items: center;
    color: #6b7280;
    font-size: 11px;
}

.sim-heatmap__y span {
    line-height: 12px;
}

.sim-heatmap__legend {
    display: flex;
    align-items: center;
    gap: 6px;
    grid-column: 1 / -1;
}

.sim-heatmap .custom-select {
    min-width: 140px;
}

.sim-heatmap__legend .sim-heatmap__cell {
    width: 10px;
    height: 10px;
}

@media (max-width: 768px) {
    .sim-page {
        padding: 24px 14px 36px;
    }

    .sim-hero {
        padding: 20px;
    }

    .sim-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .sim-tabs {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .sim-tabs .btn {
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }

    .sim-cta .btn {
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }

    .sim-filter {
        grid-auto-flow: row;
        align-items: stretch;
    }

    .sim-filter > * {
        width: 100%;
    }

    .sim-history-right {
        text-align: left;
    }

    .sim-heatmap .custom-select,
    .sim-filter .custom-select,
    .sim-filter select {
        width: 100%;
        min-width: 0;
    }

    .sim-choice-buttons {
        flex-direction: column;
    }

    .sim-choice-buttons .btn {
        flex: 1 1 auto;
        width: 100%;
    }

    .sim-heatmap__grid {
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .sim-list--history .sim-option-history {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .sim-history-right {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        text-align: left;
        width: 100%;
    }

    .sim-history-right * {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .sim-history-right .btn,
    .sim-history-right form .btn,
    .sim-history-right form button {
        text-align: center;
        justify-content: center;
    }

    .sim-history-action,
    .sim-history-right form,
    .sim-history-right .btn {
        width: 100%;
    }

    .sim-history-right form .btn,
    .sim-history-right form button {
        width: 100%;
    }

    .sim-history-right {
        width: 100%;
    }

    .sim-history-right form {
        width: 100%;
        display: block;
    }

    .sim-history-right form .btn,
    .sim-history-right form button,
    .sim-history-right .btn {
        display: block;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .sim-history-topics,
    .sim-history-meta {
        gap: 8px 12px;
    }

    .sim-complete__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sim-complete__stats {
        grid-template-columns: 1fr;
    }

    .sim-flashcard__header {
        flex-wrap: wrap;
    }

    .sim-flashcard__title {
        font-size: 18px;
    }

    .sim-direction-card {
        grid-auto-flow: row;
    }

    .sim-direction-metrics {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .sim-subgrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sim-grid {
        grid-template-columns: 1fr;
    }

    .sim-card {
        padding: 16px;
    }

    .sim-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sim-history-right {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sim-history-right * {
        width: auto;
    }

    .sim-option-history {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .sim-history-topics,
    .sim-history-meta {
        gap: 8px 12px;
    }

    .sim-answer-type-row {
        grid-template-columns: 1fr;
    }

    .sim-subtopic-card {
        flex-direction: column;
        align-items: stretch;
    }

    .sim-subtopic-cta {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .sim-readiness {
        width: 100%;
    }

    .sim-heatmap__grid {
        grid-auto-columns: 12px;
        gap: 5px;
    }

    .sim-heatmap__col {
        grid-template-rows: repeat(7, 12px);
        gap: 5px;
    }

    .sim-heatmap__cell {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 520px) {
    .sim-page {
        padding: 20px 12px 32px;
    }

    .sim-hero h1 {
        font-size: 22px;
    }

    .sim-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .sim-cta .btn {
        width: 100%;
    }

    .sim-option {
        align-items: flex-start;
    }

    .sim-heatmap {
        grid-template-columns: 1fr;
    }

    .sim-heatmap__y {
        display: none;
    }

    .sim-heatmap__legend {
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .sim-heatmap .custom-select,
    .sim-filter .custom-select,
    .sim-filter select {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 1200px) {
    .sim-list--history .sim-option-history {
        gap: 14px;
    }

    .sim-history-right * {
        width: 110px;
    }
}

@media (max-width: 1024px) {
    .sim-list--history .sim-option-history {
        padding: 14px;
    }

    .sim-history-meta {
        gap: 10px 14px;
    }

    .sim-history-right * {
        width: 100px;
    }
}

@media (max-width: 390px) {
    .sim-page {
        padding: 20px 12px 28px;
    }

    .sim-hero h1 {
        font-size: 20px;
    }

    .sim-option-history {
        padding: 12px;
    }

    .sim-history-title {
        font-size: 14px;
    }

    .sim-chip {
        font-size: 11px;
        padding: 3px 8px;
    }

    .sim-history-meta,
    .sim-history-topics {
        font-size: 12px;
    }

    .sim-history-right {
        gap: 6px;
    }

    .sim-history-right .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sim-page {
        padding: 22px 12px 30px;
    }

    .sim-hero {
        padding: 18px;
    }

    .sim-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .sim-cta .btn {
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }

    .sim-tabs {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .sim-tabs .btn {
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }

    .sim-option-history {
        padding: 12px;
    }

    .sim-history-right {
        gap: 6px;
    }

    .sim-history-right .btn {
        width: 100%;
    }

    .sim-heatmap {
        grid-template-columns: 1fr;
    }

    .sim-heatmap__y {
        display: none;
    }

    .sim-heatmap__grid {
        grid-auto-columns: 12px;
        gap: 5px;
    }

    .sim-heatmap__col {
        grid-template-rows: repeat(7, 12px);
        gap: 5px;
    }

    .sim-heatmap__cell {
        width: 12px;
        height: 12px;
    }

    .sim-heatmap__legend {
        flex-wrap: wrap;
        gap: 4px 8px;
    }
}

@media (max-width: 360px) {
    .sim-page {
        padding: 18px 10px 26px;
    }

    .sim-hero h1 {
        font-size: 19px;
    }

    .sim-history-title {
        font-size: 13px;
    }

    .sim-chip {
        font-size: 10px;
        padding: 3px 7px;
    }
}

@media (max-width: 320px) {
    .sim-page {
        padding: 16px 10px 24px;
    }

    .sim-hero h1 {
        font-size: 18px;
    }
}

@media (min-width: 640px) and (max-width: 1200px) {
    .sim-heatmap__grid {
        width: 100%;
        max-width: 100%;
        grid-auto-columns: 12px;
        gap: 5px;
    }

    .sim-heatmap__col {
        grid-template-rows: repeat(7, 12px);
        gap: 5px;
    }

    .sim-heatmap__cell {
        width: 12px;
        height: 12px;
    }

    .sim-heatmap .custom-select {
        width: auto;
        min-width: 140px;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .sim-card {
        max-width: 100%;
        box-sizing: border-box;
    }

    .sim-cta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sim-tabs {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        flex-direction: row;
    }

    .sim-tabs .btn {
        flex: 1 1 0;
        max-width: 100%;
        box-sizing: border-box;
        padding: 8px 12px;
    }

    .sim-page {
        overflow-x: hidden;
    }

    .sim-heatmap__grid {
        overflow-x: hidden;
        /* grid-auto-columns: clamp(8px, 1vw, 12px); */
        /* gap: clamp(3px, 0.6vw, 5px); */
        max-width: 100%;
    }

    /* .sim-heatmap__col {
        grid-template-rows: repeat(7, clamp(8px, 1vw, 12px));
        gap: clamp(3px, 0.6vw, 5px);
    } */

    /* .sim-heatmap__cell {
        width: clamp(8px, 1vw, 12px);
        height: clamp(8px, 1vw, 12px);
    } */
}
