/* TuringDNA · Engine — editorial design system. * * Reference register: Stripe Press × Nature Methods. Warm-paper canvas, * Playfair Display italic for display headlines, Source Serif 4 for body, * JetBrains Mono for chrome / labels / data identifiers. One graphite * accent. Hairline rules over heavy borders. Everything is intentional. * * Architecture: * - Layout: sidebar + top bar + content workspace (kept from prior system). * - Color: ink-on-paper neutrals + 1 graphite accent + 4 semantic colors. * - Typography: triple-stack — Playfair display / Source Serif body / JBM chrome. * - Depth: hairline rules + soft shadows (5 tiers, used sparingly). * - Motion: 120–280ms cubic-bezier easing, purposeful only. * * Token names kept from the previous Linear-style system so component * rules below pick up the new palette automatically. Only the values * underneath the semantic aliases were rewritten. */ @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,700;1,900&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400&display=swap'); /* ─── iOS text-auto-zoom kill switch ─────────────────────────────────── * iOS Safari "helpfully" inflates any text < 16px on a narrow viewport, * which made the engine's editorial 11-12px section headers and chrome * render at ~24-32px on a phone — making the layout look 2-3× zoomed * even though the CSS font-size was correct. The screenshot a user sent * 2026-05-27 ("it's too zoomed in for comfortable use") was this exact * bug. text-size-adjust:100% tells iOS to trust our design and not * auto-scale. Only matters for mobile Safari + old Chrome Mobile; harmless * everywhere else. * * Set on html (so it cascades) with both -webkit- and standard names. */ html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } :root { /* ── Neutral scale — warm-paper ink, redirected from the old slate scale. gray-0 (was pure white) is now the warmest paper; gray-9 (was near-black) stays as ink. The progression in between is desaturated and warmed so every surface reads as "off-white paper" rather than "tinted slate". */ --gray-0: #FBFAF6; /* warm paper card */ --gray-1: #F7F5F0; /* warm paper canvas */ --gray-2: #EFECE5; /* paper soft */ --gray-3: #E5E2DC; /* hairline-soft */ --gray-4: #D6D3D1; /* hairline */ --gray-5: #B8B4AE; /* hairline-strong */ --gray-6: #8A857E; /* ink faint */ --gray-7: #6B6862; /* ink soft */ --gray-8: #2A2A29; /* ink */ --gray-9: #0A0A0A; /* ink strong */ /* ── Brand — graphite, matching landing's single accent. Reading these in old rules: --brand replaces the old teal everywhere, so nav highlights, focus rings, primary buttons, and the AlphaFold / ESMFold spinner all shift to one consistent graphite. */ --brand: #3D3A34; --brand-deep: #1B1A17; --brand-light: #6B6862; --brand-50: #F2F0EB; --brand-100: #E5E2DB; --brand-200: #CFCBC2; --brand-ring: rgba(61, 58, 52, 0.22); /* ── Semantic — kept for functional chips (GC warnings, internal RE-site errors, success toasts). Toned down slightly so they don't shout on the warm canvas. */ --success: #047857; --success-light: #ECFDF5; --warning: #92400E; --warning-light: #FEF3C7; --danger: #991B1B; --danger-light: #FEF2F2; --info: var(--brand); --info-light: var(--brand-50); /* ── Surfaces — paper, not slate. */ --bg-app: var(--gray-1); --bg-card: var(--gray-0); --bg-sidebar: var(--gray-2); --bg-subtle: var(--gray-2); --bg-raised: var(--gray-0); --bg-hover: var(--gray-3); /* ── Ink — direct ports; gray-9 is ink-strong, gray-7/6 carry the secondary hierarchy. Source Serif 4 reads at slightly lower contrast than Inter, so --ink (body text) is the same value as before but visually warmer. */ --ink-strong: var(--gray-9); --ink: var(--gray-8); --ink-soft: var(--gray-7); --ink-faint: var(--gray-6); --ink-disabled: var(--gray-5); /* Button-hover fill/text. Deliberately FIXED (not redefined in the dark block) so an action button always inverts to a near-black rectangle with warm-white text on hover, in BOTH themes — instead of the theme tokens, which in dark mode flip to off-white-on-dark (looked like "nothing happened / flashed back to white"). */ --hover-fill: #0A0A0A; --hover-text: #FBFAF6; --line: var(--gray-3); --line-strong: var(--gray-4); --line-bold: var(--gray-5); /* ── Elevation — softer on warm paper. The old shadows used a cool slate blue (rgba(14,20,27)); the new ones use warm-paper ink so cards don't look like they're casting a fluorescent shadow on butcher paper. */ --elev-1: 0 1px 2px rgba(42, 42, 41, 0.04); --elev-2: 0 1px 3px rgba(42, 42, 41, 0.05), 0 1px 2px rgba(42, 42, 41, 0.03); --elev-3: 0 4px 12px rgba(42, 42, 41, 0.06), 0 2px 4px rgba(42, 42, 41, 0.03); --elev-4: 0 12px 28px rgba(42, 42, 41, 0.08), 0 4px 10px rgba(42, 42, 41, 0.04); --elev-5: 0 24px 48px rgba(42, 42, 41, 0.10), 0 6px 14px rgba(42, 42, 41, 0.05); /* ── Geometry — slightly smaller radii. Editorial pages don't use pill shapes; cards prefer a thin square edge. Values kept compatible. */ --r-1: 3px; --r-2: 4px; --r-3: 6px; --r-4: 10px; --r-5: 14px; /* ── Type — the triple stack. --font-ui is aliased to body serif so every existing rule that used Inter now gets Source Serif 4 automatically. --font-display is new, used by the editorial overlay below for h1/h2 + the brand wordmark. */ --font-ui: 'Source Serif 4', 'Source Serif Pro', Georgia, serif; --font-body: 'Source Serif 4', 'Source Serif Pro', Georgia, serif; --font-display: 'Playfair Display', 'EB Garamond', Georgia, serif; --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace; /* Motion */ --ease: cubic-bezier(0.22, 1, 0.36, 1); --ease-snap: cubic-bezier(0.4, 0, 0.2, 1); --t-fast: 120ms; --t-base: 180ms; --t-slow: 280ms; /* Layout */ --sidebar-w: 232px; --topbar-h: 56px; color-scheme: light; } /* ───────────────────────────── DARK THEME ──────────────────────────────── * The whole system is token-driven: every surface/ink/line semantic alias * resolves through the --gray-0..9 ramp and --brand-* scale. So dark mode is * just a re-paint of those primitives — override the ramp, brand, semantic * tints, and elevation, and all ~4,800 lines of component rules below follow * automatically. No per-component dark rules needed (a few hardcoded legacy * colors are patched individually further down). * * Applied via [data-theme="dark"] on , set by an anti-FOUC inline * script in index.html BEFORE first paint (resolves saved choice, else the * OS prefers-color-scheme). The toggle in the topbar flips + persists it. */ :root[data-theme="dark"] { color-scheme: dark; /* Inverted warm-neutral ramp. gray-0 (lightest paper in light mode) is * now the card surface; gray-9 (ink) becomes a warm off-white. The middle * stops keep a faint warm cast so dark mode reads as "ink on warm slate", * not flat cold gray — same editorial register as the light theme. */ --gray-0: #1B1A18; /* card surface */ --gray-1: #121110; /* app canvas (darkest) */ --gray-2: #211F1C; /* sidebar / subtle */ --gray-3: #2B2926; /* hairline-soft / hover */ --gray-4: #3A3733; /* hairline */ --gray-5: #514D47; /* hairline-strong */ --gray-6: #908A80; /* ink faint */ --gray-7: #B2ACA2; /* ink soft */ --gray-8: #D9D4CA; /* ink */ --gray-9: #F4F1E9; /* ink strong (off-white)*/ /* Brand lifted for legibility on dark paper. Used both as primary-button * fill (white text still reads) and as text/links/accents (now bright * enough to see), so a single lift serves both. */ --brand: #C9C4BB; --brand-deep: #B4AEA4; --brand-light: #DAD5CC; --brand-50: rgba(201, 196, 187, 0.10); --brand-100: rgba(201, 196, 187, 0.18); --brand-200: rgba(201, 196, 187, 0.30); --brand-ring: rgba(201, 196, 187, 0.40); /* Bio-luminous accent — a GFP / aequorin cyan-teal, used ONLY as light (ambient glow, the living mark's halo, the active-nav marker, hairline blooms) — never as a fill, so the monochrome + button system are intact. Dark-mode only; the light theme stays clean paper. */ --glow: #6FE3CB; --glow-rgb: 111, 227, 203; /* Semantic — brighter foregrounds + translucent tints over dark paper. */ --success: #34D399; --success-light: rgba(52, 211, 153, 0.14); --warning: #F4C77E; --warning-light: rgba(180, 120, 40, 0.20); --danger: #F4796F; --danger-light: rgba(220, 70, 60, 0.16); --info: var(--brand); --info-light: var(--brand-50); /* Elevation — true-black shadows read on dark paper (the warm-ink shadows * used in light mode are invisible against a dark canvas). */ --elev-1: 0 1px 2px rgba(0, 0, 0, 0.40); --elev-2: 0 1px 3px rgba(0, 0, 0, 0.46), 0 1px 2px rgba(0, 0, 0, 0.30); --elev-3: 0 4px 12px rgba(0, 0, 0, 0.50), 0 2px 4px rgba(0, 0, 0, 0.32); --elev-4: 0 12px 28px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.36); --elev-5: 0 24px 48px rgba(0, 0, 0, 0.62), 0 6px 14px rgba(0, 0, 0, 0.42); } * { box-sizing: border-box; margin: 0; padding: 0; } html, body { background: var(--bg-app); color: var(--ink); font-family: var(--font-ui); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11'; /* Kill the horizontal rubber-band everywhere (safe — doesn't establish a scroll container, so it won't break the desktop sticky sidebar). The actual horizontal CLIP is applied only on mobile below, because overflow-x:hidden here WOULD break position:sticky. */ overscroll-behavior-x: none; } body { min-height: 100vh; } a { color: inherit; text-decoration: none; } button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; } button { cursor: pointer; border: none; background: none; } kbd { font-family: var(--font-mono); font-size: 11px; padding: 2px 5px; background: var(--gray-3); border: 1px solid var(--line-strong); border-radius: var(--r-1); color: var(--ink-soft); box-shadow: 0 1px 0 var(--line-strong); } ::selection { background: var(--brand-100); color: var(--brand-deep); } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--gray-4); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-thumb:hover { background: var(--gray-5); background-clip: padding-box; } /* ====================================================================== APP */ .app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; } /* ================================================================== SIDEBAR */ .sidebar { position: sticky; top: 0; height: 100vh; background: var(--bg-sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 14px 18px; gap: 24px; } .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-2); transition: background var(--t-fast) var(--ease); } .brand:hover { background: var(--bg-hover); } .brand-mark { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; } .brand-mark img, .brand-mark svg { width: 100%; height: 100%; object-fit: contain; display: block; } .brand-mark-canvas { width: 100%; height: 100%; display: block; } .brand-word { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--ink-strong); } .nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; } .nav-section { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); padding: 14px 10px 4px; } .nav-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-2); color: var(--ink-soft); font-size: 13px; font-weight: 500; transition: all var(--t-fast) var(--ease); position: relative; } .nav-icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--ink-faint); } /* hrefless action nav items (e.g. "My designs") still get the link cursor */ .nav-item[role="button"] { cursor: pointer; } .nav-item:hover { background: var(--bg-hover); color: var(--ink); } .nav-item:hover .nav-icon { color: var(--ink-soft); } .nav-item.active { background: var(--brand-50); color: var(--brand-deep); font-weight: 600; } .nav-item.active .nav-icon { color: var(--brand); } .nav-tag { margin-left: auto; font-size: 11px; color: var(--ink-faint); background: var(--gray-3); padding: 1px 6px; border-radius: 999px; font-variant-numeric: tabular-nums; font-weight: 500; } .nav-item.active .nav-tag { background: var(--brand-100); color: var(--brand-deep); } .sidebar-footer { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; } /* ── Account row at the foot of the sidebar (Claude-style) ────────── * .nav above is flex:1, so this block pins to the bottom of the rail. * Built into the sidebar — not a floating chip over the workspace. */ .sidebar-account { position: relative; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); } .sidebar-account[hidden] { display: none; } .acct-trigger { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 1px solid transparent; border-radius: var(--r-2); background: transparent; cursor: pointer; text-align: left; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); } .acct-trigger:hover { background: var(--bg-hover); } .acct-trigger[aria-expanded="true"] { background: var(--bg-hover); border-color: var(--line); } .acct-avatar { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--brand); color: var(--gray-0); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; } .acct-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; } .acct-name { font-size: 12.5px; font-weight: 600; color: var(--ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .acct-plan { font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.02em; } .acct-chev { width: 15px; height: 15px; flex-shrink: 0; color: var(--ink-faint); transition: transform var(--t-fast) var(--ease); } .acct-trigger[aria-expanded="true"] .acct-chev { transform: rotate(180deg); } .acct-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--gray-0); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); padding: 8px; z-index: 30; } .acct-menu[hidden] { display: none; } .acct-menu-email { margin: 0 0 8px; padding: 2px 8px 8px; font-size: 11.5px; line-height: 1.4; color: var(--ink-soft); border-bottom: 1px solid var(--line); word-break: break-all; } .acct-menu-item { width: 100%; display: block; text-align: left; padding: 8px; border: 0; border-radius: var(--r-2); background: transparent; color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); } .acct-menu-item:hover { background: var(--ink-strong); color: var(--gray-0); } .model-card { background: var(--gray-0); border: 1px solid var(--line); border-radius: var(--r-3); padding: 10px 12px; } .model-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .model-card-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 600; } .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-5); display: inline-block; } .status-dot.status-on { background: var(--success); box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.18); } .model-card-name { font-size: 13px; font-weight: 600; color: var(--ink-strong); margin-bottom: 1px; } .model-card-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); letter-spacing: 0.01em; } /* ==================================================================== MAIN */ .content { min-width: 0; display: flex; flex-direction: column; } .topbar { height: var(--topbar-h); /* Fully opaque so rows scrolling underneath don't show through. The * previous semi-transparent + blur combination caused visual bleeding * with the sticky table header positioned just below. */ background: var(--bg-app); border-bottom: 1px solid var(--line); padding: 0 32px; display: flex; align-items: center; /* Left-aligned cluster (hamburger · title · theme toggle). Was * space-between, which parked the theme toggle in the top-right corner — * where the landing's iframe wrapper overlays its fixed "Sign in" pill, * so the two collided on the /app/ embed. Keeping the toggle on the left * frees the top-right corner for that pill. */ justify-content: flex-start; gap: 14px; position: sticky; top: 0; z-index: 10; } .breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; } .crumb { color: var(--ink-faint); } .crumb-sep { color: var(--ink-disabled); } .crumb-active { color: var(--ink-strong); font-weight: 500; } .topbar-actions { display: flex; gap: 8px; align-items: center; } .cmd-trigger { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 10px; border: 1px solid var(--line-strong); background: var(--gray-0); border-radius: var(--r-2); color: var(--ink-faint); font-size: 13px; box-shadow: var(--elev-1); transition: all var(--t-fast) var(--ease); } .cmd-trigger svg { width: 14px; height: 14px; color: var(--ink-faint); } .cmd-trigger:hover { border-color: var(--line-bold); color: var(--ink-soft); box-shadow: var(--elev-2); } .cmd-trigger span { color: var(--ink-soft); } .cmd-trigger kbd { margin-left: 16px; } /* =============================================================== WORKSPACE */ .workspace { flex: 1; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 20px; max-width: 1180px; width: 100%; } footer { padding: 20px 32px 24px; text-align: center; border-top: 1px solid var(--line); margin-top: auto; } .footer-note { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.02em; } /* =================================================================== HERO * Editorial register matching the landing's chapter pattern: § kicker + * italic display headline + lede. No more radial gradient, no more * card-with-border, no more grid columns hiding a 4-step decoration * panel on the right. Just a clean opening like the first page of a * publication. */ .hero { background: transparent; border: 0; border-radius: 0; padding: 24px 0 16px; display: block; box-shadow: none; border-bottom: 1px solid var(--line); margin-bottom: 12px; } .hero-kicker { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.16em; margin: 0 0 6px; } .hero h1 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.005em; color: var(--ink-strong); margin: 0 0 10px; line-height: 1.1; max-width: 22ch; } .hero-lede { font-family: var(--font-body); font-size: 16px; color: var(--ink-soft); max-width: 56ch; line-height: 1.55; margin: 0; } /* Legacy classes hidden in case any stale DOM is still rendered while * the cache busts — they have no business in the new editorial layout. */ .eyebrow, .hero-pipeline, .hero-left, .hero-right, .pipe-step, .pipe-arrow, .pipe-num, .pipe-label { display: none !important; } .hero-pipeline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .pipe-step { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--gray-0); min-width: 92px; } .pipe-num { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); font-weight: 600; letter-spacing: 0.04em; } .pipe-label { font-size: 12px; color: var(--ink); font-weight: 500; white-space: nowrap; } .pipe-arrow { color: var(--ink-disabled); font-size: 14px; } @media (max-width: 980px) { .hero { grid-template-columns: 1fr; } .hero-pipeline { gap: 6px; } .pipe-step { min-width: 0; padding: 6px 9px; } .pipe-label { font-size: 11px; } } /* =================================================================== CARDS */ .card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-4); padding: 24px 28px; box-shadow: var(--elev-1); } /* Card header — editorial chapter anatomy: § N kicker + italic display * h2 + lede sub. Replaces the previous boxy "step-num badge + h2 + sub" * pattern that read as Stripe Checkout scaffolding. */ .card-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); } .card-header.results-header { padding-bottom: 18px; } .card-header-left { flex: 1 1 0; min-width: 0; } /* Results-header action cluster (Save / My designs / Download / Export). * Without an explicit desktop rule this was an unstyled flex *item* with no * internal layout, so its children claimed their full preferred width and * shrank .card-header-left down to min-content — wrapping the sub-line one * word per line. flex-shrink:0 keeps the buttons as a tidy right-aligned * group that never steals width from the title. */ .results-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; flex-shrink: 0; } .card-kicker { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.16em; margin: 0 0 4px; } .card-header h2 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.005em; color: var(--ink-strong); margin: 0 0 4px; line-height: 1.15; } .card-sub { font-family: var(--font-body); font-size: 14px; color: var(--ink-soft); line-height: 1.55; max-width: 56ch; } /* Step-num badges removed from the UI. Class hidden in case any stale * DOM still renders one while caches bust. */ .step-num { display: none !important; } /* ==================================================================== TABS */ .input-tabs { display: flex; gap: 2px; margin-bottom: 18px; padding: 3px; background: var(--gray-2); border-radius: var(--r-3); width: fit-content; border: 1px solid var(--line); } .tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-2); font-size: 12px; font-weight: 500; color: var(--ink-soft); transition: all var(--t-fast) var(--ease); } .tab svg { width: 12px; height: 12px; color: currentColor; opacity: 0.8; } .tab:hover { color: var(--ink); } .tab.active { background: var(--gray-0); color: var(--ink-strong); box-shadow: var(--elev-1); font-weight: 600; } .tab-panel { display: none; } .tab-panel.active { display: block; } /* ================================================================ DROPZONE */ .dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 48px 32px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-3); background: var(--gray-1); cursor: pointer; transition: all var(--t-base) var(--ease); text-align: center; } .dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-50); border-style: solid; } .dz-icon { width: 48px; height: 48px; border-radius: var(--r-3); background: var(--gray-0); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); box-shadow: var(--elev-1); transition: all var(--t-base) var(--ease); } .dz-icon svg { width: 22px; height: 22px; } .dropzone:hover .dz-icon, .dropzone.drag .dz-icon { color: var(--brand); border-color: var(--brand-200); } .dz-copy { display: flex; flex-direction: column; gap: 2px; } .dz-copy strong { font-size: 14px; font-weight: 600; color: var(--ink-strong); } .dz-copy span { font-size: 13px; color: var(--ink-soft); } .dz-formats { font-size: 11px; color: var(--ink-faint); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; letter-spacing: 0.02em; } /* ================================================================== INPUTS */ textarea, input[type="text"], input[type="number"], select { width: 100%; padding: 8px 12px; background: var(--gray-0); border: 1px solid var(--line-strong); border-radius: var(--r-2); transition: all var(--t-fast) var(--ease); font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: var(--ink-strong); box-shadow: var(--elev-1); } textarea { resize: vertical; min-height: 160px; } select { font-family: var(--font-ui); cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;utf8,"); background-repeat: no-repeat; background-position: right 12px center; background-size: 10px; padding-right: 32px; } input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); } /* ============================================================= PASTE SHELL */ .paste-shell { display: flex; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--gray-0); overflow: hidden; /* Cap the editor height so a long sequence (e.g. a 1,128-nt CDS) scrolls INSIDE the box instead of stretching it down the page. The gutter + textarea scroll in sync (overflow:hidden gutter + overflow:auto textarea, scrollTop mirrored in JS). */ max-height: 340px; transition: all var(--t-fast) var(--ease); box-shadow: var(--elev-1); } .paste-shell:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); } .paste-gutter { flex-shrink: 0; padding: 10px 10px 10px 14px; background: var(--gray-2); border-right: 1px solid var(--line); color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; line-height: 1.5; text-align: right; min-width: 46px; overflow: hidden; user-select: none; white-space: pre; font-variant-numeric: tabular-nums; } .paste-gutter span { display: block; height: calc(1.5em); } .paste-gutter span.error-line { color: var(--danger); font-weight: 600; background: var(--danger-light); } .paste-shell textarea { border: none !important; border-radius: 0; flex: 1; background: transparent; box-shadow: none !important; overflow: auto; white-space: pre; /* The shell owns the height now (max-height + scroll); a user-drag resize would desync the gutter, so disable it. */ resize: none; min-height: 0; } .paste-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; } .paste-stats { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; } /* ============================================================== BUTTONS */ .primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: var(--r-2); background: var(--ink-strong); color: var(--gray-0); font-weight: 600; font-size: 13px; letter-spacing: -0.005em; transition: all var(--t-base) var(--ease); border: 1px solid var(--ink-strong); box-shadow: var(--elev-1); } .primary:not(:disabled):hover { background: var(--hover-fill); border-color: var(--hover-fill); color: var(--hover-text); box-shadow: var(--elev-3); } .primary:not(:disabled):active { transform: translateY(0); box-shadow: var(--elev-2); } .primary:disabled { background: var(--gray-3); color: var(--ink-disabled); border-color: var(--line-strong); cursor: not-allowed; box-shadow: none; } .primary-lg { width: 100%; padding: 16px 24px; font-size: 14px; /* Ink fill — charcoal on light paper, parchment on dark (adapts via tokens), matching the base .primary. Monochrome, no hue. */ background: linear-gradient(180deg, var(--ink) 0%, var(--ink-strong) 100%); color: var(--gray-0); border-color: var(--ink-strong); box-shadow: 0 1px 2px rgba(20, 19, 16, 0.20), inset 0 1px 0 rgba(255,255,255,0.10); } .primary-lg:not(:disabled):hover { background: var(--hover-fill); color: var(--hover-text); border-color: var(--hover-fill); box-shadow: 0 6px 16px rgba(20, 19, 16, 0.22), inset 0 1px 0 rgba(255,255,255,0.10); } .primary-lg:disabled { background: var(--gray-3); color: var(--ink-disabled); } .primary-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: var(--r-1); background: rgba(255,255,255,0.18); } .primary-icon svg { width: 12px; height: 12px; } .primary:disabled .primary-icon { background: var(--gray-4); color: var(--ink-disabled); } .primary-content { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; } .primary-label { font-weight: 600; } .primary-sub { font-size: 11px; opacity: 0.78; font-weight: 400; letter-spacing: 0; } .primary:disabled .primary-sub { opacity: 1; } .primary-ghost { padding: 8px 16px; border-radius: var(--r-2); border: 1px solid var(--line-strong); background: var(--gray-0); color: var(--ink); font-size: 13px; font-weight: 500; transition: all var(--t-fast) var(--ease); box-shadow: var(--elev-1); } .primary-ghost:hover { background: var(--gray-1); border-color: var(--line-bold); } .ghost { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-2); border: 1px solid var(--line-strong); background: var(--gray-0); color: var(--ink-soft); font-size: 13px; font-weight: 500; transition: all var(--t-fast) var(--ease); box-shadow: var(--elev-1); } .ghost svg { width: 14px; height: 14px; color: currentColor; } .ghost:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-50); } .ghost-sm { padding: 5px 10px; font-size: 12px; } /* ============================================================= PREVIEW */ .preview { margin-top: 20px; padding: 18px 20px; border-radius: var(--r-3); background: var(--gray-1); border: 1px solid var(--line); } .preview-meta { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 14px; } .preview-meta > div { display: flex; flex-direction: column; gap: 3px; } .meta-label { font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; } .meta-val { font-size: 14px; font-weight: 600; color: var(--ink-strong); font-variant-numeric: tabular-nums; } .pill { padding: 2px 9px; border-radius: 999px; background: var(--brand-50); color: var(--brand-deep); font-size: 11px; font-weight: 600; width: fit-content; text-transform: capitalize; border: 1px solid var(--brand-100); } .preview-seq { font-family: var(--font-mono); font-size: 12px; color: var(--ink); word-break: break-all; padding: 10px 12px; background: var(--gray-0); border-radius: var(--r-2); border: 1px solid var(--line); letter-spacing: 0.02em; line-height: 1.6; } /* ============================================================ IDENTIFY */ .identify-row { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .identify-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-2); border: 1px solid var(--line-strong); background: var(--gray-0); color: var(--ink); font-size: 12px; font-weight: 500; transition: all var(--t-fast) var(--ease); box-shadow: var(--elev-1); } .identify-btn svg { width: 13px; height: 13px; color: currentColor; } .identify-btn:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-50); } .identify-btn:disabled { cursor: progress; opacity: 0.8; } .identify-hint { font-size: 11px; color: var(--ink-faint); line-height: 1.5; } .identify-panel { margin-top: 14px; padding: 14px 16px; background: var(--gray-0); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--elev-1); } .identify-panel[hidden] { display: none; } .identify-status { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-soft); } .identify-spinner { width: 14px; height: 14px; border: 2px solid var(--gray-3); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.75s linear infinite; flex-shrink: 0; } @keyframes spin { to { transform: rotate(360deg); } } .identify-headline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); } .identify-headline strong { font-size: 14px; color: var(--ink-strong); font-weight: 600; } .identify-headline .organism { font-size: 12px; color: var(--ink-soft); font-style: italic; } .identify-headline .id-pct { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--success-light); color: var(--success); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; border: 1px solid rgba(4, 120, 87, 0.22); } .identify-headline .id-pct.id-mid { background: var(--warning-light); color: var(--warning); border-color: #FDE68A; } .identify-headline .id-pct.id-low { background: var(--gray-2); color: var(--ink-soft); border-color: var(--line-strong); } .identify-hits { display: flex; flex-direction: column; gap: 8px; } .identify-hit { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--gray-1); font-size: 12px; } .identify-hit-acc { font-family: var(--font-mono); color: var(--brand-deep); font-weight: 600; font-size: 11px; } .identify-hit-desc { color: var(--ink); line-height: 1.5; } .identify-hit-org { color: var(--ink-soft); font-style: italic; } .identify-hit-stats { font-family: var(--font-mono); color: var(--ink-faint); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .identify-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; } .identify-error { color: var(--danger); font-size: 12px; line-height: 1.5; } /* AlphaFold structure viewer (Mol*). Shown below the BLAST hits when the top hit has a UniProt accession. Aspect-ratio'd box so the viewer canvas has a stable size regardless of structure dimensions. */ .alphafold-wrap { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); } .alphafold-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 12px; } .alphafold-head h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; margin: 0; } .alphafold-meta { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); } .alphafold-viewer { width: 100%; height: 360px; border-radius: var(--r-3); border: 1px solid var(--line); background: #0E141B; overflow: hidden; position: relative; } .alphafold-viewer .msp-plugin { background: #0E141B !important; } /* Dark-theme Mol*'s own floating viewport controls. Mol* ships a LIGHT control * theme — a cream "semi-transparent" backing strip with dark-brown icons — * which clashes with (and renders nearly invisible on) our dark canvas. Recolor * the strip dark and the icons light so the whole viewer reads as one dark * surface that matches the site. */ .alphafold-viewer .msp-semi-transparent-background { background: rgba(14, 20, 27, 0.72) !important; } .alphafold-viewer .msp-viewport-controls-buttons .msp-btn-icon { color: rgba(233, 237, 243, 0.80) !important; } .alphafold-viewer .msp-viewport-controls-buttons .msp-btn-icon:hover { color: #fff !important; background: rgba(255, 255, 255, 0.10) !important; } .alphafold-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gray-3); font-size: 12px; gap: 10px; background: #0E141B; z-index: 2; } .alphafold-loading .identify-spinner { border-color: rgba(255,255,255,0.18); border-top-color: var(--brand-light); } .alphafold-disclaimer { margin-top: 8px; font-size: 11px; color: var(--ink-faint); line-height: 1.5; } .alphafold-disclaimer a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; } /* ============================================================ CDS PICKER */ .cds-picker { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); } .cds-picker h3 { font-size: 14px; font-weight: 600; color: var(--ink-strong); margin-bottom: 4px; } .muted { color: var(--ink-faint); font-size: 12px; line-height: 1.5; margin-bottom: 12px; } .cds-list { display: flex; flex-direction: column; gap: 6px; } .cds-item { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-radius: var(--r-2); border: 1px solid var(--line); cursor: pointer; transition: all var(--t-fast) var(--ease); background: var(--gray-0); } .cds-item:hover { border-color: var(--line-bold); background: var(--gray-1); } .cds-item.selected { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand); } .cds-name { flex: 1; font-weight: 500; font-family: var(--font-mono); font-size: 13px; color: var(--ink-strong); } .cds-length { color: var(--ink-faint); font-size: 12px; font-variant-numeric: tabular-nums; } .cds-item.marker .cds-name { color: var(--ink-faint); } .cds-item.marker::after { content: 'marker'; font-size: 10px; font-weight: 600; color: var(--warning); padding: 2px 8px; background: var(--warning-light); border-radius: 999px; border: 1px solid #FDE68A; letter-spacing: 0.02em; } /* ============================================================ SETTINGS */ .setting-grid { /* 6-column grid so we can place 3 narrow number fields across row 1 (each spans 2) and 2 wider dropdown fields across row 2 (each spans 3). Result is a 3-up / 2-up arrangement where both rows sum to the full width — no orphan field on the second row. */ display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 22px; } .setting-grid > .setting:nth-child(1), .setting-grid > .setting:nth-child(2), .setting-grid > .setting:nth-child(3) { grid-column: span 2; } .setting-grid > .setting:nth-child(4), .setting-grid > .setting:nth-child(5) { grid-column: span 3; } @media (max-width: 880px) { /* On narrower viewports the 6-track grid leaves the dropdown labels (e.g. "Saccharomyces cerevisiae") truncated. Collapse to a single column — each label/input pair stacks cleanly, no orphan row. */ .setting-grid { grid-template-columns: 1fr; gap: 14px; } .setting-grid > .setting:nth-child(n) { grid-column: auto; } } .setting { display: flex; flex-direction: column; gap: 5px; } .setting-name { font-size: 13px; font-weight: 600; color: var(--ink-strong); } .setting-hint { font-size: 11px; color: var(--ink-faint); margin-bottom: 6px; line-height: 1.5; } /* ============================================================ PROGRESS */ .progress-shell { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; } /* The `display: flex` above overrides the UA `[hidden]` rule, so the * shell stayed visible (showing its default "Designing… 0.0s" text) * even when hidden=true. Restore hide-when-hidden. Fixes a permanent * phantom progress bar under the CRISPR + directed-evolution Design * buttons. */ .progress-shell[hidden] { display: none; } .progress-bar { height: 4px; background: var(--gray-3); border-radius: 999px; overflow: hidden; } .progress-fill { position: relative; height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand), var(--brand-light)); border-radius: 999px; transition: width 400ms var(--ease); box-shadow: 0 0 12px rgba(30, 58, 138, 0.32); overflow: hidden; } /* Animated shimmer inside the progress bar — a diagonal stripe pattern that * sweeps left-to-right. Tells the user the pipeline is alive even when the * width hasn't moved in a few seconds (ESM-2 scoring + SA search both have * stretches without external progress events). */ .progress-fill::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient( 110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70% ); background-size: 200% 100%; animation: progress-shimmer 1.6s linear infinite; } @keyframes progress-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } } .progress-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--brand-deep); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; } .progress-message { font-size: 12px; color: var(--ink-soft); font-family: var(--font-mono); line-height: 1.5; } /* ============================================================ STATS STRIP */ .stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; margin-bottom: 18px; } .stat-tile { background: var(--gray-0); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; } .stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.10em; color: var(--ink-faint); font-weight: 600; } .stat-val { font-size: 22px; font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.1; } .stat-sub { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; } /* ============================================================ MUTATION MAP */ .mutmap-card { background: var(--gray-1); border: 1px solid var(--line); border-radius: var(--r-3); padding: 18px 20px 20px; margin-bottom: 18px; } .mutmap-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; gap: 16px; } .mutmap-head h3 { font-size: 13px; font-weight: 600; color: var(--ink-strong); margin-bottom: 2px; } .mutmap-head .muted { margin: 0; font-size: 11px; } .mutmap-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-faint); } .lg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .lg-mild { background: var(--brand-200); } .lg-mid { background: var(--brand); } .lg-strong { background: var(--brand-deep); } .mutmap-canvas { background: var(--gray-0); border: 1px solid var(--line); border-radius: var(--r-2); padding: 16px 14px 10px; overflow-x: auto; } .mutmap-canvas svg { display: block; width: 100%; height: 140px; } .mutmap-axis line, .mutmap-axis path { stroke: var(--line-strong); stroke-width: 1; } .mutmap-axis text { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-faint); } .mutmap-stem { stroke: var(--line-strong); stroke-width: 1; } .mutmap-dot { transition: r var(--t-fast) var(--ease), fill var(--t-fast) var(--ease); cursor: pointer; } .mutmap-dot:hover { stroke: var(--ink-strong); stroke-width: 1.5; } .mutmap-baseline { stroke: var(--line-strong); stroke-width: 1; } /* ============================================================== RESULTS */ /* ===== Filter toolbar above the variant table ============================ */ .table-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .filter-input-wrap { flex: 1; position: relative; display: flex; align-items: center; } .filter-input-wrap svg { position: absolute; left: 11px; width: 14px; height: 14px; color: var(--ink-faint); pointer-events: none; } .filter-input-wrap input { padding-left: 34px; padding-right: 32px; font-family: var(--font-ui); font-size: 13px; } .filter-clear { position: absolute; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--gray-3); color: var(--ink-soft); font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: all var(--t-fast) var(--ease); } .filter-clear:hover { background: var(--gray-4); color: var(--ink); } .table-count { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; } /* ===== Run metadata pills + auto methods ================================= */ .run-meta { margin-bottom: 18px; padding: 14px 18px; background: var(--gray-1); border: 1px solid var(--line); border-radius: var(--r-3); display: flex; flex-direction: column; gap: 12px; } .run-meta-pills { display: flex; flex-wrap: wrap; gap: 6px; } .run-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--gray-0); border: 1px solid var(--line-strong); font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; } .run-pill strong { color: var(--ink-strong); font-weight: 600; } .run-methods { background: var(--gray-0); border: 1px solid var(--line); border-radius: var(--r-2); padding: 12px 14px; font-size: 12px; color: var(--ink); line-height: 1.6; } .run-methods-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; } .run-methods-head h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); } .run-methods-head .copy-btn { flex: 0 0 auto; } /* compact — don't stretch to full width */ .run-methods-body { font-family: var(--font-ui); } .run-methods-body code { font-family: var(--font-mono); font-size: 11px; background: var(--gray-2); padding: 1px 4px; border-radius: 3px; } .run-methods-body cite { font-style: italic; color: var(--ink-soft); } /* ===== BLOSUM62 mutation classification colors ========================== */ .mut-token { display: inline-block; padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; border: 1px solid; cursor: help; } .mut-token + .mut-token { margin-left: 4px; } .mut-cons { background: #ECFDF5; color: #047857; border-color: #A7F3D0; } /* BLOSUM62 ≥ 0 */ .mut-mod { background: #FFFBEB; color: #B45309; border-color: #FDE68A; } /* -2..-1 */ .mut-drastic { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; } /* ≤ -3 */ /* ===== WT/mutant diff in the sequence block ============================= */ .sequence-block .pos-mut { background: var(--brand-50); color: var(--brand-deep); font-weight: 700; padding: 0 2px; border-radius: 3px; cursor: help; } .result-table-wrap { /* Self-contained scroll region — both axes scroll inside this wrapper * rather than at the page level. Sticky header anchors to the wrapper's * top, so no row ever hides behind the page-level topbar (and the very * first row, V0001, is always reachable without jumping past it). */ max-height: 72vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--gray-0); } .result-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; } .result-table th { background: var(--gray-0); text-align: left; padding: 12px 14px; font-weight: 600; font-size: 11px; color: var(--ink-soft); border-bottom: 1px solid var(--line); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.06em; position: sticky; top: 0; z-index: 5; user-select: none; } .result-table th.num { text-align: right; } .result-table th.sortable { cursor: pointer; } .result-table th.sortable:hover { color: var(--ink-strong); background: var(--gray-1); } .result-table th .sort-ind { display: inline-block; margin-left: 5px; color: var(--ink-disabled); font-size: 10px; transition: color var(--t-fast) var(--ease); } .result-table th.sort-active .sort-ind { color: var(--brand); } .result-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; } .result-table tr:last-child > td { border-bottom: none; } .result-table tr:hover td { background: var(--gray-1); } .result-table tr.expandable td { cursor: pointer; } .result-table td.num { text-align: right; font-weight: 500; } .result-table td.mutations { font-family: var(--font-mono); font-size: 12px; color: var(--brand-deep); white-space: nowrap; font-weight: 500; } .result-table td.rank { color: var(--ink-faint); font-weight: 600; font-family: var(--font-mono); font-size: 11px; } .result-table th.expand-col { width: 92px; } /* Per-row action cell — holds the Fold button and the expand chevron side by side. Right-aligned so the chevron sits against the table edge, matching the layout this cell used to have when it held just the chevron. */ .row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; } .fold-btn, .alphafold-btn { /* Inherits .ghost-btn for color + border; tighten the box so it fits inline with the chevron at the table row height. */ padding: 3px 9px; font-size: 12px; line-height: 1.1; letter-spacing: 0.02em; } /* When ESMFold can't run (sequence > its length cap), the AlphaFold button is the live alternative — give it a brand-tinted outline so the eye lands on it. */ .alphafold-btn-suggested { border-color: var(--brand); color: var(--brand-deep); } .alphafold-btn-suggested:hover { background: var(--brand-50); } .expand-toggle { border: 1px solid var(--line-strong); background: var(--gray-0); color: var(--ink-soft); font-size: 13px; line-height: 1; padding: 3px 7px; border-radius: var(--r-1); transition: all var(--t-fast) var(--ease); box-shadow: var(--elev-1); } .expand-toggle:hover { border-color: var(--brand); color: var(--brand-deep); } .expand-toggle.open { transform: rotate(90deg); border-color: var(--brand); color: var(--brand-deep); background: var(--brand-50); } .detail-row td { background: var(--gray-1) !important; padding: 0 !important; border-bottom: 1px solid var(--line) !important; } .detail-panel { display: flex; flex-direction: column; gap: 20px; padding: 22px 24px; animation: fadeIn 200ms var(--ease); } @keyframes fadeIn { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: translateY(0); } } .detail-section h4 { font-size: 11px; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; } .pcr-summary { display: flex; flex-wrap: wrap; gap: 28px; padding: 14px 18px; background: var(--gray-0); border: 1px solid var(--line); border-radius: var(--r-2); } .pcr-summary > div { display: flex; flex-direction: column; gap: 3px; } .pcr-summary .pcr-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 600; } .pcr-summary .pcr-val { font-size: 14px; font-weight: 600; color: var(--ink-strong); font-variant-numeric: tabular-nums; } .primer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; } .primer-card { background: var(--gray-0); border: 1px solid var(--line); border-radius: var(--r-2); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--elev-1); } .primer-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .primer-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; } .primer-direction { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); } .primer-seq { font-family: var(--font-mono); font-size: 13px; color: var(--ink-strong); background: var(--gray-1); padding: 10px 12px; border-radius: var(--r-1); border: 1px solid var(--line); word-break: break-all; line-height: 1.55; letter-spacing: 0.02em; } .primer-stats { display: flex; gap: 18px; font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; } .primer-stats span strong { color: var(--ink-strong); font-weight: 600; margin-left: 4px; } .primer-actions { display: flex; gap: 8px; } .copy-btn { flex: 1; padding: 7px 12px; border-radius: var(--r-1); border: 1px solid var(--line-strong); background: var(--gray-0); font-size: 12px; color: var(--ink-soft); font-weight: 500; transition: all var(--t-fast) var(--ease); box-shadow: var(--elev-1); } .copy-btn:hover { border-color: var(--brand); color: var(--brand-deep); } .copy-btn.copied { background: var(--brand-50); border-color: var(--brand); color: var(--brand-deep); } /* =================================================== CLONING CUSTOMIZER */ .cloning-section { gap: 14px; } .cloning-hint { font-size: 12px; color: var(--ink-soft); line-height: 1.55; margin: 4px 0 8px; max-width: 64ch; } .cloning-controls { display: flex; flex-wrap: wrap; gap: 12px; } .cloning-field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 240px; } .cloning-field-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 600; } .cloning-field select { width: 100%; } .cloning-preview { margin-top: 4px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--gray-0); overflow: hidden; } .cloning-preview:empty { display: none; } .cloning-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 10px 14px; background: var(--gray-1); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; } .cloning-meta strong { color: var(--ink-strong); font-weight: 700; margin-right: 2px; } .cloning-legend { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: 11px; color: var(--ink-faint); } .legend-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 3px; vertical-align: middle; } .legend-flank { background: #FEF3C7; border: 1px solid #FDE68A; } .legend-cds { background: var(--brand-50); border: 1px solid var(--brand-100); } .cloning-preview-block { font-family: var(--font-mono); font-size: 12px; color: var(--ink-strong); background: var(--gray-0); padding: 14px 16px; line-height: 1.65; white-space: pre; overflow: auto; max-height: 240px; letter-spacing: 0.04em; } .cloning-preview-block .sec-flank, .cloning-preview-block .sec-vector_5p, .cloning-preview-block .sec-vector_3p { background: #FEF3C7; color: #92400E; border-radius: 1px; } .cloning-preview-block .sec-cds { background: var(--brand-50); color: var(--brand-deep); border-radius: 1px; } .cloning-preview-block .sec-n_tag, .cloning-preview-block .sec-c_tag { background: #FCE7F3; /* pink-50: distinct from amber + brand */ color: #9D174D; border-radius: 1px; } .cloning-preview-block .sec-linker_n, .cloning-preview-block .sec-linker_c { background: #E0E7FF; /* indigo-50: linker / cleavage site */ color: #3730A3; border-radius: 1px; } /* ───── Designer — multi-step picker ──────────────────────────────────── */ .cloning-designer { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; } .designer-controls { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: var(--gray-1); border: 1px solid var(--line); border-radius: var(--r-3); } .designer-step { display: flex; flex-direction: column; gap: 6px; } .designer-step-row { flex-direction: row; flex-wrap: wrap; gap: 12px; } .designer-step-row > div { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 6px; } .designer-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 600; } .designer-hint { font-size: 12px; color: var(--ink-soft); line-height: 1.55; padding-top: 2px; } .designer-hint strong { color: var(--ink-strong); font-weight: 600; } .designer-preview { display: flex; flex-direction: column; gap: 0; } .legend-vector { background: #FEF3C7; border: 1px solid #FDE68A; } .legend-tag { background: #FCE7F3; border: 1px solid #FBCFE8; } .legend-linker { background: #E0E7FF; border: 1px solid #C7D2FE; } .legend-cdsBrand { background: var(--brand-50); border: 1px solid var(--brand-100); } .cloning-legend { gap: 10px; flex-wrap: wrap; } .designer-warnings { padding: 12px 14px; background: var(--gray-0); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; } .designer-warnings h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 700; margin-bottom: 8px; } .designer-warnings ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; } .designer-warnings li { padding: 8px 10px; border-radius: var(--r-1); border-left: 3px solid; } .designer-warnings .warn-high { background: #FEF2F2; border-color: var(--danger); color: #7F1D1D; } .designer-warnings .warn-medium { background: #FFFBEB; border-color: #D97706; color: #78350F; } .designer-warnings .warn-low { background: var(--gray-1); border-color: var(--gray-5); color: var(--ink-soft); } .designer-warnings.warn-pass { color: var(--success); font-weight: 600; padding: 10px 14px; } @media (max-width: 959px) { .designer-controls { padding: 14px 14px; gap: 10px; } .designer-step-row { flex-direction: column; gap: 10px; } .designer-step-row > div { min-width: 0; } } .cloning-notes, .cloning-sublabel { padding: 0 14px 12px; font-size: 12px; color: var(--ink-soft); line-height: 1.6; } .cloning-notes strong { color: var(--ink-strong); font-weight: 700; } .cloning-sublabel { color: var(--ink-faint); } @media (max-width: 959px) { .cloning-meta { padding: 9px 12px; font-size: 11px; gap: 10px; } .cloning-legend { width: 100%; margin-left: 0; } .cloning-preview-block { font-size: 11px; padding: 12px 12px; } .cloning-notes, .cloning-sublabel { padding: 0 12px 12px; font-size: 11px; } } /* ====================================== SYNTH ROW (per-row vendor buttons) */ .synth-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 14px 16px; background: var(--gray-0); border: 1px solid var(--line); border-radius: var(--r-2); } .synth-row-label { font-size: 11px; color: var(--ink-faint); font-weight: 600; margin-right: 6px; text-transform: uppercase; letter-spacing: 0.08em; } .synth-row .synth-btn { flex: 1; min-width: 130px; max-width: 220px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%); border-color: var(--brand-deep); color: var(--gray-0); font-weight: 600; box-shadow: 0 1px 2px rgba(10, 95, 119, 0.22), inset 0 1px 0 rgba(255,255,255,0.18); } .synth-row .synth-btn:hover { background: linear-gradient(180deg, var(--brand-deep) 0%, #0E0D0C 100%); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(14, 124, 154, 0.30), inset 0 1px 0 rgba(255,255,255,0.18); } .synth-row .synth-btn.copied { background: var(--success); border-color: var(--success); color: var(--gray-0); } .synth-arrow { font-weight: 400; opacity: 0.85; display: inline-block; transition: transform var(--t-fast) var(--ease); } .synth-row .synth-btn:hover .synth-arrow { transform: translate(2px, -2px); opacity: 1; } .gc-warn { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--warning-light); color: var(--warning); font-size: 10px; font-weight: 600; margin-left: 6px; border: 1px solid #FDE68A; letter-spacing: 0.02em; } .sequence-block { font-family: var(--font-mono); font-size: 12px; color: var(--ink-strong); background: var(--gray-0); border: 1px solid var(--line); border-radius: var(--r-2); padding: 14px 16px; line-height: 1.65; white-space: pre; overflow: auto; max-height: 280px; letter-spacing: 0.04em; } .seq-num { color: var(--ink-faint); font-weight: 500; user-select: none; } /* ----- WT pseudo-row in the variant table ----------------------------- */ .variant-wt-row td { background: var(--brand-50, #ECFEFA); border-top: 2px solid var(--brand, #3D3A34) !important; } .variant-wt-row .rank-wt { display: inline-block; font-weight: 700; color: var(--brand-deep, #0E0D0C); letter-spacing: 0.06em; font-size: 11px; text-transform: uppercase; } .wt-badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--brand, #3D3A34); color: #FFF; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; } /* Sentinel state for when the server failed to build the WT row (closes * audit H5 — was silently omitted before, now renders as an explicit * error badge that hovers to show the full reason). */ .wt-badge-error { background: var(--danger, #DC2626); color: #FFF; cursor: help; } .detail-panel-wt { border-left: 3px solid var(--brand, #3D3A34); padding-left: 14px; } /* ----- Restriction-site warning state ----------------------------------- * * * A variant whose Restriction_Sites_Unresolved > 0 is one whose codon- * optimized DNA still contains a BsaI / BsmBI / NotI recognition site * that synonymous scrubbing couldn't break (typically because the * overlapping codons have no synonymous alternatives that don't * recreate the site). Golden Gate / Type IIS assemblies will cut the * insert at these positions. We surface this as: * - Red left border on the table row. * - Banner at the top of the detail panel naming the count + risk. * - Synthesize buttons styled as warnings; click intercepts with a * confirm() so a hurried click can't ship a broken insert. */ .variant-row-re-warn td { box-shadow: inset 3px 0 0 0 var(--danger, #DC2626); } .detail-panel-re-warn { border-left: 3px solid var(--danger, #DC2626); padding-left: 14px; } .re-warn-banner { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--danger, #DC2626); background: #FEF2F2; color: #7F1D1D; border-radius: var(--r-2); font-size: 13px; line-height: 1.5; } .re-warn-banner strong { display: block; margin-bottom: 4px; font-family: var(--font-display, Georgia, serif); font-size: 15px; font-weight: 700; color: #7F1D1D; } .re-warn-banner p { margin: 0; } .synth-btn.synth-btn-warn, .copy-btn.synth-btn-warn { border-color: var(--danger, #DC2626); color: #7F1D1D; } .synth-btn.synth-btn-warn::after { content: ' ⚠'; margin-left: 4px; font-size: 12px; } /* ----- Manual DNA edit -------------------------------------------------- */ .dna-edit-section .dna-edit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; } .dna-edit-actions { display: flex; gap: 6px; flex-wrap: wrap; } .ghost-btn { appearance: none; -webkit-appearance: none; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-2); color: var(--ink-strong); padding: 6px 12px; font-size: 12px; font-weight: 500; cursor: pointer; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); font-family: inherit; } .ghost-btn:hover { border-color: var(--brand); color: var(--brand-deep); } .dna-edit-textarea { width: 100%; box-sizing: border-box; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; letter-spacing: 0.05em; color: var(--ink-strong); background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-2); padding: 12px 14px; resize: vertical; min-height: 160px; word-break: break-all; white-space: pre-wrap; } .dna-edit-textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 124, 154, 0.12); } .dna-edit-stats { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; } .dna-stat-pill { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--gray-1); border: 1px solid var(--line); font-size: 11px; color: var(--ink-soft); margin-right: 4px; font-family: var(--font-mono); } .dna-edit-warnings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; } .dna-edit-warnings li { padding: 6px 10px; border-radius: var(--r-2); border: 1px solid var(--line); font-size: 12px; line-height: 1.45; } .dna-edit-warnings .warn-high { background: #FEF2F2; border-color: var(--danger, #DC2626); color: #7F1D1D; } .dna-edit-warnings .warn-medium { background: #FFFBEB; border-color: #D97706; color: #78350F; } .dna-edit-warnings .warn-low { background: var(--gray-1); border-color: var(--gray-5); color: var(--ink-soft); } .dna-edit-ok { padding: 6px 10px; border-radius: var(--r-2); background: var(--brand-50, #ECFEFA); border: 1px solid var(--brand, #3D3A34); color: var(--brand-deep, #0E0D0C); font-size: 12px; } /* Inline state line beneath the warnings — used for "Saving…" feedback * during the atomic /api/variants POST and for inline error messages * surfaced from the server when validation fails. .dna-edit-saving picks * up brand color to read as a progress signal, not an error. */ .dna-edit-extra { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); line-height: 1.5; } .dna-edit-extra .dna-edit-saving { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-deep, #0E0D0C); } .dna-edit-extra .dna-edit-saving::before { content: ''; width: 10px; height: 10px; border: 1.5px solid var(--brand); border-top-color: transparent; border-radius: 50%; display: inline-block; animation: dna-edit-spin 0.9s linear infinite; } .dna-edit-extra .warn-high { color: #7F1D1D; } @keyframes dna-edit-spin { to { transform: rotate(360deg); } } /* Save button disables while a /api/variants POST is in flight or when * the current textarea contents fail high-severity validation. Visually * reads as "not now" rather than "broken". */ .ghost-btn.dna-edit-toggle:disabled, .ghost-btn.dna-edit-toggle[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; } /* ============================================================ DOWNLOAD MENU */ .download-menu { position: relative; display: inline-block; } .download-trigger .caret { margin-left: 4px; font-size: 10px; color: var(--ink-faint); transition: transform var(--t-fast) var(--ease); display: inline-block; } .download-trigger.open .caret { transform: rotate(180deg); color: var(--brand); } .download-menu-items { position: absolute; top: calc(100% + 6px); right: 0; min-width: 280px; background: var(--gray-0); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--elev-4); padding: 6px; z-index: 50; animation: menuIn 140ms var(--ease); } @keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } } .download-item { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: var(--r-2); color: var(--ink-strong); cursor: pointer; transition: background var(--t-fast) var(--ease); } .download-item:hover { background: var(--gray-2); } .dl-name { font-size: 13px; font-weight: 600; color: var(--ink-strong); } .dl-desc { font-size: 11px; color: var(--ink-faint); } /* ============================================================ VIEWS ROUTER */ .view { display: flex; flex-direction: column; gap: 20px; } .view[hidden] { display: none; } /* ============================================================ LIBRARY LIST */ .library-list { display: flex; flex-direction: column; gap: 8px; } .lib-row { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 16px; align-items: center; padding: 14px 16px; background: var(--gray-0); border: 1px solid var(--line); border-radius: var(--r-2); transition: all var(--t-fast) var(--ease); } .lib-row:hover { border-color: var(--line-bold); background: var(--gray-1); } .lib-row-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .lib-row-name { font-weight: 600; color: var(--ink-strong); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lib-row-meta { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; } .lib-row-stat { text-align: right; font-variant-numeric: tabular-nums; } .lib-row-stat-num { font-size: 14px; font-weight: 600; color: var(--ink-strong); } .lib-row-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 600; } .lib-row-actions { display: flex; gap: 6px; } .lib-row-actions .ghost { padding: 5px 10px; font-size: 12px; } .lib-row-actions .ghost-danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-light); } /* ============================================================ HISTORY */ .history-timeline { display: flex; flex-direction: column; gap: 2px; padding-left: 8px; position: relative; } .history-timeline::before { content: ''; position: absolute; top: 12px; bottom: 12px; left: 10px; width: 1px; background: var(--line); } .hist-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px 10px 8px; border-radius: var(--r-2); background: var(--gray-0); border: 1px solid var(--line); margin-left: 12px; position: relative; transition: all var(--t-fast) var(--ease); } .hist-item:hover { border-color: var(--line-bold); } .hist-item::before { content: ''; position: absolute; left: -16px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--brand); border: 2px solid var(--gray-0); box-shadow: 0 0 0 1px var(--line); } .hist-dot { width: 28px; height: 28px; border-radius: var(--r-2); background: var(--brand-50); color: var(--brand-deep); display: inline-flex; align-items: center; justify-content: center; } .hist-dot svg { width: 14px; height: 14px; } .hist-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .hist-title { font-size: 13px; font-weight: 500; color: var(--ink-strong); } .hist-meta { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; } .hist-time { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; } /* ============================================================ DOCS */ .docs-card { max-width: 760px; } .docs-body { display: flex; flex-direction: column; gap: 28px; } .docs-body section { display: flex; flex-direction: column; gap: 10px; } .docs-body h3 { font-size: 15px; font-weight: 600; color: var(--ink-strong); letter-spacing: -0.005em; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 4px; } .docs-body p { font-size: 13px; line-height: 1.65; color: var(--ink); } .docs-list { padding-left: 22px; font-size: 13px; line-height: 1.65; color: var(--ink); } .docs-list li + li { margin-top: 6px; } .docs-list code, .docs-body code { font-family: var(--font-mono); font-size: 12px; background: var(--gray-2); padding: 1px 6px; border-radius: var(--r-1); color: var(--ink-strong); } .docs-callout { margin-top: 6px; padding: 12px 14px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r-2); font-size: 12px; color: var(--brand-deep); line-height: 1.6; } .docs-table { border-collapse: collapse; font-size: 13px; width: 100%; max-width: 480px; } .docs-table th, .docs-table td { text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--line); } .docs-table th { background: var(--gray-1); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 600; } .docs-citation { font-size: 12px !important; color: var(--ink-soft) !important; line-height: 1.6; padding-left: 14px; border-left: 2px solid var(--line-strong); } .docs-citation cite { font-style: italic; color: var(--ink); } /* ======================================================= EMPTY STATE */ .empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 32px 64px; background: var(--bg-card); border: 1px dashed var(--line-strong); border-radius: var(--r-4); gap: 18px; } .empty-state[hidden] { display: none; } .empty-art { width: 220px; max-width: 100%; margin-bottom: 8px; } .empty-art img, .empty-art .empty-art-fallback { width: 100%; height: auto; display: block; } .empty-title { font-size: 17px; font-weight: 600; color: var(--ink-strong); letter-spacing: -0.01em; } .empty-sub { font-size: 13px; color: var(--ink-soft); max-width: 52ch; line-height: 1.6; } .empty-sub strong { color: var(--ink-strong); font-weight: 600; } /* ============================================================== ERROR */ .error-banner { background: var(--danger-light); border: 1px solid #FECACA; border-left: 3px solid var(--danger); color: var(--danger); padding: 14px 18px; border-radius: var(--r-2); margin-top: 16px; font-size: 13px; line-height: 1.55; } .error-banner strong { display: block; margin-bottom: 4px; font-weight: 700; } .error-banner > div { margin-top: 6px; color: var(--ink-soft); } .error-banner code { font-family: var(--font-mono); background: rgba(185, 28, 28, 0.10); padding: 1px 6px; border-radius: var(--r-1); font-size: 12px; color: var(--danger); font-weight: 500; } .error-hint { margin-top: 10px !important; padding-top: 10px; border-top: 1px dashed #FECACA; color: var(--ink-soft); font-size: 12px; line-height: 1.55; } /* ============================================================== MODAL (Twist) */ .modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; } .modal[hidden] { display: none; } .modal-backdrop { position: absolute; inset: 0; background: rgba(14, 20, 27, 0.45); backdrop-filter: blur(2px); animation: backdropIn 180ms var(--ease); } /* Disclaimer modals use a fixed-position backdrop that doesn't dismiss on * click — the user must click the explicit Accept / Cancel button. This is * the legal-narrative requirement: clicking past the disclaimer must be a * deliberate, named action, not an accidental backdrop tap. */ .modal-backdrop-fixed { position: fixed; pointer-events: none; } @keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } } .modal-panel { position: relative; background: var(--gray-0); border: 1px solid var(--line); border-radius: var(--r-4); box-shadow: var(--elev-5); max-width: 640px; width: 100%; max-height: calc(100vh - 48px); display: flex; flex-direction: column; animation: panelIn 220ms var(--ease); } @keyframes panelIn { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } } /* Docked side-sheet variant — auth prompts read as a structured right-hand panel instead of a centred overlay that covers the workspace. Reuses the .modal-panel / -header / -body internals; only the layout + scrim change. */ .modal--sheet { justify-content: flex-end; align-items: stretch; padding: 0; } .modal--sheet .modal-backdrop { background: rgba(10, 10, 10, 0.16); backdrop-filter: none; } .modal--sheet .modal-panel { max-width: 400px; width: 400px; height: 100%; max-height: 100%; border-radius: 0; border: none; border-left: 1px solid var(--line); box-shadow: -18px 0 50px rgba(20, 19, 16, 0.20); animation: sheetIn 240ms cubic-bezier(0.22, 0.61, 0.36, 1); } @keyframes sheetIn { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } } .modal--sheet .modal-body { display: flex; flex-direction: column; flex: 1; } .modal--sheet .blast-consent-actions { margin-top: auto; flex-direction: column; align-items: stretch; gap: 10px; } .modal--sheet .blast-consent-actions .primary, .modal--sheet .blast-consent-actions .ghost { width: 100%; justify-content: center; text-align: center; } @media (max-width: 520px) { .modal--sheet .modal-panel { width: 100%; max-width: 100%; border-left: none; } } .modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); gap: 16px; } .modal-header h2 { font-size: 16px; font-weight: 600; color: var(--ink-strong); margin-bottom: 2px; letter-spacing: -0.005em; } .modal-sub { font-size: 12px; color: var(--ink-faint); } .modal-close { width: 30px; height: 30px; border-radius: var(--r-2); background: transparent; color: var(--ink-faint); font-size: 22px; line-height: 1; transition: all var(--t-fast) var(--ease); flex-shrink: 0; } .modal-close:hover { background: var(--gray-2); color: var(--ink); } .modal-body { padding: 18px 22px 22px; overflow-y: auto; } .modal-loading { display: flex; align-items: center; gap: 12px; padding: 20px 0; color: var(--ink-soft); font-size: 13px; } /* ===== Twist quote display ============================================ */ .quote-hero { background: linear-gradient(180deg, var(--brand-50) 0%, var(--gray-0) 100%); border: 1px solid var(--brand-100); border-radius: var(--r-3); padding: 14px 18px 16px; margin-bottom: 16px; } .quote-hero-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; } .quote-hero-numbers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; } .quote-hero-num { display: flex; flex-direction: column; gap: 2px; } .quote-hero-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 600; } .quote-hero-val { font-size: 30px; font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.1; } .quote-hero-unit { font-size: 16px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; margin-left: 2px; } .quote-hero-divider { width: 1px; height: 36px; background: var(--line); } .quote-headline { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; } .quote-id { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; } .quote-total { font-size: 22px; font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; } .quote-total-label { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; } .quote-status-pill { align-self: start; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid; background: var(--success-light); color: var(--success); border-color: rgba(4, 120, 87, 0.22); } .quote-status-pill.review { background: var(--warning-light); color: var(--warning); border-color: #FDE68A; } .quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; margin-bottom: 16px; } .quote-tile { background: var(--gray-0); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; } .quote-tile .label { font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; } .quote-tile .val { font-size: 14px; font-weight: 600; color: var(--ink-strong); font-variant-numeric: tabular-nums; } .quote-lineitems { border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; margin-bottom: 16px; } .qli { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: center; } .qli:last-child { border-bottom: none; } .qli-name { font-family: var(--font-mono); font-size: 12px; color: var(--ink-strong); font-weight: 600; } .qli-meta { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; } .qli-price { font-weight: 600; color: var(--ink-strong); font-variant-numeric: tabular-nums; } .complexity-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; } .complexity-flag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; background: var(--warning-light); color: var(--warning); border: 1px solid #FDE68A; } .complexity-flag.biosec { background: var(--danger-light); color: var(--danger); border-color: #FECACA; } .quote-actions { display: flex; gap: 8px; justify-content: flex-end; } /* ===== Twist order form =============================================== */ .order-form { display: flex; flex-direction: column; gap: 14px; } .order-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .order-form-grid .field-full { grid-column: 1 / -1; } .order-field { display: flex; flex-direction: column; gap: 4px; } .order-field label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 600; } .order-field input { font-family: var(--font-ui); font-size: 13px; } .order-terms { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; background: var(--gray-1); border: 1px solid var(--line); border-radius: var(--r-2); font-size: 12px; color: var(--ink-soft); line-height: 1.5; } .order-terms input { width: 16px; height: 16px; margin-top: 2px; box-shadow: none; } /* ===== Order confirmation =============================================== */ .order-confirm { text-align: center; padding: 12px 8px; } .order-confirm .checkmark { width: 56px; height: 56px; margin: 8px auto 14px; border-radius: 50%; background: var(--success-light); color: var(--success); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(4,120,87,0.22); } .order-confirm .checkmark svg { width: 28px; height: 28px; } .order-confirm h3 { font-size: 18px; font-weight: 600; color: var(--ink-strong); margin-bottom: 8px; } .order-confirm .order-id { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--brand-deep); background: var(--brand-50); padding: 4px 12px; border-radius: var(--r-2); display: inline-block; margin-bottom: 14px; } .order-confirm .order-detail { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; } /* ============================================================= TOAST */ .toast { position: fixed; top: 0; left: 50%; transform: translate(-50%, -100%); z-index: 1000; background: var(--ink-strong); color: var(--gray-0); padding: 12px 22px; border-radius: 999px; margin-top: 20px; font-size: 13px; font-weight: 500; box-shadow: var(--elev-5); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 64px); opacity: 0; transition: transform 280ms var(--ease), opacity 200ms var(--ease); pointer-events: none; } .toast.toast-in { transform: translate(-50%, 0); opacity: 1; } .toast.toast-out { transform: translate(-50%, -120%); opacity: 0; } .toast-check { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: var(--gray-0); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; } .toast-msg { line-height: 1.4; } .toast-warn { background: #78350F; } .toast-warn .toast-check { background: var(--warning); } /* Error toasts get the most aggressive treatment — red border + saturated * background — because they're shown when the clipboard write fails, which * is one of our highest-stakes user errors: failing to copy DNA before * opening a vendor's order form means whatever was previously on the * clipboard gets pasted instead. The user MUST see this. */ .toast-error { background: #7F1D1D; border: 1px solid #DC2626; box-shadow: 0 6px 24px rgba(220, 38, 38, 0.32); } .toast-error .toast-check { background: var(--danger, #DC2626); content: '!'; } /* ==================================================================== * RESEARCH USE ONLY STRIP * -------------------------------------------------------------------- * Permanently visible strip under the topbar. Visual treatment: warm * paper background with a tinted left rule — feels like a museum * placard, not a JavaScript alert(). Read as documentation, not as a * popup the user wants to dismiss. The dot uses the warning color so * it pulls the eye but doesn't shout. The "Why?" link re-opens the * full first-use disclaimer for users who want the long form. * ==================================================================== */ .research-strip { display: flex; align-items: center; gap: 10px; padding: 8px max(env(safe-area-inset-right, 0px), 20px) 8px max(env(safe-area-inset-left, 0px), 20px); background: #FFF8EC; border-bottom: 1px solid #E8D8AC; box-shadow: inset 4px 0 0 0 #B47A1F; font-family: var(--font-body); font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); /* Stays in normal flow so it never overlaps card content. */ flex-shrink: 0; } .research-strip-dot { color: #B47A1F; font-size: 9px; line-height: 1; } .research-strip-text strong { color: var(--ink-strong); font-weight: 600; margin-right: 6px; font-family: var(--font-display, Georgia, serif); font-style: italic; } .research-strip-link { margin-left: auto; background: transparent; border: 0; padding: 0; color: var(--brand-deep, #1B1A17); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; } .research-strip-link:hover { color: var(--brand, #3D3A34); } /* Dark mode: the strip's hardcoded cream/amber palette (#FFF8EC bg, #E8D8AC * border, #B47A1F bar) reads as a glaring light band on the dark canvas. * Repaint it as a subtle amber wash that sits on dark paper — the bronze * left-bar + dot survive as the caution cue, text/link inherit themed ink. */ :root[data-theme="dark"] .research-strip { background: rgba(180, 120, 40, 0.10); border-bottom-color: var(--line); box-shadow: inset 4px 0 0 0 var(--warning); } :root[data-theme="dark"] .research-strip-dot { color: var(--warning); } /* ==================================================================== * DISCLAIMER MODAL — first-use + per-session synthesis confirmation * -------------------------------------------------------------------- * Editorial register matching the boot screen and the rest of the app: * § kicker, italic display title, hairline rule, body copy, explicit * button row at the bottom. Backdrop is fixed and click-through-proof. * Narrower than the Twist modal because the content is mostly text. * ==================================================================== */ .modal-panel-narrow { max-width: 540px; } .modal-disclaimer .disclaimer-body { padding: 30px 32px 26px; font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--ink); } .modal-disclaimer .boot-kicker { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.16em; margin: 0 0 8px; } .disclaimer-title { font-family: var(--font-display, Georgia, serif); font-style: italic; font-weight: 700; font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink-strong); margin: 0 0 4px; } .disclaimer-title em { font-style: italic; font-weight: 900; } .modal-disclaimer .boot-rule { border: 0; border-top: 1px solid var(--rule, var(--line)); width: 64px; margin: 10px 0 14px; } .disclaimer-body p { margin: 0 0 12px; } .disclaimer-detail-block { margin: 0 0 16px; padding: 12px 14px; background: var(--gray-1); border: 1px solid var(--line); border-radius: var(--r-2); font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; } .disclaimer-detail-block strong { color: var(--ink-strong); font-weight: 600; } .disclaimer-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 6px 0 18px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--gray-1); cursor: pointer; user-select: none; } .disclaimer-check input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--brand, #3D3A34); } .disclaimer-check span { font-size: 13.5px; line-height: 1.5; } .disclaimer-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 10px; } .disclaimer-actions .primary:disabled, .disclaimer-actions .primary[disabled] { opacity: 0.55; cursor: not-allowed; background: var(--gray-3); color: var(--ink-faint); border-color: var(--line); } .disclaimer-meta { margin: 14px 0 0; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em; } /* =========================================================== RESPONSIVE * Mobile-first stack: * < 960 px (phone + small tablet) : sidebar becomes a slide-out drawer * triggered from a hamburger button in * the topbar; topbar collapses; cards, * stats strip, modals, tables all tighten. * ≥ 960 px (desktop) : full layout above this block. */ /* Hamburger button — surfaced only on phone/tablet. */ .nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-2); color: var(--ink-soft); border: 1px solid var(--line-strong); background: var(--gray-0); box-shadow: var(--elev-1); margin-right: 10px; -webkit-tap-highlight-color: transparent; transition: all var(--t-fast) var(--ease); } .nav-toggle:hover, .nav-toggle:active { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-50); } .nav-toggle svg { width: 18px; height: 18px; } /* Light / dark theme toggle — sits at the right edge of the topbar on every * viewport. 44px tap target (iOS HIG). Shows a moon in light mode (tap → go * dark) and a sun in dark mode (tap → go light); the swap is pure CSS keyed * off the attribute. */ .theme-toggle { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-2); color: var(--ink-soft); border: 1px solid var(--line-strong); background: var(--bg-raised); box-shadow: var(--elev-1); -webkit-tap-highlight-color: transparent; transition: all var(--t-fast) var(--ease); } .theme-toggle:hover, .theme-toggle:active { border-color: var(--brand); color: var(--brand); background: var(--brand-50); } .theme-toggle svg { width: 18px; height: 18px; } /* Icon swap — specificity matched (.theme-toggle .theme-icon-*) so neither the * base `.theme-toggle svg` rule nor the dark override can leak both icons in. */ .theme-toggle .theme-icon-sun { display: none; } .theme-toggle .theme-icon-moon { display: block; } :root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; } :root[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; } /* Backdrop that covers the workspace when the drawer is open. */ .sidebar-scrim { position: fixed; inset: 0; background: rgba(14, 20, 27, 0.45); z-index: 49; opacity: 0; transition: opacity var(--t-base) var(--ease); pointer-events: none; } .sidebar-scrim[hidden] { display: block; } /* keep box for transition */ body.sidebar-open .sidebar-scrim { opacity: 1; pointer-events: auto; } @media (max-width: 959px) { /* On mobile the sidebar is a fixed drawer (no sticky), so clipping horizontal overflow here is safe and stops any stray element — plus the off-canvas drawer — from letting the page pan/bounce sideways on iOS. */ html, body { overflow-x: hidden; } .app { grid-template-columns: 1fr; } /* Sidebar = slide-in drawer from the left. Fixed positioning so it overlays the workspace instead of pushing content. */ .sidebar { position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; height: 100dvh; width: 80vw; max-width: 280px; z-index: 50; transform: translateX(-100%); /* visibility:hidden when closed so the off-screen fixed drawer can't be a horizontal scroll/pan target on iOS; flips visible instantly on open and hides after the slide-out finishes (0s delay = --t-slow). */ visibility: hidden; transition: transform var(--t-slow) var(--ease), visibility 0s linear var(--t-slow); box-shadow: var(--elev-4); padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(18px, env(safe-area-inset-bottom)); padding-left: max(14px, env(safe-area-inset-left)); flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; } body.sidebar-open .sidebar { transform: translateX(0); visibility: visible; transition: transform var(--t-slow) var(--ease), visibility 0s linear 0s; } .nav-toggle { display: inline-flex; flex-shrink: 0; } .topbar { padding: 0 14px; background: var(--bg-app); backdrop-filter: none; -webkit-backdrop-filter: none; } .breadcrumb { font-size: 12px; min-width: 0; overflow: hidden; flex: 1; } .crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .topbar-actions { margin-left: auto; flex-shrink: 0; } /* Search trigger: icon only on phones — label + ⌘K kbd hidden. */ .cmd-trigger { padding: 7px 10px; min-width: 40px; min-height: 40px; } .cmd-trigger .cmd-trigger-text, .cmd-trigger kbd { display: none; } .workspace { padding: 18px 14px 28px; max-width: 100%; } .card { padding: 18px 16px; border-radius: var(--r-3); } /* Stack the section header on phones — kicker / title / sub were three flex columns crammed into ~340px, wrapping "Provide a wild-type" one word per line. Vertical stack reads cleanly. */ .card-header { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; padding-bottom: 12px; } .card-header h2 { font-size: 17px; } .card-sub { font-size: 11px; } .step-num { width: 26px; height: 26px; font-size: 11px; } .hero { grid-template-columns: 1fr; padding: 20px 18px; gap: 14px; } .hero h1 { font-size: 22px; line-height: 1.18; } .hero-lede { font-size: 13px; } .hero-pipeline { display: none; } /* Stats strip: 2-column on phone instead of 5+ slivers. */ .stats-strip { grid-template-columns: repeat(2, 1fr); } .stat-tile { padding: 12px 14px; } .stat-val { font-size: 19px; } .stat-sub { font-size: 10px; } /* Input tabs: horizontal scroll if they don't fit. */ .input-tabs { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .input-tabs::-webkit-scrollbar { display: none; } .tab { flex-shrink: 0; } .dropzone { padding: 28px 18px; gap: 10px; } .dz-icon { width: 38px; height: 38px; } .dz-icon svg { width: 18px; height: 18px; } .dz-copy strong { font-size: 13px; } .dz-copy span { font-size: 12px; } .dz-formats { font-size: 10px; gap: 3px; } /* 16px on the paste editor (gutter + textarea kept equal so the line numbers stay aligned) — anything smaller makes iOS Safari zoom in on focus, then the user has to pinch back out. */ .paste-shell { font-size: 16px; } .paste-gutter { min-width: 42px; padding: 9px 8px 9px 10px; font-size: 16px; } .paste-shell textarea { font-size: 16px; } .paste-actions { flex-direction: column; align-items: stretch; gap: 8px; } .paste-stats { text-align: center; } .preview { padding: 14px 16px; } .preview-meta { gap: 14px; } .setting-grid { grid-template-columns: 1fr; gap: 14px; } .primary-lg { padding: 14px 18px; font-size: 13px; min-height: 50px; } .card-header.results-header { flex-wrap: wrap; } .results-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; } /* 16px on every text control so iOS Safari doesn't zoom in on focus. */ .order-field input { font-size: 16px; } .table-toolbar { flex-direction: column; align-items: stretch; gap: 8px; } .table-count { text-align: right; } .result-table-wrap { max-height: 60vh; max-height: 60dvh; } .result-table th, .result-table td { padding: 8px 10px; font-size: 12px; } .result-table td.mutations { font-size: 11px; } /* Mutations cell on mobile: tokens wrap to multiple lines instead of * forcing the column wider than viewport. Without this the cell * single-lines all chips (M248E A249E M471G …) and the table * stretches off-screen — the user sees only the first two columns * and has to horizontally scroll, which (a) the screenshot shows * looks broken and (b) hides the Fold + expand buttons. */ .result-table td.mutations { white-space: normal; max-width: 220px; } .result-table td.mutations .mut-token { display: inline-block; margin: 1px 4px 1px 0; } .result-table td.mutations .mut-token + .mut-token { margin-left: 0; } /* Tighten the rank / num cells so they don't claim more width than they * need. The protein-LM scores fit in 5 chars; Length_bp in 5–6. */ .result-table td.rank, .result-table th.rank-h { min-width: 56px; } .result-table td.num, .result-table th.num { padding-left: 8px; padding-right: 8px; } /* Two structure buttons (ESMFold + AlphaFold) share the actions cell on * phones, so shrink them and let the cell wrap instead of overflowing. */ .result-table .row-actions { flex-wrap: wrap; gap: 4px; } .result-table .fold-btn, .result-table .alphafold-btn { padding: 4px 8px; font-size: 10px; min-width: 0; white-space: nowrap; } .result-table .fold-btn-disabled { opacity: 0.45; } /* Inline tooltip targets — :hover doesn't fire on touch, so make the * disabled-Fold tooltip information reachable. Tap = focus = native * title bubble on most iOS / Android browsers. */ .result-table .fold-btn-disabled[disabled] { pointer-events: auto; /* override disabled's no-events */ } .detail-panel { padding: 16px 14px; gap: 16px; } .pcr-summary { gap: 14px; padding: 12px 14px; } .primer-grid { grid-template-columns: 1fr; } .primer-actions { flex-direction: column; } .synth-row { padding: 12px 12px; } .synth-row .synth-btn { max-width: 100%; } .mutmap-card { padding: 14px 14px 16px; } .mutmap-head { flex-direction: column; align-items: flex-start; gap: 8px; } .mutmap-canvas svg { height: 160px; } .run-meta { padding: 12px 14px; } .run-meta-pills { gap: 5px; } .run-methods { padding: 11px 13px; font-size: 11px; } /* Twist gateway modal: bottom sheet on phones. */ .modal { padding: 0; align-items: flex-end; } .modal-panel { width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: var(--r-4) var(--r-4) 0 0; padding-bottom: env(safe-area-inset-bottom); animation: panelInMobile 240ms var(--ease); } @keyframes panelInMobile { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .modal-header { padding: 16px 18px 12px; } .modal-body { padding: 14px 18px 22px; } .quote-hero-numbers { grid-template-columns: 1fr; gap: 12px; } .quote-hero-divider { display: none; } .quote-hero-val { font-size: 24px; } .quote-grid { grid-template-columns: 1fr 1fr; } .order-form-grid { grid-template-columns: 1fr; } .lib-row { grid-template-columns: 1fr; gap: 8px; } .lib-row-actions { justify-content: flex-end; } .hist-item { grid-template-columns: auto 1fr; } .hist-time { grid-column: 2 / -1; } .empty-art { width: 160px; } .empty-title { font-size: 15px; } .empty-sub { font-size: 12px; } .identify-row { flex-direction: column; align-items: stretch; gap: 8px; } .identify-btn { justify-content: center; } .identify-hit { grid-template-columns: auto 1fr; gap: 8px; } .identify-hit-stats { grid-column: 1 / -1; text-align: left; font-size: 10px; } .alphafold-viewer { height: 280px; height: 32dvh; } /* Toast at the bottom on phones — fits better with thumb position. */ .toast { top: auto; bottom: 18px; margin-top: 0; margin-bottom: env(safe-area-inset-bottom); max-width: calc(100vw - 32px); transform: translate(-50%, 120%); } .toast.toast-in { transform: translate(-50%, 0); } .toast.toast-out { transform: translate(-50%, 120%); } } /* Larger phones / small tablets — give more breathing room. */ @media (min-width: 540px) and (max-width: 959px) { .workspace { padding: 22px 22px 36px; } .card { padding: 22px 22px; } .hero h1 { font-size: 26px; } .stats-strip { grid-template-columns: repeat(3, 1fr); } .quote-grid { grid-template-columns: repeat(4, 1fr); } .order-form-grid { grid-template-columns: 1fr 1fr; } } /* ════════════════════════════════════════════════════════════════════════ * EDITORIAL OVERLAY * ----------------------------------------------------------------------- * Final-pass overrides that shift specific components from "tool app * chrome" to "Stripe Press × Nature Methods editorial". Loaded last so * they win the cascade over the prior rules without us having to delete * anything functional. Touches typography, the brand wordmark, primary + * ghost buttons, step numerals, panel cards, hero, modals, table headers. * Tokens already shifted at :root — this section adds the typographic and * structural flourishes that the palette change alone can't carry. * ════════════════════════════════════════════════════════════════════════ */ /* ── Body type at slightly larger size; Source Serif at 14 px is technically readable but visually thin. 15 px gives it the editorial weight the landing page has. Numeric data stays mono so the table doesn't lose its grid. */ html, body { font-size: 15px; line-height: 1.6; font-feature-settings: normal; } body { font-family: var(--font-body); } /* ── Display headlines: Playfair Display italic. Hero / workspace title / modal title / card titles all read as opening sentences of an article. */ h1, .hero h1, .hero-title, .workspace-title, .modal-header h2 { font-family: var(--font-display); font-style: italic; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-strong); } h2, .card-title, .results-title, .panel-title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.005em; color: var(--ink-strong); } h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink-strong); } .hero p, .card-sub, .panel-sub, .modal-sub { font-family: var(--font-body); color: var(--ink-soft); } /* ── Brand wordmark — "TuringDNA" in the sidebar reads as a publication masthead, not a SaaS logo. Italic Playfair sets the tone for the rest of the app the instant a user looks at the sidebar. */ .brand-word { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 17px; letter-spacing: 0.005em; color: var(--ink-strong); } /* ── Step numerals — replace the circled "1 / 2 / 3" pucks with mono section numerals in the "§ 1" style used on the landing. Done state keeps its graphite tick. The .step-num CSS box width still wraps in the layout — we keep the geometry, change the rendering. */ .step-num { background: transparent; border: none; border-radius: 0; color: var(--ink-faint); font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; width: auto; min-width: 28px; padding: 0 4px; } .step-num::before { content: '§ '; color: var(--ink-faint); opacity: 0.75; font-weight: 400; } .step-num.done { background: transparent; border-color: transparent; color: var(--brand); } .step-num.done::before { color: var(--brand); opacity: 0.85; } .step-num.done svg { display: none; } /* ── Sidebar — paper-soft, no shadow, hairline divider. */ .sidebar { border-right: 1px solid var(--line); box-shadow: none; } .nav-section { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-faint); } .nav-item { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--ink-soft); border-radius: var(--r-1); } .nav-item.active { background: transparent; color: var(--brand); font-weight: 600; border-left: 2px solid var(--brand); border-radius: 0; padding-left: 8px; } .nav-item.active .nav-tag { background: var(--brand-50); color: var(--brand); } .model-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-2); } .model-card-label { font-family: var(--font-mono); letter-spacing: 0.14em; } .model-card-meta { font-family: var(--font-mono); } /* ── Topbar — flat paper, mono breadcrumb tone. */ .topbar { background: var(--bg-app); border-bottom: 1px solid var(--line); } .breadcrumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; } /* ── Cards: thin hairline, no heavy shadow. The old design used --elev-3 cards which read as boxed UI panels; editorial pages prefer a single hairline rule. Keep elev-1 for slight separation. */ .card, .results-card, .design-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--elev-1); } /* ── Primary CTA — monochrome ink. Charcoal on light paper, parchment on dark (both via the neutral tokens, so it adapts per theme). Cream/ink text stays readable in either mode. Zero hue — the editorial register comes from the ink + serif type, not a colour accent. */ /* Filled CTAs are a LIGHT bar at rest in BOTH themes (warm-white fill, ink label, hairline edge) that inverts to a near-black rectangle with white text on hover — same behaviour light + dark, matching the outline buttons. */ .primary { background: var(--hover-text); border-color: rgba(10, 10, 10, 0.20); color: var(--hover-fill); border-radius: var(--r-2); box-shadow: 0 1px 2px rgba(20, 19, 16, 0.14); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none; } .primary:not(:disabled):hover { background: var(--hover-fill); border-color: var(--hover-fill); color: var(--hover-text); box-shadow: 0 4px 12px rgba(20, 19, 16, 0.24); } .primary-lg { background: var(--hover-text); border-color: rgba(10, 10, 10, 0.20); color: var(--hover-fill); box-shadow: 0 1px 2px rgba(20, 19, 16, 0.14); } .primary-lg:not(:disabled):hover { background: var(--hover-fill); border-color: var(--hover-fill); color: var(--hover-text); box-shadow: 0 6px 18px rgba(20, 19, 16, 0.24); } /* Icon chip: dark-tint on the light resting bar, light-tint once the bar inverts to black on hover. */ .primary-icon { background: rgba(10,10,10,0.10); } .primary:not(:disabled):hover .primary-icon, .primary-lg:not(:disabled):hover .primary-icon { background: rgba(255,255,255,0.20); } /* ── Ghost / secondary — keep the thin border but tighten typography and make it feel like a text-link with a frame. */ .ghost, .primary-ghost, .ghost-btn, .copy-btn { background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: var(--r-2); font-family: var(--font-body); font-weight: 500; color: var(--ink); } /* Invert on hover: the outline button fills with ink and the label flips to paper — black rect + white text in light mode, and the dark-mode inverse (parchment fill, dark text) so it stays high-contrast in either theme. */ .ghost:hover, .primary-ghost:hover, .ghost-btn:hover, .copy-btn:hover { background: var(--hover-fill); border-color: var(--hover-fill); color: var(--hover-text); } .ghost:hover svg, .ghost-btn:hover svg, .copy-btn:hover svg { color: var(--hover-text); } /* ── Fold button on each variant row — a touch more presence than other ghosts, since it triggers a network call to ESMFold. Archival-blue text on hover, mono tracking so it sits next to the chevron cleanly. */ .fold-btn { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); } .fold-btn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-50); } /* ── Tabs — flatten the pill-segment look to a hairline row. */ .input-tabs { background: transparent; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; gap: 18px; } .tab { background: transparent; border-radius: 0; border-bottom: 2px solid transparent; padding: 8px 2px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); } .tab:hover { color: var(--ink); background: transparent; } .tab.active { background: transparent; color: var(--ink-strong); border-bottom-color: var(--ink-strong); box-shadow: none; } /* ── Dropzone — thin border, paper background. */ .dropzone { border-width: 1px; border-color: var(--line-strong); background: var(--bg-card); } .dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-50); } .dz-icon { background: var(--bg-app); border: 1px solid var(--line); box-shadow: none; } /* ── Results table — header row in mono small-caps, identifier column in mono. Numbers stay tabular. Hairline borders. */ .result-table thead th { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; } .result-table td { font-family: var(--font-body); } .result-table td.rank, .result-table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; } .result-table tbody tr.expandable:hover { background: var(--brand-50); } .expand-toggle { background: transparent; border-color: var(--line); color: var(--ink-faint); box-shadow: none; } .expand-toggle:hover { color: var(--brand); border-color: var(--brand); } .expand-toggle.open { background: var(--brand-50); color: var(--brand); border-color: var(--brand); } /* ── Modal — paper panel with hairline header. Matches the landing's chapter aesthetic; the Fold modal + Twist modal both pick this up. */ .modal-panel { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-4); box-shadow: var(--elev-4); } .modal-header { border-bottom: 1px solid var(--line); } .modal-header h2 { font-family: var(--font-display); font-style: italic; font-weight: 700; letter-spacing: -0.01em; } .modal-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); } .modal-close { background: transparent; color: var(--ink-faint); } .modal-close:hover { color: var(--ink); background: transparent; } /* ── Mol* / structure viewer disclaimers — stay editorial, mono kicker. */ .alphafold-head h4 { font-family: var(--font-display); font-style: italic; font-weight: 700; } .alphafold-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); } .alphafold-disclaimer { font-family: var(--font-body); color: var(--ink-soft); } .alphafold-disclaimer a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; } /* ── Footer note — mono colophon. */ .footer-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-faint); } /* ── Selection — graphite on paper. */ ::selection { background: var(--brand); color: var(--bg-card); } /* ── Fold consent panel — paper card that overlays the dark Mol* viewer slot before the first fold of a session. Editorial chapter anatomy: mono kicker, italic Playfair headline, hairline rule, body in Source Serif, graphite primary CTA. Once the user accepts, this panel is replaced by the loading spinner and then Mol*. */ .fold-consent { position: absolute; inset: 0; background: var(--bg-card); display: flex; flex-direction: column; justify-content: center; padding: 28px 36px; text-align: left; overflow-y: auto; } .fold-consent-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 8px; } .fold-consent-title { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink-strong); margin: 0 0 14px; max-width: 22ch; } .fold-consent-title em { font-weight: 900; font-style: italic; } .fold-consent-body { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 10px; max-width: 56ch; } .fold-consent-body code { font-family: var(--font-mono); font-size: 0.92em; color: var(--ink); background: var(--bg-subtle); padding: 1px 5px; border-radius: var(--r-1); } .fold-consent-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; align-items: center; } @media (max-width: 540px) { .fold-consent { padding: 20px 22px; } .fold-consent-body { font-size: 13px; } .fold-consent-actions { gap: 8px; } .fold-consent-actions .primary, .fold-consent-actions .ghost-btn { width: 100%; } } /* ═══════════════════════════════════════════════════════════════════════ * MOBILE: DETAIL PANEL & SEQUENCE-BLOCK SCROLL LOCK * ─────────────────────────────────────────────────────────────────────── * Closes the bug a user reported 2026-05-27 (Instagram funnel → mobile * is the primary surface): when you expand a variant row on a phone, the * detail-panel content (h4 section titles, the WT/mutant diff display, * the optimized-DNA monospace block, the Cloning Designer card) was * blowing past the viewport width and cutting off mid-word. * * Root causes: * 1. .detail-section h4 had no `overflow-wrap`, so the multi-part * headers ("Mutant protein (6 aa) · mutations highlighted in * brand color") never broke. * 2. .sequence-block uses `white-space: pre` (required for sequence * data) + `overflow: auto`, but had no `max-width` constraint — * so it inherited the parent's natural width which on a phone * pushed the row off-screen instead of internally scrolling. * 3. Several detail-panel children had min-content widths from * flex/grid layouts that didn't shrink below their longest token. * * Fix is a single 540px breakpoint that hard-clamps everything in the * detail-panel tree to the viewport width. Sequence content stays * monospace + pre-formatted (you need the alignment to read mutations), * but the BLOCK that holds it scrolls horizontally inside its row * rather than expanding the row. * ═══════════════════════════════════════════════════════════════════════ */ @media (max-width: 540px) { /* Clamp the detail-panel and every child to viewport width so a * long unbreakable token (DNA codon run) inside one section can't * expand siblings. min-width: 0 on a flex/grid child is the magic * incantation that overrides min-content. */ .detail-panel, .detail-panel > *, .detail-panel .detail-section, .detail-panel .detail-section > * { min-width: 0; max-width: 100%; } /* Headers ("Mutant protein (6 aa) · mutations highlighted in brand * color") were truncating mid-word. Now they wrap normally and * break long words if there's nowhere else to break. */ .detail-section h4 { white-space: normal; overflow-wrap: anywhere; word-break: break-word; line-height: 1.35; } /* Sequence blocks (protein diff, DNA optimized) — keep monospace + * pre formatting so mutation positions stay aligned, but force * horizontal scroll to live INSIDE the block, not extend its * parent's width. max-width: 100% paired with overflow-x: auto. */ .sequence-block { max-width: 100%; overflow-x: auto; overflow-y: auto; padding: 12px 14px; font-size: 11.5px; -webkit-overflow-scrolling: touch; } /* DNA-edit textarea (when "Edit DNA" is open) — same clamp. The * textarea itself can scroll internally; we just don't want it to * blow up the row. */ .dna-edit-textarea { max-width: 100%; font-size: 11.5px; } .dna-edit-section, .dna-edit-section > * { min-width: 0; max-width: 100%; } .dna-edit-head { flex-wrap: wrap; gap: 6px; } .dna-edit-actions { flex-wrap: wrap; gap: 6px; } /* Cloning Designer — multi-step picker. The step buttons + chosen- * card grids assume room for at least two columns; on a phone they * need to stack. */ .cloning-card, .cloning-card > * { min-width: 0; max-width: 100%; } .cloning-card .cloning-step-row { flex-direction: column; align-items: stretch; gap: 8px; } .cloning-card h4, .cloning-card .cloning-step-title { white-space: normal; overflow-wrap: anywhere; } /* Restriction-site warning banner — also wraps on a phone. */ .re-warn-banner { max-width: 100%; } .re-warn-banner p { overflow-wrap: anywhere; } /* Synth row (Twist / IDT / GenScript buttons) — already mostly * mobile-OK but tighten gaps. */ .synth-row { flex-direction: column; align-items: stretch; } /* Last-mile: anything inside the result-table's detail-row TD that * still has its own internal block can scroll horizontally if it * really needs to (e.g., a wide primer grid), but doesn't push * the row wider than the iframe viewport. */ .result-table tr.detail-row > td { max-width: 100vw; overflow-x: hidden; } } /* ─── BLAST consent modal actions ─── * Used by #blastConsentModal — the consent dialog that pops up when the * user clicks "Identify via NCBI BLAST" for the first time per session. * Same shape as .fold-consent-actions but lives inside a .modal-body * (centered overlay) instead of inline in the preview card. */ .blast-consent-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; align-items: center; justify-content: flex-end; } @media (max-width: 540px) { .blast-consent-actions { gap: 8px; justify-content: stretch; } .blast-consent-actions .primary, .blast-consent-actions .ghost { width: 100%; } } /* ════════════════════════════════════════════════════════════════════════ * MOTION POLISH LAYER * ──────────────────────────────────────────────────────────────────────── * The interaction quality stuff that separates "Flask app" from "real * product." Applied as an additive layer on top of the existing * editorial system — no rule below changes the palette, type stack, or * geometry; everything just moves a little more deliberately. * * Specific upgrades: * - Skeleton loaders for the variant table during job runs * - Stagger fade-in for variant rows as they land * - Refined focus-visible ring system (one consistent ring everywhere) * - Card hover-lift (subtle: 1px translate + shadow upgrade) * - Count-up animation for stat tiles via .count-up + JS * - Sort indicator rotates instead of swapping glyphs * - Toast bounces in instead of sliding (more delightful, still subtle) * - Smooth detail-panel reveal via grid-template-rows transition * - Reduced-motion fallback respects user preference * ════════════════════════════════════════════════════════════════════════ */ /* ── Skeleton shimmer ─────────────────────────────────────────────────── */ .skeleton { background: linear-gradient( 90deg, var(--gray-2) 0%, var(--gray-3) 50%, var(--gray-2) 100% ); background-size: 200% 100%; animation: skeleton-shimmer 1.4s ease-in-out infinite; border-radius: var(--r-1); color: transparent; user-select: none; pointer-events: none; } @keyframes skeleton-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } } .skeleton-row { display: grid; grid-template-columns: 60px 1.4fr 60px 60px 60px 60px 90px; gap: 14px; padding: 14px 16px; align-items: center; border-bottom: 1px solid var(--line); } .skeleton-row .skeleton { height: 14px; border-radius: var(--r-1); } .skeleton-table { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--gray-0); overflow: hidden; } @media (max-width: 720px) { .skeleton-row { grid-template-columns: 56px 1fr 60px 90px; } .skeleton-row > :nth-child(n+5) { display: none; } } /* ── Variant-row stagger entrance ────────────────────────────────────── * The custom property --row-i is set in JS at render time (renderVariantRows). * Each row delays by 18ms × row-index, capped at ~360ms so the table doesn't * feel sluggish for large libraries. Rows already on screen (after a sort * or filter) don't re-trigger because their animation has already played. */ .result-table tbody tr.expandable { animation: row-in 280ms cubic-bezier(0.22, 1, 0.36, 1) backwards; animation-delay: calc(min(var(--row-i, 0), 20) * 18ms); } @keyframes row-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } /* ── Unified focus-visible ring ──────────────────────────────────────── * One consistent ring (not the per-element ad-hoc styles that drifted over * time). focus-visible only — won't fire on mouse click, only on keyboard * navigation, which is the accessibility convention. */ :where(button, a, input, textarea, select, [tabindex]):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-1); transition: outline-offset 120ms var(--ease); } .copy-btn:focus-visible, .ghost-btn:focus-visible, .fold-btn:focus-visible { outline-offset: 3px; } /* ── Card hover-lift ─────────────────────────────────────────────────── */ .card { transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease); will-change: box-shadow; } .card:hover { box-shadow: var(--elev-3); border-color: var(--line-strong); } .stat-tile { transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease); } .stat-tile:hover { transform: translateY(-1px); box-shadow: var(--elev-3); border-color: var(--line-strong); } /* ── Sort indicator rotation ─────────────────────────────────────────── */ .result-table th.sortable .sort-ind { display: inline-block; transition: transform 220ms var(--ease), color 180ms var(--ease); } .result-table th.sortable.sort-active.sort-asc .sort-ind { transform: rotate(0deg); } .result-table th.sortable.sort-active.sort-desc .sort-ind { transform: rotate(180deg); } /* ── Refined toast entrance ──────────────────────────────────────────── * The previous transform: translateY was clean but a touch flat. A tiny * scale tick on entrance reads as "this is information you should * actually look at" without being cartoonish. */ .toast.toast-in { animation: toast-pop 340ms cubic-bezier(0.16, 1.2, 0.36, 1); } @keyframes toast-pop { from { opacity: 0; transform: translate(-50%, 14px) scale(0.96); } 65% { opacity: 1; transform: translate(-50%, -2px) scale(1.01); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } } /* ── Detail panel reveal ─────────────────────────────────────────────── * Smooth height transition using grid-template-rows trick — works without * needing JavaScript to measure the target height. The detail row itself * controls open vs closed via the parent's hidden attribute. */ .result-table tr.detail-row > td > * { animation: detail-fade 240ms var(--ease) backwards; animation-delay: 80ms; } @keyframes detail-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } } /* ── Count-up animation hook ────────────────────────────────────────── * .count-up tiles get a brief scale tick when their value lands. JS reads * the data-value attr and animates from 0 → value while applying this class * during the count. The brief pulse makes the number feel like it actually * landed instead of just appearing. */ .stat-val.count-up { animation: stat-tick 280ms cubic-bezier(0.16, 1.2, 0.36, 1); } @keyframes stat-tick { 0% { transform: scale(0.96); color: var(--brand); } 60% { transform: scale(1.02); color: var(--brand-deep); } 100% { transform: scale(1); color: inherit; } } /* ── Refined ghost button press ──────────────────────────────────────── */ .ghost-btn, .copy-btn { transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); } .ghost-btn:not(:disabled):active, .copy-btn:not(:disabled):active { transform: translateY(0.5px); } /* ── Tab + chip subtle hover ─────────────────────────────────────────── */ .tab, .nav-item { transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); } /* ── Reduced motion fallback ────────────────────────────────────────── * Respects prefers-reduced-motion: collapses every animation to a single * frame so the user doesn't get vestibular distress. The structural * meaning (rows appear, toast shows, progress moves) is preserved. */ @media (prefers-reduced-motion: reduce) { .progress-fill::after, .skeleton, .result-table tbody tr.expandable, .toast.toast-in, .stat-val.count-up, .result-table tr.detail-row > td > * { animation: none !important; } .card:hover, .stat-tile:hover { transform: none; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } } /* ════════════════════════════════════════════════════════════════════════ * CRISPR view — Cas9 knockout gRNA designer * ──────────────────────────────────────────────────────────────────────── * Mirrors the .view--design layout (hero + cards + result table). * Most styles are inherited from the engine system (.card, .hero, * .primary, .result-table); the rules below are CRISPR-specific. * ════════════════════════════════════════════════════════════════════════ */ .view--crispr .crispr-input { width: 100%; min-height: 180px; padding: 14px 16px; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; color: var(--ink-strong); background: var(--gray-0); border: 1px solid var(--line); border-radius: var(--r-2); resize: vertical; white-space: pre; overflow-wrap: normal; overflow-x: auto; -webkit-overflow-scrolling: touch; } .view--crispr .crispr-input:focus { outline: none; border-color: var(--brand, #3D3A34); box-shadow: 0 0 0 3px rgba(14, 124, 154, 0.12); } /* When the CRISPR textarea sits inside a .paste-shell (Phase 2C-2 — added the line-numbered gutter to match the design-page pattern), the shell already provides the border + focus halo. Strip the textarea's own chrome so it sits flush against the gutter and the shell renders as one unit. */ .paste-shell .crispr-input { border: none !important; border-radius: 0; background: transparent; box-shadow: none !important; padding: 10px 12px; min-height: 180px; } .paste-shell .crispr-input:focus { border: none !important; box-shadow: none !important; outline: none; } /* Sign-in notice — shown when an anon user is on the CRISPR view */ .crispr-signin-notice { margin-top: 18px; padding: 18px 20px; background: var(--gray-1); border: 1px solid var(--line); border-left: 3px solid var(--brand, #3D3A34); border-radius: var(--r-2); } .crispr-signin-notice p { margin: 0 0 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; } .crispr-signin-notice strong { color: var(--ink-strong); } .crispr-signin-actions { display: flex; gap: 10px; flex-wrap: wrap; } .crispr-signin-actions a { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: var(--r-2); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; text-decoration: none; min-height: 36px; } .crispr-signin-actions a.primary { background: var(--ink); color: var(--paper, #F7F5F0); border: 1px solid var(--ink); } .crispr-signin-actions a.primary:hover { background: #1f1f1e; } .crispr-signin-actions a.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); } .crispr-signin-actions a.ghost:hover { background: var(--ink); color: var(--paper, #F7F5F0); } /* Results table — spacer + PAM in monospace, score colored by quality */ .crispr-table .crispr-spacer { font-family: var(--font-mono); white-space: nowrap; } .crispr-table .crispr-spacer code { background: transparent; padding: 0; color: var(--ink-strong); letter-spacing: 0.04em; } .crispr-table code { font-family: var(--font-mono); background: var(--gray-1); padding: 2px 6px; border-radius: var(--r-1); color: var(--ink-strong); } .crispr-copy { margin-left: 8px; font-size: 10.5px; padding: 3px 8px; min-width: 0; } .crispr-score-good { color: #047857; font-weight: 600; } /* > 0.65 */ .crispr-score-ok { color: #B45309; font-weight: 600; } /* 0.40–0.65 */ .crispr-score-weak { color: #92400E; font-weight: 500; opacity: 0.85; } /* Phase 2A: predicted top-indel label. Mono so the -3/+1 prefixes line up vertically; small + dim so it doesn't compete with the composite/on-target score columns. */ .crispr-indel { font-family: var(--font-mono); font-size: 11px; color: var(--ink); white-space: nowrap; } .crispr-flag { display: inline-block; font-size: 10px; padding: 2px 6px; background: var(--gray-1); color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; margin-right: 4px; } /* ─── Phase 3 (M1): base-editing mode ─────────────────────────────── * Column visibility swaps by mode. Knockout (default) shows .col-ko and * hides .col-be; the --base-edit modifier on the table flips it. Applies * to