:root {
  --ink: #f5f7f9;
  --navy: #171a1e;
  --navy-2: #22262b;
  --panel: rgba(229, 233, 237, 0.92);
  --panel-strong: #f6f7f8;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(30, 34, 39, 0.14);
  --text: #171a1e;
  --muted: #67707a;
  --chrome: #c9cfd7;
  --chrome-soft: #edf0f3;
  --silver: #d7dce2;
  --silver-2: #f3f5f6;
  --steel: #3a4048;
  --green: var(--chrome);
  --mint: var(--silver);
  --coral: #1d1d20;
  --amber: var(--chrome-soft);
  --blue: var(--steel);
  --danger: #7f1d1d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  --soft-shadow: 0 18px 50px rgba(8, 8, 9, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 11% 0%, rgba(255, 255, 255, 0.94), transparent 30%),
    radial-gradient(circle at 78% 10%, rgba(245, 238, 252, 0.58), transparent 28%),
    radial-gradient(circle at 18% 88%, rgba(236, 248, 246, 0.46), transparent 34%),
    linear-gradient(135deg, #fbfcfd 0%, #edf0f3 28%, #d9dee5 58%, #f8fafb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.home-gate {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 32px;
  color: #171a1f;
}

.home-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 14%, rgba(255, 255, 255, 0.44) 30%, transparent 44%),
    linear-gradient(68deg, transparent 0 55%, rgba(255, 255, 255, 0.28) 68%, transparent 82%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 86%);
}

.landing-gate {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 32px;
  color: #171a1f;
}

.landing-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 14%, rgba(255, 255, 255, 0.44) 30%, transparent 44%),
    linear-gradient(68deg, transparent 0 55%, rgba(255, 255, 255, 0.28) 68%, transparent 82%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.64), transparent 82%);
}

.site-footer {
  color: rgba(23, 26, 31, 0.74);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.4;
}

.sidebar-footer {
  color: rgba(23, 26, 31, 0.68);
  font-size: 11.5px;
  font-weight: 720;
  line-height: 1.4;
}

.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 34px auto 0;
  padding: 14px 2px 0;
  border-top: 1px solid rgba(23, 26, 31, 0.14);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(23, 26, 31, 0.14);
}

.sidebar-footer a {
  color: #171a1f;
  font-weight: 850;
  text-decoration: none;
}

.site-footer a {
  color: #171a1f;
  font-weight: 850;
  text-decoration: none;
}

.sidebar-footer a:hover {
  color: #59626d;
}

.site-footer a:hover {
  color: #111820;
}

.legal-shell {
  min-height: 100vh;
  padding: 32px;
  color: #171a1f;
}

.legal-brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: #171a1f;
  font-weight: 900;
  text-decoration: none;
}

.legal-document {
  max-width: 920px;
  margin: 76px auto 0;
  padding-bottom: 80px;
}

.legal-document header {
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-document h1 {
  margin: 12px 0 10px;
  color: #171a1f;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.9;
}

.legal-document h2 {
  margin: 0 0 14px;
  color: #59626d;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-document section {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-document p,
.legal-document li {
  max-width: 760px;
  color: rgba(23, 26, 31, 0.78);
  font-size: 16px;
  line-height: 1.72;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-document strong,
.legal-document a {
  color: #171a1f;
}

.legal-footer {
  margin-top: 34px;
  color: rgba(23, 26, 31, 0.52);
  font-size: 12px;
  font-weight: 650;
}

.landing-brand {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 54px;
}

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

.brand-home {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-home:hover strong {
  color: var(--chrome-soft);
}

.home-main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  text-shadow: 0 16px 36px rgba(255, 255, 255, 0.58);
}

.home-hero {
  max-width: 900px;
  padding: 70px 0 86px;
}

.home-hero h1 {
  max-width: 880px;
  margin: 0 0 16px;
  color: transparent;
  background: linear-gradient(112deg, #55606c 0%, #8d97a2 24%, #c6ccd3 45%, #eef1f4 58%, #a7b0ba 76%, #4b5561 100%);
  background-size: 100% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(82px, 12vw, 172px);
  font-weight: 950;
  line-height: 0.88;
  filter: drop-shadow(0 10px 20px rgba(17, 24, 32, 0.18));
}

.home-hero-label {
  margin-bottom: 30px;
  font-size: 13px;
}

.home-hero p,
.home-section p,
.home-section li {
  color: rgba(23, 26, 31, 0.82);
  font-size: 20px;
  line-height: 1.45;
}

.home-deck {
  color: rgba(23, 26, 31, 0.86) !important;
  font-size: clamp(25px, 3vw, 38px) !important;
  font-weight: 780;
  line-height: 1.14 !important;
}

.home-subdeck {
  position: relative;
  max-width: 690px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(220, 226, 233, 0.22);
  color: transparent !important;
  background: linear-gradient(112deg, #252d37 0%, #7d8793 12%, #d7dde4 25%, #b984d8 38%, #4f5965 51%, #97b4a8 64%, #343d49 76%, #d9d2de 88%, #252d37 100%);
  background-size: 340% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(18px, 2vw, 25px) !important;
  filter: drop-shadow(0 8px 18px rgba(17, 24, 32, 0.16));
  animation: iridescentText 7.5s ease-in-out infinite;
}

.home-statement {
  max-width: 860px;
  font-size: clamp(22px, 2.4vw, 30px) !important;
  line-height: 1.22 !important;
}

.home-section .home-subdeck {
  padding-top: 0;
  border-top: 0;
  font-size: clamp(22px, 2.4vw, 30px) !important;
}

@keyframes iridescentText {
  0%,
  100% {
    background-position: 8% 50%;
  }

  50% {
    background-position: 92% 50%;
  }
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
}

.home-section {
  padding: 58px 0;
  border-top: 1px solid rgba(220, 226, 233, 0.16);
}

.home-section h2 {
  max-width: 820px;
  margin: 10px 0 18px;
  color: #171a1f;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 430;
  line-height: 1.14;
}

.home-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  margin-top: 34px;
}

.home-two-col > div {
  padding-top: 18px;
  border-top: 1px solid rgba(220, 226, 233, 0.34);
}

.home-section ul,
.home-steps {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 0;
  list-style: none;
}

.home-section li,
.home-steps li {
  position: relative;
  padding-left: 18px;
}

.home-section li::before,
.home-steps li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--chrome);
  border-radius: 50%;
}

.home-callout {
  max-width: 760px;
  color: #171a1f !important;
  font-weight: 850;
}

.home-editorial {
  max-width: 790px;
  margin: 18px 0;
  color: rgba(23, 26, 31, 0.74) !important;
  font-size: clamp(21px, 2.2vw, 30px) !important;
  line-height: 1.28 !important;
}

.home-editorial.quiet {
  max-width: 720px;
  color: rgba(23, 26, 31, 0.56) !important;
  font-size: clamp(17px, 1.7vw, 22px) !important;
  line-height: 1.42 !important;
}

.footer-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: #171a1f !important;
  font-size: clamp(22px, 2.4vw, 30px) !important;
  font-weight: 780;
  line-height: 1.14 !important;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0;
  border-top: 1px solid rgba(220, 226, 233, 0.2);
  border-bottom: 1px solid rgba(220, 226, 233, 0.2);
}

.home-card-grid article {
  padding: 22px 0;
  color: rgba(23, 26, 31, 0.8);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.35;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-card-grid article:nth-child(1),
.home-card-grid article:nth-child(2) {
  border-top: 0;
}

.home-card-grid article:nth-child(odd) {
  padding-right: 26px;
  border-right: 1px solid rgba(220, 226, 233, 0.14);
}

.home-card-grid article:nth-child(even) {
  padding-left: 26px;
}

.boundary-section {
  background: linear-gradient(180deg, rgba(205, 211, 220, 0.06), rgba(255, 255, 255, 0));
}

.home-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.home-pill-row span {
  padding: 6px 0;
  color: rgba(23, 26, 31, 0.8);
  border-bottom: 1px solid rgba(220, 226, 233, 0.34);
  font-size: 13px;
  font-weight: 950;
}

.home-final {
  padding-bottom: 90px;
}

.price-line {
  margin-top: 14px;
  color: rgba(23, 26, 31, 0.58) !important;
  font-size: 15px !important;
  font-weight: 900;
}

.landing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 480px);
  gap: 68px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-copy h1 {
  max-width: 720px;
  margin-bottom: 6px;
  color: #171a1f;
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 950;
  line-height: 0.95;
}

.landing-tagline {
  max-width: 610px;
  margin-bottom: 58px;
  color: #303844;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 760;
  line-height: 1.08;
}

.landing-copy p {
  max-width: 760px;
  color: rgba(23, 26, 31, 0.66);
  font-size: 20px;
  line-height: 1.42;
}

.landing-body {
  display: grid;
  gap: 22px;
  max-width: 660px;
}

.landing-body p {
  margin-bottom: 10px;
  max-width: none;
}

.landing-rule {
  width: min(360px, 70%);
  height: 1px;
  margin-top: 30px;
  background: linear-gradient(90deg, var(--chrome), rgba(200, 204, 210, 0.56), transparent);
}

.login-panel {
  display: grid;
  gap: 16px;
}

.surface.login-panel {
  padding: 30px;
  color: #171a1f;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 30px 90px rgba(28, 35, 45, 0.18);
  backdrop-filter: blur(18px);
}

.login-panel .section-heading h2,
.login-panel label {
  color: #171a1f;
}

.login-panel .section-heading p,
.login-panel .legal-note {
  color: rgba(23, 26, 31, 0.58);
}

.login-panel input {
  color: #171a1f;
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(23, 26, 31, 0.14);
}

.login-panel input:focus {
  color: #111316;
  background: rgba(255, 255, 255, 0.92);
}

.login-panel .primary {
  min-height: 48px;
}

.welcome-gate {
  display: grid;
  place-items: center;
}

.welcome-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  width: min(760px, calc(100vw - 48px));
  padding: clamp(28px, 5vw, 52px);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(244, 246, 248, 0.105), rgba(244, 246, 248, 0.055));
  border: 1px solid rgba(220, 226, 233, 0.2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.welcome-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 950;
  line-height: 0.98;
}

.welcome-panel p {
  margin: 0;
  color: rgba(244, 246, 248, 0.68);
  font-size: 19px;
  line-height: 1.45;
}

.welcome-signals {
  display: grid;
  gap: 6px;
  margin: -8px 0 0;
  padding-left: 20px;
  color: rgba(244, 246, 248, 0.68);
  font-size: 19px;
  line-height: 1.45;
}

.welcome-signals li::marker {
  color: var(--chrome-soft);
}

.welcome-boundary {
  display: grid;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(220, 226, 233, 0.22);
}

.welcome-boundary strong {
  color: var(--chrome-soft);
  font-size: 22px;
}

.welcome-panel .primary {
  width: fit-content;
  min-width: 150px;
  min-height: 48px;
}

.agreement-check {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 11px;
  padding: 14px;
  color: var(--text);
  background: rgba(205, 211, 220, 0.1);
  border: 1px solid rgba(205, 211, 220, 0.32);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.42;
}

.agreement-check input {
  margin-top: 2px;
}

.legal-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.legal-note.error {
  color: #7f1d1d;
  font-weight: 800;
}

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

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

.admin-main {
  min-width: 0;
  padding: 42px;
}

.admin-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 480px);
  gap: 56px;
  align-items: center;
}

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

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-user-tools {
  display: flex;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
  margin-top: 18px;
}

.admin-search {
  flex: 1;
  max-width: 420px;
}

.admin-search input {
  margin-top: 6px;
}

.admin-pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(8, 8, 9, 0.05);
  border: 1px solid rgba(8, 8, 9, 0.1);
  border-radius: 8px;
}

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

.admin-row span,
.admin-row code {
  color: var(--muted);
  font-size: 12px;
}

.admin-row code {
  max-width: 520px;
  overflow-wrap: anywhere;
}

.admin-user-row {
  align-items: stretch;
}

.admin-user-row.is-disabled-user {
  opacity: 0.62;
}

.admin-user-form {
  display: grid;
  width: 100%;
  gap: 14px;
}

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

.admin-user-fields label {
  font-size: 12px;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 100vh;
  padding: 26px 22px;
  color: #171a1f;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.78), rgba(224, 230, 237, 0.58)),
    rgba(238, 241, 245, 0.74);
  border-right: 1px solid rgba(23, 26, 31, 0.1);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 64px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  background: url("./assets/mirror-logo.png") center / contain no-repeat;
  filter: drop-shadow(0 12px 24px rgba(20, 24, 29, 0.18));
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand span {
  margin-top: 4px;
  color: rgba(23, 26, 31, 0.58);
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav-item,
.nav-download {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: rgba(23, 26, 31, 0.68);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: 160ms ease;
}

.nav-item span,
.nav-download span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #4c5561;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  font-weight: 900;
}

.nav-item.active,
.nav-item:hover,
.nav-download:hover {
  color: #111820;
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(23, 26, 31, 0.1);
  box-shadow: 0 12px 30px rgba(17, 24, 32, 0.08);
}

.nav-item.active span,
.nav-item:hover span,
.nav-download:hover span {
  color: #111316;
  background: #d9dee5;
}

.boundary {
  margin-top: auto;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(225, 231, 238, 0.5));
  border: 1px solid rgba(23, 26, 31, 0.1);
  border-radius: 8px;
}

.compact-boundary {
  padding: 16px;
}

.compact-boundary strong {
  font-size: 20px;
}

.sidebar-logout {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  color: #171a1f;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 26, 31, 0.12);
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.sidebar-logout:hover {
  color: #111316;
  background: var(--chrome-soft);
  border-color: var(--chrome-soft);
}

.boundary-label {
  display: block;
  margin-bottom: 12px;
  color: #59626d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.boundary strong {
  display: block;
  font-size: 24px;
  line-height: 1.04;
}

.boundary p {
  margin-bottom: 0;
  color: rgba(23, 26, 31, 0.66);
  line-height: 1.45;
}

main {
  min-width: 0;
  padding: 42px;
}

.topbar {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--text);
}

.topbar.stats-only {
  justify-content: flex-end;
}

.topbar-status {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.signed-in-email {
  max-width: 280px;
  margin: 0;
  color: rgba(23, 26, 31, 0.62);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-logout {
  min-height: 28px;
  padding: 0 11px;
  color: rgba(23, 26, 31, 0.72);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 26, 31, 0.12);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.topbar-logout:hover {
  color: #111316;
  background: var(--chrome-soft);
  border-color: var(--chrome-soft);
}

.due-badge {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 20;
  min-height: 34px;
  padding: 8px 12px;
  color: #111316;
  background: linear-gradient(135deg, #f7f8fa, #cfd3da);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 950;
}

.eyebrow {
  margin: 0 0 10px;
  color: #59626d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.08;
}

.stats {
  display: flex;
  gap: 10px;
  align-items: center;
}

.stats div {
  min-width: 104px;
  padding: 14px 16px;
  color: var(--text);
  text-align: right;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 26, 31, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.stats span {
  display: block;
  color: #3a4048;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.stats small {
  color: rgba(23, 26, 31, 0.58);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.porta-home {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.home-intel-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), transparent 48%),
    var(--panel);
}

.home-intel-hero {
  display: grid;
  gap: 14px;
  min-height: 230px;
  align-content: center;
}

.home-intel-hero h2 {
  max-width: 760px;
  margin: 0;
  color: transparent;
  background: linear-gradient(112deg, #55606c 0%, #8d97a2 24%, #c6ccd3 45%, #eef1f4 58%, #a7b0ba 76%, #4b5561 100%);
  background-size: 100% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  filter: drop-shadow(0 10px 20px rgba(17, 24, 32, 0.12));
}

.home-intel-card h3 {
  margin: 0 0 10px;
  color: #171a1f;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.06;
}

.home-intel-card p {
  max-width: 760px;
  margin: 0;
  color: rgba(23, 26, 31, 0.68);
  font-size: 15px;
  line-height: 1.55;
}

.home-loading-bar {
  position: relative;
  display: block;
  width: min(280px, 100%);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.home-loading-bar span {
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(205, 211, 220, 0.25), rgba(244, 246, 248, 0.95), rgba(205, 211, 220, 0.3));
  animation: homeLoading 1.1s ease-in-out infinite;
}

@keyframes homeLoading {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(250%); }
}

.home-intel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

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

.home-intel-wide {
  grid-column: 1 / -1;
}

.weekly-chart-card {
  display: inline-grid;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 14px 16px;
  justify-self: start;
  align-self: start;
}

.weekly-chart-head {
  display: flex;
  gap: 8px;
  align-items: center;
}

.weekly-chart {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.weekly-chart-day {
  display: grid;
  gap: 4px;
  place-items: center;
  min-width: 42px;
}

.weekly-chart-rings {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  flex-wrap: nowrap;
}

.weekly-ring {
  --completion-angle: 0deg;
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background:
    conic-gradient(from -90deg, rgba(64, 151, 95, 0.88) 0 var(--completion-angle), rgba(147, 153, 160, 0.18) var(--completion-angle) 360deg),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(210, 216, 224, 0.5));
  border: 1px solid rgba(23, 26, 31, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px rgba(35, 39, 45, 0.08);
}

.weekly-chart-day.is-today .weekly-ring {
  border-color: rgba(120, 127, 138, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 0 3px rgba(181, 190, 202, 0.24), 0 6px 14px rgba(35, 39, 45, 0.09);
}

.weekly-ring-core {
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(249, 250, 251, 0.96), rgba(220, 226, 233, 0.92));
  color: #59626d;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.weekly-ring-core strong {
  line-height: 1;
}

.weekly-ring-core em {
  position: absolute;
  right: -8px;
  bottom: -6px;
  min-width: 16px;
  padding: 2px 4px;
  border-radius: 999px;
  background: #2fa56a;
  color: #f9fafb;
  font-size: 8px;
  font-style: normal;
  line-height: 1;
}

.weekly-chart-day small {
  min-height: 10px;
  color: rgba(23, 26, 31, 0.6);
  font-size: 8px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}



.capture-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.capture-stack {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.surface {
  padding: 26px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.surface.welcome-panel {
  padding: clamp(28px, 5vw, 52px);
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(232, 237, 243, 0.52));
  border: 1px solid rgba(23, 26, 31, 0.1);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.section-heading {
  padding-bottom: 2px;
}

.section-heading p,
.view-head p,
.surface p {
  color: var(--muted);
  line-height: 1.45;
}

.surface.welcome-panel p {
  color: rgba(23, 26, 31, 0.68);
}

.capture-form {
  display: grid;
  gap: 16px;
}

.quick-decision {
  gap: 20px;
}

.quick-decision label {
  gap: 9px;
  font-size: 15px;
}

.mini-section-label {
  margin: 6px 0 -4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-section-label span,
legend span {
  color: var(--muted);
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.decision-prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.object-inline-note {
  color: #6f7280;
  font-size: 12px;
  font-weight: 800;
}

.upcoming-tag {
  color: #b42318;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.object-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.object-chip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 28px;
  padding: 0;
  color: #15171d;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(16, 23, 34, 0.12);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(16, 23, 34, 0.08);
  cursor: default;
}

.object-chip svg {
  display: block;
  width: 20px;
  height: 20px;
}

.object-chip-slack {
  background: #fff;
}

.object-chip-jira {
  background: #fff;
}

.object-chip-salesforce {
  width: 38px;
  background: #fff;
}

.object-chip-salesforce svg {
  width: 31px;
  height: 22px;
}

.object-chip-salesforce text {
  fill: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.object-chip-lever {
  width: 44px;
  background: #092c2c;
}

.object-chip-lever svg {
  width: 38px;
  height: 22px;
}

.object-chip-lever text {
  fill: #9df3c7;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.scope-note.inline {
  margin: -4px 0 2px;
  font-size: 12px;
  line-height: 1.35;
}

.agent-recommendation-preview {
  display: grid;
  gap: 5px;
  margin-top: -6px;
  padding: 11px 13px;
  color: var(--muted);
  background: rgba(216, 199, 137, 0.12);
  border: 1px solid rgba(205, 211, 220, 0.24);
  border-radius: 8px;
}

.agent-recommendation-preview span {
  color: #8b6a22;
  font-size: 12px;
  font-weight: 950;
}

.agent-recommendation-preview strong {
  color: #b42318;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.agent-recommendation-preview p {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

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

.ledger-map div {
  padding: 13px;
  background: rgba(8, 8, 9, 0.04);
  border: 1px solid rgba(8, 8, 9, 0.1);
  border-radius: 8px;
}

.ledger-map span {
  display: block;
  margin-bottom: 5px;
  color: var(--chrome);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ledger-map strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.progressive-field {
  transition: opacity 160ms ease;
}

.progressive-field.is-hidden {
  display: none;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.field-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(16, 23, 34, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
}

legend {
  padding: 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finance-fieldset,
.personal-fieldset {
  display: grid;
  gap: 14px;
}

.scope-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.checkbox-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(16, 23, 34, 0.1);
  border-radius: 8px;
}

.checkbox-cluster > span {
  width: 100%;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.checkbox-cluster label {
  display: inline-flex;
  grid-template-columns: none;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.optional-toggle {
  display: inline-flex;
  grid-template-columns: none;
  gap: 9px;
  align-items: center;
  width: fit-content;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.optional-toggle input {
  flex: 0 0 auto;
}

.bias-notes {
  display: grid;
  gap: 10px;
}

.bias-item {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(150px, 0.7fr);
  gap: 12px;
}

.add-bias {
  width: 30px;
  min-height: 30px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 23, 34, 0.16);
  border-radius: 7px;
  outline: 0;
  transition: 160ms ease;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--chrome);
}

textarea {
  resize: vertical;
}

.voice-textarea {
  position: relative;
}

.voice-textarea textarea {
  padding-right: 46px;
}

.voice-capture {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  color: rgba(23, 26, 31, 0.62);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 26, 31, 0.12);
  border-radius: 999px;
  box-shadow: none;
}

.voice-capture svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voice-capture:hover:not(:disabled),
.voice-capture.is-listening {
  color: #111316;
  background: #cfd3da;
  border-color: rgba(205, 211, 220, 0.78);
}

.voice-capture.is-listening {
  color: #fff;
  background: #b42318;
  border-color: rgba(180, 35, 24, 0.78);
  box-shadow: 0 0 0 7px rgba(180, 35, 24, 0.18);
  animation: voicePulse 1.05s ease-in-out infinite;
}

.voice-recording-indicator {
  position: absolute;
  top: 9px;
  right: 44px;
  display: none;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #fff;
  background: rgba(180, 35, 24, 0.94);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(180, 35, 24, 0.2);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.voice-recording-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: #fff;
  border-radius: 999px;
  animation: recordingDot 900ms ease-in-out infinite;
}

.voice-textarea.is-recording .voice-recording-indicator {
  display: inline-flex;
}

.voice-capture:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

@keyframes voicePulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(180, 35, 24, 0.12);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(180, 35, 24, 0.24);
  }
}

@keyframes recordingDot {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 1;
  }
}

.decision-feedback {
  display: grid;
  gap: 8px;
  margin-top: -4px;
  margin-bottom: 4px;
  animation: feedbackFade 180ms ease both;
}

.decision-feedback p,
.feedback-loading {
  margin: 0;
  padding: 8px 10px 8px 12px;
  color: rgba(23, 26, 31, 0.72);
  background: rgba(255, 255, 255, 0.48);
  border-left: 2px solid rgba(205, 211, 220, 0.72);
  border-radius: 0 7px 7px 0;
  font-size: 12px;
  line-height: 1.45;
}

.save-confirmation {
  margin: -2px 0 0;
  color: #2f3943;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
  animation: feedbackFade 180ms ease both;
}

.feedback-loading {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(23, 26, 31, 0.56);
}

.feedback-loading span {
  width: 7px;
  height: 7px;
  background: #cfd3da;
  border-radius: 999px;
  animation: feedbackPulse 900ms ease-in-out infinite;
}

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

@keyframes feedbackPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:focus,
select:focus,
textarea:focus {
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(205, 211, 220, 0.18);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.checkin-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 2px;
}

.checkin-control {
  display: grid;
  gap: 7px;
}

.checkin-presets .tiny {
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}

.checkin-presets .tiny.active {
  border-color: rgba(213, 178, 91, 0.72);
  background: rgba(213, 178, 91, 0.18);
  color: var(--text);
}

button,
.import-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
  transition: 160ms ease;
}

button:hover,
.import-button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none !important;
}

.primary {
  color: #111316;
  background: linear-gradient(135deg, var(--chrome-soft), var(--chrome));
  box-shadow: 0 12px 28px rgba(205, 211, 220, 0.24);
}

.secondary {
  color: #111113;
  background: rgba(200, 204, 210, 0.5);
  border-color: rgba(8, 8, 9, 0.12);
}

.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(16, 23, 34, 0.15);
}

.danger {
  color: #fff;
  background: var(--danger);
}

.import-button {
  color: #111113;
  background: rgba(200, 204, 210, 0.5);
}

.import-button input {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.badge.safe {
  color: #111316;
  background: var(--chrome-soft);
}

.badge.mixed {
  color: #111113;
  background: var(--silver);
}

.badge.blocked {
  color: #fff;
  background: var(--steel);
}

.badge.neutral {
  color: var(--muted);
  background: #e7e7e4;
}

.pattern-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pattern-preview {
  padding: 16px 0 0;
  border-top: 1px solid var(--line-dark);
}

.pattern-preview p {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.45;
}

.view-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--text);
}

.view-head h2 {
  color: var(--text);
  font-size: 34px;
}

.view-head p {
  margin-bottom: 0;
  color: rgba(23, 26, 31, 0.66);
}

.view-head input {
  max-width: 420px;
}

.list,
.settings-grid {
  display: grid;
  gap: 16px;
}

.portability-note {
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(220, 226, 233, 0.9), rgba(244, 244, 241, 0.9));
  border-color: rgba(205, 211, 220, 0.6);
  box-shadow: var(--soft-shadow);
}

.portability-note strong {
  display: block;
  margin-bottom: 8px;
  color: #111113;
  font-size: 23px;
}

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

.record {
  padding: 21px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

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

.record h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 23px;
  line-height: 1.05;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0;
}

.meta span {
  padding: 5px 9px;
  color: #556071;
  background: rgba(16, 23, 34, 0.07);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 850;
}

.meta span.due-meta {
  color: #111316;
  background: rgba(205, 211, 220, 0.36);
}

.record p {
  color: var(--muted);
  line-height: 1.48;
}

.private-ledger-summary {
  margin: 14px 0;
  padding: 12px;
  background: rgba(205, 211, 220, 0.1);
  border: 1px solid rgba(205, 211, 220, 0.22);
  border-radius: 8px;
}

.private-ledger-summary strong {
  color: var(--text);
  font-size: 13px;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.record-head > .record-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.outcome-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}

.tiny {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.empty {
  padding: 42px;
  color: rgba(23, 26, 31, 0.62);
  background: rgba(255, 255, 255, 0.46);
  border: 1px dashed rgba(23, 26, 31, 0.18);
  border-radius: 8px;
  text-align: center;
}

.empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.danger-zone {
  border-color: rgba(194, 65, 49, 0.28);
}

/* In-app mirror interface, matched to the homepage. */
.app-shell {
  color: var(--text);
  background:
    radial-gradient(circle at 11% 0%, rgba(255, 255, 255, 0.94), transparent 30%),
    radial-gradient(circle at 78% 10%, rgba(245, 238, 252, 0.58), transparent 28%),
    radial-gradient(circle at 18% 88%, rgba(236, 248, 246, 0.46), transparent 34%),
    linear-gradient(135deg, #fbfcfd 0%, #edf0f3 28%, #d9dee5 58%, #f8fafb 100%);
}

.app-shell .sidebar {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.78), rgba(224, 230, 237, 0.58)),
    rgba(238, 241, 245, 0.74);
  border-right-color: rgba(23, 26, 31, 0.1);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.72), 18px 0 60px rgba(17, 24, 32, 0.08);
}

.app-shell main {
  background:
    linear-gradient(112deg, transparent 0 16%, rgba(255, 255, 255, 0.22) 34%, transparent 48%),
    transparent;
}

.app-shell .surface,
.app-shell .record {
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), transparent 48%),
    rgba(229, 233, 237, 0.88);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.app-shell .surface {
  backdrop-filter: blur(18px);
}

.app-shell .section-heading h2,
.app-shell .view-head h2,
.app-shell .record h3,
.app-shell label,
.app-shell .field-label {
  color: var(--text);
}

.app-shell .section-heading h2,
.app-shell .view-head h2 {
  font-size: 30px;
  font-weight: 760;
  line-height: 1;
}

.app-shell .record h3 {
  font-size: 18px;
  font-weight: 760;
  line-height: 1.18;
}

.app-shell label,
.app-shell .field-label {
  font-size: 13px;
  font-weight: 650;
}

.app-shell .section-heading p,
.app-shell .view-head p,
.app-shell .surface p,
.app-shell .record p,
.app-shell .optional-toggle,
.app-shell .scope-note,
.app-shell .mini-section-label span,
.app-shell legend span {
  color: rgba(23, 26, 31, 0.66);
}

.app-shell .mini-section-label,
.app-shell legend {
  color: #59626d;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.app-shell fieldset {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(23, 26, 31, 0.1);
}

.app-shell input,
.app-shell select,
.app-shell textarea {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(16, 23, 34, 0.16);
  font-size: 14px;
  line-height: 1.35;
}

.app-shell input::placeholder,
.app-shell textarea::placeholder {
  color: #8f98a4;
}

.app-shell input:focus,
.app-shell select:focus,
.app-shell textarea:focus {
  color: var(--text);
  background: #fff;
  border-color: rgba(75, 85, 99, 0.42);
  box-shadow: 0 0 0 4px rgba(205, 211, 220, 0.22);
}

.app-shell .stats div {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(23, 26, 31, 0.1);
  min-width: 92px;
  padding: 10px 12px;
}

.app-shell .stats span {
  color: #3a4048;
  font-size: 30px;
  font-weight: 760;
}

.app-shell .stats small,
.app-shell .signed-in-email {
  color: rgba(23, 26, 31, 0.62);
  font-size: 11px;
  font-weight: 650;
}

.app-shell .secondary,
.app-shell .ghost,
.app-shell .import-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(23, 26, 31, 0.12);
}

.app-shell .secondary:hover,
.app-shell .ghost:hover,
.app-shell .import-button:hover {
  color: #111316;
  background: #cfd3da;
  border-color: #cfd3da;
}

.app-shell .checkin-presets .tiny.active {
  color: #111316;
  background: #d9dee5;
  border-color: #c8ced6;
}

.app-shell .meta span {
  color: rgba(23, 26, 31, 0.68);
  background: rgba(255, 255, 255, 0.54);
  font-weight: 650;
}

.app-shell .meta span.due-meta {
  color: #111316;
  background: #cfd3da;
}

.app-shell .outcome-form,
.app-shell .pattern-preview {
  border-top-color: rgba(23, 26, 31, 0.12);
}

.app-shell .empty {
  color: rgba(23, 26, 31, 0.62);
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(23, 26, 31, 0.18);
}

@media (max-width: 1080px) {
  .landing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-two-col,
  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .home-card-grid article,
  .home-card-grid article:nth-child(odd),
  .home-card-grid article:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .home-card-grid article:nth-child(2) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .admin-shell,
  .admin-login-grid {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 28px;
  }

  .landing-brand {
    margin-bottom: 36px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

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

  .nav-item,
  .nav-download {
    justify-content: center;
  }

  .nav-item span,
  .nav-download span {
    display: none;
  }

  .boundary {
    display: none;
  }

  main {
    padding: 28px;
  }

  .capture-grid,
  .home-intel-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .stats {
    justify-content: space-between;
  }

  .topbar-status {
    justify-items: stretch;
  }

  .signed-in-email {
    max-width: none;
  }

}

@media (max-width: 640px) {
  .home-gate,
  .landing-gate {
    padding: 22px;
  }

  .home-hero {
    padding: 44px 0 62px;
  }

  .home-hero h1 {
    font-size: 74px;
  }

  .home-deck {
    font-size: 24px !important;
  }

  .home-section {
    padding: 42px 0;
  }

  .home-section h2 {
    font-size: 22px;
  }

  .home-hero p,
  .home-section p,
  .home-section li {
    font-size: 18px;
  }

  .admin-main {
    padding: 20px;
  }

  .landing-copy h1 {
    font-size: 50px;
  }

  .landing-tagline {
    font-size: 24px;
    margin-bottom: 38px;
  }

  .landing-copy p {
    font-size: 18px;
  }

  .weekly-chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .weekly-chart-head p {
    text-align: left;
    white-space: normal;
  }

  .weekly-chart {
    gap: 10px;
  }

  .weekly-chart-rings {
    gap: 10px;
    flex-wrap: wrap;
  }

  .sidebar {
    padding: 20px;
  }

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

  main {
    padding: 20px;
  }

  .form-row,
  .ledger-map,
  .bias-item,
  .admin-user-fields,
  .admin-user-tools,
  .view-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-search {
    max-width: none;
  }

  .admin-pagination {
    justify-content: flex-start;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .stats div {
    min-width: auto;
    padding: 12px;
    text-align: left;
  }

  .stats span {
    font-size: 31px;
  }
}
