:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.5;font-weight:400;color:#0f172a;background-color:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-height:100vh;background-color:#f5f7fb}:root{--color-bg: #f8fafc;--color-text: #0f172a;--color-muted: #64748b;--color-border: #e2e8f0;--color-primary: #2563eb;--color-primary-fg: #ffffff;--c-exon: #94a3b8;--c-exon-bg: rgba(148, 163, 184, .2);--c-ref: #2563eb;--c-ref-bg: rgba(37, 99, 235, .15);--c-mut: #dc2626;--c-mut-bg: rgba(220, 38, 38, .15);--c-guide: #059669;--c-guide-bg: rgba(5, 150, 105, .15);--c-pam: #d97706;--c-pam-bg: rgba(245, 158, 11, .3);--c-search: #0ea5e9;--c-search-bg: rgba(14, 165, 233, .1);--c-bystander: #d946ef;--c-bystander-bg: rgba(217, 70, 239, .2);--c-edit-window: #eab308;--c-edit-window-bg: rgba(250, 204, 21, .4);--font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}.app{max-width:1280px;margin:0 auto;padding:2rem;color:var(--color-text);font-family:var(--font-sans)}.main-content{min-width:0;max-width:100%;overflow:hidden}.app-header{margin-bottom:2rem;border-bottom:1px solid var(--color-border);padding-bottom:1rem}.font-mono{font-family:var(--font-mono)}.header-content{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}.app-header h1{margin:0;font-size:1.5rem;color:var(--color-text)}.main-nav{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.main-nav button{margin:0;background:transparent;color:var(--color-muted);padding:.5rem 1rem;border-radius:8px;font-weight:600;border:1px solid transparent;transition:all .2s ease}.nav-toggle{display:none;background:transparent;border:1px solid var(--color-border);border-radius:8px;padding:.5rem;cursor:pointer;color:var(--color-text);margin:0}.nav-toggle svg{display:block}.main-nav button:hover{background:#f1f5f9;color:var(--color-text)}.main-nav button.active{background:#eff6ff;color:var(--color-primary);border-color:#dbeafe}.view-header{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:.75rem}.view-header h2{margin:0;font-size:1.3rem}.view-header .muted{margin-top:.15rem;font-size:.85rem;color:var(--color-muted)}.status-chip{min-width:100px;text-align:center;padding:.35rem .75rem;border-radius:999px;font-weight:600;background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe}label{display:block;font-weight:600;margin-bottom:.35rem}textarea,input,select{width:100%;padding:.55rem .65rem;border-radius:8px;border:1px solid #cbd5f5;font:inherit;background:#fff}textarea{resize:vertical}button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:none;border-radius:10px;background:var(--color-primary);color:var(--color-primary-fg);padding:.75rem 1.5rem;font-weight:600;cursor:pointer;transition:background .15s ease;margin-top:1rem}button:disabled{opacity:.6;cursor:progress}.card{border:1px solid var(--color-border);border-radius:16px;padding:1.5rem;background:#fff;box-shadow:0 20px 40px #0f172a0d;margin-bottom:1.5rem}.error{margin-top:.75rem;color:var(--c-ref);font-weight:600}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem}.summary-grid div{background:var(--color-bg);border-radius:10px;padding:.75rem 1rem}.summary-grid span{display:block;font-size:.9rem;color:#475569}.summary-grid strong{font-size:1.4rem}.variant{border:1px solid var(--color-border);border-radius:12px;margin-bottom:.75rem;padding:.75rem 1rem}.variant-header{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}.variant-header span{color:#475569;font-size:.9rem}.candidate{border-top:1px solid var(--color-border);padding:.75rem 0}.candidate:first-of-type{border-top:none}.candidate-header{display:flex;flex-direction:column;gap:.15rem}.badge{display:inline-block;padding:.1rem .4rem;border-radius:999px;background:#e0f2fe;color:#0369a1;font-size:.75rem;margin-right:.35rem}.badge.success{background:#dcfce7;color:#15803d;border:1px solid #86efac}.badge.warning{background:#fef3c7;color:#b45309;border:1px solid #fcd34d}.badge.neutral{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0}.badge.orange{background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe}.badge.danger{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.muted{color:var(--color-muted);font-size:.9rem}.muted.small{font-size:.8rem;margin-top:.5rem}.muted.tiny{font-size:.7rem;margin-top:.3rem;text-transform:uppercase;letter-spacing:.05em}pre{background:#0f172a;color:var(--color-border);border-radius:10px;padding:1rem;overflow:auto;font-size:.85rem}.viewer{margin-top:.75rem;max-width:100%;overflow:hidden}.viewer-toolbar{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.viewer-toolbar .spacer{flex:1}.viewer-scroll{overflow-x:auto;border:1px solid var(--color-border);border-radius:10px;background:#fff;max-width:100%}.btn-secondary{background:#f1f5f9;color:var(--color-text);border:1px solid var(--color-border);border-radius:8px;padding:.25rem .5rem;font-weight:600;cursor:pointer;margin-top:0}.btn-secondary:hover{background:var(--color-border)}.btn-secondary.btn-active{background:#1e293b;color:#fff;border-color:#1e293b}.btn-secondary.btn-active:hover{background:#334155;border-color:#334155}.btn-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:#f1f5f9;border:1px solid var(--color-border);border-radius:8px;color:#64748b;cursor:pointer;transition:all .15s ease}.btn-icon:hover{background:var(--color-border);color:#334155}.btn-icon-active{background:#1e293b;color:#fff;border-color:#1e293b}.btn-icon-active:hover{background:#334155;border-color:#334155}.legend-sticky{position:sticky;top:.5rem;background:#ffffffe6;-webkit-backdrop-filter:saturate(180%) blur(4px);backdrop-filter:saturate(180%) blur(4px);border:1px solid var(--color-border);padding:.4rem .6rem;border-radius:10px;margin-top:.5rem}.legend{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:.75rem;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:#475569}.legend-title{font-weight:700;color:var(--color-text);margin-right:.35rem}.legend-item{display:inline-flex;align-items:center;gap:.3rem}.legend-swatch{width:.9rem;height:.9rem;border-radius:.2rem;border:1px solid rgba(15,23,42,.2)}.legend-exon{background:var(--c-exon-bg)}.legend-variant-ref{background:var(--c-ref)}.legend-variant-mut{background:var(--c-mut)}.legend-search{background:var(--c-search-bg)}.legend-pam{background:var(--c-pam-bg)}.legend-editing{background:var(--c-edit-window-bg)}.legend-bystander{background:var(--c-bystander-bg)}.legend-guide{background:var(--c-guide-bg)}@media(max-width:1024px){.app{padding:1.5rem}.main-nav button{padding:.4rem .75rem;font-size:.88rem}.protocols-container{grid-template-columns:220px minmax(0,1fr);gap:.75rem}.protocols-container.sidebar-collapsed{grid-template-columns:auto minmax(0,1fr)}.protocol-header,.materials-section,.protocol-steps{padding:1rem 1.25rem}}@media(max-width:768px){.nav-toggle{display:flex}.main-nav{display:none;width:100%;flex-direction:column;gap:.25rem;padding-top:.75rem;border-top:1px solid var(--color-border);margin-top:.75rem}.main-nav.nav-open{display:flex}.main-nav button{width:100%;text-align:left;padding:.6rem 1rem;font-size:.95rem;border-radius:8px}.main-nav .nav-divider{height:1px;width:100%;margin:.25rem 0}.user-menu{width:100%;justify-content:space-between}.auth-buttons-group{width:100%;flex-direction:column}.auth-buttons-group .auth-button{width:100%;justify-content:center}.header-content{flex-wrap:nowrap}.step-group{padding-left:2.25rem}.analysis-run-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}}@media(max-width:640px){.app{padding:.75rem}.app-header{margin-bottom:1rem;padding-bottom:.75rem}.app-header h1{font-size:1.25rem}.app-header h1 svg{width:24px;height:24px}.view-header{flex-direction:column;gap:.5rem}.view-header h2{font-size:1.25rem}.card{padding:1rem;border-radius:12px}.pill-grid{gap:.4rem}.option-pill{padding:.35rem .75rem;font-size:.8rem}.summary-grid{grid-template-columns:repeat(2,1fr);gap:.5rem}.summary-grid strong{font-size:1.1rem}.matrix-scroll{margin:0 -1rem;padding:0 1rem;border-radius:0;border-left:none;border-right:none}.step-group{padding-left:2rem}.variant-header{flex-direction:column;gap:.5rem}.variant-input{font-size:.88rem!important}.legend{font-size:.7rem;gap:.5rem}.legend-sticky{padding:.3rem .5rem}}.protocols-container{display:grid;grid-template-columns:280px minmax(0,1fr);gap:1rem;min-height:600px;overflow:hidden;align-items:start}.protocols-sidebar{background:#fff;border:1px solid #e9ecf1;border-radius:10px;padding:.65rem;position:sticky;transition:width .2s ease,padding .2s ease;top:1rem;max-height:calc(100vh - 5rem);display:flex;flex-direction:column}.protocols-sidebar.collapsed{padding:.4rem;width:auto;min-width:0;align-items:center;justify-content:flex-start}.protocols-container.sidebar-collapsed{grid-template-columns:auto minmax(0,1fr)}.sidebar-header{display:flex;align-items:flex-start;gap:.35rem}.sidebar-toggle-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc;color:#64748b;cursor:pointer;flex-shrink:0;transition:background .15s ease,color .15s ease}.sidebar-toggle-btn:hover{background:#e2e8f0;color:#334155}.sidebar-toggle-btn.collapse{margin-top:.1rem}.protocol-list-scroll{overflow-y:auto;flex:1;min-height:0;margin:0 -.25rem;padding:0 .25rem}.protocol-group{margin-bottom:.35rem}.protocol-group:last-child{margin-bottom:0}.protocol-group-header{display:flex;align-items:center;gap:.3rem;padding:.2rem .4rem .15rem;margin-bottom:.1rem}.protocol-group-count{font-size:.6rem;color:#94a3b8;font-weight:500}.protocol-empty-sidebar{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:2rem 1rem;text-align:center}.protocol-empty-sidebar p{margin:0;font-size:.85rem;color:#94a3b8}.protocol-search-wrap{position:relative}.protocol-search-wrap .protocol-search-icon{position:absolute;left:.7rem;top:50%;transform:translateY(-50%);color:#94a3b8;pointer-events:none;display:flex;align-items:center}.protocol-search-wrap input{padding-left:2rem;height:32px;font-size:.8rem;border-radius:8px;border:1px solid #e2e8f0;background:#f8fafc;transition:border-color .15s,background .15s,box-shadow .15s}.protocol-search-wrap input:focus{background:#fff;border-color:#93c5fd;box-shadow:0 0 0 3px #3b82f614;outline:none}.protocol-search-wrap input::placeholder{color:#94a3b8;font-weight:400}.protocol-drafts-toggle{display:flex;align-items:center;gap:.45rem;cursor:pointer;font-size:.78rem;font-weight:500;color:#64748b;-webkit-user-select:none;user-select:none;padding:.35rem .5rem;border-radius:8px;transition:background .15s}.protocol-drafts-toggle:hover{background:#f8fafc}.protocol-drafts-toggle input[type=checkbox]{width:14px;height:14px;accent-color:#d97706;cursor:pointer;flex-shrink:0}.protocol-drafts-warning{margin:.25rem 0 0;font-size:.72rem;color:#92400e;line-height:1.4;padding:.3rem .5rem;background:#fffbeb;border-radius:6px;border:1px solid #fde68a}.protocol-list{list-style:none;padding:0;margin:0}.protocol-list li{margin-bottom:2px}.protocol-list li:last-child{margin-bottom:0}.protocol-btn{width:100%;text-align:left;background:transparent;color:#334155;border:1.5px solid transparent;padding:.45rem .6rem;border-radius:8px;cursor:pointer;transition:all .15s ease;margin-top:0;display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;box-shadow:none}.protocol-btn:hover{background:#f8fafc;border-color:#e9ecf1;box-shadow:none;transform:none}.protocol-btn.active{background:#f0f5ff;border-color:#c7d8f4;color:#1e3a6e}.protocol-btn.active .protocol-btn-title{color:#1e3a6e}.protocol-btn.active .protocol-btn-desc{color:#6b7fa3}.protocol-btn-title{font-weight:600;font-size:.78rem;color:#0f172a;line-height:1.25}.protocol-btn-desc{font-size:.68rem;color:#94a3b8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35}.protocol-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:4rem 2rem;background:#fff;border:1px dashed #e2e8f0;border-radius:16px;min-height:400px}.protocol-empty-state .protocol-empty-icon{width:80px;height:80px;display:flex;align-items:center;justify-content:center;background:#f8fafc;border-radius:50%;margin-bottom:1.5rem}.protocol-empty-state h3{margin:0 0 .5rem;font-size:1.15rem;color:#334155;font-weight:600}.protocol-empty-state p{margin:0;color:#94a3b8;font-size:.9rem;max-width:320px;line-height:1.5}.protocol-detail{background:#fff;border:1px solid #e9ecf1;border-radius:10px;padding:0;overflow:hidden;min-width:0;max-width:100%}.protocol-header{background:#fafcff;border-bottom:1px solid #e2e8f0;padding:1rem 1.75rem .75rem;margin-bottom:0}.protocol-header-top{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap}.protocol-header-main{flex:1 1 0;min-width:0}.protocol-detail h2{font-size:1.35rem;color:#0f172a;margin-top:0;letter-spacing:-.01em;line-height:1.3}.protocol-description{margin:.4rem 0 0;color:#64748b;font-size:.85rem;line-height:1.45}.protocol-version-hash{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .5rem;border-radius:4px;font-size:.65rem;font-family:ui-monospace,monospace;color:#64748b;background:#f1f5f9;border:1px solid #e2e8f0;cursor:pointer;transition:all .15s ease}.protocol-version-hash:hover{background:#e2e8f0;border-color:#cbd5e1}.protocol-toolbar{display:flex;align-items:center;gap:.45rem;flex-shrink:0;flex-wrap:wrap}.protocol-toolbar-sep{width:1px;height:1.1rem;background:#e2e8f0;margin:0 .15rem}.protocol-meta{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.3rem;color:#475569;font-size:.78rem;align-items:center}.protocol-meta span{display:inline-flex;align-items:center;gap:.25rem;color:#64748b;font-size:.78rem}.protocol-meta span svg{color:#94a3b8;flex-shrink:0}.protocol-meta span+span:before{content:"·";margin-right:.4rem;color:#cbd5e1;font-weight:700}.protocol-meta a{color:var(--color-primary);text-decoration:none;font-weight:500}.protocol-meta a:hover{text-decoration:underline}.protocol-progress{margin-top:.5rem;padding-top:.4rem;border-top:1px solid rgba(226,232,240,.5)}.protocol-progress-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:.4rem;font-size:.78rem;color:#64748b;font-weight:500}.protocol-progress-pct{font-weight:700;color:#16a34a;font-variant-numeric:tabular-nums}.protocol-progress-bar{height:6px;background:#e2e8f0;border-radius:999px;overflow:hidden}.protocol-progress-fill{height:100%;background:linear-gradient(90deg,#22c55e,#16a34a);border-radius:999px;transition:width .4s cubic-bezier(.4,0,.2,1)}.protocol-schematic-wrap{margin-top:.35rem}.beacon-schematic-wrap{margin-top:.25rem;padding-top:.25rem;border-top:1px solid rgba(226,232,240,.5)}.materials-section{background:#fff;padding:1rem 1.75rem;border-bottom:1px solid #e2e8f0;margin:0;border-radius:0;border-left:none;border-right:none;border-top:none;overflow:hidden}.materials-section h3{margin-top:0;margin-bottom:.5rem;font-size:1.05rem;color:#334155}.materials-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.5rem;margin-top:.75rem}.material-item{background:#f8fafc;padding:.5rem .75rem;border-radius:6px;border:1px solid #f1f5f9}.material-name{font-weight:700;color:#000}.material-amount{color:var(--color-muted);font-size:.85rem}.protocol-steps{padding:1rem 1.75rem 1.25rem;min-width:0}.protocol-step-section{margin-bottom:1.25rem;min-width:0;scroll-margin-top:1rem}.protocol-step-section:last-child{margin-bottom:0}.protocol-options{padding:.75rem 1.75rem;border-bottom:1px solid #e2e8f0;background:#fff}.protocol-options-label{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;margin:0 0 .5rem}.protocol-options-groups{display:flex;gap:1.5rem;flex-wrap:wrap;align-items:flex-start}.protocol-options-group{display:flex;flex-direction:column;gap:.35rem}.protocol-options-group-label{font-size:.72rem;font-weight:600;color:#64748b}.protocol-options-toggle{display:flex;background:#f1f5f9;border-radius:8px;padding:3px;gap:2px}.protocol-option-btn{padding:.35rem .75rem;font-size:.78rem;font-weight:500;border:none;background:transparent;color:#64748b;cursor:pointer;transition:all .18s ease;white-space:nowrap;border-radius:6px;line-height:1.3}.protocol-option-btn:hover:not(.active){color:#334155;background:#ffffff80}.protocol-option-btn.active{background:#fff;color:#1e293b;font-weight:600;box-shadow:0 1px 3px #00000014,0 0 0 1px #0000000a}.protocol-options-hint{font-size:.68rem;color:#b45309;font-weight:600;margin-top:.3rem;padding:.2rem .5rem;background:#fffbeb;border:1px solid #fde68a;border-radius:5px;line-height:1.3}.protocol-toc{padding:.75rem 1.75rem;border-bottom:1px solid #e2e8f0;background:#fff}.protocol-toc-label,.protocol-options-label{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;margin:0 0 .4rem}.protocol-toc ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.15rem 0;counter-reset:toc}.protocol-toc li{counter-increment:toc;flex:0 0 100%}.protocol-toc a{display:flex;align-items:baseline;gap:.4rem;padding:.25rem .4rem;border-radius:6px;text-decoration:none;color:#334155;font-size:.82rem;font-weight:500;transition:background .12s ease;line-height:1.35}.protocol-toc a:before{content:counter(toc,upper-alpha) ".";color:#94a3b8;font-size:.75rem;font-weight:600;min-width:1.2rem;flex-shrink:0}.protocol-toc a:hover{background:#f1f5f9;color:var(--color-primary)}.toc-time{color:#94a3b8;font-size:.72rem;font-weight:400;margin-left:auto}.section-header{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#f8fafc,#eef2ff);border:1px solid #e2e8f0;border-radius:10px;margin-bottom:.75rem;padding:.6rem .85rem;scroll-margin-top:1rem;cursor:pointer;transition:background .15s ease,box-shadow .15s ease;-webkit-user-select:none;user-select:none}.section-header:hover{background:linear-gradient(135deg,#f1f5f9,#e0e7ff);box-shadow:0 1px 3px #0000000d}.section-header.collapsed{margin-bottom:.5rem}.section-header-right{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.section-chevron{color:#94a3b8;transition:transform .2s ease;flex-shrink:0}.section-header.collapsed .section-chevron{transform:rotate(-90deg)}.section-title{font-size:1.05rem;color:#1e293b;margin:0;padding:0;border:none;display:flex;align-items:center;gap:.5rem}.section-number{display:inline-flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;border-radius:50%;background:var(--color-primary);color:#fff;font-size:.75rem;font-weight:700;flex-shrink:0;line-height:1}.section-time{font-size:.75rem;font-weight:500;color:#64748b;background:#ffffffb3;padding:.15rem .55rem;border-radius:999px;border:1px solid #e2e8f0;white-space:nowrap;flex-shrink:0}.step-item{margin-bottom:2px;border-radius:8px;border:1px solid transparent;display:flex;gap:.6rem;padding:.5rem .65rem;transition:all .2s ease;cursor:pointer;min-width:0}.step-item:hover{background:#f8fafc;border-color:#f1f5f9}.step-item.completed{background:#f0fdf4;border-color:#dcfce7}.step-item.completed .step-content{color:#6b7280}.step-item.completed .step-content .step-paragraph{text-decoration:line-through;text-decoration-color:#d1d5db}.step-number{margin-top:.15rem;min-width:1.6rem;height:1.6rem;border:2px solid var(--color-border);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;background:#fff;font-size:.72rem;font-weight:600;color:#64748b;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;transition:all .2s ease}.step-number:hover{border-color:#93c5fd;color:#2563eb}.step-number.checked{background:#16a34a;border-color:#16a34a;color:#fff;transform:scale(1.05)}.step-content{line-height:1.6;font-size:1rem;min-width:0;flex:1;white-space:pre-line}.step-blocks{display:flex;flex-direction:column;gap:.35rem}.step-paragraph{margin:0}.step-list,.step-sublist{margin:.15rem 0;padding-left:1.35rem}.step-sublist{margin-top:.1rem}.step-list li,.step-sublist li{margin:.15rem 0}.step-table-wrapper{margin:.5rem 0;overflow-x:auto;-webkit-overflow-scrolling:touch}.step-table{border-collapse:collapse;font-size:.82rem;width:100%;background:#fff;border-radius:6px;overflow:hidden;border:1px solid #e2e8f0}.step-table th,.step-table td{padding:.4rem .65rem;text-align:left;border-bottom:1px solid #f1f5f9;white-space:nowrap}.step-table th{background:#f8fafc;font-weight:600;color:#334155;font-size:.78rem;text-transform:none;letter-spacing:0;border-bottom:2px solid #e2e8f0}.step-table td{color:#475569}.step-table td:first-child{font-weight:500;color:#1e293b}.step-table tbody tr:hover{background:#f8fafc}.step-table tbody tr:last-child td{border-bottom:none}.step-note{display:flex;align-items:flex-start;gap:.5rem;margin-top:.75rem;padding:.6rem .8rem;background:#f8fafc;border-left:3px solid #94a3b8;border-radius:0 6px 6px 0;font-size:.9rem;color:#475569}.step-note .note-icon{flex-shrink:0;font-size:.9rem}.step-note .note-content{flex:1;min-width:0}.step-note-section{margin-bottom:.5rem;padding-bottom:.5rem;border-bottom:1px dashed #e2e8f0}.step-note-section:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.step-idea{display:flex;align-items:flex-start;gap:.5rem;margin-top:.6rem;padding:.6rem .8rem;background:linear-gradient(135deg,#faf5ff,#f3e8ff);border:1px solid #e9d5ff;border-left:3px solid #a855f7;border-radius:0 6px 6px 0;font-size:.9rem;color:#6b21a8}.step-idea .idea-icon{flex-shrink:0;font-size:1rem}.step-idea .idea-content{flex:1;min-width:0}.step-idea a{color:#7c3aed}.step-idea a:hover{color:#5b21b6}.step-warning{display:flex;align-items:flex-start;gap:.5rem;margin-top:.75rem;padding:.6rem .8rem;background:#fef2f2;border-left:3px solid #dc2626;border-radius:0 6px 6px 0;font-size:.9rem;color:#991b1b}.step-warning .warning-icon{flex-shrink:0;font-size:.9rem}.step-warning .warning-content{flex:1;min-width:0}.highlight-time{color:#15803d;font-weight:700}.highlight-material{color:#000;font-weight:700}.beacon-icon{height:52px;width:auto;flex-shrink:0}@media(max-width:640px){.beacon-icon{height:40px}}.tool-brand{display:flex;align-items:center;gap:.6rem}.tool-brand-icon{flex-shrink:0}.tool-brand-title{font-size:1.75rem;font-weight:800;letter-spacing:.08em;color:#1c1917;margin:0;line-height:1}.tool-brand-acronym{display:block;font-size:.75rem;color:#64748b;margin-top:.25rem;line-height:1.3;letter-spacing:.01em}.tool-brand-acronym .acronym-letter{font-weight:600;color:#475569}@media(max-width:640px){.tool-brand-icon{width:36px;height:36px}.tool-brand-title{font-size:1.3rem}.tool-brand-acronym{font-size:.65rem}}.protocol-discussion{padding:1.5rem 2.5rem;border-top:1px solid #e2e8f0}.protocol-discussion-toggle{display:flex;align-items:center;gap:.5rem;background:none;border:none;cursor:pointer;padding:0;width:100%;margin:0}.protocol-discussion-arrow{font-size:.6rem;color:#94a3b8;transition:transform .2s ease;display:inline-block}.protocol-discussion-title{margin:0;font-size:1.05rem;font-weight:600;color:#0f172a}.protocol-discussion-count{background:#eff6ff;color:#2563eb;font-size:.72rem;font-weight:600;padding:.1rem .45rem;border-radius:999px;line-height:1.4}.protocol-discussion-signin{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.85rem 1rem;background:#f8fafc;border-radius:10px;border:1px solid #e2e8f0;font-size:.9rem;color:#64748b}@media(max-width:768px){.protocol-discussion{padding:1.25rem 1rem}}@media(max-width:768px){.protocols-container{grid-template-columns:1fr;gap:1rem}.protocols-sidebar{padding:.6rem;border-radius:10px;position:static;max-height:none}.protocols-container.has-selection .protocols-sidebar,.sidebar-toggle-btn.collapse{display:none}.protocol-back-mobile{display:block}.protocol-detail{border-radius:10px}.protocol-header{padding:1rem}.protocol-detail h2{font-size:1.15rem}.protocol-meta{gap:.3rem .4rem}.protocol-toolbar{flex-direction:row}.materials-section{padding:.75rem 1rem}.materials-grid{grid-template-columns:1fr}.protocol-steps{padding:1.25rem 1rem}.section-header{gap:.35rem;padding:.5rem .65rem}.section-title{font-size:.95rem}.protocol-toc,.protocol-options{padding:.6rem 1rem}.protocol-options-groups{gap:.75rem}.step-item{padding:.65rem .5rem;gap:.65rem}.step-content{font-size:.92rem}.step-note,.step-idea,.step-warning{font-size:.85rem;padding:.5rem .6rem}.protocol-empty-state{padding:3rem 1.5rem;min-height:300px}}.protocol-back-mobile{display:none}@media print{.app-header,.protocols-sidebar,.view-header,.protocol-toolbar,button{display:none!important}.app{padding:0;max-width:none;margin:0}.main-content{padding:0}.protocols-container{display:block;grid-template-columns:1fr;gap:0;min-height:auto}.protocol-detail{border:none;box-shadow:none;padding:0;margin:0}body{color:#000;background:#fff}.muted{color:#444}.materials-section{background:#fff;border:1px solid #ccc;break-inside:avoid}.materials-grid{display:block;column-count:2}.material-item{break-inside:avoid;margin-bottom:.5rem}.step-item{padding:.5rem 0;border-bottom:1px solid #eee;break-inside:avoid}.step-item:hover{background:transparent}.step-number{border-color:#000;min-width:1.25rem;height:1.25rem;font-size:.7rem}.step-number.checked{background:#fff;border-color:#000;color:#000}a{text-decoration:underline;color:#000!important}}.selector-section{display:flex;flex-direction:column;gap:2rem;margin-top:1rem}.selector-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:.6rem}.selector-header label{font-weight:600;color:var(--color-text)}.option-pill{border:1px solid var(--color-border);border-radius:999px;background:#fff;padding:.4rem 1rem;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;gap:.5rem;font-size:.9rem;font-weight:500;color:#334155;white-space:nowrap}.option-pill:hover{border-color:#94a3b8;background:#f8fafc}.option-pill.selected{border-color:#2563eb;background:#eff6ff;color:#1e40af;box-shadow:0 0 0 1px #2563eb;font-weight:600}.pill-star{color:#b45309;font-size:.85rem;margin-right:.1rem}.pill-label{white-space:nowrap}.pill-grid{display:flex;flex-wrap:wrap;gap:.5rem}.analysis-run-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.75rem}.analysis-run-card{border:1px solid var(--color-border);border-radius:12px;padding:.8rem;background:#f8fafc}.analysis-run-title{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.analysis-run-tags{display:flex;gap:.3rem}.analysis-run-meta{margin-top:.5rem;display:flex;flex-direction:column;gap:.2rem;font-size:.85rem;color:#475569}.clinical-tag{display:inline-flex;align-items:center;justify-content:center;width:1rem;height:1rem;border-radius:999px;font-size:.7rem;color:#b45309;background:#fffbeb;border:1px solid #fbbf24;cursor:help}.variant-badge{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.4rem;align-items:center}.badge.soft{background:#e0f2fe;color:#0f172a}.matrix-scroll{overflow-x:auto;border:1px solid var(--color-border);border-radius:12px;background:#fff}.results-matrix{width:100%;border-collapse:collapse;min-width:600px}.results-matrix th,.results-matrix td{padding:.75rem 1rem;text-align:center;border-bottom:1px solid var(--color-border)}.results-matrix th.matrix-corner,.results-matrix th.matrix-row-header{text-align:left}.results-matrix th{background:#f8fafc;font-weight:600;font-size:.9rem;color:#475569;position:sticky;top:0;z-index:10}.results-matrix th.matrix-corner{z-index:20;left:0;border-right:1px solid var(--color-border);background:#f1f5f9}.matrix-row-header{position:sticky;left:0;z-index:10;background:#f8fafc;border-right:1px solid var(--color-border);padding-left:.75rem;padding-right:.75rem}.matrix-header-cell{display:flex;flex-direction:column;gap:.2rem}.results-matrix th:not(.matrix-corner):not(.matrix-row-header) .matrix-header-cell{align-items:center}.matrix-pam{font-size:.75rem;color:#94a3b8;font-weight:400}.matrix-cell{text-align:center;cursor:pointer;transition:background .15s}.matrix-cell:hover{background:#f1f5f9}.matrix-cell.selected{background:#eff6ff;box-shadow:inset 0 0 0 2px #3b82f6}.matrix-cell.zero{color:#cbd5e1}.matrix-count{font-weight:600;font-size:1.1rem;color:#0f172a}.matrix-cell.zero .matrix-count{color:#cbd5e1}.matrix-cell.empty{background:#f8fafc;cursor:default}.step-group{position:relative;padding-left:2.5rem;margin-bottom:.75rem}.step-group:last-of-type{margin-bottom:0}.step-rail{position:absolute;left:0;top:0;bottom:0;width:2rem;display:flex;flex-direction:column;align-items:center}.step-indicator{width:1.6rem;height:1.6rem;background:#2563eb;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;flex-shrink:0}.step-connector{flex:1;width:2px;background:#cbd5e1;margin-top:.35rem}.step-header{margin-bottom:.75rem}.step-title{margin:0;font-size:.95rem;color:#1e293b;font-weight:700}.step-subtitle{font-size:.72rem;color:#94a3b8;margin-top:.1rem}.config-preset-card{display:flex;align-items:flex-start;gap:.75rem;text-align:left;padding:.65rem .85rem;border-radius:8px;border:1.5px solid var(--color-border);background:#fff;cursor:pointer;transition:all .15s ease}.config-preset-card:hover{border-color:#94a3b8;background:#fafbfc}.config-preset-card:focus-visible{outline:2px solid #2563eb;outline-offset:1px}.config-preset-card.selected{border-color:#2563eb;background:#eff6ff}.preset-radio{padding-top:.2rem;flex-shrink:0}.preset-radio-dot{display:block;width:16px;height:16px;border-radius:50%;border:2px solid #cbd5e1;transition:all .15s ease}.preset-radio-dot.checked{border-color:#2563eb;border-width:5px}.variant-input{width:100%;padding:.75rem;border-radius:8px;border:1px solid #cbd5e1;font-size:1rem;transition:border-color .2s}.variant-input:focus{border-color:#3b82f6;outline:none;box-shadow:0 0 0 2px #3b82f61a}.info-icon-hover:hover{background:#0000001a!important;transform:translateY(-50%) scale(1.1)!important}.option-pill.selected .info-icon-hover:hover{background:#ffffff80!important}.nav-divider{width:1px;height:24px;background:var(--color-border);margin:0 .5rem}.user-menu{display:flex;align-items:center;gap:.75rem}.user-name{font-size:.9rem;font-weight:500;color:var(--color-text);padding:.25rem .75rem;background:#f1f5f9;border-radius:999px}.auth-button{display:inline-flex;align-items:center;gap:.4rem;margin:0;padding:.5rem 1rem;border-radius:8px;font-weight:600;font-size:.9rem;cursor:pointer;transition:all .2s ease}.auth-button.login{background:transparent;color:var(--color-primary);border:1px solid #cbd5e1}.auth-button.login:hover,.auth-button.login.active{background:#eff6ff;border-color:var(--color-primary)}.auth-button.signup{background:var(--color-primary);color:#fff;border:1px solid var(--color-primary)}.auth-button.signup:hover{background:#1d4ed8;border-color:#1d4ed8}.auth-buttons-group{display:flex;align-items:center;gap:.5rem}.auth-button.logout{background:transparent;color:#64748b;border:1px solid #e2e8f0}.auth-button.logout:hover{background:#fef2f2;color:#b91c1c;border-color:#fecaca}.login-container{display:flex;justify-content:center;align-items:center;min-height:60vh;padding:2rem}.login-card{width:100%;max-width:420px;background:#fff;border-radius:20px;box-shadow:0 4px 6px -1px #0000000d,0 20px 40px -10px #0000001a;border:1px solid var(--color-border);overflow:hidden}.login-header{text-align:center;padding:2.5rem 2rem 1.5rem;background:linear-gradient(to bottom,#f8fafc,#fff);border-bottom:1px solid #f1f5f9}.login-header svg{margin-bottom:1rem}.login-header h2{margin:0 0 .5rem;font-size:1.5rem;color:var(--color-text);font-weight:700}.login-subtitle{margin:0;color:var(--color-muted);font-size:.95rem}.login-form{padding:2rem}.form-group{margin-bottom:1.25rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:600;font-size:.9rem;color:#334155}.form-group input{width:100%;padding:.75rem 1rem;border:1.5px solid #e2e8f0;border-radius:10px;font-size:1rem;transition:all .2s ease;background:#fff}.form-group input:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px #2563eb1a}.form-group input::placeholder{color:#94a3b8}.login-error{display:flex;align-items:flex-start;gap:.5rem;padding:.75rem 1rem;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;color:#b91c1c;font-weight:500;font-size:.9rem;margin-bottom:1rem}.login-button{width:100%;padding:.9rem;background:linear-gradient(to bottom,#3b82f6,#2563eb);color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;margin-top:.5rem;box-shadow:0 2px 4px #2563eb33}.login-button:hover{background:linear-gradient(to bottom,#2563eb,#1d4ed8);box-shadow:0 4px 8px #2563eb4d;transform:translateY(-1px)}.login-button:active{transform:translateY(0)}.login-button:disabled{background:#94a3b8;cursor:not-allowed;transform:none;box-shadow:none}.spinner{width:16px;height:16px;border:2px solid transparent;border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:640px){.login-container{padding:1rem;min-height:50vh}.login-card{border-radius:16px}.login-header{padding:1.5rem 1rem 1rem}.login-form{padding:1.25rem}.analysis-run-grid{grid-template-columns:1fr}.viewer-toolbar{flex-wrap:wrap}}.workflow-grid{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:.85rem;column-gap:3rem}.workflow-grid-mobile{grid-template-columns:1fr}.workflow-cell{position:relative;display:flex}.workflow-cell-arrow:after{content:"";position:absolute;right:-1.9rem;top:50%;width:20px;height:12px;transform:translateY(-50%);background:no-repeat center / contain;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12' fill='none' stroke='%23cbd5e1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='1' y1='6' x2='15' y2='6'/%3E%3Cpolyline points='12 3 17 6 12 9'/%3E%3C/svg%3E")}.workflow-grid-mobile .workflow-cell-arrow:after{display:none}.workflow-card{position:relative;width:100%;height:100%;padding:1.4rem 1.15rem .85rem;background:#fff;border:1px solid #e2e8f0;border-radius:12px;cursor:pointer;text-align:left;transition:all .25s ease;margin-top:0;overflow:hidden;display:grid;grid-template-columns:22px 1fr;grid-template-rows:auto auto 1fr auto;column-gap:.5rem;row-gap:.2rem;align-items:center}.workflow-card-accent{position:absolute;top:0;left:0;right:0;height:3px;transition:opacity .25s ease}.workflow-card-step{position:absolute;top:8px;right:8px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.6rem;font-weight:700;transition:all .25s ease}.workflow-card-icon{grid-row:1;grid-column:1;width:22px;height:22px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.workflow-card-icon svg{width:20px;height:20px}.workflow-card-label{grid-row:1;grid-column:2;font-weight:600;color:#0f172a;font-size:.95rem;letter-spacing:-.01em;line-height:1.25;padding-right:1.25rem}.workflow-card-pub{grid-row:2;grid-column:2;font-size:.58rem;font-weight:600;letter-spacing:.08em;color:#94a3b8;line-height:1}.workflow-card-brief{grid-row:3;grid-column:1 / -1;font-size:.8rem;color:#94a3b8;line-height:1.35;margin-top:.2rem;align-self:start}.workflow-card-open{grid-row:4;grid-column:1 / -1;font-size:.75rem;font-weight:500;display:flex;align-items:center;justify-content:flex-end;gap:.25rem;transition:color .2s ease;margin-top:.4rem;align-self:end}
