/* openvibe-shared/thread.css — one conversation UI for the network (plan L55 C4), drawn by openvibe-shared/thread and ov-thread.js. The page scrolls as a whole (no inner box to trap a thumb); the composer stays at the bottom of the screen, above a phone's app bar; the chats are a column on a wide screen and a drawer on a phone. Theme tokens only, so every OpenVibe look applies. Nothing spins: a working turn breathes. */ .ovt { --ovt-top: 56px; --ovt-rail: 272px; --ovt-line: color-mix(in srgb, var(--border, #1f2d47) 80%, transparent); --ovt-accent: var(--accent, #3b82f6); display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100dvh - var(--ovt-top)); color: var(--text-primary, #e6edf7); } /* The network's one sidebar (kit.sidebar): a column from 761 px, where kit.css makes it one, and sticky under the navbar. */ @media (min-width: 761px) { .ovt:has(> .ovk-sidebar) { grid-template-columns: var(--ovk-sidebar-w, var(--ovt-rail)) minmax(0, 1fr); } .ovt > .ovk-sidebar { position: sticky; top: var(--ovt-top); height: calc(100dvh - var(--ovt-top)); overflow-y: auto; overscroll-behavior: contain; } } @media (max-width: 760px) { .ovt > .ovk-sidebar-scrim:not([hidden]) { position: fixed; inset: 0; z-index: 59; } } .ovt-head .ovk-sidebar-open { flex: none; } /* The hidden attribute always wins inside the kit (a rule's display never shows what a page hid). */ .ovt [hidden] { display: none !important; } .ovt-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .ovt-muted { color: var(--text-muted, #7386a3); } .ovt-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } /* ── The chats (kit.sidebar) ──────────────────────────────────────────────────────────────────────────────────────────────── */ .ovt-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ovt-accent); animation: ovt-breathe 1.6s ease-in-out infinite; } .ovk-sidebar-foot .ovt-side-foot { border-top: 0; padding-top: 0; } .ovt-side-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 10px 8px 0; border-top: 1px solid var(--ovt-line); font-size: 13px; } .ovt-side-foot a { color: var(--text-secondary, #96a7c2); text-decoration: none; } .ovt-side-foot a:hover { color: var(--text-primary, #e6edf7); } /* ── The conversation ───────────────────────────────────────────────────────────────────────────────────────── */ .ovt-main { display: flex; flex-direction: column; min-width: 0; min-height: calc(100dvh - var(--ovt-top) - var(--ovnav-appbar-h, 0px)); } .ovt-head { position: sticky; top: var(--ovt-top); z-index: 20; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg-primary, #0a0f1c) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; } .ovt-head.is-stuck { border-bottom-color: var(--ovt-line); } .ovt-title { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 650; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ovt-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: none; color: var(--text-secondary, #b4c0d4); cursor: pointer; text-decoration: none; } .ovt-btn:hover, .ovt-btn:focus-visible { background: var(--bg-hover, color-mix(in srgb, var(--text-primary, #fff) 6%, transparent)); color: var(--text-primary, #e6edf7); } .ovt-btn .ovt-ic { width: 22px; height: 22px; } .ovt-scroll { flex: 1; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); } .ovt-thread { list-style: none; max-width: 780px; margin: 0 auto; padding: 0; display: grid; gap: 30px; } .ovt-empty-state { max-width: 780px; margin: 8vh auto 0; text-align: center; } .ovt-empty-state:empty { display: none; } .ovt-turn { display: grid; gap: 14px; scroll-margin-top: calc(var(--ovt-top) + 60px); } .ovt-you { display: grid; justify-items: end; gap: 8px; } .ovt-bubble { max-width: min(85%, 620px); margin: 0; padding: 10px 15px; border-radius: 20px 20px 6px 20px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; background: color-mix(in srgb, var(--ovt-accent) 14%, var(--bg-card, #131c2e)); color: var(--text-primary, #e6edf7); } .ovt-turn.is-new .ovt-bubble { animation: ovt-rise .32s cubic-bezier(.2, .8, .2, 1) both; } .ovt-bot { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; } .ovt-bot:not(:has(.ovt-avatar)) { grid-template-columns: minmax(0, 1fr); } .ovt-avatar { width: 28px; height: 28px; margin-top: 2px; border-radius: 9px; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--ovt-accent) 70%, #fff), var(--ovt-accent) 55%, color-mix(in srgb, var(--ovt-accent) 60%, #000)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ovt-accent) 35%, transparent); } /* While it thinks or writes, the agent's picture shows the thinking sign (the mark's own: three dots rising in turn, openvibe-shared 4.187.0); a face or initials (is-who) keeps breathing instead, so it is never covered. */ .ovt-avatar { position: relative; } .ovt-turn[data-open] .ovt-avatar.is-who { animation: ovt-breathe 1.6s ease-in-out infinite; } .ovt-turn[data-open] .ovt-avatar:not(.is-who)::before { content: ""; position: absolute; inset: 0; border-radius: inherit; --d: radial-gradient(circle closest-side, #fff 88%, transparent) no-repeat; background: var(--d) 5px 11.5px / 5px 5px, var(--d) 11.5px 11.5px / 5px 5px, var(--d) 18px 11.5px / 5px 5px; animation: ovt-think 1.2s ease-in-out infinite; } .ovt-reply { min-width: 0; display: grid; gap: 10px; } /* Grid items size to their content by default: a tool row's long input would widen the page. */ .ovt-reply > *, .ovt-work, .ovt-w-tool > details { min-width: 0; max-width: 100%; } .ovt-w-tool > details > summary { min-width: 0; } /* The work, folded: "Worked for 12 s · 3 tools". Open while the turn works, so its live line shows. */ .ovt-work > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 0 10px 0 2px; border-radius: 10px; cursor: pointer; color: var(--text-secondary, #96a7c2); font-size: 14px; } .ovt-work > summary::-webkit-details-marker { display: none; } .ovt-work > summary:hover { color: var(--text-primary, #e6edf7); } .ovt-chev { width: 16px; height: 16px; transition: transform .2s; } .ovt-work[open] > summary .ovt-chev { transform: rotate(180deg); } .ovt-w-live { background: linear-gradient(90deg, var(--text-secondary, #96a7c2) 40%, var(--text-primary, #e6edf7) 50%, var(--text-secondary, #96a7c2) 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ovt-shimmer 2.4s linear infinite; } .ovt-w-list { list-style: none; margin: 6px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--ovt-line); display: grid; gap: 6px; font-size: 14px; color: var(--text-secondary, #96a7c2); } .ovt-w-list > li { display: flex; gap: 8px; align-items: flex-start; min-width: 0; } .ovt-w-list > li > .ovt-ic { width: 16px; height: 16px; margin-top: 2px; } .ovt-w-list p { margin: 0; min-width: 0; overflow-wrap: anywhere; } .ovt-w-note.is-warn { color: var(--warning-text, #fbbf24); } .ovt-w-tool { display: block !important; } .ovt-w-tool > details > summary, .ovt-w-tool > .ovt-w-row { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 28px; min-width: 0; } .ovt-w-tool > .ovt-w-row { cursor: default; } .ovt-w-tool > details > summary::-webkit-details-marker { display: none; } .ovt-w-tool b { flex: none; font-weight: 600; color: var(--text-primary, #e6edf7); white-space: nowrap; } .ovt-w-in { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted, #7386a3); } .ovt-w-st { margin-left: auto; display: inline-flex; } .ovt-w-tool.is-ok .ovt-w-st { color: var(--success-text, #4ade80); } .ovt-w-tool.is-bad .ovt-w-st { color: var(--danger-text, #f87171); } .ovt-w-out { margin: 6px 0 4px 24px; max-height: 260px; overflow: auto; padding: 8px 10px; border-radius: 8px; background: var(--bg-primary, #0a0f1c); border: 1px solid var(--ovt-line); font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; } /* The answer: comfortable reading, code with Copy, tables that scroll inside themselves. */ .ovt-answer { line-height: 1.65; font-size: 16px; overflow-wrap: anywhere; } .ovt-answer > :first-child { margin-top: 0; } .ovt-answer > :last-child { margin-bottom: 0; } .ovt-answer pre { position: relative; overflow-x: auto; padding: 12px 14px; border-radius: 12px; background: var(--bg-secondary, #0f1729); border: 1px solid var(--ovt-line); font-size: 13.5px; } .ovt-answer table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; } .ovt-answer th, .ovt-answer td { padding: 6px 10px; border-bottom: 1px solid var(--ovt-line); text-align: left; } .ovt-answer a { color: var(--accent-light, var(--ovt-accent)); } .ovt-turn.is-fresh .ovt-answer { animation: ovt-fade .4s ease-out both; } /* An answer that types in (ov-thread.js reveal): only opacity, so a screen reader reads it all at once. */ .ovt-answer.is-revealing .ovt-sw { opacity: 0; transition: opacity .28s ease-out; } .ovt-answer.is-revealing .ovt-sw.on { opacity: 1; } html[data-ov-motion=off] .ovt-answer.is-revealing .ovt-sw{opacity: 1 !important} .ovt-answer pre:has(.ovt-code-copy) { padding-right: 68px; } .ovt-code-copy { position: absolute; top: 6px; right: 6px; padding: 2px 8px; border-radius: 8px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e); color: var(--text-secondary, #96a7c2); font-size: 12px; cursor: pointer; } .ovt-files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; } .ovt-files img { display: block; max-width: 220px; max-height: 180px; border-radius: 12px; border: 1px solid var(--ovt-line); object-fit: cover; } .ovt-file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e); color: inherit; text-decoration: none; } .ovt-file span { display: grid; } .ovt-file small { color: var(--text-muted, #7386a3); } .ovt-sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; } .ovt-sources a { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--ovt-line); color: var(--text-secondary, #96a7c2); font-size: 13px; text-decoration: none; } .ovt-sources a:hover { color: var(--text-primary, #e6edf7); border-color: var(--ovt-accent); } .ovt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--text-muted, #7386a3); } .ovt-acts { display: inline-flex; gap: 4px; margin-left: auto; } .ovt-act { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 9px; border: 0; background: none; color: var(--text-secondary, #96a7c2); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; } .ovt-act:hover, .ovt-act:focus-visible { background: var(--bg-hover, color-mix(in srgb, var(--text-primary, #fff) 6%, transparent)); color: var(--text-primary, #e6edf7); } .ovt-act .ovt-ic { width: 16px; height: 16px; } .ovt-card { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e); } .ovt-card p { margin: 0 0 6px; } .ovt-card > :last-child { margin-bottom: 0; } .ovt-card.is-wait { border-color: color-mix(in srgb, var(--ovt-accent) 50%, var(--ovt-line)); } .ovt-card.is-bad { border-color: color-mix(in srgb, var(--danger-text, #f87171) 50%, var(--ovt-line)); } /* ── The panel (4.99.0): what the work produced. A third column from 1180 px, a drawer from the right below. ─────── */ .ovt { --ovt-panel-w: 300px; } .ovt-panel { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 16px; background: var(--bg-secondary, #0f1729); border-left: 1px solid var(--ovt-line); } .ovt-panel-head { display: flex; align-items: center; gap: 8px; min-height: 42px; } .ovt-panel-head h2 { flex: 1; margin: 0; font-size: 15px; font-weight: 650; } .ovt-panel-sec { padding: 10px 0; border-top: 1px solid var(--ovt-line); } .ovt-panel-head + .ovt-panel-sec { border-top: 0; padding-top: 2px; } .ovt-panel-sec h3 { margin: 0 0 8px; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #7386a3); } .ovt-panel-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .ovt-panel-rows > li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: 14px; } .ovt-panel-rows > li > svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--text-secondary, #96a7c2); } .ovt-panel-rows > li > span:last-child { display: grid; min-width: 0; overflow-wrap: anywhere; } .ovt-panel-rows small { color: var(--text-muted, #7386a3); font-size: 12.5px; } .ovt-panel-rows .ovt-avatar { width: 24px; height: 24px; margin-top: 0; font-size: 10.5px; border-radius: 8px; } .ovt-panel a { color: var(--accent-light, var(--ovt-accent)); } .ovt-panel code { font-size: 12.5px; overflow-wrap: anywhere; } @media (min-width: 1180px) { .ovt.has-panel { grid-template-columns: minmax(0, 1fr) var(--ovt-panel-w); } .ovt.has-panel:has(> .ovk-sidebar) { grid-template-columns: var(--ovk-sidebar-w, var(--ovt-rail)) minmax(0, 1fr) var(--ovt-panel-w); } .ovt-panel { position: sticky; top: var(--ovt-top); height: calc(100dvh - var(--ovt-top)); box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; } .ovt-panel-open, .ovt-panel-close, .ovt-panel-scrim { display: none !important; } } @media (max-width: 1179px) { .ovt-panel { position: fixed; z-index: 10060; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; padding-top: max(10px, env(safe-area-inset-top, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); border-left: 0; translate: 100% 0; visibility: hidden; transition: translate .25s ease, visibility 0s linear .25s; box-shadow: -12px 0 32px rgba(0, 0, 0, .25); } .ovt.is-panel .ovt-panel { translate: 0 0; visibility: visible; transition: translate .25s ease; } .ovt-panel-scrim { position: fixed; inset: 0; z-index: 10050; background: rgba(0, 0, 0, .4); } } /* An agent's face and name over its reply (turn({ who })), and the line across the thread when another takes over. */ .ovt-avatar.is-who { display: grid; place-items: center; background: color-mix(in srgb, var(--ovt-who, var(--ovt-accent)) 22%, var(--bg-card, #131c2e)); color: color-mix(in srgb, var(--ovt-who, var(--ovt-accent)) 70%, var(--text-primary, #e6edf7)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ovt-who, var(--ovt-accent)) 45%, transparent); font-size: 11.5px; font-weight: 750; letter-spacing: -.01em; line-height: 1; } .ovt-avatar.is-who .ovt-ic, .ovt-avatar.is-who svg { width: 16px; height: 16px; } /* A face in the sidebar (a chat's agent) or a panel row: smaller, beside a line of text. */ .ovk-sidebar-item .ovt-avatar.is-who { flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; font-size: 10px; } .ovk-sidebar-item .ovt-avatar.is-who svg { width: 13px; height: 13px; } .ovt-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 3px 0 -4px; font-size: 14px; } .ovt-who b { font-weight: 650; color: var(--text-primary, #e6edf7); } .ovt-who span { color: var(--text-muted, #7386a3); font-size: 13px; } .ovt-caption { font-size: 12px; color: var(--text-muted, #7386a3); } .ovt-divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted, #7386a3); font-size: 13px; } .ovt-divider::before, .ovt-divider::after { content: ""; flex: 1; height: 1px; background: var(--ovt-line); } .ovt-divider > span { display: inline-flex; align-items: center; gap: 6px; max-width: min(80%, 560px); text-align: center; } .ovt-divider .ovt-ic { width: 16px; height: 16px; } /* A card that asks (an approval): what it wants to run, then Allow and Deny. */ .ovt-card-h { display: flex; align-items: flex-start; gap: 8px; } .ovt-card-h > .ovt-ic { margin-top: 2px; color: var(--text-secondary, #96a7c2); } .ovt-card.is-wait .ovt-card-h > .ovt-ic { color: var(--ovt-accent); } .ovt-card-code { margin: 4px 0 8px; max-height: 220px; overflow: auto; padding: 8px 10px; border-radius: 10px; background: var(--bg-primary, #0a0f1c); border: 1px solid var(--ovt-line); font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: break-word; } .ovt-card-acts { display: flex; flex-wrap: wrap; gap: 8px; } .ovt-card-btn { min-height: 38px; padding: 0 16px; border-radius: 11px; border: 0; background: var(--ovt-accent); color: var(--on-accent, #fff); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; } .ovt-card-btn.is-quiet { background: none; color: var(--text-primary, #e6edf7); box-shadow: inset 0 0 0 1px var(--ovt-line); } .ovt-card-btn:hover { filter: brightness(1.08); } .ovt-card-btn.is-quiet:hover { background: var(--bg-hover, color-mix(in srgb, var(--text-primary, #fff) 6%, transparent)); filter: none; } /* A start page (page({ center })): the welcome and the composer together in the middle, not the composer at the bottom. */ /* The head stays at the top; only the welcome and the composer are centred, by auto margins (centring the whole column floated the head into the middle of a tall screen, above an empty band). */ .ovt.is-start .ovt-scroll { flex: none; padding-bottom: 4px; margin-top: auto; } .ovt.is-start .ovt-empty-state { margin-top: 0; } .ovt.is-start .ovt-dock { position: static; background: none; padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); margin-bottom: auto; } @media (max-width: 760px) { .ovt.is-start .ovt-scroll { margin-top: 0; } .ovt.is-start .ovt-dock { margin-bottom: 0; } .ovt.is-start .ovt-empty-state { margin-top: 4vh; } } /* A plain page in the conversation's place (page({ main })). */ .ovt-page { max-width: 980px; width: 100%; box-sizing: border-box; margin: 0 auto; } /* ── The composer ───────────────────────────────────────────────────────────────────────────────────────────── */ .ovt-dock { position: sticky; bottom: var(--ovnav-appbar-h, 0px); z-index: 15; padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: linear-gradient(to top, var(--bg-primary, #0a0f1c) 70%, transparent); } .ovt-starters { display: flex; flex-wrap: wrap; gap: 8px; max-width: 780px; margin: 0 auto 10px; } .ovt-starter { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e); color: var(--text-secondary, #b4c0d4); font: inherit; font-size: 14px; text-align: left; cursor: pointer; } .ovt-starter:hover, .ovt-starter:focus-visible { border-color: var(--ovt-accent); color: var(--text-primary, #e6edf7); } .ovt-composer { max-width: 780px; margin: 0 auto; padding: 10px 10px 8px 14px; border-radius: 22px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); } .ovt-composer:focus-within { border-color: color-mix(in srgb, var(--ovt-accent) 60%, var(--ovt-line)); } .ovt-composer textarea { display: block; width: 100%; box-sizing: border-box; min-height: 26px; max-height: 40vh; padding: 4px 0; border: 0; outline: 0; resize: none; background: none; color: var(--text-primary, #e6edf7); font: inherit; font-size: 16px; line-height: 1.5; } .ovt-c-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; } .ovt-c-tools { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .ovt-send, .ovt-stop { flex: none; display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 14px; border: 0; cursor: pointer; font: inherit; font-weight: 650; } .ovt-send { background: var(--ovt-accent); color: var(--on-accent, #fff); } .ovt-send:disabled { opacity: .45; cursor: default; } .ovt-stop { display: inline-flex; gap: 6px; background: var(--bg-hover, color-mix(in srgb, var(--text-primary, #fff) 8%, transparent)); color: var(--text-primary, #e6edf7); } .ovt-send .ovt-ic, .ovt-stop .ovt-ic { width: 18px; height: 18px; } .ovt-c-note { margin: 6px 4px 0; font-size: 12.5px; color: var(--text-muted, #7386a3); } .ovt-c-note:empty { display: none; } @keyframes ovt-breathe { 50% { opacity: .45; } } @keyframes ovt-think { 0%, 60%, 100% { background-position: 5px 11.5px, 11.5px 11.5px, 18px 11.5px; } 15% { background-position: 5px 7.5px, 11.5px 11.5px, 18px 11.5px; } 30% { background-position: 5px 11.5px, 11.5px 7.5px, 18px 11.5px; } 45% { background-position: 5px 11.5px, 11.5px 11.5px, 18px 7.5px; } } @keyframes ovt-rise { from { opacity: 0; transform: translateY(8px); } } @keyframes ovt-fade { from { opacity: 0; } } @keyframes ovt-shimmer { to { background-position: -300% 0; } } html[data-ov-motion=off] .ovt-answer.is-revealing .ovt-sw{opacity: 1 !important}html[data-ov-motion=off] .ovt-w-live{color: var(--text-secondary, #96a7c2);background: none} /* ── The composer's Options (11-09, the owner: "too many options… hidden under a cog… less cluttered but still has the power features"): one button; the pickers in a panel above it on a computer, a sheet on a phone; what differs from the defaults shows as chips beside the button. ── */ .ovt-opts { position: relative; flex: none; } .ovt-opts > summary { list-style: none; position: relative; } .ovt-opts > summary::-webkit-details-marker { display: none; } .ovt-opts-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; cursor: pointer; color: var(--text-secondary, #96a7c2); transition: background-color .15s, color .15s, transform .18s cubic-bezier(.2, 1.4, .3, 1); } .ovt-opts-btn:hover, .ovt-opts[open] > .ovt-opts-btn { background: color-mix(in srgb, var(--ovt-accent) 14%, transparent); color: var(--text-primary, #e6edf7); } .ovt-opts-btn:active { transform: scale(.92); } .ovt-opts-btn .ovt-ic { width: 20px; height: 20px; } .ovt-opts-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--ovt-accent); box-shadow: 0 0 0 2px var(--bg-card, #131c2e); } .ovt-opts-dot[hidden] { display: none; } .ovt-opts-panel { position: absolute; z-index: 40; left: -6px; bottom: calc(100% + 10px); width: min(380px, calc(100vw - 32px)); box-sizing: border-box; padding: 10px 10px 12px; border-radius: 18px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); transform-origin: 20px 100%; animation: ovt-opts-in .2s cubic-bezier(.2, .9, .3, 1) both; } .ovt.is-start .ovt-opts-panel { bottom: auto; top: calc(100% + 10px); transform-origin: 20px 0; } @keyframes ovt-opts-in { from { opacity: 0; transform: translateY(6px) scale(.97); } } .ovt-opts-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 8px 8px; } .ovt-opts-head b { font-size: 15px; font-weight: 700; } .ovt-opts-x { width: 36px; height: 36px; } .ovt-opts-body { display: grid; gap: 6px; } /* Each picker is a full row: icon, what it is, the value. Low specificity, so a site's own picker styles still win. */ :where(.ovt-opts-body) > :where(label, .ovt-opt) { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 12px; box-sizing: border-box; background: color-mix(in srgb, var(--text-primary, #e6edf7) 5%, transparent); color: var(--text-primary, #e6edf7); } :where(.ovt-opts-body) :where(select, input[type="text"], input[type="url"], input:not([type])) { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; color: inherit; font: inherit; font-size: 15px; } .ovt-opts-chips { display: contents; } .ovt-opt-chip { display: inline-flex; align-items: center; gap: 2px; height: 32px; max-width: 200px; padding: 0 2px 0 12px; border-radius: 999px; box-sizing: border-box; cursor: pointer; background: color-mix(in srgb, var(--ovt-accent) 13%, transparent); color: var(--accent-light, #93c5fd); font-size: 13px; font-weight: 600; animation: ovt-chip-in .18s ease both; } .ovt-opt-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ovt-opt-chip-x { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 17px; line-height: 1; cursor: pointer; } .ovt-opt-chip-x:hover { background: color-mix(in srgb, var(--ovt-accent) 20%, transparent); } @keyframes ovt-chip-in { from { opacity: 0; transform: scale(.9); } } html.ovt-sheet-open, html.ovt-sheet-open body { overflow: hidden; } @media (max-width: 640px) { .ovt-opts[open]::before { content: ''; position: fixed; inset: 0; z-index: 10064; background: rgba(0, 0, 0, .45); animation: ovt-fade .2s ease both; } .ovt-opts-panel, .ovt.is-start .ovt-opts-panel { position: fixed; z-index: 10065; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: min(80dvh, 640px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 14px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; border-width: 1px 0 0; transform-origin: 50% 100%; animation: ovt-sheet-up .26s cubic-bezier(.2, .9, .3, 1) both; } .ovt-opts-panel::before { content: ''; display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: color-mix(in srgb, var(--text-primary, #e6edf7) 22%, transparent); } } @keyframes ovt-sheet-up { from { transform: translateY(100%); } } @keyframes ovt-fade { from { opacity: 0; } } /* The examples walk through the placeholder with a fade. */ .ovt-composer textarea::placeholder { transition: opacity .22s ease; } .ovt-composer textarea.is-ph-out::placeholder { opacity: 0; } /* The keyboard (navbar.js sets html.ov-kb-open and --ov-kb): a start page folds what it marks data-ovt-fold, so the box and what you type stay on the screen above the keyboard. */ :where([data-ovt-fold]) { transition: opacity .2s ease, max-height .28s cubic-bezier(.2, .9, .3, 1), margin .28s ease; max-height: 240px; } @media (max-width: 760px) { html.ov-kb-open .ovt.is-start [data-ovt-fold] { opacity: 0; max-height: 0; margin-top: 0; margin-bottom: 0; overflow: hidden; pointer-events: none; } html.ov-kb-open .ovt.is-start .ovt-empty-state { margin-top: 6px; } /* A kit sidebar's button lives in the navbar (ov-thread.js); a head with nothing else in it goes. */ .ovt.has-nav-lead .ovt-head [data-ovk-sidebar-open] { display: none; } .ovt.has-nav-lead .ovt-head:not(:has(> :not([data-ovk-sidebar-open], span.ovt-title:empty))) { display: none; } } /* Answers' actions are icon buttons (11-09): 32 px, the word as tooltip; a copy shows a tick for a moment. */ .ovt-acts .ovt-act { width: 32px; padding: 0; justify-content: center; } .ovt-acts .ovt-act .ovt-ic { width: 17px; height: 17px; } .ovt-act.is-done { color: var(--success, #22c55e); } /* Attach: one + button; with a menu, the choices in a small pop-over above it (a sheet's look on a phone). */ .ovt-attach { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 14px; cursor: pointer; color: var(--text-secondary, #96a7c2); transition: background-color .15s, color .15s, transform .18s cubic-bezier(.2, 1.4, .3, 1); } .ovt-attach:hover, .ovt-attach-menu[open] > .ovt-attach { background: color-mix(in srgb, var(--ovt-accent) 14%, transparent); color: var(--text-primary, #e6edf7); } .ovt-attach:active { transform: scale(.92); } .ovt-attach .ovt-ic { width: 20px; height: 20px; } .ovt-attach-menu { position: relative; flex: none; } .ovt-attach-menu > summary { list-style: none; } .ovt-attach-menu > summary::-webkit-details-marker { display: none; } .ovt-attach-pop { position: absolute; z-index: 40; left: -6px; bottom: calc(100% + 10px); min-width: 230px; padding: 6px; border-radius: 16px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); animation: ovt-opts-in .18s cubic-bezier(.2, .9, .3, 1) both; transform-origin: 20px 100%; } .ovt.is-start .ovt-attach-pop { bottom: auto; top: calc(100% + 10px); transform-origin: 20px 0; } .ovt-attach-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 11px; color: var(--text-primary, #e6edf7); font-size: 14.5px; text-decoration: none; cursor: pointer; } .ovt-attach-row:hover, .ovt-attach-row:focus-within { background: color-mix(in srgb, var(--text-primary, #e6edf7) 7%, transparent); } .ovt-attach-row .ovt-ic { width: 19px; height: 19px; color: var(--text-secondary, #96a7c2); } .ovt-attach-cam { display: none; } @media (pointer: coarse) { .ovt-attach-cam { display: flex; } } /* The quiet line ("can get things wrong", "Sending…") sits under the box, not inside it. */ .ovt-composer { position: relative; } .ovt-composer > .ovt-c-note { position: absolute; left: 14px; right: 14px; top: calc(100% + 6px); margin: 0; text-align: center; font-size: 12px; line-height: 1.4; } .ovt-dock:has(.ovt-c-note:not(:empty)) { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); } .ovt.is-start .ovt-dock:has(.ovt-c-note:not(:empty)) { padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }