/* FITFREK_UNIFIED_HISTORY_V1_7 */
#ff-tools .ffuh{width:100%;min-width:0;margin:0;color:var(--text,#e8e8ee);font-family:var(--fb,'Barlow',sans-serif)}
#ff-tools .ffuh-chart-wrap{position:relative;width:100%;min-width:0;height:clamp(134px,14vw,158px);overflow:visible}
#ff-tools .ffuh-chart{display:block;width:100%;height:100%;overflow:visible;touch-action:pan-y}
#ff-tools .ffuh-baseline{stroke:var(--border,#2e2e33);stroke-width:1;vector-effect:non-scaling-stroke}
#ff-tools .ffuh-line{fill:none;stroke:var(--green,#3ecf8e);stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#ff-tools .ffuh-point{fill:var(--green,#3ecf8e);stroke:var(--green,#3ecf8e);stroke-width:1;vector-effect:non-scaling-stroke}
#ff-tools .ffuh-point.is-current{stroke-width:2}
#ff-tools .ffuh-cursor{stroke:rgba(232,232,238,.34);stroke-width:1;stroke-dasharray:3 4;vector-effect:non-scaling-stroke}
#ff-tools .ffuh-tooltip{position:absolute;top:2px;transform:translateX(-50%);z-index:3;width:max-content;max-width:min(150px,calc(100% - 12px));padding:7px 9px;border:1px solid #4a4a54;border-radius:7px;background:#25262c;color:var(--text,#e8e8ee);box-shadow:0 8px 24px rgba(0,0,0,.34);line-height:1.25;pointer-events:none;overflow-wrap:anywhere}
#ff-tools .ffuh-tip-date,#ff-tools .ffuh-tip-store{display:block;font-size:10px;color:var(--muted,#8b8b9d)}
#ff-tools .ffuh-tip-price{display:block;margin:2px 0;font-family:var(--fd,'Barlow Condensed',sans-serif);font-size:15px;color:#fff}
#ff-tools .ffuh-axis{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:20px;margin-top:2px;color:var(--muted,#8b8b9d);font-size:10.5px;line-height:1.2}
#ff-tools .ffuh-zero{white-space:nowrap}
#ff-tools .ffuh-controls{display:grid;grid-template-columns:repeat(var(--ffuh-count,4),minmax(0,1fr));gap:2px;width:100%;margin-top:8px}
#ff-tools .ffuh-range{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;min-height:36px;height:36px;margin:0;padding:0 4px;border:1px solid var(--border,#2e2e33);border-radius:6px;background:var(--surface2,#222226);color:var(--dim,#c0c0cc);font-size:12px;font-weight:600;line-height:1;text-align:center;cursor:pointer}
#ff-tools .ffuh-range[aria-pressed="true"]{border-color:var(--green,#3ecf8e);color:var(--green,#3ecf8e);background:rgba(62,207,142,.06)}
#ff-tools .ffuh-summary{margin:8px 0 0;color:var(--dim,#c0c0cc);font-size:12px;line-height:1.35;text-wrap:pretty}
#ff-tools .ffuh-empty{margin:10px 0 2px;padding:14px;border:1px dashed var(--border,#2e2e33);border-radius:8px;color:var(--muted,#8b8b9d);font-size:12px;text-align:center}
@media(max-width:480px){#ff-tools .ffuh-chart-wrap{height:134px}#ff-tools .ffuh[data-mode="preview"] .ffuh-chart-wrap{height:96px}#ff-tools .ffuh-range{min-height:34px;height:34px;font-size:11.5px}#ff-tools .ffuh-summary{font-size:11.5px}}
@media(prefers-reduced-motion:reduce){#ff-tools .ffuh *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
#ff-tools .ffuh-native-links{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:8px;padding:0;color:var(--muted,#8b8b9d);font-size:11.5px;line-height:1.35}
#ff-tools .ffuh-native-links a{color:inherit;text-decoration:underline;text-underline-offset:2px}
#ff-tools .ffuh-meta{display:flex;align-items:center;justify-content:flex-end;min-height:16px;margin:0 0 2px;color:var(--muted,#8b8b9d);font-size:10px;font-weight:600;line-height:1.2;letter-spacing:.01em}
#ff-tools .ffuh[data-mode="preview"] .ffuh-chart-wrap{height:118px}
#ff-tools .ffuh[data-mode="preview"] .ffuh-controls,
#ff-tools .ffuh[data-mode="preview"] .ffuh-summary,
#ff-tools .ffuh[data-mode="preview"] .ffuh-native-links{display:none!important}
#ff-tools .ffuh[data-mode="preview"] .ffuh-axis{margin-top:0}
#ff-tools .ffuh[data-mode="preview"] .ffuh-end{white-space:nowrap}
#ff-tools .ffuh[data-granularity="week"] .ffuh-point:not(.is-current),
#ff-tools .ffuh[data-granularity="month"] .ffuh-point:not(.is-current){r:3}
@media(max-width:480px){#ff-tools .ffuh[data-mode="preview"] .ffuh-chart-wrap{height:96px}#ff-tools .ffuh-meta{font-size:9.5px}}
#ff-tools [data-ff-unified-history-mode="preview"]>.ffuh-native-links{display:none!important}

/* FITFREK_UNIFIED_HISTORY_V1_8_FINAL_DETAIL_ACTIONS */
#ff-tools [data-ffuh-superseded="1"],
#ff-tools [data-ffuh-superseded-root="1"]>[data-ff-unified-history]{display:none!important}
#ff-tools .ffuh-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:8px;padding:0}
#ff-tools .ffuh-link{appearance:none;border:0;background:transparent;color:var(--muted,#8b8b9d);padding:0;font:inherit;font-size:11.5px;line-height:1.4;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
#ff-tools .ffuh-link:hover,#ff-tools .ffuh-link:focus-visible{color:var(--text,#e8e8ee)}
#ff-tools .ffuh-method{margin-top:8px;padding:10px 12px;border:1px solid var(--border,#2e2e33);border-radius:8px;background:var(--surface2,#222226);color:var(--muted,#8b8b9d);font-size:11.5px;line-height:1.55}
#ff-tools .ffuh-method p{margin:0}
#ff-tools .ffuh-method button{appearance:none;margin-top:8px;padding:0;border:0;background:transparent;color:var(--dim,#c0c0cc);font:inherit;font-size:11.5px;font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.ffuh-record-dialog{width:min(560px,calc(100% - 24px));max-width:none;max-height:min(86dvh,760px);padding:0;border:1px solid #42424b;border-radius:14px;background:#18181b;color:#e8e8ee;box-shadow:0 26px 80px rgba(0,0,0,.65);overflow:hidden}
.ffuh-record-dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(2px)}
.ffuh-record-shell{display:flex;flex-direction:column;max-height:min(86dvh,760px)}
.ffuh-record-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid #2e2e33;background:rgba(24,24,27,.98)}
.ffuh-record-head h3{margin:0;font-family:var(--fd,'Barlow Condensed',sans-serif);font-size:18px;line-height:1.1}
.ffuh-record-head p{margin:3px 0 0;color:#8b8b9d;font-size:10.5px;line-height:1.35}
.ffuh-record-close{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border:1px solid #383840;border-radius:8px;background:#222226;color:#c0c0cc;font-size:22px;line-height:1;cursor:pointer}
.ffuh-record-list{overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px 14px 4px}
.ffuh-record-row{display:grid;grid-template-columns:minmax(120px,.85fr) minmax(0,1.35fr) auto;grid-template-areas:"date store price" "date count price";gap:2px 12px;align-items:center;min-height:54px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.055)}
.ffuh-record-row:last-child{border-bottom:0}
.ffuh-record-row time{grid-area:date;color:#c0c0cc;font-size:12px;white-space:nowrap}
.ffuh-record-store{grid-area:store;min-width:0;color:#e8e8ee;font-size:12px;font-weight:600;overflow-wrap:anywhere}
.ffuh-record-row strong{grid-area:price;font-family:var(--fd,'Barlow Condensed',sans-serif);font-size:17px;color:#fff;white-space:nowrap}
.ffuh-record-count{grid-area:count;color:#8b8b9d;font-size:10.5px}
.ffuh-record-footer{position:sticky;bottom:0;z-index:2;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #2e2e33;background:rgba(24,24,27,.98)}
.ffuh-record-status{display:block;margin-bottom:8px;color:#8b8b9d;font-size:10.5px}
.ffuh-record-footer-actions{display:flex;gap:7px;flex-wrap:wrap}
.ffuh-record-footer-actions button{min-height:40px;padding:0 12px;border:1px solid #3a3a42;border-radius:8px;background:#222226;color:#c0c0cc;font:inherit;font-size:11.5px;font-weight:700;cursor:pointer}
.ffuh-record-footer-actions button.is-primary{margin-left:auto;background:#e8312a;border-color:#e8312a;color:#fff}
@media(max-width:600px){
  .ffuh-record-dialog{position:fixed;inset:auto 0 0 0;width:100%;max-width:none;max-height:88dvh;margin:0;border-width:1px 0 0;border-radius:16px 16px 0 0}
  .ffuh-record-shell{max-height:88dvh}
  .ffuh-record-row{grid-template-columns:minmax(100px,.9fr) minmax(0,1.25fr) auto;gap:2px 9px}
  .ffuh-record-footer-actions{display:grid;grid-template-columns:1fr 1fr}
  .ffuh-record-footer-actions button{min-height:44px}
  .ffuh-record-footer-actions button.is-primary{margin-left:0;grid-column:1/-1}
}
@media(max-width:380px){
  .ffuh-record-row{grid-template-columns:1fr auto;grid-template-areas:"date price" "store price" "count price"}
  .ffuh-record-row time{font-size:11.5px}
}
