/* House Hippo Adventures — warm storybook palette v1 */

:root{
  --bg:#F7E7C3;
  --panel:#F1D39A;
  --panel-2:#E6AD62;
  --card-inner:#FDF6E4;
  --text:#2F231A;
  --text-muted:#5A4636;
  --accent:#D07A2D;
  --accent-red:#C73A2E;
  --accent-green:#2E7D4F;
  --leather:#4A3428;
  --border:rgba(47,35,26,0.18);
  --shadow:rgba(47,35,26,0.18);
  --shadow-soft:0 4px 14px rgba(47,35,26,0.12);
  --shadow-card:0 2px 10px rgba(47,35,26,0.1);
  --muted:#5A4636;

  --r1:14px;
  --r2:20px;
  --r3:24px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  font-size:clamp(16px, 0.28rem + 3.6vw, 17px);
  line-height:1.55;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body.hh-modal-open{
  overflow:hidden;
}

body:before{
  display:none;
}

/* Mobile-first readability: larger tap targets and meta text */
@media (max-width:640px){
  .hh-wrap{
    padding:22px 14px 52px;
  }
  .hh-topbar{
    padding:14px 14px;
  }
  .hh-title{
    font-size:clamp(17px, 1rem + 1.8vw, 18px);
  }
  .hh-subtitle{
    font-size:clamp(13px, 0.85rem + 1vw, 14px);
  }
  .hh-btn,
  .hh-btn-secondary{
    font-size:clamp(15px, 0.9rem + 1vw, 16px);
    min-height:44px;
    padding:12px 18px;
  }
  .hh-btn-sm{
    font-size:clamp(14px, 0.85rem + 0.8vw, 15px);
    min-height:40px;
    padding:9px 14px;
  }
  .hh-label,
  .hh-help{
    font-size:clamp(14px, 0.88rem + 0.9vw, 15px);
  }
  .hh-input,
  .hh-form select,
  textarea.hh-input{
    font-size:16px;
  }
  .hh-muted,
  .hh-passport-info-muted{
    font-size:clamp(14px, 0.86rem + 0.85vw, 15px);
  }
  .hh-timeline-meta,
  .hh-map-popup-meta{
    font-size:clamp(14px, 0.86rem + 0.85vw, 15px);
  }
  .hh-card-inner{
    padding:18px 16px;
  }
  .hh-react-btn,
  a.hh-react-btn,
  button.hh-react-btn{
    font-size:clamp(15px, 0.9rem + 0.9vw, 16px);
    min-height:44px;
  }
  .hh-react-n{
    font-size:clamp(13px, 0.8rem + 0.6vw, 14px);
  }
  .hh-admin-stat-value{
    font-size:clamp(1.45rem, 1.1rem + 2.5vw, 1.65rem);
  }
  .hh-admin-stat-label{
    font-size:clamp(13px, 0.82rem + 0.8vw, 14px);
  }
  .hh-admin-stat-note{
    font-size:clamp(12px, 0.75rem + 0.7vw, 13px);
  }
  table.hh-table td,
  table.hh-table th{
    font-size:clamp(14px, 0.86rem + 0.85vw, 15px);
  }
}

/* Layout */

.hh-wrap{
  max-width:1100px;
  margin:0 auto;
  padding:26px 18px 60px;
}

.hh-topbar{
  display:flex;
  gap:16px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
  padding:16px 18px;
  border:1px solid var(--border);
  border-radius:var(--r3);
  background:linear-gradient(165deg, var(--panel) 0%, #ebc98a 55%, var(--panel-2) 160%);
  box-shadow:var(--shadow-soft);
}

.hh-topbar-brand{
  flex:1 1 200px;
  min-width:0;
}

.hh-topbar-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex:1 1 220px;
  margin-bottom:0;
}

.hh-topbar-nav .hh-btn,
.hh-topbar-nav .hh-btn-secondary{
  box-shadow:0 1px 2px rgba(47,35,26,0.08);
}

.hh-topbar-nav .hh-btn:focus-visible,
.hh-topbar-nav .hh-btn-secondary:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

.hh-brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.hh-brand > a{
  display:block;
  text-decoration:none;
  color:inherit;
  line-height:0;
}

.hh-badge{
  width:38px;
  height:38px;
  border-radius:12px;
  background:var(--panel-2);
  border:1px solid var(--border);
}

.hh-title{
  font-weight:800;
  letter-spacing:.4px;
  font-size:16px;
}

.hh-subtitle{
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
  letter-spacing:0.02em;
}

.hh-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:16px;
}

.hh-actions-one-row{
  flex-wrap:nowrap;
}
@media (max-width: 480px){
  .hh-actions-one-row{
    flex-wrap:wrap;
  }
}

.hh-actions-owner-passport{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-bottom:12px !important;
}

.hh-actions-owner-passport .hh-btn{
  min-height:44px;
  justify-content:center;
}

@media (max-width: 519px){
  .hh-actions-owner-passport .hh-btn{
    width:100%;
  }
}

@media (min-width: 520px) and (max-width: 859px){
  .hh-actions-owner-passport{
    grid-template-columns:1fr 1fr;
  }
  .hh-actions-owner-passport > .hh-btn:nth-child(3){
    grid-column:1 / -1;
  }
}

@media (min-width: 860px){
  .hh-actions-owner-passport{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
  }
  .hh-actions-owner-passport > .hh-btn:nth-child(3){
    grid-column:auto;
    width:auto;
  }
}

/* Cards */

.hh-card{
  margin-top:18px;
  border:1px solid var(--border);
  border-radius:var(--r3);
  background:linear-gradient(180deg, var(--panel) 0%, var(--card-inner) 120%);
  box-shadow:var(--shadow-card);
  overflow:hidden;
}

/* Inset panels (nested cards inside main content only) */
.hh-card-inner .hh-card{
  padding:18px;
}

.hh-card-inner{
  padding:24px;
}

/* Timeline feed (flattened section; no nested .hh-card to reduce mobile padding) */
.hh-timeline-feed{
  margin-top:18px;
}

/* Buttons */

/* Buttons: use .hh-btn + modifier (.hh-btn-primary, .hh-btn-ghost, .hh-btn-secondary, …) */

.hh-btn,
.hh-btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(253,246,228,0.55);
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, transform .12s ease;
}

.hh-btn:hover,
.hh-btn-secondary:hover{
  border-color:var(--text-muted);
}

.hh-btn:hover:not(.hh-btn-primary):not(.hh-btn-ghost):not(.hh-btn-warm):not(.hh-btn-admin):not(.hh-btn-danger),
.hh-btn-secondary:hover:not(.hh-btn-primary):not(.hh-btn-ghost):not(.hh-btn-warm):not(.hh-btn-admin):not(.hh-btn-danger){
  background:rgba(253,246,228,0.88);
}

.hh-btn:active,
.hh-btn-secondary:active{
  transform:translateY(1px);
}

.hh-btn-primary{
  border-color:#b8651f;
  background:linear-gradient(180deg, #e8923d 0%, var(--accent) 100%);
  color:var(--bg);
  box-shadow:0 2px 6px rgba(208,122,45,0.35);
}

.hh-btn-primary:hover{
  filter:brightness(1.03);
}

.hh-btn-ghost{
  background:transparent;
  border-color:rgba(47,35,26,0.22);
}

.hh-btn-ghost:hover{
  background:rgba(253,246,228,0.5);
  filter:none;
}

.hh-btn-warm,
.hh-btn-admin{
  border-color:var(--accent-red);
  background:linear-gradient(180deg, #d64538, var(--accent-red));
  color:var(--bg);
  box-shadow:0 2px 6px rgba(199,58,46,0.3);
}

.hh-btn-warm:hover,
.hh-btn-admin:hover{
  filter:brightness(1.05);
}

/* Destructive actions (delete, etc.) — darker than admin */
.hh-btn-danger{
  border-color:#6f1a14;
  background:linear-gradient(180deg, #d64538, #a82a22);
  color:var(--bg);
  box-shadow:0 2px 8px rgba(120,30,24,0.35);
}

.hh-btn-danger:hover{
  filter:brightness(1.04);
}

.hh-btn-danger:focus-visible{
  outline:2px solid #f5a89a;
  outline-offset:2px;
}

.hh-btn-sm{
  padding:8px 12px;
  font-size:13px;
  gap:6px;
}

button.hh-btn,
button.hh-btn-secondary,
input.hh-btn{
  font-family:inherit;
  appearance:none;
  -webkit-appearance:none;
}

.hh-form{
  margin-top:14px;
  display:grid;
  gap:12px;
  max-width:520px;
}

/* Compact form (e.g. Add Entry in Passport / Timeline) */
.hh-form-compact{
  margin-top:8px;
  gap:8px;
}
.hh-form-compact .hh-field{
  margin-bottom:0;
}
.hh-form-compact .hh-input{
  padding:8px 10px;
  line-height:1.3;
}
.hh-form-compact .hh-help{
  margin-top:4px;
  font-size:11px;
}
.hh-form-compact .hh-actions{
  margin-top:8px;
  margin-bottom:0;
}

/* Collapsible details (Add Entry) — no JS */
.hh-details{
  margin-bottom:14px;
}
.hh-details-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  padding:8px 0;
  list-style:none;
  color:var(--text);
  font-weight:600;
}
.hh-details-summary::-webkit-details-marker,
.hh-details-summary::marker{
  display:none;
}
.hh-details-summary::after{
  content:"▾";
  font-size:1em;
  color:var(--muted);
  transition:transform 0.2s ease;
  flex-shrink:0;
  margin-left:8px;
}
.hh-details[open] .hh-details-summary::after{
  transform:rotate(180deg);
}
.hh-details-summary:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
  border-radius:4px;
}
.hh-details-content{
  margin-top:8px;
  padding:12px;
}
.hh-details-content.hh-card{
  margin-top:8px;
}

/* Expandable sections styled as clear action controls */
.hh-details.hh-details--action{
  margin-bottom:12px;
}
.hh-details.hh-details--action > .hh-details-summary.hh-details-summary--button{
  width:100%;
  box-sizing:border-box;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(47,35,26,0.18);
  background:linear-gradient(180deg, rgba(253,246,228,0.92), rgba(253,246,228,0.65));
  box-shadow:0 1px 4px rgba(47,35,26,0.06);
  font-weight:700;
  font-size:15px;
  line-height:1.3;
  text-align:left;
}
.hh-details.hh-details--action > .hh-details-summary--button:hover{
  border-color:rgba(208,122,45,0.45);
  background:linear-gradient(180deg, rgba(253,246,228,1), rgba(253,246,228,0.78));
}
.hh-details.hh-details--action[open] > .hh-details-summary--button{
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
  border-bottom-color:transparent;
  box-shadow:none;
}
.hh-details.hh-details--action[open] > .hh-details-content{
  margin-top:0;
  border-top-left-radius:0;
  border-top-right-radius:0;
  border:1px solid rgba(47,35,26,0.18);
  border-top:1px dashed rgba(47,35,26,0.2);
}

.hh-label{
  font-size:12px;
  color:var(--muted);
}

.hh-input{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--bg);
  color:var(--text);
}

.hh-input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 2px var(--shadow);
}

.hh-textarea{
  resize:vertical;
  min-height:60px;
}

.hh-bio{
  font-size:0.95em;
  line-height:1.45;
  color:var(--text);
  white-space:pre-line;
}

.hh-password-wrap{
  position:relative;
  display:inline-block;
  width:100%;
}
.hh-password-wrap .hh-input{
  padding-right:44px;
}
.hh-password-toggle{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  background:transparent;
  border:none;
  cursor:pointer;
  padding:4px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
  color:var(--text-muted);
}
.hh-password-toggle:hover{
  color:var(--text);
}
.hh-password-icon{ display:inline-flex; }
.hh-password-icon--hide{ display:none; }
.hh-password-toggle--shown .hh-password-icon--show{ display:none; }
.hh-password-toggle--shown .hh-password-icon--hide{ display:inline-flex; }

/* Utility */

.hh-muted{
  color:var(--text-muted);
}

.hh-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.hh-hippo-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.hh-map-cards{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
@media (min-width: 900px){
  .hh-map-cards{
    grid-template-columns:1fr 1fr;
  }
}
.hh-map-cards .hh-hippo-row{
  min-width:0;
}

.hh-hippo-row{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:14px 16px;
  border-radius:var(--r2);
  border:1px solid var(--border);
  background:var(--panel);
  color:var(--text);
  text-decoration:none;
  transition:background .15s, border-color .15s;
}

.hh-hippo-row:hover{
  background:var(--panel-2);
  border-color:var(--accent);
}

.hh-hippo-avatar{
  width:72px;
  height:72px;
  min-width:72px;
  min-height:72px;
  border-radius:12px;
  flex-shrink:0;
  background:var(--panel-2);
  border:1px solid var(--border);
  box-shadow:0 1px 3px var(--shadow);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2em;
  overflow:hidden;
  padding:0;
}
@media (max-width: 640px){
  .hh-hippo-avatar{
    width:64px;
    height:64px;
    min-width:64px;
    min-height:64px;
  }
}

.hh-map-cards .hh-hippo-avatar{
  width:88px;
  height:88px;
  min-width:88px;
  min-height:88px;
  padding:0;
  overflow:hidden;
}
@media (max-width: 640px){
  .hh-map-cards .hh-hippo-avatar{
    width:72px;
    height:72px;
    min-width:72px;
    min-height:72px;
  }
}

.hh-hippo-avatar .hh-hippo-thumb,
.hh-hippo-avatar .hh-hippo-thumb-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:inherit;
}

.hh-hippo-thumb{
  width:80px;
  height:80px;
  border-radius:12px;
  overflow:hidden;
  background:var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 80px;
}

.hh-hippo-thumb .hh-hippo-thumb-img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.hh-myhippo-card{
  padding:18px;
  min-height:120px;
}

.hh-myhippos-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  max-width:900px;
}
@media (max-width: 640px){
  .hh-myhippos-list{
    grid-template-columns:1fr;
  }
}

.hh-hippo-list .hh-hippo-row{
  padding:18px 16px;
}

.hh-hippo-list .hh-hippo-avatar{
  width:80px;
  height:80px;
  min-width:80px;
  min-height:80px;
  border-radius:12px;
}

.hh-myhippos-list .hh-hippo-avatar{
  width:110px;
  height:110px;
  min-width:110px;
  min-height:110px;
  border-radius:12px;
}

.hh-myhippos-list .hh-hippo-thumb{
  width:110px;
  height:110px;
  flex:0 0 110px;
}

.hh-hippo-list .hh-hippo-thumb-img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.hh-myhippos-list .hh-hippo-thumb-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  background:transparent;
}
@media (max-width: 640px){
  .hh-myhippos-list .hh-hippo-avatar{
    width:88px;
    height:88px;
    min-width:88px;
    min-height:88px;
  }
  .hh-myhippos-list .hh-hippo-thumb{
    width:88px;
    height:88px;
    flex:0 0 88px;
  }
}

@media (max-width: 640px){
  .hh-hippo-thumb{
    width:64px;
    height:64px;
    flex:0 0 64px;
  }
}

.hh-hippo-info{
  display:flex;
  flex-direction:column;
  gap:6px;
  text-align:left;
  min-width:0;
}

.hh-hippo-name,
.hh-hippo-location,
.hh-hippo-number,
.hh-hippo-updated{
  font-size:13px;
  line-height:1.35;
}

.hh-hippo-name{ font-weight:600; color:var(--text); }
.hh-hippo-location,
.hh-hippo-number,
.hh-hippo-updated{ color:var(--text-muted); }

/* Premium list cards (My Hippos, Hippo Map) */
.hh-hippo-line{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px 10px;
  font-size:14px;
  line-height:1.4;
}
.hh-hippo-line--strong{
  font-weight:700;
  color:var(--text);
}
.hh-hippo-line--muted{
  font-size:13px;
  color:var(--text-muted);
}
.hh-hippo-meta-label{
  flex:0 0 auto;
  min-width:5.5rem;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--muted);
}
.hh-hippo-meta-value{
  flex:1 1 auto;
  min-width:0;
  word-break:break-word;
}
.hh-hippo-card-premium{
  box-shadow:0 2px 10px rgba(47,35,26,0.06);
  gap:14px;
}
.hh-hippo-thumb--emoji{
  font-size:clamp(1.75rem, 5vw, 2.25rem);
  line-height:1;
  background:linear-gradient(160deg, rgba(253,246,228,0.9), var(--panel-2));
  border:none;
}
.hh-map-cards .hh-hippo-avatar .hh-hippo-thumb,
.hh-map-cards .hh-hippo-avatar .hh-hippo-thumb--map{
  width:100%;
  height:100%;
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  border-radius:inherit;
}
.hh-map-cards .hh-hippo-thumb-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hh-pagination{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:16px;
  flex-wrap:wrap;
}

.hh-pagination-text{
  font-size:13px;
  color:var(--text-muted);
}

.hh-btn[aria-disabled="true"]{
  opacity:0.5;
  pointer-events:none;
  cursor:not-allowed;
}

.hh-map-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

@media (min-width:640px){
  .hh-map-actions{
    display:grid;
    grid-template-columns:repeat(2, auto);
  }
}

.hh-divider{
  height:1px;
  background:var(--border);
  margin:16px 0;
}

.hh-foot{
  margin-top:16px;
  color: var(--muted);
  font-size:12px;
}

/* House Hippo logo in top bar */
.hh-logo {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;

  object-fit: contain;
  display: block;

  border-radius: 12px;
  background: var(--panel-2);
  padding: 6px;
}

.hh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-height: 102px;
  overflow: hidden;
}

/* Hide old placeholder badge */
.hh-badge {
  display: none;
}

/* Hippo header: title/state left, profile avatar right */
.hh-hippo-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.hh-hippo-header-left{
  flex:1;
  min-width:0;
}
.hh-hippo-header-right{
  flex-shrink:0;
}
@media (max-width: 640px){
  .hh-hippo-header{
    flex-direction:column;
  }
  .hh-hippo-header-right{
    align-self:flex-start;
  }
}

/* Profile avatar (header only; distinct from .hh-timeline-photo) */
.hh-profile-photo-img{
  width:200px;
  max-width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:999px;
  display:block;
  background:var(--panel-2);
  border:2px solid var(--border);
  box-shadow:0 1px 3px var(--shadow);
}
.hh-profile-photo-placeholder{
  width:200px;
  height:200px;
  max-width:100%;
  aspect-ratio:1/1;
  border-radius:999px;
  background:var(--panel-2);
  border:2px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:80px;
  line-height:1;
}
@media (max-width: 640px){
  .hh-profile-photo-img,
  .hh-profile-photo-placeholder{
    width:140px;
    height:auto;
  }
  .hh-profile-photo-placeholder{
    height:140px;
  }
}

/* Legacy: full-width profile block (if used elsewhere) */
.hh-profile-photo img{
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  background:var(--panel-2);
}

/* Timeline (passport) feed image — contain + frame, portrait-friendly */
.hh-timeline-photo {
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 12px;
  overflow: hidden;
  background:var(--border);
}
.hh-timeline-photo img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
@media (max-width: 640px) {
  .hh-timeline-photo img {
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .hh-wrap {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 14px 10px 40px;
  }
  .hh-wrap > .hh-topbar,
  .hh-wrap > .hh-card {
    border-radius: 0;
  }
  .hh-topbar {
    padding: 10px 12px;
    gap: 8px;
  }
  .hh-brand {
    gap: 8px;
  }
  .hh-logo {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
  }
  .hh-title {
    font-size: 14px;
  }
  .hh-actions {
    gap: 6px;
  }
  .hh-btn {
    padding: 9px 12px;
    font-size: 13px;
  }
  .hh-card-inner {
    padding: 16px;
  }
  .hh-hero .hh-h1 {
    font-size: 1.5rem;
    line-height: 1.25;
  }
  .hh-hero .hh-kicker {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  .hh-hero .hh-lead {
    font-size: 0.9rem;
    line-height: 1.35;
  }
  .hh-hero .hh-muted,
  .hh-hero .hh-bio {
    line-height: 1.4;
  }
  .hh-hippo-header {
    gap: 12px;
  }
  .hh-profile-photo-img,
  .hh-profile-photo-placeholder {
    width: 120px;
    height: auto;
  }
  .hh-profile-photo-placeholder {
    height: 120px;
  }
  .hh-card:has(.hh-lead) {
    padding: 10px 12px !important;
    margin-bottom: 10px;
  }
  .hh-card:has(.hh-lead) .hh-lead {
    font-size: 0.9rem;
    line-height: 1.35;
  }
  .hh-card:has(.hh-lead) .hh-muted {
    font-size: 0.85rem;
  }
  .hh-timeline-card {
    padding: 10px !important;
  }
  .hh-timeline-card .hh-timeline-photo {
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .hh-timeline-card .hh-timeline-photo img {
    border-radius: 14px;
    width: 100%;
    display: block;
  }
}

@media (max-width: 520px) {
  /* Width constraint: .hh-wrap (max-width: 1100px; margin: 0 auto). Force full-width on profile only. */
  .hh-wrap:has(.hh-profile-page) {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .hh-wrap:has(.hh-profile-page) > .hh-card,
  .hh-wrap:has(.hh-profile-page) > .hh-card > .hh-card-inner {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .hh-card-inner:has(.hh-profile-page) {
    padding-left: 8px !important;
    padding-right: 8px !important;
    max-width: 100% !important;
  }
  .hh-timeline-feed {
    margin-left: -10px;
    margin-right: -10px;
  }
  .hh-timeline-feed .hh-timeline-card {
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* Map container (My Hippos map, optional reuse elsewhere) */
.hh-map{
  height:320px;
  border-radius:16px;
  overflow:hidden;
  margin-top:12px;
  background:var(--panel-2);
}
@media (max-width: 640px){
  .hh-map{
    height:260px;
  }
}

/* Map pin: hippo emoji marker (Leaflet divIcon) */
.hh-hippo-marker{
  background:transparent !important;
  border:none !important;
  font-size:28px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  text-shadow:0 0 2px rgba(47,35,26,.4), 0 1px 3px var(--shadow);
}

/* Global footer (Goto I.T.) */
.hh-global-footer{
  margin-top:40px;
  padding:24px 16px 40px;
  text-align:center;
  opacity:.85;
}

.hh-footer-brand img{
  height:52px;
  margin:10px 0 6px;
}

.hh-footer-copy{
  font-size:13px;
  opacity:.7;
}

.hh-footer-tagline{
  font-size:14px;
  opacity:.85;
}

/* --- Batch 2E: premium passport polish --- */

.hh-kicker{
  font-size:0.8rem;
  font-weight:700;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--leather);
  opacity:0.92;
}

.hh-h1{
  font-size:clamp(1.55rem, 2.5vw + 1rem, 2.15rem);
  line-height:1.2;
  font-weight:800;
  color:var(--leather);
  margin:0.35em 0 0.25em;
}

.hh-h2{
  font-size:clamp(1.2rem, 1vw + 1rem, 1.45rem);
  font-weight:800;
  color:var(--leather);
  margin:0 0 6px;
  letter-spacing:0.02em;
}

.hh-lead{
  font-size:1.05rem;
  line-height:1.5;
  color:var(--text);
}

.hh-hero{
  margin-bottom:8px;
}

.hh-home-wrap{
  display:flex;
  flex-direction:column;
  gap:28px;
}

.hh-home-hero{
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
  align-items:center;
  padding:8px 0 12px;
}

@media (min-width: 840px){
  .hh-home-hero{
    grid-template-columns:minmax(0, 1.1fr) minmax(220px, 0.9fr);
    gap:32px;
    align-items:center;
  }
}

.hh-home-hero-text .hh-h1{
  margin-top:0.15em;
}

.hh-home-lead{
  margin-top:0.5rem;
  margin-bottom:0.25rem;
  max-width:48ch;
}

.hh-home-prose{
  margin-top:1rem;
  max-width:52ch;
}

.hh-home-prose .hh-home-copy{
  margin:0 0 1rem;
}

.hh-home-prose .hh-home-copy:last-child{
  margin-bottom:0;
}

.hh-home-copy{
  font-size:1rem;
  line-height:1.6;
  max-width:52ch;
}

.hh-home-safety{
  margin-top:0.25rem;
  padding:12px 14px;
  border-radius:var(--r2);
  border:1px dashed rgba(47,35,26,0.22);
  background:rgba(253,246,228,0.45);
  font-size:0.98rem;
  line-height:1.55;
}

.hh-home-cta{
  margin-top:18px !important;
  margin-bottom:0 !important;
}
.hh-home-cta-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:10px;
  width:100%;
  max-width:520px;
  margin:0 auto;
}
.hh-home-cta-row .hh-btn{
  flex:1 1 auto;
  min-width:min(100%, 158px);
  justify-content:center;
}
@media (min-width: 720px){
  .hh-home-cta-row{
    max-width:none;
    justify-content:flex-start;
  }
  .hh-home-cta-row .hh-btn{
    flex:0 1 auto;
    min-width:0;
  }
}

.hh-home-bottom-cta{
  margin-top:22px;
  padding:20px 16px 4px;
  text-align:center;
  border-top:1px dashed rgba(47,35,26,0.18);
}
.hh-home-bottom-cta-text{
  margin:0 0 14px;
  font-size:1.05rem;
  font-weight:600;
  line-height:1.45;
  color:var(--text);
  max-width:40ch;
  margin-left:auto;
  margin-right:auto;
}

.hh-home-bottom-cta-buttons{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:stretch;
  gap:10px;
  max-width:520px;
  margin:0 auto;
}

.hh-home-bottom-cta-buttons .hh-btn{
  flex:1 1 min(100%, 220px);
  justify-content:center;
  min-height:44px;
}

@media (min-width: 560px){
  .hh-home-bottom-cta-buttons .hh-btn{
    flex:0 1 auto;
    min-width:200px;
  }
}

.hh-home-passport-img{
  width:100%;
  max-width:min(340px, 100%);
  height:auto;
  margin:0 auto;
  display:block;
  filter:drop-shadow(0 6px 18px rgba(47,35,26,0.18));
  border-radius:var(--r2);
}

.hh-home-steps{
  padding:20px 18px 22px;
  margin-top:4px;
  border-radius:var(--r3);
  border:1px solid var(--border);
  background:linear-gradient(180deg, var(--panel) 0%, var(--card-inner) 110%);
  box-shadow:var(--shadow-card);
}

.hh-home-steps .hh-h2{
  margin-bottom:14px;
}

.hh-steps-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

@media (min-width: 520px){
  .hh-steps-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px){
  .hh-steps-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

.hh-step-card{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px 16px;
  border-radius:var(--r2);
  border:1px solid var(--border);
  background:rgba(253,246,228,0.75);
  box-shadow:0 1px 4px rgba(47,35,26,0.06);
}

.hh-step-num{
  flex-shrink:0;
  width:32px;
  height:32px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:14px;
  color:var(--bg);
  background:linear-gradient(180deg, #e8923d, var(--accent));
  border:1px solid rgba(47,35,26,0.15);
}

.hh-step-card p{
  margin:0;
  font-size:15px;
  line-height:1.45;
  color:var(--text);
}

.hh-map-shell{
  border-radius:var(--r2);
  overflow:hidden;
  border:1px solid rgba(47,35,26,0.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 10px rgba(47,35,26,0.08);
  background:var(--panel-2);
}

.hh-map-shell .hh-map{
  margin-top:0;
  border-radius:0;
}

.hh-map--global{
  height:420px;
}

.hh-map--passport{
  height:340px;
}

.leaflet-popup-content-wrapper{
  border-radius:16px;
  box-shadow:0 6px 24px rgba(47,35,26,0.16);
  border:1px solid rgba(47,35,26,0.12);
  overflow:hidden;
}
.leaflet-popup-content{
  margin:14px 16px 16px;
  min-width:200px;
  max-width:min(280px, calc(100vw - 72px));
  line-height:1.45;
  font-size:15px;
  color:var(--text);
}
.leaflet-popup-tip{
  box-shadow:0 3px 12px rgba(47,35,26,0.1);
}
.leaflet-container a.leaflet-popup-close-button{
  width:36px;
  height:36px;
  padding:0;
  top:4px;
  right:4px;
  font-size:22px;
  line-height:34px;
  color:var(--text-muted);
}
.hh-map-popup{
  box-sizing:border-box;
}
.hh-map-popup-title{
  font-weight:800;
  font-size:16px;
  margin:0 0 6px;
  line-height:1.25;
  color:var(--text);
  padding-right:28px;
}
.hh-map-popup-loc{
  font-size:14px;
  color:var(--text-muted);
  margin:0 0 8px;
}
.hh-map-popup-media{
  margin:6px 0 12px;
  text-align:center;
}
.hh-map-popup-img{
  width:104px;
  height:104px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(47,35,26,0.14);
  display:inline-block;
  vertical-align:middle;
  box-shadow:0 2px 8px rgba(47,35,26,0.08);
}
.hh-map-popup-cta.hh-btn{
  display:flex !important;
  width:100%;
  box-sizing:border-box;
  justify-content:center;
  align-items:center;
  min-height:46px;
  margin-top:4px;
  text-decoration:none !important;
  font-size:15px;
  font-weight:700;
}
.leaflet-popup-content a.hh-map-popup-cta.hh-btn-primary{
  color:var(--bg) !important;
}
.hh-map-popup--journey .hh-map-popup-title{
  padding-right:0;
}
.hh-map-popup-badge{
  display:inline-block;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.06em;
  text-transform:uppercase;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(253,246,228,0.95);
  border:1px solid rgba(47,35,26,0.12);
  color:var(--text);
  margin-bottom:8px;
}
.hh-map-popup-meta{
  font-size:13px;
  line-height:1.4;
  margin:4px 0 0;
}

@media (max-width: 640px){
  .leaflet-popup-content{
    margin:16px 18px 18px;
    min-width:min(288px, calc(100vw - 64px));
    max-width:min(340px, calc(100vw - 48px));
  }
  .hh-map-popup-img{
    width:128px;
    height:128px;
  }
  .hh-map-popup-cta.hh-btn{
    min-height:48px;
    font-size:16px;
  }
}
@media (min-width: 720px){
  .leaflet-popup-content{
    max-width:260px;
    margin:12px 14px 14px;
  }
  .hh-map-popup-img{
    width:96px;
    height:96px;
  }
}

.hh-page-hero{
  margin-bottom:4px;
}

.hh-map-page-intro{
  font-size:1rem;
  line-height:1.55;
  max-width:60ch;
  margin-top:8px;
}

.hh-section-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  flex-wrap:wrap;
}

.hh-section-head-icon{
  width:48px;
  height:48px;
  object-fit:contain;
  flex-shrink:0;
  opacity:0.92;
  filter:drop-shadow(0 2px 6px rgba(47,35,26,0.12));
}

.hh-timeline-feed > .hh-h2{
  padding-bottom:10px;
  margin-bottom:4px;
  border-bottom:2px solid rgba(208,122,45,0.35);
}

.hh-passport-timeline-intro,
.hh-passport-create-intro{
  font-size:0.95rem;
  line-height:1.55;
  max-width:62ch;
  margin:0 0 14px;
}

.hh-passport-id-lede{
  margin:12px 0 0;
  font-size:1rem;
  line-height:1.55;
  max-width:58ch;
  color:var(--text);
}

.hh-passport-info{
  margin-top:14px;
  padding:14px 14px 12px;
  border-radius:14px;
  border:1px solid rgba(47,35,26,0.12);
  background:rgba(253,246,228,0.5);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.hh-passport-info-row{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px 12px;
  font-size:14px;
  line-height:1.45;
}
.hh-passport-info-row--stack{
  flex-direction:column;
  align-items:stretch;
  gap:4px;
}
.hh-passport-info-label{
  flex:0 0 auto;
  min-width:7.5rem;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--muted);
}
.hh-passport-info-value{
  flex:1 1 auto;
  min-width:0;
  font-weight:600;
  color:var(--text);
  word-break:break-word;
}
.hh-passport-info-muted{
  font-weight:500;
  color:var(--text-muted);
  font-style:italic;
}
.hh-passport-code{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing:0.04em;
}
.hh-passport-bio-text{
  font-weight:500;
  white-space:pre-wrap;
}

.hh-passport-hero{
  margin-bottom:16px;
}

.hh-passport-identity-card{
  padding:18px 18px 20px;
  border-radius:var(--r3);
  border:1px solid rgba(47,35,26,0.16);
  background:linear-gradient(145deg, rgba(253,246,228,0.95) 0%, var(--panel) 55%, #e8c88a 220%);
  box-shadow:var(--shadow-soft);
}

@media (max-width: 640px){
  .hh-profile-page .hh-passport-identity-card{
    padding:14px 14px 16px;
  }
  .hh-profile-page .hh-passport-hero{
    margin-bottom:12px;
  }
  .hh-profile-page .hh-hippo-header{
    display:grid;
    grid-template-columns:auto 1fr;
    column-gap:14px;
    row-gap:0;
    align-items:start;
  }
  .hh-profile-page .hh-hippo-header-right{
    grid-column:1;
    grid-row:1;
    align-self:center;
    justify-self:center;
  }
  .hh-profile-page .hh-hippo-header-left{
    grid-column:2;
    grid-row:1;
    min-width:0;
  }
  .hh-profile-page .hh-passport-title-row{
    position:relative;
    display:block;
    padding-right:52px;
    margin-bottom:2px;
  }
  .hh-profile-page .hh-passport-title-row .hh-h1{
    font-size:clamp(1.32rem, 4.8vw, 1.62rem);
    line-height:1.22;
    margin-bottom:4px;
  }
  .hh-profile-page .hh-passport-deco{
    position:absolute;
    top:0;
    right:0;
    width:48px;
    max-height:52px;
    margin:0;
  }
  .hh-profile-page .hh-profile-photo-img,
  .hh-profile-page .hh-profile-photo-placeholder{
    width:min(118px, 32vw);
    height:min(118px, 32vw);
    max-width:118px;
  }
  .hh-profile-page .hh-profile-photo-placeholder{
    font-size:52px;
  }
  .hh-profile-page .hh-passport-id-lede{
    margin-top:8px;
  }
  .hh-profile-page .hh-passport-info{
    margin-top:10px;
  }
}

.hh-passport-title-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.hh-passport-title-row .hh-h1{
  flex:1 1 min(100%, 280px);
  margin-top:0.1em;
  margin-bottom:0;
}

.hh-passport-deco{
  width:min(92px, 24vw);
  height:auto;
  max-height:120px;
  object-fit:contain;
  flex-shrink:0;
  opacity:0.92;
  align-self:flex-end;
  filter:drop-shadow(0 4px 12px rgba(47,35,26,0.15));
}

@media (min-width: 720px){
  .hh-passport-deco{
    width:min(118px, 16vw);
    max-height:150px;
  }
}

.hh-journey-map-card{
  padding:18px;
}

.hh-ownership-banner{
  padding:18px;
}

.hh-ownership-banner--compact{
  padding:12px 14px !important;
}

.hh-ownership-stamp--inline{
  flex-direction:row;
  align-items:center;
  gap:14px;
  flex-wrap:nowrap;
  justify-content:flex-start;
}

.hh-ownership-stamp--inline .hh-ownership-stamp-badge{
  flex:0 0 auto;
  max-width:88px;
  margin-top:0;
  align-self:center;
}

.hh-ownership-banner--compact .hh-ownership-stamp-img{
  width:52px;
  max-width:52px;
  margin:0 auto 6px;
}

.hh-ownership-banner--compact .hh-lead{
  margin:0 0 4px;
  font-size:1.05rem;
  line-height:1.3;
}

.hh-ownership-banner--compact .hh-muted{
  margin:0;
  font-size:13px;
  line-height:1.45;
}

.hh-journey-map-card .hh-map-shell{
  margin-top:12px;
}

.hh-ownership-stamp{
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.hh-ownership-stamp-text{
  flex:1 1 220px;
  min-width:0;
}

.hh-ownership-stamp-badge{
  flex-shrink:0;
  text-align:center;
  max-width:100%;
}

.hh-ownership-stamp-img{
  width:min(152px, 42vw);
  max-width:100%;
  height:auto;
  display:block;
  margin:0 auto 6px;
  object-fit:contain;
  filter:drop-shadow(0 4px 14px rgba(47,35,26,0.18));
}

.hh-approved-pill{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--bg);
  background:linear-gradient(180deg, #2e8b57, var(--accent-green));
  border:1px solid rgba(47,35,26,0.15);
}

@media (max-width: 520px){
  .hh-ownership-stamp:not(.hh-ownership-stamp--inline){
    flex-direction:column;
    align-items:flex-start;
  }
  .hh-ownership-stamp:not(.hh-ownership-stamp--inline) .hh-ownership-stamp-badge{
    align-self:center;
    margin-top:4px;
  }
}

.hh-timeline-card{
  border-radius:18px !important;
  border:1px solid rgba(47,35,26,0.12) !important;
  background:linear-gradient(180deg, rgba(253,246,228,0.9), var(--panel)) !important;
  box-shadow:0 2px 8px rgba(47,35,26,0.07) !important;
  display:flex;
  flex-direction:column;
  gap:0;
  padding:14px 16px 12px !important;
}
.hh-timeline-card-body{
  flex:1 1 auto;
  min-width:0;
}
.hh-timeline-meta-stack{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:4px;
}
.hh-timeline-meta-stack .hh-timeline-meta{
  font-size:14px;
  line-height:1.45;
}
.hh-timeline-card-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(47,35,26,0.08);
  min-height:0;
}
.hh-timeline-card-actions:empty{
  display:none;
  margin:0;
  padding:0;
  border:none;
}
.hh-timeline-delete-form{
  margin:0;
}

.hh-react-bar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 10px;
  margin-top:10px;
  padding:8px 0 4px;
}
.hh-react-form{
  margin:0;
  display:inline;
}
.hh-react-btn,
a.hh-react-btn,
button.hh-react-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:40px;
  min-width:44px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(47,35,26,0.16);
  background:rgba(253,246,228,0.55);
  font-size:15px;
  line-height:1.2;
  cursor:pointer;
  text-decoration:none;
  color:var(--text);
  font-family:inherit;
  transition:background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.hh-react-btn:hover{
  border-color:rgba(208,122,45,0.45);
  background:rgba(253,246,228,0.9);
}
.hh-react-btn--on{
  border-color:rgba(208,122,45,0.65);
  background:rgba(253,246,228,1);
  box-shadow:0 0 0 2px rgba(208,122,45,0.2);
}
.hh-react-btn:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}
.hh-react-n{
  font-size:13px;
  font-weight:700;
  color:var(--text-muted);
  min-width:1ch;
}
.hh-react-btn--on .hh-react-n{
  color:var(--text);
}

.hh-profile-page .hh-details.hh-details--action{
  margin-bottom:12px;
}
.hh-profile-page .hh-ownership-banner--compact{
  margin-bottom:12px !important;
}
.hh-profile-page .hh-journey-map-card{
  margin-bottom:14px !important;
}
@media (max-width: 640px){
  .hh-profile-page .hh-journey-map-card{
    padding:14px;
  }
  .hh-profile-page .hh-card > .hh-actions-owner-passport{
    margin-top:12px !important;
  }
}

.hh-passport-claim-hint{
  padding:4px 0 8px;
}
.hh-passport-claim-hint .hh-actions{
  margin-top:12px;
}

.hh-timeline-photo img{
  max-height:440px;
}

@media (min-width: 900px){
  .hh-timeline-photo img{
    max-height:480px;
  }
}

.hh-my-hippos-map-section{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--border);
}

.hh-admin-table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:0 -2px;
  padding:4px 2px 8px;
  border-radius:12px;
}
.hh-admin-table-wrap .hh-table{
  min-width:640px;
  width:100%;
}

.hh-input:focus-visible,
.hh-btn:focus-visible,
.hh-details-summary:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

.hh-form input[type="file"].hh-input{
  padding:10px 12px;
  font-size:14px;
  cursor:pointer;
}

.hh-form input[type="file"].hh-input::file-selector-button{
  margin-right:12px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--panel-2);
  font-weight:600;
  font-size:13px;
  cursor:pointer;
  color:var(--text);
}

.hh-footer-inner{
  max-width:520px;
  margin:0 auto;
  padding:20px 16px 8px;
  border-radius:var(--r3);
  border:1px solid var(--border);
  background:rgba(253,246,228,0.55);
  box-shadow:0 2px 10px rgba(47,35,26,0.06);
}

.hh-footer-ornament{
  font-size:1.75rem;
  line-height:1;
  margin-bottom:8px;
  opacity:0.75;
}

.hh-global-footer{
  opacity:1;
}

.hh-global-footer .hh-footer-copy{
  font-size:14px;
  font-weight:600;
  letter-spacing:0.03em;
  opacity:0.88;
}

/* Logged-out passport: adopt CTAs + reaction guest modal */
.hh-passport-guest-cta{
  margin-bottom:14px;
  padding:16px 18px;
  border-radius:var(--r2);
  background:linear-gradient(165deg, rgba(253,246,228,0.95) 0%, rgba(241,211,154,0.55) 100%);
  border:1px solid rgba(208,122,45,0.28);
  box-shadow:var(--shadow-card);
}
.hh-passport-guest-cta--bottom{
  margin-top:18px;
  margin-bottom:0;
}
.hh-passport-guest-cta-lead{
  margin:0 0 8px;
  font-size:1.05rem;
  font-weight:700;
  line-height:1.35;
  color:var(--text);
}
.hh-passport-guest-cta .hh-muted{
  margin:0;
  line-height:1.45;
}
.hh-passport-guest-cta-actions{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.hh-passport-guest-cta-actions--split{
  flex-direction:column;
  align-items:stretch;
}
@media (min-width:480px){
  .hh-passport-guest-cta-actions--split{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
  }
}

.hh-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  box-sizing:border-box;
}
.hh-modal.hh-modal--open{
  display:flex;
}
.hh-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(47,35,26,0.48);
  cursor:pointer;
}
.hh-modal-panel{
  position:relative;
  z-index:1;
  max-width:420px;
  width:100%;
  margin:auto;
  padding:22px 20px 20px;
  border-radius:var(--r2);
  background:linear-gradient(180deg, var(--card-inner) 0%, var(--panel) 120%);
  border:1px solid rgba(208,122,45,0.38);
  box-shadow:0 20px 50px rgba(47,35,26,0.22);
  outline:none;
}
.hh-modal-title{
  margin:0 0 10px;
  font-size:1.12rem;
  line-height:1.38;
  font-weight:700;
  color:var(--text);
}
.hh-modal-text{
  margin:0 0 18px;
  line-height:1.5;
}
.hh-modal-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}
@media (min-width:440px){
  .hh-modal-actions{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
  }
  .hh-modal-actions .hh-btn-ghost{
    margin-left:auto;
  }
}
.hh-modal .hh-btn:focus-visible,
.hh-modal .hh-btn-primary:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

/* Admin micro dashboard (/admin) */
.hh-admin-dash{
  margin-top:18px;
}
.hh-admin-dash-heading{
  margin:20px 0 10px;
  font-size:1.15rem;
}
.hh-admin-dash-heading:first-child{
  margin-top:0;
}
.hh-admin-dash-privacy{
  font-size:clamp(13px, 0.82rem + 0.75vw, 14px);
  line-height:1.45;
  margin:0 0 12px;
}
.hh-admin-dash-privacy code{
  font-size:clamp(12px, 0.78rem + 0.5vw, 13px);
  word-break:break-all;
}
.hh-admin-stat-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
@media (min-width:640px){
  .hh-admin-stat-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}
@media (min-width:900px){
  .hh-admin-stat-grid{
    grid-template-columns:repeat(5, minmax(0, 1fr));
  }
}
.hh-admin-stat-grid--queue{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  max-width:520px;
}
.hh-admin-stat-grid--visitors{
  grid-template-columns:repeat(auto-fill, minmax(152px, 1fr));
}
@media (min-width:900px){
  .hh-admin-stat-grid--visitors{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}
.hh-admin-stat-grid--storage{
  grid-template-columns:repeat(auto-fill, minmax(168px, 1fr));
  max-width:920px;
}
.hh-admin-stat-card{
  border-radius:var(--r2);
  border:1px solid rgba(208,122,45,0.28);
  background:linear-gradient(165deg, rgba(253,246,228,0.95) 0%, rgba(241,211,154,0.45) 100%);
  padding:12px 14px;
  box-shadow:var(--shadow-card);
  min-height:96px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
.hh-admin-stat-grid--queue .hh-admin-stat-card{
  border-color:rgba(208,122,45,0.45);
  background:linear-gradient(165deg, rgba(253,246,228,1) 0%, rgba(230,173,98,0.35) 100%);
}
.hh-admin-stat-value{
  font-size:1.65rem;
  font-weight:800;
  line-height:1.1;
  color:var(--text);
  letter-spacing:-0.02em;
}
.hh-admin-stat-label{
  margin-top:6px;
  font-size:14px;
  font-weight:700;
  color:var(--text-muted);
  line-height:1.25;
}
.hh-admin-stat-note{
  margin-top:auto;
  padding-top:8px;
  font-size:12px;
  line-height:1.35;
  color:var(--muted);
}
.hh-admin-top-paths-card{
  margin-top:12px;
  padding:14px 16px;
}
.hh-admin-subheading{
  margin:0 0 10px;
  font-size:1rem;
  font-weight:700;
  color:var(--text);
}
.hh-admin-top-paths{
  margin:0;
  padding-left:18px;
  font-size:13px;
  line-height:1.55;
}
.hh-admin-top-paths code{
  font-size:12px;
  word-break:break-all;
}
.hh-admin-top-paths-empty{
  margin:0;
  font-size:13px;
}
