/* Store diagnostics: independent metrics / history / AI panels. */
.store-analysis-board.store-board{container-type:inline-size;padding:18px;background:#eff4fc;border:1px solid #d7e2f3;border-radius:22px;min-width:0}
.store-analysis-board .board-heading{align-items:flex-start;flex-wrap:wrap;padding:18px;gap:16px;margin-bottom:16px}
.store-analysis-board .board-heading>div:first-child{flex:1 1 240px;min-width:0}
.store-analysis-board .board-heading h2{font-size:21px;overflow-wrap:anywhere}
.store-analysis-board .board-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;min-width:0;max-width:100%;margin:0;flex:1 1 450px}
.store-analysis-board .board-controls .btn,.store-analysis-board .board-controls select{min-height:40px;max-width:100%;font-size:13px;margin:0}
.store-analysis-board>.notice{margin-bottom:16px}
.store-analysis-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr) minmax(0,1.05fr);gap:16px;align-items:start;min-width:0}
.store-analysis-panel{display:flex;flex-direction:column;height:clamp(320px,calc(100dvh - 320px),860px);background:#ffffffed;border:1px solid #dbe5f4;border-radius:20px;min-width:0;overflow:hidden;box-shadow:0 4px 16px #3a507008}
.store-analysis-panel-heading{flex:none;display:flex;gap:11px;align-items:center;padding:17px 18px;border-bottom:1px solid #e5ebf6;background:#fafbff}
.store-analysis-board .store-analysis-panel-heading h3{margin:0;color:#2e3e59;font-size:17px;line-height:1.5}
.store-analysis-panel-heading p{margin:4px 0 0;font-size:12px;color:#63728a;line-height:1.7}
.store-panel-icon{display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:12px;color:#5a6bdf;background:#edf0ff}
.store-panel-icon>.icon{width:18px;height:18px}
.store-analysis-panel-body{padding:16px;min-width:0;min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#c6d1e5 transparent}
.store-analysis-panel-body:focus-visible{outline:3px solid #93b4fb;outline-offset:-3px}
.store-analysis-panel-body p{overflow-wrap:anywhere;line-height:1.8}
.store-metrics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
.store-analysis-board .board-card{padding:13px;border-radius:14px;box-shadow:none;min-width:0}
.store-analysis-board .board-card-title{font-size:13px;line-height:1.55;gap:5px;align-items:flex-start;flex-direction:column}
.store-analysis-board .board-card-title span{font-size:11px;line-height:1.5}
.store-analysis-board .board-card strong{font-size:clamp(20px,1.6vw,27px);margin:7px 0;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.store-analysis-board .board-card small{font-size:11px;line-height:1.7}
.store-analysis-board .board-card.critical{background:#fff2f4;border-color:#ecc2cc}
.store-analysis-board .board-card.critical strong,.store-analysis-board .board-card.critical span{color:#af3653}
.store-panel-note{font-size:12px;color:#64748b;margin:0 0 14px;line-height:1.8}
.store-metrics-grid+.store-panel-fold{margin-top:14px}
.store-analysis-board .store-panel-fold{border-top:1px solid #e3eaf5;padding:13px 0 0;margin-top:14px;min-width:0}
.store-analysis-board .store-panel-fold>summary{display:flex;align-items:center;gap:8px;list-style:none;font-size:13px;font-weight:600;line-height:1.7;color:#445978;cursor:pointer}
.store-analysis-board .store-panel-fold>summary::-webkit-details-marker,.store-ai-finding>summary::-webkit-details-marker{display:none}
.store-analysis-board .store-panel-fold>summary>.icon:last-child,.store-ai-finding>summary>.icon{margin-left:auto;width:15px;height:15px;flex:none}
.store-panel-fold[open]>summary{margin-bottom:13px}
.store-panel-fold[open]>summary>.icon:last-child,.store-ai-finding[open]>summary>.icon{transform:rotate(180deg)}
.store-metrics-panel .store-panel-note:last-child{margin:14px 0 0}
.store-history-list{display:grid;gap:10px}
.store-history-entry{padding:13px;border:1px solid #dfe6f1;border-radius:14px;background:#fbfcff;min-width:0}
.store-history-entry.in-period{border-color:#bccbf2;background:#f5f8ff}
.store-history-entry>header{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.store-history-entry>header>strong{font-size:14px;color:#344561}
.store-history-entry .badge{font-size:10px;padding:3px 7px}
.store-history-entry dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin:12px 0 9px}
.store-history-entry dt{font-size:11px;color:#687891;line-height:1.6}
.store-history-entry dd{margin:3px 0 0;font-size:16px;font-weight:650;color:#344561;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.store-history-entry>small{font-size:10px;color:#6b7a91;line-height:1.7;display:block}
.store-history-comparison{padding:13px;border:1px solid #dce5f4;border-radius:14px;background:#f2f6ff;margin-bottom:13px;display:grid;gap:4px}
.store-history-comparison strong{font-size:13px;color:#40577e}
.store-history-comparison p{font-size:12px;margin:0;color:#64748b}
.store-history-comparison span{font-size:12px;color:#516582}
.store-history-comparison b{font-size:18px;margin-left:7px;font-variant-numeric:tabular-nums;color:#405ad0}
.store-history-comparison small{font-size:11px;color:#6b7a91;line-height:1.7}
.store-history-empty,.store-ai-empty{display:grid;justify-items:start;gap:8px;padding:17px;background:#f7f9fe;border:1px dashed #d8e2f3;border-radius:14px;margin:10px 0 0}
.store-history-empty>.icon,.store-ai-empty>.icon{color:#7788c6;width:22px;height:22px}
.store-history-empty strong,.store-ai-empty strong{font-size:14px;color:#465675}
.store-history-empty p,.store-ai-empty p{font-size:12px;color:#64748b;margin:0}
.store-ai-trigger{width:100%;justify-content:center;min-height:42px;padding:11px;font-size:13px;white-space:normal}
.store-ai-trigger+.store-panel-note{margin-top:12px}
#store-ai-result>.small-text{font-size:11px;margin:12px 0 10px}
.store-ai-conclusion{padding:14px;border:1px solid #dce5f6;background:#f1f5ff;border-radius:14px;margin-bottom:12px}
.store-ai-conclusion p{font-size:13px;margin:6px 0 0;color:#374b6c;white-space:pre-wrap}
.store-ai-finding{padding:13px;border:1px solid #e0e7f3;border-radius:14px;margin:10px 0;background:#fff}
.store-ai-finding>summary{display:flex;align-items:center;gap:8px;list-style:none;font-size:13px;font-weight:650;color:#3f5270;cursor:pointer;line-height:1.7}
.store-ai-finding p,.store-ai-history p{font-size:12px;margin:10px 0;white-space:pre-wrap;color:#50637f}
.store-ai-finding p>strong{display:block;margin-bottom:3px;color:#354762;font-size:12px}
.store-ai-finding ol,.store-alert-fold ul,.store-chain-fold ol{padding-left:19px;font-size:12px;color:#50637f;line-height:1.8;overflow-wrap:anywhere}
.store-analysis-board .store-ai-next{padding:10px;border-radius:10px;background:#f3f8f6;margin-bottom:0}
.store-analysis-board .store-ai-history h3{font-size:14px;margin:13px 0 7px;color:#3f5270}
.store-chain-fold .chain-step{padding:13px 0;min-width:0}
.store-chain-fold .chain-title{flex-wrap:wrap;gap:7px}
.store-analysis-board .chain-title h3{font-size:13px;margin:0}
.store-chain-fold .chain-title strong{font-size:14px;overflow-wrap:anywhere}
.store-chain-fold .chain-index{width:24px;height:24px;font-size:11px;flex:none}
.store-chain-fold .chain-issue{font-size:12px}
@container(max-width:1000px){.store-analysis-grid{grid-template-columns:minmax(0,1fr)}.store-metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.store-history-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(max-width:530px){.store-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-history-list{grid-template-columns:minmax(0,1fr)}.store-analysis-board .board-controls{justify-content:flex-start}.store-analysis-board .board-controls .btn{flex:1 1 150px}.store-analysis-board .board-controls select{flex:1 1 150px;width:100%}.store-analysis-panel-body{padding:13px}}
@media(max-width:768px){.store-analysis-board.store-board{padding:12px}.store-analysis-board .board-heading{padding:14px}.store-analysis-grid{grid-template-columns:minmax(0,1fr)}.store-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-history-list{grid-template-columns:minmax(0,1fr)}.store-analysis-panel-heading{padding:14px}.store-analysis-board .board-card strong{font-size:24px}}
@media(max-width:380px){.store-analysis-board .board-card{padding:10px}.store-analysis-board .board-card strong{font-size:21px}.store-analysis-panel-body{padding:10px}}
