/* pot-detail-panel.css — the per-pot inspector drawer. Right drawer on desktop,
   bottom-sheet on mobile. Cosmic glass per UI.md. */

.pdp-overlay { position: fixed; inset: 0; z-index: 2147482800; display: flex; justify-content: flex-end;
  background: radial-gradient(1000px 700px at 100% 50%, rgba(56,189,248,.05), rgba(2,4,14,.5) 60%);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.pdp-panel { position: relative; width: min(420px, 100%); height: 100%; display: flex; flex-direction: column;
  background: var(--col-indigo, #0f1535); border-left: 1px solid var(--glass-border-2, rgba(255,255,255,.14));
  box-shadow: -28px 0 80px rgba(2,4,14,.55); color: var(--text-primary, #e8ecf6); font-family: var(--font-body, 'Inter', sans-serif); }

.pdp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--glass-border, rgba(255,255,255,.08)); }
.pdp-eyebrow { font: 700 10px/1 var(--font-display, 'Space Grotesk', sans-serif); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-cyan, #38bdf8); }
.pdp-loc { margin: 3px 0 0; font: 700 15px/1.2 var(--font-display, 'Space Grotesk', sans-serif); }
.pdp-close { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; cursor: pointer; background: var(--glass-1, rgba(255,255,255,.05)); border: 1px solid var(--glass-border-2, rgba(255,255,255,.12)); color: var(--text-muted, #94a3b8); transition: all .15s; }
.pdp-close:hover { color: #fff; background: var(--glass-2, rgba(255,255,255,.08)); transform: rotate(90deg); }

.pdp-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 18px 22px; display: flex; flex-direction: column; gap: 16px; }

.pdp-state { --s: #94a3b8; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 11px 13px; border-radius: 13px;
  background: color-mix(in srgb, var(--s) 12%, transparent); border: 1px solid color-mix(in srgb, var(--s) 32%, transparent); }
.pdp-state-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--s); box-shadow: 0 0 9px var(--s); flex: none; }
.pdp-state-name { font: 700 14px/1 var(--font-display, sans-serif); color: var(--s); }
.pdp-state-desc { font-size: 12px; color: var(--text-secondary, #cbd5e1); width: 100%; }

.pdp-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdp-info-cell { padding: 9px 11px; border-radius: 11px; background: var(--glass-1, rgba(255,255,255,.04)); border: 1px solid var(--glass-border, rgba(255,255,255,.08)); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pdp-info-cell span { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim, #64748b); }
.pdp-info-cell b { font: 700 13px/1.2 var(--font-display, sans-serif); color: var(--text-primary, #e8ecf6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdp-act { display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; padding: 11px 12px; border-radius: 11px; font: 700 13px/1 var(--font-body, sans-serif);
  background: var(--glass-2, rgba(255,255,255,.08)); border: 1px solid var(--glass-border-2, rgba(255,255,255,.14)); color: var(--text-primary, #e8ecf6); transition: filter .15s, border-color .15s; }
.pdp-act:hover { filter: brightness(1.12); border-color: color-mix(in srgb, var(--accent-cyan,#38bdf8) 40%, transparent); }
.pdp-act-primary { grid-column: 1 / -1; background: linear-gradient(100deg, var(--accent-cyan, #38bdf8), var(--accent-violet, #a78bfa)); color: #04050f; border: 0; box-shadow: 0 4px 16px rgba(56,189,248,.26); }

.pdp-sec-h { margin: 0 0 9px; font: 700 12px/1 var(--font-display, 'Space Grotesk', sans-serif); letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary, #cbd5e1); display: flex; align-items: center; gap: 8px; }
.pdp-sec-sub { font-size: 10.5px; color: var(--text-dim, #64748b); letter-spacing: 0; text-transform: none; }
.pdp-env-empty, .pdp-hist-empty { font-size: 12.5px; line-height: 1.5; color: var(--text-dim, #94a3b8); padding: 12px 13px; border-radius: 12px; background: var(--glass-1, rgba(255,255,255,.04)); border: 1px dashed var(--glass-border-2, rgba(255,255,255,.12)); }

.pdp-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pdp-hist-row { display: flex; gap: 11px; padding: 11px 12px; border-radius: 12px; background: var(--glass-1, rgba(255,255,255,.04)); border: 1px solid var(--glass-border, rgba(255,255,255,.08)); }
.pdp-hist-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; }
.pdp-hist-main { min-width: 0; flex: 1 1 auto; }
.pdp-hist-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pdp-hist-top b { font: 700 13px/1.3 var(--font-display, sans-serif); }
.pdp-hist-when { font-size: 11px; color: var(--text-dim, #64748b); flex: none; }
.pdp-hist-meta { font-size: 11.5px; color: var(--text-dim, #94a3b8); margin-top: 1px; }
.pdp-hist-note { font-size: 12px; color: var(--text-secondary, #cbd5e1); margin-top: 5px; line-height: 1.45; }
.pdp-hist-photos { display: flex; gap: 5px; margin-top: 7px; }
.pdp-hist-photos img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--glass-border-2, rgba(255,255,255,.14)); }

@media (max-width: 640px) {
  .pdp-overlay { justify-content: stretch; align-items: flex-end; }
  .pdp-panel { width: 100%; height: auto; max-height: 92vh; border-left: 0; border-top: 1px solid var(--glass-border-2, rgba(255,255,255,.14)); border-radius: 22px 22px 0 0; }
}
html[data-theme="light"] .pdp-panel { background: #fff; color: #13103a; box-shadow: -28px 0 80px rgba(80,90,160,.20); }
html[data-theme="light"] .pdp-close:hover { color: var(--text-primary, #13103a); }
html[data-theme="light"] .pdp-act-primary { color: #fff; }
