:root {
    --ink: #18211d;
    --muted: #68716b;
    --paper: #f3f0e7;
    --paper-light: #fbfaf5;
    --field: #1e5b3d;
    --field-deep: #123a29;
    --sprout: #b8d940;
    --clay: #c96638;
    --sand: #d9b56f;
    --blue: #4d79a8;
    --line: rgba(24, 33, 29, .15);
    --shadow: 0 28px 80px rgba(23, 42, 32, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(rgba(255,255,255,.48), rgba(255,255,255,.48)),
        repeating-linear-gradient(94deg, transparent 0 44px, rgba(30,91,61,.035) 44px 46px),
        var(--paper);
    font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
    line-height: 1.55;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(12px); pointer-events: none; }
.ambient-one { width: 420px; height: 420px; right: -160px; top: 100px; background: rgba(184,217,64,.15); }
.ambient-two { width: 360px; height: 360px; left: -180px; top: 700px; background: rgba(201,102,56,.1); }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    padding: 0 max(24px, calc((100vw - 1440px) / 2));
    display: flex;
    align-items: center;
    gap: 34px;
    background: rgba(243,240,231,.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.brand { color: var(--ink); display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--field); font: 700 13px/1 "IBM Plex Sans KR", sans-serif; letter-spacing: .06em; }
.brand b, .brand small { display: block; }
.brand b { font-size: 16px; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
nav a:hover { color: var(--field); }
.server-pill { display: flex; align-items: center; gap: 8px; padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
.server-pill i { width: 8px; height: 8px; border-radius: 50%; background: #9b8175; box-shadow: 0 0 0 4px rgba(155,129,117,.12); }
.server-pill.online i { background: var(--sprout); box-shadow: 0 0 0 4px rgba(184,217,64,.18); }

main { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 660px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 7vw; align-items: center; padding: 74px 0; }
.overline { margin: 0 0 18px; color: var(--field); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.hero h1 { margin: 0; font: 700 clamp(55px, 7vw, 102px)/1.03 "Gowun Batang", serif; letter-spacing: -.06em; }
.hero h1 em { color: var(--field); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 2%; right: 0; bottom: 4px; height: 12px; z-index: -1; background: var(--sprout); opacity: .62; transform: rotate(-1deg); }
.hero-description { max-width: 660px; margin: 34px 0 0; color: #4e5a53; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.85; word-break: keep-all; }
.hero-actions { margin-top: 35px; display: flex; align-items: center; gap: 18px; }
.primary-link { padding: 14px 22px; color: white; background: var(--field); text-decoration: none; font-size: 13px; font-weight: 700; }
.primary-link:hover { background: var(--field-deep); }
.hero-actions span { color: var(--muted); font-size: 12px; }

.pipeline-panel { align-self: center; background: var(--field-deep); color: white; box-shadow: var(--shadow); }
.pipeline-head { min-height: 76px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.14); }
.pipeline-head span { font-family: "Gowun Batang", serif; font-size: 19px; }
.pipeline-head b { color: var(--sprout); font-size: 10px; letter-spacing: .16em; }
.pipeline-panel ol { margin: 0; padding: 8px 26px; list-style: none; }
.pipeline-panel li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.pipeline-panel li > span { color: var(--sprout); font: 600 12px/1 monospace; }
.pipeline-panel li b, .pipeline-panel li small { display: block; }
.pipeline-panel li b { font-size: 14px; }
.pipeline-panel li small { margin-top: 4px; color: rgba(255,255,255,.57); font-size: 11px; }
.band-spectrum { height: 54px; display: grid; grid-template-columns: repeat(5, 1fr); }
.band-spectrum span { display: grid; place-items: center; color: white; font-size: 10px; font-weight: 700; }
.band-b { background: #4774aa; }
.band-g { background: #3d8756; }
.band-r { background: #a94a3f; }
.band-e { background: #8d6747; }
.band-n { background: #3a3936; }

.upload-section, .results-section { scroll-margin-top: 90px; margin-bottom: 76px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.section-heading h2 { margin: 0; font: 700 clamp(32px, 4vw, 52px)/1.15 "Gowun Batang", serif; letter-spacing: -.04em; }
.section-heading > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; }
.upload-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); background: var(--paper-light); border: 1px solid var(--line); box-shadow: var(--shadow); }
.drop-zone { min-height: 500px; padding: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-right: 1px solid var(--line); transition: background .2s, box-shadow .2s; }
.drop-zone.dragging { background: rgba(184,217,64,.13); box-shadow: inset 0 0 0 3px var(--sprout); }
.folder-glyph { position: relative; width: 100px; height: 72px; margin-bottom: 28px; background: var(--sand); transform: rotate(-2deg); box-shadow: 9px 9px 0 rgba(24,33,29,.1); }
.folder-glyph::before { content: ""; position: absolute; width: 48px; height: 16px; top: -14px; left: 0; background: var(--sand); }
.folder-glyph span { position: absolute; width: 22px; height: 22px; right: 18px; bottom: 18px; border: 3px solid var(--field); border-radius: 50%; }
.folder-glyph span::after { content: ""; position: absolute; width: 12px; height: 3px; right: -9px; bottom: -5px; background: var(--field); transform: rotate(45deg); }
.drop-zone h3 { margin: 0; font: 700 27px/1.3 "Gowun Batang", serif; }
.drop-zone p { margin: 12px 0 24px; color: var(--muted); font-size: 13px; }
.drop-zone > small { margin-top: 16px; color: #8a938d; font-size: 11px; }
.upload-buttons { display: flex; gap: 9px; }
.upload-button { position: relative; padding: 13px 22px; cursor: pointer; font-size: 13px; font-weight: 700; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-button.primary { color: white; background: var(--field); }
.upload-button.secondary { color: var(--ink); border: 1px solid var(--line); background: white; }
.upload-button:hover { transform: translateY(-1px); }

.selection-panel { min-width: 0; display: flex; flex-direction: column; padding: 30px; background: #ebe8de; }
.selection-head { display: flex; justify-content: space-between; gap: 16px; }
.selection-head span, .selection-head b { display: block; }
.selection-head span { color: var(--muted); font-size: 11px; }
.selection-head b { margin-top: 3px; font-size: 16px; }
.text-button { border: 0; padding: 0; color: var(--muted); background: none; cursor: pointer; font-size: 11px; text-decoration: underline; }
.selection-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.selection-stats div { padding: 17px 10px; border-right: 1px solid var(--line); }
.selection-stats div:first-child { padding-left: 0; }
.selection-stats div:last-child { border-right: 0; }
.selection-stats strong, .selection-stats span { display: block; }
.selection-stats strong { font-family: "Gowun Batang", serif; font-size: 25px; }
.selection-stats span { color: var(--muted); font-size: 10px; }
.detected-list { min-height: 230px; max-height: 290px; overflow: auto; scrollbar-width: thin; }
.detected-item { min-width: 0; display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(24,33,29,.08); }
.detected-item i { width: 7px; height: 7px; border-radius: 50%; }
.detected-item.ready i { background: var(--field); }
.detected-item.incomplete i { background: var(--clay); }
.detected-item b, .detected-item small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detected-item b { font-size: 12px; }
.detected-item small { color: var(--muted); font-size: 10px; }
.detected-item > span { color: var(--muted); font: 600 10px/1 monospace; }
.empty-message, .more-count { color: var(--muted); font-size: 12px; line-height: 1.7; }
.analyze-button { width: 100%; margin-top: auto; padding: 17px 18px; display: flex; justify-content: space-between; border: 0; color: white; background: var(--ink); cursor: pointer; font-weight: 700; }
.analyze-button:hover:not(:disabled) { background: var(--field); }
.analyze-button:disabled { color: #979b98; background: #d8d5cc; cursor: not-allowed; }
.analyze-button b { color: var(--sprout); }
.error-banner { margin-top: 12px; padding: 16px 18px; color: #782e20; background: #f1d9cf; border-left: 4px solid var(--clay); font-size: 13px; }

.processing { min-height: 260px; margin: 28px 0 76px; padding: 44px; display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 48px; color: white; background: var(--field-deep); box-shadow: var(--shadow); }
.processing h2 { margin: 0 0 8px; font: 700 clamp(27px, 3vw, 40px)/1.3 "Gowun Batang", serif; }
.processing p:last-child { margin: 0; color: rgba(255,255,255,.6); }
.processing .overline { color: var(--sprout); }
.processing-visual { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; height: 110px; align-items: end; }
.processing-visual span { display: block; background: var(--sprout); animation: scan 1.4s ease-in-out infinite alternate; }
.processing-visual span:nth-child(1) { height: 38%; animation-delay: -.2s; }
.processing-visual span:nth-child(2) { height: 72%; animation-delay: -.5s; }
.processing-visual span:nth-child(3) { height: 100%; animation-delay: -.8s; }
.processing-visual span:nth-child(4) { height: 58%; animation-delay: -1.1s; }
.processing-visual span:nth-child(5) { height: 86%; animation-delay: -1.3s; }
@keyframes scan { to { height: 24%; opacity: .45; } }

.report-link { padding: 10px 15px; color: var(--field); border: 1px solid var(--field); text-decoration: none; font-size: 12px; font-weight: 700; }
.report-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.report-actions .report-link.secondary { color: var(--field); background: transparent; }
.batch-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; background: var(--paper-light); border: 1px solid var(--line); }
.summary-card { padding: 22px; border-right: 1px solid var(--line); }
.summary-card:last-child { border-right: 0; }
.summary-card strong, .summary-card span { display: block; }
.summary-card strong { font: 700 31px/1.1 "Gowun Batang", serif; }
.summary-card span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.summary-card.success strong { color: var(--field); }
.summary-card.warning strong { color: var(--clay); }
.aggregate-dashboard { margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.composition-card { min-width: 0; padding: 20px; border: 1px solid var(--line); background: var(--paper-light); }
.composition-card header { min-height: 62px; }
.composition-card h3 { margin: 0; font: 700 20px/1.2 "Gowun Batang", serif; }
.composition-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.composition-bar { height: 13px; display: flex; overflow: hidden; background: #dedbd2; }
.composition-bar > i { height: 100%; display: block; }
.composition-values { margin-top: 13px; display: grid; gap: 7px; }
.composition-values > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10px; }
.composition-values span { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.composition-values span i { width: 8px; height: 8px; display: inline-block; }
.tone-crop, .tone-radish { background: #289958; }
.tone-bare { background: #bf8e4d; }
.tone-carrot { background: #ec8c35; }
.tone-seedling { background: #8fcf72; }
.tone-leaf { background: #3f8c5f; }
.tone-root { background: #204b37; }
.batch-notice { margin-bottom: 16px; padding: 14px 17px; color: #713d24; background: #f1dfcd; border-left: 4px solid var(--clay); font-size: 12px; }
.result-workspace { min-height: 680px; display: grid; grid-template-columns: 280px 1fr; align-items: start; background: var(--paper-light); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sample-navigation { min-width: 0; max-height: 680px; display: flex; flex-direction: column; position: sticky; top: 82px; background: #e8e5db; border-right: 1px solid var(--line); }
.sample-nav-head { min-height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 12px; }
.sample-nav-head b { color: var(--field); }
#sample-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; }
.sample-nav-item { width: 100%; min-width: 0; padding: 14px 16px; display: grid; grid-template-columns: 9px 1fr auto; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid rgba(24,33,29,.08); color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.sample-nav-item:hover, .sample-nav-item.active { background: var(--paper-light); }
.sample-nav-item.active { box-shadow: inset 4px 0 0 var(--sprout); }
.sample-nav-item i { width: 7px; height: 7px; border-radius: 50%; }
.sample-nav-item i.completed { background: var(--field); }
.sample-nav-item i.failed { background: var(--clay); }
.sample-nav-item span { min-width: 0; }
.sample-nav-item b, .sample-nav-item small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sample-nav-item b { font-size: 11px; }
.sample-nav-item small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.sample-nav-item em { color: var(--muted); font-size: 9px; font-style: normal; }
.sample-detail { min-width: 0; padding: 30px; }
.sample-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sample-header h3 { margin: 0; font: 700 clamp(26px, 3vw, 39px)/1.1 "Gowun Batang", serif; letter-spacing: -.03em; }
.sample-meta { text-align: right; }
.sample-meta span, .sample-meta b { display: block; }
.sample-meta span { color: var(--muted); font-size: 10px; }
.sample-meta b { margin-top: 3px; font-size: 13px; }
.sample-actions { display: flex; align-items: end; gap: 14px; }
.report-link { padding: 11px 14px; color: white; background: var(--field); font-size: 11px; font-weight: 700; text-decoration: none; }
.report-link:hover { background: var(--deep); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric-card { min-width: 0; min-height: 132px; padding: 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-card span, .metric-card small, .metric-card strong { display: block; }
.metric-card span { color: var(--muted); font-size: 10px; }
.metric-card strong { margin: 16px 0 7px; font: 700 22px/1.2 "Gowun Batang", serif; word-break: keep-all; }
.metric-card small { color: var(--muted); font-size: 10px; }
.metric-card.success strong { color: var(--field); }
.metric-card.warning strong { color: var(--clay); }
.metric-card.research { background: rgba(77,121,168,.07); }
.legend-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 20px 0 10px; color: var(--muted); font-size: 10px; }
.legend-row span { display: flex; align-items: center; gap: 6px; }
.legend-row i { width: 9px; height: 9px; }
.legend-crop, .legend-radish { background: #29a259; }
.legend-noncrop { background: #bf8e4d; }
.legend-carrot { background: #ec8c35; }
.legend-nodata { background: #080a09; }
.image-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.image-gallery figure { margin: 0; border: 1px solid var(--line); background: white; }
.image-open { width: 100%; padding: 0; display: block; border: 0; background: #101411; cursor: zoom-in; overflow: hidden; }
.image-open img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: contain; transition: transform .35s; }
.image-open:hover img { transform: scale(1.025); }
.image-gallery figcaption { padding: 12px 14px; }
.image-gallery figcaption b, .image-gallery figcaption small { display: block; }
.image-gallery figcaption b { font-size: 12px; }
.image-gallery figcaption small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.source-files { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.source-files summary { cursor: pointer; font-size: 11px; font-weight: 700; }
.source-files > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.source-files span { min-width: 0; padding: 8px; color: var(--muted); background: #ebe8de; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-files span b { margin-right: 5px; color: var(--field); }
.failed-panel { padding: 30px; color: #762f23; background: #f1d9cf; }
.failed-panel h3 { font-family: "Gowun Batang", serif; }

footer { width: min(1440px, calc(100% - 48px)); margin: 20px auto 0; padding: 28px 0 48px; display: flex; justify-content: space-between; border-top: 1px solid var(--ink); color: var(--muted); font-size: 10px; }
footer span { color: var(--field); font-weight: 700; letter-spacing: .14em; }
footer p { margin: 0; }
.hidden { display: none !important; }

dialog { width: min(1180px, calc(100% - 36px)); max-height: 92vh; padding: 18px; border: 0; color: white; background: #0f1411; box-shadow: 0 30px 100px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(12,18,15,.78); backdrop-filter: blur(8px); }
dialog button { position: absolute; right: 16px; top: 11px; border: 0; color: white; background: none; cursor: pointer; font-size: 28px; }
dialog p { margin: 0 50px 14px 0; font-size: 12px; }
dialog img { width: 100%; max-height: calc(92vh - 72px); display: block; object-fit: contain; }

@media (max-width: 1050px) {
    .hero { grid-template-columns: 1fr; min-height: auto; gap: 48px; }
    .pipeline-panel { width: min(100%, 650px); }
    .upload-layout { grid-template-columns: 1fr; }
    .drop-zone { min-height: 390px; border-right: 0; border-bottom: 1px solid var(--line); }
    .selection-panel { min-height: 430px; }
    .result-workspace { grid-template-columns: 230px 1fr; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .aggregate-dashboard { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .topbar { min-height: 66px; padding: 0 14px; }
    nav { display: none; }
    .server-pill { border-left: 0; padding-left: 0; }
    .server-pill span { display: none; }
    main, footer { width: min(100% - 24px, 620px); }
    .hero { padding: 48px 0 60px; }
    .hero h1 { font-size: clamp(46px, 15vw, 68px); }
    .hero-actions, .section-heading, footer { align-items: flex-start; flex-direction: column; }
    .section-heading { gap: 14px; }
    .drop-zone { padding: 38px 18px; }
    .upload-buttons { width: 100%; flex-direction: column; }
    .upload-button { width: 100%; }
    .selection-panel { padding: 22px 18px; }
    .processing { grid-template-columns: 1fr; gap: 22px; padding: 28px; }
    .processing-visual { height: 70px; }
    .batch-summary { grid-template-columns: repeat(2, 1fr); }
    .summary-card:nth-child(2) { border-right: 0; }
    .summary-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .result-workspace { display: block; }
    .sample-navigation { max-height: 270px; position: static; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--line); }
    .sample-detail { padding: 19px; }
    .sample-header { align-items: flex-start; flex-direction: column; }
    .sample-meta { text-align: left; }
    .metric-grid, .image-gallery { grid-template-columns: 1fr; }
    .source-files > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* 2026 interface refresh */
:root {
    --ink: #17211d;
    --muted: #6e7b74;
    --paper: #f5f7f5;
    --paper-light: #ffffff;
    --field: #16704a;
    --field-deep: #102e22;
    --sprout: #73d69d;
    --clay: #d46d45;
    --line: rgba(17, 38, 28, .10);
    --shadow: 0 22px 64px rgba(20, 53, 36, .09);
    --font-ui: "Noto Sans KR", "Malgun Gothic", sans-serif;
    --font-display: "Manrope", "Noto Sans KR", sans-serif;
}

body {
    background:
        radial-gradient(circle at 92% 2%, rgba(52, 158, 101, .11), transparent 28rem),
        var(--paper);
    font-family: var(--font-ui);
}
.ambient { display: none; }
.topbar {
    min-height: 70px;
    background: rgba(255,255,255,.89);
    backdrop-filter: blur(18px);
}
.brand-mark {
    border-radius: 11px;
    background: linear-gradient(145deg, #198154, #105d3d);
    box-shadow: 0 8px 20px rgba(22, 112, 74, .18);
    font-family: var(--font-display);
}
.brand b { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
nav { gap: 22px; }
nav a { font-size: 11px; }
nav .project-context {
    max-width: 240px;
    padding: 8px 11px;
    overflow: hidden;
    color: white;
    border-radius: 999px;
    background: var(--field-deep);
    text-overflow: ellipsis;
    white-space: nowrap;
}
nav .project-context.missing { color: #8b4f31; background: #faeee7; }
.server-pill {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8faf8;
}
main, footer { width: min(1240px, calc(100% - 48px)); }
.hero {
    min-height: 590px;
    grid-template-columns: 1.08fr .92fr;
    gap: 6vw;
    padding: 64px 0;
}
.hero h1,
.section-heading h2,
.drop-zone h3,
.processing h2,
.sample-header h3,
.failed-panel h3 {
    font-family: var(--font-display);
    font-weight: 800;
}
.hero h1 {
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.08;
    letter-spacing: -.06em;
}
.hero h1 em::after { height: 8px; background: var(--sprout); }
.hero-description { margin-top: 25px; font-size: 15px; }
.primary-link,
.upload-button,
.analyze-button,
.report-link {
    border-radius: 10px;
}
.pipeline-panel,
.upload-layout,
.processing,
.result-workspace {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.pipeline-head span,
.selection-stats strong,
.summary-card strong,
.composition-card h3,
.metric-card strong {
    font-family: var(--font-display);
    font-weight: 800;
}
.upload-layout { border-color: var(--line); }
.drop-zone { min-height: 440px; padding: 48px; }
.folder-glyph { border-radius: 8px; transform: none; box-shadow: 7px 7px 0 rgba(24,33,29,.08); }
.selection-panel { background: #f1f5f2; }
.detected-list,
.sample-list { scrollbar-color: rgba(22,112,74,.35) transparent; }
.processing { border-radius: 20px; }
.summary-card,
.composition-card,
.metric-card,
.image-gallery figure {
    background: white;
}
.composition-card,
.image-gallery figure,
.failed-panel {
    border-radius: 13px;
    overflow: hidden;
}
.sample-navigation { background: #f3f6f4; }
.sample-nav-item { transition: background .16s ease; }
.sample-nav-item.active { box-shadow: inset 4px 0 0 var(--field); }
dialog { border-radius: 18px; }

@media (max-width: 720px) {
    main, footer { width: min(100% - 24px, 620px); }
    .hero { padding: 44px 0 54px; }
    .hero h1 { font-size: clamp(43px, 14vw, 62px); }
}
