.fsc { max-width: 760px; margin: 32px auto; padding: clamp(20px, 5vw, 48px); border: 1px solid #d9e1da; border-radius: 20px; background: #f8faf6; color: #213d33; font: 16px/1.6 system-ui, sans-serif; }
.fsc * { box-sizing: border-box; }
.fsc h2 { color: inherit; font-size: clamp(26px, 5vw, 38px); line-height: 1.15; margin: 12px 0 22px; }
.fsc .fsc-eyebrow { font-size: 11px; letter-spacing: .12em; font-weight: 700; }
.fsc-upload { display: grid; gap: 12px; padding: 24px; border: 1px dashed #718b7e; border-radius: 12px; background: #fff; font-weight: 600; }
.fsc-upload input { max-width: 100%; }
.fsc-upload span, .fsc-privacy { font-size: 13px; font-weight: 400; }
.fsc-preview { display: block; max-height: 320px; max-width: 100%; margin: 20px auto; border-radius: 10px; }
.fsc [hidden] { display: none; }
.fsc-consent { display: flex; align-items: start; gap: 10px; }
.fsc-consent input { margin-top: 6px; flex-shrink: 0; }
.fsc button { background: #234c3b; color: #fff; border: 0; border-radius: 8px; padding: 14px 22px; font: inherit; cursor: pointer; }
.fsc button:disabled { opacity: .6; cursor: wait; }
.fsc :focus-visible { outline: 3px solid #af6516; outline-offset: 4px; }
.fsc-status { font-weight: 600; }
.fsc-result article { padding: 16px 20px; background: white; border: 1px solid #d9e1da; border-radius: 10px; margin: 12px 0; }
.fsc-result h3 { color: inherit; font-size: 18px; margin: 0; }
.fsc-result p { margin-bottom: 0; }
.fsc-page-content { padding: 32px 16px; }
.fsc-page-article { width: 100%; max-width: 900px; margin: 0 auto; }
.fsc-page-title { margin: 0 auto 24px; max-width: 760px; }
.fsc-file-control { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 4px; }
.fsc-file-control input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fsc-file-control:focus-within { outline: 3px solid #af6516; outline-offset: 4px; }
.fsc-upload .fsc-file-button { border: 1px solid #718b7e; padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.fsc-file-name { overflow-wrap: anywhere; min-width: 0; }
.fsc p, .fsc h2, .fsc label, .fsc button { overflow-wrap: anywhere; white-space: pre-line; }
.fsc-text-group { max-width: 1100px; margin: 16px 0; padding: 18px; background: white; border: 1px solid #c3c4c7; border-radius: 8px; }
.fsc-text-group summary { cursor: pointer; font-size: 16px; font-weight: 600; }
.fsc-quality { margin: 20px 0; padding: 20px; background: #fff8e6; color: #604616; border: 1px solid #d7b767; border-radius: 10px; }
.fsc-quality h3 { color: inherit; font-size: 18px; margin: 0; }
.fsc-quality ul { padding-left: 22px; }
.fsc-age-label { display: grid; gap: 8px; max-width: 240px; font-weight: 600; }
.fsc .fsc-age { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #718b7e; border-radius: 6px; background: white; color: #213d33; font: inherit; }
.fsc-age-help, .fsc-redness-note { font-size: 13px; }
.fsc-media { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; margin: 24px 0; }
.fsc-media[data-comparing=true] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.fsc-media figure { min-width: 0; margin: 0; padding: 12px; border: 1px solid #d9e1da; border-radius: 12px; background: white; }
.fsc-media figcaption { font-weight: 600; margin-bottom: 12px; }
.fsc .fsc-media img { display: block; max-width: 100%; max-height: 320px; width: auto; height: auto; margin: 0 auto; border-radius: 8px; }
.fsc-scan-stage { position: relative; overflow: hidden; min-height: 90px; border-radius: 8px; }
.fsc-scan-line { display: none; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #29deac; box-shadow: 0 0 18px 5px #29deac80; }
.fsc-analysis-panel[data-state=scanning] .fsc-scan-line { display: block; animation: fsc-scan 2s ease-in-out infinite alternate; }
.fsc-image-note { font-size: 12px; line-height: 1.5; }
@keyframes fsc-scan { from { top: 4%; } to { top: 96%; } }
@media (prefers-reduced-motion: reduce) { .fsc-analysis-panel[data-state=scanning] .fsc-scan-line { animation: none; top: 50%; } }
@media (max-width: 560px) { .fsc-media[data-comparing=true] { gap: 8px; } .fsc-media figure { padding: 8px; } .fsc-media figcaption { font-size: 12px; } }

.fsc-maps { margin: 24px 0; }
.fsc-map-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.fsc-map-grid figure { min-width: 0; margin: 0; padding: 12px; background: #fff; border: 1px solid #d9e1da; border-radius: 10px; }
.fsc-map-grid figcaption { font-weight: 600; margin-bottom: 12px; }
.fsc-map-grid img { width: 100%; height: auto; display: block; border-radius: 8px; }
.fsc-map-grid p { font-size: 13px; }
@media(max-width:560px) { .fsc-map-grid { grid-template-columns: minmax(0,1fr); } }

.fsc-map-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.fsc .fsc-map-controls button { padding: 9px 12px; font-size: 14px; background: #e5ece8; color: #213d33; border: 2px solid transparent; }
.fsc .fsc-map-controls button[aria-pressed=true] { background: #234c3b; color: white; border-color: #8eaf9e; }
.fsc-map-view { margin: 0; padding: 16px; background: white; border: 1px solid #d9e1da; border-radius: 12px; }
.fsc-map-view figcaption { font-weight: 600; margin-bottom: 12px; }
.fsc-map-stage { position: relative; width: min(100%,440px); margin: 0 auto; }
.fsc-map-stage img { display: block; width: 100%; height: auto; border-radius: 8px; }
.fsc-map-stage[data-interactive=true] img { cursor: crosshair; }
.fsc-map-pin { position: absolute; width: 20px; height: 20px; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 2px #222; transform: translate(-50%,-50%); pointer-events: none; }
.fsc-map-view label { display: grid; gap: 6px; margin-top: 16px; }
.fsc-map-view select { width: 100%; min-height: 44px; font: inherit; padding: 6px; }
.fsc-map-legend,.fsc-map-summary,.fsc-map-detail { font-size: 14px; }
