/* Hitta ägaren — the unified guide. Scoped to .ha (standalone + [hitta_agaren]).
   Mobile: single column with the plan as horizontal pills. Desktop (≥1000px):
   the plan is a sticky left rail, the active step on the right. */
.ha, .ha * { box-sizing: border-box; }
/* Theme hardening: on theme-rendered pages (/sok) button styles bleed in. */
.ha button, .ha .ha-btn, .ha a.ha-btn { text-transform: none; letter-spacing: normal; box-shadow: none; }
body.ha-standalone { margin: 0; background: #f2f7fb; }
.ha {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #16232f;
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto;
  padding: 30px 20px 44px;
  background: #fff;
}
body.ha-standalone .ha { min-height: 100vh; }
.sbr2-hitta-embed .ha { border: 1px solid #d5e0ea; border-radius: 14px; }

.ha-hero { text-align: center; }
.ha-logo { margin-bottom: 8px; }
.ha-hero h1 { font-size: 30px; color: #0b3d66; margin: 0 0 8px; }
.ha-lead { color: #33475b; font-size: 16px; margin: 0 auto 26px; max-width: 640px; }

.ha-q { font-size: 20px; color: #0b3d66; margin: 0 0 12px; }
.ha-p { font-size: 15px; color: #33475b; }
.ha-cards { display: grid; gap: 10px; }
.ha-cards button {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto;
  gap: 0 12px; align-items: center; text-align: left;
  background: #fff; border: 2px solid #d5e0ea; border-radius: 14px;
  padding: 14px 16px; cursor: pointer; font: inherit; color: inherit;
  transition: border-color 0.12s, transform 0.12s;
}
.ha-cards button:hover { border-color: #0b3d66; transform: translateY(-1px); }
.ha-card-icon { grid-row: span 2; font-size: 26px; text-align: center; }
.ha-card-t { font-weight: 700; font-size: 15px; color: #0b3d66; }
.ha-card-d { font-size: 13px; color: #5a6b7a; }
.ha-112 { font-size: 12px; color: #8a94a0; text-align: center; margin-top: 18px; }

/* The plan */
#ha-flow[hidden] { display: none !important; }
.ha-plan { display: flex; gap: 8px; margin: 6px 0 18px; }
.ha-plan-title { display: none; }
.ha-plan-step {
  flex: 1; display: flex; gap: 8px; align-items: center; text-align: left;
  background: #f2f7fb; border: 1px solid #d5e0ea; border-radius: 10px;
  padding: 8px 10px; cursor: pointer; font: inherit; color: #33475b;
}
.ha-plan-step small { display: none; }
.ha-plan-step b { font-size: 12px; }
.ha-plan-step.on { background: #0b3d66; border-color: #0b3d66; color: #fff; }
.ha-plan-step.on b { color: #fff; }
.ha-plan-step.done .ha-plan-num { background: #1c7a3a; color: #fff; }
.ha-plan-num {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: #e3eef7; color: #0b3d66; font-weight: 700; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ha-plan-step.on .ha-plan-num { background: #fff; }

.ha-urgency { background: #e7f0f8; border-radius: 10px; padding: 10px 14px; font-size: 14px; color: #0b3d66; }
.ha-look { padding-left: 18px; font-size: 14px; color: #33475b; }
.ha-look li { margin-bottom: 6px; }
.ha-numform { display: flex; gap: 8px; margin-top: 6px; }
.ha-numform input { flex: 1; font-size: 16px; padding: 12px 14px; border: 2px solid #c7d3de; border-radius: 10px; text-transform: uppercase; min-width: 0; }
.ha-numform input:focus { outline: none; border-color: #0b3d66; }
.ha-btn {
  background: #0b3d66; color: #fff; border: 0; border-radius: 10px;
  padding: 13px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: inherit; text-decoration: none; display: inline-block; text-align: center;
}
.ha-btn[disabled] { opacity: 0.6; }
.ha-btn-link { display: block; }
.ha-mt { margin-top: 14px; width: 100%; }
.ha-skip { display: block; background: none; border: 0; color: #0b4f8a; font: inherit; font-size: 14px; cursor: pointer; margin: 12px auto 0; text-decoration: underline; text-underline-offset: 3px; }
.ha-error { background: #fdf6e8; border: 2px solid #ecd9ac; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-top: 12px; }
.ha-hint { font-size: 13px; color: #5a6b7a; }
.ha-caveat { color: #8a6d1a; font-size: 12px; margin-top: 8px; }
.ha-label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }

.ha-card-ok, .ha-card-warn, .ha-card-info { border-radius: 12px; padding: 16px; margin-top: 16px; }
.ha-card-ok { background: #e7f3ea; border: 2px solid #1c7a3a; }
.ha-card-ok h3 { color: #1c7a3a; margin: 0 0 6px; font-size: 17px; }
.ha-card-warn { background: #fdebea; border: 2px solid #b3261e; }
.ha-card-warn h3 { color: #b3261e; margin: 0 0 6px; font-size: 17px; }
.ha-card-info { background: #f2f6fa; border: 2px solid #c7d3de; }
.ha-card-info h3 { color: #0b3d66; margin: 0 0 6px; font-size: 16px; }
.ha-reach { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ha-reach input, .ha-reach textarea { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid #c7d3de; border-radius: 8px; background: #fff; }
.ha-hp { position: absolute; left: -9999px; }
.ha-sent { background: #fff; border-radius: 10px; padding: 12px 14px; margin-top: 10px; font-size: 14px; }
.ha-sent p:first-child { font-weight: 600; color: #1c7a3a; }

.ha-map { width: 100%; height: 300px; border-radius: 10px; background: #e3eef7; margin-bottom: 8px; }
.ha-pos-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ha-btn-ghost { background: #e3eef7; color: #0b3d66; border: 0; border-radius: 8px; padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ha-coords { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ha-coords input, .ha input[type="datetime-local"] { width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid #c7d3de; border-radius: 8px; }
.ha-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ha-chips button { background: #eef2f6; color: #33475b; border: 1px solid #d5e0ea; border-radius: 999px; padding: 7px 15px; font: inherit; font-size: 14px; cursor: pointer; }
.ha-chips button.on { background: #0b3d66; color: #fff; border-color: #0b3d66; }
.ha-typecards { display: grid; gap: 8px; }
.ha-typecards button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  background: #fff; border: 2px solid #d5e0ea; border-radius: 10px; padding: 10px 14px;
  font: inherit; cursor: pointer; color: #16232f;
}
.ha-typecards button b { font-size: 14px; color: #0b3d66; }
.ha-typecards button small { font-size: 12px; color: #5a6b7a; }
.ha-typecards button.on { border-color: #0b3d66; background: #e7f0f8; }
.ha-typecards button.on b::after { content: '  ✓'; }
.ha-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: #33475b; }
.ha-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }

.ha-harbors { margin-top: 14px; }
.ha-harbors h3 { font-size: 16px; color: #0b3d66; margin: 0 0 4px; }
.ha-harbor {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #d5e0ea; border-radius: 10px; padding: 10px 12px; margin-top: 8px; cursor: pointer;
}
.ha-harbor input { width: 18px; height: 18px; flex: none; }
.ha-harbor-body { flex: 1; display: flex; flex-direction: column; }
.ha-harbor-name { font-weight: 700; color: #0b3d66; text-decoration: none; font-size: 14px; }
.ha-harbor-body small { color: #5a6b7a; font-size: 12px; }
.ha-harbor-tel { flex: none; background: #0b3d66; color: #fff; border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; text-decoration: none; }
.ha-called { opacity: 0.55; }
.ha-called .ha-harbor-name { text-decoration: line-through; }

.ha-promise { list-style: none; padding: 0; font-size: 14px; color: #33475b; }
.ha-promise li { padding: 5px 0; }
.ha-doneview { margin-top: 18px; text-align: center; }
.ha-foot { margin-top: 30px; text-align: center; font-size: 12px; color: #5a6b7a; }

/* Desktop: plan rail left, stage right */
@media (min-width: 1000px) {
  .ha { max-width: 1080px; padding: 48px 40px; }
  body.ha-standalone .ha { background: transparent; }
  .ha-hero h1 { font-size: 36px; }
  .ha-cards { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: 0 auto; }
  .ha-cards button { grid-template-rows: auto 1fr; align-items: start; }
  body.ha-standalone .ha-cards button { background: #fff; }
  #ha-flow { display: grid; grid-template-columns: 280px minmax(460px, 620px); gap: 40px; justify-content: center; align-items: start; }
  .ha-plan { flex-direction: column; position: sticky; top: 40px; margin: 0; }
  .ha-plan-title { display: block; font-weight: 700; color: #0b3d66; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
  .ha-plan-step { padding: 12px 14px; }
  .ha-plan-step b { font-size: 14px; display: block; }
  .ha-plan-step small { display: block; font-size: 12px; opacity: 0.8; }
  body.ha-standalone .ha-stage { background: #fff; border-radius: 14px; padding: 26px 30px; box-shadow: 0 1px 3px rgba(10,48,80,0.08), 0 4px 16px rgba(10,48,80,0.06); }
  .ha-map { height: 340px; }
}


/* ── v0.15: one glued flow ─────────────────────────────────────────────── */
.ha-buy { font-size: 13px; color: #5a6b7a; text-align: center; margin: 16px 0 0; }
.ha-buy a { color: #0b4f8a; font-weight: 600; }
.ha-known { background: #f2f6fa; border-left: 3px solid #0b3d66; border-radius: 6px; padding: 8px 12px; font-size: 13px; color: #33475b; margin: 0 0 14px; }
.ha-known-l { font-weight: 700; color: #0b3d66; }
.ha-picker { margin-bottom: 6px; }
.ha-chips { margin-bottom: 4px; }
.ha-chips button { text-align: left; }

.ha-report { display: flex; flex-direction: column; gap: 4px; }
.ha-report input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .ha-report textarea {
  font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid #c7d3de; border-radius: 8px; background: #fff; margin-top: 6px; width: 100%;
}
.ha-photos { margin-top: 4px; }
.ha-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ha-file-btn {
  display: inline-block; background: #e3eef7; color: #0b3d66; border: 2px dashed #9bb7cf; border-radius: 10px;
  padding: 14px 18px; font-weight: 600; font-size: 15px; cursor: pointer; width: 100%; text-align: center;
}
.ha-file:focus + .ha-file-btn { outline: 2px solid #0b3d66; }
.ha-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ha-thumb { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid #c7d3de; }
.ha-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ha-thumb-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(11,61,102,0.85); color: #fff; font-size: 15px; line-height: 22px; padding: 0; cursor: pointer; }
.ha-radios { display: grid; gap: 6px; margin-top: 4px; }
.ha-radio, .ha-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #16232f; cursor: pointer; padding: 9px 12px; border: 1px solid #d5e0ea; border-radius: 8px; background: #fff; }
.ha-radio input, .ha-check input { width: 18px; height: 18px; margin: 0; flex: none; }
.ha-radio:has(input:checked) { border-color: #0b3d66; background: #e7f0f8; }
.ha-check { margin-top: 6px; border: 0; padding: 4px 0; }
.ha-center { text-align: center; margin-top: 10px; }
.ha-center a { color: #0b4f8a; }

.ha-legal { background: #f8f6ef; border: 1px solid #ecd9ac; border-radius: 12px; padding: 14px 16px; margin-top: 14px; font-size: 14px; color: #33475b; }
.ha-legal h3 { margin: 0 0 6px; font-size: 16px; color: #6b4f0a; }
.ha-legal ol { padding-left: 20px; margin: 8px 0 0; }
.ha-legal li { margin-bottom: 4px; }
.ha-reward { font-weight: 600; color: #1c7a3a; margin: 10px 0 0; }
.ha-ack-actions { display: grid; gap: 8px; margin-top: 14px; }
.ha-btn-2 { background: #e3eef7; color: #0b3d66; }
.ha-todo { margin-top: 16px; font-size: 14px; }
.ha-todo h3 { font-size: 15px; color: #0b3d66; margin: 0 0 4px; }
.ha-todo ul { padding-left: 18px; margin: 4px 0; color: #33475b; }
@media (min-width: 1000px) { .ha-ack-actions { grid-template-columns: 1fr 1fr; } }

/* The situation row injected into the /sok verdict card */
.ha-sokrow { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e3e8ee; }
.ha-sokrow-t { font-weight: 700; color: #0b3d66; font-size: 14px; margin: 0 0 8px; }
.ha-sokrow-grid { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.ha-sokrow-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #f2f7fb; border: 1px solid #d5e0ea; border-radius: 10px; padding: 10px 8px; font: inherit; font-size: 12px; font-weight: 600; color: #0b3d66; cursor: pointer; text-align: center; text-transform: none; }
.ha-sokrow-btn:hover { border-color: #0b3d66; background: #e7f0f8; }
.ha-sokrow-ico { font-size: 20px; }
@media (max-width: 480px) { .ha-sokrow-grid { grid-template-columns: 1fr; } .ha-sokrow-btn { flex-direction: row; justify-content: flex-start; } }

.ha [hidden] { display: none !important; }
.ha-resbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ha-back { background: none; border: 1px solid #d5e0ea; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 600; color: #0b3d66; cursor: pointer; }
.ha-resbar-t { font-size: 18px; font-weight: 800; color: #0b3d66; }
.ha-infobox { background: #fff; border: 1px solid #d5e0ea; border-radius: 12px; padding: 12px 14px; margin-top: 10px; }

/* Compact — the flow as a section UNDER the /sok search box. The search page
   supplies the tinted background and its own hero, so the guide sheds the
   white sheet and big hero: a divider, a smaller heading, the same cards,
   plan and stage. Keep these rules last so they win the cascade. */
.sbr2-hitta-sok { margin-top: 64px; }
.ha--compact { background: transparent; max-width: 720px; padding: 0 20px 10px; }
.ha--compact .ha-hero { border-top: 1px solid #e3e8ee; padding-top: 40px; }
.ha--compact .ha-hero h2 { font-size: 24px; color: #0b3d66; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.01em; }
.ha--compact .ha-lead { font-size: 15px; margin-bottom: 22px; }
.ha--compact .ha-foot { margin-top: 26px; }
@media (min-width: 1000px) {
  .ha--compact { max-width: 1080px; padding: 0 40px 10px; }
  .ha--compact .ha-stage { background: #fff; border-radius: 14px; padding: 26px 30px; box-shadow: 0 1px 3px rgba(10,48,80,0.08), 0 4px 16px rgba(10,48,80,0.06); }
}
