/* Workbench page rules move here as they are retired from legacy-pages.css. */ .wb-prompt-cases { position: relative; z-index: 1; width: min(100%, 1600px); margin-top: 8px; } .wb-prompt-cases__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-flow: dense; grid-auto-rows: 10px; gap: 8px; } .wb-prompt-case-card { position: relative; display: block; min-width: 0; min-height: 0; grid-row: span 14; overflow: hidden; border: 0; border-radius: 8px; background: var(--bg-inset); color: var(--fg-body); padding: 0; cursor: zoom-in; text-align: left; isolation: isolate; } .wb-prompt-case-card--ratio-wide { grid-column: span 1; grid-row: span 13; } .wb-prompt-case-card--ratio-tall { grid-column: span 1; grid-row: span 30; } .wb-prompt-case-card--ratio-square { grid-column: span 1; grid-row: span 18; } .wb-prompt-case-card--ratio-portrait { grid-column: span 1; grid-row: span 24; } .wb-prompt-case-card img { display: block; width: 100%; height: 100%; object-fit: cover; background: #07111b; transform: scale(1.001); transition: filter 180ms ease, transform 180ms ease; } .wb-prompt-case-card:hover img, .wb-prompt-case-card:focus-visible img { filter: brightness(0.72); transform: scale(1.035); } .wb-prompt-case-card > div { position: absolute; z-index: 1; } .wb-prompt-case-card > div { inset: auto 0 0; display: grid; gap: 4px; padding: 36px 12px 12px; background: rgba(0, 0, 0, 0.82); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 160ms ease, transform 160ms ease; } .wb-prompt-case-card:hover > div, .wb-prompt-case-card:focus-visible > div { opacity: 1; transform: translateY(0); } .wb-prompt-case-card strong { color: #fff; font-size: 13px; font-weight: 800; line-height: 1.3; } .wb-prompt-case-card em { color: rgba(255, 255, 255, 0.72); font-size: 12px; font-style: normal; font-weight: 650; } .web-shell .ai-workbench-page.is-launch .wb-home { gap: 20px; } .web-shell .ai-workbench-page.is-launch .wb-prompt-cases .wb-showcase__header { margin-bottom: 10px; } .wb-prompt-case-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 28px; background: rgba(2, 6, 12, 0.42); } .wb-prompt-case-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(2, 6, 12, 0.58); backdrop-filter: none; cursor: zoom-out; } .wb-prompt-case-modal__panel { --prompt-case-modal-max-height: min(720px, calc(100svh - 56px)); position: relative; z-index: 1; display: grid; grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 1fr); width: min(880px, calc(100vw - 56px)); max-height: var(--prompt-case-modal-max-height); overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 16px; background: #070b10; color: #e5edf7; box-shadow: none; } .wb-prompt-case-modal__media { display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 16px; background: #05080d; } .wb-prompt-case-modal__media img { display: block; width: 100%; max-height: min(560px, calc(100svh - 108px)); border-radius: 12px; object-fit: contain; box-shadow: none; } .wb-prompt-case-modal__sidebar { position: relative; display: grid; align-content: start; min-height: 0; max-height: var(--prompt-case-modal-max-height); gap: 16px; overflow-y: auto; overscroll-behavior: contain; padding: 34px 26px 26px; scrollbar-gutter: stable; border-left: 1px solid rgba(148, 163, 184, 0.16); background: #0c1118; } .wb-prompt-case-modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 10px; background: rgba(15, 23, 42, 0.72); color: #e5edf7; cursor: pointer; } .wb-prompt-case-modal__close:hover { background: rgba(30, 41, 59, 0.95); color: #ffffff; } .wb-prompt-case-author { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; } .wb-prompt-case-author > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #00ff88; color: #061014; font-size: 13px; font-weight: 900; } .wb-prompt-case-author strong, .wb-prompt-case-meta h2 { color: #f8fafc; } .wb-prompt-case-author strong { display: block; overflow: hidden; font-size: 14px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; } .wb-prompt-case-author em, .wb-prompt-case-meta span { color: #94a3b8; font-size: 12px; font-style: normal; font-weight: 700; } .wb-prompt-case-meta { display: grid; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid rgba(148, 163, 184, 0.16); } .wb-prompt-case-meta h2 { margin: 0; font-size: 19px; font-weight: 900; line-height: 1.25; } .wb-prompt-case-meta p { margin: 0; color: #cbd5e1; font-size: 13px; font-weight: 650; line-height: 1.65; } .wb-prompt-case-prompt { display: grid; gap: 10px; } .wb-prompt-case-prompt span { color: #94a3b8; font-size: 14px; font-weight: 850; } .wb-prompt-case-prompt p { margin: 0; color: #e2e8f0; font-size: 14px; font-weight: 700; line-height: 1.75; white-space: pre-wrap; } .wb-prompt-case-actions { position: sticky; bottom: -1px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 -2px -2px; padding: 10px 2px 2px; background: #0c1118; } .wb-prompt-case-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 8px; background: #16202c; color: #e5edf7; font-size: 14px; font-weight: 850; cursor: pointer; } .wb-prompt-case-actions button:hover { background: #1f2c3a; color: #ffffff; } .wb-prompt-case-actions button:first-child { background: #00ff88; border-color: #00ff88; color: #061014; } .wb-prompt-case-actions button:first-child:hover { background: #42ffa6; color: #061014; } @media (max-width: 980px) { .wb-prompt-cases__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 8px; gap: 8px; } .wb-prompt-case-card { grid-row: span 13; } .wb-prompt-case-card--ratio-wide { grid-column: span 1; grid-row: span 7; } .wb-prompt-case-card--ratio-tall { grid-column: span 1; grid-row: span 19; } .wb-prompt-case-card--ratio-square { grid-column: span 1; grid-row: span 11; } .wb-prompt-case-card--ratio-portrait { grid-column: span 1; grid-row: span 14; } .wb-prompt-case-modal__panel { --prompt-case-modal-max-height: calc(100svh - 28px); width: min(640px, calc(100vw - 28px)); max-height: var(--prompt-case-modal-max-height); grid-template-columns: 1fr; overflow-y: auto; } .wb-prompt-case-modal__media { min-height: 0; overflow: visible; padding: 18px; } .wb-prompt-case-modal__sidebar { max-height: none; overflow: visible; border-left: 0; border-top: 1px solid rgba(148, 163, 184, 0.16); padding: 24px 22px 24px; } .wb-prompt-case-modal__close { right: 14px; top: 14px; } } @media (max-width: 560px) { .wb-prompt-cases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 8px; gap: 8px; } .wb-prompt-case-card { grid-row: span 12; } .wb-prompt-case-card--ratio-wide { grid-column: span 1; grid-row: span 7; } .wb-prompt-case-card--ratio-tall { grid-column: span 1; grid-row: span 18; } .wb-prompt-case-card--ratio-square { grid-column: span 1; grid-row: span 11; } .wb-prompt-case-card--ratio-portrait { grid-column: span 1; grid-row: span 13; } .wb-prompt-case-card > div { padding: 34px 10px 10px; } .wb-prompt-case-card strong { font-size: 12px; } .wb-prompt-case-card em { font-size: 11px; } .wb-prompt-case-modal__media { padding: 16px; } .wb-prompt-case-modal__sidebar { padding: 22px 16px 22px; } .wb-prompt-case-actions { grid-template-columns: 1fr; } }