Tengo Gzirishvili
Claude Sonnet 4.6
Reframe app around Design→Build→Edit→Learn loop
1fdd762
Raw History Blame Contribute Delete
220 kB
/* 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 <html>, 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,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235B6878' stroke-width='1.5' stroke-linecap='round'><path d='M2 2l4 4 4-4'/></svg>"); 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 <html data-theme> 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 <th> and <td> alike (both are table cells). */ .crispr-table .col-be { display: none; } .crispr-table--base-edit .col-ko { display: none; } .crispr-table--base-edit .col-be { display: table-cell; } /* Amino-acid consequence cell. Mono so residue numbers line up; the * stop-gain (CRISPR-STOP / iSTOP) variant is emphasized. */ .crispr-aa { font-family: var(--font-mono); font-size: 11px; color: var(--ink); white-space: nowrap; } .crispr-aa-stop { color: #92400E; font-weight: 700; } /* Outcome tag: clean / bystander / STOP. */ .crispr-be-tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); } .crispr-be-tag-clean { color: #047857; border-color: #A7F3D0; background: #ECFDF5; } .crispr-be-tag-bystander { color: #B45309; border-color: #FCD34D; background: #FFFBEB; } .crispr-be-tag-stop { color: #fff; background: #92400E; border-color: #92400E; font-weight: 700; } /* Base-editor picker helper note (spans the context row). */ .crispr-be-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 11px; line-height: 1.5; color: var(--ink-faint); } /* Nuclease option dimmed when base-edit mode locks it to Cas9. The * .crispr-opt-disabled class is toggled by app.js (more robust across * browsers than relying on :has()). */ .crispr-opt-disabled { opacity: 0.4; cursor: not-allowed; } .crispr-opt-disabled input[type="radio"] { cursor: not-allowed; } /* ─── Phase 3 (M2): paste-anything resolver ───────────────────────── * A single row above the paste box: text input + Fetch button, with a * result chip below. Flex with min-width:0 so it shrinks cleanly on * mobile rather than overflowing. */ .crispr-resolve-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; } .crispr-resolve-input { flex: 1 1 auto; min-width: 0; } .crispr-resolve-row .ghost { flex: 0 0 auto; white-space: nowrap; } .crispr-resolve-chip { margin: -2px 0 12px; padding: 7px 11px; border-radius: var(--r-1); background: var(--gray-1); border: 1px solid var(--line); font-size: 12px; line-height: 1.45; color: var(--ink-soft); } .crispr-resolve-chip-error { background: #FFFBEB; border-color: #FCD34D; color: #92400E; } .crispr-resolve-ok { color: #047857; font-weight: 700; } /* ─── Phase 3 (M3): results UX β€” sort / filter / explain ───────────── */ /* Sortable headers: a faint β‡… hint, a solid arrow on the active column. */ .crispr-table th.crispr-sortable { cursor: pointer; user-select: none; white-space: nowrap; } .crispr-table th.crispr-sortable:hover { color: var(--brand); } .crispr-table th.crispr-sortable::after { content: "β‡…"; margin-left: 4px; font-size: 9px; opacity: 0.3; } .crispr-table th.crispr-sort-active::after { content: "β–Ύ"; opacity: 1; color: var(--brand); } .crispr-table th.crispr-sort-active.crispr-sort-asc::after { content: "β–΄"; } /* "Why this guide" toggle on the rank cell + the expandable detail row. */ .crispr-why-toggle { background: none; border: none; cursor: pointer; font: inherit; color: var(--brand); padding: 0; display: inline-flex; align-items: center; gap: 3px; } .crispr-why-caret { display: inline-block; font-size: 11px; opacity: 0.55; transition: transform var(--t-fast) var(--ease); } .crispr-why-toggle.crispr-why-open .crispr-why-caret { transform: rotate(90deg); } .crispr-why-row > td { background: var(--gray-1); padding: 0; } /* The detail cell spans the full (wide, scrollable) table, so pin the * panel to the left of the visible viewport and size it to the scroll * container's visible width (set as --crispr-why-w by app.js). Keeps the * explanation readable without horizontal scrolling, on mobile + desktop. */ .crispr-why { position: sticky; left: 0; width: var(--crispr-why-w, 100%); max-width: 100%; box-sizing: border-box; padding: 12px 16px; margin: 2px 0; font-size: 13px; line-height: 1.6; color: var(--ink-soft); border-left: 2px solid var(--brand); } .crispr-why strong { color: var(--ink); font-weight: 600; } .crispr-why em { color: var(--ink-faint); } /* Filter bar above the table. */ .crispr-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 12px; padding: 8px 0; border-top: 1px solid var(--line); } .crispr-filter-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); } .crispr-filter-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; } .crispr-filter-chip input { accent-color: var(--brand); margin: 0; } .crispr-filter-count { font-size: 11px; color: var(--ink-faint); margin-left: auto; } /* ─── Phase 3 (M5): structure viewer ──────────────────────────────── */ .crispr-why-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .crispr-struct-btn { font-size: 12.5px; } .crispr-radar-btn { font-size: 12.5px; } .crispr-struct-hint { font-size: 12px; font-style: italic; color: var(--ink-faint); } /* Per-guide IP radar result renders inline beneath its button. */ .ip-radar-inline { margin-top: 10px; } .ip-radar-inline[hidden] { display: none; } /* Rank cell: stack the why-toggle and the visible "βŒ– 3-D" structure * button vertically so the viewer is reachable without expanding the * why-panel (M5 discoverability fix, 2026-05-30). */ .crispr-rank-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; } .crispr-struct-mini { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; font-weight: 600; line-height: 1.4; color: var(--brand); background: var(--brand-50, var(--bg-card)); border: 1px solid var(--brand-100, var(--line)); border-radius: var(--r-2); cursor: pointer; white-space: nowrap; transition: all var(--t-fast) var(--ease); } .crispr-struct-mini:hover { color: #FFFFFF; background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%); border-color: var(--brand-deep); } /* The Mol* host inside the structure modal needs an explicit height. */ .crispr-structure-viewer { width: 100%; height: 58vh; min-height: 320px; border-radius: var(--r-1); overflow: hidden; position: relative; } /* ─── Phase 3 (M4): saved designs list ────────────────────────────── */ .crispr-designs-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; } .crispr-design-row { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; cursor: pointer; background: var(--gray-1); border: 1px solid var(--line); border-radius: var(--r-1); font: inherit; color: var(--ink); transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); } .crispr-design-row:hover { background: var(--gray-2); border-color: var(--brand); } .crispr-design-label { font-weight: 600; font-size: 14px; } .crispr-design-meta { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); } /* ─── Enzyme picker (Phase 1) ─────────────────────────────────────── * Hairline row above the paste-actions block. Mono label, radio * controls styled as text-buttons with graphite selected state * β€” matches the editorial register, no UI-kit radios. */ .crispr-enzyme-row { display: flex; align-items: center; gap: 14px; padding: 10px 0 6px; border-top: 1px solid var(--line); margin-top: 8px; flex-wrap: wrap; } .crispr-enzyme-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); } .crispr-enzyme-opt { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); cursor: pointer; padding: 3px 8px; border-radius: var(--r-1); transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); } .crispr-enzyme-opt:hover { color: var(--ink); background: var(--gray-2); } .crispr-enzyme-opt em { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-faint); font-style: normal; } .crispr-enzyme-opt input[type="radio"] { accent-color: var(--brand); margin: 0; cursor: pointer; } .crispr-enzyme-opt:has(input[type="radio"]:checked) { color: var(--brand); font-weight: 600; } .crispr-enzyme-opt:has(input[type="radio"]:checked) em { color: var(--brand); } /* ─── Phase 2B-1: organism + gene-symbol context row ──────────────── Sits between the enzyme picker and the paste-actions block. Two side-by-side fields (collapses to a stack on narrow viewports). Same hairline-rule register as the enzyme row above. */ .crispr-context-row { display: grid; /* minmax(0, 1fr) β€” NOT 1fr β€” so a track can shrink below its content's min-content. The off-target <select> has long option labels ("Homo sapiens (GRCh38) Β· coding regions …"); with a plain 1fr the track grows to fit the selected option and pushes the whole page wider than the viewport (horizontal scroll on mobile). */ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 22px; padding: 10px 0 6px; border-top: 1px solid var(--line); } .crispr-context-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; /* allow the field (and its <select>) to shrink */ } .crispr-context-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); } .crispr-context-label em { font-family: var(--font-body); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-faint); margin-left: 0.4em; } .crispr-context-input { font-family: var(--font-body); font-size: 13px; color: var(--ink); padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-1); background: var(--bg-card); transition: border-color var(--t-fast) var(--ease); /* Fill the track, never exceed it; clip a long selected option label with an ellipsis instead of stretching the layout. */ width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; text-overflow: ellipsis; } .crispr-context-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50); } .crispr-context-input:disabled, .crispr-context-input option:disabled { color: var(--ink-faint); } @media (max-width: 640px) { .crispr-context-row { grid-template-columns: minmax(0, 1fr); } } /* Exon-context chip: small italic Playfair phrase, graphite when in the NMD-favorable zone (the most strongly editorial cell in the table). */ .crispr-exon-ctx { font-family: var(--font-body); font-size: 12px; color: var(--ink-soft); font-style: italic; } .crispr-exon-ctx.crispr-score-good { color: var(--brand); font-weight: 600; font-style: normal; } /* ─── Phase 2C-1: vector picker + vendor buttons ──────────────────── Vector row sits inside the results card, above the table. Single hairline rule above it; same visual register as the enzyme/context rows in the input card. */ .crispr-vector-row { display: flex; align-items: center; gap: 14px; padding: 12px 0 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .crispr-vector-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); } .crispr-vector-select { font-family: var(--font-body); font-size: 13px; color: var(--ink); padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-1); background: var(--bg-card); min-width: 320px; } .crispr-vector-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50); } .crispr-vector-meta { font-family: var(--font-body); font-size: 12px; color: var(--ink-faint); font-style: italic; flex: 1; min-width: 200px; } /* Vendor button row β€” lives in the results-actions block alongside the Download Excel button. Tight + mono β€” same visual weight as the existing copy-btn elements. */ .crispr-vendor-row { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; flex-wrap: wrap; } /* Full-width bulk-order strip (relocated out of the results header * 2026-05-30). Sits between the header and the cloning-vector picker. */ .crispr-vendor-strip { display: flex; width: 100%; margin: 0 0 14px; padding: 10px 14px; background: var(--gray-1, rgba(30, 58, 138, 0.04)); border: 1px solid var(--line); border-radius: var(--r-3); } .crispr-vendor-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); } /* Phase 2C-3: vendor buttons β€” match the DE page's .synth-row .synth-btn so vendors are the table's loudest call to action, not ghost buttons. Two variants: .crispr-vendor-btn-bulk β†’ header bar, full label + β†— arrow .crispr-vendor-btn-row β†’ per-guide row, 4-letter abbreviation, three side-by-side */ .crispr-vendor-btn { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%); color: #FFFFFF; border: 1px solid var(--brand-deep); border-radius: var(--r-2); cursor: pointer; font-weight: 600; box-shadow: 0 1px 2px rgba(30, 58, 138, 0.22), inset 0 1px 0 rgba(255,255,255,0.18); transition: all var(--t-fast) var(--ease); } .crispr-vendor-btn:hover { background: linear-gradient(180deg, var(--brand-deep) 0%, #142B6B 100%); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(30, 58, 138, 0.30), inset 0 1px 0 rgba(255,255,255,0.18); color: #FFFFFF; } .crispr-vendor-btn.copied { background: var(--success); border-color: var(--success); box-shadow: 0 1px 2px rgba(4, 120, 87, 0.30); } .crispr-vendor-btn .synth-arrow { opacity: 0.85; transition: transform var(--t-fast) var(--ease); } .crispr-vendor-btn:hover .synth-arrow { transform: translate(2px, -2px); opacity: 1; } /* Per-row variant: tighter, 3 buttons side-by-side. */ .crispr-row-vendors { display: flex; gap: 4px; flex-wrap: nowrap; } .crispr-vendor-btn-row { padding: 4px 8px; font-size: 10px; letter-spacing: 0.06em; min-width: 44px; justify-content: center; } /* Phase 2C-2: indeterminate progress fill (full-width with shimmer). Pairs with the existing .progress-shell + .progress-bar layout from the directed-evolution page; only adds the variant that doesn't need a polled percentage. */ .progress-fill-indeterminate { width: 100%; background: linear-gradient(90deg, var(--brand-50), var(--brand-light), var(--brand-50)); background-size: 220% 100%; animation: crispr-progress-sweep 1.4s linear infinite; } @keyframes crispr-progress-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } } .crispr-progress { margin-top: 14px; } /* Phase 2D: informational banner shown above the table when the genome index isn't ready (background build still in progress). Editorial register β€” paper-soft background, graphite left border, Source Serif body, italic emphasis on the "this is a one-time cost" line. */ .crispr-banner { margin: 10px 0 14px; padding: 12px 16px; border-radius: var(--r-2); font-family: var(--font-body); font-size: 13px; line-height: 1.55; color: var(--ink); } .crispr-banner strong { color: var(--ink-strong); font-weight: 600; } .crispr-banner em { font-style: italic; color: var(--ink-soft); } .crispr-banner-info { background: var(--brand-50); border-left: 3px solid var(--brand); } /* Oligo table cells. Display the oligo on a SINGLE LINE with ellipsis when it overflows the column; the Copy button (and the cell's `title` attribute via the data-copy text) carry the full sequence. Previously the cell used overflow-wrap:anywhere, which made a 25-nt oligo wrap to 5+ visual lines when the column was narrow β€” every table row then inherited that height, producing huge vertical gaps between guides that the user reported. */ .crispr-oligo-cell { display: flex; align-items: center; gap: 6px; max-width: 240px; } .crispr-oligo { font-family: var(--font-mono); font-size: 11px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; } @media (max-width: 540px) { .crispr-vector-row { flex-direction: column; align-items: flex-start; } .crispr-vector-select { min-width: 0; width: 100%; } /* On mobile, allow the oligo to stack above the Copy button β€” but still keep the oligo line single, just smaller. */ .crispr-oligo-cell { flex-direction: column; align-items: flex-start; max-width: 100%; } .crispr-oligo { font-size: 10px; } } /* Mobile (<=540px): the 24-column CRISPR results table is unreadable on a * phone even with horizontal scroll, so each guide ROW re-flows into a CARD * of "LABEL : value" pairs (label pulled from each cell's data-label via * ::before). Desktop table layout is completely untouched. */ @media (max-width: 540px) { .view--crispr .hero { padding-bottom: 16px; } .view--crispr .crispr-input { font-size: 16px; min-height: 140px; } /* 16px: no iOS focus-zoom */ .crispr-signin-actions { flex-direction: column; align-items: stretch; } .crispr-signin-actions a { justify-content: center; } /* Release the scroll/clip wrapper so cards flow in the page. */ .view--crispr .result-table-wrap { overflow: visible; max-height: none; } /* Table β†’ block cards. */ .crispr-table, .crispr-table > tbody { display: block; width: 100%; } .crispr-table > thead { display: none; } /* column labels move into ::before */ .crispr-table tr.crispr-row { display: block; background: var(--bg-card, var(--gray-0)); border: 1px solid var(--line); border-radius: var(--r-3); padding: 4px 14px 10px; margin-bottom: 12px; box-shadow: var(--elev-1); } /* Lone informational rows (e.g. "no guides match the filters"). */ .crispr-table tbody > tr:not(.crispr-row):not(.crispr-why-row) { display: block; } .crispr-table tbody > tr:not(.crispr-row) > td { display: block; } /* Each labelled cell β†’ a label : value line. */ .crispr-table tr.crispr-row > td[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border: 0; border-top: 1px solid var(--line); text-align: right; white-space: normal; font-size: 13px; } .crispr-table tr.crispr-row > td[data-label]::before { content: attr(data-label); flex: 0 0 auto; text-align: left; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); white-space: nowrap; } /* Hide the em-dash-only cells (tagged in app.js) so a card isn't a wall of empty fields when genome/exon/cloning context wasn't provided. */ .crispr-table tr.crispr-row > td.crispr-cell-empty { display: none; } /* Compact by default: a collapsed card shows only the PRIMARY fields (spacer + the headline scores). Tapping the rank "β€Ί" opens the card to the full field list + the "why" panel. Keeps a 50-guide result scannable instead of fifty tall cards. */ .crispr-table tr.crispr-row:not(.crispr-row--open) > td[data-label]:not(.crispr-primary) { display: none; } /* Card header: the rank cell holds the "why" toggle + 3-D button. A plain header bar β€” NO border here; the first field's single hairline divides it, so there's no doubled line under the header. */ .crispr-table tr.crispr-row > td.rank { display: block; padding: 2px 0 7px; border: 0; } .crispr-table tr.crispr-row > td.rank::before { content: none; } .crispr-table tr.crispr-row .crispr-rank-cell { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; gap: 10px; } .crispr-table tr.crispr-row .crispr-why-toggle { font-size: 15px; font-weight: 700; } /* Discoverability: a faint "details" hint on collapsed cards (drops away once the card is open). */ .crispr-table tr.crispr-row:not(.crispr-row--open) .crispr-why-toggle::after { content: 'details'; margin-left: 9px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; color: var(--ink-faint); } /* Spacer: stack the label above the (wrapping) sequence + Copy. */ .crispr-table tr.crispr-row > td.crispr-spacer { flex-direction: column; align-items: stretch; text-align: left; gap: 4px; } .crispr-table tr.crispr-row > td.crispr-spacer code { display: block; word-break: break-all; font-size: 13px; } .crispr-copy { margin-left: 0; margin-top: 2px; display: inline-block; } .crispr-table tr.crispr-row .crispr-oligo { white-space: normal; word-break: break-all; } /* why-panel: full-width under the card, only when expanded. */ .crispr-table tr.crispr-why-row:not([hidden]) { display: block; margin: -8px 0 12px; } .crispr-table tr.crispr-why-row > td { display: block; padding: 0; border: 0; } } /* CRISPR hero disclaimer β€” softer than the hero-lede, but still visible. * Lives directly under the lede; tells the user we don't do off-target * scoring so they don't trust the on-target score for in-vivo work. */ .crispr-disclaimer { margin-top: 14px; padding: 12px 16px; background: var(--gray-1); border: 1px solid var(--line); border-left: 3px solid var(--brand, #3D3A34); border-radius: var(--r-2); font-size: 13px; line-height: 1.55; color: var(--ink-soft); } .crispr-disclaimer strong { color: var(--ink-strong); font-weight: 600; } .crispr-disclaimer a { color: var(--brand, #3D3A34); } /* ── Live Collision IP Radar banner ───────────────────────────────────── Dark-native, urgent-but-clean. A hit is a calm amber warning; a clear scan is a quiet confirmation. Dynamic text is injected by the radar handler. */ .ip-radar-wrap { margin: 0 0 18px; } .ip-radar-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--bg-card, var(--gray-1)); box-shadow: var(--elev-1); font-size: 13px; line-height: 1.5; color: var(--ink); animation: ipRadarIn 220ms var(--ease, ease); } @keyframes ipRadarIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } } .ip-radar-banner.ip-radar-hit { border-color: var(--warning, #C77B30); border-left-width: 3px; } .ip-radar-banner.ip-radar-clear { border-left: 3px solid var(--success, #5FA98A); } .ip-radar-ico { font-size: 16px; line-height: 1.35; flex-shrink: 0; } .ip-radar-hit .ip-radar-ico { color: var(--warning, #F4C77E); } .ip-radar-clear .ip-radar-ico { color: var(--success, #34D399); } .ip-radar-body { flex: 1 1 auto; min-width: 0; } .ip-radar-body strong { color: var(--ink-strong); font-weight: 600; } .ip-radar-sub { margin: 5px 0 9px; font-size: 12px; color: var(--ink-soft); } .ip-radar-sub code { font-family: var(--font-mono); font-size: 11px; color: var(--ink); word-break: break-all; } .ip-radar-sub em { font-style: italic; color: var(--ink); } .ip-radar-note { color: var(--ink-faint); font-style: italic; } .ip-radar-section { margin: 12px 0 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); } .ip-radar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; } .ip-radar-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--gray-1); border: 1px solid var(--line); border-radius: var(--r-2); } .ip-radar-match-title { font-size: 12.5px; } .ip-radar-match-title a { color: var(--brand-light, #8AA4DC); text-decoration: none; } .ip-radar-match-title a:hover { text-decoration: underline; } .ip-radar-cite { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.02em; } .ip-radar-more { margin-top: 8px; font-size: 11px; color: var(--ink-faint); } .ip-radar-x { flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--r-1); background: transparent; color: var(--ink-faint); font-size: 18px; line-height: 1; } .ip-radar-x:hover { background: var(--gray-2); color: var(--ink); } .ip-radar-scanning, .ip-radar-error { align-items: center; color: var(--ink-soft); font-size: 12px; } .ip-radar-error .ip-radar-retry { color: var(--brand-light, #8AA4DC); text-decoration: underline; background: none; } .ip-radar-spinner { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand-light, #8AA4DC); animation: ipRadarSpin 0.7s linear infinite; vertical-align: -2px; } @keyframes ipRadarSpin { to { transform: rotate(360deg); } } /* ── Toxicity & Synthesis Oracle (Red Team Report) modal ──────────────── Dark, premium, traffic-light. Red = critical synthesis failure, Yellow = biological warning, Green = clear. */ .oracle-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; } .oracle-backdrop { position: absolute; inset: 0; background: rgba(6, 8, 12, 0.62); backdrop-filter: blur(2px); animation: backdropIn 160ms var(--ease, ease); } .oracle-panel { position: relative; width: 100%; max-width: 470px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--bg-card, var(--gray-0)); border: 1px solid var(--line); border-radius: var(--r-4, 12px); box-shadow: var(--elev-5); animation: ipRadarIn 200ms var(--ease, ease); } .oracle-panel.oracle-level-red { border-top: 3px solid var(--danger, #F4796F); } .oracle-panel.oracle-level-yellow { border-top: 3px solid var(--warning, #F4C77E); } .oracle-panel.oracle-level-green { border-top: 3px solid var(--success, #34D399); } .oracle-head { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px 13px; border-bottom: 1px solid var(--line); } .oracle-head-text { flex: 1 1 auto; min-width: 0; } .oracle-light { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; } .oracle-light-red { background: var(--danger, #F4796F); box-shadow: 0 0 12px var(--danger, #F4796F); } .oracle-light-yellow { background: var(--warning, #F4C77E); box-shadow: 0 0 12px var(--warning, #F4C77E); } .oracle-light-green { background: var(--success, #34D399); box-shadow: 0 0 12px var(--success, #34D399); } .oracle-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 3px; } .oracle-head h2 { font-size: 16px; color: var(--ink-strong); margin: 0; font-weight: 600; letter-spacing: -0.005em; } .oracle-sub { font-size: 12px; color: var(--ink-soft); margin: 3px 0 0; } .oracle-x { flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--r-1); background: transparent; color: var(--ink-faint); font-size: 18px; line-height: 1; } .oracle-x:hover { background: var(--gray-2); color: var(--ink); } .oracle-flags { padding: 14px 20px; display: flex; flex-direction: column; gap: 10px; } .oracle-flag { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--gray-1); } .oracle-flag.oracle-red { border-left: 2px solid var(--danger, #F4796F); } .oracle-flag.oracle-yellow { border-left: 2px solid var(--warning, #F4C77E); } .oracle-flag strong { font-size: 13px; color: var(--ink-strong); } .oracle-flag p { margin: 3px 0 0; font-size: 12px; color: var(--ink-soft); line-height: 1.5; } .oracle-flag-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; } .oracle-red .oracle-flag-dot { background: var(--danger, #F4796F); } .oracle-yellow .oracle-flag-dot { background: var(--warning, #F4C77E); } .oracle-green .oracle-flag-dot { background: var(--success, #34D399); } .oracle-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 13px 20px 18px; border-top: 1px solid var(--line); } .oracle-go-danger { background: var(--danger, #F4796F) !important; border-color: var(--danger, #F4796F) !important; color: #fff !important; } @media (max-width: 540px) { .oracle-overlay { align-items: flex-end; padding: 0; } .oracle-panel { max-width: 100%; border-radius: var(--r-4) var(--r-4) 0 0; max-height: 88dvh; } .oracle-foot { flex-direction: column-reverse; } .oracle-foot .ghost, .oracle-foot .primary { width: 100%; } } @media (max-width: 540px) { .crispr-disclaimer { font-size: 12px; padding: 10px 12px; } } /* ════════════════════════ PRIMER PICKER ════════════════════════════════ */ .view-head { margin: 0 0 22px; } .view-title { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; } .view-title em { font-style: italic; } .view-sub { color: var(--ink-soft); max-width: 60ch; line-height: 1.55; font-size: 14px; } .primer-input-card { display: flex; flex-direction: column; gap: 8px; } .field-label { font-weight: 600; font-size: 13px; margin-top: 8px; } .field-label:first-child { margin-top: 0; } .field-opt { font-weight: 400; color: var(--ink-faint); font-style: italic; } .field-hint { font-size: 12px; color: var(--ink-faint); line-height: 1.5; margin: 0 0 2px; } .field-hint code, .primer-toggle code { font-family: var(--font-mono); font-size: 11px; } .primer-textarea { width: 100%; box-sizing: border-box; resize: vertical; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--gray-0); color: var(--ink); } .primer-textarea:focus { outline: none; border-color: var(--brand); } .primer-toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--gray-1); margin-top: 6px; } .primer-toggle input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; } .primer-toggle-text { display: flex; flex-direction: column; gap: 3px; } .primer-toggle-text strong { font-size: 13px; } .primer-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; } .primer-warnings { margin-top: 10px; font-size: 12px; color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); border-left: 3px solid var(--warning); padding: 9px 12px; border-radius: var(--r-2); } .primer-results-card { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; } .primer-scan-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); background: var(--gray-1); border-radius: var(--r-2); padding: 9px 12px; } .primer-scan-note { color: var(--ink-faint); } .primer-scan-done { color: var(--success); font-weight: 600; } .primer-scan-err { color: var(--warning); } .primer-best-head { font-size: 15px; } .primer-best-score { color: var(--ink-faint); font-size: 12px; margin-left: 8px; } .primer-sec-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin: 4px 0 10px; font-weight: 600; } /* amplicon rows */ .amp-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-3); margin-bottom: 8px; } .amp-row-best { border-color: var(--brand); background: var(--brand-50); } .amp-pair { font-weight: 600; font-size: 13px; } .amp-x { color: var(--ink-faint); margin: 0 3px; } .amp-stats { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-soft); } .amp-fit { font-family: var(--font-mono); } /* per-primer cards */ .primer-card { border: 1px solid var(--line); border-radius: var(--r-3); padding: 14px; margin-bottom: 10px; background: var(--gray-0); } .primer-card-best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; } .primer-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .primer-card-id { font-size: 14px; } .primer-fitness { display: flex; align-items: center; gap: 8px; min-width: 120px; } .pf-bar { width: 90px; height: 7px; border-radius: 4px; background: var(--gray-2); overflow: hidden; } .pf-fill { display: block; height: 100%; } .pf-fill.pf-high { background: var(--success); } .pf-fill.pf-mid { background: var(--warning); } .pf-fill.pf-low { background: var(--danger); } .pf-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); min-width: 22px; text-align: right; } .primer-seq { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); word-break: break-all; margin: 8px 0; letter-spacing: 0.04em; } .primer-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--ink-soft); align-items: center; } .primer-flags { font-size: 11.5px; color: var(--ink-faint); margin-top: 7px; } .primer-why { margin-top: 9px; font-size: 12px; } .primer-why summary { cursor: pointer; color: var(--brand); font-size: 12px; } .primer-why ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); line-height: 1.6; } .primer-foot { font-size: 11.5px; color: var(--ink-faint); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 12px; margin: 4px 0 0; font-style: italic; } /* chips */ .pchip { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; font-weight: 600; letter-spacing: 0.02em; } .pchip-good { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); } .pchip-warn { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); } .pchip-bad { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); } .pchip-role { background: var(--gray-2); color: var(--ink-soft); } .pchip-best { background: var(--brand); color: #fff; } @media (max-width: 640px) { .view-title { font-size: 24px; } .primer-actions { flex-direction: column-reverse; } .primer-actions .primary, .primer-actions .ghost { width: 100%; } .primer-card-head { flex-direction: column; align-items: flex-start; gap: 8px; } .amp-row { flex-direction: column; } } /* ── Primer Picker: organism selector + in-silico PCR products ─────────── */ .primer-organism-row { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; } .primer-select { font-size: 13px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--gray-0); color: var(--ink); max-width: 360px; } .primer-select:focus { outline: none; border-color: var(--brand); } .primer-products { display: flex; flex-direction: column; gap: 6px; } .primer-clean { font-size: 13px; color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); border-left: 3px solid var(--success); border-radius: var(--r-2); padding: 11px 14px; } .primer-clean strong { color: var(--success); } .primer-prod-note { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 4px; } .prod-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 9px 14px; border: 1px solid var(--line); border-left: 3px solid var(--danger); border-radius: var(--r-2); background: var(--gray-0); } .prod-pair { font-weight: 600; font-size: 12.5px; } .prod-info { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--ink-soft); } .prod-size { font-family: var(--font-mono); color: var(--danger); } .prod-subj { color: var(--ink-faint); max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .primer-prod-more { font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; } @media (max-width: 640px) { .primer-select { max-width: 100%; } .prod-row { flex-direction: column; } .prod-subj { max-width: 100%; white-space: normal; } } /* Primer Picker: intended product rows (in-silico PCR) */ .primer-intended-head { font-size: 12.5px; color: var(--ink-soft); margin: 2px 0 4px; } .prod-row-ok { border-left-color: var(--success); } .prod-row-ok .prod-size { color: var(--success); } .prod-seen { color: var(--ink-faint); font-size: 11px; margin-left: 8px; } /* Primer Picker: strict 3'-end sub-toggle (nested under the organism row) */ .primer-subtoggle { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; margin-top: 8px; } .primer-subtoggle input { margin-top: 3px; width: 15px; height: 15px; flex-shrink: 0; } .primer-subtoggle > span { font-size: 12.5px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; } .primer-subtoggle .field-hint { font-weight: 400; } /* ════════════════════════ PLASMID STUDIO ═══════════════════════════════ */ .plasmid-input-card { display: flex; flex-direction: column; gap: 8px; } .plasmid-input-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; } .plasmid-input-actions { display: flex; gap: 8px; } .plasmid-input-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; } .plasmid-file-btn { font-size: 13px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--gray-1); cursor: pointer; white-space: nowrap; } .plasmid-file-btn:hover { background: var(--hover-fill); border-color: var(--hover-fill); color: var(--hover-text); } .plasmid-topo { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-soft); } .plasmid-topo label { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; } .plasmid-input-row .primary-lg { margin-left: auto; } .plasmid-results-card { margin-top: 18px; } .plasmid-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .plasmid-title-wrap { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .plasmid-name-input { font-size: 18px; font-weight: 600; background: transparent; border: none; border-bottom: 1px dashed var(--line); color: var(--ink); padding: 2px 0; max-width: 360px; } .plasmid-name-input:focus { outline: none; border-bottom-color: var(--brand); } .plasmid-meta { font-size: 12px; color: var(--ink-faint); font-family: var(--font-mono); } .plasmid-toolbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .plasmid-viewtoggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-3); overflow: hidden; } .pv-tab { font-size: 12.5px; padding: 6px 14px; background: var(--gray-1); color: var(--ink-soft); border: none; cursor: pointer; } .pv-tab-active { background: var(--brand); color: #fff; } .plasmid-export { position: relative; } .plasmid-export-menu { position: absolute; right: 0; top: 110%; z-index: 20; background: var(--bg-card, var(--gray-0)); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--elev-2, 0 6px 20px rgba(0,0,0,.4)); display: flex; flex-direction: column; min-width: 160px; } /* The class sets display:flex, which beats the UA [hidden]{display:none} rule (author > UA) β€” so without this companion rule menu.hidden=true cannot hide the menu and BOTH dropdowns sit open + overlapping. Higher specificity (class+attribute) than the base rule, so hidden wins. */ .plasmid-export-menu[hidden] { display: none; } .plasmid-export-menu button { text-align: left; background: none; border: none; color: var(--ink); padding: 9px 14px; font-size: 13px; cursor: pointer; } .plasmid-export-menu button:hover { background: var(--gray-1); } .plasmid-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; } .plasmid-map-wrap { min-width: 0; } .plasmid-svg { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; } .plasmid-linear-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; } .plasmid-svg-linear { width: 900px; height: auto; } /* circular/linear map elements */ .pm-backbone { fill: none; stroke: var(--line-strong); stroke-width: 1.5; } .pm-tick { stroke: var(--line-strong); stroke-width: 1; } .pm-tick-lbl { fill: var(--ink-faint); font-size: 8px; font-family: var(--font-mono); } .pm-feat { fill: none; stroke-width: 8; stroke-linecap: butt; opacity: 0.92; } .pm-feat:hover { opacity: 1; stroke-width: 10; } .pm-feat-rect { opacity: 0.92; } .pm-leader { stroke: var(--line); stroke-width: 0.6; } .pm-feat-lbl { fill: var(--ink-soft); font-size: 9px; } .pm-cut { stroke: var(--danger); stroke-width: 1.2; } .pm-cut-lbl { fill: var(--danger); font-size: 8px; font-family: var(--font-mono); } .pm-center-name { fill: var(--ink); font-size: 13px; font-weight: 600; } .pm-center-sub { fill: var(--ink-faint); font-size: 10px; font-family: var(--font-mono); } .plasmid-side { min-width: 0; } .plasmid-feature-list { display: flex; flex-direction: column; gap: 4px; max-height: 380px; overflow-y: auto; } .plasmid-feat-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: var(--r-2); font-size: 12px; } .plasmid-feat-item:hover { background: var(--gray-1); } .pf-swatch { width: 10px; height: 10px; border-radius: 2px; } .pf-name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pf-type { font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; grid-column: 2; } .pf-pos { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); grid-column: 3; grid-row: 1 / span 2; } .plasmid-nofeat { font-size: 12px; color: var(--ink-faint); font-style: italic; padding: 8px; } .plasmid-enzymes { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; } .plasmid-enzyme-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .plasmid-enz { font-size: 12px; font-family: var(--font-mono); padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--gray-0); color: var(--ink); cursor: pointer; display: inline-flex; gap: 5px; align-items: center; } .plasmid-enz:hover { border-color: var(--brand); } .enz-count { font-size: 10px; padding: 0 5px; border-radius: 999px; background: var(--gray-2); color: var(--ink-soft); } .plasmid-enz.enz-single .enz-count { background: color-mix(in srgb, var(--success) 22%, transparent); color: var(--success); } .plasmid-enz.enz-on { border-color: var(--brand); background: var(--brand-50); color: var(--brand-deep); } .plasmid-noncut { font-size: 11.5px; color: var(--ink-faint); align-self: center; margin-left: 4px; } .plasmid-digest-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; } .plasmid-clear-enz { background: none; border: none; color: var(--ink-faint); font-size: 12px; cursor: pointer; text-decoration: underline; } .plasmid-gel-wrap { margin-top: 14px; } .gel-title { font-size: 13px; margin: 0 0 8px; } .gel-flex { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; } .gel-svg { width: 300px; height: auto; } .gel-bg { fill: #0b0f14; rx: 4; } .gel-lane-lbl { fill: var(--ink-faint); font-size: 10px; font-family: var(--font-mono); } .gel-band-ladder { fill: #5a6472; } .gel-band { fill: #8AA4DC; } .gel-bp { fill: var(--ink-faint); font-size: 8px; font-family: var(--font-mono); } .gel-bp-frag { fill: var(--brand-light, #8AA4DC); } .gel-list { display: flex; flex-direction: column; gap: 5px; } .gel-frag-chip { font-family: var(--font-mono); font-size: 12px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); } .plasmid-lib-list { display: flex; flex-direction: column; gap: 8px; } .plasmid-lib-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-3); } .lib-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .lib-meta { font-size: 11.5px; color: var(--ink-faint); font-family: var(--font-mono); } .lib-actions { display: flex; gap: 8px; align-items: center; } .lib-del { background: none; border: none; color: var(--ink-faint); font-size: 18px; line-height: 1; cursor: pointer; } .lib-del:hover { color: var(--danger); } @media (max-width: 760px) { .plasmid-layout { grid-template-columns: 1fr; } .plasmid-svg { max-width: 100%; } .plasmid-input-row .primary-lg { margin-left: 0; width: 100%; } .plasmid-toolbar-actions { width: 100%; } .gel-flex { flex-direction: column; } } /* ── M3: sequence editor ──────────────────────────────────────────────── */ .plasmid-seq-tools { margin: 4px 0 14px; display: flex; flex-direction: column; gap: 10px; } .seqtool-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; } .seqtool-find { display: flex; align-items: center; gap: 4px; } .seqtool-input { font-family: var(--font-mono); font-size: 13px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--gray-0); color: var(--ink); width: 240px; max-width: 60vw; } .seqtool-input:focus { outline: none; border-color: var(--brand); } .seqtool-find .ghost { padding: 4px 9px; font-size: 14px; line-height: 1; } .seqtool-count { font-size: 11.5px; color: var(--ink-faint); font-family: var(--font-mono); min-width: 60px; } .seqtool-sel { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-soft); } .seqtool-sel label { display: inline-flex; align-items: center; gap: 4px; } .seqtool-num { width: 78px; font-family: var(--font-mono); font-size: 12.5px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--gray-0); color: var(--ink); } .seqtool-sellen { font-size: 11.5px; color: var(--ink-faint); font-family: var(--font-mono); } .seqtool-ops { gap: 6px; } .seqtool-ops .ghost { font-size: 12px; padding: 5px 11px; } .seqtool-output { font-size: 12.5px; color: var(--ink-soft); background: var(--gray-1); border-radius: var(--r-2); padding: 9px 12px; } .seqout-h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 4px; } .seqout-prot { font-family: var(--font-mono); font-size: 12px; word-break: break-all; color: var(--ink); } .seqed { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; overflow-x: auto; padding: 4px 2px; -webkit-overflow-scrolling: touch; } .seqed-line { white-space: pre; } .seqed-pos { display: inline-block; width: 64px; text-align: right; padding-right: 14px; color: var(--ink-faint); user-select: none; } .seqed-bases { letter-spacing: 0.06em; } .seqed-run[data-feat] { background: color-mix(in srgb, var(--featc) 26%, transparent); border-radius: 2px; } .seqed-find { background: var(--warning) !important; color: #1a1205; border-radius: 2px; } .seqed-sel { outline: 1.5px solid var(--brand); background: color-mix(in srgb, var(--brand) 30%, transparent) !important; border-radius: 2px; } .seqed-toobig { font-size: 13px; color: var(--ink-soft); padding: 18px; font-style: italic; } /* ── Inline (per-base) sequence editor ── */ .seqed-edit { outline: none; cursor: text; } .seqed-edit .seqed-bases { letter-spacing: 0; } /* flush bases β†’ contiguous selection + tight caret */ .seqb { display: inline-block; } .seqb-feat { background: color-mix(in srgb, var(--featc) 26%, transparent); } .seqb-sel { background: color-mix(in srgb, var(--brand) 32%, transparent) !important; border-radius: 1px; } .seqb-find { background: var(--warning) !important; color: #1a1205; } .seqed-caret { display: inline-block; width: 0; margin: 0 -0.5px; border-left: 1.5px solid var(--brand); height: 1.15em; vertical-align: -0.18em; animation: seqcaret 1.05s steps(1) infinite; } @keyframes seqcaret { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } } .seqed-ro-note { font-size: 11.5px; color: var(--ink-faint); font-style: italic; margin: 2px 0 10px; } /* In Sequence view the editor takes the full card width (Features flow below) so the sequence + companion map get room to sit side by side. */ .plasmid-layout.is-seq { grid-template-columns: 1fr; } .plasmid-layout.is-seq .plasmid-side { margin-top: 6px; } /* ── Sequence editor + companion map, side by side ── */ .seqmap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; } .seqmap-seq { min-width: 0; overflow-x: auto; } .seqmap-aside { position: sticky; top: 8px; } .seqmap-aside-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 8px 2px; } .seqmap-mini { cursor: crosshair; } .seqmap-mini svg { width: 100%; height: auto; display: block; } @media (max-width: 880px) { .seqmap { grid-template-columns: 1fr; } .seqmap-aside { position: static; max-width: 340px; margin-top: 6px; } } /* complement (antisense) strand */ .seqed-line-comp { margin-bottom: 0.55em; } .seqed-comp { color: var(--ink-faint); } .seqc { display: inline-block; } .seqc.seqb-sel { background: color-mix(in srgb, var(--brand) 32%, transparent); border-radius: 1px; } /* selection arc mirrored on the companion circular map */ .pm-sel { stroke: var(--brand); stroke-width: 15; opacity: 0.42; stroke-linecap: round; } /* ── Pairwise alignment card ── */ .plasmid-align-card .align-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; } @media (max-width: 700px) { .plasmid-align-card .align-inputs { grid-template-columns: 1fr; } } .align-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .align-stats { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); } .align-output { margin-top: 14px; overflow-x: auto; } .align-block { margin-bottom: 10px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; white-space: pre; } .align-row { white-space: pre; } .align-mid { color: var(--ink-faint); } /* Non-matching residues (mismatches + gaps) in red so divergence is scannable * at a glance. Colour + weight + a faint tint only β€” no padding/border β€” so the * monospace columns stay perfectly aligned. */ .align-mm { color: var(--danger); font-weight: 700; background: var(--danger-light); border-radius: 2px; } @media (max-width: 640px) { .seqtool-input { width: 100%; } .seqtool-find { width: 100%; } .seqed-pos { width: 44px; padding-right: 8px; } } /* ── M4: cloning / assembly ───────────────────────────────────────────── */ .plasmid-clone-card { margin-top: 18px; } .clone-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; } .clone-title { font-size: 18px; font-weight: 600; margin: 0; } .clone-methods { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-3); overflow: hidden; } .clone-method { font-size: 12.5px; padding: 6px 13px; background: var(--gray-1); color: var(--ink-soft); border: none; cursor: pointer; } .clone-method + .clone-method { border-left: 1px solid var(--line-strong); } .clone-method-active { background: var(--brand); color: #fff; } .clone-pane { display: flex; flex-direction: column; gap: 8px; } .clone-opts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 4px; font-size: 12.5px; color: var(--ink-soft); } .clone-opts label { display: inline-flex; gap: 5px; align-items: center; } .clone-actions { margin-top: 14px; } .clone-error, #cloneError { margin-top: 10px; } .clone-result { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; } .clone-summary { font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .clone-ok { color: var(--success); font-weight: 600; } .clone-warn { margin-top: 8px; font-size: 12px; color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); border-left: 3px solid var(--warning); padding: 8px 12px; border-radius: var(--r-2); } .clone-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin: 14px 0 8px; } .clone-junc { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-2); margin-bottom: 6px; font-size: 12.5px; } .cj-pair { font-weight: 600; } .cj-kind { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; } .cj-native { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); } .cj-designed { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); } .cj-overhang, .cj-enzyme { background: var(--gray-2); color: var(--ink-soft); } .cj-ov { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); } .clone-primer { border: 1px solid var(--line); border-radius: var(--r-2); padding: 8px 10px; margin-bottom: 7px; } .cp-name { font-weight: 600; font-size: 12.5px; margin-bottom: 4px; } .cp-row { display: flex; gap: 8px; align-items: baseline; font-size: 11.5px; margin: 2px 0; flex-wrap: wrap; } .cp-lbl { font-weight: 700; color: var(--ink-faint); width: 12px; } .cp-row code { font-family: var(--font-mono); font-size: 11.5px; word-break: break-all; color: var(--ink); flex: 1 1 240px; } .cp-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); } .clone-result-actions { margin-top: 14px; } @media (max-width: 640px) { .clone-head { flex-direction: column; align-items: flex-start; } .clone-actions .primary-lg { width: 100%; } } /* ── M5: cross-tool hand-off ──────────────────────────────────────────── */ .plasmid-use { position: relative; } .plasmid-use-menu { min-width: 200px; } .seqtool-divider { width: 1px; align-self: stretch; background: var(--line); margin: 0 2px; } #seqToCrispr, #seqToPrimers, #seqToEvolve { color: var(--brand-deep); border-color: var(--brand); } /* ── Workbench "home" strip β€” Plasmid Editor as the hub ─────────────────── Type-led, editorial; the hairline grid is drawn by the 1px gap showing the container line behind card-surface cells. NOT a SaaS dashboard card grid. */ .workbench-home { margin: 20px 0 4px; padding: 22px 0 2px; border-top: 1px solid var(--line); } .workbench-lede { max-width: 64ch; margin: 10px 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; } .workbench-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; } .workbench-link { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 15px 18px; background: var(--bg-card); text-decoration: none; transition: background var(--t-fast) var(--ease); } .workbench-link:hover { background: var(--bg-hover); } .workbench-link strong { font-family: var(--font-body); font-size: 15px; letter-spacing: -0.01em; color: var(--ink); } .workbench-link:hover strong { color: var(--brand-deep); } .workbench-link span { font-size: 12.5px; line-height: 1.45; color: var(--ink-faint); } @media (max-width: 540px) { .workbench-links { grid-template-columns: 1fr; } } /* ── Primer results header (Save) ─────────────────────────────────────── */ .primer-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; } .primer-results-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); } /* ── Unified saved-work hub ("My designs") ────────────────────────────── */ .saved-body { max-height: 70vh; overflow-y: auto; } .saved-section { margin: 0 0 22px; } .saved-section:last-child { margin-bottom: 4px; } .saved-sec-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); } .saved-list { display: flex; flex-direction: column; gap: 1px; } .saved-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: var(--r-2); background: transparent; transition: background var(--t-fast) var(--ease); } .saved-row[role="button"] { cursor: pointer; } .saved-row[role="button"]:hover, .saved-row[role="button"]:focus-visible { background: var(--bg-hover); outline: none; } .saved-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .saved-row-label { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .saved-row[role="button"]:hover .saved-row-label { color: var(--brand-deep); } .saved-row-meta { font-size: 12px; color: var(--ink-faint); } .saved-dl { flex: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; padding: 7px 12px; min-height: 44px; border: 1px solid var(--brand); color: var(--brand-deep); background: transparent; border-radius: var(--r-2); cursor: pointer; transition: background var(--t-fast) var(--ease); } .saved-dl:hover { background: var(--bg-hover); } .saved-dl:disabled { opacity: 0.6; cursor: default; } /* Right-hand side: live auto-delete countdown (+ optional download). */ .saved-row { flex-wrap: wrap; } .saved-row-side { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; } .saved-expiry { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; } .saved-expiry-none { font-style: italic; } .saved-expiry-urgent { color: var(--danger, #C0392B); } @media (max-width: 480px) { .saved-row-side { margin-left: 0; width: 100%; justify-content: space-between; } } /* ── Contextual topbar (tool name + one-liner; replaces static "Engine") ── */ .topbar-titles { display: flex; flex-direction: column; justify-content: center; line-height: 1.18; min-width: 0; } .topbar-title { font-family: var(--font-display, Georgia, serif); font-style: italic; font-weight: 600; font-size: 18px; margin: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .topbar-sub { font-family: var(--font-body); font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } @media (max-width: 600px) { .topbar-sub { display: none; } /* keep the bar tidy beside the hamburger */ .topbar-title { font-size: 16px; } } /* ── "Start here" goal router ─────────────────────────────────────────── */ .nav-item-start { color: var(--brand-deep); font-weight: 600; } .starthere-goals { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; } .starthere-goal { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 15px 16px; min-height: 44px; background: var(--bg-card); border: none; cursor: pointer; font-family: inherit; transition: background var(--t-fast) var(--ease); } .starthere-goal:hover { background: var(--bg-hover); } .starthere-goal strong { font-size: 15px; letter-spacing: -0.01em; color: var(--ink); } .starthere-goal:hover strong { color: var(--brand-deep); } .starthere-goal span { font-size: 12.5px; line-height: 1.4; color: var(--ink-faint); } .starthere-goal .pill { display: inline-block; margin-left: 8px; vertical-align: 1px; } .starthere-skip { display: inline-block; margin-top: 16px; background: none; border: none; color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; cursor: pointer; padding: 8px 2px; } .starthere-skip:hover { color: var(--ink); } /* ── Inline "How to read this" results key (collapsed by default) ──────── */ .how-to-read { margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r-2); } .how-to-read > summary { list-style: none; cursor: pointer; padding: 11px 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); user-select: none; } .how-to-read > summary::-webkit-details-marker { display: none; } .how-to-read > summary::before { content: '+'; margin-right: 8px; } .how-to-read[open] > summary::before { content: '\2013'; } /* en-dash */ .how-to-read > summary:hover { color: var(--ink); } .how-to-read-body { padding: 2px 16px 14px; } .how-to-read-body p { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 9px; } .how-to-read-body p:last-child { margin-bottom: 0; } .how-to-read-body code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-hover); padding: 1px 4px; border-radius: 3px; color: var(--ink); } .how-to-read-note { color: var(--ink-faint) !important; font-style: italic; } /* Primer results header actions (Export menu + Save) */ .primer-results-actions { display: flex; align-items: center; gap: 10px; } /* ── Learning flywheel: round-2 panel + banner ────────────────────────── */ .round2-banner { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--brand); border-radius: var(--r-2); background: var(--bg-hover); color: var(--ink); font-size: 13px; line-height: 1.5; } .round2-panel { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); } .round2-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; max-height: 320px; overflow-y: auto; margin: 6px 0 14px; } .round2-row { display: grid; grid-template-columns: 64px 1fr 110px; align-items: center; gap: 12px; padding: 9px 12px; background: var(--bg-card); } .r2-id { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); } .r2-mut { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .r2-val { width: 100%; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-app); color: var(--ink); font-size: 16px; /* β‰₯16px so iOS Safari doesn't auto-zoom on focus */ } .r2-val:focus { outline: none; border-color: var(--brand); } .round2-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; } .round2-status { font-size: 12.5px; color: var(--ink-faint); margin: 4px 0 10px; } .round2-status-warn { color: var(--danger, #C0392B); } @media (max-width: 540px) { .round2-row { grid-template-columns: 50px 1fr 84px; gap: 8px; } } /* ── One-time policy-change notice (Privacy/Terms v2.0) ───────────────── */ /* Matches the .research-strip register so it reads as part of the chrome: theme-aware surface, hairline rule, an inset accent stripe on the left. */ .policy-notice[hidden] { display: none; } /* must beat the .policy-notice display rule below */ .policy-notice { display: flex; align-items: center; gap: 16px; padding: 9px max(env(safe-area-inset-right, 0px), 20px) 9px max(env(safe-area-inset-left, 0px), 20px); background: var(--bg-subtle); color: var(--ink-soft); border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 0 var(--accent, var(--brand, #3D3A34)); font-family: var(--font-body); font-size: 12.5px; line-height: 1.45; flex-shrink: 0; } .policy-notice-text { flex: 1 1 auto; } .policy-notice strong { color: var(--ink-strong); font-weight: 600; } .policy-notice a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; } .policy-notice a:hover { color: var(--accent, var(--brand, #3D3A34)); } .policy-notice-close { flex: 0 0 auto; cursor: pointer; background: var(--bg-raised); color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 14px; font: inherit; font-size: 12.5px; min-height: 36px; /* comfortable tap target without dominating the slim bar */ } .policy-notice-close:hover { background: var(--bg-hover); color: var(--ink); border-color: var(--line-bold); } @media (max-width: 540px) { .policy-notice { flex-direction: column; align-items: flex-start; gap: 10px; padding: 11px 16px; } .policy-notice-close { align-self: stretch; min-height: 40px; } } /* ── De novo primer design card ───────────────────────────────────────── */ .primer-design-card { margin-top: 18px; } .design-opts { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 4px; } .design-opt { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; } .design-opt input { font-size: 16px; /* iOS: no auto-zoom */ min-height: 40px; width: 130px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-raised); color: var(--ink); font-family: var(--font-mono); } .design-opt input:focus { outline: none; border-color: var(--accent, #3D3A34); } .primer-actions { margin: 12px 0; } .design-results { overflow-x: auto; margin-top: 14px; } .design-table { width: 100%; border-collapse: collapse; font-size: 13px; } .design-table th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); } .design-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .design-table .dz-rank { color: var(--ink-faint); font-family: var(--font-mono); } .design-table .dz-num { font-family: var(--font-mono); white-space: nowrap; } .dz-seq { display: block; font-size: 12.5px; word-break: break-all; color: var(--ink); } .dz-sub { display: block; font-size: 11px; color: var(--ink-faint); margin-top: 2px; font-family: var(--font-mono); } .design-gel { margin-top: 16px; } /* ── Multiplex + local-specificity results ────────────────────────────── */ .mpx-ok { color: var(--success, #2E7D32); font-weight: 500; margin: 6px 0; } .mpx-warn { color: var(--danger, #C0392B); font-weight: 500; margin: 6px 0; } .mpx-h { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin: 14px 0 6px; } .mpx-list { margin: 0 0 8px; padding-left: 18px; font-size: 13px; color: var(--ink-soft); } .mpx-list li { margin-bottom: 4px; } .lspec-file { font-size: 13px; color: var(--ink-soft); } .lspec-file::file-selector-button { font: inherit; font-size: 13px; cursor: pointer; margin-right: 10px; background: var(--bg-raised); color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; min-height: 40px; } /* ── CRISPR editing-efficiency capture ────────────────────────────────── */ .ce-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; } .ce-row { display: grid; grid-template-columns: 46px 1fr 110px; gap: 10px; align-items: center; } .ce-rank { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); } .ce-spacer { font-size: 12.5px; word-break: break-all; color: var(--ink); } .ce-eff-input { font-size: 16px; /* iOS no-zoom */ min-height: 40px; width: 100%; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-raised); color: var(--ink); font-family: var(--font-mono); } .ce-eff-input:focus { outline: none; border-color: var(--accent, #3D3A34); } @media (max-width: 540px) { .ce-row { grid-template-columns: 40px 1fr 92px; gap: 8px; } } /* Outcome-logger selects (primer/cloning) β€” match design-opt inputs */ .design-opt-select { font-size: 16px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-raised); color: var(--ink); font-family: var(--font-mono); } .design-opt-select:focus { outline: none; border-color: var(--accent, #3D3A34); } .design-opt input[type="text"] { font-family: var(--font-mono); } /* ═══════════════════════════════════════════════════════════════════════ * BIO-LUMINOUS ATMOSPHERE β€” engine (2026-06) * Mirrors the home page so the app feels like the same high-end product. * Restrained for a data tool: an ambient GFP-cyan bloom + vignette behind * the transparent workspace, a halo on the living plasmid mark, a luminous * active-nav marker, and hairline blooms. Dark-only; gated on reduced-motion. * The accent is LIGHT only β€” never a fill β€” so the button/monochrome system * is untouched. * ═══════════════════════════════════════════════════════════════════════ */ .bg-atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; } .bg-atmos.lit { opacity: 1; } .app { position: relative; z-index: 1; } /* paints above the backdrop */ /* Dark-only: grain on the element, glow on ::before, vignette on ::after. */ :root[data-theme="dark"] .bg-atmos { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"); } :root[data-theme="dark"] .bg-atmos::before, :root[data-theme="dark"] .bg-atmos::after { content: ""; position: absolute; inset: 0; } :root[data-theme="dark"] .bg-atmos::before { background: radial-gradient(50% 38% at 64% 12%, rgba(var(--glow-rgb), 0.13), transparent 70%), radial-gradient(34% 30% at 30% 0%, rgba(var(--glow-rgb), 0.06), transparent 72%); } :root[data-theme="dark"] .bg-atmos::after { background: radial-gradient(125% 110% at 55% 25%, transparent 55%, rgba(0,0,0,0.50) 100%); } /* (Logo glow removed by request β€” the sidebar plasmid mark renders clean.) */ /* Luminous active-nav marker β€” the left rule + a soft bloom. */ :root[data-theme="dark"] .nav-item.active { border-left-color: var(--glow); box-shadow: -2px 0 12px -4px rgba(var(--glow-rgb), 0.6); } /* (Glowing topbar hairline removed by request β€” plain neutral border, no teal glow line. Same motif we dropped from the home page dividers.) */ /* Cursor aurora β€” a soft cyan light that smoothly trails the pointer (desktop, dark, motion-on). Slightly dimmer than the home page since this is a dense data tool. Driven by JS via --cx/--cy; transform-only β†’ GPU-cheap. */ #cursorGlow { display: none; } @media (pointer: fine) { :root[data-theme="dark"] #cursorGlow { display: block; position: fixed; top: 0; left: 0; z-index: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 0.5s ease; will-change: transform; transform: translate3d(var(--cx, -9999px), var(--cy, -9999px), 0); background: radial-gradient(circle, rgba(var(--glow-rgb), 0.08), transparent 66%); } } @media (prefers-reduced-motion: reduce) { #cursorGlow { display: none !important; } }
/* 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;