/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 */

:root {
  color-scheme: light;

  /* Neutrals */
  --bg: #f7f1e7;
  --surface: #efe4d6;
  --text: #2a2623;
  --muted: #6e655e;

  /* Accents */
  --primary: #c46b4e;
  --primary-2: #a14f3a;
  --sage: #7e8a63;
  --juniper: #3f5b4a;
  --sky: #7fa6b6;
  --night: #1f2a2e;
  --glow: #f2b394;

  /* UI tokens */
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 6px 14px rgba(31, 42, 46, 0.08);
  --shadow-md: 0 14px 34px rgba(31, 42, 46, 0.12);
  --border: rgba(42, 38, 35, 0.1);
  --border-strong: rgba(42, 38, 35, 0.16);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Legacy tokens */
  --ink: var(--text);
  --card: var(--surface);
  --accent: var(--primary);
  --accent-dark: var(--primary-2);

  /* Commons Halo */
  --ch-size: 120px;
  --ch-bg: #efe4d6;
  --ch-tile-bg: #f7f1e7;
  --ch-ring-radius: 46;
  --ch-ring-thickness: 14;
  --ch-gap-angle: 10;
  --ch-dot-radius: 6;
  --ch-dot-padding: 4;
  --ch-track-color: rgba(42, 38, 35, 0.08);
  --ch-unknown-color: #6e655e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  letter-spacing: -0.01em;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background:
    radial-gradient(circle at 10% 10%, rgba(196, 107, 78, 0.08), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(126, 138, 99, 0.06), transparent 45%),
    radial-gradient(circle at 30% 90%, rgba(127, 166, 182, 0.05), transparent 40%),
    repeating-linear-gradient(0deg,
      rgba(42, 38, 35, 0.015) 0px,
      rgba(42, 38, 35, 0.015) 1px,
      transparent 1px,
      transparent 5px);
  mix-blend-mode: multiply;
}

.page,
.nav,
.flash,
.workspace-shell {
  position: relative;
  z-index: 1;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

h1,
h2,
h3 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

h3 {
  font-size: 1.25rem;
}

.card h1::after {
  content: "";
  display: block;
  height: 8px;
  width: 86px;
  border-radius: 999px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--primary), var(--sage), var(--sky));
  opacity: 0.9;
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

code,
pre,
.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 0.92em;
}

code {
  background: rgba(63, 91, 74, 0.12);
  border-radius: 6px;
  padding: 0 0.35em;
}

a {
  color: var(--juniper);
  text-decoration: none;
  background-image: linear-gradient(to right, rgba(196, 107, 78, 0.45), rgba(196, 107, 78, 0.45));
  background-position: 0 1.08em;
  background-repeat: no-repeat;
  background-size: 100% 2px;
  transition: color 160ms var(--ease), background-size 220ms var(--ease);
}

a:hover {
  color: var(--primary-2);
  background-size: 100% 5px;
}

.small,
small {
  color: var(--muted);
  font-size: 0.92rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: -40% -30% auto -30%;
  height: 80px;
  background: radial-gradient(circle at 50% 50%, rgba(242, 179, 148, 0.35), transparent 60%);
  transform: rotate(-6deg);
  pointer-events: none;
}

.meta {
  color: var(--muted);
}

.field {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group {
  margin: 18px 0 4px;
}

.field-error input,
.field-error select,
.field-error textarea {
  border-color: rgba(176, 58, 46, 0.7);
}

.builder-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.builder-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(247, 241, 231, 0.45);
  overflow: hidden;
}

.builder-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.builder-summary::-webkit-details-marker {
  display: none;
}

.builder-item[open] .builder-summary {
  border-bottom: 1px solid var(--border);
  background: rgba(247, 241, 231, 0.72);
}

.builder-summary-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.builder-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.builder-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  padding: 2px 8px;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(247, 241, 231, 0.8);
}

.builder-panel {
  padding: 14px 16px 16px;
}

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

.builder-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.builder-advanced {
  margin-top: 10px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.builder-advanced summary {
  cursor: pointer;
  color: var(--juniper);
  font-weight: 600;
  margin-bottom: 8px;
}

.builder-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.builder-option-headings {
  display: grid;
  gap: 8px;
  padding: 0 10px 4px;
  margin-top: 8px;
}

.builder-option-headings span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.builder-option-headings--existing {
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 1fr) 100px 90px 90px 90px;
}

.builder-option-headings--new,
.builder-option-headings--add {
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 1fr) 110px 110px;
}

.builder-option-headings--analysis {
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 1fr) 110px 110px 110px;
}

.builder-option-headings--targets {
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 1fr) 120px 120px 90px;
}

.builder-option-row {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(247, 241, 231, 0.75);
}

.builder-option-row--existing {
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 1fr) 100px 90px 90px 90px;
}

.builder-option-row--new,
.builder-option-row--add {
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 1fr) 110px 110px;
}

.builder-option-row--analysis {
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 1fr) 110px 110px 110px;
}

.builder-option-row--targets {
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 1fr) 120px 120px 90px;
}

.builder-static-cell {
  display: block;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(247, 241, 231, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-static-code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}

.builder-row-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.builder-row-status:empty {
  display: none;
}

.builder-row-status[data-state="ok"] {
  color: var(--juniper);
}

.builder-row-status[data-state="error"] {
  color: #b03a2e;
}

.builder-row-status[data-state="pending"] {
  color: var(--muted);
}

.percent-total {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.percent-total--overall {
  margin-top: 12px;
}

.percent-total[data-state="ok"] {
  color: var(--juniper);
}

.percent-total[data-state="error"] {
  color: #b03a2e;
}

.builder-archived-toggle {
  margin-top: 12px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.builder-help {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(247, 241, 231, 0.68);
  margin: 12px 0;
}

.builder-analysis-group {
  margin-top: 10px;
}

.builder-setting-group.is-hidden,
.builder-advanced.is-hidden {
  display: none;
}

@media (max-width: 820px) {
  .builder-option-headings {
    display: none;
  }

  .builder-option-row--existing,
  .builder-option-row--new,
  .builder-option-row--add,
  .builder-option-row--analysis,
  .builder-option-row--targets {
    grid-template-columns: 1fr;
  }
}

input,
select,
textarea {
  background: rgba(247, 241, 231, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: box-shadow 160ms var(--ease), border-color 160ms var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(196, 107, 78, 0.55);
  box-shadow: 0 0 0 4px rgba(196, 107, 78, 0.18);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 42, 46, 0.1);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}

.button.primary {
  background: linear-gradient(180deg, rgba(196, 107, 78, 1), rgba(161, 79, 58, 1));
  color: var(--bg);
  box-shadow: 0 10px 22px rgba(161, 79, 58, 0.25);
  border-color: transparent;
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(161, 79, 58, 0.3);
}

.button.primary:active {
  transform: translateY(1px) scale(0.99);
}

.button.secondary {
  background: rgba(247, 241, 231, 0.6);
  color: var(--juniper);
  border: 1px solid rgba(63, 91, 74, 0.25);
}

.button.secondary:hover {
  background: rgba(126, 138, 99, 0.14);
  border-color: rgba(126, 138, 99, 0.35);
}

.button[disabled],
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.boolean-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.boolean-option {
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(247, 241, 231, 0.65);
}

.demographics-intro {
  margin: 12px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(247, 241, 231, 0.52);
}

.demographics-intro p {
  margin: 0;
}

.demographics-intro p + p {
  margin-top: 8px;
}

.likert-input {
  display: grid;
  gap: 8px;
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.likert-end-label {
  min-width: 0;
}

.likert-end-label-right {
  text-align: right;
}

.likert-scale {
  display: grid;
  grid-template-columns: repeat(var(--likert-columns, 7), minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.likert-option {
  justify-content: center;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(247, 241, 231, 0.65);
  padding: 8px 6px;
}

.likert-option input[type="radio"] {
  margin-top: 0;
}

.likert-option span {
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .boolean-options {
    gap: 8px;
  }

  .boolean-option {
    padding: 6px 10px;
  }

  .likert-labels {
    font-size: 0.82rem;
  }

  .likert-scale {
    gap: 6px;
  }

  .likert-option {
    padding: 8px 2px;
  }

  .likert-option span {
    font-size: 0.82rem;
  }
}

.form-errors {
  border: 1px solid rgba(176, 58, 46, 0.35);
  background: rgba(176, 58, 46, 0.08);
  color: #7a1f17;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 12px 0 16px;
}

.form-errors ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

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

.audio-meter {
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audio-meter-track {
  height: 10px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.audio-meter-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #16a34a, #f59e0b, #ef4444);
  transition: width 120ms linear;
}

.error {
  color: #b03a2e;
}

.inline-notice {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(127, 166, 182, 0.45);
  background: rgba(127, 166, 182, 0.2);
  color: var(--night);
}

.flash {
  max-width: 860px;
  margin: 12px auto 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(242, 179, 148, 0.22);
  color: var(--night);
  border: 1px solid rgba(196, 107, 78, 0.35);
  box-shadow: var(--shadow-sm);
}

.flash.notice {
  background: rgba(127, 166, 182, 0.2);
  border-color: rgba(127, 166, 182, 0.35);
  color: var(--night);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(10px);
  background: rgba(247, 241, 231, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: none;
  margin: 0;
  width: 100%;
  padding: 14px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.nav:not(.nav-landing) .nav-inner {
  padding-left: 24px;
  padding-right: 24px;
}

.nav:not(.nav-landing) .nav-brand,
.nav:not(.nav-landing) .nav-links,
.nav:not(.nav-landing) .nav-user {
  min-width: 0;
}

.nav-auth-menu {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-auth-toggle {
  margin-left: auto;
}

.nav-auth-toggle i {
  font-size: 0.95rem;
}

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

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

.nav-brand-home:hover {
  color: inherit;
  background-size: 0 0;
}

.nav-logo {
  width: 28px;
  height: 28px;
  display: block;
}

.nav-title {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  background: rgba(63, 91, 74, 0.12);
  color: var(--juniper);
}

.badge.sage {
  background: rgba(126, 138, 99, 0.18);
  border-color: rgba(126, 138, 99, 0.35);
  color: var(--juniper);
}

.badge.sky {
  background: rgba(127, 166, 182, 0.2);
  border-color: rgba(127, 166, 182, 0.35);
  color: var(--night);
}

.badge.sand {
  background: rgba(196, 107, 78, 0.16);
  border-color: rgba(196, 107, 78, 0.3);
  color: var(--primary-2);
}

.nav-organization-logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 180px;
  width: clamp(110px, 16vw, 180px);
  min-width: 110px;
  min-height: 44px;
  margin: 0 2px;
}

.nav-organization-logo {
  display: block;
  width: auto;
  height: 40px;
  max-width: 100%;
  object-fit: contain;
}

.nav-organization-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-landing .nav-inner {
  flex-wrap: nowrap;
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

.nav-landing .nav-collapse {
  flex: 1 1 auto;
  justify-content: center;
}

.nav-landing .nav-links {
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .nav-landing .nav-inner {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .nav-landing .nav-inner {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .nav-landing .nav-inner {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .nav-landing .nav-inner {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .nav-landing .nav-inner {
    max-width: 1320px;
  }
}

.qr-modal .modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.qr-video-frame {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(247, 241, 231, 0.7);
  padding: 8px;
}

.qr-video {
  width: 100%;
  border-radius: var(--radius-sm);
  min-height: 240px;
  display: block;
  background: rgba(63, 91, 74, 0.08);
}

.qr-canvas {
  display: none;
}

@media (max-width: 991px) {
  .nav:not(.nav-landing) .nav-inner {
    flex-wrap: nowrap;
    position: relative;
  }

  .nav:not(.nav-landing) .nav-brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
    overflow: hidden;
  }

  .nav-brand-home {
    min-width: 0;
  }

  .nav-title {
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-auth-toggle {
    margin-left: 0;
    flex: 0 0 auto;
  }

  .nav-auth-menu {
    width: auto;
    order: initial;
    margin-top: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(247, 241, 231, 0.92);
    box-shadow: var(--shadow-sm);
    align-items: flex-start;
    gap: 10px;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 10;
  }

  .nav-auth-menu.show {
    display: flex;
    flex-direction: column;
  }

  .nav-auth-menu .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-auth-menu .nav-user {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-auth-menu .nav-email {
    max-width: 100%;
  }

  .nav-organization-logo-slot {
    flex: 0 1 72px;
    width: 72px;
    min-width: 56px;
    min-height: 44px;
  }

  .nav-organization-logo {
    height: 40px;
    max-width: 72px;
  }

  .nav-organization-name {
    max-width: 140px;
  }

  .nav-landing .nav-inner {
    flex-wrap: wrap;
  }

  .nav-landing .nav-collapse {
    width: 100%;
    order: 3;
    justify-content: flex-start;
  }

  .nav-landing .nav-links {
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
    padding-top: 12px;
  }
}

.nav-link {
  color: var(--juniper);
  text-decoration: none;
  font-weight: 600;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.nav-landing .nav-user {
  flex-wrap: nowrap;
  gap: 10px;
}

.nav-landing .nav-user .nav-action {
  white-space: nowrap;
}

.nav-user form {
  margin: 0;
  display: inline-flex;
}

.nav-email {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-action {
  padding: 8px 12px;
  font-size: 0.95rem;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--juniper);
  font-weight: 600;
  cursor: pointer;
  font: inherit;
  background-image: linear-gradient(to right, rgba(196, 107, 78, 0.45), rgba(196, 107, 78, 0.45));
  background-position: 0 1.08em;
  background-repeat: no-repeat;
  background-size: 100% 2px;
  transition: color 160ms var(--ease), background-size 220ms var(--ease);
}

.link-button:hover {
  color: var(--primary-2);
  background-size: 100% 5px;
}

.qr {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  max-width: min(360px, 92vw);
  padding: 12px;
  background: rgba(247, 241, 231, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.qr svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.report-summary-stat,
.report-coverage-chart {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(247, 241, 231, 0.7);
  padding: 14px;
}

.report-summary-value {
  margin: 6px 0 0;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 2.2rem);
  line-height: 1;
  color: var(--juniper);
}

.report-coverage-chart {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
}

.report-coverage-ring {
  --coverage: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, var(--surface) 52%, transparent 53%),
    conic-gradient(
      from -90deg,
      rgba(63, 91, 74, 1) calc(var(--coverage) * 1%),
      rgba(63, 91, 74, 0.18) 0
    );
  border: 1px solid rgba(63, 91, 74, 0.25);
  box-shadow: inset 0 0 0 6px rgba(247, 241, 231, 0.55);
}

.report-coverage-ring span {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  color: var(--juniper);
}

.report-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 6px 12px;
  margin-top: 8px;
}

.report-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.report-legend-swatch {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.report-legend-swatch--within {
  background: linear-gradient(90deg, rgba(63, 91, 74, 1), rgba(126, 138, 99, 0.9));
}

.report-legend-swatch--out {
  background: linear-gradient(90deg, rgba(196, 107, 78, 1), rgba(161, 79, 58, 1));
}

.report-legend-swatch--target {
  background: linear-gradient(90deg, rgba(127, 166, 182, 0.95), rgba(127, 166, 182, 0.75));
}

.report-chart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.report-chart-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(247, 241, 231, 0.62);
}

.report-chart-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.report-gap {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.8rem;
  font-weight: 600;
}

.report-gap--within {
  color: var(--juniper);
  background: rgba(126, 138, 99, 0.2);
  border: 1px solid rgba(126, 138, 99, 0.3);
}

.report-gap--out {
  color: #8f2f20;
  background: rgba(196, 107, 78, 0.18);
  border: 1px solid rgba(196, 107, 78, 0.28);
}

.report-track-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.report-track-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.report-track {
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(247, 241, 231, 0.92), rgba(247, 241, 231, 0.68));
  overflow: hidden;
}

.report-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 220ms var(--ease);
}

.report-bar--target {
  background: linear-gradient(90deg, rgba(127, 166, 182, 0.95), rgba(127, 166, 182, 0.75));
}

.report-bar--observed {
  background: linear-gradient(90deg, rgba(127, 166, 182, 0.95), rgba(127, 166, 182, 0.75));
}

.report-bar--observed-within {
  background: linear-gradient(90deg, rgba(63, 91, 74, 1), rgba(126, 138, 99, 0.9));
}

.report-bar--observed-out {
  background: linear-gradient(90deg, rgba(196, 107, 78, 1), rgba(161, 79, 58, 1));
}

.memberships-table th,
.memberships-table td {
  border-bottom-color: var(--border);
  vertical-align: middle;
  padding: 0.75rem 0.5rem;
  background: transparent;
}

.memberships-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: rgba(126, 138, 99, 0.08);
  --bs-table-color: inherit;
  table-layout: auto;
}

.memberships-table thead th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-strong);
  padding-top: 0.2rem;
  padding-bottom: 0.6rem;
}

.memberships-table th:last-child,
.memberships-table td:last-child {
  width: 96px;
  text-align: right;
}

.membership-user-cell {
  width: 27%;
  white-space: nowrap;
}

.membership-user-name {
  margin: 0;
  font-weight: 700;
}

.membership-user-detail {
  margin: 2px 0 0;
  font-size: 0.83rem;
  color: var(--muted);
}

.membership-roles-cell {
  width: 1%;
}

.membership-roles-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex-wrap: nowrap;
}

.membership-role-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  border: 0;
}

.membership-role-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0.52rem 0.95rem;
  white-space: nowrap;
  border: 1px solid rgba(63, 91, 74, 0.2);
  border-radius: 999px;
  background: #fff;
  font-size: 1.03rem;
  line-height: 1.2;
  min-height: 44px;
}

.membership-role-option.form-check .form-check-input {
  float: none;
  margin: 0;
  accent-color: var(--juniper);
  width: 1.12rem;
  height: 1.12rem;
}

.membership-role-option.form-check .form-check-input:focus {
  box-shadow: 0 0 0 0.16rem rgba(63, 91, 74, 0.2);
}

.membership-role-option:has(input[type="checkbox"]:checked) {
  border-color: rgba(63, 91, 74, 0.42);
  background: rgba(126, 138, 99, 0.2);
}

.membership-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.membership-actions-stack form {
  margin: 0;
}

.membership-actions-stack .link-button {
  white-space: nowrap;
}

.membership-save-status {
  margin: 0;
  min-height: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.membership-save-status:empty {
  display: none;
}

.membership-save-status[data-state="ok"] {
  color: var(--juniper);
}

.membership-save-status[data-state="error"] {
  color: #b03a2e;
}

.membership-save-status[data-state="pending"] {
  color: var(--muted);
}

.membership-error {
  margin: 0;
  font-size: 0.78rem;
  color: #b03a2e;
}

.profile-autosave-status {
  margin: 0;
  min-height: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.profile-autosave-status:empty {
  display: none;
}

.profile-autosave-status[data-state="ok"] {
  color: var(--juniper);
}

.profile-autosave-status[data-state="ok"]::before {
  content: "\2713";
  display: inline-block;
  margin-right: 0.35rem;
  font-weight: 700;
}

.profile-autosave-status[data-state="error"] {
  color: #b03a2e;
}

.profile-autosave-status[data-state="pending"] {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .membership-user-cell {
    width: 30%;
  }

  .membership-roles-form,
  .membership-role-grid {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .membership-user-cell {
    width: 34%;
    white-space: normal;
  }

  .memberships-table th,
  .memberships-table td {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .memberships-table th:last-child,
  .memberships-table td:last-child {
    width: 82px;
    text-align: left;
  }

  .membership-actions-stack {
    align-items: flex-start;
  }
}

.resource-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.resource-item {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(247, 241, 231, 0.65);
  box-shadow: var(--shadow-sm);
}

.resource-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease);
  color: inherit;
  background-image: none;
}

.resource-item:has(.resource-item-link) {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.resource-item:has(.resource-item-link) .resource-item-link {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(247, 241, 231, 0.65);
  box-shadow: var(--shadow-sm);
}

.resource-item-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 107, 78, 0.3);
  background-image: none;
}

.resource-item-link .badge {
  flex-shrink: 0;
}

.resource-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resource-link {
  font-weight: 600;
  font-size: 1.05rem;
}

.resource-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.resource-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.attendance-manual-form {
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(247, 241, 231, 0.72);
}

.display-page .card {
  padding: 28px;
}

.display-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

.display-main .meta strong {
  color: var(--night);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  font-size: 1rem;
  color: var(--text);
}

.detail-label {
  font-weight: 600;
  color: var(--muted);
}

.display-qr {
  text-align: center;
}

.qr-large {
  width: 100%;
  max-width: min(420px, 90vw);
}

@media (max-width: 820px) {
  .display-grid {
    grid-template-columns: 1fr;
  }

  .detail-item {
    grid-template-columns: 1fr;
  }
}

.auth-page {
  padding-top: 40px;
}

.auth-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}

.auth-card {
  padding: 26px 24px;
}

.auth-form .field+.field {
  margin-top: 14px;
}

.divider {
  margin: 18px 0;
  text-align: center;
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(63, 91, 74, 0.25);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.auth-note {
  border: 1px dashed rgba(63, 91, 74, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: rgba(247, 241, 231, 0.6);
  margin: 14px 0;
}

@media (max-width: 760px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
}

.org-mark {
  text-align: center;
  margin-bottom: 16px;
}

.org-mark img {
  display: inline-block;
  max-width: 220px;
  height: auto;
}

.org-name {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.organization-landing-page {
  max-width: 980px;
}

.organization-hero-card {
  text-align: center;
  padding: 36px 28px;
}

.organization-hero-mark {
  margin-bottom: 20px;
}

.organization-hero-mark .org-name {
  margin-top: 10px;
  font-size: 1rem;
}

.organization-logo-fallback {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(126, 138, 99, 0.28), rgba(127, 166, 182, 0.32));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 2rem;
  color: var(--juniper);
}

.organization-hero-copy {
  margin-bottom: 0.6rem;
}

.organization-auth-actions {
  justify-content: center;
}

.organization-details-card {
  padding-top: 26px;
}

.organization-signup-page .organization-hero-card {
  text-align: left;
}

.organization-signup-page .organization-hero-mark,
.organization-signup-page .organization-hero-copy {
  text-align: center;
}

.organization-signup-share-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.organization-signup-url {
  margin: 0;
  word-break: break-word;
}

.organization-signup-qr-wrap {
  margin-top: 12px;
}

.organization-signup-qr {
  max-width: 320px;
}

.organization-description {
  margin-bottom: 12px;
}

.organization-details-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.organization-detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: rgba(247, 241, 231, 0.6);
}

.organization-detail-row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.organization-detail-row dd {
  margin: 0;
}

@media (max-width: 760px) {
  .organization-detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

html {
  scroll-behavior: smooth;
}

.app-footer {
  border-top: 1px solid rgba(42, 38, 35, 0.1);
  background: rgba(247, 241, 231, 0.55);
  padding: 14px 16px;
}

.app-footer-text {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Landing page */
.landing-page {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  --bs-primary: var(--primary);
  --bs-primary-rgb: 196, 107, 78;
  --bs-secondary: var(--juniper);
  --bs-border-color: var(--border);
  --bs-border-radius: var(--radius-md);
  color: var(--text);
  background: var(--bg);
}

.landing-page a.btn,
.landing-page .nav-link,
.landing-page .btn-link {
  background-image: none;
}

.landing-page .btn-link {
  color: var(--juniper);
  font-weight: 600;
}

.landing-page .btn-link:hover {
  color: var(--primary-2);
  text-decoration: none;
}

.landing-page .list-group-item {
  background: rgba(247, 241, 231, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
}

.landing-hero {
  background: linear-gradient(180deg, rgba(242, 179, 148, 0.18), transparent 70%);
  border-bottom: 1px solid var(--border);
}

.landing-section {
  border-bottom: 1px solid rgba(42, 38, 35, 0.06);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(247, 241, 231, 0.8);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}

.chip i {
  font-size: 0.88em;
  color: var(--muted);
}

.chip-sm {
  font-size: 0.78rem;
  padding: 4px 8px;
}

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

.section-title,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title h2 {
  margin: 0;
}

.section-kicker {
  margin-bottom: 8px;
}

.section-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.section-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  color: #1a1a1a;
}

.section-icon svg,
.icon-pill svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.placeholder-panel {
  background: var(--surface);
  border: 1px dashed rgba(42, 38, 35, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.placeholder-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-visual .mini-card {
  background: rgba(247, 241, 231, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  min-height: 180px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-visual .row > [class*="col-"] {
  display: flex;
}

.mini-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.mini-muted {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 6px 0;
}

.mini-list {
  padding-left: 16px;
  font-size: 0.88rem;
  margin: 0 0 10px;
}

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

.mini-actions i {
  margin-right: 4px;
}

.mini-rows {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.78rem;
}

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

.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-label i,
.mini-muted i {
  color: var(--muted);
}

.mini-muted i {
  margin-right: 6px;
}

.mini-bar {
  display: inline-block;
  width: 60%;
  height: 6px;
  border-radius: 999px;
  background: rgba(126, 138, 99, 0.45);
}

.mini-bar.alt {
  background: rgba(196, 107, 78, 0.45);
}

.coverage-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(63, 91, 74, 0.12);
  overflow: hidden;
}

.coverage-fill {
  display: block;
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--sage), var(--primary));
}

.micro-diagram {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.diagram-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
}

.diagram-line::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--sage), var(--sky));
  opacity: 0.7;
}

.diagram-node {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.diagram-node i {
  color: var(--muted);
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(247, 241, 231, 0.8);
  color: #1a1a1a;
}

.step-card {
  background: rgba(247, 241, 231, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.callout {
  border-radius: var(--radius-md);
  background: rgba(127, 166, 182, 0.2);
  border: 1px solid rgba(127, 166, 182, 0.4);
  padding: 12px 14px;
  color: var(--night);
}

.landing-page .nav-pills .nav-link {
  border-radius: 999px;
  font-weight: 600;
  color: var(--juniper);
  background: rgba(247, 241, 231, 0.7);
  border: 1px solid var(--border);
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.landing-page .nav-pills .nav-link.active {
  color: var(--bg);
  background: linear-gradient(180deg, rgba(196, 107, 78, 1), rgba(161, 79, 58, 1));
  border-color: transparent;
}

.page-wide {
  max-width: 1280px;
}

.workspace-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 22px 20px 40px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: start;
}

.workspace-content {
  min-width: 0;
}

.workspace-content .page {
  margin: 0;
  max-width: none;
  padding: 0 0 40px;
}

.workspace-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  color: #1f2937;
  overflow: hidden;
}

.workspace-sidebar-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.workspace-sidebar-toggle {
  display: none;
}

.workspace-sidebar-shell {
  display: block;
}

.workspace-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #eef0f3;
}

.workspace-sidebar-header-compact {
  padding-bottom: 10px;
}

.workspace-sidebar-body {
  display: grid;
  gap: 16px;
  padding: 14px;
}

.workspace-menu-group {
  margin: 0;
  border: 1px solid #e7ecf2;
  border-radius: 12px;
  background: #fbfdff;
  overflow: hidden;
}

.workspace-menu-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  position: relative;
  display: grid;
  gap: 4px;
}

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

.workspace-menu-summary::marker {
  content: "";
}

.workspace-menu-summary .workspace-group-label {
  margin: 0;
  font-size: 0.66rem;
}

.workspace-menu-title {
  font-size: 0.9rem;
  color: #111827;
  font-weight: 600;
  line-height: 1.25;
  padding-right: 20px;
}

.workspace-menu-caret {
  position: absolute;
  margin-top: 16px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8f99a8;
  border-bottom: 2px solid #8f99a8;
  transform: rotate(45deg);
  transition: transform 180ms var(--ease);
}

.workspace-menu-group[open] .workspace-menu-caret {
  transform: rotate(225deg);
}

.workspace-menu-panel {
  padding: 4px 8px 10px;
  border-top: 1px solid #eef2f7;
}

.workspace-menu-panel .workspace-muted {
  margin: 4px 2px 2px;
}

.workspace-menu-section {
  display: grid;
  gap: 4px;
}

.workspace-menu-section + .workspace-menu-section {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #e7ecf2;
}

.workspace-menu-section-title {
  margin: 0 2px 2px;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 700;
}

.workspace-menu-section-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.workspace-session-subsections {
  display: grid;
}

.workspace-menu-subsection {
  margin: 0;
}

.workspace-menu-subsection + .workspace-menu-subsection {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #e7ecf2;
}

.workspace-menu-subsection-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 4px;
}

.workspace-menu-subsection-summary::-webkit-details-marker {
  display: none;
}

.workspace-menu-subsection-summary::marker {
  content: "";
}

.workspace-menu-subsection-summary .workspace-menu-section-title {
  margin: 0;
}

.workspace-menu-subsection-caret {
  position: static;
  margin-top: 0;
  flex-shrink: 0;
}

.workspace-menu-subsection .workspace-menu-subsection-caret {
  transform: rotate(45deg);
}

.workspace-menu-subsection[open] .workspace-menu-subsection-caret {
  transform: rotate(225deg);
}

.workspace-menu-subsection-panel {
  padding-bottom: 2px;
}

.workspace-alert-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #b91c1c;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
}

.workspace-section-note {
  margin: 0 2px 4px;
  color: #6b7280;
  font-size: 0.76rem;
}

.workspace-eyebrow {
  margin: 0 0 4px;
  color: #6b7280;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.workspace-panel-title {
  margin-bottom: 10px;
  color: var(--night);
  font-size: 1.25rem;
}

.workspace-org-form,
.workspace-org-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workspace-org-select {
  width: 100%;
  min-height: 40px;
  background: #f8fafc;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  padding: 0 10px;
  color: #111827;
}

.workspace-org-select:focus {
  border-color: #8ba3c2;
  box-shadow: 0 0 0 3px rgba(139, 163, 194, 0.22);
}

.workspace-org-submit {
  width: 100%;
  min-height: 40px;
  font-size: 0.88rem;
}

.workspace-current-org {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: #4b5563;
}

.workspace-current-org strong {
  color: #111827;
}

.workspace-muted {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: #6b7280;
}

.workspace-nav-group {
  padding: 0;
}

.workspace-group-label {
  margin: 0 0 7px;
  color: #6b7280;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
}

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

.workspace-link {
  display: block;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 10px;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  background: transparent;
  background-image: none;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}

.workspace-link-subtle {
  color: #6b7280;
  border-style: dashed;
  font-weight: 500;
}

.workspace-link:hover {
  background-image: none;
  color: #111827;
  border-color: #d4dbe5;
  background: #f8fafc;
}

.workspace-link-active {
  color: #0f172a;
  border-color: #d4dbe5;
  background: #f1f5f9;
}

.workspace-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.workspace-mini-link {
  font-size: 0.88rem;
  color: #6b7280;
  background-image: none;
}

.workspace-mini-link:hover {
  color: #111827;
  background-image: none;
}

.workspace-completed-disclosure {
  margin-top: 8px;
}

.workspace-completed-disclosure summary {
  cursor: pointer;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
}

.workspace-completed-disclosure summary:hover {
  color: #111827;
}

.workspace-session-list-completed {
  margin-top: 8px;
}

.workspace-home-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.workspace-home-header-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.workspace-home-logo-wrap {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.workspace-home-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.workspace-home-org-details {
  margin-top: 0;
}

.workspace-home-details-grid {
  margin: 8px 0 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.workspace-home-details-grid dt {
  margin: 0 0 4px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 700;
}

.workspace-home-details-grid dd {
  margin: 0;
  color: #111827;
}

.assistant-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
}

.assistant-main {
  min-width: 0;
}

.ask-ai-panel {
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.ask-ai-panel h2 {
  font-size: 1.35rem;
}

.ask-ai-input {
  min-height: 110px;
  resize: vertical;
}

.ask-ai-history {
  margin-top: 10px;
}

.ask-ai-entry {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

.ask-ai-label {
  margin: 0 0 0.45rem;
  font-weight: 600;
  color: var(--night);
}

.ask-ai-prompt {
  margin-bottom: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: rgba(247, 241, 231, 0.6);
}

.ask-ai-prompt p:last-child {
  margin-bottom: 0;
}

.ask-ai-drawer-shell {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
}

.ask-ai-drawer-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ask-ai-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid #c8d8e7;
  background: linear-gradient(180deg, #f9fcff, #eaf4fb);
  color: #1f3a54;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 22px rgba(63, 91, 116, 0.18);
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), opacity 120ms var(--ease);
}

.ask-ai-fab:hover {
  color: #17314a;
  background: linear-gradient(180deg, #ffffff, #e1eef9);
  background-image: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(63, 91, 116, 0.22);
}

.ask-ai-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #c8d8e7;
  background: #fff;
  color: #2a4a6a;
}

.ask-ai-fab-label {
  white-space: nowrap;
}

.ask-ai-backdrop {
  position: fixed;
  inset: 96px 0 0 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
  z-index: 1201;
}

.ask-ai-drawer {
  position: fixed;
  top: 96px;
  right: 0;
  width: min(430px, 95vw);
  height: calc(100dvh - 96px);
  background: #fff;
  border-top: 1px solid #d7dde5;
  border-left: 1px solid #d7dde5;
  border-top-left-radius: 14px;
  box-shadow: -18px 0 34px rgba(15, 23, 42, 0.18);
  transform: translateX(105%);
  transition: transform 220ms var(--ease);
  z-index: 1202;
  display: flex;
  flex-direction: column;
}

.ask-ai-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf4;
  background: #f8fafc;
}

.ask-ai-drawer-head strong {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1f2937;
}

.ask-ai-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d7dde5;
  color: #374151;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.ask-ai-drawer-close:hover {
  color: #111827;
  border-color: #c5ceda;
  background: #fff;
  background-image: none;
}

.ask-ai-drawer-body {
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.ask-ai-drawer .ask-ai-panel {
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.ask-ai-drawer .ask-ai-history {
  padding-bottom: 14px;
}

.ask-ai-drawer-toggle:checked + .ask-ai-fab {
  opacity: 0;
  pointer-events: none;
}

.ask-ai-drawer-toggle:checked + .ask-ai-fab + .ask-ai-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.ask-ai-drawer-toggle:checked + .ask-ai-fab + .ask-ai-backdrop + .ask-ai-drawer {
  transform: translateX(0);
}

.output-card .output-header {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.output-preview {
  background: rgba(247, 241, 231, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  white-space: normal;
  line-height: 1.55;
}

.output-preview > :first-child {
  margin-top: 0;
}

.output-preview > :last-child {
  margin-bottom: 0;
}

.output-preview p {
  margin: 0 0 0.8rem;
}

.output-preview h1,
.output-preview h2,
.output-preview h3,
.output-preview h4,
.output-preview h5,
.output-preview h6 {
  margin: 1rem 0 0.55rem;
  line-height: 1.3;
}

.output-preview h1 {
  font-size: 1.45rem;
}

.output-preview h2 {
  font-size: 1.28rem;
}

.output-preview h3 {
  font-size: 1.14rem;
}

.output-preview ul,
.output-preview ol {
  margin: 0 0 0.8rem;
  padding-left: 1.35rem;
}

.output-preview li {
  margin: 0.2rem 0;
}

.output-preview code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: rgba(31, 42, 46, 0.08);
  border-radius: 6px;
  padding: 0.1rem 0.32rem;
}

.output-preview pre {
  background: rgba(31, 42, 46, 0.08);
  border-radius: 10px;
  padding: 0.8rem;
  overflow-x: auto;
}

@media (max-width: 1100px) {
  .workspace-shell {
    grid-template-columns: 1fr;
    padding-top: 14px;
  }

  .workspace-sidebar {
    position: static;
    top: auto;
    border-radius: var(--radius-md);
  }

  .workspace-sidebar-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #eef0f3;
  }

  .workspace-sidebar-toggle strong {
    font-weight: 700;
    color: #374151;
  }

  .workspace-sidebar-shell {
    display: none;
  }

  .workspace-sidebar-checkbox:checked + .workspace-sidebar-toggle + .workspace-sidebar-shell {
    display: block;
  }

  .workspace-home-grid {
    grid-template-columns: 1fr;
  }

  .workspace-home-header-main {
    align-items: center;
  }

  .ask-ai-panel {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .workspace-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav:not(.nav-landing) .nav-inner {
    padding-left: 12px;
    padding-right: 12px;
    gap: 10px;
  }

  .nav-email {
    max-width: 140px;
  }

  .ask-ai-drawer-shell {
    right: 14px;
    bottom: 14px;
  }

  .ask-ai-fab {
    padding: 10px 11px;
  }

  .ask-ai-fab-label {
    display: none;
  }

  .ask-ai-drawer {
    width: 100vw;
    top: 112px;
    height: calc(100dvh - 112px);
    border-top-left-radius: 0;
  }

  .ask-ai-drawer-body {
    padding: 10px;
  }

  .ask-ai-backdrop {
    inset: 112px 0 0 0;
  }
}

.mini-title i {
  margin-right: 6px;
  color: var(--muted);
}

.output-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.strong-line {
  font-weight: 600;
  color: var(--night);
}

.landing-hero-halo {
  --ch-size: 124px;

  gap: 8px;
  margin: 4px 0 8px;
}

.landing-hero-halo .commons-halo__svg {
  filter: drop-shadow(0 8px 18px rgba(42, 38, 35, 0.08));
}

.representation-halo-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 58px;
}

.landing-representation-halo {
  --ch-size: 220px;
}

.participation-overlay {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 8px 20px rgba(42, 38, 35, 0.12);
}

.participation-overlay strong {
  margin-left: 4px;
}

.representation-halo-note {
  text-align: center;
  margin-top: 0;
}

.format-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-tile {
  background: rgba(247, 241, 231, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.privacy-panel {
  background: rgba(247, 241, 231, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.icon-muted {
  color: var(--muted);
  margin-right: 8px;
}

.landing-page #privacy ul li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.landing-page .btn-primary {
  background: linear-gradient(180deg, #c46b4e 0%, #8f3f2e 100%);
  background-color: #b4553a;
  border: 1px solid rgba(143, 63, 46, 0.45);
  box-shadow: 0 12px 30px rgba(161, 79, 58, 0.25);
  color: var(--text);
  text-decoration: none;
}

.landing-page .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(161, 79, 58, 0.32);
  color: #fff;
}

.landing-page .btn-outline-primary {
  border: 1px solid rgba(63, 91, 74, 0.28);
  color: var(--juniper);
  background: rgba(247, 241, 231, 0.6);
}

.landing-page .btn-outline-primary:hover {
  background: rgba(126, 138, 99, 0.16);
  border-color: rgba(126, 138, 99, 0.4);
  color: var(--juniper);
}

.cta-section {
  background: linear-gradient(135deg, rgba(127, 166, 182, 0.2), rgba(242, 179, 148, 0.2));
}

.photo-placeholder {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-section {
  background: linear-gradient(135deg, rgba(247, 241, 231, 0.55), rgba(127, 166, 182, 0.12));
}

.contact-form-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: rgba(247, 241, 231, 0.88);
}

.contact-form .form-control {
  border-color: rgba(63, 91, 74, 0.2);
  background: rgba(255, 255, 255, 0.88);
}

.contact-form .form-control:focus {
  border-color: rgba(63, 91, 74, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(63, 91, 74, 0.15);
}

.contact-honeypot-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.easy-sign-in-page {
  max-width: 1080px;
}

.easy-sign-in-welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.easy-sign-in-qr-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(247, 241, 231, 0.7);
  padding: 14px;
}

.easy-sign-in-qr-panel h2 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.easy-sign-in-join-qr {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 10px auto;
}

.easy-sign-in-join-url {
  margin-bottom: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.easy-sign-in-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.easy-sign-in-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.easy-sign-in-section-header h2 {
  margin-bottom: 0;
}

.easy-sign-in-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
}

.easy-sign-in-pagination .button {
  min-height: 38px;
  padding: 8px 14px;
}

.easy-sign-in-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-height: 128px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 42, 46, 0.16);
  box-shadow: var(--shadow-sm);
  padding: 14px 12px;
  text-align: left;
  background-image: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  transition: transform 120ms var(--ease), box-shadow 140ms var(--ease);
}

.easy-sign-in-tile:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.easy-sign-in-tile:focus-visible {
  outline: 3px solid rgba(31, 42, 46, 0.24);
  outline-offset: 1px;
}

.easy-sign-in-tile.checked-in {
  border-color: rgba(63, 91, 74, 0.42);
}

.easy-sign-in-name {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(28, 24, 21, 0.95);
}

.easy-sign-in-badge {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(63, 91, 74, 0.18);
  color: rgba(31, 42, 46, 0.9);
}

.easy-sign-in-tile-coral {
  background: linear-gradient(155deg, rgba(242, 179, 148, 0.85), rgba(196, 107, 78, 0.38));
}

.easy-sign-in-tile-sage {
  background: linear-gradient(155deg, rgba(186, 199, 153, 0.9), rgba(126, 138, 99, 0.32));
}

.easy-sign-in-tile-sky {
  background: linear-gradient(155deg, rgba(183, 212, 222, 0.9), rgba(127, 166, 182, 0.32));
}

.easy-sign-in-tile-juniper {
  background: linear-gradient(155deg, rgba(164, 188, 174, 0.88), rgba(63, 91, 74, 0.34));
}

.easy-sign-in-tile-gold {
  background: linear-gradient(155deg, rgba(237, 208, 133, 0.88), rgba(198, 154, 72, 0.3));
}

body.easy-sign-in-modal-open {
  overflow: hidden;
}

.easy-sign-in-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(31, 42, 46, 0.56);
  backdrop-filter: blur(2px);
}

.easy-sign-in-modal {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.easy-sign-in-modal-header {
  margin-bottom: 6px;
}

.easy-sign-in-modal-header h2 {
  margin-bottom: 0;
}

.easy-sign-in-pin-display {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 8px;
}

.easy-sign-in-pin-slot {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31, 42, 46, 0.2);
  background: rgba(247, 241, 231, 0.72);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.easy-sign-in-pin-slot.filled {
  border-color: rgba(196, 107, 78, 0.5);
  background: rgba(242, 179, 148, 0.26);
}

.easy-sign-in-pin-error {
  min-height: 24px;
  margin: 0 0 10px;
  color: #7a1f17;
  font-size: 0.92rem;
}

.easy-sign-in-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.easy-sign-in-key {
  min-height: 52px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31, 42, 46, 0.16);
  background: rgba(247, 241, 231, 0.75);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 100ms var(--ease), background 120ms var(--ease);
}

.easy-sign-in-key:hover {
  background: rgba(126, 138, 99, 0.16);
}

.easy-sign-in-key:active {
  transform: translateY(1px);
}

.easy-sign-in-key-utility {
  font-size: 0.9rem;
  font-weight: 600;
}

.point-voter-progress {
  margin-bottom: 14px;
}

.point-voter-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 42, 46, 0.12);
  overflow: hidden;
}

.point-voter-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--sage), var(--sky));
  transition: width 220ms var(--ease);
}

.point-voter-stack {
  position: relative;
  min-height: 260px;
  margin: 16px 0 18px;
}

.point-voter-card {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(31, 42, 46, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(247, 241, 231, 0.95), rgba(239, 228, 214, 0.96));
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), opacity 200ms var(--ease);
}

.point-voter-card.is-active {
  z-index: 3;
}

.point-voter-card.is-next {
  z-index: 2;
  transform: translateY(10px) scale(0.98);
  opacity: 0.9;
}

.point-voter-card.is-third {
  z-index: 1;
  transform: translateY(18px) scale(0.96);
  opacity: 0.78;
}

.point-voter-card.is-dragging {
  transition: none;
  cursor: grabbing;
}

.point-voter-title {
  margin: 0;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.2;
}

.point-voter-direction {
  position: absolute;
  top: 18px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 5px 10px;
  opacity: 0;
  transition: opacity 120ms var(--ease);
}

.point-voter-direction-agree {
  right: 18px;
  color: #1f5b3e;
  border: 1px solid rgba(31, 91, 62, 0.35);
  background: rgba(126, 138, 99, 0.24);
}

.point-voter-direction-disagree {
  left: 18px;
  color: #8a2f2b;
  border: 1px solid rgba(138, 47, 43, 0.32);
  background: rgba(196, 107, 78, 0.25);
}

.point-voter-card.cue-agree .point-voter-direction-agree,
.point-voter-card.cue-disagree .point-voter-direction-disagree {
  opacity: 1;
}

.point-voter-card.swipe-right {
  transform: translateX(130%) rotate(18deg);
  opacity: 0;
}

.point-voter-card.swipe-left {
  transform: translateX(-130%) rotate(-18deg);
  opacity: 0;
}

.point-voter-actions {
  justify-content: center;
}

.point-voter-agree-button,
.point-voter-disagree-button {
  min-width: 150px;
}

.point-voter-next-actions {
  justify-content: center;
}

.point-voter-empty {
  border: 1px dashed rgba(31, 42, 46, 0.25);
  border-radius: var(--radius-md);
  padding: 18px;
}

.vote-summary-row .meta {
  margin-bottom: 0;
}

.section-point-overview {
  margin: 16px 0 18px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(247, 241, 231, 0.55);
}

.section-point-overview h3 {
  margin-bottom: 10px;
}

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

.section-point-overview-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: rgba(247, 241, 231, 0.7);
}

.section-point-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.section-point-report-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(247, 241, 231, 0.65);
  box-shadow: var(--shadow-sm);
}

.section-point-report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.section-point-report-header h3 {
  margin-bottom: 4px;
}

.section-point-report-header .button {
  margin-left: auto;
}

.section-point-report-details {
  margin-top: 8px;
}

.section-point-report-details summary {
  cursor: pointer;
  font-weight: 600;
}

.section-point-report-point-list {
  margin: 10px 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.section-point-report-point-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: rgba(247, 241, 231, 0.85);
}

.section-point-statement {
  margin: 0 0 6px;
  font-weight: 600;
}

.report-halo-panel {
  margin: 10px 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.commons-halo {
  --ch-size: 182px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.commons-halo__svg {
  display: block;
  overflow: visible;
}

.commons-halo__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
  align-content: start;
  min-height: 96px;
}

.commons-halo__legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.commons-halo__legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(42, 38, 35, 0.14);
}

.commons-halo__legend-text {
  line-height: 1.25;
}

.report-breakdown-helper {
  margin-bottom: 12px;
}

.report-breakdown-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.report-breakdown-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(247, 241, 231, 0.52);
  display: flex;
  flex-direction: column;
}

.report-breakdown-card h3 {
  margin-bottom: 4px;
  min-height: 2.5em;
}

.report-breakdown-card .report-breakdown {
  margin-top: auto;
}

.report-detail-values {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (min-width: 1100px) {
  .report-breakdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    grid-auto-rows: 1fr;
  }

  .report-breakdown-card {
    height: 100%;
  }

  .commons-halo {
    --ch-size: 206px;
  }
}

@media (max-width: 640px) {
  .report-legend,
  .commons-halo__legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .participation-overlay {
    width: calc(100% - 24px);
    justify-content: center;
    text-align: center;
  }
}

.commons-halo__segment,
.commons-halo__dot,
.report-bar[data-bs-toggle="tooltip"] {
  cursor: pointer;
}

@media (max-width: 991px) {
  .landing-section {
    border-bottom: none;
  }

  .hero-visual .mini-card {
    min-height: auto;
  }

  .representation-halo-panel {
    padding-top: 64px;
  }

  .landing-representation-halo {
    --ch-size: 186px;
  }

  .easy-sign-in-welcome-grid {
    grid-template-columns: 1fr;
  }

  .easy-sign-in-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .point-voter-stack {
    min-height: 230px;
  }

  .point-voter-card {
    padding: 20px 16px;
  }

  .point-voter-title {
    font-size: 1.45rem;
  }

  .point-voter-agree-button,
  .point-voter-disagree-button {
    min-width: 126px;
  }

  .section-point-report-grid {
    grid-template-columns: 1fr;
  }

  .section-point-report-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-point-report-header .button {
    margin-left: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
