:root {
  --brand-dark: #171923;
  --brand-surface: #f2eee5;
  --brand-paper: #ffffff;
  --brand-body: #28332d;
  --brand-muted: #536259;
  --brand-green: #3f7a56;
  --brand-ochre: #c29a3a;
  --brand-violet: #6d5aa8;
  --brand-blue: #3e6f8f;
  --brand-red: #9a4b4f;
  --ink: var(--brand-body);
  --ink-soft: #273129;
  --muted: var(--brand-muted);
  --surface: var(--brand-surface);
  --paper: var(--brand-paper);
  --line: #d5d0c5;
  --dark: var(--brand-dark);
  --dark-2: #20222b;
  --green: var(--brand-green);
  --blue: var(--brand-blue);
  --purple: var(--brand-violet);
  --red: var(--brand-red);
  --gold: var(--brand-ochre);
  --radius: 10px;
  --shadow: 0 18px 44px rgba(23, 25, 35, 0.12);
  --page-max: 1760px;
  color-scheme: light;
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  min-height: 100vh;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}
button, input, select, textarea {
  font: inherit;
}
a { color: inherit; }

.login-view {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--brand-dark);
}
.login-view::before,
.login-view::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.login-view::before {
  width: clamp(340px, 42vw, 600px);
  aspect-ratio: 1;
  right: max(-220px, -9vw);
  bottom: max(-250px, -18vw);
  border: clamp(32px, 5vw, 72px) solid rgba(63, 122, 86, 0.42);
  border-left-color: rgba(194, 154, 58, 0.44);
  border-bottom-color: rgba(62, 111, 143, 0.36);
  border-radius: 30px;
  transform: rotate(18deg);
}
.login-view::after {
  width: min(58vw, 620px);
  height: 1px;
  left: 6vw;
  top: 20vh;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 44px 0 rgba(63, 122, 86, 0.44),
    0 88px 0 rgba(62, 111, 143, 0.38),
    0 132px 0 rgba(194, 154, 58, 0.46);
}
.login-card {
  position: relative;
  z-index: 10;
  width: min(100%, 470px);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}
.login-card h1,
.topbar h1,
.content-panel h2,
.content-panel h3 {
  margin: 0;
  line-height: 1.05;
}
.login-brand-lockup {
  display: block;
  width: min(100%, 285px);
  height: auto;
  margin: 0 0 1.35rem;
}
.login-card p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.stack { display: grid; gap: 1rem; }
label { display: grid; gap: 0.4rem; font-weight: 800; }
label span { font-size: 0.78rem; letter-spacing: 0; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
}
textarea {
  min-height: 420px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.45;
}
.button {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
  font-weight: 900;
  cursor: pointer;
}
.button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.login-card .button.primary {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.button.small { padding: 0.55rem 0.7rem; font-size: 0.9rem; }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}
.status {
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.status.error { border-color: #c77478; color: #7b2028; background: #fff2f2; }
.status.ok { border-color: #8dbd95; color: #1f5d35; background: #edf8ef; }
.status.warning { border-color: #d2b461; color: #5b3a00; background: #fff7df; }
.muted {
  color: var(--muted);
}
.mfa-panel h2 {
  margin: 0;
  font-size: 1.5rem;
}
.mfa-setup-box {
  display: grid;
  gap: 0.8rem;
}
.mfa-qr {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.mfa-qr span {
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 900;
}
.mfa-qr svg {
  display: block;
  width: min(240px, 100%);
  height: auto;
  image-rendering: pixelated;
}
.mfa-secret-box {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.mfa-secret-box span {
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 900;
}
.mfa-secret-box strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.mfa-secret-box input {
  font-size: 0.82rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.app-root {
  min-height: 100vh;
}
.home-view {
  min-height: 100vh;
  padding: clamp(0.9rem, 2.4vw, 2rem);
}
.home-view.compact-home-view {
  display: grid;
  align-items: start;
  background: var(--brand-dark);
}
.home-shell {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  width: min(100%, var(--page-max));
  margin-inline: auto;
}
.home-shell-compact {
  width: min(100%, 1180px);
}
.home-landing {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  min-height: min(74vh, 660px);
  padding: clamp(1.2rem, 4vw, 3rem);
  color: #fff;
}
.home-landing::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: max(-190px, -12vw);
  bottom: max(-210px, -17vw);
  width: clamp(280px, 36vw, 520px);
  aspect-ratio: 1;
  border: clamp(26px, 4vw, 56px) solid rgba(63, 122, 86, 0.34);
  border-left-color: rgba(194, 154, 58, 0.38);
  border-bottom-color: rgba(62, 111, 143, 0.30);
  border-radius: 26px;
  transform: rotate(18deg);
}
.home-workspace-board {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.3rem);
  min-height: min(88vh, 780px);
  padding: clamp(1rem, 2.5vw, 2rem);
  color: #fff;
  overflow: hidden;
}
.home-workspace-board::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: max(-190px, -12vw);
  bottom: max(-220px, -17vw);
  width: clamp(280px, 34vw, 500px);
  aspect-ratio: 1;
  border: clamp(24px, 3.6vw, 52px) solid rgba(63, 122, 86, 0.28);
  border-left-color: rgba(194, 154, 58, 0.34);
  border-bottom-color: rgba(62, 111, 143, 0.28);
  border-radius: 24px;
  transform: rotate(18deg);
}
.home-workspace-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-items: start;
}
.home-brand-stack {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  justify-items: start;
  min-width: 0;
}
.home-admin-menu {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  padding: 0.42rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}
.home-admin-menu:hover,
.home-admin-menu:focus-visible {
  background: rgba(255, 255, 255, 0.11);
}
.home-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}
.home-module-card {
  min-height: 128px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: space-between;
  gap: 0.8rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 5px solid var(--brand-green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 1rem;
  cursor: pointer;
}
.home-module-card:hover,
.home-module-card:focus-visible {
  background: rgba(255, 255, 255, 0.10);
}
.home-module-card.technical { border-top-color: var(--brand-blue); }
.home-module-card.sales { border-top-color: var(--brand-ochre); }
.home-module-card.pricing { border-top-color: var(--brand-purple); }
.home-module-card strong {
  align-self: end;
  font-family: "Aptos Display", "Segoe UI Variable Display", Aptos, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.22rem, 1.8vw, 1.62rem);
  line-height: 1.08;
}
.home-compass-search {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  padding: clamp(0.9rem, 1.7vw, 1.2rem);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}
.home-compass-search-head {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}
.home-compass-search h2 {
  margin: 0;
  font-family: "Aptos Display", "Segoe UI Variable Display", Aptos, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
}
.home-compass-clear {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  padding: 0.35rem 0.55rem;
  font-weight: 900;
  cursor: pointer;
}
.home-compass-clear:hover,
.home-compass-clear:focus-visible {
  background: rgba(255, 255, 255, 0.10);
}
.home-compass-search-form .module-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem 0.8rem;
  align-items: end;
}
.home-compass-search-form .module-search-form label {
  grid-column: 1;
}
.home-compass-search-form .module-search-form label span {
  color: rgba(255, 255, 255, 0.66);
}
.home-compass-search-form .module-search-form input {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.95);
}
.home-compass-search-form .module-search-form .compact-actions {
  grid-column: 2;
  margin: 0;
  align-self: end;
  justify-content: flex-end;
}
.home-compass-search-form .module-search-form .button {
  min-height: 48px;
}
.home-compass-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.home-compass-prompt {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.84);
  padding: 0.48rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
}
.home-compass-prompt:hover,
.home-compass-prompt:focus-visible {
  background: rgba(255, 255, 255, 0.10);
}
.home-compass-answer {
  max-height: min(52vh, 620px);
  overflow: auto;
  padding-right: 0.15rem;
}
.home-compass-answer .ai-answer-card {
  color: var(--ink);
  box-shadow: none;
}
.home-compass-answer .ai-answer-section,
.home-compass-answer .ai-answer-section h4,
.home-compass-answer .ai-answer-section li {
  color: var(--ink);
}
.home-compass-panel {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-content: center;
}
.home-lockup {
  display: block;
  width: min(100%, 330px);
  height: auto;
}
.home-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.85rem;
  max-width: 640px;
}
.home-primary-action {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 0.85rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 5px solid var(--brand-green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 1rem;
  cursor: pointer;
}
.home-primary-action.technical {
  border-top-color: var(--brand-blue);
}
.home-primary-action:hover,
.home-primary-action:focus-visible,
.home-utility-link:hover,
.home-utility-link:focus-visible {
  background: rgba(255, 255, 255, 0.10);
}
.home-action-kicker {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.home-primary-action strong {
  font-family: "Aptos Display", "Segoe UI Variable Display", Aptos, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.1;
}
.home-utility-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.home-utility-link {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  padding: 0.62rem 0.75rem;
  font-weight: 850;
  cursor: pointer;
}
.home-workspace-card {
  display: grid;
  gap: 0.62rem;
  align-self: center;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}
.home-workspace-card .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
}
.home-workspace-user {
  display: block;
  min-width: 0;
  color: #fff;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-workspace-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.home-workspace-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.home-activity-list {
  display: grid;
  gap: 0.48rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.home-activity-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
}
.home-activity-kind {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 999px;
  background: var(--brand-green);
}
.home-activity-kind.release {
  background: var(--brand-ochre);
}
.home-activity-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-activity-list time {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  white-space: nowrap;
}
.home-empty-activity {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}
.module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  min-height: clamp(124px, 12vw, 164px);
  padding: clamp(1rem, 2.4vw, 1.7rem);
  background: var(--brand-dark);
  color: #fff;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 48px rgba(20, 25, 34, 0.16);
}
.module-header h1 {
  margin: 0;
  font-family: "Aptos Display", "Segoe UI Variable Display", Aptos, "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.module-lockup {
  display: block;
  width: min(100%, 315px);
  height: auto;
  margin-bottom: 0.8rem;
}
.module-title-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}
.module-header p {
  max-width: 76ch;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 0.9rem;
}
.module-card {
  min-height: clamp(164px, 14vw, 210px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: clamp(0.85rem, 1.5vw, 1.1rem);
  text-align: left;
  border: 1px solid var(--line);
  border-top: 6px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1rem, 2.4vw, 1.45rem);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(20, 25, 34, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
.module-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(20, 25, 34, 0.11);
}
.module-card:focus-visible {
  transform: translateY(-2px);
}
.module-card-services { border-top-color: var(--green); }
.module-card-technical { border-top-color: var(--blue); }
.module-card-pricing { border-top-color: var(--gold); }
.module-card-ai { border-top-color: var(--purple); }
.module-card-readiness { border-top-color: var(--red); }
.module-card-admin {
  min-height: auto;
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto;
  align-items: center;
  padding-block: 1rem;
  border-top-color: var(--dark);
}
.module-card-admin strong { align-self: center; }
.module-card-admin p { align-self: center; }
.module-card strong {
  display: block;
  align-self: end;
  font-family: "Aptos Display", "Segoe UI Variable Display", Aptos, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
}
.module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.module-meta {
  align-self: flex-start;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.7);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: clamp(280px, 18vw, 360px) minmax(0, 1fr);
}
.sidebar {
  background: var(--dark);
  color: #fff;
  padding: 1.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.brand {
  display: grid;
  gap: 0.55rem;
  align-items: start;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-lockup {
  display: block;
  width: min(100%, 210px);
  height: auto;
}
.brand span { color: rgba(255, 255, 255, 0.7); }
.service-search {
  margin-top: 1rem;
  color: #fff;
}
.service-search span {
  color: rgba(255, 255, 255, 0.68);
}
.service-search input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.service-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.service-tree { display: grid; gap: 1rem; margin-top: 1rem; }
.tree-empty {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}
.tree-group {
  display: grid;
  gap: 0.45rem;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  padding-left: 0.75rem;
}
.tree-group h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.66);
}
.tree-group h2 small {
  display: inline-grid;
  min-width: 1.4rem;
  height: 1.4rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
}
.tree-branch-toggle {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.8;
}
.tree-branch-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}
.tree-children {
  display: grid;
  gap: 0.45rem;
}
.tree-button {
  width: 100%;
  display: grid;
  gap: 0.25rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left-width: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
}
.tree-button span { color: rgba(255, 255, 255, 0.68); font-size: 0.88rem; }
.tree-button.active { background: rgba(255, 255, 255, 0.17); }
.branch-huvudtjanst { border-left-color: var(--green); }
.branch-arbetsplats { border-left-color: var(--blue); }
.branch-sakerhet { border-left-color: var(--red); }
.branch-ai { border-left-color: var(--purple); }
.branch-drift { border-left-color: var(--gold); }
.branch-kommunikation { border-left-color: var(--blue); }
.branch-migration { border-left-color: var(--gold); }
.branch-radgivning { border-left-color: var(--blue); }
.branch-default { border-left-color: var(--gold); }

.workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 3vw, 2rem);
  background: var(--dark);
  color: #fff;
}
.topbar h1 { font-size: clamp(2rem, 5vw, 4rem); overflow-wrap: anywhere; }
.topbar-module-button {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  font: inherit;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
}
.topbar .eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.topbar .eyebrow span::before {
  content: "·";
  margin-right: 0.45rem;
  color: rgba(255, 255, 255, 0.42);
}
.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 950;
  color: var(--blue);
}
.topbar .eyebrow { color: rgba(255, 255, 255, 0.62); }
.tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.8rem clamp(1rem, 3vw, 2rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.tab-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 0.55rem 0.85rem;
  font-weight: 900;
  cursor: pointer;
}
.tab-button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.content-panel {
  min-width: 0;
  width: min(100%, var(--page-max));
  padding: clamp(1rem, 3vw, 2rem);
  justify-self: center;
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
  align-items: start;
}
.card,
.package-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 8px 24px rgba(20, 25, 34, 0.06);
  min-width: 0;
}
.card.dark {
  background: var(--dark);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}
.content-panel p,
.content-panel li {
  color: #33413a;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.card.dark p,
.card.dark li { color: rgba(255, 255, 255, 0.78); }
.package-grid,
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.package-card {
  border-top: 8px solid var(--green);
}
.package-card:nth-child(2) { border-top-color: var(--blue); }
.package-card:nth-child(3) { border-top-color: var(--purple); }
.package-card:nth-child(4) { border-top-color: var(--red); }
.package-card:nth-child(5) { border-top-color: var(--gold); }
.package-card ul,
.card ul { padding-left: 1.2rem; }
.package-fit {
  font-weight: 800;
}
.service-media-card {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0.7rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.service-media-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(12, 32, 27, 0.12);
  border-radius: 6px;
  background: #fff;
}
.service-media-card figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}
.summary-pricing-section {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf5;
}
.summary-pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}
.summary-pricing-head h3,
.summary-package-price-card h4 {
  margin: 0;
}
.summary-pricing-head p {
  margin: 0;
}
.summary-pricing-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(49, 125, 86, 0.32);
  border-radius: 999px;
  background: #edf8ef;
  color: var(--green);
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 950;
}
.summary-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 0.8rem;
}
.summary-package-price-card {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 6px solid var(--green);
  border-radius: 8px;
  background: #fff;
  padding: 0.9rem;
}
.summary-package-price-card:nth-child(2) { border-top-color: var(--blue); }
.summary-package-price-card:nth-child(3) { border-top-color: var(--purple); }
.summary-package-price-card:nth-child(4) { border-top-color: var(--red); }
.summary-package-price-card:nth-child(5) { border-top-color: var(--gold); }
.summary-package-price-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}
.summary-package-price-top > span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  padding: 0.22rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}
.summary-package-price-top p,
.summary-package-includes {
  margin: 0.35rem 0 0;
}
.summary-price-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.summary-price-values > div {
  display: grid;
  gap: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f5ef;
  padding: 0.65rem;
}
.summary-price-values span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}
.summary-price-values strong {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.calc-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.admin-tab-shell {
  display: grid;
  gap: 1rem;
}
.admin-topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 0.55rem;
}
.admin-topic-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0.45rem 0.75rem;
  font-weight: 950;
  cursor: pointer;
}
.admin-topic-tab.active {
  border-color: rgba(49, 125, 86, 0.45);
  background: var(--green);
  color: #fff;
}
.admin-tab-panel {
  min-width: 0;
}
.password-manager-admin {
  display: grid;
  gap: 1.1rem;
}
.password-manager-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
}
.password-manager-warning {
  border-left: 6px solid var(--green);
}
.password-vault-hero {
  overflow: hidden;
  border: 1px solid rgba(63, 125, 88, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 4%, rgba(63, 125, 88, 0.32), transparent 34%),
    linear-gradient(135deg, #17211f 0%, #203c35 100%);
  color: #fff;
  padding: clamp(1.1rem, 2vw, 1.6rem);
}
.password-vault-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 1.2rem;
  align-items: start;
}
.password-vault-hero h2,
.password-vault-hero p {
  margin: 0;
}
.password-vault-hero h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}
.password-vault-hero p {
  max-width: 760px;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.65;
}
.password-vault-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.password-vault-metric {
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.85rem;
}
.password-vault-metric strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}
.password-vault-metric span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 850;
}
.password-vault-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
}
.password-vault-search {
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.password-vault-search input {
  flex: 1 1 280px;
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.96);
}
.password-vault-key-status {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.84rem;
  font-weight: 900;
}
.password-vault-form {
  align-self: start;
}
.password-vault-form-panel {
  position: sticky;
  top: 1rem;
  border-color: rgba(63, 125, 88, 0.25);
  background: linear-gradient(180deg, #fffdf8 0%, #f5efe3 100%);
}
.password-vault-form select {
  width: 100%;
}
.password-vault-form-head h3,
.password-vault-form-head p {
  margin: 0;
}
.password-vault-form-head h3 {
  font-size: 1.4rem;
}
.password-vault-form-head p {
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.55;
}
.password-vault-clear-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.password-vault-list-shell {
  display: grid;
  gap: 0.85rem;
}
.password-vault-list-head h3,
.password-vault-list-head p {
  margin: 0;
}
.password-vault-list-head h3 {
  font-size: 1.55rem;
}
.password-vault-list-head p {
  margin-top: 0.25rem;
}
.password-vault-list {
  display: grid;
  gap: 0.85rem;
}
.password-vault-card {
  display: grid;
  gap: 0.85rem;
  border: 1px solid #d5c8b4;
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: #fffdf8;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(20, 37, 31, 0.06);
}
.password-vault-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}
.password-vault-card-head h3,
.password-vault-card-head p {
  margin: 0;
}
.password-vault-card-head h3 {
  font-size: 1.35rem;
  line-height: 1.12;
}
.password-vault-card-head p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 850;
}
.vault-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.vault-badge {
  border: 1px solid #d3c5af;
  border-radius: 999px;
  background: #f3ecde;
  color: var(--ink);
  padding: 0.34rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 950;
}
.vault-badge.secure {
  border-color: rgba(63, 125, 88, 0.3);
  background: rgba(63, 125, 88, 0.11);
}
.vault-badge.otp {
  border-color: rgba(54, 95, 129, 0.3);
  background: rgba(54, 95, 129, 0.12);
}
.vault-badge.reference {
  border-color: rgba(201, 161, 58, 0.38);
  background: rgba(201, 161, 58, 0.13);
}
.password-vault-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.password-vault-meta-grid > div {
  min-width: 0;
  border: 1px solid #e0d5c4;
  border-radius: 8px;
  background: #fbf6ec;
  padding: 0.65rem 0.7rem;
}
.password-vault-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}
.password-vault-meta-grid strong,
.password-vault-meta-grid a {
  display: block;
  margin-top: 0.22rem;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.password-vault-note {
  margin: 0;
  border-top: 1px solid #e1d5c2;
  padding-top: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
}
.password-vault-actions {
  border-top: 1px solid #e1d5c2;
  padding-top: 0.75rem;
}
.button.danger {
  border-color: rgba(151, 72, 76, 0.35);
  color: #74373b;
}
.password-vault-secret-panel {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #cfe0d2;
  border-radius: 8px;
  background: #f2faf4;
}
.secret-output-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}
.secret-output {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.otp-output {
  grid-template-columns: auto auto auto;
  justify-content: start;
}
.otp-output strong {
  font-size: 1.25rem;
  letter-spacing: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.password-vault-empty {
  border-left: 6px solid var(--blue);
}
.email-signatures-admin {
  display: grid;
  gap: 1rem;
}
.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.signature-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  border-color: #d8ccb8;
  background: linear-gradient(135deg, #fffdf7 0%, #f4efe2 100%);
  box-shadow: 0 14px 36px rgba(20, 37, 31, 0.08);
}
.signature-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.signature-card-head h3,
.signature-card-head p {
  margin: 0;
}
.signature-card-head p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-weight: 850;
}
.signature-preview {
  min-width: 0;
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid #c9bda8;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(63, 125, 88, 0.08), rgba(54, 95, 129, 0.06)),
    #eee7d9;
}
.signature-preview > table {
  box-shadow: 0 12px 26px rgba(20, 37, 31, 0.12);
}
.signature-copy-buffer {
  position: fixed;
  top: 0;
  left: -10000px;
  z-index: -1;
  width: 650px;
  background: #fff;
  color: #14251f;
}
.commercial-editor-grid {
  margin-top: 1rem;
}
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}
.checkbox-group legend {
  width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.35rem 0.6rem;
  font-weight: 850;
}
.checkbox-group input {
  width: auto;
  min-height: 0;
}
.admin-wide-card {
  grid-column: 1 / -1;
}
.admin-wide-panel {
  grid-column: 1 / -1;
}
.runtime-status-card {
  align-items: start;
}
.runtime-status-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.runtime-status-badge {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}
.runtime-status-badge.ok { border-color: rgba(49, 125, 86, 0.38); color: var(--green); }
.runtime-status-badge.warn { border-color: rgba(189, 139, 55, 0.42); color: #8a5d14; }
.runtime-status-badge.fail { border-color: rgba(167, 74, 60, 0.42); color: var(--red); }
.runtime-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.runtime-check-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}
.runtime-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
}
.runtime-check.ok { border-left-color: var(--green); }
.runtime-check.warn { border-left-color: var(--gold); }
.runtime-check.fail { border-left-color: var(--red); }
.runtime-check.info { border-left-color: var(--blue); }
.runtime-check p,
.runtime-check small {
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.runtime-check small {
  display: block;
  line-height: 1.45;
}
.runtime-check > span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
}
.audit-table {
  min-width: 760px;
}
.audit-table td {
  vertical-align: top;
}
.user-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}
.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.user-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.user-row-main,
.user-row-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.user-row-main {
  flex-direction: column;
  align-items: flex-start;
}
.user-row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.user-row-actions select {
  min-width: 130px;
}
.article-picker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: min(100%, 420px);
}
.article-picker select {
  min-width: 220px;
}
.admin-article-table {
  min-width: 1080px;
  table-layout: fixed;
}
.admin-article-table th:nth-child(1),
.admin-article-table td:nth-child(1) { width: 230px; }
.admin-article-table th:nth-child(2),
.admin-article-table td:nth-child(2) { width: 190px; }
.admin-article-table th:nth-child(3),
.admin-article-table td:nth-child(3),
.admin-article-table th:nth-child(4),
.admin-article-table td:nth-child(4) { width: 118px; }
.admin-article-table th:nth-child(5),
.admin-article-table td:nth-child(5) { width: 98px; }
.admin-article-table th:nth-child(6),
.admin-article-table td:nth-child(6) { width: 96px; }
.admin-article-table th:nth-child(8),
.admin-article-table td:nth-child(8) { width: 90px; }
.admin-article-table textarea {
  min-width: 0;
  min-height: 56px;
  max-height: 74px;
  padding: 0.5rem 0.6rem;
  font-size: 0.88rem;
}
.admin-article-table .number-input {
  width: 100%;
  min-width: 0;
}
.admin-article-table .article-type-cell input {
  margin-top: 0.32rem;
}
.admin-article-table .compact-number-input {
  max-width: 82px;
}
.admin-article-table .article-row-actions {
  min-width: 0;
  justify-content: flex-start;
}
.admin-article-table .table-subtext {
  margin-top: 0;
  font-size: 0.76rem;
  line-height: 1.25;
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  white-space: nowrap;
}
.archived-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.archived-data-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #fffdf8;
}
.archived-data-section ul {
  margin: 0;
  padding-left: 1.15rem;
}
.release-notes-card {
  align-items: start;
}
.release-note-summary {
  display: grid;
  gap: 0.15rem;
  justify-items: end;
  min-width: 170px;
}
.release-note-summary strong {
  font-size: 1.15rem;
}
.release-note-summary span,
.release-column-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}
.release-notes-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 1rem;
  align-items: start;
}
.release-notes-column {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.release-column-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}
.release-column-head h3 {
  margin: 0;
}
.release-note-list {
  display: grid;
  gap: 0.6rem;
  max-height: 680px;
  overflow: auto;
  padding-right: 0.25rem;
}
.release-note-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.release-note-detail summary {
  display: grid;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.75rem;
}
.release-note-detail[open] summary {
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}
.release-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.release-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 900;
}
.release-pill.ok { border-color: rgba(49, 125, 86, 0.35); color: var(--green); }
.release-pill.warn { border-color: rgba(189, 139, 55, 0.45); color: #8a5d14; }
.release-pill.info { border-color: rgba(62, 111, 166, 0.35); color: var(--blue); }
.release-note-body {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
}
.release-summary {
  font-weight: 800;
}
.release-note-section {
  border-left: 4px solid var(--green);
  padding-left: 0.75rem;
}
.release-note-section h4 {
  margin: 0 0 0.25rem;
}
.release-note-section p,
.release-note-section ul {
  margin: 0;
}
.calculator-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
}
.package-calculator-grid {
  grid-template-columns: 1fr;
}
.package-calculator-grid .calc-result-panel {
  position: static;
}
.package-calculator-grid .calc-result-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.calculator-workbook {
  display: grid;
  gap: 1rem;
}
.workbook-card {
  overflow: hidden;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.calc-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}
.package-calc-table {
  min-width: 860px;
}
.global-calc-table {
  min-width: 980px;
}
.global-calc-table th:nth-child(1),
.global-calc-table td:nth-child(1) {
  min-width: 220px;
}
.global-calc-table th:nth-child(2),
.global-calc-table td:nth-child(2) {
  min-width: 115px;
}
.global-calc-table th:nth-child(4),
.global-calc-table td:nth-child(4),
.global-calc-table th:nth-child(5),
.global-calc-table td:nth-child(5) {
  min-width: 135px;
}
.calc-table th,
.calc-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.45rem;
  text-align: left;
  vertical-align: middle;
}
.calc-table th {
  background: #f7f5ef;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}
.calc-table input,
.calc-table select {
  min-height: 38px;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
}
.calc-table .number-output {
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}
.dual-number {
  line-height: 1.35;
}
.dual-number > span,
.dual-number > small {
  display: block;
}
.dual-number small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}
.table-subtext {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.admin-commercial-table th:first-child,
.admin-commercial-table td:first-child {
  min-width: 260px;
}
.admin-commercial-table input[type="number"] {
  width: 132px;
}
.admin-commercial-table input[type="text"],
.admin-commercial-table select {
  width: 132px;
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  white-space: nowrap;
}
.inline-check input {
  width: 18px;
  height: 18px;
  min-height: 0;
}
.rich-content {
  overflow-wrap: anywhere;
}
.rich-content p,
.rich-content div {
  margin-block: 0.25rem;
}
.rich-content img {
  display: block;
  max-width: min(100%, 860px);
  max-height: 420px;
  margin: 0.6rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}
.rich-content ul,
.rich-content ol,
.rich-content-list {
  padding-left: 1.25rem;
}
.rich-editor-shell {
  display: grid;
  gap: 0.45rem;
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f5ef;
}
.rich-tool-button,
.rich-tool-select {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}
.rich-tool-button {
  min-width: 34px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}
.rich-tool-button:hover,
.rich-tool-select:focus,
.rich-tool-button:focus {
  border-color: var(--green);
  outline: 2px solid rgba(49, 125, 86, 0.22);
}
.rich-editor {
  min-height: 118px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.rich-list-editor {
  min-height: 150px;
}
.rich-editor:focus {
  outline: 2px solid rgba(49, 125, 86, 0.24);
  border-color: var(--green);
}
.rich-editor img {
  display: block;
  max-width: min(100%, 820px);
  max-height: 360px;
  margin: 0.55rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}
.rich-editor-help {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.rich-edit-section h3 {
  margin-bottom: 0.45rem;
}
.row-actions {
  display: flex;
  gap: 0.45rem;
  min-width: 220px;
}
.compact-toolbar {
  align-items: center;
}
.compact-control {
  min-width: 180px;
}
.global-package-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.calculator-export-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.calculator-export-fields label {
  min-width: 0;
}
.global-package-targets span,
.commercial-chip-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 850;
}
.calc-result-panel {
  position: sticky;
  top: 1rem;
}
.calc-result-grid {
  display: grid;
  gap: 0.7rem;
}
.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
}
.card .metric-card {
  border-color: var(--line);
  background: #fff;
}
.metric-card span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.card .metric-card span {
  color: var(--muted);
}
.metric-card strong {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.metric-card p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}
.card .metric-card p {
  color: var(--muted);
}
.readiness-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}
.readiness-banner p {
  max-width: 82ch;
  color: rgba(255, 255, 255, 0.76);
}
.readiness-banner strong {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.08);
}
.readiness-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.readiness-metric {
  background: #fff;
  border-color: var(--line);
}
.readiness-metric.warn { border-top: 6px solid var(--gold); }
.readiness-metric.ok { border-top: 6px solid var(--green); }
.readiness-metric span,
.readiness-metric small {
  color: var(--muted);
}
.readiness-metric small {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.35;
}
.readiness-gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.readiness-gate-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: 8px;
  background: #fff;
}
.readiness-gate-card.ok { border-top-color: var(--green); }
.readiness-gate-card.warn { border-top-color: var(--gold); }
.readiness-gate-card.blocker { border-top-color: var(--red); }
.readiness-gate-card h2 {
  margin-bottom: 0.35rem;
}
.readiness-gate-card p {
  margin: 0;
  color: var(--muted);
}
.readiness-gate-card code {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}
.readiness-card {
  display: grid;
  gap: 1rem;
}
.readiness-issue-list,
.review-service-list {
  display: grid;
  gap: 0.65rem;
}
.readiness-action-card {
  align-items: start;
}
.readiness-action-list {
  display: grid;
  gap: 0.75rem;
}
.readiness-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: #fff;
}
.readiness-action-row.blocker {
  border-left-color: var(--red);
}
.readiness-action-main {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}
.readiness-action-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.readiness-action-head strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.readiness-action-owner {
  flex: 0 0 auto;
  max-width: 40%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}
.readiness-action-row p,
.readiness-action-row small {
  margin: 0;
  color: var(--muted);
}
.readiness-action-row small {
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.readiness-action-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.readiness-action-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}
.underlag-editor-card {
  align-items: start;
}
.underlag-editor {
  display: grid;
  gap: 1rem;
}
.underlag-editor-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}
.underlag-service-select {
  min-width: 0;
}
.underlag-status-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: #fff;
}
.underlag-status-panel.blocker {
  border-left-color: var(--red);
}
.underlag-status-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
}
.underlag-status-head h3,
.underlag-status-head p {
  margin: 0;
}
.underlag-status-head > span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: right;
}
.underlag-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}
.underlag-status-item {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-height: 118px;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
}
.underlag-status-item.blocker {
  border-top-color: var(--red);
}
.underlag-status-item.warning {
  border-top-color: var(--gold);
}
.underlag-status-item div {
  display: grid;
  gap: 0.15rem;
}
.underlag-status-item strong {
  font-size: 0.92rem;
}
.underlag-status-item span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.underlag-status-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.underlag-status-fields {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.underlag-status-fields > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.underlag-status-fields span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}
.underlag-question-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  background: #fff;
}
.underlag-question-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}
.underlag-question-head h3,
.underlag-question-head p {
  margin: 0;
}
.underlag-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.underlag-question-group {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.underlag-question-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  justify-content: space-between;
  align-items: center;
}
.underlag-question-group span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}
.underlag-question-group p {
  margin: 0;
  color: var(--muted);
}
.underlag-question-group ul {
  margin: 0;
  padding-left: 1.1rem;
}
.underlag-question-group li + li {
  margin-top: 0.35rem;
}
.underlag-editor-section {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.underlag-editor-section h3 {
  margin: 0;
}
.underlag-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.underlag-field {
  min-width: 0;
}
.underlag-field textarea {
  min-height: 118px;
  resize: vertical;
}
.underlag-field small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.readiness-issue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem 0.8rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: #fff;
}
.readiness-issue.blocker { border-left-color: var(--red); }
.readiness-issue.warning { border-left-color: var(--gold); }
.readiness-issue span {
  font-size: 1.1rem;
  font-weight: 950;
}
.readiness-issue p {
  grid-column: 1 / -1;
  margin: 0;
}
.review-service-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  text-align: left;
  cursor: pointer;
}
.review-service-button span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}
.review-service-button.branch-huvudtjanst { border-left-color: var(--green); }
.review-service-button.branch-arbetsplats { border-left-color: var(--blue); }
.review-service-button.branch-sakerhet { border-left-color: var(--red); }
.review-service-button.branch-ai { border-left-color: var(--purple); }
.review-service-button.branch-drift { border-left-color: var(--gold); }
.review-service-button.branch-kommunikation { border-left-color: var(--blue); }
.review-service-button.branch-migration { border-left-color: var(--gold); }
.review-service-button.branch-radgivning { border-left-color: var(--blue); }
.review-service-button.branch-default { border-left-color: var(--gold); }
.commercial-summary-card,
.ai-answer-card,
.ai-search-panel {
  display: grid;
  gap: 1rem;
}
.commercial-summary-card,
.ai-answer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.4rem);
}
.commercial-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ai-search-panel {
  margin-top: 0.2rem;
}
.home-shell > .ai-search-panel {
  margin-top: 0;
}
.home-shell > .ai-search-panel > .card {
  padding: clamp(1rem, 2vw, 1.25rem);
  border-top: 4px solid var(--blue);
  box-shadow: 0 10px 28px rgba(20, 25, 34, 0.07);
}
.home-shell > .ai-search-panel .module-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem 1rem;
  align-items: end;
}
.home-shell > .ai-search-panel .module-search-form label {
  grid-column: 1;
  grid-row: 1;
}
.home-shell > .ai-search-panel .module-search-form > p {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.96rem;
}
.home-shell > .ai-search-panel .module-search-form .compact-actions {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  align-self: end;
  justify-content: flex-end;
}
.home-shell > .ai-search-panel .module-search-form .button {
  min-height: 48px;
}
.module-search-form p {
  margin: 0;
  color: var(--muted);
}
.ai-followups {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f6ef;
  padding: 1rem;
}
.ai-followups h4 {
  margin: 0 0 0.5rem;
}
.ai-answer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-weight: 850;
}
.intent-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  border-radius: 999px;
  background: #10261d;
  color: #fff;
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem;
}
.ai-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.ai-answer-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  padding: 0.85rem;
}
.ai-answer-section h4,
.ai-source-list h4 {
  margin: 0 0 0.5rem;
}
.ai-answer-section ul {
  margin: 0;
  padding-left: 1.1rem;
}
.ai-answer-section.warning {
  background: #fff7ed;
  border-color: #e6b980;
}
.ai-source-list {
  display: grid;
  gap: 0.65rem;
}
.ai-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.ai-source-card {
  display: grid;
  gap: 0.25rem;
  min-height: 9rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.8rem;
  text-align: left;
  cursor: pointer;
}
.ai-source-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}
.ai-source-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.ai-source-card.branch-huvudtjanst { border-left-color: var(--green); }
.ai-source-card.branch-arbetsplats { border-left-color: var(--blue); }
.ai-source-card.branch-sakerhet { border-left-color: var(--red); }
.ai-source-card.branch-ai { border-left-color: var(--purple); }
.ai-source-card.branch-drift { border-left-color: var(--gold); }
.ai-source-card.branch-kommunikation { border-left-color: var(--blue); }
.ai-source-card.branch-migration { border-left-color: var(--gold); }
.ai-source-card.branch-radgivning { border-left-color: var(--blue); }
.ai-source-card.branch-default { border-left-color: var(--gold); }
.compact-table-scroll .calc-table,
.ai-price-table {
  min-width: 760px;
}
.result-number {
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 950;
  margin: 0.2rem 0 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}
.compact-actions {
  gap: 0.5rem;
}
.data-help {
  margin-top: 0;
  max-width: 76ch;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.meta-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
}
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  padding: clamp(1.2rem, 3vw, 2rem);
}
.guide-hero h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.guide-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 82ch;
}
.guide-score {
  min-width: 140px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.guide-score strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
}
.guide-score span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.guide-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tldr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.guide-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--green);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(20, 25, 34, 0.05);
}
.guide-card:nth-child(2) { border-top-color: var(--blue); }
.guide-card:nth-child(3) { border-top-color: var(--purple); }
.guide-card.warning {
  border-top-color: var(--gold);
  background: #fff9e8;
}
.guide-card-wide {
  grid-column: 1 / -1;
}
.guide-card h3 {
  margin-bottom: 0.5rem;
}
.guide-card ul {
  padding-left: 1.15rem;
}
.document-page {
  width: min(100%, 1320px);
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 12px 34px rgba(20, 25, 34, 0.08);
}
.document-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.document-toolbar h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.document-section,
.document-edit-section {
  display: grid;
  gap: 0.55rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid rgba(215, 208, 196, 0.72);
}
.document-section:last-child,
.document-edit-section:last-child {
  border-bottom: 0;
}
.document-section h3,
.document-edit-section h3 {
  font-size: 1rem;
  color: var(--dark-2);
}
.document-section p,
.document-section li {
  max-width: 82ch;
}
.document-editor {
  width: min(100%, 1420px);
}
.product-sheet-preview {
  width: min(100%, 1380px);
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 8px solid var(--green);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 12px 34px rgba(20, 25, 34, 0.08);
}
.customer-product-sheet {
  border-top-color: var(--blue);
  background:
    linear-gradient(180deg, rgba(238, 246, 251, 0.82), rgba(255, 255, 255, 0) 220px),
    #fff;
}
.product-sheet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}
.product-sheet-hero > div,
.product-sheet-price-box,
.product-sheet-main-copy,
.product-sheet-package-strip {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
.product-sheet-media {
  margin: 0 0 1rem;
}
.product-sheet-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.8rem;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.product-sheet-badge.ok {
  color: #0d3a22;
  background: #dff3e6;
}
.product-sheet-badge.warn {
  color: #5b3a00;
  background: #fff0c7;
}
.product-sheet-price-box {
  border-left: 6px solid var(--green);
}
.product-sheet-price-box ul,
.product-sheet-main-copy ul {
  padding-left: 1.15rem;
}
.product-sheet-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.product-sheet-package-strip {
  display: grid;
  gap: 0.7rem;
}
.summary-package-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}
.product-sheet-mini-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid rgba(215, 208, 196, 0.78);
  border-radius: 8px;
  background: #fffdf8;
}
.product-sheet-mini-card span {
  color: var(--muted);
  font-size: 0.9rem;
}
.editable-field {
  min-height: 3.2rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.editable-field:focus {
  outline: 3px solid rgba(53, 107, 143, 0.28);
  outline-offset: 2px;
  border-color: var(--blue);
}
.editable-field.list-field {
  min-height: 5rem;
}
.inline-edit-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}
.inline-edit-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.editable-select {
  width: min(100%, 360px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
}
.module-card-sales { border-top-color: var(--blue); }
.sales-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.25rem;
}
.sales-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.compact-kpi-row {
  gap: 0.55rem;
}
.compact-kpi-row .card {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
}
.compact-kpi-row .card strong {
  font-size: 1.25rem;
}
.compact-kpi-row .card span {
  font-size: 0.84rem;
}
.sales-kpi-row .card {
  display: grid;
  gap: 0.35rem;
}
.sales-kpi-row span {
  color: var(--muted);
  font-weight: 850;
}
.sales-kpi-row strong {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}
.sales-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.sales-stage-card {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid var(--line);
  border-left: 7px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(20, 25, 34, 0.06);
}
.sales-stage-card h3,
.sales-stage-card p,
.sales-stage-card ol,
.sales-stage-card ul {
  margin: 0;
}
.sales-stage-card ol,
.sales-stage-card ul {
  padding-left: 1.25rem;
}
.sales-stage-card li {
  line-height: 1.55;
  margin: 0.2rem 0;
}
.sales-stage-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}
.sales-stage-heading span,
.sales-outcome {
  color: var(--muted);
  font-weight: 800;
}
.sales-question-box {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #cfe0d2;
  background: #f2faf4;
}
.sales-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.sales-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact-textarea {
  min-height: 110px;
  font-family: inherit;
  font-size: 0.95rem;
}
.sales-activity-list {
  display: grid;
  gap: 0.75rem;
}
.sales-activity-item {
  display: grid;
  gap: 0.4rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.sales-activity-item div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.sales-activity-item span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}
.sales-activity-item p {
  margin: 0;
}
.sales-filter-bar {
  display: grid;
  grid-template-columns: minmax(145px, 0.65fr) minmax(130px, 0.45fr) minmax(155px, 0.5fr) minmax(150px, 0.5fr) minmax(220px, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
}
.sales-ringlist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 1rem;
  align-items: start;
}
.compact-ringlist-layout {
  align-items: stretch;
  min-height: 0;
}
.ringlist-side-stack {
  display: grid;
  grid-template-rows: minmax(145px, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  min-height: 0;
  height: clamp(430px, calc(100vh - 300px), 760px);
}
.sales-tools-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
}
.sales-tools-panel > summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 900;
}
.sales-tools-panel > summary small {
  color: var(--muted);
  font-weight: 800;
}
.sales-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0 1rem 1rem;
}
.sales-source-note {
  padding: 0 1rem 1rem;
}
.sales-import-card .actions {
  flex-wrap: wrap;
}
.sales-import-result {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}
.sales-import-summary {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sales-import-summary span {
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  background: #edf1f3;
  color: #2f4048;
  font-size: 0.82rem;
  font-weight: 900;
}
.sales-import-errors ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}
.muted-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.sales-lead-side-stack {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}
.lead-table-card,
.compact-customer-panel {
  min-height: 0;
}
.compact-ringlist-layout .lead-table-card,
.compact-ringlist-layout .compact-customer-panel {
  height: clamp(430px, calc(100vh - 300px), 760px);
  overflow: hidden;
}
.compact-ringlist-layout .compact-customer-panel {
  height: auto;
  min-height: 0;
  overflow: auto;
}
.ringlist-recent-panel {
  min-height: 0;
  overflow: hidden;
}
.ringlist-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.ringlist-panel-head h2,
.ringlist-panel-head p {
  margin: 0;
}
.ringlist-panel-head span {
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  background: #edf1f3;
  color: #2f4048;
  font-size: 0.82rem;
  font-weight: 900;
}
.ringlist-recent-list {
  display: grid;
  gap: 0.35rem;
  max-height: calc(100% - 3.4rem);
  overflow: auto;
  padding-right: 0.15rem;
}
.ringlist-recent-item {
  display: grid;
  gap: 0.12rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.48rem 0.55rem;
  cursor: pointer;
}
.ringlist-recent-item:hover {
  border-color: rgba(49, 125, 86, 0.5);
  background: #f7fbf8;
}
.ringlist-recent-item strong {
  font-size: 0.9rem;
}
.ringlist-recent-item span,
.ringlist-recent-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.lead-list-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-end;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.lead-list-head h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  margin: 0;
}
.lead-list-head p {
  margin: 0;
}
.lead-list-metrics {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lead-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  align-items: center;
}
.lead-list-metrics span {
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  background: #edf1f3;
  color: #2f4048;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}
.lead-table-scroll {
  overflow: auto;
  max-height: calc(100% - 4.1rem);
}
.lead-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
  background: #fff;
}
.lead-table-compact {
  min-width: 920px;
}
.lead-table th,
.lead-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.46rem 0.52rem;
  text-align: left;
  vertical-align: top;
}
.lead-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f5ef;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0;
}
.lead-table tr.selected td {
  background: #eef6fb;
}
.lead-table tbody tr {
  cursor: pointer;
}
.lead-table tbody tr:focus-visible td {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.lead-table small {
  display: block;
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.lead-phone-cell {
  min-width: 135px;
}
.lead-phone-cell a {
  display: block;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.lead-phone-cell a + a {
  margin-top: 0.15rem;
}
.lead-contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.35rem;
}
.contact-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.46rem;
  font-size: 0.72rem;
  font-weight: 900;
  background: #edf1f3;
  color: #2f4048;
  white-space: nowrap;
}
.contact-badge.warning {
  background: #fff0c7;
  color: #5b3a00;
}
.contact-badge.ok {
  background: #dff3e6;
  color: #0d3a22;
}
.contact-badge.muted {
  background: #edf1f3;
  color: #54666d;
}
.contact-badge.group {
  background: #e7eef8;
  color: #1c4364;
}
.lead-group-note {
  color: #1c4364;
  font-weight: 900;
}
.lead-group-note a {
  color: inherit;
  text-decoration: none;
}
.lead-group-row td {
  background: #edf1f3;
  color: #2f4048;
  font-size: 0.86rem;
  font-weight: 900;
  padding-block: 0.45rem;
}
.lead-group-row td > * {
  margin-right: 0.75rem;
}
.lead-group-row a,
.lead-group-fact a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}
.lead-group-fact {
  display: grid;
  gap: 0.25rem;
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.48rem;
  font-size: 0.74rem;
  font-weight: 900;
  background: #edf1f3;
  color: #2f4048;
  white-space: nowrap;
}
.status-ny { background: #edf1f3; color: #2f4048; }
.status-ringd,
.status-ej-svar { background: #fff0c7; color: #5b3a00; }
.status-intresserad { background: #dff7e7; color: #0d3a22; }
.status-mote-bokat { background: #c9f2d8; color: #0d3a22; }
.status-offert { background: #dcecff; color: #153e75; }
.status-vunnen { background: #14532d; color: #fff; }
.status-forlorad { background: #a33131; color: #fff; }
.status-inte-intresserad { background: #8f3f08; color: #fff; }
.lead-table tbody tr.lead-row-status-ej-svar td {
  background: #fff8db;
  border-top-color: #f3d16d;
}
.lead-table tbody tr.lead-row-status-intresserad td {
  background: #eefbf2;
  border-top-color: #8ed9a8;
}
.lead-table tbody tr.lead-row-status-mote-bokat td {
  background: #e4f8eb;
  border-top-color: #65c689;
}
.lead-table tbody tr.lead-row-status-offert td {
  background: #edf5ff;
  border-top-color: #8bbcf3;
}
.lead-table tbody tr.lead-row-status-vunnen td {
  background: #e2f2e8;
  border-top-color: #2f8a4f;
}
.lead-table tbody tr.lead-row-status-forlorad td {
  background: #ffe4e4;
  border-top-color: #e07171;
}
.lead-table tbody tr.lead-row-status-inte-intresserad td {
  background: #ffe9d3;
  border-top-color: #cc7a2c;
}
.lead-table tbody tr.selected td {
  box-shadow: inset 4px 0 0 var(--green);
}
.sales-lead-editor {
  position: static;
}
.verification-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 900;
  background: #fff0c7;
  color: #5b3a00;
  white-space: nowrap;
}
.verification-verified {
  background: #dff3e6;
  color: #0d3a22;
}
.verification-example {
  background: #edf1f3;
  color: #2f4048;
}
.customer-card {
  gap: 1rem;
}
.compact-customer-panel {
  overflow: auto;
  padding-bottom: 0.75rem;
}
.compact-customer-panel h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}
.quick-meta-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.compact-facts {
  grid-template-columns: minmax(82px, 0.3fr) minmax(0, 1fr);
  font-size: 0.92rem;
}
.compact-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.latest-comment-box {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f5ef;
}
.latest-comment-box p,
.latest-comment-box small {
  margin: 0;
}
.compact-comment-form {
  gap: 0.65rem;
}
.compact-comment-form .actions {
  position: sticky;
  bottom: -0.75rem;
  z-index: 3;
  padding-top: 0.45rem;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), #fffdf8 38%);
}
.customer-detail-view .sales-lead-side-stack {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  align-items: start;
  position: static;
}
.customer-detail-toolbar {
  align-items: center;
}
.customer-facts {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  gap: 0.45rem 0.75rem;
  margin: 0;
}
.customer-facts dt {
  color: var(--muted);
  font-weight: 900;
}
.customer-facts dd {
  margin: 0;
}
.sales-comment-form {
  padding-block: 0.25rem;
}
.lead-table td.lead-action-cell {
  min-width: 118px;
  width: 118px;
  padding: 0.36rem 0.45rem;
  vertical-align: middle;
  white-space: nowrap;
}
.lead-action-select {
  width: 112px;
  min-height: 30px;
  padding: 0.24rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
}
.lead-action-select:focus {
  outline: 2px solid rgba(49, 125, 86, 0.28);
  border-color: var(--green);
}
.technical-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.technical-list {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}
.technical-list .tree-group {
  padding-left: 0.65rem;
}
.technical-list .tree-group h2 {
  color: var(--muted);
}
.technical-list .tree-group h2 small {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}
.tech-service-button {
  display: grid;
  gap: 0.25rem;
  text-align: left;
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.7rem;
  cursor: pointer;
}
.tech-service-button.branch-huvudtjanst { border-left-color: var(--green); }
.tech-service-button.branch-arbetsplats { border-left-color: var(--blue); }
.tech-service-button.branch-sakerhet { border-left-color: var(--red); }
.tech-service-button.branch-ai { border-left-color: var(--purple); }
.tech-service-button.branch-drift { border-left-color: var(--gold); }
.tech-service-button.branch-kommunikation { border-left-color: var(--blue); }
.tech-service-button.branch-migration { border-left-color: var(--gold); }
.tech-service-button.branch-radgivning { border-left-color: var(--blue); }
.tech-service-button.branch-default { border-left-color: var(--gold); }
.tech-service-button.active {
  background: #eef6fb;
  border-top-color: #9cc6df;
  border-right-color: #9cc6df;
  border-bottom-color: #9cc6df;
}
.tech-service-button span {
  color: var(--muted);
  font-size: 0.86rem;
}
.tech-guide {
  margin-inline: 0;
}
.reference-list a {
  color: var(--blue);
  font-weight: 800;
}
.search-results {
  display: grid;
  gap: 1rem;
}
.search-result h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

@media (min-width: 1800px) {
  :root { --page-max: 1880px; }
  .home-view { padding-inline: clamp(2rem, 4vw, 4rem); }
  .content-panel { padding-inline: clamp(2rem, 4vw, 4rem); }
}

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .service-tree { grid-template-columns: 1fr; }
  .section-grid, .calc-grid, .admin-grid, .calculator-grid, .calculator-export-fields, .technical-layout, .sales-kpi-row, .sales-stage-grid, .sales-form-grid, .sales-filter-bar, .sales-ringlist-layout, .sales-tools-grid, .customer-detail-view .sales-lead-side-stack, .product-sheet-hero, .product-sheet-content-grid, .readiness-metric-grid, .readiness-gate-grid, .runtime-summary-grid, .underlag-editor-grid, .underlag-status-grid, .underlag-question-grid, .ai-answer-grid, .ai-source-grid, .release-notes-layout, .signature-grid, .password-vault-hero-grid, .password-vault-meta-grid { grid-template-columns: 1fr; }
  .ringlist-side-stack {
    height: auto;
    grid-template-rows: auto;
  }
  .sales-form-grid.two { grid-template-columns: 1fr; }
  .readiness-banner { display: grid; }
  .readiness-gate-card { display: grid; }
  .runtime-status-head, .runtime-check { display: grid; }
  .underlag-editor-toolbar { grid-template-columns: 1fr; }
  .underlag-question-head { grid-template-columns: 1fr; }
  .underlag-status-head { grid-template-columns: 1fr; }
  .underlag-status-head > span { justify-self: start; text-align: left; }
  .readiness-action-row { grid-template-columns: 1fr; }
  .readiness-action-head { display: grid; }
  .readiness-action-owner { max-width: none; text-align: left; justify-self: start; }
  .package-grid, .list-grid, .guide-grid, .guide-grid.two, .tldr-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
  .document-toolbar { flex-direction: column; }
  .lead-list-head {
    display: grid;
    align-items: start;
  }
  .lead-list-metrics {
    justify-content: flex-start;
  }
  .guide-hero { grid-template-columns: 1fr; }
  .technical-list, .calc-result-panel, .sales-lead-editor, .sales-lead-side-stack { position: static; max-height: none; }
  .password-vault-form-panel { position: static; }
  .password-vault-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-ringlist-layout .lead-table-card,
  .compact-ringlist-layout .compact-customer-panel {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .lead-table-scroll {
    max-height: 420px;
  }
  .home-landing {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding: 1rem 0;
  }
  .home-workspace-board {
    min-height: auto;
    padding: 0.95rem 0;
  }
  .home-workspace-top {
    grid-template-columns: 1fr;
  }
  .home-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-workspace-card {
    align-self: stretch;
  }
  .home-compass-search-form .module-search-form {
    grid-template-columns: 1fr;
  }
  .home-compass-search-form .module-search-form label,
  .home-compass-search-form .module-search-form .compact-actions {
    grid-column: 1;
  }
  .home-compass-search-form .module-search-form .compact-actions {
    justify-content: flex-start;
  }
  .module-header { flex-direction: column; }
  .home-shell > .ai-search-panel .module-search-form {
    grid-template-columns: 1fr;
  }
  .home-shell > .ai-search-panel .module-search-form label,
  .home-shell > .ai-search-panel .module-search-form > p,
  .home-shell > .ai-search-panel .module-search-form .compact-actions {
    grid-column: 1;
    grid-row: auto;
  }
  .home-shell > .ai-search-panel .module-search-form .compact-actions {
    justify-content: flex-start;
  }
  .package-calculator-grid .calc-result-grid { grid-template-columns: 1fr; }
  .summary-pricing-head,
  .summary-package-price-top {
    grid-template-columns: 1fr;
    display: grid;
  }
  .summary-pricing-badge,
  .summary-package-price-top > span {
    justify-self: start;
    white-space: normal;
  }
  .secret-output-row,
  .otp-output,
  .signature-card-head {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

@media (max-width: 560px) {
  .sidebar { padding: 1rem; }
  .topbar { flex-direction: column; }
  .button.ghost { color: var(--ink); background: #fff; }
  .tabs { padding-inline: 1rem; }
  .content-panel { padding: 1rem; }
  .topbar h1 { font-size: 2.1rem; }
  .home-view { padding: 0.8rem; }
  .home-primary-actions {
    grid-template-columns: 1fr;
  }
  .home-module-grid {
    grid-template-columns: 1fr;
  }
  .home-module-card {
    min-height: 112px;
  }
  .home-lockup {
    width: min(100%, 260px);
  }
  .home-activity-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .home-activity-list time {
    display: none;
  }
  .module-header {
    min-height: auto;
    padding: 1.05rem;
  }
  .module-header h1 {
    font-size: 2.25rem;
  }
  .module-card {
    min-height: 160px;
    aspect-ratio: auto;
  }
  .summary-price-values {
    grid-template-columns: 1fr;
  }
  .module-grid { grid-template-columns: 1fr; }
  .password-vault-hero { padding: 1rem; }
  .password-vault-stats { grid-template-columns: 1fr; }
  .password-vault-card-head,
  .password-vault-toolbar,
  .password-vault-search {
    display: grid;
    grid-template-columns: 1fr;
  }
  .vault-badges { justify-content: flex-start; }
  .admin-topic-tab,
  .tab-button {
    padding-inline: 0.7rem;
  }
}
