.work-row-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-slideshow img { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.tool-slideshow img.active { opacity: 1; }
.tool-click-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 16px; padding: 16px 24px; min-height: 60px; background: var(--accent); border: 2px solid var(--ink); box-shadow: 0 0 0 6px oklch(0.74 0.17 160 / .14), 0 0 40px oklch(0.74 0.17 160 / .5), 0 8px 24px var(--base-deep); color: var(--base-deep); font: 700 16px var(--font-body); white-space: nowrap; pointer-events: none; opacity: 0; }
.tool-card.visible .tool-click-hint { animation: toolClickHint 2s ease-in-out infinite; }
.tool-click-target { position: relative; width: 26px; height: 26px; flex-shrink: 0; border: 2px solid currentColor; border-radius: 50%; }
.tool-click-target::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: currentColor; }
.tool-click-target::after { content: ''; position: absolute; inset: -7px; border: 2px solid currentColor; border-radius: 50%; opacity: 0; }
.tool-card.visible .tool-click-target::after { animation: toolClickRing 2s ease-out infinite; }
@keyframes toolClickHint { 0%, 100% { opacity: 0; transform: translate(-50%, 8px) scale(.96); } 12%, 85% { opacity: 1; transform: translate(-50%, 0) scale(1); } 30% { transform: translate(-50%, -3px) scale(1.04); } }
@keyframes toolClickRing { 0%, 25% { opacity: 0; transform: scale(.6); } 35% { opacity: .9; transform: scale(.8); } 75%, 100% { opacity: 0; transform: scale(1.8); } }
.tool-slideshow .slide-count { position: absolute; bottom: 10px; right: 10px; background: var(--base-deep); border: 1px solid var(--line); padding: 3px 8px; color: var(--ink-muted); font: 11px var(--font-mono); }
.lightbox-gallery { position: static; justify-content: center; margin-top: 12px; }
.lightbox-content:has(.lightbox-gallery:not([hidden])) > img { max-height: 72vh; }
.lightbox-content:has(.lightbox-gallery:not([hidden])) { max-height: 80vh; }
.lightbox.detail-mode { padding: 24px; }
.lightbox.detail-mode .lightbox-content { width: min(1360px, 100%); max-width: 100%; max-height: 92vh; background: var(--base); border: 1px solid var(--line); }
.lightbox.detail-mode .lightbox-close { top: 16px; right: 20px; z-index: 5; background: var(--base); width: 44px; height: 44px; }
.lightbox.detail-mode > .lightbox-content > .lightbox-title { display: none; }
.tool-detail { max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--accent-deep) var(--base); }
.tool-detail[hidden] { display: none; }
.detail-header { padding: 32px 84px 24px 32px; border-bottom: 1px solid var(--line); }
.detail-eyebrow { color: var(--accent); font: 11px var(--font-mono); letter-spacing: .16em; margin-bottom: 12px; }
.detail-header h2 { font-size: clamp(22px, 2.5vw, 32px); line-height: 1.4; text-wrap: pretty; }
.detail-header p { color: var(--ink-muted); font-size: 14px; margin-top: 10px; }
.detail-section { padding: 32px; border-bottom: 1px solid var(--line); }
.detail-section:last-child { border-bottom: 0; }
.detail-step { color: var(--accent); font: 12px var(--font-mono); margin-bottom: 10px; }
.detail-section h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.5; margin-bottom: 24px; }
.detail-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; }
.detail-description { color: var(--ink-muted); font-size: 14px; line-height: 1.9; text-wrap: pretty; }
.detail-copy-group + .detail-copy-group { margin-top: 24px; }
.detail-copy-group h4 { color: var(--ink); font-size: 16px; margin-bottom: 12px; }
.detail-copy-group p + p { margin-top: 10px; }
.detail-description.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.detail-description.columns .detail-copy-group { margin-top: 0; }
.lightbox-content .detail-image { width: 100%; max-width: 100%; max-height: none; height: auto; display: block; background: var(--base-deep); }
.detail-split .detail-image { margin-bottom: 24px; }
.detail-gallery-frame { background: var(--base-deep); border: 1px solid var(--line); }
.lightbox-content .detail-gallery-frame img { width: 100%; height: min(55vh, 620px); object-fit: contain; border: 0; max-width: 100%; }
.detail-gallery-controls { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 16px 0 0; }
.detail-gallery-controls button { background: var(--surface-1); border: 1px solid var(--line); color: var(--ink); padding: 10px 16px; min-height: 44px; cursor: pointer; font: 12px var(--font-body); }
.detail-gallery-controls button:hover { border-color: var(--accent); color: var(--accent); }
.detail-gallery-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.detail-gallery-controls span { min-width: 42px; text-align: center; font: 12px var(--font-mono); color: var(--ink-muted); }
.case-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--line); background: var(--base-deep); }
.case-toolbar { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.case-toolbar h4 { font-size: 14px; }
.case-status { color: var(--ink-muted); font: 11px var(--font-mono); margin-top: 4px; }
.case-body { flex: 1; height: 0; min-height: 440px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.case-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; line-height: 1.8; }
.case-table th, .case-table td { padding: 12px 14px; width: 50%; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.case-table th + th, .case-table td + td { border-left: 1px solid var(--line); }
.case-table th { color: var(--accent); background: var(--surface-1); }
.case-table td { color: var(--ink-muted); }
.case-table strong { font-weight: 500; color: var(--ink); }
.case-char { opacity: 0; }
.case-char.typed { opacity: 1; }
.case-char.typing-cursor { background: var(--accent); color: var(--base-deep); }
.workflow-header { padding-top: 22px; padding-bottom: 20px; }
.workflow-header h2 { font-size: clamp(18px, 2vw, 26px); }
.result-first { padding-top: 24px; padding-bottom: 28px; }
.result-showcase { display: grid; grid-template-columns: minmax(180px, 290px) minmax(0, 1fr); max-width: 850px; margin: 0 auto; gap: clamp(28px, 4vw, 60px); align-items: center; }
.result-video-card { position: relative; width: 100%; aspect-ratio: 9/16; border: 1px solid var(--accent-deep); overflow: hidden; background: var(--base-deep); }
.lightbox-content .result-video-card video { width: 100%; height: 100%; max-height: none; object-fit: contain; border: 0; }
.result-play-cover { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: none; text-align: left; font-family: var(--font-body); color: var(--ink); cursor: pointer; }
.result-play-cover[hidden] { display: none; }
.result-play-cover .work-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.result-play-cover:hover .work-card-play { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-deep); }
.result-play-cover:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.result-play-cover .work-card-title, .result-play-cover .work-card-meta { display: block; }
.result-play-cover .work-card-title { font-size: 17px; }
.result-intro h3 { font-size: clamp(26px, 3vw, 40px); line-height: 1.35; margin-bottom: 18px; }
.result-intro p { color: var(--ink-muted); font-size: 13px; line-height: 1.8; }
.result-intro .result-summary { font-size: 15px; margin-top: 16px; max-width: 390px; }
.workflow-route { margin-top: 24px; border-top: 1px solid var(--line); }
.workflow-route button { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: left; cursor: pointer; font-family: var(--font-body); }
.workflow-route button > span { color: var(--accent); font: 12px var(--font-mono); }
.workflow-route strong { font-size: 15px; font-weight: 500; }
.workflow-route small { display: block; color: var(--ink-muted); font-size: 12px; margin-top: 4px; }
.workflow-route b { margin-left: auto; color: var(--accent); font-weight: 400; transition: transform .2s; }
.workflow-route button:hover b { transform: translateY(4px); }
.workflow-route button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.workflow-description { border-top: 1px solid var(--line); margin-top: 18px; }
.workflow-description summary { padding: 15px 0; cursor: pointer; font-size: 14px; color: var(--ink); }
.workflow-description summary span { margin-left: 10px; font-size: 11px; color: var(--accent); }
.workflow-description[open] summary span { display: none; }
.workflow-description > .detail-description { padding: 8px 0 18px; }
.workflow-description > .detail-description.columns { margin-top: 0; }
.lightbox-content .editor-overview { width: min(100%, 1000px); max-height: 52vh; object-fit: contain; margin: 0 auto; }
#workflowEditor { padding-bottom: 110px; }
.detail-scroll-guide { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 14px 24px; min-height: 76px; min-width: 340px; max-width: calc(100% - 28px); border: 2px solid var(--ink); color: var(--base-deep); background: var(--accent); box-shadow: 0 0 0 6px oklch(0.74 0.17 160 / .12), 0 0 36px oklch(0.74 0.17 160 / .4), 0 8px 28px var(--base-deep); font-family: var(--font-body); cursor: pointer; white-space: nowrap; }
.guide-copy { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.guide-copy strong { font-size: 16px; font-weight: 700; }
.guide-copy small { font-size: 12px; font-weight: 500; }
.detail-scroll-guide:hover { box-shadow: 0 0 0 8px oklch(0.74 0.17 160 / .18), 0 0 48px oklch(0.74 0.17 160 / .55); }
.detail-scroll-guide[hidden] { display: none; }
.detail-scroll-guide::after { content: ''; position: absolute; left: 0; bottom: 0; width: var(--read-progress, 0%); height: 3px; background: var(--base-deep); transition: width .15s linear; }
.detail-scroll-guide:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.guide-track { display: block; width: 4px; height: 34px; background: oklch(0.08 0.005 250 / .18); overflow: hidden; }
.guide-track i { display: block; height: 16px; width: 100%; background: var(--base-deep); animation: guideLight 1.4s ease-in-out infinite; }
.guide-arrow { display: block; position: relative; width: 26px; height: 34px; animation: guideArrow 1.4s ease-in-out infinite; }
.guide-arrow::before, .guide-arrow::after { content: ''; position: absolute; width: 16px; height: 16px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); left: 4px; }
.guide-arrow::before { top: 0; }
.guide-arrow::after { top: 12px; }
@keyframes guideLight { 0% { transform: translateY(-18px); } 100% { transform: translateY(38px); } }
@keyframes guideArrow { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(5px); } }
@media (max-width: 900px) {
  .detail-split { grid-template-columns: 1fr; }
  .case-body { flex: none; height: clamp(440px, 65dvh, 680px); min-height: 0; }
  .detail-description.columns { grid-template-columns: 1fr; gap: 24px; }
  .result-showcase { grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 540px) {
  .work-row-tools { grid-template-columns: 1fr; }
  .lightbox.detail-mode { padding: 10px; }
  .lightbox.detail-mode .lightbox-content, .tool-detail { max-height: 94dvh; }
  .detail-header { padding: 24px 66px 20px 18px; }
  .detail-section { padding: 24px 18px; }
  .lightbox.detail-mode .lightbox-close { top: 12px; right: 12px; }
  .detail-header h2 { font-size: 20px; }
  .case-toolbar { align-items: flex-start; }
  .result-showcase { display: flex; flex-direction: column; gap: 22px; }
  .result-video-card { width: min(100%, 220px); }
  .result-intro { width: 100%; }
  .result-intro h3 { font-size: 25px; }
  .result-intro h3 br { display: none; }
  .result-first { padding-top: 18px; }
  .workflow-header { padding-top: 18px; }
  .workflow-header h2 { font-size: 16px; }
  .workflow-header .detail-eyebrow { font-size: 9px; margin-bottom: 8px; }
  .tool-click-hint { font-size: 14px; padding: 12px 16px; gap: 12px; min-height: 54px; bottom: 22px; }
  .detail-scroll-guide { min-width: 0; width: calc(100% - 32px); min-height: 68px; padding: 12px 14px; gap: 14px; bottom: 14px; }
  .guide-copy strong { font-size: 14px; }
  .guide-copy small { font-size: 11px; }
  .workflow-description summary span { display: block; margin: 4px 0 0 16px; }
  .case-table th, .case-table td { padding: 10px 8px; font-size: 12px; }
  .case-body { height: clamp(440px, 65dvh, 600px); }
  .lightbox-content .detail-gallery-frame img { height: 32vh; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-slideshow img { transition: none; }
  .guide-track i, .guide-arrow { animation: none; }
  .tool-card.visible .tool-click-hint { animation: none; opacity: 1; }
  .tool-card.visible .tool-click-target::after { animation: none; }
}
