:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe3ee;
  --paper: #f8fafc;
  --white: #ffffff;
  --navy: #0f172a;
  --blue: #2563eb;
  --purple: #8b5cf6;
  --light-gray: #f1f5f9;
  --soft: #eef4ff;
  --gradient: linear-gradient(135deg, #2563eb, #8b5cf6);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(37, 99, 235, 0.08), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(139, 92, 246, 0.08), transparent 30%),
    var(--paper);
  color: var(--ink);
  font-family:
    Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 210px;
}

.brand img {
  display: block;
  width: 50px;
  height: 54px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-text strong {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-text small {
  color: var(--muted);
  font-size: clamp(7px, 0.9vw, 10px);
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--blue);
}

.header-cta,
.button,
.inquiry-form button,
.form-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  font-weight: 700;
}

.header-cta,
.button.primary,
.inquiry-form button,
.form-link-button {
  background: var(--gradient);
  color: var(--white);
  border: 0;
}

.button.secondary {
  background: transparent;
  color: var(--blue);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(30px, 4vw, 68px);
  align-items: center;
  min-height: calc(92vh - 76px);
  padding: clamp(56px, 7vw, 96px) clamp(20px, 6vw, 86px) 70px;
  overflow: hidden;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 104px 104px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
  opacity: 0.6;
}

.hero::after {
  content: "";
  position: absolute;
  right: -18%;
  top: 8%;
  z-index: -1;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 62%);
  pointer-events: none;
}

.subpage-hero {
  padding: clamp(70px, 9vw, 128px) clamp(20px, 6vw, 86px) 64px;
  background:
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.16), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #16213a 100%);
  color: var(--white);
}

.subpage-hero .lead {
  color: rgba(255, 255, 255, 0.76);
}

.eyebrow {
  margin: 0 0 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(46px, 5.7vw, 78px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.lead {
  max-width: min(690px, 100%);
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tech-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 430px;
  padding: clamp(18px, 3vw, 36px);
}

.mountain-mark {
  width: min(520px, 100%);
  margin-left: auto;
  color: var(--blue);
}

.mountain-mark svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ridge,
.contour {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ridge-main {
  stroke-width: 3.6;
}

.ridge:nth-child(2),
.ridge:nth-child(3) {
  stroke: #1d4ed8;
}

.contour {
  stroke: #8b5cf6;
  stroke-width: 2.2;
  opacity: 0.6;
}

.hero-stat {
  position: absolute;
  display: grid;
  gap: 4px;
  width: 180px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
}

.hero-stat span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.hero-stat strong {
  color: var(--ink);
  font-size: 14px;
}

.stat-a {
  left: 6%;
  bottom: 12%;
}

.stat-b {
  right: 4%;
  bottom: 18%;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 28px;
}

.problem-router,
.services,
.value-proposition,
.package-section,
.process,
.references,
.faq-section,
.team,
.inquiry {
  padding: 78px clamp(20px, 6vw, 86px);
}

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

.router-grid a {
  min-height: 84px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.router-grid a:hover {
  border-color: var(--blue);
}

.service-grid,
.reference-grid,
.team-grid,
.value-grid,
.package-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article,
.reference-grid article,
.team-grid article,
.value-grid article,
.package-grid article,
.faq-grid article {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-number {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font-weight: 900;
}

.service-grid p,
.reference-grid p,
.value-grid p,
.package-grid p,
.faq-grid p,
.premium-band p,
.inquiry-copy p {
  color: var(--muted);
}

.value-proposition {
  background: var(--paper);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.proof-grid article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
}

.proof-grid span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.proof-grid strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

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

.value-grid article {
  min-height: 190px;
}

.package-section {
  background: #f7f8fb;
}

.package-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
}

.package-grid strong {
  color: var(--blue);
  font-size: 18px;
}

.premium-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
  padding: 76px clamp(20px, 6vw, 86px);
  background:
    radial-gradient(circle at 72% 24%, rgba(139, 92, 246, 0.2), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #13213a 100%);
  color: var(--white);
}

.premium-band p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.process .section-heading {
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  padding: 38px 0 0;
  margin: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 78px;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.18), rgba(37, 99, 235, 0.6), rgba(139, 92, 246, 0.64), rgba(15, 23, 42, 0.18));
}

.steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 8px;
  text-align: center;
}

.steps li::after {
  content: "";
  position: absolute;
  top: 34px;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 4px solid var(--paper);
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
  transform: translateX(-50%);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--ink);
}

.step-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps strong {
  display: block;
  min-height: 44px;
  font-size: 17px;
}

.steps span:not(.step-icon) {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.references {
  background: #eef1ec;
}

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

.faq-section {
  background: var(--white);
}

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

.team {
  background: var(--paper);
}

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

.team-grid a {
  display: grid;
  align-content: start;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.team-grid a:hover {
  border-color: rgba(37, 99, 235, 0.52);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.team-grid h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  background: var(--soft);
  color: var(--blue);
}

.team-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-grid p {
  color: var(--muted);
}

.inquiry {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.inquiry-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-page-form {
  padding-top: 64px;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-details a,
.contact-details span {
  color: var(--muted);
}

.form-benefits {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.form-benefits li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.form-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  background: var(--gradient);
  border-radius: 50%;
}

.advanced-form {
  gap: 22px;
  scroll-margin-top: 112px;
}

fieldset {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

fieldset:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

legend {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-grid label,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--light-gray);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.checkbox-grid input,
.consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 1px;
}

.privacy-note {
  margin: 0;
  padding: 12px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.privacy-admin-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.privacy-admin-box div {
  display: grid;
  gap: 4px;
}

.privacy-admin-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.privacy-admin-box strong {
  font-size: 13px;
}

.form-note,
.form-disclaimer {
  margin: 0;
  padding: 14px;
  background: #eef1ec;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.field-help {
  display: block;
  margin-top: -6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.field-help[hidden] {
  display: none;
}

.website-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-disclaimer.is-success {
  color: #166534;
  border-color: rgba(22, 101, 52, 0.26);
}

.form-disclaimer.is-error {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.26);
}

.inquiry-confirmation {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(circle at 18% 14%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(139, 92, 246, 0.14), transparent 24%),
    #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.inquiry-confirmation-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

.inquiry-confirmation-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirmation-eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.inquiry-confirmation h2 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
}

.inquiry-confirmation p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.confirmation-reference {
  color: var(--navy) !important;
}

.confirmation-next {
  display: grid;
  gap: 4px;
  max-width: 620px;
  padding: 16px 18px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.confirmation-next span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.confirmation-next strong {
  color: var(--navy);
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.map-picker {
  display: grid;
  gap: 12px;
}

.map-picker-header {
  display: grid;
  gap: 4px;
}

.map-picker-header span {
  color: var(--muted);
  font-size: 14px;
}

.map-location-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.parcel-search-status {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.parcel-search-status.is-found {
  color: #166534;
}

.parcel-search-status.is-error {
  color: #b42318;
}

.zbgis-map {
  min-height: 360px;
  overflow: hidden;
  background: var(--light-gray);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-coordinates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.mapka-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.admin-shell {
  padding: 52px clamp(20px, 5vw, 72px);
}

.status-shell {
  padding: 52px clamp(20px, 5vw, 72px);
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-heading h1 {
  font-size: clamp(34px, 4vw, 58px);
}

.admin-heading p {
  max-width: 760px;
  color: var(--muted);
}

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

.status-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 24px;
}

.status-heading h1 {
  font-size: clamp(34px, 4vw, 58px);
}

.status-heading p {
  color: var(--muted);
}

.status-card {
  display: grid;
  gap: 22px;
  max-width: 960px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-card h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 40px);
}

.status-card p {
  margin: 0;
  color: var(--muted);
}

.status-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: stretch;
}

.current-step-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
}

.current-step-card > span,
.progress-overview > div:first-child span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.current-step-card h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
}

.current-step-card div {
  display: grid;
  gap: 3px;
  padding-top: 4px;
}

.current-step-card div strong {
  font-size: 13px;
}

.current-step-card div span {
  color: var(--muted);
  font-size: 14px;
}

.progress-overview {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.progress-overview > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-overview > div:first-child strong {
  color: var(--blue);
}

.status-timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-timeline li {
  position: relative;
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 9px;
  justify-items: center;
  text-align: center;
  color: var(--muted);
}

.status-timeline li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.status-timeline li:first-child::before {
  left: 50%;
}

.status-timeline li:last-child::before {
  right: 50%;
}

.status-timeline li.is-done::before,
.status-timeline li.is-current::before {
  background: var(--blue);
}

.status-timeline span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-timeline li.is-done span {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.status-timeline li.is-current span {
  background: var(--gradient);
  border-color: transparent;
  color: var(--white);
}

.status-timeline li.is-client-waiting::before {
  background: #ef4444;
}

.status-timeline li.is-client-waiting span {
  background: #ef4444;
  border-color: #ef4444;
  color: var(--white);
}

.status-timeline li.is-client-waiting strong {
  color: #991b1b;
}

.status-timeline small {
  position: relative;
  z-index: 1;
  color: #991b1b;
  font-size: 11px;
  font-weight: 900;
}

.status-timeline li.is-current strong {
  color: var(--ink);
}

.status-timeline li.is-current.is-client-waiting strong {
  color: #991b1b;
}

.status-timeline strong {
  position: relative;
  z-index: 1;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.status-timeline.legacy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.status-timeline.legacy li {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.status-timeline.legacy li::before {
  content: none;
}

.status-timeline.legacy li.is-active {
  border-color: var(--blue);
  background: var(--soft);
}

.status-timeline.legacy span {
  width: 28px;
  height: 28px;
  border: 0;
  background: var(--light-gray);
}

.status-timeline.legacy li.is-active span {
  background: var(--blue);
  color: var(--white);
}

.progress-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.progress-lists > div {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.progress-lists h3 {
  margin: 0;
  font-size: 15px;
}

.progress-lists ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.client-actions {
  display: grid;
  gap: 12px;
}

.delivery-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.delivery-grid button,
.download-grid button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.download-grid button {
  place-items: center;
  min-height: 48px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  text-align: center;
}

.delivery-grid button.is-selected {
  border-color: var(--blue);
  background: var(--soft);
}

.delivery-grid span {
  color: var(--muted);
  font-size: 13px;
}

.status-action-note {
  color: var(--muted);
  font-size: 14px;
}

.measurement-scheduler {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.measurement-current,
.measurement-admin-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: var(--theme-soft, var(--white));
  border: 1px solid var(--theme-border, rgba(37, 99, 235, 0.2));
  border-left: 4px solid var(--theme-color, var(--blue));
  border-radius: 8px;
}

.measurement-admin-card {
  margin-top: 12px;
}

.calendar-draft-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--theme-soft, rgba(37, 99, 235, 0.07));
  border: 1px solid var(--theme-border, rgba(37, 99, 235, 0.18));
  border-left: 4px solid var(--theme-color, var(--blue));
  border-radius: 8px;
}

.calendar-draft-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.measurement-current span,
.measurement-admin-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.measurement-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.measurement-calendar.compact {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compact-calendar-head,
.calendar-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.compact-calendar-head {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.compact-calendar-head span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.calendar-row {
  padding: 7px 0;
  border-bottom: 1px solid rgba(216, 224, 236, 0.75);
}

.calendar-row:last-child {
  border-bottom: 0;
}

.calendar-row > div:first-child strong {
  display: block;
  font-size: 14px;
  text-transform: capitalize;
}

.compact-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.compact-slots button {
  display: inline-grid;
  gap: 1px;
  min-width: 86px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.compact-slots button:hover,
.compact-slots button.is-selected {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.compact-slots button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.compact-slots span {
  font-size: 14px;
  font-weight: 800;
}

.compact-slots small {
  color: var(--muted);
  font-size: 11px;
}

.more-slots {
  display: grid;
  gap: 0;
}

.more-slots summary {
  width: fit-content;
  margin-top: 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.more-slots .calendar-row:first-of-type {
  margin-top: 8px;
  border-top: 1px solid rgba(216, 224, 236, 0.75);
}

.calendar-day {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calendar-day h4 {
  margin: 0;
  font-size: 15px;
}

.calendar-day > span {
  color: var(--muted);
  font-size: 12px;
}

.calendar-slots {
  display: grid;
  gap: 6px;
}

.calendar-slots button {
  display: grid;
  gap: 2px;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-slots button:hover,
.calendar-slots button.is-selected {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.calendar-slots button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.calendar-slots span,
.calendar-slots small {
  color: var(--muted);
}

.measurement-response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.measurement-response-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.measurement-response-actions button + button {
  background: var(--white);
  color: var(--blue);
}

.commercial-panel {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.commercial-summary,
.commercial-admin-grid,
.payment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.commercial-summary div,
.commercial-admin-grid div,
.payment-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.commercial-summary span,
.commercial-summary small,
.commercial-admin-grid span,
.commercial-admin-grid small,
.payment-list span,
.payment-list small {
  color: var(--muted);
  font-size: 12px;
}

.client-deposit-payment {
  display: grid;
  grid-template-columns: 1.2fr 150px repeat(3, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-left: 5px solid #16a34a;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(239, 246, 255, 0.94));
}

.client-deposit-payment div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.client-deposit-payment span,
.client-deposit-payment small,
.client-deposit-pending span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.client-deposit-payment strong {
  overflow-wrap: anywhere;
}

.client-deposit-head {
  border-color: rgba(22, 163, 74, 0.25) !important;
  background: rgba(220, 252, 231, 0.88) !important;
}

.client-payment-qr {
  align-content: start;
  justify-items: center;
  text-align: center;
}

.client-payment-qr img {
  width: min(128px, 100%);
  height: auto;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #fff;
}

.client-deposit-pending {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-left: 4px solid #d97706;
  border-radius: 8px;
  background: rgba(255, 251, 235, 0.9);
}

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

.commercial-actions button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.commercial-actions button:disabled,
.commercial-actions button.is-confirmed {
  border-color: rgba(22, 163, 74, 0.26);
  background: rgba(220, 252, 231, 0.96);
  color: #166534;
  cursor: default;
}

.deposit-admin-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-left: 5px solid #d97706;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(240, 253, 244, 0.92));
}

.deposit-admin-panel.is-sent {
  border-color: rgba(22, 163, 74, 0.24);
  border-left-color: #16a34a;
  background: rgba(240, 253, 244, 0.96);
}

.deposit-admin-panel.is-failed {
  border-color: rgba(220, 38, 38, 0.24);
  border-left-color: #dc2626;
  background: rgba(254, 242, 242, 0.96);
}

.deposit-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.deposit-admin-head span,
.deposit-admin-grid span,
.deposit-admin-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.deposit-admin-head strong {
  display: block;
  margin: 2px 0;
  font-size: 18px;
}

.deposit-admin-head small {
  color: var(--muted);
  font-weight: 800;
}

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

.deposit-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.deposit-admin-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.deposit-admin-grid strong {
  overflow-wrap: anywhere;
}

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

.integration-grid div {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: var(--theme-soft, var(--paper));
  border: 1px solid var(--theme-border, var(--line));
  border-left: 4px solid var(--theme-color, var(--line));
  border-radius: 8px;
}

.integration-grid span,
.integration-grid small {
  color: var(--muted);
  font-size: 12px;
}

.integration-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.assignment-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.assignment-panel label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.assignment-panel select,
.assignment-panel textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.assignment-panel textarea {
  resize: vertical;
}

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.capacity-grid div,
.team-calendar-list li {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.capacity-grid span,
.capacity-grid small,
.team-calendar-list span,
.team-calendar-list small {
  color: var(--muted);
  font-size: 12px;
}

.team-calendar-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-calendar-list li.is-current {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.07);
}

.assigned-contact {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
}

.assigned-avatar {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.assigned-contact span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.assigned-contact h3 {
  margin: 0;
}

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

.assigned-actions a {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  font-weight: 800;
}

.assigned-actions a:first-child {
  background: var(--blue);
  color: var(--white);
}

.vault-box,
.upload-box,
.upload-list li {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vault-box span,
.vault-box small,
.upload-list span,
.upload-list small {
  color: var(--muted);
  font-size: 13px;
}

.upload-box {
  cursor: pointer;
  color: var(--blue);
  font-weight: 800;
}

.upload-box input {
  font: inherit;
  color: var(--ink);
}

.upload-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.client-output-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  font-weight: 800;
}

.admin-refresh,
.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-refresh:disabled {
  opacity: 0.65;
  cursor: wait;
}

.admin-link:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-refresh.secondary {
  background: transparent;
  color: var(--blue);
}

.admin-link.secondary {
  background: transparent;
  color: var(--blue);
}

.admin-link.is-offer-send {
  border-color: #16a34a;
  background: linear-gradient(135deg, #16a34a, #2563eb);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.18);
}

.admin-link[href^="mailto:"] {
  text-decoration: none;
}

.admin-stats {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

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

.admin-stat-grid article {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-stat-grid strong,
.admin-stat-grid span {
  display: block;
}

.admin-stat-grid strong {
  font-size: 30px;
}

.admin-stat-grid span {
  color: var(--muted);
  font-size: 14px;
}

.admin-stat-grid.is-legacy-hidden {
  display: none;
}

.weekly-management-panel,
.my-work-panel,
.daily-operating-panel,
.sharp-test-panel,
.manager-focus-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.weekly-management-head,
.daily-operating-head,
.sharp-test-head,
.my-work-panel,
.manager-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.weekly-management-head div,
.daily-operating-head div,
.sharp-test-head div,
.my-work-panel div,
.manager-focus-head div {
  display: grid;
  gap: 3px;
}

.weekly-management-head strong,
.daily-operating-head strong,
.sharp-test-head strong,
.my-work-panel strong,
.manager-focus-head strong {
  font-size: 18px;
}

.weekly-management-head span,
.daily-operating-head span,
.sharp-test-head span,
.my-work-panel span,
.manager-focus-head span,
.weekly-kpi-grid small,
.team-load-strip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.weekly-kpi-grid,
.daily-operating-steps,
.sharp-test-steps,
.team-load-strip,
.financial-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.weekly-kpi-grid button,
.daily-operating-step,
.sharp-test-steps li,
.team-load-strip button,
.financial-state-card {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.weekly-kpi-grid button,
.daily-operating-step,
.team-load-strip button {
  cursor: pointer;
}

.weekly-kpi-grid button:hover,
.daily-operating-step:hover,
.team-load-strip button:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.weekly-kpi-grid strong,
.daily-operating-step strong,
.team-load-strip strong {
  font-size: 24px;
  line-height: 1;
}

.daily-operating-panel {
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.94);
}

.daily-operating-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.daily-operating-step {
  min-height: 94px;
  border-left-color: var(--blue);
  cursor: pointer;
}

.daily-operating-step strong {
  font-size: 15px;
  line-height: 1.2;
}

.daily-operating-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.daily-operating-step.is-red {
  border-left-color: #dc2626;
  background: rgba(254, 242, 242, 0.9);
}

.daily-operating-step.is-amber {
  border-left-color: #d97706;
  background: rgba(255, 251, 235, 0.95);
}

.daily-operating-step.is-blue {
  border-left-color: var(--blue);
  background: rgba(239, 246, 255, 0.95);
}

.daily-operating-step.is-green {
  border-left-color: #16a34a;
  background: rgba(240, 253, 244, 0.95);
}

.daily-operating-step.is-muted {
  border-left-color: #cbd5e1;
}

.sharp-test-panel {
  border-color: rgba(8, 145, 178, 0.22);
  background: rgba(236, 254, 255, 0.58);
}

.sharp-test-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.sharp-test-steps li {
  min-height: 104px;
  border-left-color: #0891b2;
}

.sharp-test-steps li span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0891b2;
  color: var(--white);
  font-weight: 900;
}

.sharp-test-steps li strong {
  font-size: 15px;
  line-height: 1.2;
}

.sharp-test-steps li small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.weekly-management-panel .daily-control-refresh,
.my-work-panel .daily-control-refresh,
.gmail-workflow-panel .daily-control-refresh,
.manager-focus-panel .daily-control-refresh {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
}

.manager-focus-panel {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

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

.manager-focus-lane {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
}

.manager-focus-lane.is-red {
  border-top-color: #dc2626;
  background: rgba(254, 242, 242, 0.78);
}

.manager-focus-lane.is-amber {
  border-top-color: #d97706;
  background: rgba(255, 251, 235, 0.86);
}

.manager-focus-lane.is-blue {
  border-top-color: var(--blue);
  background: rgba(239, 246, 255, 0.86);
}

.manager-focus-lane.is-green {
  border-top-color: #16a34a;
  background: rgba(240, 253, 244, 0.86);
}

.manager-focus-lane-head,
.manager-focus-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.manager-focus-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 0;
}

.manager-focus-lane-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.manager-focus-lane-head strong {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.manager-focus-list {
  display: grid;
  gap: 6px;
}

.manager-focus-item {
  display: grid;
  gap: 2px;
  min-height: 70px;
  padding: 9px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.manager-focus-item:hover,
.manager-focus-lane-head:hover {
  filter: brightness(0.98);
}

.manager-focus-item strong,
.manager-focus-item span,
.manager-focus-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-focus-item strong {
  font-size: 13px;
}

.manager-focus-item span,
.manager-focus-item small,
.manager-focus-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.manager-focus-empty {
  min-height: 70px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.ops-alert-panel,
.matej-action-panel,
.followup-panel,
.ops-policy-panel,
.ops-postgres-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.ops-alert-head,
.matej-action-head,
.followup-head,
.ops-policy-panel > div:first-child,
.ops-postgres-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ops-alert-head div,
.matej-action-head div,
.followup-head div,
.ops-policy-panel > div:first-child,
.ops-postgres-panel > div:first-child {
  min-width: 0;
}

.ops-alert-head strong,
.matej-action-head strong,
.followup-head strong,
.ops-policy-panel strong,
.ops-postgres-panel strong {
  display: block;
  font-size: 18px;
}

.ops-alert-head span,
.matej-action-head span,
.followup-head span,
.ops-policy-panel span,
.ops-postgres-panel span,
.ops-alert-item span,
.ops-alert-item small,
.matej-action-item span,
.matej-action-item small,
.followup-item span,
.followup-item small,
.ops-policy-grid small,
.ops-postgres-steps small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ops-alert-list,
.matej-action-grid,
.followup-list,
.ops-policy-grid,
.ops-postgres-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.ops-alert-item,
.ops-alert-empty,
.matej-action-item,
.matej-action-empty,
.followup-item,
.followup-empty,
.ops-policy-grid article,
.ops-postgres-steps article {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.ops-alert-item {
  cursor: pointer;
}

.matej-action-panel {
  border-color: rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.matej-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.matej-action-item,
.followup-item {
  cursor: pointer;
}

.matej-action-item:hover,
.followup-item:hover {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.matej-action-item strong,
.followup-item strong {
  font-size: 15px;
  line-height: 1.2;
}

.matej-action-item em {
  align-self: end;
  justify-self: start;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.followup-panel {
  border-color: rgba(217, 119, 6, 0.18);
  background: rgba(255, 251, 235, 0.58);
}

.followup-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.matej-action-item.is-red,
.followup-item.is-red {
  border-left-color: #dc2626;
  background: rgba(254, 242, 242, 0.92);
}

.matej-action-item.is-amber,
.followup-item.is-amber {
  border-left-color: #d97706;
  background: rgba(255, 251, 235, 0.96);
}

.matej-action-item.is-blue,
.followup-item.is-blue {
  border-left-color: var(--blue);
  background: rgba(239, 246, 255, 0.96);
}

.matej-action-item.is-green,
.followup-item.is-green {
  border-left-color: #16a34a;
  background: rgba(240, 253, 244, 0.96);
}

.matej-action-item.is-purple,
.followup-item.is-purple {
  border-left-color: #7c3aed;
  background: rgba(245, 243, 255, 0.96);
}

.matej-action-item.is-muted,
.followup-item.is-muted {
  border-left-color: #cbd5e1;
}

.ops-alert-item:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ops-alert-item.is-red {
  border-left-color: #dc2626;
  background: rgba(254, 242, 242, 0.9);
}

.ops-alert-item.is-amber {
  border-left-color: #d97706;
  background: rgba(255, 251, 235, 0.95);
}

.ops-alert-item.is-blue {
  border-left-color: var(--blue);
  background: rgba(239, 246, 255, 0.95);
}

.ops-policy-grid article:nth-child(1) {
  border-left-color: #2563eb;
}

.ops-policy-grid article:nth-child(2) {
  border-left-color: #16a34a;
}

.ops-policy-grid article:nth-child(3) {
  border-left-color: #0891b2;
}

.ops-policy-grid article:nth-child(4) {
  border-left-color: #7c3aed;
}

.ops-postgres-steps article {
  border-left-color: #64748b;
}

.ops-postgres-steps article.is-done {
  border-left-color: #16a34a;
  background: rgba(240, 253, 244, 0.92);
}

.financial-state-card span,
.financial-state-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.financial-state-card strong {
  font-size: 15px;
}

.financial-state-card.is-green {
  border-left-color: #16a34a;
  background: rgba(240, 253, 244, 0.95);
}

.financial-state-card.is-amber {
  border-left-color: #d97706;
  background: rgba(255, 251, 235, 0.95);
}

.financial-state-card.is-blue {
  border-left-color: var(--blue);
  background: rgba(239, 246, 255, 0.95);
}

.financial-state-card.is-muted {
  border-left-color: #cbd5e1;
}

.daily-control-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(37, 99, 235, 0.92));
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 8px;
  color: var(--white);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

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

.daily-control-head div {
  display: grid;
  gap: 2px;
}

.daily-control-head strong {
  font-size: 18px;
}

.daily-control-head span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.daily-control-refresh {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.daily-action-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.daily-action {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-align: left;
  font: inherit;
}

button.daily-action {
  cursor: pointer;
}

.daily-action:hover,
.daily-control-refresh:hover {
  background: rgba(255, 255, 255, 0.16);
}

.daily-action span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-action strong {
  color: var(--white);
  font-size: 14px;
  line-height: 1.2;
}

.daily-action small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.25;
}

.daily-action em {
  align-self: end;
  justify-self: start;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.daily-action.is-red {
  border-left-color: #ef4444;
}

.daily-action.is-amber {
  border-left-color: #f59e0b;
}

.daily-action.is-blue {
  border-left-color: #60a5fa;
}

.daily-action.is-green {
  border-left-color: #22c55e;
}

.daily-action.is-purple {
  border-left-color: #a78bfa;
}

.daily-action.is-muted {
  border-left-color: #cbd5e1;
}

.gmail-workflow-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

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

.gmail-workflow-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gmail-workflow-head strong {
  font-size: 18px;
}

.gmail-workflow-head span,
.gmail-workflow-summary span,
.gmail-workflow-lane-head span,
.gmail-workflow-item span,
.gmail-workflow-item small,
.gmail-workflow-empty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gmail-workflow-summary,
.gmail-workflow-lanes {
  display: grid;
  gap: 8px;
}

.gmail-workflow-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gmail-workflow-summary button {
  display: grid;
  gap: 2px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gmail-workflow-summary strong {
  font-size: 24px;
  line-height: 1;
}

.gmail-workflow-summary .is-amber {
  border-left-color: #d97706;
}

.gmail-workflow-summary .is-blue {
  border-left-color: var(--blue);
}

.gmail-workflow-summary .is-red {
  border-left-color: #dc2626;
}

.gmail-workflow-summary .is-green {
  border-left-color: #16a34a;
}

.gmail-workflow-lanes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gmail-workflow-lane {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.82);
}

.gmail-workflow-lane.is-red {
  border-top-color: #dc2626;
  background: rgba(254, 242, 242, 0.72);
}

.gmail-workflow-lane.is-amber {
  border-top-color: #d97706;
  background: rgba(255, 251, 235, 0.82);
}

.gmail-workflow-lane.is-blue {
  border-top-color: var(--blue);
  background: rgba(239, 246, 255, 0.82);
}

.gmail-workflow-lane.is-green {
  border-top-color: #16a34a;
  background: rgba(240, 253, 244, 0.82);
}

.gmail-workflow-lane.is-muted {
  border-top-color: #cbd5e1;
}

.gmail-workflow-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gmail-workflow-lane-head strong {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 28px;
  border-radius: 999px;
  background: var(--white);
  font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.gmail-workflow-list {
  display: grid;
  gap: 7px;
}

.gmail-workflow-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.gmail-workflow-detail {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gmail-workflow-item strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gmail-workflow-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gmail-workflow-detail:hover strong {
  color: var(--blue);
}

.gmail-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gmail-workflow-actions .task-toggle {
  font-size: 14px;
}

.gmail-workflow-item.is-red {
  border-left-color: #ef4444;
  background: rgba(254, 242, 242, 0.9);
}

.gmail-workflow-item.is-amber {
  border-left-color: #f59e0b;
}

.gmail-workflow-item.is-blue {
  border-left-color: #60a5fa;
}

.gmail-workflow-item.is-purple {
  border-left-color: #a78bfa;
}

.gmail-workflow-item.is-green {
  border-left-color: #22c55e;
}

.gmail-workflow-empty {
  display: grid;
  gap: 3px;
  min-height: 84px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.ops-dashboard {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.ops-dashboard-head strong {
  font-size: 18px;
}

.ops-dashboard-head span,
.ops-chip-groups > div > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.ops-main-card {
  padding: 0;
  overflow: hidden;
}

.ops-card-button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ops-card-button:hover,
.ops-chip:hover {
  filter: brightness(0.98);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.ops-card-button.is-active,
.ops-chip.is-active {
  outline: 2px solid rgba(37, 99, 235, 0.85);
  outline-offset: -2px;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.16);
}

.ops-main-card strong,
.ops-card-button strong {
  grid-row: span 2;
  font-size: 34px;
  line-height: 1;
}

.ops-main-card span,
.ops-card-button span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.ops-main-card small,
.ops-card-button small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.ops-main-card.is-red,
.ops-chip.is-red {
  border-color: rgba(220, 38, 38, 0.24);
  border-left-color: #dc2626;
  background: rgba(254, 242, 242, 0.9);
}

.ops-main-card.is-amber,
.ops-chip.is-amber {
  border-color: rgba(217, 119, 6, 0.24);
  border-left-color: #d97706;
  background: rgba(255, 251, 235, 0.95);
}

.ops-main-card.is-green,
.ops-chip.is-green {
  border-color: rgba(22, 163, 74, 0.22);
  border-left-color: #16a34a;
  background: rgba(240, 253, 244, 0.95);
}

.ops-main-card.is-blue,
.ops-chip.is-blue {
  border-color: rgba(37, 99, 235, 0.22);
  border-left-color: var(--blue);
  background: rgba(239, 246, 255, 0.95);
}

.ops-main-card.is-purple,
.ops-chip.is-purple {
  border-color: rgba(124, 58, 237, 0.22);
  border-left-color: var(--purple);
  background: rgba(245, 243, 255, 0.95);
}

.ops-main-card.is-muted,
.ops-chip.is-muted {
  border-color: var(--line);
  border-left-color: #cbd5e1;
  background: rgba(248, 250, 252, 0.95);
}

.ops-chip-groups {
  display: grid;
  gap: 10px;
}

.ops-chip-groups > div {
  display: grid;
  gap: 6px;
}

.ops-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ops-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
}

.ops-chip strong {
  color: var(--ink);
  font-size: 13px;
}

.admin-command-center {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

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

.admin-command-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-command-head span,
.admin-command-head small,
.admin-command-kpi span,
.admin-command-kpi small,
.admin-command-lane-head span,
.admin-command-item span,
.admin-command-item small,
.admin-command-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-command-head strong {
  font-size: 22px;
  line-height: 1.1;
}

.admin-command-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.25fr);
  gap: 10px;
  align-items: stretch;
}

.admin-command-focus {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.94);
}

.admin-command-focus span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-command-focus strong {
  font-size: 22px;
  line-height: 1.15;
}

.admin-command-focus p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.admin-command-focus-action {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.admin-command-kpis,
.admin-command-lanes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-command-kpi,
.admin-command-lane {
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  background: var(--paper);
}

.admin-command-kpi {
  display: grid;
  gap: 3px;
  min-height: 68px;
  padding: 10px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-command-kpis.is-compact {
  grid-template-columns: repeat(6, minmax(76px, 1fr));
  align-content: stretch;
}

.admin-command-kpi:hover,
.admin-command-item:hover,
.admin-command-lane-head:hover {
  filter: brightness(0.985);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.admin-command-kpi.is-active {
  outline: 2px solid rgba(37, 99, 235, 0.82);
  outline-offset: -2px;
}

.admin-command-kpi strong {
  font-size: 24px;
  line-height: 1;
}

.admin-command-lanes {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-command-lane {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.admin-command-lane-head,
.admin-command-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-command-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
}

.admin-command-lane-head span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 7px;
  align-items: center;
}

.admin-command-lane-head span > em {
  display: inline-grid;
  grid-row: span 2;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.admin-command-lane-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.admin-command-lane-head strong {
  font-size: 28px;
  line-height: 1;
}

.admin-command-list {
  display: grid;
  gap: 6px;
}

.admin-command-item {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-left-width: 4px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-command-item strong {
  font-size: 13px;
  line-height: 1.25;
}

.admin-command-item span,
.admin-command-item small,
.admin-command-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-command-item span,
.admin-command-item small {
  white-space: nowrap;
}

.admin-command-empty {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: rgba(248, 250, 252, 0.74);
}

.admin-command-kpi.is-red,
.admin-command-lane.is-red,
.admin-command-item.is-red,
.admin-command-focus.is-red {
  border-left-color: #dc2626;
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.98), rgba(255, 228, 230, 0.9));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.1);
}

.admin-command-kpi.is-amber,
.admin-command-lane.is-amber,
.admin-command-item.is-amber,
.admin-command-focus.is-amber {
  border-left-color: #d97706;
  border-color: rgba(217, 119, 6, 0.3);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.9));
}

.admin-command-kpi.is-blue,
.admin-command-lane.is-blue,
.admin-command-item.is-blue,
.admin-command-focus.is-blue {
  border-left-color: var(--blue);
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.9));
}

.admin-command-kpi.is-green,
.admin-command-lane.is-green,
.admin-command-item.is-green,
.admin-command-focus.is-green {
  border-left-color: #16a34a;
  border-color: rgba(22, 163, 74, 0.3);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(220, 252, 231, 0.9));
}

.admin-command-kpi.is-purple,
.admin-command-lane.is-purple,
.admin-command-item.is-purple,
.admin-command-focus.is-purple {
  border-left-color: var(--purple);
  border-color: rgba(124, 58, 237, 0.38);
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.99), rgba(237, 233, 254, 0.92));
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.1);
}

.admin-command-kpi.is-muted,
.admin-command-lane.is-muted,
.admin-command-item.is-muted,
.admin-command-focus.is-muted {
  border-left-color: #cbd5e1;
  background: rgba(248, 250, 252, 0.94);
}

.readiness-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.readiness-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.readiness-heading strong {
  font-size: 18px;
}

.readiness-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.readiness-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.readiness-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.readiness-card strong {
  font-size: 16px;
}

.readiness-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.readiness-card.is-ok {
  border-color: rgba(22, 101, 52, 0.22);
  background: rgba(220, 252, 231, 0.45);
}

.readiness-card.is-warning {
  border-color: rgba(146, 64, 14, 0.26);
  background: rgba(254, 243, 199, 0.55);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
}

body:not([data-page="case"]) .admin-layout {
  grid-template-columns: minmax(0, 1fr);
}

.admin-layout.is-case-layout {
  grid-template-columns: minmax(0, 1fr);
}

body[data-page="case"] #admin-stats,
.case-source-panel {
  display: none !important;
}

body.is-crm-logged-out #admin-stats,
body.is-crm-logged-out .admin-filters,
body.is-crm-logged-out #view-summary,
body.is-crm-logged-out .detail-panel,
body.is-crm-logged-out .admin-panel-header {
  display: none !important;
}

body.is-crm-logged-out .admin-layout {
  grid-template-columns: minmax(320px, 720px) !important;
}

body.is-crm-logged-out .admin-panel {
  max-width: 720px;
}

.admin-panel {
  min-width: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-panel-header h2 {
  font-size: 24px;
}

.admin-panel-header span {
  color: var(--muted);
  font-size: 14px;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-filter {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.admin-filter:hover,
.admin-filter.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.view-summary {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.view-summary strong {
  font-size: 14px;
}

.view-summary span {
  color: var(--muted);
  font-size: 13px;
}

.measurement-agenda {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(37, 99, 235, 0.14);
}

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

.measurement-agenda-head div {
  display: grid;
  gap: 2px;
}

.measurement-agenda-head > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.measurement-agenda-list {
  display: grid;
  gap: 7px;
}

.measurement-agenda-item {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.82);
  color: var(--ink);
  text-decoration: none;
}

.measurement-agenda-item:hover {
  border-color: rgba(37, 99, 235, 0.48);
  background: rgba(219, 234, 254, 0.92);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.measurement-agenda-item span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.measurement-agenda-item strong,
.measurement-agenda-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.measurement-agenda-item em,
.measurement-agenda-item b,
.measurement-agenda-item i {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.measurement-agenda-item i {
  color: var(--blue);
}

.measurement-agenda-empty {
  padding: 12px;
  border: 1px dashed rgba(37, 99, 235, 0.26);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.68);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.operation-agenda {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.84);
}

.operation-agenda.is-red {
  border-color: rgba(220, 38, 38, 0.18);
  border-left-color: var(--red);
  background: rgba(254, 242, 242, 0.76);
}

.operation-agenda.is-purple {
  border-color: rgba(124, 58, 237, 0.18);
  border-left-color: var(--purple);
  background: rgba(245, 243, 255, 0.76);
}

.operation-agenda.is-amber {
  border-color: rgba(217, 119, 6, 0.2);
  border-left-color: var(--amber);
  background: rgba(255, 251, 235, 0.8);
}

.operation-agenda.is-green {
  border-color: rgba(22, 163, 74, 0.18);
  border-left-color: var(--green);
  background: rgba(240, 253, 244, 0.78);
}

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

.operation-agenda-head div {
  display: grid;
  gap: 3px;
}

.operation-agenda-head strong {
  color: var(--ink);
  font-size: 16px;
}

.operation-agenda-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.operation-agenda-head > span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-agenda-list {
  display: grid;
  gap: 7px;
}

.operation-agenda-item {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.operation-agenda-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.operation-agenda-item.is-red {
  border-left-color: var(--red);
  background: rgba(255, 247, 247, 0.96);
}

.operation-agenda-item.is-purple {
  border-left-color: var(--purple);
  background: rgba(250, 245, 255, 0.96);
}

.operation-agenda-item.is-amber {
  border-left-color: var(--amber);
  background: rgba(255, 251, 235, 0.96);
}

.operation-agenda-item.is-blue {
  border-left-color: var(--blue);
  background: rgba(239, 246, 255, 0.96);
}

.operation-agenda-item.is-green {
  border-left-color: var(--green);
  background: rgba(240, 253, 244, 0.96);
}

.operation-agenda-item span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.operation-agenda-item strong,
.operation-agenda-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-agenda-item em,
.operation-agenda-item b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.operation-agenda-item b {
  color: var(--blue);
}

.operation-agenda-empty {
  padding: 12px;
  border: 1px dashed rgba(100, 116, 139, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.inquiry-list {
  display: grid;
  gap: 10px;
}

.inquiry-row {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  color: var(--ink);
}

.inquiry-row-main {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.inquiry-row:hover,
.inquiry-row.is-active {
  border-color: var(--blue);
  background: var(--soft);
}

.inquiry-row.is-red {
  border-left-color: #dc2626;
}

.inquiry-row.is-amber {
  border-left-color: #d97706;
}

.inquiry-row.is-blue {
  border-left-color: var(--blue);
}

.inquiry-row.is-green {
  border-left-color: #16a34a;
}

.inquiry-row.is-purple {
  border-left-color: var(--purple);
}

.inquiry-row.is-muted {
  border-left-color: #cbd5e1;
}

.inquiry-action-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
}

.inquiry-action-line strong {
  font-size: 12px;
}

.inquiry-action-line small {
  color: var(--muted);
  font-size: 12px;
}

.inquiry-action-line.is-red {
  border-left-color: #dc2626;
  background: rgba(254, 242, 242, 0.9);
}

.inquiry-action-line.is-amber {
  border-left-color: #d97706;
  background: rgba(255, 251, 235, 0.95);
}

.inquiry-action-line.is-blue {
  border-left-color: var(--blue);
  background: rgba(239, 246, 255, 0.95);
}

.inquiry-action-line.is-green {
  border-left-color: #16a34a;
  background: rgba(240, 253, 244, 0.95);
}

.inquiry-action-line.is-purple {
  border-left-color: var(--purple);
  background: rgba(245, 243, 255, 0.95);
}

.inquiry-row-timeline {
  display: grid;
  grid-template-columns: repeat(13, minmax(58px, 1fr));
  gap: 5px;
  max-width: 100%;
  padding: 2px 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.inquiry-timeline-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--muted);
}

.inquiry-timeline-step i {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.inquiry-timeline-step em {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inquiry-timeline-step.is-done {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(240, 253, 244, 0.9);
  color: #166534;
}

.inquiry-timeline-step.is-done i {
  background: #22c55e;
  color: var(--white);
}

.inquiry-timeline-step.is-active {
  border-color: rgba(37, 99, 235, 0.34);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(124, 92, 246, 0.95));
  color: var(--white);
}

.inquiry-timeline-step.is-active i {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.inquiry-timeline-step.is-client-waiting {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(254, 242, 242, 0.95);
  color: #991b1b;
}

.inquiry-timeline-step.is-client-waiting i {
  background: #dc2626;
  color: var(--white);
}

.inquiry-row-top,
.detail-meta,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.inquiry-row-top {
  justify-content: space-between;
}

.inquiry-row-meta,
.inquiry-row-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.inquiry-row-meta small,
.inquiry-row-foot small,
.inquiry-row-top small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inquiry-open-link {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(37, 99, 235, 0.26);
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.inquiry-open-link:hover {
  background: var(--blue);
  color: var(--white);
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 16px;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: transparent;
}

.case-hero-main,
.case-next-step,
.case-overview-card,
.case-compact-detail {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
}

.case-hero-main {
  padding: 18px;
}

.case-hero-main h3 {
  margin-top: 4px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.case-eyebrow {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0;
}

.compact-meta {
  margin-top: 14px;
}

.case-next-step {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.08));
}

.case-next-step span,
.case-next-step small {
  color: var(--muted);
  font-weight: 700;
}

.case-next-step strong {
  font-size: 20px;
  line-height: 1.25;
}

.case-timeline-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-timeline-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.case-timeline-head div {
  display: grid;
  gap: 2px;
}

.case-timeline-head span,
.case-timeline-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-timeline-head strong {
  font-size: 18px;
}

.case-timeline-track {
  display: grid;
  grid-template-columns: repeat(13, minmax(96px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.case-timeline-step {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.case-timeline-step span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e8eef8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.case-timeline-step strong {
  color: inherit;
  font-size: 12px;
  line-height: 1.2;
}

.case-timeline-step small {
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0.82;
}

.case-timeline-step:hover {
  border-color: var(--blue);
  background: var(--soft);
  color: var(--blue);
}

.case-timeline-step.is-done {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
}

.case-timeline-step.is-done span {
  background: #22c55e;
  color: var(--white);
}

.case-timeline-step.is-active {
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(139, 92, 246, 0.86));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.case-timeline-step.is-active span {
  background: var(--white);
  color: var(--blue);
}

.case-timeline-step.is-active strong {
  color: var(--white);
}

.case-timeline-step.is-client-waiting {
  border-color: rgba(239, 68, 68, 0.42);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.96), rgba(185, 28, 28, 0.9));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.18);
}

.case-timeline-step.is-client-waiting span {
  background: var(--white);
  color: #dc2626;
}

.case-timeline-step.has-client-action:not(.is-client-waiting) {
  border-color: rgba(239, 68, 68, 0.2);
}

.case-timeline-panel.is-compact {
  gap: 8px;
  padding: 10px;
  background: rgba(248, 250, 252, 0.72);
  box-shadow: none;
}

.case-timeline-panel.is-compact .case-timeline-head {
  align-items: center;
}

.case-timeline-panel.is-compact .case-timeline-track {
  grid-template-columns: repeat(13, minmax(74px, 1fr));
  gap: 5px;
}

.case-timeline-panel.is-compact .case-timeline-step {
  min-height: 58px;
  gap: 5px;
  padding: 8px;
  border-radius: 7px;
}

.case-timeline-panel.is-compact .case-timeline-step span {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.case-timeline-panel.is-compact .case-timeline-step strong {
  font-size: 11px;
}

.case-timeline-panel.is-compact .case-timeline-step small {
  display: none;
}

.case-command-panel {
  position: static;
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(14px);
}

.theme-client {
  --theme-color: #d97706;
  --theme-soft: rgba(255, 251, 235, 0.9);
  --theme-border: rgba(217, 119, 6, 0.28);
  --theme-ink: #92400e;
}

.theme-email {
  --theme-color: #ea580c;
  --theme-soft: rgba(255, 247, 237, 0.92);
  --theme-border: rgba(234, 88, 12, 0.24);
  --theme-ink: #9a3412;
}

.theme-calendar {
  --theme-color: #2563eb;
  --theme-soft: rgba(239, 246, 255, 0.92);
  --theme-border: rgba(37, 99, 235, 0.24);
  --theme-ink: #1d4ed8;
}

.theme-drive {
  --theme-color: #0891b2;
  --theme-soft: rgba(236, 254, 255, 0.92);
  --theme-border: rgba(8, 145, 178, 0.24);
  --theme-ink: #0e7490;
}

.theme-money {
  --theme-color: #16a34a;
  --theme-soft: rgba(240, 253, 244, 0.92);
  --theme-border: rgba(22, 163, 74, 0.24);
  --theme-ink: #166534;
}

.theme-team,
.theme-sms {
  --theme-color: #7c3aed;
  --theme-soft: rgba(245, 243, 255, 0.92);
  --theme-border: rgba(124, 58, 237, 0.24);
  --theme-ink: #5b21b6;
}

.theme-status,
.theme-system {
  --theme-color: #475569;
  --theme-soft: rgba(248, 250, 252, 0.94);
  --theme-border: rgba(71, 85, 105, 0.2);
  --theme-ink: #334155;
}

.case-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.case-command-head div {
  display: grid;
  gap: 3px;
}

.case-command-head span,
.case-command-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.case-command-head strong {
  font-size: 18px;
  line-height: 1.2;
}

.case-command-actions,
.case-command-nav,
.case-fast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-primary-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--theme-border, var(--line));
  border-left: 5px solid var(--theme-color, var(--blue));
  border-radius: 8px;
  background: var(--theme-soft, rgba(239, 246, 255, 0.92));
}

.case-primary-action div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.case-primary-action span {
  color: var(--theme-ink, var(--blue));
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-primary-action strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.case-primary-action small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.case-primary-button {
  min-width: 220px;
  min-height: 44px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.case-fast-actions {
  padding-bottom: 2px;
}

.recommended-action-strip {
  display: grid;
  grid-template-columns: auto minmax(140px, 0.28fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.92);
}

.recommended-action-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.recommended-action-strip strong {
  font-size: 14px;
}

.recommended-action-strip small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.recommended-action-strip.is-red {
  border-left-color: #dc2626;
  background: rgba(254, 242, 242, 0.9);
}

.recommended-action-strip.is-amber {
  border-left-color: #d97706;
  background: rgba(255, 251, 235, 0.95);
}

.recommended-action-strip.is-blue {
  border-left-color: var(--blue);
  background: rgba(239, 246, 255, 0.95);
}

.recommended-action-strip.is-green {
  border-left-color: #16a34a;
  background: rgba(240, 253, 244, 0.95);
}

.recommended-action-strip.is-purple {
  border-left-color: var(--purple);
  background: rgba(245, 243, 255, 0.95);
}

.command-action,
.case-command-nav a,
.case-command-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.command-action:hover,
.case-command-nav a:hover,
.case-command-nav button:hover,
.case-command-nav button.is-active {
  border-color: var(--theme-color, var(--blue));
  background: var(--theme-soft, var(--soft));
  color: var(--theme-ink, var(--blue));
}

.command-action.is-primary {
  border-color: transparent;
  background: var(--theme-color, var(--gradient));
  color: var(--white);
}

.command-action.is-offer-primary {
  min-width: 150px;
  border-color: rgba(22, 163, 74, 0.12);
  background: linear-gradient(135deg, #16a34a, #2563eb);
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.2);
}

.command-action.is-offer-primary:hover {
  background: linear-gradient(135deg, #15803d, #1d4ed8);
  color: var(--white);
}

.command-action.is-deposit-primary {
  min-width: 190px;
  border-color: rgba(217, 119, 6, 0.14);
  background: linear-gradient(135deg, #d97706, #16a34a);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.18);
}

.command-action.is-deposit-primary:hover {
  background: linear-gradient(135deg, #b45309, #15803d);
  color: var(--white);
}

.command-action.is-static {
  cursor: default;
  border-color: rgba(22, 163, 74, 0.24);
  background: rgba(240, 253, 244, 0.92);
  color: #166534;
}

.case-command-nav {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.case-command-nav a,
.case-command-nav button {
  min-height: 30px;
  color: var(--muted);
  text-decoration: none;
}

.case-command-nav button.is-active {
  color: var(--theme-ink, var(--blue));
  background: var(--theme-soft, #eff6ff);
}

.case-work-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
}

.case-work-strip article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--theme-border, var(--line));
  border-left: 4px solid var(--theme-color, var(--blue));
  border-radius: 8px;
  background: var(--theme-soft, var(--paper));
}

.case-work-strip span,
.case-work-strip small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-work-strip strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-tab-panel {
  display: grid;
  gap: 18px;
}

.case-tab-panel[hidden] {
  display: none !important;
}

.case-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.case-overview-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-left: 4px solid var(--theme-color, var(--line));
  background: var(--theme-soft, var(--white));
}

.case-overview-card.is-primary {
  border-color: var(--theme-border, rgba(37, 99, 235, 0.28));
  background: linear-gradient(135deg, var(--theme-soft, rgba(37, 99, 235, 0.09)), rgba(255, 255, 255, 0.92));
}

.case-card-title {
  display: grid;
  gap: 4px;
}

.case-card-title span,
.case-overview-card dt,
.compact-detail-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.case-card-title strong {
  font-size: 22px;
  line-height: 1.15;
}

.case-overview-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.case-overview-card dl div,
.compact-detail-list div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.case-overview-card dt,
.case-overview-card dd {
  margin: 0;
}

.case-overview-card dd,
.compact-detail-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 800;
}

.case-compact-detail {
  padding: 16px;
}

.compact-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 12px;
}

.inquiry-row span,
.inquiry-row small {
  color: var(--muted);
}

.inquiry-row strong {
  color: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  background: var(--light-gray);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-pill.success {
  background: #dcfce7;
  color: #166534;
}

.status-pill.warning {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.danger {
  background: #fee2e2;
  color: #991b1b;
}

.status-pill.waiting {
  background: #ffedd5;
  color: #9a3412;
}

.status-pill.automation {
  background: #ede9fe;
  color: #5b21b6;
}

.status-pill.theme-calendar:not(.success):not(.warning):not(.danger):not(.waiting),
.status-pill.theme-drive:not(.success):not(.warning):not(.danger):not(.waiting),
.status-pill.theme-money:not(.success):not(.warning):not(.danger):not(.waiting),
.status-pill.theme-email:not(.success):not(.warning):not(.danger):not(.waiting),
.status-pill.theme-sms:not(.success):not(.warning):not(.danger):not(.waiting) {
  background: var(--theme-soft);
  color: var(--theme-ink);
}

.inquiry-detail {
  display: grid;
  gap: 18px;
}

.inquiry-detail section {
  display: grid;
  gap: 10px;
  scroll-margin-top: 176px;
}

.inquiry-detail,
.case-tab-panel,
.case-section,
.case-command-panel {
  scroll-margin-top: 172px;
}

.case-section {
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-left: 4px solid var(--theme-color, var(--line));
  border-radius: 8px;
}

.case-section.is-compact {
  padding: 14px;
  background: var(--paper);
}

.inquiry-detail h3 {
  margin: 0;
  font-size: 18px;
}

.inquiry-detail p {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
}

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

.detail-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-grid span,
.task-list span {
  color: var(--muted);
  font-size: 13px;
}

.detail-grid strong {
  overflow-wrap: anywhere;
}

.reply-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reply-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.reply-box strong {
  font-size: 14px;
}

.reply-box pre {
  overflow: auto;
  max-height: 260px;
  margin: 0;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.workflow-step {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.workflow-step:hover,
.workflow-step.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.workflow-step:disabled {
  opacity: 0.72;
  cursor: wait;
}

.status-update-note {
  font-size: 13px;
}

.status-note-field {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-note-field textarea,
.status-note-field input,
.status-note-field select {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.status-note-field input,
.status-note-field select {
  min-height: 44px;
}

.crm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(5px);
}

.crm-modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.crm-modal-wide {
  width: min(860px, 100%);
}

.crm-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.94), rgba(239, 246, 255, 0.94));
}

.crm-modal-head span {
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-modal-head h2 {
  margin: 4px 0;
  font-size: 28px;
  line-height: 1.1;
}

.crm-modal-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.crm-modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.crm-modal-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.crm-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.crm-modal-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.crm-modal-form input,
.crm-modal-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.crm-modal-form input {
  min-height: 48px;
  padding: 0 12px;
}

.crm-modal-form textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.crm-modal-send-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 8px;
  background: rgba(240, 253, 244, 0.88);
}

.crm-modal-send-note strong {
  color: #166534;
  font-size: 14px;
}

.crm-modal-send-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.crm-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.case-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.case-evidence-grid div,
.case-evidence-block {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.86);
}

.case-evidence-grid span,
.case-evidence-block > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-evidence-grid strong {
  font-size: 15px;
}

.case-evidence-block p,
.case-evidence-block ul {
  margin: 0;
}

.case-evidence-block ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.case-evidence-block li small {
  display: block;
  color: var(--muted);
}

.prepared-message {
  margin-top: 12px;
}

.status-log {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-log ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-log li {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.status-log li:first-child {
  padding-top: 0;
  border-top: 0;
}

.status-log span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-log p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.communication-panel {
  display: grid;
  gap: 12px;
}

.client-notification-status {
  display: grid;
  gap: 4px;
  margin: 10px 0 12px;
  padding: 12px;
  background: var(--theme-soft, rgba(37, 99, 235, 0.07));
  border: 1px solid var(--theme-border, rgba(37, 99, 235, 0.18));
  border-left: 4px solid var(--theme-color, var(--blue));
  border-radius: 8px;
}

.client-notification-status strong {
  color: var(--ink);
}

.client-notification-status span {
  color: var(--muted);
  font-size: 13px;
}

.drive-folder-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.drive-folder-box span {
  color: var(--muted);
  font-size: 13px;
}

.drive-archive-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
}

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

.drive-archive-head div {
  display: grid;
  gap: 4px;
}

.drive-archive-head span:not(.status-pill) {
  color: var(--muted);
  font-size: 13px;
}

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

.drive-archive-metrics div {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
}

.drive-archive-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.drive-archive-metrics strong {
  font-size: 13px;
}

.drive-subfolder-list {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .case-hero,
  .case-overview-grid,
  .compact-detail-list,
  .daily-action-list,
  .ops-main-grid {
    grid-template-columns: 1fr;
  }

  .case-command-panel {
    position: static;
  }

  .case-command-head {
    display: grid;
  }

  .ops-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-control-head {
    align-items: stretch;
    flex-direction: column;
  }

  .drive-archive-head,
  .drive-folder-box {
    align-items: stretch;
  }

  .drive-archive-head,
  .drive-archive-metrics {
    grid-template-columns: 1fr;
  }
}

.template-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-pill {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.template-pill:hover,
.template-pill.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.template-pill.is-recommended:not(.is-active) {
  border-color: rgba(139, 92, 246, 0.38);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.08);
}

.communication-preview {
  margin-top: 0;
}

.compact-actions {
  margin-top: 0;
}

.task-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-list li {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--theme-soft, var(--paper));
  border: 1px solid var(--theme-border, var(--line));
  border-left: 4px solid var(--theme-color, var(--line));
  border-radius: 8px;
}

.task-list li.is-done {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
}

.task-list li.is-done strong {
  text-decoration: line-through;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-row div {
  display: grid;
  gap: 4px;
}

.task-actions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.task-toggle {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.task-toggle:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.task-toggle.subtle {
  color: var(--muted);
}

.task-toggle:disabled {
  opacity: 0.72;
  cursor: wait;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(20px, 6vw, 86px);
  background: var(--ink);
  color: var(--white);
}

.site-footer span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer address {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  text-align: right;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
}

.legal-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px clamp(20px, 6vw, 86px);
}

.legal-shell .lead {
  max-width: 820px;
}

.legal-grid,
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.legal-grid article,
.checklist-grid article {
  display: grid;
  gap: 10px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.legal-grid h2,
.checklist-grid h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
}

.legal-grid p,
.checklist-grid li {
  color: var(--muted);
}

.checklist-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .site-header {
    min-height: 70px;
  }

  .brand-text strong {
    font-size: 20px;
    letter-spacing: 3px;
  }

  .brand-text small {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .hero,
  .premium-band,
  .inquiry {
    grid-template-columns: 1fr;
  }

  .form-grid.two,
  .checkbox-grid,
  .map-coordinates {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .router-grid,
  .service-grid,
  .value-grid,
  .proof-grid,
  .package-grid,
  .steps,
  .reference-grid,
  .faq-grid,
  .team-grid,
  .admin-stats,
  .admin-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .admin-command-grid {
    grid-template-columns: 1fr;
  }

  .admin-command-kpis.is-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .status-hero-card,
  .client-deposit-payment,
  .manager-focus-grid,
  .admin-command-lanes,
  .daily-operating-steps,
  .sharp-test-steps,
  .gmail-workflow-summary,
  .gmail-workflow-lanes,
  .case-work-strip,
  .progress-lists {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-cta {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .manager-focus-head,
  .admin-command-head,
  .matej-action-head,
  .followup-head,
  .daily-operating-head,
  .sharp-test-head,
  .weekly-management-head,
  .my-work-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
  }

  h1 {
    font-size: 42px;
  }

  .brand img {
    width: 42px;
    height: 46px;
  }

  .brand-text strong {
    font-size: 17px;
    letter-spacing: 2px;
  }

  .brand-text small {
    font-size: 7px;
    letter-spacing: 1.4px;
  }

  .router-grid,
  .service-grid,
  .value-grid,
  .proof-grid,
  .package-grid,
  .steps,
  .reference-grid,
  .faq-grid,
  .team-grid,
  .admin-stats,
  .detail-grid,
  .delivery-grid,
  .download-grid,
  .assigned-contact,
  .admin-command-grid,
  .admin-command-kpis,
  .admin-command-kpis.is-compact,
  .admin-command-lanes,
  .crm-modal-grid {
    grid-template-columns: 1fr;
  }

  .status-timeline {
    display: grid;
    gap: 10px;
  }

  .measurement-agenda-head {
    align-items: stretch;
    flex-direction: column;
  }

  .measurement-agenda-item,
  .operation-agenda-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .operation-agenda-head {
    align-items: stretch;
    flex-direction: column;
  }

  .status-timeline li {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .status-timeline li::before {
    content: none;
  }

  .progress-overview > div:first-child {
    display: grid;
  }

  .compact-calendar-head,
  .calendar-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .compact-calendar-head span {
    text-align: left;
  }

  .compact-slots {
    justify-content: stretch;
  }

  .compact-slots button {
    flex: 1;
    min-width: 0;
  }

  .assigned-actions {
    justify-content: stretch;
  }

  .assigned-actions a {
    width: 100%;
  }

  .hero-visual {
    min-height: 300px;
    padding: 12px 0 92px;
  }

  .hero-stat {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .steps {
    gap: 22px;
    padding-top: 0;
  }

  .steps::before,
  .steps li::after {
    display: none;
  }

  .admin-heading {
    display: grid;
    align-items: start;
  }

  .admin-heading-actions {
    justify-content: flex-start;
  }

  .site-footer {
    display: grid;
  }

  .site-footer address {
    text-align: left;
  }
}

@media (max-width: 1180px) {
  .admin-stats,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .ops-main-grid,
  .case-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-panel {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .ops-main-grid,
  .case-overview-grid,
  .compact-detail-list,
  .drive-archive-metrics {
    grid-template-columns: 1fr;
  }

  .case-command-actions,
  .case-command-nav,
  .case-fast-actions,
  .case-primary-action {
    display: grid;
    grid-template-columns: 1fr;
  }

  .command-action,
  .case-command-nav a,
  .case-command-nav button,
  .case-primary-button {
    width: 100%;
    min-width: 0;
  }

  .case-timeline-panel.is-compact .case-timeline-track {
    grid-template-columns: repeat(6, minmax(88px, 1fr));
  }
}
