/* ROYAL Ai — authenticated-homeowner-ready Just Moved In portal shell.
   These rules are scoped to .hm-* so the locked eight-door landing geometry
   remains unchanged. */

.hm-landing-actions{width:min(620px,100%);margin:14px auto 0}
/* DRIFT CORRECTED 2026-08-03: this was the one live #152B6B declaration left in
   royalai.ai. The border's rgba(202,162,95) was the drifted gold #CAA25F and is
   now the filed rgb(203,162,96) = #CBA260. Copy at
   _superseded/2026-08-03-navy-drift/homeowner-portal.css.BEFORE. */
.hm-payment-hero{border:1px solid rgba(203,162,96,.68);border-radius:18px;padding:14px;
  background:linear-gradient(135deg,#253069,#0E1D49);box-shadow:0 12px 28px rgba(14,29,73,.18)}
.hm-payment-button{width:100%;min-height:62px;border:0;border-radius:13px;padding:11px 14px;
  display:flex;align-items:center;justify-content:center;gap:12px;cursor:pointer;font:inherit;
  color:#fff;background:transparent;text-align:left;transition:transform .16s ease,background .16s ease}
.hm-payment-button:hover{background:rgba(255,255,255,.07);transform:translateY(-1px)}
.hm-payment-button:active{transform:translateY(1px) scale(.995)}
.hm-payment-button svg{width:27px;height:27px;fill:var(--gold);flex:none}
.hm-payment-button b{display:block;font-size:15px;letter-spacing:.01em;line-height:1.25}
.hm-payment-button small{display:block;color:#D9DDEC;font-size:11px;line-height:1.35;margin-top:3px;font-weight:550}
.hm-security-line{margin:8px 4px 0;color:#D9DDEC;font-size:10.5px;line-height:1.45;text-align:center}

.hm-shared{margin:28px auto 0;padding-top:18px;border-top:1px solid var(--line)}
.hm-shared h3{margin:0;color:var(--navy);font-size:11px;letter-spacing:.16em;text-transform:uppercase;text-align:left}
.hm-shared p{margin:5px 0 13px;color:var(--muted);font-size:11.5px;text-align:left}
.hm-shared-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.hm-shared-button{border:0;background:none;padding:0;min-width:0;cursor:pointer;font:inherit;color:inherit;
  display:flex;flex-direction:column;align-items:center;gap:6px}
.hm-shared-button .coin{max-width:68px}
.hm-shared-button .hm-shared-label{font-size:9.5px;line-height:1.15;font-weight:750;color:var(--muted);text-align:center}
.hm-shared-button:hover .coin{transform:translateY(-3px) scale(1.04)}
.hm-shared-button:active .coin{transform:translateY(1px) scale(.98)}

.hm-shell{position:relative}
.hm-context{margin:0 0 20px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:16px;
  box-shadow:0 8px 24px rgba(21,43,107,.06)}
.hm-context-payment{width:100%;min-height:48px;border:0;border-radius:11px;padding:10px 13px;color:#fff;
  background:linear-gradient(135deg,var(--navy),var(--navy-deep));font:inherit;font-size:12.5px;
  font-weight:800;cursor:pointer;display:flex;justify-content:center;align-items:center;gap:8px}
.hm-context-payment svg{width:18px;height:18px;fill:var(--gold)}
.hm-context-payment:active{transform:translateY(1px)}
.hm-route-scroll{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;overflow:visible;padding:11px 2px 3px}
.hm-route-scroll a{text-decoration:none;border:1px solid var(--line);border-radius:999px;padding:7px 10px;
  color:var(--muted);background:var(--paper);font-size:10.5px;font-weight:700;white-space:normal;
  text-align:center;display:grid;place-items:center;min-height:40px}
.hm-route-scroll a[aria-current="page"]{color:#fff;background:var(--navy);border-color:var(--navy)}
.hm-section-title{margin:24px 0 10px;color:var(--navy);font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.hm-intro{font-size:13px;color:var(--muted);line-height:1.6;margin:0 0 16px}
.hm-notice{border-left:4px solid var(--gold);background:#FFF9EC;border-radius:10px;padding:11px 13px;
  color:var(--ink);font-size:11.5px;line-height:1.55;margin:12px 0}
.hm-notice strong{color:var(--navy)}
.hm-notice.danger{border-left-color:#A34545;background:#FFF4F3}
.hm-notice.good{border-left-color:#2F6B4F;background:#EFF6F2}
.hm-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px;margin:10px 0}
.hm-card h3,.hm-card h4{margin:0 0 6px;color:var(--navy);font-size:13.5px}
.hm-card p{margin:4px 0;color:var(--muted);font-size:11.5px;line-height:1.55}
.hm-card .hm-meta{font-size:10.5px;color:var(--gold-deep);font-weight:750;text-transform:uppercase;letter-spacing:.07em}
.hm-empty{background:#fff;border:1px dashed var(--line);border-radius:14px;padding:20px 15px;text-align:center;margin:12px 0}
.hm-empty b{display:block;color:var(--navy);font-size:13px;margin-bottom:5px}
.hm-empty p{margin:0;color:var(--muted);font-size:11.5px;line-height:1.55}
.hm-error{border:1px solid #E8C9C7;background:#FFF5F4;color:#6F2C2C;border-radius:14px;padding:16px;margin:12px 0}
.hm-error b{display:block;margin-bottom:5px}

.hm-skeleton{display:grid;gap:10px;margin:12px 0}
.hm-skeleton i{display:block;height:72px;border-radius:14px;background:linear-gradient(90deg,#EFEDE6,#FAF9F5,#EFEDE6);
  background-size:220% 100%;animation:hm-shimmer 1.1s linear infinite}
@keyframes hm-shimmer{to{background-position:-220% 0}}

.hm-progress-line{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:5px 0 12px}
.hm-progress-line b{color:var(--navy);font-size:12px}
.hm-progress-line span{color:var(--muted);font-size:10.5px}
.hm-progress-track{height:7px;border-radius:99px;overflow:hidden;background:var(--track);margin-bottom:13px}
.hm-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--gold-deep),var(--gold))}
.hm-filter-row{display:flex;flex-wrap:wrap;gap:7px;overflow:visible;padding:2px 1px 8px;margin-bottom:4px}
.hm-filter-row button{flex:none;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);
  padding:7px 10px;font:inherit;font-size:10.5px;font-weight:700;cursor:pointer}
.hm-filter-row button[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.hm-checkrow{display:grid;grid-template-columns:24px 1fr;gap:11px;align-items:start;padding:11px 2px;border-bottom:1px dashed var(--line)}
.hm-checkrow:last-child{border-bottom:0}
.hm-checkrow input[type="checkbox"]{width:21px;height:21px;margin:1px 0;accent-color:var(--gold-deep)}
.hm-checkrow label{font-size:12.5px;color:var(--ink);font-weight:650;line-height:1.45;cursor:pointer}
.hm-checkrow small{display:block;color:var(--muted);font-size:10.5px;font-weight:500;margin-top:2px}
.hm-checkrow input:checked + label{color:var(--muted);text-decoration:line-through}

.hm-form{display:grid;gap:10px;margin-top:10px}
.hm-form.two{grid-template-columns:1fr 1fr}
.hm-field label{display:block;margin:0 0 4px;color:var(--muted);font-size:10px;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase}
.hm-field input,.hm-field select,.hm-field textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;
  color:var(--ink);padding:10px 11px;font:inherit;font-size:12px;line-height:1.4}
.hm-field textarea{min-height:76px;resize:vertical}
.hm-field input:focus,.hm-field select:focus,.hm-field textarea:focus{outline:3px solid rgba(202,162,95,.35);border-color:var(--gold-deep)}
.hm-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.hm-btn{border:0;border-radius:10px;padding:10px 13px;background:var(--navy);color:#fff;font:inherit;
  font-size:11.5px;font-weight:750;cursor:pointer;text-decoration:none;text-align:center;min-height:40px;
  display:inline-flex;align-items:center;justify-content:center}
.hm-btn.gold{background:var(--gold);color:var(--navy-deep)}
.hm-btn.ghost{background:#fff;color:var(--navy);border:1px solid var(--line)}
.hm-btn.danger{background:#8C2F2F;color:#fff}
.hm-btn:disabled{opacity:.46;cursor:not-allowed}
.hm-btn:active{transform:translateY(1px)}
.hm-linknote{font-size:10px;color:var(--muted);margin-top:5px}

.hm-status-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}
.hm-status-item{background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:11px}
.hm-status-item span{display:block;color:var(--muted);font-size:9.5px;text-transform:uppercase;letter-spacing:.07em;font-weight:750}
.hm-status-item b{display:block;color:var(--navy);font-size:12px;margin-top:4px;overflow-wrap:anywhere}
.hm-state-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;background:#F4F2EC;
  color:var(--muted);font-size:10px;font-weight:750}
.hm-state-chip::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--gold)}
.hm-state-chip.good::before{background:#2F6B4F}
.hm-state-chip.danger::before{background:#A34545}

.hm-utility-list,.hm-device-list,.hm-record-list{display:grid;gap:10px}
.hm-utility-list>*,.hm-device-list>*,.hm-record-list>*{min-width:0}
.hm-utility-head,.hm-record-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.hm-utility-head h3,.hm-record-head h3{margin:0}
.hm-inline-select{border:1px solid var(--line);border-radius:8px;padding:6px 7px;background:#fff;color:var(--ink);font:inherit;font-size:10.5px;max-width:155px}
.hm-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.hm-tag{border-radius:999px;background:#F2F0E9;color:var(--muted);padding:4px 7px;font-size:9.5px;font-weight:700}

.hm-plan{counter-reset:hmstep;margin:10px 0}
.hm-plan li{list-style:none;position:relative;padding:0 0 14px 36px;color:var(--ink);font-size:12px;line-height:1.5}
.hm-plan li::before{counter-increment:hmstep;content:counter(hmstep);position:absolute;left:0;top:0;width:24px;height:24px;
  border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-size:10px;font-weight:800}
.hm-plan li small{display:block;color:var(--muted);margin-top:2px}

.hm-fit-stage{position:relative;width:100%;aspect-ratio:4/3;min-height:230px;border:2px solid var(--navy);
  border-radius:12px;background:linear-gradient(rgba(202,162,95,.12) 1px,transparent 1px),
  linear-gradient(90deg,rgba(202,162,95,.12) 1px,transparent 1px),#FFFDF8;background-size:20px 20px;
  overflow:hidden;touch-action:none;margin:12px 0}
.hm-fit-stage::after{content:"User-entered plan — not to scale for construction";position:absolute;right:7px;bottom:5px;
  color:var(--muted);font-size:8.5px;background:rgba(255,255,255,.82);padding:2px 5px;border-radius:4px}
.hm-furniture-box{position:absolute;left:12%;top:16%;width:34%;height:24%;display:grid;place-items:center;
  border:2px solid var(--gold-deep);border-radius:7px;background:rgba(202,162,95,.35);color:var(--navy-deep);
  font-size:9.5px;font-weight:800;text-align:center;padding:4px;cursor:grab;user-select:none}
.hm-furniture-box:active{cursor:grabbing}
.hm-fit-result{border-radius:12px;padding:12px 13px;margin:10px 0;font-size:11.5px;line-height:1.5}
.hm-fit-result.possible{background:#EFF6F2;border:1px solid #BFD7C8;color:#24513C}
.hm-fit-result.concern{background:#FFF4F3;border:1px solid #E7C4C1;color:#742D2D}
.hm-fit-result.unknown{background:#F4F2EC;border:1px solid var(--line);color:var(--muted)}
.hm-photo-preview{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.hm-photo-preview figure{margin:0;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.hm-photo-preview img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.hm-photo-preview figcaption{font-size:9.5px;color:var(--muted);padding:6px}

.hm-payment-panel{background:#fff;border:1px solid var(--gold);border-radius:16px;padding:16px;margin:12px 0;
  box-shadow:0 12px 30px rgba(21,43,107,.08)}
.hm-payment-panel h3{margin:0 0 5px;color:var(--navy);font-size:15px}
.hm-payment-panel > p{color:var(--muted);font-size:11.5px;line-height:1.55}
.hm-domain{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10.5px;color:var(--navy);overflow-wrap:anywhere}
.hm-payment-warning{margin:13px 0;border-radius:11px;background:#FFF5E4;padding:11px;color:#5F4827;font-size:10.8px;line-height:1.55}

.hm-question-box{display:flex;gap:8px;margin:12px 0}
.hm-question-box textarea{flex:1;min-height:78px;border:1px solid var(--line);border-radius:12px;padding:11px;
  font:inherit;font-size:12px;resize:vertical}
.hm-answer{white-space:pre-wrap;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;
  color:var(--ink);font-size:12px;line-height:1.6;margin:10px 0}

.hm-bottom-shared{margin-top:24px}
.hm-bottom-shared .hm-shared-grid{grid-template-columns:repeat(5,1fr)}

@media(max-width:520px){
  .hm-landing-actions{margin-top:12px}
  .hm-route-scroll{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:10px}
  .hm-route-scroll a{min-height:38px}
  .hm-shared-grid,.hm-bottom-shared .hm-shared-grid{grid-template-columns:repeat(3,1fr);row-gap:14px}
  .hm-shared-button .coin{max-width:62px}
  .hm-form.two,.hm-status-grid{grid-template-columns:1fr}
  .hm-actions{display:grid;grid-template-columns:1fr 1fr}
  .hm-actions .hm-btn:only-child{grid-column:1/-1}
  .hm-payment-button{min-height:66px}
}

@media(max-width:350px){
  .hm-actions{grid-template-columns:1fr}
  .hm-utility-head{flex-wrap:wrap}
  .hm-inline-select{width:100%;max-width:none}
  .hm-payment-button b{font-size:13.5px}
  .hm-payment-button small{font-size:10px}
  .hm-shared-grid,.hm-bottom-shared .hm-shared-grid{grid-template-columns:repeat(2,1fr)}
}

@media(prefers-reduced-motion:reduce){
  .hm-payment-button,.hm-shared-button .coin{transition:none}
  .hm-skeleton i{animation:none}
}
