.workflow-gallery { --gallery-accent: #087e87; }
.gallery-steps { gap: 0; margin-bottom: 0; border: 1px solid var(--line); border-radius: 14px 14px 0 0; overflow: hidden; background: #f4f7fa; }
.gallery-steps .workflow-tab { position: relative; min-height: 100px; padding: 16px 18px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); }
.gallery-steps .workflow-tab:last-child { border-right: 0; }
.gallery-steps .workflow-tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.gallery-steps .workflow-tab[aria-selected="true"]::after { content: ""; position: absolute; bottom: 0; left: 18px; right: 18px; height: 3px; background: var(--turquoise); }
.gallery-steps .workflow-tab:focus-visible { outline-offset: -4px; }
.gallery-steps .gallery-step-number { font-size: .67rem; color: var(--primary); opacity: 1; letter-spacing: .08em; }
.gallery-steps .workflow-tab[aria-selected="true"] .gallery-step-number { color: #7cdee2; }
.gallery-steps strong { display: block; font-size: .83rem; font-weight: 800; line-height: 1.5; }
.gallery-steps small { display: block; margin-top: 5px; font-size: .64rem; font-weight: 500; color: var(--muted); }
.gallery-steps .workflow-tab[aria-selected="true"] small { color: #bdcadb; }
.gallery-panel { display: block; min-height: 0; padding: 24px 26px 20px; border-top: 0; border-radius: 0 0 14px 14px; background: #f4f7fa; }
.step-gallery, .gallery-slides { min-width: 0; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.gallery-section-label { display: flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 800; color: var(--primary); }
.gallery-section-label > span { color: #9baebe; font-weight: 500; }
.gallery-controls { display: flex; align-items: center; gap: 8px; }
.gallery-counter { min-width: 49px; margin-right: 5px; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.gallery-counter b { color: var(--ink); }
.gallery-arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--primary); }
.gallery-arrow svg { width: 18px; height: 18px; }
.gallery-arrow:hover { border-color: var(--primary); background: #e8eef5; }
.gallery-slide { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.7fr); align-items: center; gap: 36px; min-height: 345px; }
.gallery-copy { padding: 12px 0; }
.gallery-kicker { display: block; margin-bottom: 10px; color: var(--gallery-accent); font-size: .68rem; font-weight: 800; line-height: 1.5; }
.gallery-copy h3 { font-size: clamp(1.25rem,2vw,1.65rem); line-height: 1.25; letter-spacing: -.035em; }
.gallery-copy p { font-size: .84rem; line-height: 1.8; }
.gallery-copy .feature-list { margin-top: 17px; }
.gallery-copy .feature-list li { font-size: .76rem; }
.gallery-screen { box-shadow: 0 6px 22px #17263a08; }
.gallery-screen img { width: 100%; height: 310px; max-height: none; padding: 10px; object-fit: contain; background: #fff; }
.gallery-screen > span { background: #fff; padding: 11px 14px; }
.gallery-thumbnails-heading { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; margin: 22px 0 12px; border-top: 1px solid var(--line); font-size: .7rem; font-weight: 800; color: var(--ink); }
.gallery-scroll-hint { color: var(--muted); font-weight: 500; }
.gallery-thumbnails { display: flex; align-items: stretch; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #9aafbf #e6edf3; padding: 4px 4px 12px; margin: -4px; }
.gallery-thumbnail { flex: 0 0 134px; min-width: 0; display: flex; flex-direction: column; padding: 5px; border: 2px solid transparent; border-radius: 9px; background: #fff; color: var(--muted); text-align: left; scroll-snap-align: start; }
.gallery-thumbnail:hover { border-color: #aac0ce; color: var(--ink); }
.gallery-thumbnail[aria-pressed="true"] { border-color: var(--gallery-accent); background: #e9f4f4; color: #08636b; }
.thumbnail-image { position: relative; display: block; overflow: hidden; height: 67px; border: 1px solid #e4e9ee; border-radius: 4px; background: #fff; }
.thumbnail-image img { width: 100%; height: 100%; object-fit: contain; }
.thumbnail-number { position: absolute; top: 3px; left: 3px; display: grid; place-items: center; min-width: 19px; height: 18px; border-radius: 3px; background: #17263ae6; color: #fff; font-size: .53rem; font-weight: 700; }
.thumbnail-caption { display: block; padding: 7px 3px 3px; font-size: .66rem; line-height: 1.5; font-weight: 750; }
.gallery-note { margin-top: 13px; font-size: .69rem; line-height: 1.6; color: var(--muted); }
.gallery-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gallery-slide.is-entering { animation: gallery-reveal 180ms ease-out; }
@keyframes gallery-reveal { from { opacity: .45; transform: translateX(6px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 1000px) {
    .gallery-steps .workflow-tab { padding: 14px 12px; }
    .gallery-panel { padding: 20px; }
    .gallery-slide { gap: 22px; grid-template-columns: minmax(0,.85fr) minmax(0,1.4fr); }
    .gallery-copy h3 { font-size: 1.3rem; }
    .gallery-screen img { height: 285px; }
}
@media (max-width: 760px) {
    .gallery-steps { grid-template-columns: repeat(3,minmax(0,1fr)); border-radius: 12px 12px 0 0; }
    .gallery-steps .workflow-tab { min-height: 85px; padding: 12px; }
    .gallery-steps .workflow-tab:nth-child(3n) { border-right: 0; }
    .gallery-steps .workflow-tab:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
    .gallery-steps strong { font-size: .74rem; }
    .gallery-steps small { margin-top: 3px; font-size: .6rem; }
    .gallery-steps .gallery-step-number { font-size: .6rem; }
    .gallery-panel { padding: 16px; border-radius: 0 0 12px 12px; }
    .gallery-toolbar { gap: 10px; margin-bottom: 17px; }
    .gallery-section-label { gap: 7px; font-size: .7rem; }
    .gallery-controls { gap: 5px; }
    .gallery-counter { min-width: 37px; font-size: .68rem; margin-right: 2px; }
    .gallery-arrow { width: 38px; height: 38px; }
    .gallery-slide { grid-template-columns: 1fr; gap: 16px; min-height: 0; align-items: start; }
    .gallery-copy { min-height: 190px; padding: 0; }
    .gallery-kicker { margin-bottom: 7px; font-size: .64rem; }
    .gallery-copy h3 { font-size: 1.2rem; margin-bottom: 10px; }
    .gallery-copy p { font-size: .8rem; line-height: 1.7; }
    .gallery-copy .feature-list { margin-top: 12px; }
    .gallery-copy .feature-list li { margin-top: 7px; font-size: .71rem; }
    .gallery-screen img { height: clamp(180px,53vw,290px); padding: 5px; }
    .gallery-screen > span { font-size: .65rem; padding: 10px 11px; }
    .gallery-thumbnails-heading { padding-top: 17px; margin-top: 18px; font-size: .65rem; }
    .gallery-scroll-hint { font-size: .6rem; }
    .gallery-thumbnails { gap: 8px; }
    .gallery-thumbnail { flex-basis: 113px; }
    .thumbnail-image { height: 57px; }
    .thumbnail-caption { font-size: .62rem; }
    .gallery-note { font-size: .65rem; }
}
@media (max-width: 360px) {
    .gallery-panel { padding: 13px; }
    .gallery-copy { min-height: 235px; }
    .gallery-scroll-hint { display: none; }
    .gallery-section-label { font-size: .66rem; }
    .gallery-arrow { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-slide.is-entering { animation: none; }
}
