.products-grid { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sword-product-layout { display: block; max-width: 900px; margin-inline: auto; }
.sword-gallery, .sword-feature { min-width: 0; margin: 0; }
.sword-feature > a { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--muted); }
.sword-feature img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.sword-feature figcaption { margin: 12px 0 16px; font-size: .875rem; line-height: 1.5; color: var(--muted-foreground); }
.sword-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sword-thumbnail { display: block; min-width: 0; min-height: 44px; overflow: hidden; border: 2px solid var(--border); border-radius: 8px; background: var(--muted); }
.sword-thumbnail img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.sword-thumbnail[aria-current="true"] { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 2px; }
.sword-gallery a:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; }
.sword-specifications { display: grid; gap: 22px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); }
.sword-specifications dt { font-size: .875rem; color: var(--muted-foreground); margin-bottom: 6px; }
.sword-specifications dd { font-size: 1rem; line-height: 1.65; margin: 0; }
.sword-details .sword-examples-note { margin-top: 24px; font-size: .875rem; }
@media (max-width: 1000px) { .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sword-product-layout { gap: 24px; } }
@media (max-width: 800px) { .sword-product-layout { grid-template-columns: minmax(0, 1fr); } .sword-details { order: initial; } }
@media (max-width: 760px) { .products-grid { grid-template-columns: minmax(0, 1fr); } .sword-thumbnails { gap: 7px; } }
.sword-customizer { margin-top: 56px; border-top: 1px solid var(--border); padding-top: 40px; }
.sword-customizer h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.25; }
.sword-config-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sword-options { display: grid; gap: 28px; min-width: 0; }
.sword-option-group { min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: var(--background); }
.sword-option-group > legend { padding: 0 8px; font-size: 1.3rem; font-weight: 600; }
.sword-option-group p { font-size: 1rem; line-height: 1.65; margin-bottom: 16px; }
.sword-options label { display: block; margin: 18px 0; font-size: 1rem; line-height: 1.5; }
.sword-options input[type="text"], .sword-options input[type="file"], .sword-options textarea, .sword-options select { display: block; width: 100%; max-width: 100%; box-sizing: border-box; min-height: 46px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; color: var(--foreground); background: var(--background); font: inherit; }
.sword-options textarea { resize: vertical; }
.sword-options input[type="checkbox"], .sword-options input[type="radio"] { appearance: auto; width: 18px; height: 18px; vertical-align: middle; margin-right: 8px; accent-color: var(--primary); }
.sword-options input:focus-visible, .sword-options textarea:focus-visible, .sword-options select:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.sword-kbar-options { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.sword-kbar-options label { margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.sword-kbar-options label:has(:checked) { border-color: var(--primary); background: var(--muted); }
.sword-options [hidden] { display: none !important; }
.sword-option-group .sword-field-note, .sword-field-note { font-size: .875rem; line-height: 1.65; color: var(--muted-foreground); }
.sword-section-grid { display: grid; gap: 22px; margin-top: 24px; }
.sword-section { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 8px; }
.sword-section legend { font-size: 1rem; padding: 0 8px; font-weight: 600; }
.sword-section label:first-of-type { margin-top: 4px; }
.sword-arrangement { position: sticky; top: 20px; min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: var(--background); max-height: calc(100dvh - 40px); overflow: auto; }
.sword-arrangement h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 4px; }
.sword-layout-top { margin: 26px 0; display: flex; justify-content: center; gap: 10px; align-items: center; }
.sword-layout-top.has-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); }
.sword-motto { font-family: "Plate Classic", serif; font-size: clamp(1rem, 1.7vw, 1.4rem); text-align: center; overflow-wrap: anywhere; }
.sword-layout-item { padding: 10px; text-align: center; border: 1px dashed var(--border); border-radius: 6px; min-width: 0; }
.sword-layout-item strong { font-size: .875rem; }
.sword-layout-item p { font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.sword-layout-divider { text-align: center; font-size: .875rem; padding: 9px 0; margin: 18px 0; border-block: 1px solid var(--border); color: var(--muted-foreground); }
.sword-layout-center { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; }
.sword-layout-cell { min-width: 0; text-align: center; overflow-wrap: anywhere; }
.sword-position-label { display: block; color: var(--muted-foreground); font-size: .875rem; margin-bottom: 10px; }
.sword-layout-cell p { white-space: pre-wrap; font-size: 1rem; line-height: 1.6; }
.sword-layout-cell[data-type="none"] > p { color: var(--muted-foreground); font-size: .875rem; }
.sword-layout-cell .sword-date-preview { font-family: "Plate Classic", serif; font-size: 1.5rem; }
.sword-layout-cell img, .sword-layout-item img { display: block; width: 100%; max-height: 100px; object-fit: contain; margin: 8px auto; }
.sword-plate-preview { padding: 10px 6px; border: 1px solid var(--border); aspect-ratio: 6 / 4; display: grid; align-content: center; background: var(--muted); }
.sword-plate-preview strong, .sword-plate-preview p { font-size: .875rem; line-height: 1.5; }
.sword-layout-name { font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.5; text-align: center; padding: 10px 0 24px; overflow-wrap: anywhere; }
.sword-layout-jump { display: inline-block; font-size: 1rem; text-decoration: underline; text-underline-offset: 4px; margin-top: 14px; }
@media (max-width: 950px) { .sword-config-layout { grid-template-columns: minmax(0, 1fr); } .sword-arrangement { position: static; max-height: none; } }
@media (max-width: 440px) { .sword-option-group, .sword-arrangement { padding: 16px; } .sword-section { padding: 12px; } .sword-layout-center { gap: 6px; } .sword-layout-top.has-item { gap: 6px; } }
