/* Ellådan: all stil, i samma ordning som den låg i index.html. */
body{margin:0}
/* Layout: sticky bar with the live answer; a describe-it search first, then result, inputs and section comparison.
   Two columns (inputs left, result and table right) from 880px. */
:root {
  --bg: #EDF0F4;
  --surface: #FFFFFF;
  --surface-2: #F4F6F9;
  --fg: #141C26;
  --muted: #566373;
  --line: #D3DAE3;
  --accent: #B04F0B;
  --accent-fg: #FFFFFF;
  --accent-soft: #F7E6D8;
  --ok: #1B7447;
  --ok-soft: #DCF1E5;
  --bad: #B3261E;
  --bad-soft: #FBE3E1;
  --warn: #7F5400;
  --warn-soft: #FAEFCF;
  --sheath: #343E4B;
  --hero: #12263F; --hero-2: #1D3A5F; --hero-fg: #FFFFFF; --hero-muted: #B9C7D8; --hero-btn: #F29A52; --hero-btn-fg: #1B1002;
  --core-ring: rgba(255, 255, 255, 0.55);
  --font-display: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E141B; --surface: #16202B; --surface-2: #1B2733; --fg: #E7ECF2; --muted: #93A1B2; --line: #2A3746;
    --accent: #E48B48; --accent-fg: #1A0E04; --accent-soft: #3A2616;
    --ok: #55C98C; --ok-soft: #12301F; --bad: #F58A82; --bad-soft: #3A1816; --warn: #E5B34F; --warn-soft: #33260A;
    --sheath: #4A586A; --core-ring: rgba(255, 255, 255, 0.5);
    --hero: #16304D; --hero-2: #0F2238;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E141B; --surface: #16202B; --surface-2: #1B2733; --fg: #E7ECF2; --muted: #93A1B2; --line: #2A3746;
  --accent: #E48B48; --accent-fg: #1A0E04; --accent-soft: #3A2616;
  --ok: #55C98C; --ok-soft: #12301F; --bad: #F58A82; --bad-soft: #3A1816; --warn: #E5B34F; --warn-soft: #33260A;
  --sheath: #4A586A; --core-ring: rgba(255, 255, 255, 0.5);
  --hero: #16304D; --hero-2: #0F2238;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--surface);
}
.gutter {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Sticky bar */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.bar-in {
  max-width: 1100px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.proto {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
@media (max-width: 460px) { .proto { display: none; } }
.chip {
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 14px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 6px;
  padding: 5px 9px;
  white-space: nowrap;
}
.chip.idle { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* Page grid */
.page {
  max-width: 1100px;
  margin-inline: auto;
  padding-block: 16px 28px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
.calcgrid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 880px) {
  .calcgrid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas: "inputs result" "inputs export" "inputs table" "notes notes";
    align-items: start;
  }
  .result { grid-area: result; }
  .exportpanel { grid-area: export; }
  .inputs { grid-area: inputs; }
  .tablepanel { grid-area: table; }
  .notes { grid-area: notes; }
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  min-width: 0;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 12px;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.lab {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}

/* Search */
.askrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.askrow input[type="text"] {
  flex: 1 1 260px;
  min-width: 0;
  height: 48px;
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}
.go {
  flex: 0 0 auto;
  height: 48px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--accent-fg);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
}
.askrow input[type="text"]:focus-visible, .go:focus-visible, .ex:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ex {
  font: inherit;
  font-size: 13px;
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  text-align: left;
}
.ex:hover { border-color: var(--accent); }
.understood { margin-top: 12px; display: grid; gap: 8px; }
.understood:empty { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tags .lab { margin-right: 4px; }
.tag {
  font-family: var(--font-data);
  font-size: 13px;
  background: var(--accent-soft);
  color: var(--fg);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}
.assume { margin: 0; font-size: 13px; color: var(--muted); }

/* Result */
.res-top { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.res-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 2px 0 2px;
  overflow-wrap: anywhere;
}
.res-name small { font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.res-sub { color: var(--muted); margin: 0; }
.xs { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.xs svg { max-width: 100%; height: auto; display: block; }
.legend { font-size: 11px; color: var(--muted); text-align: center; max-width: 110px; line-height: 1.3; }
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 12px;
}
.metric { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.metric .k { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.metric .v { font-family: var(--font-data); font-weight: 500; font-size: 20px; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric .v small { font-size: 13px; color: var(--muted); font-weight: 400; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pill {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 999px;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.repl { margin: 8px 0 10px; font-size: 14px; line-height: 1.6; }
.repl-k { color: var(--muted); margin-right: 4px; }
.repl-n { color: var(--muted); }
.repl-b { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.tag-old { display: inline-block; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; font-size: 12px; font-weight: 600; margin-right: 6px; vertical-align: 1px; }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.unk { background: var(--warn-soft); color: var(--warn); }
.why { margin: 0 0 8px; }
.detail { margin: 0; font-size: 13px; color: var(--muted); }
.warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 8px;
  padding: 9px 12px;
  margin: 10px 0 0;
  font-size: 14px;
}
.empty { color: var(--muted); margin: 6px 0 0; }
.empty strong { color: var(--fg); }

/* Inputs */
.exampletag { margin: -4px 0 14px; font-size: 13px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.full { grid-column: 1 / -1; }
[hidden] { display: none !important; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.field > label, .lh > label { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend.lab { margin-bottom: 5px; }
input[type="number"], select {
  width: 100%;
  height: 44px;
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font-variant-numeric: tabular-nums;
}
input[type="number"] { font-family: var(--font-data); }
select:disabled { opacity: 0.55; }
input[type="number"]:focus-visible, select:focus-visible, .toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.hint { font-size: 12px; color: var(--muted); margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label {
  display: block;
  text-align: center;
  padding: 11px 8px;
  font-weight: 500;
  cursor: pointer;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
}
.seg input + label + input + label { border-left: 1px solid var(--line); }
.seg input:checked + label { background: var(--accent); color: var(--accent-fg); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -3px; }
.sect { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; color: var(--accent-text); border-top: 1px solid var(--line); padding-top: 12px; margin: 2px 0 -4px; }

/* Table */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}
tbody td { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
tbody th { font-family: var(--font-data); font-weight: 500; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tr.rec th, tr.rec td { background: var(--accent-soft); }
.sel { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); margin-left: 6px; }
.toggle {
  margin-top: 10px;
  font: inherit;
  font-weight: 500;
  color: var(--accent-text);
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Notes */
.notes h2 { margin-bottom: 8px; }
.notes ul { margin: 0 0 14px; padding-left: 18px; }
.notes li { margin-bottom: 4px; }
.notes p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.cols { display: grid; gap: 4px 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Info button and tips */
.info {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--accent-text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer;
}
.info[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); }
.info:focus-visible, .tab:focus-visible, .catbtn:focus-visible, .cl:focus-visible, .cab > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.infopanel {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}
.infopanel p { margin: 0; font-size: 14px; }
.infopanel ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.infopanel .examples { margin-top: 0; }

/* Section menu */
.secrow { max-width: 1100px; margin-inline: auto; padding-bottom: 10px; position: relative; }
.menubtn {
  font: inherit; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--fg);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 420px; text-align: left;
}
.menubtn .cur { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 8px; }
.menubtn[aria-expanded="true"] { border-color: var(--accent); }
.menulist {
  position: absolute; left: 0; top: calc(100% - 4px); z-index: 20; width: min(420px, 100%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); max-height: 70vh; overflow: auto;
}
.menulist[hidden] { display: none; }
.mh { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); padding: 10px 10px 4px; }
.mi {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 16px; color: var(--fg); background: none; border: 0; border-radius: 6px;
  padding: 10px 10px 10px 22px; cursor: pointer;
}
.mi:hover { background: var(--surface-2); }
.mi[aria-current="true"] { background: var(--accent-soft); font-weight: 600; }
.chip[hidden], .tabs[hidden] { display: none; }
.glossq { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); margin-bottom: 12px; }
.term { border-bottom: 1px solid var(--line); padding: 10px 0; }
.term b { font-family: var(--font-data); font-weight: 500; }
.term p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.plink { display: inline-block; margin: 6px 8px 0 0; }
/* Tools, projects, control */
.fx .field input[type="text"], .fx input[type="text"], .fx input[type="password"], .fx input[type="email"], .fx input[type="tel"] { height: 44px; width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
.fx input[type="number"], .fx select { width: 100%; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.fx.inline { display: flex; gap: 8px; }
.fx.inline input { flex: 1; min-width: 0; }
.fx.inline .go { margin-top: 0; }
.tblwrap { overflow-x: auto; margin: 8px 0; }
.tbl { border-collapse: collapse; width: 100%; font-size: 14px; }
.tbl th { text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mono { font-family: var(--font-data); }
.mini { font: inherit; font-size: 18px; line-height: 1; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.mini:hover { color: var(--bad); border-color: var(--bad); }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btnrow .toggle, .btnrow .go { margin-top: 0; }
.toggle.danger { color: var(--bad); }
ol.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.ro { height: 44px; display: flex; align-items: center; padding: 0 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-data); }
.chk { display: grid; gap: 8px; }
.chkrow { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 10px 12px; display: grid; gap: 8px; }
.chkl { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.chkl input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.chkn { width: 100%; height: 38px; font: inherit; font-size: 14px; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; }
/* Free vs Pro */
.badge.lbl { font-size: 10px; padding: 1px 5px; margin-left: 6px; letter-spacing: 0.06em; }
.mi .badge { margin-left: 8px; }
.home h1 { font-size: 26px; line-height: 1.2; margin: 6px 0 8px; }
.home .lead { font-size: 16px; color: var(--muted, inherit); margin: 0 0 14px; max-width: 60ch; }
.home .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.home h2 { font-size: 17px; margin: 22px 0 10px; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.hcard { text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 14px; cursor: pointer; font: inherit; color: inherit; display: block; width: 100%; }
.hcard:hover { border-color: var(--accent); }
.hcard b { display: block; margin-bottom: 4px; }
.hcard span.d { font-size: 14px; display: block; }
.hcard .badge { margin-left: 6px; }
.hwho { margin: 0; padding-left: 18px; font-size: 15px; }
.hsteps { margin: 0; padding-left: 20px; font-size: 15px; display: grid; gap: 6px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.plan { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 14px; }
.plan.pro { border-color: var(--accent); background: var(--accent-soft); }
.plan h3 { margin: 0 0 8px; font-size: 16px; }
.plan ul { margin: 0 0 12px; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }

.hero { background: linear-gradient(135deg, var(--hero), var(--hero-2)); color: var(--hero-fg); border-radius: 16px; padding: 22px 20px; margin: 4px 0 16px; }
.hero h1 { font-family: var(--font-display); font-size: 25px; line-height: 1.15; margin: 0 0 8px; }
.hero p { margin: 0 0 16px; color: var(--hero-muted); font-size: 15px; }
.hero .go { background: var(--hero-btn); color: var(--hero-btn-fg); border-color: transparent; }
.hero .alt { background: transparent; color: var(--hero-fg); border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.hero .who { margin: 14px 0 0; font-size: 13px; color: var(--hero-muted); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 12px; cursor: pointer; font: inherit; color: inherit; position: relative; }
.tile:hover { border-color: var(--accent); }
.tile svg { width: 26px; height: 26px; color: var(--accent-text); display: block; margin-bottom: 8px; }
.tile b { display: block; font-size: 15px; }
.tile small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.tile .badge { position: absolute; top: 10px; right: 10px; }
.hmore { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.hmore summary { padding: 12px 14px; font-weight: 600; cursor: pointer; }
.hmore .in { padding: 0 14px 14px; }
.hchips { display: flex; flex-wrap: wrap; gap: 8px; }
.hchips .cl { font-size: 14px; }
.hnote { font-size: 12.5px; margin-top: 16px; text-align: center; }
.hnote-old { font-size: 13px; margin-top: 18px; }
.gate { border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); padding: 16px; }
.gate h2 { margin: 8px 0 0; font-size: 22px; }
.gate p { margin: 8px 0 0; max-width: 60ch; }
.gate ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.gate .go { margin-top: 14px; }
.quota { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.quota .toggle { margin: 0 0 0 6px; padding: 3px 8px; min-height: 0; }
/* Tabs */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-top: 4px; overflow-x: auto; scrollbar-width: thin; }
.tab {
  flex: 1 0 auto;
  white-space: nowrap;
  padding-inline: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 6px;
  cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.tabpanel { padding-top: 16px; }

/* Catalog */
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.catbtn {
  text-align: left;
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.catbtn .t { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.catbtn .n { font-size: 13px; color: var(--muted); }
.catbtn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.catintro { margin: 16px 0 0; color: var(--muted); max-width: 65ch; }
.grp h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 18px 0 8px;
}
.grp .gnote { margin: -4px 0 8px; font-size: 13px; color: var(--muted); }
details.cab { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 8px; }
details.cab > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: baseline;
}
details.cab > summary::-webkit-details-marker { display: none; }
details.cab > summary::after { content: "+"; grid-column: 2; grid-row: 1; font-family: var(--font-data); color: var(--accent-text); font-size: 18px; }
details.cab[open] > summary::after { content: "\2212"; }
.cname { font-family: var(--font-data); font-weight: 500; font-size: 16px; overflow-wrap: anywhere; }
.cshort { grid-column: 1; font-size: 14px; color: var(--muted); }
.cab-body { padding: 0 14px 14px; display: grid; gap: 12px; }
dl.facts { display: grid; grid-template-columns: minmax(84px, 28%) minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
dl.facts dt { color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.cab-body .pills { margin: 0; }
.cab-body .toggle { margin-top: 0; justify-self: start; }
.hits { margin-bottom: 18px; }
.hits-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hits-h h2 { margin: 0; }
.hits-h .toggle { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cl {
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 11px;
  cursor: pointer;
}
.cl:hover { border-color: var(--accent); }
.catbtn .n2 { font-size: 12px; color: var(--muted); margin-top: 4px; }
.badge { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 4px; background: var(--accent); color: var(--accent-fg); vertical-align: middle; }
.basic-h { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 22px 0 0; }
.pro-sec { margin-top: 26px; border: 1px solid var(--accent); border-radius: 10px; padding: 4px 14px 14px; background: var(--accent-soft); }
.pro-sec > .pro-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
.pro-sec > .pro-h h2 { margin: 0; font-size: 20px; }
.pro-sec .pro-n { color: var(--muted); font-size: 13px; }
.pro-sec .pro-p { margin: 6px 0 0; font-size: 14px; color: var(--muted); max-width: 60ch; }
.pro-sec .toggle { margin-top: 10px; }
button.lockrow {
  width: 100%; text-align: left; font: inherit; color: var(--fg); cursor: pointer;
  background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline;
}
button.lockrow .cshort { grid-column: 1; }
button.lockrow .badge { grid-column: 2; grid-row: 1; }
button.lockrow:hover { border-color: var(--accent); }
.probanner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 14px; }
.probanner .toggle { margin-top: 0; }
.cl .badge { font-size: 9px; padding: 1px 5px; margin-left: 6px; }

/* Supplier links, export, text fields */
.sup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sup .lab { margin-right: 2px; }
.suplink {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--surface);
}
.suplink:hover { border-color: var(--accent); }
.suplink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field input[type="text"], .field input[type="password"], .field input[type="email"], .field input[type="tel"] {
  width: 100%;
  height: 44px;
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}
.field input[type="password"]:focus-visible, .field input[type="text"]:focus-visible, .field input[type="tel"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.protag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: 2px;
}
.exportpanel .fields { margin-bottom: 14px; }
.exportpanel .go { margin-top: 0; }

/* Field help */
.lh { display: flex; align-items: center; gap: 6px; }
legend.lab .fi { margin-left: 6px; vertical-align: middle; }
.fi {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.fi::before { content: ""; position: absolute; inset: -11px; }
.fi[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); }
.fi:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.finfo {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===== Ren stil: lugn, luftig, en accent ===== */
:root {
  --bg: #F5F5F7; --surface: #FFFFFF; --surface-2: #F5F5F7; --fg: #1D1D1F; --muted: #6E6E73; --line: #E8E8ED;
  --accent: #C4570A; --accent-soft: #FBEFE6; --accent-fg: #FFFFFF;
  --ink: #1D1D1F; --ink-fg: #FFFFFF;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-data: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --r: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1C1C1E; --surface-2: #2C2C2E; --fg: #F5F5F7; --muted: #98989F; --line: #38383A;
    --accent: #FF9F5A; --accent-soft: #3A2A1D; --accent-fg: #1A0E04; --ink: #F5F5F7; --ink-fg: #1D1D1F;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1C1C1E; --surface-2: #2C2C2E; --fg: #F5F5F7; --muted: #98989F; --line: #38383A;
  --accent: #FF9F5A; --accent-soft: #3A2A1D; --accent-fg: #1A0E04; --ink: #F5F5F7; --ink-fg: #1D1D1F;
}
body { font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.bar { background: var(--surface); border-bottom: 1px solid var(--line); }
body::before { background: var(--surface); }
.menubtn { border: 0; background: var(--surface-2); border-radius: 12px; }
.menulist { border: 0; border-radius: var(--r); box-shadow: 0 12px 40px rgba(0,0,0,0.16); }
.suplink { border: 0; background: var(--surface-2); border-radius: 999px; color: var(--fg); }
.tag, .pill { border-radius: 999px; }
.protag { border: 0; background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 2px 8px; }
.mini { border: 0; background: var(--surface-2); border-radius: 999px; }
.lockrow .badge, .tile .badge { background: var(--accent); }
.brand { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.proto { border: 0; background: var(--surface-2); border-radius: 999px; padding: 2px 8px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11px; }
.page { padding-block: 24px 48px; gap: 24px; }
.panel { border: 0; border-radius: var(--r); padding: 22px; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.eyebrow, .lab, .metric .k, .field > label, .lh > label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.eyebrow { color: var(--accent-text); }
.field > label { font-size: 13px; }
input[type="number"], input[type="text"], input[type="password"], input[type="email"], input[type="tel"], select, .askrow input[type="text"] {
  background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; font-family: var(--font-body); font-variant-numeric: tabular-nums;
}
input[type="number"], select { height: 46px; padding: 0 12px; }
.askrow input[type="text"] { height: 52px; border-radius: 14px; padding: 0 16px; }
.go { height: 50px; border-radius: 999px; padding: 0 24px; background: var(--ink); color: var(--ink-fg); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; border: 0; }
.toggle { border: 0; background: var(--surface-2); color: var(--fg); border-radius: 999px; padding: 10px 16px; font-weight: 500; }
.toggle.danger { color: var(--bad); }
.metric { border: 0; border-radius: 14px; background: var(--surface-2); padding: 14px; }
.metric .v { font-family: var(--font-body); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.badge { border-radius: 999px; padding: 2px 8px; letter-spacing: 0.04em; font-family: var(--font-body); font-weight: 600; font-size: 10.5px; }
.tabs { border-bottom: 0; gap: 4px; margin-top: 8px; }
.tab { font-family: var(--font-body); font-weight: 500; font-size: 15px; padding: 9px 16px; border: 0; border-radius: 999px; flex: 0 0 auto; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--ink-fg); border: 0; }
.tab[aria-selected="true"] .badge { background: var(--accent); color: var(--accent-fg); }
.catbtn { border: 0; border-radius: var(--r); padding: 18px; gap: 4px; }
.catbtn .t { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.catbtn[aria-pressed="true"] { background: var(--ink); color: var(--ink-fg); }
.catbtn[aria-pressed="true"] .n, .catbtn[aria-pressed="true"] .n2 { color: inherit; opacity: 0.7; }
.cl { border: 0; background: var(--surface); border-radius: 999px; padding: 9px 15px; font-family: var(--font-body); font-weight: 500; }
.cl:hover { background: var(--ink); color: var(--ink-fg); }
.cab, details.cab { border: 0 !important; border-radius: var(--r) !important; background: var(--surface); }
.lockrow { border: 0 !important; border-radius: var(--r) !important; background: var(--surface); }
.gate, .probanner { border: 0; border-radius: var(--r); background: var(--surface); }
.probanner { padding: 14px 18px; }
.gate { padding: 22px; }
.tile, .hmore, .plan { border: 0; border-radius: var(--r); }
.tile { padding: 20px 16px; min-height: 128px; display: flex; flex-direction: column; justify-content: flex-start; }
.tile svg { color: var(--ink); width: 28px; height: 28px; margin-bottom: 14px; }
.tile b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.hero { background: transparent; color: var(--fg); padding: 28px 4px 24px; margin: 0; border-radius: 0; }
.hero h1 { font-family: var(--font-display); font-size: 34px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.hero .go { background: var(--ink); color: var(--ink-fg); }
.hero .alt { color: var(--accent-text); border: 0; background: none; padding: 0; font-weight: 600; height: 32px; }
.hero .who { font-size: 13px; margin: 20px 0 0; color: var(--muted); }
.hero h1 span { display: block; }
.hero .hero-from { margin: -4px 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.chip { background: var(--ink); color: var(--ink-fg); border-radius: 999px; padding: 6px 12px; font-family: var(--font-body); font-weight: 600; }
.chip.idle { background: var(--surface-2); color: var(--muted); border: 0; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.hero h1 { font-size: 32px; }
.plan.pro { background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); }
.plan { background: var(--surface); }
.hmore summary { padding: 16px 18px; }
.tbl th { text-transform: none; letter-spacing: 0; }

.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 3px; }
.segb { flex: 1; border: 0; background: none; font: inherit; font-weight: 500; padding: 10px 8px; border-radius: 9px; color: var(--muted); cursor: pointer; }
.segb[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.qres { margin-top: 22px; padding: 20px; border-radius: var(--r); background: var(--surface-2); }
/* Enhetligt resultatkort: mindre text, värden i mörkgrönt */
.rcard { display: flex; flex-direction: column; margin-top: 4px; }
.rrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rrow span:not(.ny):not(.testa) { color: var(--muted); min-width: 0; }
.rrow span small { display: block; font-size: 12px; margin-top: 1px; }
.rrow b { color: var(--ink, var(--fg)); font-weight: 700; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qv.qv2 { font-size: 22px; }
.why2 { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.fuse-wide { display: flex; width: 100%; box-sizing: border-box; margin: 14px 0 6px; }
details.calcd { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
details.calcd > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink, var(--fg)); padding: 4px 0; }
details.calcd .metrics { margin-top: 10px; }
details.calcd .metric .v { font-size: 17px; }
 select, input[type="text"], input[type="number"] { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
select { padding-right: 32px; }
.fi.fi-gg { margin-left: 8px; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.qv .fi.fi-gg { vertical-align: 6px; }
.fuse .fi.fi-gg { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.5); }
.cabshort { margin: -2px 0 10px; font-size: 13.5px; color: var(--muted); max-width: 46ch; }
body .qres .qline { font-size: 14px; padding: 9px 0; } body .qres .qline b { color: var(--ink, var(--fg)); font-size: 15px; }
.qk { font-size: 13px; color: var(--muted); font-weight: 500; }
.qv { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 4px 0 14px; }
.qv small { font-size: 16px; font-weight: 500; color: var(--muted); }
.qline { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.qline span { color: var(--muted); }

/* ===== Signalorange och svart ===== */
:root { --accent: #FF6A13; --accent-text: #C2410C; --accent-fg: #160800; --accent-soft: #FFEDE0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent: #FF7A29; --accent-text: #FF9A55; --accent-fg: #160800; --accent-soft: #3A2312; } }
:root[data-theme="dark"] { --accent: #FF7A29; --accent-text: #FF9A55; --accent-fg: #160800; --accent-soft: #3A2312; }
.go, .hero .go { background: var(--accent); color: var(--accent-fg); }
.badge, .protag { background: var(--accent); color: var(--accent-fg); }
.lockrow .badge, .tile .badge { background: var(--accent); color: var(--accent-fg); }
.tab[aria-selected="true"] .badge { background: var(--accent); color: var(--accent-fg); }
.tile svg { color: var(--accent-text); }
.hero .alt { color: var(--accent-text); }
.eyebrow { color: var(--accent-text); }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-fg); display: inline-grid; place-items: center; flex: none; align-self: center; }
.mark svg { width: 100%; height: 100%; display: block; }
.mark { width: 34px !important; height: 34px !important; border-radius: 9px !important; overflow: hidden; background: none !important; }
.brand { align-items: center; gap: 10px; }
.alts { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.alts h3 { font-size: 15px; margin: 14px 0 8px; }
.altwhy { margin: 0; font-size: 14px; color: var(--muted); }
.alt { margin: 10px 0; }
.alts .cl { background: var(--surface-2); }
.feedalts .feedopt { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.fo-h { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fo-c { font-size: 20px; font-weight: 700; margin: 4px 0 2px; }
.fo-c small { font-size: 13px; font-weight: 500; color: var(--muted); }
.fo-m { font-size: 14px; color: var(--ink); }
.fo-warn { color: var(--muted); font-size: 13px; margin-top: 2px; }
.fo-dev { line-height: 1.7; color: var(--ink) !important; margin-top: 6px !important; }
.why2.marg { margin-top: 10px; }
.evcards { margin: 0 0 16px; }
.evcards .fdc span + span { margin-top: 4px; }
.typv { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); } /* typvärde, ägarbeslut 2026-11-26 */
.basis { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.basis b { color: var(--ink); }
.ftbl th, .ftbl td { white-space: nowrap; padding: 7px 5px; font-size: 13.5px; }
.ftbl thead th { white-space: normal; font-size: 11px; vertical-align: bottom; line-height: 1.25; }
.ftbl small { font-size: 10px; color: var(--muted); }
.ftbl td b { font-family: var(--font-data); }
.ftbl tr.on th, .ftbl tr.on td { background: var(--accent-soft); }
.fdpk { font: inherit; font-weight: 700; color: var(--accent-text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.alt p { margin: 6px 2px 0; font-size: 14px; color: var(--muted); }
.fuse { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 8px 0 2px; padding: 8px 14px; border-radius: 12px; background: var(--ink); color: var(--ink-fg); }
.fuse .fk { font-size: 12px; opacity: 0.7; font-weight: 500; }
.fuse .fv { white-space: nowrap; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.qv { font-size: 30px; }

.barr { display: flex; align-items: center; gap: 4px; min-width: 0; }
.barr .chip { font-size: 12px; padding: 5px 10px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.brand { white-space: nowrap; flex: none; }
.menubtn { width: 44px; height: 44px; max-width: none; padding: 0; justify-content: center; border: 0; background: none; border-radius: 999px; }
.menubtn:hover, .menubtn[aria-expanded="true"] { background: var(--surface-2); }
.menulist { left: auto; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(100% + 4px); width: min(340px, calc(100vw - 32px)); }
.bar-in { padding-block: 6px; }
.pagehead { padding: 8px 4px 0; }
.pagehead h1 { font-size: 30px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; margin: 0; }
.pagehead p { margin: 6px 0 0; font-size: 17px; color: var(--muted); }
.pagehead[hidden] { display: none; }
.tile small { font-size: 13px; }
.bxg { margin-top: 18px; padding: 18px; border-radius: var(--r); background: var(--surface); }
.bxh { display: flex; align-items: center; justify-content: space-between; }
.bxg h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -0.01em; }
.bxl { list-style: none; margin: 0 0 10px; padding: 0; }
.bxl li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.bxl li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bxadd { display: grid; grid-template-columns: 1fr 76px 74px auto; gap: 8px; align-items: center; }
.bxadd input, .bxadd select { height: 42px; min-width: 0; }
.bxadd .toggle { margin: 0; height: 42px; padding: 0 14px; }
.bxnew .bxadd { grid-template-columns: 1fr auto; }
@media (max-width: 460px) { .bxadd { grid-template-columns: 1fr 1fr; } .bxadd input:first-child { grid-column: 1 / -1; } .bxadd .toggle { grid-column: 1 / -1; } .bxnew .bxadd { grid-template-columns: 1fr; } }
.bxd summary { cursor: pointer; font-weight: 600; color: var(--accent-text); padding: 6px 0; list-style: none; }
.bxd summary::-webkit-details-marker { display: none; }
.bxd summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.bxd[open] summary::before { content: '–'; }
.bxd .bxadd { margin-top: 8px; }


.fhist { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.fh-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fh-x { font: inherit; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--accent-text); background: none; border: 0; padding: 6px 0; cursor: pointer; }
.fh-i { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--fg); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; cursor: pointer; }
.fh-i:last-child { border-bottom: 0; }
.fh-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-r { flex: 0 0 auto; color: var(--muted); font-size: 14px; }
/* ritning */
.dr-view { position: relative; overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.dr-view canvas { display: block; }
.dr-view svg { position: absolute; left: 0; top: 0; }
.dr-view svg circle { cursor: pointer; }
.dr-view.box svg { cursor: crosshair; touch-action: none; }
.dr-h { font-family: var(--font-display); font-size: 18px; margin: 22px 0 8px; }
.dr-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.dr-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.dr-main input { width: 100%; height: 40px; font: inherit; font-size: 16px; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
.dr-cnt { text-align: right; } .dr-cnt b { font-size: 22px; font-family: var(--font-display); margin-right: 3px; } .dr-cnt span { color: var(--muted); font-size: 13px; }
.dr-row select { grid-column: 2; height: 40px; font: inherit; font-size: 15px; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; min-width: 0; }
.dr-on { grid-column: 3; font-size: 14px; display: flex; gap: 6px; align-items: center; }

/* ===== Verktygstema: mörkt som ett mätinstrument, signalorange som bärande färg ===== */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  --bg: #0A0A0B; --surface: #141416; --surface-2: #1E1E21; --fg: #F4F4F5; --muted: #9B9BA3; --line: #2B2B30;
  --accent: #FF6A13; --accent-text: #FF8A3D; --accent-fg: #140700; --accent-soft: #2E1708;
  --ink: #FF6A13; --ink-fg: #140700;
  --ok: #4ADE80; --ok-soft: #0F2A19; --bad: #F87171; --bad-soft: #3A1414; --warn: #FBBF24; --warn-soft: #33260A;
  --sheath: #4A4A52; --core-ring: rgba(255,255,255,0.5);
  --font-display: "Barlow Semi Condensed", "Arial Narrow", -apple-system, system-ui, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0A0A0B; --surface: #141416; --surface-2: #1E1E21; --fg: #F4F4F5; --muted: #9B9BA3; --line: #2B2B30;
  --accent: #FF6A13; --accent-text: #FF8A3D; --accent-fg: #140700; --accent-soft: #2E1708; --ink: #FF6A13; --ink-fg: #140700;
  --ok: #4ADE80; --ok-soft: #0F2A19; --bad: #F87171; --bad-soft: #3A1414; --warn: #FBBF24; --warn-soft: #33260A;
} }
body { background-color: var(--bg); background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px); background-size: 22px 22px; }
.bar, body::before { background: #000; }
.bar { border-bottom: 1px solid var(--line); }
.brand { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 16px; }
.mark { border-radius: 6px; }
.panel, .cab, details.cab, .lockrow, .gate, .probanner, .tile, .hmore, .plan, .catbtn, .bxg { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pagehead h1, .hero h1, h2, .catbtn .t, .tile b { font-family: var(--font-display); }
.pagehead h1 { font-size: 34px; text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700; }
.pagehead::after { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); margin-top: 12px; border-radius: 2px; }
.hero h1 { font-size: clamp(28px, 8.4vw, 44px); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.0; overflow-wrap: anywhere; }
.hero h1 span:last-child { color: var(--accent); }
.readout { margin: 4px 0 24px; padding: 18px 18px 16px; border-radius: 14px; background: #000; box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.readout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.readout .rk { font-family: var(--font-data); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.readout .rv { font-family: var(--font-data); font-size: 46px; font-weight: 500; color: var(--accent); line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.readout .rs { font-family: var(--font-data); font-size: 15px; color: var(--fg); margin-top: 4px; }
.readout .rbar { display: flex; gap: 3px; margin-top: 14px; }
.readout .rbar i { flex: 1; height: 6px; border-radius: 2px; background: var(--surface-2); }
.readout .rbar i.on { background: var(--accent); }
.tile { transition: box-shadow .15s; }
.tile:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.tile svg { color: var(--accent); }
.tile b { font-size: 18px; text-transform: uppercase; letter-spacing: 0.03em; }
.res-name, .qv, .metric .v, .fuse .fv, .chip, .dr-cnt b, .fh-r { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.res-name { color: var(--fg); }
.qv { color: var(--accent); font-weight: 500; }
.fuse { background: var(--accent); color: var(--accent-fg); border-radius: 10px; }
.fuse .fk { opacity: 0.75; font-family: var(--font-data); text-transform: uppercase; letter-spacing: 0.1em; font-size: 10.5px; }
.panel.result { box-shadow: inset 0 0 0 1px var(--line), inset 4px 0 0 var(--accent); }
.qres { background: #000; box-shadow: inset 0 0 0 1px var(--line), inset 4px 0 0 var(--accent); }
.eyebrow, .qk, .metric .k { font-family: var(--font-data); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }
.chip { background: var(--accent); color: var(--accent-fg); }
.chip.idle { background: var(--surface-2); color: var(--muted); }
.tab { color: var(--muted); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); }
.segb[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); box-shadow: none; }
.toggle { background: var(--surface-2); color: var(--fg); }
.cl { background: var(--surface-2); }
.cl:hover { background: var(--accent); color: var(--accent-fg); }
input[type="number"], input[type="text"], input[type="password"], input[type="email"], input[type="tel"], select, .askrow input[type="text"] { background: #0E0E10; border: 1px solid var(--line); color: var(--fg); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); }
.menulist { background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0,0,0,0.6); }
.badge, .protag { background: var(--accent); color: var(--accent-fg); }
.sauna { margin-top: 20px; padding: 16px; border-radius: 14px; background: #000; box-shadow: inset 0 0 0 1px var(--line), inset 4px 0 0 var(--accent); }
.sauna h3 { margin: 0 0 10px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 17px; }
.sstep { display: flex; gap: 12px; margin: 12px 0; }
.sstep .sn { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-family: var(--font-data); font-weight: 600; display: grid; place-items: center; font-size: 14px; }
.sstep b { display: block; }
.sstep p { margin: 4px 0 8px; color: var(--muted); font-size: 14px; }
.backbtn { width: 40px; height: 40px; margin-left: -8px; margin-right: 2px; border: 0; border-radius: 999px; background: none; color: var(--fg); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.backbtn:hover, .backbtn:focus-visible { background: var(--surface-2); color: var(--accent); }
.backbtn[hidden] { display: none; }

.sug { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 12px; }
.sug .lab { width: 100%; font-family: var(--font-data); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--muted); }
.sugc { font: inherit; font-family: var(--font-data); font-size: 14px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); cursor: pointer; }
.sugc.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.hsearch { display: flex; gap: 8px; margin: 20px 0 22px; }
.hsearch input { flex: 1; min-width: 0; height: 52px; border-radius: 14px; padding: 0 16px; font-size: 16px; }
.hsearch .go { height: 52px; flex: none; }
.gs { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.92); backdrop-filter: blur(6px); overflow-y: auto; }
.gs[hidden] { display: none; }
.gs-in { padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 40px; max-width: 760px; margin: 0 auto; }
.gs-top { display: flex; gap: 8px; align-items: center; }
.gs-top input { flex: 1; min-width: 0; height: 52px; border-radius: 14px; padding: 0 16px; font-size: 17px; }
.gs-top .toggle { margin: 0; }
#gsRes { margin-top: 16px; }
#gsRes .hint { margin: 8px 4px; font-size: 14px; }
.gs-g { margin-bottom: 18px; }
.gs-h { font-family: var(--font-data); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--muted); margin: 0 4px 6px; }
.gs-i { display: block; width: 100%; text-align: left; font: inherit; color: var(--fg); background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 6px; cursor: pointer; }
.gs-i:hover, .gs-i:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); }
.gs-i b { display: block; font-weight: 600; }
.gs-i span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.gs-i.more b { color: var(--accent-text); }
.vars { margin: 12px 0 4px; }
.vars-h { font-family: var(--font-data); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.vars-h span { text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.vars-c { display: flex; flex-wrap: wrap; gap: 6px; }
.varc { font: inherit; font-family: var(--font-data); font-size: 13.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); cursor: pointer; }
.varc[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.vard { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #000; box-shadow: inset 0 0 0 1px var(--line); }
.vard .facts { margin: 0; }

/* ===== Signalgrön och ljusgrå (samma färger som Projekthjärnan) ===== */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  --bg: #EEF0EF; --surface: #FFFFFF; --surface-2: #F4F6F5; --fg: #16201B; --muted: #4A5650; --line: #DDE2DF;
  --accent: #1B6B44; --accent-text: #1B6B44; --accent-fg: #FFFFFF; --accent-soft: #DDEBE3;
  --ink: #1B6B44; --ink-fg: #FFFFFF;
  --ok: #1B6B44; --ok-soft: #DDEBE3; --bad: #B3261E; --bad-soft: #FBE3E1; --warn: #6B4F00; --warn-soft: #FFF4D6;
  --sheath: #4A5650; --core-ring: rgba(255,255,255,0.55);
  --font-display: "Manrope", -apple-system, system-ui, sans-serif;
  --font-body: "Manrope", -apple-system, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #EEF0EF; --surface: #FFFFFF; --surface-2: #F4F6F5; --fg: #16201B; --muted: #4A5650; --line: #DDE2DF;
  --accent: #1B6B44; --accent-text: #1B6B44; --accent-fg: #FFFFFF; --accent-soft: #DDEBE3; --ink: #1B6B44; --ink-fg: #FFFFFF;
  --ok: #1B6B44; --ok-soft: #DDEBE3; --bad: #B3261E; --bad-soft: #FBE3E1; --warn: #6B4F00; --warn-soft: #FFF4D6;
  color-scheme: light;
} }
body { background-image: none; background-color: var(--bg); }
.bar, body::before { background: #FFFFFF; }
.panel, .cab, details.cab, .lockrow, .gate, .probanner, .tile, .hmore, .plan, .catbtn, .bxg { box-shadow: none; }
.panel.result { box-shadow: inset 4px 0 0 var(--accent); }
.brand { text-transform: none; letter-spacing: -0.01em; font-weight: 800; font-size: 17px; }
.pagehead h1, .hero h1, .tile b { text-transform: none; letter-spacing: -0.025em; font-weight: 800; }
.pagehead h1 { font-size: 30px; }
.hero h1 { font-size: clamp(30px, 8.4vw, 44px); line-height: 1.05; }
.tile b { font-size: 16px; }
.tile:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.readout { background: var(--accent); box-shadow: none; color: #FFFFFF; border-radius: 20px; }
.readout::before { display: none; }
.readout .rk { color: rgba(255,255,255,0.85); }
.readout .rv, .readout .rs { color: #FFFFFF; }
.readout .rbar i { background: rgba(255,255,255,0.25); }
.readout .rbar i.on { background: #FFFFFF; }
.qres, .sauna, .vard { background: var(--surface-2); }
.qres, .sauna { box-shadow: inset 4px 0 0 var(--accent); }
input[type="number"], input[type="text"], input[type="password"], input[type="email"], input[type="tel"], select, .askrow input[type="text"] { background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); }
.menulist { box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(22,32,27,0.14); }
.gs { background: rgba(238,240,239,0.97); }
.chip.idle, .toggle, .cl, .sugc, .varc { color: var(--fg); }
.fdh { font-size: 14px; margin: 18px 0 6px; color: var(--muted); font-weight: 600; }
.fdc { display: block; width: 100%; text-align: left; font: inherit; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-bottom: 6px; cursor: pointer; }
.fdc b { display: block; font-family: var(--font-data); font-size: 16px; }
.fdc span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.fdc.on { border-color: var(--accent); background: var(--accent-soft); }
.fdc.on b::after { content: ' ✓'; color: var(--accent-text); }
.fdmore summary { cursor: pointer; font-weight: 600; color: var(--accent-text); }
.tabs.subrow { margin-top: 6px; gap: 2px; }
.tabs.subrow .tab { font-size: 14px; padding: 6px 12px; background: none; }
.tabs.subrow .tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-text); }
.barr .chip.idle { display: none !important; }
.hgh { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--muted); margin: 26px 4px 10px; }
.home .tiles { grid-template-columns: 1fr; gap: 8px; }
.home .tile { min-height: 0; display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; row-gap: 1px; align-items: center; padding: 13px 16px; }
.home .tile svg { grid-row: 1 / span 2; margin: 0; width: 24px; height: 24px; }
.home .tile b, .home .tile small { grid-column: 2; margin: 0; padding-right: 44px; }
.home .tile .badge { top: 50%; transform: translateY(-50%); right: 14px; }
.tile small { line-height: 1.35; }

.beta { display: inline-block; font-family: var(--font-body); font-weight: 800; font-size: 11px; letter-spacing: 0.08em; line-height: 1; padding: 4px 8px 4px; border-radius: 999px; background: #FFD23F; color: #3A2C00; vertical-align: middle; text-transform: uppercase; }
.bar .brand .beta { font-size: 10.5px; align-self: center; }
@media (max-width: 460px) { .bar .brand .beta { display: inline-block; } }
.hero .betanote, .betanote { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); max-width: 52ch; }
.betanote .beta { font-size: 9.5px; padding: 3px 7px; vertical-align: 1px; }
.betanote .beta { margin-right: 6px; }
.betanote.xbeta { margin: 0 0 12px; max-width: none; } /* beta-ruta i verktygen (2026-11-26) */
.hero .propitch, .propitch { margin: 12px 0 0; font-size: 14px; color: var(--muted); max-width: 52ch; }
.propitch .badge { margin-right: 6px; vertical-align: 1px; }
.propitch .alt { height: auto !important; }
.tile .beta.tb { font-size: 9px; padding: 3px 6px; margin-left: 8px; vertical-align: 3px; letter-spacing: 0.06em; }
.pagehead h1 .beta { font-size: 11px; margin-left: 10px; vertical-align: 6px; }
.betanote a, .hnote a { color: var(--accent-text); font-weight: 600; }
.fbk-foot { max-width: 1100px; margin: 0 auto; padding-bottom: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.fbk-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; color: var(--accent-text); background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 11px 18px; cursor: pointer; }
.fbk-v[data-ab="ver"] { cursor: default; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.fbk-btn:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.fbk-v { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.fbk-ta { width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.mver { font-size: 12px; color: var(--muted); padding: 6px 10px 8px 22px; }
.hero .acctnote, .acctnote { margin: 12px 0 0; font-size: 14px; color: var(--muted); max-width: 52ch; }
.acctnote svg { color: var(--accent-text); vertical-align: -3px; margin-right: 4px; }
.acctnote .fh-x, .propitch .alt { display: inline; padding: 0; font-size: inherit; height: auto !important; }
.tile.locked::after { content: ""; position: absolute; left: 34px; top: 50%; margin-top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B6B44' stroke-width='3' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/10px no-repeat; }
.modal { position: fixed; inset: 0; z-index: 1100; background: rgba(10, 20, 15, 0.45); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: mfade .15s ease-out; }
.modal[hidden] { display: none !important; }
.modal-card { position: relative; width: 100%; max-width: 400px; background: var(--surface); border-radius: 20px; padding: 26px 22px 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center; animation: mpop .18s ease-out; }
.modal-card h2 { margin: 10px 0 8px; font-size: 22px; }
.modal-card p { margin: 0 0 10px; }
.modal-ico { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.modal-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-btns { display: grid; gap: 8px; margin: 16px 0 10px; }
.modal-btns .go, .modal-btns .toggle { width: 100%; margin: 0; }
@keyframes mfade { from { opacity: 0; } } @keyframes mpop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
/* mörkgrön text i stället för svart */
:root, :root[data-theme="light"], :root[data-theme="dark"] { --fg: #143A29; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fg: #143A29; } }
.soon { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: 0.04em; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); margin-left: 8px; vertical-align: 2px; white-space: nowrap; text-transform: uppercase; }
.tile.is-soon { opacity: 0.75; }
.is-soon .beta { display: none; }
.tile.is-soon.locked::after { display: none; }
.soonbox { background: var(--surface); border-radius: var(--r, 18px); padding: 28px 22px; text-align: center; box-shadow: inset 0 0 0 1px var(--line); max-width: 560px; margin: 8px auto 0; }
.soonbox .soon { margin: 10px 0 0; }
.soonbox h2 { margin: 10px 0 6px; font-size: 22px; }
.soonbox p { margin: 0 auto 10px; max-width: 44ch; }
.soon-ico { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
#addPanel { display: none !important; }
.terms-card { max-width: 440px; text-align: left; padding: 22px 20px 18px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.terms-card h2 { margin: 0 0 10px; font-size: 20px; }
.terms-txt p { font-size: 13.5px; line-height: 1.45; margin: 0 0 8px; color: var(--fg); }
.terms-chk { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.4; }
.terms-chk input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--accent); }
.terms-card .go:disabled { opacity: 0.4; cursor: not-allowed; }
#privDlg { z-index: 80; }
.betanote .fh-x, .hnote .fh-x, .terms-txt .fh-x, #privDlg .fh-x { display: inline; padding: 0; font-size: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.devtag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #1D2A24; color: #fff; }
.mver { cursor: default; user-select: none; -webkit-user-select: none; }
/* nya verktyg */
.xtool .fgrid { margin-top: 4px; }
.xout { margin-top: 16px; }
.xout .metrics { margin-top: 0; }
.xh { font-size: 15px; margin: 18px 0 8px; }
.xv { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.xv.ok { background: var(--ok-soft); color: var(--ok); } .xv.bad { background: var(--bad-soft); color: var(--bad); } .xv.unk { background: var(--warn-soft); color: var(--warn); }
.xnote { margin-top: 12px !important; }
.xload { display: grid; gap: 6px; }
.xlh, .xlr { display: grid; grid-template-columns: minmax(0, 1fr) 76px 92px; gap: 8px; align-items: center; }
.xlh span { font-size: 12px; color: var(--muted); font-weight: 600; }
.xlr span { font-size: 14px; }
.xlr input { height: 40px !important; width: 100%; min-width: 0; padding: 0 8px !important; }
.xtbl { overflow-x: auto; }
.xtbl.ipt .tbl td, .xtbl.ipt .tbl th { white-space: normal; } /* IP-tabellen radbryts i stället för att klippas (2026-11-22) */
.xtbl td:first-child, .xtbl th:first-child { white-space: normal; font-family: var(--font-body); }
.xtbl td, .xtbl th { padding: 8px 8px; }
.xlist { display: grid; gap: 6px; margin-top: 12px; }
.xli { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; text-align: left; font: inherit; color: var(--fg); background: var(--surface-2); border: 0; border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.xphotos { display: flex; flex-wrap: wrap; gap: 8px; }
.xph { position: relative; } .xph img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; display: block; }
.xph button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; cursor: pointer; }
.xaddph { width: 84px; height: 84px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-text); font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.xsign { width: 100%; height: 140px; background: var(--surface-2); border-radius: 12px; touch-action: none; box-shadow: inset 0 0 0 1px var(--line); }
.xgrp { display: grid; gap: 6px; margin-top: 14px; overflow-x: auto; }
.xgh, .xgr { display: grid; grid-template-columns: 44px minmax(120px, 1.6fr) 74px minmax(100px, 1fr) 64px 36px; gap: 6px; align-items: center; }
@media (max-width: 620px) {
  .xgh { display: none; }
  .xgr { grid-template-columns: 52px 1fr 1fr 36px; grid-template-areas: "nr text text x" "dev cable rcd rcd"; padding: 10px; border-radius: 12px; background: var(--surface-2); }
  .xgr input:nth-child(1) { grid-area: nr; } .xgr input:nth-child(2) { grid-area: text; } .xgr input:nth-child(3) { grid-area: dev; } .xgr input:nth-child(4) { grid-area: cable; } .xgr input:nth-child(5) { grid-area: rcd; } .xgr .mini { grid-area: x; }
  .xgr input { background: var(--surface) !important; }
}
.xout .fuse { max-width: 100%; } .xout .fuse .fv { white-space: normal; font-size: 18px; }
.xgh span { font-size: 12px; color: var(--muted); font-weight: 600; }
.xgr input { height: 38px !important; width: 100%; min-width: 0; padding: 0 8px !important; font-size: 14px !important; }
.xseg { display: grid; gap: 10px; margin-top: 12px; }
.xsr { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.xsr label { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); gap: 3px; }
.xsr label { flex: 0 0 auto; }
.xsr input, .xsr select { height: 38px !important; width: 68px !important; padding: 0 6px !important; font-size: 14px !important; background: var(--surface) !important; }
.xsr .xsn { width: 100% !important; }
.xsr .mini { align-self: end; }
.xsr .xsn { width: 100%; flex-basis: 100%; }
.xcols { display: grid; gap: 10px; }
.xcol { display: flex; gap: 12px; align-items: center; }
.xsw { width: 54px; height: 20px; border-radius: 10px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.xsyms { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.xsym { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 12px; background: var(--surface-2); font-size: 14px; text-align: center; color: var(--fg); }
.hgh-soon { opacity: 0.7; }
.hgh .soon { font-size: 9.5px; vertical-align: 3px; }
.mgrp-soon .mh { opacity: 0.7; }
.mh .soon { font-size: 9px; padding: 3px 7px; margin-left: 8px; letter-spacing: 0.04em; }
.soonlist .soonrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; margin-bottom: 8px; border-radius: var(--r, 18px); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-weight: 600; }
.soonlist .soonrow .soon { margin: 0; }
.fb-card { text-align: left; max-width: 420px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.fb-card h2 { margin: 0 0 6px; font-size: 22px; }
.fb-card .modal-ico { margin: 0 0 10px; }
.fbform { display: grid; gap: 12px; margin-top: 14px; }
.fbform .field .hint { margin-top: 4px; }
.fbmsg { margin: 12px 0 0; }
.fbswitch { margin: 6px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.fbswitch .fh-x, .fbnew .fh-x { display: inline; padding: 0; font-size: inherit; }
.fbnew { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.fbnew .toggle { margin: 0; }
.xmore { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.xmore summary { cursor: pointer; font-weight: 600; color: var(--accent-text); padding: 4px 0; }
.evres { background: var(--surface); border-radius: var(--r, 18px); box-shadow: inset 0 0 0 2px var(--accent); padding: 16px 18px; }
.evh { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.evrow { display: grid; grid-template-columns: 112px 1fr; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.evh + .evrow { border-top: 0; }
.fstack { display: grid; gap: 14px; }
.evrow span { color: var(--muted); font-size: 14px; } .evrow b { font-size: 17px; } .evrow small { grid-column: 2; color: var(--muted); font-size: 13px; }
.xlr span small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.xchk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg); cursor: pointer; }
.xchk input { width: 18px; height: 18px; accent-color: var(--accent); }
.xul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.selbox { margin-top: 16px; padding: 16px 18px; border-radius: var(--r, 18px); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.selh { font-weight: 700; margin-bottom: 6px; }
.selbox p { margin: 0 0 8px; font-size: 14px; }
.readout .rbl span { white-space: nowrap; }
.readout .rbl2 span:first-child { white-space: normal; }
.readout .rbl { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-family: var(--font-data); font-size: 11.5px; letter-spacing: .04em; color: rgba(255,255,255,0.85); }
.readout .rbl2 { margin-top: 4px; color: rgba(255,255,255,0.85); }
.readout { cursor: pointer; user-select: none; -webkit-user-select: none; }
.ro-in { transition: opacity .25s; } .ro-in.ro-fade { opacity: 0; }
.readout .rv small { font-size: 18px; opacity: .7; }
select { text-overflow: ellipsis; padding-right: 30px !important; }
.gsc { background: var(--surface); border-radius: var(--r, 18px); box-shadow: inset 0 0 0 1px var(--line); padding: 16px 18px; margin-bottom: 12px; }
.gsc-main { box-shadow: inset 0 0 0 2px var(--accent); }
.gsc-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.gsc-v { font-family: var(--font-data); font-size: 26px; font-weight: 600; margin: 2px 0 8px; overflow-wrap: anywhere; }
.gsc-v small { font-size: 15px; color: var(--muted); }
.gsc-t { font-size: 20px; font-weight: 700; } .gsc-t small { font-size: 13px; color: var(--muted); font-weight: 500; }
.gsc-p { margin: 6px 0 8px; font-size: 15px; }
.gsc-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.gsc-row span { color: var(--muted); } .gsc-row b { text-align: right; }
.gsc-more { display: inline-block; margin-top: 8px; font-weight: 600; }
.gsps { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.gsp { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; } .gsp.ok { background: var(--ok-soft); color: var(--ok); } .gsp.no { background: var(--bad-soft); color: var(--bad); }
.gsl { display: block; width: 100%; text-align: left; font: inherit; color: var(--fg); background: none; border: 0; border-top: 1px solid var(--line); padding: 10px 0; cursor: pointer; }
.gsl b { display: block; } .gsl span { display: block; font-size: 13px; color: var(--muted); }
.hero .shint, .shint { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); max-width: 52ch; }
.shint b { color: var(--fg); font-weight: 600; white-space: nowrap; }
.resbar { position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; font: inherit; color: #fff; background: var(--accent); border: 0; border-radius: 16px; padding: 12px 14px; box-shadow: 0 10px 28px rgba(0,0,0,0.28); cursor: pointer; animation: rbIn .2s ease-out; }
.resbar[hidden] { display: none !important; }
.resbar .rb-t { min-width: 0; } .resbar b { display: block; font-family: var(--font-data); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resbar small { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.resbar .rb-v { flex: none; background: rgba(255,255,255,0.18); padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
@keyframes rbIn { from { transform: translateY(12px); opacity: 0; } }
@media (max-width: 879px) { #barChip { display: none !important; } }
/* tydligare rubrik */
.bar .brand { font-family: var(--font-display); font-size: 25px; font-weight: 800; letter-spacing: -0.015em; text-transform: none; color: var(--accent-text); gap: 12px; }
@media (max-width: 380px) { .bar .brand { font-size: 22px; } }
/* Namnet Kabelkollen är längre än Ellådan: mindre text i smala sidhuvuden så att knapparna får plats (2026-11-24) */
@media (max-width: 430px) { .bar .brand { font-size: 21px; } }
@media (max-width: 380px) { .bar .brand { font-size: 19px; } }

/* ===== Enhetlig typografi: ett typsnitt, tre textfärger ===== */
/* Grön = svaret (kabel, säkring, valt alternativ). Mörk = värden och rubriker. Grå = etiketter och förklaringar. */
:root, :root[data-theme="dark"], :root[data-theme="light"] { --font-data: "Manrope", -apple-system, system-ui, sans-serif; --muted: #5B6862; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --font-data: "Manrope", -apple-system, system-ui, sans-serif; --muted: #5B6862; } }
.res-name, .qv { color: var(--accent); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.res-name small, .qv small { color: var(--muted); font-weight: 600; letter-spacing: 0; }
.eyebrow, .qk, .metric .k, .fuse .fk, .vars-h, .readout .rk { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.08em; font-size: 11.5px; opacity: 1; }
.eyebrow, .qk, .metric .k, .vars-h { color: var(--muted); }
.fuse .fv { color: var(--accent-fg); font-weight: 800; } .fuse .fk { color: rgba(255,255,255,0.93); } /* minst 4,5:1 mot grönt (WCAG AA) */
.metric .v, .qrow b, .facts dd, .facts b, table td b { color: var(--fg); font-weight: 700; }
.metric .v small { color: var(--muted); }
.qline span { color: var(--muted); } .qline b { color: var(--fg); font-weight: 700; }
.alts h3, .fdh, .hgh { color: var(--fg); font-weight: 700; }
.alt p, .res-sub, .hint, .cdesc, .desc, .facts dt { color: var(--muted); }
.alt p b, .alt p strong, .desc b, .cdesc b { color: var(--fg); }
.sugc, .varc, .chip, .cl, .fdc b { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.chip.idle, .toggle, .cl, .sugc, .varc { color: var(--fg); }
.gs-big { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 2px; padding: 12px 14px; background: var(--accent-soft); border-radius: 12px; }
.gs-big span { font-size: 13px; font-weight: 700; color: var(--muted); } .gs-big b { font-size: 24px; font-weight: 800; color: var(--accent-text, var(--accent)); }
.gs-per { margin: 2px 0 8px; } .gs-src { margin: 10px 0 0; font-size: 12px; } .gs-src a { color: var(--accent-text, var(--accent)); }
.gs-acts { margin-top: 10px; gap: 8px; align-items: center; }
.gs-yes, .gs-no, .gs-maybe { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; line-height: 1.45; }
.gs-yes a, .gs-no a, .gs-maybe a, .gs-topic a { color: inherit; font-weight: 600; text-decoration: underline; }
.gs-yes { background: #E3F2E9; } .gs-no { background: #FBE6E4; } .gs-maybe { background: #FFF4D6; }
.gs-topic .gsc-p { margin: 8px 0 0; }
.cmpw { margin-top: 8px; } .cmpt.cmp3 th:first-child { width: 26%; font-size: 11.5px; } .cmpt.cmp3 td, .cmpt.cmp3 th { padding-left: 4px; padding-right: 4px; font-size: 12px; } .cmpt { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; } .cmpt th:first-child { width: 31%; font-size: 12.5px; } .cmpt td, .cmpt th { white-space: normal !important; overflow-wrap: break-word; word-break: normal; hyphens: auto; letter-spacing: normal !important; text-transform: none !important; } .cmpt td { font-size: 13px; } .cmpt thead th { font-weight: 800; } .cmpt th, .cmpt td { text-align: left; vertical-align: top; padding: 7px 8px; border-top: 1px solid var(--line); } .cmpt thead th { border-top: 0; font-size: 15px; } .cmpt tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.limitbox { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
button.rrow.rlock { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.blurv { font-style: normal; filter: blur(5px); user-select: none; margin-right: 6px; }
#quota b { color: var(--ink, var(--fg)); }
.cofld { padding: 12px 0; border-top: 1px solid var(--line); }
.cohead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.cochk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.cochk input { width: 18px; height: 18px; accent-color: var(--ink, var(--fg)); }
.cologo { min-height: 56px; display: flex; align-items: center; padding: 8px; border: 1px dashed var(--line); border-radius: 10px; background: #fff; margin-bottom: 8px; }
.cologo img { max-height: 56px; max-width: 200px; display: block; }
.cofile { cursor: pointer; }
.pvbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.pvpages { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 24px; }
.pvpage { max-width: 100%; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.18); border-radius: 4px; }
/* Skyddsrör och Förluster: samma vita panel som övriga kalkylatorer, och luft mellan introtext och fält */
#ductBody, #lossBody { background: var(--surface); border-radius: 18px; padding: 22px; }
#ductBody > .catintro, #lossBody > .catintro { margin: 0 0 20px; }
#ductOut .probanner { background: var(--surface-2); }
/* ---- datorlayout: fast sidomeny, startsidan i två kolumner, verktyg i rutnät. Gäller bara breda skärmar. ---- */
@media (min-width: 1024px) {
  :root { --side: 248px; }
  .bar-in { max-width: none; padding-left: 24px; padding-right: 24px; }
  #menuBtn { display: none !important; }
  .bar-in { display: flex; }
  .bar-in .brand { margin-right: auto; position: static; transform: none; }
  /* större logga, rubriker och text på dator */
  .bar-in { padding-top: 14px; padding-bottom: 14px; }
  .bar .brand { font-size: 30px; gap: 12px; }
  .bar .brand .mark { width: 44px; height: 44px; border-radius: 11px; }
  main.page { font-size: 17px; }
  .pagehead h1 { font-size: 40px; }
  .pagehead p { font-size: 19px; }
  .tab { font-size: 16px; }
  .field label { font-size: 14px; }
  .hint { font-size: 14px; }
  .home .hero h1 { font-size: 52px; }
  .home .hero .shint { font-size: 18px; }
  .home .tile b { font-size: 18px; }
  .home .tile small { font-size: 14.5px; }
  .hgh { font-size: 18px; }
  .menulist .mi { font-size: 15.5px; }
  .menulist, .menulist[hidden] {
    display: block; position: fixed; left: 0; top: var(--barh, 57px); bottom: 0; width: var(--side); max-height: none;
    border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 12px 10px 24px; z-index: 4; overflow-y: auto;
    background: var(--surface);
  }
  .menulist .mi { font-size: 14.5px; padding: 8px 10px 8px 14px; border-radius: 8px; }
  .menulist .mh { padding: 14px 10px 4px; }
  main.page, .fbk-foot { margin-left: calc(var(--side) + max(0px, (100vw - var(--side) - 1160px) / 2)); }
  .fbk-foot { max-width: 1100px; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
  main.page { max-width: 1100px; padding-left: 32px; padding-right: 32px; }

  /* startsidan: rubrik, sök och rader till vänster, exempelskylten till höger */
  .home .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); column-gap: 40px; align-items: start; padding-top: 32px; }
  .home .hero > * { grid-column: 1; }
  .home .hero > .readout { grid-column: 2; grid-row: 1 / span 6; margin: 8px 0 0; align-self: start; }
  .home .hero h1 { font-size: 44px; }
  .home .hero .hsearch { margin-bottom: 14px; }
  .home .hero .betanote, .home .hero .acctnote, .home .hero .propitch { margin: 6px 0 0; }

  /* verktyg och grupper i rutnät */
  .home .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home .tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 18px 16px; min-height: 120px; }
  .home .tile svg { width: 26px; height: 26px; margin: 0 0 8px; }
  .home .tile b, .home .tile small { padding-right: 0; }
  .home .tile .badge { top: 14px; right: 14px; transform: none; }
  .home .tile.locked::after { left: 34px; top: 34px; margin-top: 0; }
  .soonlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .soonlist .hgh { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  .home .tiles, .soonlist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hbrand { display: none; }
.hero .shex { display: block; }
@media (min-width: 1024px) {
  :root { --side: 280px; }
  /* sidomeny: större text och mer luft */
  .menulist .mi { font-size: 17px; padding: 9px 12px 9px 16px; }
  .menulist .mh { font-size: 13px; padding: 18px 12px 6px; }
  /* startsidan: symbol och namn som stor rubrik, slogan under */
  .on-home .bar .brand { visibility: hidden; }
  .hbrand { display: flex; align-items: center; gap: 20px; margin: 0 0 14px; cursor: pointer; }
  .hbrand .hmark { width: 84px; height: 84px; border-radius: 20px; overflow: hidden; flex: none; }
  .hbrand .hmark svg { width: 100%; height: 100%; display: block; }
  .hbrand .hname { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; letter-spacing: -0.03em; color: var(--ink, var(--fg)); }
  .hbrand .beta { font-size: 14px; padding: 6px 12px; align-self: flex-start; margin-top: 6px; }
  .home .hero h1 { font-size: 30px; line-height: 1.25; margin: 0 0 14px; letter-spacing: -0.01em; }
  .home .hero h1 span { display: inline; }
  .home .hero h1 span + span::before { content: " "; }
  .home .hero .shint { font-size: 19px; line-height: 1.5; max-width: 40em; }
  .home .hero .hsearch input { height: 60px; font-size: 18px; }
  .home .hero .hsearch .go { height: 60px; font-size: 18px; padding: 0 28px; }
  .home .hero .betanote, .home .hero .acctnote, .home .hero .propitch { font-size: 15.5px; }
  /* exempelskylten: följer vänsterspalten i höjd och storlek */
  .home .hero { grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); column-gap: 48px; align-items: stretch; }
  .home .hero > .readout { grid-row: 1 / span 7; align-self: stretch; display: flex; flex-direction: column; margin: 0; padding: 28px 28px 24px; border-radius: 24px; }
  .home .hero > .readout .ro-in { display: flex; flex-direction: column; flex: 1; }
  .home .hero > .readout .rk { font-size: 13px; }
  .home .hero > .readout .rv { font-size: 72px; margin-top: 18px; }
  .home .hero > .readout .rs { font-size: 20px; margin-top: 8px; }
  .home .hero > .readout .rbar { margin-top: auto; padding-top: 24px; }
  .home .hero > .readout .rbl { font-size: 14px; margin-top: 12px; }
  /* all text större och i samma skala */
  main.page { font-size: 18px; }
  .hgh { font-size: 22px; margin-top: 40px; }
  .home .tile { padding: 22px 22px 20px; min-height: 140px; }
  .home .tile svg { width: 30px; height: 30px; }
  .home .tile b { font-size: 20px; }
  .home .tile small { font-size: 16px; line-height: 1.4; }
  .soonlist .soonrow { font-size: 17px; }
  .pagehead h1 { font-size: 44px; }
  .pagehead p { font-size: 20px; }
  .field label, .lab { font-size: 15px; }
  .hint { font-size: 15px; }
  .rrow { font-size: 16px; } .rrow b { font-size: 17px; }
  .qres .qk { font-size: 13px; } .qv { font-size: 38px; }
  .flag { width: 40px; height: 30px; } .flag svg { width: 30px; height: 20px; }
}
.qres .qk .fi, .rrow .fi, label .fi { margin-left: 6px; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.rlock-i { display: flex; align-items: center; gap: 6px; padding: 2px 0 8px; font-size: 12.5px; color: var(--muted); }
#infoDlg .modal-card p { margin: 0 0 10px; line-height: 1.5; }
.langs { display: flex; gap: 4px; margin-right: 4px; }
.flag { width: 34px; height: 26px; padding: 3px; border: 1px solid transparent; border-radius: 6px; background: none; cursor: pointer; opacity: .55; display: grid; place-items: center; }
.flag svg { width: 26px; height: 17px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.flag[aria-pressed="true"] { opacity: 1; border-color: var(--line); background: var(--surface-2); }
.flag:hover { opacity: 1; }
@media (max-width: 420px) { .bar .barr { gap: 0; } .bar .menubtn { min-width: 36px; width: 36px; padding-left: 0; padding-right: 0; } .bar .brand { gap: 6px; } .bar-in { gap: 6px; padding-left: 12px; padding-right: 12px; } #homeBtn { display: none; } }
@media (max-width: 520px) { .bar .brand .beta, .bar .brand > .beta { display: none !important; } .langs { gap: 0; margin-right: 0; } .flag { width: 30px; padding: 2px; } .flag svg { width: 24px; height: 16px; } }
/* Brödsmulestigen: stilen finns i /js/stig.js, gemensam med Projekthjärnan */
.stigwrap { margin: 0 0 -14px; }
.stigwrap .stig { margin: 0; }
.bar .brand[data-home] { cursor: pointer; } .bar .brand[data-home]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.profsec { margin-top: 14px; }
.profsec .btnrow { flex-wrap: wrap; }
.profsec .btnrow .go, .profsec .btnrow .toggle { white-space: normal; height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; text-align: center; max-width: 100%; }
.limitbox .go { white-space: normal; height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; max-width: 100%; }
.profsec h3 { margin: 0 0 8px; font-size: 17px; }
.profco { display: flex; align-items: center; gap: 14px; }
.profco img { max-height: 48px; max-width: 160px; background: #fff; border-radius: 6px; padding: 4px; }
.profco div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.profco span { color: var(--muted); }
.btnrow .toggle.on { background: var(--ink, var(--fg)); color: var(--surface); }
.qfeat { display: flex; align-items: center; gap: 16px; width: 100%; margin: 22px 0 6px; padding: 18px 20px; border: 0; border-radius: 16px; background: var(--accent); color: var(--accent-fg); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.12); transition: transform .12s, box-shadow .12s; }
.qfeat:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.16); }
.qfeat:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.qf-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.16); display: grid; place-items: center; }
.qf-ico svg { width: 30px; height: 30px; }
.qf-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qf-txt b { font-size: 20px; }
.qf-txt small { font-size: 14px; opacity: .88; line-height: 1.35; }
.qf-go { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,0.18); }
@media (max-width: 520px) { .qf-go { padding: 8px; font-size: 0; gap: 0; } .qf-ico { width: 44px; height: 44px; } .qf-txt b { font-size: 18px; } }
@media (min-width: 1024px) { .qfeat { padding: 22px 26px; } .qf-txt b { font-size: 24px; } .qf-txt small { font-size: 15.5px; } }
.menulist .mgrp-solo { border-top: 0 !important; padding: 6px 8px 8px; margin: 0; }
.menulist .mi-quick { display: flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-fg) !important; border-radius: 10px; font-weight: 700; }
.menulist .mi-quick svg { width: 20px; height: 20px; flex: none; }
.menulist .mi-quick[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--fg); }
.menulist .mgrp-solo + .mgrp { border-top: 0; }
.menulist .mgrp + .mgrp { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 4px; }
.menulist .mh { font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted); }
.menulist .mfoot { margin-top: 10px; }
.menulist .mfoot .mi { font-size: 14px; color: var(--muted); padding-top: 6px; padding-bottom: 6px; }
.menulist .mfoot .mh { padding-top: 10px; }
.menulist .mver { font-size: 12px; color: var(--muted); padding: 8px 12px 0; }
@media (min-width: 1024px) {
  :root { --side: 260px; }
  /* logga och namn överst på alla sidor */
  .on-home .bar .brand { visibility: visible; }
  .home .hero .shex { display: block; }
  /* logga och namn i sidhuvudet på alla sidor, även startsidan */
  .bar .brand { font-size: 34px; gap: 14px; }
  .bar .brand .mark { width: 52px !important; height: 52px !important; border-radius: 13px !important; }
  .bar .brand .beta { display: inline-block; font-size: 12px; }
  /* mindre avstånd mellan menyn och innehållet */
  main.page, .fbk-foot { margin-left: var(--side); }
  /* innehållet fyller hela bredden och följer fönstrets storlek */
  main.page { max-width: none; padding-left: clamp(24px, 3vw, 64px); padding-right: clamp(24px, 3vw, 64px); }
  .home .tiles, .soonlist { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; }
  .home .hero { grid-template-columns: minmax(0, 1fr) clamp(360px, 32vw, 640px); }
  .home .hero h1 { font-size: clamp(26px, 2.1vw, 40px); }
  .hbrand .hname { font-size: clamp(56px, 5vw, 96px); }
  .hbrand .hmark { width: clamp(68px, 5.8vw, 110px); height: clamp(68px, 5.8vw, 110px); }
  .home .hero > .readout .rv { font-size: clamp(56px, 5vw, 96px); }
  .menulist .mi { font-size: 16px; padding: 8px 12px 8px 14px; }
  .menulist .mh { font-size: 12px; padding: 14px 12px 4px; }
  .menulist .mfoot .mi { font-size: 14px; }
}
.svbtn { display: inline-flex; align-items: center; gap: 6px; }
:root { --auto-bg: #FFF6CC; --auto-line: #E3C14B; --auto-fg: #6B5300; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --auto-bg: #3A3110; --auto-line: #8A7420; --auto-fg: #F2D675; } }
:root[data-theme="dark"] { --auto-bg: #3A3110; --auto-line: #8A7420; --auto-fg: #F2D675; }
input.autochg, select.autochg { background: var(--auto-bg) !important; border-color: var(--auto-line) !important; }
.autoi { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 6px; position: relative; top: -2px; border-radius: 50%; border: 1px solid var(--auto-line); background: var(--auto-bg); color: var(--auto-fg); font: 700 11px/1 var(--font-body, inherit); font-style: italic; padding: 0; cursor: pointer; vertical-align: middle; }
.autonote { grid-column: 1 / -1; flex-basis: 100%; width: 100%; box-sizing: border-box; margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--auto-bg); border: 1px solid var(--auto-line); color: var(--fg); font-size: 13.5px; line-height: 1.45; }
.pstats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.pstat { background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; color: var(--muted); }
.pstat b { color: var(--fg); }
.psec { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.psec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.psec h3 { margin: 0; font-size: 16px; }
.pnote { width: 100%; min-height: 110px; box-sizing: border-box; }
.xli { text-align: left; }
.xmat { display: grid; gap: 6px; }
.xmr { display: grid; grid-template-columns: 1fr 80px 84px 36px; gap: 6px; align-items: center; }
.xmr input, .xmr select { min-width: 0; }
.xdiary { width: 100%; min-height: 150px; box-sizing: border-box; }
.xdia { margin-top: 4px; font-size: 13px; color: var(--fg); white-space: normal; }
.xtabs { margin-bottom: 14px; }
.xnote .xnt { display: block; margin: 4px 0; white-space: normal; }
#fullTermsDlg, #privDlg, #fbkDlg { z-index: 80; }
.legal p { margin: 0 0 10px; line-height: 1.55; }
.legal-h { font-size: 16px; margin: 18px 0 6px; }
.terms-txt .legal { max-height: 60vh; overflow: auto; padding-right: 6px; }
.pli { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.xdiary { margin-top: 2px; }
.xtool .field + .field { margin-top: 10px; }
.xnote { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ductseg { max-width: 420px; margin: 0 0 16px; }
.sidegrip { display: none; }
@media (min-width: 1024px) {
  /* Fasta storlekar: innehållet växer inte med fönstret, det blir bara mer luft */
  main.page { max-width: calc(1180px + 80px); padding-left: 40px; padding-right: 40px; }
  .home .hero { grid-template-columns: minmax(0, 640px) 440px; justify-content: space-between; }
  .home .hero h1 { font-size: 36px; }
  .hbrand .hname { font-size: 80px; }
  .hbrand .hmark { width: 92px; height: 92px; }
  .home .hero > .readout .rv { font-size: 80px; }
  .hsearch { max-width: 620px; }
  .qfeat { max-width: 780px; }
  .home .tiles, .soonlist { grid-template-columns: repeat(auto-fill, 300px) !important; justify-content: start; }
  /* Kalkylatorer, formulär och listor under övriga flikar */
  main.page .tabpanel:not(#panel-home):not(#panel-calc) > *, #pageHead, #crumbs { max-width: 820px; }
  #searchSec, #panel-calc > * { max-width: 1100px; }
  main.page .tabpanel:not(#panel-home) .tiles { max-width: none; }
  /* Tabeller: rubrikkolumnen tar bara så mycket plats som den behöver, så text och siffra hänger ihop */
  .xtbl .tbl td:first-child, .xtbl .tbl th:first-child { width: 1%; white-space: nowrap; padding-right: 18px; }
  .xtbl .tbl, .tblwrap .tbl { width: auto; min-width: 60%; }
  .metrics { max-width: 820px; }
  /* Dra i menyns kant */
  .sidegrip { display: block; position: fixed; top: var(--barh, 57px); bottom: 0; left: calc(var(--side) - 4px); width: 8px; cursor: col-resize; z-index: 41; }
  .sidegrip::after { content: ''; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; background: transparent; transition: background .15s; }
  .sidegrip:hover::after, .sidegrip:focus-visible::after, .siding .sidegrip::after { background: var(--accent); }
  .siding, .siding * { cursor: col-resize !important; user-select: none !important; }
}
/* Startsidans topp: rubrik, slogan och instruktion, sedan sökruta, exempel och Snabbkalkylatorn i samma bredd som tre kort */
.home .hero > .qfeat { margin: 0 0 14px; }
.xsoon { padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.xsoon p { margin: 10px 0 0; }
@media (min-width: 1024px) {
  main.page { max-width: none; }
  .home .hero { display: block; padding-top: 28px; --hw: calc(4 * 300px + 3 * 12px); }
  .home .hero .shint { margin-bottom: 18px; }
  .home .hero > .hsearch, .home .hero > .readout, .home .hero > .qfeat { width: 100%; max-width: var(--hw); }
  .home .hero > .hsearch { margin: 0 0 14px; }
  .home .hero > .readout { margin: 0 0 14px; padding: 20px 24px 18px; border-radius: 20px; display: block; }
  .home .hero > .readout .rk { font-size: 12px; }
  .home .hero > .readout .rv { font-size: 52px; margin-top: 8px; }
  .home .hero > .readout .rs { font-size: 17px; margin-top: 2px; }
  .home .hero > .readout .rbar { margin-top: 0; padding-top: 14px; }
  .home .hero > .readout .rbl { font-size: 13px; margin-top: 8px; }
  .home .hero > .qfeat { padding: 18px 22px; border-radius: 20px; }
  .home .tiles, .soonlist { gap: 12px; }
}
/* symboler på kabelkategorierna */
.catbtn { position: relative; }
.catbtn .cico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft, rgba(29,107,69,0.1)); color: var(--accent-text, var(--accent)); margin-bottom: 10px; }
.catbtn .cico svg { width: 24px; height: 24px; }
.catbtn[aria-pressed="true"] .cico { background: rgba(255,255,255,0.18); color: inherit; }
/* symbol vid sidrubriken */
.pagehead h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
.pagehead h1 .phico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--accent); color: var(--accent-fg); flex: none; }
.pagehead h1 .phico svg { width: 28px; height: 28px; }
@media (max-width: 520px) { .pagehead h1 .phico { width: 38px; height: 38px; border-radius: 10px; } .pagehead h1 .phico svg { width: 22px; height: 22px; } }
.metric .k .fi { margin-left: 6px; vertical-align: middle; text-transform: none; letter-spacing: 0; }
/* förstoringsglaset: sökningen öppnas som ett kort ovanpå sidan */
#gs { background: rgba(10, 20, 15, 0.42); backdrop-filter: blur(3px); }
#gs:not([hidden]) { display: flex; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); box-sizing: border-box; overflow: hidden; }
#gs .gs-in { margin: auto; max-width: 720px; width: 100%; background: var(--surface); border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.25); padding: 16px 16px 14px; max-height: 100%; display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; }
#gs .gs-top { flex: none; }
#gs #gsRes { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-top: 12px; overscroll-behavior: contain; }
#gs #gsRes:empty { display: none; }
#gs #gsRes .gsc:last-child { margin-bottom: 0; }
.qwrap { position: relative; display: flex; flex: 1 1 auto; min-width: 0; align-items: stretch; }
.askrow { flex-wrap: nowrap !important; align-items: center; }
.askrow > .qwrap { flex: 1 1 0; }
.askrow > .info, .askrow > .go { flex: none; }
.hsearch > .qwrap, .gs-top > .qwrap { flex: 1 1 auto; }
.qwrap > input { flex: 1 1 auto; width: 100%; min-width: 0; padding-right: 44px !important; }
.qx { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.qx:hover { color: var(--fg); background: var(--surface-2, rgba(0,0,0,0.05)); }
.qx[hidden] { display: none; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.gs-x { flex: none; width: 34px; height: 34px; align-self: flex-start; border-radius: 50%; border: 0; background: var(--surface-2, #f1f2f1); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.gs-x:hover { color: var(--fg); }
.gs-close { flex: none; width: 100%; margin: 12px 0 0 !important; height: 48px; justify-content: center; }
/* Fäst svarskort: i-knappar, förslagschips och val fungerar, övriga knappar och länkar är bara visning (2026-11-22) */
.gs-pin button:not([data-qadd]):not([data-info]):not([data-swap]), .gs-pin a { pointer-events: none; }
.qcard { margin: 0 0 16px; }
.qh { font-size: 20px; font-weight: 700; margin: 2px 0 10px; }
.qchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.qrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 4px; }
.qrow .lab { width: 100%; font-size: 13px; font-weight: 600; color: var(--muted); }
.gs-pin .qrow { margin: 0 0 12px; }
.gs-pin > :first-child { margin-top: 0; }
.gs-guess { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: 14px; }
.gs-asm { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.gs-asm .assume { margin: 8px 0 0; font-size: 14px; }
.gs-full { width: 100%; margin-top: 10px; justify-content: center; }
/* ---------- Undersidorna: liten logga, sidhuvud med färg ---------- */
/* .pbrand (loggan ovanför stigen) har sin stil i /js/stig.js, gemensam med Projekthjärnan */
.pagehead { position: relative; padding: 22px 24px 20px !important; margin-top: 8px; border-radius: 20px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 13%, var(--surface)) 0%, color-mix(in srgb, var(--accent) 4%, var(--surface)) 70%); border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); overflow: hidden; }
.pagehead::after { display: none !important; }
.pagehead::before { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; border: 22px solid color-mix(in srgb, var(--accent) 7%, transparent); pointer-events: none; }
.pagehead p { color: color-mix(in srgb, var(--fg) 70%, var(--accent)); }
#subtabs { margin-top: 14px; }
/* Formulär och resultat: diskret färg och fyllnad */
main.page .tabpanel:not(#panel-home) .panel { border-top: 3px solid var(--accent); box-shadow: 0 2px 10px rgba(16, 40, 28, 0.05); }
/* Samma kortstil på alla undersidor */
#lossBody, #ductBody, .bxg, details.cab, #buyBody > .fgrid.fx:first-child, #newProjForm { border-top: 3px solid var(--accent) !important; box-shadow: 0 2px 10px rgba(16, 40, 28, 0.05); }
#buyBody > .fgrid.fx:first-child, #newProjForm { background: var(--surface); border-radius: 16px; padding: 16px 18px; border-left: 0; border-right: 0; border-bottom: 0; }
#newProjForm { display: flex; gap: 10px; align-items: center; }
.metric { background: var(--surface) !important; border: 1px solid var(--line) !important; border-left: 4px solid var(--accent) !important; box-shadow: 0 2px 8px rgba(16, 40, 28, 0.04); }
.metric .v { color: var(--accent-text, var(--accent)); }
.metric .v small { color: var(--muted); }
.xout .hint.xnote:last-child { display: inline-block; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-radius: 999px; padding: 6px 14px; color: var(--fg); font-family: var(--font-data, inherit); }
.hshort { display: none; }
@media (min-width: 1024px) {
  .home .hero { display: block !important; text-align: center; max-width: var(--hw); padding-top: 36px !important; }
  .home .hero .hbrand { justify-content: center; }
  .home .hero .shint { margin-left: auto; margin-right: auto; }
  .home .hero > .qfeat { display: none !important; }
  .home .hero .shint { margin-bottom: 22px; }
  /* två kolumner: genvägar till vänster, sökruta och exempel till höger */
  .hgrid2 { display: grid; grid-template-columns: 300px minmax(0, 612px); gap: 12px; justify-content: center; margin: 0 auto 16px; text-align: left; }
  .hshort { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
  .hsc { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--fg); cursor: pointer; text-align: left; box-shadow: 0 2px 10px rgba(16,40,28,0.05); transition: transform .12s, box-shadow .12s; }
  .hsc:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,40,28,0.1); }
  .hsc-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .hsc b { font-size: 18px; }
  .hsc small { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
  .hsc-i { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
  .hsc-i svg { width: 24px; height: 24px; }
  .hsc-q { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
  .hsc-q small { color: rgba(255,255,255,0.85); }
  .hsc-q .hsc-i { background: rgba(255,255,255,0.18); color: inherit; }
  .hright2 { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .hright2 .hsearch { margin: 0 !important; max-width: none !important; width: 100% !important; }
  .home .hero .hright2 .readout { margin: 0 !important; flex: 1; max-width: none !important; width: auto !important; padding: 16px 20px 14px !important; display: flex; flex-direction: column; }
  .home .hero .hright2 .readout .ro-in { display: flex; flex-direction: column; flex: 1; }
  .home .hero .hright2 .readout .rk { font-size: 11.5px; }
  .home .hero .hright2 .readout .rv { font-size: 40px; margin-top: 4px; }
  .home .hero .hright2 .readout .rs { font-size: 15px; margin-top: 0; }
  .home .hero .hright2 .readout .rbar { margin-top: auto; padding-top: 10px; }
  .home .hero .hright2 .readout .rbl { font-size: 12.5px; margin-top: 6px; }
  /* informationsrutan: lika bred som genvägarna, centrerad och lättläst */
  .hnotes { max-width: 924px; margin: 0 auto; padding: 16px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .hnotes > * { margin: 0 !important; max-width: none !important; font-size: 15px !important; line-height: 1.5; color: color-mix(in srgb, var(--fg) 80%, var(--muted)) !important; text-align: center; justify-content: center; }
  .hnotes > * + * { padding-top: 8px; border-top: 1px solid var(--line); width: 100%; }
}
.gs:not(#gs) { background: rgba(10, 20, 15, 0.42) !important; backdrop-filter: blur(3px); }
.gs:not(#gs) > .gs-in { margin: 48px auto 40px; max-width: 760px; width: calc(100% - 32px); background: var(--bg, #eef0ef); border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,0.28); padding: 20px 22px 24px !important; box-sizing: border-box; }
#pvDlg > .gs-in { max-width: 880px; }
.gs:not(#gs) > .gs-in > .gs-top { position: sticky; top: -20px; z-index: 2; background: inherit; margin: -20px -22px 0; padding: 16px 22px 12px; border-radius: 22px 22px 0 0; }
@media (max-width: 520px) { .gs:not(#gs) > .gs-in { margin: 12px auto 24px; width: calc(100% - 16px); padding: 16px 14px 20px !important; border-radius: 18px; } .gs:not(#gs) > .gs-in > .gs-top { margin: -16px -14px 0; padding: 14px 14px 10px; } }
.cozip { display: grid; grid-template-columns: 130px 1fr; gap: 10px; margin-top: 10px; }
.cozip label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.cozip input { width: 100%; box-sizing: border-box; }
/* tillbakaknappen uppe till vänster på dator, före loggan */
@media (min-width: 1024px) {
  #backBtn:not([hidden]) { display: inline-grid !important; width: 44px; height: 44px; margin: 0 6px 0 -8px; background: var(--surface-2); }
  #backBtn:not([hidden]):hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
}
/* ===== Ny färgsättning: djupgrönt, varm ljus botten och elgult som accent ===== */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  --bg: #F3F4EF; --surface: #FFFFFF; --surface-2: #F2F4EF; --fg: #0F1F17; --muted: #56635C; --line: #DFE4DC;
  --accent: #17603D; --accent-text: #17603D; --accent-fg: #FFFFFF; --accent-soft: #E3F0E8; --ink: #17603D; --ink-fg: #FFFFFF;
  --volt: #FFC629; --volt-ink: #2B2100; --deep: #0D2A1C;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #F3F4EF; --surface: #FFFFFF; --surface-2: #F2F4EF; --fg: #0F1F17; --muted: #56635C; --line: #DFE4DC;
  --accent: #17603D; --accent-text: #17603D; --accent-fg: #FFFFFF; --accent-soft: #E3F0E8; --ink: #17603D; --ink-fg: #FFFFFF;
  --volt: #FFC629; --volt-ink: #2B2100; --deep: #0D2A1C;
} }
/* sidhuvud och meny */
.bar { border-bottom: 1px solid var(--line); }
.menulist .mi[aria-current="true"] { background: var(--accent-soft) !important; color: var(--accent) !important; box-shadow: inset 3px 0 0 var(--volt); font-weight: 700; }
.menulist .mi-quick { background: linear-gradient(135deg, #17603D, #1E7A4E) !important; }
.menulist .mi-quick svg { color: var(--volt); }
.menulist .mh { color: #69766F; } /* 4,75:1 mot vitt (WCAG AA) */
/* exempelkortet: mörkt med elgula staplar */
.readout { background: linear-gradient(140deg, #17603D 0%, #1E7A4E 60%, #23895A 100%) !important; box-shadow: 0 10px 28px rgba(23, 96, 61, 0.22) !important; }
.readout .rbar i { background: rgba(255,255,255,0.22) !important; }
.readout .rbar i.on, .readout .rbar .on, .readout .seg.on { background: var(--volt) !important; }
.home .hero h1 span:last-child { color: var(--accent); }
/* knappar och små detaljer */
.fi { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
/* i-knappar: små, diskreta och lite upphöjda */
.fi { width: 15px; height: 15px; font-size: 9.5px; font-weight: 600; font-style: italic; font-family: Georgia, 'Times New Roman', serif; position: relative; top: -3px; color: var(--muted); background: transparent; border-color: color-mix(in srgb, var(--muted) 55%, transparent); transition: color .15s, border-color .15s, background .15s; }
.fi::before { inset: -14px; }
.fi:hover, .fi[aria-expanded="true"] { color: var(--accent-text); border-color: var(--accent); background: var(--accent-soft); }
.fuse .fi.fi-gg { color: #fff; }
button.info { position: relative; width: 28px; height: 28px; min-width: 28px; padding: 0; align-self: center; font: italic 600 14px/1 Georgia, 'Times New Roman', serif; color: var(--muted); background: transparent; border: 1px solid color-mix(in srgb, var(--muted) 55%, transparent); }
button.info::before { content: ""; position: absolute; inset: -10px; }
button.info:hover, button.info[aria-expanded="true"] { color: var(--accent-text); border-color: var(--accent); background: var(--accent-soft); }
.tile svg, .tile .ico { color: var(--accent); }
.tile:hover { border-color: var(--accent) !important; }
.pagehead h1 .phico { background: linear-gradient(135deg, #17603D, #1E7A4E); }
.pagehead h1 .phico svg { color: #fff; }
.qfeat .qf-ico svg, .hsc-q .hsc-i svg { color: var(--volt); }
.metric { border-left-color: var(--accent) !important; }
:focus-visible { outline-color: var(--volt); }
/* Startsidan på dator: stor Snabbkalkylator till vänster, sökruta och exempel till höger */
@media (min-width: 1024px) {
  .hgrid2 { grid-template-columns: minmax(0, 612px) minmax(0, 612px) !important; width: 100%; }
  .hnotes { max-width: var(--hw) !important; }
  .home .hero { padding-left: 0 !important; padding-right: 0 !important; }
  .hsc-q small { max-width: 40ch !important; }
  .home .hero .hright2 .readout .rv { font-size: 52px !important; }
  .hshort { grid-template-rows: 1fr !important; }
  .hsc-q { position: relative; overflow: hidden; flex-direction: column; align-items: flex-start !important; justify-content: space-between; gap: 14px !important; padding: 24px 26px !important; border-radius: 22px !important; background: linear-gradient(140deg, #17603D 0%, #1E7A4E 60%, #23895A 100%) !important; box-shadow: 0 10px 28px rgba(23, 96, 61, 0.28) !important; }
  .hsc-q .hsc-i { width: 54px !important; height: 54px !important; border-radius: 15px !important; background: rgba(255,255,255,0.14) !important; }
  .hsc-q .hsc-i svg { width: 30px !important; height: 30px !important; }
  .hsc-q .hsc-t { gap: 6px !important; position: relative; z-index: 1; }
  .hsc-q b { font-size: 28px !important; letter-spacing: -0.02em; }
  .hsc-q small { font-size: 15.5px !important; max-width: 30ch; }
  .hsc-go { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; background: var(--volt); color: var(--volt-ink); font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: 999px; }
  .hsc-bg { position: absolute; right: -36px; bottom: -40px; width: 220px; height: 220px; color: rgba(255,255,255,0.07); pointer-events: none; }
  .hsc-q:hover .hsc-go { filter: brightness(1.05); }
  .home .hero .hright2 .readout .rv { font-size: 46px !important; }
}
.hsc-go, .hsc-bg { display: none; }
@media (min-width: 1024px) { .hsc-go { display: inline-flex; } .hsc-bg { display: block; } }
/* Startsidan på dator: sökrutan under rubriken, Snabbkalkylatorn och exemplet bredvid varandra i samma, lägre höjd */
@media (min-width: 1024px) {
  .home .hero > .hsearch { display: flex; max-width: 680px !important; width: 100% !important; margin: 0 auto 18px !important; }
  .home .hero .shint { margin-bottom: 16px !important; }
  .hgrid2 { align-items: stretch; }
  .hshort, .hright2 { height: 100%; }
  .hsc-q { flex-direction: row !important; align-items: center !important; justify-content: flex-start; gap: 18px !important; padding: 20px 24px !important; min-height: 0 !important; }
  .hsc-q .hsc-t { flex: 1; }
  .hsc-q b { font-size: 24px !important; }
  .hsc-q small { font-size: 14.5px !important; max-width: 34ch !important; }
  .hsc-q .hsc-go { align-self: center; }
  .hsc-bg { width: 160px !important; height: 160px !important; right: 120px !important; bottom: -50px !important; }
  .home .hero .hright2 .readout { padding: 16px 22px 14px !important; }
  .home .hero .hright2 .readout .rv { font-size: 38px !important; margin-top: 2px !important; }
  .home .hero .hright2 .readout .rs { font-size: 14.5px !important; }
  .home .hero .hright2 .readout .rbar { padding-top: 10px !important; margin-top: 8px !important; }
  .home .hero .hright2 .readout .rbl { margin-top: 5px !important; }
}
/* större text i Snabbkalkylator- och exempelkortet på dator */
@media (min-width: 1024px) {
  .hsc-q b { font-size: 28px !important; }
  .hsc-q small { font-size: 16.5px !important; }
  .hsc-go { font-size: 16.5px !important; padding: 12px 20px !important; }
  .home .hero .hright2 .readout .rk { font-size: 13px !important; }
  .home .hero .hright2 .readout .rv { font-size: 46px !important; }
  .home .hero .hright2 .readout .rs { font-size: 17px !important; }
  .home .hero .hright2 .readout .rbl { font-size: 14.5px !important; }
}
@media (min-width: 1024px) and (max-width: 1500px) { .hsc-q small { font-size: 15px !important; } .hsc-q b { font-size: 25px !important; } .hsc-go { font-size: 15px !important; padding: 10px 16px !important; } }
/* sidhuvudet i mobilen: profil, hem, sök och meny tätare ihop */
@media (max-width: 1023px) {
  .bar .barr { gap: 0 !important; }
  .bar .barr .menubtn { width: 28px !important; min-width: 28px !important; height: 40px; padding: 0 !important; }
  .bar .barr .menubtn svg { width: 22px; height: 22px; }
  .bar .barr .langs { margin-right: 4px; }
}
.menulist a.mi { display: block; text-decoration: none; color: inherit; } .legal a, #fbkDlg .hint a { color: var(--accent-text, var(--accent)); font-weight: 600; }
.profdel { margin: 22px 0 4px; text-align: center; }
.profdel-btn { background: none; border: 0; padding: 4px; font: inherit; font-size: 12.5px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); cursor: pointer; opacity: .75; }
.profdel-btn:hover { opacity: 1; color: var(--bad); }
.delgo { background: var(--bad) !important; color: #fff !important; }
.delgo:disabled { opacity: .45; cursor: not-allowed; }
#hjOverlay { position: fixed; inset: 0; z-index: 900; background: var(--surface, #fff); padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); box-sizing: border-box; }
#hjOverlay[hidden] { display: none; }
#hjOverlay iframe { display: block; width: 100%; height: 100%; border: 0; }
html.hj-open, html.hj-open body { overflow: hidden; }
.bar .menubtn.hjbtn { color: var(--accent-text, currentColor); background: var(--accent-soft, rgba(0,0,0,0.06)); border-radius: 50%; width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; }
.bar .menubtn.hjbtn svg { width: 20px; height: 20px; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
/* ---- Liggande mobil: lägre sidhuvud, mindre rubrikkort och resultatlist som inte täcker innehållet ---- */
@media (orientation: landscape) and (max-height: 520px) {
  .bar-in { min-height: 46px !important; padding-top: 2px !important; padding-bottom: 2px !important; }
  .bar .brand .mark, .bar .brand svg { max-height: 34px; }
  #pageHead { padding: 12px 18px 12px !important; margin-top: 4px !important; }
  #pageHead h1 { font-size: 24px !important; }
  #pageHead h1 .phico { width: 38px !important; height: 38px !important; }
  #pageHead h1 .phico svg { width: 22px !important; height: 22px !important; }
  #pageHead p { font-size: 15px !important; margin-top: 2px !important; }
  .resbar { display: none !important; } /* för lite höjd: resultatlisten skulle täcka sökfältet */
  #subtabs { margin-top: 10px !important; }
  .home .hero h1 { font-size: 30px !important; }
  .gs:not(#gs) > .gs-in, #gs .gs-in { max-height: calc(100dvh - 16px); }
}
/* Smal telefon i utvecklarläget: språkflaggorna göms så att alla knappar får plats (språk finns under Min profil) */
@media (max-width: 420px) { html.has-hjbtn .bar .langs { display: none !important; } }
.msnav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.msn { border: 0; background: var(--surface); color: var(--fg); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.msn:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.mslab { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.mslab:first-of-type { margin-top: 4px; }
.profsec { scroll-margin-top: 80px; }
.msdev { margin-top: 12px; } .msdev summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.msdev input { height: 40px; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; background: var(--surface-2); }
.hjban { display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; border: 0; cursor: pointer; margin: 18px 0 8px; padding: 22px 24px; border-radius: 22px; color: #fff; font: inherit;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 45%), linear-gradient(120deg, #0F3D27 0%, #17603D 60%, #1F7A4D 100%); box-shadow: 0 10px 30px rgba(15, 61, 39, 0.25); }
.hjban:hover { filter: brightness(1.05); }
.hjb-ico { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,0.14); }
.hjb-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hjb-t small { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #F5D04C; }
.hjb-t b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.hjb-t span { font-size: 15px; opacity: 0.88; line-height: 1.4; }
.hjb-go { flex: none; background: #F5D04C; color: #0F1F17; font-weight: 800; padding: 12px 18px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 600px) { .hjban { flex-wrap: wrap; padding: 18px; gap: 12px; } .hjb-ico { width: 50px; height: 50px; } .hjb-t b { font-size: 22px; } .hjb-go { width: 100%; text-align: center; } }
/* Luftigare sidhuvud: appväxlare vid loggan, ett språkval och tätare ikoner */
.bar-in { padding-top: 10px; padding-bottom: 10px; }
.bar .barr { gap: 0; }
.bar .barr .menubtn { width: 28px; min-width: 28px; height: 40px; padding: 0; }
.bar .barr #menuBtn { margin-left: 2px; }
.langsel { position: relative; margin-right: 6px; }
.langsel .flag.cur { opacity: 1; width: 34px; height: 28px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; }
.langpop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 4px; min-width: 150px; }
.langpop[hidden] { display: none; }
.langopt { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 10px; border-radius: 8px; font: inherit; font-size: 15px; color: var(--fg); text-align: left; }
.langopt svg { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.langopt[aria-pressed="true"] { background: var(--surface-2); font-weight: 700; }
.bar .brand .appmini { width: 30px; height: 30px; margin-left: -4px; border: 0; border-radius: 9px; background: none; display: grid; place-items: center; padding: 0; flex: none; opacity: .9; align-self: flex-end; overflow: hidden; }
.bar .brand .appmini img { width: 100%; height: 100%; display: block; border-radius: 9px; }
.bar .brand .appmini:hover { opacity: 1; }
@media (max-width: 420px) { #homeBtn { display: inline-flex !important; } .bar .barr .menubtn { width: 27px; min-width: 27px; } .bar .brand .appmini { width: 26px; height: 26px; } .bar .brand .appmini svg { width: 16px; height: 16px; } .langsel { margin-right: 2px; } }
@media (max-width: 360px) { #homeBtn { display: none !important; } }
.menulist .mlogout { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; } .menulist .mlogout .mi { color: var(--bad, #B3261E); font-weight: 700; }
:root.tier-free:not(#x) { --accent: #227B4D; --accent-text: #20744A; --ink: #227B4D; /* 4,74:1 mot #F3F4EF och 4,6:1 mot #E6F3EB (WCAG AA) */ --accent-soft: #E6F3EB; }
:root.tier-pro:not(#x) { --accent: #11502F; --accent-text: #11502F; --ink: #11502F; --accent-soft: #DCEBE2; }
:root.tier-free .menulist .mi-quick { background: linear-gradient(135deg, #258252, #2E9461) !important; }
:root.tier-pro .menulist .mi-quick { background: linear-gradient(135deg, #0E4428, #17603D) !important; }
.bar .bellbtn { position: relative; }
.bar .bellbtn .bdg { position: absolute; top: 3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #FFC629; color: #1A1A1A; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.bar .bellbtn .bdg[hidden] { display: none; }
.bellpop { position: fixed; z-index: 70; width: min(340px, calc(100vw - 20px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 6px; }
.bellpop[hidden] { display: none; }
.bp-h { padding: 8px 10px 6px; font-size: 15px; }
.bp-i { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; background: none; padding: 10px; border-radius: 10px; font: inherit; color: var(--fg); cursor: pointer; }
.bp-i:hover { background: var(--surface-2); } .bp-i.new { box-shadow: inset 3px 0 0 #FFC629; }
.bp-i b { font-size: 14.5px; } .bp-i span { font-size: 13.5px; color: var(--muted); } .bp-i small { font-size: 12px; color: var(--muted); }
.bp-e { margin: 0; padding: 10px; color: var(--muted); font-size: 14px; }
.fbbrand { display: grid; justify-items: center; text-align: center; gap: 4px; margin: 4px 0 18px; }
.fbbrand img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 16px rgba(16,40,28,.2); margin-bottom: 6px; }
.fbbrand b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--accent-text, var(--accent)); line-height: 1.1; }
.fbbrand span { font-size: 15px; font-weight: 700; color: var(--fg); } .fbbrand em { font-style: normal; color: var(--accent-text, var(--accent)); }
.fb-card .fbh { font-size: 19px; margin: 0 0 4px; }
.keepin { display: flex; align-items: center; gap: 10px; margin: 12px 0 14px; font-size: 15px; font-weight: 600; cursor: pointer; } .keepin input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
/* Kortet till Projekthjärnan i PH:s färger */
.hjban { background: linear-gradient(135deg, #2F6DB5, #163F70) !important; box-shadow: 0 10px 26px rgba(22,63,112,.28) !important; }
.hjb-t small { color: #FFD23F !important; }
.hjb-go { background: #FFD23F !important; color: #10223D !important; }
.hjb-t span { overflow-wrap: break-word; }
.hjb-ico { background: none !important; }
/* PH-symbolen före Ellådans */
.bar .brand .appmini { align-self: flex-end; margin-left: 0 !important; margin-right: -4px; order: 0; }
html.ms-embed .bar, html.ms-embed main, html.ms-embed .hjban { visibility: hidden; } html.ms-embed body { background: var(--bg); }
.gs-spec, .gs-cmp, .gsc-main { position: relative; }
.gs-i { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent-text, var(--accent)); background: var(--surface); color: var(--accent-text, var(--accent)); font: italic 800 15px Georgia, serif; display: grid; place-items: center; cursor: pointer; padding: 0; }
.gs-i.on { background: var(--accent-text, var(--accent)); color: #fff; }
.gs-ibox { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 8px 0 10px; font-size: 13.5px; line-height: 1.45; }
.gs-ibox b { display: block; margin-bottom: 4px; } .gs-ibox span { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.gs-spec .gsc-k, .gs-cmp .gsc-k { padding-right: 36px; }
.gs-lock .go { margin-top: 10px; }

/* Nytt sedan förra versionen (tas bort vid nästa push) */
.ny { display: inline-block; font: 800 11px/1.5 var(--font-body); color: #fff; background: #7A4FD6; border-radius: 999px; padding: 0 7px; margin-left: 6px; vertical-align: 2px; letter-spacing: .02em; white-space: nowrap; text-transform: none; }
/* Hela anläggningen */
.anl-add { display: flex; gap: 8px; margin-top: 14px; } .anl-add input { flex: 1; min-width: 0; }
.anl-imp { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.anl-list { display: grid; gap: 6px; margin-top: 14px; }
.anl-row { margin-left: calc(var(--d) * 14px); background: var(--surface); border-radius: 12px; border-left: 4px solid var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.anl-row.ok { border-left-color: var(--ok); } .anl-row.warn { border-left-color: var(--warn); } .anl-row.bad { border-left-color: var(--bad); }
.anl-h { display: flex; gap: 10px; width: 100%; border: 0; background: none; font: inherit; color: var(--fg); text-align: left; padding: 10px 12px; cursor: pointer; }
.anl-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--muted); }
.ok .anl-dot { background: var(--ok); } .warn .anl-dot { background: var(--warn); } .bad .anl-dot { background: var(--bad); }
.anl-tt { display: grid; gap: 2px; min-width: 0; } .anl-tt small { color: var(--muted); font-size: 13px; } .anl-num { font-family: var(--font-data); font-size: 12px !important; }
.anl-src { font-style: normal; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: var(--surface-2); margin-left: 4px; }
.anl-src.uppskattad { background: var(--warn-soft); color: var(--warn); } .anl-src.matt, .anl-src.last { background: var(--ok-soft); color: var(--ok); }
.anl-why { padding: 0 12px 8px 32px; } .anl-why p { margin: 2px 0; font-size: 13px; color: var(--bad); }
.warn .anl-why p { color: var(--warn); }
.anl-ed { padding: 4px 12px 12px; border-top: 1px solid var(--line); }
.anl-g { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.anl-g label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 700; flex: 1 1 130px; min-width: 0; }
.anl-g input, .anl-g select { width: 100%; min-width: 0; }
.anl-g .anl-cb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg); font-weight: 600; }
.anl-cb input { width: auto; }
.anl-schema { background: var(--surface); border-radius: 12px; padding: 10px; overflow-x: auto; box-shadow: inset 0 0 0 1px var(--line); }
.anl-svg { width: 100%; min-width: 600px; height: auto; display: block; }
.anl-ln { stroke: var(--fg); stroke-width: 1.6; } .anl-fuse { fill: var(--surface); stroke: var(--fg); stroke-width: 1.6; } .anl-bus { fill: var(--fg); }
.anl-t { font: 700 12px var(--font-body); fill: var(--fg); } .anl-s { font: 11px var(--font-data); fill: var(--muted); } .anl-st { font: 700 12px var(--font-body); fill: var(--muted); }

/* Mina sidor från Projekthjärnan: Projekthjärnans färger, typsnitt och en lugn övergång */
html.ms-ph:not(#a):not(#b) { --ink: #2F6DB5; --ink-fg: #FFFFFF; --accent: #2F6DB5; --accent-fg: #FFFFFF; --accent-soft: #E0EAF6; --ok: #2F6DB5; --bg: #EEF0EF; --surface-2: #F4F6F5; --line: #DDE2DF; --font-body: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif; --font-display: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif; }
html.ms-ph .gs:not(#profDlg) { z-index: 1050; }
html.ms-ph #profDlg.gs:not(#a) { z-index: 1000; background: var(--bg) !important; backdrop-filter: none; animation: msIn .22s ease-out; }
html.ms-ph #profDlg.gs:not(#a) > .gs-in { margin: 0 auto !important; width: 100% !important; box-shadow: none; border-radius: 0; }
html.ms-ph #profDlg.gs:not(#a) > .gs-in > .gs-top { border-radius: 0; background: var(--bg); }
html.ms-ph #profDlg .gs-in { box-shadow: none; background: var(--bg); max-width: 720px; border-radius: 0; min-height: 100%; }
html.ms-ph #profDlg h2, html.ms-ph #profDlg h3 { font-family: var(--font-display); letter-spacing: -.01em; }
html.ms-ph #profDlg .panel { border-radius: 18px; box-shadow: 0 4px 14px rgba(20,40,30,.06); }
html.ms-ph #profDlg .msn[aria-current="true"], html.ms-ph #profDlg .msn.on { background: var(--accent); color: #fff; }
html.ms-ph #profDlg .rrow b { color: var(--fg); }
.ms-ph-brand { display: flex; align-items: center; gap: 8px; font: 800 13px var(--font-body); color: var(--accent); letter-spacing: .02em; margin: 0 0 4px; }
html.ms-ph #profDlg [data-prof="close"] { background: var(--accent) !important; color: #fff !important; }
.ms-ph-brand img { border-radius: 6px; }
@keyframes msIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.ms-ph #profDlg { animation: none; } }

.refrow { display: flex; gap: 8px; flex-wrap: wrap; } .refrow input { flex: 1 1 200px; min-width: 0; font-family: var(--font-data); font-size: 14px; }
/* Regler och praxis */
.kbr { line-height: 1.5; }
.kbt { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .03em; padding: 1px 7px; border-radius: 999px; margin-right: 4px; vertical-align: 1px; }
.kbt.krav { background: var(--accent-soft); color: var(--accent); } .kbt.rek { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); } .kbt.praxis { background: var(--warn-soft); color: var(--warn); } .kbt.fyll { background: #7A4FD6; color: #fff; }
.kbs { font-size: 12px; color: var(--muted); white-space: nowrap; }
.kbf { margin: 8px 0 4px; }
.kbf-r { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.kbf-r:first-child { border-top: 0; }
.kbf-l { color: var(--muted); flex: 0 0 42%; }
.kbf-v { font-weight: 600; flex: 1; }
.kbg { margin: 14px 0 2px; }
.kbf-v .kbt { margin: 0 0 0 6px; }
.gsc-t .kbt { font-size: 11px; vertical-align: 3px; margin-left: 6px; }
.kbi { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.kbi summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.kbi summary::-webkit-details-marker { display: none; }
.kbi summary::before { content: "i"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.6px solid currentColor; font: 800 11px/1 Georgia, serif; }
.kbi[open] summary { margin-bottom: 4px; }
.kbi p { margin: 6px 0; }
.kbq { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.kbx-l { display: grid; gap: 10px; }
.kbx { background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); padding: 0 16px; }
.kbx summary { cursor: pointer; font-weight: 700; font-size: 16px; padding: 14px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.kbx summary::-webkit-details-marker { display: none; }
.kbx summary::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 20px; transition: transform .15s; }
.kbx[open] summary::after { transform: rotate(90deg); }
.kbx-b { padding: 0 0 14px; }
.kbf-hit .kbf-r { font-size: 17px; padding: 11px 0; }
.kbf-hit .kbf-v { font-size: 20px; font-weight: 750; }
.kbf-l small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.kbmiss { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.kbc-h { margin: 14px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kbc-l { margin-top: 6px; }
.kbc { border-top: 1px solid var(--line); }
.kbc summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 11px 0; font-weight: 650; font-size: 15px; }
.kbc summary::-webkit-details-marker { display: none; }
.kbc summary span { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 13px; }
.kbc summary::after { content: "›"; color: var(--muted); font-size: 18px; transition: transform .15s; }
.kbc[open] summary::after { transform: rotate(90deg); }
.kbc .kbf { margin: 0 0 8px; }
.kbc-n { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.zon-fig { background: var(--surface); border-radius: 12px; padding: 8px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; }
.zon-fig svg { width: 100%; height: auto; display: block; }
.zon-fig .z0 { fill: #EF7B73; } .zon-fig .z1 { fill: #FFE380; } .zon-fig .z2 { fill: #C9EBB6; } .zon-fig .z3 { fill: #8CCF9C; }
.zon-fig .zs { font: 600 18px var(--font-body); fill: #16201B; text-anchor: middle; } .zon-fig .lamp { fill: #fff; stroke: #16201B; stroke-width: 2; } .zon-fig .uttag { fill: #fff; stroke: #16201B; stroke-width: 2; } .zon-fig .uttp { fill: #16201B; }
.zon-fig .heat { fill: #8A948F; stroke: #16201B; stroke-width: 2; } .zon-fig .heatl { stroke: #E5484D; stroke-width: 3; } .zon-fig .bench { fill: none; stroke: #8B5E34; stroke-width: 8; stroke-linecap: round; }
.zon-fig .sh { fill: none; stroke: #16201B; stroke-width: 3; } .zon-fig .shh { fill: #16201B; }
.zon-h b::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: 1px; background: var(--zc); }
.zc0 { --zc: #EF7B73; } .zc1 { --zc: #FFE380; } .zc2 { --zc: #C9EBB6; } .zc3 { --zc: #8CCF9C; }
.zon-fig .tub { fill: none; stroke: var(--fg); stroke-width: 2; } .zon-fig .fl, .zon-fig .wall { stroke: var(--fg); stroke-width: 2.5; } .zon-fig .dim { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 4 3; }
.zon-fig .zt { font: 700 24px var(--font-body); fill: #16201B; text-anchor: middle; } .zon-fig .zt.mu { fill: var(--muted); } .zon-fig .zd { font: 20px var(--font-data); fill: var(--muted); } .zon-fig .zd.zin { fill: #3d4843; }
.zon-l { display: grid; gap: 10px; margin: 14px 0; }
.zon-c { border: 1px solid var(--line, #DDE2DF); border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.zon-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.zon-h b { font-size: 16px; }
.zon-ip { font: 700 13px system-ui; padding: 2px 9px; border-radius: 999px; background: #E0EAF6; color: #234b85; }
.zon-v { color: var(--muted); font-size: 14px; margin-bottom: 4px; }

/* Varning med röd ram, till exempel brandrisk vid laddning i vanligt uttag */
.kbwarn { border: 2px solid #D92D20; border-radius: 12px; padding: 10px 12px; margin: 8px 0 12px; font-size: 14px; line-height: 1.45; }
.kbwarn b { color: #D92D20; display: block; margin-bottom: 2px; }
.kbt.info { background: var(--surface-2); color: var(--muted, var(--fg)); }

/* Tidigare sökningar under Indata: mindre text, en lugn spalt */
.histbox { margin: 12px 0 0; padding: 12px 16px; border-radius: 16px; background: var(--surface-2); font-size: 13px; }
.histbox .fhist { margin: 0; border: 0; padding: 0; }
.histbox .fh-h span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, var(--fg)); }
.histbox button { font-size: 13px; }

/* Hela anläggningen: lika breda knappar med ram, fält som linjerar */
.anl-act { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.anl-act .toggle { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 8px; font-weight: 600; text-align: center; min-height: 44px; }
.anl-reset { text-align: right; margin: 0 0 16px; font-size: 13px; }
.anl-how { margin-top: 16px; }
#xb-x-anl .fgrid { align-items: end; }
#xb-x-anl .fgrid .field label { min-height: 20px; }
/* Omvandlaren: valrutorna får bredare kolumn så att "3-fas 400 V" och "Skenbar effekt (kVA)" inte klipps på smal skärm (2026-11-23) */
#xb-x-conv .fgrid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.finfo .fsec{display:block}.finfo .fsec+.fsec{margin-top:8px}#infoDlg h3{font-size:15px;margin:14px 0 4px}
/* Mina sidor: lista med undersidor. Färgen följer appen: grönt i Ellådan, blått från Projekthjärnan. */
#profDlg .ms-me { display: flex; align-items: center; gap: 14px; width: 100%; margin: 14px 0 18px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
#profDlg .ms-av { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 19px; }
#profDlg .ms-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#profDlg .ms-who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#profDlg .ms-who span { font-size: 13.5px; color: var(--muted); }
#profDlg .ms-chip { margin-left: auto; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
#profDlg .ms-grp { background: var(--surface); border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
#profDlg .ms-om { padding: 16px 18px; }
#profDlg .ms-om p { margin: 0; line-height: 1.5; }
#profDlg .ms-om .ms-slogan { margin-top: 10px; font-weight: 600; }
#profDlg .ms-row { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 10px 16px; border: 0; background: none; color: var(--fg); font: inherit; font-size: 16px; text-align: left; text-decoration: none; cursor: pointer; }
#profDlg .ms-row + .ms-row::before { content: ""; position: absolute; left: 60px; right: 0; top: 0; border-top: 1px solid var(--line); }
#profDlg .ms-row:active { background: var(--surface-2, rgba(0,0,0,.03)); }
#profDlg .ms-static { cursor: default; }
#profDlg .ms-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); }
#profDlg .ms-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#profDlg .ms-l { flex: 1; min-width: 0; }
#profDlg .ms-v { color: var(--muted); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
#profDlg .ms-ch { color: var(--muted); opacity: .55; font-size: 22px; line-height: 1; }
#profDlg .ms-red { justify-content: center; color: var(--bad); font-weight: 600; }
#profDlg .ms-back { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 16px; font-weight: 700; color: var(--accent); cursor: pointer; }
#profDlg .ms-h { margin: 6px 0 14px; font-size: 28px; letter-spacing: -.01em; }
#profDlg .ms-lab { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 16px 8px; }
#profDlg .ms-h + .ms-lab { margin-top: 4px; }
#profDlg .ms-foot { font-size: 13px; color: var(--muted); margin: -6px 16px 14px; line-height: 1.45; }
#profDlg .profsec { margin-top: 0; margin-bottom: 14px; }
#profDlg .ms-sw { appearance: none; -webkit-appearance: none; flex: none; width: 51px; height: 31px; margin: 0; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
#profDlg .ms-sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
#profDlg .ms-sw:checked { background: var(--accent); }
#profDlg .ms-sw:checked::after { transform: translateX(20px); }
#profDlg .ms-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Startskärm (se js/splash.js) */
.splash { position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: linear-gradient(160deg, #2E9A66 0%, #1E7A4D 100%); color: #fff; transition: opacity .4s ease; }
.splash img { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 18px 40px rgba(0,0,0,.22); animation: splashIn .7s cubic-bezier(.2,.8,.2,1) both; }
.splash .splash-n { font: 800 40px/1.05 -apple-system, "SF Pro Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -.02em; animation: splashIn .7s .12s cubic-bezier(.2,.8,.2,1) both; }
.splash .splash-s { font: 500 16px/1.3 -apple-system, "Segoe UI", system-ui, sans-serif; opacity: .8; margin-top: -10px; animation: splashIn .7s .24s cubic-bezier(.2,.8,.2,1) both; }
.splash .splash-mark { height: 188px; width: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.22)); animation: splashIn .7s cubic-bezier(.2,.8,.2,1) both; }
.splash .splash-mark.hj { height: 180px; }
.splash .splash-n { font-size: 34px !important; margin-top: 22px; }
.splash .splash-s { font-size: 18px !important; margin-top: -12px !important; }
.splash .splash-bar { position: absolute; left: 50%; bottom: 96px; width: 200px; margin-left: -100px; height: 4px; border-radius: 9px; background: rgba(255,255,255,.22); overflow: hidden; }
.splash .splash-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 9px; transition: width .25s cubic-bezier(.3,.7,.3,1); }
.splash .splash-f { position: absolute; bottom: 40px; left: 0; right: 0; text-align: center; font: 500 12px/1.3 -apple-system, "Segoe UI", system-ui, sans-serif; opacity: .75; }
.splash.splash-out { opacity: 0; pointer-events: none; }
html.splash-on, html.splash-on body { overflow: hidden; }
@keyframes splashIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .splash img, .splash .splash-n, .splash .splash-s { animation: none; } }
/* Menyn: konto överst, Prova Pro, grupper med ikoner (js/reklam.js) */
.menulist .m-acc { display: flex; align-items: center; gap: 12px; margin: 6px 8px 8px; padding: 10px 12px; width: calc(100% - 16px); border-radius: 14px; background: var(--surface-2); }
.menulist .m-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.menulist .m-who { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.menulist .m-who b { font-size: 15.5px; }
.menulist .m-who span { font-size: 12.5px; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menulist .m-ch { margin-left: auto; color: var(--muted); font-size: 20px; }
.menulist .m-up { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 8px 6px; width: calc(100% - 16px); border-radius: 12px; background: #1B2A22; color: #fff !important; font-size: 14.5px; }
.menulist .m-up b { color: #F2C94C; }
.menulist .m-up:hover { background: #24382D; }
.menulist .mrow { display: flex; align-items: center; gap: 12px; }
.menulist .mic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); }
.menulist .mic svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menulist .mgrp-ver { border-top: 0 !important; }
/* Logga in i menyraden för den som inte är inloggad */
.menubtn.loginbtn { width: auto; padding: 0 14px; border-radius: 999px; background: var(--accent); color: var(--accent-fg, #fff); border-color: var(--accent); font: inherit; font-weight: 700; font-size: 14px; white-space: nowrap; }
/* Reklam för Pro: kort sist på sidan (B) */
.adb { position: relative; display: flex; gap: 14px; margin: 22px 0 6px; padding: 16px 40px 16px 16px; border-radius: 18px; background: linear-gradient(135deg, #FFF8E1, #FDEFC4); border: 1px solid #F2DFA0; color: #3d3210; }
.adb .mic, .adb-i .mic { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.adb-i .mic svg { width: 21px; height: 21px; fill: none; stroke: #8A6A00; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adb-t b { display: block; font-size: 16px; color: #2a230b; }
.adb-t span { display: block; font-size: 13.5px; line-height: 1.4; margin-top: 3px; color: #5c4a12; }
.adb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; }
.adb-go { border: 0; border-radius: 999px; background: #1B2A22; color: #fff; font: inherit; font-weight: 700; font-size: 14px; padding: 9px 16px; cursor: pointer; }
.adb-l { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13.5px; color: #5c4a12; cursor: pointer; }
.adb-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: #8a7a4a; font-size: 20px; line-height: 1; cursor: pointer; }
.adb-x:hover { background: rgba(0,0,0,.05); }
/* Flytande rad (A), högst en gång om dagen */
.ada { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 900; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; border-radius: 16px; background: #1B2A22; color: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.28); animation: adaIn .35s ease-out; }
.ada .mic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(242,201,76,.18); }
.ada .mic svg { width: 18px; height: 18px; fill: none; stroke: #F2C94C; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ada b { display: block; font-size: 14.5px; }
.ada span { font-size: 12.5px; opacity: .75; }
.ada-go { margin-left: auto; flex: none; border: 0; border-radius: 999px; background: #F2C94C; color: #1b1b1b; font: inherit; font-weight: 800; font-size: 13.5px; padding: 8px 14px; cursor: pointer; }
.ada-x { flex: none; border: 0; background: none; color: #fff; opacity: .55; font-size: 20px; width: 30px; height: 30px; cursor: pointer; }
@keyframes adaIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ada { animation: none; } }
/* Prova Pro gratis: sidfot, resultat och Mina sidor */
.fbk-pro { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent); padding: 6px 0; cursor: pointer; margin-left: 12px; }
.pro-nudge { margin: 12px 0 0; }
.pro-nudge button { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--accent); cursor: pointer; }
#profDlg .ms-try { display: block; width: 100%; margin: -10px 0 16px; padding: 10px 16px; border: 0; border-radius: 12px; background: #1B2A22; color: #fff; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
html.ms-ph #profDlg .ms-try { background: #1d3a5f; }
/* Prissidan */
#prisDlg .pr-sub { color: var(--muted); font-size: 14px; margin: 10px 4px 14px; }
#prisDlg .pr-tg { display: flex; background: var(--surface-2, #E4E7E1); border-radius: 999px; padding: 3px; margin-bottom: 14px; }
#prisDlg .pr-tg button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 9px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
#prisDlg .pr-tg button.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
#prisDlg .pr-tg em { font-style: normal; color: var(--accent); font-size: 12px; margin-left: 4px; }
#prisDlg .pr-card { position: relative; background: var(--surface); border-radius: 20px; padding: 18px; margin-bottom: 12px; }
#prisDlg .pr-card h3 { margin: 0; font-size: 17px; }
#prisDlg .pr-hi { background: #1B2A22; color: #fff; }
#prisDlg .pr-hi h3 { color: #fff; }
#prisDlg .pr-price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
#prisDlg .pr-price small { font-size: 14px; font-weight: 500; opacity: .7; }
#prisDlg .pr-mini { font-size: 13px; color: var(--muted); }
#prisDlg .pr-hi .pr-mini { color: rgba(255,255,255,.7); }
#prisDlg .pr-list { list-style: none; margin: 10px 0 14px; padding: 0; font-size: 14px; line-height: 1.75; }
#prisDlg .pr-list li::before { content: "✓  "; color: var(--accent); font-weight: 800; }
#prisDlg .pr-hi .pr-list li::before { color: #F2C94C; }
#prisDlg .pr-btn { display: block; width: 100%; border: 0; border-radius: 999px; padding: 12px; text-align: center; font: inherit; font-size: 15px; font-weight: 700; background: var(--accent-soft); color: var(--accent); cursor: pointer; text-decoration: none; }
#prisDlg .pr-gold { background: #F2C94C; color: #1b1b1b; }
#prisDlg .pr-have { display: block; text-align: center; font-weight: 700; color: #F2C94C; padding: 8px; }
#prisDlg .pr-badge { position: absolute; top: 16px; right: 16px; background: #F2C94C; color: #1b1b1b; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
#prisDlg .pr-h { margin: 24px 4px 10px; font-size: 20px; scroll-margin-top: 80px; }
#prisDlg .pr-tbl { background: var(--surface); border-radius: 20px; padding: 4px 0; font-size: 13.5px; }
#prisDlg .pr-tr { display: grid; grid-template-columns: 1.7fr .7fr .6fr .8fr; gap: 4px; align-items: center; padding: 10px 14px; }
#prisDlg .pr-tr + .pr-tr { border-top: 1px solid var(--line); }
#prisDlg .pr-tr span { text-align: center; }
#prisDlg .pr-tr span:first-child { text-align: left; }
#prisDlg .pr-th { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
#prisDlg .pr-y { color: var(--accent); font-weight: 800; }
#prisDlg .pr-n { color: var(--muted); opacity: .5; }
.bar .barr .menubtn.loginbtn { width: auto !important; min-width: 0 !important; height: 34px; padding: 0 13px !important; margin: 0 4px; font-size: 13.5px; background: var(--accent); color: #fff; border-radius: 999px; }
.bar .barr .menubtn.loginbtn:hover { background: var(--accent); filter: brightness(1.08); }
html.utloggad #bellBtn { display: none; }
/* Mina sidor och menyn: texter, värden och pilar på samma höjd; ljusare grönt i stället för nästan svart */
#profDlg .ms-l, #profDlg .ms-v, #profDlg .ms-ch { display: flex; align-items: center; height: 24px; line-height: 24px; }
#profDlg .ms-v { font-size: 16px; }
#profDlg .ms-ch { font-size: 22px; padding-bottom: 2px; }
.menulist .m-ch, .menulist .mrow { line-height: 24px; }
.menulist .m-up, #profDlg .ms-try, .ada, #prisDlg .pr-hi { background: linear-gradient(135deg, #2B9466, #1F7A50) !important; }
.menulist .m-up:hover { background: linear-gradient(135deg, #31A06F, #238556) !important; }
html.ms-ph #profDlg .ms-try { background: linear-gradient(135deg, #3A7CC6, #2B629F) !important; }
.adb-go { background: #1F7A50; }

/* Tips och trix (samma som i Projekthjärnan) */
.tips .tph { margin: 18px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } .tips .tph:first-child { margin-top: 0; }
.tpl { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }

/* Enhetlighet med Projekthjärnan: gubben bort för inloggade (Mina sidor finns i menyn), mjuk toning vid sidbyte, Fler tips i i-rutorna */
html:not(.utloggad) #profBtn:not(.loginbtn) { display: none; }
.fadein { animation: elfade .18s ease-out; }
@keyframes elfade { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fadein { animation: none; } }
.fi-more { margin: 14px 0 0; } .fi-more .linkish { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent, #17603D); cursor: pointer; }

/* Saknas kabeln? Sök på webben och tipsa oss. Kablar i exakt storlek direkt i resultatet. */
.kmiss .kmiss-b { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.kws-r { margin-top: 12px; border-top: 1px solid var(--line, #DFE4DC); padding-top: 10px; }
.kws-tag { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6B4F00; background: #FFF4D6; border-radius: 999px; padding: 3px 9px; margin-bottom: 6px; }
.kws-src a { color: var(--accent, #17603D); }
.gsl.kx { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.gsl.kx .kx-f { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.gsl.kx .kx-f .gsp { display: inline-flex; width: auto; margin: 0; }
.kx-h { margin: 8px 0 2px; font-size: 12.5px; font-weight: 700; color: var(--muted, #56635C); }

/* Lathundar (utvecklarläget, under uppbyggnad) */
.lbuild { background: #FFF4D6; color: #6B4F00; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; margin: 0 0 12px; }
.lath .lq { width: 100%; box-sizing: border-box; margin: 0 0 6px; font: inherit; font-size: 16px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--surface); color: inherit; box-shadow: inset 0 0 0 1px var(--line); }
.lath .lq:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.lgrp { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; }
.lcard { background: var(--surface); border-radius: 14px; margin: 0 0 8px; box-shadow: inset 0 0 0 1px var(--line); }
.lcard > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: block; }
.lcard > summary::-webkit-details-marker { display: none; }
.lcard .lh { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.lcard .ltag { font-size: 12px; font-weight: 700; color: var(--muted); }
.lcard .lk { display: block; color: var(--muted); margin-top: 4px; font-size: 14.5px; }
.lcard[open] > summary { border-bottom: 1px solid var(--line); }
.lcard .lb { padding: 4px 16px 14px; }
.lcard h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 6px; }
.lcard ul { margin: 0; padding-left: 18px; }
.lcard li { margin: 0 0 6px; line-height: 1.45; }
.lcard .lref { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* AI-svar i sökningen */
.gs-aic .aic-t { line-height: 1.5; }
.gs-aic .aic-t p { margin: 6px 0 0; }
.gs-aic .aic-t ul { margin: 6px 0 0; padding-left: 20px; }
.gs-aic .aic-t li { margin: 0 0 4px; }
.gs-aic .aic-wait { color: var(--muted); animation: aicp 1.2s ease-in-out infinite; }
@keyframes aicp { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .gs-aic .aic-wait { animation: none; } }
.gs-aic .aic-src { font-size: 13px; color: var(--muted); }
.gs-aic .gs-aimark { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.angra { display: flex; align-items: center; gap: 10px; padding: 10px 0; margin-bottom: 6px; border-bottom: 1px solid var(--line, #e5e5e5); font-size: 14px; color: var(--muted, #666); }
.angra span:first-child { flex: 1; }
.angra button { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 700; color: var(--accent-strong, var(--accent, #0a58ca)); cursor: pointer; }

.testa { display: inline-block; font: 800 11px/1.5 var(--font-body); color: #8A4B00; background: #FFE7C2; border: 1px solid #F0B866; border-radius: 999px; padding: 0 7px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; text-transform: none; letter-spacing: 0; }

/* Formler */
.xformula { font-family: var(--font-mono, ui-monospace, monospace); font-size: 20px; font-weight: 600; margin: 6px 0 10px; line-height: 1.5; }
.xfex { margin-top: 12px; }
.xfsel { display: flex; align-items: center; justify-content: space-between; width: 100%; background: var(--surface-2); border: 0; border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 600; font-size: 17px; color: inherit; cursor: pointer; }
.xfsel-ch { color: var(--muted); }
.xfsheet-bg { position: fixed; inset: 0; z-index: 400; background: rgba(20,30,25,.3); display: flex; align-items: flex-end; justify-content: center; }
.xfsheet { width: 100%; max-width: 560px; max-height: 80vh; overflow-y: auto; background: var(--surface, #fff); border-radius: 22px 22px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); animation: xfup .22s ease-out; }
@keyframes xfup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.xfgrab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.xfsh-t { font-weight: 700; font-size: 17px; padding: 4px 4px 6px; }
.xfopt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 4px; font: inherit; font-size: 16px; color: inherit; text-align: left; cursor: pointer; }
.xfopt small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.xfopt.on { color: var(--accent-text); font-weight: 700; }
.xfmark { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 2px; }
.xfmark:empty { display: none; }
/* Menyn: kategorier, sidorna glider in på en egen vy */
.menulist .mcat-h { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; font: inherit; font-weight: 600; color: inherit; text-align: left; padding: 10px; border-radius: 10px; cursor: pointer; }
.menulist .mcat-h:hover { background: var(--surface-2); }
.menulist .mcat-t { flex: 1; }
.menulist .mcat-ch { color: var(--muted); font-size: 20px; line-height: 1; }
.menulist.msub .mmain { display: none; }
.menulist .mview { animation: mslide .22s ease-out; }
@keyframes mslide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.menulist .mback { background: none; border: 0; font: inherit; font-weight: 600; color: var(--accent-text); padding: 8px 10px; cursor: pointer; }
.menulist .mvt { font-family: var(--font-display); font-weight: 800; font-size: 22px; padding: 2px 10px 10px; }
/* Ikoner i tvåton (ägarens val 2026-11-08): ljusgrön ruta med tunn ram, grön linje, ljusgul fyllning */
.menulist .mic { width: 32px; height: 32px; border-radius: 10px; background: #eef7f1; border: 1px solid #d4ecdd; box-sizing: border-box; }
.menulist .mic svg { width: 19px; height: 19px; stroke: #3c9a64; }
.menulist .mic svg .f { fill: #fbecb2; }
.menulist .mview .mic { width: 30px; height: 30px; border-radius: 9px; }
[data-theme="dark"] .menulist .mic { background: rgba(60,154,100,.16); border-color: rgba(60,154,100,.35); }
.ps-msg { font-size: 14px; color: var(--muted); }
.ps-warn { color: #8a1c1c; background: #fdecec; border: 1px solid #f3c2c2; border-radius: 10px; padding: 10px 12px; font-weight: 600; }
[data-theme="dark"] .ps-warn { color: #ffb4b4; background: rgba(220,60,60,.15); border-color: rgba(220,60,60,.4); }
/* Elsymboler: symbol och text centrerade, långa ord bryts i rutan */
.xsym { justify-content: flex-start; min-width: 0; }
.xsym svg { display: block; margin: 0 auto; }
.xsym span { display: block; width: 100%; font-size: 13.5px; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
/* Menyn: profilkort överst och den andra appen som ett färgat block längst ner (samma i båda apparna) */
.m-accrow { display: flex; align-items: center; gap: 6px; margin: 6px 8px 8px; }
.m-accrow > .m-acc { flex: 1; margin: 0 !important; width: auto !important; }
.m-gear { flex: none; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--surface-2); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.appblk { margin: 10px 8px 6px; border-radius: 16px; overflow: hidden; color: #fff; }
.appblk.el { background: linear-gradient(160deg, #2E9A66, #1D6B45); }
.appblk.hj { background: linear-gradient(160deg, #3A7CC6, #22508A); }
.appblk button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; color: #fff; font: inherit; text-align: left; padding: 12px 14px; cursor: pointer; }
.appblk button + button { border-top: 1px solid rgba(255,255,255,.18); }
.appblk .ab-i { flex: none; width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.appblk .ab-t { flex: 1; display: flex; flex-direction: column; } .appblk .ab-t b { font-weight: 700; } .appblk .ab-t small { opacity: .8; font-size: 12.5px; }
.appblk .ab-ch { font-size: 20px; opacity: .85; }
.alts .altcard { display: block; width: 100%; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; background: var(--surface-2); border-radius: 14px; padding: 11px 13px; margin: 0 0 8px; }
.alts .altcard b { display: block; font-size: 15px; margin-bottom: 3px; }
.alts .altcard span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.gsc-k.gsc-link { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gsc-k.gsc-link::after { content: ' ›'; }

/* Menyn: står still i sidled */
#menuList { overflow-x: hidden; touch-action: pan-y; overscroll-behavior: contain; }
#menuList .mmain, #menuList .mview { max-width: 100%; }
.menulist a.mrow { display: flex !important; flex-direction: row !important; align-items: center; }
.menulist .mgrp-solo:has(+ .mgrp-solo) { padding-bottom: 0; }
.menulist .mgrp-solo + .mgrp-solo { padding-top: 0; }

/* Prick: nya notiser i Projekthjärnan */
.hjdot { position: relative; }
.hjdot::after { content: ''; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #e5533d; box-shadow: 0 0 0 2px var(--surface, #fff); pointer-events: none; }
.qk .nc, .eyebrow .nc { text-transform: none; }
/* Segmentval i Indata: etiketterna delar bredden lika, som i Snabbkalkylatorn */
.seg label { flex: 1 1 0; min-width: 0; }
/* Typsnitt: knappar ärver appens typsnitt (annars visas Arial) */
.backbtn, .flag, .adb-x, .kbq, .modal-x, .a2hs-x { font-family: inherit; }
/* Tryckytor minst 44 px (WCAG 2.5.5 / Apple HIG) utan att utseendet ändras: osynlig ::after runt knappen */
.menubtn, .flag, .backbtn, .fdpk, .tab, .a2hs-x { position: relative; }
.adb-x::after, .flag::after, .backbtn::after, .fdpk::after, .tab::after, .a2hs-x::after { content: ""; position: absolute; }
.flag::after { inset: -8px -5px; }
.backbtn::after { inset: -2px; }
.fdpk::after { inset: -12px -6px; }
.tab::after { inset: -3px 0; }
.tabs { padding-block: 3px; margin-block-end: -3px; }
.adb-x::after { inset: -6px; }
.a2hs-x::after { inset: -11px -12px; }
.menubtn:not(.loginbtn)::after { content: ""; position: absolute; inset: -2px 0; }
/* Märket för webbläsarens bakåtknapp visas bara när appens tillbaka-knapp syns (2026-11-22) */
.backbtn { position: relative; }
.bakat-mk { position: absolute; left: 0; top: calc(100% + 14px); /* under toppradens kant, inte över den (2026-11-23) */ display: flex; gap: 2px; font-size: 10px; white-space: nowrap; pointer-events: none; z-index: 5; }
/* Decimalfält (text med decimalkomma) ser ut som sifferfälten (2026-11-22) */
input[type="text"][inputmode="decimal"] { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.field > input[type="text"][inputmode="decimal"] { height: 46px; padding: 0 12px; }
/* Etiketter med i-knapp: samma höjd som utan, så att fälten linjerar (2026-11-22) */
.field > label { line-height: 18px; min-height: 18px; }
.field > label .fi { vertical-align: top; top: 1px; }
/* Indata: fälten i samma rad linjerar nedtill även när en etikett bryts på två rader (2026-11-22) */
.fields > .field:not(.full) { justify-content: flex-end; }

/* Menyposten till Projekthjärnan i appens färg (2026-11-24) */
#menuList .mi.m-app { display: flex; align-items: center; gap: 12px; color: #fff; background: #2F6DB5; border-radius: 14px; font-weight: 700; }
#menuList .mi.m-app img { border-radius: 8px; flex: none; }
#menuList .mi.m-app span { margin-left: auto; }
/* Med appväxlaren blir sidhuvudet för brett på smala skärmar: språkvalet finns kvar i Mina sidor (2026-11-24) */
@media (max-width: 420px) { .has-appsw .langsel { display: none !important; } }
/* Kort ruta längst ner (utvecklarläget, support), 2026-11-24 */
.kv-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 3000; background: var(--ink); color: var(--ink-fg); padding: 12px 16px; border-radius: 14px; font-size: 14px; max-width: min(520px, calc(100vw - 32px)); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.kv-toast[hidden] { display: none; }

/* Tillbakapilen i toppraden döljs (ägarbeslut 2026-12-04): toppraden ser likadan ut i alla vyer, som i Projekthjärnan. Knappen finns kvar osynlig så att svep tillbaka fungerar. */
#backBtn{display:none!important}
/* Matningskedjan som träd (2026-12-04): lodrätt, inga zoomande diagram */
.kt { margin: 16px 0 14px; }
.kt-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.kt-h .xh { margin: 0; }
.kt-b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kt-l, .kt-l ul { list-style: none; margin: 0; padding: 0; }
.kt-l ul { margin-left: 10px; padding-left: 12px; border-left: 2px solid var(--line); }
.kt-l li { position: relative; margin-top: 8px; }
.kt-l ul > li::before { content: ''; position: absolute; left: -12px; top: 22px; width: 10px; border-top: 2px solid var(--line); }
.kt-c { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 10px 12px; cursor: pointer; }
.kt-src { cursor: default; background: var(--accent-soft); box-shadow: none; }
.kt-c.bad { box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--bad); }
.kt-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kt-f { font-size: 12px; color: var(--muted); white-space: nowrap; }
.kt-v { font-weight: 700; margin-left: 2px; } .kt-v.ok { color: var(--ok); } .kt-v.bad { color: var(--bad); } .kt-v.unk { color: var(--muted); }
.kt-s { font-size: 13px; color: var(--muted); }
.kt-m { font-size: 13px; font-variant-numeric: tabular-nums; }
