:root {
  --brand-primary: #145a4a;
  --brand-primary-rgb: 20 90 74;
  --brand-dark: #0e2f29;
  --brand-dark-rgb: 14 47 41;
  --brand-copper: #a65a3a;
  --brand-copper-rgb: 166 90 58;
  --brand-gold: var(--brand-copper);
  --brand-gold-rgb: var(--brand-copper-rgb);
  --brand-bg: #f7f5f2;
  --brand-bg-rgb: 247 245 242;
  --brand-surface: #ffffff;
  --brand-text: #1e1e1e;
  --brand-muted: #6b7280;
  --brand-border: #e5e7eb;
  --brand-wordmark-restro: var(--brand-dark);
  --brand-wordmark-hero: var(--brand-copper);
  --font-heading:
    Satoshi, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: var(--brand-bg);
  --bg-soft: #fbfaf7;
  --panel: var(--brand-surface);
  --panel-subtle: #faf8f4;
  --ink: var(--brand-text);
  --ink-soft: #37413e;
  --muted: var(--brand-muted);
  --muted-strong: #4b5563;
  --line: var(--brand-border);
  --line-strong: #d1d5db;
  --nav: var(--brand-dark);
  --nav-2: var(--brand-primary);
  --green: var(--brand-primary);
  --green-dark: var(--brand-dark);
  --green-soft: #e7f2ee;
  --gold: var(--brand-copper);
  --gold-soft: #f8e8de;
  --red: #a54638;
  --red-rgb: 165 70 56;
  --red-soft: #f9e7df;
  --amber: #a16207;
  --amber-rgb: 161 98 7;
  --amber-soft: #fff2d8;
  --blue: #316ba8;
  --blue-rgb: 49 107 168;
  --blue-soft: #eaf3fb;
  --teal: #237070;
  --teal-soft: #e7f4f3;
  --radius: 8px;
  --shadow-border:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px -1px rgba(0, 0, 0, 0.08),
    0 8px 24px rgb(var(--brand-dark-rgb) / 0.05);
  --shadow-border-hover:
    0 0 0 1px rgb(var(--brand-primary-rgb) / 0.2),
    0 1px 2px -1px rgba(0, 0, 0, 0.1),
    0 12px 30px rgb(var(--brand-dark-rgb) / 0.08);
  --shadow-panel:
    0 0 0 1px rgba(0, 0, 0, 0.07),
    0 18px 48px rgb(var(--brand-dark-rgb) / 0.08);
  color-scheme: light;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgb(var(--brand-copper-rgb) / 0.1), transparent 28rem),
    radial-gradient(circle at top left, rgb(var(--brand-primary-rgb) / 0.08), transparent 26rem),
    linear-gradient(135deg, #fffdfa 0%, var(--bg) 58%, #f2eee7 100%);
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

p,
span,
small,
li {
  text-wrap: pretty;
}

button,
input,
select,
textarea {
  font: inherit;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--brand-wordmark-restro);
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.brand-wordmark-accent {
  color: var(--brand-wordmark-hero);
}

.sidebar .brand-wordmark,
.auth-brand-panel .brand-wordmark {
  color: var(--panel);
}

.sidebar .brand-wordmark-accent,
.auth-brand-panel .brand-wordmark-accent {
  color: #d8724a;
}

input[type="checkbox"] {
  accent-color: var(--green);
}

button {
  cursor: pointer;
}

button,
a,
input,
select,
textarea {
  outline-color: rgb(var(--brand-primary-rgb) / 0.38);
  outline-offset: 3px;
}

.tabular,
.metric strong,
.report-card strong,
.nav-count,
.builder-count,
.shift-button strong,
.mini-row strong,
.progress-label,
.invite-health strong,
.location-health-card small {
  font-variant-numeric: tabular-nums;
}

.is-hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(var(--brand-dark-rgb) / 0.14), rgb(var(--brand-bg-rgb) / 0) 360px),
    var(--bg);
}

.marketing-shell {
  min-height: 100vh;
  overflow: hidden;
}

.marketing-nav {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(1160px, calc(100% - 32px));
  min-height: 58px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 18px 48px rgb(var(--brand-dark-rgb) / 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.marketing-logo,
.marketing-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.marketing-logo {
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.marketing-logo img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  box-shadow: 0 10px 24px rgb(var(--brand-dark-rgb) / 0.14);
}

.marketing-logo > span,
.marketing-logo small {
  display: grid;
  gap: 1px;
}

.marketing-logo strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
}

.marketing-logo small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.marketing-links {
  gap: 4px;
}

.marketing-links a {
  min-height: 40px;
  padding: 11px 12px;
  border-radius: var(--radius);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition-property: background-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.marketing-links a:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.marketing-links a:active {
  scale: 0.96;
}

.landing-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 128px max(24px, calc((100vw - 1160px) / 2)) 72px;
  background:
    linear-gradient(90deg, rgba(247, 245, 242, 0.98) 0%, rgba(247, 245, 242, 0.92) 42%, rgb(var(--brand-dark-rgb) / 0.16) 100%),
    linear-gradient(135deg, var(--bg-soft) 0%, var(--green-soft) 54%, var(--nav) 100%);
}

.landing-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(244, 248, 243, 0), var(--bg));
  content: "";
}

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

.hero-copy h1 {
  margin: 0;
  font-size: clamp(58px, 11vw, 132px);
  line-height: 0.86;
}

.hero-title .brand-wordmark {
  font-size: inherit;
}

.brand-wordmark-nav,
.brand-wordmark-card {
  font-size: inherit;
}

.brand-wordmark-auth {
  font-size: 28px;
}

.hero-kicker {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 750;
  line-height: 1.35;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.marketing-cta {
  text-decoration: none;
}

.hero-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 540px;
  margin-top: 34px;
}

.hero-proof-row span {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  min-height: 82px;
  align-content: center;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 12px 28px rgb(var(--brand-dark-rgb) / 0.08);
}

.hero-proof-row img {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.hero-proof-row strong {
  grid-column: 2;
  color: var(--green-dark);
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-proof-row small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.hero-media {
  position: absolute;
  z-index: 1;
  right: max(-210px, calc((100vw - 1160px) / 2 - 250px));
  bottom: 76px;
  width: min(780px, 56vw);
  margin: 0;
  transform: rotate(-2deg);
}

.hero-media img {
  display: block;
  width: 100%;
  border-radius: 26px;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  box-shadow:
    0 42px 120px rgb(var(--brand-dark-rgb) / 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.36);
}

.landing-band,
.problem-section,
.system-section,
.brand-section,
.proof-section,
.setup-section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.landing-band {
  padding: 84px 0 44px;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.proof-copy h2,
.system-copy h2,
.brand-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 0.98;
}

.section-heading p,
.proof-copy p,
.system-copy p,
.brand-copy p {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.suite-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 264px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-border);
}

.problem-section {
  padding: 74px 0 26px;
}

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

.problem-card {
  display: grid;
  gap: 14px;
  min-height: 230px;
  align-content: start;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-border);
  transition-property: box-shadow, translate;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.problem-card:hover {
  box-shadow: var(--shadow-border-hover);
  translate: 0 -2px;
}

.problem-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  box-shadow: 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.12);
}

.problem-icon img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
}

.problem-card h3 {
  margin: 0;
  font-size: 23px;
}

.problem-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.52;
}

.system-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 48px 0 34px;
}

.system-copy {
  display: grid;
  align-content: center;
  padding: 30px;
  border-radius: 18px;
  background: var(--nav);
  color: var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 62px rgb(var(--brand-dark-rgb) / 0.18);
}

.system-copy h2 {
  color: var(--panel);
}

.auth-brand-panel .eyebrow,
.system-copy .eyebrow {
  color: var(--gold-soft);
}

.system-copy p {
  color: #d7e3df;
}

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

.system-visual span {
  display: grid;
  gap: 8px;
  min-height: 172px;
  align-content: end;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.96)),
    var(--panel);
  box-shadow: var(--shadow-border);
}

.system-step-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: var(--radius);
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.system-visual strong {
  color: var(--green-dark);
  font-size: 28px;
}

.system-visual small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.42;
}

.brand-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 32px 0 54px;
}

.brand-copy {
  max-width: 560px;
}

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

.brand-preview-grid article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 4px 16px;
  min-height: 110px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-border);
}

.brand-preview-grid article > span {
  grid-row: 1 / span 2;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.brand-preview-grid strong {
  align-self: end;
  font-size: 24px;
}

.brand-preview-grid small {
  align-self: start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.brand-preview-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  background: var(--nav);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 30px rgb(var(--brand-dark-rgb) / 0.16);
}

.brand-preview-icon img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}

.setup-section {
  padding: 18px 0 60px;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.setup-steps article {
  display: grid;
  gap: 10px;
  min-height: 188px;
  align-content: start;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-border);
}

.setup-steps span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.setup-steps span img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.setup-steps strong {
  font-size: 18px;
}

.setup-steps small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.42;
}

.suite-card.active {
  background: var(--nav);
  color: var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 52px rgb(var(--brand-dark-rgb) / 0.18);
}

.suite-card h3 {
  margin: 0;
  font-size: 21px;
}

.suite-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.48;
}

.suite-card.active p {
  color: #d7e3df;
}

.suite-card strong {
  align-self: end;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.suite-card.active strong {
  color: var(--gold-soft);
}

.suite-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.12);
}

.suite-icon img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.suite-card.active .suite-icon {
  background: var(--green);
  color: var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.16);
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: 58px 0 80px;
}

.proof-visual {
  position: relative;
  min-height: 520px;
}

.phone-shot {
  position: absolute;
  left: 0;
  top: 18px;
  display: grid;
  width: min(320px, 78vw);
  min-height: 520px;
  gap: 12px;
  align-content: start;
  padding: 28px 18px;
  border-radius: 34px;
  background: var(--bg-soft);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 34px 80px rgb(var(--brand-dark-rgb) / 0.18);
}

.phone-bar {
  justify-self: center;
  width: 88px;
  height: 6px;
  border-radius: 999px;
  background: #d8cfc2;
}

.phone-shot strong {
  margin: 14px 0 6px;
  font-size: 25px;
}

.phone-task {
  min-height: 58px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-weight: 900;
  box-shadow: var(--shadow-border);
}

.phone-task.done {
  background: var(--green-soft);
  color: var(--green-dark);
}

.phone-task.warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.phone-button {
  align-self: end;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--panel);
  font-weight: 950;
  box-shadow: 0 18px 34px rgb(var(--brand-primary-rgb) / 0.28);
}

.ops-ticket {
  position: absolute;
  right: 0;
  bottom: 44px;
  display: grid;
  width: min(330px, 76vw);
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--nav);
  color: var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 62px rgb(var(--brand-dark-rgb) / 0.2);
}

.ops-ticket span {
  color: #b7c7c2;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ops-ticket strong {
  font-size: 25px;
}

.ops-ticket small {
  color: #d7e3df;
  font-weight: 750;
  line-height: 1.45;
}

.proof-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.proof-list span {
  min-height: 48px;
  padding: 13px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink-soft);
  font-weight: 850;
  box-shadow: var(--shadow-border);
}

.auth-shell {
  min-height: 100vh;
  padding: 18px max(16px, calc((100vw - 1160px) / 2)) 40px;
  background:
    linear-gradient(180deg, rgb(var(--brand-dark-rgb) / 0.18), rgba(245, 242, 234, 0) 34%),
    linear-gradient(135deg, var(--bg-soft) 0%, #f1ede6 58%, #efe4d6 100%);
}

.auth-nav {
  display: flex;
  min-height: 58px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 18px 48px rgb(var(--brand-dark-rgb) / 0.12);
  backdrop-filter: blur(18px);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.76fr);
  gap: 20px;
  align-items: start;
  min-height: calc(100vh - 116px);
  padding-top: 28px;
}

.auth-brand-panel,
.auth-card {
  border-radius: 20px;
  box-shadow: var(--shadow-panel);
}

.auth-brand-panel {
  position: relative;
  display: grid;
  align-content: end;
  gap: 18px;
  overflow: hidden;
  min-height: 620px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgb(var(--brand-dark-rgb) / 0.98), rgb(var(--brand-primary-rgb) / 0.94) 52%, rgb(var(--brand-primary-rgb) / 0.9)),
    var(--nav);
  color: var(--panel);
}

.auth-brand-panel::before {
  position: absolute;
  inset: 22px;
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(180deg, transparent, #000 36%, #000);
}

.auth-brand-panel > * {
  position: relative;
  z-index: 1;
}

.auth-panel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-panel-brand img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  outline: 1px solid rgba(255, 255, 255, 0.16);
  outline-offset: -1px;
  box-shadow: 0 18px 34px rgb(0 0 0 / 0.2);
}

.auth-brand-panel h1 {
  max-width: 720px;
  margin: 0;
  color: var(--panel);
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 0.94;
}

.auth-brand-panel p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: #e8f1ee;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 760;
  line-height: 1.42;
}

.auth-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.auth-signal-grid span {
  display: grid;
  gap: 4px;
  min-height: 84px;
  align-content: center;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.auth-signal-grid strong {
  color: var(--panel);
  font-size: 18px;
}

.auth-signal-grid small {
  color: #b8cbc5;
  font-size: 12px;
  font-weight: 800;
}

.auth-card {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
}

.auth-card h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
}

.auth-card p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.5;
}

.professional-login-form {
  display: grid;
  gap: 13px;
}

.professional-login-form label {
  display: grid;
  gap: 7px;
}

.professional-login-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.professional-login-form input {
  height: 46px;
  padding-inline: 13px;
  background: var(--panel-subtle);
}

.professional-login-form .button {
  min-height: 46px;
  margin-top: 2px;
}

.auth-link-button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--green-dark);
  font-weight: 900;
  text-align: center;
  transition-property: background-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.auth-link-button:hover {
  background: var(--green-soft);
  color: var(--nav);
}

.auth-link-button:active {
  scale: 0.96;
}

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

.auth-note {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-dark);
  box-shadow: 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.12);
}

.auth-note strong {
  font-size: 14px;
}

.auth-note span {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.demo-access {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.compact-profiles {
  grid-template-columns: 1fr;
  gap: 8px;
}

.compact-profiles .profile-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 12px;
  min-height: 86px;
  align-items: center;
  padding: 13px;
}

.compact-profiles .profile-avatar {
  grid-row: 1 / span 3;
  margin-bottom: 0;
}

.compact-profiles .profile-button strong,
.compact-profiles .profile-button span,
.compact-profiles .profile-button small {
  min-width: 0;
}

.profile-button,
.metric,
.overview-card,
.drill-row,
.focus-task-row,
.board,
.task-card,
.template-card,
.report-card,
.detail-card,
.user-card,
.location-button,
.shift-button,
.nav-button,
.mini-row,
.alert-item,
.pending-invites,
.invite-health article,
.admin-row,
.section-tabs,
.directory-panel,
.report-toolbar,
.report-trend-card,
.detail-empty {
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-border);
}

.select-wrap,
.search-wrap,
.form-grid label,
.note-form label,
.invite-grid label,
.admin-wide-field,
.password-reset-form label {
  display: grid;
  gap: 7px;
}

.select-wrap span,
.search-wrap span,
.form-grid label span,
.note-form label span,
.invite-grid label span,
.admin-wide-field span,
.password-reset-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.login-message,
.system-message {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  box-shadow:
    0 0 0 1px rgba(49, 107, 168, 0.16),
    0 12px 28px rgba(49, 107, 168, 0.12);
}

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

.profile-button,
.task-card,
.template-card,
.quick-action,
.drill-row,
.focus-task-row,
.section-tab {
  transition-property: box-shadow, background-color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.profile-button {
  min-height: 150px;
  padding: 16px;
  color: var(--ink);
  text-align: left;
}

.profile-button:hover,
.location-button:hover,
.shift-button:hover,
.task-card:hover,
.template-card:hover,
.metric:hover,
.report-card:hover,
.quick-action:hover,
.drill-row:hover,
.focus-task-row:hover,
.button:hover,
.icon-button:hover,
.nav-button:hover {
  box-shadow: var(--shadow-border-hover);
}

.profile-button:active,
.task-card:active,
.template-card:active,
.button:active,
.icon-button:active,
.nav-button:active,
.quick-action:active,
.drill-row:active,
.focus-task-row:active,
.section-tab:active {
  scale: 0.96;
}

.profile-avatar,
.brand-mark,
.user-avatar,
.location-code {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  font-weight: 900;
}

.profile-avatar,
.user-avatar {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.profile-button strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.profile-button span,
.profile-button small {
  display: block;
  color: var(--muted);
}

.app-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr) 372px;
  min-height: 100vh;
  transition-property: grid-template-columns;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 94px minmax(0, 1fr) 372px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-height: 100vh;
  padding: 22px;
  overflow-y: auto;
  background: var(--nav);
  color: var(--panel);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-copy {
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background: var(--green);
  color: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}

.brand h1,
.topbar h2,
.board h3,
.overview-head h3,
.task-dialog h3,
.detail-title {
  margin: 0;
  line-height: 1.08;
}

.brand h1 {
  font-size: 21px;
}

.sidebar-toggle {
  flex: 0 0 auto;
  margin-left: auto;
  color: #f2faf7;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sidebar-toggle span,
.sidebar-toggle span::before,
.sidebar-toggle span::after {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition-property: transform, opacity;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.sidebar-toggle span {
  position: relative;
}

.sidebar-toggle span::before,
.sidebar-toggle span::after {
  position: absolute;
  left: 0;
}

.sidebar-toggle span::before {
  transform: translateY(-5px);
}

.sidebar-toggle span::after {
  transform: translateY(5px);
}

.sidebar-collapsed .sidebar {
  gap: 14px;
  padding-inline: 14px;
}

.sidebar-collapsed .brand {
  justify-content: center;
  flex-wrap: wrap;
}

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .user-card,
.sidebar-collapsed .location-section,
.sidebar-collapsed .shift-section,
.sidebar-collapsed .date-section,
.sidebar-collapsed .today-section,
.sidebar-collapsed .alerts-section,
.sidebar-collapsed .sidebar-actions {
  display: none;
}

.sidebar-collapsed .sidebar-toggle {
  margin: 0;
}

.sidebar-collapsed .sidebar-toggle span {
  transform: rotate(180deg);
}

.eyebrow,
.section-label,
.field-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar .eyebrow,
.sidebar .section-label {
  color: #b7c7c2;
}

.user-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--panel);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.user-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.user-avatar {
  margin: 0;
  background: #e4f4ed;
}

.user-line strong,
.location-meta strong,
.task-title,
.detail-title {
  overflow-wrap: anywhere;
}

.user-line small,
.storage-path {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.sidebar .user-line small,
.sidebar .storage-path {
  color: #d7e3df;
}

.main-nav,
.sidebar-section,
.location-list,
.shift-tabs,
.mini-stack,
.alert-list {
  display: grid;
  gap: 8px;
}

.nav-button,
.location-button,
.shift-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  gap: 10px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
}

.nav-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  justify-content: stretch;
  background: rgba(255, 255, 255, 0.06);
  color: #edf6f3;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.nav-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}

.nav-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.nav-copy strong {
  color: inherit;
  font-size: 14px;
  font-weight: 900;
}

.nav-copy small {
  color: #c7d7d2;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-count {
  display: inline-grid;
  min-width: 34px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--panel);
  font-size: 12px;
  font-weight: 900;
}

.nav-button.active {
  background: linear-gradient(135deg, var(--brand-copper), #c1643d);
  color: var(--panel);
  box-shadow:
    0 0 0 1px rgb(var(--brand-copper-rgb) / 0.36),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

.nav-button.active .nav-copy small {
  color: #f8e8de;
}

.nav-button.active .nav-count {
  background: rgba(255, 255, 255, 0.18);
  color: var(--panel);
}

.nav-button.active .nav-icon {
  background: rgba(255, 255, 255, 0.14);
}

.nav-button.active .nav-icon img {
  outline-color: rgba(0, 0, 0, 0.1);
}

.nav-button.locked:not(.active) {
  color: #d7e3df;
}

.nav-button.locked:not(.active) .nav-icon {
  background: rgba(255, 255, 255, 0.05);
  opacity: 0.72;
}

.nav-count.locked {
  min-width: 48px;
  background: rgba(255, 242, 216, 0.14);
  color: var(--gold-soft);
}

.sidebar-collapsed .main-nav {
  gap: 10px;
}

.sidebar-collapsed .nav-button {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 62px;
  padding: 12px;
}

.sidebar-collapsed .nav-copy,
.sidebar-collapsed .nav-count {
  display: none;
}

.sidebar-collapsed .nav-icon {
  width: 38px;
  height: 38px;
}

.location-button,
.shift-button {
  background: rgba(255, 255, 255, 0.06);
  color: #f0f7f4;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.location-button.active,
.shift-button.active {
  background: rgb(var(--brand-primary-rgb) / 0.18);
  box-shadow:
    0 0 0 1px rgb(var(--brand-primary-rgb) / 0.42),
    inset 3px 0 0 var(--gold);
}

.location-code {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
}

.location-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.location-meta small {
  color: #c7d7d2;
}

.shift-button {
  justify-content: space-between;
}

.date-field {
  height: 40px;
  padding: 0 10px;
  color: var(--panel);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.sidebar .mini-row {
  background: rgba(255, 255, 255, 0.06);
  color: #c7d7d2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.mini-row span small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.report-completion-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.report-completion-row .mini-meter {
  grid-column: 1 / -1;
  height: 6px;
  color: var(--green);
}

.sidebar .mini-row strong {
  color: var(--panel);
}

.alert-item {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 10px;
  color: var(--muted);
  text-align: left;
  font-size: 12px;
}

.sidebar .alert-item {
  background: rgba(255, 255, 255, 0.06);
  color: #c7d7d2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.sidebar .alert-item strong {
  color: var(--panel);
}

.alert-item.overdue {
  background: rgba(249, 231, 223, 0.96);
  color: var(--red);
}

.sidebar .alert-item.overdue {
  background: rgba(165, 70, 56, 0.22);
  box-shadow: 0 0 0 1px rgba(249, 231, 223, 0.16);
}

.alert-item.review,
.alert-item.due-soon {
  background: rgba(255, 242, 216, 0.96);
  color: var(--amber);
}

.sidebar .alert-item.review,
.sidebar .alert-item.due-soon {
  background: rgba(240, 195, 109, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 242, 216, 0.16);
}

.sidebar-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.workspace {
  min-width: 0;
  max-height: 100vh;
  padding: 26px;
  overflow-y: auto;
}

.topbar,
.board-header,
.dialog-head,
.dialog-actions,
.overview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.topbar {
  margin-bottom: 18px;
}

.system-message {
  margin: -4px 0 16px;
}

.topbar h2 {
  font-size: clamp(27px, 3vw, 42px);
}

.page-subtitle {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.topbar-actions,
.board-tools,
.task-actions,
.task-card-actions,
.proof-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button,
.icon-button,
.quick-action {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-border);
  transition-property: scale, background-color, box-shadow, color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 900;
  text-decoration: none;
}

.button-icon,
.metric-icon,
.report-icon,
.quick-action-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.button-icon {
  width: 17px;
  height: 17px;
}

.button-icon svg,
.metric-icon svg,
.report-icon svg,
.quick-action-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.primary {
  background: var(--green);
  color: var(--panel);
  box-shadow:
    0 0 0 1px rgb(var(--brand-primary-rgb) / 0.18),
    0 10px 22px rgb(var(--brand-primary-rgb) / 0.22);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.ghost {
  color: var(--green-dark);
}

.sidebar .button.ghost,
.sidebar .button.plain {
  background: rgba(255, 255, 255, 0.08);
  color: #edf6f3;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.button.plain {
  color: var(--muted);
}

.button.danger {
  color: var(--red);
  background: var(--red-soft);
  box-shadow: 0 0 0 1px rgba(165, 70, 56, 0.16);
}

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

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  padding: 0;
  font-size: 12px;
  font-weight: 900;
}

.metric-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric,
.report-card {
  min-height: 102px;
  padding: 16px;
}

.metric-head,
.report-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-icon,
.report-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  color: currentColor;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.metric strong,
.report-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.metric span,
.report-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-danger {
  background: var(--red-soft);
  color: var(--red);
}

.metric-warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.metric-success {
  background: var(--green-soft);
  color: var(--green-dark);
}

.metric-calm {
  background: var(--panel);
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.overview-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  align-content: start;
}

.overview-head h3 {
  font-size: 18px;
}

.dashboard-menu-card,
.focus-card,
.activity-overview-card,
.quick-actions-card,
.suite-overview-card {
  align-content: start;
}

.command-card {
  background:
    linear-gradient(145deg, rgb(var(--brand-primary-rgb) / 0.22), rgb(var(--brand-gold-rgb) / 0.08)),
    var(--nav);
  color: var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 44px rgb(var(--brand-dark-rgb) / 0.2);
}

.command-card .eyebrow,
.command-card .drill-row small,
.command-card .drill-row > span:last-child {
  color: #d7e3df;
}

.command-card .pill.scheduled {
  background: rgba(232, 246, 237, 0.14);
  color: var(--green-soft);
  box-shadow: 0 0 0 1px rgba(232, 246, 237, 0.16);
}

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

.briefing-strip article {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.briefing-strip span {
  color: #d7e3df;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.briefing-strip strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.priority-panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-soft) 100%);
}

.location-panel {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--panel) 100%);
  box-shadow:
    inset 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.08),
    var(--shadow-border);
}

.activity-panel {
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--panel) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(155, 99, 29, 0.1),
    var(--shadow-border);
}

.action-panel {
  background: linear-gradient(180deg, #f5f9ff 0%, var(--panel) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(49, 107, 168, 0.1),
    var(--shadow-border);
}

.dashboard-menu-card {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.focus-card {
  grid-column: 2;
  grid-row: 1;
}

.quick-actions-card {
  grid-column: 2;
  grid-row: 2;
}

.location-health-panel {
  grid-column: 1 / -1;
  grid-row: 4;
}

.activity-overview-card {
  grid-column: 1 / -1;
}

.suite-overview-card {
  grid-column: 1 / -1;
  grid-row: 3;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-soft) 100%);
  box-shadow:
    inset 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.09),
    var(--shadow-border);
}

.location-health-grid,
.activity-card-list,
.quick-action-grid,
.platform-module-grid,
.drill-list,
.focus-task-list {
  display: grid;
  gap: 10px;
}

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

.platform-module-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.drill-row,
.focus-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  gap: 12px;
  padding: 12px;
  border: 0;
  color: var(--ink);
  text-align: left;
}

.drill-row span:first-child,
.focus-task-row span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.drill-row strong,
.focus-task-row strong {
  overflow-wrap: anywhere;
}

.drill-row small,
.focus-task-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.drill-row > span:last-child {
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.drill-row.danger {
  background: #fff8f5;
  box-shadow:
    inset 3px 0 0 var(--red),
    var(--shadow-border);
}

.drill-row.warning {
  background: #fffdf7;
  box-shadow:
    inset 3px 0 0 var(--amber),
    var(--shadow-border);
}

.drill-row.scheduled,
.drill-row.calm {
  background: var(--panel-subtle);
}

.command-card .drill-row {
  color: var(--panel);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.command-card .drill-row.danger {
  background: rgba(165, 70, 56, 0.22);
  box-shadow:
    inset 3px 0 0 #efaa99,
    0 0 0 1px rgba(249, 231, 223, 0.12);
}

.command-card .drill-row.warning {
  background: rgba(155, 99, 29, 0.22);
  box-shadow:
    inset 3px 0 0 var(--gold),
    0 0 0 1px rgba(255, 242, 216, 0.14);
}

.command-card .drill-row:hover {
  background: rgba(255, 255, 255, 0.14);
}

.location-health-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.location-health-card > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
}

.location-health-card small {
  color: var(--muted);
  font-weight: 700;
}

.health-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e1d6;
}

.health-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.location-health-card.warning .health-progress span {
  background: var(--amber);
}

.location-health-card.danger .health-progress span {
  background: var(--red);
}

.activity-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.activity-card strong {
  display: block;
  font-size: 13px;
}

.activity-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.activity-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--blue);
}

.activity-dot.success {
  background: var(--green);
}

.activity-dot.warning {
  background: var(--amber);
}

.activity-dot.danger {
  background: var(--red);
}

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

.quick-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 72px;
  padding: 12px;
  text-align: left;
  background: var(--panel-subtle);
}

.quick-action-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.08);
}

.quick-action strong,
.quick-action small {
  display: block;
}

.quick-action small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.platform-module-card,
.module-access-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-border);
  transition-property: scale, box-shadow, background-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.platform-module-card:hover {
  box-shadow: var(--shadow-border-hover);
}

.platform-module-card:active {
  scale: 0.985;
}

.platform-module-card.locked,
.module-access-row.locked {
  background: #fbf8f2;
}

.platform-module-card.warning,
.module-access-row.warning {
  background: #fffdf7;
}

.platform-module-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.1);
}

.platform-module-icon.large {
  width: 56px;
  height: 56px;
}

.platform-module-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.platform-module-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.platform-module-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-module-copy strong {
  font-size: 15px;
  font-weight: 950;
}

.platform-module-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.module-badge {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.module-badge.warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.module-badge.locked {
  background: #eee5d8;
  color: var(--muted-strong);
}

.module-access-board,
.billing-board {
  display: grid;
  gap: 16px;
}

.module-access-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 150px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgb(var(--brand-primary-rgb) / 0.16), rgb(var(--brand-gold-rgb) / 0.08)),
    var(--panel);
  box-shadow: var(--shadow-border);
}

.module-access-hero.locked {
  background: linear-gradient(145deg, var(--gold-soft), var(--panel));
}

.module-access-hero.warning {
  background: linear-gradient(145deg, var(--gold-soft), var(--panel));
}

.module-access-hero h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
}

.module-access-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 740;
  line-height: 1.5;
}

.module-access-grid,
.billing-summary,
.plan-grid {
  display: grid;
  gap: 12px;
}

.module-access-grid,
.billing-summary {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.module-access-card,
.billing-summary article,
.plan-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-border);
}

.module-access-card strong,
.billing-summary strong {
  font-size: 20px;
  font-weight: 950;
}

.module-access-card span,
.billing-summary span,
.plan-card p,
.plan-meta span,
.module-access-row small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.42;
}

.module-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.plan-card {
  align-content: space-between;
  min-height: 248px;
}

.plan-card.active {
  background: linear-gradient(180deg, var(--panel) 0%, var(--gold-soft) 100%);
  box-shadow:
    inset 4px 0 0 var(--gold),
    var(--shadow-border-hover);
}

.plan-card h3 {
  margin: 0;
  font-size: 24px;
}

.plan-card p {
  margin: 8px 0 0;
}

.plan-meta {
  display: grid;
  gap: 7px;
}

.module-access-list {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.module-access-rows {
  display: grid;
  gap: 10px;
}

.report-meter,
.mini-meter {
  overflow: hidden;
  border-radius: 999px;
  background: #e8e1d6;
}

.report-meter {
  height: 7px;
  margin: 12px 0 8px;
}

.report-meter span,
.mini-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  color: inherit;
  background: currentColor;
}

.report-success {
  color: var(--green-dark);
}

.report-warning {
  color: var(--amber);
}

.report-danger {
  color: var(--red);
}

.report-calm {
  color: var(--muted-strong);
}

.report-grid {
  padding: 14px;
  margin-bottom: 0;
}

.report-toolbar,
.report-trend-card {
  grid-column: 1 / -1;
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--panel-subtle);
}

.report-toolbar strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: #eee9de;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.segmented-control button {
  min-height: 34px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  padding: 0 11px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 900;
  transition-property: scale, background-color, box-shadow, color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.segmented-control button:hover {
  background: rgba(255, 255, 255, 0.7);
}

.segmented-control button:active {
  scale: 0.96;
}

.segmented-control button.active {
  background: var(--panel);
  color: var(--green-dark);
  box-shadow:
    0 0 0 1px rgb(var(--brand-primary-rgb) / 0.14),
    0 8px 18px rgb(var(--brand-dark-rgb) / 0.06);
}

.report-trend-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-subtle) 100%);
}

.trend-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18px, 1fr);
  align-items: end;
  min-height: 168px;
  gap: 8px;
  padding: 14px 10px 8px;
  overflow-x: auto;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(var(--brand-dark-rgb) / 0.05) 1px, transparent 1px) 0 0 / 100% 25%,
    var(--panel-subtle);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.trend-day {
  position: relative;
  display: grid;
  grid-template-rows: 120px auto;
  justify-items: center;
  gap: 7px;
  min-width: 18px;
}

.trend-track {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 28px;
  align-items: end;
  justify-content: center;
  border-radius: 999px;
}

.trend-total,
.trend-complete {
  position: absolute;
  bottom: 0;
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: 999px 999px 4px 4px;
}

.trend-total {
  background: #d9e3dd;
}

.trend-complete {
  width: 58%;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: 0 6px 12px rgb(var(--brand-primary-rgb) / 0.22);
}

.trend-day small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.trend-day em {
  position: absolute;
  top: -4px;
  right: 0;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.legend-dot.total {
  background: #d9e3dd;
}

.legend-dot.complete {
  background: var(--green);
}

.legend-dot.overdue {
  background: var(--red-soft);
  box-shadow: inset 0 0 0 2px var(--red);
}

.board {
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.board-header {
  padding: 18px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-soft) 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.07);
}

.board-tools {
  flex-wrap: wrap;
}

.compact-tools {
  justify-content: flex-end;
}

.help-chip {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

select,
input,
textarea {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition-property: box-shadow, background-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

select:focus,
input:focus,
textarea:focus {
  box-shadow:
    0 0 0 1px rgb(var(--brand-primary-rgb) / 0.6),
    0 0 0 4px rgb(var(--brand-primary-rgb) / 0.12);
}

select,
input {
  height: 40px;
  padding: 0 10px;
}

select[multiple] {
  height: auto;
  min-height: 112px;
  padding: 8px;
}

textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}

.task-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.list-library-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 14px 0;
}

.library-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-soft) 100%);
  box-shadow: var(--shadow-border);
}

.library-stat-icon,
.step-mini-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--green-dark);
}

.library-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--green-soft);
}

.library-stat-icon svg,
.step-mini-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.library-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.library-stat small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.task-card,
.template-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  text-align: left;
}

.task-card.active,
.template-card.active {
  box-shadow:
    inset 4px 0 0 var(--green),
    var(--shadow-border-hover);
}

.rich-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.list-card {
  gap: 12px;
}

.list-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.list-item-count {
  display: inline-grid;
  min-width: 72px;
  min-height: 58px;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.1);
}

.list-item-count strong {
  font-size: 25px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.list-item-count span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.list-location-strip,
.location-choice-grid,
.list-creation-map,
.list-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-usage-label,
.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.location-usage-label {
  background: var(--teal-soft);
  color: var(--teal);
}

.location-pill {
  background: var(--panel);
}

.location-pill strong {
  color: var(--green-dark);
  font-size: 11px;
  letter-spacing: 0;
}

.location-pill.unscheduled {
  background: var(--amber-soft);
  color: var(--amber);
}

.location-pill.muted {
  color: var(--muted);
}

.row-type-icon,
.team-avatar-small {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.08);
}

.schedule-row .row-type-icon {
  background: var(--teal-soft);
  color: var(--teal);
}

.team-avatar-small {
  background: var(--nav);
  color: var(--panel);
}

.row-type-svg,
.row-stat-icon {
  display: inline-grid;
  place-items: center;
}

.row-type-svg {
  width: 20px;
  height: 20px;
}

.row-stat-icon {
  width: 14px;
  height: 14px;
  color: currentColor;
}

.row-type-svg svg,
.row-stat-icon svg,
.step-type-chip svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.row-main {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.row-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.row-stat-strip,
.step-type-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.list-card-dropdown {
  display: grid;
  gap: 8px;
}

.list-card-dropdown summary,
.detail-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.list-card-dropdown summary::-webkit-details-marker,
.detail-dropdown summary::-webkit-details-marker {
  display: none;
}

.list-card-dropdown summary {
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  color: var(--muted-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  transition-property: background-color, box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.list-card-dropdown summary:hover {
  background: var(--panel);
  box-shadow: var(--shadow-border-hover);
}

.list-card-dropdown summary:active {
  transform: scale(0.96);
}

.list-card-dropdown summary span,
.list-card-dropdown summary strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
}

.list-card-dropdown summary strong {
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}

.list-card-dropdown summary::after,
.detail-dropdown summary::after {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  opacity: 0.58;
  transform: rotate(45deg) translateY(-2px);
  transition-property: transform, opacity;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.list-card-dropdown[open] summary::after,
.detail-dropdown[open] summary::after {
  opacity: 0.88;
  transform: rotate(225deg) translateY(-2px);
}

.list-card-dropdown-body {
  padding-top: 2px;
}

.row-stat-strip > span,
.step-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.step-type-chip {
  background: var(--teal-soft);
  color: var(--teal);
}

.step-type-chip .checklist-type-svg {
  width: 14px;
  height: 14px;
}

.step-type-chip strong {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: currentColor;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.list-detail-card {
  gap: 14px;
}

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

.list-detail-stats span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.list-detail-stats strong {
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.list-detail-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-location-strip {
  padding-top: 2px;
}

.step-row-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.step-mini-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  background: var(--green-soft);
}

.task-card.status-overdue {
  background: #fffaf7;
  box-shadow:
    inset 4px 0 0 var(--red),
    var(--shadow-border);
}

.task-card.status-complete {
  background: #f8fffb;
}

.task-card.status-pending-review,
.task-card.status-needs-proof {
  background: #fffdf7;
}

.task-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.task-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
}

.task-meta,
.detail-meta,
.activity-row,
.note-row,
.template-meta,
.access-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eeeae0;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pill.complete::before,
.pill.active::before,
.pill.sent::before,
.pill.overdue::before,
.pill.failed::before,
.pill.rate-limited::before,
.pill.not-authorized::before,
.pill.rejected::before,
.pill.needs-proof::before,
.pill.pending-review::before,
.pill.open::before,
.pill.due-soon::before,
.pill.pending::before,
.pill.scheduled::before,
.priority::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0.72;
}

.pill.complete,
.pill.active,
.pill.sent {
  background: var(--green-soft);
  color: var(--green-dark);
}

.pill.overdue,
.pill.failed,
.pill.rate-limited,
.pill.not-authorized,
.pill.rejected {
  background: var(--red-soft);
  color: var(--red);
}

.pill.needs-proof,
.pill.pending-review {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill.open,
.pill.due-soon,
.pill.pending {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill.scheduled {
  background: var(--teal-soft);
  color: var(--teal);
}

.priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: start;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--panel);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.task-card-actions {
  flex-wrap: wrap;
  padding-top: 2px;
}

.task-card-actions .button,
.task-actions .button {
  min-height: 36px;
}

.priority.high {
  background: var(--amber-soft);
  color: var(--amber);
}

.priority.critical {
  background: var(--red-soft);
  color: var(--red);
}

.progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e1d6;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition-property: width;
  transition-duration: 200ms;
  transition-timing-function: ease-out;
}

.progress-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.checklist-preview,
.detail-checklist,
.detail-stack {
  display: grid;
  gap: 8px;
}

.preview-step,
.check-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.preview-step.done,
.check-step.done {
  color: var(--green-dark);
}

.step-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.done .step-box {
  background: var(--green);
  box-shadow: 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.24);
}

.step-box-icon .checklist-type-svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}

.done .step-box::after {
  position: absolute;
  width: 5px;
  height: 9px;
  border: solid var(--panel);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg) translate(-1px, -1px);
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.empty-state strong {
  color: var(--ink);
  font-size: 16px;
}

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

.task-empty-state .button {
  justify-self: center;
  margin-top: 4px;
}

.empty-state.compact {
  padding: 16px;
  text-align: left;
}

.detail-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  max-height: 100vh;
  padding: 22px;
  overflow-y: auto;
  background: var(--panel);
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.07);
}

.detail-drawer-header,
.mobile-detail-button {
  display: none;
}

.detail-drawer-header {
  position: sticky;
  z-index: 6;
  top: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
}

.detail-drawer-header span {
  display: grid;
  min-width: 0;
}

.detail-drawer-header small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-drawer-header strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-empty {
  display: grid;
  gap: 10px;
  padding: 24px;
  color: var(--muted);
  background: var(--panel-subtle);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.detail-card {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.detail-card-collapsible {
  gap: 0;
}

.detail-dropdown {
  display: grid;
  gap: 12px;
}

.detail-dropdown summary {
  padding: 4px 2px;
  color: var(--muted-strong);
}

.detail-dropdown summary > span:first-child {
  display: grid;
  gap: 4px;
}

.detail-dropdown summary strong {
  color: var(--ink);
  font-size: 16px;
}

.detail-dropdown summary > span:last-child {
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.detail-dropdown[open] .detail-checklist,
.detail-dropdown[open] .detail-stack {
  animation: dropdownReveal 180ms cubic-bezier(0.2, 0, 0, 1);
}

@keyframes dropdownReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--amber-soft);
  box-shadow: 0 0 0 1px rgba(155, 99, 29, 0.16);
}

.review-box.approved {
  background: var(--green-soft);
  box-shadow: 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.16);
}

.review-box.rejected {
  background: var(--red-soft);
  box-shadow: 0 0 0 1px rgba(165, 70, 56, 0.16);
}

.detail-title {
  margin-top: 8px;
  font-size: 24px;
}

.check-step {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  min-height: 44px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.typed-step {
  gap: 12px;
  background: var(--panel);
}

.typed-step.needs-input {
  box-shadow: 0 0 0 1px rgba(176, 104, 50, 0.22);
}

.step-type-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.step-type-mark .checklist-type-svg {
  width: 18px;
  height: 18px;
}

.check-step input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green);
}

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

.step-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.checkbox-response {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 800;
}

.response-button-row,
.rating-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.response-button,
.rating-button {
  min-height: 36px;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  background: var(--panel-subtle);
  box-shadow: var(--shadow-border);
  cursor: pointer;
}

.response-button {
  min-width: 74px;
  padding: 0 14px;
}

.response-button.active,
.rating-button.active {
  color: var(--panel);
  background: var(--green);
  box-shadow: 0 10px 22px rgb(var(--brand-primary-rgb) / 0.2);
}

.response-button.no.active {
  background: var(--red);
}

.response-button:disabled,
.rating-button:disabled,
.step-response-field:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.step-response-field {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  background: var(--panel-subtle);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

textarea.step-response-field {
  min-height: 82px;
  resize: vertical;
}

.measurement-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.measurement-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.rating-button {
  display: grid;
  width: 38px;
  min-width: 38px;
  place-items: center;
  padding: 0;
}

.rating-button .checklist-type-svg {
  width: 16px;
  height: 16px;
}

.instruction-response,
.photo-response-copy {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  color: var(--muted-strong);
  font-weight: 800;
}

.instruction-response .button {
  justify-self: start;
}

.requirement-hint,
.completion-guard {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.completion-guard {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--amber-soft);
  box-shadow: inset 0 0 0 1px rgba(176, 104, 50, 0.14);
}

.guard-icon svg {
  width: 16px;
  height: 16px;
}

.proof-actions {
  flex-wrap: wrap;
}

.file-button {
  position: relative;
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  padding: 0 10px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.file-button input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.file-button.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.photo-thumb {
  width: 72px;
  height: 54px;
  border-radius: var(--radius);
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.proof-retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.note-form {
  display: grid;
  gap: 10px;
}

.invite-panel {
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--panel-subtle) 100%);
}

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

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

.permission-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.permission-summary span {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-border);
}

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

.location-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: var(--panel);
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.location-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.section-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  padding: 8px;
  background: #edf2ee;
}

.section-tab {
  display: grid;
  min-height: 58px;
  gap: 4px;
  align-content: center;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted-strong);
  text-align: left;
}

.section-tab:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.1);
}

.section-tab.active {
  background: var(--panel);
  color: var(--green-dark);
  box-shadow:
    0 0 0 1px rgb(var(--brand-gold-rgb) / 0.26),
    0 10px 20px rgb(var(--brand-dark-rgb) / 0.06);
}

.section-tab span {
  font-size: 14px;
  font-weight: 900;
}

.section-tab small {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.75;
}

.directory-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
}

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

.pending-invites {
  display: grid;
  gap: 12px;
  padding: 14px;
}

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

.invite-health article {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.invite-health span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.invite-health strong {
  font-size: 24px;
}

.invite-health .needs-attention {
  background: var(--red-soft);
  color: var(--red);
}

.invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.invite-row span {
  display: grid;
  gap: 3px;
}

.invite-row small {
  color: var(--muted);
  font-weight: 800;
}

.invite-status-actions {
  justify-items: end;
}

.admin-panel {
  background: var(--panel);
}

.admin-create-form {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.admin-record-list {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--panel-subtle);
}

.admin-row span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-row strong,
.admin-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.auth-action-panel {
  margin-bottom: 16px;
}

.password-reset-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) minmax(160px, 220px) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--green-soft);
  box-shadow: 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.18);
}

.activity-list,
.note-list {
  display: grid;
  gap: 9px;
}

.note-row,
.activity-row {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.note-row small {
  color: var(--muted);
  font-weight: 800;
}

.task-dialog {
  width: min(980px, calc(100vw - 28px));
  height: min(920px, calc(100vh - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgb(var(--brand-dark-rgb) / 0.24);
}

.task-dialog::backdrop {
  background: rgb(var(--brand-dark-rgb) / 0.46);
}

.task-form {
  display: flex;
  height: 100%;
  max-height: calc(100vh - 28px);
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  background: var(--bg-soft);
}

.task-form.is-saving {
  cursor: wait;
}

.task-form .dialog-head {
  position: relative;
  z-index: 3;
  padding: 0 0 14px;
  background: var(--bg-soft);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.task-form .dialog-actions {
  position: relative;
  z-index: 3;
  padding: 14px 0 0;
  margin-top: 0;
  background:
    linear-gradient(180deg, rgba(248, 251, 247, 0), var(--bg-soft) 16px),
    var(--bg-soft);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 20px 2px 96px;
  overflow-y: auto;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.list-creation-map {
  flex: 0 0 auto;
  align-items: center;
  margin-top: 14px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-border);
}

.list-creation-map span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
}

.list-creation-map strong {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: var(--panel);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.form-section-title,
.list-location-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-border);
}

.form-section-title h4,
.list-location-head h4 {
  margin: 0;
  font-size: 16px;
}

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

.auto-schedule-toggle {
  display: inline-flex !important;
  align-items: center;
  width: auto;
  min-height: 40px;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.1);
}

.auto-schedule-toggle input,
.location-choice input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

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

.location-choice {
  display: grid !important;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.location-code-mini {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
}

.location-choice strong,
.location-choice small {
  display: block;
}

.location-choice small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.checklist-builder {
  display: block;
}

.builder-shell {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.07),
    0 14px 34px rgb(var(--brand-dark-rgb) / 0.07);
}

.builder-head,
.builder-list-head,
.builder-item-top,
.builder-item-actions,
.builder-toggles {
  display: flex;
  align-items: center;
}

.builder-head,
.builder-item-top {
  justify-content: space-between;
  gap: 14px;
}

.builder-head h4 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.builder-head p:not(.eyebrow) {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.builder-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 5px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.builder-count strong {
  font-size: 17px;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: start;
}

.type-picker,
.builder-item-list {
  display: grid;
  gap: 12px;
}

.type-picker {
  position: sticky;
  top: 0;
}

.item-type-group {
  display: grid;
  gap: 7px;
}

.item-type-group p,
.builder-list-head span {
  margin: 0;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.item-type-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 72px;
  gap: 9px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
  transition-property: scale, background-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.item-type-button:hover {
  background: var(--panel);
  box-shadow: var(--shadow-border-hover);
}

.item-type-button:active {
  scale: 0.96;
}

.item-type-icon,
.builder-type-icon {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.08);
  transition-property: scale, background-color, color;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.item-type-icon {
  width: 34px;
  height: 34px;
}

.item-type-button:hover .item-type-icon {
  background: var(--green);
  color: var(--panel);
  scale: 1.04;
}

.checklist-type-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.item-type-button strong,
.item-type-button small {
  display: block;
}

.item-type-button strong {
  font-size: 13px;
}

.item-type-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.builder-list-head {
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
}

.builder-list-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.builder-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-soft) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.07),
    0 8px 24px rgb(var(--brand-dark-rgb) / 0.05);
}

.builder-item.requires-photo {
  box-shadow:
    inset 4px 0 0 var(--blue),
    0 0 0 1px rgba(49, 107, 168, 0.13),
    0 8px 24px rgb(var(--brand-dark-rgb) / 0.05);
}

.builder-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
  padding-right: 10px;
  border-radius: 999px;
  background: var(--panel-subtle);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
}

.builder-type-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.builder-item-actions,
.builder-toggles {
  flex-wrap: wrap;
  gap: 8px;
}

.builder-action {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition-property: scale, background-color, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.builder-action:hover {
  color: var(--ink);
  box-shadow: var(--shadow-border-hover);
}

.builder-action:active {
  scale: 0.96;
}

.builder-action.danger {
  color: var(--red);
}

.builder-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.builder-prompt {
  display: grid;
  gap: 7px;
}

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

.builder-toggle,
.builder-static-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 8px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--panel-subtle);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
}

.builder-static-toggle {
  background: var(--green-soft);
  color: var(--green-dark);
}

.builder-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  box-shadow: none;
}

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

.day-option {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  gap: 6px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: var(--panel);
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.day-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.worker-mode .topbar-actions,
.worker-mode #generateButton,
.worker-mode #newTaskButton {
  display: none;
}

.worker-mode .board-header {
  background: var(--green-soft);
}

.worker-mode .task-card {
  min-height: 150px;
}

.worker-mode .detail-panel {
  box-shadow:
    inset 1px 0 0 rgb(var(--brand-primary-rgb) / 0.24),
    inset 4px 0 0 rgb(var(--brand-primary-rgb) / 0.12);
}

@media (max-width: 1340px) {
  .hero-media {
    right: -260px;
    width: min(720px, 58vw);
  }

  .app-shell {
    grid-template-columns: 258px minmax(0, 1fr);
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .detail-panel {
    grid-column: 1 / -1;
    max-height: none;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.07);
  }
}

@media (max-width: 980px) {
  .landing-hero {
    min-height: auto;
    padding-top: 116px;
    padding-bottom: 56px;
  }

  .hero-media {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 760px;
    margin-top: 38px;
    transform: none;
  }

  .suite-grid,
  .problem-grid,
  .proof-section,
  .setup-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-section,
  .brand-section,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .proof-section,
  .system-section,
  .brand-section {
    align-items: start;
  }

  .auth-layout {
    min-height: auto;
  }

  .auth-brand-panel {
    min-height: 520px;
  }

  .proof-visual {
    min-height: 470px;
  }

  .ops-ticket {
    right: 16px;
  }

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

  .dashboard-menu-card,
  .focus-card,
  .quick-actions-card,
  .suite-overview-card,
  .location-health-panel,
  .activity-overview-card {
    grid-column: auto;
    grid-row: auto;
  }

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

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

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

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

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

  .type-picker {
    position: static;
  }

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

@media (max-width: 760px) {
  .marketing-nav {
    position: absolute;
    top: 12px;
    width: calc(100% - 24px);
  }

  .marketing-links a:not(:last-child) {
    display: none;
  }

  .landing-hero {
    padding-inline: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 13vw, 52px);
    line-height: 0.92;
  }

  .hero-proof-row,
  .suite-grid,
  .problem-grid,
  .system-visual,
  .proof-section,
  .setup-steps {
    grid-template-columns: 1fr;
  }

  .landing-band,
  .problem-section,
  .system-section,
  .brand-section,
  .proof-section,
  .setup-section {
    width: calc(100% - 32px);
  }

  .landing-band {
    padding-top: 58px;
  }

  .proof-section {
    padding-top: 34px;
  }

  .problem-section {
    padding-top: 52px;
  }

  .system-section,
  .brand-section,
  .setup-section {
    padding-block: 34px;
  }

  .auth-shell {
    padding: 12px;
  }

  .auth-nav {
    border-radius: var(--radius);
  }

  .auth-layout {
    gap: 12px;
    padding-top: 12px;
  }

  .auth-card {
    order: -1;
    padding: 22px;
    border-radius: 14px;
  }

  .auth-brand-panel {
    min-height: auto;
    padding: 24px;
    border-radius: 14px;
  }

  .auth-signal-grid {
    grid-template-columns: 1fr;
  }

  .brand-preview-grid article {
    grid-template-columns: 1fr;
  }

  .brand-preview-grid article > span {
    grid-row: auto;
  }

  .proof-visual {
    min-height: 610px;
  }

  .ops-ticket {
    right: 0;
    bottom: 8px;
  }

  .app-shell {
    display: block;
  }

  .sidebar,
  .workspace {
    max-height: none;
    padding: 16px;
  }

  .detail-panel {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(82vh, 760px);
    padding: 16px;
    overflow-y: auto;
    border-radius: 18px 18px 0 0;
    box-shadow:
      0 -1px 0 rgba(0, 0, 0, 0.07),
      0 -22px 60px rgb(var(--brand-dark-rgb) / 0.24);
    transform: translateY(calc(100% + 24px));
    transition-property: transform;
    transition-duration: 220ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  }

  .detail-panel.is-open {
    transform: translateY(0);
  }

  .detail-drawer-header {
    display: flex;
  }

  .mobile-detail-button {
    position: fixed;
    z-index: 45;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--nav);
    color: var(--panel);
    font-weight: 900;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12),
      0 16px 40px rgb(var(--brand-dark-rgb) / 0.28);
    transition-property: transform, opacity, background-color;
    transition-duration: 180ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  }

  .mobile-detail-button .button-icon {
    width: 18px;
    height: 18px;
  }

  .detail-drawer-open .mobile-detail-button {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }

  .workspace {
    padding-bottom: 80px;
  }

  .sidebar {
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .app-shell.sidebar-collapsed .sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    overflow-x: auto;
  }

  .app-shell.sidebar-collapsed .brand {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }

  .app-shell.sidebar-collapsed .main-nav {
    display: grid;
    flex: 1 0 auto;
    grid-auto-flow: column;
    grid-auto-columns: 58px;
    min-width: 0;
    overflow-x: auto;
  }

  .app-shell.sidebar-collapsed .nav-button {
    min-width: 58px;
    min-height: 54px;
    padding: 8px;
  }

  .brand h1 {
    font-size: 18px;
  }

  .main-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(158px, 1fr);
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .nav-button {
    min-width: 158px;
    scroll-snap-align: start;
  }

  .location-list,
  .shift-tabs {
    grid-auto-flow: column;
    grid-auto-columns: minmax(158px, 1fr);
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .today-section,
  .alerts-section,
  .sidebar-actions {
    display: none;
  }

  .profile-grid,
  .location-health-grid,
  .platform-module-grid,
  .module-access-grid,
  .billing-summary {
    grid-template-columns: 1fr;
  }

  .platform-module-card,
  .module-access-row,
  .module-access-hero {
    grid-template-columns: 1fr;
  }

  .module-badge {
    justify-self: start;
  }

  .topbar,
  .board-header,
  .dialog-head,
  .dialog-actions,
  .overview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .board-tools {
    width: 100%;
  }

  .topbar-actions .button,
  .board-tools label {
    flex: 1;
  }

  .metric {
    min-height: 92px;
  }

  .step-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .invite-grid,
  .invite-health,
  .permission-summary,
  .location-check-grid,
  .password-reset-form,
  .invite-row,
  .admin-row,
  .rich-row,
  .section-tabs {
    grid-template-columns: 1fr;
  }

  .report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented-control {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .segmented-control button {
    padding-inline: 6px;
  }

  .trend-chart {
    grid-auto-columns: minmax(22px, 1fr);
  }

  .admin-row .button,
  .admin-row .pill,
  .invite-status-actions {
    justify-self: start;
  }

  .task-dialog {
    width: min(100vw - 16px, 980px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
  }

  .task-form {
    height: 100%;
    max-height: calc(100vh - 16px);
    padding: 16px;
  }

  .task-form .dialog-head {
    top: 0;
    align-items: center;
    flex-direction: row;
    padding: 0 0 12px;
  }

  .task-form .dialog-actions {
    bottom: 0;
    align-items: center;
    flex-direction: row;
    padding: 12px 0 0;
  }

  .task-form .dialog-actions .button {
    flex: 1;
  }

  .builder-head,
  .builder-list-head,
  .builder-item-top {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-count {
    width: max-content;
  }

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

  .briefing-strip,
  .quick-action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .marketing-logo small {
    display: none;
  }

  .marketing-nav {
    border-radius: var(--radius);
  }

  .marketing-links a {
    padding-inline: 10px;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-media img {
    border-radius: 14px;
  }

  .suite-card {
    min-height: auto;
  }

  .proof-visual {
    min-height: 570px;
  }

  .phone-shot {
    width: 280px;
    min-height: 500px;
  }

  .ops-ticket {
    width: min(288px, 82vw);
  }

  .metric-grid,
  .quick-action-grid,
  .day-grid {
    grid-template-columns: 1fr;
  }

  .task-head {
    grid-template-columns: 1fr;
  }

  .row-title-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-library-summary,
  .location-choice-grid,
  .list-detail-stats {
    grid-template-columns: 1fr;
  }

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

  .list-item-count {
    justify-self: start;
  }

  .list-creation-map {
    display: grid;
    grid-template-columns: 1fr;
  }

  .list-location-head {
    align-items: stretch;
    flex-direction: column;
  }

  .priority {
    justify-self: start;
  }
}
