.smt-wrapper {
    --smt-primary: #255637;
    --smt-light: #f3faf8;
    --smt-white: #ffffff;
    --smt-border: rgba(37, 86, 55, 0.18);
    font-family: inherit;
    color: #173522;
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 64px;
    box-sizing: border-box;
}
.smt-wrapper *, .smt-wrapper *::before, .smt-wrapper *::after { box-sizing: border-box; }
.smt-card { background: var(--smt-white); border: 1px solid var(--smt-border); border-radius: 18px; padding: 24px; box-shadow: 0 8px 28px rgba(20, 58, 37, .06); }
.smt-intro { margin-bottom: 24px; background: var(--smt-light); }
.smt-progress-counter { position: fixed; z-index: 20; left: 20px; bottom: 110px; display: flex; align-items: center; gap: 6px; background: var(--smt-primary); color: #fff; padding: 10px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(37, 86, 55, .25); }
.smt-question { border: 1px solid var(--smt-border); border-radius: 16px; padding: 22px; margin: 0 0 18px; background: #fff; }
.smt-question legend { float: left; width: 100%; padding: 0; font-weight: 400; line-height: 1.9; }
.smt-question-number { display: block; color: var(--smt-primary); font-size: .9rem; margin-bottom: 4px; }
.smt-question-text { display: block; }
.smt-likert { clear: both; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.smt-likert-option { position: relative; min-height: 76px; border: 1px solid var(--smt-border); border-radius: 12px; padding: 10px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; transition: .18s ease; }
.smt-likert-option input { position: absolute; opacity: 0; pointer-events: none; }
.smt-likert-option[data-value="-2"], .smt-likert-option[data-value="2"] { background: rgba(37, 86, 55, .22); }
.smt-likert-option[data-value="-1"], .smt-likert-option[data-value="1"] { background: rgba(37, 86, 55, .10); }
.smt-likert-option[data-value="0"] { background: #fff; }
.smt-likert-option:hover { border-color: var(--smt-primary); transform: translateY(-1px); }
.smt-likert-option:focus-within { outline: 3px solid rgba(37, 86, 55, .24); outline-offset: 2px; }
.smt-likert-option.is-selected { background: var(--smt-primary) !important; border-color: var(--smt-primary); color: #fff; }
.smt-likert-option.is-selected::after { content: "✓"; position: absolute; top: 5px; left: 8px; font-weight: 800; }
.smt-likert-value { font-size: 1.05rem; font-weight: 800; }
.smt-likert-label { font-size: .82rem; line-height: 1.5; }
.smt-question--unanswered { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .10); }
.smt-submit-area { text-align: center; margin-top: 28px; }
.smt-button { appearance: none; border: 0; border-radius: 12px; padding: 13px 22px; background: var(--smt-primary); color: #fff !important; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.smt-button:disabled { opacity: .65; cursor: wait; }
.smt-button--secondary { background: var(--smt-light); color: var(--smt-primary) !important; border: 1px solid var(--smt-border); }
.smt-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.smt-notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; background: var(--smt-light); }
.smt-notice--error, .smt-form-error { background: #fff1f0; color: #8a1c14; border: 1px solid #f0b9b5; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.smt-result-card { text-align: center; }
.smt-result-eyebrow { margin: 0; color: #52745e; }
.smt-result-type { font-size: clamp(2.6rem, 8vw, 5rem); margin: 8px 0 22px; color: var(--smt-primary); letter-spacing: .08em; }
.smt-dimensions { display: grid; gap: 20px; text-align: right; }
.smt-dimension { background: var(--smt-light); border-radius: 14px; padding: 16px; }
.smt-dimension-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; font-size: .92rem; }
.smt-dimension-head span:last-child { text-align: left; }
.smt-bar { height: 16px; border-radius: 999px; overflow: hidden; background: rgba(37, 86, 55, .18); margin-top: 12px; }
.smt-bar-fill { display: block; height: 100%; background: var(--smt-primary); }
.smt-intensity, .smt-result-note, .smt-result-date { color: #52745e; }
.smt-chart { width: 100%; margin-top: 30px; padding: 18px; border: 1px solid var(--smt-border); border-radius: 16px; background: #fff; box-sizing: border-box; overflow: hidden; }
.smt-chart-title { margin: 0 0 14px; color: var(--smt-primary); font-size: 1.08rem; text-align: center; }
.smt-chart canvas { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.smt-chart-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.smt-page-description { text-align: inherit; }
.smt-page-description > :first-child { margin-top: 0; }
.smt-page-description > :last-child { margin-bottom: 0; }
.smt-history-back { max-width: 980px; margin: 18px auto 0; padding: 0 16px; }
.smt-history-table-wrap { overflow-x: auto; }
.smt-history-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.smt-history-table th, .smt-history-table td { padding: 12px; border-bottom: 1px solid var(--smt-border); text-align: start; vertical-align: middle; }
.smt-history-table th { color: var(--smt-primary); background: var(--smt-light); }
.smt-history-view { padding: 8px 15px; white-space: nowrap; }
@media (max-width: 720px) {
    .smt-likert { grid-template-columns: 1fr; }
    .smt-likert-option { min-height: 52px; flex-direction: row; justify-content: flex-start; padding-inline: 16px; }
    .smt-progress-counter { left: 12px; bottom: 12px; }
    .smt-question { padding: 18px 14px; }
    .smt-history-table { min-width: 620px; }
}

.smt-result-heading {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    color: #173522;
}
.smt-result-name {
    margin: -12px 0 20px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #52745e;
}
.smt-result-section {
    margin-top: 30px;
    text-align: right;
}
.smt-result-section > h3 {
    margin: 0 0 12px;
    color: var(--smt-primary);
    font-size: 1.25rem;
    line-height: 1.7;
}
.smt-result-section > p {
    margin: 0;
    line-height: 2;
}
.smt-result-section ul {
    margin: 0;
    padding-right: 22px;
    line-height: 2;
}
.smt-score-section {
    border-top: 1px solid var(--smt-border);
    padding-top: 26px;
}
.smt-type-details {
    margin-top: 32px;
    border-top: 1px solid var(--smt-border);
}
.smt-growth-section {
    background: var(--smt-light);
    border-radius: 14px;
    padding: 18px;
}

.smt-type-visual {
    width: min(100%, 560px);
    margin: 30px auto 8px;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--smt-light);
    border: 1px solid var(--smt-border);
    box-shadow: 0 10px 30px rgba(20, 58, 37, .08);
}
.smt-type-visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
@media (max-width: 720px) {
    .smt-type-visual {
        width: 100%;
        margin-top: 24px;
        border-radius: 14px;
    }
}


.smt-ai-analysis {
    margin-top: 34px;
    padding: 22px;
    border: 1px solid var(--smt-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, var(--smt-light) 100%);
}
.smt-ai-analysis > h3 {
    margin-bottom: 18px;
}
.smt-ai-block + .smt-ai-block {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--smt-border);
}
.smt-ai-block h4 {
    margin: 0 0 10px;
    color: #173522;
    font-size: 1.05rem;
    line-height: 1.7;
}
.smt-ai-block p, .smt-ai-block ul {
    margin: 0;
    line-height: 2;
}
.smt-ai-block ul {
    padding-right: 22px;
}
.smt-ai-borderline {
    background: rgba(255, 255, 255, .72);
    border-radius: 12px;
    padding: 14px;
}

.smt-wrapper.smt-ltr{direction:ltr;text-align:left}.smt-wrapper.smt-rtl{direction:rtl;text-align:right}.smt-ltr .smt-question legend,.smt-ltr .smt-result-section{text-align:left}.smt-ltr .smt-likert-option{text-align:center}.smt-ltr .smt-dimension-head{direction:ltr}.smt-rtl .smt-dimension-head{direction:rtl}
