.property-history-dialog,.ph-root{--ph-bg:var(--surface,#fff);--ph-soft:var(--bg,#f5f5ef);--ph-ink:var(--ink,#183c38);--ph-muted:#5b726a;--ph-line:var(--line,#dbe5de);--ph-accent:var(--teal,#1b645b);color:var(--ph-ink)}
.property-history-dialog{width:min(1080px,calc(100% - 1rem));max-width:1080px;max-height:calc(100dvh - 1rem);padding:0;border:1px solid var(--ph-line);border-radius:18px;background:var(--ph-bg);margin:auto;overflow:hidden;box-shadow:0 24px 100px #0c252f55}.property-history-dialog::backdrop{background:#102d405e;backdrop-filter:blur(3px)}.ph-header{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem 1.3rem;border-bottom:1px solid var(--ph-line)}.ph-header h2{margin:0;font-size:1.15rem;overflow-wrap:anywhere}.ph-content{max-height:calc(100dvh - 7rem);overflow:auto;padding:1.25rem}.ph-root{min-width:0}.ph-root [hidden]{display:none!important}.ph-filters{display:grid;grid-template-columns:1fr 1.4fr 1.4fr 1fr;gap:.8rem;align-items:end}.ph-filters>.button{grid-column:1/-1;justify-self:start}.ph-field{display:flex;flex-direction:column;gap:.4rem;font-size:.83rem;font-weight:600;min-width:0}.ph-field input,.ph-field select{min-width:0;max-width:100%;width:100%;min-height:44px;padding:.65rem;border:1px solid var(--ph-line);border-radius:9px;background:var(--ph-bg);color:var(--ph-ink);font:inherit}.ph-message,.ph-help{font-size:.85rem;color:var(--ph-muted);line-height:1.6;overflow-wrap:anywhere}.ph-message{padding:.85rem 0;margin:0}.ph-message[data-error=true]{color:var(--danger,#b55243)}.ph-modes{display:flex;gap:.5rem;margin:.5rem 0 1rem}.ph-modes [aria-pressed=true]{background:var(--ph-accent);border-color:var(--ph-accent);color:#fff}.ph-chart{border:1px solid var(--ph-line);border-radius:12px;padding:.8rem;background:var(--ph-soft)}.ph-chart svg{display:block;width:100%;height:auto;min-height:180px;max-height:340px}.ph-chart .ph-grid-line{stroke:var(--ph-line);stroke-width:1}.ph-chart .ph-axis{fill:var(--ph-muted);font:12px system-ui,sans-serif}.ph-chart .ph-line{fill:none;stroke:var(--ph-accent);stroke-width:2.5;vector-effect:non-scaling-stroke}.ph-chart .ph-point{fill:var(--ph-accent)}.ph-chart .ph-help{margin:.5rem 0 0}.ph-table-scroll{max-height:400px;overflow:auto;border:1px solid var(--ph-line);border-radius:12px}.ph-table-scroll table{border-collapse:collapse;width:100%;min-width:360px;text-align:left}.ph-table-scroll th,.ph-table-scroll td{padding:.7rem .8rem;border-bottom:1px solid var(--ph-line);vertical-align:top;font-size:.85rem}.ph-table-scroll th{position:sticky;top:0;background:var(--ph-soft);color:var(--ph-ink)}.ph-value{font-family:ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-width:600px}.ph-type{white-space:nowrap;color:var(--ph-muted)}.ph-pagination{display:flex;align-items:center;justify-content:flex-end;gap:.7rem;flex-wrap:wrap;margin-top:.8rem;font-size:.82rem}.ph-root button,.property-history-dialog>.ph-header button{min-height:44px}
:is([data-theme="dark"],.theme-dark) .property-history-dialog,:is([data-theme="dark"],.theme-dark) .ph-root{--ph-bg:#162d2b;--ph-soft:#112422;--ph-ink:#e5f0eb;--ph-muted:#a8c1b7;--ph-line:#35504a;--ph-accent:#82c4aa;color-scheme:dark}.theme-dark .ph-modes [aria-pressed=true],[data-theme=dark] .ph-modes [aria-pressed=true]{color:#102d26}
@media(max-width:700px){.ph-content{padding:.8rem;max-height:calc(100dvh - 8rem)}.ph-header{padding:.8rem;align-items:flex-start}.ph-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.ph-field input,.ph-field select{font-size:16px}.ph-chart{padding:.3rem}.ph-chart svg{min-height:140px}.ph-root .button{font-size:.85rem}.ph-pagination{justify-content:space-between}}
@media(max-width:380px){.ph-filters{grid-template-columns:1fr}.ph-header h2{font-size:1rem}}
