/* The research workspace: compact controls, readable records, and a scarlet activity map. */
#board-count,#active-filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:20px;background:#f9e4e6;color:#9c2035;font-size:10px;font-weight:800;margin-left:5px}
.search-composer{border:1px solid #eadbde;border-radius:16px;background:white;margin:0 0 24px;overflow:hidden;box-shadow:0 5px 20px #54112404}
.search-composer>summary{display:flex;align-items:center;gap:14px;padding:19px 24px;cursor:pointer;list-style:none}
.search-composer>summary::-webkit-details-marker{display:none}
.search-composer>summary:focus-visible{outline:3px solid #e94b63;outline-offset:-3px}
.composer-symbol{display:grid;place-items:center;width:40px;height:40px;background:#fff0f1;border-radius:12px;color:#bd2442;font-size:29px;flex-shrink:0}
.search-composer>summary b{display:block;font-size:16px;line-height:1.4;color:#491626}
.search-composer>summary small{display:block;font-size:12px;color:#8b7077;line-height:1.6;margin-top:2px;overflow-wrap:anywhere}
.composer-edit{margin-left:auto;flex-shrink:0;font-size:12px;font-weight:700;color:#ad203a;display:flex;gap:12px;align-items:center}
.search-composer[open] .composer-edit span{transform:rotate(180deg)}
.search-composer[open]>summary{border-bottom:1px solid #f0e3e5;background:#fffdfd}
.search-composer .search-panel{border:0;margin:0;box-shadow:none;border-radius:0}
.archive-phrase-row{padding:19px 0 7px}
.archive-phrase-row label{display:block;margin-bottom:9px;font-size:11px;letter-spacing:1.2px}
.archive-phrase-row label span{color:#9b858a;font-size:9px;margin-left:8px;letter-spacing:1px}
.archive-phrase-row input{width:100%;border:1px solid #e2d4d8;background:#fff;border-radius:9px;min-height:45px;padding:11px 14px;color:#491626;font:inherit;font-size:14px}
.archive-phrase-row input:focus{outline:2px solid #e94b6350;border-color:#dc435e}
.archive-phrase-row p{font-size:11px;line-height:1.7;color:#8d727a;margin:9px 0}
.date-presets{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.date-presets button{border:1px solid #e4d6da;background:#fff9fa;border-radius:5px;color:#8c3245;font:inherit;font-size:11px;padding:6px 10px;cursor:pointer}
.scan-progress{height:3px;max-width:340px;background:#edd9dd;border-radius:4px;margin-top:10px;overflow:hidden}
.scan-progress span{height:100%;display:block;border-radius:4px;background:#d23c57;transition:width .25s ease}
.results-toolbar{gap:12px;flex-wrap:wrap}
.export-actions{flex-wrap:wrap;justify-content:flex-end}
.refine-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:0 0 16px;border-bottom:1px solid #eee2e5}
.filter-shortcuts,.refine-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.filter-shortcuts>span{font-size:9px;letter-spacing:1.1px;color:#967b84;font-weight:700;margin-right:5px}
.filter-shortcuts button{font:inherit;font-size:11px;border:1px solid #e9dce0;border-radius:20px;background:#fff;padding:7px 11px;color:#835461;cursor:pointer}
.filter-shortcuts button:hover,.filter-shortcuts button.active{background:#f9e6ea;border-color:#dea4b2;color:#a31f3b}
.refine-actions .text-link{font-size:11px;padding:7px 8px}
.refine-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:22px;background:#fff8f9;border:1px solid #ead4dc;border-radius:12px;margin-top:12px}
.refine-panel label{font-size:11px;line-height:1.5;font-weight:700;color:#6e3c4b;display:flex;flex-direction:column;gap:6px}
.refine-panel input,.refine-panel select{border:1px solid #e1cfd5;padding:10px 12px;border-radius:7px;min-height:40px;font:inherit;font-size:12px;font-weight:400;background:white;color:#4c2632;min-width:0;width:100%}
.refine-panel input:focus,.refine-panel select:focus{outline:2px solid #e94b6350;border-color:#c63753}
.refine-panel .checkbox-label{flex-direction:row;align-items:center;align-self:end;gap:9px;min-height:40px}
.refine-panel .checkbox-label input{width:15px;min-height:15px;accent-color:#c12d48}
.refine-panel p{grid-column:1/-1;font-size:11px;color:#96707d;margin:0;line-height:1.6}
.record-tools{display:flex;gap:15px;flex-wrap:wrap;padding-top:14px}
.record-tool{border:0;padding:3px 0;background:transparent;color:#a6495d;font:inherit;font-size:11px;font-weight:600;cursor:pointer}
.record-tool:hover{color:#bf173b;text-decoration:underline}
.record-tool.is-pinned{color:#bd2744}
.coverage-shell{border:1px solid #e8dce1;border-radius:12px;background:#fff;margin-top:24px;overflow:hidden}
.coverage-shell>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 21px;cursor:pointer;color:#6e3b4b;font-size:12px;font-weight:700;list-style:none}
.coverage-shell>summary:after{content:'⌄';font-size:16px}
.coverage-shell[open]>summary:after{transform:rotate(180deg)}
#coverage-summary{font-size:11px;color:#997e88;font-weight:400;margin-left:auto}
.coverage-shell .coverage{border:0;margin:0;padding:0 21px 21px;background:transparent}
.activity-calendar{overflow:hidden}
.activity-calendar .chart-title{align-items:center;gap:20px}
.activity-calendar .section-kicker{font-size:9px;letter-spacing:1.5px}
.activity-calendar .chart-title h3{font-size:23px;margin-top:8px;font-weight:500;letter-spacing:-.6px}
.activity-calendar .chart-title label{display:flex;align-items:center;gap:9px;font-size:11px;color:#906271;white-space:nowrap}
.activity-calendar select{padding:8px 11px;border:1px solid #e4ccd5;border-radius:7px;background:#fff;color:#7d2d47;font:inherit}
.chart-description{font-size:11px;line-height:1.7;color:#967783;margin:6px 0 22px}
.heatmap-scroll{overflow-x:auto;padding:3px 2px 10px;scrollbar-width:thin}
.heatmap-months{display:flex;justify-content:space-between;min-width:650px;padding-bottom:10px;color:#997582;font-size:8px;letter-spacing:1px}
.heatmap-grid{display:grid;grid-template-rows:repeat(7,11px);grid-auto-flow:column;grid-auto-columns:minmax(9px,1fr);gap:4px;min-width:650px}
.heatmap-day{border:0;min-width:0;width:100%;height:11px;padding:0;cursor:pointer;border-radius:2px}
.heatmap-day:hover{outline:2px solid #b52143;outline-offset:1px}
.heatmap-day:focus-visible{outline:3px solid #491626;outline-offset:2px;z-index:1}
.level-0{background:#f4e9ee}.level-1{background:#f1b9c7}.level-2{background:#e8849b}.level-3{background:#d34b6b}.level-4{background:#a81e41}
.heatmap-legend{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:10px;color:#9b7c87;font-size:9px}
.heatmap-legend span:first-child{margin-right:5px}.heatmap-legend span:last-child{margin-left:5px}
.heatmap-legend i{width:10px;height:10px;border-radius:2px}
.is-focus #profile-heading,.is-focus .search-composer,.is-focus #stats,.is-focus .coverage-shell{display:none}
.is-focus #explore-page{max-width:920px;margin:auto}
.is-focus .record-body{font-size:16px;line-height:1.85}
.is-focus .record{padding-top:30px;padding-bottom:30px}
.research-save-dialog{border:1px solid #e9cfd9;border-radius:18px;padding:38px;width:min(520px,calc(100vw - 32px));color:#4e2434;box-shadow:0 24px 90px #48132630}
.research-save-dialog::backdrop{background:#2c101b80;backdrop-filter:blur(3px)}
.research-save-dialog h2{font-size:29px;font-weight:500;letter-spacing:-1px;margin:12px 0 25px}
.research-save-dialog label{display:block;font-size:12px;font-weight:700;margin-bottom:8px}
.research-save-dialog input{width:100%;padding:12px;border:1px solid #dcc5ce;border-radius:8px;font:inherit;font-size:14px;color:#491626}
.research-save-dialog p{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.research-save-dialog .muted{color:#947782}
.research-save-dialog .primary{margin-top:12px;padding:13px 23px}
.research-save-dialog .dialog-close{position:absolute;right:14px;top:12px;border:0;background:none;font-size:24px;color:#946676;cursor:pointer}
@media(max-width:760px){.search-composer>summary{padding:15px}.composer-symbol{width:32px;height:32px}.composer-edit{font-size:10px;gap:6px}.search-composer>summary b{font-size:14px}.search-composer>summary small{font-size:10px}.refine-panel{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:13px}.refine-row{align-items:flex-start}.export-actions{justify-content:flex-start}.coverage-shell>summary{padding:15px;gap:8px}.coverage-shell>summary>span:first-child{max-width:55%}.activity-calendar .chart-title h3{font-size:20px}.activity-calendar .chart-title{align-items:flex-start}.research-save-dialog{padding:28px}.header-actions>.brand-button{font-size:11px;padding:11px 13px}}
@media(max-width:430px){.refine-panel{grid-template-columns:1fr}.filter-shortcuts>span{width:100%;margin-bottom:3px}.composer-edit{font-size:0;gap:0}.composer-edit span{font-size:16px}.activity-calendar .chart-title{flex-direction:column;gap:14px}.record-tools{gap:12px}.coverage-shell>summary>span:first-child{font-size:11px}#coverage-summary{font-size:10px}}
@media(prefers-reduced-motion:reduce){.scan-progress span{transition:none}}
@media(max-width:760px){.export-actions>.button,.export-actions summary{font-size:11px;min-height:38px;justify-content:center}.export-actions .button svg,.export-actions summary svg{width:14px;height:14px}}
@media(max-width:430px){.export-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.export-actions>details,.export-actions summary{width:100%}}
@media(max-width:760px){.export-actions details>summary.button{font-size:11px}}
.search-period{align-items:center;padding:14px 0 5px;margin-top:7px}
.search-period>span,.history-format>span,.history-period>span{font-size:9px;font-weight:700;letter-spacing:1px;color:#916776;margin-right:6px}
.search-period>small{font-size:10px;color:#967782;margin-left:5px}
.search-period button[aria-pressed=true],.history-options button[aria-pressed=true]{background:#ad2945;color:white;border-color:#ad2945}
.history-options{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;align-items:center;margin:5px 0 17px;padding:15px 17px;background:#fff;border:1px solid #eadce1;border-radius:10px}
.history-format,.history-period{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.history-options button{font:inherit;font-size:12px;font-weight:600;border:1px solid #e4d2d9;border-radius:7px;padding:9px 12px;background:#fff9fb;cursor:pointer;color:#854758}
.history-options button small{font-size:9px;opacity:.8;margin-left:5px;font-weight:400}
.history-period>small{font-size:10px;color:#967782;margin-left:5px}
.plain-history-panel{border:1px solid #e7d5dd;border-radius:12px;background:white;overflow:hidden}
.plain-history-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:23px 24px 14px}
.plain-history-heading h3{font-size:20px;font-weight:500;letter-spacing:-.4px;color:#5b2237}
.plain-history-heading p{font-size:11px;margin-top:7px;color:#987180}
.plain-history-actions{display:flex;gap:8px;flex-wrap:wrap}
.plain-history-note{font-size:11px;line-height:1.7;color:#926777;padding:0 24px 18px}
.plain-history-text{display:block;width:100%;height:65vh;min-height:360px;resize:vertical;border:0;border-top:1px solid #eedfe5;background:#fffcfd;color:#472b36;padding:23px 25px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:2}
.plain-history-text:focus{outline:2px solid #cf506b;outline-offset:-3px}
@media(max-width:760px){.history-options{padding:13px;gap:13px}.history-format>span,.history-period>span{width:100%;margin-bottom:3px}.history-period>small{display:block;width:100%;margin:3px 0 0}.history-options button{font-size:11px;padding:8px 10px}.plain-history-heading{padding:18px 16px 12px}.plain-history-heading h3{font-size:19px}.plain-history-note{padding:0 16px 15px}.plain-history-text{padding:18px 16px;font-size:12px}.search-period>small{display:block;width:100%;margin:5px 0 0}}
