/* Layout and look follow the design mockups (base.css): IBM Plex, Carbon cool grays, pill tags, gray tiles. Gradio wraps every component in its own block, so most rules below also strip Gradio's borders and padding. */ :root { color-scheme: light; --white: #fff; --black: #000; --cool-gray-10: #f2f4f8; --cool-gray-20: #dde1e6; --cool-gray-30: #c1c7cd; --cool-gray-50: #878d96; --cool-gray-60: #697077; --cool-gray-80: #343a3f; --cool-gray-100: #121619; --text-primary: #161616; --text-secondary: #525252; --text-placeholder: #a8a8a8; --text-disabled: rgba(22, 22, 22, 0.25); --text-on-color-disabled: #8d8d8d; --content-regular: #252525; --icon-secondary: #525252; --blue-10: #edf5ff; --blue-20: #d0e2ff; --blue-40: #78a9ff; --blue-50: #4589ff; --blue-60: #0f62fe; --blue-70: #0043ce; --support-success: #24a148; --tag-color-orange: #8a3800; --tag-background-orange: #ffd9be; --tag-border-orange: #ff832b; --purple-10: #f6f2ff; --purple-70: #6929c4; --teal-10: #d9fbfb; --teal-70: #005d5d; --magenta-10: #fff0f7; --magenta-70: #9f1853; --green-10: #defbe6; --green-70: #0e6027; --font-sans: "IBM Plex Sans", system-ui, sans-serif; --font-mono: "IBM Plex Mono", ui-monospace, monospace; } /* ---- Page frame: black page, one rounded light card holding everything ---- */ body, gradio-app, .gradio-container { background: var(--black) !important; } footer { display: none !important; } .gradio-container { max-width: none !important; padding: 8px !important; font-family: var(--font-sans) !important; color: var(--text-primary); -webkit-font-smoothing: antialiased; } .gradio-container .main, .gradio-container .wrap, .gradio-container .contain { padding: 0 !important; margin: 0 !important; } .gradio-container .contain > .column { gap: 0 !important; padding: 0 8px 8px; border: 1px solid var(--cool-gray-20); border-radius: 8px; background: var(--cool-gray-10); min-height: calc(100vh - 16px); } .gradio-container .prose, .gradio-container .prose * { font-family: var(--font-sans); } .html-container { padding: 0 !important; } /* Gradio blocks: no default borders, shadows or backgrounds. */ .gradio-container .block { border: none !important; box-shadow: none !important; background: transparent !important; } .hidden-box { display: none !important; } /* ---- Header ---- */ #topbar { align-items: center !important; gap: 6px !important; height: 44px; padding: 0 0 0 8px; flex-wrap: nowrap !important; } #brand { flex: 1 1 auto !important; } .app-header__brand { display: flex; align-items: center; gap: 16px; } .brand-logo { width: 31px !important; height: auto !important; max-width: none !important; margin: 0 !important; filter: brightness(0); } .app-header__divider { width: 1px; height: 24px; background: var(--cool-gray-30); } .app-header__title { margin: 0 !important; font-size: 16px !important; line-height: 20px; color: var(--content-regular); } .app-header__title strong { font-weight: 700; } #topbar button { height: 28px !important; min-height: 28px !important; padding: 0 12px !important; border-radius: 20px !important; font-size: 14px !important; font-weight: 400 !important; box-shadow: none !important; gap: 8px; } #topbar button img { width: 16px !important; height: 16px !important; margin: 0 !important; } #info-btn { width: 28px !important; min-width: 28px !important; max-width: 28px; flex: 0 0 28px !important; padding: 0 !important; background: var(--white) !important; border: 1px solid var(--cool-gray-30) !important; } #over-btn { background: var(--cool-gray-100) !important; color: var(--white) !important; border: none !important; } /* ---- Workspace: two white panels ---- */ #main { gap: 8px !important; align-items: stretch !important; flex-wrap: wrap; } #left, #right { min-width: min(520px, 100%) !important; padding: 16px !important; gap: 0 !important; background: var(--white) !important; border: 1px solid var(--cool-gray-20) !important; border-radius: 12px !important; display: flex !important; flex-direction: column; } .toolbar { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; } .toolbar__title { font-weight: 500; font-size: 16px; line-height: 20px; color: var(--text-primary); } .toolbar__spacer { flex: 1; } .block-head { display: flex; align-items: center; gap: 8px; padding: 16px 0 8px; } .block-head__title { font-weight: 500; font-size: 16px; line-height: 20px; } .gray-field { position: relative; background: var(--cool-gray-10); border-radius: 12px; padding: 16px; font-size: 14px; line-height: 20px; } .fine { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--text-placeholder); } /* ---- Tags and pills ---- */ .prompt-tag, .telemetry-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 8px; font-size: 12px; line-height: 16px; white-space: nowrap; } .prompt-tag { background: var(--blue-10); color: var(--content-regular); } .telemetry-pill { background: var(--cool-gray-20); color: var(--text-secondary); font-variant-numeric: tabular-nums; } .telemetry-pill--white { background: var(--white); } .telemetry-pill--live { background: var(--blue-10); color: var(--blue-60); } .kind { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.2px; white-space: nowrap; } .kind--text { background: var(--cool-gray-20); color: var(--cool-gray-80); } .kind--chart { background: var(--purple-10); color: var(--purple-70); } .kind--table { background: var(--teal-10); color: var(--teal-70); } .kind--figure { background: var(--magenta-10); color: var(--magenta-70); } .kind--lang { background: var(--green-10); color: var(--green-70); } /* ---- Landing: upload area with the dot graphic drawn over Gradio's file input ---- */ #landing { gap: 0 !important; flex: 1 1 auto; } #drop-wrap { position: relative; flex: 1 1 auto; min-height: 420px; } #dropzone { position: absolute !important; inset: 0; background: var(--blue-10) !important; border: 1.5px dashed var(--blue-40) !important; border-radius: 12px !important; } #dropzone button { height: 100% !important; } /* Hide Gradio's own "Drop File Here" text; the art below replaces it. */ #dropzone .wrap, #dropzone label { opacity: 0; } #drop-art { position: absolute !important; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; } #drop-art .html-container > div { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; } .record-visual { position: relative; display: grid; place-items: center; margin-bottom: 8px; padding: 8px; } .voice-cluster { position: relative; width: 200px; height: 180px; } .vdot { position: absolute; top: 50%; left: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: var(--cool-gray-100); transform: translate(var(--x), var(--y)); } .record-panel__mic { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 1px solid var(--cool-gray-20); color: var(--icon-secondary); } .record-panel__mic svg { width: 24px; height: 24px; } .record-panel__title { font-size: 16px; font-weight: 500; line-height: 1.2; } .example-lead { margin-top: -4px; font-size: 12px; line-height: 16px; letter-spacing: 0.32px; color: var(--text-placeholder); } .record-panel__formats { margin-top: 6px; font-size: 12px; line-height: 16px; letter-spacing: 0.32px; color: var(--text-placeholder); } /* ---- Example cards ---- */ #examples { gap: 12px !important; } .example-wrap { min-width: 0 !important; cursor: pointer; } .ex-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--cool-gray-10); border: 1px solid transparent; transition: border-color 0.15s; } .ex-card:hover, .ex-card.is-selected { background: var(--white); border-color: var(--blue-60); box-shadow: 0 0 0 1px var(--blue-60); } .pg { position: relative; overflow: hidden; aspect-ratio: 8.5 / 11; background: var(--white); border: 1px solid var(--cool-gray-20); border-radius: 4px; } .pg img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: cover; object-position: top; } .ex-card .pg { width: 56px; flex-shrink: 0; } .ex-card__title { margin-bottom: 4px; font-size: 14px; font-weight: 500; line-height: 18px; } .ex-card__meta { margin-bottom: 8px; font-size: 12px; line-height: 16px; color: var(--text-secondary); } .ex-card__kinds { display: flex; flex-wrap: wrap; gap: 4px; } /* ---- Indexing card ---- */ .record-panel.is-busy { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 24px 20px 64px; background: var(--cool-gray-10); border-radius: 12px; } .idx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px; } .idx-count { font-family: var(--font-mono); font-size: 18px; font-variant-numeric: tabular-nums; } .idx-count span { color: var(--text-placeholder); } .idx-sub { font-size: 12px; letter-spacing: 0.32px; color: var(--text-secondary); text-align: right; } .dots { display: flex; justify-content: space-between; padding: 0 4px; } .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--cool-gray-100); } .dots i.off { background: var(--cool-gray-30); } .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 10px; padding: 4px; } .cell { position: relative; } .cell.pending .pg { background: transparent; border: 1.5px dashed var(--cool-gray-30); } .cell.current .pg { border: 2px solid var(--blue-60); box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.15); } .cell.current .scan { position: absolute; left: 2px; right: 2px; top: 46%; height: 16%; background: linear-gradient(180deg, rgba(15, 98, 254, 0), rgba(15, 98, 254, 0.28), rgba(15, 98, 254, 0)); border-top: 1.5px solid var(--blue-60); animation: scan 1.4s ease-in-out infinite alternate; } @keyframes scan { from { top: 8%; } to { top: 70%; } } .cell .ok { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--support-success); color: var(--white); } .cell .ok svg { width: 10px; height: 10px; } .cell .num { margin-top: 4px; font-family: var(--font-mono); font-size: 10px; text-align: center; color: var(--text-secondary); } .cell.pending .num { color: var(--text-placeholder); } .rec-bar { position: absolute; left: 16px; bottom: 16px; } .rec-bar__device { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 3px 8px; border: 1px solid var(--cool-gray-20); border-radius: 8px; background: var(--white); font-size: 12px; color: var(--text-secondary); } .rec-bar__device svg { width: 14px; height: 14px; } /* The Cancel button sits over the indexing card's bottom-right corner, like the mockup. */ #cancel { align-self: flex-end; margin: -56px 16px 16px 0 !important; height: 40px !important; padding: 0 14px !important; border-radius: 20px !important; background: var(--black) !important; color: var(--white) !important; border: none !important; font-size: 14px !important; font-weight: 400 !important; z-index: 1; } #cancel img { width: 16px !important; height: 16px !important; } /* ---- Live log ---- */ .log-field { padding-bottom: 48px; } .log { font-family: var(--font-mono); font-size: 12px; line-height: 22px; color: var(--text-secondary); } .log .row { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; } .log .row b { font-weight: 400; color: var(--text-primary); } .log .row.new, .log .row.new b { color: var(--blue-60); } .log .t { text-align: right; color: var(--text-placeholder); } .pills { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; } /* ---- Retrieved pages ---- */ .viewer { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; } .hero { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px 20px; border-radius: 12px; background: var(--cool-gray-10); } .hero__img { width: 100% !important; max-width: 480px !important; margin: 0 !important; border: 1px solid var(--cool-gray-20); border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); } .hero__cap { position: absolute; top: 12px; left: 12px; } .hero__why { position: absolute; left: 12px; bottom: 12px; } .hits { display: flex; flex-direction: column; gap: 10px; } .hit { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: var(--cool-gray-10); border: 1px solid transparent; } .hit.is-on { background: var(--white); border-color: var(--blue-60); box-shadow: 0 0 0 1px var(--blue-60); } .hit .pg { width: 44px; flex-shrink: 0; } .hit__p { font-size: 13px; font-weight: 500; } .hit__s { margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); } .hit.is-on .hit__s { color: var(--blue-60); font-weight: 600; } .hit__d { margin-top: 2px; font-size: 11px; color: var(--text-placeholder); } .why { padding: 8px 16px; } /* ---- MaxSim heatmap over the large page (drawn by HEATMAP_JS in views.py) ---- */ .heat-stage { position: relative; width: 100%; max-width: 480px; line-height: 0; } .heat-stage .hero__img { display: block; max-width: none !important; } .heat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 4px; pointer-events: none; } .hit.is-pickable { cursor: pointer; } .hit.is-pickable:hover:not(.is-on) { border-color: var(--cool-gray-30); } .hit.is-pickable:focus-visible { outline: 2px solid var(--blue-60); outline-offset: 2px; } .heat-panel { padding: 12px 16px; } .heat-lead, .heat-detail { margin: 0 !important; font-size: 12px !important; line-height: 1.5; color: var(--text-secondary) !important; } .heat-detail { min-height: 3em; margin-top: 10px !important; } .tok-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .tok { padding: 3px 8px; border: 1px solid var(--cool-gray-20); border-radius: 999px; background: var(--white); font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); cursor: pointer; } .tok small { margin-right: 4px; font-size: 10px; color: var(--text-placeholder); } .tok:hover { border-color: var(--tag-border-orange); } .tok[aria-pressed="true"] { border-color: var(--tag-border-orange); background: var(--tag-background-orange); color: var(--tag-color-orange); } .tok:focus-visible { outline: 2px solid var(--blue-60); outline-offset: 2px; } .noul { display: grid; grid-template-columns: minmax(0, 1fr) minmax(48px, 30%) 40px; align-items: center; gap: 16px; min-height: 30px; padding: 4px 0; border-bottom: 1px solid var(--cool-gray-20); font-size: 14px; line-height: 20px; color: var(--text-secondary); } .noul:last-child { border-bottom: 0; } .noul__bar { height: 4px; border-radius: 2px; background: var(--white); overflow: hidden; } .noul__fill { height: 100%; border-radius: 2px; background: var(--cool-gray-50); } .noul__value { font-family: var(--font-mono); font-size: 12px; text-align: right; } .noul.is-yes { font-weight: 500; color: var(--text-primary); } .noul.is-yes .noul__fill { background: var(--blue-60); } .noul.is-yes .noul__value { font-weight: 600; color: var(--blue-60); } #notes { margin-top: 16px; border-radius: 12px !important; background: var(--cool-gray-10) !important; } /* ---- Right panel: heading row with the segmented Chat / Compare control on the right ---- */ #canvas-head { align-items: center !important; gap: 8px !important; min-height: 28px; margin-bottom: 16px; flex-wrap: nowrap !important; } #canvas-head > * { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; } #canvas-head > #view { margin-left: auto !important; } #chat-view, #compare-view { flex: 1 1 auto; gap: 16px !important; } #view { padding: 0 !important; } #view .wrap { display: inline-flex !important; flex-wrap: nowrap !important; gap: 2px !important; padding: 2px; border-radius: 20px; background: var(--cool-gray-20); } #view label { height: 24px; margin: 0 !important; padding: 0 12px !important; border: none !important; border-radius: 20px !important; background: transparent !important; box-shadow: none !important; color: var(--text-secondary) !important; font-size: 13px; white-space: nowrap; cursor: pointer; } #view label input { display: none; } #view label span { margin: 0 !important; } #view label.selected { background: var(--white) !important; color: var(--text-primary) !important; font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important; } /* ---- Settings tiles ---- */ #tiles { gap: 16px !important; flex-wrap: wrap; } .tile { flex: 1 1 200px !important; gap: 8px !important; padding: 12px 16px !important; border-radius: 12px; background: var(--cool-gray-10); } .tile__head { display: flex; align-items: center; gap: 8px; min-height: 24px; } .tile__label { flex: 1; font-size: 14px; line-height: 20px; color: var(--text-secondary); } .tile__note { font-size: 12px; line-height: 16px; color: var(--text-secondary); /* Room for three lines, so switching search method doesn't resize the tile. */ min-height: 48px; } .select { display: flex; flex-direction: column; justify-content: center; gap: 2px; /* Same height as the search method control in the neighboring tile. */ height: 40px; box-sizing: border-box; margin-top: 8px; padding: 6px 12px; border: 1px solid var(--cool-gray-20); border-radius: 8px; background: var(--white); font-size: 14px; } .select + .tile__note { margin-top: 8px; } /* Search method: Gradio's radio restyled as the mockup's dark segmented control. */ #method { padding: 0 !important; } #method .wrap { display: inline-flex !important; gap: 2px !important; padding: 4px; border-radius: 20px; background: var(--cool-gray-20); } #method label { height: 32px; margin: 0 !important; padding: 0 14px !important; border: none !important; border-radius: 20px !important; background: transparent !important; box-shadow: none !important; color: var(--text-secondary) !important; font-size: 13px; cursor: pointer; } #method label input { display: none; } #method label.selected { background: var(--cool-gray-100) !important; color: var(--white) !important; font-weight: 500; } #method label span { margin: 0 !important; } /* ---- Chat ---- */ #welcome { flex: 1 1 auto; display: flex; align-items: center; } .chat-welcome { max-width: 560px; padding: 24px 12px; } .chat-welcome__icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border: 1px solid var(--cool-gray-20); border-radius: 6px; background: var(--white); } .chat-welcome__icon svg { width: 16px; height: 16px; } .chat-welcome__title { margin: 0 0 8px !important; font-size: 28px !important; font-weight: 400 !important; line-height: 36px !important; letter-spacing: -0.01em; color: var(--text-primary) !important; } .chat-welcome__text { margin: 0 !important; font-size: 14px; line-height: 20px; color: var(--text-secondary) !important; } .steps { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 0 !important; padding: 0 !important; list-style: none; } .step { display: flex; gap: 12px; margin: 0 !important; } .step__num { display: grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--cool-gray-100); color: var(--white); font-size: 11px; } .step__head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; } .step__text { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--text-secondary); } #chatbot { flex: 1 1 auto !important; min-height: 360px; height: auto !important; background: transparent !important; border: none !important; } #chatbot .message-wrap { gap: 20px; } #chatbot .user .message, #chatbot .message.user { max-width: 78%; padding: 10px 14px !important; border: none !important; border-radius: 16px 16px 4px 16px !important; background: var(--cool-gray-10) !important; font-size: 14px; line-height: 20px; } #chatbot .bot .message, #chatbot .message.bot { max-width: 92%; padding: 0 !important; border: none !important; background: transparent !important; box-shadow: none !important; font-size: 14px; line-height: 22px; letter-spacing: 0.16px; } #chatbot .avatar-container { display: none; } .msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .cite { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 4px; border-radius: 8px; background: var(--blue-10); color: var(--blue-70); font-size: 12px; font-weight: 500; } .cite i { display: inline-block; width: 14px; height: 18px; border: 1px solid var(--blue-40); border-radius: 2px; background: var(--white); } /* Progress bar shown while a question is being answered. */ #progress:empty { display: none; } .run-progress { padding: 10px 14px; border-radius: 12px; background: var(--cool-gray-10); } .run-progress__head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-secondary); } .run-progress__title { font-weight: 500; color: var(--text-primary); } .run-progress__bar { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--cool-gray-20); overflow: hidden; } .run-progress__bar i { display: block; height: 100%; background: var(--blue-60); transition: width 0.3s; } /* Suggested questions */ .suggest { display: flex; flex-direction: column; gap: 8px; } .suggest__lead { font-size: 12px; letter-spacing: 0.32px; color: var(--text-placeholder); } .suggest__row { display: flex; flex-wrap: wrap; gap: 8px; } .q-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; max-width: 100%; padding: 4px 12px 4px 6px; border: 1px solid var(--cool-gray-20); border-radius: 20px; background: var(--white); color: var(--text-primary); font-family: var(--font-sans); font-size: 13px; line-height: 18px; text-align: left; cursor: pointer; } .q-chip:hover { border-color: var(--blue-60); } .q-chip.is-disabled { opacity: 0.45; cursor: default; } .q-chip.is-disabled:hover { border-color: var(--cool-gray-20); } /* Question box: a gray pill with a round black send button. */ #ask-row { align-items: center !important; gap: 8px !important; min-height: 44px; padding: 0 6px 0 16px; border: 1px solid var(--cool-gray-20); border-radius: 24px; background: var(--cool-gray-10); flex-wrap: nowrap !important; } #question { background: transparent !important; } #question textarea { padding: 10px 0 !important; border: none !important; box-shadow: none !important; background: transparent !important; font-size: 14px !important; } #question textarea::placeholder { color: var(--text-placeholder); } #send { flex: 0 0 32px !important; width: 32px !important; height: 32px !important; min-height: 32px !important; padding: 0 !important; border: none !important; border-radius: 50% !important; background: var(--cool-gray-100) !important; } #send[disabled] { background: var(--cool-gray-30) !important; } #send img { width: 16px !important; height: 16px !important; margin: 0 !important; } /* ---- Compare ---- */ .qbox { gap: 6px !important; padding: 16px !important; border-radius: 12px; background: var(--cool-gray-10); } .qbox .lead { font-size: 12px; letter-spacing: 0.32px; color: var(--text-secondary); } #cmp-q textarea { padding: 0 !important; border: none !important; box-shadow: none !important; background: transparent !important; font-size: 18px !important; line-height: 26px !important; } #cmp-controls { align-items: center !important; gap: 12px !important; flex-wrap: wrap; } #cmp-methods .wrap { gap: 8px !important; } #cmp-methods label { padding: 8px 12px !important; border: 1px solid var(--cool-gray-30) !important; border-radius: 12px !important; background: var(--white) !important; box-shadow: none !important; font-size: 14px; font-weight: 500; } #cmp-methods input[type="checkbox"]:checked { background-color: var(--cool-gray-100) !important; border-color: var(--cool-gray-100) !important; } #cmp-btn { height: 40px !important; padding: 0 18px !important; border: none !important; border-radius: 20px !important; background: var(--cool-gray-100) !important; color: var(--white) !important; font-weight: 400 !important; } .cmp-empty { padding: 40px 16px; border: 1.5px dashed var(--cool-gray-30); border-radius: 12px; color: var(--text-placeholder); font-size: 14px; text-align: center; } .cols { display: grid; gap: 12px; } .cols-1 { grid-template-columns: 1fr; } .cols-2 { grid-template-columns: 1fr 1fr; } .col { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px; border-radius: 12px; background: var(--cool-gray-10); } .col__name { font-size: 14px; font-weight: 500; } .col__info { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--text-secondary); } .rank { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--cool-gray-20); border-radius: 10px; background: var(--white); } .rank.first { border-color: var(--blue-60); box-shadow: 0 0 0 1px var(--blue-60); } .rank .n { width: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-placeholder); } .rank .pg { width: 40px; flex-shrink: 0; } .rank__p { font-size: 13px; font-weight: 500; } .rank__s { margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); } .col__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; } .mini { padding: 8px 10px; border-radius: 8px; background: var(--white); } .mini b { display: block; font-size: 20px; font-weight: 300; line-height: 26px; } .mini span { font-size: 11px; letter-spacing: 0.2px; color: var(--text-secondary); } .reco { display: flex; align-items: flex-start; gap: 16px; margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--blue-10); } .reco__k { margin-top: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0.32px; white-space: nowrap; color: var(--blue-60); } .reco p { margin: 0 !important; font-size: 14px; line-height: 20px; } /* ---- About panel: black sheet with a blue graphic, over a frosted backdrop ---- */ #info-modal { position: fixed !important; inset: 0; z-index: 100; display: flex !important; flex-direction: row !important; align-items: stretch !important; justify-content: flex-end; padding: 61px 17px 17px !important; background: rgba(242, 244, 248, 0.55) !important; backdrop-filter: blur(3px); } #info-modal > * { flex: 0 0 auto !important; width: min(860px, 100%) !important; height: 100%; margin-left: auto !important; } #info-modal .html-container, #info-modal .html-container > div { height: 100%; } .info-panel { display: flex; height: 100%; overflow: hidden; border-radius: 12px; background: var(--black); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4); color: var(--white); } .info-panel__graphic { position: relative; display: grid; place-items: center; flex: 1; margin: 12px 0 12px 12px; overflow: hidden; border-radius: 12px; background: var(--blue-60); } .shimmer { position: absolute; inset: -30% 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0) 5%, rgba(69, 137, 255, 0.65) 50%, rgba(0, 0, 0, 0) 95%); transform: translate(-20%) skew(-20deg); } .glyph { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 34px); gap: 10px; } .glyph i { position: relative; display: block; width: 34px; height: 44px; border: 3px solid var(--white); border-radius: 4px; } .glyph i::after { content: ""; position: absolute; top: 8px; left: 6px; right: 6px; height: 3px; background: var(--white); box-shadow: 0 8px 0 var(--white), 0 16px 0 var(--white); } .glyph i.hit { background: var(--white); } .glyph i.hit::after { background: var(--blue-60); box-shadow: 0 8px 0 var(--blue-60), 0 16px 0 var(--blue-60); } .info-panel__main { display: flex; flex-direction: column; flex: 1; min-width: 0; } .info-panel__header { position: relative; padding: 20px 56px 24px 20px; } .info-panel__header::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: var(--cool-gray-80); } .info-panel__title { margin: 0 !important; font-size: 20px !important; font-weight: 400 !important; line-height: 28px !important; color: var(--white) !important; } .info-panel__subtitle { margin: 4px 0 0 !important; font-size: 16px; line-height: 24px; color: var(--text-on-color-disabled) !important; } .info-panel__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; } .link-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--cool-gray-80); color: var(--white) !important; font-size: 12px; text-decoration: none !important; } .link-chip:hover { background: var(--cool-gray-60); } .link-chip svg { width: 12px; height: 12px; } .info-panel__body { flex: 1; padding: 20px; font-size: 14px; line-height: 20px; letter-spacing: 0.16px; color: var(--white); } .info-panel__body p { max-width: 504px; margin: 0 0 20px !important; color: var(--white) !important; } .info-panel__body p.lead { margin-bottom: 4px !important; } .info-panel__body ul { margin: 0 !important; padding-left: 21px !important; } .info-panel__body li { color: var(--white) !important; } .info-panel__footer { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 20px 16px; } .tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid var(--tag-border-orange); border-radius: 12px; background: var(--tag-background-orange); color: var(--tag-color-orange); font-size: 14px; line-height: 18px; white-space: nowrap; } #info-close { position: fixed !important; top: 81px; right: 37px; z-index: 101; width: 28px !important; height: 28px !important; min-height: 28px !important; padding: 0 !important; border: 1px solid var(--cool-gray-80) !important; border-radius: 50% !important; background: transparent !important; } #info-close img { width: 16px !important; height: 16px !important; margin: 0 !important; } /* ---- Narrow screens ---- */ @media (max-width: 1100px) { .viewer { grid-template-columns: 1fr; } .hits { flex-direction: row; flex-wrap: wrap; } .cols-2 { grid-template-columns: 1fr; } .info-panel__graphic { display: none; } } /* ---- Fixed-height workspace ---- When the two panels sit side by side, the workspace has a fixed height and each panel scrolls on its own, so indexing, results and new chat messages never resize the page. In the chat view the message list scrolls while the suggestions and question box stay pinned at the bottom. Below this width the panels stack and the page scrolls normally. */ @media (min-width: 1080px) { /* Viewport minus container padding (16), frame border (2), top bar (44) and frame bottom padding (8), capped in pixels: on Spaces the app runs in an iframe that grows to fit its content, so 100vh there grows with the chat and can't bound it on its own. */ #main { height: min(calc(100vh - 70px), 780px); flex-wrap: nowrap; } /* Gradio's row lets its columns wrap, and with equal_height it stops their children shrinking. Under a fixed height that pushes overflowing content into a second column to the right, so undo both. */ #left, #right { min-height: 0 !important; max-height: 100%; flex-wrap: nowrap !important; overflow-x: hidden; overflow-y: auto; } #chat-view, #compare-view { min-height: 0; flex-shrink: 1 !important; } /* Only the message list gives up room; everything else keeps its natural height. */ #chat-view > * { flex-shrink: 0; } /* Takes the room left over; below 240px the panel scrolls instead of squashing the chat. */ #chatbot { flex: 1 1 0 !important; min-height: 240px; } }