Where agent teams gather. Cross-platform team chat where AI agents are first-class teammates — with cloud or bring-your-own (Claude Code / Codex) brains.
TypeScript
fix(ui): keep leftover light surfaces on dark theme tokens (#72)
Kelvin0cf7c242774f
diff --git a/src/components/DocumentEditor.tsx b/src/components/DocumentEditor.tsxindex ba12aab..cd87e84 100644--- a/src/components/DocumentEditor.tsx+++ b/src/components/DocumentEditor.tsx@@ -228,7 +228,7 @@ export function DocumentEditor({ documentId, variant = 'full', onClose, onOpenFuif (!confirm(t('docEdit.deleteConfirm'))) returnvoid remove(doc.id).catch(() => { /* swallow */ })}}- className="text-xs leading-none text-stone-500 hover:text-red-600 transition-colors"+ className="text-xs leading-none text-[var(--doc-muted-strong)] hover:text-red-600 transition-colors">{t('docEdit.deleteAction')}</button>@@ -411,18 +411,18 @@ interface ToolbarProps { editor: Editor | null; disabled: boolean }function Toolbar({ editor, disabled }: ToolbarProps) {const t = useT()if (!editor) {- return <div className="border-b border-stone-100 px-4 py-2 h-[42px] bg-stone-50/60" />+ return <div className="h-[42px] border-b border-[var(--doc-toolbar-border)] bg-[var(--doc-toolbar)] px-4 py-2" />}const btn = (active: boolean) => cn('w-8 h-8 grid place-items-center rounded-md transition-colors',- disabled ? 'text-stone-300' : (+ disabled ? 'text-[var(--doc-toolbar-icon-muted)]' : (active? 'bg-skype/15 text-skype-deep'- : 'text-stone-600 hover:bg-stone-100'+ : 'text-[var(--doc-toolbar-icon)] hover:bg-[var(--doc-toolbar-hover)]'),)return (- <div className="border-b border-stone-100 px-3 py-1.5 bg-stone-50/60 flex items-center gap-0.5 flex-wrap">+ <div className="flex flex-wrap items-center gap-0.5 border-b border-[var(--doc-toolbar-border)] bg-[var(--doc-toolbar)] px-3 py-1.5"><buttontype="button" className={btn(editor.isActive('bold'))} disabled={disabled}onClick={() => editor.chain().focus().toggleBold().run()}@@ -499,7 +499,7 @@ function Toolbar({ editor, disabled }: ToolbarProps) {}function ToolbarSep() {- return <span className="w-px h-5 bg-stone-200 mx-1" />+ return <span className="mx-1 h-5 w-px bg-[var(--doc-toolbar-rule)]" />}function ImageButton({ editor, disabled }: { editor: Editor; disabled: boolean }) {@@ -568,10 +568,10 @@ function ImageButton({ editor, disabled }: { editor: Editor; disabled: boolean }}}className={cn('w-8 h-8 grid place-items-center rounded-md transition-colors',- disabled || uploading ? 'text-stone-300' : (+ disabled || uploading ? 'text-[var(--doc-toolbar-icon-muted)]' : (editor.isActive('image')? 'bg-skype/15 text-skype-deep'- : 'text-stone-600 hover:bg-stone-100'+ : 'text-[var(--doc-toolbar-icon)] hover:bg-[var(--doc-toolbar-hover)]'),)}title={uploading ? t('docEdit.uploadingImage') : t('docEdit.insertImage')}@@ -602,10 +602,10 @@ function LinkButton({ editor, disabled }: { editor: Editor; disabled: boolean })}}className={cn('w-8 h-8 grid place-items-center rounded-md transition-colors',- disabled ? 'text-stone-300' : (+ disabled ? 'text-[var(--doc-toolbar-icon-muted)]' : (isActive? 'bg-skype/15 text-skype-deep'- : 'text-stone-600 hover:bg-stone-100'+ : 'text-[var(--doc-toolbar-icon)] hover:bg-[var(--doc-toolbar-hover)]'),)}title={t('docEdit.link')}@@ -642,22 +642,22 @@ function PresenceStrip({ session, synced }: { session: YDocSession; synced: bool// ascent/descent (16.5px for 12px Manrope), not line-height, so it// centers on a different baseline than the 12px-tall Delete button.// As a block, height = leading-none line-height = 12px = same box.- if (!synced) return <span className="block text-xs leading-none text-stone-400">{t('docEdit.syncing')}</span>- if (peers.length === 0) return <span className="block text-xs leading-none text-stone-400">{t('docEdit.onlyYou')}</span>+ if (!synced) return <span className="block text-xs leading-none text-[var(--doc-muted)]">{t('docEdit.syncing')}</span>+ if (peers.length === 0) return <span className="block text-xs leading-none text-[var(--doc-muted)]">{t('docEdit.onlyYou')}</span>return (<div className="flex items-center -space-x-1.5">{peers.slice(0, 6).map((p) => (<divkey={p.clientId}title={p.name}- className="w-6 h-6 rounded-full border-2 border-white text-white text-[10px] flex items-center justify-center font-medium"+ className="w-6 h-6 rounded-full border-2 border-cloud text-white text-[10px] flex items-center justify-center font-medium"style={{ background: p.color }}>{p.name.slice(0, 1).toUpperCase()}</div>))}{peers.length > 6 && (- <div className="w-6 h-6 rounded-full bg-stone-200 text-stone-600 text-[10px] flex items-center justify-center font-medium border-2 border-white">+ <div className="flex h-6 w-6 items-center justify-center rounded-full border-2 border-cloud bg-[var(--doc-toolbar-rule)] text-[10px] font-medium text-[var(--doc-toolbar-icon)]">+{peers.length - 6}</div>)}diff --git a/src/components/Select.tsx b/src/components/Select.tsxindex 491926c..98edffd 100644--- a/src/components/Select.tsx+++ b/src/components/Select.tsx@@ -124,7 +124,7 @@ export function Select<T extends string = string>({}return (- <div ref={rootRef} className={cn('relative', className)}>+ <div ref={rootRef} className={cn('relative', open && 'z-[80]', className)}><buttonid={selectId}type="button"diff --git a/src/components/ShippingWorkspace.tsx b/src/components/ShippingWorkspace.tsxindex 12b3ffc..e8364da 100644--- a/src/components/ShippingWorkspace.tsx+++ b/src/components/ShippingWorkspace.tsx@@ -3,6 +3,7 @@ import { api, type ShippingFeatureDetail, type ShippingFeatureStatus, type Shippimport { useShipping } from '@/stores/shipping'import { useParticipants } from '@/stores/participants'import { IBack, IPlus, IShip } from '@/components/icons'+import { Select } from '@/components/Select'import { cn } from '@/lib/utils'import { posthog } from '@/lib/observability'import { useT, type MessageKey } from '@/lib/i18n'@@ -37,14 +38,14 @@ function runAction(promise: Promise<unknown>, onSuccess?: () => void) {}function fieldClass() {- return 'w-full rounded-xl border border-ink-100 bg-white px-3 py-2.5 text-[13px] text-ink-900 outline-none transition focus:border-skype focus:ring-4 focus:ring-sky2-100'+ return 'w-full rounded-xl border border-ink-100 bg-cloud px-3 py-2.5 text-[13px] text-ink-900 outline-none transition focus:border-skype focus:ring-4 focus:ring-sky2-100'}function Button({ children, onClick, disabled, tone = 'default', type = 'button', className }: {children: React.ReactNode; onClick?: () => void; disabled?: boolean; tone?: 'default' | 'primary' | 'danger' | 'success'; type?: 'button' | 'submit'; className?: string}) {const tones = {- default: 'border-ink-100 bg-white text-ink-700 hover:bg-sky2-50',+ default: 'border-ink-100 bg-cloud text-ink-700 hover:bg-sky2-50',primary: 'border-skype bg-skype text-white hover:bg-skype-deep',danger: 'border-coral/30 bg-coral-soft/30 text-coral-deep hover:bg-coral-soft/60',success: 'border-emerald-200 bg-emerald-50 text-emerald-700 hover:bg-emerald-100',@@ -85,7 +86,7 @@ export function ShippingWorkspace({ compact = false }: { compact?: boolean }) {const showDetail = !compact || Boolean(selectedId)const dueReadbacks = overview.dueReadbacks.lengthreturn (- <div className={cn('h-full min-h-0 bg-[#F7FAFC]', compact ? 'relative overflow-hidden' : 'grid grid-cols-[300px_minmax(0,1fr)]')}>+ <div className={cn('ship-workspace h-full min-h-0 bg-[var(--ship-canvas)]', compact ? 'relative overflow-hidden' : 'grid grid-cols-[300px_minmax(0,1fr)]')}>{showList && (<aside className={cn('h-full overflow-y-auto border-r border-ink-100 bg-cloud', compact && 'absolute inset-0 border-r-0')}><div className="sticky top-0 z-10 border-b border-ink-100 bg-cloud/95 px-4 py-4 backdrop-blur">@@ -125,7 +126,7 @@ export function ShippingWorkspace({ compact = false }: { compact?: boolean }) {</aside>)}{showDetail && (- <main className={cn('h-full min-w-0 overflow-y-auto', compact && 'absolute inset-0 bg-[#F7FAFC]')}>+ <main className={cn('h-full min-w-0 overflow-y-auto bg-[var(--ship-canvas)]', compact && 'absolute inset-0')}>{compact && <button onClick={() => void select(null)} className="sticky top-0 z-20 flex h-11 w-full items-center gap-1 border-b border-ink-100 bg-cloud/95 px-3 text-[12px] font-semibold text-skype-deep backdrop-blur"><IBack className="h-4 w-4" /> {t('ship.allFeatures')}</button>}{loadingFeatureId === selectedId && !detail ? <Centered title={t('ship.openingContract')} /> : detail ? <FeatureDetail feature={detail} /> : <Centered title={t('ship.pickOne')} />}</main>@@ -162,7 +163,7 @@ function CreateFeature({ onClose }: { onClose: () => void }) {<textarea className={cn(fieldClass(), 'mt-2 min-h-16')} value={form.desiredOutcome} onChange={(e) => setForm({ ...form, desiredOutcome: e.target.value })} placeholder={t('ship.fieldOutcome')} /><textarea className={cn(fieldClass(), 'mt-2 min-h-16')} value={form.contractSummary} onChange={(e) => setForm({ ...form, contractSummary: e.target.value })} placeholder={t('ship.fieldScope')} /><div className="mt-2 text-[10px] font-bold uppercase tracking-wide text-ink-400">{t('ship.builders')}</div>- <div className="mt-1 max-h-28 overflow-auto rounded-xl border border-ink-100 bg-white p-2">+ <div className="mt-1 max-h-28 overflow-auto rounded-xl border border-ink-100 bg-cloud p-2">{participants.map((p) => <label key={p.id} className="flex items-center gap-2 py-1 text-[11px] text-ink-700"><input type="checkbox" checked={form.builderIds.includes(p.id)} onChange={(e) => setForm({ ...form, builderIds: e.target.checked ? [...form.builderIds, p.id] : form.builderIds.filter((id) => id !== p.id) })} /> {p.name} <span className="text-ink-400">@{p.id}</span></label>)}</div><div className="mt-3 flex justify-end gap-2"><Button onClick={onClose}>{t('common.cancel')}</Button><Button type="submit" tone="primary" disabled={saving || !form.title.trim()}>{t('ship.createContract')}</Button></div>@@ -177,8 +178,8 @@ function FeatureDetail({ feature }: { feature: ShippingFeatureDetail }) {const next = NEXT_STATUS[feature.status]const required = feature.verifications.filter((v) => v.required)const passed = required.filter((v) => v.status === 'passed').length- return <div className="mx-auto max-w-[1100px] px-4 py-5 md:px-7 md:py-7">- <header className="rounded-2xl border border-ink-100 bg-white p-5 shadow-soft">+ return <div className="mx-auto min-h-full max-w-[1100px] px-4 py-5 md:px-7 md:py-7">+ <header className="rounded-2xl border border-ink-100 bg-cloud p-5 shadow-soft"><div className="flex flex-wrap items-start justify-between gap-3"><div className="min-w-0"><div className="flex flex-wrap items-center gap-2"><Pill tone="blue">{t(STATUS_LABEL_KEY[feature.status])}</Pill><Pill tone={feature.riskLevel === 'critical' || feature.riskLevel === 'high' ? 'warn' : 'neutral'}>{t('ship.riskLabel', { risk: feature.riskLevel })}</Pill></div><h1 className="mt-2 text-[22px] font-semibold tracking-tight text-ink-900">{feature.title}</h1><p className="mt-1 text-[11px] text-ink-400">{t('ship.evidenceProgress', { passed, required: required.length, time: new Date(feature.updatedAt).toLocaleString() })}</p></div>{next && feature.status !== 'ready' && feature.status !== 'releasing' && <Button tone="primary" disabled={saving} onClick={() => runAction(transition(next), () => event('shipping_feature_transitioned', { from: feature.status, to: next }))}>{t('ship.moveTo', { next: t(STATUS_LABEL_KEY[next]) })}</Button>}@@ -194,7 +195,7 @@ function FeatureDetail({ feature }: { feature: ShippingFeatureDetail }) {}function Section({ title, eyebrow, children, action }: { title: string; eyebrow: string; children: React.ReactNode; action?: React.ReactNode }) {- return <section className="mt-4 rounded-2xl border border-ink-100 bg-white p-4 shadow-soft md:p-5"><div className="mb-4 flex items-start justify-between gap-3"><div><div className="text-[9px] font-bold uppercase tracking-[.18em] text-skype-deep">{eyebrow}</div><h2 className="mt-1 text-[16px] font-semibold text-ink-900">{title}</h2></div>{action}</div>{children}</section>+ return <section className="mt-4 rounded-2xl border border-ink-100 bg-cloud p-4 shadow-soft md:p-5"><div className="mb-4 flex items-start justify-between gap-3"><div><div className="text-[9px] font-bold uppercase tracking-[.18em] text-skype-deep">{eyebrow}</div><h2 className="mt-1 text-[16px] font-semibold text-ink-900">{title}</h2></div>{action}</div>{children}</section>}function ContractSection({ feature }: { feature: ShippingFeatureDetail }) {@@ -206,9 +207,9 @@ function ContractSection({ feature }: { feature: ShippingFeatureDetail }) {const [form, setForm] = useState({ title: feature.title, problem: feature.problem, desiredOutcome: feature.desiredOutcome, contractSummary: feature.contractSummary, builderIds: feature.builderIds, priority: feature.priority, riskLevel: feature.riskLevel, releaseTarget: feature.releaseTarget ?? '' })useEffect(() => setForm({ title: feature.title, problem: feature.problem, desiredOutcome: feature.desiredOutcome, contractSummary: feature.contractSummary, builderIds: feature.builderIds, priority: feature.priority, riskLevel: feature.riskLevel, releaseTarget: feature.releaseTarget ?? '' }), [feature])return <Section eyebrow={t('ship.sectionDefine')} title={t('ship.contractTitle')} action={<Button tone="primary" disabled={saving} onClick={() => runAction(update(form), () => event('shipping_contract_saved'))}>{t('ship.saveContract')}</Button>}>- <div className="grid gap-3 md:grid-cols-2"><label className="text-[11px] font-semibold text-ink-600">{t('ship.labelTitle')}<input className={cn(fieldClass(), 'mt-1')} value={form.title} onChange={(e) => setForm({ ...form, title: e.target.value })} /></label><label className="text-[11px] font-semibold text-ink-600">{t('ship.labelReleaseTarget')}<input className={cn(fieldClass(), 'mt-1')} value={form.releaseTarget} onChange={(e) => setForm({ ...form, releaseTarget: e.target.value })} placeholder={t('ship.releaseTargetPh')} /></label></div>- <div className="mt-3 grid gap-3 md:grid-cols-3">{([['ship.labelProblem', 'problem'], ['ship.labelDesiredOutcome', 'desiredOutcome'], ['ship.labelScopeConstraints', 'contractSummary']] as const).map(([labelKey, key]) => <label key={key} className="text-[11px] font-semibold text-ink-600">{t(labelKey)}<textarea className={cn(fieldClass(), 'mt-1 min-h-28 resize-y')} value={form[key]} onChange={(e) => setForm({ ...form, [key]: e.target.value })} /></label>)}</div>- <div className="mt-3 grid gap-3 md:grid-cols-2"><div><div className="text-[11px] font-semibold text-ink-600">{t('ship.priorityRisk')}</div><div className="mt-1 flex gap-2"><select className={fieldClass()} value={form.priority} onChange={(e) => setForm({ ...form, priority: e.target.value as typeof form.priority })}>{['critical','high','medium','low'].map((v) => <option key={v}>{v}</option>)}</select><select className={fieldClass()} value={form.riskLevel} onChange={(e) => setForm({ ...form, riskLevel: e.target.value as typeof form.riskLevel })}>{['critical','high','medium','low'].map((v) => <option key={v}>{v}</option>)}</select></div></div><div><div className="text-[11px] font-semibold text-ink-600">{t('ship.buildersCantVerify')}</div><div className="mt-1 max-h-24 overflow-auto rounded-xl border border-ink-100 p-2">{participants.map((p) => <label key={p.id} className="mr-3 inline-flex items-center gap-1.5 py-1 text-[11px]"><input type="checkbox" checked={form.builderIds.includes(p.id)} onChange={(e) => setForm({ ...form, builderIds: e.target.checked ? [...form.builderIds, p.id] : form.builderIds.filter((id) => id !== p.id) })} />{p.name}</label>)}</div></div></div>+ <div className="grid gap-3 md:grid-cols-2"><label className="text-[11px] font-semibold text-ink-700">{t('ship.labelTitle')}<input className={cn(fieldClass(), 'mt-1')} value={form.title} onChange={(e) => setForm({ ...form, title: e.target.value })} /></label><label className="text-[11px] font-semibold text-ink-700">{t('ship.labelReleaseTarget')}<input className={cn(fieldClass(), 'mt-1')} value={form.releaseTarget} onChange={(e) => setForm({ ...form, releaseTarget: e.target.value })} placeholder={t('ship.releaseTargetPh')} /></label></div>+ <div className="mt-3 grid gap-3 md:grid-cols-3">{([['ship.labelProblem', 'problem'], ['ship.labelDesiredOutcome', 'desiredOutcome'], ['ship.labelScopeConstraints', 'contractSummary']] as const).map(([labelKey, key]) => <label key={key} className="text-[11px] font-semibold text-ink-700">{t(labelKey)}<textarea className={cn(fieldClass(), 'mt-1 min-h-28 resize-y')} value={form[key]} onChange={(e) => setForm({ ...form, [key]: e.target.value })} /></label>)}</div>+ <div className="mt-3 grid gap-3 md:grid-cols-2"><div><div className="text-[11px] font-semibold text-ink-700">{t('ship.priorityRisk')}</div><div className="mt-1 flex gap-2"><Select className="flex-1" value={form.priority} onValueChange={(value) => setForm({ ...form, priority: value })} options={(['critical','high','medium','low'] as const).map((v) => ({ value: v, label: v }))} /><Select className="flex-1" value={form.riskLevel} onValueChange={(value) => setForm({ ...form, riskLevel: value })} options={(['critical','high','medium','low'] as const).map((v) => ({ value: v, label: v }))} /></div></div><div><div className="text-[11px] font-semibold text-ink-700">{t('ship.buildersCantVerify')}</div><div className="mt-1 max-h-24 overflow-auto rounded-xl border border-ink-100 bg-cloud p-2">{participants.map((p) => <label key={p.id} className="mr-3 inline-flex items-center gap-1.5 py-1 text-[11px]"><input type="checkbox" checked={form.builderIds.includes(p.id)} onChange={(e) => setForm({ ...form, builderIds: e.target.checked ? [...form.builderIds, p.id] : form.builderIds.filter((id) => id !== p.id) })} />{p.name}</label>)}</div></div></div></Section>}@@ -218,8 +219,8 @@ function InvariantsSection({ feature }: { feature: ShippingFeatureDetail }) {const [title, setTitle] = useState('')const [kind, setKind] = useState('behavior')return <Section eyebrow={t('ship.sectionConstrain')} title={t('ship.invariantsTitle')} action={<div className="text-[10px] text-ink-400">{t('ship.whatMustRemain')}</div>}>- <div className="grid gap-2 md:grid-cols-2">{feature.invariants.map((i) => <div key={i.id} className="rounded-xl border border-ink-100 bg-[#FAFCFD] p-3"><div className="flex items-center justify-between gap-2"><div className="text-[12px] font-semibold text-ink-800">{i.title}</div><Pill tone={i.required ? 'warn' : 'neutral'}>{i.kind}</Pill></div>{i.description && <p className="mt-1 text-[11px] leading-relaxed text-ink-500">{i.description}</p>}</div>)}</div>- <form className="mt-3 flex flex-col gap-2 md:flex-row" onSubmit={(e) => { e.preventDefault(); if (!title.trim()) return; runAction(mutate((id) => api.createShippingInvariant(id, { title, kind })), () => { setTitle(''); event('shipping_invariant_created', { kind }) }) }}><input className={cn(fieldClass(), 'flex-1')} value={title} onChange={(e) => setTitle(e.target.value)} placeholder={t('ship.addInvariantPh')} /><select className={cn(fieldClass(), 'md:w-40')} value={kind} onChange={(e) => setKind(e.target.value)}>{['behavior','architecture','data','security','performance','ux','operability'].map((v) => <option key={v}>{v}</option>)}</select><Button type="submit" disabled={!title.trim()}><IPlus className="mr-1 inline h-3 w-3" /> {t('ship.addBtn')}</Button></form>+ <div className="grid gap-2 md:grid-cols-2">{feature.invariants.map((i) => <div key={i.id} className="rounded-xl border border-ink-100 bg-[var(--ship-face)] p-3"><div className="flex items-center justify-between gap-2"><div className="text-[12px] font-semibold text-ink-800">{i.title}</div><Pill tone={i.required ? 'warn' : 'neutral'}>{i.kind}</Pill></div>{i.description && <p className="mt-1 text-[11px] leading-relaxed text-ink-500">{i.description}</p>}</div>)}</div>+ <form className="mt-3 flex flex-col gap-2 md:flex-row" onSubmit={(e) => { e.preventDefault(); if (!title.trim()) return; runAction(mutate((id) => api.createShippingInvariant(id, { title, kind })), () => { setTitle(''); event('shipping_invariant_created', { kind }) }) }}><input className={cn(fieldClass(), 'flex-1')} value={title} onChange={(e) => setTitle(e.target.value)} placeholder={t('ship.addInvariantPh')} /><Select className="md:w-40" value={kind} onValueChange={setKind} options={(['behavior','architecture','data','security','performance','ux','operability'] as const).map((v) => ({ value: v, label: v }))} /><Button type="submit" disabled={!title.trim()}><IPlus className="mr-1 inline h-3 w-3" /> {t('ship.addBtn')}</Button></form></Section>}@@ -230,7 +231,7 @@ function VerificationsSection({ feature }: { feature: ShippingFeatureDetail }) {const [method, setMethod] = useState('property')return <Section eyebrow={t('ship.sectionVerify')} title={t('ship.verificationsTitle')} action={<div className="text-[10px] text-ink-400">{t('ship.builderNotVerifier')}</div>}><div className="space-y-2">{feature.verifications.map((square) => <VerificationCard key={square.id} feature={feature} square={square} />)}</div>- <form className="mt-3 flex flex-col gap-2 md:flex-row" onSubmit={(e) => { e.preventDefault(); if (!title.trim()) return; runAction(mutate((id) => api.createShippingVerification(id, { title, method })), () => { setTitle(''); event('shipping_square_created', { method }) }) }}><input className={cn(fieldClass(), 'flex-1')} value={title} onChange={(e) => setTitle(e.target.value)} placeholder={t('ship.addVerificationPh')} /><select className={cn(fieldClass(), 'md:w-48')} value={method} onChange={(e) => setMethod(e.target.value)}>{['user_path','property','trace','data_reconciliation','design_qa','security','performance','release_note'].map((v) => <option key={v}>{v.replaceAll('_', ' ')}</option>)}</select><Button type="submit" disabled={!title.trim()}>{t('ship.addSquareBtn')}</Button></form>+ <form className="mt-3 flex flex-col gap-2 md:flex-row" onSubmit={(e) => { e.preventDefault(); if (!title.trim()) return; runAction(mutate((id) => api.createShippingVerification(id, { title, method })), () => { setTitle(''); event('shipping_square_created', { method }) }) }}><input className={cn(fieldClass(), 'flex-1')} value={title} onChange={(e) => setTitle(e.target.value)} placeholder={t('ship.addVerificationPh')} /><Select className="md:w-48" value={method} onValueChange={setMethod} options={(['user_path','property','trace','data_reconciliation','design_qa','security','performance','release_note'] as const).map((v) => ({ value: v, label: v.replaceAll('_', ' ') }))} /><Button type="submit" disabled={!title.trim()}>{t('ship.addSquareBtn')}</Button></form></Section>}@@ -250,7 +251,7 @@ function VerificationCard({ feature, square }: { feature: ShippingFeatureDetail;...(notes.trim() ? { notes: notes.trim() } : {}),}))const tone = square.status === 'passed' ? 'good' : square.status === 'failed' ? 'bad' : square.status === 'running' ? 'blue' : square.status === 'waived' ? 'warn' : 'neutral'- return <details className="group rounded-xl border border-ink-100 bg-[#FAFCFD]" open={square.status === 'failed'}><summary className="flex cursor-pointer list-none items-center gap-3 px-3 py-3"><span className={cn('grid h-6 w-6 place-items-center rounded-full border text-[11px] font-bold', square.status === 'passed' ? 'border-emerald-300 bg-emerald-50 text-emerald-700' : square.status === 'failed' ? 'border-coral/30 bg-coral-soft text-coral-deep' : 'border-ink-200 bg-white text-ink-400')}>{square.status === 'passed' ? '✓' : square.status === 'failed' ? '!' : '·'}</span><div className="min-w-0 flex-1"><div className="truncate text-[12px] font-semibold text-ink-800">{square.title}</div><div className="mt-0.5 text-[10px] text-ink-400">{square.method.replaceAll('_', ' ')} · {square.required ? t('common.required') : t('common.optional')} · {square.ownerId ? `owner @${square.ownerId}` : t('common.unassigned')}</div></div><Pill tone={tone}>{square.status}</Pill></summary><div className="border-t border-ink-100 px-3 py-3"><div className="grid gap-2 md:grid-cols-[220px_1fr]"><label className="text-[10px] font-bold uppercase tracking-wide text-ink-400">{t('ship.independentOwner')}<select className={cn(fieldClass(), 'mt-1')} value={ownerId} onChange={(e) => setOwnerId(e.target.value)}><option value="">{t('common.unassigned')}</option>{participants.map((p) => <option value={p.id} key={p.id}>{p.name} (@{p.id})</option>)}</select></label><label className="text-[10px] font-bold uppercase tracking-wide text-ink-400">{t('ship.evidenceLabel')}<input className={cn(fieldClass(), 'mt-1')} value={evidence} onChange={(e) => setEvidence(e.target.value)} placeholder={t('ship.evidencePh')} /></label></div><label className="mt-2 block text-[10px] font-bold uppercase tracking-wide text-ink-400">{t('ship.notesLabel')}<input className={cn(fieldClass(), 'mt-1')} value={notes} onChange={(e) => setNotes(e.target.value)} placeholder={t('ship.notesPh')} /></label><div className="mt-3 flex flex-wrap gap-2"><Button onClick={() => runAction(patch())}>{t('ship.saveOwner')}</Button><Button tone="primary" onClick={() => runAction(patch('running'))}>{t('ship.start')}</Button><Button tone="success" disabled={!evidence.trim()} onClick={() => runAction(patch('passed'), () => event('shipping_square_completed', { method: square.method, result: 'passed' }))}>{t('ship.passEvidence')}</Button><Button tone="danger" disabled={!evidence.trim()} onClick={() => runAction(patch('failed'), () => event('shipping_square_completed', { method: square.method, result: 'failed' }))}>{t('ship.failEvidence')}</Button><Button disabled={!notes.trim()} onClick={() => runAction(patch('waived'))}>{t('ship.waive')}</Button></div>{square.evidence.length > 0 && <pre className="mt-3 max-h-28 overflow-auto rounded-lg bg-ink-900 p-2 text-[10px] text-white/80">{JSON.stringify(square.evidence, null, 2)}</pre>}</div></details>+ return <details className="group rounded-xl border border-ink-100 bg-[var(--ship-face)]" open={square.status === 'failed'}><summary className="flex cursor-pointer list-none items-center gap-3 px-3 py-3"><span className={cn('grid h-6 w-6 place-items-center rounded-full border text-[11px] font-bold', square.status === 'passed' ? 'border-emerald-300 bg-emerald-50 text-emerald-700' : square.status === 'failed' ? 'border-coral/30 bg-coral-soft text-coral-deep' : 'border-ink-200 bg-cloud text-ink-400')}>{square.status === 'passed' ? '✓' : square.status === 'failed' ? '!' : '·'}</span><div className="min-w-0 flex-1"><div className="truncate text-[12px] font-semibold text-ink-800">{square.title}</div><div className="mt-0.5 text-[10px] text-ink-400">{square.method.replaceAll('_', ' ')} · {square.required ? t('common.required') : t('common.optional')} · {square.ownerId ? `owner @${square.ownerId}` : t('common.unassigned')}</div></div><Pill tone={tone}>{square.status}</Pill></summary><div className="border-t border-ink-100 px-3 py-3"><div className="grid gap-2 md:grid-cols-[220px_1fr]"><div><div className="text-[10px] font-bold uppercase tracking-wide text-ink-400">{t('ship.independentOwner')}</div><Select className="mt-1" value={ownerId} onValueChange={setOwnerId} ariaLabel={t('ship.independentOwner')} options={[{ value: '', label: t('common.unassigned') }, ...participants.map((p) => ({ value: p.id, label: p.name, hint: `@${p.id}` }))]} /></div><label className="text-[10px] font-bold uppercase tracking-wide text-ink-400">{t('ship.evidenceLabel')}<input className={cn(fieldClass(), 'mt-1')} value={evidence} onChange={(e) => setEvidence(e.target.value)} placeholder={t('ship.evidencePh')} /></label></div><label className="mt-2 block text-[10px] font-bold uppercase tracking-wide text-ink-400">{t('ship.notesLabel')}<input className={cn(fieldClass(), 'mt-1')} value={notes} onChange={(e) => setNotes(e.target.value)} placeholder={t('ship.notesPh')} /></label><div className="mt-3 flex flex-wrap gap-2"><Button onClick={() => runAction(patch())}>{t('ship.saveOwner')}</Button><Button tone="primary" onClick={() => runAction(patch('running'))}>{t('ship.start')}</Button><Button tone="success" disabled={!evidence.trim()} onClick={() => runAction(patch('passed'), () => event('shipping_square_completed', { method: square.method, result: 'passed' }))}>{t('ship.passEvidence')}</Button><Button tone="danger" disabled={!evidence.trim()} onClick={() => runAction(patch('failed'), () => event('shipping_square_completed', { method: square.method, result: 'failed' }))}>{t('ship.failEvidence')}</Button><Button disabled={!notes.trim()} onClick={() => runAction(patch('waived'))}>{t('ship.waive')}</Button></div>{square.evidence.length > 0 && <pre className="mt-3 max-h-28 overflow-auto rounded-lg bg-ink-900 p-2 text-[10px] text-white/80">{JSON.stringify(square.evidence, null, 2)}</pre>}</div></details>}function ReleaseSection({ feature }: { feature: ShippingFeatureDetail }) {@@ -264,7 +265,7 @@ function ReleaseSection({ feature }: { feature: ShippingFeatureDetail }) {setShow(false)}return <Section eyebrow={t('ship.sectionRelease')} title={t('ship.releaseSectionTitle')} action={<Button onClick={() => setShow((v) => !v)}>{show ? t('ship.closePlanner') : t('ship.planRelease')}</Button>}>- {show && <div className="mb-4 rounded-xl border border-sky2-200 bg-sky2-50/50 p-3"><div className="grid gap-2 md:grid-cols-3"><select className={fieldClass()} value={form.environment} onChange={(e) => setForm({ ...form, environment: e.target.value })}>{['staging','canary','production'].map((v) => <option key={v}>{v}</option>)}</select><input className={fieldClass()} value={form.version} onChange={(e) => setForm({ ...form, version: e.target.value })} placeholder={t('ship.versionPh')} /><input className={fieldClass()} value={form.commitSha} onChange={(e) => setForm({ ...form, commitSha: e.target.value })} placeholder={t('ship.commitShaPh')} /></div><textarea className={cn(fieldClass(), 'mt-2 min-h-20')} value={form.releaseNotes} onChange={(e) => setForm({ ...form, releaseNotes: e.target.value })} placeholder={t('ship.releaseNotesPh')} /><textarea className={cn(fieldClass(), 'mt-2 min-h-20')} value={form.rollbackPlan} onChange={(e) => setForm({ ...form, rollbackPlan: e.target.value })} placeholder={t('ship.rollbackPlanPh')} /><input className={cn(fieldClass(), 'mt-2')} value={form.baseline} onChange={(e) => setForm({ ...form, baseline: e.target.value })} placeholder={t('ship.baselinePh')} /><div className="mt-2 flex justify-end"><Button tone="primary" onClick={() => runAction(create())}>{t('ship.createReleaseGate')}</Button></div></div>}+ {show && <div className="mb-4 rounded-xl border border-sky2-200 bg-sky2-50/50 p-3"><div className="grid gap-2 md:grid-cols-3"><Select value={form.environment} onValueChange={(value) => setForm({ ...form, environment: value })} options={(['staging','canary','production'] as const).map((v) => ({ value: v, label: v }))} /><input className={fieldClass()} value={form.version} onChange={(e) => setForm({ ...form, version: e.target.value })} placeholder={t('ship.versionPh')} /><input className={fieldClass()} value={form.commitSha} onChange={(e) => setForm({ ...form, commitSha: e.target.value })} placeholder={t('ship.commitShaPh')} /></div><textarea className={cn(fieldClass(), 'mt-2 min-h-20')} value={form.releaseNotes} onChange={(e) => setForm({ ...form, releaseNotes: e.target.value })} placeholder={t('ship.releaseNotesPh')} /><textarea className={cn(fieldClass(), 'mt-2 min-h-20')} value={form.rollbackPlan} onChange={(e) => setForm({ ...form, rollbackPlan: e.target.value })} placeholder={t('ship.rollbackPlanPh')} /><input className={cn(fieldClass(), 'mt-2')} value={form.baseline} onChange={(e) => setForm({ ...form, baseline: e.target.value })} placeholder={t('ship.baselinePh')} /><div className="mt-2 flex justify-end"><Button tone="primary" onClick={() => runAction(create())}>{t('ship.createReleaseGate')}</Button></div></div>}<div className="space-y-2">{feature.releases.map((release) => <ReleaseCard key={release.id} featureId={feature.id} release={release} />)}{feature.releases.length === 0 && <p className="text-[11px] text-ink-400">{t('ship.noReleasesYet')}</p>}</div></Section>}@@ -280,7 +281,7 @@ function ReleaseCard({ featureId, release }: { featureId: string; release: ShippsetEvidence('')}const actions = release.status === 'planned' ? ['approve'] : release.status === 'approved' ? ['start'] : release.status === 'running' ? ['succeed','fail'] : release.status === 'succeeded' && release.environment === 'production' && ['pending','overdue'].includes(release.readbackStatus) ? ['readback_pass','readback_fail','rollback'] : release.status === 'succeeded' ? ['rollback'] : []- return <details className="rounded-xl border border-ink-100 bg-[#FAFCFD]"><summary className="flex cursor-pointer list-none items-center gap-3 px-3 py-3"><Pill tone={release.status === 'succeeded' ? 'good' : release.status === 'failed' || release.status === 'rolled_back' ? 'bad' : release.status === 'running' ? 'blue' : 'warn'}>{release.environment}</Pill><div className="min-w-0 flex-1"><div className="text-[12px] font-semibold text-ink-800">{release.version || release.commitSha || t('ship.unversioned')}</div><div className="mt-0.5 text-[10px] text-ink-400">{release.status} · readback {release.readbackStatus}{release.readbackDueAt ? ` · due ${new Date(release.readbackDueAt).toLocaleString()}` : ''}</div></div></summary><div className="border-t border-ink-100 p-3"><div className="grid gap-2 text-[11px] text-ink-600 md:grid-cols-2"><div><b>{t('ship.releaseNotesLabel')}</b><p className="mt-1 whitespace-pre-wrap">{release.releaseNotes || '—'}</p></div><div><b>{t('ship.rollbackPlanLabel')}</b><p className="mt-1 whitespace-pre-wrap">{release.rollbackPlan || '—'}</p></div></div>{actions.length > 0 && <><input className={cn(fieldClass(), 'mt-3')} value={evidence} onChange={(e) => setEvidence(e.target.value)} placeholder={actions.includes('approve') || actions.includes('start') ? t('ship.optionalNote') : t('ship.smokeEvidence')} /><div className="mt-2 flex flex-wrap gap-2">{actions.map((name) => <Button key={name} tone={name.includes('fail') || name === 'rollback' ? 'danger' : name.includes('pass') || name === 'succeed' ? 'success' : 'primary'} disabled={['succeed','fail','readback_pass','readback_fail','rollback'].includes(name) && !evidence.trim()} onClick={() => runAction(action(name))}>{name.replaceAll('_', ' ')}</Button>)}</div></>}</div></details>+ return <details className="rounded-xl border border-ink-100 bg-[var(--ship-face)]"><summary className="flex cursor-pointer list-none items-center gap-3 px-3 py-3"><Pill tone={release.status === 'succeeded' ? 'good' : release.status === 'failed' || release.status === 'rolled_back' ? 'bad' : release.status === 'running' ? 'blue' : 'warn'}>{release.environment}</Pill><div className="min-w-0 flex-1"><div className="text-[12px] font-semibold text-ink-800">{release.version || release.commitSha || t('ship.unversioned')}</div><div className="mt-0.5 text-[10px] text-ink-400">{release.status} · readback {release.readbackStatus}{release.readbackDueAt ? ` · due ${new Date(release.readbackDueAt).toLocaleString()}` : ''}</div></div></summary><div className="border-t border-ink-100 p-3"><div className="grid gap-2 text-[11px] text-ink-600 md:grid-cols-2"><div><b>{t('ship.releaseNotesLabel')}</b><p className="mt-1 whitespace-pre-wrap">{release.releaseNotes || '—'}</p></div><div><b>{t('ship.rollbackPlanLabel')}</b><p className="mt-1 whitespace-pre-wrap">{release.rollbackPlan || '—'}</p></div></div>{actions.length > 0 && <><input className={cn(fieldClass(), 'mt-3')} value={evidence} onChange={(e) => setEvidence(e.target.value)} placeholder={actions.includes('approve') || actions.includes('start') ? t('ship.optionalNote') : t('ship.smokeEvidence')} /><div className="mt-2 flex flex-wrap gap-2">{actions.map((name) => <Button key={name} tone={name.includes('fail') || name === 'rollback' ? 'danger' : name.includes('pass') || name === 'succeed' ? 'success' : 'primary'} disabled={['succeed','fail','readback_pass','readback_fail','rollback'].includes(name) && !evidence.trim()} onClick={() => runAction(action(name))}>{name.replaceAll('_', ' ')}</Button>)}</div></>}</div></details>}function LearningSection({ feature }: { feature: ShippingFeatureDetail }) {diff --git a/src/desktop/BoardsView.tsx b/src/desktop/BoardsView.tsxindex cf014c6..7a6711b 100644--- a/src/desktop/BoardsView.tsx+++ b/src/desktop/BoardsView.tsx@@ -266,7 +266,7 @@ function BoardCanvas({ boardId }: { boardId: string }) {/>))}{addingCol ? (- <div className="w-72 flex-shrink-0 p-3 rounded-lg bg-cloud/60">+ <div className="w-72 flex-shrink-0 p-3 rounded-lg bg-[var(--board-column)]"><inputautoFocusvalue={colDraft}@@ -340,7 +340,7 @@ function ColumnView({ boardId, column, cards, onOpenCard }: {return (<divclassName={cn(- 'w-72 flex-shrink-0 h-full flex flex-col rounded-lg bg-cloud/60 transition-colors',+ 'w-72 flex-shrink-0 h-full flex flex-col rounded-lg bg-[var(--board-column)] transition-colors',dragOver && 'ring-2 ring-skype/40 bg-skype/5',)}onDragOver={(e) => { e.preventDefault(); setDragOver(true) }}@@ -437,7 +437,7 @@ function CardTile({ card, onOpen }: { card: BoardCard; onOpen: () => void }) {}}onClick={onOpen}onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); onOpen() } }}- className="px-3 py-2.5 rounded-md bg-cloud border border-ink-100 shadow-soft text-left cursor-pointer hover:border-skype/40 transition-colors"+ className="cursor-pointer rounded-md border border-[var(--board-card-border)] bg-[var(--board-card)] px-3 py-2.5 text-left shadow-[var(--board-card-shadow)] transition-colors hover:border-skype/40"><div className="text-sm text-ink-800 leading-snug"><MentionedText text={card.title} byId={byId} />@@ -854,7 +854,7 @@ function CardDetailModal({ boardId, card, columns, onClose }: {}return (- <div className="fixed inset-0 z-50 grid place-items-center bg-ink-900/40 p-6" onClick={onClose}>+ <div className="fixed inset-0 z-50 grid place-items-center bg-[var(--modal-scrim)] p-6" onClick={onClose}><divonClick={(e) => e.stopPropagation()}className="bg-cloud w-full max-w-2xl max-h-[85vh] rounded-xl shadow-xl flex flex-col"@@ -1064,12 +1064,12 @@ function AssigneePicker({ value, onChange, meId }: {<divclassName={cn('group relative flex h-11 w-full items-center rounded-[14px] border border-ink-100 bg-cloud text-left text-[13px] font-semibold text-ink-900 outline-none transition',- 'shadow-[0_1px_0_rgba(255,255,255,0.92)_inset,0_10px_24px_-24px_rgba(26,78,120,0.55)]',+ 'shadow-[var(--select-shadow)]','hover:border-sky2-200 hover:bg-sky2-50/60',open && 'border-sky2-300 bg-cloud ring-4 ring-sky2-100',)}style={{- backgroundImage: 'linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,253,0.94))',+ backgroundImage: 'var(--select-face)',}}>{!open && (@@ -1159,7 +1159,7 @@ function AssigneePicker({ value, onChange, meId }: {<divid={`${id}-listbox`}role="listbox"- className="absolute left-0 right-0 top-full z-[70] mt-2 max-h-72 overflow-auto rounded-[16px] border border-sky2-100 bg-cloud p-2.5 shadow-[0_22px_55px_-24px_rgba(10,30,60,0.38),0_8px_18px_-12px_rgba(10,30,60,0.2),0_0_0_1px_rgba(255,255,255,0.72)_inset] animate-rise"+ className="absolute left-0 right-0 top-full z-[70] mt-2 max-h-72 overflow-auto rounded-[16px] border border-[var(--select-menu-border)] bg-cloud p-2.5 shadow-[var(--select-menu-shadow)] animate-rise">{filtered.map((option, idx) => {const active = idx === activeIndexdiff --git a/src/desktop/MeView.tsx b/src/desktop/MeView.tsxindex 564040c..9680a7b 100644--- a/src/desktop/MeView.tsx+++ b/src/desktop/MeView.tsx@@ -88,7 +88,7 @@ function ProfileTab() {<div className="font-display italic text-[14px] text-ink-500 truncate">{authUser.email}</div><div className="flex items-center gap-2 mt-3 flex-wrap">{providers.map((p) => (- <span key={p} className="text-[11px] uppercase tracking-wider px-2 py-0.5 rounded-full bg-white text-ink-600" style={{ border: '1px solid var(--ink-100)' }}>+ <span key={p} className="text-[11px] uppercase tracking-wider px-2 py-0.5 rounded-full bg-paper text-ink-700" style={{ border: '1px solid var(--ink-100)' }}>{p}</span>))}diff --git a/src/styles/globals.css b/src/styles/globals.cssindex 8d5c47a..6b6238e 100644--- a/src/styles/globals.css+++ b/src/styles/globals.css@@ -101,6 +101,7 @@--chrome-warm-shadow: -12px 0 32px -10px rgba(60, 50, 30, 0.18);--email-backdrop: rgb(var(--ink-900-rgb) / 0.15);--email-muted: rgb(var(--ink-300-rgb));+ --modal-scrim: rgb(var(--ink-900-rgb) / 0.4);--select-face: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.94));--select-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) inset, 0 10px 24px -24px rgba(26, 78, 120, 0.55);--select-menu-shadow: 0 22px 55px -24px rgba(10, 30, 60, 0.38), 0 8px 18px -12px rgba(10, 30, 60, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.72) inset;@@ -116,6 +117,40 @@--error-icon-bg: rgba(255, 122, 107, 0.12);--unread-fresh: rgb(var(--gold-rgb));--unread-fresh-fg: rgb(var(--ink-900-rgb));+ /* Shipping workspace canvas + nested cards. Light keeps the original+ * hex; dark collapses onto paper / cloud so the contract pane doesn't+ * stay a frozen white sheet. */+ --ship-canvas: #F7FAFC;+ --ship-face: #FAFCFD;+ /* Markdown / TipTap editor. Light keeps the original stone hexes;+ * dark remaps onto ink / paper so the toolbar doesn't stay a frozen+ * wash and body copy doesn't stay near-black on charcoal. */+ --doc-toolbar: rgb(250 250 249 / 0.6);+ --doc-toolbar-border: #f5f5f4;+ --doc-toolbar-icon: #57534e;+ --doc-toolbar-icon-muted: #d6d3d1;+ --doc-toolbar-hover: #f5f5f4;+ --doc-toolbar-rule: #e7e5e4;+ --doc-muted: #a8a29e;+ --doc-muted-strong: #78716c;+ --doc-body: #1c1917;+ --doc-quote: #57534e;+ --doc-rule: #e7e5e4;+ --doc-placeholder: #a8a29e;+ --doc-img-bg: #fafaf9;+ --doc-img-border: #e7e5e4;+ --doc-img-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);+ --doc-pre-bg: #0f172a;+ --doc-pre-fg: #e2e8f0;+ --doc-code-bg: rgb(var(--skype-rgb) / 0.08);+ --doc-cell: #e7e5e4;+ --doc-th: rgb(var(--skype-rgb) / 0.05);+ /* Kanban columns + tiles. Light keeps the original cloud/60 well and+ * white card; dark splits them so tiles don't vanish into the canvas. */+ --board-column: rgb(var(--cloud-rgb) / 0.6);+ --board-card: rgb(var(--cloud-rgb));+ --board-card-border: rgb(var(--ink-100-rgb));+ --board-card-shadow: 0 2px 8px -2px rgba(10, 30, 60, 0.08);--safe-top: env(safe-area-inset-top);--safe-bottom: env(safe-area-inset-bottom);@@ -177,6 +212,7 @@ html.dark {--chrome-warm-shadow: -12px 0 32px -10px rgba(0, 0, 0, 0.5);--email-backdrop: rgb(0 0 0 / 0.5);--email-muted: rgb(var(--ink-500-rgb));+ --modal-scrim: rgb(0 0 0 / 0.5);--select-face: none;--select-shadow: 0 0 #0000;--select-menu-shadow: 0 22px 55px -24px rgba(0, 0, 0, 0.55), 0 8px 18px -12px rgba(0, 0, 0, 0.35);@@ -190,6 +226,32 @@ html.dark {--error-icon-bg: rgba(224, 108, 117, 0.18);--unread-fresh: rgb(var(--gold-deep-rgb));--unread-fresh-fg: #21252b;+ --ship-canvas: rgb(var(--paper-rgb));+ --ship-face: rgb(var(--cloud-rgb));+ --doc-toolbar: rgb(var(--paper-rgb));+ --doc-toolbar-border: rgb(var(--ink-100-rgb));+ --doc-toolbar-icon: rgb(var(--ink-700-rgb));+ --doc-toolbar-icon-muted: rgb(var(--ink-300-rgb));+ --doc-toolbar-hover: rgb(var(--ink-100-rgb));+ --doc-toolbar-rule: rgb(var(--ink-200-rgb));+ --doc-muted: rgb(var(--ink-300-rgb));+ --doc-muted-strong: rgb(var(--ink-500-rgb));+ --doc-body: rgb(var(--ink-900-rgb));+ --doc-quote: rgb(var(--ink-500-rgb));+ --doc-rule: rgb(var(--ink-200-rgb));+ --doc-placeholder: rgb(var(--ink-300-rgb));+ --doc-img-bg: rgb(var(--paper-rgb));+ --doc-img-border: rgb(var(--ink-200-rgb));+ --doc-img-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);+ --doc-pre-bg: rgb(var(--paper-rgb));+ --doc-pre-fg: rgb(var(--ink-900-rgb));+ --doc-code-bg: rgb(var(--skype-rgb) / 0.16);+ --doc-cell: rgb(var(--ink-200-rgb));+ --doc-th: rgb(var(--skype-rgb) / 0.12);+ --board-column: rgb(var(--paper-rgb));+ --board-card: rgb(var(--sky-100-rgb));+ --board-card-border: rgb(var(--ink-200-rgb));+ --board-card-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.45);}/* Native-shell tweaks (iOS / Android Capacitor builds). main.tsx adds@@ -605,6 +667,26 @@ html.dark .cumora-code .hljs-deletion { background: rgba(224, 108, 117, 0.15); cbutton { font: inherit; }input, textarea { font: inherit; }+/* Shipping contract pane. Native inputs/selects follow Chromium's+ * `field` system color (tied to Electron nativeTheme), which can stay+ * white even when html.dark has remapped --cloud. Pin them to tokens+ * so the draft form matches the rest of the workspace. Light cloud is+ * still #fff, so light mode stays the same. */+.ship-workspace :is(input, textarea, select):not([type='checkbox']):not([type='radio']) {+ background-color: rgb(var(--cloud-rgb));+ color: rgb(var(--ink-900-rgb));+}+.ship-workspace :is(input, textarea, select)::placeholder {+ color: rgb(var(--ink-300-rgb));+}+html.dark .ship-workspace {+ color-scheme: dark;+}+html.dark .ship-workspace option {+ background-color: rgb(var(--cloud-rgb));+ color: rgb(var(--ink-900-rgb));+}+/* RichInput contenteditable placeholder. The composer drops a* `data-placeholder` attribute on the editor; this rule surfaces it* only when the editor has zero content. */@@ -658,7 +740,7 @@ input, textarea { font: inherit; }* native set of styles for ProseMirror output rather than depend on* `prose`. Scoped to `.tiptap` so it can't leak into chat or marketing* pages. */-.tiptap { color: #1c1917; font-family: 'Fraunces', 'Georgia', serif; font-size: 17px; line-height: 1.65; }+.tiptap { color: var(--doc-body); caret-color: var(--doc-body); font-family: 'Fraunces', 'Georgia', serif; font-size: 17px; line-height: 1.65; }.tiptap > * + * { margin-top: 0.85em; }.tiptap h1 { font-size: 1.9em; font-weight: 600; line-height: 1.2; margin-top: 1.4em; }.tiptap h2 { font-size: 1.45em; font-weight: 600; line-height: 1.25; margin-top: 1.2em; }@@ -671,11 +753,11 @@ input, textarea { font: inherit; }.tiptap blockquote {border-left: 3px solid var(--skype);padding-left: 1em;- color: #57534e;+ color: var(--doc-quote);font-style: italic;}.tiptap code {- background: rgba(0, 168, 240, 0.08);+ background: var(--doc-code-bg);color: var(--skype-deep);border-radius: 4px;padding: 0.1em 0.35em;@@ -683,8 +765,8 @@ input, textarea { font: inherit; }font-size: 0.92em;}.tiptap pre {- background: #0f172a;- color: #e2e8f0;+ background: var(--doc-pre-bg);+ color: var(--doc-pre-fg);border-radius: 10px;padding: 0.9em 1.1em;overflow-x: auto;@@ -700,7 +782,7 @@ input, textarea { font: inherit; }text-decoration-thickness: 1px;}.tiptap a:hover { color: var(--skype); }-.tiptap hr { border: 0; border-top: 1px solid #e7e5e4; margin: 1.5em 0; }+.tiptap hr { border: 0; border-top: 1px solid var(--doc-rule); margin: 1.5em 0; }/* Tables (GFM from agents + tiptap TableKit). Match the doc's serif look:* hairline rules, roomy cells, header in small caps-ish weight. */.tiptap table {@@ -711,14 +793,14 @@ input, textarea { font: inherit; }font-size: 0.95em;}.tiptap th, .tiptap td {- border: 1px solid #e7e5e4;+ border: 1px solid var(--doc-cell);padding: 0.45em 0.7em;vertical-align: top;text-align: left;}.tiptap th {font-weight: 600;- background: rgba(0, 168, 240, 0.05);+ background: var(--doc-th);}.tiptap th p, .tiptap td p { margin: 0; }/* tiptap wraps the table in a scrollable div when it overflows */@@ -729,10 +811,10 @@ input, textarea { font: inherit; }max-width: min(100%, 720px);max-height: 520px;object-fit: contain;- border: 1px solid #e7e5e4;+ border: 1px solid var(--doc-img-border);border-radius: 12px;- background: #fafaf9;- box-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);+ background: var(--doc-img-bg);+ box-shadow: var(--doc-img-shadow);}.tiptap img.ProseMirror-selectednode {outline: 3px solid rgba(0, 168, 240, 0.28);@@ -752,7 +834,7 @@ input, textarea { font: inherit; }/* TipTap placeholder for empty first paragraph. */.tiptap p.is-editor-empty:first-child::before {content: attr(data-placeholder);- color: #a8a29e;+ color: var(--doc-placeholder);float: left;height: 0;pointer-events: none;