:root {
  --hk-bg: #f4f1eb;
  --hk-paper: #fffdf9;
  --hk-paper-strong: #ffffff;
  --hk-ink: #172019;
  --hk-muted: #5b655e;
  --hk-line: #dfd8ce;
  --hk-copper: #b9572d;
  --hk-copper-dark: #8e3f20;
  --hk-green: #3e7256;
  --hk-blue: #436f87;
  --hk-amber: #a86e1f;
  --hk-red: #9c3e39;
  --hk-shadow: 0 22px 64px rgba(45, 35, 26, .11);
  --hk-radius-xl: 28px;
  --hk-radius-lg: 20px;
  --hk-radius-md: 14px;
}

.hk-spatial-experience { display: grid; gap: 20px; }
.hk-spatial-toolbar { display: flex; justify-content: space-between; gap: 28px; align-items: end; }
.hk-spatial-toolbar h2 { margin: 5px 0 7px; font: 600 clamp(28px, 3vw, 43px)/1.02 Newsreader, Georgia, serif; letter-spacing: -.035em; }
.hk-spatial-toolbar p { max-width: 720px; margin: 0; color: var(--hk-muted); line-height: 1.55; }
.hk-kicker { display: block; color: var(--hk-copper-dark); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hk-property-picker { min-width: 215px; display: grid; gap: 6px; font-size: 11px; font-weight: 800; color: var(--hk-muted); }
.hk-property-picker select { width: 100%; border: 1px solid var(--hk-line); border-radius: 12px; background: var(--hk-paper-strong); padding: 10px 34px 10px 12px; color: var(--hk-ink); font-weight: 700; }
.hk-spatial-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, .72fr); gap: 18px; align-items: start; }
.hk-scene-column { min-width: 0; display: grid; gap: 16px; }
.hk-scene-card { overflow: hidden; border: 1px solid var(--hk-line); border-radius: var(--hk-radius-xl); background: #ede7dd; box-shadow: var(--hk-shadow); }
.hk-scene-stage { position: relative; min-height: 520px; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 48% 27%, #faf7f1 0, #ede7dd 60%, #d9d1c6 100%); }
.hk-scene-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.33), transparent 38%), radial-gradient(ellipse at 50% 77%, rgba(82,67,51,.13), transparent 52%); z-index: 1; }
.hk-scene-host, .hk-scene-host canvas, .hk-spatial-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hk-spatial-canvas { display: block; touch-action: none; cursor: grab; }
.hk-spatial-canvas:active { cursor: grabbing; }
.hk-spatial-fallback { display: grid; place-items: center; }
.hk-spatial-fallback img { width: 100%; height: 100%; object-fit: cover; }
.hk-spatial-fallback > div { position: absolute; inset: auto 18px 18px; max-width: 420px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.66); border-radius: 14px; background: rgba(255,253,249,.9); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(50,38,27,.1); }
.hk-spatial-fallback strong, .hk-spatial-fallback span { display: block; }
.hk-spatial-fallback span { margin-top: 3px; color: var(--hk-muted); font-size: 12px; }
.hk-scene-skeleton { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; align-content: center; gap: 8px; background: linear-gradient(110deg, #ece6dd 28%, #f7f3ed 42%, #ece6dd 58%); background-size: 260% 100%; animation: hk-shimmer 1.25s linear infinite; }
.hk-scene-skeleton[hidden] { display: none; }
.hk-scene-skeleton span { width: 240px; height: 20px; border-radius: 999px; background: rgba(118,102,83,.11); }
.hk-scene-skeleton span:nth-child(2) { width: 310px; height: 130px; border-radius: 28px; }
.hk-scene-skeleton span:nth-child(3) { width: 180px; }
.hk-scene-skeleton p { margin: 9px 0 0; color: var(--hk-muted); font-size: 12px; font-weight: 700; }
@keyframes hk-shimmer { to { background-position: -160% 0; } }
.hk-scene-status { position: absolute; left: 18px; bottom: 18px; z-index: 4; max-width: 390px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.7); border-radius: 13px; background: rgba(255,253,249,.89); backdrop-filter: blur(14px); box-shadow: 0 12px 30px rgba(54,41,29,.1); }
.hk-scene-status span, .hk-scene-status small { display: block; }
.hk-scene-status span { font-size: 11px; font-weight: 800; color: var(--hk-ink); }
.hk-scene-status small { margin-top: 3px; color: var(--hk-muted); font-size: 10px; line-height: 1.4; }
.hk-camera-controls { display: flex; gap: 7px; padding: 10px 12px 12px; border-top: 1px solid rgba(116,101,83,.18); background: rgba(255,253,249,.88); }
.hk-camera-controls button { border: 1px solid transparent; border-radius: 999px; background: transparent; padding: 8px 12px; color: var(--hk-muted); font-size: 11px; font-weight: 800; }
.hk-camera-controls button:hover, .hk-camera-controls button:focus-visible, .hk-camera-controls button.active { border-color: var(--hk-line); background: #fff; color: var(--hk-ink); }
.hk-camera-controls .reset { margin-left: auto; }
.hk-hotspot-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hk-hotspot { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; min-height: 34px; max-width: 170px; border: 1px solid rgba(255,255,255,.85); border-radius: 999px; background: rgba(255,253,249,.91); padding: 5px 8px 5px 5px; box-shadow: 0 10px 30px rgba(43,33,23,.18); color: var(--hk-ink); font-size: 10px; font-weight: 800; pointer-events: auto; transform-origin: 0 0; transition: opacity .18s, box-shadow .18s, scale .18s; }
.hk-hotspot:hover, .hk-hotspot:focus-visible, .hk-hotspot.is-selected { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--system-color) 22%, transparent), 0 13px 34px rgba(43,33,23,.2); scale: 1.04; }
.hk-hotspot[aria-pressed="true"] { border-color: var(--system-color); }
.hk-hotspot.is-behind { opacity: .55; }
.hk-hotspot-dot { flex: 0 0 auto; width: 23px; height: 23px; border-radius: 50%; background: var(--system-color); box-shadow: inset 0 0 0 6px rgba(255,255,255,.78); }
.hk-hotspot.status-attention .hk-hotspot-dot, .hk-hotspot.status-urgent .hk-hotspot-dot { animation: hk-pulse 2.2s ease-in-out infinite; }
.hk-hotspot-count { min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; background: var(--system-color); color: white; font-size: 9px; }
@keyframes hk-pulse { 50% { box-shadow: inset 0 0 0 5px rgba(255,255,255,.8), 0 0 0 8px color-mix(in srgb, var(--system-color) 14%, transparent); } }
.hk-photo-strip { display: grid; }
.hk-photo-reference { display: grid; grid-template-columns: minmax(210px, .72fr) 1fr; gap: 16px; align-items: center; border: 1px solid var(--hk-line); border-radius: var(--hk-radius-lg); padding: 12px; background: var(--hk-paper); }
.hk-property-photo { width: 100%; min-height: 152px; height: 100%; max-height: 210px; object-fit: cover; border-radius: 14px; background: #d8d1c7; box-shadow: inset 0 0 70px rgba(22,30,24,.17); }
.hk-photo-reference strong, .hk-photo-reference small { display: block; }
.hk-photo-reference strong { margin-top: 5px; font: 600 20px Newsreader, Georgia, serif; }
.hk-photo-reference small { margin-top: 5px; color: var(--hk-muted); line-height: 1.45; }
.hk-system-list-wrap { border: 1px solid var(--hk-line); border-radius: var(--hk-radius-lg); background: var(--hk-paper); padding: 18px; }
.hk-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.hk-section-heading h3 { margin: 4px 0 0; font-size: 20px; }
.hk-section-heading > small { color: var(--hk-muted); font-size: 10px; }
.hk-system-list { display: grid; }
.hk-system-row { display: grid; grid-template-columns: 8px minmax(180px, 1fr) auto auto 18px; gap: 13px; align-items: center; width: 100%; border: 0; border-top: 1px solid var(--hk-line); background: transparent; padding: 13px 4px; text-align: left; color: var(--hk-ink); }
.hk-system-row:hover, .hk-system-row:focus-visible, .hk-system-row.is-selected { outline: none; background: color-mix(in srgb, var(--system-color) 7%, transparent); }
.hk-system-indicator { width: 7px; height: 34px; border-radius: 999px; background: var(--system-color); }
.hk-system-row strong, .hk-system-row small { display: block; }
.hk-system-row small { overflow: hidden; margin-top: 3px; color: var(--hk-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hk-system-status, .hk-system-actions { font-size: 10px; font-weight: 800; }
.hk-system-status { border-radius: 999px; padding: 5px 8px; background: #eeeae3; color: #5f675f; }
.hk-system-status.status-attention { background: #f5e6dc; color: var(--hk-copper-dark); }
.hk-system-status.status-watch { background: #f5eddb; color: #7f5a18; }
.hk-system-status.status-healthy { background: #e4efe8; color: #366348; }
.hk-system-status.status-unknown { background: #ece9ef; color: #675e72; }
.hk-system-actions { color: var(--hk-muted); }
.hk-panel-host { position: sticky; top: 92px; min-height: 560px; overflow: hidden; border: 1px solid var(--hk-line); border-radius: var(--hk-radius-xl); background: var(--hk-paper); box-shadow: 0 14px 45px rgba(44,34,25,.07); }
.hk-panel-empty { min-height: 560px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 42px; text-align: center; }
.hk-panel-empty span { color: var(--hk-copper); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hk-panel-empty strong { font: 600 30px Newsreader, Georgia, serif; }
.hk-panel-empty p { max-width: 270px; margin: 0; color: var(--hk-muted); line-height: 1.5; }
.hk-system-panel { max-height: calc(100vh - 114px); overflow-y: auto; scrollbar-width: thin; }
.hk-panel-header { display: flex; justify-content: space-between; gap: 20px; padding: 22px 22px 18px; border-bottom: 1px solid var(--hk-line); background: linear-gradient(150deg, color-mix(in srgb, var(--system-color) 8%, white), var(--hk-paper)); }
.hk-panel-header h2 { margin: 5px 0 6px; font: 600 30px/1.05 Newsreader, Georgia, serif; }
.hk-panel-header p { margin: 0; color: var(--hk-muted); font-size: 12px; line-height: 1.45; }
.hk-icon-button { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--hk-line); border-radius: 50%; background: white; color: var(--hk-muted); font-size: 20px; }
.hk-condition-band { margin: 16px; border-left: 4px solid var(--system-color); border-radius: 12px; background: color-mix(in srgb, var(--system-color) 7%, white); padding: 13px; }
.hk-condition-band > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hk-condition-band span { color: var(--hk-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hk-condition-band strong { font-size: 12px; color: var(--system-color); }
.hk-condition-band p { margin: 8px 0 0; color: #4f5952; font-size: 12px; line-height: 1.5; }
.hk-panel-section { padding: 4px 18px 17px; }
.hk-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 9px; }
.hk-panel-title h3 { margin: 0; font-size: 13px; }
.hk-panel-title button { border: 0; background: transparent; color: var(--hk-copper-dark); font-size: 10px; font-weight: 800; }
.hk-fact-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 10px 0; border-top: 1px solid var(--hk-line); }
.hk-fact-row strong, .hk-fact-row span, .hk-fact-row small { display: block; }
.hk-fact-row strong { font-size: 10px; color: var(--hk-muted); }
.hk-fact-row span { margin-top: 2px; font-size: 12px; font-weight: 700; }
.hk-fact-row small { grid-column: 1/-1; color: var(--hk-muted); font-size: 9px; }
.hk-confidence { align-self: start; border-radius: 999px; padding: 4px 6px; background: #eeeae3; color: var(--hk-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.hk-confidence.confirmed { background: #e4efe8; color: #356147; }.hk-confidence.estimated { background: #f4ebd7; color: #7e5817; }.hk-confidence.conflicting { background: #f4dfdc; color: #8c3834; }
.hk-evidence-row { display: grid; grid-template-columns: 34px 1fr 12px; gap: 9px; align-items: center; width: 100%; border: 0; border-top: 1px solid var(--hk-line); background: transparent; padding: 10px 0; text-align: left; color: var(--hk-ink); }
.hk-file-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #ece8e1; color: var(--hk-muted); font-size: 8px; font-weight: 900; }
.hk-evidence-row strong, .hk-evidence-row small { display: block; }
.hk-evidence-row strong { font-size: 11px; }.hk-evidence-row small { margin-top: 2px; color: var(--hk-muted); font-size: 9px; }
.hk-history-row { display: grid; grid-template-columns: 72px 1fr; gap: 9px; padding: 10px 0; border-top: 1px solid var(--hk-line); }
.hk-history-row time { color: var(--hk-muted); font-size: 9px; }
.hk-history-row strong, .hk-history-row span { display: block; }.hk-history-row strong { font-size: 11px; }.hk-history-row span { margin-top: 3px; color: var(--hk-muted); font-size: 10px; line-height: 1.45; }
.hk-empty { margin: 0; padding: 11px; border: 1px dashed var(--hk-line); border-radius: 10px; color: var(--hk-muted); font-size: 10px; }
.hk-recommendation { margin: 0 16px 16px; border-radius: 15px; background: #172019; color: white; padding: 16px; }
.hk-recommendation > span { color: #dca68a; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hk-recommendation h3 { margin: 7px 0 6px; font: 600 20px/1.12 Newsreader, Georgia, serif; }
.hk-recommendation p { margin: 0; color: #d5ddd7; font-size: 11px; line-height: 1.5; }.hk-recommendation small { display: block; margin-top: 10px; color: #aeb9b1; font-size: 9px; }
.hk-price-lens { margin: 0 16px 16px; border: 1px solid var(--hk-line); border-radius: 15px; padding: 14px; }
.hk-price-lens h3 { margin: 4px 0 0; font-size: 13px; }.hk-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.hk-price-grid > div { border-radius: 11px; background: #f0ece5; padding: 10px; }.hk-price-grid .member { background: #e5efe8; }.hk-price-grid span, .hk-price-grid strong { display: block; }.hk-price-grid span { color: var(--hk-muted); font-size: 9px; }.hk-price-grid strong { margin-top: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }.hk-price-lens > p { margin: 9px 0 0; color: var(--hk-muted); font-size: 10px; line-height: 1.4; }
.hk-panel-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--hk-line); background: rgba(255,253,249,.96); backdrop-filter: blur(12px); }
.hk-button { min-height: 40px; border-radius: 11px; padding: 9px 11px; font-size: 10px; font-weight: 800; }.hk-button.primary { border: 1px solid var(--hk-copper); background: var(--hk-copper); color: white; }.hk-button.secondary { border: 1px solid var(--hk-line); background: white; color: var(--hk-ink); }.hk-button.quiet { grid-column: 1/-1; border: 0; background: transparent; color: var(--hk-copper-dark); }
.hk-fixture-note { padding: 0 16px 15px; color: var(--hk-muted); font-size: 8px; text-align: center; }
.hk-price-modal { width: min(620px, calc(100% - 28px)); border: 0; border-radius: 22px; padding: 0; box-shadow: 0 28px 90px rgba(20,25,21,.3); }.hk-price-modal::backdrop { background: rgba(20,28,23,.55); }.hk-price-modal header { display: flex; justify-content: space-between; gap: 20px; padding: 20px; border-bottom: 1px solid var(--hk-line); }.hk-price-modal h2 { margin: 4px 0 0; font: 600 28px Newsreader, Georgia, serif; }.hk-price-modal-content { padding: 20px; }.hk-price-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.hk-price-modal-grid > div { padding: 15px; border-radius: 14px; background: #eeeae3; }.hk-price-modal-grid .member { background: #e4efe8; }.hk-price-modal-grid span, .hk-price-modal-grid strong { display: block; }.hk-price-modal-grid span { color: var(--hk-muted); font-size: 10px; }.hk-price-modal-grid strong { margin-top: 5px; font-size: 23px; font-variant-numeric: tabular-nums; }.hk-price-breakdown { margin: 16px 0; }.hk-price-breakdown div { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--hk-line); }.hk-price-breakdown dt { color: var(--hk-muted); }.hk-price-breakdown dd { margin: 0; font-weight: 800; }.hk-condition-list { border-radius: 13px; background: #f4f1eb; padding: 13px; }.hk-condition-list p { margin: 7px 0 0; color: var(--hk-muted); font-size: 11px; }

@media (max-width: 1080px) {
  .hk-spatial-layout { grid-template-columns: 1fr; }
  .hk-panel-host { position: static; min-height: auto; }
  .hk-system-panel { max-height: none; }
}
@media (max-width: 720px) {
  .hk-spatial-toolbar { align-items: stretch; flex-direction: column; gap: 14px; }
  .hk-spatial-toolbar h2 { font-size: 32px; }
  .hk-property-picker { min-width: 0; }
  .hk-scene-stage { min-height: 365px; }
  .hk-hotspot { min-height: 30px; max-width: 44px; overflow: hidden; padding-right: 5px; }
  .hk-hotspot-label, .hk-hotspot-count { display: none; }
  .hk-hotspot-dot { width: 20px; height: 20px; }
  .hk-camera-controls { display: none; }
  .hk-spatial-fallback > div { display: none; }
  .hk-scene-status { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .hk-photo-reference { grid-template-columns: 1fr; }
  .hk-property-photo { min-height: 180px; max-height: 240px; }
  .hk-system-list-wrap { padding: 14px; }
  .hk-section-heading > small, .hk-system-actions { display: none; }
  .hk-system-row { grid-template-columns: 7px minmax(0, 1fr) auto 14px; gap: 9px; }
  .hk-system-row small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .hk-panel-header { padding: 18px 16px 15px; }
  .hk-panel-header h2 { font-size: 27px; }
  .hk-panel-actions { grid-template-columns: 1fr; }
  .hk-button.quiet { grid-column: auto; }
  .hk-price-modal-grid, .hk-price-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hk-scene-skeleton, .hk-hotspot-dot { animation: none !important; }
  .hk-hotspot, .hk-camera-controls button { transition: none !important; }
  .hk-spatial-canvas { cursor: default; }
}

/* ------------------------------------------------------------------ */
/* Living Model v1 — guided homeowner experience (flag-gated: .hk-lm)  */
/* ------------------------------------------------------------------ */

/* Homeowner defaults: technical controls, the model-tier vocabulary, and the
   full system list stay hidden until intentionally revealed. */
.hk-lm .hk-camera-controls { display: none; }
.hk-lm.hk-lm-explore-free .hk-camera-controls { display: flex; }
.hk-lm [data-model-tier] { display: none; }
.hk-lm .hk-system-list-wrap { display: none; }
.hk-lm.hk-lm-explore-systems .hk-system-list-wrap { display: block; }

.hk-lm-top { display: grid; gap: 14px; }
.hk-lm-summary { border: 1px solid var(--hk-line); border-radius: var(--hk-radius-lg); background: var(--hk-paper); box-shadow: var(--hk-shadow); padding: 22px 24px; display: grid; gap: 8px; }
.hk-lm-summary-condition { margin: 0; font: 600 clamp(24px, 2.4vw, 34px)/1.05 Newsreader, Georgia, serif; letter-spacing: -.03em; }
.hk-lm-summary-line { margin: 0; font-size: 18px; line-height: 1.5; color: var(--hk-ink); }
.hk-lm-summary-next { margin: 0; font-size: 17px; line-height: 1.5; color: var(--hk-muted); }
.hk-lm-summary-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hk-lm-primary, .hk-lm-secondary, .hk-lm-quiet {
  min-height: 48px; padding: 12px 22px; border-radius: 999px; font-size: 17px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent;
}
.hk-lm-primary { background: var(--hk-copper); color: #fff; }
.hk-lm-primary:hover { background: var(--hk-copper-dark); }
.hk-lm-secondary { background: var(--hk-paper-strong); color: var(--hk-ink); border-color: var(--hk-line); }
.hk-lm-secondary:hover { border-color: var(--hk-copper); }
.hk-lm-quiet { background: transparent; color: var(--hk-muted); border-color: var(--hk-line); }
.hk-lm-quiet[aria-pressed="true"] { color: var(--hk-ink); border-color: var(--hk-copper); background: var(--hk-paper-strong); }
.hk-lm-primary:focus-visible, .hk-lm-secondary:focus-visible, .hk-lm-quiet:focus-visible,
.hk-lm-suggestion:focus-visible, .hk-lm-close:focus-visible { outline: 3px solid var(--hk-blue); outline-offset: 2px; }

.hk-lm-controls { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--hk-line); background: var(--hk-paper); }

/* Restrained default markers: quiet points, labels only for the selected or
   keyboard-focused marker. Never a hotspot label cloud. */
.hk-lm-markers .hk-hotspot .hk-hotspot-label,
.hk-lm-markers .hk-hotspot .hk-hotspot-count { display: none; }
.hk-lm-markers .hk-hotspot.is-selected .hk-hotspot-label,
.hk-lm-markers .hk-hotspot:focus-visible .hk-hotspot-label { display: inline; }
.hk-lm-markers .hk-hotspot { padding: 12px; min-width: 48px; min-height: 48px; justify-content: center; }

/* Explanation sheet */
.hk-lm-sheet { border: 1px solid var(--hk-line); border-radius: var(--hk-radius-lg); background: var(--hk-paper); box-shadow: var(--hk-shadow); padding: 22px; display: grid; gap: 12px; }
.hk-lm-sheet-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.hk-lm-sheet h3 { margin: 4px 0 0; font: 600 clamp(21px, 2vw, 27px)/1.12 Newsreader, Georgia, serif; letter-spacing: -.02em; }
.hk-lm-close { min-height: 48px; min-width: 48px; padding: 10px 16px; border: 1px solid var(--hk-line); border-radius: 999px; background: var(--hk-paper-strong); font-size: 15px; font-weight: 700; cursor: pointer; }
.hk-lm-sheet-explanation { margin: 0; font-size: 18px; line-height: 1.55; color: var(--hk-ink); }
.hk-lm-sheet-observed { margin: 0; font-size: 15px; line-height: 1.5; color: var(--hk-muted); }
.hk-lm-sheet-reason { margin: 0; font-size: 16px; line-height: 1.5; color: var(--hk-muted); }
.hk-lm-sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hk-lm-details { border-top: 1px solid var(--hk-line); padding-top: 12px; }
.hk-lm-details summary { min-height: 48px; display: flex; align-items: center; font-size: 17px; font-weight: 700; cursor: pointer; color: var(--hk-ink); }
.hk-lm-details > *:not(summary) { margin-top: 10px; }
.hk-lm-fact { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px dashed var(--hk-line); font-size: 16px; }
.hk-lm-fact span { color: var(--hk-muted); font-size: 14px; }
.hk-lm-fact small { color: var(--hk-muted); }
.hk-lm-price { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--hk-line); border-radius: var(--hk-radius-md); background: var(--hk-paper-strong); font-size: 16px; }
.hk-lm-price span, .hk-lm-price small { color: var(--hk-muted); font-size: 14px; }
.hk-lm-evidence-row, .hk-lm-service { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 16px; border-bottom: 1px dashed var(--hk-line); }
.hk-lm-history-row { display: flex; gap: 12px; padding: 8px 0; font-size: 16px; border-bottom: 1px dashed var(--hk-line); }
.hk-lm-history-row span { color: var(--hk-muted); min-width: 118px; }
.hk-lm-history-row small { display: block; color: var(--hk-muted); }
.hk-lm-empty { margin: 0; color: var(--hk-muted); font-size: 15px; }
.hk-lm-advanced { display: grid; gap: 12px; }

/* Ask Home Key */
.hk-lm-ask[hidden] { display: none; }
.hk-lm-ask { border: 1px solid var(--hk-line); border-radius: var(--hk-radius-lg); background: var(--hk-paper); padding: 16px 18px; display: grid; gap: 12px; }
.hk-lm-ask-label { font-size: 15px; font-weight: 800; color: var(--hk-muted); letter-spacing: .04em; text-transform: uppercase; }
.hk-lm-ask-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hk-lm-ask-row input { flex: 1 1 240px; min-height: 48px; font-size: 17px; padding: 10px 16px; border: 1px solid var(--hk-line); border-radius: 999px; background: var(--hk-paper-strong); color: var(--hk-ink); }
.hk-lm-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.hk-lm-suggestion { min-height: 48px; padding: 10px 16px; border: 1px solid var(--hk-line); border-radius: 999px; background: var(--hk-paper-strong); font-size: 16px; cursor: pointer; color: var(--hk-ink); }
.hk-lm-suggestion:hover { border-color: var(--hk-copper); }
.hk-lm-ask-result { display: grid; gap: 8px; border-top: 1px solid var(--hk-line); padding-top: 12px; }
.hk-lm-ask-result p { margin: 0; font-size: 17px; line-height: 1.5; }
.hk-lm-ask-result p span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hk-copper); }
.hk-lm-ask-miss { margin: 0; font-size: 16px; color: var(--hk-muted); }

@media (max-width: 720px) {
  .hk-lm-summary { padding: 18px; }
  .hk-lm-summary-actions .hk-lm-primary, .hk-lm-summary-actions .hk-lm-secondary { flex: 1 1 100%; }
}

/* PR4 — ownership-pride record layer, semantic modes, captions */
.hk-lm-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .85fr); gap: 14px; align-items: start; }
.hk-lm-top-main { display: grid; gap: 14px; min-width: 0; }
.hk-lm-record { border: 1px solid var(--hk-line); border-radius: var(--hk-radius-lg); background: var(--hk-paper); box-shadow: var(--hk-shadow); padding: 20px; display: grid; gap: 10px; align-content: start; }
.hk-lm-record-bar { height: 8px; border-radius: 999px; background: #e7e0d4; overflow: hidden; }
.hk-lm-record-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--hk-green), #4d8468); }
.hk-lm-record-line { margin: 0; font-size: 16px; line-height: 1.5; color: var(--hk-muted); }
.hk-lm-record-line strong { color: var(--hk-ink); font-size: 20px; }
.hk-lm-record-next { margin: 0; font-size: 15px; color: var(--hk-muted); }

.hk-lm-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.hk-lm-mode { min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--hk-line); background: var(--hk-paper-strong); font-size: 16px; font-weight: 700; color: var(--hk-muted); cursor: pointer; }
.hk-lm-mode[aria-selected="true"] { color: #fff; background: var(--hk-ink); border-color: var(--hk-ink); }
.hk-lm-mode:focus-visible { outline: 3px solid var(--hk-blue); outline-offset: 2px; }
.hk-lm-caption { margin: 0 0 4px; font-size: 17px; color: var(--hk-muted); }

.hk-lm-markers .hk-hotspot.has-evidence { box-shadow: 0 0 0 3px rgba(62,114,86,.4); }

@media (max-width: 900px) {
  .hk-lm-top { grid-template-columns: 1fr; }
}

/* PR5 — Ask advisor: evidence citation, voice, review action */
.hk-lm-voice { min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--hk-line); background: var(--hk-paper-strong); font-size: 15px; font-weight: 700; color: var(--hk-ink); cursor: pointer; }
.hk-lm-voice.is-listening { background: var(--hk-copper); color: #fff; border-color: var(--hk-copper); }
.hk-lm-voice:focus-visible { outline: 3px solid var(--hk-blue); outline-offset: 2px; }
.hk-lm-ask-cite { margin: 4px 0 0; font-size: 14px; color: var(--hk-muted); }
.hk-lm-ask-cite span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--hk-green); }
.hk-lm-ask-result [data-lm-ask-action] { margin-top: 10px; }

/* PR6 — release-candidate identity badge (development / preview only) */
.hk-lm-rc { position: fixed; left: 12px; bottom: 12px; z-index: 9999; display: grid; gap: 1px; padding: 8px 12px; border-radius: 10px; background: rgba(23,32,25,.9); color: #f4f1eb; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; line-height: 1.35; box-shadow: 0 10px 24px rgba(0,0,0,.28); pointer-events: none; }
.hk-lm-rc strong { color: #e6a37f; font-size: 10px; letter-spacing: .12em; }
