.ks-wrap {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(42px, 8vw, 96px) 0;
    min-height: 50vh;
    color: #243536;
}
.ks-wrap h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1.25rem; }
.ks-wrap h2 { font-size: 1.4rem; }
.ks-wrap a, .ks-about a { color: #116659; }
.ks-empty { background: #f0f8f6; padding: 2rem; border-radius: 8px; }
.ks-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ks-card { border: 1px solid #dbe9e5; border-radius: 12px; overflow: hidden; max-width: 480px; }
.ks-card a { display: block; color: inherit; }
.ks-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ks-card a > div { padding: 24px; }
.ks-card span { color: #116659; font-weight: 700; }
.ks-story { max-width: 790px; }
.ks-story h2 { margin-top: 2rem; }
.ks-story img { max-width: 100%; height: auto; border-radius: 8px; }
.ks-story figure { margin: 1.8rem 0; }
.ks-story figcaption { padding: 8px 0; color: #536966; }
.ks-lead { font-size: 1.2rem; }
.ks-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.ks-search { display: flex; gap: 10px; max-width: 500px; }
.ks-results { list-style: disc; padding-left: 1.3rem; }
.ks-results li { margin: 10px 0; }
.ks-about { width: min(800px, calc(100% - 40px)); margin: auto; padding: 48px 0 72px; }
.ks-about p { font-size: 1.05rem; line-height: 1.9; }
.ks-about nav { display: flex; gap: 14px; margin: 20px 0 32px; }
.ks-about nav a { border: 1px solid #98c5ba; border-radius: 6px; padding: 8px 14px; }
.ks-about [aria-current="page"] { background: #116659; color: white; }
html:has(.editor-shell) { font: 16px/1.6 system-ui, sans-serif; color: #203335; background: #eff5f4; }
body:has(.editor-shell) { margin: 0; }
.editor-bar { background: #103d3c; color: #fff; padding: 16px max(18px, calc((100vw - 960px) / 2)); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.editor-bar a { color: white; }
.editor-shell { width: min(960px, calc(100% - 36px)); margin: 36px auto 72px; }
.editor-shell a { color: #116659; }
.editor-panel { background: white; border: 1px solid #d6e4e0; border-radius: 10px; padding: clamp(16px, 3vw, 28px); margin: 18px 0; }
.login-panel { max-width: 440px; }
.editor-shell label { display: block; margin-bottom: 14px; font-weight: 650; }
.editor-shell input:not([type=hidden]), .editor-shell textarea, .ks-search input { display: block; box-sizing: border-box; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #a9c3bd; border-radius: 5px; font: inherit; background: white; }
.editor-shell textarea { resize: vertical; }
.editor-shell button, .editor-shell .primary, .ks-search button { display: inline-block; padding: 8px 15px; border: 1px solid #a9c3bd; border-radius: 5px; color: #153e38; background: white; text-decoration: none; font: inherit; cursor: pointer; white-space: nowrap; }
.editor-shell .primary { color: white; background: #116659; border-color: #116659; }
.editor-actions, .editor-list-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.editor-list-row { justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #d6e4e0; }
.editor-block { min-width: 0; border: 1px solid #c6d8d4; border-radius: 7px; margin: 0 0 15px; padding: 13px; }
.editor-block legend { font-weight: 700; padding: 0 5px; }
.editor-image { max-width: 100%; max-height: 200px; margin: 0 0 8px; border-radius: 5px; }
.editor-notice { padding: 12px; background: #dcefea; border-left: 4px solid #116659; }

.ks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ks-card { max-width: none; }
.ks-products .ks-card > a > img,
.ks-products .ks-image-placeholder {
    display: block;
    width: 100%;
    height: 280px;
    aspect-ratio: auto;
    object-fit: contain;
    box-sizing: border-box;
    padding: 16px;
    background: #fff;
}
.ks-image-placeholder { text-align: center; align-content: center; color: #61756f; }
.ks-products .ks-card h2 { min-height: 3em; line-height: 1.5; }
.ks-products .ks-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ks-product-detail figure img { display: block; width: 100%; height: 520px; object-fit: contain; background: #fff; }
.ks-categories { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.ks-categories a, .ks-inquiry { padding: 8px 14px; border: 1px solid #c1d9d1; border-radius: 6px; }
.ks-categories [aria-current="page"], .ks-inquiry { background: #116659; color: white !important; }
.ks-view-all { margin-top: 24px; }
.editor-shell select { display: block; width: 100%; padding: 10px; font: inherit; margin-top: 6px; }
.editor-actions [aria-current="page"] { font-weight: 700; text-decoration: underline; }
@media (max-width: 800px) {
    .ks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ks-products .ks-card > a > img, .ks-products .ks-image-placeholder { height: 220px; }
    .ks-product-detail figure img { height: 380px; }
}
@media (max-width: 480px) {
    .ks-grid { grid-template-columns: 1fr; }
}
