:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #64716b;
  --line: #dfe5df;
  --surface: #ffffff;
  --surface-2: #f5f7f2;
  --nav: #16201e;
  --nav-soft: #24312e;
  --green: #2f8f5b;
  --green-hover: #24794d;
  --green-soft: #dff5e8;
  --logo-green: var(--green);
  --logo-soft: var(--green-soft);
  --teal: #177d89;
  --gold: #b7791f;
  --red: #b43f35;
  --blue: #3d65a5;
  --shadow: 0 18px 50px rgba(23, 32, 29, .12);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-homepage {
  display: none;
}

body.public-site {
  min-height: 100vh;
  background: #f7faf6;
}

body.public-site .public-homepage {
  display: block;
}

body.public-site .app-lock-screen,
body.public-site .app-shell {
  display: none;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(23, 32, 29, .08);
  background: rgba(247, 250, 246, .92);
  backdrop-filter: blur(16px);
}

.public-brand,
.public-nav nav,
.public-nav-actions,
.public-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.public-brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.1rem;
}

.public-brand .brand-mark.logo-mark {
  width: 52px;
  height: 52px;
}

.public-nav nav a,
.secondary-link,
.primary-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.public-nav nav a {
  color: var(--muted);
  font-size: .92rem;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.primary-link {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.secondary-link {
  background: #fff;
}

.public-main {
  display: grid;
  gap: 48px;
  padding: clamp(24px, 5vw, 72px) clamp(18px, 5vw, 70px) 64px;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, .95fr);
  gap: clamp(56px, 7vw, 120px);
  align-items: start;
  padding-top: clamp(54px, 7vw, 92px);
  min-height: min(720px, calc(100vh - 110px));
}

.public-hero-copy {
  display: grid;
  gap: 20px;
  align-content: center;
}

.public-hero h1 {
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 6.4rem);
  line-height: .88;
  letter-spacing: 0;
}

.public-hero p,
.public-section-head p,
.public-proof p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 700;
}

.public-product-panel {
  min-width: 0;
  margin-top: clamp(18px, 3vw, 42px);
  margin-left: clamp(20px, 3vw, 64px);
}

.phone-demo-shell {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(260px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.phone-demo-device {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 9 / 18.5;
  margin: 0 auto;
  padding: 0;
  border: 8px solid #14201d;
  border-radius: 38px;
  background: #14201d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 20px 50px rgba(23,32,29,.22);
}

.phone-speaker {
  display: none;
}

.phone-demo-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: #f6f9f3;
}

.phone-screen {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  padding: 0;
  opacity: 0;
  transform: translateX(18px);
  animation: phoneWalkthrough 15s infinite;
}

.phone-screen:nth-child(2) {
  animation-delay: 3s;
}

.phone-screen:nth-child(3) {
  animation-delay: 6s;
}

.phone-screen:nth-child(4) {
  animation-delay: 9s;
}

.phone-screen:nth-child(5) {
  animation-delay: 12s;
}

.demo-app-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  height: 100%;
  padding: 18px 16px 0;
  background: #f6f9f3;
  color: var(--ink);
}

.demo-tier-card,
.demo-home-card,
.demo-form-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(23, 32, 29, .08);
}

.demo-tier-card {
  padding: 12px;
}

.demo-tier-card span,
.demo-home-card em,
.demo-form-card em {
  color: var(--green);
  font-size: .68rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-tier-card strong {
  font-size: .92rem;
  line-height: 1.05;
}

.demo-tier-card p {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.28;
}

.demo-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  padding: 0 2px;
}

.demo-logo,
.demo-menu,
.demo-camera {
  display: grid;
  place-items: center;
}

.demo-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--logo-soft);
  color: var(--green);
}

.demo-logo svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.demo-app-header div {
  flex: 1;
  min-width: 0;
}

.demo-app-header strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.05;
}

.demo-app-header p {
  margin: 0;
  color: var(--green);
  font-size: .73rem;
  font-weight: 900;
}

.demo-menu {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.demo-menu svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.demo-home-card,
.demo-form-card {
  align-self: start;
  padding: 18px;
}

.demo-home-card {
  justify-items: center;
  text-align: center;
}

.demo-camera {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: var(--green);
  color: #fff;
}

.demo-camera svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.demo-home-card em {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-soft);
}

.demo-home-card h3,
.demo-choice-card h3,
.demo-saved-card h3 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.06;
}

.demo-home-card p {
  margin: 0;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 750;
  line-height: 1.36;
}

.demo-home-card > button {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  text-align: center;
}

.demo-form-card label {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
}

.demo-path-grid,
.demo-evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.demo-evidence-grid button {
  min-height: 38px;
  text-align: center;
}

.demo-choice-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.demo-choice-buttons button {
  min-height: 58px;
  text-align: center;
}

.demo-textarea {
  min-height: 78px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.28;
  font-size: .72rem;
}

.demo-timestamp {
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
  font-size: .7rem;
}

.demo-meal-row {
  padding: 8px 9px;
  border: 1px solid rgba(47, 143, 91, .28);
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--ink);
  font-weight: 900;
  font-size: .72rem;
}

.demo-saved-card {
  align-content: center;
  text-align: center;
}

.demo-bottom-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  min-height: 74px;
  margin: auto -16px 0;
  background: #14201d;
}

.demo-bottom-nav span,
.demo-bottom-nav b {
  display: block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,.62);
  border-radius: 7px;
}

.demo-bottom-nav b {
  width: 58px;
  height: 58px;
  border-color: rgba(255,255,255,.16);
  border-radius: 20px;
  background: var(--green);
  box-shadow: 0 8px 22px rgba(47, 143, 91, .35);
}

.phone-screen p,
.phone-screen button {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-align: left;
  font-size: .72rem;
}

.phone-screen button {
  min-height: 42px;
}

.phone-screen button:first-of-type {
  border-color: rgba(47, 143, 91, .35);
  background: var(--green-soft);
}

.phone-screen .demo-home-card > button {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  text-align: center;
}

.phone-screen .demo-choice-buttons button:first-child {
  border-color: rgba(47, 143, 91, .35);
  background: var(--green-soft);
}

.phone-screen .demo-evidence-grid button {
  text-align: center;
}

.phone-demo-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.phone-demo-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.phone-demo-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.phone-demo-copy .secondary-link {
  justify-self: start;
}

@keyframes phoneWalkthrough {
  0%, 15% {
    opacity: 1;
    transform: translateX(0);
  }
  20%, 100% {
    opacity: 0;
    transform: translateX(-18px);
  }
}

.product-window {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-window-head {
  display: flex;
  gap: 7px;
}

.product-window-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dfe5df;
}

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

.product-card-row article,
.product-search-preview,
.public-feature-grid article,
.pricing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.product-card-row article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
}

.product-card-row strong,
.product-search-preview strong,
.pricing-card h3 {
  color: var(--ink);
}

.product-card-row span,
.product-search-preview p,
.pricing-card li,
.pricing-card span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.product-search-preview {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--green-soft);
}

.product-search-preview > span {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .78rem;
}

.before-after-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.before-after-head {
  display: grid;
  gap: 6px;
}

.before-after-head h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.9rem, 3.3vw, 3.2rem);
  line-height: 1;
}

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

.before-after-grid article {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.before-after-grid article > span,
.packet-example-strip span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.before-card > span {
  background: #f8ebe9;
  color: var(--red);
}

.after-card > span,
.packet-example-strip span {
  background: #e6f6ee;
  color: var(--green);
}

.before-after-grid strong {
  font-size: 1.08rem;
}

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

.before-after-grid li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.before-after-grid li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}

.packet-example-strip {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(31, 138, 91, .22);
  border-radius: 10px;
  background: #eef8f3;
}

.packet-example-strip strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

.public-section {
  display: grid;
  gap: 22px;
}

.public-section-head {
  display: grid;
  gap: 8px;
}

.public-section h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

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

.public-feature-grid article,
.pricing-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: #fff;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.feature-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #d9f4e7;
  color: var(--green);
  font-weight: 900;
}

.public-feature-grid h3,
.pricing-card h3 {
  margin: 0;
}

.price-stack {
  display: grid;
  gap: 5px;
  align-content: start;
}

.price-stack h3 {
  line-height: 1.05;
}

.price-stack .annual-price {
  margin-top: 0;
  line-height: 1;
}

.basic-pricing-card ul {
  margin-top: 4px;
  margin-bottom: 24px;
}

.public-feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 650;
}

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

.pricing-card .primary-link,
.pricing-card .secondary-link {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  margin-top: 0;
}

.pricing-cta {
  display: grid;
  gap: 8px;
  min-height: 78px;
  margin-top: auto;
  align-content: start;
}

.pricing-demo-link {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.pricing-demo-placeholder {
  min-height: 16px;
}

.pricing-demo-link:hover {
  text-decoration: underline;
}

.multi-team-pricing {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 138, 91, .22);
  border-radius: 8px;
  background: rgba(255,255,255,.7);
}

.multi-team-pricing strong {
  color: var(--ink);
  font-size: .8rem;
}

.multi-team-pricing span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
}

.contract-note {
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.contract-note span {
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.35;
  font-weight: 750;
}

.pricing-card.featured {
  border-color: rgba(31, 138, 91, .35);
  background: var(--green-soft);
  box-shadow: 0 18px 50px rgba(31, 138, 91, .14);
}

.public-proof {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .65fr);
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #16201e;
  color: #fff;
}

.public-proof h2 {
  color: #fff;
}

.public-proof .eyebrow {
  color: #9de1bd;
}

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

.security-list span {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  font-weight: 800;
}

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

.public-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.public-faq summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 950;
  line-height: 1.25;
}

.public-faq details[open] summary {
  color: var(--green);
}

.public-faq p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 5vw, 70px);
  border-top: 1px solid rgba(23, 32, 29, .1);
  background: #f2f6f1;
}

.public-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.public-footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.25;
}

.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.public-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 850;
}

.public-footer nav a:hover {
  color: var(--green);
}

body.mobile-preview {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 18px;
  background: #111916;
}

body.app-locked .app-shell {
  display: none;
}

.app-lock-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #111916;
  overflow-y: auto;
}

body:not(.app-locked) .app-lock-screen {
  display: none;
}

.app-login-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(390px, 100%);
  margin: auto;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
  text-align: center;
}

body:not(.mobile-preview).app-locked .app-lock-screen {
  align-items: start;
  place-items: start center;
  padding: 54px 24px;
  background:
    linear-gradient(135deg, rgba(32, 143, 93, .12), transparent 32%),
    #f6f8f5;
}

body:not(.mobile-preview).app-locked .account-login-card {
  width: min(760px, 100%);
  justify-items: stretch;
  padding: 34px;
  border-color: var(--line);
  box-shadow: 0 22px 60px rgba(23, 32, 29, .12);
  text-align: left;
}

body:not(.mobile-preview).app-locked .account-login-card > .brand-mark,
body:not(.mobile-preview).app-locked .account-login-card > div:first-of-type {
  justify-self: center;
  text-align: center;
}

body:not(.mobile-preview).app-locked #setupPanel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

body:not(.mobile-preview).app-locked #setupPanel .signup-plan-summary,
body:not(.mobile-preview).app-locked #setupPanel .signup-payment-note,
body:not(.mobile-preview).app-locked #setupPanel .pin-hint,
body:not(.mobile-preview).app-locked #setupPanel .primary-button {
  grid-column: 1 / -1;
}

body[data-tier="enterprise"] #setupPasswordField {
  display: none !important;
}

body[data-demo-request="true"] #setupPasswordField {
  display: none !important;
}

.app-login-card[hidden] {
  display: none !important;
}

.app-login-card label {
  width: 100%;
  text-align: left;
}

.account-panel {
  display: grid;
  gap: 12px;
  width: 100%;
}

.signup-plan-summary,
.signup-payment-note {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
  text-align: left;
}

.signup-plan-summary .eyebrow {
  margin: 0;
}

.signup-plan-summary label,
.signup-payment-note span {
  font-size: 12px;
}

.signup-plan-summary strong,
.signup-payment-note strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.signup-plan-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.account-panel[hidden] {
  display: none;
}

.onboarding-step {
  text-align: left;
}

.role-options,
.onboarding-permissions,
.onboarding-sources {
  display: grid;
  gap: 10px;
  width: 100%;
}

.source-connect-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfa;
}

.source-connect-row span {
  display: grid;
  gap: 2px;
}

.source-connect-row strong {
  color: var(--ink);
  font-size: 13px;
}

.source-connect-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.invite-permission-card,
.join-approval-card,
.access-scope-list {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 10px;
  text-align: left;
}

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

.invite-permission-card span,
.join-approval-card span,
.access-scope-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.join-approval-card strong {
  color: var(--ink);
  font-size: 13px;
}

.access-scope-list {
  margin-top: 10px;
}

.access-scope-list[hidden] {
  display: none;
}

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

.permission-setup-row strong {
  text-align: left;
}

.permission-setup-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.permission-cell {
  display: grid;
  gap: 4px;
  align-content: center;
}

.permission-cell label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.permission-cell input {
  margin-top: 1px;
  flex: 0 0 auto;
}

.permission-exclusion {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
}

.permission-exclusions-card {
  display: grid;
  gap: 12px;
}

.exclusion-list {
  display: grid;
  gap: 8px;
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 4px;
}

.exclusion-list label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.exclusion-list em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
  padding: 4px;
  border-radius: 8px;
  background: #edf1ed;
}

.login-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-tabs .selected {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(23, 32, 29, .08);
}

.app-login-card .primary-button,
.face-button {
  width: 100%;
}

.face-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  font-weight: 800;
}

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

button {
  cursor: pointer;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.mobile-preview .app-shell {
  width: min(430px, 100%);
  min-height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  grid-template-columns: 1fr;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: var(--surface-2);
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 22px;
  background: var(--nav);
  color: #f4fbf7;
}

.mobile-preview .sidebar {
  position: fixed;
  z-index: 80;
  left: 50%;
  right: auto;
  top: auto;
  bottom: 18px;
  width: min(430px, calc(100% - 36px));
  transform: translateX(-50%);
  height: auto;
  gap: 10px;
  padding: 10px 10px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.12);
  border-radius: 0 0 28px 28px;
}

.mobile-preview .sidebar .brand,
.mobile-preview .compliance-meter {
  display: none;
}

.mobile-preview .nav-list {
  grid-template-columns: repeat(3, minmax(56px, 1fr));
  align-items: center;
  gap: 8px;
  min-height: 60px;
}

.mobile-preview .nav-group {
  display: contents;
}

.mobile-preview .nav-group-label {
  display: none;
}

.mobile-preview .nav-item {
  justify-content: center;
  min-height: 46px;
  padding: 0;
  border-radius: 16px;
  opacity: .78;
}

.mobile-preview .nav-item[data-section="case-files"] {
  order: 1;
}

.mobile-preview .nav-item[data-section="records-library"],
.mobile-preview .nav-item[data-section="investigation"],
.mobile-preview .nav-item[data-section="integrations"] {
  display: none;
}

.mobile-preview .nav-item[data-section="capture"] {
  order: 2;
  justify-self: center;
  width: 54px;
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(48, 142, 91, .3);
  transform: none;
  opacity: 1;
}

.mobile-preview .nav-item[data-section="staff"] {
  order: 3;
}

.mobile-preview .nav-item[data-section="capture"] {
  grid-column: 2;
}

.mobile-preview .nav-item[data-section="case-files"] {
  grid-column: 1;
}

.mobile-preview .nav-item[data-section="staff"] {
  grid-column: 3;
}

.mobile-preview .nav-item[data-section="capture"].active,
.mobile-preview .nav-item[data-section="capture"]:hover {
  background: var(--green);
  color: #fff;
}

.mobile-preview .nav-item.active:not([data-section="capture"]),
.mobile-preview .nav-item:hover:not([data-section="capture"]) {
  opacity: 1;
}

.mobile-preview .nav-item[data-section="capture"] svg {
  width: 22px;
  height: 22px;
}

.mobile-preview .nav-item span {
  display: none;
}

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

.brand-mark,
.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--logo-soft);
  color: var(--logo-green);
  font-weight: 800;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-mark.logo-mark {
  width: 52px;
  height: 52px;
  align-items: center;
  justify-items: center;
  border-radius: 10px;
  background: var(--logo-soft);
  color: var(--logo-green);
}

.brand-mark.logo-mark svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.8;
  align-self: center;
  justify-self: center;
}

.brand strong,
.brand span:not(.brand-mark) {
  display: block;
}

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

.brand span:not(.brand-mark) {
  color: #aebbb5;
  font-size: 13px;
}

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

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group[hidden] {
  display: none !important;
}

.nav-group-label {
  padding: 0 12px;
  color: #7f9188;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: #cdd8d2;
  text-align: left;
}

.nav-item[hidden] {
  display: none !important;
}

.nav-item.active,
.nav-item:hover {
  background: var(--nav-soft);
  color: #ffffff;
}

.compliance-meter {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}

.compliance-meter span {
  display: block;
  color: #b8c5bf;
  font-size: 12px;
}

.compliance-meter strong {
  display: block;
  margin: 5px 0 10px;
  font-size: 30px;
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.meter span {
  height: 100%;
  background: #7ce1ad;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

body:not(.mobile-preview) .app-shell {
  display: block;
  min-height: 100vh;
}

body:not(.mobile-preview) .sidebar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(20, 34, 28, .06);
}

body:not(.mobile-preview) .sidebar .brand {
  min-width: 210px;
  justify-content: center;
  gap: 14px;
  text-align: left;
}

body:not(.mobile-preview) .sidebar .brand strong {
  color: var(--ink);
}

body:not(.mobile-preview) .sidebar .brand span:not(.brand-mark) {
  color: var(--muted);
}

.brand .brand-mark.logo-mark,
.public-brand .brand-mark.logo-mark,
.app-lock-card .brand-mark.logo-mark,
.account-login-card .brand-mark.logo-mark,
.mobile-capture-brand .brand-mark.logo-mark {
  background: var(--logo-soft);
  color: var(--logo-green);
}

.brand .brand-mark.logo-mark svg,
.public-brand .brand-mark.logo-mark svg,
.app-lock-card .brand-mark.logo-mark svg,
.account-login-card .brand-mark.logo-mark svg,
.mobile-capture-brand .brand-mark.logo-mark svg {
  color: var(--logo-green);
  stroke: var(--logo-green);
}

body:not(.mobile-preview) .nav-list {
  display: flex;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

body:not(.mobile-preview) .nav-group {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfa;
}

body:not(.mobile-preview) .nav-group-tools,
body:not(.mobile-preview) .nav-group-admin {
  display: none !important;
}

body:not(.mobile-preview) .nav-group-label {
  display: none;
}

body:not(.mobile-preview) .nav-item {
  width: auto;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

body:not(.mobile-preview) .web-nav-overflow {
  position: relative;
  display: block;
  justify-self: end;
}

body:not(.mobile-preview) .web-nav-overflow[hidden] {
  display: none !important;
}

body:not(.mobile-preview) .web-nav-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: #fbfcfa;
  color: var(--ink);
  font-weight: 950;
}

body:not(.mobile-preview) .web-nav-menu-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

body:not(.mobile-preview) .web-nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(20, 34, 28, .16);
}

body:not(.mobile-preview) .web-nav-menu[hidden] {
  display: none !important;
}

body:not(.mobile-preview) .web-nav-menu p {
  margin: 8px 8px 6px;
  color: #7d8b84;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body:not(.mobile-preview) .web-nav-menu button {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

body:not(.mobile-preview) .web-nav-menu button[hidden] {
  display: none !important;
}

body:not(.mobile-preview) .web-nav-menu button:hover,
body:not(.mobile-preview) .web-nav-menu button.active {
  background: var(--green-soft);
}

body:not(.mobile-preview) .web-nav-menu strong {
  color: inherit;
  font-size: 14px;
  font-weight: 950;
}

body:not(.mobile-preview) .web-nav-menu span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.web-nav-overflow {
  display: none;
}

body:not(.mobile-preview) .nav-item svg {
  display: none;
}

body:not(.mobile-preview) .nav-item.active,
body:not(.mobile-preview) .nav-item:hover {
  background: var(--green-soft);
  color: var(--green);
}

body:not(.mobile-preview) .compliance-meter {
  min-width: 168px;
  margin-top: 0;
  border-color: var(--line);
  background: #fbfcfa;
  padding: 9px 11px;
}

body:not(.mobile-preview) .compliance-meter span {
  color: var(--muted);
}

body:not(.mobile-preview) .compliance-meter strong {
  margin: 2px 0 6px;
  color: var(--ink);
  font-size: 21px;
}

body:not(.mobile-preview) .compliance-meter .meter {
  background: #e6ece8;
}

body:not(.mobile-preview) .workspace {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 34px 34px;
}

body:not(.mobile-preview) .topbar {
  align-items: center;
  margin-bottom: 20px;
}

body:not(.mobile-preview) .topbar .app-lockup {
  display: none;
}

body:not(.mobile-preview) .header-brand {
  display: block;
}

body:not(.mobile-preview) .account-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.mobile-preview .workspace {
  order: 1;
  padding: 14px 14px 120px;
}

.app-only {
  display: none !important;
}

.mobile-preview .app-only {
  display: revert !important;
}

.mobile-preview span.app-only {
  display: inline !important;
}

.mobile-preview .capture-board.app-only {
  display: grid !important;
}

.mobile-preview.capture-view .workspace {
  padding-top: 12px;
}

.mobile-preview .mobile-capture-homebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 2px;
}

.mobile-capture-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.mobile-capture-brand div {
  display: grid;
  gap: 1px;
}

.mobile-capture-brand strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}

.mobile-capture-brand span:not(.brand-mark) {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.mobile-preview .mobile-capture-homebar .icon-button {
  width: 36px;
  height: 36px;
  background: #fff;
  color: var(--ink);
}

.mobile-utility-menu {
  position: absolute;
  z-index: 20;
  top: 46px;
  right: 0;
  display: grid;
  gap: 4px;
  width: min(248px, calc(100vw - 44px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 18px 42px rgba(23, 32, 29, .18);
}

.mobile-utility-menu[hidden] {
  display: none;
}

.mobile-utility-menu button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  padding: 9px 10px;
  text-align: left;
}

.mobile-utility-menu button:hover {
  background: #f5f7f2;
}

.mobile-utility-menu .mobile-menu-heading {
  border-top: 1px solid var(--line);
  padding: 8px 10px 1px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mobile-utility-menu .mobile-menu-heading:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.prototype-variant-switch {
  display: grid;
  gap: 7px;
  padding: 9px 10px 10px;
  border-bottom: 1px solid var(--line);
}

.prototype-variant-switch[hidden] {
  display: none;
}

.prototype-variant-switch > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.prototype-variant-switch > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.prototype-variant-switch button {
  justify-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.prototype-variant-switch button.active,
.prototype-variant-switch button[aria-pressed="true"] {
  border-color: #8fcaa7;
  background: var(--green-soft);
  color: var(--green);
}

.prototype-variant-switch small {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.mobile-utility-menu strong {
  font-size: 13px;
}

.mobile-utility-menu span,
.mobile-utility-menu p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.mobile-utility-menu p {
  border-top: 1px solid var(--line);
  padding: 7px 10px 2px;
  color: var(--green);
  font-weight: 900;
}

.mobile-support-quick-card {
  width: min(420px, calc(100vw - 24px));
}

.mobile-support-quick-list {
  display: grid;
  gap: 10px;
}

.mobile-support-quick-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.mobile-support-quick-list button:hover {
  border-color: #9fd6b7;
  background: var(--green-soft);
}

.mobile-support-quick-list strong {
  font-size: 16px;
}

.mobile-support-quick-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

body[data-prototype-variant="b"].mobile-preview .capture-meta-row,
body[data-prototype-variant="b"].mobile-preview .location-field,
body[data-prototype-variant="b"].mobile-preview .attendee-picker,
body[data-prototype-variant="b"].mobile-preview .summary-tools,
body[data-prototype-variant="b"].mobile-preview .pack-confirm-step {
  display: none !important;
}

body[data-tier="basic"].mobile-preview .tags-section {
  display: block !important;
}

body[data-tier="basic"] .pack-confirm-step,
body[data-tier="basic"] .summary-tools,
body[data-tier="basic"] .ai-found-preview,
body[data-tier="basic"] .ai-context-group,
body[data-tier="basic"] .ai-review-panel,
body[data-tier="basic"] .source-match-panel,
body[data-tier="basic"] .source-match-action,
body[data-tier="basic"] .drive-attach-action {
  display: none !important;
}

body[data-tier="enterprise"] #mealReceiptTile {
  display: none !important;
}

body[data-tier="basic"] .enterprise-export-panel {
  display: none !important;
}

body:not([data-tier="enterprise"]) .enterprise-only-action {
  display: none !important;
}

body[data-prototype-variant="b"].mobile-preview .capture-status h3::after {
  content: "";
}

.mobile-preview .section-head .app-only {
  display: inline !important;
}

.mobile-preview .web-only {
  display: none !important;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 2px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.header-brand {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.app-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark.small {
  width: 44px;
  height: 44px;
}

.brand-mark.small svg {
  width: 30px;
  height: 30px;
}

.brand-mark.tiny {
  width: 34px;
  height: 34px;
}

.brand-mark.tiny svg {
  width: 22px;
  height: 22px;
}

.brand-mark.small.logo-mark,
.brand-mark.tiny.logo-mark {
  background: var(--logo-soft);
  color: var(--logo-green);
  border-radius: 10px;
}

.brand-mark.small.logo-mark {
  width: 52px;
  height: 52px;
}

.brand-mark.small.logo-mark svg {
  width: 36px;
  height: 36px;
}

.brand-mark.tiny.logo-mark {
  width: 42px;
  height: 42px;
}

.brand-mark.tiny.logo-mark svg {
  width: 28px;
  height: 28px;
}

.tagline {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.mobile-preview h1 {
  font-size: 20px;
}

.mobile-preview .tagline {
  font-size: 10.5px;
}

.mobile-preview .topbar,
.mobile-preview .section-head {
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
}

.mobile-preview.capture-view .topbar,
.mobile-preview.capture-view #capture .section-head {
  display: none;
}

.mobile-preview .top-actions {
  width: 100%;
}

.mobile-preview .view-toggle {
  flex: 0 0 auto;
}

.mobile-preview .case-controls {
  width: 100%;
}

.mobile-preview .dashboard-athlete-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mobile-preview .dashboard-athlete-controls .roster-filter {
  min-width: 0;
}

.mobile-preview .dashboard-athlete-controls .roster-toggle {
  width: 100%;
  min-width: 0;
  padding: 0 6px;
  font-size: 12px;
  white-space: nowrap;
}

.mobile-preview .dashboard-athlete-controls .clear-selection {
  grid-column: 1 / -1;
  justify-self: center;
  min-height: auto;
  padding: 3px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobile-preview .case-controls button,
.mobile-preview .roster-filter,
.mobile-preview .roster-toggle {
  flex: 1;
}

.mobile-preview .clear-selection {
  flex: 0 0 auto;
}

.mobile-preview .player-list {
  width: calc(100vw - 64px);
  max-width: 382px;
  max-height: 58vh;
}

.mobile-preview .case-grid,
.mobile-preview .capture-board,
.mobile-preview .system-model,
.mobile-preview .dashboard-review-grid,
.mobile-preview .investigation-layout,
.mobile-preview .staff-layout,
.mobile-preview .proof-grid,
.mobile-preview .proof-filters,
.mobile-preview .integration-status,
.mobile-preview .evidence-source-grid,
.mobile-preview .receipt-card {
  grid-template-columns: 1fr;
}

.mobile-preview .receipt-tabs {
  grid-template-columns: repeat(2, 1fr);
}

.mobile-preview .connected-sources-toggle {
  display: block;
}

.mobile-preview .integration-status p {
  display: none;
}

.mobile-preview .evidence-pull-preview {
  display: none;
}

.mobile-preview .packet-topic-picker > div,
.mobile-preview .packet-date-picker > div:first-of-type,
.mobile-preview .packet-date-inputs {
  grid-template-columns: 1fr;
}

.mobile-preview .packet-source-report-card {
  grid-template-columns: 1fr;
}

.mobile-preview .packet-source-report-card .source-upload-pill {
  width: 100%;
  justify-self: stretch;
}

.mobile-preview .source-card-actions {
  justify-content: stretch;
}

.mobile-preview .support-hero,
.mobile-preview .support-template-preview {
  grid-template-columns: 1fr;
  flex-direction: column;
  align-items: stretch;
}

.mobile-preview .support-layout,
.mobile-preview .support-template-fields {
  grid-template-columns: 1fr;
}

.mobile-preview #case-files .system-model {
  display: none;
}

.mobile-preview .record-entry-options,
.mobile-preview .records-workspace,
.mobile-preview .record-builder-grid {
  grid-template-columns: 1fr;
}

.mobile-preview .capture-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mobile-preview .capture-status,
.mobile-preview .capture-preview {
  padding: 14px;
}

.mobile-preview .pulse {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
}

.mobile-preview .table-row,
.mobile-preview .staff-row {
  grid-template-columns: 1fr;
  padding: 12px;
}

.mobile-preview .table-row.header {
  display: none;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.icon-button,
.primary-button,
.secondary-button,
.text-button {
  border-radius: 8px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.view-toggle {
  min-width: 58px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--nav);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

body:not(.mobile-preview) .view-toggle {
  background: var(--surface);
  color: var(--ink);
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.primary-button {
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.secondary-button,
.text-button {
  border: 1px solid #d8e5dc;
  background: #e8efe9;
  color: var(--ink);
  font-weight: 700;
}

.primary-button svg,
.secondary-button svg,
.text-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-button.selected {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #b9dcc8;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.tier-demo-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: -6px 0 18px;
  padding: 14px 16px;
  border: 1px solid #cfe1d4;
  border-radius: 8px;
  background: var(--green-soft);
}

.tier-demo-banner div {
  display: grid;
  gap: 4px;
}

.tier-demo-banner span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tier-demo-banner strong {
  color: var(--ink);
  font-size: 15px;
}

.tier-demo-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.tier-demo-banner a {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.mobile-preview .tier-demo-banner {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
}

.mobile-preview .tier-demo-banner a {
  display: none;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.page-purpose {
  max-width: 680px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.segmented,
.case-controls {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.case-controls {
  position: relative;
  overflow: visible;
}

.dashboard-athlete-controls {
  gap: 6px;
  margin-bottom: 14px;
  border-color: #d7ded9;
  background: #f7faf7;
}

.dashboard-athlete-controls .roster-toggle {
  border: 1px solid #dbe3dd;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(23, 32, 29, .04);
}

.dashboard-athlete-controls .roster-toggle:hover {
  border-color: #b9c9be;
  background: #f3f8f5;
}

.dashboard-athlete-controls .roster-toggle.selected {
  border-color: var(--nav);
  background: var(--nav);
  color: #fff;
  box-shadow: none;
}

.segmented button,
.case-controls button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.segmented .selected,
.case-controls .selected {
  background: var(--nav);
  color: #fff;
}

.clear-selection {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: #e8efe9;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

#clearStaffView {
  min-height: auto;
  align-self: flex-start;
  border-radius: 0;
  margin-top: 12px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clear-selection[hidden] {
  display: none;
}

.roster-filter,
.case-controls {
  position: relative;
}

.roster-toggle {
  min-width: 92px;
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(250px, 340px);
  gap: 16px;
}

.athlete-overview-heading {
  margin: 18px 0 10px;
}

.athlete-overview-heading h2 {
  font-size: 22px;
  line-height: 1.15;
}

.overview-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.help-dot-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #b9dcc8;
  border-radius: 50%;
  background: #f1faf5;
  color: var(--green);
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.help-dot-button:hover {
  border-color: var(--green);
  background: #e8f6ee;
}

.audit-log-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.audit-help-button {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.player-list,
.case-empty,
.case-detail,
.case-side,
.capture-status,
.draft-confirmation,
.capture-preview,
.proof-card,
.complaint-form,
.packet-preview,
.permissions-table,
.internal-notes {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 32, 29, .04);
}

.case-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 22px;
}

.case-empty h3,
.case-empty p {
  margin-bottom: 0;
}

.case-empty p {
  max-width: 520px;
  color: var(--muted);
}

.case-empty[hidden],
.case-grid[hidden] {
  display: none;
}

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

.system-model div,
.role-workspace-card,
.review-queue-card,
.case-completeness-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.system-model div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 8px;
  align-items: center;
  padding: 10px;
}

.system-model span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

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

.system-model p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.demo-path {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid #d9e8df;
  border-radius: 8px;
  background: #f8fcf9;
  padding: 14px;
}

.demo-path h3,
.demo-path p {
  margin-bottom: 0;
}

.demo-path p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.demo-path-steps,
.demo-scenarios {
  display: grid;
  gap: 8px;
}

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

.demo-path-steps button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.demo-path-steps span {
  display: inline-grid;
  grid-row: span 2;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.demo-path-steps strong {
  font-size: 13px;
}

.demo-path-steps small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

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

.demo-scenarios button {
  min-height: 34px;
  border: 1px solid #b9dcc8;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-review-grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 16px;
}

.first-setup-card {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #cfe6d9;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf6 100%);
}

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

.first-setup-head h3 {
  margin: 0 0 5px;
  font-size: 22px;
  line-height: 1.1;
}

.first-setup-head p:not(.eyebrow) {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.first-setup-status {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.first-setup-status > span {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.first-setup-status .secondary-button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

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

.first-setup-list button {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "number title"
    "number copy";
  column-gap: 10px;
  row-gap: 2px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.first-setup-list button[hidden],
.first-setup-status .secondary-button[hidden] {
  display: none !important;
}

.first-setup-list button:hover {
  border-color: #8fc4a9;
  box-shadow: 0 10px 24px rgba(21, 55, 38, .08);
}

.first-setup-list button[data-complete="true"] {
  border-color: #a9d9bf;
  background: #f6fcf8;
}

.first-setup-list button[data-complete="true"] span {
  background: var(--green);
  color: #fff;
}

.first-setup-list span {
  grid-area: number;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.first-setup-list strong {
  grid-area: title;
  font-size: 14px;
  line-height: 1.2;
}

.first-setup-list small {
  grid-area: copy;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.role-workspace-card,
.review-queue-card {
  padding: 12px;
}

.role-workspace-card h3,
.review-queue-card h3 {
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.15;
}

.role-workspace-card p:not(.eyebrow),
.review-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.mobile-preview .role-workspace-card {
  padding: 10px 12px;
}

.mobile-preview .role-workspace-card p:not(.eyebrow) {
  margin: 0;
}

.mobile-preview .first-setup-card {
  padding: 12px;
}

.mobile-preview .first-setup-head {
  display: grid;
}

.mobile-preview .first-setup-status {
  justify-content: space-between;
}

.mobile-preview .first-setup-list {
  grid-template-columns: 1fr;
}

.review-queue-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.review-queue-head > span {
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.review-queue-list {
  display: grid;
  gap: 6px;
}

.review-empty-state {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--muted);
}

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

.review-empty-state span {
  font-size: 12.5px;
  line-height: 1.35;
}

.review-item {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.review-item strong {
  font-size: 12.5px;
  line-height: 1.2;
}

.review-item.high {
  border-color: #e2c28e;
  background: #fff8e8;
}

.dashboard-completeness-widget {
  display: none;
}

.mobile-preview .dashboard-completeness-widget {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.dashboard-completeness-widget h3 {
  margin-bottom: 6px;
}

.dashboard-completeness-widget p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.completion-score {
  display: grid;
  gap: 8px;
}

.completion-score strong {
  font-size: 32px;
  line-height: 1;
}

.completion-score .meter {
  background: #e7ede8;
}

.completion-score .meter span {
  display: block;
  background: var(--green);
}

.completion-score > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.player-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: min(420px, calc(100vw - 48px));
  max-height: 430px;
  display: grid;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.player-list[hidden] {
  display: none;
}

.player-button {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.case-controls .player-button {
  min-height: 58px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  background: #fff;
}

.player-button .player-initials {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  align-self: center;
  justify-self: center;
  font-size: 11px;
  line-height: 1;
  text-align: center;
  color: var(--green);
}

.player-button.active {
  background: #eef8f2;
}

.player-button strong,
.player-button span {
  display: block;
}

.player-button strong {
  font-size: 14px;
}

.player-button span {
  color: var(--muted);
  font-size: 11px;
}

.empty-state {
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.avatar.large {
  width: 58px;
  height: 58px;
  font-size: 18px;
}

.risk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.risk-dot.high,
.risk-chip.high {
  background: #fff1ef;
  color: var(--red);
}

.risk-dot.medium,
.risk-chip.medium {
  background: #fff6e6;
  color: var(--gold);
}

.case-detail {
  padding: 18px;
}

.case-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.case-hero h3 {
  margin-bottom: 2px;
  font-size: 24px;
}

.case-hero p {
  margin-bottom: 0;
  color: var(--muted);
}

.risk-chip,
.private-badge,
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 10px;
  background: #ecf7f1;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.account-chip {
  border: 1px solid #cfe4d6;
  background: var(--green-soft);
}

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

.case-completeness-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
}

.case-completeness-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.case-completeness-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.case-completeness-panel strong {
  color: var(--green);
}

.completion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.completion-tags span {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--green-soft);
  color: var(--green);
}

.completion-tags span.needs {
  background: #fff6e6;
  color: var(--gold);
}

.label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 10px;
}

.case-snapshot-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.case-snapshot-head h3 {
  font-size: 16px;
  line-height: 1.2;
}

.case-snapshot-head > span {
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf1ed;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.timeline-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item p {
  margin-bottom: 5px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tags span {
  border-radius: 999px;
  padding: 3px 8px;
  background: #edf1ed;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.snapshot-timeline {
  gap: 4px;
}

.snapshot-timeline .timeline-item {
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 9px 0;
}

.snapshot-timeline .timeline-date {
  font-size: 12px;
}

.snapshot-timeline .timeline-item p {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.snapshot-timeline .timeline-tags {
  gap: 4px;
}

.snapshot-timeline .timeline-tags span {
  padding: 2px 6px;
  font-size: 10px;
}

.case-side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.ack-item {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

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

.mini-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.promise-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff6e6;
  color: #5e4217;
}

.promise-card p,
.promise-card span {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.promise-card span {
  color: #7d612d;
}

.capture-board,
.investigation-layout,
.staff-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(280px, 430px);
  gap: 16px;
}

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

#investigation .complaint-form {
  width: 100%;
  max-width: none;
}

.records-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
}

.records-workspace [hidden] {
  display: none !important;
}

.records-workspace.formal-mode {
  grid-template-columns: 1fr;
}

.records-workspace.draft-select-mode {
  grid-template-columns: 1fr;
}

.record-entry-options {
  order: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.record-step-heading {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  max-width: 720px;
}

.record-step-heading span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.record-step-heading strong {
  color: var(--ink);
  font-size: 18px;
}

.record-step-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.record-entry-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  color: var(--ink);
  text-align: left;
}

.record-entry-card.active {
  border-color: #b9dcc8;
  background: #f2faf5;
}

.record-entry-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.record-entry-card strong {
  font-size: 15px;
}

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

.small-refresh-button {
  justify-self: start;
  min-height: 0;
  padding: 6px 8px;
  font-size: 12px;
}

.draft-sync-status {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.workspace-flow-step {
  display: grid;
  gap: 10px;
  border: 1px solid #d8e4dc;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 14px;
}

.workspace-flow-step > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-flow-step > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

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

.workspace-new-record-step .workspace-path-buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.workspace-topic-grid button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.workspace-topic-grid button.active {
  border-color: #b9dcc8;
  background: #f2faf5;
  color: var(--green);
}

.record-draft-queue,
.record-builder-workspace,
.staff-workflow-panel,
.matched-evidence-panel,
.risk-review-panel,
.audit-log-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 32, 29, .04);
}

.record-draft-queue,
.staff-workflow-panel,
.record-builder-workspace {
  order: 2;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.record-builder-workspace {
  order: 3;
}

.staff-workflow-panel {
  grid-column: 1 / -1;
}

.record-draft-queue {
  max-height: 620px;
  overflow-y: auto;
}

.record-draft-queue[hidden] {
  display: none;
}

.local-capture-draft-list {
  display: grid;
  gap: 10px;
}

.record-builder-workspace[hidden] {
  display: none;
}

.records-workspace.formal-mode .record-builder-workspace {
  grid-column: 1 / -1;
}

.records-workspace.staff-workflow-mode .record-builder-workspace {
  grid-column: 1 / -1;
}

.records-workspace.general-program-mode .record-builder-workspace {
  grid-column: 1 / -1;
}

.records-workspace.general-program-mode .web-record-context-picker,
.records-workspace.general-program-mode .web-record-subject-picker,
.records-workspace.general-program-mode .brief-description-field,
.records-workspace.general-program-mode #webRecordLocationWrap {
  display: none;
}

.records-workspace:not(.general-program-mode) .web-record-general-category,
.records-workspace:not(.general-program-mode) #webRecordProgramWideWrap {
  display: none !important;
}

.records-workspace.general-program-mode .record-builder-grid {
  grid-template-columns: 1fr;
}

.records-workspace.general-program-mode .web-record-subject-picker {
  order: 1;
}

.records-workspace.general-program-mode .web-record-general-category {
  order: 2;
}

.records-workspace.general-program-mode .web-record-witness-picker {
  order: 4;
}

.staff-workflow-panel[hidden] {
  display: none;
}

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

.staff-workflow-preview {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 14px;
  border: 1px solid #cfe3d3;
  border-radius: 8px;
  background: #f6fbf7;
  padding: 14px;
}

.staff-workflow-preview span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-workflow-preview strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 16px;
}

.staff-workflow-preview p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.staff-workflow-preview ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.records-workspace.draft-select-mode .record-draft-queue {
  max-width: 720px;
  width: 100%;
  justify-self: center;
}

.records-workspace:not(.draft-select-mode):not(.formal-mode) .record-draft-queue {
  position: sticky;
  top: 92px;
}

.records-library-panel {
  order: 4;
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(23, 32, 29, .04);
}

.records-library-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.records-library-filters[hidden] {
  display: none;
}

.record-search-mode-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
}

.record-search-mode-button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  border: 1px solid #d5e2d9;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.record-search-mode-button span {
  font-size: 15px;
  font-weight: 950;
}

.record-search-mode-button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.record-search-mode-button.active {
  border-color: rgba(41, 122, 77, .42);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(41, 122, 77, .08);
}

.record-search-mode-button.active span {
  color: var(--green);
}

.records-library-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
}

.records-library-toolbar[hidden] {
  display: none;
}

.records-library-search-field {
  display: grid;
  gap: 6px;
}

.records-library-search-field input {
  min-height: 42px;
  border-color: #d5e2d9;
  background: #fff;
}

.library-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 108px;
  min-height: 42px;
  border: 1px solid #d5e2d9;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.library-toolbar-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.library-toolbar-button:hover,
.library-toolbar-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(41, 122, 77, .28);
  box-shadow: 0 8px 20px rgba(23, 32, 29, .08);
}

.library-search-button {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.library-search-button:hover,
.library-search-button:focus-visible {
  background: var(--green-hover);
  border-color: var(--green-hover);
}

.library-filter-button {
  color: var(--green);
  background: var(--green-soft);
}

.ask-button {
  min-width: 150px;
  border-color: #c9dfd0;
  background: linear-gradient(180deg, #ffffff 0%, var(--green-soft) 100%);
  color: var(--green);
}

.record-library-ask-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #cfe1d4;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 12px;
}

.record-library-ask-panel[hidden] {
  display: none;
}

.record-library-ask-panel span,
.packet-material-toolbar span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.record-library-ask-panel strong,
.packet-material-toolbar strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 15px;
}

.record-library-ask-panel p,
.packet-material-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.record-library-ask-field {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.record-library-ask-field textarea {
  width: 100%;
  min-height: 86px;
  border: 1px solid #d5e2d9;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.record-library-suggested-setup {
  display: grid;
  gap: 10px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.ask-example-row,
.record-library-ask-chips,
.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.record-library-ask-chips span,
.active-filter-chips span {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.record-library-type-step {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.record-library-type-step > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.record-library-type-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.record-library-type-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.record-library-type-options label:has(input:checked) {
  border-color: rgba(41, 122, 77, .35);
  background: var(--green-soft);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(41, 122, 77, .08);
}

.record-library-type-options input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.records-library-filters label[hidden],
.record-library-general-category[hidden] {
  display: none;
}

.records-library-people-filter {
  position: relative;
}

.compact-check-menu {
  position: relative;
}

.compact-check-menu summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.compact-check-menu summary::-webkit-details-marker {
  display: none;
}

.compact-check-menu summary::after {
  content: "Select";
  margin-left: auto;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-check-menu[open] summary {
  border-color: rgba(41, 122, 77, .38);
  box-shadow: 0 0 0 3px rgba(41, 122, 77, .1);
}

.compact-check-menu-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 16px 35px rgba(23, 32, 29, .14);
}

.compact-check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 6px;
  padding: 5px 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.compact-check-row:hover {
  background: #f6faf7;
}

.compact-check-row input {
  width: 16px;
  height: 16px;
}

.record-library-date-field[hidden] {
  display: none;
}

.record-library-date-shortcuts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.record-library-date-shortcuts .text-button {
  min-height: 30px;
  border: 1px solid #dce7df;
  border-radius: 999px;
  padding: 5px 11px;
  background: #fff;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.clear-library-filters {
  align-self: end;
  justify-self: start;
  min-height: 32px;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
}

.clear-library-filters:hover,
.clear-library-filters:focus-visible {
  background: transparent;
  box-shadow: none;
}

.records-library-summary,
.records-library-panel .form-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.records-library-list {
  display: grid;
  gap: 9px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.record-library-detail {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.record-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.record-detail-head span,
.record-detail-section > span,
.record-detail-grid span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.record-detail-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 19px;
}

.record-detail-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.record-detail-grid div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #f8fbf8;
}

.record-detail-grid strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.record-detail-section {
  display: grid;
  gap: 8px;
}

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

.record-detail-audit {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.record-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.record-library-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.record-library-card span {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.record-library-card strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 15px;
}

.record-library-card p,
.record-library-card small {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.record-library-card p {
  max-width: 86ch;
}

.record-library-card mark {
  border-radius: 4px;
  background: #fff1bf;
  padding: 0 2px;
  color: inherit;
}

.record-library-card .why-matched-line {
  color: var(--green);
  font-weight: 850;
}

.record-library-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.record-status-pill {
  border-radius: 999px;
  background: #edf4ef;
  color: var(--green);
  padding: 5px 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.record-status-pill.draft {
  background: #fff5df;
  color: #8a5d13;
}

.record-status-pill.needs-review {
  background: #f8e7e2;
  color: #9a4a35;
}

.record-library-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #edf1ec;
}

.record-library-actions .text-button {
  min-height: 28px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
}

.record-workspace-head {
  display: grid;
  gap: 4px;
}

.record-workspace-head span,
.matched-evidence-panel span,
.risk-review-panel span,
.audit-log-panel span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.record-workspace-head strong,
.matched-evidence-panel strong,
.risk-review-panel strong,
.audit-log-panel strong {
  color: var(--ink);
  font-size: 16px;
}

.record-workspace-head p,
.risk-review-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.record-draft-card {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
  color: var(--ink);
  text-align: left;
}

.record-draft-card.active {
  border-color: #b9dcc8;
  background: #f2faf5;
}

.local-capture-draft-card {
  border-color: #b9dcc8;
  background: #f6fbf7;
}

.record-draft-card span,
.record-draft-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.record-draft-card strong {
  font-size: 13px;
}

.record-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.record-builder-summary {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #cfe6d7;
  border-radius: 8px;
  background: #eef8f1;
}

.record-builder-summary span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.record-builder-summary strong {
  color: var(--ink);
  font-size: 15px;
}

.record-builder-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.record-builder-grid label {
  align-self: start;
}

.web-record-date-field,
#webRecordLocationWrap {
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  font-weight: 900;
}

.web-record-date-field small,
#webRecordLocationWrap small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.record-builder-grid select:not([multiple]) {
  min-height: 0;
  height: 43px;
}

.web-record-context-picker,
.web-record-subject-picker,
.web-record-witness-picker {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fbfcfa;
}

.web-record-context-picker legend,
.web-record-subject-picker legend,
.web-record-witness-picker legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.web-record-context-picker legend span,
.web-record-subject-picker legend span,
.web-record-witness-picker legend span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.web-record-context-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.web-record-custom-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.web-record-custom-context input {
  min-height: 38px;
}

.web-record-custom-context .secondary-button {
  min-height: 38px;
  padding: 0 14px;
}

.web-record-context-list label,
.web-record-subject-picker label,
.web-record-witness-picker label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.web-record-context-list input,
.web-record-subject-picker input,
.web-record-witness-picker input {
  width: auto;
}

.web-record-subject-picker summary,
.web-record-witness-picker summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.web-record-subject-list,
.web-record-witness-list {
  display: grid;
  max-height: 126px;
  overflow: auto;
  gap: 6px;
  margin-top: 8px;
  padding-right: 4px;
}

.web-record-witness-picker {
  grid-column: 1 / -1;
}

.brief-description-field,
.formal-note-field {
  display: grid;
  gap: 6px;
}

.brief-description-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.brief-description-field textarea {
  min-height: 72px;
}

.formal-note-field textarea {
  min-height: 150px;
}

.mobile-record-paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mobile-record-step {
  display: grid;
  gap: 14px;
}

.mobile-general-note-form {
  gap: 14px;
}

.mobile-general-note-form textarea {
  min-height: 132px;
}

.mobile-general-note-form .capture-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-general-note-form .icon-tile {
  min-height: 82px;
}

#eventDialog [hidden] {
  display: none !important;
}

.mobile-record-path {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 96px;
  padding: 16px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.mobile-record-path small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.mobile-record-path svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mobile-record-path.active {
  border-color: #97ccb0;
  background: #f1faf4;
  color: var(--green);
}

#eventDialog .modal-card.path-choice-active {
  width: min(360px, calc(100vw - 34px));
  height: auto;
  max-height: calc(100dvh - 28px);
  padding: 14px;
}

.mobile-preview #eventDialog:has(.path-choice-active) {
  height: auto;
  max-height: calc(100dvh - 28px);
}

.mobile-preview #eventDialog .modal-card.path-choice-active {
  display: block;
  height: auto;
  max-height: calc(100dvh - 28px);
  overflow: visible;
  padding: 14px;
}

#eventDialog .modal-card.path-choice-active > :not(#mobileRecordPathStep) {
  display: none;
}

#eventDialog .modal-card.path-choice-active .mobile-record-step {
  gap: 0;
}

#eventDialog .modal-card.path-choice-active .mobile-record-paths {
  gap: 12px;
}

.mobile-preview #eventDialog .modal-card.path-choice-active .mobile-record-paths {
  grid-template-columns: 1fr;
}

.mobile-preview #eventDialog .modal-card.path-choice-active .mobile-record-path {
  min-height: 74px;
  grid-template-columns: 28px 1fr;
  justify-items: start;
  align-items: center;
  align-content: center;
  padding: 14px;
  text-align: left;
}

.mobile-preview #eventDialog .modal-card.path-choice-active .mobile-record-path svg {
  width: 20px;
  height: 20px;
}

.mobile-staff-workflow-note {
  border: 1px solid #cfe3d3;
  border-radius: 8px;
  background: #f6fbf7;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.staff-mobile-record-form {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.capture-summary.staff-mobile-record-form > div:not(.media-status),
.capture-summary.staff-mobile-record-form > details,
.capture-summary.staff-mobile-record-form > label {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.capture-summary.staff-mobile-record-form > div:not(.media-status) {
  display: grid;
  justify-content: stretch;
  gap: 6px;
  padding: 0;
  border-bottom: 0;
}

.staff-mobile-record-head {
  display: grid;
  gap: 2px;
  align-items: start;
  padding: 0;
}

.staff-mobile-record-head strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.staff-mobile-record-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.mobile-preview #eventDialog .mobile-record-step,
.mobile-preview #eventDialog .capture-summary {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.mobile-preview #eventDialog .capture-summary {
  padding-bottom: 14px;
}

.mobile-preview #eventDialog #eventSaveMenu {
  position: sticky;
  bottom: 0;
  flex: 0 0 auto;
  margin: 0 -14px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 20px rgba(16, 25, 22, .08);
  backdrop-filter: blur(8px);
}

.mobile-preview #eventDialog #eventSaveMenu[hidden] {
  display: none !important;
}

.mobile-preview #eventDialog #eventSaveMenu .primary-button {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.mobile-preview #eventDialog #eventSaveMenu .text-button {
  flex: 0 0 auto;
}

.staff-mobile-record-head .text-button {
  display: inline;
  min-height: 0;
  margin: 3px 0 0 2px;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  justify-self: start;
  line-height: 1.15;
  text-decoration: underline;
}

.mobile-staff-workflow-fields {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mobile-staff-workflow-card {
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid #d8e5dc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 850;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.mobile-staff-workflow-card > span {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 6px;
  align-items: start;
  line-height: 1.25;
}

.mobile-staff-optional-card {
  background: #f8fbf8;
}

.mobile-staff-optional-card > span {
  grid-template-columns: auto 1fr;
}

.mobile-staff-optional-card small {
  align-self: start;
  border-radius: 999px;
  padding: 2px 6px;
  background: #eaf4ec;
  color: var(--green);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.mobile-staff-workflow-card em {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #eaf4ec;
  color: var(--green);
  font-style: normal;
  font-size: 10px;
  font-weight: 950;
}

.mobile-staff-workflow-fields textarea {
  min-height: 44px;
  width: 100%;
  resize: vertical;
  font-size: 12px;
  line-height: 1.3;
  border-radius: 7px;
  padding: 7px 8px;
  box-sizing: border-box;
}

.mobile-staff-date-time-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.mobile-staff-date-time-grid label,
.mobile-staff-location-field {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-staff-date-time-grid input,
.mobile-staff-location-field input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
  box-sizing: border-box;
}

.mobile-staff-workflow-card select,
.mobile-staff-workflow-card .compact-select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.compact-upload-button {
  width: 100%;
  min-height: 36px;
  justify-content: center;
  padding: 7px 9px;
  font-size: 12px;
}

.staff-workflow-upload-status {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
}

.mobile-staff-witness-dropdown {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.mobile-staff-witness-dropdown summary {
  padding: 8px 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mobile-staff-witness-group-field {
  display: grid;
  gap: 5px;
  padding: 0 9px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-staff-witness-group-field select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-transform: none;
}

.mobile-staff-witness-list {
  display: grid;
  max-height: 150px;
  overflow-y: auto;
  gap: 4px;
  padding: 0 9px 9px;
}

.mobile-staff-witness-list[hidden] {
  display: none !important;
}

.mobile-staff-witness-list strong {
  margin-top: 5px;
  color: var(--green);
  font-size: 10px;
  text-align: left;
  text-transform: uppercase;
}

.mobile-staff-witness-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 2px 0;
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 800;
  text-align: left;
}

.mobile-staff-witness-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  justify-self: center;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.mobile-preview .staff-mobile-record-form .builder-section {
  padding: 10px;
}

.mobile-preview .staff-mobile-record-form .capture-actions.builder-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-preview .staff-mobile-record-form .quick-note-field textarea {
  min-height: 70px;
}

.web-record-actions,
.record-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.web-meal-evidence-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d9e7de;
  border-radius: 8px;
  background: #f6fbf7;
}

.web-meal-evidence-panel[hidden] {
  display: none;
}

.web-meal-evidence-panel span {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.web-meal-evidence-panel strong {
  color: var(--ink);
  font-size: 15px;
}

.web-meal-evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.web-source-report-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #cfded4;
  border-radius: 8px;
  background: #fbfcfa;
}

.web-source-report-panel[hidden],
.is-hidden {
  display: none !important;
}

.web-source-report-panel span {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.web-source-report-panel strong {
  color: var(--ink);
  font-size: 15px;
}

.web-source-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finalize-review-card {
  max-width: 620px;
}

.finalize-review-list {
  display: grid;
  gap: 8px;
}

.finalize-review-list div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.finalize-review-list span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.finalize-review-list strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.matched-evidence-panel,
.risk-review-panel,
.audit-log-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.matched-evidence-panel ul,
.audit-log-panel ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.audit-log-panel {
  border-color: #dfe5de;
  background: #fbfcfa;
}

.audit-log-panel li::marker {
  color: var(--green);
  font-weight: 900;
}

.risk-review-panel {
  border-color: #d9e8df;
  background: #f8fcf9;
}

.record-final-actions {
  justify-content: flex-end;
}

.capture-status,
.draft-confirmation,
.capture-preview,
.complaint-form,
.packet-preview,
.internal-notes {
  padding: 18px;
}

.mobile-capture-homebar {
  display: none;
}

.capture-hero-icon {
  display: none;
}

.mobile-capture-status-row {
  display: none;
}

.mobile-preview.capture-view .capture-board {
  gap: 12px;
}

.mobile-preview .capture-status {
  justify-items: center;
  text-align: center;
  padding: 22px 18px 18px;
}

.mobile-preview .capture-status .pulse {
  display: none;
}

.mobile-preview .capture-hero-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 14px;
  border-radius: 28px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 16px 30px rgba(48, 142, 91, .28);
}

.mobile-preview .capture-hero-icon svg {
  width: 34px;
  height: 34px;
}

.mobile-preview .capture-status h3 {
  max-width: 300px;
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.08;
}

.mobile-preview .capture-status p:not(.auto-save-note) {
  max-width: 310px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.mobile-preview .capture-simple-flow {
  display: grid;
  width: 100%;
  gap: 9px;
}

.mobile-preview .capture-primary-action {
  min-height: 52px;
  border-radius: 8px;
  font-size: 15px;
}

.mobile-preview .saved-drafts-button {
  min-height: 42px;
}

.mobile-preview .mobile-capture-status-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
  margin-top: 12px;
}

.mobile-preview .mobile-capture-status-row span {
  min-height: 40px;
  border: 1px solid #d9e8df;
  border-radius: 8px;
  background: #f8fcf9;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  display: grid;
  place-items: center;
  padding: 6px;
}

.basic-mobile-overview {
  display: none;
}

.mobile-preview[data-tier="basic"] .sidebar {
  display: none;
}

.mobile-preview[data-tier="basic"] .workspace {
  padding-bottom: 18px;
}

.mobile-preview[data-tier="basic"] .capture-board {
  gap: 12px;
}

.mobile-preview[data-tier="basic"] .basic-mobile-overview {
  display: grid;
  gap: 12px;
  border: 1px solid #dce8df;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(23, 32, 29, .06);
}

.basic-mobile-overview span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.basic-mobile-overview strong {
  color: var(--ink);
  font-size: 16px;
}

.basic-mobile-overview p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.basic-mobile-stats span {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid #e3ebe3;
  border-radius: 8px;
  background: #f8fbf7;
  color: var(--muted);
  text-align: center;
  text-transform: none;
  font-size: 10px;
  line-height: 1.2;
}

.basic-mobile-stats strong {
  color: var(--green);
  font-size: 16px;
  line-height: 1;
}

.pulse {
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 32%, transparent 33%),
    conic-gradient(var(--green), var(--teal), var(--blue), var(--green));
  box-shadow: var(--shadow);
}

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

.auto-save-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 8px;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--green-soft);
  color: var(--green) !important;
  font-size: 12px;
  font-weight: 900;
}

.capture-simple-flow {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.capture-method-group,
.quick-start-group {
  display: grid;
  gap: 8px;
}

.capture-method-group > span,
.quick-start-group > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.context-tier-note {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.quick-start-strip button {
  min-height: 23px;
  border: 1px solid #dbe3dd;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 4px;
}

.quick-start-strip button.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.quick-start-strip button.ai-suggested {
  border-color: var(--green);
  border-style: solid;
  background: var(--green-soft);
  color: var(--green);
  position: relative;
}

.quick-start-strip button.ai-suggested::after {
  content: "Suggested";
  display: block;
  margin-top: 3px;
  color: #498762;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.custom-tag-panel {
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 100%;
}

.custom-tag-toggle {
  min-height: 18px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
}

.custom-tag-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  width: 100%;
  max-width: 320px;
}

.custom-tag-entry[hidden] {
  display: none !important;
}

.custom-tag-entry input,
.tag-drawer input {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
}

.custom-tag-entry .secondary-button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 11px;
}

.custom-tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-height: 58px;
  overflow: auto;
}

.custom-tag-chip {
  min-height: 26px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  padding: 4px 9px;
}

.tag-drawer {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 10px;
}

.tag-drawer[hidden] {
  display: none !important;
}

.tag-drawer-group {
  display: grid;
  gap: 6px;
}

.tag-drawer-group > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.tag-library {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-library-chip {
  min-height: 23px;
  border: 1px solid #dbe3dd;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 6px;
}

.tag-library-chip.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.tag-empty {
  color: var(--muted);
  font-size: 11px;
}

.meal-proof-panel {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid #cfe3d7;
  border-radius: 8px;
  background: #f7fbf8;
}

.meal-proof-panel[hidden] {
  display: none !important;
}

.meal-proof-panel span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.meal-proof-panel span em {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.meal-proof-panel strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.meal-proof-panel p,
.meal-proof-status {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.meal-proof-tile {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 72px;
  border: 1px solid #dbe3dd;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  padding: 8px 6px;
}

.meal-proof-tile svg {
  width: 17px;
  height: 17px;
}

.meal-proof-tile span {
  color: var(--ink);
  font-size: 11px;
  text-transform: none;
}

.meal-proof-tile small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.meal-proof-tile.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.meal-proof-tile.active small {
  color: var(--green);
}

.quick-note-field textarea {
  min-height: 78px;
  resize: vertical;
}

.mobile-preview .quick-note-field textarea {
  min-height: 68px;
  font-size: 13px;
}

.record-builder-panel .quick-start-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 326px;
  margin: 0 auto;
  gap: 5px;
}

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

.capture-primary-action {
  width: 100%;
  justify-content: center;
}

.icon-tile {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  font-weight: 800;
}

.icon-tile svg {
  width: 18px;
  height: 18px;
}

.icon-tile.active {
  border-color: #7fcfa9;
  background: var(--green-soft);
  color: var(--green);
}

.capture-preview dl,
.capture-summary {
  display: grid;
  gap: 10px;
}

.capture-preview[hidden] {
  display: none;
}

.mobile-capture-added-card {
  display: grid;
  gap: 5px;
  border: 1px solid #dce8df;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7faf7;
}

.mobile-capture-added-card .draft-save-status {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.mobile-capture-added-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.mobile-capture-added-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.draft-confirmation[hidden] {
  display: none;
}

.draft-confirmation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-color: #b9dec9;
  background: #f1faf5;
}

.draft-confirmation-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}

.draft-confirmation-icon svg {
  width: 18px;
  height: 18px;
}

.draft-confirmation strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.draft-confirmation p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.record-builder-panel {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.builder-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.builder-section summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1.2;
}

.optional-note {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef2ef;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.required-note {
  background: var(--green-soft);
  color: var(--green);
}

.builder-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.builder-actions .icon-tile {
  min-height: 68px;
  background: #fff;
}

.attached-evidence-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.attached-evidence-panel > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.attached-evidence-panel span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.attached-evidence-panel strong {
  font-size: 13px;
}

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

.attached-evidence-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #f8fbf8;
}

.attached-evidence-card.error {
  border-color: #f0c0b8;
  background: #fff7f5;
}

.attached-evidence-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 104px;
  border: 1px solid #dbe7df;
  border-radius: 7px;
  background: #eef4ef;
}

.attached-evidence-preview img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.attached-evidence-preview.audio-preview {
  min-height: auto;
  padding: 8px;
  background: #fff;
}

.attached-evidence-preview audio {
  width: 100%;
}

.attached-evidence-preview.file-preview span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.attached-evidence-preview.compact {
  float: right;
  width: 126px;
  min-height: 86px;
  margin-left: 12px;
}

.attached-evidence-preview.compact img {
  height: 86px;
}

.attached-evidence-card span {
  color: var(--muted);
  font-size: 10px;
}

.attached-evidence-card strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attached-evidence-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mobile-preview .builder-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 282px;
  gap: 10px;
}

.mobile-preview .record-builder-panel {
  gap: 10px;
  padding: 0;
}

.mobile-preview .builder-section {
  gap: 13px;
  padding: 12px;
}

.mobile-preview .builder-section summary {
  width: 100%;
  display: list-item;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.mobile-preview .record-builder-panel .quick-start-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 286px;
  gap: 5px;
  margin: 0 auto;
}

.mobile-preview .record-builder-panel .quick-start-strip button {
  min-height: 24px;
  font-size: 10px;
  padding: 3px 2px;
  text-align: center;
}

.mobile-preview .custom-tag-panel {
  margin-top: 8px;
  gap: 10px;
}

.mobile-preview .builder-actions .icon-tile {
  min-height: 64px;
}

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

.draft-preview-note {
  max-width: 280px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.draft-save-status {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.draft-status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf1ed;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.draft-status-pill.ready {
  background: var(--green-soft);
  color: var(--green);
}

.draft-status-pill.needs {
  background: #fff6e6;
  color: var(--gold);
}

.ai-found-preview,
.missing-info-list {
  margin: 0 0 8px;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f7faf7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.missing-info-list {
  background: #fffaf0;
  color: #7d612d;
}

.saved-drafts {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.saved-drafts-button {
  width: 100%;
  justify-content: center;
}

.continue-draft-button {
  width: 100%;
  margin-top: 14px;
}

.draft-actions-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.draft-actions-row .continue-draft-button {
  margin-top: 0;
}

.mobile-preview .draft-actions-row {
  grid-template-columns: 1fr;
}

.mobile-preview .continue-draft-button {
  display: none;
}

.draft-saved-confirmation {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  border: 1px solid #b9dcc8;
  border-radius: 8px;
  padding: 10px;
  background: #f1faf5;
}

.draft-saved-confirmation[hidden] {
  display: none;
}

.draft-saved-confirmation strong {
  color: var(--green);
  font-size: 13px;
}

.draft-saved-confirmation span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.draft-saved-confirmation button {
  margin-top: 4px;
  justify-content: center;
}

.capture-preview dl > div,
.capture-summary > div:not(.media-status) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.capture-summary > .record-builder-panel {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px;
  width: 100%;
  padding: 0;
  border-bottom: 0;
}

.capture-summary > .record-builder-panel > .builder-section {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
}

.capture-summary > .record-builder-panel > .builder-section > summary {
  margin-bottom: 14px;
}

.mobile-preview .capture-summary > .record-builder-panel > .builder-section > summary {
  margin-bottom: 15px;
}

.capture-summary > .record-builder-panel > .builder-section + .builder-section {
  margin-top: 0;
}

.capture-preview dl > div.draft-edit-row {
  position: relative;
  cursor: pointer;
  padding-right: 20px;
}

.capture-preview dl > div.draft-edit-row::after {
  content: "›";
  position: absolute;
  right: 2px;
  top: 50%;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
}

dt,
dd {
  margin: 0;
}

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

dd,
.capture-summary strong {
  text-align: right;
}

.capture-summary label,
.attendee-picker,
.case-subject-picker,
.summary-tools {
  display: grid;
  gap: 8px;
}

.attendee-picker,
.case-subject-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.case-subject-picker[hidden] {
  display: none !important;
}

.attendee-picker summary,
.case-subject-picker summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.case-subject-picker label,
.attendee-picker label {
  margin-top: 10px;
}

.subject-list {
  display: grid;
  gap: 8px;
  max-height: 132px;
  overflow-y: auto;
  padding-right: 4px;
}

.subject-picker-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.subject-list-title {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 4px 0;
  background: var(--surface);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

#eventWitnesses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 100px;
  overflow-y: auto;
  padding-right: 4px;
}

#eventWitnesses[hidden] {
  display: none !important;
}

.mobile-preview #eventWitnesses {
  grid-template-columns: 1fr;
}

#eventWitnesses label,
.subject-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  min-height: 28px;
}

.media-status {
  padding: 10px;
  border-radius: 8px;
  background: #f5f7f2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
}

.proof-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(150px, .8fr)) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.proof-builder[hidden] {
  display: none;
}

.proof-summary {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.proof-list-title {
  margin: 0 0 12px;
  font-size: 16px;
}

.proof-card {
  overflow: hidden;
}

.proof-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  height: 118px;
  background: #dbe7e0;
}

.proof-visual span {
  display: block;
  background:
    linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,0)),
    var(--photo-color, #a6c8b4);
}

.proof-body {
  padding: 14px;
}

.proof-body p {
  color: var(--muted);
  font-size: 13px;
}

.proof-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.proof-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef7f6;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.proof-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proof-checks span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf1ed;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.integration-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.integration-status > div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.integration-status span,
.receipt-meta span,
.receipt-thumb span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.sync-health-card {
  align-content: center;
  padding: 10px 12px;
}

.sync-health-card strong {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 900;
}

.sync-health-card.warning {
  border-color: #e2c28e;
  background: #fff8e8;
}

.sync-health-card.warning strong {
  color: #8b641e;
}

.integration-status p,
.receipt-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.evidence-pull-preview {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fbfcfa;
  padding: 14px;
}

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

.evidence-pull-head h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.evidence-pull-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.evidence-date-range {
  display: grid;
  grid-template-columns: repeat(2, 132px);
  gap: 8px;
}

.evidence-date-range label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.evidence-date-range input {
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
}

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

.evidence-source-toggles label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

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

.evidence-match-columns article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.evidence-match-columns article[hidden] {
  display: none !important;
}

.evidence-match-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 0;
}

.evidence-match-empty[hidden] {
  display: none !important;
}

.evidence-match-columns span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-match-columns strong {
  font-size: 13px;
}

.evidence-match-columns p,
.evidence-match-columns small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.evidence-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.enterprise-export-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #b9dcc8;
  border-radius: 8px;
  background: #f1faf5;
}

.enterprise-export-panel h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.enterprise-export-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

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

.enterprise-export-status {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.evidence-source-grid[hidden] {
  display: none;
}

.evidence-source-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.evidence-source-card.warning {
  border-color: #e2c28e;
  background: #fff8e8;
}

.evidence-source-card div {
  display: grid;
  gap: 3px;
}

.evidence-source-card span,
.evidence-source-card small,
.evidence-source-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.evidence-source-card strong {
  color: var(--ink);
  font-size: 15px;
}

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

.documentation-resource-section {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  border: 1px solid #d7ded9;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.documentation-resource-section h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.documentation-resource-section p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.documentation-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.documentation-resource-actions .resource-toggle {
  flex: 0 1 auto;
  width: auto;
}

.documentation-resource-actions #addDocumentationResource {
  flex: 0 0 auto;
  min-height: 0;
  border: 1px solid #b9dcc8;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  background: #f1faf5;
  color: var(--green);
  box-shadow: none;
}

.documentation-resource-actions #addDocumentationResource svg {
  width: 13px;
  height: 13px;
}

.evidence-source-upload-actions {
  margin: 10px 0 6px;
}

.evidence-source-upload-actions .secondary-button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}

.documentation-resource-grid {
  display: grid;
  gap: 10px;
}

.documentation-resource-grid[hidden] {
  display: none;
}

.documentation-resource-card {
  display: grid;
  gap: 8px;
  border: 1px solid #b9dcc8;
  border-radius: 8px;
  padding: 12px;
  background: #f1faf5;
}

.documentation-resource-card div {
  display: grid;
  gap: 3px;
}

.documentation-resource-card span,
.documentation-resource-card small,
.documentation-resource-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.documentation-resource-card strong {
  color: var(--ink);
  font-size: 15px;
}

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

.documentation-resource-card .warning-text {
  color: #8b641e;
}

.documentation-upload-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.documentation-upload-card input,
.documentation-upload-card select,
.documentation-upload-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  background: #fff;
}

.documentation-upload-card textarea {
  resize: vertical;
  min-height: 92px;
}

.connected-sources-toggle,
.resource-toggle {
  display: none;
  width: 100%;
  margin: 0 0 12px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
}

.resource-toggle {
  display: block;
  margin: 0;
}

.receipt-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.receipt-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.receipt-tabs button.selected {
  border-color: #7fcfa9;
  background: var(--green-soft);
  color: var(--green);
}

.receipt-inbox {
  display: grid;
  gap: 12px;
}

.receipt-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.receipt-thumb {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  min-height: 98px;
  border: 1px dashed #b9dcc8;
  border-radius: 8px;
  background: #f1faf5;
  text-align: center;
}

.receipt-thumb svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.receipt-main {
  display: grid;
  gap: 8px;
}

.receipt-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.receipt-title-row div {
  display: grid;
  gap: 3px;
}

.receipt-title-row strong {
  color: var(--ink);
  font-size: 15px;
}

.receipt-title-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.receipt-title-row em {
  align-self: start;
  border-radius: 8px;
  padding: 4px 7px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.receipt-meta,
.receipt-missing,
.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.receipt-missing span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf1ed;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

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

.packet-builder-shell {
  display: grid;
  gap: 12px;
}

.packet-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.packet-summary-card div {
  display: grid;
  gap: 3px;
}

.packet-summary-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.packet-summary-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.packet-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.packet-inline-actions,
.packet-content-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.packet-details-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.packet-details-card[hidden],
.packet-legacy-controls[hidden] {
  display: none !important;
}

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

.packet-details-wide {
  grid-column: 1 / -1;
}

.packet-details-wide textarea {
  min-height: 86px;
}

.packet-intake-heading {
  display: grid;
  gap: 4px;
  padding-bottom: 4px;
}

.packet-intake-heading h3 {
  margin: 0;
  font-size: 18px;
}

.packet-intake-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.packet-intake-heading .packet-helper-note {
  margin-top: 6px;
  border-left: 3px solid var(--green);
  padding: 7px 10px;
  border-radius: 6px;
  background: #f4fbf6;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.smart-packet-search,
.smart-library-search {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(41, 122, 77, .22);
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbf8 0%, #fff 100%);
  padding: 14px;
}

.smart-library-search {
  background: #fbfdfb;
}

.smart-complaint-field[hidden],
.smart-keyword-field[hidden],
.smart-search-methods[hidden] {
  display: none;
}

.smart-search-head,
.smart-plan-head {
  display: grid;
  gap: 3px;
}

.smart-search-head span,
.smart-plan-head span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.smart-search-head strong,
.smart-plan-head strong {
  color: var(--ink);
  font-size: 17px;
}

.smart-search-head p,
.smart-plan-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.smart-complaint-field,
.smart-keyword-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.smart-keyword-field small {
  color: var(--muted);
  font-weight: 750;
}

.smart-entry-methods,
.smart-search-methods {
  display: grid;
  gap: 8px;
}

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

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

.smart-entry-methods label,
.smart-search-methods label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.smart-entry-methods label:has(input:checked),
.smart-search-methods label:has(input:checked) {
  border-color: var(--green);
  background: #eaf6ef;
}

.smart-entry-methods input,
.smart-search-methods input {
  accent-color: var(--green);
}

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

.smart-search-actions-after {
  align-items: center;
  border-top: 1px solid #dce7df;
  padding-top: 12px;
}

.smart-search-actions-after p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.smart-scan-plan {
  display: grid;
  gap: 10px;
}

.smart-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.smart-plan-grid article {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.smart-plan-grid article > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.smart-plan-grid article p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.smart-plan-grid article small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.smart-plan-grid article div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.smart-plan-grid em {
  display: inline-flex;
  border: 1px solid #dce7df;
  border-radius: 999px;
  background: #f5faf7;
  color: var(--ink);
  padding: 4px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.smart-plan-wide {
  grid-column: 1 / -1;
}

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

.smart-edit-list,
.smart-date-edit {
  display: grid !important;
  gap: 7px;
}

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

.smart-edit-list label,
.smart-date-edit label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid #dce7df;
  border-radius: 7px;
  background: #f9fcfa;
  color: var(--ink);
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.smart-edit-list input {
  flex: 0 0 auto;
  accent-color: var(--green);
}

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

.smart-date-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.smart-date-shortcuts button {
  border: 1px solid #d6e5dc;
  background: #ffffff;
  color: #255b41;
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.smart-date-shortcuts button:hover {
  border-color: var(--green);
  background: #f4fbf7;
}

.smart-date-edit label {
  display: grid;
  align-items: start;
  gap: 4px;
  color: var(--muted);
  text-transform: uppercase;
}

.smart-date-edit input,
.smart-add-keyword input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.smart-date-suggestion {
  display: block;
  margin: -2px 0 2px;
}

.smart-add-keyword {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}

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

.smart-people-list {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.smart-people-groups {
  display: grid !important;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.1fr) minmax(220px, 1.1fr);
  align-content: start;
  align-items: start;
  gap: 8px !important;
}

.smart-person-group {
  display: grid !important;
  align-content: start;
  gap: 6px !important;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 8px;
}

.smart-person-group summary,
.smart-person-group strong {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.smart-person-group .smart-edit-list {
  grid-template-columns: 1fr;
  max-height: 145px;
}

.team-group .smart-edit-list {
  max-height: none;
}

.keyword-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #cfe1d4;
  border-radius: 999px;
  background: #eef8f1;
  color: var(--ink);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.keyword-chip span {
  color: var(--green);
  font-size: 12px;
  line-height: 1;
}

.form-help {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.complainant-picker {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe8e1;
  border-radius: 10px;
  background: #fbfcfa;
  padding: 12px;
}

.complainant-picker[hidden] {
  display: none !important;
}

.complainant-picker > div:first-child {
  display: grid;
  gap: 3px;
}

.complainant-picker > div:first-child span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.complainant-picker > div:first-child strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.complainant-picker > div:first-child p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.packet-team-check {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.packet-team-check:has(input:checked) {
  border-color: var(--green);
  background: #eaf6ef;
  box-shadow: inset 0 0 0 1px rgba(39, 130, 81, 0.12);
}

.packet-team-check input {
  flex: 0 0 auto;
  accent-color: var(--green);
}

.complainant-picker details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.complainant-picker summary {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.complainant-picker .subject-list {
  max-height: 170px;
  padding: 6px 10px 10px;
}

.complainant-picker .subject-list label {
  min-height: 32px;
  border-radius: 6px;
  padding: 3px 4px;
  font-size: 13px;
  font-weight: 850;
}

.complainant-picker .subject-list input {
  flex: 0 0 auto;
  accent-color: var(--green);
}

.packet-topic-picker,
.packet-date-picker,
.packet-source-reports,
.packet-template-addons {
  display: grid;
  gap: 8px;
}

.packet-topic-picker[hidden],
.packet-date-picker[hidden],
.packet-source-reports[hidden],
.packet-template-addons[hidden],
#packetAthleteTopicOptions[hidden],
#packetStaffTemplateOptions[hidden],
#packetDetailsField[hidden],
#generatePacket[hidden] {
  display: none !important;
}

.packet-topic-picker > span,
.packet-date-picker > span,
.packet-source-reports > div > span,
.packet-template-addons > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.packet-source-reports > div p,
.packet-template-addons > p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.packet-source-reports {
  margin-bottom: 14px;
  border: 1px solid #dfe8e1;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 14px;
}

.packet-outside-source-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.packet-outside-source-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.packet-outside-source-options input {
  flex: 0 0 auto;
  accent-color: var(--green);
}

.packet-template-addons {
  border: 1px solid #dfe8e1;
  border-radius: 10px;
  padding: 12px;
  background: #fbfcfa;
}

.packet-optional-details {
  display: grid;
  gap: 6px;
}

.packet-optional-details small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

#packetTemplateAddOns {
  display: grid;
  gap: 7px;
}

#packetTemplateAddOns label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid #e2ebe5;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

#packetTemplateAddOns input {
  margin: 0;
}

.empty-state.compact {
  min-height: auto;
  padding: 10px 12px;
  font-size: 12px;
  text-align: left;
}

.packet-source-report-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #d7ded9;
  border-radius: 8px;
  padding: 11px;
  background: #fbfcfa;
}

.packet-source-report-card[hidden] {
  display: none !important;
}

.packet-source-report-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.packet-source-report-card small,
.packet-source-report-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.packet-source-report-card small {
  display: block;
  margin-top: 3px;
}

.packet-source-report-card p {
  grid-column: 1 / -1;
  margin: 0;
}

.packet-loose-file-card {
  background: #ffffff;
}

.compact-source-upload {
  min-height: 28px;
  padding-inline: 9px;
}

.concur-parse-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dfe8dd;
  border-radius: 8px;
  background: #fbfcfa;
}

.concur-parse-preview[hidden] {
  display: none !important;
}

.concur-parse-preview strong {
  color: var(--ink);
  font-size: 12px;
}

.concur-parse-preview div {
  display: grid;
  gap: 4px;
}

.concur-parse-preview span,
.concur-parse-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.concur-parse-preview span {
  padding-left: 8px;
  border-left: 3px solid #b8d4bd;
}

.source-upload-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  justify-self: end;
  min-height: 30px;
  border: 1px solid #b9dcc8;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f1faf5;
  color: var(--green);
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.source-card-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.subtle-source-action {
  min-height: auto;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
}

.source-upload-pill svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.source-upload-pill:hover {
  border-color: var(--green);
  background: #e8f6ee;
}

.packet-topic-picker > div,
.packet-date-picker > div:first-of-type {
  display: grid;
  grid-template-columns: repeat(3, minmax(145px, 1fr));
  gap: 7px;
}

body:not(.mobile-preview) .packet-topic-picker > div {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.packet-topic-picker label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
}

.packet-topic-picker label input {
  flex: 0 0 auto;
  margin-top: 1px;
}

.packet-date-picker .text-button {
  min-height: 32px;
  padding: 0 8px;
  font-size: 11px;
}

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

.generate-pack-form-button {
  width: 100%;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select,
input[type="text"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="date"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.packet-preview {
  min-height: 330px;
}

.support-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
  border: 1px solid #cfe1d4;
  border-radius: 8px;
  padding: 18px;
  background: var(--green-soft);
}

.support-hero span,
.support-block-head span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.support-hero h3 {
  margin: 5px 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
}

.support-hero p,
.template-grid p,
.support-template-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.42;
}

.support-layout {
  display: block;
}

#supportTemplateLibrary[hidden] {
  display: none !important;
}

.support-templates,
.support-template-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.support-block-head {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

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

.template-grid {
  display: grid;
  gap: 9px;
}

.template-grid article {
  border: 1px solid #e0e6e2;
  border-radius: 8px;
  padding: 11px;
  background: #fbfcfa;
}

.template-grid strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.template-grid article {
  display: grid;
  gap: 8px;
}

.template-grid span {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.template-grid .mini-button.selected,
[data-support-template].selected {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.support-template-preview {
  display: block;
  margin-top: 14px;
}

.support-template-preview[hidden] {
  display: none !important;
}

.support-template-preview h3 {
  margin: 3px 0 5px;
  color: var(--ink);
}

.template-page-workspace {
  margin: 16px 0;
  padding: 0;
  overflow: hidden;
  background: #f7faf7;
}

.template-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.template-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

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

.support-template-fields span {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e0e6e2;
  border-radius: 8px;
  padding: 9px;
  color: var(--ink);
  background: #fbfcfa;
  font-size: 12px;
  font-weight: 900;
}

.support-template-fields em {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e9f5ed;
  color: var(--green);
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

.culture-template-preview .support-template-fields {
  display: block;
}

.culture-calendar-sheet {
  margin: 14px;
  border: 1px solid #dce6dd;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(20, 34, 28, .08);
}

.culture-calendar-sheet span {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.culture-sheet-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #10241b 0%, #1f6b45 100%);
  color: #ffffff;
}

.culture-sheet-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
}

.culture-sheet-lockup .brand-mark {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.14);
  color: #ffffff;
}

.culture-sheet-lockup strong,
.culture-sheet-season strong {
  display: block;
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
}

.culture-sheet-lockup span,
.culture-sheet-season span,
.culture-detail-card span,
.culture-evidence-strip > span {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.culture-sheet-season {
  text-align: right;
}

.culture-sheet-season span,
.culture-sheet-lockup span {
  color: rgba(255,255,255,.72);
}

.culture-event-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  width: 100%;
  min-width: 0;
}

.culture-event-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.culture-event-form textarea,
.culture-event-form input,
.culture-event-form select {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe4de;
  border-radius: 8px;
  padding: 9px 10px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.culture-event-form label:nth-of-type(3),
.culture-attendance-field,
.culture-media-field,
.culture-notes-field,
.culture-outcome-field {
  grid-column: 1 / -1;
}

.culture-event-form button {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 40px;
}

.culture-media-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid #dbe4de;
  border-radius: 10px;
  padding: 12px;
  background: #fbfcfa;
}

.culture-media-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.culture-media-field p,
.culture-media-field small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.culture-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.culture-media-actions .secondary-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
  white-space: normal;
}

.culture-attendance-field {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid #dbe4de;
  border-radius: 10px;
  padding: 12px;
  background: #fbfcfa;
}

.culture-attendance-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.culture-attendee-group label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 5px 6px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
}

.culture-attendee-group label:hover {
  background: #f3f8f4;
}

.culture-attendee-group input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  flex: none;
}

.culture-attendance-groups {
  display: grid;
  gap: 7px;
}

.culture-attendee-group {
  border: 1px solid #e0e7e2;
  border-radius: 9px;
  background: #ffffff;
  overflow: hidden;
}

.culture-attendee-group summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.culture-attendee-actions {
  display: flex;
  justify-content: flex-start;
  padding: 2px 14px 9px;
}

.culture-select-all {
  margin: 0;
  min-height: auto;
  padding: 2px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  text-decoration: underline;
  border-radius: 0;
}

.culture-attendee-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  max-height: 150px;
  overflow: auto;
  padding: 0 10px 10px;
}

.culture-whole-team {
  margin-bottom: 4px;
  border: 1px solid #d9e8dd;
  background: #f6fbf7;
  color: var(--green);
  font-weight: 950;
}

.culture-detail-card span,
.culture-evidence-strip > span {
  color: var(--green);
}

.culture-detail-card p,
.culture-detail-card li {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.culture-calendar-table {
  display: grid;
  border: 1px solid #c9d8cf;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.culture-calendar-zone {
  margin: 18px;
  border: 1px solid #bfd6c7;
  border-radius: 14px;
  padding: 14px;
  background: #eef8f1;
}

.service-tracker-zone {
  border-color: #c9d8df;
  background: #eef7f8;
}

.service-tracker-zone .culture-calendar-titlebar span {
  color: #2f7885;
}

.service-tracker-sheet .culture-evidence-strip strong {
  border-color: #c8dce2;
  background: #eef8fa;
  color: #2f7885;
}

.reference-list-zone {
  border-color: #d9d2e6;
  background: #f6f3fb;
}

.reference-list-zone .culture-calendar-titlebar span {
  color: #6d5a8d;
}

.reference-list-sheet .culture-evidence-strip strong {
  border-color: #ddd5eb;
  background: #f7f3fb;
  color: #6d5a8d;
}

.culture-calendar-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.culture-calendar-titlebar div {
  display: grid;
  gap: 3px;
}

.culture-calendar-titlebar span {
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.culture-calendar-titlebar strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.culture-calendar-row {
  display: grid;
  grid-template-columns: 84px 1.25fr 1.2fr 1.4fr;
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid #e4ebe6;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.service-tracker-row {
  grid-template-columns: 84px 1.15fr 1fr 1fr 1fr;
}

.reference-list-row {
  grid-template-columns: 1.1fr 1fr 1fr 1.25fr 1fr;
}

.culture-calendar-row span,
.culture-calendar-row strong {
  display: block;
  min-width: 0;
}

.culture-calendar-row strong {
  color: var(--ink);
  font-weight: 950;
}

.culture-calendar-row.example {
  background: #fbfcfa;
}

.culture-calendar-row small {
  display: inline-block;
  margin-top: 4px;
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.template-row-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.template-row-actions .text-button {
  min-height: 0;
  padding: 4px 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  box-shadow: none;
}

.template-row-actions .danger-text-button {
  color: #b53a2f;
}

.culture-calendar-empty {
  display: grid;
  gap: 3px;
  border: 1px dashed #c9d8cf;
  border-radius: 10px;
  margin: 12px 14px;
  padding: 14px;
  background: #fbfcfa;
}

.culture-calendar-empty strong {
  color: var(--ink);
  font-size: 13px;
}

.culture-calendar-empty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.culture-calendar-head {
  border-bottom: 1px solid #b8d1c1;
  background: #dcefe3;
  color: #245f3c;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.culture-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr);
  gap: 14px;
  margin: 8px 18px 16px;
  border: 1px solid #dce9df;
  border-radius: 12px;
  padding: 14px;
  background: #fbfcfa;
}

.culture-detail-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.culture-detail-card.empty {
  border-style: dashed;
}

.culture-detail-card ul {
  margin: 0;
  padding-left: 18px;
}

.culture-evidence-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 18px 18px;
  background: #ffffff;
}

.culture-evidence-strip strong {
  border: 1px solid #cfe1d4;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
}

.faq-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.faq-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #ffffff;
}

.faq-panel details {
  border: 1px solid #e0e6e2;
  border-radius: 9px;
  background: #fbfcfa;
}

.faq-panel details + details {
  margin-top: 8px;
}

.faq-panel summary {
  cursor: pointer;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.faq-panel details[open] summary {
  color: var(--green);
}

.faq-panel p {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.48;
}

.culture-event-card {
  width: min(1040px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  max-height: calc(100vh - 24px);
  padding: 18px;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-culture-event-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.modal-culture-event-form > * {
  min-width: 0;
  max-width: 100%;
}

.modal-culture-event-form label,
.modal-culture-event-form label:nth-of-type(3),
.modal-culture-event-form .culture-attendance-field,
.modal-culture-event-form .culture-media-field,
.modal-culture-event-form .culture-notes-field,
.modal-culture-event-form .culture-outcome-field,
.modal-culture-event-form > .primary-button {
  grid-column: 1 / -1;
}

.modal-culture-event-form button {
  margin-top: 2px;
}

.culture-event-card .modal-head {
  gap: 12px;
}

.culture-event-card .modal-head h2 {
  font-size: 20px;
}

.culture-event-card menu {
  margin-top: 10px;
}

.packet-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.packet-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f5f7f2;
}

.pdf-delivery-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #b9dcc8;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.pdf-delivery-banner > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-delivery-banner svg {
  width: 18px;
  height: 18px;
}

.pdf-print-action {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.pdf-preview-shell {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e9ece7;
}

.pdf-page {
  display: grid;
  gap: 16px;
  width: min(8.5in, 100%);
  min-height: 11in;
  box-sizing: border-box;
  margin: 0 auto;
  padding: .55in;
  border: 1px solid #d9ded5;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 32, 29, .12);
}

.pdf-cover-page {
  min-height: 11in;
  align-content: space-between;
}

.pdf-cover-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.pdf-cover-top div {
  display: grid;
  gap: 2px;
}

.pdf-cover-top strong {
  font-size: 18px;
}

.pdf-cover-top span:not(.brand-mark) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pdf-cover-title {
  display: grid;
  gap: 8px;
  max-width: 560px;
}

.pdf-cover-title p {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pdf-cover-title h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
}

.pdf-cover-title span {
  color: var(--muted);
  font-weight: 800;
}

.pdf-meta-grid,
.pdf-summary-grid,
.pdf-appendix-grid,
.pdf-signature-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pdf-meta-grid div,
.pdf-summary-grid div,
.pdf-appendix-grid div,
.pdf-signature-block div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.pdf-meta-grid span,
.pdf-appendix-grid span,
.pdf-signature-block span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdf-meta-grid strong,
.pdf-appendix-grid strong,
.pdf-signature-block strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.pdf-page-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.pdf-page-head span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--nav);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.pdf-page-head h3 {
  margin: 0;
  font-size: 18px;
}

.pdf-lede {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.pdf-summary-grid div {
  align-content: start;
}

.pdf-summary-grid span,
.pdf-summary-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pdf-case-deep-dive {
  display: grid;
  gap: 14px;
}

.pdf-case-deep-dive article {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.pdf-case-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.pdf-case-date strong {
  color: var(--ink);
  font-size: 14px;
}

.pdf-case-date time {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.pdf-case-date span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.pdf-case-body {
  display: grid;
  gap: 12px;
}

.pdf-case-body h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.pdf-case-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdf-case-topline span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f0f3ed;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

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

.pdf-case-analysis div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pdf-case-analysis div:nth-child(2),
.pdf-case-analysis div:nth-child(3),
.pdf-case-analysis div:nth-child(8),
.pdf-case-analysis div:nth-child(9) {
  grid-column: 1 / -1;
}

.pdf-case-analysis span,
.pdf-appendix-list span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdf-case-analysis strong {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.pdf-supporting-docs {
  display: grid;
  gap: 10px;
}

.pdf-audit-list {
  display: grid;
  gap: 14px;
}

.pdf-audit-list article {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.pdf-audit-list h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.pdf-audit-list article > div {
  display: grid;
  gap: 3px;
  padding-left: 10px;
  border-left: 3px solid #b8d4bd;
}

.pdf-audit-list span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdf-audit-list strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.pdf-supporting-docs article {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.pdf-supporting-docs article > div:first-child {
  display: grid;
  gap: 4px;
}

.pdf-supporting-docs strong {
  color: var(--ink);
  font-size: 15px;
}

.pdf-supporting-docs span,
.pdf-doc-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.pdf-supporting-docs p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.pdf-attachment-section {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.pdf-attachment-section > span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdf-attachment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
}

.pdf-attachment-grid article {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 9px;
  border: 1px solid #dfe8dd;
  border-radius: 8px;
  background: #fff;
}

.pdf-attachment-grid article > div:not(.packet-attachment-thumb) {
  display: grid;
  gap: 2px;
}

.pdf-attachment-grid strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
}

.pdf-attachment-grid small,
.pdf-attachment-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.packet-attachment-thumb {
  display: grid;
  place-items: center;
  min-height: 78px;
  overflow: hidden;
  border: 1px solid #dbe7df;
  border-radius: 7px;
  background: linear-gradient(135deg, #edf6ef, #fbfcfa);
}

.packet-attachment-thumb.photo {
  background:
    linear-gradient(135deg, rgba(31, 139, 85, .16), rgba(19, 45, 35, .06)),
    repeating-linear-gradient(45deg, rgba(31, 139, 85, .12) 0 10px, transparent 10px 20px);
}

.packet-attachment-thumb.receipt {
  background:
    linear-gradient(#fff, #fff) padding-box,
    repeating-linear-gradient(0deg, #dfe8dd 0 1px, transparent 1px 12px);
}

.packet-attachment-thumb.pdf,
.packet-attachment-thumb.csv,
.packet-attachment-thumb.audio,
.packet-attachment-thumb.file {
  background: #f4f7f2;
}

.packet-attachment-thumb img {
  width: 100%;
  height: 86px;
  object-fit: cover;
}

.packet-attachment-thumb span {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 36px;
  border: 1px solid #cfe0d2;
  border-radius: 6px;
  background: rgba(255, 255, 255, .9);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdf-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdf-doc-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f0f3ed;
}

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

.pdf-appendix-list > div {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.pdf-appendix-list h4 {
  margin: 0;
  font-size: 15px;
}

.pdf-appendix-list p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

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

.pdf-status-title {
  margin: 4px 0 -6px;
  font-size: 14px;
}

.single-record-export-card {
  width: min(980px, calc(100vw - 28px));
  max-height: min(90vh, 920px);
}

#singleRecordExportPreview {
  max-height: 62vh;
  overflow: auto;
  border-radius: 8px;
}

.single-record-report .pdf-page {
  width: min(8.5in, 100%);
  min-height: 11in;
  box-sizing: border-box;
  padding: .55in;
}

@media print {
  @page {
    size: letter;
    margin: 0;
  }

  body:has(#singleRecordExportDialog[open]) > *:not(#singleRecordExportDialog) {
    display: none !important;
  }

  #singleRecordExportDialog[open] {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    padding: 0;
    border: 0;
    background: #fff;
  }

  #singleRecordExportDialog[open]::backdrop,
  #singleRecordExportDialog[open] .modal-head,
  #singleRecordExportDialog[open] .pin-hint,
  #singleRecordExportDialog[open] menu {
    display: none !important;
  }

  #singleRecordExportDialog[open] .modal-card,
  #singleRecordExportPreview {
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .single-record-report {
    padding: 0;
    border: 0;
    background: #fff;
  }

  .single-record-report .pdf-page {
    width: 8.5in;
    min-height: 11in;
    margin: 0;
    padding: .55in;
    box-shadow: none;
    box-sizing: border-box;
    page-break-after: always;
  }

  .pdf-preview-shell {
    padding: 0;
    border: 0;
    background: #fff;
  }

  .pdf-preview-shell .pdf-page {
    width: 8.5in;
    min-height: 11in;
    margin: 0;
    padding: .55in;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
    page-break-after: always;
  }

  body.packet-printing > * {
    visibility: hidden !important;
  }

  body.packet-printing #customPdfPreview,
  body.packet-printing #customPdfPreview * {
    visibility: visible !important;
  }

  body.packet-printing #customPdfPreview {
    position: absolute;
    inset: 0 auto auto 0;
    width: 8.5in;
    padding: 0;
  }

  body.packet-printing .pdf-delivery-banner,
  body.packet-printing .pdf-print-action {
    display: none !important;
  }
}

.mobile-preview .pdf-preview-shell {
  padding: 10px;
}

.mobile-preview .pdf-page {
  min-height: 0;
  padding: 18px;
}

.mobile-preview .pdf-cover-title h2 {
  font-size: 26px;
}

.mobile-preview .pdf-meta-grid,
.mobile-preview .pdf-summary-grid,
.mobile-preview .pdf-appendix-grid,
.mobile-preview .pdf-signature-block,
.mobile-preview .pdf-case-deep-dive article {
  grid-template-columns: 1fr;
}

.packet-review-layout {
  display: grid;
  gap: 14px;
}

.packet-material-workspace {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.packet-material-workspace[hidden] {
  display: none;
}

.packet-material-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

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

.packet-builder-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 8px;
  align-items: stretch;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
}

.packet-builder-toolbar .toolbar-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid #d5e2d9;
  border-radius: 8px;
  background: #fff;
  padding: 0 11px;
}

.packet-builder-toolbar .toolbar-search-field svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--muted);
  stroke-width: 2.4;
}

.packet-builder-toolbar .toolbar-search-field input {
  min-height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.compact-search-button {
  min-height: 42px;
  padding: 0 14px;
}

.library-toolbar-button.active,
.library-toolbar-button.ask-button.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.packet-builder-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 12px;
}

.packet-builder-panel[hidden] {
  display: none;
}

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

.packet-ask-actions,
.packet-options-row,
.packet-active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.packet-options-row {
  padding: 12px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fbfdfb;
}

.packet-options-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.packet-options-row input {
  accent-color: var(--green);
}

.packet-notes-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.packet-notes-field textarea {
  min-height: 76px;
  margin-top: 2px;
}

.packet-material-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .8fr);
  gap: 16px;
  align-items: start;
}

.packet-material-grid > div:first-child {
  display: grid;
  gap: 12px;
}

.packet-step-label {
  display: grid;
  gap: 3px;
  padding: 4px 0 0;
}

.packet-step-label span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.packet-step-label p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.packet-material-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 2px 0 0;
}

.packet-material-head strong {
  color: var(--ink);
  font-size: 14px;
}

.packet-material-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.packet-outside-docs-section {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid #dce7df;
}

.packet-candidate-list,
.packet-contents-list {
  display: grid;
  gap: 8px;
  min-height: 44px;
}

.packet-candidate-list {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
  scroll-padding: 8px;
}

.packet-candidate-list::-webkit-scrollbar {
  width: 8px;
}

.packet-candidate-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cfe1d4;
}

.packet-contents-list {
  max-height: 265px;
  overflow-y: auto;
  padding-right: 4px;
  scroll-padding: 8px;
}

.packet-contents-list::-webkit-scrollbar {
  width: 8px;
}

.packet-contents-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cfe1d4;
}

.packet-candidate-card,
.packet-content-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.packet-candidate-card.selected {
  border-color: rgba(41, 122, 77, .35);
  background: var(--green-soft);
}

.packet-candidate-card label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  cursor: pointer;
}

.packet-candidate-card input {
  margin-top: 3px;
  accent-color: var(--green);
}

.packet-candidate-card b {
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.packet-candidate-card strong,
.packet-content-row strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
}

.packet-candidate-card small,
.packet-content-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.packet-candidate-card p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}

.packet-candidate-card em {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.packet-candidate-card .packet-candidate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.packet-candidate-card .packet-candidate-meta span {
  border-radius: 999px;
  background: #f3f7f4;
  color: var(--muted);
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 850;
}

.packet-contents-panel {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.packet-contents-panel .packet-material-head {
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf3ef;
}

.packet-source-status {
  display: grid;
  gap: 8px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 12px;
}

.packet-source-status[hidden] {
  display: none !important;
}

.packet-source-status > div:first-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.packet-source-status > div:first-child strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.packet-source-status > div:first-child span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.packet-source-status-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid #e1e9e3;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.packet-source-status-row > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f4fbf6;
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
}

.packet-source-status-row.needed > span {
  background: #fff7e8;
  color: #8a4f18;
}

.packet-source-status-row strong,
.packet-source-status-row small {
  display: block;
}

.packet-source-status-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.packet-source-status-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.packet-template-addons {
  display: grid;
  gap: 10px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 12px;
}

.packet-template-addons > div:first-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.packet-template-addons strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.packet-template-addons span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.packet-template-addon-list {
  display: grid;
  gap: 8px;
}

.packet-template-addon {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid #e1e9e3;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  cursor: pointer;
}

.packet-template-addon.selected {
  border-color: rgba(41, 122, 77, .35);
  background: var(--green-soft);
}

.packet-template-addon input {
  margin-top: 3px;
  accent-color: var(--green);
}

.packet-template-addon strong,
.packet-template-addon small {
  display: block;
}

.packet-template-addon small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.packet-content-footer-actions {
  justify-content: stretch;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #edf3ef;
}

.packet-content-footer-actions .primary-button,
.packet-content-footer-actions .secondary-button {
  flex: 1 1 140px;
}

.packet-content-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.packet-history-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

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

.packet-history-head span:first-child {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.packet-history-head strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.packet-history-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

#packetHistoryCount {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 950;
}

.packet-history-list {
  display: grid;
  gap: 8px;
}

.packet-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.packet-history-card strong,
.packet-history-card small,
.packet-history-card p {
  display: block;
}

.packet-history-card strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.packet-history-card small,
.packet-history-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.packet-history-card > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.packet-history-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.packet-content-row > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
}

.packet-content-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.packet-duplicate-warning {
  grid-column: 1 / -1;
  border-radius: 6px;
  background: #fff7e8;
  color: #8a4f18;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 850;
}

.packet-review-summary {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.packet-review-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.packet-review-summary .custom-complaint-summary {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.packet-count-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 9px 10px;
  border: 1px solid #cfe1d4;
  border-radius: 8px;
  background: #f4fbf6;
}

.packet-count-summary strong {
  color: var(--green);
  font-size: 13px;
}

.packet-count-summary span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.packet-review-section-label {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: var(--green-soft);
}

.packet-review-section-label[hidden] {
  display: none;
}

.packet-review-section-label span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.packet-review-section-label p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.packet-search-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.packet-search-pills span {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

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

.form-status {
  min-height: 18px;
  margin: 0;
  color: #8a4f18;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.packet-review-item {
  display: grid;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.packet-review-item span {
  display: grid;
  gap: 4px;
}

.match-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.direct-match {
  background: #eaf6ef;
  color: var(--green);
}

.supporting-match {
  margin-right: 6px;
  background: #eef3f8;
  color: #35506a;
}

.packet-review-item em,
.packet-review-item small {
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.packet-review-item em {
  font-size: 12px;
  font-weight: 800;
}

.packet-review-item small {
  font-size: 12px;
}

.case-file-preview {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.case-file-preview h4 {
  margin: 0;
  font-size: 13px;
}

.case-file-preview-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f5f7f2;
}

.case-file-preview-main {
  display: grid;
  gap: 4px;
}

.case-file-preview-row span,
.case-file-preview-row p,
.case-file-preview-row small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.case-file-preview-row small {
  color: var(--green);
  font-weight: 800;
}

.case-file-preview-row .case-file-brief {
  color: var(--ink);
  font-weight: 850;
}

.case-file-actions {
  display: grid;
  gap: 6px;
}

.case-file-preview-row.removed {
  opacity: .55;
}

.case-file-preview-row.removed strong,
.case-file-preview-row.removed span,
.case-file-preview-row.removed p {
  text-decoration: line-through;
}

.case-file-preview-row.removed button {
  pointer-events: none;
}

.packet-supporting-sources {
  display: grid;
  gap: 10px;
}

.packet-supporting-head {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #d9e8df;
  border-radius: 8px;
  background: #f8fcf9;
}

.packet-supporting-head span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.packet-supporting-head strong {
  color: var(--ink);
  font-size: 15px;
}

.packet-supporting-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.packet-supporting-list {
  display: grid;
  gap: 8px;
}

.packet-supporting-list article {
  display: grid;
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.packet-supporting-list article.removed {
  opacity: .55;
}

.packet-supporting-list article.removed strong,
.packet-supporting-list article.removed span,
.packet-supporting-list article.removed p,
.packet-supporting-list article.removed small {
  text-decoration: line-through;
}

.packet-supporting-list article.removed button {
  pointer-events: none;
}

.packet-source-group-head,
.packet-supporting-list div {
  display: grid;
  gap: 4px;
}

.packet-supporting-list strong {
  color: var(--ink);
  font-size: 13px;
}

.packet-supporting-list span,
.packet-supporting-list p,
.packet-supporting-list small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.packet-supporting-list small {
  color: var(--green);
  font-weight: 800;
}

.packet-source-match-list {
  display: grid;
  gap: 7px;
}

.packet-source-match {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #dfe8dd;
  border-radius: 8px;
  background: #fbfcfa;
}

.packet-source-match.removed {
  opacity: .52;
}

.packet-source-match.removed .packet-source-match-copy strong,
.packet-source-match.removed .packet-source-match-copy span,
.packet-source-match.removed .packet-source-match-copy small {
  text-decoration: line-through;
}

.packet-source-match-copy {
  display: grid;
  gap: 3px;
}

.packet-source-match-copy span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.packet-source-match-copy strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.packet-source-match-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.packet-source-match-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.mini-button.remove-button {
  border-color: #e2b8b2;
  background: #fff5f3;
  color: #a33a2d;
}

.mini-button.remove-button:hover {
  border-color: #c44a3a;
  background: #fde7e3;
  color: #8f2f24;
}

.packet-source-match.removed .mini-button.remove-button,
.packet-supporting-list article.removed .mini-button.remove-button {
  border-color: #d8ded5;
  background: #f4f6f1;
  color: var(--muted);
}

.packet-source-compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid #dfe8dd;
  border-radius: 8px;
  background: #fbfcfa;
}

.packet-source-compact-row > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.packet-source-compact-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.source-match-review-card {
  width: min(860px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
}

.source-match-review-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.source-match-review-list {
  display: grid;
  gap: 8px;
  max-height: min(510px, calc(100vh - 230px));
  overflow-y: auto;
  padding-right: 4px;
}

.source-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dfe8dd;
  border-radius: 8px;
  background: #fbfcfa;
}

.source-review-row.removed {
  opacity: .55;
}

.source-review-row.removed .source-review-copy strong,
.source-review-row.removed .source-review-copy span,
.source-review-row.removed .source-review-copy small {
  text-decoration: line-through;
}

.source-review-copy {
  display: grid;
  gap: 4px;
}

.source-review-copy span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-review-copy strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.source-review-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.source-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

@media (max-width: 720px) {
  .packet-source-compact-row,
  .source-review-row {
    grid-template-columns: 1fr;
  }

  .source-review-actions,
  .packet-source-compact-row .mini-button {
    justify-content: flex-start;
  }

  .source-match-review-card {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }
}

.source-preview-card {
  width: min(680px, calc(100vw - 28px));
}

.source-preview-body {
  display: grid;
  gap: 12px;
}

.source-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.source-preview-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.source-preview-document {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.source-preview-document .packet-attachment-thumb {
  min-height: 102px;
}

.source-preview-document > div:not(.packet-attachment-thumb),
.source-preview-document > figure + div {
  display: grid;
  gap: 4px;
}

.source-preview-document strong {
  color: var(--ink);
  font-size: 15px;
}

.source-preview-document small,
.source-preview-document p,
#sourcePreviewSummary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pdf-source-found-list {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dfe8dd;
  border-radius: 8px;
  background: #fff;
}

.pdf-source-found-list > span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdf-source-found-list div {
  display: grid;
  gap: 2px;
  padding-left: 8px;
  border-left: 3px solid #b8d4bd;
}

.pdf-source-found-list strong {
  color: var(--ink);
  font-size: 12px;
}

.pdf-source-found-list small {
  color: var(--muted);
  font-size: 10px;
}

.mobile-preview .case-file-preview-row {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.mobile-preview .packet-supporting-list article {
  grid-template-columns: 1fr;
}

.case-preview-card {
  display: grid;
  gap: 12px;
}

.case-preview-body {
  display: grid;
  gap: 10px;
}

.case-preview-body p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.case-preview-gps,
.case-preview-snippet {
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.case-preview-gps {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.case-preview-snippet {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.tutorial-card {
  display: grid;
  gap: 12px;
}

.tutorial-body {
  display: grid;
  gap: 12px;
}

.tutorial-body p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.tutorial-focus {
  padding: 12px;
  border: 1px solid #b9dcc8;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.packet-review-actions {
  display: flex;
  justify-content: flex-end;
}

.mobile-preview .packet-review-actions .primary-button {
  width: 100%;
}

.staff-layout {
  grid-template-columns: minmax(480px, 1fr) minmax(260px, 350px);
}

.staff-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin-top: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.staff-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.staff-tabs .selected {
  background: var(--nav);
  color: #fff;
}

.staff-panel[hidden] {
  display: none;
}

.manage-staff-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.manage-roster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mobile-preview .manage-roster-grid {
  grid-template-columns: 1fr;
  gap: 22px;
}

.mobile-preview .manage-staff-card {
  padding: 18px;
}

.sync-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  align-items: start;
}

.sync-card label {
  display: grid;
  gap: 8px;
  margin: 0;
}

.sync-card input {
  min-height: 44px;
}

.sync-card .manage-actions {
  margin-top: 2px;
}

.sync-card .primary-button {
  min-height: 44px;
  width: fit-content;
}

.sync-card .form-help {
  max-width: 760px;
  margin: 0;
}

.url-update-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  margin-bottom: 2px;
}

.url-update-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.manage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.manage-head h3,
.manage-head p {
  margin-bottom: 0;
}

.manage-head p {
  color: var(--muted);
}

.manage-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.quick-add {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-preview .quick-add {
  grid-template-columns: 1fr;
}

.mobile-preview .quick-add input,
.mobile-preview .quick-add button {
  width: 100%;
}

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

.manage-dropdown {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.manage-dropdown summary {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.manage-dropdown .manage-list {
  margin-top: 10px;
}

.scroll-list {
  max-height: 174px;
  overflow-y: auto;
  padding-right: 4px;
}

.manage-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.manage-row.editing {
  grid-template-columns: 1fr;
}

.manage-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

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

.mobile-preview .manage-row {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.mobile-preview .manage-row-actions {
  justify-content: flex-start;
}

.edit-button,
.delete-button {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.edit-button {
  background: var(--green-soft);
  color: var(--green);
}

.delete-button {
  background: #fff1ef;
  color: var(--red);
}

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

.staff-control-dropdown {
  margin: 0;
}

.staff-filter-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
}

.staff-control-dropdown summary {
  width: fit-content;
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--nav);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.staff-picker.compact {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin-top: 10px;
}

.staff-pick {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.staff-pick span {
  color: var(--muted);
  font-size: 12px;
}

.permissions-table {
  overflow: hidden;
}

.table-row,
.staff-row {
  display: grid;
  grid-template-columns: .95fr repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child,
.staff-row:last-child {
  border-bottom: 0;
}

.table-row.header {
  min-height: 42px;
  background: #edf1ed;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.table-row label,
.staff-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.staff-identity {
  display: grid;
  gap: 4px;
}

.staff-identity span {
  color: var(--muted);
  font-size: 12px;
}

.note-item {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.note-item span {
  color: var(--muted);
  font-size: 12px;
}

dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
  overflow: auto;
}

dialog::backdrop {
  background: rgba(16, 25, 22, .45);
}

#cultureEventDialog,
#serviceEventDialog,
#referenceDialog {
  width: min(1080px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  overflow-x: hidden;
}

.modal-card {
  padding: 20px;
}

.risk-help-card {
  max-width: min(760px, calc(100vw - 28px));
}

.audit-help-card {
  width: min(540px, calc(100vw - 24px));
}

.risk-help-lede,
.risk-help-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.risk-help-note {
  border: 1px solid #b9dcc8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f1faf5;
  color: var(--green);
}

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

.audit-help-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
}

.audit-help-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.audit-help-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

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

.risk-stage-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fbfcfa;
}

.risk-stage-grid article:last-child {
  grid-column: 1 / -1;
}

.risk-stage-grid span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
}

.risk-stage-grid strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.risk-stage-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.risk-score-guide {
  display: grid;
  gap: 8px;
}

.risk-score-guide h3 {
  margin: 0;
  font-size: 15px;
}

.risk-score-guide div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.risk-score-guide span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mobile-preview dialog {
  width: min(390px, calc(100vw - 34px));
}

.mobile-preview #eventDialog {
  width: min(390px, calc(100vw - 14px));
  height: min(760px, calc(100dvh - 14px));
  max-height: calc(100dvh - 14px);
  overflow: hidden;
}

.mobile-preview .risk-stage-grid {
  grid-template-columns: 1fr;
}

.mobile-preview .risk-stage-grid article:last-child {
  grid-column: auto;
}

.mobile-preview .modal-card {
  padding: 16px;
}

.mobile-preview #eventDialog .modal-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 14px);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 14px 14px 0;
}

.mobile-preview #eventDialog .modal-head {
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 12px;
  padding: 2px 2px 10px 0;
}

.mobile-preview #eventDialog .modal-head .icon-button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin: 2px 2px 0 10px;
  border-color: #d6e2dc;
  background: #f3f7f4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.mobile-preview #eventDialog .modal-head .icon-button svg {
  width: 16px;
  height: 16px;
}

.mobile-preview #cultureEventDialog,
.mobile-preview #serviceEventDialog,
.mobile-preview #referenceDialog,
.mobile-preview #mobileSupportQuickAddDialog {
  width: min(420px, calc(100vw - 14px));
  max-width: calc(100vw - 14px);
}

.mobile-preview .culture-event-card {
  width: 100%;
  max-width: 100%;
  padding: 14px;
}

.mobile-preview #eventDialog:has(.modal-card.path-choice-active) {
  width: min(340px, calc(100vw - 44px));
  height: fit-content !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.mobile-preview #eventDialog .modal-card.path-choice-active {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 18px;
  overflow: visible;
}

.mobile-preview #eventDialog .modal-card.path-choice-active .mobile-record-paths {
  grid-template-columns: 1fr;
  gap: 8px;
}

.mobile-preview #eventDialog .modal-card.path-choice-active .mobile-record-path {
  min-height: 66px;
  grid-template-columns: 26px 1fr;
  justify-items: start;
  align-items: center;
  padding: 12px 14px;
  text-align: left;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.warning-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 8px;
  background: #eef7f6;
  color: var(--teal);
  font-weight: 800;
}

.pack-confirm-step {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.pack-confirm-step > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pack-confirm-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pack-confirm-step strong {
  text-align: right;
  font-size: 13px;
}

.pack-confirm-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pack-select-heading {
  display: grid;
  gap: 3px;
  padding-top: 2px;
}

.pack-select-heading strong {
  text-align: left;
  color: var(--ink);
  font-size: 13px;
}

.pack-select-heading span {
  color: var(--muted);
  font-size: 12px;
}

.pack-options {
  display: grid;
  gap: 8px;
}

.pack-options label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.pack-options label.ai-suggested {
  border-color: #b9dcc8;
  background: #f1faf5;
}

.pack-options input {
  width: 16px;
  height: 16px;
}

.pack-options em {
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.photo-source-card {
  display: grid;
  gap: 14px;
}

.audio-capture-card {
  display: grid;
  gap: 12px;
}

.witness-capture-card {
  display: grid;
  gap: 12px;
}

.audio-record-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.audio-record-status {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f7f2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.audio-record-status[data-tone="recording"] {
  background: #fff1ef;
  color: var(--red);
}

.audio-record-status[data-tone="ready"] {
  background: #f1faf5;
  color: var(--green);
}

.audio-record-status[data-tone="warn"] {
  background: #fff8e8;
  color: #8b641e;
}

.audio-record-status[data-tone="error"] {
  background: #fff1ef;
  color: var(--red);
}

#audioPlayback {
  width: 100%;
}

.audio-focus-picker {
  display: grid;
  gap: 8px;
}

.audio-focus-picker > span,
.audio-focus-picker summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.audio-focus-picker details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.audio-focus-picker summary {
  cursor: pointer;
}

.audio-focus-list {
  display: grid;
  gap: 8px;
  max-height: 112px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 4px;
}

.audio-focus-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--ink);
  font-size: 13px;
}

.witness-gps-note {
  border: 1px solid #b9dcc8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f1faf5;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.witness-picker .audio-focus-list {
  max-height: 112px;
}

.saved-drafts-modal {
  display: grid;
  gap: 12px;
  max-height: min(720px, 86vh);
}

.saved-draft-list {
  display: grid;
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.saved-draft-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.saved-draft-card.active {
  border-color: #7fcfa9;
  background: #f1faf5;
}

.saved-draft-card strong,
.saved-draft-card span,
.saved-draft-card p {
  overflow-wrap: anywhere;
}

.saved-draft-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.saved-draft-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.saved-draft-card p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.saved-draft-meta {
  display: grid;
  gap: 5px;
}

.photo-source-options {
  display: grid;
  gap: 10px;
}

.source-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.source-option svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.pin-card {
  display: grid;
  gap: 12px;
}

.pin-hint {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.app-build-note {
  margin: -4px 0 0;
  font-size: 10px;
  opacity: 0.58;
}

body:not([data-prototype-unlock="true"]) .prototype-only {
  display: none !important;
}

.acknowledgment-card {
  display: grid;
  gap: 14px;
  width: min(680px, calc(100vw - 32px));
}

.ack-summary-preview,
.ack-recipient-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.ack-summary-preview > span,
.ack-recipient-section span:first-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ack-summary-preview dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.ack-summary-preview dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
}

.ack-summary-preview dt,
.ack-summary-preview dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.ack-summary-preview dt {
  color: var(--muted);
  font-weight: 900;
}

.ack-summary-preview dd {
  color: var(--ink);
  font-weight: 800;
}

.ack-summary-preview p {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.ack-recipient-list {
  display: grid;
  gap: 8px;
  max-height: 250px;
  overflow: auto;
}

.ack-recipient-row {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) minmax(220px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ack-recipient-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.ack-recipient-row strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.ack-recipient-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.ack-recipient-email {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
}

.ack-send-status {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff6e6;
  color: #7d612d;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .ack-recipient-row {
    grid-template-columns: auto 1fr;
  }

  .ack-recipient-email {
    grid-column: 2;
  }
}

.pin-error {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1ef;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.account-status[data-tone="info"] {
  background: #eef8f1;
  color: #286d45;
}

.account-status[data-tone="error"] {
  background: #fff1ef;
  color: var(--red);
}

menu {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}

@media (max-width: 1180px) {
  .case-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

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

  .culture-calendar-row {
    grid-template-columns: 70px 1fr 1fr 1fr;
  }

  .culture-calendar-row span:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
  }

  .nav-group {
    display: contents;
  }

  .nav-group-label {
    display: none;
  }

  .nav-item {
    justify-content: center;
  }

  .nav-item span {
    display: none;
  }

  .workspace {
    padding: 18px;
  }

  .culture-event-form,
  .culture-detail-card {
    grid-template-columns: 1fr;
  }

  .culture-attendee-list {
    grid-template-columns: 1fr;
  }

  .culture-calendar-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  h1 {
    font-size: 21px;
  }

  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .case-controls {
    width: 100%;
  }

  .case-controls button,
  .roster-filter,
  .roster-toggle {
    flex: 1;
  }

  .player-list {
    width: calc(100vw - 36px);
    max-height: 58vh;
  }

  .top-actions {
    width: 100%;
  }

  .case-grid,
  .capture-board,
  .investigation-layout,
  .staff-layout,
  .staff-picker,
  .manage-roster-grid,
  .quick-add,
  .proof-grid,
  .proof-filters,
  .records-library-filters,
  .records-library-toolbar,
  .packet-material-grid,
  .record-entry-options,
  .staff-workflow-grid,
  .staff-workflow-preview,
  .record-library-card,
  .record-detail-grid {
    grid-template-columns: 1fr;
  }

  .smart-entry-methods,
  .smart-search-methods,
  .smart-plan-grid,
  .smart-people-groups,
  .smart-date-shortcuts,
  .packet-builder-toolbar,
  .packet-details-grid,
  .compact-filter-grid,
  .smart-plan-topics .smart-edit-list {
    grid-template-columns: 1fr;
  }

  .packet-summary-card {
    align-items: stretch;
    flex-direction: column;
  }

  .packet-summary-card .secondary-button,
  .packet-content-footer-actions .primary-button,
  .packet-content-footer-actions .secondary-button {
    width: 100%;
  }

  .smart-edit-list,
  .smart-date-edit,
  .source-list {
    grid-template-columns: 1fr;
  }

  .record-library-type-options {
    grid-template-columns: 1fr;
  }

  .record-library-meta,
  .record-detail-actions {
    justify-items: start;
    justify-content: flex-start;
  }

  .record-library-actions,
  .packet-material-toolbar,
  .record-detail-head {
    flex-wrap: wrap;
  }

  .packet-contents-panel {
    position: static;
  }

  .case-detail {
    grid-column: auto;
  }

  .capture-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .table-row,
  .staff-row {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .table-row.header {
    display: none;
  }
}

@media (max-width: 560px) {
  .public-nav {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 16px;
  }

  .public-nav nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: .85rem;
  }

  .public-nav-actions,
  .public-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .public-main {
    gap: 34px;
    padding: 22px 16px 44px;
  }

  .public-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .public-product-panel {
    margin-left: 0;
  }

  .public-hero h1 {
    font-size: 3.4rem;
  }

  .product-card-row,
  .phone-demo-shell,
  .before-after-grid,
  .public-feature-grid,
  .pricing-grid,
  .public-faq-grid,
  .public-proof {
    grid-template-columns: 1fr;
  }

  .phone-demo-shell {
    padding: 16px;
  }

  .phone-demo-copy .secondary-link {
    justify-self: stretch;
  }

  .public-proof {
    padding: 20px;
  }

  .public-footer {
    display: grid;
    gap: 10px;
    padding: 14px 16px 16px;
  }

  .public-footer-brand {
    display: grid;
    gap: 6px;
  }

  .public-footer nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 20px;
  }

  .tagline {
    font-size: 11px;
  }

  .case-hero,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .case-snapshot-head {
    align-items: flex-start;
  }

  .snapshot-timeline .timeline-item {
    grid-template-columns: 58px 1fr;
  }

  .risk-panel,
  .capture-preview dl > div,
  .capture-summary div {
    align-items: flex-start;
    flex-direction: column;
  }

  dd,
  .capture-summary strong {
    text-align: left;
  }
}

body.public-site .app-lock-screen,
body.public-site .app-shell,
body.public-site dialog {
  display: none !important;
}

body.public-site {
  display: block !important;
  padding: 0 !important;
}

.drive-setup-card {
  max-width: 680px;
}

.drive-setup-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.drive-setup-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 14px;
  padding: 12px 14px;
}

.drive-setup-status[data-tone="success"] {
  background: #e8f7ef;
  border-color: #b9dec8;
  color: var(--green);
}

.drive-setup-status[data-tone="warning"] {
  background: #fff8e7;
  border-color: #ecd69d;
  color: #8a6419;
}

.drive-setup-status[data-tone="error"] {
  background: #fff0ef;
  border-color: #edc2bf;
  color: #b54038;
}

.drive-index-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
}

.drive-index-preview > strong {
  font-size: 13px;
}

.drive-index-preview > div {
  display: grid;
  gap: 8px;
}

.drive-index-preview article {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px;
}

.drive-index-preview article span,
.drive-index-preview article small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
