/* TaTasque — THPlaceKey v1 (public/shared/place-key/v1/place-key.js). Copyright Rapid Surveys Pty Ltd. Namespace thpk-. */
.thpk { position:absolute; z-index:1100; top:12px; right:12px; width:352px; max-width:calc(100% - 24px); box-sizing:border-box; background:var(--card, #fff); color:var(--ink, #111); border:1px solid var(--line, #d1d5db); border-radius:12px; box-shadow:0 10px 30px rgba(20,28,40,.25); padding:10px 12px 12px; font:14px/1.35 Roboto, system-ui, sans-serif; }
.thpk * { box-sizing:border-box; }
.thpk-head { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:6px; }
.thpk h3 { margin:0; font-size:15px; }
.thpk h3 small { display:block; font-weight:400; color:var(--muted, #5b6472); font-size:12px; }
.thpk .thpk-x { flex:0 0 auto; width:34px; height:34px; min-height:34px; padding:0; border:1px solid var(--line, #d1d5db); background:var(--bg, #f3f4f6); color:var(--ink, #111); border-radius:8px; font-size:18px; cursor:pointer; }
.thpk-tabs { display:flex; border:1px solid var(--line, #d1d5db); border-radius:8px; overflow:hidden; margin:8px 0; }
.thpk-tabs button { flex:1 1 0; min-height:40px; padding:4px 6px; border:0; background:var(--bg, #f3f4f6); color:var(--ink, #111); font:700 13px/1.15 Roboto, system-ui, sans-serif; cursor:pointer; }
.thpk-tabs button[aria-selected="true"] { background:#1b2430; color:#fff; }
.thpk-chip { display:inline-block; margin:6px 0; padding:3px 10px; border:1px solid var(--line, #d1d5db); border-radius:999px; background:var(--bg, #f3f4f6); font-size:12px; }
.thpk-row { display:flex; gap:10px; margin:6px 0; }
.thpk-f { flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted, #5b6472); }
.thpk-in { display:flex; gap:4px; }
.thpk input { width:100%; min-width:0; height:40px; padding:0 8px; border:1px solid var(--line, #d1d5db); border-radius:8px; background:var(--card, #fff); color:var(--ink, #111); font:16px Roboto, system-ui, sans-serif; }
.thpk .thpk-sign { flex:0 0 auto; width:36px; min-height:40px; padding:0; border:1px solid var(--line, #d1d5db); border-radius:8px; background:var(--bg, #f3f4f6); color:var(--ink, #111); font:700 18px Roboto, system-ui, sans-serif; cursor:pointer; }
.thpk-note { margin:2px 0 0; font-size:12px; color:var(--muted, #5b6472); }
.thpk-eq { margin:8px 0 0; padding:0; font-size:13px; }
.thpk-eq:not(:empty) { padding:7px 10px; border-radius:8px; background:var(--bg, #f3f4f6); }
.thpk-hint { margin:6px 0 0; font-size:13px; }
.thpk-hint:not(:empty) { padding:6px 10px; border-radius:8px; background:#fef3c7; color:#78350f; }
.thpk .thpk-use { min-height:0; padding:0; border:0; background:none; color:inherit; font:700 13px Roboto, system-ui, sans-serif; text-decoration:underline; cursor:pointer; }
.thpk-err { margin:6px 0 0; font-size:13px; color:#b91c1c; font-weight:600; }
.thpk-err:empty { display:none; }
.thpk-acts { display:flex; gap:8px; margin-top:10px; }
.thpk-acts button { min-height:44px; padding:0 12px; border:1px solid var(--line, #d1d5db); border-radius:8px; background:var(--bg, #f3f4f6); color:var(--ink, #111); font:700 15px Roboto, system-ui, sans-serif; cursor:pointer; }
.thpk-acts .thpk-add { flex:1 1 auto; background:var(--accent, #2563eb); border-color:var(--accent, #2563eb); color:#fff; }
.thpk kbd { margin-left:6px; padding:0 5px; border-radius:4px; background:rgba(255,255,255,.25); font:12px ui-monospace, monospace; }
.thpk-btn { min-height:44px; padding:0 12px; border:1px solid var(--line, #d1d5db); border-radius:8px; background:var(--bg, #fff); color:var(--ink, #111); font:600 14px Roboto, system-ui, sans-serif; cursor:pointer; flex:0 0 auto; }
.thpk-btn.thpk-btn { width:auto; height:40px; min-height:40px; font-size:13px; }
@media (max-width: 767px) {
  .thpk kbd { display:none; }
  .thpk { top:auto; left:0; right:0; bottom:var(--thpk-lift, 0px); width:auto; max-width:none; max-height:55%; overflow-y:auto; border-radius:14px 14px 0 0; padding-bottom:40px;   /* clear of the map's bottom message strip */ }
}
/* P2 */
.thpk-smartf { display:flex; flex-direction:column; gap:3px; margin:6px 0 0; font-size:12px; color:var(--muted, #5b6472); }
.thpk-smartnote { margin:3px 0 0; font-size:12px; color:var(--muted, #5b6472); min-height:0; }
.thpk-smartnote:empty { display:none; }
.thpk .thpk-bad, .thpk-bad { color:#b91c1c; font-weight:600; }
.thpk select { width:100%; min-width:0; height:40px; padding:0 6px; border:1px solid var(--line, #d1d5db); border-radius:8px; background:var(--card, #fff); color:var(--ink, #111); font:14px Roboto, system-ui, sans-serif; }
.thpk-range { margin:4px 0 0; font-size:12px; color:var(--muted, #5b6472); min-height:16px; }
.thpk-side { display:flex; border:1px solid var(--line, #d1d5db); border-radius:8px; overflow:hidden; margin:6px 0; }
.thpk-side button { flex:1 1 0; min-height:40px; border:0; background:var(--bg, #f3f4f6); color:var(--ink, #111); font:700 14px Roboto, system-ui, sans-serif; cursor:pointer; }
.thpk-side button[aria-pressed="true"] { background:#1b2430; color:#fff; }
.thpk-tools { display:flex; gap:8px; margin:6px 0; }
.thpk-tools button, .thpk-pickbar button { min-height:40px; padding:0 12px; border:1px solid var(--line, #d1d5db); border-radius:8px; background:var(--bg, #f3f4f6); color:var(--ink, #111); font:700 14px Roboto, system-ui, sans-serif; cursor:pointer; }
.thpk-pickbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:6px 0; }
.thpk-pickbar[hidden] { display:none; }
.thpk-pt { flex:1 1 100%; font-weight:600; }
.thpk-fold .thpk-tabs, .thpk-fold .thpk-body, .thpk-fold .thpk-smartf, .thpk-fold .thpk-smartnote, .thpk-fold .thpk-acts, .thpk-fold h3 small, .thpk-fold .thpk-eq, .thpk-fold .thpk-hint { display:none; }
.thpk-fold { width:auto; max-width:calc(100% - 24px); }
@media (max-width: 767px) { .thpk h3 small { display:none; } .thpk-fold h3 { margin-bottom:2px; } }
/* P5: the alignment's name, the Lot tab */
.thpk-alname { margin:6px 0 0; font-size:13px; color:var(--ink, #111); }
.thpk-lots { list-style:none; margin:6px 0 0; padding:0; display:grid; gap:6px; max-height:180px; overflow:auto; }
.thpk-lots button { width:100%; min-height:44px; display:grid; gap:2px; text-align:left; padding:6px 10px; border:1px solid var(--line, #d1d5db); border-radius:8px; background:var(--bg, #f3f4f6); color:var(--ink, #111); font:14px Roboto, system-ui, sans-serif; cursor:pointer; }
.thpk-lots button small { color:var(--muted, #5b6472); font-size:12px; }
.thpk-lots button[aria-pressed="true"] { border-color:var(--accent, #2563eb); box-shadow:inset 0 0 0 1px var(--accent, #2563eb); }
.thpk-status { margin:6px 0; }
