.kst-dashboard,
.kst-dashboard *,
.kst-shortcode,
.kst-shortcode * {
    box-sizing: border-box;
}

.kst-dashboard,
.kst-shortcode {
    --kst-page-max: 1280px;
    --kst-bg: #f5f7fa;
    --kst-surface: #ffffff;
    --kst-surface-soft: #f9fafb;
    --kst-text: #111827;
    --kst-muted: #5b6472;
    --kst-border: #dfe5ec;
    --kst-border-strong: #cbd5e1;
    --kst-leading: #16a34a;
    --kst-leading-soft: #e8f7ee;
    --kst-weakening: #f59e0b;
    --kst-weakening-soft: #fff6df;
    --kst-lagging: #dc2626;
    --kst-lagging-soft: #fdecec;
    --kst-improving: #2563eb;
    --kst-improving-soft: #eaf1ff;
    --kst-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    --kst-radius: 8px;
    --kst-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
    width: min(var(--kst-page-max), 100%);
    margin: 0 auto;
    transform: none;
    color: var(--kst-text);
    font-family: var(--kst-font);
    letter-spacing: 0;
}

body.home .site-content,
body.page-id-108 .site-content,
body.kr-stock-tools-page .site-content {
    display: block;
    width: 100%;
    max-width: none;
    overflow-x: hidden;
}

body.home .content-area,
body.page-id-108 .content-area,
body.kr-stock-tools-page .content-area {
    float: none;
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

body.home .widget-area,
body.home .is-right-sidebar,
body.home .is-left-sidebar,
body.page-id-108 .widget-area,
body.page-id-108 .is-right-sidebar,
body.page-id-108 .is-left-sidebar,
body.kr-stock-tools-page .widget-area,
body.kr-stock-tools-page .is-right-sidebar,
body.kr-stock-tools-page .is-left-sidebar {
    display: none;
}

body.home .inside-article,
body.page-id-108 .inside-article,
body.kr-stock-tools-page .inside-article {
    padding-right: 0;
    padding-left: 0;
}

body.home .entry-header,
body.page-id-108 .entry-header,
body.kr-stock-tools-page .entry-header {
    display: none;
}

body.home .entry-content,
body.page-id-108 .entry-content,
body.kr-stock-tools-page .entry-content {
    margin-top: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body.home,
body.page-id-108,
body.kr-stock-tools-page {
    overflow-x: hidden;
}

body.home .tojaman-rrg-entry,
body.page-id-108 .tojaman-rrg-entry,
body.kr-stock-tools-page .tojaman-rrg-entry {
    display: none !important;
}

.kst-dashboard {
    padding: 20px 0 64px;
}

.kst-shortcode {
    padding: 28px 0;
}

.kst-dashboard a,
.kst-shortcode a {
    color: inherit;
    text-decoration: none;
}

.kst-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0 24px;
}

.kst-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--kst-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.kst-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: var(--kst-surface);
    color: var(--kst-improving);
    font-size: 13px;
    font-weight: 900;
}

.kst-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.kst-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: var(--kst-radius);
    color: var(--kst-muted);
    font-size: 14px;
    font-weight: 700;
}

.kst-nav a:hover,
.kst-nav a:focus-visible {
    background: var(--kst-surface);
    color: var(--kst-text);
    outline: none;
}

.kst-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: 28px;
    align-items: stretch;
    padding: 48px;
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #eef4ff 100%);
    box-shadow: var(--kst-shadow);
}

.kst-hero-copy {
    align-self: center;
    max-width: 760px;
}

.kst-hero h1,
.kst-page-intro h1 {
    margin: 0;
    color: var(--kst-text);
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
    word-break: keep-all;
}

.kst-hero p,
.kst-page-intro p {
    margin: 22px 0 0;
    max-width: 720px;
    color: var(--kst-muted);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.7;
    word-break: keep-all;
}

.kst-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.kst-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--kst-radius);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.kst-button:hover,
.kst-button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.kst-button-primary {
    background: var(--kst-text);
    color: #ffffff !important;
}

.kst-button-primary:hover,
.kst-button-primary:focus-visible {
    background: #253044;
}

.kst-button-secondary,
.kst-button-small {
    border-color: var(--kst-border-strong);
    background: var(--kst-surface);
    color: var(--kst-text) !important;
}

.kst-button-secondary:hover,
.kst-button-secondary:focus-visible,
.kst-button-small:hover,
.kst-button-small:focus-visible {
    border-color: var(--kst-text);
}

.kst-button-small {
    min-height: 44px;
    margin-top: auto;
    padding: 0 16px;
    font-size: 14px;
}

.kst-hero-panel {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    padding: 18px;
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: rgba(255, 255, 255, 0.72);
}

.kst-showcase-track {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 374px;
}

.kst-showcase-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateX(20px);
    animation: kst-showcase-rotate 12s infinite;
}

.kst-showcase-slide:nth-child(2) {
    animation-delay: 6s;
}

.kst-showcase-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.kst-showcase-head span {
    color: var(--kst-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.kst-showcase-head strong {
    color: var(--kst-text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    text-align: right;
}

.kst-showcase-rrg {
    width: 100%;
    flex: 1;
    min-height: 0;
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: var(--kst-surface);
}

.kst-rrg-bg {
    fill: #ffffff;
}

.kst-rrg-zone {
    opacity: 0.58;
}

.kst-rrg-zone-leading {
    fill: #e6f6ef;
}

.kst-rrg-zone-improving {
    fill: #eaf2ff;
}

.kst-rrg-zone-lagging {
    fill: #fdeff0;
}

.kst-rrg-zone-weakening {
    fill: #fff6df;
}

.kst-rrg-grid-line {
    fill: none;
    stroke: #cfdbe5;
    stroke-width: 1.2;
}

.kst-big-label {
    fill: rgba(15, 23, 42, 0.32);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
}

.kst-tail-line {
    fill: none;
    stroke: #18866f;
    stroke-linecap: round;
    stroke-width: 4;
}

.kst-tail-line-alt {
    stroke: #d99419;
}

.kst-plot-point circle {
    stroke: #ffffff;
    stroke-width: 4;
    filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.2));
}

.kst-plot-point text,
.kst-axis-label {
    fill: #243041;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 4px;
    stroke-linejoin: round;
}

.kst-axis-label {
    fill: #657282;
    font-size: 12px;
    stroke-width: 3px;
}

.kst-plot-leading circle {
    fill: #2f73d6;
}

.kst-plot-neutral circle {
    fill: #15967e;
}

.kst-plot-weakening circle {
    fill: var(--kst-weakening);
}

.kst-plot-lagging circle {
    fill: #c55f9a;
}

.kst-plot-improving circle {
    fill: #2d7fc7;
}

.kst-showcase-table-wrap {
    flex: 1;
    overflow: hidden;
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: var(--kst-surface);
}

.kst-showcase-table {
    width: 100%;
    border-collapse: collapse;
}

.kst-showcase-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--kst-border);
    color: var(--kst-text);
    font-size: 14px;
    font-weight: 800;
    vertical-align: middle;
}

.kst-showcase-table tr:last-child td {
    border-bottom: 0;
}

.kst-showcase-table td:first-child {
    width: 54%;
}

.kst-showcase-table strong,
.kst-showcase-table span {
    display: block;
}

.kst-showcase-table strong {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.kst-showcase-table span {
    margin-top: 6px;
    color: #71808d;
    font-size: 12px;
    font-weight: 800;
}

.kst-showcase-table td:last-child {
    text-align: right;
    white-space: nowrap;
}

.kst-grade-stack {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 74px;
}

.kst-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #d4e2df;
    border-radius: var(--kst-radius);
    background: #f7fbfa;
    color: #789095;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.kst-grade-a {
    background: #d94851;
    border-color: #d94851;
    color: #ffffff;
}

.kst-grade-b {
    background: #14866f;
    border-color: #14866f;
    color: #ffffff;
}

.kst-grade-c {
    background: #3673d6;
    border-color: #3673d6;
    color: #ffffff;
}

.kst-dot-leading {
    background: var(--kst-leading);
}

.kst-dot-weakening {
    background: var(--kst-weakening);
}

.kst-dot-lagging {
    background: var(--kst-lagging);
}

.kst-dot-improving {
    background: var(--kst-improving);
}

.kst-showcase-dots {
    position: absolute;
    right: 18px;
    bottom: 14px;
    display: flex;
    gap: 6px;
}

.kst-showcase-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #b8c4cf;
    animation: kst-showcase-dot 12s infinite;
}

.kst-showcase-dots span:nth-child(2) {
    animation-delay: 6s;
}

@keyframes kst-showcase-rotate {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    8%,
    45% {
        opacity: 1;
        transform: translateX(0);
    }

    53%,
    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

@keyframes kst-showcase-dot {
    0%,
    53%,
    100% {
        background: #b8c4cf;
    }

    8%,
    45% {
        background: var(--kst-text);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kst-showcase-slide,
    .kst-showcase-dots span {
        animation: none;
    }

    .kst-showcase-slide:first-child {
        opacity: 1;
        transform: none;
    }

    .kst-showcase-slide:nth-child(2) {
        display: none;
    }
}

.kst-section {
    margin-top: 42px;
}

.kst-section-heading {
    margin-bottom: 18px;
}

.kst-section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.kst-section-heading h2,
.kst-guide h2 {
    margin: 0;
    color: var(--kst-text);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: 0;
    word-break: keep-all;
}

.kst-section-heading p,
.kst-guide p,
.kst-tool-card p,
.kst-report-card p {
    margin: 10px 0 0;
    color: var(--kst-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    word-break: keep-all;
}

.kst-summary-grid,
.kst-tool-grid,
.kst-report-grid,
.kst-definition-grid {
    display: grid;
    gap: 16px;
}

.kst-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kst-tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kst-report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kst-definition-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kst-card,
.kst-report-card,
.kst-definition {
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: var(--kst-surface);
}

.kst-card {
    min-width: 0;
    padding: 24px;
}

.kst-summary-card {
    min-height: 168px;
    border-top-width: 5px;
}

.kst-card-leading {
    border-top-color: var(--kst-leading);
}

.kst-card-weakening {
    border-top-color: var(--kst-weakening);
}

.kst-card-lagging {
    border-top-color: var(--kst-lagging);
}

.kst-card-improving {
    border-top-color: var(--kst-improving);
}

.kst-card h3,
.kst-tool-card h3,
.kst-report-card h3 {
    margin: 0;
    color: var(--kst-text);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0;
    word-break: keep-all;
}

.kst-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.kst-tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: var(--kst-surface-soft);
    color: var(--kst-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.kst-tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 254px;
    padding-top: 28px;
}

.kst-tool-line {
    position: absolute;
    left: 24px;
    top: 18px;
    width: 42px;
    height: 4px;
    border-radius: 999px;
}

.kst-line-leading {
    background: var(--kst-leading);
}

.kst-line-weakening {
    background: var(--kst-weakening);
}

.kst-line-lagging {
    background: var(--kst-lagging);
}

.kst-line-improving {
    background: var(--kst-improving);
}

.kst-tool-card h3 {
    margin-top: 16px;
}

.kst-tool-card p {
    margin-bottom: 22px;
}

.kst-rrg-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: stretch;
}

.kst-rrg-chart {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    min-height: 560px;
    border: 1px solid var(--kst-border-strong);
    border-radius: var(--kst-radius);
    background: var(--kst-surface);
}

.kst-rrg-quadrant {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 20px;
}

.kst-rrg-quadrant span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: var(--kst-radius);
    background: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.kst-q-leading {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(22, 163, 74, 0.03));
}

.kst-q-weakening {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.03));
}

.kst-q-lagging {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(220, 38, 38, 0.03));
}

.kst-q-improving {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
}

.kst-rrg-axis {
    position: absolute;
    z-index: 3;
    background: var(--kst-border-strong);
}

.kst-axis-x {
    left: 0;
    top: calc(50% - 1px);
    width: 100%;
    height: 2px;
}

.kst-axis-y {
    left: calc(50% - 1px);
    top: 0;
    width: 2px;
    height: 100%;
}

.kst-rrg-point {
    position: absolute;
    z-index: 5;
    left: var(--x);
    top: var(--y);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.kst-rrg-point::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.kst-rrg-point span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--kst-radius);
    background: rgba(255, 255, 255, 0.88);
    color: var(--kst-text);
    font-size: 12px;
    font-weight: 900;
}

.kst-point-leading::before {
    background: var(--kst-leading);
}

.kst-point-weakening::before {
    background: var(--kst-weakening);
}

.kst-point-lagging::before {
    background: var(--kst-lagging);
}

.kst-point-improving::before {
    background: var(--kst-improving);
}

.kst-legend {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 18px;
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: var(--kst-surface);
}

.kst-legend-item {
    display: grid;
    grid-template-columns: 14px auto;
    column-gap: 10px;
    row-gap: 3px;
    align-items: center;
    min-height: 56px;
    padding: 10px;
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: var(--kst-surface-soft);
    color: var(--kst-muted);
    font-size: 14px;
    line-height: 1.35;
}

.kst-legend-item strong {
    color: var(--kst-text);
    font-weight: 900;
}

.kst-legend-item span:last-child {
    grid-column: 2;
}

.kst-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.kst-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: var(--kst-surface);
    -webkit-overflow-scrolling: touch;
}

.kst-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    margin: 0;
}

.kst-table th,
.kst-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--kst-border);
    color: var(--kst-text);
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
    vertical-align: middle;
}

.kst-table th {
    background: var(--kst-surface-soft);
    color: var(--kst-muted);
    font-size: 13px;
    font-weight: 900;
}

.kst-table tr:last-child td {
    border-bottom: 0;
}

.kst-ranking-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.kst-ranking-metric {
    min-height: 118px;
    padding: 20px;
    border: 1px solid var(--kst-border);
    border-top: 5px solid var(--kst-border-strong);
    border-radius: var(--kst-radius);
    background: var(--kst-surface);
}

.kst-ranking-metric span,
.kst-ranking-metric strong {
    display: block;
}

.kst-ranking-metric span {
    color: var(--kst-muted);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.kst-ranking-metric strong {
    margin-top: 12px;
    color: var(--kst-text);
    font-size: 27px;
    font-weight: 900;
    line-height: 1.1;
}

.kst-ranking-metric-leading {
    border-top-color: var(--kst-leading);
}

.kst-ranking-metric-improving {
    border-top-color: var(--kst-improving);
}

.kst-ranking-metric-weakening {
    border-top-color: var(--kst-weakening);
}

.kst-ranking-metric-lagging {
    border-top-color: var(--kst-lagging);
}

.kst-ranking-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: var(--kst-surface);
}

.kst-ranking-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--kst-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.kst-ranking-tabs .is-active {
    background: var(--kst-text);
    color: #ffffff;
}

.kst-ranking-tabs button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 2px;
}

.kst-ranking-table {
    min-width: 980px;
}

.kst-ranking-table[data-active-period="today"] [data-kst-period-heading="today"],
.kst-ranking-table[data-active-period="today"] [data-kst-period-cell="today"],
.kst-ranking-table[data-active-period="week"] [data-kst-period-heading="week"],
.kst-ranking-table[data-active-period="week"] [data-kst-period-cell="week"],
.kst-ranking-table[data-active-period="month"] [data-kst-period-heading="month"],
.kst-ranking-table[data-active-period="month"] [data-kst-period-cell="month"] {
    background: #f4f8ff;
}

.kst-ranking-table .kst-number {
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}

.positive {
    color: #0d7f68 !important;
    font-weight: 900;
}

.negative {
    color: #bd4454 !important;
    font-weight: 900;
}

.kst-condition,
.kst-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: var(--kst-radius);
    font-size: 13px;
    font-weight: 900;
}

.kst-condition {
    background: var(--kst-improving-soft);
    color: var(--kst-improving);
}

.kst-status-leading {
    background: var(--kst-leading-soft);
    color: var(--kst-leading);
}

.kst-status-weakening {
    background: var(--kst-weakening-soft);
    color: #9a5c00;
}

.kst-status-lagging {
    background: var(--kst-lagging-soft);
    color: var(--kst-lagging);
}

.kst-status-improving {
    background: var(--kst-improving-soft);
    color: var(--kst-improving);
}

.kst-report-card {
    min-height: 202px;
    padding: 22px;
}

.kst-report-card time {
    display: block;
    margin-bottom: 12px;
    color: var(--kst-muted);
    font-size: 13px;
    font-weight: 800;
}

.kst-report-card h3 a:hover,
.kst-report-card h3 a:focus-visible {
    color: var(--kst-improving);
    outline: none;
}

.kst-guide {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 24px;
    align-items: start;
    padding: 32px;
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: var(--kst-surface);
}

.kst-guide-copy p {
    max-width: 540px;
}

.kst-definition {
    min-height: 104px;
    padding: 18px;
    border-top-width: 5px;
}

.kst-definition strong,
.kst-definition span {
    display: block;
}

.kst-definition strong {
    color: var(--kst-text);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
}

.kst-definition span {
    margin-top: 8px;
    color: var(--kst-muted);
    font-size: 15px;
    font-weight: 700;
}

.kst-definition-leading {
    border-top-color: var(--kst-leading);
}

.kst-definition-weakening {
    border-top-color: var(--kst-weakening);
}

.kst-definition-lagging {
    border-top-color: var(--kst-lagging);
}

.kst-definition-improving {
    border-top-color: var(--kst-improving);
}

.kst-disclaimer {
    margin-top: 42px;
    padding: 22px 26px;
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: #ffffff;
}

.kst-disclaimer-compact {
    width: min(880px, 100%);
}

.kst-disclaimer p {
    margin: 0;
    color: var(--kst-muted);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
}

.kst-page-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 46px;
    border: 1px solid var(--kst-border);
    border-radius: var(--kst-radius);
    background: var(--kst-surface);
    box-shadow: var(--kst-shadow);
}

.kst-page-intro h1 {
    font-size: clamp(34px, 4vw, 56px);
}

.kst-page-intro p {
    font-size: 18px;
}

@media (max-width: 1100px) {
    .kst-hero {
        grid-template-columns: 1fr;
        padding: 38px;
    }

    .kst-hero-panel {
        min-height: 300px;
    }

    .kst-summary-grid,
    .kst-tool-grid,
    .kst-definition-grid,
    .kst-ranking-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kst-report-grid {
        grid-template-columns: 1fr;
    }

    .kst-rrg-layout {
        grid-template-columns: 1fr;
    }

    .kst-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kst-guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .kst-dashboard,
    .kst-shortcode {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        margin-right: auto;
        margin-left: auto;
        transform: none;
    }

    .kst-dashboard {
        padding-top: 10px;
        padding-bottom: 44px;
    }

    .kst-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 16px;
    }

    .kst-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        width: 100%;
        gap: 8px;
    }

    .kst-nav a {
        justify-content: center;
        min-height: 36px;
        padding: 0 10px;
        font-size: 13px;
        text-align: center;
    }

    .kst-hero,
    .kst-page-intro,
    .kst-guide {
        min-width: 0;
        padding: 24px;
    }

    .kst-hero h1,
    .kst-page-intro h1 {
        font-size: 34px;
        line-height: 1.14;
    }

    .kst-hero p,
    .kst-page-intro p {
        font-size: 17px;
        line-height: 1.65;
    }

    .kst-hero h1,
    .kst-page-intro h1,
    .kst-section-heading h2,
    .kst-guide h2,
    .kst-card h3,
    .kst-tool-card h3,
    .kst-report-card h3,
    .kst-hero p,
    .kst-page-intro p,
    .kst-section-heading p,
    .kst-guide p,
    .kst-tool-card p,
    .kst-report-card p {
        overflow-wrap: anywhere;
        word-break: keep-all;
    }

    .kst-button-row,
    .kst-section-heading-row,
    .kst-page-intro {
        align-items: stretch;
        flex-direction: column;
    }

    .kst-button {
        width: 100%;
        min-height: 52px;
        padding: 0 16px;
    }

    .kst-hero-panel {
        min-height: 360px;
        padding: 14px;
    }

    .kst-showcase-track {
        min-height: 326px;
    }

    .kst-showcase-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .kst-showcase-head strong {
        text-align: left;
    }

    .kst-showcase-table td {
        padding: 12px 14px;
        font-size: 13px;
    }

    .kst-section {
        margin-top: 34px;
    }

    .kst-summary-grid,
    .kst-tool-grid,
    .kst-report-grid,
    .kst-definition-grid,
    .kst-ranking-summary,
    .kst-legend {
        grid-template-columns: 1fr;
    }

    .kst-card,
    .kst-report-card {
        padding: 20px;
    }

    .kst-summary-card {
        min-height: 140px;
    }

    .kst-tool-card {
        min-height: 220px;
    }

    .kst-rrg-chart {
        min-height: 420px;
    }

    .kst-rrg-quadrant {
        padding: 12px;
    }

    .kst-rrg-quadrant span {
        min-height: 28px;
        padding: 0 8px;
        font-size: 12px;
    }

    .kst-rrg-point span {
        max-width: 86px;
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
    }

    .kst-table {
        min-width: 0;
    }

    .kst-table th,
    .kst-table td {
        padding: 15px 14px;
        font-size: 14px;
    }

    .kst-table-wrap {
        overflow-x: visible;
    }

    .kst-table thead {
        display: none;
    }

    .kst-table,
    .kst-table tbody,
    .kst-table tr,
    .kst-table td {
        display: block;
        width: 100%;
    }

    .kst-table tr {
        padding: 10px 0;
        border-bottom: 1px solid var(--kst-border);
    }

    .kst-table tr:last-child {
        border-bottom: 0;
    }

    .kst-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-height: 44px;
        border-bottom: 0;
        text-align: right;
    }

    .kst-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--kst-muted);
        font-size: 12px;
        font-weight: 900;
        text-align: left;
    }

    .kst-table td strong {
        text-align: right;
    }
}

@media (max-width: 420px) {
    .kst-dashboard,
    .kst-shortcode {
        width: calc(100% - 18px);
        max-width: calc(100% - 18px);
    }

    .kst-hero,
    .kst-page-intro,
    .kst-guide {
        padding: 20px;
    }

    .kst-hero h1,
    .kst-page-intro h1 {
        font-size: 30px;
    }

    .kst-card h3,
    .kst-tool-card h3,
    .kst-report-card h3 {
        font-size: 20px;
    }
}
