/* GroundingPI studio r8. Shared by the standalone demo and private HF Space. */ #workspace-top {min-height:0;box-shadow:0 12px 36px #30204408;background:#fff} #controls {flex:0 0 286px!important;min-width:0!important;width:286px;padding:24px!important;gap:20px!important;background:#fcfbfe} .control-brand {container-type:inline-size;gap:12px} .control-brand h2 {font-size:clamp(26px,14cqw,38px);white-space:nowrap;line-height:1.15;letter-spacing:-.045em} .control-brand p {font-size:12px;line-height:1.65} #control-settings {padding:12px!important;gap:12px!important} #control-fields {flex-direction:column!important;gap:10px!important} #control-fields>.form {width:100%!important;flex:0 0 auto!important} #media-type {flex:0 0 auto!important} .media-field {display:flex;align-items:center;justify-content:space-between;gap:8px} .media-field>span {white-space:nowrap} .media-field>span {margin:0!important}.media-field>div {height:28px;background:none;border:0;padding:0;gap:4px} .media-field>div>.media-option {display:grid;place-items:center;min-width:0;height:28px;margin:0;padding:0 8px;border:1px solid transparent;border-radius:6px;box-shadow:none;font:800 11px var(--ui)} .media-field .is-active {background:#edf3e2;color:#4c681c} .media-field .media-option:disabled {background:#f2f0f5;border-color:#e5e0ea;color:#96909e;opacity:1;cursor:not-allowed!important} #run-button {margin-top:0!important;min-height:48px!important;border-radius:8px!important;box-shadow:none!important;font-size:14px!important} #service-panel {gap:2px!important;margin-top:0!important} .api-status small {font-size:11px} #service-panel #health-button {min-height:32px!important;justify-content:flex-start;padding-left:0!important} #controls[inert] {opacity:1} #visual-stage {--stage-gutter:24px;background:#fff} #task-guide {padding:22px var(--stage-gutter) 0!important} .task-guide strong {font-size:18px}.task-guide p {font-size:12px} .task-guide small {font-size:11px} #stage-toolbar {min-height:40px;padding:10px var(--stage-gutter)!important;gap:0!important} .stage-status {padding:0;border:0;background:transparent;font-size:11px;min-height:20px;align-items:center;flex-wrap:nowrap} .stage-status i {margin-top:0!important}.stage-status.busy i {margin-top:0!important} .stage-status .wait-clock {white-space:nowrap;margin-left:8px} #stage-toolbar.client-pending #stage-status {display:none!important} .client-notice {max-width:100%;flex:1} #canvas-viewport,#canvas-viewport:has(.focus-caption) {padding:0 var(--stage-gutter)!important;overflow:hidden!important} #stage-image {height:clamp(300px,48vh,520px)!important;overflow:visible!important;transition:transform 180ms ease} #stage-image .image-container {background:#f6f5f8!important;border-radius:6px;overflow:hidden} #stage-image img {box-shadow:none;border-radius:0} #stage-image .icon-button-wrapper {display:none!important} #canvas-chrome {position:relative!important;inset:auto!important;flex:0 0 auto!important;background:#fff} .canvas-tools {padding:8px 0;min-height:48px;gap:8px} .image-dimensions {border:0;background:transparent;padding:0;color:var(--muted)} .zoom-tools {border-color:#e8e4ec;border-radius:6px;box-shadow:none} .zoom-tools button,.canvas-download {width:32px;height:32px} .zoom-value {min-width:42px} .focus-halo {fill:none;stroke:#fff;stroke-width:5;vector-effect:non-scaling-stroke;opacity:.95} .focus-outline {fill:none;stroke-width:2.5;vector-effect:non-scaling-stroke;animation:none} .focus-dimmer {opacity:.16;animation:none} .focus-caption {width:100%!important;max-width:100%;box-sizing:border-box;margin:0 0 10px;padding:6px 8px 6px 12px;box-shadow:none;background:#f8f6fb;gap:6px} .focus-caption span {max-height:none;font-size:12px;flex:1} .focus-caption button {width:32px;height:32px;flex-shrink:0} #query-row {padding:6px var(--stage-gutter) 14px!important} #query-dock {max-width:none;width:100%;padding:10px 12px!important;box-shadow:none!important;border-color:#ddd6e6!important} #query-dock textarea {font-size:12px!important;line-height:1.7!important} .query-hint {text-align:left;margin:7px 0 0;font-size:10px} #targets-panel {padding:0 var(--stage-gutter) 20px!important;gap:0!important;border:0!important;min-width:0!important} .targets-summary {border-top:1px solid var(--line);padding-top:14px;font-size:12px} .targets-summary b {font-size:16px}.targets-summary>span {font-size:11px} .target-chips {display:flex!important;flex-direction:row;flex-wrap:wrap;max-height:280px!important;gap:6px;margin:10px 0 0;padding:2px} .target-chip {width:auto!important;flex:0 1 auto;min-width:0;min-height:34px!important;padding:7px 10px!important;gap:7px!important;background:#fff!important;border-radius:6px!important;font-size:11px!important} .target-chip>span {overflow-wrap:anywhere}.target-chip b {margin-left:3px} .target-chip[aria-pressed=true] {border-color:var(--purple)!important;background:#f0eaf7!important} .target-chip:focus-visible {outline:2px solid var(--purple);outline-offset:2px} .focus-help {margin-top:10px;gap:12px}.targets-caption {display:none} .empty-targets {min-height:0;padding:12px 0;border-top:1px solid var(--line);text-align:left;align-items:flex-start} .empty-targets strong {font-size:12px}.empty-targets span {font-size:11px}.empty-targets svg {display:none} #review-row {gap:16px!important} #sandbox-panel {flex-basis:40%!important;box-shadow:none;padding:18px!important} #review-summary {min-width:0!important;box-shadow:none} #result-columns {gap:16px!important} #metrics-panel {min-width:0!important;flex:1 1 45%!important} #sidebar {min-width:0!important;flex:1 1 55%!important} #sidebar:not(:has(.evidence-detail:not([hidden]))) {display:none!important} #result-columns:not(:has(.evidence-detail:not([hidden]))) .metrics-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 24px} .detail-image {height:170px}.evidence-detail {max-width:none} #prompt-console,#output-console {box-shadow:none!important;padding:12px 18px!important} @media(min-width:1500px){#controls {flex-basis:310px!important;width:310px;padding:28px!important}#visual-stage {--stage-gutter:32px}#stage-image {height:clamp(420px,50vh,580px)!important}} @media(max-width:1100px){#controls {flex-basis:246px!important;width:246px;padding:18px!important}.control-brand h2 {font-size:14cqw}#visual-stage {--stage-gutter:18px}#stage-image {height:clamp(300px,40vw,440px)!important}.header-scope {display:none}#review-row {flex-wrap:wrap!important}#sandbox-panel {flex:1 1 34%!important}#review-summary {flex:1 1 58%!important}} @media(max-width:760px){ #controls {width:100%;flex:0 0 auto!important;padding:16px!important;gap:12px!important} .control-brand {container-type:normal;gap:10px;flex-wrap:nowrap} .control-brand h2 {font-size:clamp(22px,6vw,30px);white-space:nowrap} #control-settings {padding:0!important;border:0!important;gap:10px!important} #control-fields {flex-direction:row!important;align-items:center;gap:16px!important} #control-fields>.form {width:0!important;flex:1 1 0!important} #media-type {flex:0 0 auto!important}.media-field {display:block}.media-field>span {margin-bottom:7px!important} .media-field>div {height:39px}.media-field>div>.media-option {min-width:52px;height:36px} #service-panel {padding-top:6px!important}.api-status small,.connection-detail {display:none} #service-panel #health-button {min-height:28px!important;font-size:11px!important} #visual-stage {--stage-gutter:14px} #task-guide {padding-top:16px!important}.task-guide strong {font-size:16px} #stage-image {height:clamp(230px,68vw,440px)!important} #stage-toolbar {padding-top:10px!important;padding-bottom:10px!important} .canvas-tools {flex-wrap:wrap}.zoom-tools button,.canvas-download {width:38px;height:38px} #query-row {padding-top:4px!important}#mobile-run-button {border-radius:8px!important;font-size:14px!important;margin-top:10px} #targets-panel {padding-bottom:16px!important}.target-chip {min-height:40px!important}.target-chips {max-height:none!important} .focus-caption button {width:38px;height:38px}.focus-caption span {font-size:11px} #review-row {flex-direction:column!important}#sandbox-panel,#review-summary {flex:0 0 auto!important} #metrics-panel,#sidebar {flex:0 0 auto!important} } /* Keep both media and task controls visible on narrow screens. */ @media(max-width:760px){#media-type{width:116px!important;flex:0 0 116px!important}}