/* Interactive ProxLock panel for the homepage. Mirrors the app's Timeline panel (dark). */
.pl {
  --p-bg: #252628; --p-card: rgba(255,255,255,0.055); --p-line: rgba(255,255,255,0.09);
  --p-text: #F2F3F5; --p-dim: rgba(235,235,245,0.6); --p-dimmer: rgba(235,235,245,0.38);
  --p-blue: #0A84FF; --p-green: #30D158; --p-orange: #FF9F0A;
  position: relative; width: 340px; padding: 14px; border-radius: 16px;
  background: var(--p-bg); color: var(--p-text);
  font: 12.5px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.1);
  user-select: none; -webkit-user-select: none; text-align: left;
}
.pl button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.pl svg { display: block; }

.pl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pl-key { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: background .2s; }
.pl-key svg { width: 17px; height: 17px; }
.pl-titles { flex: 1; min-width: 0; }
.pl-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.pl-sub { font-size: 11.5px; color: var(--p-dim); display: flex; align-items: center; gap: 4px; }
.pl-sub svg { width: 11px; height: 11px; }
.pl-round { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.1); color: var(--p-dim); transition: background .15s, transform .1s; }
.pl-round:active, .pl-mini:active, .pl-step button:active { transform: scale(0.88); }
.pl-round svg { width: 13px; height: 13px; }
.pl-round.on-leaf { background: var(--p-green); color: #fff; }
.pl-round.on-power { background: var(--p-blue); color: #fff; }

.pl-card { background: var(--p-card); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.pl-card-h { display: flex; align-items: center; gap: 6px; }
.pl-card-h b { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.pl-dicon svg { width: 12px; height: 12px; }
.pl-grow { flex: 1; }
.pl-st { color: var(--p-dim); font-size: 11px; white-space: nowrap; }
.pl-db { font-weight: 600; font-size: 11px; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.pl-mini { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.1); flex: none; transition: background .15s; }
.pl-mini:hover, .pl-round:hover, .pl-step button:hover { background: rgba(10,132,255,0.35); }
.pl-mini svg { width: 9px; height: 9px; }
.pl-graph { width: 100%; height: 42px; margin-top: 6px; transition: opacity .2s; }
.pl-card.paused .pl-graph { opacity: .35; }

.pl-add { width: 100%; padding: 9px 0; border-radius: 10px; border: 1px dashed rgba(255,255,255,0.18) !important;
          color: var(--p-dim); font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 12px; }
.pl-add:hover { color: var(--p-text); }
.pl-add svg { width: 13px; height: 13px; }
.pl-limit { padding: 8px 12px; border-radius: 10px; border: 1px dashed rgba(255,255,255,0.16); color: var(--p-dim); font-size: 12px; text-align: center; margin-bottom: 12px; }
.pl-picker { background: var(--p-card); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.pl-picker-h { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 6px; }
.pl-picker-h button { color: var(--p-dimmer); font-size: 15px; line-height: 1; }
.pl-prow { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.pl-prow + .pl-prow { border-top: 1px solid var(--p-line); }
.pl-pic { width: 28px; height: 28px; border-radius: 50%; background: rgba(10,132,255,0.18); color: var(--p-blue); display: grid; place-items: center; flex: none; }
.pl-pic svg { width: 13px; height: 13px; }
.pl-prow small { display: block; color: var(--p-dim); font-size: 10.5px; }
.pl-btn { background: var(--p-blue) !important; color: #fff !important; padding: 3px 10px !important; border-radius: 6px; font-weight: 600; font-size: 11.5px; }
.pl-foot-note { text-align: center; color: var(--p-dimmer); font-size: 10.5px; padding-top: 6px; }
.pl-empty { color: var(--p-dim); font-size: 12px; padding: 8px 0; text-align: center; }

.pl-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; min-height: 26px; }
.pl-tag { font-style: normal; font-size: 10px; font-weight: 600; color: var(--p-blue); background: rgba(10,132,255,0.18); padding: 1px 6px; border-radius: 999px; margin-left: 6px; }
.pl-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(10,132,255,0.18) !important; padding: 4px 10px !important; border-radius: 999px; font-weight: 600; }
.pl-pill svg { width: 12px; height: 12px; }
.pl-step { display: flex; align-items: center; gap: 6px; }
.pl-step button { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.12); display: grid; place-items: center; font-size: 15px; font-weight: 600; transition: background .15s; }
.pl-step b { min-width: 64px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.pl-learn { width: 100%; padding: 7px 0 !important; border-radius: 8px; background: rgba(10,132,255,0.18) !important; color: var(--p-blue) !important; font-weight: 600; display: flex; justify-content: center; align-items: center; gap: 6px; }
.pl-learn svg { width: 13px; height: 13px; }
.pl-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--p-line); margin-top: 12px; padding-top: 10px; }
.pl-foot button { display: flex; align-items: center; gap: 5px; color: var(--p-text); }
.pl-foot svg { width: 14px; height: 14px; }
.pl-foot .pl-gear { color: var(--p-dim); }
.pl-static { cursor: default; }
.pl-pausebtn { display: flex; align-items: center; gap: 5px; }

/* Dropdown menus */
.pl-menu { position: absolute; z-index: 20; min-width: 190px; padding: 5px; border-radius: 9px;
           background: rgba(48,49,52,0.98); box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.12); }
.pl-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 9px; border-radius: 5px; text-align: left; font-size: 13px; }
.pl-menu button:hover { background: var(--p-blue); color: #fff; }
.pl-menu button svg { width: 13px; height: 13px; flex: none; }
.pl-menu .danger { color: #FF6961; }
.pl-menu hr { border: 0; border-top: 1px solid var(--p-line); margin: 4px 6px; }
.pl-check { width: 13px; display: inline-block; }

/* Settings popover */
.pl-settings { width: 250px; padding: 12px; }
.pl-settings .pl-srow { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px; font-size: 12.5px; gap: 12px; white-space: nowrap; }
.pl-menu .pl-toggle { flex: none; width: 32px; height: 19px; padding: 0; }
.pl-toggle { width: 32px; height: 19px; border-radius: 999px; background: rgba(255,255,255,0.2) !important; position: relative; transition: background .15s; }
.pl-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .15s; }
.pl-toggle.on { background: var(--p-blue) !important; }
.pl-toggle.on::after { transform: translateX(13px); }
.pl-seg { display: flex; background: rgba(255,255,255,0.1); border-radius: 6px; padding: 2px; }
.pl-seg button { padding: 2px 9px !important; border-radius: 4px; font-size: 11.5px; width: auto !important; }
.pl-seg button.on { background: var(--p-blue); color: #fff; }

/* Learn My Range overlay (inside the panel) */
.pl-learnbox { position: absolute; inset: 0; z-index: 15; border-radius: 16px; background: var(--p-bg);
               display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 22px; text-align: center; }
.pl-learnbox h4 { margin: 0; font-size: 18px; }
.pl-learnbox p { margin: 0; color: var(--p-dim); font-size: 12.5px; line-height: 1.45; }
.pl-ring { width: 120px; height: 120px; position: relative; }
.pl-ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.pl-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-variant-numeric: tabular-nums; }
.pl-ltable { width: 100%; background: var(--p-card); border-radius: 10px; padding: 10px; font-size: 12px; }
.pl-ltable div { display: flex; justify-content: space-between; padding: 3px 0; font-variant-numeric: tabular-nums; }
.pl-ltable span:last-child { color: var(--p-dim); }
.pl-big { font-size: 26px; font-weight: 700; color: var(--p-blue); font-variant-numeric: tabular-nums; }
.pl-lbtns { display: flex; gap: 10px; width: 100%; }
.pl-lbtns button { flex: 1; padding: 7px 0 !important; border-radius: 7px; background: rgba(255,255,255,0.12) !important; font-weight: 600; }
.pl-lbtns button.primary { background: var(--p-blue) !important; color: #fff; }

/* Walk-away simulation */
.demo-walk { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
             background: rgba(48,209,88,0.14); color: #30D158; font: 600 14px -apple-system, BlinkMacSystemFont, sans-serif;
             border: 1px solid rgba(48,209,88,0.35); cursor: pointer; position: relative; z-index: 2; }
.demo-walk:hover { background: rgba(48,209,88,0.22); }
.demo-walk svg { width: 16px; height: 16px; }
.demo-lock { position: absolute; inset: -10px; z-index: 30; border-radius: 24px; display: none;
             flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
             background: rgba(8,12,22,0.93); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(14px); color: #fff; }
.demo-lock.show { display: flex; animation: lockin .35s ease-out; }
@keyframes lockin { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.demo-lock .clock { font-size: 64px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.demo-lock .lockico { width: 34px; height: 34px; color: #fff; opacity: .9; }
.demo-lock p { margin: 0; color: rgba(255,255,255,0.75); font-size: 15px; }
.demo-lock button { margin-top: 8px; padding: 9px 18px; border-radius: 999px; border: 0; background: #30D158; color: #052611; font: 600 14px -apple-system, sans-serif; cursor: pointer; }
