:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-2: #eef2f3;
  --ink: #20252a;
  --muted: #687178;
  --line: #dce2e5;
  --teal: #14796d;
  --teal-soft: #dcefeb;
  --blue: #356a9a;
  --blue-soft: #dce9f5;
  --amber: #b57911;
  --amber-soft: #f4ead2;
  --coral: #c95736;
  --coral-soft: #f6e1da;
  --green: #2f7d4f;
  --green-soft: #deeedf;
  --red: #b94747;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(23, 31, 38, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(20, 121, 109, 0.08), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(53, 106, 154, 0.08), transparent 24%),
    var(--bg);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

button {
  cursor: pointer;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

.app-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow-x: hidden;
}

.sidebar {
  min-width: 0;
  background: #242a2c;
  color: #f7faf9;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-logo-full {
  width: 178px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.brand-logo-mark {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.sidebar-brand {
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
}

.sidebar-brand .brand-logo-full {
  width: 174px;
  padding: 3px 5px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.sidebar-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  max-width: 100%;
  color: #f7faf9;
}

.sidebar-brand-mark {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  object-fit: contain;
}

.sidebar-brand .sidebar-brand-lockup strong {
  color: #f7faf9;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 800;
}

.mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: #b7c4c1;
  font-size: 12px;
}

.account-mini {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  padding: 4px 0 2px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.account-mini:hover,
.account-mini:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.account-mini strong,
.account-mini span {
  display: block;
}

.account-mini-text {
  min-width: 0;
}

.account-mini strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.account-mini span {
  max-width: 100%;
  overflow: hidden;
  color: #cbd9d6;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-mini-action {
  min-height: 27px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef6f4 !important;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1;
}

.account-mini:hover .account-mini-action,
.account-mini:focus-visible .account-mini-action {
  border-color: rgba(105, 201, 188, 0.42);
  background: rgba(20, 121, 109, 0.22);
}

.active-project {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar .eyebrow {
  color: #b7c4c1;
}

.active-project h2 {
  margin: 6px 0 8px;
  font-size: 16px;
  line-height: 1.25;
}

.status-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #dce8e4;
  font-size: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  display: inline-block;
  margin-right: 6px;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #dce6e4;
  text-align: left;
  padding: 0 10px;
}

.nav button:hover,
.nav button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-footer {
  margin-top: auto;
  color: #d9f0ed;
  background: rgba(20, 121, 109, 0.14);
  border: 1px solid rgba(105, 201, 188, 0.22);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.topbar {
  min-width: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.title h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.title {
  min-width: 0;
}

.title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.topbar-actions {
  flex: 0 0 auto;
}

.plan-info-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(20, 121, 109, 0.28);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--teal-soft);
  color: #0f665c;
  cursor: pointer;
}

.plan-info-button span {
  color: #42645f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-info-button strong {
  font-size: 13px;
}

.plan-info-button:hover,
.plan-info-button:focus-visible {
  border-color: rgba(20, 121, 109, 0.55);
  background: #dff5ee;
  outline: none;
}

.plan-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(19, 30, 34, 0.42);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(19, 30, 34, 0.42);
}

.plan-modal {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(19, 30, 34, 0.24);
}

.modal-card {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(19, 30, 34, 0.24);
}

.import-metadata-modal {
  display: grid;
  gap: 16px;
}

.import-measurement-field {
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.import-measurement-field.disabled {
  background: #f5f6f6;
}

.import-measurement-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.import-measurement-toggle input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}

.import-measurement-toggle strong,
.import-measurement-toggle small {
  display: block;
}

.import-measurement-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.import-measurement-field.disabled #importMetadataWave {
  opacity: 0.55;
}

.plan-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-benefit-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.plan-benefit-card.start {
  border-top-color: var(--amber);
}

.plan-benefit-card.pro {
  border-top-color: var(--teal);
}

.plan-benefit-card.premium {
  border-top-color: var(--blue);
}

.plan-benefit-card.current {
  background: linear-gradient(180deg, #fff, var(--teal-soft));
}

.plan-benefit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.plan-benefit-head h3,
.plan-benefit-head strong {
  margin: 0;
}

.plan-benefit-head h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 21px;
}

.plan-benefit-head strong {
  color: #0f665c;
  text-align: right;
  white-space: nowrap;
}

.plan-benefit-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #344149;
  line-height: 1.45;
}

.plan-benefit-card li {
  overflow-wrap: anywhere;
}

.plan-benefit-card .primary,
.plan-benefit-card .pill {
  margin-top: auto;
}

#projectSelect {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.content {
  min-height: 0;
  min-width: 0;
  padding: 22px 24px 30px;
  overflow: auto;
}

.landing-shell {
  min-height: 100vh;
  background: #f6f8f8;
}

.landing-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 42px;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  background: rgba(246, 248, 248, 0.92);
  backdrop-filter: blur(10px);
}

.landing-logo-button {
  width: 186px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 54, 70, 0.08);
}

.landing-logo-button img {
  width: 150px;
  max-width: 100%;
  height: auto;
  display: block;
}

.landing-logo-button:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 121, 109, 0.35);
  box-shadow: 0 14px 30px rgba(31, 54, 70, 0.12);
}

.landing-tool-cta {
  min-height: 42px;
  padding: 0 18px;
  border-color: #0f685e;
  box-shadow: 0 10px 24px rgba(20, 121, 109, 0.22);
  font-weight: 800;
}

.landing-tool-cta:hover {
  box-shadow: 0 12px 28px rgba(20, 121, 109, 0.3);
}

.landing-promo-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 8px 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(53, 106, 154, 0.16);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: linear-gradient(135deg, #f6fafc 0%, #ffffff 100%);
  box-shadow: 0 14px 32px rgba(31, 54, 70, 0.08);
}

.landing-promo-banner.promo-active {
  border-color: #9bd8d0;
  border-left-color: #0f8478;
  background: linear-gradient(135deg, #e5f6f3 0%, #fff8e4 100%);
  box-shadow: 0 16px 36px rgba(15, 104, 94, 0.12);
}

.landing-promo-banner.promo-saved {
  border-color: rgba(205, 152, 39, 0.32);
  border-left-color: var(--amber);
  background: linear-gradient(135deg, #fff8e4 0%, #f9fcfb 100%);
  box-shadow: 0 14px 32px rgba(111, 73, 18, 0.08);
}

.landing-promo-banner span {
  display: block;
  margin-bottom: 5px;
  color: #356a9a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-promo-banner.promo-active span {
  color: #0f685e;
}

.landing-promo-banner.promo-saved span {
  color: #7a5415;
}

.landing-promo-banner strong {
  display: block;
  color: #10242a;
  font-size: 20px;
  line-height: 1.2;
}

.landing-promo-banner p {
  max-width: 720px;
  margin: 6px 0 0;
  color: #46575f;
}

.landing-brand {
  width: max-content;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.landing-brand.brand {
  border-bottom: 1px solid var(--line);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.landing-nav a,
.landing-nav button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0 13px;
  border-radius: 999px;
  color: #334148;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  text-decoration: none;
}

.landing-nav a:hover,
.landing-nav button:hover {
  background: var(--surface-2);
}

.landing-nav a.active,
.landing-nav button.active {
  color: #0c6158;
  background: var(--teal-soft);
}

.landing-hero {
  position: relative;
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
  gap: clamp(24px, 3.5vw, 40px);
  align-items: center;
  margin-top: 18px;
  padding: 40px clamp(20px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 44%, rgba(220, 239, 235, 0.62) 100%),
    #fff;
  box-shadow: var(--shadow);
}

.landing-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 8px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber));
}

.landing-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.landing-badge,
.landing-section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: #0c6158;
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 100%;
  margin: 18px 0 16px;
  color: #17262c;
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.02;
}

.landing-hero p {
  max-width: 590px;
  margin: 0;
  color: #4c5b63;
  font-size: 18px;
  line-height: 1.6;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.landing-microcopy {
  max-width: 540px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.landing-product-preview {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(53, 106, 154, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(31, 54, 70, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.landing-product-preview:hover {
  border-color: rgba(20, 121, 109, 0.38);
  box-shadow: 0 26px 70px rgba(31, 54, 70, 0.24);
  transform: translateY(-4px) scale(1.01);
}

.preview-window-bar {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 8px;
  color: var(--muted);
  font-size: 12px;
}

.preview-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--line);
}

.preview-window-bar span:nth-child(1) {
  background: var(--coral);
}

.preview-window-bar span:nth-child(2) {
  background: var(--amber);
}

.preview-window-bar span:nth-child(3) {
  background: var(--teal);
}

.preview-window-bar strong {
  margin-left: auto;
  color: #45545b;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.preview-chart {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfb;
}

.preview-chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  overflow: visible;
  padding: 42px 12px 10px;
  background:
    repeating-linear-gradient(180deg, transparent, transparent 25px, rgba(32, 37, 42, 0.06) 26px),
    #f9fbfb;
}

.preview-chart-title {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.preview-chart-title strong {
  color: #17343a;
  font-size: 13px;
  line-height: 1.1;
}

.preview-chart-title small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-bar {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 108px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  align-items: end;
  gap: 5px;
  cursor: pointer;
  outline: none;
  transition: transform 180ms ease;
}

.preview-bar strong {
  color: #17343a;
  font-size: 12px;
  line-height: 1;
}

.preview-bar-fill {
  width: 100%;
  max-width: 44px;
  min-height: 12px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, var(--teal), #70bcb2);
  transform-origin: bottom;
  transition: box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.preview-bar:nth-child(2n) .preview-bar-fill {
  background: linear-gradient(180deg, var(--blue), #84acd0);
}

.preview-bar:nth-child(3n) .preview-bar-fill {
  background: linear-gradient(180deg, var(--amber), #e4bd75);
}

.preview-bar label {
  min-height: 26px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
}

.preview-bar::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 8;
  width: 210px;
  padding: 9px 10px;
  border: 1px solid rgba(20, 121, 109, 0.22);
  border-radius: var(--radius);
  color: #22343a;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 31, 36, 0.16);
  font-size: 11px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.preview-bar:hover,
.preview-bar:focus,
.preview-bar:focus-visible,
.preview-bar.is-preview-active {
  z-index: 10;
  transform: translateY(-7px) scale(1.06);
}

.preview-bar:hover .preview-bar-fill,
.preview-bar:focus .preview-bar-fill,
.preview-bar:focus-visible .preview-bar-fill,
.preview-bar.is-preview-active .preview-bar-fill {
  box-shadow: 0 12px 24px rgba(20, 121, 109, 0.24);
  filter: saturate(1.12);
  transform: scaleY(1.03);
}

.preview-bar:hover::after,
.preview-bar:focus::after,
.preview-bar:focus-visible::after,
.preview-bar.is-preview-active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.preview-mini-card {
  display: grid;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfb;
  cursor: pointer;
  outline: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.preview-mini-card:hover,
.preview-mini-card:focus,
.preview-mini-card:focus-visible,
.preview-mini-card.is-preview-active {
  border-color: rgba(20, 121, 109, 0.34);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(31, 54, 70, 0.14);
  transform: translateY(-4px) scale(1.02);
}

.preview-mini-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-mini-card strong {
  display: block;
  margin-top: 4px;
  color: #17343a;
  line-height: 1.25;
}

.preview-mini-card p {
  margin: 0;
  color: #52636b;
  font-size: 12px;
  line-height: 1.45;
}

.preview-ai-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-left: 4px solid var(--teal);
}

.preview-ai-pills {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 74px;
  padding: 8px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: #0c6158;
}

.preview-ai-pills b {
  font-size: 18px;
  line-height: 1;
}

.preview-ai-pills small {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-pdf-card {
  grid-template-columns: minmax(0, 0.92fr) minmax(150px, 1fr);
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--blue);
  background:
    linear-gradient(135deg, rgba(241, 248, 251, 0.96), rgba(255, 255, 255, 0.98));
}

.preview-pdf-card:hover,
.preview-pdf-card:focus,
.preview-pdf-card:focus-visible,
.preview-pdf-card.is-preview-active {
  transform: none;
}

.preview-pdf-copy {
  display: grid;
  align-content: center;
  gap: 2px;
}

.preview-pdf-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  min-height: 104px;
  padding: 10px;
  border: 1px solid rgba(53, 106, 154, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(237, 247, 249, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.preview-pdf-page {
  position: relative;
  min-height: 74px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(53, 106, 154, 0.18);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f8fbfc);
  box-shadow: 0 8px 18px rgba(31, 54, 70, 0.08);
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 220ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.preview-pdf-page:hover {
  border-color: rgba(53, 106, 154, 0.34);
  background: #f7fbff;
  box-shadow: 0 14px 26px rgba(53, 106, 154, 0.18);
}

.preview-pdf-page:nth-child(1):hover {
  transform: translate(-3px, -5px) rotate(-2deg);
}

.preview-pdf-page:nth-child(2):hover {
  border-color: rgba(20, 121, 109, 0.42);
  transform: translateY(-9px) scale(1.04);
}

.preview-pdf-page:nth-child(3):hover {
  transform: translate(3px, -5px) rotate(2deg);
}

.preview-pdf-page i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #dfe9ed;
}

.preview-pdf-page i:nth-child(1) {
  width: 76%;
  background: var(--teal);
}

.preview-pdf-page i:nth-child(2) {
  width: 100%;
}

.preview-pdf-page i:nth-child(3) {
  width: 58%;
}

.preview-pdf-page.cover i:nth-child(1) {
  height: 16px;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.preview-pdf-page.pdf-chart-page {
  align-content: end;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
}

.preview-pdf-page.pdf-chart-page i {
  width: 100%;
  border-radius: 5px 5px 0 0;
  background: var(--blue);
}

.preview-pdf-page.pdf-chart-page i:nth-child(1) {
  height: 24px;
}

.preview-pdf-page.pdf-chart-page i:nth-child(2) {
  height: 42px;
  background: var(--teal);
}

.preview-pdf-page.pdf-chart-page i:nth-child(3) {
  height: 32px;
  background: var(--amber);
}

.landing-proof-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.landing-proof-bar div {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.landing-proof-bar strong {
  color: #133d39;
  font-size: 24px;
}

.landing-proof-bar span {
  color: var(--muted);
  font-size: 13px;
}

.landing-section {
  margin-top: 54px;
}

.landing-section-head {
  max-width: 760px;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.landing-section-head h2,
.landing-trust h2,
.landing-auth-panel h2 {
  margin: 0;
  color: #1d2c33;
  font-size: 32px;
  line-height: 1.15;
}

.landing-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.landing-feature-grid,
.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-feature-card,
.landing-pricing-card,
.landing-auth-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.landing-feature-card {
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-top: 4px solid var(--teal);
  transition: border-color 160ms ease, background 160ms ease;
}

.landing-feature-card:hover {
  border-color: rgba(20, 121, 109, 0.28);
  background: #f7fbfa;
}

.landing-feature-card:nth-child(2),
.landing-feature-card:nth-child(5) {
  border-top-color: var(--blue);
}

.landing-feature-card:nth-child(3),
.landing-feature-card:nth-child(6) {
  border-top-color: var(--amber);
}

.landing-feature-card strong {
  color: #172a30;
  font-size: 17px;
}

.landing-feature-card p {
  margin: 0;
  color: #52636b;
  line-height: 1.55;
}

.landing-report-examples {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-showcase-page {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.landing-showcase-hero {
  display: grid;
  gap: 12px;
  padding: 8px 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-showcase-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #1d2c33;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
}

.landing-showcase-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.landing-report-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.landing-report-example-card {
  display: grid;
  gap: 14px;
  min-height: 520px;
  padding: 18px;
  border: 1px solid rgba(20, 121, 109, 0.16);
  border-top: 4px solid var(--teal);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(31, 54, 70, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.landing-report-example-card:hover,
.landing-report-example-card:focus-within {
  border-color: rgba(20, 121, 109, 0.38);
  background: #fff;
  box-shadow: 0 22px 52px rgba(31, 54, 70, 0.14);
  transform: translateY(-4px);
}

.landing-report-example-card.recommendations {
  border-top-color: var(--blue);
}

.landing-report-example-card.pdf {
  border-top-color: var(--amber);
}

.landing-report-example-card.trends {
  border-top-color: var(--coral);
}

.landing-report-example-card strong {
  color: #172a30;
  font-size: 18px;
}

.landing-report-example-card p {
  margin: 0;
  color: #52636b;
  line-height: 1.55;
}

.landing-report-screenshot {
  position: relative;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(53, 106, 154, 0.14);
  border-radius: 12px;
  background: #f7fbfb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.landing-report-screenshot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: 0 0;
  transition: transform 220ms ease, filter 220ms ease;
}

.landing-report-example-card:hover .landing-report-screenshot img,
.landing-report-example-card:focus-within .landing-report-screenshot img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.035);
}

.landing-report-thumb {
  min-height: 190px;
  overflow: hidden;
  position: relative;
  padding: 14px;
  border: 1px solid rgba(53, 106, 154, 0.14);
  border-radius: 12px;
  background: #f7fbfb;
}

.dashboard-thumb {
  display: grid;
  grid-template-rows: 8px auto minmax(78px, 1fr);
  gap: 12px;
}

.mini-topline {
  width: 54%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.mini-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-kpi-grid span {
  display: grid;
  gap: 2px;
  padding: 9px;
  border-radius: 10px;
  background: #fff;
}

.mini-kpi-grid b {
  color: #172a30;
  font-size: 18px;
}

.mini-kpi-grid small {
  color: #65757b;
  font-size: 11px;
}

.mini-chart-row {
  display: flex;
  align-items: end;
  gap: 9px;
  min-height: 78px;
  padding: 8px 6px 0;
}

.mini-chart-row i {
  flex: 1;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--teal), rgba(20, 121, 109, 0.28));
  transition: transform 180ms ease, filter 180ms ease;
}

.landing-report-example-card:hover .mini-chart-row i {
  filter: saturate(1.1);
  transform: scaleY(1.04);
}

.recommendations-thumb {
  display: grid;
  align-content: center;
  gap: 10px;
}

.mini-recommendation {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 54, 70, 0.06);
}

.mini-recommendation span {
  color: #52636b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-recommendation b {
  color: #172a30;
  font-size: 13px;
  line-height: 1.3;
}

.mini-recommendation.high {
  border-left-color: var(--coral);
}

.mini-recommendation.medium {
  border-left-color: var(--amber);
}

.mini-recommendation.low {
  border-left-color: var(--teal);
}

.pdf-thumb {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}

.mini-pdf-page {
  min-height: 136px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(53, 106, 154, 0.18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(31, 54, 70, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.landing-report-example-card:hover .mini-pdf-page:nth-child(1) {
  transform: translateY(-6px) rotate(-2deg);
}

.landing-report-example-card:hover .mini-pdf-page:nth-child(2) {
  transform: translateY(-10px);
}

.landing-report-example-card:hover .mini-pdf-page:nth-child(3) {
  transform: translateY(-6px) rotate(2deg);
}

.mini-pdf-page i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #d8e6eb;
}

.mini-pdf-page i:nth-child(1) {
  width: 72%;
  height: 12px;
  background: var(--teal);
}

.mini-pdf-page i:nth-child(2) {
  width: 100%;
}

.mini-pdf-page i:nth-child(3) {
  width: 58%;
}

.mini-pdf-page.cover {
  background: linear-gradient(180deg, #ffffff, #e9f6f4);
}

.mini-pdf-page.chart i:nth-child(1) {
  height: 56px;
  width: 100%;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(20, 121, 109, 0.28) 18%, transparent 18% 24%, rgba(53, 106, 154, 0.34) 24% 48%, transparent 48% 54%, rgba(205, 152, 39, 0.38) 54% 78%, transparent 78%);
}

.landing-guide-page {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.landing-guide-hero {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 247, 245, 0.92));
  box-shadow: var(--shadow);
}

.landing-guide-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #17262c;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.04;
}

.landing-guide-hero p {
  max-width: 760px;
  margin: 0;
  color: #4c5b63;
  font-size: 16px;
  line-height: 1.65;
}

.landing-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-guide-steps {
  position: relative;
  display: grid;
  gap: 16px;
  max-width: 940px;
  margin: 0 auto;
  padding-left: 96px;
}

.landing-guide-home {
  scroll-margin-top: 96px;
}

.landing-guide-home .landing-guide-steps {
  max-width: 1040px;
}

.landing-guide-steps::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 30px;
  left: 34px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
}

.landing-guide-steps::after {
  content: "";
  position: absolute;
  left: 25px;
  bottom: 14px;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 16px solid var(--blue);
}

.landing-guide-step {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 108px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 54, 70, 0.08);
}

.landing-guide-step::before {
  content: "";
  position: absolute;
  left: -58px;
  top: 50%;
  width: 58px;
  height: 2px;
  border-radius: 999px;
  background: rgba(20, 121, 109, 0.36);
}

.landing-guide-step::after {
  content: "";
  position: absolute;
  left: -67px;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 121, 109, 0.12);
}

.landing-guide-step > span {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.landing-guide-step strong {
  display: block;
  color: #172a30;
  font-size: 18px;
  line-height: 1.25;
}

.landing-guide-step p {
  margin: 6px 0 0;
  color: #52636b;
  line-height: 1.55;
}

.landing-pricing-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-top: 4px solid var(--amber);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.landing-pricing-card:hover,
.landing-pricing-card:focus-within {
  border-color: rgba(20, 121, 109, 0.38);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf9 100%);
  box-shadow: 0 24px 58px rgba(31, 54, 70, 0.15);
  transform: translateY(-4px);
}

.landing-pricing-card.pro {
  border-top-color: var(--teal);
}

.landing-pricing-card.premium {
  position: relative;
  border-color: rgba(20, 121, 109, 0.22);
  border-top-color: var(--blue);
  background: #fff;
  box-shadow: none;
}

.landing-pricing-card.premium:hover,
.landing-pricing-card.premium:focus-within {
  border-color: rgba(20, 121, 109, 0.34);
  background: #f7fbfa;
  box-shadow: 0 18px 42px rgba(31, 54, 70, 0.10);
}

.landing-pricing-head {
  display: grid;
  gap: 10px;
}

.landing-pricing-head h3,
.landing-pricing-head p {
  margin: 0;
}

.landing-pricing-head h3 {
  font-size: 24px;
}

.landing-pricing-head p {
  color: var(--muted);
  line-height: 1.45;
}

.landing-pricing-head strong {
  color: #0d655b;
  font-size: 22px;
}

.landing-pricing-benefits {
  display: grid;
  gap: 10px;
}

.plan-benefit {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(20, 121, 109, 0.08), rgba(255, 255, 255, 0.92));
  box-shadow: 0 10px 26px rgba(31, 54, 70, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.plan-benefit:hover {
  border-color: rgba(20, 121, 109, 0.35);
  background:
    linear-gradient(135deg, rgba(20, 121, 109, 0.13), rgba(255, 255, 255, 0.96));
  box-shadow: 0 16px 34px rgba(31, 54, 70, 0.1);
  transform: translateY(-2px);
}

.plan-benefit-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.plan-benefit-text {
  display: grid;
  min-width: 0;
}

.plan-benefit strong {
  color: #172a30;
  font-size: 15px;
  line-height: 1.35;
}

.plan-benefit.muted {
  background:
    linear-gradient(135deg, rgba(205, 152, 39, 0.1), rgba(255, 255, 255, 0.9));
}

.plan-benefit.muted .plan-benefit-icon {
  background: var(--amber);
}

.landing-pricing-card.premium .plan-benefit,
.post-signup-plan-card.premium .plan-benefit {
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(20, 121, 109, 0.08), rgba(255, 255, 255, 0.92));
}

.landing-pricing-card.premium .plan-benefit:hover,
.post-signup-plan-card.premium .plan-benefit:hover {
  border-color: rgba(53, 106, 154, 0.3);
  background:
    linear-gradient(135deg, rgba(53, 106, 154, 0.12), rgba(255, 255, 255, 0.96));
}

.landing-pricing-card.premium .plan-benefit-icon,
.post-signup-plan-card.premium .plan-benefit-icon {
  background: var(--blue);
}

.landing-pricing-action {
  width: 100%;
  margin-top: auto;
}

.landing-plan-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: #0d655b;
  background: #dff5ef;
  border: 1px solid rgba(20, 121, 109, 0.24);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(20, 121, 109, 0.12);
}

.landing-pricing-card.premium .landing-plan-badge,
.post-signup-plan-card.premium .landing-plan-badge {
  color: #0d655b;
  background: #dff5ef;
  border-color: rgba(20, 121, 109, 0.24);
  box-shadow: 0 10px 24px rgba(20, 121, 109, 0.12);
}

.landing-pricing-page {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.landing-pricing-hero,
.landing-pricing-info {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(53, 106, 154, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 247, 0.98));
  box-shadow: var(--shadow);
}

.landing-pricing-hero {
  padding: 8px 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-pricing-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #1d2c33;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
}

.landing-pricing-hero p,
.landing-pricing-info p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.landing-pricing-info {
  border-left: 4px solid var(--teal);
  box-shadow: none;
}

.landing-pricing-info strong {
  color: #172a30;
  font-size: 18px;
}

.landing-trust {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid rgba(53, 106, 154, 0.2);
  border-radius: 12px;
  background: #eff5fa;
}

.landing-trust-grid {
  display: grid;
  gap: 10px;
}

.landing-trust-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(53, 106, 154, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.landing-trust-grid strong {
  color: #173463;
}

.landing-trust-grid span {
  color: #435760;
  line-height: 1.45;
}

.landing-auth-panel {
  display: grid;
  gap: 16px;
  margin-top: 54px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.landing-auth-route {
  min-height: 100vh;
}

.landing-auth-page {
  min-height: calc(100vh - 32px);
  display: grid;
  align-content: start;
}

.landing-auth-page-card {
  width: min(620px, 100%);
  margin: 34px auto 0;
  padding: 28px;
}

.auth-back-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0d655b;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.auth-back-link:hover {
  color: #084a43;
  text-decoration: underline;
}

.landing-auth-form-panel {
  display: grid;
  gap: 16px;
}

.auth-password-field {
  gap: 8px;
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 46px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #53636a;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  border-color: rgba(20, 121, 109, 0.24);
  background: var(--teal-soft);
  color: #0f665c;
}

.password-visibility-toggle.is-visible {
  color: #0f665c;
}

.password-eye-icon {
  position: relative;
  width: 18px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 999px 999px 780px 780px;
  transform: rotate(-2deg);
}

.password-eye-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-visibility-toggle.is-visible .password-eye-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-42deg);
}

.password-strength {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.password-strength-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #53636a;
}

.password-strength-head strong {
  color: #10242a;
  font-size: 12px;
}

.password-strength-track {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef0;
}

.password-strength-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #b8c4ca;
  transition: width 160ms ease, background-color 160ms ease;
}

.password-strength p {
  margin: 0;
  color: #53636a;
  font-size: 12px;
  line-height: 1.35;
}

.password-strength.is-weak .password-strength-track span {
  background: #d95f47;
}

.password-strength.is-medium .password-strength-track span {
  background: #d59b28;
}

.password-strength.is-strong .password-strength-track span {
  background: #168a7a;
}

.password-strength.is-weak .password-strength-head strong {
  color: #a6402f;
}

.password-strength.is-medium .password-strength-head strong {
  color: #8a6416;
}

.password-strength.is-strong .password-strength-head strong {
  color: #0c6f62;
}

.activation-email-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(248, 251, 251, 0.94);
  backdrop-filter: blur(10px);
}

.activation-email-card {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 34px;
  border: 1px solid rgba(20, 121, 109, 0.18);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(16, 36, 42, 0.14);
  text-align: center;
}

.brand-logo-mark.activation-email-logo {
  width: 54px;
  height: 54px;
}

.activation-email-kicker {
  color: #0f665c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activation-email-card h2 {
  margin: 0;
  color: #10242a;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
}

.activation-email-card p {
  max-width: 470px;
  margin: 0;
  color: #42545c;
  line-height: 1.6;
}

.activation-resend-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #246fb2;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.activation-resend-link:hover,
.activation-resend-link:focus-visible {
  color: #164f82;
  text-decoration: underline;
}

.activation-resend-link:disabled {
  color: #7b99b2;
  cursor: progress;
  text-decoration: none;
}

.activation-resend-status {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(36, 111, 178, 0.24);
  border-radius: 9px;
  background: #eef6ff;
  color: #164f82;
  font-weight: 800;
}

.activation-email-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.demo-auth-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(20, 121, 109, 0.22);
  border-radius: 10px;
  background: linear-gradient(135deg, #eef9f6 0%, #fff8e4 100%);
}

.demo-auth-panel strong {
  color: #10242a;
}

.demo-auth-panel p {
  margin: 5px 0 0;
  color: #4a5a62;
  line-height: 1.45;
}

.demo-auth-panel > span {
  color: #53636a;
  font-size: 12px;
}

.demo-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-auth-actions .button {
  flex: 1 1 120px;
  justify-content: center;
}

.post-signup-plan-page {
  min-height: calc(100vh - 48px);
  display: grid;
  align-content: start;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 0;
}

.post-signup-plan-page.authenticated {
  padding: 28px;
}

.post-signup-plan-hero,
.post-signup-plan-note {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 247, 245, 0.9));
  box-shadow: var(--shadow);
}

.post-signup-plan-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.post-signup-plan-hero > div:first-child {
  display: grid;
  gap: 12px;
}

.post-signup-plan-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #17262c;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
}

.post-signup-plan-hero p,
.post-signup-plan-note p {
  max-width: 820px;
  margin: 0;
  color: #4c5b63;
  font-size: 15px;
  line-height: 1.6;
}

.post-signup-plan-actions {
  display: flex;
  justify-content: flex-end;
}

.post-signup-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.post-signup-plan-card {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--amber);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(31, 54, 70, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.post-signup-plan-card:hover,
.post-signup-plan-card:focus-within {
  border-color: rgba(20, 121, 109, 0.42);
  background: linear-gradient(180deg, #ffffff, #f4fbf9);
  box-shadow: 0 28px 66px rgba(31, 54, 70, 0.16);
  transform: translateY(-4px);
}

.post-signup-plan-card.pro {
  border-top-color: var(--teal);
}

.post-signup-plan-card.premium {
  border-color: rgba(20, 121, 109, 0.22);
  border-top-color: var(--blue);
  background: #fff;
  box-shadow: none;
}

.post-signup-plan-card.premium:hover,
.post-signup-plan-card.premium:focus-within {
  border-color: rgba(20, 121, 109, 0.34);
  background: #f7fbfa;
  box-shadow: 0 18px 42px rgba(31, 54, 70, 0.10);
}

.post-signup-plan-card.recommended {
  z-index: 1;
}

.post-signup-plan-card-head {
  display: grid;
  gap: 12px;
}

.post-signup-plan-card-head h2 {
  margin: 0;
  color: #172a30;
  font-size: 28px;
}

.post-signup-plan-card-head p {
  margin: 6px 0 0;
  color: #52636b;
  line-height: 1.5;
}

.post-signup-plan-card-head > strong {
  color: #172a30;
  font-size: 24px;
}

.post-signup-plan-highlights {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #3f535b;
  line-height: 1.5;
  list-style: none;
}

.post-signup-plan-highlights li {
  position: relative;
  padding: 10px 12px 10px 38px;
  border-radius: 12px;
  background: rgba(248, 251, 251, 0.92);
}

.post-signup-plan-highlights li::before {
  content: "+";
  position: absolute;
  left: 12px;
  top: 11px;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.post-signup-plan-card.premium .post-signup-plan-highlights li::before {
  background: var(--blue);
}

.post-signup-plan-benefits {
  display: grid;
  gap: 10px;
  align-self: end;
}

.post-signup-plan-note {
  border-left: 4px solid var(--teal);
  box-shadow: none;
}

.post-signup-plan-note strong {
  color: #172a30;
  font-size: 18px;
}

.landing-auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 30, 34, 0.46);
  backdrop-filter: blur(6px);
}

.landing-auth-dialog {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  margin-top: 0;
  overflow: auto;
}

.landing-auth-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.landing-auth-dialog-head .auth-intro {
  min-width: 0;
}

.landing-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.landing-auth-summary .control-card {
  min-height: auto;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: linear-gradient(180deg, #eef4f3 0%, #f8faf9 100%);
}

.auth-card {
  width: min(1060px, 100%);
  display: grid;
  gap: 16px;
}

.password-reset-card {
  width: min(720px, 100%);
}

.auth-brand {
  width: max-content;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.auth-brand .brand-logo-full {
  width: 210px;
  padding: 0;
}

.auth-brand span {
  color: var(--muted);
}

.landing-auth-logo {
  margin-bottom: 4px;
}

.landing-auth-logo.auth-brand {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.landing-auth-logo .brand-logo-full {
  width: 240px;
}

.auth-intro {
  max-width: 760px;
}

.auth-intro h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.auth-intro p,
.auth-note {
  color: var(--muted);
  line-height: 1.55;
}

.auth-note {
  display: flex;
  gap: 8px;
}

.setup-auth-card {
  width: min(1280px, 100%);
}

.auth-mode-switch {
  width: max-content;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.auth-mode-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
}

.auth-mode-switch button.active {
  color: #fff;
  background: var(--teal);
}

.auth-feature-list {
  gap: 10px;
}

.auth-link-button {
  width: max-content;
  justify-self: start;
  padding-inline: 0;
  border: 0;
  background: transparent;
  color: #0d655b;
  box-shadow: none;
  font-weight: 700;
}

.auth-link-button:hover {
  border: 0;
  background: transparent;
  color: #084a43;
  text-decoration: underline;
}

.setup-code {
  max-height: 440px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #183236;
  background: #f7faf9;
  white-space: pre-wrap;
}

.setup-code.compact {
  max-height: 300px;
}

.setup-code code {
  padding: 0;
  background: transparent;
}

.button,
.primary,
.ghost,
.danger,
.input-file-label {
  max-width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.ghost {
  background: transparent;
}

.danger {
  border-color: #e5c7c7;
  color: var(--red);
  background: #fff7f7;
}

.button:hover,
.ghost:hover,
.input-file-label:hover {
  background: var(--surface-2);
}

.primary:hover {
  background: #0f685e;
}

.button:disabled,
.primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.danger:hover {
  background: #f8e5e5;
}

input[type="file"] {
  display: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid > *,
.form-grid > *,
.section-head > *,
.topbar > *,
.actions > *,
.tabs > *,
.pill-row > * {
  min-width: 0;
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-left {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
}

.wide-right {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.5fr);
}

.account-grid {
  margin-top: 14px;
}

.account-profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f1faf8 72%);
  box-shadow: 0 12px 28px rgba(19, 42, 49, 0.07);
}

.account-profile-main {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.account-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--teal);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.account-profile-main h2,
.account-profile-main p {
  margin: 0;
}

.account-profile-main h2 {
  margin-top: 8px;
  font-size: 25px;
  line-height: 1.1;
}

.account-profile-main p {
  margin-top: 5px;
  color: var(--muted);
}

.account-profile-main .pill-row {
  margin-top: 10px;
}

.account-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.account-profile-actions .button,
.account-profile-actions .danger {
  min-height: 38px;
  padding-inline: 14px;
}

.account-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-summary-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.account-summary-card:hover,
.account-summary-card:focus-visible {
  border-color: rgba(20, 121, 109, 0.34);
  box-shadow: 0 10px 24px rgba(19, 42, 49, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.account-summary-card.active {
  border-color: rgba(20, 121, 109, 0.42);
  border-top-color: var(--teal);
  background: #f6fbfa;
}

.account-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-card-expand {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.account-card-expand::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-right: 2px solid #526168;
  border-bottom: 2px solid #526168;
  transform: rotate(45deg);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.account-summary-card:hover .account-card-expand,
.account-summary-card:focus-visible .account-card-expand,
.account-summary-card.active .account-card-expand {
  border-color: rgba(20, 121, 109, 0.38);
  background: #eef8f5;
}

.account-summary-card.active .account-card-expand::before {
  margin-top: 3px;
  border-color: var(--teal);
  transform: rotate(225deg);
}

.account-summary-card strong {
  display: block;
  margin: 10px 0 4px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.account-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.account-detail-panel {
  margin-top: 14px;
}

.workspace-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workspace-data-card {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.workspace-data-card:nth-child(2) {
  border-top-color: var(--blue);
}

.workspace-data-card:nth-child(3) {
  border-top-color: #d8a533;
}

.workspace-data-card:nth-child(4) {
  border-top-color: #6f8faf;
}

.workspace-data-card:nth-child(5) {
  border-top-color: #a875c4;
}

.workspace-data-card:nth-child(6) {
  border-top-color: #2f9e7e;
}

.workspace-data-card span,
.workspace-data-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.workspace-data-card span {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.workspace-data-card strong {
  display: block;
  margin: 8px 0 5px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.workspace-current-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(20, 121, 109, 0.22);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--teal-soft), #ffffff 72%);
}

.workspace-current-card h3,
.workspace-current-card p {
  margin: 0;
}

.workspace-current-card h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
}

.workspace-current-card p {
  margin-top: 5px;
  color: var(--muted);
}

.account-detail-panel.empty-detail {
  min-height: 118px;
  display: grid;
  align-items: center;
  border-style: dashed;
  background: #fbfcfc;
}

.account-detail-panel.empty-detail h2,
.account-detail-panel.empty-detail p {
  margin: 0;
}

.account-detail-panel.empty-detail p {
  margin-top: 6px;
  color: var(--muted);
}

.source-label.teal {
  background: var(--teal-soft);
  color: #0f665c;
}

.supabase-panel {
  margin-top: 14px;
}

.password-panel {
  margin-top: 14px;
}

.password-panel.embedded {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.password-panel.highlight {
  border-color: #8fcac1;
  background: #eefaf6;
}

.password-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.panel,
.metric,
.table-wrap,
.topic,
.quote,
.report-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel {
  min-width: 0;
  max-width: 100%;
  padding: 16px;
}

.metric {
  min-height: 112px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--blue);
}

.metric::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: var(--blue-soft);
  opacity: .72;
  pointer-events: none;
}

.metric:nth-child(4n + 1) {
  border-top-color: var(--teal);
}

.metric:nth-child(4n + 1)::after {
  background: var(--teal-soft);
}

.metric:nth-child(4n + 2) {
  border-top-color: var(--blue);
}

.metric:nth-child(4n + 2)::after {
  background: var(--blue-soft);
}

.metric:nth-child(4n + 3) {
  border-top-color: var(--amber);
}

.metric:nth-child(4n + 3)::after {
  background: var(--amber-soft);
}

.metric:nth-child(4n + 4) {
  border-top-color: var(--coral);
}

.metric:nth-child(4n + 4)::after {
  background: var(--coral-soft);
}

.metric strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 28px;
  line-height: 1;
  margin: 10px 0;
}

.metric span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-2);
  color: #465158;
  font-size: 12px;
  white-space: nowrap;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-list-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(240px, 0.9fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
}

.project-list-card:nth-child(4n + 1) {
  border-left-color: var(--teal);
}

.project-list-card:nth-child(4n + 2) {
  border-left-color: var(--blue);
}

.project-list-card:nth-child(4n + 3) {
  border-left-color: var(--amber);
}

.project-list-card:nth-child(4n + 4) {
  border-left-color: var(--coral);
}

.project-list-card.active {
  border-left: 4px solid var(--teal);
  background: linear-gradient(90deg, var(--teal-soft), #fff 42%);
}

.project-list-card.readonly {
  border-left-color: #c9d4d8;
  background: #f8fafb;
}

.project-list-card.readonly .project-list-main,
.project-list-card.readonly .project-list-meta {
  opacity: 0.88;
}

.project-list-main {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.project-list-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.project-list-title-row strong {
  font-size: 16px;
}

.project-list-main p,
.project-list-main span,
.project-list-meta small {
  margin: 4px 0 0;
}

.project-list-count {
  min-width: 82px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: #214f74;
  text-align: center;
}

.project-list-card:nth-child(4n + 1) .project-list-count {
  background: var(--teal-soft);
  color: #0f665c;
}

.project-list-card:nth-child(4n + 3) .project-list-count {
  background: var(--amber-soft);
  color: #80540d;
}

.project-list-card:nth-child(4n + 4) .project-list-count {
  background: var(--coral-soft);
  color: #a4452a;
}

.project-list-count strong,
.project-list-count span {
  display: block;
}

.project-list-count strong {
  font-size: 24px;
}

.project-list-count span,
.project-list-meta label {
  color: var(--muted);
  font-size: 12px;
}

.project-list-meta {
  display: grid;
  gap: 6px;
}

.project-list-meta label {
  display: grid;
  gap: 5px;
  font-weight: 800;
  color: #425059;
  text-transform: uppercase;
  letter-spacing: 0;
}

.project-list-meta .plan-active-toggle {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-transform: none;
}

.plan-active-toggle input {
  width: 16px;
  height: 16px;
}

.plan-active-toggle span {
  margin: 0;
  color: #334148;
  font-size: 12px;
}

.project-card-actions {
  justify-content: flex-end;
}

.table-input {
  width: min(260px, 100%);
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 7px 9px;
}

.collection-input {
  display: block;
  margin-bottom: 5px;
}

.project-list-meta .collection-input {
  width: 100%;
  margin-bottom: 0;
  text-transform: none;
  font-weight: 500;
}

.template-controls {
  display: grid;
  gap: 10px;
}

.next-step-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  border-left: 4px solid var(--teal);
  background: var(--teal-soft);
}

.next-step-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.next-step-panel h2,
.next-step-panel p {
  margin: 0;
}

.next-step-panel p {
  margin-top: 4px;
  color: #2f5550;
}

.dashboard-onboarding-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.dashboard-onboarding-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  row-gap: 2px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(20, 121, 109, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.dashboard-onboarding-step:hover:not(:disabled),
.dashboard-onboarding-step:focus-visible {
  border-color: rgba(20, 121, 109, 0.38);
  background: #fff;
  box-shadow: 0 10px 22px rgba(19, 42, 49, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.dashboard-onboarding-step span {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.dashboard-onboarding-step strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.2;
}

.dashboard-onboarding-step small {
  color: #4c6965;
  font-size: 12px;
  line-height: 1.25;
}

.dashboard-onboarding-step.done span {
  background: var(--blue);
}

.dashboard-onboarding-step.pending {
  opacity: 0.72;
}

.dashboard-onboarding-step.pending span {
  background: #9fb2bd;
}

.dashboard-onboarding-step:disabled {
  cursor: default;
}

.dashboard-view {
  display: grid;
  gap: 14px;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  border-top: 4px solid var(--teal);
}

.dashboard-overview-main {
  display: grid;
  align-content: center;
  gap: 8px;
}

.dashboard-overview-main h2,
.dashboard-overview-main p {
  margin: 0;
}

.dashboard-overview-main h2 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.dashboard-overview-main p {
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-action-grid {
  display: grid;
  gap: 10px;
}

.dashboard-action-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: #fbfcfc;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dashboard-action-card:nth-child(2) {
  border-left-color: var(--blue);
}

.dashboard-action-card:nth-child(3) {
  border-left-color: var(--amber);
}

.dashboard-action-card:hover,
.dashboard-action-card:focus-visible {
  border-color: rgba(20, 121, 109, 0.36);
  box-shadow: 0 10px 22px rgba(19, 42, 49, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.dashboard-action-card strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.dashboard-action-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-stat {
  min-width: 0;
  min-height: 100px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
}

.dashboard-stat.teal {
  border-top-color: var(--teal);
  background: linear-gradient(180deg, #fff, var(--teal-soft));
}

.dashboard-stat.blue {
  border-top-color: var(--blue);
  background: linear-gradient(180deg, #fff, var(--blue-soft));
}

.dashboard-stat.amber {
  border-top-color: var(--amber);
  background: linear-gradient(180deg, #fff, var(--amber-soft));
}

.dashboard-stat.coral {
  border-top-color: var(--coral);
  background: linear-gradient(180deg, #fff, var(--coral-soft));
}

.dashboard-stat span,
.dashboard-stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-stat span {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.dashboard-stat strong {
  display: block;
  margin: 9px 0 4px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.dashboard-themes-panel {
  margin-top: 0;
}

.dashboard-themes-panel .ai-theme-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-themes-panel .ai-card {
  min-height: 118px;
}

.import-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.import-onboarding-title {
  min-height: auto;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0 0 12px;
  padding: 4px 0 6px;
  text-align: left;
}

.import-onboarding-title h2 {
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
}

.import-onboarding-view .import-step-panel:first-of-type {
  border-top: 4px solid var(--teal);
}

.import-onboarding-view .dropzone {
  min-height: 230px;
  border-width: 2px;
  background: linear-gradient(180deg, #f8fbfb 0%, #eef8f5 100%);
}

.import-step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

.import-step:nth-child(1) {
  border-left: 4px solid var(--blue);
}

.import-step:nth-child(2) {
  border-left: 4px solid var(--amber);
}

.import-step:nth-child(3) {
  border-left: 4px solid var(--teal);
}

.import-step span,
.step-heading span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef3f5;
  color: #51616a;
  font-weight: 900;
}

.import-step.done span {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.import-step.active {
  border-color: var(--teal);
  color: var(--ink);
  box-shadow: inset 0 3px 0 var(--teal);
}

.import-step.active span {
  background: var(--teal);
  color: #fff;
}

.import-step-grid {
  grid-template-columns: minmax(320px, .85fr) minmax(420px, 1.15fr);
}

.import-step-panel {
  display: grid;
  gap: 14px;
}

.step-heading {
  display: flex;
  gap: 10px;
  align-items: start;
}

.step-heading h2,
.step-heading p {
  margin: 0;
}

.step-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.import-final-step {
  margin-top: 14px;
}

.advanced-options {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
  padding: 10px;
}

.advanced-options summary {
  cursor: pointer;
  color: #334148;
  font-weight: 800;
}

.advanced-options[open] summary {
  margin-bottom: 10px;
}

.compact-advanced {
  background: #fff;
}

.import-success {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #a7d7ce;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: #eefaf6;
}

.import-success.info {
  border-color: #b9d2e7;
  border-left-color: var(--blue);
  background: #eef6fb;
}

.import-success.error {
  border-color: #efb8aa;
  border-left-color: var(--coral);
  background: #fff2ee;
}

.import-success strong,
.import-success p {
  margin: 0;
}

.import-success p {
  margin-top: 4px;
  color: #3d5550;
  font-size: 13px;
}

.import-success .actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.billing-feedback {
  align-items: flex-start;
}

.billing-feedback > div:first-child {
  min-width: 0;
}

.billing-feedback-details {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.billing-feedback-block {
  display: grid;
  gap: 6px;
}

.billing-feedback-block > span {
  color: #6f4912;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.billing-feedback-block > p {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(217, 151, 54, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #3e4b52;
}

.billing-feedback-actions {
  align-self: flex-start;
}

.billing-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 121, 109, 0.26);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: #fff;
}

.billing-strip strong,
.billing-mini b,
.billing-usage-row strong {
  display: block;
}

.billing-strip-items,
.billing-feature-grid,
.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.billing-mini {
  min-height: 38px;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: #344149;
  font-size: 12px;
}

.billing-mini span,
.billing-usage-row span {
  color: var(--muted);
  font-size: 12px;
}

.billing-panel {
  margin-bottom: 14px;
  border-top: 4px solid var(--teal);
}

.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.billing-usage-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.billing-usage-row.over-limit {
  border-color: #e3b35b;
  background: #fff8e8;
}

.billing-usage-row.over-limit .billing-meter span {
  background: var(--amber);
}

.plan-overage-panel,
.project-readonly-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
  border-left: 4px solid var(--amber);
  background: #fff8e8;
}

.plan-overage-main,
.plan-overage-actions,
.project-readonly-panel > div {
  display: grid;
  gap: 8px;
}

.plan-overage-panel h2,
.plan-overage-panel p,
.project-readonly-panel h2,
.project-readonly-panel p {
  margin: 0;
}

.plan-overage-panel p,
.project-readonly-panel p {
  color: #5d4a26;
  line-height: 1.5;
}

.plan-overage-actions {
  justify-items: end;
}

.project-readonly-panel {
  background: #f8fafb;
  border-left-color: #9fb2bd;
}

.project-readonly-panel p {
  color: #46575f;
}

.billing-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe7eb;
}

.billing-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.billing-preflight {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(20, 121, 109, 0.24);
  border-radius: 8px;
  background: #f1faf8;
  overflow-wrap: anywhere;
}

.billing-preflight.warn,
.billing-lock-panel {
  border-color: rgba(217, 151, 54, 0.42);
  background: var(--amber-soft);
}

.billing-preflight p,
.billing-lock-panel p {
  margin: 0;
  color: #344149;
  line-height: 1.45;
}

.billing-violation-list {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.billing-violation-list li {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(217, 151, 54, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
}

.billing-violation-list strong,
.billing-violation-list span,
.billing-violation-list small {
  display: block;
}

.billing-violation-list strong {
  color: #6f4912;
  font-size: 12px;
}

.billing-violation-list span,
.billing-violation-list small {
  color: #3e4b52;
  font-size: 12px;
  line-height: 1.4;
}

.billing-violation-list small {
  color: #6f4912;
}

.billing-lock-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.billing-lock-panel h2 {
  margin: 4px 0;
}

.import-warnings {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.import-warning {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbfc;
}

.import-warning.warn {
  border-left-color: var(--coral);
}

.import-warning.info {
  border-left-color: var(--teal);
}

.import-warning strong,
.import-warning p {
  margin: 0;
}

.import-warning p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.import-preview-panel {
  margin-top: 14px;
}

.import-preview th small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.taxonomy-editor {
  margin-bottom: 14px;
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.3fr);
  gap: 14px;
}

.taxonomy-editor input,
.taxonomy-editor select {
  min-width: 180px;
}

.taxonomy-question-table td:first-child {
  min-width: 240px;
}

.history-section {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.history-client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.history-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.history-card h3,
.history-card p {
  margin: 0;
}

.history-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.history-panel {
  margin-top: 0;
}

.delta {
  font-weight: 800;
}

.delta.positive {
  color: var(--teal);
}

.delta.negative {
  color: var(--coral);
}

.segment-view {
  display: grid;
  gap: 14px;
}

.segment-controls {
  margin-bottom: 0;
}

.segment-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.segment-filter-grid > *,
.segment-results-grid > *,
.segment-view .panel,
.segment-view .metric,
.segment-view select,
.segment-view input {
  min-width: 0;
}

.segment-results-grid {
  margin-top: 0;
}

.segment-table-wrap table {
  min-width: 820px;
}

.muted-row {
  color: var(--muted);
  background: #fafbfb;
}

.segment-risk-panel {
  border-top: 4px solid var(--blue);
}

.segment-problem-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.segment-problem-card.teal {
  border-left-color: var(--teal);
  background: var(--teal-soft);
}

.segment-problem-card.amber {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.segment-problem-card.coral {
  border-left-color: var(--coral);
  background: var(--coral-soft);
}

.segment-problem-card h3,
.segment-problem-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.segment-problem-card h3 {
  font-size: 20px;
  line-height: 1.2;
}

.segment-problem-card p {
  color: #2f3b42;
  font-size: 14px;
  line-height: 1.55;
}

.trend-view {
  display: grid;
  gap: 14px;
}

.trend-controls {
  margin-bottom: 0;
}

.trend-header-actions {
  align-items: center;
}

.trend-ai-panel,
.trend-mapping-panel {
  margin: 0;
}

.trend-mapping-panel summary {
  cursor: pointer;
  font-weight: 800;
}

.trend-mapping-table select {
  min-width: min(420px, 100%);
}

.pill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.trend-ai-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #23343b;
  line-height: 1.55;
}

.trend-grid {
  align-items: stretch;
}

.trend-line-chart {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
}

.trend-line-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 0 58px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.trend-line-plot {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fbfb);
  overflow: hidden;
}

.trend-line-plot svg,
.segment-sparkline svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.trend-grid-line {
  stroke: rgba(108, 123, 132, 0.22);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.trend-line-path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trend-line-path.teal {
  stroke: var(--teal);
}

.trend-line-path.amber {
  stroke: var(--amber);
}

.trend-line-path.coral {
  stroke: var(--coral);
}

.trend-line-point circle {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.trend-line-point.teal circle {
  stroke: var(--teal);
}

.trend-line-point.amber circle {
  stroke: var(--amber);
}

.trend-line-point.coral circle {
  stroke: var(--coral);
}

.trend-line-point.latest circle {
  fill: currentColor;
}

.trend-line-chart.teal {
  color: var(--teal);
}

.trend-line-chart.blue {
  color: var(--blue);
}

.trend-line-chart.amber {
  color: var(--amber);
}

.trend-line-chart.coral {
  color: var(--coral);
}

.trend-line-labels {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(var(--trend-count), minmax(82px, 1fr));
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
}

.trend-line-labels div {
  min-width: 82px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.trend-line-labels strong,
.trend-line-labels span,
.trend-line-labels small {
  display: block;
}

.trend-line-labels strong {
  font-size: 15px;
}

.trend-line-labels span,
.trend-line-labels small {
  color: var(--muted);
  font-size: 12px;
}

.trend-line-labels .hidden {
  color: var(--muted);
  background: #f7f8f8;
}

.segment-trend-panel {
  border-top: 4px solid var(--teal);
}

.segment-trend-controls {
  margin-bottom: 12px;
}

.segment-trend-table table {
  min-width: 880px;
}

.segment-sparkline {
  width: 170px;
  height: 46px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.trend-chart {
  min-height: 250px;
  display: grid;
  grid-template-columns: repeat(var(--trend-count), minmax(70px, 1fr));
  gap: 12px;
  align-items: end;
  padding-top: 8px;
  overflow-x: auto;
}

.trend-point {
  min-width: 70px;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  gap: 6px;
  justify-items: center;
  color: #2f3b42;
  text-align: center;
}

.trend-point.hidden {
  color: var(--muted);
}

.trend-bar-track {
  width: 100%;
  min-height: 170px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, #f4f7f8);
}

.trend-bar {
  width: min(54px, 80%);
  border-radius: 5px 5px 0 0;
  background: var(--blue);
}

.trend-bar.teal {
  background: var(--teal);
}

.trend-bar.amber {
  background: var(--amber);
}

.trend-bar.coral {
  background: var(--coral);
}

.trend-point strong {
  font-size: 18px;
}

.trend-point span,
.trend-point small,
.trend-footnote {
  color: var(--muted);
  font-size: 12px;
}

.trend-highlight {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.trend-highlight.teal {
  border-left-color: var(--teal);
  background: var(--teal-soft);
}

.trend-highlight.amber {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.trend-highlight.coral {
  border-left-color: var(--coral);
  background: var(--coral-soft);
}

.trend-highlight strong,
.trend-highlight span {
  display: block;
}

.trend-highlight b {
  font-size: 28px;
}

.pill.teal {
  background: var(--teal-soft);
  color: #0f665c;
}

.pill.blue {
  background: var(--blue-soft);
  color: #24577e;
}

.pill.amber {
  background: var(--amber-soft);
  color: #80540d;
}

.pill.coral {
  background: var(--coral-soft);
  color: #a4452a;
}

.pill.green {
  background: var(--green-soft);
  color: #286b44;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tabs button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  background: var(--surface);
}

.tabs button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.analysis-tabs {
  margin-bottom: 0;
}

.project-tabs {
  margin-bottom: 14px;
}

.chart {
  min-height: 250px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 16px 0 0;
  border-bottom: 1px solid var(--line);
}

.bar {
  flex: 1;
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 8px;
}

.bar-fill {
  width: 100%;
  max-width: 58px;
  min-height: 12px;
  border-radius: 5px 5px 0 0;
  background: var(--teal);
}

.bar:nth-child(2n) .bar-fill {
  background: var(--blue);
}

.bar:nth-child(3n) .bar-fill {
  background: var(--amber);
}

.bar label {
  min-height: 38px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: #f3f6f7;
  color: #58636a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tr:last-child td {
  border-bottom: 0;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.analysis-controls {
  margin-bottom: 14px;
}

.analysis-view {
  display: grid;
  gap: 14px;
}

.analysis-intro {
  align-items: flex-start;
  margin-bottom: 10px;
}

.analysis-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 360px;
}

.analysis-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 14px;
}

.analysis-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.analysis-column-head {
  align-items: flex-start;
  margin-bottom: 0;
}

.analysis-subsection {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ai-summary-zone {
  border-top: 4px solid var(--blue);
}

.respondent-zone {
  border-top: 4px solid var(--teal);
}

.source-label {
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.source-label.ai {
  background: var(--blue-soft);
  color: #28577d;
}

.source-label.respondent {
  background: var(--teal-soft);
  color: #0f665c;
}

.source-label.data {
  background: var(--amber-soft);
  color: #80540d;
}

.compact-head {
  margin-bottom: 0;
}

.compact-head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.simple-filter-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.3fr) minmax(180px, 0.7fr);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #515b62;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}

.field textarea {
  resize: vertical;
  min-height: 108px;
}

.field-hint {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.control-view {
  display: grid;
  gap: 14px;
}

.control-hero .section-head {
  align-items: flex-start;
}

.control-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.control-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: #fbfcfc;
}

.control-card.ok {
  border-left-color: var(--teal);
  background: linear-gradient(180deg, var(--teal-soft), #fff 62%);
}

.control-card.warn {
  border-left-color: var(--amber);
  background: linear-gradient(180deg, var(--amber-soft), #fff 62%);
}

.control-card strong {
  font-size: 15px;
  line-height: 1.35;
}

.control-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.control-grid {
  margin-top: 0;
}

.review-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.review-group {
  display: grid;
  gap: 10px;
}

.review-group-title,
.review-checked summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.review-checked {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.review-checked summary {
  cursor: pointer;
  margin-bottom: 10px;
}

.review-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  background: #fff;
}

.review-item.checked {
  border-left-color: var(--teal);
  background: #f7fbfa;
}

.review-item.sensitive {
  border-left-color: var(--coral);
  background: #fff8f5;
}

.review-item-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.review-check {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #314a52;
  font-size: 13px;
  font-weight: 800;
}

.review-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.review-sensitive-toggle.active {
  border-color: #e0a08d;
  color: #8c341c;
  background: var(--coral-soft);
}

.review-item-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.review-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.review-item-head strong {
  line-height: 1.3;
}

.review-evidence {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 6px;
  background: #f3f6f7;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.review-answer {
  display: block;
  padding: 10px 11px;
  border: 1px solid #d8e2e5;
  border-radius: 7px;
  background: #f8fbfb;
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.review-answer strong {
  font-weight: 900;
  color: #071e24;
  background: #fff0b8;
  border-radius: 4px;
  padding: 0 3px;
}

.review-context,
.review-action {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.review-context.question {
  padding: 8px 10px;
  border-left: 3px solid #9fcfc7;
  border-radius: 6px;
  background: #f3faf8;
  color: #233e45;
}

.review-context strong {
  color: var(--ink);
}

.review-action {
  color: #314a52;
}

.review-empty {
  margin-top: 14px;
}

.control-explainer {
  margin-top: 14px;
}

.control-explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.control-explainer-grid > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.control-explainer-grid strong {
  display: block;
  margin-bottom: 6px;
}

.control-explainer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dropzone {
  border: 1px dashed #aab7bd;
  border-radius: var(--radius);
  background: #fbfcfc;
  padding: 18px;
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
}

.import-file-cta {
  width: min(380px, 100%);
  min-height: 58px;
  justify-content: center;
  margin-top: 18px;
  font-size: 18px;
  font-weight: 900;
}

.import-imported-side-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.import-imported-side-panel h2 {
  margin: 8px 0 6px;
}

.import-imported-side-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.import-completion-view {
  max-width: 980px;
}

.import-completion-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.import-completion-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.35fr);
  gap: 20px;
  align-items: start;
}

.import-completion-naming {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.import-completion-naming h2 {
  margin: 8px 0 6px;
}

.import-completion-naming p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.import-metadata-fields {
  grid-template-columns: 1fr;
}

.import-completion-status {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.import-completion-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.import-completion-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 25px;
  font-weight: 900;
}

.import-completion-main h2 {
  margin: 8px 0 6px;
}

.import-completion-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.import-completion-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.import-completion-stats span {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
  color: var(--muted);
  font-size: 12px;
}

.import-completion-stats strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.import-completion-columns {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.import-completion-columns h3 {
  margin: 0 0 4px;
}

.import-completion-columns p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.import-column-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.import-column-pill {
  max-width: 100%;
  display: inline-grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf9;
}

.import-column-pill strong {
  color: var(--teal);
  font-size: 11px;
  line-height: 1;
}

.import-column-pill span {
  max-width: 220px;
  overflow: hidden;
  color: #344247;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-column-pill.more {
  background: var(--teal-soft);
}

.import-completion-actions {
  padding-top: 4px;
}

.dropzone strong {
  display: block;
  font-size: 15px;
}

.dropzone span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  display: none;
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 20;
  font-size: 13px;
}

.toast.show {
  display: block;
}

.heatmap {
  display: grid;
  grid-template-columns: 150px repeat(var(--heat-cols), minmax(var(--heat-question-min, 110px), 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
}

.heatmap div {
  min-height: 42px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  align-items: center;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.heatmap .head {
  background: #f3f6f7;
  color: #58636a;
  font-weight: 700;
}

.heatmap .question-head {
  align-items: start;
}

.heatmap.full-question-headers .question-head {
  min-height: 64px;
  white-space: normal;
  font-size: 12px;
  line-height: 1.35;
}

.hm-good {
  background: var(--teal-soft);
  color: #0d5e55;
}

.hm-mid {
  background: var(--amber-soft);
  color: #7c520d;
}

.hm-low {
  background: var(--coral-soft);
  color: #9b3d25;
}

.topic-list {
  display: grid;
  gap: 10px;
}

.topic {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.topic h3 {
  margin: 0;
  font-size: 14px;
}

.topic-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.muted {
  color: var(--muted);
}

.quote {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.survey-card {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
  color: var(--ink);
  text-align: left;
}

.survey-card:hover,
.survey-card.active {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.survey-card strong {
  font-size: 14px;
  line-height: 1.3;
}

.survey-card span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.ai-theme-grid,
.ai-question-list {
  display: grid;
  gap: 10px;
}

.ai-theme-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-card,
.ai-question {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

button.ai-card {
  width: 100%;
  color: var(--ink);
  text-align: left;
}

.ai-card:hover,
.ai-card.active {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.ai-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.ai-card p,
.ai-question p {
  margin: 0;
  color: #3d474e;
  font-size: 13px;
  line-height: 1.5;
}

.ai-question strong {
  font-size: 13px;
  line-height: 1.35;
}

.ai-question small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.selected-topic,
.comment-browser {
  display: grid;
  gap: 10px;
}

.response-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.response-list-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.answer-panel {
  display: grid;
  gap: 12px;
}

.answer-ai-summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(53, 106, 154, 0.28);
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.answer-ai-summary h3,
.answer-ai-summary p {
  margin: 0;
}

.answer-ai-summary h3 {
  font-size: 15px;
  line-height: 1.35;
}

.answer-ai-summary p {
  color: #2f4d63;
  font-size: 13px;
  line-height: 1.5;
}

.answer-ai-summary .summary-lead {
  color: #17384f;
  font-size: 14px;
  font-weight: 700;
}

.qualitative-summary,
.model-summary-content {
  display: grid;
  gap: 8px;
}

.qualitative-summary section {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(53, 106, 154, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
}

.qualitative-summary h4 {
  margin: 0;
  color: #17384f;
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
}

.model-summary {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(20, 121, 109, 0.26);
  border-radius: var(--radius);
  background: rgba(222, 240, 237, 0.74);
}

.model-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.model-summary-head div {
  display: grid;
  gap: 2px;
}

.model-summary-head strong {
  color: #0f665c;
  font-size: 13px;
}

.model-summary-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.cloud-ai-note {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(20, 121, 109, 0.24);
  border-radius: 7px;
  background: rgba(238, 250, 246, 0.88);
  color: #1d4c49;
  font-size: 12px;
  line-height: 1.45;
}

.cloud-ai-note strong {
  color: #0f665c;
}

.model-error {
  color: #9b3d25;
  font-weight: 700;
}

.model-summary-placeholder {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.summary-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
}

.summary-count {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(53, 106, 154, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.summary-count strong {
  color: #183246;
  font-size: 20px;
  line-height: 1;
}

.summary-count span {
  color: #54636d;
  font-size: 12px;
  line-height: 1.25;
}

.summary-count.teal {
  border-color: rgba(19, 132, 119, 0.28);
}

.summary-count.amber {
  border-color: rgba(207, 144, 35, 0.3);
}

.summary-count.coral {
  border-color: rgba(214, 94, 65, 0.32);
}

.evidence-panel {
  display: grid;
  gap: 14px;
  border-top: 4px solid var(--blue);
}

.inline-recommendation-panel {
  margin-top: 4px;
  padding-top: 12px;
}

.inline-recommendation-panel .section-head {
  margin-bottom: -2px;
}

.inline-recommendation-panel h3 {
  margin: 3px 0 0;
  color: #13242e;
  font-size: 16px;
  line-height: 1.25;
}

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 14px;
}

.evidence-card,
.recommendation-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.evidence-card h3,
.recommendation-card h3,
.evidence-card p,
.recommendation-card p,
.recommendation-card small {
  margin: 0;
}

.evidence-card h3,
.recommendation-card h3 {
  color: #13242e;
  font-size: 15px;
  line-height: 1.35;
}

.evidence-card p,
.recommendation-card p {
  color: #3e4b52;
  font-size: 13px;
  line-height: 1.55;
}

.recommendation-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.evidence-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 8px;
}

.evidence-stat-grid span {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(53, 106, 154, 0.16);
  border-radius: 7px;
  background: #fff;
}

.evidence-stat-grid strong {
  color: #17384f;
  font-size: 22px;
  line-height: 1;
}

.evidence-stat-grid small {
  color: var(--muted);
  font-size: 12px;
}

.evidence-quotes {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
  padding-right: 4px;
}

.evidence-quotes blockquote {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 10px 11px;
  border-left: 4px solid var(--teal);
  border-radius: 7px;
  background: #fff;
}

.evidence-quotes p {
  color: #24323a;
}

.evidence-quotes cite {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.recommendation-card {
  border-left: 4px solid var(--blue);
}

.recommendation-card.teal {
  border-left-color: var(--teal);
  background: var(--teal-soft);
}

.recommendation-card.amber {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.recommendation-card.coral {
  border-left-color: var(--coral);
  background: var(--coral-soft);
}

.recommendation-card.blue {
  border-left-color: var(--blue);
  background: var(--blue-soft);
}

.consulting-recommendation-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.consulting-recommendation-card {
  min-width: 0;
}

.consulting-recommendation-card dl,
.report-recommendation-details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.consulting-recommendation-card dl div,
.report-recommendation-details div {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(53, 106, 154, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
}

.consulting-recommendation-card dt,
.report-recommendation-details dt {
  color: #53616a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.consulting-recommendation-card dd,
.report-recommendation-details dd {
  margin: 0;
  color: #27363e;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.open-topic-map {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.open-topic-map-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.open-topic-map-head h3 {
  margin: 4px 0 0;
  color: #13242e;
  font-size: 15px;
  line-height: 1.25;
}

.open-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.open-topic-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #fff;
}

.open-topic-card.teal {
  border-left-color: var(--teal);
  background: linear-gradient(180deg, #fff, #f2faf8);
}

.open-topic-card.blue {
  border-left-color: var(--blue);
  background: linear-gradient(180deg, #fff, #f2f7fc);
}

.open-topic-card.amber {
  border-left-color: var(--amber);
  background: linear-gradient(180deg, #fff, #fff9ed);
}

.open-topic-card.coral {
  border-left-color: var(--coral);
  background: linear-gradient(180deg, #fff, #fff6f2);
}

.open-topic-card h4,
.open-topic-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.open-topic-card h4 {
  color: #13242e;
  font-size: 14px;
}

.open-topic-card p {
  color: #3e4b52;
  font-size: 12px;
  line-height: 1.45;
}

.open-topic-quotes {
  display: grid;
  gap: 7px;
}

.open-topic-quotes blockquote {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 8px 9px;
  border-left: 3px solid rgba(20, 121, 109, 0.45);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.open-topic-quotes p {
  color: #24323a;
  font-size: 12px;
  line-height: 1.45;
}

.open-topic-quotes cite {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.compact-empty {
  padding: 12px;
}

.answer-list {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.answer-row {
  display: grid;
  grid-template-columns: minmax(70px, 0.25fr) minmax(110px, 0.35fr) minmax(160px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: #fff;
}

.answer-row strong {
  color: #102f2b;
  font-size: 18px;
  line-height: 1.1;
}

.answer-row span {
  color: #3e4b52;
  font-size: 13px;
}

.answer-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.comment-browser {
  margin-top: 12px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.comment-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: #fff;
}

.comment-answer {
  margin: 0;
  color: #263139;
  font-size: 14px;
  line-height: 1.55;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.comment-meta span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: var(--surface-2);
}

.comment-meta .ok {
  background: var(--teal-soft);
  color: #0f665c;
}

.comment-meta .warn {
  background: var(--amber-soft);
  color: #704707;
}

.import-summary {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(20, 121, 109, 0.35);
  border-radius: var(--radius);
  background: var(--teal-soft);
  overflow-wrap: anywhere;
}

.import-summary span {
  color: #0f665c;
  font-size: 12px;
}

.import-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.import-summary .eyebrow {
  color: #0b5f55;
}

.import-cta {
  width: 100%;
  margin-top: 4px;
  min-height: 46px;
  font-weight: 700;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-2);
}

.quote p {
  margin: 0;
  color: #384248;
  line-height: 1.48;
  font-size: 13px;
}

mark {
  color: #704707;
  background: var(--amber-soft);
  border-radius: 4px;
  padding: 0 4px;
}

.report-page {
  min-height: 520px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.report-editor-view {
  min-height: calc(100vh - 72px);
  margin: -22px -24px -30px;
  padding: 0 24px 30px;
  background: #e8ecef;
}

.report-ready-view {
  display: grid;
  gap: 18px;
}

.view.active.report-ready-view {
  display: grid;
  gap: 14px;
}

.report-ready-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 -24px;
  padding: 22px 24px;
  border-bottom: 1px solid #cfd8dc;
  background: #ffffff;
}

.report-ready-hero + .report-readiness-panel,
.report-readiness-panel + .report-content-panel,
.report-content-panel + .report-structure {
  margin-top: 2px;
}

.report-ready-hero h2 {
  margin: 4px 0 6px;
  font-size: 28px;
  line-height: 1.08;
}

.report-ready-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.report-workflow-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding: 5px;
  border: 1px solid #d4dde2;
  border-radius: 999px;
  background: #f5f8f9;
}

.report-ready-hero .report-workflow-tabs + .pill-row {
  margin-top: 10px;
}

.report-workflow-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #526069;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.report-workflow-tabs button:hover:not(:disabled),
.report-workflow-tabs button.active {
  background: #fff;
  color: #102b3b;
  box-shadow: 0 6px 16px rgba(23, 31, 38, 0.10);
}

.report-workflow-tabs button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.report-workflow-tabs span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #dfe7eb;
  color: #526069;
  font-size: 12px;
  font-weight: 900;
}

.report-workflow-tabs button.active span {
  background: var(--teal);
  color: #fff;
}

.report-main-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.report-main-actions .button,
.report-main-actions .primary {
  min-height: 42px;
  padding-inline: 16px;
  font-weight: 800;
}

.report-readiness-panel,
.report-content-panel,
.report-download-panel {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #d4dde2;
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: #fff;
}

.report-readiness-panel.ready {
  border-left-color: var(--teal);
  background: linear-gradient(90deg, var(--teal-soft), #fff 44%);
}

.report-readiness-panel.review {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, var(--amber-soft), #fff 46%);
}

.report-download-panel {
  border-left-color: var(--blue);
  background: linear-gradient(90deg, #eaf2f8, #fff 48%);
}

.report-readiness-panel h3,
.report-content-panel h3,
.report-download-panel h3 {
  margin: 2px 0 0;
  font-size: 17px;
}

.report-download-panel p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.report-download-panel .report-readiness-list {
  justify-content: flex-start;
  margin-top: 10px;
}

.report-readiness-list,
.report-content-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.report-download-actions .button,
.report-download-actions .primary {
  min-height: 42px;
  padding-inline: 18px;
  font-weight: 900;
}

.report-content-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafb;
  color: #2f3f47;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.report-content-toggle input {
  accent-color: var(--teal);
}

.report-generator-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(53, 106, 154, 0.24);
  border-radius: 8px;
  background: linear-gradient(90deg, #eaf2f8, #fff);
}

.report-generator-actions strong,
.report-generator-actions span {
  display: block;
}

.report-generator-actions strong {
  color: #173463;
  font-size: 14px;
}

.report-generator-actions span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.report-generator-actions .button {
  flex: 0 0 auto;
}

.report-structure {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d4dde2;
  border-radius: 8px;
  background: #f8fafb;
}

.report-structure-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-structure-head h3 {
  margin: 2px 0 0;
  font-size: 17px;
}

.report-structure-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-structure-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.report-structure-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid #aeb8bf;
  border-radius: 7px;
  background: #fff;
}

.report-structure-card.available {
  border-left-color: var(--teal);
  background: linear-gradient(180deg, #ffffff, #f1faf8);
}

.report-structure-card.missing {
  opacity: .72;
}

.report-structure-card span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-2);
  color: #526069;
  font-size: 12px;
  font-weight: 800;
}

.report-structure-card strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-structure-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.report-preview-layout {
  display: grid;
}

.report-edit-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.report-preview-stack {
  max-width: 1120px;
  width: 100%;
  justify-self: center;
}

.report-ready-view:not(.is-editing) .report-slide [contenteditable="true"] {
  pointer-events: none;
}

.report-ribbon {
  position: sticky;
  top: -22px;
  z-index: 6;
  margin: -22px -24px 18px;
  padding: 10px 24px 12px;
  border-bottom: 1px solid #cfd8dc;
  background: rgba(248, 250, 251, 0.98);
  box-shadow: 0 12px 24px rgba(23, 31, 38, 0.10);
}

.report-ribbon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.report-ribbon-header strong {
  display: block;
  color: #173463;
  font-size: 15px;
}

.report-ribbon-header span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.report-ribbon-badge {
  max-width: 360px;
  overflow: hidden;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-ribbon-groups {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.report-ribbon-group {
  min-width: 176px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 7px;
  background: #fff;
}

.report-ribbon-group:nth-child(4n + 1) {
  border-top-color: var(--teal);
}

.report-ribbon-group:nth-child(4n + 2) {
  border-top-color: var(--blue);
}

.report-ribbon-group:nth-child(4n + 3) {
  border-top-color: var(--amber);
}

.report-ribbon-group:nth-child(4n + 4) {
  border-top-color: var(--coral);
}

.report-ribbon-group.wide {
  min-width: 310px;
  flex: 1 1 360px;
}

.report-ribbon-label {
  color: #515b62;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.report-ribbon select {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 5px 8px;
  font-size: 12px;
}

.report-ribbon-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.report-ribbon-hint {
  color: var(--muted);
  font-size: 11px;
}

.compact-file-label {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.report-controls {
  margin-bottom: 14px;
}

.report-action-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.report-file-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-deck-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.report-add-slide {
  display: flex;
  align-items: end;
  gap: 8px;
}

.report-deck-tools label,
.report-add-slide label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.report-deck-tools select,
.report-add-slide select {
  min-width: 190px;
}

.report-page h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.report-page p {
  margin: 0 0 14px;
  color: #414b52;
  line-height: 1.6;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.report-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fbfcfc;
}

.report-stat strong {
  display: block;
  font-size: 24px;
}

.report-deck-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.report-outline {
  position: sticky;
  top: 0;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 78px);
  overflow: auto;
  padding: 10px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  background: #f8fafb;
  box-shadow: 0 12px 28px rgba(23, 31, 38, 0.08);
}

.report-outline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 6px;
}

.report-outline-head span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-2);
  color: #515b62;
  font-size: 12px;
  font-weight: 800;
}

.report-outline-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
  background: #fbfcfc;
}

.report-outline-item:nth-child(4n + 1) {
  border-left-color: var(--teal);
}

.report-outline-item:nth-child(4n + 2) {
  border-left-color: var(--blue);
}

.report-outline-item:nth-child(4n + 3) {
  border-left-color: var(--amber);
}

.report-outline-item:nth-child(4n + 4) {
  border-left-color: var(--coral);
}

.report-outline-item.hidden {
  opacity: 0.72;
  background: #f1f3f4;
}

.report-outline-item:hover,
.report-outline-item.active {
  border-color: var(--teal);
  background: #fff;
  box-shadow: inset 3px 0 0 var(--teal);
}

.report-outline-item span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #0f665c;
  font-size: 12px;
  font-weight: 700;
}

.report-outline-item strong {
  display: grid;
  gap: 2px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-outline-item strong small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-properties {
  position: sticky;
  top: 0;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 78px);
  overflow: auto;
  padding: 14px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  background: #f8fafb;
  box-shadow: 0 12px 28px rgba(23, 31, 38, 0.08);
}

.report-side-editor {
  align-content: start;
}

.report-properties-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.report-properties h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.report-properties-head span:not(.report-status-badge) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.property-section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.property-section-title {
  color: #515b62;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.property-field {
  display: grid;
  gap: 5px;
  color: #515b62;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.property-field select,
.property-field input,
.property-field textarea,
.property-section > textarea {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 6px 8px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.property-field textarea,
.property-section > textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
  font-family: inherit;
}

.nested-property-section {
  margin-top: 10px;
}

.property-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.property-button-row .button,
.property-button-row .primary,
.property-section > .button,
.property-section > .primary {
  flex: 1 1 auto;
}

.property-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #37434a;
  font-size: 12px;
  line-height: 1.35;
}

.property-card {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.property-card span,
.property-help,
.property-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.property-card strong {
  font-size: 14px;
}

.compact-empty {
  padding: 12px;
}

.report-status-set {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.report-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: #4d5960;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.report-status-badge.draft {
  background: var(--amber-soft);
  color: #73510e;
}

.report-status-badge.review {
  background: var(--blue-soft);
  color: #214f77;
}

.report-status-badge.ready {
  background: var(--green-soft);
  color: #245f3b;
}

.report-status-badge.muted {
  background: #e7eaec;
  color: #687178;
}

.report-slide-stack {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  background: #dde3e6;
}

.report-slide {
  position: relative;
  min-height: 620px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 34px 54px 34px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.report-slide.hidden-slide {
  opacity: 0.78;
  border-style: dashed;
}

.report-slide.hidden-slide::before {
  content: "Ukryty w prezentacji i eksporcie HTML";
  position: absolute;
  right: 34px;
  top: 46px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7eaec;
  color: #556168;
  font-size: 11px;
  font-weight: 800;
}

.report-slide.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 121, 109, 0.18), var(--shadow);
}

.report-slide::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 100%;
  background: #22385f;
}

.report-slide.theme-teal::after {
  background: var(--teal);
}

.report-slide.theme-blue::after {
  background: var(--blue);
}

.report-slide.theme-amber::after {
  background: var(--amber);
}

.report-slide.theme-coral::after {
  background: var(--coral);
}

.report-slide.theme-blue .slide-kicker {
  color: var(--blue);
}

.report-slide.theme-amber .slide-kicker {
  color: #8a5b0d;
}

.report-slide.theme-coral .slide-kicker {
  color: var(--coral);
}

.report-slide.cover {
  min-height: 560px;
  align-content: space-between;
}

.report-slide.layout-compact {
  min-height: 500px;
  gap: 12px;
  padding: 26px 46px 26px 26px;
}

.report-slide.layout-compact h2 {
  font-size: 25px;
}

.report-slide.layout-split {
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  column-gap: 28px;
}

.report-slide.layout-split .report-slide-toolbar,
.report-slide.layout-split .slide-notes {
  grid-column: 1 / -1;
}

.report-slide.layout-split .slide-kicker,
.report-slide.layout-split h2,
.report-slide.layout-split .slide-body {
  grid-column: 1;
}

.report-slide.layout-split > :not(.report-slide-toolbar):not(.slide-kicker):not(h2):not(.slide-body):not(.slide-notes) {
  grid-column: 2;
}

.report-slide.hide-notes .slide-notes {
  display: none;
}

.report-slide-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.slide-toolbar-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.report-slide-tool-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.report-slide-tool-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #515b62;
  font-size: 11px;
  font-weight: 700;
}

.report-slide-tool-group select {
  width: auto;
  min-width: 112px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 4px 8px;
  font-size: 12px;
}

.button.small,
.primary.small {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

#refreshWorkspace {
  min-height: 38px;
  padding: 0 15px;
  border-color: rgba(20, 121, 109, 0.32);
  background: #fff;
  color: #0f665c;
  font-size: 13px;
  font-weight: 800;
}

#refreshWorkspace:hover {
  background: var(--teal-soft);
}

.danger-inline {
  border-color: #e5c7c7;
  color: var(--red);
}

.slide-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-slide h2 {
  max-width: 860px;
  margin: 0;
  color: #173463;
  font-size: 30px;
  line-height: 1.12;
}

.slide-body {
  max-width: 850px;
  margin: 0;
  color: #3e4b52;
  font-size: 15px;
  line-height: 1.55;
}

.slide-notes {
  margin-top: auto;
  padding: 10px 12px;
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
  color: #6c4b17;
  font-size: 13px;
  line-height: 1.45;
}

.editable {
  outline: 2px solid transparent;
  border-radius: 4px;
}

.editable:focus {
  outline-color: rgba(20, 121, 109, 0.35);
  background: rgba(210, 238, 234, 0.35);
}

.report-cover-visual {
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: end;
  gap: 24px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.report-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-method-card {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.report-method-card strong {
  color: #173463;
  font-size: 18px;
}

.report-method-card p {
  margin: 0;
  color: #3e4b52;
  font-size: 13px;
  line-height: 1.5;
}

.report-cover-visual strong {
  display: block;
  margin: 8px 0;
  font-size: 38px;
  line-height: 1;
}

.report-cover-visual p {
  margin: 0;
  color: var(--muted);
}

.report-cover-mark {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(20, 121, 109, 0.18);
  border-radius: 20px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 16px 34px rgba(20, 121, 109, 0.16);
}

.report-cover-logo {
  border-radius: 14px;
}

.report-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-metric-card {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.report-metric-card strong {
  font-size: 34px;
  line-height: 1;
}

.report-metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.report-chart {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.report-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.report-compare-grid h3 {
  margin: 0 0 10px;
  color: #173463;
  font-size: 17px;
}

.report-compare-list {
  display: grid;
  gap: 8px;
}

.report-compare-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfc;
}

.report-compare-item span {
  font-size: 12px;
  line-height: 1.35;
}

.report-compare-item strong {
  justify-self: end;
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 30px;
  border-radius: 999px;
  font-size: 13px;
}

.report-compare-item strong.teal {
  background: var(--teal-soft);
  color: #0f665c;
}

.report-compare-item strong.coral {
  background: var(--coral-soft);
  color: #9b3d25;
}

.report-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-segment-table {
  min-width: 640px;
}

.report-segment-table th {
  background: #173463;
  color: #fff;
}

.report-segment-table td {
  font-size: 12px;
}

.report-enps {
  display: grid;
  gap: 18px;
}

.enps-gauge {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.enps-scale {
  position: relative;
  height: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral) 0 42%, var(--amber) 42% 62%, var(--teal) 62% 100%);
}

.enps-needle {
  position: relative;
  width: 0;
  height: 0;
  margin-top: -5px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid #173463;
  transform: translateX(-8px);
}

.enps-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.enps-labels strong {
  color: #173463;
  font-size: 28px;
}

.report-chart-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.report-bar-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 1.4fr) 56px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.report-bar-track {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f3;
}

.report-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.report-bar.coral,
.topic-bar-fill.coral {
  background: var(--coral);
}

.report-bar.amber,
.topic-bar-fill.amber {
  background: var(--amber);
}

.report-topic-grid {
  min-height: 210px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  align-items: end;
  gap: 14px;
}

.report-topic-bar {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.topic-bar-fill {
  width: 46px;
  border-radius: 6px 6px 0 0;
  background: var(--teal);
}

.report-topic-bar strong {
  font-size: 20px;
}

.report-topic-bar span {
  color: #465158;
  font-size: 12px;
  line-height: 1.3;
}

.report-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-quote-grid blockquote {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #fbfcfc;
}

.report-quote-grid cite {
  color: var(--muted);
  font-size: 12px;
}

.report-checklist,
.report-bullets {
  display: grid;
  gap: 10px;
}

.report-check,
.report-bullet {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.report-check span,
.report-bullet span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #0f665c;
  font-weight: 800;
}

.report-bullet span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.report-check p,
.report-bullet p {
  margin: 0;
  color: #344149;
  line-height: 1.45;
}

.report-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-recommendation-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 210px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: #fbfcfc;
}

.report-recommendation-card.priority-wysoki {
  border-left-color: var(--coral);
  background: linear-gradient(180deg, #fff, #fff6f2);
}

.report-recommendation-card.priority-sredni {
  border-left-color: var(--amber);
  background: linear-gradient(180deg, #fff, #fff9ed);
}

.report-recommendation-card.priority-niski {
  border-left-color: var(--teal);
  background: linear-gradient(180deg, #fff, #f1faf8);
}

.recommendation-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.report-recommendation-card h3 {
  margin: 0;
  color: #173463;
  font-size: 16px;
  line-height: 1.25;
}

.report-recommendation-card p {
  margin: 0;
  color: #344149;
  line-height: 1.48;
}

.report-presentation-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 26px;
  background: rgba(13, 20, 26, 0.94);
}

.report-presentation-top,
.report-presentation-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #f4f7f8;
}

.report-presentation-top strong,
.report-presentation-top span {
  display: block;
}

.report-presentation-top span,
.report-presentation-controls span {
  color: #c8d2d5;
  font-size: 13px;
}

.report-presentation-slide {
  width: min(1180px, 100%);
  min-height: 0;
  max-height: 100%;
  justify-self: center;
  display: grid;
  align-content: start;
  gap: 16px;
  overflow: auto;
  padding: 44px 72px 44px 48px;
  border-right: 18px solid #22385f;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.report-presentation-slide.theme-teal {
  border-right-color: var(--teal);
}

.report-presentation-slide.theme-blue {
  border-right-color: var(--blue);
}

.report-presentation-slide.theme-amber {
  border-right-color: var(--amber);
}

.report-presentation-slide.theme-coral {
  border-right-color: var(--coral);
}

.report-presentation-slide h2 {
  margin: 0;
  color: #173463;
  font-size: 34px;
  line-height: 1.12;
}

.presentation-visual .editable {
  pointer-events: none;
}

.report-presentation-controls {
  width: min(1180px, 100%);
  justify-self: center;
}

.report-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: #e8ecee;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.empty {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fbfcfc;
  text-align: center;
}

@media (max-width: 1180px) {
  .landing-hero {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .landing-hero-copy {
    max-width: 760px;
  }

  .landing-product-preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .landing-proof-bar,
  .landing-feature-grid,
  .landing-report-example-grid,
  .landing-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-auth-grid,
  .landing-trust {
    grid-template-columns: 1fr;
  }

  .cols-4,
  .account-section-grid,
  .workspace-data-grid,
  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-overview {
    grid-template-columns: 1fr;
  }

  .plan-benefit-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-themes-panel .ai-theme-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .password-form {
    grid-template-columns: 1fr;
  }

  .wide-left,
  .wide-right,
  .import-step-grid {
    grid-template-columns: 1fr;
  }

  .analysis-board {
    grid-template-columns: 1fr;
  }

  .evidence-grid,
  .recommendation-grid,
  .control-explainer-grid {
    grid-template-columns: 1fr;
  }

  .taxonomy-grid {
    grid-template-columns: 1fr;
  }

  .report-deck-layout {
    grid-template-columns: 1fr;
  }

  .report-edit-layout {
    grid-template-columns: 1fr;
  }

  .report-readiness-panel,
  .report-content-panel {
    grid-template-columns: 1fr;
  }

  .report-readiness-list,
  .report-content-options {
    justify-content: flex-start;
  }

  .report-structure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-outline {
    position: static;
    max-height: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .report-properties {
    position: static;
    max-height: none;
  }

  .report-slide.layout-split {
    grid-template-columns: 1fr;
  }

  .report-slide.layout-split > :not(.report-slide-toolbar):not(.slide-notes) {
    grid-column: 1;
  }

  .project-list-card {
    grid-template-columns: 1fr;
  }

  .project-card-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  html,
  body,
  #app,
  .app-shell,
  .sidebar,
  .workspace,
  .content,
  .view {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .panel,
  .metric,
  .project-list-card,
  .import-step-panel,
  .report-slide,
  .report-slide-stack,
  .report-ready-hero,
  .report-editor-view,
  .report-ribbon,
  .review-item,
  .answer-card,
  .ai-card {
    min-width: 0;
    max-width: 100%;
  }

  .table-wrap,
  .segment-table-wrap,
  .report-table-wrap,
  .trend-line-chart,
  .trend-category-chart,
  .heatmap,
  .report-ribbon-groups {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap table,
  .segment-table-wrap table,
  .report-table-wrap table {
    width: max-content;
    max-width: none;
  }

  .landing-page {
    width: min(100% - 24px, 1180px);
    padding-top: 10px;
  }

  .landing-header {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .landing-logo-button {
    width: 100%;
    justify-content: center;
  }

  .landing-header > .landing-tool-cta {
    width: 100%;
  }

  .landing-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    border-radius: var(--radius);
  }

  .landing-promo-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
    margin-top: 12px;
  }

  .landing-promo-banner .primary {
    width: 100%;
  }

  .landing-hero {
    margin-top: 10px;
    padding: 22px 18px;
    border-radius: 10px;
  }

  .landing-hero h1 {
    font-size: 30px;
  }

  .landing-hero p {
    font-size: 15px;
  }

  .landing-actions,
  .landing-actions .button,
  .landing-actions .primary {
    width: 100%;
  }

  .landing-microcopy {
    display: none;
  }

  .landing-product-preview {
    padding: 9px;
  }

  .preview-window-bar {
    min-height: 24px;
    padding-bottom: 6px;
  }

  .preview-grid,
  .landing-proof-bar,
  .landing-feature-grid,
  .landing-report-example-grid,
  .post-signup-plan-grid,
  .landing-pricing-grid {
    grid-template-columns: 1fr;
  }

  .preview-chart {
    height: 118px;
    min-height: 118px;
    gap: 7px;
    padding: 36px 8px 8px;
  }

  .preview-chart-title {
    top: 9px;
    left: 10px;
    right: 10px;
  }

  .preview-chart-title small {
    display: none;
  }

  .preview-bar {
    height: 78px;
    gap: 3px;
  }

  .preview-bar strong {
    font-size: 10px;
  }

  .preview-bar-fill {
    max-width: 34px;
  }

  .preview-bar label {
    display: none;
  }

  .preview-bar::after {
    width: min(220px, calc(100vw - 48px));
    bottom: calc(100% + 6px);
  }

  .preview-mini-card {
    min-height: auto;
    padding: 10px;
  }

  .landing-report-examples {
    padding: 0;
  }

  .landing-report-example-card {
    min-height: auto;
  }

  .landing-report-screenshot {
    min-height: 170px;
  }

  .landing-report-thumb {
    min-height: 170px;
  }

  .pdf-thumb {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    overflow-x: auto;
  }

  .mini-pdf-page {
    min-height: 112px;
  }

  .preview-ai-card,
  .preview-pdf-card {
    grid-template-columns: 1fr;
  }

  .preview-ai-pills {
    display: none;
  }

  .preview-pdf-mini {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-pdf-page {
    min-height: 48px;
    padding: 6px;
  }

  .landing-guide-hero {
    padding: 16px;
    border-radius: 10px;
  }

  .landing-guide-hero h1 {
    font-size: 32px;
  }

  .landing-guide-actions,
  .landing-guide-actions .button,
  .landing-guide-actions .primary {
    width: 100%;
  }

  .landing-guide-steps {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .landing-guide-steps::before,
  .landing-guide-steps::after,
  .landing-guide-step::before,
  .landing-guide-step::after {
    display: none;
  }

  .landing-guide-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    min-height: auto;
  }

  .landing-guide-step > span {
    width: 44px;
    height: 44px;
  }

  .landing-pricing-hero,
  .landing-pricing-info {
    padding: 16px;
    border-radius: 10px;
  }

  .landing-showcase-hero h1,
  .landing-pricing-hero h1 {
    font-size: 32px;
  }

  .landing-section {
    margin-top: 34px;
  }

  .landing-section-head h2,
  .landing-trust h2,
  .landing-auth-panel h2 {
    font-size: 26px;
  }

  .landing-trust,
  .landing-auth-panel {
    padding: 16px;
  }

  .landing-auth-modal-backdrop {
    align-items: start;
    padding: 12px;
    overflow: auto;
  }

  .landing-auth-dialog {
    max-height: none;
  }

  .landing-auth-dialog-head {
    flex-direction: column;
  }

  .landing-auth-dialog-head .ghost {
    width: 100%;
  }

  .landing-auth-page {
    min-height: auto;
  }

  .landing-auth-page-card {
    width: 100%;
    margin-top: 18px;
    padding: 16px;
  }

  .post-signup-plan-page,
  .post-signup-plan-page.authenticated {
    min-height: auto;
    padding: 16px 0;
  }

  .post-signup-plan-hero,
  .post-signup-plan-note {
    padding: 16px;
    border-radius: 10px;
  }

  .post-signup-plan-hero {
    grid-template-columns: 1fr;
  }

  .post-signup-plan-hero h1 {
    font-size: 32px;
  }

  .post-signup-plan-actions,
  .post-signup-plan-actions .button,
  .post-signup-plan-actions .primary,
  .post-signup-plan-actions .ghost {
    width: 100%;
  }

  .post-signup-plan-card {
    min-height: auto;
    padding: 16px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: 100dvh;
  }

  .workspace {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto auto;
    overflow: visible;
  }

  .content {
    min-height: auto;
    overflow: visible;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav button[data-nav="import"],
  .nav button[data-nav="projects"] {
    grid-column: 1 / -1;
    min-height: 46px;
    padding: 0 14px;
    font-weight: 800;
  }

  .nav button[data-nav="import"] {
    background: rgba(20, 121, 109, 0.2);
    color: #fff;
  }

  .nav button[data-nav="projects"] {
    border: 1px solid rgba(105, 201, 188, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #f7faf9;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    padding: 14px 16px;
  }

  .topbar .title p {
    display: none;
  }

  .topbar-actions {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .topbar-actions > * {
    min-width: 0;
  }

  .plan-info-button {
    flex: 1 1 0;
    min-width: 0;
  }

  .plan-modal-backdrop {
    padding: 12px;
  }

  .plan-benefit-head {
    flex-direction: column;
  }

  .plan-benefit-head strong {
    text-align: left;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .import-success,
  .billing-feedback {
    align-items: stretch;
    flex-direction: column;
  }

  .import-success .actions,
  .billing-feedback-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .next-step-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-onboarding-path {
    grid-template-columns: 1fr;
  }

  .billing-strip,
  .billing-lock-panel,
  .plan-overage-panel,
  .project-readonly-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .billing-lock-panel {
    flex-direction: column;
  }

  .plan-overage-actions {
    justify-items: stretch;
  }

  .billing-plan-grid {
    grid-template-columns: 1fr;
  }

  .account-profile-panel,
  .account-section-grid,
  .workspace-data-grid,
  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }

  .account-profile-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-profile-actions {
    justify-content: flex-start;
  }

  .project-list-main {
    align-items: stretch;
    flex-direction: column;
  }

  .project-list-count {
    width: 100%;
    text-align: left;
  }

  .trend-line-chart {
    grid-template-columns: 1fr;
  }

  .trend-line-scale {
    display: none;
  }

  .trend-line-labels {
    grid-column: 1;
  }

  .import-steps {
    grid-template-columns: 1fr;
  }

  .import-view.view.active {
    display: flex;
    flex-direction: column;
  }

  .import-view .import-onboarding-title {
    order: 1;
  }

  .import-view .import-step-grid {
    display: contents;
  }

  .import-step-grid > .import-step-panel {
    width: 100%;
  }

  .import-step-grid > .import-step-panel:not(.import-mapping-panel) {
    order: 2;
  }

  .import-final-step {
    order: 3;
    margin-top: 14px;
  }

  .import-mapping-panel {
    order: 4;
    margin-top: 14px;
  }

  .import-preview-panel {
    order: 5;
  }

  .import-onboarding-title {
    min-height: auto;
    margin: 0 0 12px;
    padding: 4px 0 8px;
  }

  .import-onboarding-title h2 {
    max-width: 340px;
    font-size: clamp(26px, 8vw, 38px);
  }

  .import-onboarding-view .import-steps {
    display: none;
  }

  .import-onboarding-view .import-step-panel:first-of-type {
    padding: 18px;
  }

  .import-onboarding-view .dropzone {
    min-height: 260px;
  }

  .import-completion-panel {
    padding: 16px;
  }

  .import-completion-layout {
    grid-template-columns: 1fr;
  }

  .import-completion-main {
    grid-template-columns: 1fr;
  }

  .import-completion-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .import-mapping-table {
    overflow: visible;
  }

  .import-mapping-table table,
  .import-mapping-table tbody,
  .import-mapping-table tr,
  .import-mapping-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .import-mapping-table table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .import-mapping-table thead {
    display: none;
  }

  .import-mapping-table tr {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .import-mapping-table td {
    display: grid;
    gap: 4px;
    padding: 7px 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .import-mapping-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .import-mapping-table select {
    width: 100%;
    min-width: 0;
  }

  .analysis-intro {
    display: grid;
  }

  .analysis-metrics {
    max-width: none;
    justify-content: flex-start;
  }

  .actions {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .actions > * {
    min-width: 0;
  }

  .report-action-grid {
    grid-template-columns: 1fr;
  }

  .report-editor-view {
    margin: -16px -16px -30px;
    padding: 0 16px 30px;
  }

  .report-ready-hero {
    grid-template-columns: 1fr;
    margin: 0 -16px;
    padding: 18px 16px;
  }

  .report-main-actions {
    justify-content: flex-start;
  }

  .report-workflow-tabs {
    width: 100%;
    border-radius: 12px;
  }

  .report-workflow-tabs button {
    flex: 1 1 130px;
    justify-content: center;
  }

  .report-readiness-panel,
  .report-content-panel,
  .report-download-panel {
    grid-template-columns: 1fr;
  }

  .report-readiness-list,
  .report-content-options,
  .report-download-actions {
    justify-content: flex-start;
  }

  .report-generator-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .report-structure-grid {
    grid-template-columns: 1fr;
  }

  .report-recommendation-grid {
    grid-template-columns: 1fr;
  }

  .report-ribbon {
    top: -16px;
    margin: -16px -16px 16px;
    padding: 10px 16px 12px;
  }

  .report-ribbon-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-ribbon-badge {
    max-width: 100%;
  }

  .report-ribbon-group,
  .report-ribbon-group.wide {
    min-width: 240px;
    flex: 0 0 240px;
  }

  .report-file-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .report-deck-tools,
  .report-add-slide {
    width: 100%;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .report-deck-tools select,
  .report-add-slide select {
    min-width: 0;
    max-width: 100%;
  }

  .report-slide {
    min-height: auto;
    padding: 24px 42px 24px 22px;
  }

  .report-slide-stack {
    padding: 12px;
  }

  .report-slide h2 {
    font-size: 25px;
  }

  .report-slide-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-slide-tool-group {
    justify-content: flex-start;
  }

  .report-presentation-overlay {
    padding: 12px;
  }

  .report-presentation-top,
  .report-presentation-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-presentation-slide {
    padding: 28px 36px 28px 22px;
  }

  .report-presentation-slide h2 {
    font-size: 26px;
  }

  .report-cover-visual,
  .report-method-grid,
  .report-metric-grid,
  .report-compare-grid,
  .report-quote-grid {
    grid-template-columns: 1fr;
  }

  .report-cover-visual {
    min-height: auto;
    gap: 14px;
    padding-top: 18px;
  }

  .report-cover-visual strong {
    font-size: 28px;
  }

  .report-cover-mark {
    width: 92px;
    height: 92px;
    justify-self: start;
    font-size: 28px;
  }

  .report-bar-row {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 16px;
  }

  .response-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .response-list-head span {
    text-align: left;
  }

  .cols-4,
  .cols-3,
  .cols-2,
  .filter-grid,
  .ai-theme-grid,
  .control-checks,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .answer-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Minimal UI pass: fewer colored cards, calmer borders, quieter surfaces. */
:root {
  --bg: #f7f8f8;
  --surface: #ffffff;
  --surface-2: #f3f5f5;
  --ink: #172124;
  --muted: #6e777b;
  --line: #e7ebed;
  --teal: #11756c;
  --teal-soft: #f2f7f6;
  --blue: #345f83;
  --blue-soft: #f4f7f9;
  --amber: #8f6a20;
  --amber-soft: #f8f6f0;
  --coral: #a9543a;
  --coral-soft: #f8f4f2;
  --green: #3b7251;
  --green-soft: #f4f8f5;
  --red: #a94949;
  --radius: 8px;
  --shadow: none;
}

body {
  background: var(--bg);
}

.workspace,
.content,
.landing-shell {
  background: var(--bg);
}

.sidebar {
  background: #202629;
}

.sidebar-brand .brand-logo-full {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.active-project,
.sidebar-footer {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.topbar,
.landing-header,
.report-ribbon {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.panel,
.metric,
.table-wrap,
.topic,
.quote,
.report-page,
.dashboard-stat,
.dashboard-overview,
.dashboard-action-card,
.dashboard-onboarding-step,
.project-list-card,
.account-profile-panel,
.account-summary-card,
.workspace-data-card,
.workspace-current-card,
.ai-card,
.ai-question,
.answer-ai-summary,
.model-summary,
.evidence-card,
.recommendation-card,
.consulting-recommendation-card,
.review-item,
.billing-preflight,
.billing-panel,
.billing-lock-panel,
.plan-overage-panel,
.project-readonly-panel,
.segment-risk-panel,
.segment-trend-panel,
.report-readiness-panel,
.report-content-panel,
.report-download-panel,
.report-structure-card,
.report-recommendation-card,
.report-metric-card,
.report-ribbon-group,
.report-slide,
.report-cover-visual,
.landing-feature-card,
.landing-pricing-card,
.landing-report-example-card,
.landing-auth-panel,
.landing-trust,
.landing-proof-bar,
.landing-guide-step,
.landing-pricing-hero,
.landing-pricing-info,
.post-signup-plan-card {
  border-color: var(--line);
  border-left-color: var(--line);
  border-top-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

.dashboard-stat.teal,
.dashboard-stat.blue,
.dashboard-stat.amber,
.dashboard-stat.coral,
.project-list-card.active,
.project-list-card.readonly,
.project-list-card:nth-child(4n + 1),
.project-list-card:nth-child(4n + 2),
.project-list-card:nth-child(4n + 3),
.project-list-card:nth-child(4n + 4),
.recommendation-card.teal,
.recommendation-card.amber,
.recommendation-card.coral,
.recommendation-card.blue,
.report-readiness-panel.ready,
.report-readiness-panel.review,
.report-download-panel,
.report-structure-card.available,
.report-structure-card.missing,
.report-recommendation-card.priority-wysoki,
.report-recommendation-card.priority-sredni,
.report-recommendation-card.priority-niski,
.import-onboarding-view .import-step-panel:first-of-type,
.billing-preflight.warn,
.billing-lock-panel {
  border-color: var(--line);
  border-left-color: var(--line);
  border-top-color: var(--line);
  background: var(--surface);
}

.metric::after {
  display: none;
}

.next-step-panel,
.import-success,
.import-summary,
.model-summary,
.cloud-ai-note,
.answer-ai-summary {
  border-color: var(--line);
  border-left-color: var(--line);
  background: var(--surface);
}

.next-step-panel {
  border-left-width: 1px;
}

.source-label,
.source-label.ai,
.source-label.respondent,
.source-label.data,
.source-label.teal,
.pill,
.pill.teal,
.pill.blue,
.pill.amber,
.pill.coral,
.pill.green,
.comment-meta .warn,
.plan-benefit-card .pill {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: #4d585d;
}

.source-label {
  min-height: 22px;
  letter-spacing: 0.04em;
}

.primary,
.input-file-label {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: none;
}

.button,
.ghost,
.danger,
.tabs button,
.auth-mode-switch button,
.plan-info-button {
  box-shadow: none;
}

.button:hover,
.ghost:hover,
.tabs button:hover,
.dashboard-action-card:hover,
.dashboard-onboarding-step:hover:not(:disabled),
.ai-card:hover,
.ai-card.active,
.account-summary-card:hover,
.account-summary-card:focus-visible,
.project-list-card.active,
.report-structure-card.available {
  border-color: #cfd7db;
  background: #fafbfb;
  box-shadow: none;
  transform: none;
}

.tabs button.active,
.auth-mode-switch button.active,
.report-workflow-tabs button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.dashboard-stat strong,
.metric strong,
.project-list-count strong,
.summary-count strong,
.evidence-stat-grid strong,
.report-metric-card strong {
  color: var(--ink);
}

.project-list-count,
.project-list-card:nth-child(4n + 1) .project-list-count,
.project-list-card:nth-child(4n + 3) .project-list-count,
.project-list-card:nth-child(4n + 4) .project-list-count,
.summary-count,
.evidence-stat-grid span,
.qualitative-summary section,
.consulting-recommendation-card dl div,
.report-recommendation-details div {
  border-color: var(--line);
  background: #fafbfb;
}

.dashboard-action-card,
.review-item,
.evidence-quotes blockquote,
.recommendation-card,
.report-structure-card,
.report-recommendation-card {
  border-left-width: 1px;
}

.account-profile-panel,
.password-panel.embedded,
.supabase-panel,
.plan-overage-panel,
.project-readonly-panel,
.billing-lock-panel,
.segment-risk-panel,
.segment-trend-panel,
.evidence-panel,
.report-readiness-panel,
.report-content-panel,
.report-download-panel {
  border-left-width: 1px;
  border-top-width: 1px;
}

.dashboard-overview,
.metric,
.dashboard-stat,
.billing-panel,
.account-summary-card,
.report-ribbon-group,
.landing-feature-card,
.landing-pricing-card,
.landing-report-example-card {
  border-top-width: 1px;
}

.landing-hero,
.landing-product-preview,
.landing-guide-hero,
.landing-promo-banner,
.landing-logo-button,
.post-signup-plan-hero,
.activation-email-card,
.plan-modal {
  box-shadow: none;
}

.landing-promo-banner,
.landing-pricing-info {
  border-left-width: 1px;
}

.landing-badge,
.landing-section-kicker,
.landing-plan-badge {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: #4d585d;
}

.landing-pricing-hero {
  padding: 8px 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-plan-badge,
.landing-pricing-card.premium .landing-plan-badge,
.post-signup-plan-card.premium .landing-plan-badge {
  color: #0d655b;
  background: #dff5ef;
  border-color: rgba(20, 121, 109, 0.24);
  box-shadow: 0 10px 24px rgba(20, 121, 109, 0.12);
}

.landing-feature-card {
  border-top-width: 3px;
  background: #fff;
}

.landing-feature-card:hover {
  border-color: rgba(20, 121, 109, 0.28);
  background: #f7fbfa;
}

.landing-auth-logo.auth-brand {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-link-button,
.auth-link-button:hover {
  padding-inline: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-link-button:hover {
  color: #084a43;
  text-decoration: underline;
}

.report-slide,
.report-presentation-slide {
  box-shadow: none;
}

.import-onboarding-title {
  min-height: auto;
  margin-bottom: 12px;
  padding: 4px 0 6px;
}

.import-onboarding-title h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 820;
  line-height: 1.05;
}

.section-head p,
.step-heading p,
.dashboard-action-card span,
.field-hint,
.model-summary-head span,
.cloud-ai-note,
.report-ribbon-hint {
  color: var(--muted);
}

.sidebar-footer {
  color: #c7d1d0;
}

/* Visual cleanup pass: remove decorative boxes where text or media can stand on its own. */
.landing-logo-button,
.landing-logo-button:hover {
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.landing-feature-card {
  min-height: auto;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.landing-feature-card:nth-child(2),
.landing-feature-card:nth-child(3),
.landing-feature-card:nth-child(5),
.landing-feature-card:nth-child(6) {
  border-top-color: transparent;
}

.landing-feature-card:hover {
  border-bottom-color: rgba(20, 121, 109, 0.22);
  background: transparent;
}

.landing-proof-bar div,
.landing-trust,
.landing-pricing-info {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-proof-bar div {
  padding: 10px 0;
}

.landing-report-example-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.landing-report-example-card:hover,
.landing-report-example-card:focus-within {
  border-color: rgba(20, 121, 109, 0.26);
  background: #fff;
  box-shadow: none;
  transform: none;
}

.landing-report-example-card.recommendations {
  border-top-color: var(--blue);
}

.landing-report-example-card.pdf {
  border-top-color: var(--amber);
}

.landing-report-example-card.trends {
  border-top-color: var(--coral);
}

.landing-report-screenshot,
.landing-report-thumb {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbfb;
}

.landing-badge,
.landing-section-kicker {
  border: 0;
  background: transparent;
  padding-inline: 0;
}

.landing-auth-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-auth-form-panel {
  background: #fff;
}

.post-signup-plan-hero,
.post-signup-plan-note {
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 820px) {
  .sidebar {
    gap: 13px;
  }

  .active-project {
    padding: 10px;
  }

  .sidebar-footer {
    display: none;
  }

  .nav button[data-nav="import"],
  .nav button[data-nav="projects"] {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
  }
}
