:root {
  --bg: #f4fbff;
  --bg-soft: #fff8e7;
  --surface: #fffdf7;
  --surface-cool: #f0f8ff;
  --panel: rgba(255, 253, 247, 0.94);
  --panel-strong: #ffffff;
  --ink: #16212a;
  --muted: #607080;
  --soft-text: #8a7350;
  --line: #d8e5e7;

  --brand-blue: #0697c7;
  --brand-blue-strong: #057092;
  --brand-blue-soft: #dff5fb;
  --brand-yellow: #ffd33d;
  --brand-amber: #f4b13d;
  --brand-coral: #ee7057;
  --brand-leaf: #4ba66d;
  --brand-red: #c84a3a;

  --ok: #288b58;
  --warn: #b98018;
  --bad: #bd4334;

  --shadow-soft: 0 18px 50px rgba(28, 69, 84, 0.1);
  --shadow-small: 0 8px 22px rgba(28, 69, 84, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Bricolage Grotesque", sans-serif;
  background:
    linear-gradient(125deg, rgba(6, 151, 199, 0.12), transparent 28%),
    linear-gradient(320deg, rgba(255, 211, 61, 0.2), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, #f9fcf7 52%, #eef8fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.7), transparent 28%),
    repeating-linear-gradient(135deg, rgba(6, 151, 199, 0.035) 0 1px, transparent 1px 18px);
  z-index: 0;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: repeating-radial-gradient(circle at 0 0, #000 0 1px, transparent 1px 4px);
  z-index: 0;
}

.app-frame,
.public-shell {
  position: relative;
  z-index: 1;
}

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

.sidepanel {
  position: sticky;
  top: 1rem;
  height: calc(100vh - 2rem);
  border: 1px solid rgba(216, 229, 231, 0.9);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(239, 250, 255, 0.94));
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: auto;
}

.brand-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid #e4eef0;
}

.brand-card img {
  width: 168px;
  max-width: 100%;
  height: auto;
  display: block;
}

.brand-card span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
}

.actor-card {
  padding: 0.9rem;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 211, 61, 0.22), rgba(6, 151, 199, 0.1)),
    #ffffff;
  border: 1px solid #e5ece9;
}

.actor-card span,
.nav-label,
.eyebrow,
.workspace-kicker {
  display: block;
  color: var(--soft-text);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.actor-card strong {
  display: block;
  margin-top: 0.18rem;
  color: #173242;
  line-height: 1.18;
}

.actor-card small {
  color: var(--muted);
}

.side-nav {
  display: grid;
  gap: 0.35rem;
}

.nav-label {
  margin: 0.8rem 0 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.62rem 0.72rem;
  border-radius: 14px;
  color: #264353;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #08384d;
  background: linear-gradient(90deg, rgba(255, 211, 61, 0.35), rgba(223, 245, 251, 0.95));
  text-decoration: none;
  transform: translateX(2px);
}

.logout-form {
  margin: auto 0 0;
}

.logout-form button {
  background: #fff;
  color: #335162;
  box-shadow: none;
  border-color: #d8e5e7;
}

.workspace {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 1rem;
}

.workspace-top {
  min-height: 96px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0.2rem 0.35rem;
}

.workspace-top h1 {
  margin: 0.12rem 0 0;
  font-family: "PT Serif", serif;
  color: #133445;
  font-size: clamp(1.55rem, 2.8vw, 2.45rem);
  line-height: 1.05;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.content-stack,
.public-shell {
  display: grid;
  gap: 1rem;
}

.public-shell {
  width: min(980px, 94vw);
  margin: 5vh auto;
}

.button-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  border: 1px solid #cfe0e4;
  background: #fff;
  color: #17475b;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-small);
}

.button-link:hover,
.ghost-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-link.primary {
  border-color: rgba(223, 163, 23, 0.36);
  background: linear-gradient(100deg, var(--brand-yellow), #ffc35b);
  color: #1d2719;
}

.button-link.subtle {
  background: var(--brand-blue-soft);
  border-color: #bfe5ee;
  box-shadow: none;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.status-line.centered {
  justify-content: center;
}

.status-line span {
  border: 1px solid #d9e7e9;
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.82rem;
}

.section-head.stacked {
  margin-top: 1rem;
}

.section-head h3 {
  margin: 0;
}

.section-head a {
  white-space: nowrap;
}

.flash-list {
  display: grid;
  gap: 0.55rem;
}

.flash {
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-left-width: 6px;
  font-size: 0.92rem;
  box-shadow: var(--shadow-small);
}

.flash.success {
  border-left-color: var(--ok);
}

.flash.warning {
  border-left-color: var(--warn);
}

.flash.info {
  border-left-color: var(--brand-blue);
}

@keyframes rise-in {
  from {
    opacity: 1;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 211, 61, 0.26), transparent 42%),
    linear-gradient(120deg, rgba(6, 151, 199, 0.14), rgba(255, 255, 255, 0.74)),
    var(--surface);
  color: var(--ink);
  padding: 1.15rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(216, 229, 231, 0.92);
  box-shadow: var(--shadow-soft);
  animation: rise-in 0.32s ease both;
}

.hero h2 {
  max-width: 820px;
  margin: 0.18rem 0 0;
  font-family: "PT Serif", serif;
  font-size: clamp(1.34rem, 2.4vw, 2.1rem);
  line-height: 1.1;
  color: #123446;
}

.hero p {
  max-width: 760px;
  margin: 0.45rem 0 0;
  color: #4d6470;
  font-size: 0.98rem;
}

.hero.compact h2 {
  font-size: clamp(1.26rem, 2.1vw, 1.85rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.metric-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.metric-grid article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem 0.9rem;
  box-shadow: var(--shadow-small);
  position: relative;
  overflow: hidden;
}

.metric-grid article::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  top: 0;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-yellow), var(--brand-coral));
}

.metric-grid h3 {
  margin: 0;
  font-size: 1.52rem;
  color: #133d50;
}

.metric-grid p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.metric-action {
  background: linear-gradient(145deg, rgba(255, 211, 61, 0.28), rgba(255, 255, 255, 0.88)) !important;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 0.95rem;
}

.single-mobile {
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1.18fr);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
  overflow: auto;
  box-shadow: var(--shadow-soft);
  animation: rise-in 0.34s ease both;
}

.panel h3 {
  margin: 0 0 0.82rem;
  font-size: 1.1rem;
  font-family: "PT Serif", serif;
  color: #133d50;
}

.quiet-panel {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.auth-panel {
  max-width: 460px;
  margin: 0 auto;
  width: min(100%, 460px);
}

.google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 48px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: var(--shadow-small);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.google-signin-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.google-signin-btn .google-g {
  flex: 0 0 auto;
  display: block;
}

.email-login-fallback {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 0.4rem;
}

.email-login-fallback > summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.55rem 0;
  user-select: none;
}

.email-login-fallback > summary::-webkit-details-marker {
  display: none;
}

.email-login-fallback > summary:hover {
  color: var(--brand-blue-strong);
}

.email-login-fallback[open] > summary {
  margin-bottom: 0.9rem;
}

.auth-hero {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}

.auth-hero h1 {
  margin: 0;
  font-family: "PT Serif", serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.04;
  color: #133445;
}

.auth-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.public-brand {
  width: fit-content;
  text-align: left;
}

.flow-strip {
  background: linear-gradient(145deg, rgba(6, 151, 199, 0.1), rgba(255, 211, 61, 0.12)), var(--panel);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.flow-steps article {
  border: 1px solid #d4e5e7;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 0.75rem;
  display: grid;
  gap: 0.28rem;
}

.flow-steps strong {
  font-size: 1.55rem;
  color: #133d50;
}

.flow-steps span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}

.entity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.entity-grid.compact {
  grid-template-columns: 1fr;
}

.entity-card {
  border: 1px solid #d8e7e9;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 249, 0.92));
  padding: 0.85rem;
  display: grid;
  gap: 0.52rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.entity-card:hover {
  transform: translateY(-2px);
  border-color: #bfdee5;
  box-shadow: var(--shadow-small);
}

.entity-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.entity-head > a,
.entity-head > strong {
  font-size: 1rem;
  line-height: 1.25;
}

.entity-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.entity-meta,
.entity-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}

.entity-meta span,
.entity-metrics span {
  font-size: 0.8rem;
  color: #365a69;
  background: #f3fbff;
  border: 1px solid #d9e9ed;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.entity-link {
  font-size: 0.84rem;
}

.module-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-card {
  border: 1px solid #d6e5e8;
  border-radius: 18px;
  padding: 0.85rem;
  background: linear-gradient(160deg, #ffffff, #f4fbff);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.module-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-small);
}

.module-card strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #133d50;
}

.module-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.search-row {
  margin-bottom: 0.7rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
}

button {
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid #cfdfe2;
  border-radius: 14px;
  padding: 0.62rem 0.78rem;
  background: #ffffff;
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: #6d8191;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 3px solid rgba(6, 151, 199, 0.22);
  outline-offset: 1px;
}

button {
  width: auto;
  max-width: 100%;
  min-height: 42px;
  cursor: pointer;
  border: 1px solid rgba(196, 134, 17, 0.28);
  border-radius: 999px;
  padding: 0.62rem 0.85rem;
  font-weight: 800;
  color: #1c2719;
  background: linear-gradient(92deg, var(--brand-yellow) 0%, #ffc55c 100%);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
  box-shadow: var(--shadow-small);
  white-space: normal;
}

button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(199, 128, 22, 0.3);
}

button.danger {
  color: #fff;
  border-color: rgba(170, 32, 32, 0.55);
  background: linear-gradient(100deg, #e04635 0%, var(--brand-red) 100%);
  box-shadow: 0 8px 16px rgba(170, 32, 32, 0.22);
}

.form-grid button,
.auth-panel button,
.feedback-form-panel button {
  justify-self: start;
}

.badge {
  display: inline-block;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge.risk {
  background: #fff1d4;
  color: #81520b;
}

.badge.done {
  background: #d8f7e7;
  color: #0f6f42;
}

.badge.plan {
  background: #ffefae;
  color: #7a5a08;
}

.badge.canceled {
  background: #ffd6d6;
  color: #822525;
}

.chip {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.17rem 0.48rem;
  border-radius: 999px;
  background: #e9f5ff;
  border: 1px solid #bcdcf7;
  color: #10405f;
  font-size: 0.73rem;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0 0.42rem;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.62rem 0.72rem;
  vertical-align: top;
}

th {
  color: #466075;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 0;
}

td {
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid #d9e8eb;
  border-bottom: 1px solid #d9e8eb;
}

td:first-child {
  border-left: 1px solid #d9e8eb;
  border-radius: 14px 0 0 14px;
}

td:last-child {
  border-right: 1px solid #d9e8eb;
  border-radius: 0 14px 14px 0;
}

a {
  color: #0a74ad;
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  color: #085a87;
  text-decoration: underline;
}

.action-list,
.timeline,
.compact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.form-grid {
  display: grid;
  gap: 0.65rem;
}

.form-grid label {
  display: grid;
  gap: 0.3rem;
}

.form-grid label > span {
  font-size: 0.79rem;
  color: #4f6473;
  font-weight: 600;
}

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

.prep-flow {
  display: grid;
  gap: 0.9rem;
}

.prep-overview {
  display: grid;
  gap: 0.8rem;
}

.prep-headline p {
  margin: 0;
  color: #29485c;
  font-size: 0.95rem;
}

.prep-meter {
  display: grid;
  gap: 0.38rem;
}

.prep-meter-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e5f1fb;
  border: 1px solid #c8dff1;
  overflow: hidden;
}

.prep-meter-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9 0%, #23b08a 55%, #f7b72d 100%);
  transition: width 0.2s ease;
}

.prep-meter span {
  font-size: 0.82rem;
  color: #35576f;
  font-weight: 700;
}

.prep-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.prep-stat {
  border: 1px solid #cfe3f4;
  border-radius: 12px;
  background: #f7fbff;
  padding: 0.58rem 0.62rem;
}

.prep-stat strong {
  display: block;
  color: #0f3f61;
  font-size: 1rem;
}

.prep-stat span {
  display: block;
  margin-top: 0.14rem;
  color: #506a7e;
  font-size: 0.78rem;
}

.prep-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.prep-jump a {
  border: 1px solid #c9dfef;
  border-radius: 999px;
  background: #f1f8ff;
  color: #0c5f8c;
  font-size: 0.79rem;
  padding: 0.24rem 0.58rem;
  text-decoration: none;
}

.prep-jump a:hover {
  background: #e7f3ff;
  text-decoration: none;
}

.prep-section h3 {
  margin-bottom: 0.5rem;
}

.prep-section .section-head h3 {
  margin-bottom: 0;
}

.prep-section > label,
.question-card label {
  display: grid;
  gap: 0.3rem;
}

.prep-section > label > span,
.question-card label > span {
  color: #4f6473;
  font-size: 0.79rem;
  font-weight: 700;
}

.happiness-groups {
  display: grid;
  gap: 0.75rem;
}

.happiness-group {
  border: 1px solid #cfe2f2;
  border-radius: 14px;
  background: linear-gradient(160deg, #f7fcff, #edf7ff);
  padding: 0.72rem;
}

.happiness-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.happiness-group-head h4 {
  margin: 0;
  color: #103f5d;
  font-size: 1rem;
}

.question-stack {
  display: grid;
  gap: 0.62rem;
}

.question-stack.compact {
  grid-template-columns: 1fr;
}

.question-card {
  border: 1px solid #d2e5f5;
  border-radius: 14px;
  background: linear-gradient(160deg, #ffffff, #f5fbff);
  padding: 0.7rem;
  display: grid;
  gap: 0.5rem;
}

.question-card.compact-card {
  padding: 0.6rem;
}

.question-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.question-card h4 {
  margin: 0;
  color: #153e5a;
  font-size: 0.97rem;
  line-height: 1.35;
}

.question-text p {
  margin: 0;
  color: #29495d;
}

.score-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.score-scale-happiness .score-choice span {
  min-width: 2.25rem;
}

.happiness-scale-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.happiness-scale-legend span {
  border: 1px solid #d4e6f5;
  background: #f7fbff;
  color: #2f536b;
  border-radius: 999px;
  padding: 0.15rem 0.48rem;
  font-size: 0.72rem;
}

.score-choice {
  position: relative;
  display: inline-flex;
}

.score-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.score-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #caddea;
  background: #ffffff;
  color: #36556b;
  font-size: 0.83rem;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.score-choice input:hover + span {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(13, 34, 52, 0.12);
}

.score-choice input:checked + span {
  border-color: #1b6ea1;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.score-choice.clear span {
  min-width: 2.4rem;
  color: #6f8292;
  background: #f1f5f9;
}

.score-choice.tone-low input:checked + span {
  background: #ffe1dd;
  color: #7d2016;
  border-color: #e7a49c;
}

.score-choice.tone-mid input:checked + span {
  background: #fff0cc;
  color: #7a5708;
  border-color: #e8c57b;
}

.score-choice.tone-good input:checked + span {
  background: #e3f1ff;
  color: #0e4d79;
  border-color: #a7cceb;
}

.score-choice.tone-strong input:checked + span {
  background: #ddf5e8;
  color: #17643e;
  border-color: #9fcfb2;
}

.score-choice.tone-excellent input:checked + span {
  background: #d7f8e4;
  color: #0f6f42;
  border-color: #87d1a8;
}

.optional-block {
  border: 1px solid #d3e6f5;
  border-radius: 14px;
  background: #fafdff;
  padding: 0.14rem 0.7rem 0.7rem;
}

.optional-block summary {
  display: grid;
  gap: 0.08rem;
  cursor: pointer;
  list-style: none;
  padding: 0.4rem 0;
}

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

.optional-block summary h3 {
  margin: 0;
}

.optional-block summary small {
  color: #4c6578;
  font-size: 0.79rem;
}

.optional-body {
  display: grid;
  gap: 0.65rem;
}

.optional-body h4 {
  margin: 0.2rem 0 0;
  color: #113f5d;
  font-size: 0.95rem;
}

.prep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.prep-actions .ghost-link {
  border: 1px solid #bfd9ec;
  border-radius: 12px;
  background: #eef7ff;
  padding: 0.5rem 0.72rem;
  font-size: 0.86rem;
}

.invite-list-wrap {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.5rem;
}

.invite-list-wrap h4 {
  margin: 0;
  color: #113f5d;
}

.invite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.46rem;
}

.invite-list li {
  border: 1px solid #d7e8f6;
  border-radius: 12px;
  background: #f8fcff;
  padding: 0.6rem;
  display: grid;
  gap: 0.45rem;
}

.invite-list li strong {
  color: #0f3f61;
}

.invite-list li small {
  display: block;
  color: #547083;
  margin-top: 0.14rem;
}

.invite-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  align-items: center;
}

.invite-link input {
  font-size: 0.8rem;
  color: #28495f;
}

.invite-link a {
  border: 1px solid #bfd9ec;
  border-radius: 10px;
  background: #eef7ff;
  padding: 0.36rem 0.58rem;
  font-size: 0.8rem;
}

.feedback-reviewers {
  display: grid;
  gap: 0.6rem;
}

.reviewer-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.6rem;
  border: 1px solid #d6e9f7;
  border-radius: 12px;
  background: #f6fbff;
}

.feedback-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 0.9rem;
}

.feedback-card {
  border: 1px solid #d0e5f5;
  border-radius: 12px;
  background: #f7fbff;
  padding: 0.7rem;
}

.feedback-card h4 {
  margin: 0 0 0.5rem;
  color: #0f3f61;
}

.feedback-card p {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
}

.feedback-title {
  margin: 0.4rem 0 0.32rem;
  font-size: 0.82rem;
  color: #466075;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.feedback-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 0.32rem;
}

.feedback-list li {
  border: 1px solid #deebf7;
  border-radius: 10px;
  background: #fff;
  padding: 0.38rem 0.48rem;
  font-size: 0.85rem;
}

.feedback-list li span {
  display: block;
  color: #5a7387;
  font-size: 0.79rem;
  margin-top: 0.12rem;
}

.check {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.check input {
  width: auto;
}

.row-actions {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.action-list li,
.timeline li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.62rem 0;
  border-bottom: 1px solid #d8e8f6;
}

.compact-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid #d8e8f6;
}

.action-list p {
  margin: 0;
}

.action-list small,
.timeline small {
  color: #516575;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.open {
  background: var(--bad);
}

.dot.expired {
  background: var(--warn);
}

.dot.future {
  background: var(--ok);
}

.status {
  display: inline-block;
  min-width: 75px;
  text-align: center;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status.done {
  background: #d8f7e7;
  color: #0f6f42;
}

.status.plan {
  background: #ffefae;
  color: #7a5a08;
}

.status.canceled {
  background: #ffd6d6;
  color: #822525;
}

.status.planned {
  background: #ddf2ff;
  color: #0c5f8c;
}

.status.invited {
  background: #fff0be;
  color: #6a4d00;
}

.status.prepared {
  background: #e3f8dd;
  color: #2e6f20;
}

.scale-note {
  margin: 0 0 0.6rem;
  color: #36556b;
  font-size: 0.88rem;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0 0 0.75rem;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #f2f9ff;
  border: 1px solid #cfe6f8;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  font-size: 0.75rem;
  color: #1d4b66;
}

.score-table td {
  vertical-align: top;
}

.score-table {
  min-width: 920px;
}

.happiness-group-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 0.75rem;
}

.happiness-group-summary article {
  border: 1px solid #d4e7f5;
  border-radius: 12px;
  background: #f8fcff;
  padding: 0.52rem 0.6rem;
}

.happiness-group-summary h4 {
  margin: 0 0 0.22rem;
  color: #0f3f61;
  font-size: 0.9rem;
}

.happiness-group-summary p {
  margin: 0;
  color: #2f5268;
  font-size: 0.82rem;
}

.happiness-group-summary small {
  display: block;
  margin-top: 0.16rem;
  color: #567487;
  font-size: 0.75rem;
}

.happiness-question p {
  margin: 0;
}

.score-row-mismatch td:first-child {
  border-left: 4px solid #f7b72d;
  padding-left: 0.42rem;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid transparent;
  line-height: 1.2;
}

.score-pill.empty {
  background: #f3f5f7;
  color: #738090;
  border-color: #d8e0e8;
}

.score-pill.low {
  background: #ffe2df;
  color: #7d2016;
  border-color: #efb0a9;
}

.score-pill.mid {
  background: #fff1ce;
  color: #7a5708;
  border-color: #f2d287;
}

.score-pill.good {
  background: #e8f2ff;
  color: #0e4d79;
  border-color: #b9d5ef;
}

.score-pill.strong {
  background: #dff5e8;
  color: #17643e;
  border-color: #9fd4b4;
}

.score-pill.excellent {
  background: #daf8e5;
  color: #0f6f42;
  border-color: #83d4a9;
}

.score-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: #4a6578;
}

.delta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.16rem 0.52rem;
  font-size: 0.73rem;
  font-weight: 700;
  background: #f3f5f7;
  color: #4e6274;
  border: 1px solid #d7e2ec;
}

.delta-pill.up {
  background: #ffe6cc;
  color: #8a4b07;
  border-color: #efbc80;
}

.delta-pill.down {
  background: #dff2ff;
  color: #0e4d79;
  border-color: #a9d1ef;
}

.delta-pill.even {
  background: #e6f7ea;
  color: #1e6640;
  border-color: #a8d9b8;
}

.facts {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0.45rem 0.72rem;
  margin: 0;
}

.facts dt {
  color: #4b5f70;
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

.longtext {
  white-space: pre-wrap;
  line-height: 1.45;
}

.panel-head {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 320px);
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.panel-head h3 {
  margin: 0;
}

.empty-state {
  margin: 0.4rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px dashed #c8dee3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

.score-panel {
  overflow: auto;
}

.feedback-public-hero {
  max-width: 780px;
}

.feedback-public-hero h1 {
  max-width: 720px;
}

.feedback-form-panel {
  width: min(100%, 820px);
  margin: 0 auto;
}

.feedback-form-panel .question-card {
  background: linear-gradient(160deg, #fffdf7, #f3fbff);
}

.people-admin {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.45fr);
}

.people-panel {
  max-height: 78vh;
}

.people-list {
  display: grid;
  gap: 0.72rem;
}

.people-card {
  border-radius: 12px;
  background: linear-gradient(160deg, #ffffff, #f6fbff);
}

.people-card.inactive {
  background: linear-gradient(160deg, #fbfcfd, #eef4f8);
  border-style: dashed;
  opacity: 0.86;
}

.person-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
}

.person-card-head strong {
  display: block;
  color: #103f5d;
  line-height: 1.2;
}

.person-card-head small {
  display: block;
  margin-top: 0.14rem;
  color: #5b7183;
  font-size: 0.78rem;
}

.person-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.person-form-grid label {
  display: grid;
  gap: 0.24rem;
}

.person-form-grid label > span {
  color: #4f6473;
  font-size: 0.76rem;
  font-weight: 700;
}

.person-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.person-meta-row span {
  border: 1px solid #d2e5f5;
  border-radius: 999px;
  background: #f3f9ff;
  color: #31586f;
  font-size: 0.75rem;
  padding: 0.18rem 0.52rem;
}

.person-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.person-actions button,
.row-actions button,
.logout-form button {
  width: 100%;
}

.person-actions .ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfd9ec;
  border-radius: 12px;
  background: #eef7ff;
  color: #0c5f8c;
  padding: 0.5rem 0.72rem;
  font-size: 0.86rem;
  text-decoration: none;
}

.status.active {
  background: #d8f7e7;
  color: #0f6f42;
}

.status.inactive {
  background: #e5edf3;
  color: #566b7b;
}

/* Claude Design pass: calmer internal-product density. */
:root {
  --shadow-soft: 0 10px 28px rgba(25, 61, 76, 0.08);
  --shadow-small: 0 4px 12px rgba(25, 61, 76, 0.07);
  --radius: 8px;
}

body {
  background:
    linear-gradient(120deg, rgba(6, 151, 199, 0.08), transparent 34%),
    linear-gradient(320deg, rgba(255, 211, 61, 0.12), transparent 36%),
    linear-gradient(180deg, #fbfaf5 0%, #f2f8fb 100%);
}

body::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.66), transparent 38%);
}

.app-frame {
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 0.85rem;
}

.sidepanel,
.brand-card,
.actor-card,
.hero,
.panel,
.metric-grid article,
.entity-card,
.module-card,
.flow-steps article,
.question-card,
.happiness-group,
.optional-block,
.feedback-card,
.invite-list li,
.prep-stat,
.empty-state {
  border-radius: var(--radius);
}

.workspace-top {
  min-height: 74px;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-small);
}

.workspace-top h1 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.hero {
  padding: 1rem;
}

.hero h2 {
  font-size: clamp(1.24rem, 1.9vw, 1.72rem);
}

.panel {
  padding: 0.9rem;
}

.button-link,
.ghost-link,
button,
input,
select,
textarea,
.nav-item,
.invite-link a,
.prep-actions .ghost-link,
.person-actions .ghost-link {
  border-radius: var(--radius);
}

.button-link,
.ghost-link,
button {
  min-height: 38px;
  padding: 0.52rem 0.78rem;
}

.metric-grid article::before {
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0;
}

.metric-grid h3,
.flow-steps strong {
  font-family: "PT Serif", serif;
}

.people-panel {
  max-height: none;
}

.person-summary {
  cursor: pointer;
  display: grid;
  gap: 0.52rem;
  list-style: none;
}

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

.person-summary::after {
  content: "Wijzig gegevens";
  justify-self: start;
  color: #0b6e8e;
  font-size: 0.78rem;
  font-weight: 800;
}

.people-card[open] .person-summary {
  padding-bottom: 0.78rem;
  border-bottom: 1px solid #dce8ea;
}

.person-edit-form {
  display: grid;
  gap: 0.68rem;
  padding-top: 0.78rem;
}

.person-edit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}

.person-edit-head .ghost-link {
  box-shadow: none;
}

.flow-strip {
  background: linear-gradient(145deg, rgba(255, 211, 61, 0.16), rgba(6, 151, 199, 0.08)), rgba(255, 255, 255, 0.8);
}

.flow-steps article {
  min-height: 84px;
  align-content: center;
}

@media (max-width: 860px) {
  .app-frame {
    grid-template-columns: 1fr;
    padding: 0.75rem;
  }

  .sidepanel {
    position: static;
    height: auto;
  }

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

  .nav-label {
    grid-column: 1 / -1;
  }

  .workspace-top {
    padding-top: 0.2rem;
  }

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

  .split,
  .single-mobile,
  .people-admin {
    grid-template-columns: 1fr;
  }

  .flow-steps,
  .entity-grid {
    grid-template-columns: 1fr;
  }

  .reviewer-row,
  .feedback-duo {
    grid-template-columns: 1fr;
  }

  .prep-stats {
    grid-template-columns: 1fr;
  }

  .happiness-group-summary {
    grid-template-columns: 1fr;
  }

  .person-form-grid,
  .panel-head {
    grid-template-columns: 1fr;
  }

  .person-actions {
    grid-template-columns: 1fr;
  }

  .invite-link {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-frame {
    padding: 0.55rem;
  }

  .sidepanel,
  .hero,
  .panel {
    border-radius: var(--radius);
  }

  .sidepanel {
    gap: 0.6rem;
    padding: 0.65rem;
  }

  .brand-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.62rem;
  }

  .brand-card img {
    width: 132px;
  }

  .actor-card {
    display: none;
  }

  .side-nav {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 0.4rem;
    padding-bottom: 0.1rem;
  }

  .nav-label {
    display: none;
  }

  .nav-item {
    flex: 1 1 auto;
    min-height: 36px;
    padding: 0.48rem 0.68rem;
    white-space: nowrap;
    justify-content: center;
  }

  .logout-form button {
    min-height: 36px;
    padding: 0.48rem 0.68rem;
  }

  .workspace-top,
  .hero,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-actions,
  .hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .workspace-actions .button-link,
  .hero-actions .button-link {
    flex: 1 1 auto;
  }

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

  .metric-grid,
  .metric-grid.three {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero h2 {
    font-size: 1.45rem;
  }

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

  .score-choice span {
    min-width: 1.95rem;
    height: 1.88rem;
    font-size: 0.8rem;
  }

  .prep-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Radical UI direction: editorial control room, sharper and more premium. */
:root {
  --bg: #f5f7f8;
  --bg-soft: #f8fafb;
  --surface: #ffffff;
  --surface-cool: #f3f8fc;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --ink: #0e1726;
  --muted: #667085;
  --soft-text: #7a6a43;
  --line: #e4e7ec;

  --brand-blue: #2369ff;
  --brand-blue-strong: #164dc7;
  --brand-blue-soft: #e7efff;
  --brand-yellow: #f4c430;
  --brand-amber: #d89b1d;
  --brand-coral: #e5604d;
  --brand-leaf: #2e8b5a;
  --brand-red: #c73f31;

  --ok: #2e8b5a;
  --warn: #b7791f;
  --bad: #c73f31;

  --shadow-soft: none;
  --shadow-small: none;
  --radius: 8px;
}

html {
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    linear-gradient(180deg, #f8fafb 0%, #f3f6f8 100%);
}

body::before,
.noise {
  display: none;
}

.app-frame {
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.sidepanel {
  top: 0;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, #0e1726 0%, #111f33 100%);
  box-shadow: none;
  padding: 1.25rem 1rem;
}

.brand-card {
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.95rem;
}

.brand-card span {
  color: #344054;
}

.actor-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.actor-card span,
.nav-label {
  color: rgba(255, 255, 255, 0.56);
}

.actor-card strong {
  color: #ffffff;
}

.actor-card small {
  color: rgba(255, 255, 255, 0.72);
}

.nav-label {
  margin-top: 1rem;
}

.nav-item {
  min-height: 40px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-weight: 700;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: none;
}

.nav-item.active {
  color: #0e1726;
  border-color: rgba(255, 255, 255, 0.72);
  border-left-color: var(--brand-yellow);
  background: #ffffff;
  transform: none;
}

.logout-form button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.workspace {
  padding: 1.35rem 1.65rem 2.5rem;
  gap: 1rem;
}

.workspace-top {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 1rem 1.1rem;
}

.workspace-kicker,
.eyebrow {
  color: #8a7235;
  letter-spacing: 0.09em;
}

.workspace-top h1,
.hero h2,
.panel h3,
.metric-grid h3,
.flow-steps strong,
.auth-hero h1 {
  font-family: "Newsreader", serif;
}

.workspace-top h1 {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.1vw, 2.25rem);
}

.content-stack {
  gap: 1rem;
}

.hero {
  border: 0;
  border-left: 6px solid var(--brand-blue);
  border-radius: 10px;
  background: #0e1726;
  box-shadow: none;
  color: #ffffff;
  padding: 1.35rem 1.45rem;
}

.hero .eyebrow {
  color: var(--brand-yellow);
}

.hero h2 {
  color: #ffffff;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
}

.hero p {
  color: rgba(255, 255, 255, 0.76);
}

.panel,
.metric-grid article,
.entity-card,
.module-card,
.feedback-card,
.question-card,
.happiness-group,
.optional-block,
.invite-list li,
.prep-stat,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

.panel {
  padding: 1rem;
}

.panel h3 {
  color: var(--ink);
  font-size: 1.22rem;
}

.button-link,
.ghost-link,
button {
  min-height: 38px;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 700;
}

.button-link,
.ghost-link {
  border-color: #d0d5dd;
  color: #0e1726;
  background: #ffffff;
}

.button-link.primary,
button {
  border-color: #d6a81d;
  background: var(--brand-yellow);
  color: #0e1726;
}

.button-link.subtle {
  border-color: #c7d7ff;
  background: var(--brand-blue-soft);
  color: var(--brand-blue-strong);
}

button:hover,
.button-link:hover,
.ghost-link:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(14, 23, 38, 0.08);
}

button.danger {
  border-color: var(--brand-coral);
  background: var(--brand-coral);
  color: #ffffff;
}

input,
select,
textarea {
  border-color: #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 3px solid rgba(35, 105, 255, 0.18);
}

.metric-grid {
  gap: 0.85rem;
}

.metric-grid article {
  border-top: 3px solid var(--brand-blue);
  padding: 0.95rem;
}

.metric-grid article::before {
  display: none;
}

.metric-grid h3 {
  color: var(--ink);
  font-size: 1.85rem;
}

.metric-action {
  border-top-color: var(--brand-yellow);
  background: #ffffff !important;
}

.flow-strip {
  border-color: #dbe2ea;
  background: #ffffff;
}

.flow-steps {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.flow-steps article {
  min-height: 92px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  padding: 1rem;
}

.flow-steps article:last-child {
  border-right: 0;
}

.flow-steps strong {
  color: var(--brand-blue);
  font-size: 1.8rem;
}

.flow-steps span {
  color: #475467;
}

.status,
.badge,
.chip,
.entity-meta span,
.entity-metrics span,
.person-meta-row span,
.status-line span,
.legend-chip,
.delta-pill,
.score-pill {
  border-radius: 999px;
}

.status.planned,
.status.invited {
  background: #fff4ce;
  color: #7a4f00;
}

.status.prepared,
.status.done,
.status.active {
  background: #dff5e8;
  color: #17643e;
}

.status.inactive,
.status.canceled {
  background: #f2f4f7;
  color: #667085;
}

.people-card {
  border-left: 4px solid var(--brand-blue);
}

.people-card.inactive {
  border-left-color: #98a2b3;
}

.people-card[open] {
  border-color: #b9c9ff;
}

.person-summary::after {
  color: var(--brand-blue-strong);
  background: var(--brand-blue-soft);
  border: 1px solid #c7d7ff;
  border-radius: 999px;
  padding: 0.18rem 0.56rem;
}

.person-card-head strong {
  color: var(--ink);
}

.person-edit-head {
  padding-top: 0.15rem;
}

.timeline {
  display: grid;
  gap: 0.75rem;
}

.timeline li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(116px, auto);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 0.9rem;
}

.timeline li:has(> form) {
  display: block;
  background: #f8fafb;
  border-style: dashed;
}

.timeline li p {
  margin: 0 0 0.32rem;
}

.timeline small {
  color: #667085;
}

table {
  border-spacing: 0;
}

th {
  color: #667085;
  background: #f8fafb;
}

td {
  border-color: var(--line);
  background: #ffffff;
}

td:first-child,
td:last-child {
  border-radius: 0;
}

@media (max-width: 1100px) {
  .app-frame {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .workspace {
    padding: 1rem;
  }
}

@media (max-width: 860px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

  .sidepanel {
    position: static;
    height: auto;
    border-radius: 0;
  }

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

  .workspace {
    padding: 0.8rem;
  }
}

@media (max-width: 760px) {
  .side-nav {
    display: flex;
  }

  .metric-grid,
  .metric-grid.three,
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .flow-steps article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-steps article:last-child {
    border-bottom: 0;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }
}

/* Claude Design v2: editorial control room, warmer and more intentional. */
:root {
  --surface-canvas: #f4f2ec;
  --surface-panel: #ffffff;
  --surface-sunken: #f8f7f2;
  --surface-inset: #efede6;
  --ink: #0e1726;
  --ink-soft: #4a5468;
  --muted: #6b7488;
  --soft-text: #866f2c;
  --line: #e5e2d8;
  --line-soft: #eceae2;
  --rule-strong: #d9d6cc;

  --brand-blue: #2b5bd7;
  --brand-blue-strong: #1e3fa0;
  --brand-blue-soft: #e5ebfa;
  --brand-yellow: #f4c430;
  --brand-amber: #c49810;
  --brand-coral: #e5604d;
  --brand-leaf: #2e8b5a;
  --brand-red: #c24a37;

  --shadow-soft: 0 18px 50px rgba(14, 23, 38, 0.07);
  --shadow-small: 0 8px 22px rgba(14, 23, 38, 0.06);
  --radius: 8px;
}

html {
  background: var(--surface-canvas);
}

body {
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18) 34%),
    var(--surface-canvas);
}

body.is-authenticated::before {
  content: "";
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
}

.noise {
  display: none;
}

.app-frame {
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.sidepanel {
  top: 0;
  height: 100vh;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 22%),
    #0e1726;
  box-shadow: none;
  padding: 1.2rem 1rem;
}

.sidepanel::before {
  content: "";
  display: block;
  height: 3px;
  margin: -1.2rem -1rem 1rem;
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-blue), transparent 70%);
}

.brand-card {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.9rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.brand-card span {
  color: #344054;
  font-size: 0.84rem;
}

.actor-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  padding: 0.82rem;
}

.actor-card span,
.nav-label {
  color: rgba(255, 255, 255, 0.55);
}

.actor-card strong {
  color: #ffffff;
}

.actor-card small {
  color: rgba(255, 255, 255, 0.72);
}

.nav-label,
.workspace-kicker,
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
}

.nav-label {
  margin: 1rem 0 0.22rem;
}

.nav-item {
  min-height: 38px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: none;
}

.nav-item.active {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.82);
  border-left-color: var(--brand-yellow);
  background: #ffffff;
  transform: none;
}

.logout-form button {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.workspace {
  padding: 1.2rem clamp(1rem, 2.2vw, 2rem) 2.75rem;
  gap: 1rem;
}

.workspace-top {
  min-height: 70px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(244, 242, 236, 0.84);
  box-shadow: none;
  padding: 0.25rem 0 1rem;
}

.workspace-top h1,
.hero h2,
.panel h3,
.auth-hero h1 {
  font-family: "Newsreader", serif;
}

.workspace-top h1 {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.1vw, 2.28rem);
  letter-spacing: 0;
}

.workspace-kicker,
.eyebrow {
  color: var(--soft-text);
  font-size: 0.68rem;
}

.content-stack {
  gap: 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #172744;
  border-left: 6px solid var(--brand-blue);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 16px),
    linear-gradient(110deg, #0e1726 0%, #13233d 70%, #173876 100%);
  box-shadow: 0 16px 40px rgba(14, 23, 38, 0.16);
  color: #ffffff;
  padding: 1.32rem 1.42rem;
}

.hero::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 1rem;
  width: 76px;
  height: 3px;
  background: var(--brand-yellow);
  opacity: 0.95;
}

.hero .eyebrow {
  color: var(--brand-yellow);
}

.hero h2 {
  color: #ffffff;
  font-size: clamp(1.42rem, 2.15vw, 2.16rem);
  line-height: 1.02;
  max-width: 880px;
}

.hero p {
  color: rgba(255, 255, 255, 0.76);
}

.panel,
.metric-grid article,
.entity-card,
.module-card,
.feedback-card,
.question-card,
.happiness-group,
.optional-block,
.invite-list li,
.prep-stat,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  box-shadow: none;
}

.panel {
  padding: 1rem;
}

.panel h3 {
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.05;
}

.section-head {
  margin-bottom: 0.9rem;
}

.button-link,
.ghost-link,
button,
input,
select,
textarea,
.invite-link a,
.prep-actions .ghost-link,
.person-actions .ghost-link {
  border-radius: 8px;
}

.button-link,
.ghost-link,
button {
  min-height: 36px;
  box-shadow: none;
  font-weight: 700;
}

.button-link,
.ghost-link {
  border-color: var(--rule-strong);
  color: var(--ink);
  background: #ffffff;
}

.button-link.primary {
  border-color: #d6a81d;
  background: var(--brand-yellow);
  color: var(--ink);
}

.button-link.subtle {
  border-color: #c7d7ff;
  background: var(--brand-blue-soft);
  color: var(--brand-blue-strong);
}

button {
  border-color: var(--brand-blue-strong);
  background: var(--brand-blue);
  color: #ffffff;
}

button:hover,
.button-link:hover,
.ghost-link:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(14, 23, 38, 0.1);
}

button.danger {
  border-color: var(--brand-coral);
  background: var(--brand-coral);
  color: #ffffff;
}

input,
select,
textarea {
  border-color: #d7d3c9;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 3px solid rgba(43, 91, 215, 0.18);
  outline-offset: 1px;
}

.form-grid label > span,
.person-form-grid label > span,
.prep-section > label > span,
.question-card label > span {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

#new-plan .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

#new-plan .form-grid button {
  justify-self: start;
}

.metric-grid {
  gap: 0.75rem;
}

.metric-grid article {
  min-height: 88px;
  border-top: 3px solid var(--brand-blue);
  padding: 0.88rem 0.92rem;
  background: linear-gradient(180deg, #ffffff, #fbfaf6);
}

.metric-grid article::before {
  display: none;
}

.metric-grid h3 {
  color: var(--ink);
  font-family: "Newsreader", serif;
  font-size: 1.95rem;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.metric-grid p {
  color: var(--ink-soft);
}

.metric-action {
  border-top-color: var(--brand-yellow);
}

.metric-action h3 a {
  color: var(--ink);
}

.flow-strip {
  border-color: var(--line);
  background: #ffffff;
  padding: 0.95rem;
}

.flow-steps {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.flow-steps article {
  position: relative;
  min-height: 84px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff, #faf9f4);
  padding: 0.95rem 1rem;
}

.flow-steps article:last-child {
  border-right: 0;
}

.flow-steps article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-blue);
  opacity: 0;
}

.flow-steps article:hover::before {
  opacity: 1;
}

.flow-steps strong {
  color: var(--brand-blue);
  font-family: "Newsreader", serif;
  font-size: 1.9rem;
  line-height: 0.94;
}

.flow-steps span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.status,
.badge,
.chip,
.entity-meta span,
.entity-metrics span,
.person-meta-row span,
.status-line span,
.legend-chip,
.delta-pill,
.score-pill {
  border-radius: 999px;
}

.entity-card {
  gap: 0.55rem;
  background: linear-gradient(180deg, #ffffff, #fbfaf6);
  border-left: 3px solid var(--brand-blue);
}

.entity-card:hover {
  border-color: var(--rule-strong);
  border-left-color: var(--brand-yellow);
  box-shadow: var(--shadow-small);
  transform: translateY(-1px);
}

.entity-meta span,
.entity-metrics span,
.person-meta-row span {
  border-color: var(--line);
  background: var(--surface-sunken);
  color: var(--ink-soft);
}

.people-admin {
  grid-template-columns: minmax(250px, 0.62fr) minmax(360px, 1.38fr);
}

.people-panel {
  max-height: none;
}

.people-list {
  gap: 0.62rem;
}

.people-card {
  border-left: 0;
  background: #ffffff;
}

.people-card:hover {
  border-color: var(--rule-strong);
  box-shadow: 0 10px 28px rgba(14, 23, 38, 0.05);
}

.people-card.inactive {
  border-left: 0;
  background: #fafafa;
  opacity: 0.88;
}

.people-card[open] {
  border-color: #b7c8fa;
  box-shadow: 0 14px 32px rgba(43, 91, 215, 0.08);
}

.person-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.56rem 0.75rem;
}

.person-card-head {
  grid-column: 1 / -1;
}

.person-card-head strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.person-card-head small {
  color: var(--muted);
}

.person-meta-row {
  grid-column: 1;
}

.person-summary::after {
  grid-column: 2;
  color: var(--brand-blue-strong);
  background: var(--brand-blue-soft);
  border: 1px solid #c7d7ff;
  border-radius: 999px;
  padding: 0.18rem 0.56rem;
}

.people-card[open] .person-summary {
  border-bottom-color: var(--line);
}

.person-edit-form {
  padding-top: 0.85rem;
}

.person-form-grid {
  gap: 0.64rem;
}

.person-actions {
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: start;
}

.person-actions button {
  width: auto;
}

.facts {
  grid-template-columns: minmax(112px, 0.42fr) 1fr;
  gap: 0.44rem 0.75rem;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  color: var(--ink);
  font-weight: 600;
}

.people-admin .facts {
  grid-template-columns: 1fr;
  gap: 0.08rem;
}

.people-admin .facts dt {
  margin-top: 0.35rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.people-admin .facts dt:first-child {
  margin-top: 0;
}

.people-admin .facts dd {
  overflow-wrap: anywhere;
}

.import-form button {
  width: 100%;
  font-size: 0.88rem;
}

.timeline {
  gap: 0.68rem;
}

.timeline li {
  position: relative;
  grid-template-columns: 92px minmax(0, 1fr) minmax(112px, auto);
  gap: 0.82rem;
  align-items: start;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-blue);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.82rem;
}

.timeline li:has(> form) {
  border-left-color: var(--rule-strong);
  background: var(--surface-sunken);
  border-style: solid;
}

.timeline li p {
  margin: 0 0 0.25rem;
}

.timeline small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.row-actions {
  gap: 0.38rem;
}

.row-actions button {
  width: 100%;
  min-height: 34px;
  padding: 0.42rem 0.68rem;
  font-size: 0.88rem;
}

.status {
  min-width: 0;
  border: 1px solid transparent;
  padding: 0.18rem 0.46rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.02em;
}

.status.planned,
.status.invited,
.badge.plan {
  border-color: #ead18a;
  background: #fbefc9;
  color: #765600;
}

.status.prepared,
.status.done,
.status.active,
.badge.done {
  border-color: #b8d9c4;
  background: #e5f3ea;
  color: #17643e;
}

.status.inactive,
.status.canceled {
  border-color: #d0d5dd;
  background: #f2f4f7;
  color: #667085;
}

.badge.risk,
.score-row-mismatch td:first-child {
  border-color: #f1c2ba;
  background: #fceae4;
  color: #9d3324;
}

.prep-meter-track {
  height: 9px;
  border-color: var(--line);
  background: var(--surface-inset);
}

.prep-meter-fill {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-leaf), var(--brand-yellow));
}

.prep-stat {
  background: linear-gradient(180deg, #ffffff, #fbfaf6);
}

.question-card {
  background: #ffffff;
}

.question-card h4 {
  color: var(--ink);
}

.score-scale {
  gap: 0.22rem;
}

.score-choice span {
  min-width: 2rem;
  height: 1.92rem;
  border-radius: 7px;
  border-color: var(--line);
  background: #ffffff;
  box-shadow: none;
}

.score-choice input:hover + span {
  box-shadow: 0 5px 14px rgba(14, 23, 38, 0.09);
}

.score-choice input:checked + span {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(43, 91, 215, 0.16);
}

table {
  border-spacing: 0;
}

th {
  color: var(--muted);
  background: var(--surface-sunken);
}

td {
  border-color: var(--line);
  background: #ffffff;
}

td:first-child,
td:last-child {
  border-radius: 0;
}

@media (max-width: 1240px) {
  .single-mobile {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .people-admin {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .app-frame {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .workspace {
    padding: 1rem;
  }

  .timeline li {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .timeline li .row-actions {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .timeline li .row-actions form {
    min-width: 132px;
  }
}

@media (max-width: 860px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

  .sidepanel {
    position: static;
    height: auto;
  }

  .sidepanel::before {
    margin-bottom: 0.85rem;
  }

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

  .workspace {
    padding: 0.85rem;
  }

  .workspace-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .side-nav {
    display: flex;
  }

  .metric-grid,
  .metric-grid.three,
  .flow-steps,
  .prep-stats,
  #new-plan .form-grid,
  .person-form-grid,
  .panel-head {
    grid-template-columns: 1fr;
  }

  .hero::after {
    display: none;
  }

  .flow-steps article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-steps article:last-child {
    border-bottom: 0;
  }

  .timeline li,
  .timeline li .row-actions,
  .person-summary {
    grid-template-columns: 1fr;
  }

  .person-summary::after {
    grid-column: 1;
    justify-self: start;
  }
}

/* People workbench redesign: move away from database/admin-card ergonomics. */
body.is-authenticated::before {
  display: none;
}

.button-link.primary {
  border-color: var(--brand-blue-strong);
  background: var(--brand-blue);
  color: #ffffff;
}

.button-link.primary:hover {
  color: #ffffff;
}

.workspace-top {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18)),
    transparent;
}

.people-command {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #182742;
  border-left: 6px solid var(--brand-yellow);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(43, 91, 215, 0.22), transparent 62%),
    #0e1726;
  color: #ffffff;
  padding: clamp(1rem, 2.2vw, 1.55rem);
  box-shadow: 0 18px 44px rgba(14, 23, 38, 0.14);
}

.people-command::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 18px;
  width: 180px;
  height: 1px;
  background: var(--brand-yellow);
  transform: rotate(-8deg);
  opacity: 0.9;
}

.people-command-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.people-command .eyebrow {
  color: var(--brand-yellow);
}

.people-command h2 {
  max-width: 780px;
  margin: 0.16rem 0 0;
  color: #ffffff;
  font-family: "Newsreader", serif;
  font-size: clamp(1.58rem, 2.6vw, 2.45rem);
  line-height: 0.98;
}

.people-command p {
  max-width: 680px;
  margin: 0.62rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.98rem;
}

.people-command-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
}

.people-command-stats article {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 0.18rem;
  padding: 0.78rem 0.86rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.people-command-stats article:nth-child(2n) {
  border-right: 0;
}

.people-command-stats article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.people-command-stats strong {
  color: #ffffff;
  font-family: "Newsreader", serif;
  font-size: 2.15rem;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.people-command-stats span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 700;
}

.people-workbench {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: start;
}

.people-directory {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
}

.people-directory-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.people-directory-head h3 {
  margin: 0;
}

.people-directory-head input {
  min-height: 42px;
  background: var(--surface-sunken);
}

.people-list {
  gap: 0;
}

.people-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  padding: 0;
  transition: background 0.14s ease, box-shadow 0.14s ease;
}

.people-card:hover {
  border-color: var(--line);
  background: #fbfaf6;
  box-shadow: none;
  transform: none;
}

.people-card:last-child {
  border-bottom: 0;
}

.people-card.inactive {
  border-left: 0;
  background: #f7f7f4;
  opacity: 0.9;
}

.people-card[open] {
  border-color: var(--line);
  background: #fbfaf6;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.person-summary {
  display: grid;
  grid-template-columns: 42px minmax(170px, 1.08fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
}

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

.person-summary:focus {
  outline: none;
}

.person-summary:focus-visible {
  outline: 3px solid rgba(43, 91, 215, 0.22);
  outline-offset: -3px;
}

.person-summary::after {
  content: none;
  display: none;
}

.people-card[open] .person-summary {
  border-bottom: 1px solid var(--line);
}

.person-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd8ec;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--brand-blue-soft));
  color: var(--brand-blue-strong);
  font-family: "Newsreader", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
}

.person-main {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.person-main strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.18;
}

.person-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-context {
  display: grid;
  grid-template-columns: minmax(120px, 1.3fr) repeat(2, minmax(72px, 0.7fr));
  gap: 0.45rem;
}

.person-context > span {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
  border-left: 1px solid var(--line);
  padding-left: 0.65rem;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.2;
}

.person-context small {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.person-state {
  display: grid;
  justify-items: end;
  gap: 0.34rem;
}

.person-edit-cta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #c7d7ff;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue-strong);
  padding: 0.16rem 0.56rem;
  font-size: 0.74rem;
  font-weight: 800;
}

.person-edit-form {
  display: grid;
  gap: 0.78rem;
  padding: 0.95rem 1rem 1rem 4.75rem;
}

.person-edit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.person-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.62rem;
}

.person-form-grid .full {
  grid-column: 1 / -1;
}

.person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.person-actions button {
  width: auto;
}

.people-studio {
  display: grid;
  gap: 0.9rem;
}

.people-create-panel {
  background:
    linear-gradient(180deg, #ffffff, #fbfaf6);
}

.people-create-panel .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.people-create-panel .full,
.people-create-panel button {
  grid-column: 1 / -1;
}

.people-import-panel {
  padding: 0.85rem 1rem;
  background: var(--surface-sunken);
}

.people-import-panel summary {
  display: grid;
  gap: 0.05rem;
  cursor: pointer;
  list-style: none;
}

.people-import-panel summary::-webkit-details-marker {
  display: none;
}

.people-import-panel summary strong {
  color: var(--ink);
  font-family: "Newsreader", serif;
  font-size: 1.1rem;
}

.people-import-panel .facts {
  margin-top: 0.75rem;
}

@media (min-width: 1280px) {
  .people-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
  }

  .people-studio {
    position: sticky;
    top: 1rem;
  }
}

@media (max-width: 760px) {
  .people-command,
  .person-summary,
  .person-context {
    grid-template-columns: 1fr;
  }

  .person-summary {
    align-items: start;
  }

  .person-avatar {
    display: none;
  }

  .person-state {
    justify-items: start;
  }

  .person-edit-form {
    padding-left: 1rem;
  }
}

@media (max-width: 760px) {
  .people-command-stats,
  .people-create-panel .form-grid,
  .person-form-grid {
    grid-template-columns: 1fr;
  }

  .people-command-stats article {
    border-right: 0;
  }
}

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

@media print {
  .sidepanel,
  .workspace-top,
  .prep-meter,
  .prep-jump,
  .logout-form,
  .noise,
  button,
  .button-link {
    display: none !important;
  }

  body,
  .workspace,
  .sa-content,
  .content-stack {
    background: #fff !important;
    color: #111 !important;
  }

  .panel,
  .question-card,
  .feedback-card,
  .agreement-card {
    break-inside: avoid;
    box-shadow: none !important;
    border-color: #ddd !important;
  }
}
