:root {
  --paper: #f7f4ee;
  --ink: #20221f;
  --muted: #6d7169;
  --line: #d9d1c4;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --coral: #d85c45;
  --rose: #c8506f;
  --mint: #b8e3c8;
  --amber: #f2c56b;
  --blue: #4c78a8;
  --shadow: 0 18px 44px rgba(49, 44, 34, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(200, 80, 111, 0.1), transparent 36%),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body.admin-body {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.07), transparent 36%),
    linear-gradient(315deg, rgba(76, 120, 168, 0.1), transparent 34%),
    var(--paper);
}

body.info-body {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(76, 120, 168, 0.1), transparent 36%),
    var(--paper);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding: 18px;
}

.app-footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.app-footer a,
.info-footer a {
  color: var(--teal-dark);
  text-decoration: none;
}

.app-footer a:hover,
.info-footer a:hover {
  text-decoration: underline;
}

.admin-footer {
  margin-top: 0;
}

.admin-shell {
  display: grid;
  gap: 16px;
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.info-shell {
  display: grid;
  gap: 16px;
  width: min(960px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.admin-header,
.admin-token-panel,
.admin-server-status,
.info-header,
.info-hero,
.info-grid article,
.admin-summary,
.admin-tools,
.admin-feedback-tools,
.admin-checkout-tools,
.admin-report-card,
.admin-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: var(--shadow);
}

.admin-header,
.admin-token-panel,
.admin-server-status,
.info-header,
.admin-tools,
.admin-feedback-tools,
.admin-checkout-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

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

.info-actions .language-select select {
  min-width: 152px;
}

.info-hero {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.info-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--teal-dark);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.info-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
}

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

.info-grid article {
  min-height: 154px;
  padding: 16px;
}

.info-grid span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.info-grid p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

.support-contact-card {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
}

.support-contact-card small,
.support-contact-missing {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.support-contact-card a {
  color: var(--teal-dark);
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
}

.support-contact-card a:hover {
  text-decoration: underline;
}

.support-contact-missing {
  display: block;
  margin-top: 10px;
}

.info-footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
}

.admin-token-panel .field {
  flex: 1;
  margin-bottom: 0;
}

.admin-server-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: stretch;
  padding: 12px;
}

.admin-server-status div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  padding: 11px;
}

.admin-server-status span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-server-status strong {
  display: block;
  margin-top: 4px;
  color: var(--teal-dark);
  font-size: 1.1rem;
}

.admin-server-status small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.admin-server-status .ghost-button {
  align-self: center;
  white-space: nowrap;
}

.admin-checkout-tools div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-checkout-tools span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-checkout-tools strong {
  color: var(--teal-dark);
  font-size: 1.1rem;
}

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

.admin-checkout-tools .ghost-button {
  display: inline-grid;
  align-items: center;
  min-width: 148px;
  padding: 0 14px;
  text-decoration: none;
}

.admin-plus-grant-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 88px auto auto;
  align-items: end;
  gap: 10px;
  min-width: min(100%, 560px);
}

.admin-plus-grant-form .field {
  margin-bottom: 0;
}

.admin-plus-grant-form .field input[type="number"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
}

.admin-plus-grant-form .ghost-button {
  min-width: 98px;
}

.admin-plus-grant-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-plus-grant-card {
  align-content: start;
}

.admin-plus-grant-card .admin-report-head h2 {
  overflow-wrap: anywhere;
}

.admin-feedback-filter-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-feedback-filter-stack .filter-row {
  margin-bottom: 0;
}

.admin-feedback-search {
  display: grid;
  gap: 6px;
  width: min(100%, 420px);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-feedback-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 11px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  text-transform: none;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  padding: 12px;
}

.admin-summary div,
.admin-summary button {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: inherit;
  padding: 12px;
  text-align: left;
}

.admin-summary button {
  cursor: pointer;
}

.admin-summary button:hover,
.admin-summary button.is-active {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(184, 227, 200, 0.34);
}

.admin-summary-alert {
  border-color: rgba(216, 92, 69, 0.28) !important;
  background: #fff0eb !important;
}

.admin-summary-alert strong {
  color: var(--coral);
}

.admin-summary span,
.admin-report-head span,
.admin-report-people dt,
.admin-report-messages strong,
.admin-report-message span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--teal-dark);
  font-size: 1.45rem;
}

.status-pill[data-tone="good"] {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(184, 227, 200, 0.42);
}

.status-pill[data-tone="bad"] {
  border-color: rgba(216, 92, 69, 0.3);
  background: #fff0eb;
  color: var(--coral);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 900;
}

.admin-section-heading span {
  color: var(--teal-dark);
}

.admin-section-heading strong {
  font-size: 0.82rem;
}

.admin-empty {
  padding: 18px;
  color: var(--muted);
  font-weight: 850;
}

.admin-report-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.admin-report-card[data-report-status="new"] {
  border-color: rgba(216, 92, 69, 0.3);
}

.admin-report-card[data-report-priority="urgent"] {
  border-color: rgba(216, 92, 69, 0.42);
  box-shadow: 0 18px 42px rgba(216, 92, 69, 0.12);
}

.admin-audit-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-audit-card {
  gap: 12px;
}

.admin-audit-card .admin-report-head h2 {
  font-size: 1rem;
}

.admin-audit-counts {
  grid-template-columns: 1fr;
}

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

.admin-report-head h2 {
  margin-top: 4px;
  font-size: 1.2rem;
}

.admin-report-head strong {
  border-radius: 999px;
  background: rgba(184, 227, 200, 0.4);
  color: var(--teal-dark);
  padding: 7px 10px;
  font-size: 0.78rem;
}

.admin-report-head strong[data-report-state="new"] {
  background: #fff0eb;
  color: var(--coral);
}

.admin-report-context {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-report-context span {
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  padding: 6px 9px;
  font-size: 0.75rem;
  font-weight: 900;
}

.admin-report-context span[data-tone="needs"] {
  border-color: rgba(216, 92, 69, 0.3);
  background: #fff0eb;
  color: var(--coral);
}

.admin-report-context span[data-tone="active"] {
  background: rgba(255, 215, 124, 0.3);
  color: #8a5b00;
}

.admin-report-context span[data-tone="done"] {
  background: rgba(184, 227, 200, 0.4);
  color: var(--teal-dark);
}

.admin-report-context span[data-tone="quiet"] {
  border-color: rgba(76, 120, 168, 0.2);
  background: #eef4fb;
  color: #315f86;
}

.admin-report-people {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-report-people div {
  display: grid;
  gap: 3px;
}

.admin-report-people dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-report-person {
  display: grid;
  gap: 3px;
}

.admin-report-person small,
.admin-report-copy-status {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.admin-report-note {
  margin: 0;
  border-left: 3px solid var(--amber);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  padding: 10px 12px;
  font-weight: 750;
}

.admin-report-messages {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-report-message {
  display: grid;
  gap: 4px;
}

.admin-report-message p {
  margin: 0;
  border-left: 3px solid rgba(15, 118, 110, 0.22);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

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

.admin-report-actions .card-action.is-active {
  background: var(--ink);
  color: white;
}

.admin-contact-detail {
  display: grid;
  gap: 8px;
}

.admin-contact-detail > span {
  overflow-wrap: anywhere;
}

.admin-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-contact-detail small {
  color: var(--muted);
  font-weight: 850;
}

.admin-queue-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-queue-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-queue-badge[data-tone="due"],
.admin-queue-badge[data-tone="hot"] {
  border-color: rgba(216, 92, 69, 0.34);
  background: #fff0eb;
  color: var(--coral);
}

.admin-queue-badge[data-tone="warm"],
.admin-queue-badge[data-tone="scheduled"] {
  border-color: rgba(15, 118, 110, 0.28);
  background: #eaf7f4;
  color: var(--teal-dark);
}

.admin-queue-badge[data-tone="cold"],
.admin-queue-badge[data-tone="untouched"] {
  border-color: rgba(76, 120, 168, 0.24);
  background: #eef4fb;
  color: #315f86;
}

.admin-lead-priority {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-lead-priority span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-lead-outcomes {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-lead-outcomes span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-lead-note,
.admin-report-review-note {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-lead-note label,
.admin-report-review-note label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-lead-note textarea,
.admin-report-review-note textarea {
  min-height: 70px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 750;
  line-height: 1.35;
}

.admin-lead-note div,
.admin-report-review-note div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-lead-note small,
.admin-report-review-note small {
  color: var(--muted);
  font-weight: 850;
}

.admin-lead-follow-up {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-lead-follow-up span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-lead-follow-up strong {
  color: var(--ink);
}

.feedback-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.feedback-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-box .field {
  margin-bottom: 0;
}

.feedback-box textarea {
  min-height: 72px;
}

.update-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1480px;
  margin: 0 auto 14px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(49, 44, 34, 0.1);
  padding: 12px;
}

.update-banner strong,
.update-banner span {
  display: block;
}

.update-banner strong {
  color: var(--teal-dark);
  font-size: 0.92rem;
}

.update-banner span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.update-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.invite-welcome {
  border-color: rgba(200, 80, 111, 0.24);
  background: rgba(255, 250, 242, 0.94);
}

.invite-welcome strong {
  color: var(--coral);
}

.invite-welcome .update-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compact-command {
  min-height: 38px;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

.release-card,
.install-card,
.safety-guide-card,
.readiness-card,
.guidelines-card,
.privacy-card {
  display: grid;
  gap: 12px;
  max-width: 1480px;
  margin: 0 auto 14px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.92);
  box-shadow: var(--shadow);
  padding: 14px;
}

.release-head,
.release-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.release-head span {
  border-radius: 999px;
  background: rgba(184, 227, 200, 0.46);
  color: var(--teal-dark);
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 900;
}

.release-card ul,
.install-card ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
}

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

.readiness-timeline div,
.readiness-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 10px;
}

.readiness-timeline span,
.readiness-item span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.readiness-timeline strong,
.readiness-item strong {
  display: block;
  margin-top: 4px;
  color: var(--teal-dark);
  font-size: 0.92rem;
}

.readiness-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.32;
}

.readiness-item[data-tone="ready"] {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(184, 227, 200, 0.34);
}

.readiness-item[data-tone="next"] {
  border-color: rgba(242, 197, 107, 0.45);
  background: rgba(255, 244, 223, 0.66);
}

.readiness-item[data-tone="check"] {
  border-color: rgba(216, 92, 69, 0.24);
  background: #fff3ed;
}

.release-card li,
.install-card li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: 10px;
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.32;
}

.install-card li {
  counter-increment: install-step;
}

.install-card li::before {
  content: counter(install-step) ". ";
  color: var(--teal-dark);
  font-weight: 950;
}

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

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

.safety-guide-grid div,
.guidelines-grid div,
.privacy-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 10px;
}

.safety-guide-grid strong,
.guidelines-grid strong,
.privacy-grid strong {
  display: block;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 950;
}

.safety-guide-grid p,
.guidelines-grid p,
.privacy-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
}

.privacy-controls-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(184, 227, 200, 0.22);
  padding: 11px;
}

.privacy-controls-card > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.privacy-controls-card strong {
  color: var(--teal-dark);
  font-size: 0.9rem;
}

.privacy-controls-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.35;
}

.privacy-control-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.privacy-control-actions .ghost-button {
  min-height: 36px;
  padding-inline: 10px;
  white-space: nowrap;
}

.privacy-controls-card small {
  grid-column: 1 / -1;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.privacy-controls-card textarea {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 132px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.82);
  color: var(--ink);
  padding: 10px;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.35;
  resize: vertical;
}

.privacy-import-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(15, 118, 110, 0.16);
  padding-top: 10px;
}

.privacy-import-preview[hidden] {
  display: none;
}

.privacy-import-preview p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.4;
}

.privacy-import-preview ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-import-preview li {
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 7px;
  background: rgba(255, 250, 242, 0.72);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 830;
  line-height: 1.3;
  padding: 7px 8px;
}

.privacy-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.privacy-import-actions button {
  min-height: 36px;
}

.privacy-import-actions .danger-button {
  background: #d85c45;
  color: #fffaf2;
}

.privacy-import-actions .danger-button:hover {
  background: #bf4d39;
}

.danger-command.is-attention {
  box-shadow: 0 0 0 3px rgba(216, 92, 69, 0.22);
}

.onboarding {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(247, 244, 238, 0.9), rgba(255, 250, 242, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(184, 227, 200, 0.46), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(200, 80, 111, 0.18), transparent 30%);
  backdrop-filter: blur(12px);
}

.onboarding-panel {
  display: grid;
  gap: 20px;
  width: min(680px, calc(100vw - 36px));
  min-width: 0;
  max-height: calc(100vh - 36px);
  overflow: auto;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.94);
  box-shadow: 0 30px 80px rgba(49, 44, 34, 0.22);
  padding: clamp(22px, 5vw, 38px);
}

.onboarding-brand {
  display: flex;
  justify-content: center;
  min-height: 132px;
}

.onboarding-mark {
  width: 128px;
  height: 128px;
}

.onboarding-mark .brand-heart {
  display: none;
}

.onboarding-mark .brand-word {
  display: none;
}

.onboarding-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.invite-chip {
  justify-self: center;
  margin: -2px 0 0;
  border-radius: 999px;
  background: rgba(200, 80, 111, 0.12);
  color: var(--coral);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 950;
}

.onboarding-copy h1 {
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(2rem, 7vw, 3.4rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.onboarding-copy p:last-child {
  max-width: 100%;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.45;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 10px;
}

.onboarding-steps div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 12px;
}

.onboarding-steps span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 950;
}

.onboarding-steps strong {
  font-size: 0.95rem;
}

.onboarding-steps small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.3;
}

.safety-agreement {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--teal-dark);
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.35;
}

.safety-agreement input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}

.onboarding-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  min-width: 0;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.onboarding-links a {
  color: var(--teal-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.onboarding-links a:hover {
  text-decoration: underline;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#restoreBackupFromOnboarding {
  grid-column: 1 / -1;
}

.onboarding-restore-status {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.onboarding-restore-preview {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  padding: 12px;
}

.onboarding-restore-preview[hidden] {
  display: none;
}

.onboarding-restore-preview strong {
  display: block;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 950;
}

.onboarding-restore-preview p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.35;
}

.onboarding-restore-preview ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboarding-restore-preview li {
  border-radius: 8px;
  background: rgba(184, 227, 200, 0.28);
  color: var(--ink);
  padding: 8px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.3;
}

.onboarding-restore-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1480px;
  margin: 0 auto 18px;
}

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

.brand-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  background: url("assets/shy-icon.svg?v=3") center / contain no-repeat;
  box-shadow: 0 8px 22px rgba(49, 44, 34, 0.12);
  font-weight: 900;
}

.brand-heart {
  display: none;
}

.brand-word {
  display: none;
}

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

.brand small {
  color: var(--muted);
  margin-top: 1px;
}

.language-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.language-select span {
  white-space: nowrap;
}

.language-select select {
  min-width: 124px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: none;
}

.language-select select:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
}

.onboarding-language {
  justify-content: center;
  margin-top: -8px;
}

.top-actions,
.button-row,
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  min-width: 92px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-dark);
  text-align: center;
  font-weight: 800;
}

.icon-button,
.primary-button,
.ghost-button,
.segment,
.filter-chip,
.prompt-button,
.note-idea,
.open-to-idea,
.card-action {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

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

.icon-button:hover,
.primary-button:hover,
.ghost-button:hover,
.segment:hover,
.filter-chip:hover,
.prompt-button:hover,
.note-idea:hover,
.open-to-idea:hover,
.card-action:hover,
.person-dot:hover {
  transform: translateY(-1px);
}

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

.send {
  background: var(--ink);
  color: white;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(390px, 1fr) minmax(310px, 390px);
  gap: 18px;
  max-width: 1480px;
  margin: 0 auto;
  align-items: start;
}

.control-rail,
.people-panel {
  display: grid;
  gap: 18px;
}

.panel,
.presence-stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.88);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.panel-heading {
  margin-bottom: 20px;
}

.panel-heading.compact {
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.15;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.field input[type="text"],
.field input[type="password"],
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
}

.field textarea {
  min-height: 76px;
  padding: 12px;
  line-height: 1.35;
  resize: vertical;
}

.field-status {
  margin-top: -2px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 850;
}

.profile-readiness {
  display: grid;
  gap: 10px;
  margin: -6px 0 16px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.profile-readiness.is-ready {
  background: rgba(15, 118, 110, 0.08);
}

.profile-readiness-head {
  display: grid;
  gap: 3px;
}

.profile-readiness-head strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.15;
}

.profile-readiness-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
}

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

.profile-readiness-list button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: left;
}

.profile-readiness-list button:hover {
  transform: translateY(-1px);
}

.profile-readiness-list button.is-ready {
  border-color: rgba(15, 118, 110, 0.2);
  color: var(--teal-dark);
}

.profile-readiness-list i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(120, 113, 101, 0.35);
}

.profile-readiness-list button.is-ready i {
  background: var(--teal);
}

.profile-readiness-list small {
  grid-column: 2;
  font-size: 0.62rem;
  font-weight: 850;
  opacity: 0.76;
}

.profile-readiness-action {
  min-height: 38px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-readiness-action:hover {
  transform: translateY(-1px);
}

.profile-readiness.is-ready .profile-readiness-action {
  background: var(--teal);
  color: white;
}

.note-ideas,
.open-to-ideas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.note-idea,
.open-to-idea {
  min-height: 38px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal-dark);
  padding: 8px 10px;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: normal;
}

.photo-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-photo {
  width: 64px;
  height: 64px;
  box-shadow: 0 10px 24px rgba(49, 44, 34, 0.14);
}

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

.photo-picker {
  cursor: pointer;
}

.photo-picker.is-disabled {
  opacity: 0.52;
  pointer-events: none;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: -4px 0 16px;
}

.photo-thumb {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  aspect-ratio: 1;
}

.photo-thumb button:first-child,
.photo-thumb img {
  width: 100%;
  height: 100%;
}

.photo-thumb button:first-child {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.photo-thumb img {
  object-fit: cover;
}

.photo-thumb figcaption {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(32, 34, 31, 0.72);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
}

.photo-thumb.is-primary {
  border-color: rgba(15, 118, 110, 0.52);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.mini-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(32, 34, 31, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: #efe7da;
}

.segmented.four-way {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.segment {
  min-width: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.segment.is-active {
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(49, 44, 34, 0.09);
}

.segment:disabled,
.card-action:disabled {
  opacity: 0.6;
  transform: none;
}

.range-field strong {
  color: var(--ink);
  float: right;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

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

.primary-button {
  flex: 1;
  background: var(--ink);
  color: white;
}

.ghost-button {
  background: var(--surface-strong);
  color: var(--ink);
  border: 1px solid var(--line);
}

.danger-command {
  width: 100%;
  margin-top: 12px;
  border-color: rgba(216, 92, 69, 0.36);
  color: var(--coral);
}

.panel.is-attention {
  box-shadow:
    var(--shadow),
    0 0 0 3px rgba(15, 118, 110, 0.18);
}

.start-preview {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 12px;
}

.start-preview[hidden] {
  display: none;
}

.start-preview:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.26);
  outline-offset: 3px;
}

.start-preview strong {
  display: block;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 950;
}

.start-preview p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.35;
}

.start-preview ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.start-preview li {
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 7px;
  background: rgba(255, 250, 242, 0.72);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.3;
  padding: 7px 8px;
}

.start-profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.82);
  padding: 10px;
}

.start-profile-card p {
  margin: 3px 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1.35;
}

.start-profile-title,
.start-profile-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.start-profile-title strong {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.start-profile-title span,
.start-profile-tags span {
  border-radius: 999px;
  background: rgba(184, 227, 200, 0.34);
  color: var(--teal-dark);
  padding: 4px 7px;
  font-size: 0.72rem;
  font-weight: 950;
}

.start-profile-tags span {
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
}

.start-preview-check {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(242, 197, 107, 0.46);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.7);
  padding: 10px;
}

.start-preview-check strong {
  color: #7a4d12;
  font-size: 0.82rem;
}

.start-preview-check ul {
  gap: 5px;
}

.start-preview-check li {
  border: 0;
  background: transparent;
  color: #5f4a24;
  padding: 0;
}

.start-preview-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 8px;
}

.forget-confirm {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid rgba(216, 92, 69, 0.24);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.86);
  padding: 11px;
}

.forget-confirm[hidden] {
  display: none;
}

.forget-confirm strong {
  color: var(--coral);
  font-size: 0.92rem;
}

.forget-confirm p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.4;
}

.forget-confirm ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.forget-confirm li {
  border: 1px solid rgba(216, 92, 69, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 830;
  line-height: 1.3;
  padding: 7px 8px;
}

.forget-backup-status {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.forget-backup-text {
  width: 100%;
  min-height: 118px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  padding: 10px;
  font: inherit;
  font-size: 0.76rem;
  line-height: 1.35;
  resize: vertical;
}

.forget-confirm-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.forget-confirm-actions button {
  min-height: 36px;
}

.forget-confirm-actions .danger-button {
  background: #d85c45;
  color: #fffaf2;
}

.forget-confirm-actions .danger-button:hover {
  background: #bf4d39;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr;
}

.button-row .primary-button,
.button-row .ghost-button {
  width: 100%;
}

.privacy-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 750;
}

.privacy-list li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.privacy-list span {
  display: grid;
  flex: 0 0 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.session-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.session-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.session-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.session-grid strong {
  min-width: 0;
  color: var(--teal-dark);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.blocked-manager {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.account-manager {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.account-manager p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.account-manager .ghost-button {
  width: 100%;
}

.founding-plus {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.76);
}

.founding-plus p,
.founding-plus small {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.founding-plus ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.founding-plus .ghost-button {
  width: 100%;
}

.account-link-tools {
  display: grid;
  gap: 9px;
}

.invite-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(210, 231, 220, 0.36);
}

.invite-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.invite-panel-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.invite-panel-heading strong {
  min-width: 56px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fffaf2;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 950;
  text-align: center;
}

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

.invite-actions .ghost-button {
  width: auto;
  min-height: 36px;
  padding: 8px;
  font-size: 0.76rem;
  line-height: 1.08;
  text-align: center;
}

.compact-field {
  margin-bottom: 0;
}

.link-code-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(210, 231, 220, 0.48);
  padding: 10px;
}

.link-code-card span,
.link-code-card small,
.link-hint {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.link-code-card span {
  text-transform: uppercase;
}

.link-code-card strong {
  color: var(--teal-dark);
  font-size: 1.32rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.recovery-code-card strong {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.link-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.single-action {
  grid-template-columns: 1fr;
}

.link-actions .ghost-button {
  min-height: 34px;
  padding: 8px 10px;
}

.link-url {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 850;
}

.invite-qr-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 10px;
}

.invite-qr-code {
  display: grid;
  width: min(188px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  padding: 8px;
}

.invite-qr-code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.invite-qr-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.32;
  text-align: center;
}

.blocked-heading,
.blocked-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.blocked-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blocked-heading strong {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #f2ebde;
  color: var(--teal-dark);
  font-size: 0.78rem;
}

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

.saved-search,
.people-search {
  display: block;
}

.people-search {
  margin: -4px 0 14px;
}

.saved-search input,
.people-search input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.82);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 0.82rem;
}

.blocked-person {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 8px;
}

.saved-contact.is-favorite {
  border-color: rgba(242, 197, 107, 0.64);
  background: rgba(255, 244, 223, 0.66);
}

.saved-contact.is-chat-muted,
.muted-contact {
  border-color: rgba(109, 113, 105, 0.28);
  background: rgba(255, 255, 255, 0.48);
}

.saved-contact {
  align-items: flex-start;
}

.blocked-person div {
  min-width: 0;
  flex: 1;
}

.saved-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.saved-actions .card-action {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.74rem;
}

.saved-open {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.saved-open span {
  min-width: 0;
  flex: 1;
}

.blocked-person strong,
.blocked-person small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blocked-person strong {
  font-size: 0.84rem;
}

.blocked-person small,
.blocked-empty {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.blocked-person .card-action {
  flex: 0 0 auto;
}

.saved-plan-list {
  display: grid;
  gap: 8px;
}

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

.saved-plan-heading,
.saved-plan {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saved-plan-heading {
  justify-content: space-between;
  padding-top: 2px;
}

.saved-plan-heading span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.saved-plan-heading strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal-dark);
  font-size: 0.72rem;
}

.saved-plan {
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(210, 231, 220, 0.3);
  padding: 8px;
}

.saved-plan-open {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.saved-plan-open span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal-dark);
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.saved-plan-open strong,
.saved-plan-open small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-plan-open strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.saved-plan-open small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.presence-stage {
  min-height: calc(100vh - 106px);
  padding: 18px;
  overflow: hidden;
}

.presence-stage:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: -3px;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.stage-toolbar > :first-child {
  min-width: min(100%, 240px);
  flex: 1 1 240px;
}

.quiet-timer {
  min-width: 106px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  text-align: right;
}

.quiet-timer[data-state="live"] {
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.08);
}

.quiet-timer[data-state="warning"] {
  border-color: rgba(242, 197, 107, 0.72);
  background: rgba(242, 197, 107, 0.24);
}

.quiet-timer[data-state="ended"] {
  border-color: rgba(216, 92, 69, 0.22);
  background: rgba(216, 92, 69, 0.1);
}

.quiet-timer[data-state="pending"] {
  background: rgba(255, 255, 255, 0.82);
}

.quiet-timer span,
.quiet-timer small {
  display: block;
}

.quiet-timer span {
  font-weight: 950;
}

.quiet-timer small {
  color: var(--muted);
  font-size: 0.72rem;
}

.quiet-timer .timer-detail {
  margin-top: 3px;
  color: var(--teal-dark);
  font-weight: 850;
}

.quiet-timer[data-state="warning"] .timer-detail {
  color: #7a4a08;
}

.quiet-timer[data-state="ended"] .timer-detail {
  color: var(--coral);
}

.timer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.timer-extend,
.timer-hide,
.timer-start {
  display: inline-grid;
  min-height: 32px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: var(--teal);
  color: white;
  padding: 0 9px;
  font-size: 0.72rem;
  font-weight: 900;
}

.timer-hide {
  border-color: rgba(216, 92, 69, 0.28);
  background: #fff0eb;
  color: var(--coral);
}

.timer-start {
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--teal);
  color: white;
}

.timer-extend:hover,
.timer-hide:hover,
.timer-start:hover {
  transform: translateY(-1px);
}

.timer-extend:disabled,
.timer-hide:disabled,
.timer-start:disabled {
  opacity: 0.58;
  transform: none;
}

.timer-extend[hidden],
.timer-hide[hidden],
.timer-start[hidden] {
  display: none;
}

.radar {
  position: relative;
  min-height: min(740px, calc(100vh - 190px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(32, 34, 31, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(32, 34, 31, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(184, 227, 200, 0.5), transparent 58%),
    #fffdf8;
  background-size: 34px 34px, 34px 34px, auto, auto;
  overflow: hidden;
}

.radar::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    conic-gradient(
      from 16deg,
      rgba(15, 118, 110, 0.22),
      rgba(15, 118, 110, 0.02) 44deg,
      transparent 84deg
    );
  animation: sweep 8s linear infinite;
  transform-origin: 50% 50%;
}

.radar-ring {
  position: absolute;
  border: 1px dashed rgba(15, 118, 110, 0.26);
  border-radius: 50%;
  pointer-events: none;
}

.ring-one {
  inset: 35%;
}

.ring-two {
  inset: 22%;
}

.ring-three {
  inset: 9%;
}

.you-dot,
.person-dot {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(49, 44, 34, 0.16);
}

.you-dot {
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: white;
  font-weight: 950;
  overflow: hidden;
}

.you-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.you-dot.has-photo span {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(32, 34, 31, 0.72);
  color: white;
  font-size: 0.68rem;
}

.person-dot {
  left: var(--x);
  top: var(--y);
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  transform: translate(-50%, -50%);
  background: var(--dot);
  color: white;
}

.person-dot span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  font-weight: 950;
  overflow: hidden;
}

.person-dot img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-dot small {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: max-content;
  max-width: 130px;
  transform: translateX(-50%);
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.person-dot.is-selected {
  outline: 4px solid rgba(242, 197, 107, 0.85);
}

.person-dot.is-muted {
  opacity: 0.28;
}

.live-state {
  flex: 1 1 280px;
  max-width: 380px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
  padding: 12px 14px;
  text-align: left;
}

.live-state[hidden] {
  display: none;
}

.live-state strong,
.live-state span {
  display: block;
}

.live-state strong {
  color: var(--teal-dark);
}

.live-state span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 820;
}

.live-state .live-state-scope {
  color: var(--teal-dark);
}

.live-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 10px;
}

.hidden-state {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  display: none;
  width: min(320px, calc(100% - 36px));
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.94);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.hidden-state strong,
.hidden-state span {
  display: block;
}

.hidden-state span {
  margin-top: 4px;
  color: var(--muted);
}

.hidden-state .card-action {
  margin-top: 12px;
}

.is-hidden .hidden-state {
  display: block;
}

.is-hidden .person-dot,
.is-hidden .radar-ring,
.is-hidden::before {
  opacity: 0.12;
  animation-play-state: paused;
}

.filter-row {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 900;
}

.filter-chip.is-active {
  background: var(--teal-dark);
  color: white;
  border-color: var(--teal-dark);
}

.request-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: 12px;
  line-height: 1;
}

.people-list {
  display: grid;
  gap: 10px;
  max-height: 44vh;
  overflow: auto;
  padding-right: 3px;
}

.person-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
}

.person-card.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14);
}

.person-card.is-muted {
  opacity: 0.42;
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: var(--avatar);
  color: white;
  font-weight: 950;
  overflow: hidden;
}

.avatar.mini {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  font-size: 0.76rem;
}

.avatar.large {
  width: 58px;
  height: 58px;
}

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

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.card-title strong,
.card-title span {
  min-width: 0;
}

.card-title .inbox-badge {
  flex: 0 0 auto;
}

.card-title span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.person-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.conversation-preview {
  display: block;
  min-width: 0;
  margin: -4px 0 10px;
  overflow: hidden;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-dark);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

.inbox-badge.compact {
  display: inline-grid;
  margin-left: 5px;
  transform: translateY(-1px);
}

.inbox-badge.is-muted {
  background: #8f918a;
}

.tag-row,
.card-actions,
.prompt-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2ebde;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.tag.live-tag {
  background: var(--mint);
  color: var(--teal-dark);
}

.tag.presence-tag {
  color: var(--ink);
}

.tag.open-tag {
  background: rgba(242, 197, 107, 0.56);
}

.tag.soft-tag {
  background: rgba(184, 227, 200, 0.58);
  color: var(--teal-dark);
}

.tag.chat-tag {
  background: rgba(45, 91, 86, 0.12);
  color: var(--teal-dark);
}

.tag.invite-tag {
  background: rgba(207, 82, 108, 0.13);
  color: var(--coral);
}

.tag.freshness-tag {
  background: rgba(107, 142, 128, 0.13);
  color: var(--teal-dark);
}

.tag.passed-tag {
  background: rgba(224, 131, 109, 0.16);
  color: #8c3d2c;
}

.tag.muted-tag {
  background: rgba(109, 113, 105, 0.14);
  color: var(--muted);
}

.card-actions {
  grid-column: 1 / -1;
}

.card-action,
.prompt-button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fffaf2;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.danger-action {
  border-color: rgba(216, 92, 69, 0.34);
  background: #fff0eb;
  color: var(--coral);
}

.card-action.primary {
  background: var(--teal-dark);
  color: white;
  border-color: var(--teal-dark);
}

.favorite-action {
  min-width: 54px;
}

.favorite-action.is-active {
  border-color: rgba(189, 127, 18, 0.38);
  background: rgba(242, 197, 107, 0.5);
  color: #6f4607;
}

.card-action.is-active:not(.favorite-action) {
  border-color: rgba(15, 118, 110, 0.32);
  background: rgba(184, 227, 200, 0.48);
  color: var(--teal-dark);
}

.conversation-panel {
  min-height: 360px;
}

.empty-conversation {
  min-height: 290px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  text-align: center;
  color: var(--muted);
}

.empty-conversation strong {
  color: var(--ink);
}

.conversation {
  display: grid;
  gap: 14px;
}

.conversation-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

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

.safety-review-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(216, 92, 69, 0.22);
  border-radius: 8px;
  background: #fff3ed;
  padding: 10px;
}

.safety-review-card[hidden] {
  display: none;
}

.safety-review-copy {
  display: grid;
  gap: 3px;
}

.safety-review-copy strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.safety-review-copy span,
.safety-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

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

.reason-chip {
  min-height: 36px;
  border: 1px solid rgba(216, 92, 69, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #8c3d2c;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
}

.reason-chip.is-active {
  background: #8c3d2c;
  color: #fff;
}

.safety-note {
  display: grid;
  gap: 6px;
}

.safety-note textarea {
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(216, 92, 69, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
  resize: vertical;
}

.safety-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conversation-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.detail-gallery img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-strong);
}

.contact-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(210, 231, 220, 0.46);
  padding: 10px;
}

.contact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.contact-card-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.contact-card span,
.contact-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card small[hidden] {
  display: none;
}

.contact-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--teal-dark);
  font-size: 0.92rem;
}

.contact-open {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.contact-card-actions .contact-open,
.copy-contact {
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.72rem;
}

.contact-open[hidden] {
  display: none;
}

.memo-card {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(45, 91, 86, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.72);
  padding: 10px;
}

.memo-card[hidden] {
  display: none;
}

.memo-card label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.memo-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.memo-card small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.memo-card textarea {
  width: 100%;
  min-height: 66px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 9px 10px;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.35;
}

.prompt-button {
  background: #f6efe3;
}

.request-gate {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(210, 231, 220, 0.36);
  padding: 11px;
}

.request-gate[hidden] {
  display: none;
}

.request-gate div {
  display: grid;
  gap: 3px;
}

.request-gate .request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.request-gate strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.request-gate span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.request-gate .card-action {
  white-space: nowrap;
}

.subtle-action {
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
}

.next-step-actions {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(242, 197, 107, 0.42);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.64);
  padding: 10px;
}

.next-step-actions[hidden] {
  display: none;
}

.next-step-actions span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.next-step-actions div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meet-later-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(210, 231, 220, 0.34);
  padding: 10px;
}

.meet-later-card[hidden] {
  display: none;
}

.meet-copy {
  display: grid;
  gap: 4px;
}

.meet-copy span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.meet-copy strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.meet-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

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

.meet-actions.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.meet-actions .prompt-button {
  width: 100%;
}

.meet-review {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.82);
  padding: 9px;
}

.meet-review span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.meet-review strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.35;
}

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

.meet-confirm-actions.is-single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meet-confirm-actions .prompt-button {
  width: 100%;
}

.compatibility-preview-card {
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(91, 63, 36, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(244, 249, 243, 0.9)),
    linear-gradient(90deg, rgba(200, 80, 111, 0.08), rgba(15, 118, 110, 0.08));
  box-shadow: 0 16px 34px rgba(49, 44, 34, 0.1);
  padding: 12px;
}

.compatibility-preview-card[hidden] {
  display: none;
}

.compatibility-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.compatibility-preview-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.compatibility-preview-head span,
.compatibility-preview-note span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compatibility-preview-head strong {
  color: var(--ink);
  font-size: 1.03rem;
}

.compatibility-preview-head small,
.compatibility-preview-note small,
.compatibility-delete-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.compatibility-preview-mark {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 231, 224, 0.72)),
    radial-gradient(circle, rgba(244, 190, 80, 0.3), transparent 60%);
  color: var(--coral-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 18px rgba(49, 44, 34, 0.12);
  font-size: 1.55rem;
  font-weight: 950;
}

.compatibility-preview-mark::after {
  content: "";
  width: 16px;
  height: 16px;
  border-right: 2px solid rgba(200, 80, 111, 0.42);
  border-bottom: 2px solid rgba(200, 80, 111, 0.42);
  transform: rotate(45deg);
  margin-top: -12px;
}

.compatibility-preview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

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

.compatibility-profile {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid rgba(45, 91, 86, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  padding: 10px;
}

.compatibility-profile.is-blocked {
  border-style: dashed;
  background: rgba(255, 250, 242, 0.72);
}

.compatibility-profile-fancy {
  grid-template-columns: auto 1fr;
  align-items: stretch;
}

.compatibility-profile[data-element="fire"] {
  border-color: rgba(200, 80, 111, 0.2);
}

.compatibility-profile[data-element="earth"] {
  border-color: rgba(122, 95, 48, 0.2);
}

.compatibility-profile[data-element="air"] {
  border-color: rgba(15, 118, 110, 0.2);
}

.compatibility-profile[data-element="water"] {
  border-color: rgba(58, 103, 140, 0.2);
}

.compatibility-orbit {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  width: 58px;
  min-height: 100%;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.88), rgba(255, 255, 255, 0.58));
  color: var(--ink);
}

.compatibility-zodiac {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.5) 52%, rgba(184, 227, 200, 0.24)),
    linear-gradient(145deg, rgba(255, 250, 242, 0.96), rgba(255, 231, 224, 0.65));
  box-shadow:
    inset 0 0 0 1px rgba(45, 91, 86, 0.12),
    0 8px 16px rgba(49, 44, 34, 0.1);
  color: var(--teal-dark);
  font-weight: 950;
}

.compatibility-sigil {
  position: relative;
  z-index: 1;
  font-size: 1.45rem;
  line-height: 1;
}

.compatibility-stars {
  position: absolute;
  inset: 0;
}

.compatibility-stars i {
  position: absolute;
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(244, 190, 80, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.compatibility-stars i:nth-child(1) {
  left: 9px;
  top: 9px;
}

.compatibility-stars i:nth-child(2) {
  right: 8px;
  top: 14px;
}

.compatibility-stars i:nth-child(3) {
  left: 16px;
  bottom: 8px;
}

.compatibility-orbit[data-sign="Aries"] .compatibility-zodiac,
.compatibility-orbit[data-sign="Leo"] .compatibility-zodiac,
.compatibility-orbit[data-sign="Sagittarius"] .compatibility-zodiac {
  color: #9f304b;
}

.compatibility-orbit[data-sign="Taurus"] .compatibility-zodiac,
.compatibility-orbit[data-sign="Virgo"] .compatibility-zodiac,
.compatibility-orbit[data-sign="Capricorn"] .compatibility-zodiac {
  color: #6e5b28;
}

.compatibility-orbit[data-sign="Cancer"] .compatibility-zodiac,
.compatibility-orbit[data-sign="Scorpio"] .compatibility-zodiac,
.compatibility-orbit[data-sign="Pisces"] .compatibility-zodiac {
  color: #326b88;
}

.compatibility-element {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.compatibility-profile-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.compatibility-profile-name {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.compatibility-motif {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.compatibility-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.compatibility-profile label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.compatibility-profile small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compatibility-profile strong {
  color: var(--teal-dark);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.compatibility-number-field {
  grid-column: 1 / -1;
  min-height: 50px;
  border-radius: 8px;
  background: rgba(244, 190, 80, 0.13);
  padding: 7px;
}

.compatibility-number-field strong {
  font-size: 1.05rem;
}

.compatibility-number-field em {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
}

.compatibility-profile-lock {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: rgba(45, 91, 86, 0.08);
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 950;
}

.compatibility-reflection {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 10px;
}

.compatibility-reflection-head {
  display: grid;
  gap: 2px;
}

.compatibility-reflection-head span,
.compatibility-reflection-grid span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.compatibility-reflection-head strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.compatibility-reflection-grid {
  display: grid;
  gap: 7px;
}

.compatibility-reflection-grid article {
  display: grid;
  gap: 3px;
  border-radius: 8px;
  background: rgba(245, 249, 243, 0.7);
  padding: 8px;
}

.compatibility-reflection-grid strong {
  color: var(--teal-dark);
  font-size: 0.84rem;
}

.compatibility-reflection-grid small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.35;
}

.compatibility-plus-teaser {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(200, 80, 111, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 231, 224, 0.54), rgba(255, 255, 255, 0.62)),
    linear-gradient(90deg, rgba(244, 190, 80, 0.14), rgba(15, 118, 110, 0.08));
  padding: 10px;
}

.compatibility-plus-teaser.is-ready {
  border-color: rgba(15, 118, 110, 0.18);
  background:
    linear-gradient(135deg, rgba(184, 227, 200, 0.32), rgba(255, 255, 255, 0.66)),
    linear-gradient(90deg, rgba(244, 190, 80, 0.12), rgba(200, 80, 111, 0.08));
}

.compatibility-plus-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--coral-dark);
  box-shadow: inset 0 0 0 1px rgba(200, 80, 111, 0.12);
  font-size: 1rem;
  font-weight: 950;
}

.compatibility-plus-teaser div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.compatibility-plus-teaser span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.compatibility-plus-teaser strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.compatibility-plus-teaser small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.3;
}

.compatibility-plus-teaser b {
  justify-self: end;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-dark);
  padding: 6px 8px;
  font-size: 0.66rem;
  font-weight: 950;
  text-align: center;
}

.compatibility-prompts {
  display: grid;
  gap: 7px;
}

.compatibility-prompts .prompt-button {
  text-align: left;
}

.compatibility-preview-note {
  display: grid;
  gap: 3px;
}

.compatibility-birthdate {
  display: grid;
  gap: 5px;
}

.compatibility-setup {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(45, 91, 86, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 10px;
}

.compatibility-setup-copy {
  display: grid;
  gap: 3px;
}

.compatibility-setup-copy span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
}

.compatibility-setup-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.35;
}

.compatibility-birthdate span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compatibility-birthdate input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(45, 91, 86, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 760;
  padding: 8px 10px;
}

.compatibility-preview-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.35;
}

.compatibility-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.message-feed {
  display: grid;
  gap: 8px;
  min-height: 120px;
  max-height: 220px;
  overflow: auto;
}

.message {
  display: grid;
  gap: 3px;
  width: fit-content;
  max-width: 88%;
  border-radius: 8px;
  padding: 9px 11px;
  background: #efe7da;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.message-text {
  min-width: 0;
}

.message-time {
  color: rgba(44, 48, 45, 0.56);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
}

.message.me {
  justify-self: end;
  background: var(--teal-dark);
  color: white;
}

.message.me .message-time {
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
}

.message.them {
  background: #fff4df;
}

.message.system {
  justify-self: center;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
  text-align: center;
}

.message.system .message-time {
  text-align: center;
}

.message-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.message-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0 12px;
}

.message-status {
  min-height: 14px;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: right;
}

.message-status.is-warning {
  color: #9f513b;
}

.message-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(45, 91, 86, 0.16);
  border-radius: 8px;
  background: rgba(210, 231, 220, 0.48);
  color: var(--teal-dark);
  padding: 8px 9px;
  font-size: 0.82rem;
  font-weight: 850;
}

.message-undo[hidden] {
  display: none;
}

.message-undo .card-action {
  min-height: 30px;
  padding: 0 9px;
}

.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;
}

@keyframes sweep {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 280px 1fr;
  }

  .people-panel {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .presence-stage {
    min-height: 620px;
  }

  .radar {
    min-height: 520px;
  }
}

@media (max-width: 780px) {
  .app-shell {
    padding: 12px;
  }

  .admin-shell {
    width: min(100% - 24px, 1040px);
    padding-top: 12px;
  }

  .info-shell {
    width: min(100% - 24px, 960px);
    padding-top: 12px;
  }

  .admin-header,
  .info-header,
  .admin-token-panel,
  .admin-server-status,
  .admin-tools,
  .admin-feedback-tools,
  .admin-checkout-tools {
    display: grid;
  }

  .info-actions {
    justify-content: flex-start;
  }

  .admin-server-status {
    grid-template-columns: 1fr;
  }

  .admin-token-panel .primary-button,
  .admin-token-panel .ghost-button,
  .admin-server-status .ghost-button,
  .admin-tools .ghost-button,
  .admin-feedback-tools .ghost-button,
  .admin-checkout-tools .ghost-button {
    width: 100%;
  }

  .admin-plus-grant-form {
    grid-template-columns: 1fr;
    min-width: 0;
  }

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

  .admin-audit-list {
    grid-template-columns: 1fr;
  }

  .admin-plus-grant-list {
    grid-template-columns: 1fr;
  }

  .update-banner {
    display: grid;
  }

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

  .release-head,
  .release-actions {
    align-items: flex-start;
  }

  .release-card ul,
  .install-card ol,
  .readiness-timeline,
  .readiness-grid,
  .info-grid,
  .guidelines-grid,
  .privacy-grid,
  .safety-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .top-language {
    width: 100%;
  }

  .brand small {
    display: none;
  }

  .workspace,
  .people-panel {
    grid-template-columns: 1fr;
  }

  .presence-stage {
    min-height: auto;
  }

  .stage-toolbar {
    align-items: flex-start;
  }

  .radar {
    min-height: 430px;
  }

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

  .person-dot {
    width: 62px;
    height: 62px;
  }

  .person-dot small {
    max-width: 104px;
  }
}

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

  .release-card ul,
  .install-card ol,
  .readiness-timeline,
  .readiness-grid,
  .info-grid,
  .guidelines-grid,
  .privacy-grid,
  .safety-guide-grid,
  .update-actions {
    grid-template-columns: 1fr;
  }

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

  .language-select {
    width: 100%;
    justify-content: space-between;
  }

  .language-select select {
    min-width: 0;
    width: min(100%, 190px);
  }

  .privacy-controls-card {
    display: grid;
  }

  .privacy-control-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .privacy-control-actions .ghost-button {
    width: 100%;
  }

  .profile-readiness-list {
    grid-template-columns: 1fr;
  }

  .note-ideas,
  .open-to-ideas {
    grid-template-columns: 1fr;
  }

  .status-pill {
    min-width: 74px;
    padding-inline: 9px;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .request-gate {
    grid-template-columns: 1fr;
  }

  .request-gate .card-action {
    width: 100%;
  }

  .request-gate .request-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

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

  .compatibility-profiles {
    grid-template-columns: 1fr;
  }

  .onboarding-steps,
  .onboarding-actions,
  .onboarding-restore-preview ul,
  .onboarding-restore-actions,
  .start-preview-actions {
    grid-template-columns: 1fr;
  }

  .stage-toolbar {
    display: grid;
  }

  .quiet-timer {
    width: 100%;
    text-align: left;
  }

  .timer-actions {
    justify-content: flex-start;
  }
}
