/* FigureFolio v0.6.1 consolidated stylesheet. */

/* === v051.css === */
/* FigureFolio v0.5.1 — expanded scientific figure catalogue and workflow tools */
.new-modal-wide{width:min(1220px,97vw)}
#newTypeGrid.type-grid{display:block}
.figure-catalogue50{display:grid;gap:15px}
.catalogue-section50{display:grid;gap:8px}
.catalogue-heading50{display:flex;align-items:end;justify-content:space-between;gap:12px}
.catalogue-heading50 b{font-size:12px;color:#27364c}
.catalogue-heading50 span{font-size:9px;color:var(--muted)}
.catalogue-grid50{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.catalogue-grid50.all50{grid-template-columns:repeat(5,minmax(0,1fr))}
.catalogue-group50{margin-top:3px}
.catalogue-group50>small{display:block;margin:0 0 6px;color:#6f7c90;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.type-card50{position:relative;min-height:91px;padding:9px 7px;border:1px solid #d7dee8;border-radius:10px;background:#fbfcfe;color:#2f3d52;text-align:center}
.type-card50:hover{border-color:#8aa8cf;background:#f3f7fd;transform:translateY(-1px)}
.type-card50.active{border:2px solid #3767b2;background:#edf4ff;color:#204a84}
.type-card50 .type-icon{height:42px;font-size:27px}
.type-card50 .type-name{font-size:10px}
.type-card50 .type-desc50{display:block;margin-top:3px;color:#7b8798;font-size:8px;line-height:1.2}
.quick-badge50{position:absolute;right:5px;top:5px;border-radius:99px;background:#e5eefb;color:#315f99;padding:2px 5px;font-size:7px;font-weight:900}
.advanced-table50{min-width:760px}
.advanced-table50 th:first-child,.advanced-table50 td:first-child{width:54px;text-align:center}
.advanced-table50 th:last-child,.advanced-table50 td:last-child{width:68px}
.advanced-table50 tr.excluded50 td{opacity:.48;background:#f6f7f9}
.advanced-table50 .include50{width:16px;height:16px}
.data-toolbar50{display:flex;gap:5px;align-items:center;margin-left:auto}
.btn.tool50{padding:6px 8px;font-size:9px}
.workflow-grid50{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.workflow-card50{padding:11px;border:1px solid var(--line);border-radius:9px;background:#fafbfd}
.workflow-card50 b,.workflow-card50 small{display:block}
.workflow-card50 small{margin-top:3px;color:var(--muted);font-size:9px;line-height:1.4}
.operation-history50{max-height:130px;overflow:auto;display:grid;gap:5px;margin-top:7px}
.operation-history50 div{display:flex;justify-content:space-between;gap:10px;padding:6px 8px;border-radius:6px;background:#f1f5f9;font-size:9px}
.preflight-summary50{display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;background:#f5f8fd;border:1px solid #d4e0f0}
.preflight-score50{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#315f99;color:#fff;font-size:16px;font-weight:900}
.preflight-list50{display:grid;gap:6px;margin-top:12px}
.preflight-item50{display:grid;grid-template-columns:20px minmax(0,1fr);gap:7px;padding:8px;border:1px solid #e0e6ee;border-radius:7px;font-size:10px;line-height:1.35}
.preflight-item50.good{background:#f3faf6;border-color:#cfe5d8}.preflight-item50.warn{background:#fffaf0;border-color:#ecd9a9}.preflight-item50.bad{background:#fff5f4;border-color:#ecc7c1}
.repro-card50{border:1px solid #d6dee9;border-radius:10px;background:#fbfcfe;padding:13px}
.repro-card50 dl{display:grid;grid-template-columns:120px minmax(0,1fr);gap:6px 10px;margin:0;font-size:10px}
.repro-card50 dt{color:#6c7788;font-weight:800}.repro-card50 dd{margin:0;overflow-wrap:anywhere}
.copy-box50{position:relative;margin-top:10px}.copy-box50 textarea{width:100%;min-height:82px;padding:9px;border:1px solid var(--line2);border-radius:7px;resize:vertical;font-size:10px;line-height:1.45}
.link-source50{width:100%}
.community-rail50{width:56px;min-height:43px;display:grid;place-items:center;gap:1px;border:1px solid #3b4960;border-radius:10px;background:#172235;color:#e5edf8;text-decoration:none;font-size:16px;font-weight:900}
.community-rail50 small{font-size:7px;letter-spacing:.04em}
.community-rail50:hover{background:#24364f}
.catalogue-chip50{display:inline-flex;align-items:center;gap:4px;border:1px solid #d9e2ed;border-radius:99px;padding:3px 7px;background:#fff;color:#526075;font-size:8px}
.transform-preview50{padding:8px;border-radius:7px;background:#eef4fb;color:#345270;font-size:9px;line-height:1.45}
.privacy-note50{padding:9px;border-radius:8px;background:#fff8e8;border:1px solid #ead49d;color:#725719;font-size:9px;line-height:1.45}
.snapshot-list50{max-height:140px;overflow:auto;margin-top:8px;display:grid;gap:5px}
.snapshot-list50 div{padding:7px 8px;border:1px solid #e0e5ec;border-radius:7px;background:#fff;font-size:9px}
.canvas-wrap .advanced-chart50 [data-row]{cursor:pointer}
.new-config .type-note50{padding:9px;border-radius:7px;background:#edf4ff;color:#34567f;font-size:9px;line-height:1.4}
.top-actions .review-button50{color:#eaf2ff;border-color:#57739b;text-decoration:none}
@media(max-width:1180px){.catalogue-grid50,.catalogue-grid50.all50{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:860px){.catalogue-grid50,.catalogue-grid50.all50{grid-template-columns:repeat(3,minmax(0,1fr))}.type-card50{min-height:82px}.workflow-grid50{grid-template-columns:1fr}.data-toolbar50{width:100%;margin-left:0}.top-actions .review-button50{display:none}.community-rail50{width:46px;min-width:46px;height:45px}.community-rail50 small{display:none}.repro-card50 dl{grid-template-columns:90px minmax(0,1fr)}}


/* === v052.css === */
/* FigureFolio v0.5.2 */
.canvas-actions #addComparisonBtn{white-space:nowrap;min-width:106px;padding-left:10px;padding-right:10px}
.figure-picker52{display:grid;gap:9px}.recent52{display:grid;gap:8px}.browse-types52{width:100%;min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border:1px solid #d7dee8;border-radius:9px;background:#f8fafc;color:#314159;text-align:left}.browse-types52:hover{background:#f0f5fb;border-color:#a9bbd1}.browse-types52 span{display:grid;gap:2px}.browse-types52 b{font-size:10px}.browse-types52 small{color:#78869a;font-size:8px}.browse-types52 i{font-style:normal;font-size:16px;transition:.15s}.browse-types52.open52 i{transform:rotate(180deg)}.selected-type52{display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid #c9daed;border-radius:8px;background:#edf4ff;font-size:9px}.selected-type52 span{color:#68778b;text-transform:uppercase;letter-spacing:.06em;font-weight:850}.all-types52{padding:10px;border:1px solid #d6deea;border-radius:10px;background:#fff;box-shadow:0 10px 30px rgba(27,44,70,.08)}.all-types52[hidden]{display:none}.all-types-head52{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.all-types-head52 div{display:grid}.all-types-head52 b{font-size:11px}.all-types-head52 small{margin-top:2px;color:#7a8797;font-size:8px}.all-types-head52 button{width:28px;height:28px;border:1px solid #d6deea;border-radius:7px;background:#fff;color:#657286;font-size:17px}.all-types-grid52{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.all-types-grid52 .type-card50{min-height:78px;padding:7px 5px}.all-types-grid52 .type-card50 .type-icon{height:31px;font-size:22px}.all-types-grid52 .type-card50 .type-desc50{font-size:7.5px}.excel-modal52{width:min(680px,94vw)}.excel-steps52{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.excel-steps52 section{display:grid;grid-template-columns:28px 1fr;gap:9px;padding:12px;border:1px solid #dce3ec;border-radius:10px;background:#fafbfd}.excel-steps52 b{font-size:10px}.excel-steps52 p{margin:4px 0 9px;color:var(--muted);font-size:9px;line-height:1.45}.step-number52{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#315f99;color:#fff;font-size:10px;font-weight:900}.download-template52{display:inline-flex;text-decoration:none;font-size:9px}.excel-preview52{min-height:48px;margin-top:9px;padding:10px;border:1px solid #dbe2ea;border-radius:8px;background:#f8fafc;color:#586579;font-size:9.5px;line-height:1.45}.excel-error52{color:#a03e3e}.excel-steps52 input[type=file]{max-width:100%;font-size:9px}
@media(max-width:950px){.all-types-grid52{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.all-types-grid52{grid-template-columns:repeat(3,minmax(0,1fr))}.excel-steps52{grid-template-columns:1fr}}


/* === v053.css === */
/* FigureFolio v0.5.3 */
.ff53-hidden{display:none!important}
#libraryBtn,.rail-library{background:linear-gradient(180deg,#315f99,#244d82)!important;border-color:#6f93c4!important;color:#fff!important;box-shadow:0 5px 14px rgba(49,95,153,.22)}
#communityRail50{background:linear-gradient(180deg,#6b55b8,#54409b)!important;border-color:#9d8ddb!important;color:#fff!important;box-shadow:0 5px 14px rgba(90,69,158,.23)}
#communityRail50:hover,#libraryBtn:hover,.rail-library:hover{filter:brightness(1.08)}
.group-manager-button53{border-color:#c8d6e9!important;background:#f4f8fe!important;color:#315f99!important}
.group-list53{display:grid;gap:7px;margin:12px 0}.group-item53{display:grid;grid-template-columns:14px minmax(0,1fr) 30px;gap:8px;align-items:center}.group-item53 input{width:100%;border:1px solid var(--line2);border-radius:6px;padding:7px 8px}.group-dot53{width:11px;height:11px;border-radius:50%}.group-add53{width:100%;margin-top:4px}
.custom-style-preview53{display:grid;grid-template-columns:auto 92px minmax(0,1fr);gap:10px;align-items:center;margin:9px 0;padding:9px;border:1px solid #d6e0ed;border-radius:8px;background:#fff}.style-preview-swatches53{display:flex;gap:3px}.style-preview-swatches53 i{display:block;width:12px;height:26px;border-radius:3px}.custom-style-preview53 svg{width:92px;height:28px;border:1px solid #e5e9ef;border-radius:5px;background:#fafbfd}.custom-style-preview53>span{font-size:10px;font-weight:750;color:#465469;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-drawer.library-fullscreen53{left:20px!important;right:20px!important;top:20px!important;bottom:20px!important;width:auto!important;border:1px solid #cbd5e1!important;border-radius:14px!important;box-shadow:0 28px 80px rgba(15,23,42,.28)!important;z-index:1900!important;overflow:hidden}.library-drawer.library-fullscreen53 .library-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;align-content:start;padding:8px 16px 30px}.library-drawer.library-fullscreen53 .library-folder{margin:0}.library-drawer.library-fullscreen53 .library-search{max-width:620px}.library-folder.drop-target{outline:2px solid #477cc1;outline-offset:2px;background:#eff6ff}.library-figure.dragging{opacity:.45;transform:scale(.985)}.library-drag-handle{cursor:grab}.library-drag-handle:active{cursor:grabbing}
#yTickCard53 input:disabled{background:#f1f3f6;color:#9aa3af}
#labelSymbolsBtn,#addComparisonBtn{text-transform:none!important;white-space:nowrap}
#addComparisonBtn{min-width:112px}
#tab-content .section-head h2,#tab-layout .section-head h2,#tab-style .section-head h2{letter-spacing:-.01em}
@media(max-width:860px){.library-drawer.library-fullscreen53{inset:8px!important}.custom-style-preview53{grid-template-columns:1fr}.custom-style-preview53 svg{display:none}}


/* === v054.css === */
/* FigureFolio v0.5.4 */
.ff54-hidden{display:none!important}
/* One visual rhythm in the left rail. */
.rail-new,#libraryBtn,#communityRail50,.proj-thumb{width:68px!important;min-width:68px!important;height:70px!important;min-height:70px!important;border-radius:10px!important}
.rail-new{font-size:26px!important;display:grid!important;place-items:center!important}
#libraryBtn,#communityRail50{display:grid!important;place-items:center!important;align-content:center!important;gap:4px!important;padding:5px!important;text-decoration:none!important}
#communityRail50{border-style:solid!important;border-width:1px!important;font-size:17px!important}
#communityRail50 small,#libraryBtn small{font-size:7px!important;font-weight:850!important;letter-spacing:.05em!important}
.proj-thumb{border:2px solid var(--folder-colour54,#334157)!important}
.proj-thumb.active{box-shadow:0 0 0 2px color-mix(in srgb,var(--folder-colour54,#8eb2ef) 38%,transparent)!important}

/* Folder colour cues. */
.library-folder{border-left:4px solid var(--folder-colour54,#477cc1)!important}
.folder-dot54{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:-1px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.folder-colour-field54{margin-top:11px}.folder-colour-control54{display:flex;align-items:center;gap:10px;margin-top:5px}.folder-colour-control54 input{width:44px;height:34px;border:1px solid #cbd5e1;border-radius:6px;padding:2px;background:#fff}.folder-colour-control54 span{font-size:10px;color:var(--muted);line-height:1.35}

/* Dragging should feel tangible. */
.library-drag-ghost54{position:fixed;left:0;top:0;z-index:3200;pointer-events:none;width:210px;display:grid;grid-template-columns:48px minmax(0,1fr);gap:9px;align-items:center;padding:8px 10px;border:1px solid #9fb4d1;border-radius:9px;background:rgba(255,255,255,.92);box-shadow:0 12px 28px rgba(15,23,42,.24);backdrop-filter:blur(3px);opacity:.92}
.library-drag-ghost-icon54{width:46px;height:34px;display:grid;place-items:center;border:1px solid #d8e0ea;border-radius:5px;background:#fff;overflow:hidden}.library-drag-ghost-icon54 svg{width:100%;height:100%}.library-drag-ghost54 b,.library-drag-ghost54 small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-drag-ghost54 b{font-size:10px}.library-drag-ghost54 small{margin-top:2px;font-size:8.5px;color:var(--muted)}

/* Delete actions grouped bottom-left, destructive action first. */
.modal-footer.delete-footer54{justify-content:flex-start!important}.modal-footer.delete-footer54 .btn{margin-left:0!important}

/* Library may be full-screen; panel export must still be on top. */
#panelsModal.panels-foreground54{z-index:3600!important}

/* Excel round-trip. */
.excel-clean54+#downloadCurrentExcel54{margin-left:7px}.excel-download-help54{margin:8px 0 0!important;max-width:560px}

/* Roadmap types remain visible but cannot be selected. */
.type-choice52.type-in-progress54{position:relative;opacity:.66;cursor:not-allowed!important;filter:saturate(.6)}
.type-choice52.type-in-progress54:hover{transform:none!important;box-shadow:inset 0 0 0 1px var(--line)!important}.type-lock54{display:inline-flex;align-items:center;gap:3px;margin-top:5px;padding:3px 6px;border:1px solid #d8dde6;border-radius:99px;background:#f2f4f7;color:#687385;font-size:8px;font-weight:850;letter-spacing:.02em}

/* The complete plot box is visible, not only its top edge. */
.plot-guide54{vector-effect:non-scaling-stroke}

@media(max-width:860px){
 .rail-new,#libraryBtn,#communityRail50,.proj-thumb{width:48px!important;min-width:48px!important;height:45px!important;min-height:45px!important}
 #communityRail50 small,#libraryBtn small{display:none!important}.library-drag-ghost54{width:170px}
}


/* === v055.css === */
/* FigureFolio v0.5.5 */
.ff55-hidden{display:none!important}

/* Compact, equal-height primary rail controls; thumbnails retain room for previews. */
.rail-new,#libraryBtn,#communityRail50{width:56px!important;min-width:56px!important;height:44px!important;min-height:44px!important;border-radius:9px!important}
.proj-thumb{width:64px!important;min-width:64px!important;height:58px!important;min-height:58px!important;border-radius:9px!important;padding:4px!important}.proj-thumb .thumb-visual{height:31px!important}.proj-thumb .thumb-name{font-size:7px!important}
.rail-new{font-size:21px!important}#libraryBtn,#communityRail50{padding:3px!important;gap:1px!important}#libraryBtn span,#communityRail50{line-height:1!important}
.canvas-wrap [data-survival-plot55]{cursor:move;pointer-events:all}.canvas-wrap [data-survival-plot55="nw"],.canvas-wrap [data-survival-plot55="se"]{cursor:nwse-resize}.canvas-wrap [data-survival-plot55="ne"],.canvas-wrap [data-survival-plot55="sw"]{cursor:nesw-resize}.km-style-note55{margin-top:9px!important;color:#315f99!important}
.data-table.type-forest.forest-interaction55{min-width:760px!important}.data-table.type-forest col.c-interaction55{width:104px}.forest-interaction-cell55:empty{background:#f8fafc}.forest-column-toggles{flex-wrap:wrap}.forest-interaction-help55{grid-column:1/-1;margin:6px 0 0!important}

/* Matrix-first Heatmap editor. */
.heatmap-matrix-table55{min-width:max-content!important;border-collapse:separate!important;border-spacing:0!important}
.heatmap-matrix-table55 th{min-width:108px;max-width:150px;background:#f2f6fb!important;position:sticky;top:0;z-index:3}
.heatmap-matrix-table55 th:first-child{left:0;z-index:5;min-width:145px}.heatmap-matrix-table55 tbody th{position:sticky;left:0;z-index:2;background:#f7f9fc!important}
.heatmap-matrix-table55 td{min-width:82px;padding:3px!important}.heatmap-matrix-table55 .numinput{width:100%;min-width:76px;text-align:center;font-variant-numeric:tabular-nums}
.heatmap-axis-editor55{display:grid;grid-template-columns:minmax(76px,1fr) 24px;gap:3px;align-items:center}.heatmap-axis-editor55 input{min-width:0;width:100%;border:1px solid #cbd6e4;border-radius:5px;padding:5px 6px;background:#fff;color:#304057;font-weight:750}.heatmap-axis-editor55 button{width:24px;height:24px;border:0;border-radius:5px;background:transparent;color:#a33c4a;cursor:pointer}.heatmap-axis-editor55 button:hover{background:#fff0f1}
.heatmap-value55:focus{outline:2px solid #6f8fc0;outline-offset:-1px;background:#f8fbff}
.heatmap-range55,.heatmap-custom-colours55{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.heatmap-range55 input{width:100%;min-width:0}.heatmap-custom-colours55 input{width:100%;height:31px}.heatmap-custom-colours55.disabled55{opacity:.38;pointer-events:none}
.heatmap-layout55,.heatmap-colour55{border-color:#c8d8ec!important;background:linear-gradient(145deg,#f8fbff,#fff)!important}
.all-types-grid52:before{content:"AVAILABLE NOW";grid-column:1/-1;color:#667085;font-size:8px;font-weight:900;letter-spacing:.1em;margin:2px 0 -2px}
.all-types-grid52 .type-in-progress54.first-locked55{margin-top:18px}.all-types-grid52 .type-in-progress54.first-locked55:before{content:"IN PROGRESS · 10";position:absolute;left:0;top:-17px;color:#7b8493;font-size:8px;font-weight:900;letter-spacing:.1em;white-space:nowrap}

@media(max-width:860px){
 .rail-new,#libraryBtn,#communityRail50,.proj-thumb{width:46px!important;min-width:46px!important;height:43px!important;min-height:43px!important}.proj-thumb .thumb-visual{height:31px!important}
 .heatmap-matrix-table55 th:first-child{min-width:118px}.heatmap-matrix-table55 th{min-width:92px}.heatmap-matrix-table55 td{min-width:74px}
}


/* === v058.css === */
/* FigureFolio v0.5.8 */
.km-group-list57{display:grid;gap:7px}.km-group-row57{display:grid;grid-template-columns:14px minmax(105px,1fr) 38px minmax(92px,120px);gap:7px;align-items:center}.km-group-row57 input,.km-group-row57 select{min-width:0}.km-group-row57 input[type=color]{width:38px;height:31px;padding:2px}.km-reset57{margin-top:10px}.canvas-wrap [data-km-plot57="move"],.canvas-wrap [data-km-legend57="move"],.canvas-wrap [data-km-risk57="move"]{cursor:move;pointer-events:all}.canvas-wrap [data-km-plot57="nw"],.canvas-wrap [data-km-plot57="se"],.canvas-wrap [data-km-legend57="resize"],.canvas-wrap [data-km-risk57="resize"]{cursor:nwse-resize;pointer-events:all}.canvas-wrap [data-km-plot57="ne"],.canvas-wrap [data-km-plot57="sw"]{cursor:nesw-resize;pointer-events:all}.km-handle57{fill:#3472c6;stroke:#fff;stroke-width:1.5}.km-plot-guide57{stroke:#3472c6;stroke-width:1;stroke-dasharray:4 3}.advanced-table50.type-survival{min-width:720px}.type-survival td:nth-child(4),.type-survival td:nth-child(5){font-variant-numeric:tabular-nums}.type-survival .setting-inline input[type=number]{min-width:0}@media(max-width:900px){.km-group-row57{grid-template-columns:14px minmax(100px,1fr) 38px}.km-group-row57 select{grid-column:2/4}}


/* === v059.css === */
/* FigureFolio v0.5.9 */
.forest-header-grid59{display:grid;grid-template-columns:1fr 1fr;gap:6px}.forest-favours-grid59{display:grid;grid-template-columns:1fr 1fr;gap:6px}.forest-global-style59{border-color:#c6d5e8;background:#f8fbff}.forest-ci-height59{margin-top:6px}.km-logrank-settings59{margin-top:7px;flex-wrap:wrap}.canvas-wrap [data-km-logrank59="move"]{cursor:move;pointer-events:all}.canvas-wrap [data-km-logrank59="resize"]{cursor:nwse-resize;pointer-events:all}
@media(max-width:560px){.forest-header-grid59,.forest-favours-grid59{grid-template-columns:1fr}}


/* === v060.css === */
/* FigureFolio v0.5.10 */
#customStylesCard24{margin-top:18px;border-top:2px solid #cfd8e6;background:#fbfcfe}
.ff60-style-preview{display:grid;grid-template-columns:auto 34px minmax(0,1fr);gap:10px;align-items:center;padding:9px 0 4px}
.ff60-style-swatches{display:flex;gap:3px}.ff60-style-swatches i{display:block;width:15px;height:15px;border-radius:4px;border:1px solid rgba(0,0,0,.08)}
.ff60-style-aa{font-weight:750;line-height:1;color:var(--text)}.ff60-style-preview b,.ff60-style-preview small{display:block}.ff60-style-preview small{margin-top:2px;color:var(--muted);font-size:9px}.ff60-style-help{margin:6px 0 0}
#tab-style .ff60-forest-irrelevant{display:none}
.ff60-forest-dim-help{margin:8px 0 0}
@media(max-width:860px){.ff60-style-preview{grid-template-columns:auto 30px minmax(0,1fr)}}

